/* Beacon Gather views (bayou lane): hosted mark, switch, map, stepping stones, postcard tray. */
.g-head { padding-top: 118px; }
.g-head h1 { font-size: clamp(38px, 5.6vw, 72px); }
.g-bar { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; margin-top: var(--s3); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 28px; background: rgba(255, 255, 255, .7); border: 1.5px solid var(--line); }
.seg button { min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--pill); background: none; color: var(--teal); font: 600 15px/1 var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed='true'] { background: var(--teal); color: var(--cream); }
.mark { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { min-height: 44px; padding: 0 14px 0 10px; border-radius: var(--pill); border: 1.5px solid transparent; background: var(--vw); color: var(--teal); font: 600 15px/1 var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: transform var(--fast) var(--ease); }
.vchip .glyph { width: 22px; height: 22px; color: var(--v); }
.vchip[aria-pressed='true'] { border-color: var(--v); box-shadow: inset 0 0 0 1.5px var(--v); transform: translateY(-2px); }
/* hosted or around: a mark and a word on every card */
.who { display: flex; align-items: center; gap: 6px; font: 600 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.who[data-host='beacon'] { color: var(--amber-deep); }
.sample { margin-left: auto; padding: 2px 8px; border: 1.5px dashed currentColor; border-radius: 6px; letter-spacing: .08em; color: var(--teal); }
.gv--beacon { border-color: var(--amber); border-top-color: var(--amber); background: #FFFDF7; box-shadow: 0 0 0 4px rgba(230, 180, 110, .18); }
.pick { border: 1.5px solid var(--teal) !important; border-radius: var(--pill); padding: 0 14px 0 10px !important; text-decoration: none !important; gap: 8px !important; }
.pick i { width: 20px; height: 20px; border: 2px solid var(--teal); border-radius: 6px; display: grid; place-items: center; }
.pick[aria-pressed='true'] { background: var(--teal); color: var(--cream); }
.pick[aria-pressed='true'] i { border-color: var(--cream); background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23284849' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.gv .ev-act a:first-of-type { background: none; color: var(--teal); padding: 0 2px; text-decoration: underline; }
.rail { margin-top: var(--s4); padding: var(--s3); border-radius: var(--radius); background: rgba(246, 228, 191, .35); border: 1.5px dashed var(--amber); }
.rail > h2, .rest > h2 { font-size: clamp(24px, 2.8vw, 34px); display: flex; align-items: center; gap: 10px; margin-bottom: var(--s3); }
.rail > h2 .mark, .rest > h2 .mark { width: 30px; height: 30px; }
.rail .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.rest { margin-top: var(--s5); }
.count-line { margin: var(--s3) 0 0; font-weight: 600; }

/* view A: the map */
.mapbox { margin-top: var(--s3); overflow-x: auto; border-radius: var(--radius); border: 1.5px solid var(--line); background: rgba(255, 255, 255, .55); }
.mapbox svg { width: 100%; min-width: 780px; height: auto; }
.m-land { fill: #DDE8D8; opacity: .7; }
.m-bed { fill: none; stroke: var(--water); stroke-width: 30; stroke-linecap: round; opacity: .85; }
.m-river { fill: none; stroke: var(--water-ink); stroke-width: 1.8; stroke-linecap: round; }
.m-town rect { fill: none; stroke: var(--ink-2); stroke-width: 1.4; }
.m-label { font: 600 13px var(--mono); fill: var(--ink-2); letter-spacing: .1em; text-transform: uppercase; }
.dot { cursor: pointer; }
.dot .hit { fill: transparent; }
.dot .body { fill: var(--vw); stroke: var(--v); stroke-width: 2; transition: r .3s; }
.dot .glyph { color: var(--v); }
.dot .n { font: 700 13px var(--mono); fill: var(--cream); }
.dot .nb { fill: var(--teal); }
.dot .name { font: 600 14px var(--body); fill: var(--teal); paint-order: stroke fill; stroke: var(--cream); stroke-width: 5px; }
.dot .rays { fill: none; stroke: var(--amber-deep); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 9; animation: turn 30s linear infinite; transform-box: fill-box; transform-origin: center; }
.dot .ring { fill: none; stroke: var(--v); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.dot[aria-pressed='true'] .ring, .dot:hover .ring { animation: ripple 2.6s ease-out infinite; }
.dot[aria-pressed='true'] .body { stroke-width: 4; }
.dot:focus-visible { outline: none; } .dot:focus-visible .body { stroke: var(--terra-ink); stroke-width: 5; }
@keyframes turn { to { transform: rotate(360deg); } }
.legend-m { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 15px; }
.legend-m li { display: flex; align-items: center; gap: 6px; }

/* view B: three stepping stones */
.stones { display: grid; gap: var(--s3); margin-top: var(--s4); counter-reset: st; }
.stone { position: relative; padding: var(--s3); border-radius: 28px; background: rgba(255, 255, 255, .7); border: 1.5px solid var(--line); counter-increment: st; }
.stone > h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: var(--s2); display: flex; align-items: baseline; gap: 12px; }
.stone > h2::before { content: counter(st); font: 600 14px var(--mono); color: var(--cream); background: var(--terra-ink); width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; transform: translateY(-3px); }
.stone .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.three { margin-top: var(--s5); padding: clamp(20px, 4vw, 40px); border-radius: 36px; background: var(--tint); transition: background 1s var(--ease); }
.three .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.three h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 8px; }

/* the postcard tray and the friend's view */
.tray { position: fixed; inset: auto 0 0; z-index: 70; background: #FFFDF7; border-top: 2px dashed var(--water-ink); box-shadow: 0 -18px 40px -24px rgba(40, 72, 73, .6); padding: 12px 0 14px; max-height: 70vh; overflow: auto; }
.tray .wrap { display: grid; grid-template-columns: 1fr auto; gap: 8px var(--s3); align-items: center; }
.tray-n { margin: 0; grid-column: 1 / -1; font-size: 15px; }
.tray ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tray li { display: inline-flex; align-items: center; gap: 6px; background: var(--vw); border-radius: var(--pill); padding-left: 10px; font: 600 14px/1.2 var(--body); max-width: 100%; }
.tray li .glyph { width: 20px; height: 20px; color: var(--v); }
.tray li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch; }
.tray li button { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; color: var(--teal); cursor: pointer; }
.code { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px var(--s3); padding-top: 10px; border-top: 1.5px solid var(--line); }
.code p { margin: 0; font: 600 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; flex-basis: 100%; }
.code output { font: 600 clamp(30px, 8vw, 44px)/1 var(--mono); letter-spacing: .06em; color: var(--terra-ink); }
.code div { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 700px) { .tray .wrap { grid-template-columns: 1fr; } .tray [data-send] { width: 100%; } }
body.has-tray .foot { padding-bottom: 260px; }
body.has-tray .toast { bottom: auto; top: 84px; }
.shared { padding-top: 104px; }
.shared .note { background: #FFFDF7; border: 2px dashed var(--water-ink); border-radius: 10px; padding: clamp(20px, 4vw, 44px); transform: rotate(-.5deg); box-shadow: 0 24px 50px -34px rgba(40, 72, 73, .7); }
.shared h1 { font-size: clamp(38px, 5.6vw, 72px); }
.shared .cards { margin-top: var(--s3); }
.shared + .g-head { padding-top: var(--s5); }
.three h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.three h2 .glyph { width: 40px; height: 40px; color: var(--v); }
