/* National Treasure Hunt preview — home map, list, wall, discovery. Does not change header/nav. */
.th-demo-banner { margin: 0 0 1rem; padding: .55rem .8rem; border-radius: 12px; border: 1px solid rgba(255, 210, 80, .45);
  background: rgba(255, 190, 40, .12); color: #ffe7a3; font-weight: 700; text-align: center; }
.th-home h2, .th-page h1 { color: #3bfe2c; letter-spacing: .06em; text-align: center; }
.th-home .sub, .th-page .sub { color: #d5dbe0; text-align: center; }
.th-intro { text-align: center; }
.th-intro .sub { max-width: 42rem; margin-left: auto; margin-right: auto; }
.th-layout { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
.th-home, .th-page, .th-layout, .th-mapcol, .container:has(.th-mapwrap) { overflow: visible; }
.th-mapcol, .th-tablewrap { display: grid; gap: .75rem; min-width: 0; }
.th-mapcol { padding-top: var(--th-blip-h, calc(56px * 1.39)); }
.th-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem 1.15rem; align-items: center; margin: 0 0 1.15rem; position: relative; z-index: 3; }
.th-top .th-demo-banner { margin-bottom: 0; text-align: left; }
/* Reuse live What's Hot / stop-card tile material from glass-site.css
   (.stop-card--tile, .stop-card--rich) instead of a parallel blue+gold palette.
   Gold is only a 1px outer hairline. Map overflow/marker geometry stays in .th-mapwrap below. */
.th-mapwrap, .th-table, .th-card, .th-case {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04) 45%, rgba(255,255,255,.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 28px rgba(0,0,0,.45), 0 0 0 1px rgba(230, 200, 106, .32);
  color: inherit; }
.th-mapwrap { position: relative; overflow: visible; padding: 0; z-index: 2; --th-blip-w: 56px; --th-blip-h: calc(56px * 1.39); }
.th-heat { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: inherit; }
.th-usmap { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.th-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.th-markers { position: absolute; inset: 0; overflow: visible; z-index: 4; pointer-events: none; }
.th-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 4; }
.th-leader { stroke: #e6c86a; stroke-width: 1.5; fill: none; }
.th-leader-dot { fill: #e6c86a; stroke: none; }
.th-territory, .th-territory.claimed { fill: rgba(40, 140, 255, .34); stroke: #7ec8ff; stroke-width: 4; cursor: pointer; pointer-events: auto; }
.th-territory:hover, .th-territory:focus { fill: rgba(80, 170, 255, .46); outline: none; }
.th-territory.is-selected { fill: rgba(80, 170, 255, .52); stroke: #cfe8ff; stroke-width: 6; }
.th-blip { position: absolute; z-index: 5; width: var(--th-blip-w); height: var(--th-blip-h); transform: translate(calc(-50% + var(--th-shift-x, 0px)), calc(-100% + var(--th-shift-y, 0px))); padding: 0; margin: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.th-blip-pin { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.75)); }
.th-blip.is-selected .th-blip-pin, .th-blip:focus-visible .th-blip-pin { filter: drop-shadow(0 0 0 2px #cfe8ff) drop-shadow(0 3px 4px rgba(0,0,0,.55)); }
.th-blip:focus-visible { outline: 2px solid #7ec8ff; outline-offset: 3px; border-radius: 8px; }
.th-hero-chipart { width: min(28vw, 148px); height: auto; margin: 0; display: block; justify-self: end; }
.th-chipart { width: min(42vw, 180px); height: auto; margin: 0 auto; display: block; }
.th-table { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: .35rem .2rem .55rem; }
.th-hunt-table { width: 100%; border-collapse: collapse; color: inherit; font-size: .92rem; }
.th-hunt-table th, .th-hunt-table td { padding: .45rem .55rem; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(255,255,255,.14); white-space: nowrap; }
.th-hunt-table thead th { color: #cfd5db; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.th-hunt-table .th-expires { white-space: nowrap; }
.th-hunt-table .btn { min-height: 2.35rem; padding: .3rem .7rem; font-size: .78rem; }
.th-group th { color: #cfd5db; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.06); cursor: default; }
.th-row { cursor: pointer; scroll-margin-top: calc(15rem + env(safe-area-inset-top, 0px)); }
.th-row.is-selected { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.th-row:hover { background: rgba(255,255,255,.06); }
.th-muted { color: #aeb5bd; }
.th-card { display: grid; gap: .5rem; padding: 1.2rem 1.25rem; text-align: left;
  scroll-margin-top: calc(15rem + env(safe-area-inset-top, 0px)); }
.th-card button, .th-card .th-activate, .th-row .th-activate { cursor: pointer; }
.th-card h3 { margin: 0; color: #eef1f4; font-size: 1.35rem; line-height: 1.3; }
.th-meta { color: #aeb5bd; font-size: 1.05rem; line-height: 1.45; }
.th-loading, .th-empty, .th-fail { margin: 1rem; color: #d5dbe2; font-size: 1.05rem; text-align: center; }
.th-badge { display: inline-block; margin-left: .35rem; padding: .15rem .55rem; border-radius: 999px; border: 1px solid #c5c9ce; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.th-badge.claimed { color: #ffe7a3; border-color: #ffd25a; }
.th-physical { margin: 1rem 0 0; text-align: center; color: #aab2ba; }
.th-physical a { color: #8fc2ff; }
.th-selection { min-height: 1.4em; font-weight: 700; color: #eef1f4; }
.th-task-templates { display: grid; gap: .45rem; margin: 0 0 .8rem; padding: .8rem; border-radius: 14px; border: 1px solid rgba(207,238,255,.28); }
.th-task-templates label { display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 800px) {
  .th-mapwrap { --th-blip-w: 76px; --th-blip-h: calc(76px * 1.39); }
}
@media (max-width: 420px) {
  .th-hero-chipart { width: 96px; }
}
.th-status { color: #aeb5bd; font-size: .95rem; }
.th-sharebox, .th-personal { display: grid; gap: .65rem; margin: 0 0 1rem; }
.th-sharelink { word-break: break-all; }
.th-signin { margin: 0 0 1rem; }
.th-discover { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem;
  background: rgba(0,0,0,.72); }
.th-discover[hidden] { display: none !important; }
.th-discover-card { width: min(100%, 28rem); padding: 1.4rem 1.2rem 1.5rem; border-radius: 22px; text-align: center;
  border: 1px solid rgba(255,210,80,.5); background: radial-gradient(120% 80% at 50% 0%, #5a3b08 0%, #140c03 70%);
  box-shadow: 0 0 40px rgba(255,196,48,.28), inset 0 1px 0 rgba(255,255,255,.3); color: #fff6d8; }
.th-discover-card h2 { margin: .3rem 0 .5rem; color: #ffe7a3; }
.th-gc-intro { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  background: rgba(0,0,0,.82); overflow: auto; }
.th-gc-intro[hidden] { display: none !important; }
.th-gc-intro-card { width: min(100%, 32rem); max-height: min(100%, calc(100dvh - 2rem)); overflow-y: auto;
  padding: 1.4rem 1.2rem 1.5rem; border-radius: 22px; text-align: center;
  border: 1px solid rgba(255,210,80,.5); background: radial-gradient(120% 80% at 50% 0%, #5a3b08 0%, #140c03 70%);
  box-shadow: 0 0 40px rgba(255,196,48,.28), inset 0 1px 0 rgba(255,255,255,.3); color: #fff6d8; }
.th-gc-intro-card h2 { margin: .3rem 0 .6rem; color: #ffe7a3; }
.th-gc-intro-card p { margin: 0 0 .75rem; }
.th-gc-intro-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1rem 0 0; }
.th-gc-intro-actions .btn { min-height: 2.75rem; }
.th-gc-intro-msg { color: #ffb4b4; min-height: 1.25em; margin: .65rem 0 0; }
@media (max-width: 520px) {
  .th-gc-intro-actions { flex-direction: column; align-items: stretch; }
  .th-gc-intro-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .th-gc-intro-card { transition: none; }
}
.th-burst { width: min(58vw, 220px); margin: 0 auto .6rem; animation: th-spin 1.8s ease both; }
@media (prefers-reduced-motion: reduce) { .th-burst { animation: none; } }
@keyframes th-spin { from { transform: scale(.7) rotate(-8deg); opacity: .2; } to { transform: scale(1) rotate(0); opacity: 1; } }
.th-claimed { cursor: default; pointer-events: none; opacity: .85; }
.th-btn[hidden] { display: none !important; }
.th-test-controls { margin: 0 0 1rem; }
.th-test-banner { margin: 0 0 .55rem; padding: .55rem .8rem; border-radius: 12px; border: 1px solid rgba(230,200,106,.45); background: rgba(255,255,255,.06); color: #eef1f4; font-weight: 700; }
.th-test-list { margin: .4rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; }

.th-task { margin: 0 0 .8rem; padding: 1rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); }
.th-clue { margin: .5rem 0 0; color: #ffe7a3; font-size: 1.05rem; }
.rs-upload-ok { margin: .15rem 0 0; font-weight: 700; color: #6bff5e; }
.rs-upload-ok[hidden] { display: none; }
.th-detail { font-size: 1.08rem; line-height: 1.45; }

@media (min-width: 700px) {
  .th-card, .th-row { scroll-margin-top: calc(12rem + env(safe-area-inset-top, 0px)); }
}

/* Home Treasure Hunt: modest section gaps. Table rows already clear the
   fixed FABs because the physical-chip / do-not-discard copy sits under the
   list, so the old 4.75rem section pad read as a huge empty band before
   Hottest Featured Stops. Keep a smaller reserved pad above the map so
   northern pins can hang without covering the intro + golden-chip row. */
.th-home {
  padding-top: 1.35rem;
  padding-bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
}
.th-home .th-top { margin-bottom: .45rem; }
.th-home .th-mapcol { padding-top: calc(var(--th-blip-h, calc(56px * 1.39)) * 0.5); }
.th-home .th-selection:empty,
.th-home #th-msg:empty { display: none; min-height: 0; margin: 0; }
.th-home + .section.shelf { padding-top: 1.15rem; }
.th-home .th-row {
  scroll-margin-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

/* Hunt + Chip Wall pages only (.th-page). Do not change header, nav, or Home FABs.
   Prior padding-bottom left MAP MY RIDE and Back to top fixed over row actions
   during mid-scroll. Take those two controls out of the overlay plane and sit
   them in normal flow after the footer so they cannot cover Activate. */
.th-page { padding-bottom: 1.25rem; }
/* Hunt page only: centered title on its own row; left-aligned intro
   wraps around a slightly larger floated Golden Chip (never behind it).
   Keep the half-blip map pad so northern pins can hang without a large
   empty band. Home still uses the shared two-column .th-top grid. */
.th-page .th-top { display: block; margin-bottom: .45rem; }
.th-page .th-top h1 { text-align: center; margin: .25rem 0 .4rem; }
.th-page .th-intro { display: flow-root; text-align: left; }
.th-page .th-intro .sub { text-align: left; max-width: none; margin: 0; }
.th-page .th-hero-chipart { float: right; width: min(40vw, 176px); height: auto; margin: 0 0 .2rem .7rem; justify-self: unset; }
.th-page .th-mapcol { padding-top: calc(var(--th-blip-h, calc(56px * 1.39)) * 0.5); }
body:has(.th-page) .mmr-fab {
  position: static;
  float: left;
  margin: .65rem max(16px, env(safe-area-inset-left)) calc(.85rem + env(safe-area-inset-bottom, 0px));
}
body:has(.th-page) .to-top {
  position: static;
  float: right;
  right: auto;
  bottom: auto;
  margin: .55rem max(16px, env(safe-area-inset-right)) calc(.85rem + env(safe-area-inset-bottom, 0px));
  opacity: 1;
  visibility: visible;
  transform: none;
}
body:has(.th-page)::after {
  content: "";
  display: block;
  clear: both;
}

/* Discovery animation overlay: viewport modal, not the Fullscreen API. */
.th-ani { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0,0,0,.88);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.th-ani[hidden] { display: none !important; }
.th-ani-stage { position: relative; width: min(100%, 28rem); height: min(100%, 100dvh); display: grid; place-items: center; }
.th-ani-video, .th-ani-still { max-width: 100%; max-height: calc(100dvh - 4.5rem); width: auto; height: auto; object-fit: contain; background: #000; }
.th-ani-still { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.th-ani-still[hidden] { display: none !important; }
.th-ani-dismiss { position: absolute; left: 50%; bottom: calc(.65rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  appearance: none; cursor: pointer; font-family: inherit; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  min-height: 2.15rem; padding: .3rem .8rem; border-radius: 999px; font-size: .78rem; color: #cfe8ff; background: rgba(5,6,7,.82);
  border: 1px solid rgba(230,200,106,.75); }
.th-ani-play { position: absolute; left: 50%; bottom: calc(3.15rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  appearance: none; cursor: pointer; font-family: inherit; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  min-height: 2.35rem; padding: .4rem 1.1rem; border-radius: 999px; font-size: .85rem; color: #1a1406; background: #e6c86a;
  border: 1px solid #e6c86a; }
.th-ani-play[hidden] { display: none !important; }

.th-prize { margin: 0; color: #eef1f4; font-weight: 700; }
.th-action-error { color: #eef1f4; font-weight: 700; min-height: 1.3em; }
.th-case { position: relative; padding: 1.1rem 1rem 1.25rem; max-width: 36rem; margin: 0 auto; overflow: visible; }
.th-case-stage { position: relative; height: 16.5rem; touch-action: pan-y; }
.th-case-chip { position: absolute; left: 50%; top: 42%; width: min(42vw, 168px); padding: 0; border: 0; background: none; color: inherit;
  transform: translate(-50%, -50%) scale(.64); opacity: .45; z-index: 1; filter: drop-shadow(0 10px 14px rgba(0,0,0,.5)); cursor: pointer; }
.th-case.is-inview .th-case-chip { transition: transform .28s ease, opacity .28s ease, filter .28s ease; }
.th-case-chip.is-front { transform: translate(-50%, -54%) scale(1); opacity: 1; z-index: 5; filter: drop-shadow(0 16px 22px rgba(0,0,0,.55)); }
.th-case-chip.is-side-l { transform: translate(calc(-50% - 4.6rem), -50%) scale(.78); opacity: .78; z-index: 3; }
.th-case-chip.is-side-r { transform: translate(calc(-50% + 4.6rem), -50%) scale(.78); opacity: .78; z-index: 3; }
.th-case-chip.is-back { transform: translate(-50%, -48%) scale(.64); opacity: .4; z-index: 1; }
.th-case-chip img { width: 100%; height: auto; display: block; pointer-events: none; }
.th-case-shelf { position: absolute; left: 50%; bottom: 1.15rem; width: 78%; height: 1.05rem; transform: translateX(-50%);
  border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 18px rgba(0,0,0,.35); pointer-events: none; }
.th-case-reflect { position: absolute; left: 50%; bottom: .15rem; width: 52%; height: 2.1rem; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,255,255,.14), transparent); filter: blur(6px); opacity: .6; pointer-events: none; }
.th-case-label { text-align: center; color: #f1f4f7; font-weight: 700; margin: .85rem 0 .15rem; }
.th-case-meta { text-align: center; color: #aeb5bd; margin: 0 0 .65rem; }
.th-case-nav { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  .th-case.is-inview .th-case-chip { transition: none; }
}
#activated-hunts, #chip-wall { margin: 1.5rem 0 1rem; }
#activated-hunts h2, #chip-wall h2 { text-align: center; }

/* Side Quest titles: sitewide chrome-blue clipped heading (going.css / ride-status.css / heat.css). */
@font-face { font-family: "RS Cinzel"; font-style: normal; font-weight: 700 900; font-display: swap; src: url(/fonts/cinzel-latin-700-900.woff2) format("woff2"); }
.th-quests { margin-top: 1rem; }
.th-quests > h2,
.th-quests .th-quest-group > h3,
.th-quest-heading {
  margin: 0 0 .55rem;
  text-align: center;
  font: 800 1.28rem/1.15 "RS Cinzel", "Trajan Pro", Georgia, serif;
  letter-spacing: .05em;
  color: #6fd0ff;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .th-quests > h2,
  .th-quests .th-quest-group > h3,
  .th-quest-heading {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(180deg, #e9fbff 0%, #bfeaff 22%, #6fd0ff 34%, #1ea0ff 50%, #0f7bff 68%, #39b4ff 84%, #a6e4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000) drop-shadow(0 2px 1px rgba(0,0,0,.9));
  }
}

/* Light chrome-blue tile face + dark opaque text for daylight contrast. 3 columns, leftover rows centered; stacked on the phone. */
.th-quest-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: .8rem; }
.th-quest-tile {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: 22rem;
  margin: 0;
  padding: 1rem;
  border-radius: 14px;
  color: #01081f;
  text-shadow: none;
  background: linear-gradient(180deg, #ffffff 0%, #e9fbff 10%, var(--rs-brand-blue-border, #cfeeff) 28%, #bfe8ff 52%, #9ad4ff 78%, #e9fbff 100%);
  border: 1px solid var(--rs-brand-blue-border, #cfeeff);
  box-shadow: var(--rs-brand-blue-glow);
}
@media (min-width: 760px) {
  .th-quest-tile {
    flex: 0 1 calc((100% - 1.6rem) / 3);
    width: calc((100% - 1.6rem) / 3);
    max-width: calc((100% - 1.6rem) / 3);
  }
}
.th-quest-tile h3 { margin: 0 0 .35rem; }
.th-quest-tile p,
.th-quest-tile .th-status,
.th-quest-tile label { color: #01081f; text-shadow: none; font-weight: 650; }
.th-quest-tile.is-complete {
  background: linear-gradient(180deg, #1554d0 0%, #0b2a6e 38%, #071a48 72%, #01081f 100%);
  border-color: #8fbfef;
  color: #f4f8ff;
}
.th-quest-tile.is-complete p,
.th-quest-tile.is-complete .th-status { color: #f4f8ff; }
.th-quest-overlay {
  position: relative; inset: auto; z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  margin-top: .65rem; padding: .7rem .55rem;
  border-radius: 12px; background: rgba(1, 8, 31, .46);
}
.th-quest-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  max-width: calc(100% - 1.25rem);
  padding: .2rem .35rem;
}
.th-quest-done {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  margin: .7rem 0 0; font: 800 .95rem/1 "RS Cinzel", "Trajan Pro", Georgia, serif;
  letter-spacing: .1em; text-transform: uppercase;
}
.th-quest-overlay .th-quest-done {
  margin: 0; padding: .55rem 1.05rem; border-radius: 999px;
  background: rgba(1, 8, 31, .78); color: #fff;
}
.th-quest-overlay .rs-upload-ok {
  margin: 0;
  text-align: center;
  color: #6bff5e;
  text-shadow: 0 1px 2px rgba(1, 8, 31, .85);
  position: static;
  z-index: auto;
  overflow-wrap: anywhere;
}
.th-hunt-completed {
  margin: .85rem 0 .55rem;
  color: #ffe7a3;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.35;
}
.th-quest-overlay .th-quest-clue {
  margin: 0;
  text-align: center;
  color: #ffe7a3;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  white-space: normal;
}
.th-quest-overlay .th-quest-clue-text {
  color: #6bff5e;
}
.th-quest-tile form[data-photo] { position: relative; z-index: 2; }
.th-quest-tile.is-complete form[data-photo] { display: none; }
.th-quest-tile.is-complete > p {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.th-quest-tile.is-complete .th-quest-file,
.th-quest-tile.is-complete button[type=submit],
.th-quest-tile.is-complete .th-quest-selected { display: none; }
.th-quest-selected {
  margin: .1rem 0 0; max-width: 100%; color: #000; font-weight: 800;
  text-align: center; overflow-wrap: anywhere; word-break: break-word;
}
.th-quest-selected[hidden] { display: none; }
.th-quest-tile.is-complete .rs-upload-ok { color: #6bff5e; }
.th-quest-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 2px solid currentColor;
  font-size: .9rem; line-height: 1; font-weight: 800;
}
.th-quest-tile form[data-photo] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-top: .7rem;
  text-align: center;
}
.th-quest-file {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  cursor: pointer;
}
.th-quest-file-glow {
  position: absolute;
  z-index: 0;
  inset: -8px -12px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(92,196,255,.55) 0%, rgba(31,110,245,.32) 46%, transparent 74%);
  box-shadow: 0 0 16px rgba(40,140,255,.7), 0 0 28px rgba(40,140,255,.4);
  animation: th-quest-file-pulse 1.6s ease-in-out infinite;
}
.th-quest-file-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem 1.3rem;
  border-radius: 999px;
  font: 800 .92rem/1 var(--font-heading, inherit);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rs-brand-blue-text, #fff);
  text-shadow: var(--rs-brand-blue-text-shadow, 0 0 6px rgba(160,220,255,.9), 0 1px 1px #01081f);
  background: var(--rs-brand-blue-bg);
  border: 1px solid var(--rs-brand-blue-border, #cfeeff);
  box-shadow: var(--rs-brand-blue-glow);
}
.th-quest-file:focus-within .th-quest-file-pill {
  outline: 2px solid var(--rs-brand-blue-border, #cfeeff);
  outline-offset: 3px;
}
@keyframes th-quest-file-pulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .th-quest-file-glow { animation: none; opacity: .7; transform: none; }
}
.th-quest-tile .btn { margin-top: 0; }
.th-quest-finish-link { text-align: center; margin: .85rem 0 0; }

/* Hunt list overflow cue (th32): right-edge-only shade + pulsing right arrow.
   Lives on .th-table-frame (sibling of the scroller) so swipe still reaches the table.
   Visible only while more columns sit to the right. */
.th-table-frame { position: relative; min-width: 0; }
.th-table-overflow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.85rem;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  border-radius: 0 18px 18px 0;
}
.th-table-overflow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(31,110,245,0) 0%, rgba(92,196,255,.18) 46%, rgba(31,110,245,.42) 100%);
}
.th-table-frame.has-overflow-right .th-table-overflow { opacity: 1; visibility: visible; }
.th-table-frame.has-overflow-right .th-table-overflow::before {
  animation: th-table-shade-pulse 1.4s ease-in-out infinite;
}
.th-table-overflow-arrow {
  position: absolute;
  top: 50%;
  right: .42rem;
  width: 0;
  height: 0;
  pointer-events: none;
  border-top: .42rem solid transparent;
  border-bottom: .42rem solid transparent;
  border-left: .62rem solid #cfeeff;
  filter: drop-shadow(0 0 6px rgba(92,196,255,.95)) drop-shadow(0 0 12px rgba(31,110,245,.7));
  transform: translateY(-50%);
}
.th-table-frame.has-overflow-right .th-table-overflow-arrow {
  animation: th-table-arrow-pulse 1.4s ease-in-out infinite;
}
@keyframes th-table-shade-pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@keyframes th-table-arrow-pulse {
  0%, 100% { opacity: .42; transform: translateY(-50%) translateX(0); }
  50% { opacity: 1; transform: translateY(-50%) translateX(.22rem); }
}
@media (prefers-reduced-motion: reduce) {
  .th-table-frame.has-overflow-right .th-table-overflow::before,
  .th-table-frame.has-overflow-right .th-table-overflow-arrow { animation: none; opacity: .9; }
}

/* In Progress (active hunt) uses the site chrome-blue glossy gradient.
   Must beat glass-site .btn-primary !important black-glass rules (home + every BaseLayout page).
   Activate stays the existing green .btn-primary. */
.th-hunt-table .th-progress {
  color: var(--rs-brand-blue-text, #fff) !important;
  text-shadow: var(--rs-brand-blue-text-shadow, 0 0 6px rgba(160,220,255,.9), 0 1px 1px #01081f);
  background-color: transparent !important;
  background-image: var(--rs-brand-blue-bg, linear-gradient(180deg, #0b2a6e 0%, #bfe8ff 7%, #5cc4ff 16%, #2a86ff 34%, #1f6ef5 55%, #1554d0 78%, #3d8bff 90%, #0a2d78 100%)) !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  border: 1.5px solid var(--rs-brand-blue-border, #cfeeff) !important;
  box-shadow: var(--rs-brand-blue-glow, inset 0 2px 4px rgba(1,8,31,.55), inset 0 -1px 0 rgba(255,255,255,.35), 0 0 0 1px #01081f, 0 0 12px rgba(40,140,255,.75), 0 0 22px rgba(40,140,255,.35)) !important;
}
/* Child .mt metallic-green clip would leave transparent fill + blue text-shadow = blurry blue letters. */
.th-hunt-table .th-progress .mt {
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: var(--rs-brand-blue-text, #fff) !important;
  -webkit-text-fill-color: var(--rs-brand-blue-text, #fff) !important;
  text-shadow: var(--rs-brand-blue-text-shadow, 0 0 6px rgba(160,220,255,.9), 0 1px 1px #01081f);
}
.th-hunt-table .th-progress:hover,
.th-hunt-table .th-progress:focus-visible {
  color: var(--rs-brand-blue-text, #fff) !important;
  background-color: transparent !important;
  background-image: var(--rs-brand-blue-bg, linear-gradient(180deg, #0b2a6e 0%, #bfe8ff 7%, #5cc4ff 16%, #2a86ff 34%, #1f6ef5 55%, #1554d0 78%, #3d8bff 90%, #0a2d78 100%)) !important;
  border-color: var(--rs-brand-blue-border, #cfeeff) !important;
  box-shadow: var(--rs-brand-blue-glow, inset 0 2px 4px rgba(1,8,31,.55), inset 0 -1px 0 rgba(255,255,255,.35), 0 0 0 1px #01081f, 0 0 12px rgba(40,140,255,.75), 0 0 22px rgba(40,140,255,.35)) !important;
  filter: brightness(1.06);
}
.th-hunt-table .th-progress:hover .mt,
.th-hunt-table .th-progress:focus-visible .mt {
  color: var(--rs-brand-blue-text, #fff) !important;
  -webkit-text-fill-color: var(--rs-brand-blue-text, #fff) !important;
}

/* th34 (JS th43): sequential Side Quest slots, Hunt progress, Home Open Active Hunts */
.th-quest-slot { margin: 0 0 .25rem; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8fd3ff; }
.th-hunt-summary { margin: .5rem 0 .25rem; font-weight: 700; color: #fff; }
.th-hunt-next { margin: 0 0 .75rem; }
.th-open-active { margin: .75rem 0 0; text-align: center; }
.th-hunt-complete-status { font-weight: 800; color: #39ff88; letter-spacing: .04em; }

/* th44: visible note when a Stop-page Golden Chip video waits for an active ride */
.th-ani-note{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:10000;display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;justify-content:center;max-width:calc(100vw - 24px);box-sizing:border-box;padding:.7rem .9rem;border-radius:12px;background:#111;color:#fff;border:1px solid #d4af37;box-shadow:0 6px 24px rgba(0,0,0,.45);font-size:.95rem;line-height:1.35}
.th-ani-note .btn{white-space:nowrap}
