/* =====================================================================
   ALPACAN'T  —  styles.css
   Andean blacklight arcade, carried over from WHO'S THAT LLAMA?!.
   One committed dark neon look on purpose: it's an arcade cabinet screen.
   Layout: one phone-width column, photo fills the middle, pads at the thumb.
   ===================================================================== */

@font-face { font-family: "Bungee"; src: url("fonts/bungee-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/spacemono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/spacemono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---- Tokens --------------------------------------------------------- */
:root {
  color-scheme: dark;

  --ground:      #0b0714;
  --ground-2:    #120a20;
  --panel:       #170b28;
  --panel-line:  #2c1a48;
  --ink:         #efeaff;
  --ink-dim:     #9b8fc7;

  /* species accents */
  --llama:   #ff2d95;   /* ◆ */
  --alpaca:  #1fe3d6;   /* ● */
  --vicuna:  #c6ff3a;   /* ▲ */
  --guanaco: #ff8a1f;   /* ■ */
  --banana:  #ffd43b;

  --good:  #7dffa8;
  --bad:   #ff3b6b;
  --heat-cool: #1fe3d6;
  --heat-warm: #ff8a1f;
  --heat-hot:  #ff3b6b;

  --display: "Bungee", "Arial Black", system-ui, sans-serif;
  --body:    "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, Consolas, monospace;

  --r-lg: 22px;
  --r-md: 16px;
  --shadow-deep: 0 24px 60px -20px rgba(0,0,0,.8);

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--ground);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--ground);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.app, .pads, .hud { user-select: none; -webkit-user-select: none; }

.backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 15% 0%,  rgba(255,45,149,.18), transparent 55%),
    radial-gradient(120% 90% at 85% 5%,  rgba(31,227,214,.16), transparent 55%),
    radial-gradient(140% 100% at 50% 110%, rgba(198,255,58,.10), transparent 55%),
    var(--ground);
}
.backdrop::after {
  content: ""; position: absolute; inset: -20%;
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,.035) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px);
  mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 80%);
  animation: drift 40s linear infinite;
}
@keyframes drift { to { transform: translate(22px, 22px); } }

/* ---- App shell ------------------------------------------------------ */
.app {
  position: relative; z-index: 1;
  height: 100%; width: 100%;
  max-width: 560px; margin-inline: auto;
  display: flex; flex-direction: column;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 8px;
}

.screen { display: none; flex: 1; min-height: 0; flex-direction: column; }
.screen.is-active { display: flex; animation: screen-in .35s ease both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-dim); text-align: center;
  text-wrap: balance; margin: 0;
}
.btn-primary {
  font-family: var(--display); letter-spacing: .02em;
  padding: 18px 22px; border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--llama), #d61c78);
  color: #fff; font-size: clamp(18px, 5.5vw, 24px);
  box-shadow: 0 0 0 2px rgba(255,255,255,.14) inset, 0 10px 30px -8px var(--llama);
  transition: transform .08s ease, box-shadow .2s ease;
}
.btn-primary:active { transform: translateY(2px) scale(.99); }
.btn-ghost {
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em;
  color: var(--ink-dim); padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--panel-line);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-dim); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* =====================================================================
   START
   ===================================================================== */
.start { justify-content: center; align-items: center; gap: 16px; text-align: center; padding-block: 12px; overflow-y: auto; }
.mascot {
  width: auto; height: clamp(120px, 26vh, 264px); max-width: 100%;
  filter: drop-shadow(0 0 26px rgba(255,212,59,.22)) drop-shadow(0 14px 18px rgba(0,0,0,.5));
  animation: bob 4.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-5px) rotate(-1deg); } }
/* glow comes from a blurred layer behind the letters; a filter on gradient text paints a dark box in Chrome */
.title {
  position: relative; isolation: isolate; margin: 0; max-width: 100%;
  font-family: var(--display); line-height: .95; font-weight: 400; white-space: nowrap;
  font-size: clamp(34px, 12.4vw, 72px); letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff 0%, #fff3c4 38%, var(--banana) 70%, #ff9d2e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title::before {
  content: ""; position: absolute; inset: -18% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,212,59,.22), transparent);
}
.title .apos { color: var(--llama); -webkit-text-fill-color: var(--llama); text-shadow: 0 0 12px var(--llama); }
.title.flicker { animation: flicker 2.2s steps(1) 1 both; }
@keyframes flicker { 0%,7%,11%,100% { opacity: 1; } 8%,10% { opacity: .35; } 9% { opacity: .8; } }
.tag { margin: 0; color: var(--ink); font-size: clamp(15px, 4.4vw, 19px); max-width: 34ch; text-wrap: balance; line-height: 1.4; }
.tag b { color: var(--banana); font-weight: 800; }

.suspect-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 12px; letter-spacing: .05em;
  padding: 7px 12px 7px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.chip .g { color: var(--c); font-size: 14px; }
.start-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* =====================================================================
   PLAY
   ===================================================================== */
.play { gap: 10px; padding-top: 6px; }
.hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding-right: 48px; }
.hud .stat { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.hud .stat.right { align-items: flex-end; }
.hud .stat .k { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--ink-dim); text-transform: uppercase; }
.hud .stat .v { font-family: var(--mono); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.hud .streak .v { color: var(--vicuna); }
.hud .center-badge { font-family: var(--display); font-size: 12px; letter-spacing: .04em; color: var(--ink-dim); text-align: center; line-height: 1.1; }
.hud .streak.pop .v { animation: pop .4s ease; }
@keyframes pop { 30% { transform: scale(1.4); } }

.timer { height: 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-line); overflow: hidden; position: relative; }
.timer .fill {
  position: absolute; inset: 0; transform-origin: left center;
  background: linear-gradient(90deg, var(--heat-hot), var(--heat-warm) 45%, var(--heat-cool));
  box-shadow: 0 0 16px rgba(31,227,214,.5);
  transform: scaleX(var(--p, 1));
}
.timer.low .fill { animation: heat-pulse .5s ease-in-out infinite; }
@keyframes heat-pulse { 50% { filter: brightness(1.5); } }

.toast {
  position: absolute; left: 50%; top: 64px; transform: translateX(-50%);
  font-family: var(--display); font-size: 14px; letter-spacing: .02em;
  padding: 8px 16px; border-radius: 999px; white-space: nowrap; z-index: 6;
  background: color-mix(in srgb, var(--vicuna) 22%, var(--panel));
  color: var(--vicuna); border: 1px solid var(--vicuna);
  box-shadow: 0 0 24px -4px var(--vicuna);
  opacity: 0; pointer-events: none;
}
.toast.show { animation: toast-life 1.6s ease both; }
@keyframes toast-life {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.9); }
  15% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-6px); }
}

/* The photo: whole picture shown (contain), its own blurred copy fills the frame */
.portal-wrap { flex: 1; min-height: 0; display: flex; position: relative; }
.portal {
  position: relative; width: 100%; height: 100%;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--panel); border: 1px solid var(--panel-line);
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.portal .fill-bg {
  position: absolute; inset: -30px; background-size: cover; background-position: center;
  filter: blur(22px) brightness(.5) saturate(1.15); transform: scale(1.05);
}
.portal .photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: filter .42s ease;
}
.portal .photo.enter { animation: photo-in .45s ease both; }
@keyframes photo-in { from { opacity: 0; transform: scale(1.05); } }
.portal.silhouette .photo { filter: blur(20px) brightness(.42) saturate(.5); }
.portal.silhouette::after {
  content: "◆ ● ▲ ■"; position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; letter-spacing: .3em; color: var(--ink); opacity: .55;
  animation: guess-pulse 1s ease-in-out infinite;
}
@keyframes guess-pulse { 50% { opacity: .9; transform: scale(1.06); } }
.portal .corner { position: absolute; width: 26px; height: 26px; border: 3px solid var(--alpaca); filter: drop-shadow(0 0 6px var(--alpaca)); opacity: .9; z-index: 2; }
.portal .corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.portal .corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.portal .corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.portal .corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.portal .scanline { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }

.prompt {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4;
  font-family: var(--display); font-size: clamp(14px, 4.4vw, 19px);
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(11,7,20,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--panel-line);
}
.loading { position: absolute; inset: auto 0 14px; z-index: 4; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--ink-dim); letter-spacing: .1em; }

.reveal {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 16px; gap: 8px;
  background: linear-gradient(180deg, transparent 35%, rgba(6,3,12,.6) 58%, rgba(6,3,12,.95));
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.reveal.show { opacity: 1; }
.reveal .verdict { font-family: var(--display); font-size: clamp(20px, 6vw, 30px); text-wrap: balance; line-height: 1; }
.reveal.correct .verdict { color: var(--good); filter: drop-shadow(0 0 12px var(--good)); }
.reveal.wrong .verdict { color: var(--bad); filter: drop-shadow(0 0 12px var(--bad)); }
.reveal .quip { font-size: clamp(14px, 4vw, 17px); text-wrap: pretty; }
.reveal .dossier { font-size: 13px; color: var(--ink-dim); text-wrap: pretty; line-height: 1.4; }

.pads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pad {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 14px; border-radius: var(--r-md); min-height: 60px;
  background: color-mix(in srgb, var(--c) 14%, var(--panel));
  border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 6px 20px -12px var(--c);
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}
.pad:active { transform: translateY(2px) scale(.99); }
.pad:hover { box-shadow: 0 0 0 1.5px var(--c), 0 10px 26px -10px var(--c); }
.pad .glyph { font-size: 20px; color: var(--c); filter: drop-shadow(0 0 8px var(--c)); width: 24px; text-align: center; }
.pad .name { font-family: var(--display); font-size: clamp(15px, 4.6vw, 19px); }
.pad .key { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-dim); opacity: .7; }
@media (hover: none) { .pad .key { display: none; } }
.pad.reveal-correct { background: color-mix(in srgb, var(--good) 26%, var(--panel)); border-color: var(--good); box-shadow: 0 0 0 2px var(--good), 0 0 30px -4px var(--good); }
.pad.reveal-wrong { background: color-mix(in srgb, var(--bad) 24%, var(--panel)); border-color: var(--bad); }
.pad.dim { opacity: .35; }
.pads.locked .pad { pointer-events: none; }

.app.shake { animation: shake .4s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
  10%,90% { transform: translateX(-2px); } 20%,80% { transform: translateX(4px); }
  30%,50%,70% { transform: translateX(-8px); } 40%,60% { transform: translateX(8px); }
}
#fx { position: fixed; inset: 0; z-index: 40; pointer-events: none; }

.mute-btn {
  position: fixed; z-index: 50;
  top: calc(env(safe-area-inset-top, 0px) + 8px); right: calc(env(safe-area-inset-right, 0px) + 12px);
  width: 40px; height: 40px; border-radius: 999px; font-size: 18px; line-height: 1;
  background: rgba(11,7,20,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--panel-line);
}
.mute-btn:hover { border-color: var(--ink-dim); }

/* =====================================================================
   GAME OVER
   ===================================================================== */
.over { justify-content: center; align-items: center; gap: 14px; text-align: center; padding-block: 12px; overflow-y: auto; }
.over .big { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 9vw, 52px); line-height: .95; text-wrap: balance;
  color: var(--vicuna); filter: drop-shadow(0 0 16px rgba(198,255,58,.5)); }
.scoreboard { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.scoreboard .cell { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r-md); padding: 12px 18px; min-width: 88px; }
.scoreboard .cell .k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.scoreboard .cell .v { font-family: var(--mono); font-weight: 700; font-size: 28px; font-variant-numeric: tabular-nums; }
.scoreboard .cell.hi .v { color: var(--vicuna); }

.gotcha {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; text-align: left;
  width: 100%; max-width: 420px; padding: 10px; border-radius: var(--r-md);
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--c, var(--bad)) 50%, var(--panel-line));
}
.gotcha img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.gotcha .gk { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.gotcha .gs { font-family: var(--display); font-size: 17px; color: var(--c, var(--ink)); margin: 2px 0 4px; }
.gotcha .gt { font-size: 13px; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.gotcha > div { min-width: 0; }

.over .roast { margin: 0; font-size: clamp(15px, 4.4vw, 18px); max-width: 32ch; text-wrap: balance; }
.over .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
.rank-line { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--vicuna); text-wrap: balance; max-width: 36ch; line-height: 1.4; }
.footer-note { margin: 0; text-align: center; font-family: var(--mono); font-size: 10px; color: color-mix(in srgb, var(--ink-dim) 60%, transparent); letter-spacing: .08em; }

/* =====================================================================
   HALL OF FAME
   ===================================================================== */
.board { gap: 12px; padding-block: 8px; }
.board-title {
  margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 8.5vw, 46px); text-align: center; line-height: 1;
  background: linear-gradient(180deg, #fff 0%, #ffe9a8 50%, #ffb020 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255,176,32,.42));
}
.lb { list-style: none; margin: 0; padding: 2px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; overflow-y: auto; }
.lb-row { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--panel-line); }
.lb-rank { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--ink-dim); text-align: center; font-variant-numeric: tabular-nums; }
.lb-name { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.lb-note { font-family: var(--mono); font-weight: 400; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); border: 1px solid var(--panel-line); padding: 2px 6px; border-radius: 999px; }
.lb-score { font-family: var(--mono); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.lb-row.founder { background: linear-gradient(100deg, rgba(255,176,32,.24), rgba(255,45,149,.14)); border-color: #ffb020; box-shadow: 0 0 24px -6px rgba(255,176,32,.6); }
.lb-row.founder .lb-rank, .lb-row.founder .lb-score { color: #ffd66b; }
.lb-row.player { border-color: color-mix(in srgb, var(--vicuna) 60%, transparent); background: color-mix(in srgb, var(--vicuna) 12%, var(--panel)); }
.lb-row.player .lb-rank { color: var(--vicuna); }
.lb-row.you { box-shadow: 0 0 0 1.5px var(--vicuna), 0 0 22px -6px var(--vicuna); }
.crown { filter: drop-shadow(0 0 6px #ffb020); }
.lb-gap { text-align: center; color: var(--ink-dim); font-family: var(--mono); letter-spacing: .35em; padding: 2px 0; }

/* =====================================================================
   SHARE SHEET
   ===================================================================== */
.share-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(6,3,12,.74); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); padding: 20px; animation: screen-in .2s ease both; }
.share-card { width: 100%; max-width: 390px; background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 13px; box-shadow: var(--shadow-deep); }
.share-preview { margin: 0; font-size: 13px; line-height: 1.45; text-wrap: pretty; background: var(--ground-2); border: 1px solid var(--panel-line); border-radius: 12px; padding: 11px 13px; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-btn { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 13px 10px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--ink); text-decoration: none;
  background: color-mix(in srgb, var(--b, #8a7fb0) 16%, var(--ground-2)); border: 1.5px solid color-mix(in srgb, var(--b, #8a7fb0) 55%, transparent); transition: transform .08s ease, box-shadow .2s ease; }
.share-btn:hover { box-shadow: 0 0 0 1.5px var(--b, #8a7fb0), 0 8px 22px -10px var(--b, #8a7fb0); }
.share-btn.native { grid-column: 1 / -1; --b: var(--vicuna); font-family: var(--display); font-weight: 400; font-size: 15px; }
.share-btn[data-share="facebook"]  { --b: #1877F2; }
.share-btn[data-share="whatsapp"]  { --b: #25D366; }
.share-btn[data-share="telegram"]  { --b: #229ED9; }
.share-btn[data-share="reddit"]    { --b: #FF4500; }
.share-btn[data-share="x"]         { --b: #d7d7e0; }
.share-btn[data-share="discord"]   { --b: #5865F2; }
.share-btn[data-share="instagram"] { --b: #E4405F; }
.share-btn[data-share="copy"]      { --b: #9b8fc7; }
.share-hint { margin: 0; font-family: var(--mono); font-size: 10px; color: var(--ink-dim); line-height: 1.4; }
.share-status { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--good); min-height: 1em; text-wrap: balance; }

/* =====================================================================
   SOURCE (tiny, bottom of the page)
   ===================================================================== */
.source {
  position: relative; align-self: center; margin-top: 6px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em;
  color: color-mix(in srgb, var(--ink-dim) 55%, transparent);
}
.source summary { list-style: none; cursor: pointer; }
.source summary::-webkit-details-marker { display: none; }
.source details > summary::before, .source > summary::before { content: "▸ "; }
.source details[open] > summary::before, .source[open] > summary::before { content: "▾ "; }
.source > summary { padding: 3px 8px; border-radius: 999px; text-transform: lowercase; }
.source > summary:hover { color: var(--ink-dim); }
.source-panel {
  position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px)); max-height: 46vh; overflow-y: auto; z-index: 30;
  padding: 10px 12px; border-radius: 12px; text-align: left; line-height: 1.6;
  background: rgba(18,10,32,.96); border: 1px solid var(--panel-line); color: var(--ink-dim);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.8);
}
.source-panel a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 2px; overflow-wrap: anywhere; }
.source-panel a:hover { text-decoration-color: var(--ink); }
.source-panel .go { font-size: 11px; font-weight: 700; color: var(--alpaca); }
.source-panel .go a { color: var(--alpaca); }
.source-panel p { margin: 0 0 4px; }
.source-panel details { margin-top: 6px; border-top: 1px solid var(--panel-line); padding-top: 6px; }
.source-panel details summary { padding: 0; }
.source-panel ol { margin: 6px 0 0; padding-left: 20px; }
.source-panel li { margin: 0 0 2px; }

@media (min-height: 720px) { .pad { min-height: 68px; } }
@media (max-height: 700px) {
  .start { gap: 10px; }
  .tag { font-size: 15px; }
  .btn-primary { padding: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .backdrop::after, .mascot { animation: none; }
  .app.shake { animation: none; }
}
