
:root {
  
  --vv-bottom: 0px;
  --fab-bottom: max(16px, env(safe-area-inset-bottom, 0px), var(--vv-bottom));

  --forest: #205C00;   
  --grass: #42AE01;    
  --grass-lt: #6FD12E; 
  --gold: #FFCF06;
  --gold-warm: #FDD302;
  --red: #ED2900;      

  
  --sun-deep: #F05423;
  --sun: #F47320;
  --sun-lt: #FDB515;

  --night: #0E2A00;    
  --deep: #143A00;

  --panel: #205c00a8;
  --line: #ffffff26;

  --ink: #F4F8EF;
  --dim: #A9C79A;

  --ok: var(--grass-lt);
  --warn: var(--gold);
  --bad: #FF6A4D;      
  --accent: var(--gold);
}
* { box-sizing: border-box; }


html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;   
  text-size-adjust: 100%;
}
img, video, svg, canvas, iframe { max-width: 100%; }

body {
  width: 100%;
  
  overflow-x: clip;
  max-width: 100%;
  margin: 0;
  
  touch-action: pan-y;
  color: var(--ink);
  background: var(--night);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--gold); color: #1B3D00; }

body.scenic { background: var(--night); }
body.scenic::before {
  content: ""; position: fixed; top: 0; left: 0; z-index: -1; pointer-events: none;
  width: 100%; height: 100vh; height: 100lvh;
  background: var(--night) url("backdrop.svg") center / cover no-repeat;
}

body.dawn { background: var(--night); }

body.dawn .parallax-bg {
  position: fixed; top: 0; left: 0; z-index: -1; pointer-events: none;
  
  
  width: 100%; height: 100vh; height: 100lvh;
  background: var(--night);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

body.dawn .parallax-bg > video,
body.dawn .parallax-bg > picture,
body.dawn .parallax-bg > picture > img,
body.dawn .parallax-bg > svg {
  display: block; width: 100%; height: 100%; object-fit: cover;
}

body.dawn .parallax-bg > .plane,
body.dawn .parallax-bg > .scene-life {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; object-fit: cover;
}
body.dawn .parallax-bg > .plane-fg { display: block; }

body.dawn .parallax-bg.gm-paused * { animation-play-state: paused !important; }

body.dawn .hero .sub,
body.dawn .lead,
body.dawn .body { text-shadow: 0 1px 3px #000c, 0 0 10px #000a; }

body.dawn > .wrap { position: relative; z-index: 1; }


body.dawn .frame-ornate {
  position: fixed; pointer-events: none; z-index: 15;   
  
  top: var(--frame-top, calc(6px + env(safe-area-inset-top)));
  right: calc(6px + env(safe-area-inset-right));
  bottom: calc(6px + env(safe-area-inset-bottom));
  left: calc(6px + env(safe-area-inset-left));
  border: 1.5px solid rgba(214, 172, 84, .8);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px #ffffff1a, inset 0 0 30px #0a1c0066, 0 0 12px #d9b55e26;
}
body.dawn .frame-ornate::before {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid rgba(198, 154, 70, .38); border-radius: 16px;
}
.corner-fl { position: absolute; width: clamp(54px, 16vw, 104px); opacity: .6; }
.corner-fl.tl { top: 1px; left: 1px; }
.corner-fl.tr { top: 1px; right: 1px; transform: scaleX(-1); }
.corner-fl.bl { bottom: 1px; left: 1px; transform: scaleY(-1); }
.corner-fl.br { bottom: 1px; right: 1px; transform: scale(-1, -1); }

h1 { font-size: 18px; margin: 0; }
h2 {
  font-size: 12px; margin: 0 0 12px; color: var(--grass-lt);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
}
a { color: var(--gold); }


.wordmark {
  font-weight: 900; letter-spacing: -.02em; line-height: .95;
  text-transform: uppercase; color: var(--gold);
}

.wordmark .geo { color: #fff; text-transform: none; }
.logo-frame {
  display: inline-block; border: 3px solid #fff; border-radius: 3px;
  padding: 10px 20px 12px;
}
.tagline { color: #fff; font-style: italic; letter-spacing: .01em; }

button {
  min-height: 42px; padding: 0 15px; border: 0; border-radius: 10px;
  background: #2c6f06; color: var(--ink); font: inherit; font-weight: 600;
  cursor: pointer; transition: background .12s, transform .06s;
}
button:hover:not(:disabled) { background: #37850a; }
button:active:not(:disabled) { transform: translateY(1px); }
button.primary, a.primary {
  
  background: #FFCF06;
  color: #1B3D00;
  font-weight: 800;
  letter-spacing: .02em;
  opacity: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
}
button.primary:hover:not(:disabled), a.primary:hover { background: #ffd93a; }
button.danger { background: #4a1505; color: #ffb4a4; }
button.ghost, a.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
button.ghost:hover:not(:disabled), a.ghost:hover { background: #ffffff12; border-color: #fff; }
button:disabled { opacity: .38; cursor: not-allowed; }
button.primary:disabled { opacity: 1; filter: grayscale(.15) brightness(.92); cursor: not-allowed; }
button.sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
a.primary, a.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 15px; border-radius: 10px;
  text-decoration: none; box-sizing: border-box; cursor: pointer;
  font: inherit;
}
a.ghost { font-weight: 600; }

input, textarea, select {
  width: 100%; padding: 10px 11px; border-radius: 9px;
  border: 1px solid var(--line); background: #0b2400; color: var(--ink);
  font: inherit;
  font-size: 16px; 
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px #ffcf0626;
}
input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: var(--gold); }
textarea { resize: vertical; min-height: 76px; }
label { display: block; font-size: 12px; color: var(--dim); margin: 12px 0 5px; }

.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px;
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  
  box-shadow: 0 10px 28px -12px #000a, inset 0 1px 0 #ffffff14;
  max-width: 100%; min-width: 0; overflow-wrap: anywhere;
}
.row { display: flex; gap: 8px; align-items: center; }
.grow { flex: 1; }
.muted { color: var(--dim); font-size: 13px; }

.tag {
  font-size: 10px; padding: 3px 8px; border-radius: 99px; font-weight: 800;
  letter-spacing: .08em; background: #ffffff14; color: var(--dim);
}
.tag.ar { background: #ffcf0626; color: var(--gold); }
.tag.popup { background: #42ae0133; color: var(--grass-lt); }

.err { color: var(--bad); font-size: 13px; }
.ok { color: var(--grass-lt); }
.mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}


.xmark { color: var(--gold); font-weight: 900; transform: rotate(-8deg);
         display: inline-block; }


.appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  
  background: linear-gradient(#0616004f, #06160000);
  border-bottom: 0;
}

.appbar button, .appbar .brand, .appbar .section-chip { white-space: nowrap; }
.appbar .membermenu button {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.brand {
  display: inline-flex; align-items: baseline; gap: 6px;
  text-decoration: none; padding: 4px 8px; border-radius: 8px;
  border: 2px solid #fff; line-height: 1;
}
.brand:hover { background: #ffffff12; }
.brand .wordmark { font-size: 17px; }
.brand .xmark { font-size: 12px; }


.section-chip {
  flex: 1 1 auto; align-self: center; min-width: 0; max-width: 22ch;
  overflow: hidden; text-overflow: ellipsis;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); background: #ffcf061f; border: 1px solid #ffcf0647;
  padding: 5px 11px; border-radius: 99px; white-space: nowrap;
}
.section-chip:empty { display: none; }

@media (max-width: 720px) {
  .section-chip { display: none; }
  .appbar { gap: 7px; padding: 10px 10px; }
  .brand { padding: 3px 6px; }
  .brand .wordmark { font-size: 15px; }
}

.langswitch { display: inline-flex; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.langswitch button {
  flex: 0 0 auto; min-width: 40px; min-height: 30px; padding: 0 10px;
  border-radius: 0; background: transparent;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--dim);
}
.langswitch button[aria-pressed="true"] { background: var(--gold); color: #1B3D00; }
#authbox, .member { flex: 0 0 auto; }



.tabs { display: flex; gap: 6px; flex-wrap: nowrap; justify-content: center;
  width: 100%; max-width: 680px; margin: 0 auto;
  padding: 0; background: none; border: 0; }



.pledge-banner { display: flex; align-items: baseline; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin: 18px auto 0; max-width: 520px; padding: 14px 18px;
  border-radius: 14px; background: #ffcf0614; border: 1px solid #ffcf0640; }
.pledge-banner b { font-size: 40px; font-weight: 900; color: var(--gold); line-height: 1;
  font-variant-numeric: tabular-nums; }
.pledge-banner span { color: var(--ink); font-size: 14px; max-width: 22ch; }

.tab {
  flex: 1 1 0; min-width: 0; white-space: normal; overflow: hidden;
  scroll-snap-align: center; line-height: 1.2;
  min-height: 44px; padding: 4px 10px; border-radius: 10px;
  color: #EEE2BC; font-weight: 700; font-size: 13.5px;
  border: 1px solid rgba(198, 154, 70, .5);
  background: linear-gradient(180deg, #1a3d1299 0%, #0a2206cc 100%);
  box-shadow: inset 0 1px 0 #ffffff1f, inset 0 -3px 8px #00000057, 0 2px 4px #0000006b;
  text-shadow: 0 1px 2px #000a;
  transition: background .14s, color .14s, border-color .14s, box-shadow .14s;
}
.tab:hover { color: #fff; border-color: rgba(214, 172, 84, .85);
  background: linear-gradient(180deg, #24501899 0%, #0e2c08cc 100%); }

.tab[aria-selected="true"] {
  color: var(--gold); border-color: rgba(255, 207, 6, .78);
  background: linear-gradient(180deg, #ffcf0e38 0%, #ffcf0e12 100%);
  box-shadow: inset 0 1px 0 #ffffff33, inset 0 -3px 8px #0000004d, 0 0 14px #ffcf0647;
}


@media (max-width: 640px) {
  .tabbar { margin-bottom: 20px; }
  .tab {
    flex: 1 1 0;
    min-width: 0; min-height: 44px; padding: 5px 6px;
    white-space: normal; font-size: 12px; line-height: 1.15; letter-spacing: .01em;
  }
}

.tabpanel[hidden] { display: none; }


.diff-chip {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  padding: 1px 8px; border-radius: 99px; vertical-align: middle; text-transform: uppercase;
}
.diff-easy   { background: #2f7a1a33; color: #7fd94e; border: 1px solid #7fd94e55; }
.diff-medium { background: #d8a12a26; color: #ffcf06; border: 1px solid #ffcf0655; }
.diff-hard   { background: #ed290026; color: #ff7a5c; border: 1px solid #ed290066; }
.diff-extreme { background: #a21caf26; color: #e879f9; border: 1px solid #c026d366; }


.callout { background: #ffcf060f; border: 1px solid #ffcf0640; border-radius: 12px;
  padding: 14px 16px; color: var(--ink); font-size: 13.5px; line-height: 1.5; }

.loc-slim {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  position: relative; z-index: 0;
  margin: 0 0 12px; padding: 8px 12px;
  background: #c9a106; color: #1B3D00;
  border-radius: 8px; font-size: 13px; font-weight: 700; line-height: 1.35;
  box-sizing: border-box; max-width: 100%;
}
.loc-slim p {
  margin: 0; flex: 1 1 12rem; min-width: 0;
  overflow-wrap: anywhere; hyphens: auto;
}
.loc-slim-go {
  flex: none; margin-left: auto;
  background: none; border: 0; padding: 0;
  color: #1B3D00; font-weight: 800; font-size: 13px;
  text-decoration: underline; cursor: pointer;
}

.tours-upper-band {
  display: grid; gap: 10px; margin: 0 0 14px;
}
.tours-upper-band .tour-art { margin-bottom: 0; }

#play-tours-marketing[hidden] { display: none !important; }
#play-tours-marketing { margin: 0 0 12px; }
#play-tours-marketing .play-start-wrap { margin: 4px 0 10px; }
#play-tours-marketing #tours-start { width: min(100%, 320px); }

#play-cat-panel-race { display: none !important; }
#play-list > .ticket-well[hidden] { display: none !important; }
.kid-count { display: flex; gap: 6px; flex-wrap: wrap; }
.kc-btn { min-height: 34px; width: 38px; padding: 0; border-radius: 9px; font-weight: 800;
  background: #0b240066; color: var(--dim); border: 1px solid var(--line); }
.kc-btn.is-on { background: #ffcf0618; color: var(--gold); border-color: #ffcf0640; }
.kids { display: grid; gap: 12px; }
.kid-card { display: grid; gap: 6px; }
.player-no { font-weight: 800; color: var(--gold); font-size: 13px; white-space: nowrap;
  background: #ffcf0614; border: 1px solid #ffcf0640; border-radius: 99px; padding: 3px 11px; }
.cache-list { display: grid; gap: 7px; }
.cache-row { display: grid; grid-template-columns: 1fr 88px 88px auto; gap: 7px; align-items: center; }
.cache-row .coord { min-width: 0; }
@media (max-width: 560px) { .cache-row { grid-template-columns: 1fr 1fr auto; }
  .cache-row input:first-child { grid-column: 1 / -1; } }


.comments { margin-top: 10px; }
.comments summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--grass-lt);
  list-style: none; padding: 4px 0; user-select: none; }
.comments summary::-webkit-details-marker { display: none; }
.cmt-body { padding: 4px 0 2px; }
.cmt { border-top: 1px solid var(--line); padding: 8px 0; }
.cmt:first-child { border-top: 0; }
.cmt-head { display: flex; align-items: center; gap: 8px; }
.cmt-head b { font-size: 12.5px; }
.cmt-at { color: var(--dim); font-size: 11px; }
.cmt-del { min-width: 24px; min-height: 24px; padding: 0 6px; margin-left: auto; background: transparent;
  color: var(--dim); font-size: 12px; }
.cmt-del:hover { color: var(--red); background: transparent; }
.cmt p { margin: 3px 0 0; font-size: 13px; color: var(--ink); }
.cmt-add { display: flex; gap: 8px; margin-top: 10px; }
.cmt-add input { flex: 1; min-width: 0; }


.diff-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.diff-opt {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-height: 0; padding: 12px 6px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: #0b240066; color: var(--dim);
}
.diff-opt .diff-fig { width: 30px; height: 40px; color: var(--dim); }
.diff-opt b { font-size: 14px; color: var(--ink); }
.diff-opt small { font-size: 10.5px; color: var(--dim); }
.diff-opt.is-on { border-color: var(--gold); background: #ffcf0614; }
.diff-opt.is-on .diff-fig, .diff-opt.is-on b { color: var(--gold); }


.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge-card {
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line); background: #0b240066;
}
.badge-card b { font-size: 13.5px; }
.badge-card small { font-size: 11px; color: var(--dim); }
.badge-card.is-locked { opacity: .45; filter: grayscale(.7); }
.badge-svg { display: block; }


.badge-wrap { display: inline-flex; cursor: pointer; border-radius: 50%; outline: none;
  transition: transform .12s; }
.badge-wrap:hover, .badge-wrap:focus-visible { transform: translateY(-2px) scale(1.08); }
.badge-wrap.is-locked { opacity: .5; filter: grayscale(.65); }
.badge-backdrop { position: fixed; inset: 0; z-index: 59; background: #000a; opacity: 0;
  pointer-events: none; transition: opacity .14s; }
.badge-backdrop.show { opacity: 1; pointer-events: auto; }
.badge-pop { position: fixed; z-index: 60; width: 264px; max-width: calc(100vw - 24px);
  background: #0c2a00f5; border: 1px solid #ffffff2e; border-radius: 16px; padding: 16px 16px 14px;
  text-align: center; box-shadow: 0 18px 50px #000b; opacity: 0; pointer-events: none;
  transform: scale(.96); transition: opacity .12s, transform .12s;
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.badge-pop.show { opacity: 1; transform: scale(1); }
.badge-pop.as-modal { left: 50% !important; top: 50% !important;
  transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.badge-pop-art { display: flex; justify-content: center; margin-bottom: 8px;
  filter: drop-shadow(0 8px 16px #000a); }
.badge-pop-art.is-locked { opacity: .55; filter: grayscale(.7) drop-shadow(0 8px 16px #0007); }
.badge-pop-title { font-weight: 800; font-size: 17px; color: #fff; }
.badge-pop-sub { font-size: 12.5px; color: var(--gold); font-weight: 700; margin: 2px 0 8px; }
.badge-pop-desc { font-size: 13px; color: #cfe3bf; line-height: 1.45; }
.badge-pop-tag { margin-top: 11px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); }


.coll-card { max-width: 540px; width: 100%; max-height: 86vh; }
.modal.coll-modal .coll-card {
  max-width: 540px; width: 100%; max-height: min(86vh, 100%);
  display: flex; flex-direction: column; overflow: hidden;
}
.modal.coll-modal .coll-card .coll-head { flex: none; }
.modal.coll-modal .coll-card .sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.modal.coll-modal .coll-card .sheet-cta {
  flex: none;
  background: var(--panel-solid, #0b2400);
  box-shadow: 0 -12px 16px var(--panel-solid, #0b2400);
}
.coll-h { margin: 16px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--gold); }
.modal.coll-modal .coll-card .sheet-body > .coll-h:first-child { margin-top: 8px; }


.coll-tabs {
  display: flex; gap: 6px; margin-top: 10px;
  position: sticky; top: 0; z-index: 2;
  background: var(--panel-solid, #0b2400);
  padding: 2px 0 6px;
}
.coll-tab {
  flex: 1; min-height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: #0b240066; color: var(--dim); font-weight: 700; font-size: 13px;
  cursor: pointer;
}
.coll-tab.on, .coll-tab[aria-selected="true"] {
  border-color: var(--gold); color: var(--gold); background: #ffcf0614;
}
.coll-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.coll-filter-btn {
  border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--dim); font-size: 12px; font-weight: 700; padding: 5px 11px; cursor: pointer;
}
.coll-filter-btn.on { border-color: var(--gold); color: var(--gold); background: #ffcf0614; }
.coll-next {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; margin: 0 0 12px; border-radius: 14px;
  border: 1px solid #ffcf0640; background: #ffcf0610;
}
.coll-next-art { display: flex; justify-content: center; }
.coll-next-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.coll-next-meta b { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .04em; }
.coll-next-meta span { font-size: 13px; color: var(--ink); line-height: 1.35; }
.medal-list { display: flex; flex-direction: column; gap: 8px; }
.board-teaser { padding: 4px 2px 8px; }
.board-teaser-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.board-teaser-count { margin: 0; font-weight: 700; font-size: 15px; }
.board-teaser-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.board-teaser-chip { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.board-teaser-chip svg { width: 40px; height: 40px; display: block; }

.medal-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center;
  width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: #0b240066; color: inherit; cursor: pointer;
}
.medal-row:hover, .medal-row:focus-visible { border-color: #ffcf0666; background: #ffcf060c; }
.medal-row.is-locked .medal-art { opacity: .55; filter: grayscale(.65); }
.medal-art { display: flex; justify-content: center; }
.medal-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.medal-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-weight: 800; font-size: 14.5px; color: #fff; }
.medal-how { font-size: 12.5px; color: var(--dim); line-height: 1.35; }
.medal-bar {
  display: block; height: 4px; border-radius: 99px; background: #ffffff14; overflow: hidden; margin-top: 2px;
}
.medal-bar > i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.medal-tier {
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 99px; padding: 2px 8px; border: 1px solid currentColor;
}
.medal-tier-bronze { color: #f0b878; }
.medal-tier-silver { color: #c9d3db; }
.medal-tier-gold { color: #ffcf06; }
.medal-state { font-size: 16px; opacity: .9; }


.mm-actions { display: flex; gap: 8px; margin: 4px 0 2px; }
.mm-coll, .mm-invite { display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; flex: 1; min-width: 0; width: auto;
  min-height: 44px; padding: 6px 6px; margin: 0; border-radius: 9px;
  font-size: 12px; font-weight: 700; line-height: 1.25; text-align: center;
  overflow: visible; }
.mm-coll span, .mm-invite span { overflow: visible; text-overflow: unset;
  white-space: normal; text-align: center; line-height: 1.25; }
.mm-coll { background: #ffcf0614; color: var(--gold); border: 1px solid #ffcf0640; }
.mm-coll:hover { background: #ffcf0622; }
.mm-invite { background: #42ae0114; color: var(--grass-lt); border: 1px solid #42ae0140; }
.mm-invite:hover { background: #42ae0122; }

.mm-bench { display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; width: 100%;
  min-height: 44px; padding: 6px 6px; margin: 6px 0 2px; border-radius: 9px;
  font-size: 12px; font-weight: 700; line-height: 1.25; text-align: center;
  overflow: visible;
  background: #ffcf0614; color: var(--gold); border: 1px solid #ffcf0640; }
.mm-bench:hover { background: #ffcf0622; }
.mm-bench span { overflow: visible; text-overflow: unset;
  white-space: normal; text-align: center; line-height: 1.25; }


.mm-utils {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0 2px;
}
.mm-utils .mm-cal,
.mm-utils .mm-report-problem {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.mm-utils .mm-cal:hover:not(:disabled),
.mm-utils .mm-report-problem:hover:not(:disabled) {
  background: #ffffff12;
  border-color: #fff;
}
.mm-utils .mm-cal[hidden] { display: none; }
.mm-utils .mm-report-problem { margin-left: 0; }


.tour-back { position: fixed; inset: 0; z-index: 70; background: #04140acc; display: flex;
  align-items: center; justify-content: center; padding: 22px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.tour-back[hidden] { display: none; }   
.tour-card { position: relative; width: 380px; max-width: 100%; text-align: center;
  background: #0c2a00f5; border: 1px solid #ffffff26; border-radius: 18px; padding: 26px 22px 20px;
  box-shadow: 0 20px 60px #000b; }
.tour-card h2 { font-size: 20px; margin: 4px 0 8px; color: #fff; text-transform: none; letter-spacing: 0; }
.tour-card p { color: #cfe3bf; font-size: 14px; line-height: 1.55; margin: 0; }
.tour-icon { font-size: 46px; line-height: 1; }
.tour-skip { position: absolute; top: 12px; right: 12px; min-height: 0; padding: 4px 10px;
  background: transparent; color: var(--dim); font-size: 12px; }
.tour-dots { display: flex; gap: 7px; justify-content: center; margin: 18px 0 16px; }
.tour-dot { width: 7px; height: 7px; border-radius: 99px; background: #ffffff33; }
.tour-dot.on { background: var(--gold); width: 20px; }
.tour-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-nav .primary { min-width: 120px; }


.invite-card { max-width: 420px; width: 100%; }

.invite-hint { font-size: 11.5px; line-height: 1.5; margin: 6px 0 0; }

.invite-appnote {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 10px;
  background: #42ae0114; border: 1px solid #42ae0140;
  color: var(--grass-lt); font-size: 12px; line-height: 1.55;
}
.invite-link { display: flex; gap: 8px; margin: 12px 0 14px; }
.invite-link input { flex: 1; min-width: 0; font: inherit; padding: 9px 11px; border-radius: 10px;
  border: 1px solid var(--line); background: #0b2400; color: var(--dim); }
.invite-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.invite-b { display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  min-height: 42px; padding: 0 12px; border-radius: 10px; font-weight: 700; font-size: 13.5px;
  background: #0b240066; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.invite-b:hover { background: #205c0033; border-color: var(--grass); }


.preview-chip { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 52;
  background: #0b2400e6; border: 1px solid #ffcf0640; color: var(--gold); font-weight: 700;
  font-size: 12.5px; padding: 6px 14px; border-radius: 99px; pointer-events: none;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.preview-lock { position: fixed; inset: 0; z-index: 55; display: flex; align-items: center;
  justify-content: center; padding: 24px; background: #04140af2;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.preview-card { max-width: 380px; width: 100%; text-align: center; background: #0c2a00;
  border: 1px solid #ffffff26; border-radius: 18px; padding: 30px 24px; box-shadow: 0 20px 60px #000c; }
.preview-card h2 { font-size: 20px; text-transform: none; letter-spacing: 0; color: #fff; margin: 6px 0 8px; }
.preview-card p { color: #cfe3bf; font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.preview-icon { font-size: 44px; }
.preview-card .primary { width: 100%; }


.badge-hero .badge-rays { transform-box: fill-box; transform-origin: center;
  animation: badge-spin 16s linear infinite; }
.badge-hero .badge-spark { transform-box: fill-box; transform-origin: center;
  animation: badge-tw 2.4s ease-in-out infinite; }
.badge-hero .badge-spark:nth-of-type(2) { animation-delay: .5s; }
.badge-hero .badge-spark:nth-of-type(3) { animation-delay: 1s; }
.badge-hero .badge-spark:nth-of-type(4) { animation-delay: 1.5s; }
.badge-hero .badge-shine { animation: badge-glint 3.2s ease-in-out infinite; }
@keyframes badge-spin { to { transform: rotate(360deg); } }
@keyframes badge-tw { 0%, 100% { opacity: .25; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes badge-glint { 0%, 100% { opacity: .18; } 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .badge-hero * { animation: none !important; } }
.score-pill {
  font-weight: 800; color: var(--gold); background: #ffcf0614;
  border: 1px solid #ffcf0640; border-radius: 99px; padding: 3px 12px; font-size: 13px;
}
.badge-next {
  font: 700 13px/1.2 system-ui, sans-serif; color: var(--gold); margin-right: 10px;
}


.diff-readout { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.diff-readout .muted { font-size: 12px; }
.badge-grid-4 { grid-template-columns: repeat(auto-fit, minmax(94px, 1fr)); }


.board-head, .board-row {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center;
}
.board-head { padding: 0 14px 6px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--dim); }
.board-row { padding: 11px 14px; }
.board-row.is-you { border-color: var(--gold); background: #ffcf060d; }
.board-pos { font-size: 16px; font-weight: 800; text-align: center; }
.board-id { min-width: 0; }
.board-name { font-weight: 700; display: flex; align-items: center; gap: 6px;
  overflow: hidden; text-overflow: ellipsis; }
.ach-mini { display: inline-flex; gap: 2px; flex: none; }
.board-sub { display: flex; align-items: center; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.board-time { font-size: 11.5px; color: var(--dim); }
.board-score { text-align: right; font-weight: 800; color: var(--gold); font-size: 17px; }
.board-score small { display: block; font-size: 9.5px; color: var(--dim); font-weight: 700;
  letter-spacing: .04em; }


.board-tabs { display: flex; gap: 6px; margin: 12px 0 4px; flex-wrap: wrap; }
.board-tab {
  flex: 1 1 calc(25% - 6px); min-width: 72px;
  padding: 9px 6px; border-radius: 10px; font-weight: 700; font-size: 13px;
  border: 1px solid var(--line); background: transparent; color: var(--dim);
  cursor: pointer;
}
.board-tab.is-on { border-color: var(--grass); color: var(--ink); background: #42ae010f; }

.board-section + .board-section { margin-top: 22px; }
.board-row.is-tappable { cursor: pointer; }
.board-row.is-tappable:hover,
.board-row.is-tappable:focus-visible { border-color: var(--grass); }



.trust {
  flex: none; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--dim); white-space: nowrap;
}
.trust-gold   { border-color: var(--gold);  color: var(--gold);     background: #ffcf060f; }
.trust-silver { border-color: #b9c6d0;      color: #b9c6d0;         background: #b9c6d00f; }
.trust-bronze { border-color: #c8823c;      color: #d69a5e;         background: #c8823c0f; }
.trust-low    { border-color: var(--line);  color: var(--dim); }
.trust-new    { border-color: var(--line);  color: var(--dim);      font-style: italic; }

.by-line { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.by-line .builder-link {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}


.mission-row.ticket .ticket-by {
  margin-top: 4px; font-size: 11.5px; font-weight: 650; letter-spacing: .1px;
  opacity: .88; position: relative; z-index: 2;
  
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.mission-row.ticket:not(.ticket-banner) .ticket-by { color: #1B3D00; }
.ticket-banner .ticket-by, .mission-row.ticket.ticket-banner .ticket-by {
  color: #fff; text-shadow: 0 1px 2px #000c; opacity: .92;
}


.mission-row.ticket .ticket-preview-quiet {
  display: inline-block; margin-top: 4px; padding: 0; border: 0; background: none;
  cursor: pointer; font: inherit; font-size: 11px; font-weight: 600;
  letter-spacing: .1px; text-decoration: underline; text-underline-offset: 2px;
  opacity: .72; position: relative; z-index: 2;
}
.mission-row.ticket:not(.ticket-banner) .ticket-preview-quiet { color: #3d5c2a; }
.ticket-banner .ticket-preview-quiet,
.mission-row.ticket.ticket-banner .ticket-preview-quiet {
  color: #e8f2e0; text-shadow: 0 1px 2px #000c; opacity: .78;
}
.mission-row.ticket .ticket-preview-quiet:hover { opacity: 1; }

.builder-link {
  background: none; border: 0; padding: 0; cursor: pointer; font-size: 12.5px;
  font-weight: 700; color: var(--grass-lt); text-decoration: underline;
  text-underline-offset: 2px;
}


.mm-mine-row { display: flex; flex-direction: column; gap: 1px; padding: 6px 0;
  border-bottom: 1px solid var(--line); }
.mm-mine-row:last-of-type { border-bottom: 0; }
.mm-mine-row b { font-size: 13px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.mm-mine-row small { font-size: 11.5px; color: var(--dim); min-width: 0; max-width: 100%;
  overflow-wrap: anywhere; }
.mm-mine-sum { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--gold); }


.rate-line { margin: 0 0 10px; font-size: 13px; line-height: 1.55; }
.rate-table { margin: 0 0 14px; }
.rate-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px; padding: 7px 0; align-items: baseline;
  border-bottom: 1px solid var(--line); font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  min-width: 0; max-width: 100%;
}
.rate-row > * { min-width: 0; overflow-wrap: anywhere; }
.rate-row:last-child { border-bottom: 0; }
.rate-row span:not(:first-child) { text-align: right; }
.rate-row.is-head {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--dim); font-weight: 700; border-bottom-color: var(--gold);
}
@media (max-width: 480px) {
  
  .rate-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, .8fr);
    gap: 4px; font-size: 12.5px; }
  .rate-row.is-head { font-size: 10.5px; }
}


.ladder-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.ladder-row:last-of-type { border-bottom: 0; }
.ladder-row b { font-variant-numeric: tabular-nums; font-size: 14.5px; }

.ladder-row.is-quality { margin-top: 4px; border-top: 1px solid var(--line); }
.ladder-row.is-quality b { color: var(--gold); }
.ladder-row.is-quality span { color: var(--gold); font-weight: 600; }
.ladder-note { margin-top: 10px; font-size: 12px; line-height: 1.5; }


.gallery {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 0 14px;
  
  scrollbar-width: none; -ms-overflow-style: none;
  touch-action: pan-x pan-y;
  cursor: grab; user-select: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.gallery img { -webkit-user-drag: none; }

.gallery figure {
  flex: none; margin: 0; scroll-snap-align: center;
  height: min(260px, 52vw); aspect-ratio: 3 / 2; max-width: 100%;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: #0b2400; position: relative;
  box-shadow: 0 10px 28px -14px #000b;
}
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px;
  font-size: 12px; font-weight: 600; color: #fff;
  background: none; text-shadow: 0 1px 3px #000d, 0 0 12px #000a;
}
.gallery-dots { display: flex; gap: 7px; justify-content: center; margin-top: 4px; }

#dots { display: none; }
.gallery-dots button {
  width: 24px; height: 24px; min-height: 0; padding: 0; background: none; border: 0;
  display: grid; place-items: center; cursor: pointer;
}
.gallery-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px;
  background: #ffffff33; transition: width .2s; }
.gallery-dots button[aria-current="true"]::before { background: var(--gold); width: 22px; }


.stars { display: inline-flex; gap: 2px; }
.stars button, .stars span {
  min-width: 24px; min-height: 24px; padding: 3px; background: none; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; color: #ffffff33; cursor: pointer;
}
.stars span { cursor: default; }
.stars .on { color: var(--gold); }
.stars button:hover ~ button { color: #ffffff33; }


body.tab-play .hero { display: none; }
html.play-map-on,
body.play-map-on {
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%;
  max-height: 100dvh;
}
body.play-map-on .parallax-bg,
body.play-map-on .frame-ornate,
body.play-map-on::before { visibility: hidden; }

body.play-map-on .appbar,
body.build-map-on .appbar {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  max-width: none;
  width: auto;
  height: 0;
  overflow: visible;
}
body.play-map-on .appbar > *:not(#authbox) {
  display: none !important;
}
body.build-map-on .appbar > *:not(#authbox):not(.brand) {
  display: none !important;
}
body.play-map-on #authbox,
body.build-map-on #authbox {
  pointer-events: auto;
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 35;
  margin: 0;
}
body.build-map-on .appbar .brand {
  pointer-events: auto;
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  z-index: 35;
  margin: 0;
}
body.play-map-on .wrap {
  max-width: none;
  padding: 0;
}

body.tab-play .tabbar,
body.play-map-on .tabbar { display: none !important; }
body.play-map-on #p-play .play-head { display: none; }

body.play-map-on .home-foot {
  display: none !important;
}
body.play-map-on #play-list,
body.play-map-on #play-detail {
  visibility: hidden;
  pointer-events: none;
}

body.play-map-on #play-roam {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #0b0f0c;
}
body.play-map-on #roam-map-wrap {
  position: absolute; inset: 0;
  height: auto; border-radius: 0; border: 0;
  z-index: 1; background: #0b0f0c;
}


.play-home {
  display: none;
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  z-index: 30;
  min-width: 44px; min-height: 44px;
  padding: 2px 4px;
  border-radius: 10px; border: 0;
  background: none; color: inherit;
  place-items: center;
  touch-action: manipulation;
  cursor: pointer;
}

body.play-map-on #play-home { display: grid; }
.play-home:hover, .play-home:focus-visible { background: #ffffff10; }

.play-home .brand-lockup {
  display: block; width: clamp(112px, 26vw, 150px); height: auto;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .55));
  pointer-events: none;
}
@media (max-width: 640px) {
  .play-home {
    min-width: 48px; min-height: 48px;
  }
}

.play-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.play-head h2 { margin: 0; }
.play-modes { display: flex; gap: 6px; }
.play-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.play-cats button.on { border-color: var(--gold); color: var(--gold); background: #ffcf0614; }
.browse-filters.is-cat-hidden { display: none !important; }

.play-modes button.on { border-color: var(--gold); color: var(--gold); background: #ffcf0614; }
.play-start-wrap {
  display: flex; justify-content: center;
  margin: 4px 0 18px;
}
#play-start, #tours-start {
  min-width: min(280px, 100%);
  min-height: 48px;
  padding: 0 28px;
  font-size: 16px;
}

button.play-filter-btn {
  width: 40px; height: 40px; min-height: 40px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid #ffffff33; border-radius: 10px;
  background: #ffffff10; color: #fff;
}
button.play-filter-btn:hover:not(:disabled) {
  background: #ffffff18; border-color: #ffffff66; color: #fff;
}
button.play-filter-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button.play-filter-btn.is-on,
button.play-filter-btn[aria-expanded="true"],
button.play-filter-btn.is-on:hover:not(:disabled),
button.play-filter-btn[aria-expanded="true"]:hover:not(:disabled) {
  border-color: var(--gold); color: var(--gold); background: #ffcf0614;
}
.browse-filters.is-play { display: none; }
.browse-filters.is-play.is-open {
  display: grid;
  overflow: visible;
  position: relative;
  z-index: 5;
}

.play-shelves[hidden],
.play-start-wrap[hidden] { display: none !important; }



.play-list-bubble-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}
.play-list-bubble-bar .play-shelves {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}
.play-list-bubble-bar > .play-filter-btn {
  flex: 0 0 auto;
  margin-left: auto;
}

.play-list-bubble-bar > .play-type-filter-types {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  order: 3;
}
.play-type-filter-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: min(320px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid #ffffff33;
  border-radius: 12px;
  background: #13280ad9;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px #00000055;
}
.play-type-filter-menu[hidden] { display: none !important; }
.play-type-filter-types,
.map-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.play-type-filter-types[hidden] { display: none; }

.map-type-chips { margin: 2px 0 8px; }
.play-type-filter-types button.on,
.map-type-chips button.on,
.play-lang-filter button.on {
  border-color: var(--gold);
  color: var(--gold);
  background: #ffcf0614;
}


.play-type-filter-menu > .play-lang-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid #ffcf0628;
}
.play-lang-filter[hidden] { display: none; }

.play-type-filter-menu .browse-filters.is-play {
  display: grid;
  margin: 0;
}
.play-type-filter-menu .browse-filters.is-play.is-cat-hidden {
  display: none !important;
}

.play-shelves {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 16px;
}
.browse-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
  align-items: stretch;
}
.browse-filters.is-play {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .browse-filters.is-play { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.browse-filter { display: block; margin: 0; min-width: 0; }
.browse-filter-lbl {
  display: block;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.25;
  color: var(--gold);
  overflow-wrap: anywhere;
}
.browse-filters select {
  width: 100%;
  margin: 0;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 14px;
}
.browse-filters .ghost {
  grid-column: 1 / -1;
  justify-self: start;
}
.play-shelves button {
  min-height: 44px;
  padding: 6px 8px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}
.play-shelves button.on {
  background: var(--gold);
  color: #1B3D00;
  border-color: var(--gold);
}
.play-shelves button.on:hover:not(:disabled) { background: #ffd93a; color: #1B3D00; }
#play-pane-public[hidden],
#play-pane-private[hidden],
#play-pane-mine[hidden] { display: none !important; }
a.primary[hidden], button.primary[hidden] { display: none !important; }
.play-invite {
  display: grid; gap: 8px;
  margin: 0 0 16px; padding: 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #ffffff0d;
}
.play-invite label {
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold);
}
.play-invite-row { display: flex; gap: 8px; flex-wrap: wrap; }
.play-invite-row input {
  flex: 1 1 10rem; min-width: 0;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
}
.play-build-wrap {
  display: flex; justify-content: center;
  margin: 0 0 16px;
}
#play-build {
  min-width: min(280px, 100%);
  min-height: 48px;
  padding: 0 28px;
  font-size: 16px;
}
.mine-pencil {
  min-width: 44px; min-height: 44px;
  padding: 0; font-size: 18px;
}
#roam-map-wrap {
  position: relative; height: min(70vh, 560px); border-radius: 14px; overflow: hidden;
  background: #0b0f0c; border: 1px solid #ffcf0640;
}
#roam-map { width: 100%; height: 100%; display: block; touch-action: none; }
.roam-edge {
  position: absolute;
  z-index: 3;
  width: 44px; height: 44px;
  min-width: 44px; min-height: 44px;
  margin: 0; padding: 0;
  border-radius: 50%;
  border: 2px solid #3db8ff;
  background: #0b2400e8;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px #00000066;
  display: grid; place-items: center;
  cursor: pointer;
  touch-action: manipulation;
}
.roam-edge svg { width: 22px; height: 22px; display: block; transform-origin: 50% 50%; }
.roam-edge[hidden] { display: none; }
.roam-edge:hover, .roam-edge:focus-visible { background: #143a00f0; }
.map-compass {
  position: absolute;
  left: 50%;
  top: var(--map-chrome-top, 10px);
  z-index: 3;
  width: 44px; height: 44px;
  min-width: 44px; min-height: 44px;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid #ffcf0640;
  background: #0b2400e8;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px #00000066;
  cursor: pointer;
}
.map-compass svg { width: 28px; height: 28px; display: block; }
.map-compass:hover:not(:disabled) { background: #143a00f0; }
.map-compass:active:not(:disabled) { transform: translateX(-50%); }
.map-compass.is-tracking {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px #ffcf0666, 0 2px 8px #00000066;
}
body.play-map-on #roam-map-wrap .map-compass {
  top: var(--map-chrome-top, max(10px, env(safe-area-inset-top)));
}
#build-map-wrap .map-compass {
  
  top: var(--map-chrome-top, max(10px, env(safe-area-inset-top)));
}
#roam-status {
  position: absolute; left: 10px; right: 70px; bottom: calc(52px + var(--fab-bottom)); z-index: 2;
  margin: 0; padding: 7px 10px; border-radius: 10px;
  background: #0b2400cc; color: var(--gold); font-size: 13px; font-weight: 700;
}
#roam-status:empty,
#roam-status[hidden] { display: none; }
.nearby-bubble {
  position: absolute; z-index: 3;
  right: max(10px, env(safe-area-inset-right));
  bottom: var(--fab-bottom);
  min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: 99px; border: 0;
  background: var(--gold); color: #1B3D00;
  font-weight: 900; font-size: 16px;
  box-shadow: 0 6px 20px #0008;
}
.nearby-bubble:hover, .nearby-bubble:focus-visible { background: #ffd93a; }
.nearby-bubble[hidden] { display: none; }
#nearby-panel {
  position: absolute; z-index: 4;
  right: max(10px, env(safe-area-inset-right));
  bottom: calc(52px + var(--fab-bottom));
  width: min(360px, calc(100% - 20px));
  max-height: min(60vh, 440px);
  overflow: auto;
  padding: 12px;
  background: #0c2a00f5; border: 1px solid #ffffff26; border-radius: 16px;
  box-shadow: 0 16px 40px #000a;
  display: grid; gap: 8px;
}
.clue-bubble {
  position: absolute; z-index: 3;
  
  left: auto;
  right: calc(max(10px, env(safe-area-inset-right)) + 44px + 10px);
  bottom: var(--fab-bottom);
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0;
  border-radius: 99px; border: 0;
  background: var(--gold); color: #1B3D00;
  box-shadow: 0 6px 20px #0008;
  display: grid; place-items: center;
}
.group-bubble {
  position: absolute; z-index: 5;
  left: auto;
  right: calc(max(10px, env(safe-area-inset-right)) + 44px + 10px + 44px + 10px);
  bottom: var(--fab-bottom);
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0;
  border-radius: 99px; border: 0;
  background: var(--gold); color: #1B3D00;
  box-shadow: 0 6px 20px #0008;
  display: grid; place-items: center;
  pointer-events: auto;
  touch-action: manipulation;
}
.group-bubble svg { display: block; }
.group-bubble:hover, .group-bubble:focus-visible { background: #ffd93a; }
.group-bubble.is-tight {
  right: calc(max(10px, env(safe-area-inset-right)) + 44px + 10px);
}

#group-panel, #hunt-pick-panel {
  position: absolute; z-index: 6;
  left: auto;
  right: max(10px, env(safe-area-inset-right));
  bottom: calc(52px + var(--fab-bottom));
  width: min(360px, calc(100% - 20px));
  max-height: min(60vh, 440px);
  overflow: auto;
  padding: 12px;
  background: #0c2a00f5; border: 1px solid #ffffff26; border-radius: 16px;
  box-shadow: 0 16px 40px #000a;
  display: grid; gap: 8px;
}
#group-panel[hidden], #hunt-pick-panel[hidden] { display: none; }
#group-leave {
  grid-column: 2;
  justify-self: center;
  white-space: nowrap;
}
#hunt-pick-title.hunt-pick-title {
  text-transform: none;
  font-size: 16px;
  letter-spacing: 0;
  font-weight: 800;
  line-height: 1.25;
}
#hunt-pick-meta, #hunt-pick-story, #hunt-pick-note { margin: 0; overflow-wrap: anywhere; }


#hunt-pick-details {
  margin: 6px 0 0;
}
#hunt-pick-details .ticket-details {
  margin-top: 0;
  gap: 4px;
}
#hunt-pick-details .tdet {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  letter-spacing: .12px;
  line-height: 1.25;
}
#hunt-pick-story { max-height: 28vh; overflow: auto; white-space: pre-wrap; }
#hunt-pick-cta .primary { width: 100%; }
.nearby-panel-head b.grp-live-code {
  font-family: ui-monospace, monospace;
  font-size: 18px; font-weight: 800; letter-spacing: 2px;
  text-transform: none; color: var(--gold);
  overflow-wrap: anywhere;
}
.group-mate {
  display: flex; align-items: center; gap: 8px; width: 100%;
  text-align: left; min-height: 44px;
  background: #ffffff0d; border: 1px solid #ffffff1a;
}
.group-mate:hover, .group-mate:focus-visible {
  border-color: var(--gold); background: #ffcf0614;
}
.group-mate.is-leader { border-color: #ffcf0666; }
.group-mate.is-ping { border-color: #42AE01; background: #42AE0122; box-shadow: 0 0 12px #42AE0188; }
.group-mate.is-self { opacity: .85; }
.group-mate-name { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.group-mate-role { color: var(--gold); font-size: 11px; letter-spacing: .04em;
  text-transform: uppercase; }
.group-mate-check { color: #42AE01; font-weight: 900; font-size: 16px; }
.grp-live-mates { margin: 10px 0 8px; }
.clue-bubble svg { display: block; }
.clue-bubble:hover, .clue-bubble:focus-visible { background: #ffd93a; }
.clue-bubble[hidden] { display: none; }
.clue-bang {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; min-width: 18px; min-height: 18px; padding: 0;
  border-radius: 99px; border: 2px solid #0b2400;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 900; line-height: 14px;
  display: grid; place-items: center;
  pointer-events: none;
}
.clue-bang[hidden] { display: none; }
#clues-panel {
  position: absolute; z-index: 4;
  left: auto;
  right: max(10px, env(safe-area-inset-right));
  bottom: calc(52px + var(--fab-bottom));
  width: min(360px, calc(100% - 20px));
  max-height: min(60vh, 440px);
  overflow: auto;
  padding: 12px;
  background: #0c2a00f5; border: 1px solid #ffffff26; border-radius: 16px;
  box-shadow: 0 16px 40px #000a;
  display: grid; gap: 8px;
}
#clues-panel[hidden] { display: none; }
.clue-item {
  display: grid; gap: 4px; text-align: left;
  padding: 10px 12px; border-radius: 12px;
  background: #ffffff0d; border: 1px solid #ffffff1a;
}
button.clue-item {
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.clue-item.is-open { border-color: #ffcf0666; }
.clue-item b { color: var(--gold); font-size: 12px; letter-spacing: .04em;
  text-transform: uppercase; overflow-wrap: anywhere; }
.clue-item p { margin: 0; font-size: 14px; line-height: 1.45;
  overflow-wrap: anywhere; white-space: pre-wrap; }
.clue-slip-pic {
  display: block;
  width: 100%;
  max-width: 240px;
  border-radius: 10px;
  margin-top: 6px;
  background: #0b2400;
}
.clue-group { display: grid; gap: 6px; }
.clue-group > b { color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.clue-slip-wrap {
  display: grid;
  border-radius: 12px;
  background: #ffffff0d;
  border: 1px solid #ffffff1a;
}
.clue-slip-wrap > button.clue-item {
  background: transparent;
  border: 0;
}
.clue-slip-wrap.is-open { border-color: #ffcf0666; }
.clue-slip-body { padding: 0 12px 10px; }
.clue-slip-note { display: grid; gap: 4px; margin-top: 8px; }
.clue-slip-note span {
  color: var(--gold); font-size: 11px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
}
.clue-slip-note textarea {
  width: 100%; min-height: 56px; resize: vertical;
  font: inherit; font-size: 14px; line-height: 1.4; color: inherit;
  background: #0004; border: 1px solid #ffffff22; border-radius: 8px;
  padding: 8px;
}
body.hunt-on #roam-nearby,
body.hunt-on #roam-clues {
  right: max(10px, env(safe-area-inset-right));
  left: auto;
  bottom: var(--fab-bottom);
}
body.hunt-on #roam-group,
body.hunt-on #roam-group.is-tight {
  right: calc(max(10px, env(safe-area-inset-right)) + 44px + 10px);
}
.hunt-abandon {
  position: fixed;
  z-index: 65;
  left: max(12px, env(safe-area-inset-left));
  bottom: calc(44px + env(safe-area-inset-bottom));
  margin: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px #0006;
  cursor: pointer;
}
.hunt-abandon:hover, .hunt-abandon:focus-visible { filter: brightness(1.08); }
.hunt-abandon[hidden] { display: none; }
@media (min-width: 560px) {
  .hunt-abandon {
    left: calc(12px + 208px);
    bottom: calc(8px + env(safe-area-inset-bottom));
  }
}
#nearby-panel[hidden] { display: none; }

.nearby-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.nearby-panel-head b {
  color: var(--gold); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase;
  justify-self: start; min-width: 0; overflow-wrap: anywhere;
}
#nearby-all { grid-column: 2; justify-self: center; }
.nearby-panel-head .ex-close {
  position: static;
  justify-self: end;
  grid-column: 3;
}
.nearby-range { display: flex; justify-content: space-between; gap: 8px;
  font-size: 13px; color: var(--dim); }
#nearby-range { width: 100%; accent-color: var(--gold); }
.nearby-list { display: grid; gap: 6px; }
.nearby-item {
  display: flex; align-items: baseline; gap: 10px; width: 100%;
  text-align: left; min-height: 44px;
  background: #ffffff0d; border: 1px solid #ffffff1a;
}
.nearby-item:hover, .nearby-item:focus-visible {
  border-color: var(--gold); background: #ffcf0614;
}
.nearby-item-title { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.nearby-item-dist { color: var(--gold); font-size: 12.5px; font-variant-numeric: tabular-nums;
  white-space: nowrap; }
#nearby-empty { margin: 0; font-size: 13px; }
#play-detail { display: grid; gap: 12px; max-width: 100%; min-width: 0; overflow-x: hidden; }
#play-detail[hidden], #play-roam[hidden], #play-list[hidden] { display: none !important; }

#play-list, #p-play { max-width: 100%; min-width: 0; overflow-x: visible; }
#detail-body { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
#detail-body h2 { overflow-wrap: anywhere; word-break: break-word; text-transform: none;
  letter-spacing: 0; font-size: 20px; color: var(--ink); font-weight: 800; }

.mission-row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap;
  max-width: 100%; min-width: 0; overflow-x: hidden; }
.mission-row .meta { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.mission-row h3 { margin: 0 0 3px; font-size: 16px; overflow-wrap: anywhere; word-break: break-word; }
.mission-row .play-cta, .mission-row .play-cta .primary { flex: 0 0 auto; max-width: 100%; }
.mission-row .sub { color: var(--dim); font-size: 12.5px; overflow-wrap: anywhere; }
.mission-row .mission-story { color: var(--ink); font-size: 13px; line-height: 1.5;
  margin: 8px 0 4px; max-width: 60ch;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
  .mission-row { flex-direction: column; align-items: stretch; }
  .mission-row .play-cta, .mission-row .play-cta .primary { width: 100%; }
  .mission-row .muted[style] { max-width: none !important; text-align: left !important; }
}


.ticket-well {
  background: var(--forest);
  border-radius: 18px;
  padding: 14px 12px 16px;
  margin: 0 0 18px;
}

body.tab-play .ticket-well,
body.stage-tours .ticket-well {
  padding-bottom: calc(16px + 56px + var(--fab-bottom));
}
.ticket-well .missions { display: grid; gap: 10px; }
.ticket-also {
  margin: 2px 4px 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}
.ticket-also[hidden] { display: none !important; }

.ticket-thumb[hidden] { display: none !important; }
#play-nearby { display: grid; gap: 12px; margin: 0 0 14px; }
#play-nearby[hidden] { display: none !important; }
#play-nearby-map-wrap {
  position: relative; height: 188px; border-radius: 16px; overflow: hidden;
  background: #0b0f0c; border: 1px solid #ffcf0640;
}
#play-nearby-map { width: 100%; height: 100%; display: block; touch-action: none; }
#play-nearby-label {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  margin: 0; padding: 6px 14px; border-radius: 99px;
  background: var(--gold); color: #1B3D00;
  font-size: 12.5px; font-weight: 800; white-space: nowrap;
  pointer-events: none;
}
#play-hero { display: grid; }
.mission-row.ticket {
  display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px;
  background: #F3E6C8; color: var(--night);
  border: 0; border-radius: 14px; padding: 10px 0 10px 10px;
  overflow: visible;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 8px 18px -12px #0008;
}
.mission-row.ticket.ticket-hero { padding: 12px 0 12px 12px; align-items: center; }
.mission-row.ticket h3 { color: var(--night); margin: 0 0 4px; }
.mission-row.ticket.ticket-hero h3 { font-size: 18px; }
.mission-row.ticket .sub {
  color: #1B3D00; opacity: .82;
  white-space: normal;
  overflow: visible;
}
.mission-row.ticket .meta { flex: 1 1 auto; display: flex; flex-direction: column;
  justify-content: center; min-width: 0; }
.mission-row.ticket .muted { color: #3d5c2a; }
.mission-row.ticket .ghost {
  color: var(--night); border-color: #c5b89a; background: transparent;
}
.ticket-thumb {
  flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  background: #205C00; display: grid; place-items: center;
}
.mission-row.ticket.ticket-hero .ticket-thumb { width: 124px; height: 124px; border-radius: 14px; }
.ticket-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ticket-thumb .xmark { color: var(--gold); font-size: 22px; font-weight: 800; }


.mission-row.ticket.ticket-banner {
  position: relative;
  overflow: visible;
  background: var(--night);
  
  min-height: 118px;
  height: auto;
}
.mission-row.ticket.ticket-hero.ticket-banner { min-height: 148px; height: auto; }
.ticket-banner .ticket-banner-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  
  object-fit: cover; object-position: center;
  z-index: 0;
  border-radius: 14px;
}

.ticket-badge {
  position: absolute; left: 0; top: 0;
  width: 118px; height: 118px;
  object-fit: cover; z-index: 1;
  border-radius: 14px 0 0 14px;
}
.ticket-hero .ticket-badge { width: 148px; height: 148px; }

.has-badge .ticket-banner-art { left: 118px; width: calc(100% - 118px); }
.ticket-hero.has-badge .ticket-banner-art { left: 148px; width: calc(100% - 148px); }

.mission-row.ticket.has-badge .meta { margin-left: 124px; }

.has-badge .ticket-details { gap: 4px; flex-wrap: wrap; overflow: visible; }
.has-badge .ticket-details .tdet { font-size: 11px; padding: 3px 6px; flex: 0 1 auto; }
.ticket-hero.has-badge .meta { margin-left: 160px; }

.has-badge.ticket-banner::before {
  background: linear-gradient(90deg, #04120600 0px, #04120600 118px,
                                     #041206f2 124px, #041206de 45%,
                                     #04120696 62%, #04120633 80%, #04120652 100%);
}

.ticket-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: 14px;
  
  
  background: linear-gradient(90deg, #04120600 0px, #04120600 84px,
                                     #041206f2 92px, #041206de 40%,
                                     #04120696 58%, #04120633 78%, #04120652 100%);
}


@media (min-width: 641px) {
  .ticket-banner .ticket-banner-art { object-position: top; }
  
  .has-badge .ticket-banner-art {
    width: calc(100% - 118px - 78px); border-radius: 0;
  }
  .ticket-hero.has-badge .ticket-banner-art { width: calc(100% - 148px - 78px); }
  
  .ticket-banner .ticket-stub {
    background: #3d4046;
    margin-top: -10px; margin-bottom: -10px;
    border-radius: 0 14px 14px 0;
    z-index: 2;
  }
}

@media (max-width: 640px) {
  .mission-row.ticket.ticket-banner.has-badge {
    --gm-badge: 68px;
    --gm-stub: 64px;
    min-height: 96px;
  }
  .mission-row.ticket.ticket-banner.has-badge .ticket-badge {
    left: 0; top: 0; bottom: 0;
    width: var(--gm-badge); height: 100%;
    max-width: none; max-height: none;
    object-fit: contain; object-position: center;
    background: #0E2A00;
    border-radius: 14px 0 0 14px;
  }
  .mission-row.ticket.ticket-banner.has-badge .ticket-banner-art {
    left: var(--gm-badge);
    width: calc(100% - var(--gm-badge) - var(--gm-stub));
    border-radius: 0;
    object-position: 70% center;
  }
  .mission-row.ticket.ticket-banner.has-badge .meta {
    margin-left: calc(var(--gm-badge) + 8px);
    padding-right: 6px;
  }
  .mission-row.ticket.ticket-banner.has-badge h3 {
    font-size: 16px; line-height: 1.2; margin-bottom: 2px;
  }
  .mission-row.ticket.ticket-banner.has-badge .sub {
    font-size: 12px; line-height: 1.35;
  }
  .mission-row.ticket.ticket-banner.has-badge .ticket-details {
    margin-top: 6px; gap: 4px;
  }
  .has-badge.ticket-banner::before {
    background: linear-gradient(90deg,
      #04120600 0px,
      #04120600 var(--gm-badge),
      #041206f2 calc(var(--gm-badge) + 8px),
      #041206ee 56%,
      #041206c8 72%,
      #04120688 86%,
      #04120666 100%);
  }
  .ticket-banner .ticket-stub {
    background: #3d4046;
    margin-top: -10px; margin-bottom: -10px;
    border-radius: 0 14px 14px 0;
    z-index: 2;
  }
  .mission-row.ticket.ticket-banner.has-badge .ticket-stub {
    flex: 0 0 var(--gm-stub);
    width: var(--gm-stub);
    min-width: var(--gm-stub);
    max-width: var(--gm-stub);
  }
  .mission-row.ticket.ticket-banner.has-badge .ticket-go {
    width: 100%; box-sizing: border-box;
    padding: 6px 2px; font-size: 12px; min-height: 34px;
  }
  
  .mission-row.ticket.ticket-banner.has-badge .ticket-banner-art {
    left: 0; width: calc(100% - var(--gm-stub));
  }
  .mission-row.ticket.ticket-banner.has-badge .ticket-badge {
    top: 50%; bottom: auto; height: var(--gm-badge);
    transform: translateY(-50%); margin-left: 6px;
    background: transparent; border-radius: 10px;
  }
  .has-badge.ticket-banner::before {
    background: linear-gradient(90deg,
      #041206d9 0px,
      #041206d9 calc(var(--gm-badge) + 12px),
      #041206ee 56%,
      #041206c8 72%,
      #04120688 86%,
      #04120666 100%);
  }
  
  .mission-row.ticket.ticket-banner.has-badge .ticket-gps-note {
    white-space: nowrap; font-size: 9.5px; max-width: none;
  }
}

.ticket-banner .meta { margin-left: 100px; }

.ticket-banner .sub { font-size: 12px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.ticket-banner .ticket-details { flex-wrap: wrap; overflow: visible; max-width: 100%; }
.ticket-banner .ticket-details .tdet { flex: 0 1 auto; max-width: 100%; }
@media (max-width: 640px) { .ticket-banner .meta { margin-left: 92px; } }

.ticket-banner .meta, .ticket-banner .ticket-stub, .ticket-banner .ticket-cta {
  position: relative; z-index: 2;
}
.ticket-banner h3, .mission-row.ticket.ticket-banner h3 { color: #fff; }

.ticket-banner .ghost,
.mission-row.ticket.ticket-banner .ghost {
  background: #041206cc;
  border-color: #ffffff5c;
  color: #fff;
}
.ticket-banner .ghost:hover,
.mission-row.ticket.ticket-banner .ghost:hover { background: #041206ee; }

.ticket-banner .ticket-go,
.mission-row.ticket.ticket-banner .ticket-go {
  background: #041206cc;
  border-radius: 8px;
  color: #fff;
  padding: 8px 10px;
}
.ticket-banner .ticket-go:hover:not(:disabled),
.mission-row.ticket.ticket-banner .ticket-go:hover:not(:disabled) {
  background: #041206ee; color: #ffe066;
}
.ticket-banner .ticket-go.is-muted,
.mission-row.ticket.ticket-banner .ticket-go.is-muted { color: #d7c9a8; }
.ticket-banner .ticket-gps-note,
.mission-row.ticket.ticket-banner .ticket-gps-note {
  background: #041206cc;
  color: #fff;
  border-radius: 6px;
  padding: 3px 5px;
}

.ticket-banner .sub, .mission-row.ticket.ticket-banner .sub {
  color: #e8f2e0;
  white-space: normal;
  overflow: visible;
}
.ticket-banner h3, .ticket-banner .sub {
  text-shadow: 0 1px 3px #000c, 0 0 10px #000a;
}

.ticket-banner .ticket-stub { border-left-color: #ffffff59; }
.ticket-banner .ticket-stub, .ticket-banner .ticket-stub * { color: #fff; }

.ticket-banner .ticket-stub::before,
.ticket-banner .ticket-stub::after {
  content: none;
  background: transparent;
}
.ticket-stub {
  flex: none; width: 78px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; border-left: 2px dashed #c4b392;
}
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; left: -7px; width: 12px; height: 12px;
  background: var(--forest); border-radius: 99px;
}
.ticket-stub::before { top: -7px; }
.ticket-stub::after { bottom: -7px; }
.ticket-cta {
  flex: none; display: flex; align-items: center; padding: 0 10px 0 8px;
}
.ticket-go {
  background: transparent; border: 0; min-height: 44px; padding: 8px 8px;
  color: var(--gold); font-weight: 800; font-size: 13.5px; white-space: nowrap;
}
.ticket-go:hover:not(:disabled) { background: transparent; color: #ffe066; }
.ticket-go.is-muted { color: #c4b392; }
.ticket-gps-note {
  display: block; font-size: 10px; font-weight: 600; color: #7a6d52;
  text-align: center; line-height: 1.2; max-width: 72px;
}
.mission-row.ticket .play-cta { max-width: none; }
.mission-row.ticket.ticket-hero .primary { min-height: 48px; padding: 0 16px; }
@media (max-width: 640px) {
  .mission-row.ticket { flex-direction: row; align-items: stretch; }
  .mission-row.ticket .play-cta,
  .mission-row.ticket .play-cta .primary { width: auto; }
}


.wp-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 9px;
  border: 1px solid var(--line); border-radius: 10px; background: #0b2400;
}
.wp-row.sel { border-color: var(--gold); background: #ffcf060d; }
.wp-row .idx {
  width: 24px; height: 24px; flex: none; display: grid; place-items: center;
  border-radius: 99px; background: #ffcf0618; color: var(--gold);
  font-weight: 800; font-size: 12px;
}
.wp-row { flex-wrap: wrap; }
.wp-row select { width: auto; flex: none; padding: 6px 8px; font-size: 12.5px; }
.wp-row .nm {
  flex: 1 1 90px; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 13.5px;
}

.wp-row .clue-in {
  flex: 3 1 220px; min-width: 160px; width: auto;
  padding: 6px 9px; font-size: 12.5px; background: #061a00;
  border-color: #ffffff1f;
}
.wp-row .clue-in::placeholder { color: #6f8b63; }
.wp-row .clue-in:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #ffcf0626; }
.wp-row .clue-in.missing { border-color: #ff6a4d80; }
.wp-row .x {
  min-height: 26px; width: 26px; padding: 0; border-radius: 7px;
  background: #4a1505; color: #ffb4a4; font-weight: 900; line-height: 1;
}
.wp-row .x:hover { background: #6b1f07; }

.panel-gold { border-color: #ffcf0640; }
.panel-gold h2 { color: var(--gold); }
.count-chip {
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  background: #ffcf0618; color: var(--gold); padding: 3px 9px; border-radius: 99px;
}


.info {
  width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 99px;
  background: #ffffff14; color: var(--gold); font-weight: 900; font-size: 12px;
}
.info-body {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: #0b2400; border: 1px solid var(--line);
  font-size: 12.5px; color: var(--dim); line-height: 1.6;
}
.info-body[hidden] { display: none; }


.ex-row { display: flex; align-items: center; gap: 8px; }
.ex-row label { margin-bottom: 0; }
.ex-back {
  position: fixed; inset: 0; z-index: 70; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: #04140acc;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.ex-back[hidden] { display: none; }   
.ex-card {
  position: relative; width: 560px; max-width: 100%; max-height: 84vh; overflow: auto;
  background: #0c2a00f5; border: 1px solid #ffffff26; border-radius: 18px;
  padding: 22px 22px 18px; box-shadow: 0 20px 60px #000b;
}
.ex-card h2 { font-size: 13px; margin: 0 0 4px; }
.ex-close {
  position: absolute; top: 10px; right: 10px; min-height: 0;
  padding: 4px 10px; background: transparent; color: var(--dim); font-size: 13px;
}
.ex-close:hover { color: var(--ink); background: #ffffff12; }
.ex-intro { color: #cfe3bf; font-size: 13.5px; line-height: 1.55; margin: 0 0 14px; }
.ex-item {
  border-top: 1px solid var(--line); padding: 12px 0 2px;
}
.ex-item h3 { margin: 0 0 4px; font-size: 13.5px; color: var(--gold); line-height: 1.35; }
.ex-item p { margin: 0; font-size: 13px; color: #cfe3bf; line-height: 1.55; }

.ex-eg {
  margin-top: 7px !important; padding: 8px 11px; border-radius: 9px;
  background: #ffcf060f; border-left: 2px solid #ffcf0666;
  color: var(--ink) !important; font-style: italic;
}
.ex-tip {
  margin: 16px 0 0; padding: 10px 12px; border-radius: 10px;
  background: #42ae0114; border: 1px solid #42ae0140;
  color: var(--grass-lt); font-size: 12.5px; line-height: 1.55;
}


.au-seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: 16px;
  background: #0b240099; border: 1px solid var(--line); border-radius: 11px;
}
.au-seg[hidden] { display: none; }
.au-seg button {
  min-height: 38px; padding: 0 8px; border-radius: 8px;
  background: transparent; color: var(--dim); font-size: 13.5px; font-weight: 700;
}
.au-seg button:hover { color: var(--ink); background: #ffffff0d; }
.au-legal {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0 0 2px; font-size: 13px; line-height: 1.45; text-align: left;
}
.au-legal[hidden] { display: none; }

.au-legal input {
  flex: none; width: 16px; height: 16px; margin-top: 2px;
}
.au-legal span { flex: 1; min-width: 0; }
.au-legal a { color: var(--gold); }
.au-seg button[aria-selected="true"] {
  background: #ffcf0e26; color: var(--gold);
  box-shadow: inset 0 0 0 1px #ffcf0666;
}

.linkish {
  min-height: 0; padding: 6px 0; margin-top: 10px;
  background: transparent; color: var(--gold);
  font-size: 12.5px; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px;
}
.linkish:hover { background: transparent; color: #ffe25e; }
.linkish[hidden] { display: none; }

.notebox {
  margin-top: 12px; padding: 11px 13px; border-radius: 10px;
  background: #42ae0114; border: 1px solid #42ae0140;
  color: var(--grass-lt); font-size: 12.5px; line-height: 1.55;
}
.notebox[hidden] { display: none; }


.authbtn { min-height: 30px; padding: 0 11px; font-size: 12px; font-weight: 800;
  letter-spacing: .04em; }
.whoami { display: inline-flex; align-items: center; gap: 7px; font-size: 12px;
  color: var(--dim); white-space: nowrap; }
.whoami .role { font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  font-size: 10px; padding: 3px 8px; border-radius: 99px; }
.role.owner { background: #ffcf0626; color: var(--gold); }
.role.member { background: #42ae0133; color: var(--grass-lt); }
.role.tester { background: #205c0044; color: #a6e06b; }
.role.visitor { background: #ffffff14; color: var(--dim); }


.locked { position: relative; cursor: not-allowed; border-radius: 10px; }
.locked > * { pointer-events: none; }
.locked::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: #0e2a00b0;
}

.locked.play-cta::before { background: transparent; }
.locked.play-cta > .primary { box-shadow: 0 0 0 2px #ffcf0688; }
.play-cta > .primary.play-start,
button.primary.play-start {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; line-height: 1.2;
}
.play-start-label { display: block; }
.play-fare {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  opacity: .92;
}

.locked::after {
  content: ""; position: absolute; z-index: 2; top: 50%; left: 50%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 99px;
  background: var(--red) linear-gradient(#fff, #fff) center / 12px 2.5px no-repeat;
  opacity: 0; transition: opacity .12s; box-shadow: 0 2px 8px #0007;
}
.locked:hover, .locked:focus-visible {
  outline: 2px solid var(--red); outline-offset: 2px;
}
.locked:hover::after, .locked:focus-visible::after { opacity: 1; }
.locked:hover .lock-tip, .locked:focus-visible .lock-tip { opacity: 1; }

.lock-tip {
  position: absolute; z-index: 3; left: 50%; bottom: calc(100% + 6px);
  transform: translateX(-50%); pointer-events: none; opacity: 0; transition: opacity .12s;
  color: #FF6A4D; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  white-space: nowrap; text-shadow: 0 1px 3px #000c, 0 0 10px #000a;
}


.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sheet-cta {
  flex: none;
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
  background: var(--night);
  box-shadow: 0 -12px 16px var(--night);
}
.sheet-cta > .primary { width: 100%; }


.gatewall {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; overflow: hidden;
  background: #061a00f2;
  padding: max(24px, env(safe-area-inset-top)) 24px 0;
  text-align: center;
}
.gatewall > div {
  max-width: 360px; width: 100%; margin: auto;
  display: flex; flex-direction: column;
  min-height: 0; max-height: 100%; overflow: hidden;
}
.gatewall .lockmark { font-size: 44px; color: var(--red); line-height: 1; }
.gatewall h1 { font-size: 24px; margin: 14px 0 8px; }
.gatewall .sheet-cta { background: #061a00; box-shadow: 0 -12px 16px #061a00; }


.modal { position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: #041200e0; padding: 20px; overflow: hidden; }
.modal[hidden] { display: none; }
.modal .card {
  width: 100%; max-width: min(380px, calc(100vw - 24px)); max-height: min(86vh, 100%);
  display: flex; flex-direction: column; overflow: hidden;
  min-width: 0; overflow-wrap: anywhere;
  background: var(--panel-solid, #0b2400);
  border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.modal .card input, .modal .card textarea, .membermenu input {
  min-width: 0; max-width: 100%;
}

#account-settings-modal .field,
#account-settings-modal .muted,
#account-settings-modal h3,
#acct-set-name {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
#acct-set-email {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 10px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0b2400;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.modal .card .row, .modal .card h2, .modal .card h3 {
  min-width: 0; max-width: 100%;
}
.modal .card .row { flex-wrap: wrap; }
.modal .card h2 { overflow-wrap: anywhere; }
.modal .sheet-cta {
  background: var(--panel-solid, #0b2400);
  box-shadow: 0 -12px 16px var(--panel-solid, #0b2400);
}
.modal h2 { color: var(--gold); font-size: 13px; }
.modal .switch { background: none; border: 0; color: var(--gold); font-size: 12.5px;
  min-height: 0; padding: 6px 0; text-decoration: underline; cursor: pointer; }


.balance { font-size: 34px; font-weight: 900; color: var(--gold); line-height: 1;
  font-variant-numeric: tabular-nums; }
.balance small { font-size: 13px; font-weight: 600; color: var(--dim);
  margin-left: 6px; letter-spacing: .04em; }
.shop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
@media (max-width: 640px) { .shop { grid-template-columns: minmax(0, 1fr); } }
.shop .item { border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  background: #0b2400; text-align: center; min-width: 0; max-width: 100%;
  overflow-wrap: anywhere; }
.shop .item b { display: block; font-size: 18px; color: var(--gold); }
.shop .item span { font-size: 12px; color: var(--dim); }
.shop .item { position: relative; }
.shop .item button { width: 100%; margin-top: 10px; }
.shop .item .per { display: block; font-size: 11px; color: var(--dim);
  font-variant-numeric: tabular-nums; margin-top: 2px; }
.shop .item .best { position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--gold); color: #1B3D00; padding: 2px 8px; border-radius: 99px;
  white-space: nowrap; }

.paybox { margin-top: 12px; display: grid; gap: 6px; }
.payrow { display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 9px; background: #0b2400; }
.payrow span { color: var(--dim); font-size: 12px; }
.payrow b { margin-left: auto; font-family: ui-monospace, monospace; color: var(--gold);
  font-size: 14px; user-select: all; }


#howto .steps { counter-reset: step; list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px; }
#howto .steps li { position: relative; padding-left: 34px; font-size: 13.5px;
  line-height: 1.5; color: var(--ink); }
#howto .steps li::before { counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -1px; width: 24px; height: 24px;
  display: grid; place-items: center; border-radius: 99px;
  background: #ffcf0618; color: var(--gold); font-weight: 800; font-size: 12px; }
#howto p { margin: 14px 0 0; }


.build-intro-back {
  position: fixed; inset: 0; z-index: 55;
  display: flex; align-items: stretch; justify-content: center;
  padding: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: #04140af2;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.build-intro-back[hidden] { display: none; }
html.build-intro-seen #build-intro:not(.is-open) { display: none; }
body.build-intro-on { overflow: hidden; }
.build-intro-card {
  position: relative;
  display: flex; flex-direction: column;
  width: min(720px, 100%);
  max-height: 100%;
  background: #0c2a00; border: 1px solid #ffffff26; border-radius: 18px;
  box-shadow: 0 20px 60px #000b;
}
.build-intro-scroll { overflow: auto; padding: 22px 22px 8px; flex: 1; min-height: 0; }
.build-intro-scroll #howto,
.build-intro-scroll #guidance {
  background: transparent; border: 0; padding: 0; margin: 0 0 26px; box-shadow: none;
}
.build-intro-scroll #guidance { margin-bottom: 8px; }
.build-intro-cta {
  padding: 12px 22px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.build-intro-cta .primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.help-bubble {
  position: fixed; z-index: 36;
  right: max(14px, env(safe-area-inset-right));
  bottom: var(--fab-bottom);
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0;
  border-radius: 99px; border: 0;
  background: var(--gold); color: #1B3D00;
  font-weight: 900; font-size: 22px; line-height: 1;
  box-shadow: 0 6px 20px #0008;
}
.help-bubble:hover, .help-bubble:focus-visible { background: #ffd93a; }
.help-bubble[hidden] { display: none; }
body.build-intro-on #build-help { display: none; }


body.build-map-on { overflow: hidden; }
body.build-map-on .parallax-bg,
body.build-map-on.scenic::before { visibility: hidden; }

body.build-map-on .appbar #b-import,
body.build-map-on .appbar #b-export,
body.build-map-on .appbar #b-reset,
body.build-map-on .appbar #lang { display: none; }
body.build-map-on .section-chip { display: none; }
#build-map-wrap {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  top: 0;
  z-index: 4;
  background: #0b2400;
}
#build-map-wrap #map {
  width: 100%; height: 100%; display: block;
  border: 0; border-radius: 0; background: #0b2400;
  touch-action: none;
}

#build-chip {
  position: absolute;
  right: max(10px, env(safe-area-inset-right));
  left: auto;
  width: auto;
  max-width: min(72vw, 260px);
  
  top: max(58px, calc(52px + env(safe-area-inset-top)));
  z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 14px;
  background: #0b2400e8; border: 1px solid #ffcf0640; border-radius: 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #eef7e8;
  font-weight: 800; font-size: 13.5px; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  appearance: none; -webkit-appearance: none;
}
#build-chip:hover:not(:disabled),
#build-chip:focus-visible {
  background: #0b2400f2; border-color: var(--gold);
}
#build-map-status {
  position: static;
  margin: 0; padding: 7px 10px; border-radius: 10px;
  background: transparent; color: var(--gold); font-size: 13px; font-weight: 700;
  text-shadow: 0 1px 2px #000c, 0 0 10px #000a;
  pointer-events: none;
}
#build-map-status:empty { display: none; }
.build-paste {
  display: flex; gap: 8px; align-items: center;
  margin: 10px 0 0;
  flex-wrap: wrap;
}
#coord-type { width: 100%; margin: 4px 0 8px; }
.build-paste input { flex: 1; min-width: 0; margin: 0; }
.build-paste button { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 480px) {
  .build-paste button { flex: 1 1 100%; }
}
#paste-note { margin: 8px 0 0; color: var(--gold); font-size: 13px; font-weight: 600; }
#paste-note:empty { display: none; }
#map-warn.build-map-banner {
  position: static;
  margin: 0; padding: 8px 10px; border-radius: 10px;
  background: #3a0d08ee; color: #ffb9a8; font-size: 13px; font-weight: 600;
}

#walk-stack {
  position: absolute; left: 10px; right: 70px; z-index: 3;
  bottom: max(80px, calc(var(--fab-bottom) + 64px));
  display: flex; flex-direction: column; gap: 8px;
  align-items: stretch;
}
#walk-retry {
  position: static;
  align-self: flex-start;
  background: transparent;
}
.hammer-btn {
  position: fixed; z-index: 37;
  right: max(18px, calc(env(safe-area-inset-right, 0px) + 8px));
  bottom: var(--fab-bottom);
  width: 56px; height: 56px; min-width: 56px; min-height: 56px; padding: 0;
  border-radius: 99px; border: 0;
  background: var(--gold); color: #1B3D00;
  box-shadow: 0 6px 20px #0008;
  display: grid; place-items: center;
}
.hammer-btn svg { display: block; }
.hammer-btn:hover, .hammer-btn:focus-visible { background: #ffd93a; }
.hammer-btn[hidden] { display: none; }
.hammer-btn:disabled { opacity: .45; cursor: not-allowed; }
body.build-intro-on .hammer-btn,
body.build-intro-on #hammer-menu,
body.build-intro-on .ready-bubble,
body.build-intro-on #ready-menu,
body.build-intro-on #coord-sheet,
body.build-intro-on #build-chip { display: none; }
body.build-map-on .help-bubble {
  right: max(18px, calc(env(safe-area-inset-right, 0px) + 8px));
  bottom: calc(var(--fab-bottom) + 62px);
}

body.build-map-on.has-quiet .help-bubble {
  right: auto;
  left: max(18px, calc(env(safe-area-inset-left, 0px) + 8px));
  bottom: calc(var(--fab-bottom) + 62px);
}
#hammer-menu {
  position: fixed; z-index: 38;
  right: max(18px, calc(env(safe-area-inset-right, 0px) + 8px));
  bottom: calc(64px + var(--fab-bottom));
  width: min(280px, calc(100vw - 28px));
  max-height: min(70dvh, calc(100dvh - 80px - var(--fab-bottom)));
  overflow: auto;
  padding: 10px;
  background: #0c2a00f5; border: 1px solid #ffffff26; border-radius: 16px;
  box-shadow: 0 16px 40px #000a;
  display: grid; gap: 6px;
}
#hammer-menu[hidden] { display: none; }
#hammer-menu b { color: var(--gold); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 8px 6px; }
#hammer-menu button {
  text-align: left; width: 100%;
  background: #ffffff0d; border: 1px solid #ffffff1a;
}
#hammer-menu button:hover, #hammer-menu button:focus-visible {
  border-color: var(--gold); background: #ffcf0614;
}
#hammer-menu [data-place="coords"] {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  background: transparent;
  border-color: #ffcf0633;
}
#place-tap.build-map-banner {
  position: static;
  margin: 0; padding: 8px 10px; border-radius: 10px;
  background: #071a04ee; color: #F6F1DC; font-size: 13px; font-weight: 700;
  border: 1px solid #FFCF0666;
}
#place-tap[hidden] { display: none; }
#stop-type {
  position: fixed; z-index: 39;
  right: max(18px, calc(env(safe-area-inset-right, 0px) + 8px));
  bottom: calc(64px + var(--fab-bottom));
  width: min(280px, calc(100vw - 28px));
  padding: 10px;
  background: #0c2a00f5; border: 1px solid #FFCF0644; border-radius: 16px;
  box-shadow: 0 16px 40px #000a;
  display: grid; gap: 6px;
}
#stop-type[hidden] { display: none; }
#stop-type b { color: var(--gold); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 8px 6px; }
#stop-type button {
  text-align: left; width: 100%; min-height: 44px;
  background: #0c2208; color: #F6F1DC; border: 1px solid #FFCF0666;
  font-weight: 800;
}
#stop-type button:hover, #stop-type button:focus-visible {
  border-color: var(--gold); background: #122c0c;
}
body.build-intro-on #stop-type,
body.build-intro-on #place-tap { display: none; }
.ready-bubble {
  position: fixed; z-index: 37;
  left: max(14px, env(safe-area-inset-left));
  right: auto;
  bottom: var(--fab-bottom);
  min-height: 44px; padding: 0 14px;
  border-radius: 99px; border: 0;
  background: var(--gold); color: #1B3D00;
  font-weight: 900; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 6px 20px #0008;
}
.ready-bubble:hover, .ready-bubble:focus-visible { background: #ffd93a; }
.ready-bubble[hidden] { display: none; }
#ready-menu {
  position: fixed; z-index: 38;
  
  right: max(14px, env(safe-area-inset-right));
  left: max(14px, env(safe-area-inset-left));
  bottom: calc(52px + var(--fab-bottom));
  width: auto;
  max-width: 360px;
  margin-left: auto;
  max-height: min(70dvh, calc(100dvh - 70px - var(--fab-bottom)));
  overflow: auto;
  padding: 10px;
  background: #0c2a00f5; border: 1px solid #ffffff26; border-radius: 16px;
  box-shadow: 0 16px 40px #000a;
  display: grid; gap: 6px;
}
#ready-menu[hidden] { display: none; }
#ready-menu button {
  width: 100%; text-align: left; min-height: 44px;
}
.vis-seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px;
  background: #0b240099; border: 1px solid var(--line); border-radius: 11px;
}
.vis-seg button {
  min-height: 40px; padding: 0 8px; border-radius: 8px;
  background: transparent; color: var(--dim); font-size: 13.5px; font-weight: 700;
}
.vis-seg button.is-on,
.vis-seg button[aria-pressed="true"] {
  background: #ffcf0e26; color: var(--gold);
  box-shadow: inset 0 0 0 1px #ffcf0666;
}
.vis-hint { margin: 0; font-size: 12.5px; }
#ready-menu .vis-seg button { width: 100%; text-align: center; min-height: 40px; }
#ready-menu #price-row button.is-on,
#ready-menu #price-row button[aria-pressed="true"] {
  background: #ffcf0e33; color: var(--gold); font-weight: 800;
  box-shadow: inset 0 0 0 1.5px #ffcf06aa;
}
#publish-blockers {
  list-style: none; margin: 0; padding: 2px 2px 6px; display: grid; gap: 4px;
}
#publish-blockers[hidden] { display: none; }
#publish-blockers li {
  font-size: 12.5px; color: #ffb9a8; font-weight: 600; line-height: 1.35;
}

#ready-menu #invite-panel {
  display: grid; gap: 6px; margin: 2px 0 4px;
}
#ready-menu #invite-panel[hidden] { display: none; }
#ready-menu #invite-status { margin: 0; font-size: 12.5px; }
#ready-menu #invite-status.err { color: #ffb9a8; font-weight: 600; }
#ready-menu #invite-status.ok { color: #b7e39a; font-weight: 600; }
#ready-menu .ready-invite-row {
  display: flex; gap: 6px; align-items: center;
}
#ready-menu .ready-invite-row[hidden] { display: none; }
#ready-menu .ready-invite-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 12px;
  padding: 8px 10px; border-radius: 10px;
  border: 1px solid #ffffff26; background: #0b2400; color: var(--ink, #f4f8ef);
}
#ready-menu .ready-invite-row button {
  width: auto; min-height: 40px; padding: 0 12px; flex: 0 0 auto;
}


button.mine-open { width: 100%; text-align: left; background: none; border: 0;
  padding: 0; color: inherit; cursor: pointer; }
.build-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  max-height: min(78vh, 720px);
  max-width: 100%;
  overflow: auto;
  padding: 14px max(18px, env(safe-area-inset-right))
           calc(88px + env(safe-area-inset-bottom) + var(--fab-bottom))
           max(14px, env(safe-area-inset-left));
  background: #0c2a00f7; border-top: 1px solid #ffcf0640;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px #0008;
}
.build-sheet[hidden] { display: none; }
.build-sheet-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  flex-wrap: wrap; min-width: 0;
}
.build-sheet-head h2 { margin: 0; font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.build-sheet-head .ex-close { position: static; flex: 0 0 auto; }
.build-sheet .row { flex-wrap: wrap; min-width: 0; }
.build-sheet .wp-list-compact { margin-bottom: 12px; }
#sheet-need { margin: 0 0 10px; color: #ffb9a8; font-size: 13px; font-weight: 600; }
#sheet-need:empty { display: none; }


.iconpick { display: flex; gap: 8px; flex-wrap: wrap; }
.iconbtn { width: 44px; height: 44px; padding: 0; border-radius: 10px;
  background: #0b2400; border: 1px solid var(--line); color: var(--dim);
  display: grid; place-items: center; cursor: pointer; }
.iconbtn:hover { border-color: var(--gold); color: var(--ink); }
.iconbtn.on { border-color: var(--gold); background: #ffcf0618; color: var(--gold); }

.ledger { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.ledger .tx { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px;
  padding: 7px 9px; border-radius: 8px; background: #0b2400; }
.ledger .tx .when { color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.ledger .tx .amt { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.ledger .tx .amt.pos { color: var(--grass-lt); }
.ledger .tx .amt.neg { color: var(--bad); }

.warnbox { border: 1px solid #ff6a4d55; background: #ff6a4d12; border-radius: 10px;
  padding: 10px 12px; font-size: 12.5px; color: #ffb9a8; }


.panel-owner { border-color: #ffcf0666; box-shadow: inset 0 0 0 1px #ffcf0614; }
.panel-owner h2 { color: var(--gold); }

.usertable { display: grid; gap: 6px; }
.usertable .u {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 9px; background: #0b2400;
  font-size: 13px; flex-wrap: wrap;
}
.usertable .u .em { flex: 1 1 160px; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.usertable .u .bal { font-variant-numeric: tabular-nums; color: var(--gold);
  font-weight: 800; }
.usertable .u .code { font-family: ui-monospace, monospace; font-size: 11px;
  color: var(--dim); letter-spacing: .08em; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats .s { border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  background: #0b2400; text-align: center; }
.stats .s b { display: block; font-size: 20px; color: var(--gold);
  font-variant-numeric: tabular-nums; }
.stats .s span { font-size: 11px; color: var(--dim); text-transform: uppercase;
  letter-spacing: .06em; }



.pending-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px; border-radius: 10px; background: #0b2400;
  border: 1px solid #ffcf0640;
}
.pending-row .who { flex: 1 1 180px; min-width: 0; }
.pending-row .who b { display: block; font-size: 13.5px; }
.pending-row .who span { font-size: 11.5px; color: var(--dim);
  font-family: ui-monospace, monospace; }
.pending-row .amt { font-size: 18px; font-weight: 900; color: var(--gold);
  font-variant-numeric: tabular-nums; }


@keyframes sendpulse {
  0%, 100% { box-shadow: 0 0 0 0 #ffcf0699; }
  50%      { box-shadow: 0 0 0 7px #ffcf0600; }
}
button.flash { animation: sendpulse 1.25s ease-out infinite; }
@media (prefers-reduced-motion: reduce) {
  button.flash { animation: none; outline: 2px solid var(--gold); outline-offset: 2px; }
}


.queue-badge {
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  background: var(--red); color: #fff; padding: 3px 9px; border-radius: 99px;
}
.queue-badge:empty { display: none; }

.pending-note { color: var(--gold); font-size: 12.5px; font-weight: 600; }
.balance small.pending { color: var(--gold); opacity: .75; }


.authbox { position: relative; }
.member { position: relative; }
.memberchip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 0 10px; border-radius: 8px;
  background: #ffcf0618; border: 1px solid #ffcf0647; color: var(--gold);
  font-size: 12px; font-weight: 800; letter-spacing: .04em; cursor: pointer;
}

.memberchip.idchip {
  align-items: stretch;
  gap: 8px;
  min-height: 36px;
  padding: 4px 10px 4px 10px;
  max-width: min(46vw, 200px);
  background: #0b2400e8;
  border: 1px solid #ffcf0640;
  color: var(--gold);
  box-shadow: 0 2px 10px #00000055;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.memberchip.idchip .idchip-col {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1;
  text-align: left;
}
.memberchip.idchip .idchip-name {
  font-size: 12px; font-weight: 800; line-height: 1.15;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #eef7e8;
}
.memberchip.idchip .idchip-row {
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.memberchip.idchip .idchip-lvl {
  flex: none; font-size: 10px; font-weight: 800; letter-spacing: .03em;
  color: var(--gold); white-space: nowrap;
}
.memberchip.idchip .idchip-bar {
  flex: 1; min-width: 28px; height: 5px; border-radius: 99px; overflow: hidden;
  background: #04190a; border: 1px solid #ffffff22;
}
.memberchip.idchip .idchip-fill {
  display: block; height: 100%; width: 0; background: var(--gold); border-radius: inherit;
}
.memberchip.owner { background: #ffcf0626; }
.memberchip.member { background: #42ae0126; border-color: #42ae0155; color: var(--grass-lt); }
.memberchip.visitor { background: #ffffff10; border-color: var(--line); color: var(--dim); }
.memberchip .caret { font-size: 10px; opacity: .8; align-self: center; }

.memberchip.idchip.owner,
.memberchip.idchip.member,
.memberchip.idchip.visitor {
  background: #0b2400e8; border-color: #ffcf0640; color: var(--gold);
}

.membermenu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40;
  width: min(300px, 92vw); padding: 10px 12px 12px;
  max-height: min(calc(100dvh - 64px), calc(100vh - 64px));
  overflow-x: clip; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  min-width: 0; overflow-wrap: anywhere;
  background: #04190a; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 44px #0009; text-align: left;
}

@media (max-width: 720px) {
  .membermenu {
    position: fixed;
    top: auto;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    width: auto;
    max-width: none;
  }
}
.membermenu[hidden] { display: none; }


body.profile-open.build-map-on #authbox,
body.profile-open.play-map-on #authbox,
body.profile-open #authbox {
  z-index: 100;
}
body.profile-open .membermenu {
  z-index: 101;
}

body.profile-open.build-map-on #build-tools,
body.profile-open.build-map-on #hammer-menu,
body.profile-open.build-map-on .help-bubble,
body.profile-open.build-map-on #build-ready,
body.profile-open.build-map-on #ready-menu,
body.profile-open.build-map-on #build-coach,
body.profile-open.build-map-on #build-rail,
body.profile-open.build-map-on #build-chip,
body.profile-open.build-map-on #plant-hint,
body.profile-open.build-map-on .report-dock,
body.profile-open.build-map-on .cap-back,
body.profile-open.build-map-on #walk-box,
body.profile-open.build-map-on #stop-type,
body.profile-open.build-map-on #coord-sheet,
body.profile-open.build-map-on #wp-sheet,
body.profile-open.build-map-on #mission-sheet,
body.profile-open.build-map-on #agent-dock,
body.profile-open.build-map-on #agent-fab,
body.profile-open.build-map-on #agent-sheet,
body.profile-open.build-map-on #race-rec {
  visibility: hidden !important;
  pointer-events: none !important;
}

.mm-id { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.mm-id-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mm-name { flex: 1; min-width: 0; max-width: 100%; overflow-wrap: anywhere;
  white-space: normal; font-size: 14px; font-weight: 700; color: var(--ink); }
.mm-role { flex: 0 1 auto; min-width: 0; max-width: 46%; overflow-wrap: anywhere; }
.mm-level { display: flex; flex-direction: column; gap: 4px; }
.mm-level-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  min-width: 0; }
.mm-level-n { font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: .04em;
  flex: none; }
.mm-level-next { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums;
  min-width: 0; overflow-wrap: anywhere; text-align: right; }
.mm-level-bar {
  height: 8px; border-radius: 99px; overflow: hidden;
  background: #0b2400; border: 1px solid var(--line);
}
.mm-level-fill {
  display: block; height: 100%; width: 0;
  background: var(--gold); border-radius: inherit;
}
.mm-bal { margin: 6px 0; padding: 7px 10px; border-radius: 10px; background: #0b2400;
  border: 1px solid var(--line); min-width: 0; max-width: 100%; }
.mm-bal span.mm-bal-label { font-size: 11px; color: var(--dim);
  text-transform: uppercase; letter-spacing: .08em; }
.mm-bal b { display: block; margin-top: 2px; font-size: 20px; color: var(--gold);
  font-variant-numeric: tabular-nums; }
.mm-bal b small { font-size: 12px; font-weight: 600; color: var(--dim); }
.mm-bal .mm-bal-go {
  display: block; width: 100%; margin-top: 2px; padding: 0;
  background: none; border: 0; text-align: left; cursor: pointer;
  font: inherit; color: inherit;
}
.mm-bal .mm-bal-go .mm-bal-n {
  font-size: 20px; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.mm-bal .mm-bal-go small { font-size: 12px; font-weight: 600; color: var(--dim); }
.mm-bal .mm-bal-go:hover .mm-bal-n { text-decoration: underline; text-underline-offset: 3px; }
.mm-bal-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 6px; min-width: 0; max-width: 100%; }
.mm-bal .mm-add-credits,
.mm-bal .mm-send-credits {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 0;
  flex: 1 1 auto; min-width: 0; max-width: 100%;
  min-height: 32px; height: auto; padding: 6px 10px; border-radius: 999px;
  background: none; border: 1px solid transparent; font: inherit;
  font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--dim);
  cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px;
  white-space: normal; overflow-wrap: anywhere; text-align: center;
}
.mm-bal .mm-add-credits {
  color: var(--gold); border-color: #ffcf0666; background: #ffcf0614;
  text-decoration: none;
}
.mm-bal .mm-add-credits:hover,
.mm-bal .mm-send-credits:hover { color: var(--gold); }
.mm-send-panel { margin-top: 8px; min-width: 0; max-width: 100%; }
.mm-send-panel .row { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.mm-send-panel .mm-to,
.mm-send-panel .mm-amt,
.mm-send-panel .mm-send-btn {
  min-width: 0; max-width: 100%;
}
.mm-send-panel .mm-amt { flex: 1 1 110px; }
.mm-send-panel .mm-send-btn {
  flex: 1 1 8rem; white-space: normal; overflow-wrap: anywhere;
}
.mm-settings {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; margin: 0;
  background: none; border: 0; border-radius: 8px;
  color: var(--dim); cursor: pointer;
}
.mm-settings:hover { color: var(--gold); background: #ffffff10; }
.mm-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px;
  padding-top: 10px; border-top: 1px solid var(--line); }
.mm-foot .mm-out { flex: 1; width: 100%; }
.mm-mine, .mm-tours { margin: 4px 0 8px; }
.mm-mine-list, .mm-tours-list { max-height: 96px; overflow: auto; }
.mm-mine-h, .mm-tours-h {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; min-height: 32px; margin: 0; padding: 4px 0;
  background: none; border: 0; color: var(--gold); cursor: pointer;
  font: 700 11px/1 inherit; letter-spacing: .08em; text-transform: uppercase;
  text-align: left;
}
.mm-mine-h:hover:not(:disabled), .mm-mine-h:active:not(:disabled),
.mm-tours-h:hover:not(:disabled), .mm-tours-h:active:not(:disabled) {
  background: none; color: var(--gold); transform: none;
}
.mm-mine-caret, .mm-tours-caret { font-size: 11px; opacity: .8; transition: transform .14s; }
.mm-mine-h.is-open .mm-mine-caret,
.mm-tours-h.is-open .mm-tours-caret { transform: rotate(90deg); }
.mm-mine-body, .mm-tours-body { padding: 0 0 4px; }
.mm-mine-empty { margin: 0; font-size: 12px; }
.mm-mine-row {
  display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left;
  min-height: 0; padding: 5px 0; border: 0; border-top: 1px solid var(--line);
  color: inherit; text-decoration: none; background: none; cursor: pointer;
}
.mm-mine-row:hover:not(:disabled) { background: #ffffff0a; }
.mm-mine-all { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700;
  color: var(--gold); }
.mm-mine-row:first-child { border-top: 0; padding-top: 0; }
.mm-mine-row b { font-size: 13px; color: var(--ink); min-width: 0; max-width: 100%;
  overflow-wrap: anywhere; }
.mm-mine-row small { font-size: 11px; color: var(--dim); min-width: 0; max-width: 100%;
  overflow-wrap: anywhere; }
.mm-mine-sum { margin-top: 4px; font-size: 11.5px; color: var(--gold); font-weight: 650; }


.wb-list { display: flex; flex-direction: column; gap: 10px;
  max-height: min(70vh, 560px); overflow: auto; padding-bottom: 8px; }
.wb-card { margin: 0; }
.wb-card-title { margin: 0 0 8px; font-size: 15px; color: var(--gold); text-transform: none;
  letter-spacing: 0; }
.wb-needs { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.wb-need-line { display: flex; justify-content: space-between; gap: 8px;
  padding: 3px 0; font-size: 13.5px; }
.wb-owned { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: var(--gold,#FFCF06); }
.wb-craft-btn { width: 100%; }
.wb-msg { margin-top: 6px; min-height: 1.2em; }
a.mission-row { color: inherit; text-decoration: none; }

.refcode {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: ui-monospace, monospace; font-size: 22px; font-weight: 800;
  letter-spacing: .22em; color: var(--gold);
  background: #ffcf0614; border: 1px dashed #ffcf0666; border-radius: 10px;
  padding: 10px 16px;
}


.mm-owner { margin: 12px 0; padding: 12px; border-radius: 10px;
  background: #1c130033; border: 1px solid #ffcf0633; }
.mm-owner-h { margin: 0 0 8px; font-size: 11px; color: var(--gold);
  text-transform: uppercase; letter-spacing: .08em; }
.mm-owner .muted { font-size: 12px; }
.mm-owner select { margin-top: 6px; }
.mm-owner .mm-grant { padding-top: 10px; border-top: 1px dashed #ffffff1f; }
.mm-console { display: block; margin: 8px 0 2px; padding: 8px 10px; border-radius: 9px;
  font-size: 13px; font-weight: 700; color: var(--gold);
  background: #ffcf060f; border: 1px solid #ffcf0630; text-align: center; }
.mm-console:hover { background: #ffcf061c; }


.gm-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 24px);
  z-index: 80; max-width: min(380px, 92vw); padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(160deg, #10380a, #0a2600); color: #fff; cursor: pointer;
  border: 1px solid #ffcf0655; box-shadow: 0 16px 44px #000b; opacity: 0;
  transition: transform .38s cubic-bezier(.2,.9,.3,1.2), opacity .38s; }
.gm-toast.in { transform: translate(-50%, 0); opacity: 1; }
.gm-toast b { display: block; font-size: 15px; color: var(--gold); }
.gm-toast span { display: block; margin-top: 4px; font-size: 13px; color: #d6ebc9; line-height: 1.45; }


.invite-lbl { display: block; margin: 12px 0 5px; font-size: 12px; color: var(--dim); }
.invite-code-row { display: flex; align-items: center; gap: 10px; }
.invite-code { flex: 1; font-family: ui-monospace, monospace; font-size: 20px; font-weight: 800;
  letter-spacing: .2em; color: var(--gold); background: #ffcf0614;
  border: 1px dashed #ffcf0666; border-radius: 10px; padding: 8px 14px; text-align: center; }
.invite-send { display: flex; gap: 8px; }
.invite-send input { flex: 1; min-width: 0; }
.invite-vialabel { margin: 12px 0 8px; font-size: 12px; }
.invite-note { margin: 12px 0 4px; font-size: 12px; line-height: 1.5;
  padding: 10px 12px; border-radius: 10px; background: #42ae010f; border: 1px solid #42ae0130; }


.owner-scroll { max-height: 300px; overflow-y: auto; padding-right: 4px; }
.owner-scroll::-webkit-scrollbar { width: 8px; }
.owner-scroll::-webkit-scrollbar-thumb { background: #ffffff1f; border-radius: 8px; }


.install-band { display: flex; align-items: center; gap: 22px; margin: 22px auto 6px;
  max-width: 640px; flex-wrap: wrap; justify-content: center; text-align: left;
  background: linear-gradient(150deg, #12360033, #0b240055);
  border: 1px solid #ffcf0633; }
.install-copy { flex: 1; min-width: 240px; }
.install-copy h2 { color: var(--gold); }
.home-ctas {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin: 18px 0 10px;
}
@media (max-width: 640px) {
  
  #main.wrap { padding: 12px 12px 0; }
  body.dawn .hero { padding: 2px 0 12px; }
  body.dawn .hero .wordmark { font-size: clamp(28px, 8vw, 40px); }
  body.dawn .hero .sub { margin-top: 10px; }
  body.dawn .tabbar { margin-bottom: 12px; }
  .home-ctas {
    display: grid; grid-template-columns: 1fr; gap: 8px;
    margin: 12px 0 8px;
  }
  .home-ctas .primary,
  .home-ctas .ghost {
    width: 100%; min-height: 48px;
  }
}

body { min-height: 100vh; display: flex; flex-direction: column; }

#main.wrap { flex: 1 0 auto; width: 100%; display: flex; flex-direction: column;
  overflow-x: visible; }
.home-foot {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px 16px;
  margin: 28px 0 0; padding-top: 16px; padding-bottom: 18px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.home-foot button,
.home-foot a {
  background: none; border: 0; min-height: 32px; padding: 0;
  color: var(--dim); font-size: 13px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}

.home-foot a { display: inline-flex; align-items: center; }
.home-foot button:hover,
.home-foot a:hover { background: none; color: var(--ink); }
.play-extra { text-align: center; margin: 16px 0 0; }
.install-copy .primary { margin-top: 14px; min-width: 180px; }
.install-hint { margin-top: 12px; font-size: 13px; line-height: 1.5; max-width: 40ch; }
.install-qr { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-card { background: #fff; padding: 12px; border-radius: 14px; line-height: 0;
  box-shadow: 0 8px 24px #0007; }
.qr-card img { display: block; width: 150px; height: 150px; }
.install-qr span { font-size: 12px; }
@media (max-width: 520px) {
  .install-band { flex-direction: column-reverse; text-align: center; }
  .install-copy { min-width: 0; }
  .install-hint { margin-left: auto; margin-right: auto; }
}


.alpha-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #7f1d1d;              
  color: #fee2e2;
  font-size: 13px;
  line-height: 1.35;
  border-bottom: 1px solid #b91c1c;
  position: relative;
  z-index: 60;                      
}
body.play-map-on .alpha-bar { display: none; }
.alpha-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #f87171;
  flex: none;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, .22);
}

.alpha-bar span:not(.alpha-dot):not(.alpha-ver) { flex: 1; min-width: 0; }
.alpha-x {
  flex: none;
  background: none;
  border: 0;
  color: #fecaca;
  font-size: 15px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 6px;
}
.alpha-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.alpha-x:focus-visible { outline: 2px solid #fecaca; outline-offset: 1px; }
@media (max-width: 480px) {
  .alpha-bar { font-size: 12px; padding: 6px 10px; }
}


.merch-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; margin-top: 14px;
}
.merch-card { text-align: center; padding: 14px; }
.merch-art { display: block; margin-bottom: 8px; position: relative; isolation: isolate; }


.merch-strip,
.tour-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  border-radius: 10px;
  scrollbar-width: none;
}
.merch-strip::-webkit-scrollbar,
.tour-strip::-webkit-scrollbar { display: none; }



.tour-art {
  margin-bottom: 14px;
  width: min(100vw - 16px, 1320px);
  margin-left: calc(50% - min(50vw - 8px, 660px));
}

.tour-strip {
  --tour-gap: 44px;
  grid-auto-columns: 74%;
  column-gap: var(--tour-gap);
  scroll-snap-type: none;   
  border-radius: 0;         
  padding: 4px 0;           
}
@media (max-width: 640px) {
  
  .tour-strip { --tour-gap: 18px; grid-auto-columns: 90%; }
}
.tour-shot {
  display: block; width: 100%;
  position: relative;
}
.tour-shot::after {
  content: ""; position: absolute;
  left: 100%; top: 50%; width: var(--tour-gap); height: 3px;
  margin-top: -1.5px; background: #FFCF06;
}
.tour-shot img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1600 / 640; object-fit: cover;
  border: 3px solid #FFCF06;
  border-radius: 22px;
  
  -webkit-user-drag: none;
  user-select: none;
}
.tour-strip { cursor: grab; }
.tour-strip.dragging { cursor: grabbing; }
.merch-shot {
  scroll-snap-align: center;
  padding: 0; border: 0; background: none; cursor: zoom-in;
  display: block; width: 100%;
}

.merch-shot img {
  width: 100%; border-radius: 10px; display: block;
  aspect-ratio: 4 / 3; object-fit: contain;
  background: #0a1c04;
}
.merch-shot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }


.merch-final {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  display: block; width: 100%; margin: 8px 0 10px;
}
.merch-final img {
  width: 100%; height: auto; display: block; border-radius: 10px;
  background: #0a1c04;
}
.merch-final:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.merch-video { cursor: default; }
.merch-video video {
  width: 100%; border-radius: 10px; display: block;
  aspect-ratio: 4 / 3; object-fit: contain;
  background: #0a1c04;
}
.merch-pager {
  display: flex; justify-content: center; align-items: center; gap: 4px;
  margin-top: 8px; min-height: 30px;
}
.merch-dots { display: flex; justify-content: center; gap: 8px; }
.merch-dots[hidden] { display: none; }
.merch-dots button {
  
  width: 22px; height: 22px; padding: 0; border: 0; background: none;
  cursor: pointer; display: grid; place-items: center;
}
.merch-dots button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #ffffff3d; transition: background .15s ease;
}
.merch-dots button.on::before { background: var(--gold); }
.merch-dots button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: 50%; }


.merch-arrow {
  width: 34px; height: 34px; padding: 0;
  border: 1px solid #ffffff2e; border-radius: 50%;
  background: #0b1a04cc; color: #fff;
  font-size: 21px; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}
.merch-arrow:hover:not(:disabled) { background: #0b1a04; border-color: var(--gold); }
.merch-arrow:disabled { opacity: .3; cursor: default; }
.merch-arrow[hidden] { display: none; }
.merch-arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }


#merch-zoom {
  position: fixed; inset: 0; z-index: 80;
  background: #000000ee;
  display: grid; place-items: center;
  overflow: hidden; touch-action: none;
}
#merch-zoom[hidden] { display: none; }
#merch-zoom-img {
  max-width: 96vw; max-height: 86vh;
  transform-origin: center center;
  will-change: transform;
  user-select: none; -webkit-user-drag: none;
}
#merch-zoom-close {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 2;
}
#merch-zoom-hint {
  position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 0; right: 0;
  text-align: center; font-size: 12.5px; margin: 0; pointer-events: none;
}
.merch-svg { width: 120px; height: 100px; }
.merch-card b { display: block; color: var(--gold); margin-bottom: 2px; }
.merch-card small { display: block; line-height: 1.45; }
.merch-note {
  margin: 14px 0 0; padding: 10px 12px; border-radius: 10px;
  background: #42ae0114; border: 1px solid #42ae0140;
  color: var(--grass-lt); font-size: 12.5px; line-height: 1.55; text-align: center;
}


.build-chip {
  margin: 0 0 14px; font-size: 11.5px; color: #ffffff6b;
  display: flex; align-items: center; gap: 6px;
}
.build-chip code {
  font-family: ui-monospace, monospace; font-size: 11px;
  background: #ffffff12; padding: 2px 7px; border-radius: 6px; color: #ffffff9e;
}


.alpha-ver {
  
  flex: 0 0 auto; width: auto; align-self: center;
  font-weight: 700; font-size: 11px; letter-spacing: .3px;
  background: #fecaca24; color: #fee2e2; padding: 2px 7px; border-radius: 999px;
  border: 1px solid #fecaca3d;
}


.report-btn { margin-top: 8px; opacity: .75; }
.cmt-report { background: none; border: 0; color: #ffb4b4; font-size: 13px;
  cursor: pointer; padding: 2px 6px; margin-left: 4px; border-radius: 6px; }
.cmt-report:hover { background: #ffffff14; }


.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--gold);
  color: #1b3d00; font-weight: 800; padding: 10px 14px; border-radius: 10px;
  transition: top .15s; }
.skip-link:focus { top: 8px; }


.wall-line { margin-top: 4px; font-size: 12.5px; color: var(--grass-lt);
  display: flex; gap: 6px; align-items: center; }


.sug-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px; margin-top: 10px; }
.sug-card { background: #ffffff0d; border: 1px solid #ffffff1a; border-radius: 12px;
  padding: 11px 12px; }
.sug-card b { color: var(--gold); display: block; margin-bottom: 3px; }
.sug-what { margin: 0 0 4px; font-size: 13px; line-height: 1.45; }
.sug-tip { margin: 0 0 4px; font-size: 12px; line-height: 1.45; }
.sug-eg { margin: 0; font-size: 12px; font-style: italic; color: var(--grass-lt); }
.sug-derived { margin-top: 10px; font-size: 12.5px; }


.grp-private { margin: 6px 0 0; padding: 9px 12px; border-radius: 10px;
  background: #42ae0114; border: 1px solid #42ae0140; color: var(--grass-lt);
  font-size: 12.5px; line-height: 1.55; }
.grp-row { display: flex; gap: 8px; flex-wrap: wrap; }
.grp-row input { flex: 1; min-width: 120px; min-height: 42px; }
.grp-codein { max-width: 160px; text-align: center; letter-spacing: 3px;
  text-transform: uppercase; font-weight: 800; }
.grp-card { margin-bottom: 10px; }
.grp-code { font-family: ui-monospace, monospace; font-size: 18px; font-weight: 800;
  letter-spacing: 3px; color: var(--gold); background: #ffffff12;
  padding: 4px 10px; border-radius: 8px; }
.grp-stats { margin: 6px 0 0; font-size: 12.5px; }
.grp-board { margin: 8px 0 0; padding-left: 20px; font-size: 13px; }
.grp-board li { display: flex; gap: 8px; justify-content: space-between; margin: 3px 0; }
.grp-you { margin: 8px 0 6px; font-size: 12.5px; color: var(--grass-lt); }


html.gate-locked { background: #0E2A00; }

html.gate-locked:not(.gate-home) body > *:not(.gate) { display: none !important; }

html.gate-locked.gate-home body > *:not(.parallax-bg):not(.appbar):not(#main):not(.gate) {
  display: none !important;
}
html.gate-locked.gate-home .tabbar,
html.gate-locked.gate-home .tabpanel,
html.gate-locked.gate-home .alpha-bar,
html.gate-locked.gate-home .langswitch,
html.gate-locked.gate-home #authbox,
html.gate-locked.gate-home .section-chip { display: none !important; }
html.gate-locked.gate-home #main { display: block !important; }
html.gate-locked.gate-home #main > *:not(.hero) { display: none !important; }
html.gate-locked.gate-home .gate[hidden] { display: none !important; }
html.gate-locked.gate-home .gate {
  background: rgba(7, 25, 0, .48);
}
.gate-open-btn {
  display: none;
  margin: 16px auto 0;
  min-height: 36px; padding: 6px 14px;
  border: 1px solid #ffcf0666; border-radius: 99px;
  background: #ffffff12; color: #FBE3B4;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
html.gate-locked.gate-home .gate-open-btn { display: inline-flex; align-items: center; }


.gate {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  
  background:
    url("gate-topo.webp") repeat center / 620px auto,
    radial-gradient(120% 90% at 50% 38%, #0a3010 0%, #062b0d 46%, #041a06 100%);
}

.gate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(115% 85% at 50% 38%,
              rgba(6, 43, 13, .34) 0%, rgba(5, 30, 9, .60) 58%, rgba(3, 16, 4, .84) 100%);
}
.gate-card {
  position: relative;              
  width: min(360px, 100%); max-height: 100%;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  text-align: center;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 0;
}

.gate-crest {
  display: block; width: fit-content; margin: 0 auto 22px;
  padding: 20px 26px 22px; border-radius: 22px;
  border: 2px solid rgba(255, 207, 6, .78);
  background:
    url("gate-topo.webp") repeat center / 190px auto,
    linear-gradient(165deg, #0d3411, #071f08);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .52),
    0 0 0 1px rgba(255, 207, 6, .18),
    inset 0 0 46px rgba(0, 0, 0, .38);
}
.gate-logo {
  display: block; width: 100%; height: auto; max-width: 280px;
  margin: 0;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45));
}
.gate .sheet-cta { background: none; box-shadow: none; }
.gate-card h1 {
  margin: 0 0 2px; font-size: 26px; letter-spacing: .5px; color: #FFCF06;
}
.gate-sub {
  margin: 0 0 26px; font-size: 12.5px; letter-spacing: .6px;
  text-transform: uppercase; color: #cfe3c0; opacity: .82;
}
.gate-card label {
  display: block; text-align: left; font-size: 12px;
  color: #cfe3c0; margin: 0 0 6px; letter-spacing: .3px;
}
.gate-card input {
  width: 100%; box-sizing: border-box; padding: 13px 14px; font-size: 16px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .35); color: #fff;
}
.gate-card input:focus { outline: 2px solid #FFCF06; outline-offset: 1px; }
.gate-card button {
  width: 100%; margin-top: 14px; padding: 13px; font-size: 15px; font-weight: 700;
  border: 0; border-radius: 10px; cursor: pointer;
  background: #FFCF06; color: #123000;
}
.gate-card button:hover { filter: brightness(1.06); }
.gate-err { margin: 12px 0 0; font-size: 13px; color: #ffb4a8; }
@media (prefers-reduced-motion: reduce) { .gate * { transition: none !important; } }


@media (max-width: 900px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
  textarea, select {
    font-size: 16px !important;
  }
}


@media (pointer: coarse) and (orientation: portrait) {
  body.dawn .parallax-bg {
    filter: saturate(1.25) contrast(1.10) brightness(0.86);
  }
}


@media (pointer: coarse) {
  #install-btn { min-height: 46px; padding-left: 20px; padding-right: 20px; }
}


.how-panel { margin-top: 14px; background: #ffffff09; border: 1px solid #ffffff1f; }
.how-title { display: block; color: var(--gold); }
.how-lead { margin: 5px 0 12px; font-size: 13px; line-height: 1.5; }
.how-cols { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .how-cols { grid-template-columns: 1fr; } }
.how-role { display: block; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--grass-lt); font-weight: 800; margin-bottom: 6px; }
.how-steps { margin: 0; padding-left: 20px; }
.how-steps li { font-size: 13px; line-height: 1.55; margin: 7px 0; }
.how-steps li::marker { color: var(--gold); font-weight: 800; }



.report-flag {
  min-width: 34px; min-height: 34px; padding: 0 8px;
  font-size: 15px; line-height: 1; opacity: .45;
  border-radius: 9px; transition: opacity .15s, color .15s, border-color .15s;
}
.report-flag:hover, .report-flag:focus-visible { opacity: 1; color: #ED2900; border-color: #ED290066; }


.acc-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; align-items: center; }
.acc-chip {
  font-size: 12.5px; font-weight: 650; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--dim); cursor: pointer;
}
.acc-chip.is-on { border-color: var(--grass); color: var(--ink); background: #42ae0114; }
.acc-hidden { margin: 0 0 10px; font-size: 12.5px; }
.acc-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }

.acc-tag {
  font-size: 11px; font-weight: 650; padding: 2.5px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--dim); white-space: nowrap;
}
.acc-panel { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 4px; }
.acc-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.acc-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.acc-f select { width: 100%; }
.acc-nudge { font-size: 12.5px; }


.souv-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.souv-card { display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-align: center; padding: 10px 6px; border: 1px solid var(--line);
  border-radius: 12px; background: #ffffff08; }
.souv-card.is-locked { opacity: .62; }
.souv-card b { font-size: 12.5px; line-height: 1.25; }
.souv-card small { font-size: 10.5px; }
.souv-have { color: var(--gold); font-weight: 700; }
.souv-get { margin-top: 4px; }
.souv-mine { display: grid; gap: 0; }
.souv-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--line); }
.souv-row:last-child { border-bottom: 0; }
.souv-row b { font-size: 13.5px; }
.souv-n { margin-left: auto; font-size: 12px; color: var(--gold); font-weight: 700;
  font-variant-numeric: tabular-nums; }

.souv-plant { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: #ffcf060a; }
.souv-plant p { margin: 0; }
.souv-attrib { margin: 14px 0 0; font-size: 11px; color: var(--dim); opacity: .85; }


#handout-box { position: fixed; inset: 0; z-index: 11; display: none;
  place-items: center; background: #0b2400f5; padding: 20px; }
#handout-box:not([hidden]) { display: grid; }
#handout-box > div { max-width: 560px; width: 100%; max-height: 86vh;
  display: flex; flex-direction: column; }
#handout-text, #brief-handout { white-space: pre-wrap; overflow: auto; flex: 1;
  overflow-wrap: anywhere; word-break: break-word;
  font: 600 11.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #0e2a00; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; margin: 0 0 12px; color: var(--ink); }
#brief-handout { max-height: 190px; font-size: 10.5px; }


.pz-box, .tb-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  background: #ffffff05; }
.pz-box select, .pz-box input, .tb-box input, .tb-box textarea { width: 100%; }
.pz-box select { margin-bottom: 8px; }
#pz-out { white-space: pre-wrap; word-break: break-all; max-height: 150px; overflow: auto;
  margin: 8px 0 0; padding: 10px; border-radius: 8px; background: #0b2400;
  border: 1px solid var(--line); font: 500 11px/1.5 ui-monospace, Menlo, monospace;
  color: var(--dim); }
#pz-out[hidden] { display: none; }
.pz-note { min-height: 1.2em; }
.tb-box textarea { margin-top: 8px; font: 500 12.5px/1.5 ui-monospace, Menlo, monospace; }


.ts-box { margin-top: 4px; }
.ts-tpls { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ts-header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.ts-header-preview { width: 100%; max-height: 100px; object-fit: cover; border-radius: 8px; }
.ts-editor { margin-top: 4px; }
.ts-empty { margin: 8px 0; font-size: 12.5px; }
.ts-grid { display: flex; flex-direction: column; gap: 6px; overflow-x: auto; }
.ts-grid-row { display: flex; gap: 6px; align-items: center; min-width: min-content; }
.ts-grid-head { align-items: flex-end; }
.ts-grid-mug, .ts-grid-mug-h { width: 52px; flex: 0 0 52px; text-align: center; font-size: 10px; color: var(--dim); }
.ts-grid-mug { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ts-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.ts-col-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 88px; flex: 1; }
.ts-cell-wrap { display: contents; } 
.ts-col-input, .ts-cell-input { width: 100%; min-width: 88px; flex: 1;
  font: 500 12.5px/1.4 system-ui, sans-serif; padding: 6px 8px; border-radius: 8px;
  border: 1px solid var(--line); background: #0b2400; color: var(--ink); }
.ts-rm-row, .ts-photo-btn, .ts-photo-clear { padding: 2px 8px; min-width: 28px; }

.ts-rm-col {
  width: 100%; min-width: 0; margin-top: 2px; padding: 2px 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--dim); border: 1px dashed var(--line); border-radius: 6px;
}
.ts-rm-col:hover, .ts-rm-col:focus-visible { color: #ED2900; border-color: #ED2900; }
.ts-preview-wrap { margin-top: 8px; }

.ts-preview { border: 1px dashed var(--line); border-radius: 10px; padding: 10px;
  background: #0b2400; max-height: 280px; overflow: auto;
  container-type: inline-size; container-name: ts-preview; }
.ts-preview .clue-item { margin: 0; }
.ts-preview-text { white-space: pre-wrap; font: 500 12px/1.45 ui-monospace, Menlo, monospace; margin: 6px 0 0; }
.ts-advanced { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.ts-advanced > summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--grass-lt, #42AE01); }
.ts-adv-label { display: block; margin: 8px 0 4px; font-size: 12.5px; font-weight: 600; }
textarea.mono { font: 500 12.5px/1.5 ui-monospace, Menlo, monospace; }
.imp-why { margin: 6px 0 0 18px; padding: 0; font-size: 12px; color: var(--dim); }


.ts-clue { display: flex; flex-direction: column; gap: 8px;
  container-type: inline-size; container-name: ts-clue; }
.ts-clue-header { width: 100%; max-height: 120px; object-fit: cover; border-radius: 8px; }
.ts-clue-table { display: flex; flex-direction: column; gap: 4px; font-size: 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ts-clue-row { display: grid; grid-template-columns: var(--ts-template, repeat(auto-fit, minmax(4.5rem, 1fr)));
  gap: 6px; align-items: center;
  padding: 6px 8px; border-radius: 8px; background: #ffffff0a; }
.ts-clue-head { font-weight: 700; color: var(--gold, #FFCF06); background: transparent; }
.ts-clue-mug { width: var(--ts-mug, 40px); height: var(--ts-mug, 40px); border-radius: 6px; overflow: hidden;
  background: #00000044; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; }
.ts-clue-mug img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-clue-icon { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px;
  object-fit: contain; }
.ts-clue-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ts-clue-name { font-weight: 700; }


.ts-clue-bingo-grid { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.ts-clue-bingo-head, .ts-clue-bingo-row {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
}
.ts-clue-bingo-letter {
  text-align: center; font-weight: 800; font-size: 13px;
  color: var(--gold, #FFCF06); letter-spacing: .08em; padding: 2px 0;
}
.ts-clue-bingo-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 11px; font-weight: 600; line-height: 1.2;
  padding: 4px; border-radius: 8px; background: #ffffff12;
  border: 1px solid #ffffff22; overflow: hidden; word-break: break-word;
}
.ts-clue-bingo-free {
  background: #FFCF0622; color: var(--gold, #FFCF06); font-weight: 800;
}


.ts-clue-suspects { --ts-mug: 52px; }

@media (max-width: 560px) {
  .ts-clue-suspects .ts-clue-table { overflow: visible; }
  .ts-clue-suspects .ts-clue-head { display: none; }
  .ts-clue-suspects .ts-clue-row:not(.ts-clue-head) {
    display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px;
    padding: 8px; border: 1px solid #ffffff22; border-radius: 12px;
    background: #ffffff10; grid-template-columns: none;
  }
  .ts-clue-suspects .ts-clue-mug {
    width: 52px; height: 52px; flex: 0 0 52px; border-radius: 8px; order: 0;
  }
  .ts-clue-suspects .ts-clue-cell {
    flex: 1 1 calc(50% - 10px); min-width: 0;
    white-space: normal; overflow: visible; text-overflow: unset;
    display: flex; flex-direction: column; gap: 1px;
    font-size: 12px; color: #dfe8d2; order: 2;
  }
  .ts-clue-suspects .ts-clue-cell::before {
    content: attr(data-label);
    font-size: 10px; font-weight: 700; letter-spacing: .04em;
    color: var(--gold, #FFCF06);
  }
  .ts-clue-suspects .ts-clue-name {
    flex: 1 1 calc(100% - 70px); min-width: 8rem; order: 1;
    font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .04em;
  }
  

  
  .ts-grid { overflow-x: visible; gap: 10px; }
  .ts-grid-head { display: none; }
  .ts-grid-row:not(.ts-grid-head) {
    display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 8px;
    min-width: 0; padding: 10px 8px; border: 1px solid #ffffff22;
    border-radius: 12px; background: #ffffff10;
  }
  .ts-grid-mug { flex: 0 0 52px; width: 52px; order: 0; }
  .ts-cell-wrap {
    display: flex; flex-direction: column; gap: 2px;
    flex: 1 1 calc(50% - 8px); min-width: 0; order: 2;
  }
  .ts-cell-wrap::before {
    content: attr(data-label);
    font-size: 10px; font-weight: 700; letter-spacing: .04em;
    color: var(--gold, #FFCF06);
  }
  .ts-cell-wrap.ts-cell-name {
    flex: 1 1 calc(100% - 70px); min-width: 8rem; order: 1;
  }
  
  .ts-cell-wrap .ts-cell-input { min-width: 0; width: 100%; flex: none; }
  .ts-cell-wrap.ts-cell-name .ts-cell-input {
    font-size: 15px; font-weight: 700; letter-spacing: .04em;
  }
  .ts-rm-row { order: 3; margin-left: auto; align-self: flex-start; }
}


@container ts-preview (max-width: 560px) {
  .ts-clue-suspects .ts-clue-table { overflow: visible; }
  .ts-clue-suspects .ts-clue-head { display: none; }
  .ts-clue-suspects .ts-clue-row:not(.ts-clue-head) {
    display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px;
    padding: 8px; border: 1px solid #ffffff22; border-radius: 12px;
    background: #ffffff10; grid-template-columns: none;
  }
  .ts-clue-suspects .ts-clue-mug {
    width: 52px; height: 52px; flex: 0 0 52px; border-radius: 8px; order: 0;
  }
  .ts-clue-suspects .ts-clue-cell {
    flex: 1 1 calc(50% - 10px); min-width: 0;
    white-space: normal; overflow: visible; text-overflow: unset;
    display: flex; flex-direction: column; gap: 1px;
    font-size: 12px; color: #dfe8d2; order: 2;
  }
  .ts-clue-suspects .ts-clue-cell::before {
    content: attr(data-label);
    font-size: 10px; font-weight: 700; letter-spacing: .04em;
    color: var(--gold, #FFCF06);
  }
  .ts-clue-suspects .ts-clue-name {
    flex: 1 1 calc(100% - 70px); min-width: 8rem; order: 1;
    font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .04em;
  }
  
}


:root {
  --cal-work: #39FF6A;      
  --cal-work-2: #0FDD57;
  
  --cal-off: #FFCF06;
  --cal-off-2: #D9A800;
}


.cal-head { display:flex; align-items:center; justify-content:center; padding:9px 0 7px; }
.cal-title { margin:0; font-size:16px; text-align:center; text-transform:capitalize; }


.cal-modebar { display:flex; gap:10px; margin:0 0 12px; }
.cal-mode-btn {
  flex:1; min-height:52px; border-radius:12px; font:800 15px/1 system-ui,sans-serif;
  letter-spacing:.01em; border:1.5px solid var(--line); background:#ffffff08;
  color:var(--ink); transition:background .12s,border-color .12s,color .12s;
}
.cal-mode-btn.k-working:hover { border-color:var(--cal-work); }
.cal-mode-btn.k-off:hover { border-color:var(--cal-off); }
.cal-mode-btn.k-working.on {
  border-color:var(--cal-work); color:#04170B;
  background:linear-gradient(180deg, var(--cal-work) 0%, var(--cal-work-2) 100%);
  box-shadow:0 0 0 1px var(--cal-work-2) inset, 0 0 18px 2px #39ff6a80, 0 0 42px 6px #39ff6a40;
}
.cal-mode-btn.k-off.on {
  border-color:var(--cal-off); color:#211a00;
  background:linear-gradient(180deg, var(--cal-off) 0%, var(--cal-off-2) 100%);
  box-shadow:0 0 0 1px var(--cal-off-2) inset, 0 0 18px 2px #ffcf0680, 0 0 42px 6px #ffcf0640;
}
.cal-mode-hint { margin:0 0 10px; font-size:12.5px; min-height:1.4em; }
.cal-mode-err { margin:0 0 8px; font-size:12.5px; }


.cal-scroll {
  max-height:min(58vh, 460px); overflow-y:auto; overflow-x:hidden;
  border:1px solid var(--line); border-radius:10px; padding:0 10px 10px;
  -webkit-overflow-scrolling:touch;
}
.cal-sticky {
  position:sticky; top:0; z-index:2; background:var(--panel-solid, #0b2400);
  padding-top:2px; margin:0 -10px; padding-left:10px; padding-right:10px;
  border-bottom:1px solid var(--line);
}
.cal-month-section { margin:10px 0 16px; }
.cal-month-section:first-child { margin-top:6px; }

.cal-dow, .cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:5px; }
.cal-dow { font:600 10.5px/1 ui-monospace,monospace; letter-spacing:.08em; color:var(--dim);
  text-transform:uppercase; text-align:center; padding-bottom:7px; }
.cal-day {
  position:relative; min-height:46px; border:1px solid var(--line); border-radius:9px;
  background:transparent; color:var(--ink); cursor:default; padding:4px 2px 3px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px; font:700 13px/1 system-ui,sans-serif; transition:background .1s,transform .06s;
}

span.cal-day.out { border:none; background:none; min-height:46px; }
.cal-day.today { border-color:var(--gold); border-width:2px; }
.cal-today-label {
  display:block; font:800 8px/1 ui-monospace,monospace; letter-spacing:.05em;
  text-transform:uppercase; color:var(--gold); margin-top:1px;
}
.cal-day.syncing { opacity:.55; cursor:wait; }
.cal-wrap[data-paint-mode] .cal-day:not(.out) { cursor:pointer; }
.cal-wrap[data-paint-mode] .cal-day:not(.out):active { transform:scale(.94); }
.cal-wrap[data-paint-mode="working"] .cal-day:not(.out):not(.mark-working):not(.mark-off):hover {
  border-color:var(--cal-work); box-shadow:0 0 10px 0 #39ff6a55;
}
.cal-wrap[data-paint-mode="off"] .cal-day:not(.out):not(.mark-working):not(.mark-off):hover {
  border-color:var(--cal-off); box-shadow:0 0 10px 0 #ffcf0655;
}


.cal-day.mark-working:not(.mark-off) {
  border-color:var(--cal-work-2); color:#04170B;
  background:radial-gradient(120% 130% at 30% 20%, var(--cal-work) 0%, var(--cal-work-2) 100%);
  box-shadow:0 0 0 1px #0fdd5760 inset, 0 0 14px 1px #39ff6a70, 0 0 30px 4px #39ff6a30;
}
.cal-day.mark-off:not(.mark-working) {
  border-color:var(--cal-off-2); color:#2A2200;
  background:radial-gradient(120% 130% at 30% 20%, var(--cal-off) 0%, var(--cal-off-2) 100%);
  box-shadow:0 0 0 1px #d9a80060 inset, 0 0 14px 1px #ffcf0670, 0 0 30px 4px #ffcf0630;
}

.cal-day.mark-working.mark-off {
  color:#0E0A08;
  background:linear-gradient(135deg, var(--cal-work) 0 48%, var(--cal-off) 52% 100%);
  box-shadow:0 0 14px 1px #ffffff30, 0 0 28px 3px #ffffff18;
}


.cal-day.today.mark-working,
.cal-day.today.mark-off { border-color:var(--gold); }


.mm-cal[hidden] { display:none; }
.cal-modal .card { max-width:min(94vw, 640px); padding:22px 24px; }
.cal-modal-head { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.cal-modal-head h2 { flex:1; margin:0; }
.cal-modal-body { max-height:80vh; overflow-y:auto; }
.cal-modal .cal-day { min-height:58px; font-size:14px; }
.cal-modal .cal-mode-btn { min-height:56px; font-size:16px; }
.cal-modal .cal-dow { font-size:11.5px; }


.cal-note-preview {
  position:absolute; top:2px; left:2px; right:2px; z-index:1;
  background:#fffdf5e6; color:#101008; font:700 7.5px/1.15 system-ui,sans-serif;
  padding:1.5px 3px; border-radius:4px; text-align:left;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.cal-note-preview:empty, .cal-note-preview[hidden] { display:none; }
.cal-modal .cal-note-preview { font-size:9px; padding:2px 4px; }

.cal-day.has-note .cal-num { margin-top:11px; }
.cal-modal .cal-day.has-note .cal-num { margin-top:13px; }

.cal-holiday-dot {
  position:absolute; bottom:3px; left:4px; width:5px; height:5px; border-radius:50%;
  background:var(--gold); box-shadow:0 0 4px 1px #ffcf0690;
}
.cal-day.holiday:not(.mark-working):not(.mark-off):not(.today) { border-color:#ffcf0670; }

.cal-weather {
  position:absolute; bottom:1px; right:3px; font:700 8.5px/1 system-ui,sans-serif;
  letter-spacing:-.02em; white-space:nowrap;
}
.cal-weather:empty { display:none; }
.cal-modal .cal-weather { font-size:10.5px; bottom:2px; right:4px; }

.cal-day.today .cal-weather { bottom:12px; }
.cal-modal .cal-day.today .cal-weather { bottom:15px; }


.cal-detail-modal .card { max-width:min(94vw, 420px); padding:20px 22px; }
.cal-detail-body { max-height:70vh; overflow-y:auto; display:flex; flex-direction:column; gap:10px; }
.cal-detail-body h3 {
  margin:6px 0 2px; font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--dim);
}
.cal-detail-holiday { margin:0; font:700 14px/1.3 system-ui,sans-serif; color:var(--gold); }
.cal-detail-weather { display:flex; align-items:center; gap:12px; }
.cal-detail-wx-icon { font-size:34px; line-height:1; }
.cal-detail-wx-nums { display:flex; flex-direction:column; gap:2px; font:600 13px/1.3 system-ui,sans-serif; }
.cal-detail-notes { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.cal-detail-notes li { border:1px solid var(--line); border-radius:10px; padding:8px 10px; }
.cal-detail-notes strong { display:block; font-size:12.5px; margin-bottom:2px; }
.cal-detail-note-text { display:block; font-size:13px; color:var(--ink); }


#move-bar {
  position: absolute; left: 10px; right: 10px;
  bottom: calc(var(--fab-bottom) + 64px);
  z-index: 5;
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
  padding: 10px 12px;
  background: #0b2400f2; border: 1px solid #ffcf0666; border-radius: 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px -8px #000a;
}
#move-bar[hidden] { display: none; }
#move-bar #move-bar-text {
  font-size: 13px; line-height: 1.35; color: #eef7e8;
  min-width: 0; flex: none;
}
#move-bar .move-bar-actions {
  display: flex; gap: 8px; align-items: center; justify-content: flex-end;
  flex-wrap: nowrap;
}
#move-bar .move-bar-actions > button {
  flex: 0 0 auto; white-space: nowrap; min-width: 0;
  width: auto; max-width: none;
}


body.moving-stop #build-tools .hammer-btn,
body.moving-stop #plant-hint,
body.moving-stop #hammer-menu,
body.moving-stop .help-bubble,
body.moving-stop #build-ready,
body.moving-stop #ready-menu,
body.moving-stop #walk-stack {
  visibility: hidden !important;
  pointer-events: none !important;
}


.grp-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grp-big {
  display: grid; justify-items: center; gap: 4px;
  padding: 22px 12px; border-radius: 16px; border: 1px solid #ffffff26;
  background: #ffffff10; color: #fff; cursor: pointer;
  font-size: 16px;
}
.grp-big b { font-size: 19px; letter-spacing: .04em; }
.grp-big .muted { font-size: 12.5px; text-align: center; }
.grp-big:hover, .grp-big:focus-visible { border-color: var(--gold); background: #ffffff18; }
.grp-big-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: #1B3D00; font-size: 24px; font-weight: 900;
}
.asm-num { display: grid; gap: 3px; font-size: 12.5px; color: #cfe0c8; }
.asm-num select { min-height: 38px; }

#asm-board { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { #asm-board { grid-template-columns: 1fr 1fr; } }
.asm-bubble {
  border: 1px solid #ffffff22; border-left: 5px solid var(--team, var(--gold));
  border-radius: 14px; padding: 10px 12px;
  background: #ffffff0d;
  display: grid; gap: 8px;
}
.asm-bubble.over { outline: 2px dashed var(--team, var(--gold)); outline-offset: 2px; }
.asm-head { display: flex; align-items: center; gap: 8px; }
.asm-diamond {
  width: 16px; height: 16px; flex: 0 0 16px;
  background: var(--team, var(--gold));
  transform: rotate(45deg); border-radius: 3px;
  box-shadow: 0 0 0 2px #0006;
}
.asm-leadname { font-size: 13px; color: #9fb694; font-style: italic; }
.asm-leadname.on { color: #fff; font-style: normal; font-weight: 700; }
.asm-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.asm-dot {
  width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center;
  background: #ffffff2b; color: #ffffff88;      
  font-weight: 800; font-size: 13px; cursor: default;
}
.asm-dot.on {
  background: var(--team, var(--gold)); color: #1B3D00; cursor: grab;
  box-shadow: 0 2px 6px -2px #000a;
}
.asm-dot.picked { outline: 3px solid #fff; outline-offset: 2px; }
.asm-meta { font-size: 12.5px; }
.asm-codes { display: flex; flex-wrap: wrap; gap: 6px; }
.asm-planbox { display: grid; gap: 6px; }
.asm-planbox textarea {
  background: #0b0d09; color: #fff; border: 1px solid #ffffff2b; border-radius: 8px;
  padding: 8px; font: inherit; resize: vertical;
}
#asm-qr {
  position: fixed; inset: 0; z-index: 70; background: #000b;
  display: grid; place-items: center; padding: 16px;
}
#asm-qr[hidden] { display: none; }
#asm-qr-panel {
  width: min(360px, 100%);
  background: #fff; color: #123; border-radius: 16px; padding: 18px;
  display: grid; gap: 10px; justify-items: center; text-align: center;
}
#asm-qr-panel b { font-size: 18px; }
#asm-qr-svg svg { width: min(260px, 70vw); height: auto; display: block; }
#asm-qr-code { font-size: 30px; font-weight: 900; letter-spacing: .18em; color: #123; }
#asm-qr-hint { font-size: 13px; color: #567; margin: 0; }



.payout-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  justify-content: space-between; }
.payout-head h2 { margin: 0; }
.payout-chip {
  font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 99px; white-space: nowrap;
  border: 1px solid currentColor;
}
.payout-chip.is-on  { color: #1B3D00; background: var(--gold); border-color: var(--gold); }
.payout-chip.is-off { color: var(--dim); background: #ffffff10; }
.payout-lead { margin: 14px 0 10px; }

.payout-consent {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px;
  align-items: start; padding: 11px 0; border-top: 1px solid var(--line);
  cursor: pointer; min-width: 0; max-width: 100%;
}
.payout-consent > span { min-width: 0; overflow-wrap: anywhere; }
.payout-consent input { margin-top: 3px; width: 17px; height: 17px; }
.payout-consent b { display: block; font-size: 14.5px; margin-bottom: 2px;
  min-width: 0; overflow-wrap: anywhere; }
.payout-consent small { color: var(--dim); font-size: 13px; line-height: 1.5; display: block;
  min-width: 0; overflow-wrap: anywhere; }
.payout-decline { margin: 12px 0 14px; font-size: 13px; }

#payout-go:disabled {
  opacity: .45; filter: grayscale(.55); box-shadow: none;
}
#payout-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--dim); }
#payout-hint[hidden] { display: none; }



.kind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
@media (min-width: 620px) { .kind-grid { grid-template-columns: repeat(4, 1fr); } }
.kind {
  display: grid; justify-items: center; gap: 0;
  padding: 6px; border-radius: 13px;
  border: 1px solid #ffffff26; background: #ffffff10;
  color: var(--ink); cursor: pointer; text-align: center;
  transition: background .14s, border-color .14s, transform .14s;
}
.kind:hover, .kind:focus-visible {
  border-color: var(--gold); background: #ffffff18; transform: translateY(-2px);
}


.kind-art {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1 / 1; object-fit: contain;
  border-radius: 10px;
}.kind b { font-size: 13px; font-weight: 700; line-height: 1.25; }

.grp-back {
  display: inline-block; background: none; border: 0; padding: 0;
  margin: 0 0 8px; min-height: 0;
  color: var(--dim); font-size: 12.5px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.grp-back:hover { background: none; color: var(--ink); }



.grp-themed {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; gap: 15px; align-items: center;
  padding: 15px; margin: 0 0 14px;
  border-radius: 14px; border: 1px solid #ffffff24;
}
.grp-themed::before {
  content: ""; position: absolute; inset: -25%;
  background: var(--kind-wash) center / cover no-repeat;
  filter: blur(26px) saturate(2.2);
  opacity: .92; z-index: -1;
}

.grp-themed::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    #06180026 0%, #0618003d 30%, #061800d9 60%, #061800f0 100%);
  z-index: -1;
}


.grp-crest {
  flex: none; width: 104px; height: 104px; border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 16px #0009;
}.grp-themed-copy { min-width: 0; }
.grp-themed-copy b { display: block; font-size: 16px; margin-bottom: 3px; color: var(--gold); }
.grp-themed-copy p { margin: 0; font-size: 13px; line-height: 1.5; }
@media (max-width: 380px) { .grp-crest { width: 82px; height: 82px; } }


.tr-figure { margin: 0 0 14px; }
.tr-figure img {
  width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto;
  border-radius: 12px; border: 1px solid var(--line);
}
.tr-lead { margin: 0 0 4px; }

.tr-qmark {
  height: 1.15em;
  width: auto;
  vertical-align: -0.22em;
  margin-left: .2em;
}


.tr-onmap {
  margin: 2px 0 8px;
  font-size: 13.5px;
  line-height: 1.45;
}
.tr-reward { margin: 0 0 4px; color: var(--gold); font-weight: 700; }
.tr-hint { margin: 0 0 14px; font-size: 13px; }



.tr-boxes {
  display: flex; flex-wrap: nowrap; gap: clamp(3px, 1.1vw, 6px);
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.tr-box {
  flex: 1 1 0; min-width: 0; max-width: 40px; width: auto;
  aspect-ratio: 34 / 44; height: auto;
  padding: 0; text-align: center;
  font-size: clamp(14px, 4.2vw, 19px); font-weight: 700; text-transform: uppercase;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--ink); background: #0000004d;
  border: 1px solid var(--line); border-radius: 8px;
}
.tr-box:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.tr-dash { flex: none; color: var(--gold); opacity: .6; font-weight: 700; }
.tr-enter { width: 100%; }


.tr-locked { text-align: center; }
.tr-track {
  height: 8px; border-radius: 99px; overflow: hidden;
  background: #00000059; margin: 12px 0 6px;
}
.tr-track > span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--grass), var(--gold));
  transition: width .5s ease;
}
.tr-progress { margin: 0; font-size: 13px; }

.tr-reveal { margin: 14px 0; }
.tr-reveal video { width: 100%; border-radius: 12px; display: block; }


.tr-claim { margin-top: 14px; }
.tr-qbox {
  border: 1px dashed var(--line); border-radius: 10px;
  padding: 10px 12px; margin-top: 10px;
}
.tr-qtitle { font-size: 12px; letter-spacing: .3px; color: var(--gold); }
.tr-qbox p { margin: 6px 0 0; font-size: 13.5px; }
.tr-qlabel { color: var(--gold); opacity: .8; margin-right: 4px; }
.tr-answer { color: var(--ink); }
.tr-qhint { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; }

.tr-proof { display: block; margin-top: 12px; font-size: 13px; }
.tr-proof input { display: block; margin-top: 6px; width: 100%; font-size: 13px; }

.tr-proof-pic {
  display: block; width: 100%; max-height: 220px; object-fit: contain;
  margin: 10px auto 0; border-radius: 10px; background: #0000004d;
}
.tr-adult {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 12px; font-size: 13px; line-height: 1.45;
}

.tr-adult input {
  flex: none; width: 16px; height: 16px; margin-top: 2px;
}

.tr-adult span { flex: 1; min-width: 0; }


.brand-lockup { display: none; }
.brand:has(.brand-lockup) {
  border: 0; padding: 2px 4px; background: none;
}
.brand:has(.brand-lockup):hover { background: #ffffff10; }
.brand:has(.brand-lockup) .wordmark,
.brand:has(.brand-lockup) .xmark { display: none; }
.brand .brand-lockup {
  display: block; width: clamp(112px, 26vw, 150px); height: auto;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .55));
}

body.stage-green .appbar {
  background: linear-gradient(180deg, #06180099 0%, #06180040 62%, #06180000 100%);
  border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}


.stage-bg { display: none; }
body.stage-green .stage-bg {
  display: block; position: fixed; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
  
  background: radial-gradient(105% 85% at 22% 8%,
              #1a5220 0%, #0f3814 34%, #08240c 66%, #031205 100%);
}

body.stage-green .parallax-bg { display: none !important; }




body.stage-green .stage-topo {
  position: absolute; inset: -450px -880px;
  background: url("gate-topo.webp") repeat center / 860px auto;
  opacity: .45;
  animation: stage-drift 150s linear infinite;
  will-change: transform;
}
@keyframes stage-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-860px, -430px, 0); }
}

.stage-veil { display: none; }



body.stage-green .stage-beams {
  
  position: absolute; inset: -22%;
  
  background:
    linear-gradient(72deg,  transparent 47.4%, rgba(255, 207, 6, .30) 50%, transparent 52.6%),
    linear-gradient(-58deg, transparent 48%,   rgba(255, 207, 6, .20) 50%, transparent 52%),
    linear-gradient(28deg,  transparent 48.6%, rgba(255, 207, 6, .13) 50%, transparent 51.4%);
  animation: stage-beam 26s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes stage-beam {
  from { transform: translate3d(0, 2%, 0);  opacity: .55; }
  to   { transform: translate3d(0, -3%, 0); opacity: 1; }
}


@media (prefers-reduced-motion: reduce) {
  body.stage-green .stage-topo,
  body.stage-green .stage-beams { animation: none; }
}


body.stage-green.stage-groups .stage-bg,
body.stage-green.stage-tours .stage-bg {
  background: radial-gradient(105% 85% at 22% 8%,
              #211b08 0%, #141005 45%, #0a0803 75%, #040302 100%);
}

body.stage-green.stage-groups .stage-topo,
body.stage-green.stage-groups .stage-veil,
body.stage-green.stage-groups .stage-beams,
body.stage-green.stage-tours .stage-topo,
body.stage-green.stage-tours .stage-veil,
body.stage-green.stage-tours .stage-beams { display: none; }



.stage-anim { display: none; }
body.stage-green.stage-groups .stage-anim {
  display: block; position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 1;
  
  -webkit-mask-image: radial-gradient(126% 118% at 50% 46%,
                      #000 0%, #000 62%, rgba(0,0,0,.55) 84%, transparent 100%);
          mask-image: radial-gradient(126% 118% at 50% 46%,
                      #000 0%, #000 62%, rgba(0,0,0,.55) 84%, transparent 100%);
  
  animation: stage-anim-in 1.1s ease both;
}

body.stage-green.stage-groups .stage-anim.warming { animation: none; opacity: 0; }

@keyframes stage-anim-in { from { opacity: 0; } to { opacity: 1; } }




.stage-anim-tours { display: none; }
body.stage-green.stage-tours .stage-anim-tours {
  display: block; position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  
  opacity: 1;
  -webkit-mask-image: radial-gradient(126% 118% at 50% 46%,
                      #000 0%, #000 62%, rgba(0,0,0,.55) 84%, transparent 100%);
          mask-image: radial-gradient(126% 118% at 50% 46%,
                      #000 0%, #000 62%, rgba(0,0,0,.55) 84%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) {
  body.stage-green.stage-tours .stage-anim-tours { display: none; }
}

.stage-anim-still {
  display: none; position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
body.stage-green.stage-groups .stage-anim-still { display: block; }
body.stage-green.stage-groups .stage-anim.is-held + .stage-anim-still { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  body.stage-green.stage-groups .stage-anim { animation: none; opacity: 0; }
  
  body.stage-green.stage-groups .stage-anim-still { opacity: 1; transition: none; }
}


.ticket-details {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
  position: relative; z-index: 2; overflow: visible; max-width: 100%;
}
.tdet {
  font-size: 12px; font-weight: 700; letter-spacing: .2px;
  padding: 3px 9px; border-radius: 99px;
  background: #04120699; color: #fff;
  border: 1px solid #ffffff2e;
  text-shadow: 0 1px 2px #000c;
  flex: 0 1 auto; max-width: 100%;
}
.tdet-easy    { border-color: #42AE01aa; color: #b9f398; }
.tdet-medium  { border-color: #FFCF06aa; color: #ffe793; }
.tdet-hard    { border-color: #ff9e4aaa; color: #ffce9e; }
.tdet-extreme { border-color: #ED2900aa; color: #ffb0a0; }
.tdet-lang    { border-color: #FFCF06aa; color: #ffe793; }
.tdet-kind { font-weight: 700; letter-spacing: .02em; }
.tdet-kind-hunt { border-color: #42AE01aa; color: #b9f398; }
.tdet-kind-tour { border-color: #6ec8ffaa; color: #b7e4ff; }
.tdet-kind-race { border-color: #FFCF06aa; color: #ffe793; }


.ach-tiers { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
@media (min-width: 640px) { .ach-tiers { grid-template-columns: repeat(3, 1fr); } }
.ach-tier {
  border-radius: 12px; padding: 10px 10px 12px;
  border: 1px solid #ffffff24; background: #00000026;
}
.ach-tier-bronze { border-color: #c8823c66; }
.ach-tier-silver { border-color: #c9d3db55; }
.ach-tier-gold   { border-color: #ffcf0666; }
.ach-tier-h {
  margin: 0 0 8px; font-size: 13px; letter-spacing: .6px; text-transform: uppercase;
  display: flex; align-items: baseline; justify-content: space-between;
}
.ach-tier-bronze .ach-tier-h { color: #f0b878; }
.ach-tier-silver .ach-tier-h { color: #c9d3db; }
.ach-tier-gold   .ach-tier-h { color: #ffcf06; }
.ach-tier-xp { font-size: 11px; opacity: .8; letter-spacing: .3px; }
.ach-tier-note { margin: 0 0 8px; font-size: 11.5px; line-height: 1.4; }
.ach-tier-cards { display: grid; gap: 8px; }

.badge-card.is-tier-locked { opacity: .75; outline: 1px dashed #ffcf0655; }


.report-dock {
  position: fixed; left: 14px; right: auto;
  bottom: max(14px, env(safe-area-inset-bottom, 0px), var(--fab-bottom));
  top: auto; z-index: 40;
  display: flex; align-items: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.report-dock.is-dragging { z-index: 60; }
.report-fab {
  position: relative; left: auto; bottom: auto; z-index: auto;
  padding: 8px 14px; border-radius: 99px;
  font-size: 12.5px; font-weight: 700; text-decoration: none;
  color: #123000; background: var(--gold);
  box-shadow: 0 6px 18px #00000059;
  cursor: grab;
  touch-action: none;
  -webkit-user-drag: none;
}
.report-dock.is-dragging .report-fab { cursor: grabbing; }
.report-fab:hover { filter: brightness(1.06); }
.report-dock[hidden], .report-fab[hidden] { display: none; }




.report-kinds { display: grid; gap: 8px; }

.report-attach {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 4px 0 8px; padding: 7px 12px;
  border: 1px dashed #FFCF0666; border-radius: 10px;
  color: var(--gold, #FFCF06); font-size: 13px; cursor: pointer;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.report-attach:hover { background: #ffffff10; }
.report-kind {
  display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto;
  gap: 0 10px; align-items: center; text-align: left;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid #ffffff2b; background: #ffffff10; color: inherit;
  cursor: pointer;
}
.report-kind .rk-icon { grid-row: 1 / 3; font-size: 20px; }
.report-kind b { font-size: 14.5px; }
.report-kind small { opacity: .75; font-size: 12px; }
.report-kind.on { border-color: var(--gold, #FFCF06); background: #ffcf0620; }
.report-kind.is-safety.on { border-color: var(--red, #ED2900); background: #ed290022; }



.mine-invite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.mine-invite-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
}



.sug-card.sug-advanced { opacity: 0.92; border-style: dashed; }
.sug-adv-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--forest, #1B3D00);
  background: color-mix(in srgb, var(--gold, #FFCF06) 55%, white);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 6px;
}



.badge-pop.as-modal.badge-pop-unlock {
  width: min(320px, calc(100vw - 24px));
  padding: 22px 18px 18px;
  border-color: #e6c35c88;
  box-shadow: 0 22px 60px #000c, 0 0 0 1px #e6c35c33 inset;
  animation: badgeUnlockIn .35s ease-out;
}
.badge-pop.badge-pop-unlock .badge-pop-tag {
  color: var(--gold, #e6c35c);
  font-weight: 800;
}
@keyframes badgeUnlockIn {
  0% { transform: translate(-50%, -46%) scale(.88); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.ticket.finish-next-highlight,
.mission-card.finish-next-highlight {
  outline: 2px solid var(--gold, #e6c35c);
  box-shadow: 0 0 0 4px #e6c35c33, 0 10px 28px #0006;
  animation: finishNextPulse 1.4s ease-in-out 2;
}
@keyframes finishNextPulse {
  0%, 100% { box-shadow: 0 0 0 4px #e6c35c33, 0 10px 28px #0006; }
  50% { box-shadow: 0 0 0 8px #e6c35c22, 0 12px 32px #0007; }
}

.race-tag{display:inline-block;margin-left:.4em;padding:.05em .45em;border-radius:999px;font-size:.72em;font-weight:700;background:#1a5f2a;color:#f4f8ef;vertical-align:middle}


.md-lang-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.md-lang-row label{margin:0;flex:0 0 auto;color:#F6F1DC;font-weight:800;letter-spacing:.03em}
.md-seg{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;padding:4px;margin:0;background:#071a04;border:1px solid #FFCF0644;border-radius:12px}
.md-pills{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.md-seg button,
.md-pills button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 10px;border-radius:9px;border:1px solid #FFCF0666;background:#0c2208;color:#F6F1DC;font-size:13px;font-weight:800;letter-spacing:.02em;line-height:1;white-space:nowrap;box-shadow:none}
.md-pills button{flex:0 0 auto;min-height:34px;padding:0 12px;border-radius:999px}
.md-seg button .md-ico,
.md-pills button .md-globe{width:16px;height:16px;flex:0 0 16px;display:block}
.md-pills button .md-flag{width:18px;height:12px;flex:0 0 18px;display:block;border-radius:1px;box-shadow:0 0 0 1px #00000033}
.md-seg button:hover:not(:disabled),
.md-pills button:hover:not(:disabled){background:#122c0c;color:#F6F1DC;border-color:#FFCF06aa}
.md-seg button.on,
.md-seg button[aria-pressed="true"],
.md-pills button.on,
.md-pills button[aria-pressed="true"]{background:#FFCF06;color:#1B3D00;border-color:#FFCF06}
.md-seg button.on:hover,
.md-seg button[aria-pressed="true"]:hover,
.md-pills button.on:hover,
.md-pills button[aria-pressed="true"]:hover{background:#FFCF06;color:#1B3D00}

#mission-sheet .md-essentials{display:flex;flex-direction:column;gap:20px;margin:8px 0 22px}
#mission-sheet .md-essentials-h{margin:0;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#FFCF06}
#mission-sheet .md-field{display:flex;flex-direction:column;gap:8px}
#mission-sheet .md-field .ex-row{margin:0}
#mission-sheet .md-field label{margin:0;font-size:13px;font-weight:800;letter-spacing:.03em;color:#F6F1DC}
#mission-sheet .md-lang-row{margin:0;gap:12px}
#mission-sheet .md-seg{gap:8px;padding:6px;border-radius:16px}
#mission-sheet .md-pills{gap:10px;flex:1 1 auto}
#mission-sheet .md-seg button{min-height:52px;padding:0 12px;font-size:16px;gap:8px;border-radius:12px}
#mission-sheet .md-pills button{min-height:48px;padding:0 16px;font-size:15px;border-radius:999px}
#mission-sheet .md-seg button .md-ico,
#mission-sheet .md-pills button .md-globe{width:22px;height:22px;flex:0 0 22px}

@media (max-width: 480px) {
  #mission-sheet .md-seg {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px; padding: 4px;
  }
  #mission-sheet .md-seg button {
    min-width: 0; min-height: 44px; padding: 0 4px;
    font-size: 13px; gap: 4px;
  }
  #mission-sheet .md-seg button .md-ico { width: 16px; height: 16px; flex: 0 0 16px; }
}
#mission-sheet .md-pills button .md-flag{width:24px;height:16px;flex:0 0 24px}
#mission-sheet .md-more{display:flex;align-items:center;gap:10px;width:100%;margin:16px 0 4px;padding:10px 12px;min-height:44px;text-align:left;background:#0c2208;color:#F6F1DC;border:1px solid #FFCF0666;border-radius:12px;font:inherit;font-size:15px;font-weight:800;cursor:pointer}
#mission-sheet .md-more-ico{width:18px;height:18px;flex:0 0 18px;color:#FFCF06}
#mission-sheet .md-more-text{display:flex;flex-direction:column;gap:2px;min-width:0}
#mission-sheet .md-more-text small{font-size:12px;font-weight:600;color:#F6F1DCcc}
#mission-sheet .md-more-chev{margin-left:auto;color:#FFCF06;font-size:22px;font-weight:700;line-height:1}
#advanced-sheet{z-index:41}
.lang-gap{margin:0 0 12px;font-size:12.5px;color:var(--gold)}
.lang-gap[hidden]{display:none}
#hr-race{margin-top:6px}#hr-race-clock.late{color:var(--warn,#c90)}


#clues-panel {
  scrollbar-width: thin;
  scrollbar-color: #ffcf0666 #0b2400;
}
#clues-panel::-webkit-scrollbar { width: 8px; height: 8px; }
#clues-panel::-webkit-scrollbar-track { background: #0b2400; border-radius: 8px; }
#clues-panel::-webkit-scrollbar-thumb {
  background: #ffcf0644; border-radius: 8px; border: 2px solid #0b2400;
}
#clues-panel::-webkit-scrollbar-thumb:hover { background: #ffcf0688; }
#clues-panel .nearby-panel-head {
  display: flex; align-items: center; gap: 8px;
  padding-right: 2px;
}

#clues-panel #clues-lang.clues-lang-chips {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 6px;
  padding: 0;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
}
#clues-panel #clues-lang.clues-lang-chips button {
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 32px;
  padding: 0 12px;
  margin: 0;
  border-radius: 99px !important;
  background: #041206cc !important;
  color: #c8d4c0 !important;
  border: 1px solid #ffffff33 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: none !important;
}
#clues-panel #clues-lang.clues-lang-chips button[aria-pressed="true"] {
  background: #ffcf0e33 !important;
  color: var(--gold) !important;
  border-color: #ffcf06aa !important;
}

#nearby-list {
  display: grid;
  gap: 8px;
}
#nearby-list .nearby-item--chips {
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
}
#nearby-list .nearby-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
#nearby-list .nearby-item--chips .ticket-details {
  margin-top: 0;
  gap: 4px;
}
#nearby-list .nearby-item--chips .tdet {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  letter-spacing: .12px;
  line-height: 1.25;
}


:root {
  --glass: rgba(6, 22, 0, .66);
  --glass-2: rgba(20, 58, 0, .62);
  --glass-line: rgba(255, 207, 6, .22);
  --ink-2: #DCEBD0;
  --display: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --r-panel: 18px;
  --r-btn: 12px;
  --shadow-lg: 0 22px 48px -24px rgba(0, 0, 0, .85);
}


h1, h2, h3, .lead, .wordmark, .rm-step h3, .how h3, .pledge-banner b { font-family: var(--display); }
h3 { letter-spacing: .01em; }


.alpha-bar {
  background: rgba(6, 22, 0, .78); color: #EEE2BC;
  border-bottom: 1px solid var(--glass-line);
  font-size: 12.5px; padding: 5px 14px; justify-content: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.alpha-bar span:not(.alpha-dot):not(.alpha-ver) { flex: 0 1 auto; }
.alpha-dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(255, 207, 6, .22); }
.alpha-ver { color: var(--gold); }
.alpha-x { color: #EEE2BC; margin-left: 6px; }
.alpha-x:focus-visible { outline-color: var(--gold); }



.appbar {
  padding: 10px 22px;
  background: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.section-chip { background: rgba(6, 22, 0, .55); border-color: var(--glass-line); font-size: 11px; letter-spacing: .14em; }

.langswitch { border-radius: var(--r-btn); border-color: rgba(255, 255, 255, .22); background: rgba(6, 22, 0, .45); }
.langswitch button { border-radius: calc(var(--r-btn) - 4px); }
.langswitch button { min-height: 32px; }
.memberchip {
  border-radius: var(--r-btn); padding: 0 12px 0 8px; min-height: 36px;
  background: rgba(6, 22, 0, .62); border: 1px solid var(--glass-line);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .8);
}

.memberchip > svg {
  width: 20px; height: 20px; flex: none; align-self: center;
  margin-right: 6px; color: var(--gold);
}


body.dawn .hero { padding: 0 0 18px; }
body.dawn .hero .sub { margin-top: 14px; font-size: 16.5px; font-weight: 600; color: #fff; letter-spacing: .01em; }

body:has(#p-about[hidden]) .hero { display: none; }
body.dawn:has(#p-about[hidden]) .tabbar { margin-top: 6px; }


body.dawn .tabbar { margin-bottom: 26px; }
.tabs {
  display: inline-flex; width: auto; max-width: none; gap: 4px; padding: 4px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .9);
}
.tab {
  flex: 0 0 auto; min-height: 38px; padding: 0 20px; border-radius: 999px;
  border: 0; background: transparent; box-shadow: none; text-shadow: none;
  color: #EEE2BC; font-size: 14px; font-weight: 700; letter-spacing: .01em;
}
.tab:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.tab[aria-selected="true"] {
  background: var(--gold); color: #1B3D00; border: 0;
  box-shadow: 0 8px 18px -8px rgba(255, 207, 6, .75);
}

body:has(#p-about[hidden]) #t-about[aria-selected="true"] { background: transparent; color: #EEE2BC; box-shadow: none; }


body.dawn .lead {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.01em;
  line-height: 1.12; color: var(--gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, .65), 0 0 28px rgba(0, 0, 0, .55);
}
body.dawn .tabpanel > .body { color: #F4F8EF; font-size: 16px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 0 12px rgba(0, 0, 0, .6); }
body.dawn .tabpanel > .muted { color: var(--ink-2); text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .6); }

h2 {
  color: var(--gold); font-size: 12.5px; letter-spacing: .16em;
  display: flex; align-items: center; gap: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 10px rgba(0, 0, 0, .55);
}
h2::before { content: ""; flex: none; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; }
h2.sr-only::before { display: none; }


button, a.primary, a.ghost { border-radius: var(--r-btn); }
button.primary, a.primary {
  min-height: 46px; padding: 0 24px; font-size: 15.5px;
  box-shadow: 0 12px 26px -12px rgba(255, 207, 6, .7), inset 0 1px 0 rgba(255, 255, 255, .55);
}
button.ghost, a.ghost {
  min-height: 46px; padding: 0 20px;
  background: rgba(6, 22, 0, .55); border-color: rgba(255, 255, 255, .34); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
button.sm, .ghost.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 999px; }
.home-ctas { gap: 12px; margin: 22px 0 8px; }


.panel {
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--glass-line); border-radius: var(--r-panel);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .10);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
body.dawn .how .panel h3 { font-size: 16px; }
.callout { background: rgba(6, 22, 0, .55); border-color: var(--glass-line); }


.roadmap .rm-step { border-radius: var(--r-panel); }


.gallery figure { border-radius: var(--r-panel); border-color: rgba(255, 255, 255, .16); box-shadow: var(--shadow-lg); }
.gallery figcaption {
  font-size: 13px; font-weight: 700; letter-spacing: .01em; padding: 30px 14px 12px;
  background: none;
}


.install-band { background: linear-gradient(135deg, rgba(20, 58, 0, .82), rgba(6, 22, 0, .88)); border-color: rgba(255, 207, 6, .35); }
.qr-card { border-radius: 16px; }


.home-foot {
  gap: 10px 8px; padding: 18px 20px 24px; margin-top: auto;
  background: none; border-top: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.home-foot a, .home-foot button {
  text-decoration: none; color: #EEE2BC; font-size: 13px; font-weight: 700;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05);
}
.home-foot a:hover, .home-foot button:hover { background: rgba(255, 207, 6, .14); color: var(--gold); border-color: var(--glass-line); }


.board-tabs { flex-wrap: nowrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); }
.board-tab { flex: 1 1 0; min-width: 0; border: 0; border-radius: 999px; color: #EEE2BC; padding: 9px 8px; }
.board-tab.is-on { background: var(--gold); color: #1B3D00; }
.pledge-banner {
  background: linear-gradient(180deg, rgba(20, 58, 0, .72), rgba(6, 22, 0, .82));
  border: 1px solid rgba(255, 207, 6, .35); border-radius: var(--r-panel);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pledge-banner b { font-size: 44px; }
.rate-table, .board-head { color: var(--ink-2); }


.ticket-well {
  background: linear-gradient(180deg, rgba(20, 58, 0, .78), rgba(6, 22, 0, .84));
  border: 1px solid var(--glass-line); border-radius: 22px; padding: 14px;
  box-shadow: var(--shadow-lg);
}
.ticket-stub::before, .ticket-stub::after { background: #143A00; }
.ticket-go {
  background: var(--gold); color: #1B3D00; border-radius: 999px; min-height: 38px; padding: 0 16px;
  box-shadow: 0 8px 18px -8px rgba(255, 207, 6, .7);
}
.ticket-go:hover:not(:disabled) { background: #ffd93a; color: #1B3D00; }
.ticket-go.is-muted { background: rgba(255, 255, 255, .12); color: #EEE2BC; box-shadow: none; }
.ticket-gps-note { color: #C8E3B6; }
.mission-row.ticket.ticket-banner h3 { font-size: 17px; }

.play-cats, .play-shelves {
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
}
.play-cats .ghost.sm, .play-shelves .ghost.sm {
  flex: 1 1 0; min-width: 0; border: 0; background: transparent; color: #EEE2BC;
  font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: none;
}
.play-cats .ghost.sm.on, .play-shelves .ghost.sm.on { background: var(--gold); color: #1B3D00; }

.play-cats { width: 100%; max-width: min(100%, 420px); margin-inline: auto; }
.play-list-bubble-bar { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; }
.play-list-bubble-bar .play-shelves { grid-column: 1 / -1; }
.play-list-bubble-bar .play-type-filter-types { grid-column: 1; grid-row: 2; }
.play-list-bubble-bar .play-filter-btn { grid-column: 2; grid-row: 2; border-radius: 999px; }
.play-type-filter-types .ghost.sm { background: rgba(6, 22, 0, .5); }
.play-start-wrap .primary { width: min(100%, 420px); }
.play-modes .ghost.sm { background: rgba(6, 22, 0, .5); }


.tour-art {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}


.shop .pack, .pack { border-radius: 16px; }
.merch-card { border-radius: var(--r-panel); }


.grp-big {
  background: linear-gradient(180deg, rgba(20, 58, 0, .72), rgba(6, 22, 0, .80));
  border: 1px solid var(--glass-line); border-radius: var(--r-panel);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.grp-big:hover, .grp-big:focus-visible {
  background: linear-gradient(180deg, rgba(28, 74, 4, .8), rgba(6, 22, 0, .86)); border-color: rgba(255, 207, 6, .5);
}
.grp-big small, .grp-big .muted { color: #C8E3B6; }
.grp-private {
  background: rgba(6, 22, 0, .55); color: #D8FFB8; border: 1px solid rgba(111, 209, 46, .35);
  border-radius: 12px; padding: 8px 12px;
}


#build-chip {
  border-radius: 999px; background: rgba(6, 22, 0, .78); border: 1px solid var(--glass-line);
  color: #EEE2BC; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.map-compass { box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .9); }
@media (min-width: 980px) {
  .build-sheet {
    top: 0; bottom: 0; left: auto; right: 0;
    width: min(520px, 44vw); height: 100vh; max-height: none; border-radius: 0;
    border-top: 0; border-left: 1px solid var(--glass-line);
    background: linear-gradient(180deg, rgba(12, 42, 0, .96), rgba(6, 22, 0, .97));
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .9);
    padding: 18px 22px 110px 22px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .build-sheet-head {
    position: sticky; top: -18px; z-index: 2; margin: -18px -22px 10px; padding: 16px 22px 10px;
    background: rgba(6, 22, 0, .92); border-bottom: 1px solid var(--glass-line);
  }
}
.build-sheet h2 { color: var(--gold); letter-spacing: .14em; }

.build-sheet label { font-size: 12px; letter-spacing: .04em; color: #C8E3B6; }
.build-sheet input, .build-sheet textarea, .build-sheet select {
  border-radius: 12px; background: rgba(6, 22, 0, .7); border-color: rgba(255, 255, 255, .18);
}
.build-sheet .ex-row { margin-top: 14px; }
.build-sheet .ghost { border-radius: 999px; }


@media (max-width: 640px) {
  .appbar { padding: 8px 12px; gap: 8px; }
  .memberchip > svg { display: none; }
  .memberchip { padding: 0 10px; min-height: 34px; }
  body.dawn .hero { padding: 6px 0 10px; }
  body.dawn .hero .sub { margin-top: 12px; font-size: 15.5px; }
  body.dawn .tabbar { margin-bottom: 18px; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1 1 0; padding: 0 8px; font-size: 13px; }
  body.dawn .lead { font-size: 25px; }
  .home-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 8px; }
  .home-ctas .primary, .home-ctas .ghost { width: 100%; min-height: 50px; }
}


.share-join-card {
  background: #0B2200;
  border: 1px solid #FFCF06;
}
#share-join-modal .share-join-card {
  max-height: min(86vh, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px 14px 10px;
  min-height: 0;
}
#share-join-modal .share-join-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
#share-join-modal .share-join-cta {
  flex: none;
  position: sticky;
  bottom: 0;
  margin-top: 6px;
  padding-top: 10px;
  padding-bottom: max(2px, env(safe-area-inset-bottom, 0px));
  background: #0B2200;
  box-shadow: 0 -12px 16px #0B2200;
}
#share-join-modal .share-join-cta > .primary { width: 100%; }

#share-join-title {
  text-transform: none;
  letter-spacing: normal;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
}
#share-join-title::before { display: none; }
#share-join-modal #share-join-body { margin: 0 0 6px; font-size: 13.5px; }
#share-join-modal #share-join-status { margin: 6px 0 0; font-size: 12.5px; }
#share-join-modal .share-join-link-row {
  gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
#share-join-modal .share-join-extra-row { margin-top: 6px; }
#share-join-modal .party-qr {
  display: flex; justify-content: center; margin: 6px 0 2px;
}
#share-join-modal .party-qr svg { max-width: 116px; height: auto; }
#share-join-modal .party-spoken {
  font: 800 18px/1.2 ui-monospace, monospace;
  letter-spacing: .12em;
  margin: 4px 0 2px;
}
#share-join-modal .party-lobby { margin: 6px 0; }
.share-join-code {
  margin: 8px 0 2px;
  font: 800 26px/1.1 ui-monospace, monospace;
  letter-spacing: .14em;
  text-align: center;
  color: #FFCF06;
}
.share-join-code[hidden] { display: none; }
#group-copy-link { margin: 0 12px 8px; }
#group-copy-link[hidden] { display: none; }


.fish-safe-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 12px; padding: 14px 16px; border-radius: 12px;
  border: 2px solid var(--gold, #FFCF06); background: #1a3a08;
  box-shadow: inset 0 0 0 1px #ffcf0633;
  cursor: pointer; font-size: 15px; line-height: 1.3; color: #F4F8EF;
}
.fish-safe-row input[type="checkbox"] {
  flex: none; width: 26px; height: 26px; margin: 0;
  accent-color: var(--gold, #FFCF06); cursor: pointer;
  
  padding: 0; max-width: 26px; min-width: 26px; border: 0;
  background: #fff; border-radius: 6px; box-shadow: none;
  appearance: auto; -webkit-appearance: checkbox;
}
.fish-safe-row span {
  flex: 1; min-width: 0; font-weight: 800; color: #F4F8EF;
}


.pc-panel { margin: 8px 0 4px; text-align: center; }

.pc-preview {
  width: min(56vw, 180px, calc(34vh * 720 / 960));
  max-height: 34vh;
  aspect-ratio: 720 / 960;
  margin: 0 auto 8px;
  border-radius: 14px; border: 1px solid #ffcf0644; background: #0b2200 center/cover no-repeat;
  box-shadow: 0 8px 24px #0006;
}
.pc-cover-row, .pc-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 6px 0; }
.pc-cover-row .on { border-color: var(--gold); color: var(--gold); }
.pc-canvas { display: none; }

.pcue-chip {
  position: absolute; left: 50%; top: 72px; transform: translateX(-50%);
  z-index: 6; padding: 8px 14px; border-radius: 999px;
  background: #1a3a00f0; border: 1px solid #ffcf0688; color: #ffcf06;
  font-weight: 800; font-size: 13px; letter-spacing: .02em;
  box-shadow: 0 4px 16px #0007; pointer-events: none;
  animation: pcuePulse 1.2s ease-in-out infinite;
}
.pcue-chip.is-on { display: block; }
@keyframes pcuePulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(1.04); opacity: .92; }
}


.party-qr svg { max-width: 116px; height: auto; }
.party-spoken {
  font: 800 22px/1.2 ui-monospace, monospace; letter-spacing: .18em;
  color: var(--gold); text-align: center; margin: 6px 0 4px;
}
.party-lobby { margin: 8px 0; text-align: left; }
.party-lobby-list { list-style: none; margin: 0; padding: 0; }
.party-lobby-list li {
  padding: 6px 10px; margin: 4px 0; border-radius: 10px;
  background: #ffffff10; border: 1px solid #ffffff18; font-weight: 650;
}
.party-lobby-list li.is-self { border-color: #ffcf0666; color: var(--gold); }
.party-lobby-empty { font-size: 12.5px; margin: 4px 0; }

.pc-coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pc-coll-card {
  border-radius: 12px; border: 1px solid #ffcf0640; background: #0b2200;
  padding: 8px; text-align: left; color: inherit; cursor: pointer;
}
.pc-coll-card .pc-thumb {
  display: block; width: 100%; aspect-ratio: 720/960; border-radius: 8px;
  background: #143000 center/cover no-repeat; margin-bottom: 6px;
}
.pc-coll-card b { display: block; font-size: 13px; }
.pc-coll-card small { color: #ffffff99; font-size: 11px; }

