/* Deep Time Dig */
:root{color-scheme:light;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}body{margin:0;font:14px system-ui}img{max-width:100%}[hidden]{display:none!important}
@font-face{font-family:'Saira Stencil One';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/saira-stencil-one-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Saira Stencil One';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/saira-stencil-one-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Lexend';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/lexend-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Lexend';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/lexend-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Lexend';font-style:normal;font-display:swap;font-weight:500;src:url(fonts/lexend-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Lexend';font-style:normal;font-display:swap;font-weight:500;src:url(fonts/lexend-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Lexend';font-style:normal;font-display:swap;font-weight:600;src:url(fonts/lexend-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Lexend';font-style:normal;font-display:swap;font-weight:600;src:url(fonts/lexend-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Lexend';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/lexend-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Lexend';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/lexend-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Lexend';font-style:normal;font-display:swap;font-weight:800;src:url(fonts/lexend-latin-ext-800-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Lexend';font-style:normal;font-display:swap;font-weight:800;src:url(fonts/lexend-latin-800-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* ===== Wattlebird Learning shared base (tokens come from each game's style.css) ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { background: var(--ground); color: var(--ink); font-family: var(--font-b); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bar); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--link); }
svg { display: block; }
#app { position: relative; z-index: 1; min-height: 100%; display: flex; flex-direction: column; }
#main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 14px 28px; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ----- buttons ----- */
.btn { --b: var(--btn); --bt: var(--btn-ink); --bd: var(--btn-edge); display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .55em 1.15em; border: 0; border-radius: 14px; background: var(--b); color: var(--bt); font-weight: 800; font-size: 1rem; letter-spacing: .01em; box-shadow: 0 4px 0 var(--bd), 0 6px 14px rgba(0,0,0,.18); transition: transform .08s, box-shadow .08s, filter .15s; text-decoration: none; user-select: none; touch-action: manipulation; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bd), 0 2px 6px rgba(0,0,0,.18); }
.btn[disabled], .btn[aria-disabled="true"] { filter: grayscale(.7) opacity(.55); cursor: not-allowed; transform: none; }
.btn.primary { --b: var(--accent); --bt: var(--accent-ink); --bd: var(--accent-edge); }
.btn.good { --b: var(--good); --bt: var(--good-ink); --bd: var(--good-edge); }
.btn.gold { --b: var(--gold); --bt: var(--gold-ink); --bd: var(--gold-edge); }
.btn.red { --b: var(--bad); --bt: #fff; --bd: var(--bad-edge); }
.btn.ghost { --b: transparent; --bt: currentColor; --bd: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:active { box-shadow: inset 0 0 0 2px var(--line); }
.btn.small { min-height: 36px; padding: .35em .85em; font-size: .9rem; border-radius: 11px; }
.btn.big { min-height: 58px; font-size: 1.2rem; padding: .6em 1.6em; border-radius: 18px; }
.btn.wide { width: 100%; }
.iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--chip); color: var(--chip-ink); font-size: 1.15rem; }

/* ----- modals ----- */
#modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: max(14px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); }
.m-back { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(3px); animation: fadeIn .2s ease-out; }
.m-box { position: relative; width: min(520px, 100%); max-height: calc(100% - 8px); overflow: auto; background: var(--paper); color: var(--paper-ink); border-radius: 22px; padding: 22px 20px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.45); animation: popIn .28s cubic-bezier(.2,1.4,.4,1); overscroll-behavior: contain; }
.m-title { font-family: var(--font-d); font-weight: 400; font-size: 1.55rem; line-height: 1.15; margin-bottom: 8px; color: var(--paper-head); }
.m-text { margin: 6px 0; color: var(--paper-soft); }
.m-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.m-actions .btn { flex: 1 1 140px; }
.eyebrow { font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); }
.small { font-size: .86rem; }
.muted { opacity: .72; }

/* ----- toasts and tooltips ----- */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 460px); pointer-events: none; }
.toast { background: var(--toast); color: var(--toast-ink); padding: 11px 16px; border-radius: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: toastIn .3s cubic-bezier(.2,1.3,.4,1); text-align: center; }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .45s; }
#tip { position: fixed; z-index: 85; max-width: 260px; background: var(--toast); color: var(--toast-ink); padding: 7px 10px; border-radius: 10px; font-size: .84rem; font-weight: 700; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.3); }

/* ----- effects ----- */
.popfx { position: fixed; z-index: 88; transform: translate(-50%, -50%); pointer-events: none; font-family: var(--font-d); font-size: 1.5rem; color: var(--pop); text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 14px rgba(0,0,0,.25); animation: popUp 1.25s ease-out forwards; white-space: nowrap; }
.popfx.bad { color: var(--bad-pop); }
.popfx.gold { color: var(--gold); }
.flashfx { position: fixed; inset: 0; z-index: 87; pointer-events: none; animation: flash .45s ease-out forwards; }
.flytok { position: fixed; z-index: 89; pointer-events: none; transform: translate(-50%, -50%); font-size: 1.2rem; line-height: 1; }
.shake { animation: shake .45s; }
.bump { animation: bump .45s; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.86) translateY(12px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes popUp { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.08); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(1); } }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* ----- forms ----- */
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; font-size: .92rem; }
.field input[type=text] { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line-paper); background: var(--input); color: var(--paper-ink); font-size: 1.1rem; font-weight: 700; }
.field input[type=text]:focus { outline: none; border-color: var(--focus); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 40px; padding: 6px 12px; border-radius: 11px; border: 2px solid var(--line-paper); background: transparent; color: var(--paper-ink); font-weight: 800; }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===== maths rounds (shared by the Wattlebird games; colours come from each game's tokens) ===== */
kbd { display: inline-block; padding: 0 .4em; border-radius: 5px; border: 1px solid currentColor; font: 700 .8em var(--font-b); opacity: .85; }
.mround { display: grid; gap: 10px; max-width: 780px; margin: 0 auto; }
.mr-prog { display: grid; justify-items: end; gap: 4px; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.mr-meter { display: block; width: 110px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.mr-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--accent)); transition: width .3s; }
.mr-stage { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 6.5; max-width: 100%; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); background: var(--ground-2); }
.mr-stage > svg, .mr-stage .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.mr-card { background: var(--paper); color: var(--paper-ink); border-radius: 20px; padding: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); display: grid; gap: 10px; transition: box-shadow .15s; }
.mr-card.good { box-shadow: 0 0 0 4px var(--good), 0 12px 30px rgba(0, 0, 0, .3); }
.mr-card.fast { box-shadow: 0 0 0 4px var(--gold), 0 12px 30px rgba(0, 0, 0, .3); }
.mr-card.bad { box-shadow: 0 0 0 4px var(--bad), 0 12px 30px rgba(0, 0, 0, .3); }
.mr-story { font-weight: 600; font-size: 1.14rem; line-height: 1.42; color: var(--paper-head); text-align: center; text-wrap: balance; }
.mr-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.mr-q { font-family: var(--font-d); font-size: clamp(2.3rem, 8.5vw, 3.6rem); line-height: 1; color: var(--paper-head); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mr-eq { font-family: var(--font-d); font-size: clamp(2rem, 7.5vw, 3.1rem); color: var(--paper-soft); line-height: 1; }
.storyq .mr-q, .storyq .mr-eq { display: none; }
.mr-ans { width: 4.2ch; font-family: var(--font-d); font-size: clamp(2.3rem, 8.5vw, 3.6rem); line-height: 1.1; text-align: center; border: 3px solid var(--line-paper); border-radius: 14px; background: var(--input); color: var(--paper-ink); padding: 2px 6px; font-variant-numeric: tabular-nums; }
.mr-ans:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(255, 209, 102, .35); }
.mr-ans::placeholder { color: rgba(0, 0, 0, .22); }
.q-in { animation: qIn .25s ease-out; }
@keyframes qIn { from { opacity: 0; transform: translateY(6px) scale(.96); } }
.mr-speed { display: flex; align-items: center; gap: 8px; }
.mr-track { flex: 1; height: 10px; border-radius: 5px; background: var(--paper-2); overflow: hidden; }
.mr-track i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); border-radius: 5px; }
.mr-speed.late .mr-track i { background: var(--line-paper); }
.mr-fb { min-height: 1.7em; display: grid; gap: 4px; justify-items: center; text-align: center; font-weight: 700; }
.fb-fast { color: #9a6e0a; }
.fb-good { color: var(--right); }
.fb-bad { color: var(--wrong); }
.fb-tip { color: var(--paper-soft); font-weight: 600; max-width: 52ch; }
.fb-do { color: var(--paper-ink); }
.fb-hint, .fb-again, .fb-story { color: var(--paper-soft); font-weight: 600; }
.fb-math { color: var(--paper-head); font-weight: 800; }
.mr-foot { display: flex; justify-content: space-between; gap: 10px; min-height: 1.6em; color: var(--ink-soft); font-weight: 700; font-size: .9rem; }
.mr-combo.hot { color: var(--pop); }
@media (pointer: coarse) { .mr-hint { display: none; } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 420px; width: 100%; margin: 0 auto; }
.keypad button { min-height: 54px; border-radius: 14px; border: 0; background: var(--btn); color: var(--btn-ink); font-size: 1.5rem; font-weight: 800; box-shadow: 0 4px 0 var(--btn-edge); touch-action: manipulation; user-select: none; }
.keypad button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge); }
.keypad .kp-go { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 0 var(--accent-edge); }
.mr-count { position: fixed; inset: 0; display: grid; place-items: center; font-family: var(--font-d); font-size: clamp(3rem, 14vw, 6rem); color: var(--pop); text-shadow: 0 4px 0 rgba(0, 0, 0, .35); pointer-events: none; z-index: 60; }
.mr-count.pulse { animation: cPulse .55s ease-out; }
@keyframes cPulse { from { transform: scale(.6); opacity: 0; } 40% { transform: scale(1.1); opacity: 1; } to { transform: scale(1); } }
.mdone { display: grid; place-items: center; padding-top: 10px; }
.md-card { width: min(640px, 100%); background: var(--paper); color: var(--paper-ink); border-radius: 24px; padding: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); display: grid; gap: 12px; text-align: center; }
.md-card .eyebrow { color: var(--eyebrow-paper); }
.md-title { font-family: var(--font-d); font-weight: 400; font-size: clamp(1.7rem, 5vw, 2.3rem); color: var(--paper-head); }
.md-ticket { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: left; background: var(--paper-2); border-radius: 18px; padding: 12px; }
.md-ticket > svg { width: 96px; height: 96px; flex: none; }
.md-stars { font-size: 1.8rem; color: var(--gold-edge); letter-spacing: .05em; line-height: 1; }
.dimstar { opacity: .25; }
.md-boost { font-weight: 700; max-width: 34ch; margin-top: 4px; }
.md-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.md-stats div { background: var(--paper-2); border-radius: 14px; padding: 8px; }
.md-stats b { display: block; font-family: var(--font-d); font-weight: 400; font-size: 1.5rem; color: var(--paper-head); }
.md-stats small { color: var(--paper-soft); font-weight: 700; }
@media (max-width: 480px) { .md-stats { grid-template-columns: repeat(2, 1fr); } }
.md-gold { font-weight: 800; color: #9a6e0a; }
.md-unlock, .md-perfect { font-weight: 800; color: var(--right); }
.md-miss { color: var(--paper-soft); }
.md-bank { font-weight: 700; }
.mdone .btnrow { justify-content: center; }
.focuspick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 640px) { .focuspick { grid-template-columns: repeat(2, 1fr); } }
.focuspick button, .sumlevels button { display: grid; gap: 2px; align-content: start; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--glass); color: var(--ink); text-align: left; min-width: 0; }
.focuspick b, .sumlevels b { font-weight: 800; }
.focuspick small, .sumlevels small { color: var(--ink-soft); font-weight: 600; font-size: .8rem; }
.focuspick button[aria-pressed="true"], .sumlevels button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sumlevels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
@media (max-width: 640px) { .sumlevels { grid-template-columns: 1fr 1fr; } }
.sumlevels button[disabled] { opacity: .5; cursor: not-allowed; }
.sl-st { color: var(--gold); font-size: .9rem; }
.fg-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.fgrid-wrap { overflow-x: auto; max-width: 100%; }
.factgrid { border-collapse: separate; border-spacing: 2px; }
.factgrid th { font-size: .68rem; font-weight: 800; color: var(--ink-soft); min-width: 18px; height: 18px; text-align: center; padding: 0; }
.factgrid td { width: 18px; height: 18px; border-radius: 4px; padding: 0; }
.st-stone { background: rgba(255, 255, 255, .09); }
.st-bronze { background: #b7773f; }
.st-silver { background: #b9c3c9; }
.st-gold { background: #f2c43a; }
.st-diamond { background: linear-gradient(135deg, #d6f7ff, #6fd6ff); }
.fg-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-soft); font-weight: 600; font-size: .84rem; margin-bottom: 8px; }
.fg-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }
.sumstars { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sumstars .ss { padding: 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 2px; }
.sumstars .ss.locked { opacity: .55; }
.sumstars small { color: var(--ink-soft); font-weight: 600; }
.sumstars span { color: var(--gold); }
.mm-sec { margin-top: 8px; }
.mini-h.dark { color: var(--eyebrow); }
.fg-cap { font-weight: 800; color: var(--ink-soft); margin-bottom: 4px; }
.fg-cap b { color: var(--ink); }

/* Deep Time Dig: a field camp after dark.
   Layout: a dark basalt ground with faint sediment bands; field-notebook paper carries the reading;
   stencil headings like crate labels; the official period colours mark time everywhere. */
:root {
  color-scheme: dark;
  --ground: #16120e; --ground-2: #201912; --ground-3: #2c2218; --bar: #110d0a;
  --ink: #f4ead6; --ink-soft: #c4b59a;
  --paper: #f6efe0; --paper-2: #ebe1cc; --paper-ink: #2a2117; --paper-head: #1f170f; --paper-soft: #5e4f3e;
  --line: rgba(244, 234, 214, .16); --line-strong: rgba(244, 234, 214, .38); --line-paper: #d6c8ad; --glass: rgba(255, 240, 210, .06); --glass-2: rgba(255, 240, 210, .11);
  --accent: #f2a93b; --accent-ink: #2a1600; --accent-edge: #b8741a;
  --good: #6cc28a; --good-ink: #08301a; --good-edge: #3f8f5c;
  --gold: #f2c43a; --gold-ink: #3b2a00; --gold-edge: #b48810;
  --bad: #e0583e; --bad-edge: #9e3522;
  --btn: #4a3a2a; --btn-ink: #f6efe0; --btn-edge: #2a2017;
  --chip: rgba(255, 240, 210, .09); --chip-ink: #f4ead6;
  --focus: #ffd166; --link: #f6c87a; --link-paper: #8a4a12; --scrim: rgba(12, 8, 4, .66);
  --toast: #2a2118; --toast-ink: #f4ead6; --pop: #ffe08a; --bad-pop: #ff9a86;
  --eyebrow: #f2a93b; --eyebrow-paper: #a8561a; --input: #fffdf7;
  --right: #3f9f62; --right-bg: #dff3e4; --wrong: #d0472f; --wrong-bg: #fbe2dc;
  --bone: #efe2c2; --bone-d: #a8946a; --rock-d: #4a3a2c; --sil: #3c3428;
  --font-d: 'Saira Stencil One', Impact, 'Arial Narrow', sans-serif;
  --font-b: 'Lexend', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
body { background: var(--ground); }
#strata { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(110% 60% at 50% -18%, rgba(242, 169, 59, .12), transparent 62%), linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .3)),
    repeating-linear-gradient(177deg, rgba(255, 240, 210, .028) 0 16px, transparent 16px 44px, rgba(0, 0, 0, .1) 44px 58px, transparent 58px 92px, rgba(203, 140, 55, .03) 92px 104px, transparent 104px 140px); }
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
.off { opacity: .35; }
.linkbtn { background: none; border: 0; color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; }
.lead { color: var(--ink-soft); max-width: 64ch; margin-bottom: 16px; }
.h-title { font-family: var(--font-d); font-weight: 400; font-size: clamp(1.8rem, 4.2vw, 2.6rem); letter-spacing: .03em; margin: 6px 0 12px; text-transform: uppercase; }
.sec-h { font-family: var(--font-d); font-weight: 400; font-size: 1.25rem; margin: 18px 0 10px; letter-spacing: .04em; text-transform: uppercase; }
.sec-h small { font-family: var(--font-b); font-weight: 600; font-size: .82rem; color: var(--ink-soft); margin-left: 6px; text-transform: none; letter-spacing: 0; }
.mini-h { font-weight: 800; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow-paper); margin: 16px 0 4px; }
.empty { color: var(--ink-soft); padding: 18px 0; }
.side-note { color: var(--ink-soft); font-size: .9rem; margin-top: 8px; max-width: 66ch; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.reward { font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 6px; justify-content: center; margin: 10px 0 4px; }
.xpico { width: 22px; height: 22px; display: inline-block; }
.boneico { width: 20px; height: 20px; display: inline-block; }
.m-box .eyebrow { color: var(--eyebrow-paper); }
.m-box a { color: var(--link-paper); }
.m-box { --sil: #8a7a64; --ink-soft: #6a5a48; }
.panel { background: var(--paper); color: var(--paper-ink); border-radius: 20px; padding: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); --sil: #8a7a64; }
.panel .eyebrow { color: var(--eyebrow-paper); }
.panel .m-text { color: var(--paper-soft); }
.btn { font-weight: 700; }

/* ----- logo ----- */
.logo { display: inline-grid; grid-template-columns: auto auto; grid-template-areas: "top ammo" "bot ammo" "strata strata"; justify-items: start; align-items: center; column-gap: .18em; line-height: .86; color: var(--ink); position: relative; }
.logo-top, .logo-bot { font-family: var(--font-d); text-transform: uppercase; letter-spacing: .05em; }
.logo-top { grid-area: top; font-size: .78em; }
.logo-bot { grid-area: bot; font-size: 1.5em; color: var(--accent); letter-spacing: .1em; }
.logo-ammo { grid-area: ammo; display: block; width: 1.5em; height: 1.5em; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .3)); }
.logo-ammo svg { width: 100%; height: 100%; }
.logo-strata { grid-area: strata; display: flex; width: 100%; height: .16em; margin-top: .14em; border-radius: 2px; overflow: hidden; }
.logo-strata i { flex: 1; }
.logo.big { font-size: clamp(2.5rem, 10vw, 3.8rem); filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .3)); }
.logo.sm { font-size: 1rem; grid-template-columns: auto auto auto; grid-template-areas: "top bot ammo"; column-gap: .3em; }
.logo.sm .logo-top { font-size: 1em; }
.logo.sm .logo-bot { font-size: 1em; }
.logo.sm .logo-ammo { width: 1.3em; height: 1.3em; }
.logo.sm .logo-strata { display: none; }

/* ----- top bar ----- */
#top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bar); border-bottom: 1px solid var(--line); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 8px; }
.tb-in { display: flex; align-items: center; gap: 10px; max-width: 1180px; margin: 0 auto; }
.tb-player { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 2px 8px 2px 2px; border-radius: 14px; min-width: 0; text-align: left; }
.tb-player:hover { background: var(--glass); }
.tb-av { width: 42px; height: 42px; flex: none; }
.tb-who { display: grid; min-width: 0; }
.tb-who b { font-weight: 800; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12ch; }
.tb-who small { color: var(--ink-soft); font-weight: 600; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16ch; }
.xpbar { display: block; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: 3px; width: 110px; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); border-radius: 4px; }
.xpbar.big { width: 100%; height: 9px; margin-top: 8px; }
.tb-home { margin: 0 auto; background: none; border: 0; padding: 4px 8px; border-radius: 12px; }
.tb-home:hover { background: var(--glass); }
.tb-right { display: flex; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px; border-radius: 12px; background: var(--chip); font-weight: 800; font-variant-numeric: tabular-nums; }
.chip small { font-weight: 600; color: var(--ink-soft); margin-left: -3px; }
.chipmedal { width: 18px; height: 22px; }
@media (max-width: 760px) { .tb-home { display: none; } .tb-right { margin-left: auto; } }
@media (max-width: 420px) { .xpbar { width: 80px; } .tb-who b { max-width: 8ch; } .chip:nth-child(2) { display: none; } }

/* ----- scenes ----- */
.scene { width: 100%; height: 100%; display: block; }
.cloud { animation: drift 60s linear infinite; }
.cloud.c2 { animation-duration: 80s; animation-delay: -30s; }
.cloud.c3 { animation-duration: 95s; animation-delay: -60s; }
@keyframes drift { from { translate: -30px 0; } 50% { translate: 30px 0; } to { translate: -30px 0; } }

/* ----- period chips, stars, tags ----- */
.pchip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 7px; background: var(--pc); color: var(--pt); font-weight: 700; font-size: .74rem; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); white-space: nowrap; }
.stars { display: inline-flex; gap: 1px; vertical-align: -3px; }
.stars svg { width: 15px; height: 15px; }
.stars svg path { fill: rgba(127, 110, 86, .45); stroke: none; }
.stars svg.on path { fill: var(--gold); stroke: #9a6e0a; stroke-width: 1.2; }
.stars.big svg { width: 28px; height: 28px; }
.tier { display: inline-flex; gap: 3px; vertical-align: middle; }
.tier i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.tier i.on { background: var(--accent); }
.panel .tier i, .m-box .tier i { background: #d8ccb4; }
.panel .tier i.on, .m-box .tier i.on { background: var(--accent-edge); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 8px; font-weight: 700; font-size: .74rem; letter-spacing: .03em; background: #e2d7c0; color: #3a2c1c; }
.tag.dino { background: #cfe9c2; color: #234a14; }
.tag.notdino { background: #f3d6c6; color: #7a2e12; }
.tag.aus { background: #ffe1a6; color: #6a3e00; }
.tag.new { background: var(--accent); color: var(--accent-ink); }
.tag.pb { background: #cde3f7; color: #0f3d66; }
.tag.frag { background: #e8d8c8; color: #6a4a2a; }

/* ----- splash, create, players ----- */
.splash { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 18px; }
.splash-sub { color: var(--ink-soft); font-weight: 600; }
.create, .players { display: grid; justify-items: center; gap: 18px; padding-top: 18px; }
.create-card { display: grid; grid-template-columns: 220px 1fr; width: min(780px, 100%); background: var(--paper); color: var(--paper-ink); border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.create-prev { background: linear-gradient(180deg, #f0c48a, #b8663a); display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; }
.cp-av { width: 170px; height: 170px; }
.cp-av svg { width: 100%; height: 100%; }
.cp-name { font-family: var(--font-d); font-size: 1.2rem; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); text-align: center; word-break: break-word; text-transform: uppercase; letter-spacing: .04em; }
.create-form { padding: 20px; display: grid; gap: 12px; min-width: 0; }
.lk-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; }
.lk-lab { font-weight: 700; font-size: .9rem; }
.lk-sw { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--line-paper); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--accent-edge); }
.seg button { min-height: 36px; padding: 5px 10px; font-size: .86rem; }
.seg.dark button { color: var(--ink); border-color: var(--line); }
@media (max-width: 640px) { .create-card { grid-template-columns: 1fr; } .cp-av { width: 120px; height: 120px; } .lk-row { grid-template-columns: 1fr; gap: 4px; } }
.pl-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pl-card { width: 170px; display: grid; justify-items: center; gap: 6px; padding: 16px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); }
.pl-card:hover { background: var(--glass-2); }
.pl-card svg { width: 110px; height: 110px; }
.pl-card b { font-weight: 800; font-size: 1.1rem; }
.pl-card small { color: var(--ink-soft); font-weight: 600; }
.pl-plus { width: 110px; height: 110px; border-radius: 50%; border: 3px dashed var(--line-strong); display: grid; place-items: center; font-size: 3rem; color: var(--ink-soft); }

/* ----- mentor speech ----- */
.mbubble { display: flex; gap: 10px; align-items: flex-start; }
.mb-av { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.mb-say { background: var(--paper); color: var(--paper-ink); border-radius: 16px; padding: 9px 12px; position: relative; min-width: 0; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.mb-say::before { content: ""; position: absolute; left: -8px; top: 18px; border: 8px solid transparent; border-left: 0; border-right-color: var(--paper); }
.mb-say b { display: block; font-size: .78rem; color: var(--eyebrow-paper); font-weight: 800; }
.mb-say p { font-weight: 600; font-size: .94rem; line-height: 1.38; }
.mbubble.mini .mb-av { width: 46px; height: 46px; }
.mbubble.mini .mb-say { padding: 7px 10px; }
.mbubble.mini .mb-say b { display: none; }
.mbubble.mini .mb-say p { font-size: .86rem; }
.panel .mbubble .mb-say { background: var(--paper-2); box-shadow: none; }
.panel .mbubble .mb-say::before { border-right-color: var(--paper-2); }

/* ----- home ----- */
.hub { display: grid; gap: 16px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, rgba(255, 240, 210, .08), rgba(255, 240, 210, .02)); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.hero-scene { position: relative; order: 2; aspect-ratio: 16 / 10; }
.hero-scene .scene { position: absolute; inset: 0; }
.hero-copy { order: 1; padding: 24px; display: grid; align-content: center; justify-items: start; gap: 10px; min-width: 0; }
.hero-title { font-family: var(--font-d); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1; text-transform: uppercase; letter-spacing: .03em; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.hero-text { max-width: 52ch; font-weight: 500; color: #e9dcc4; }
.hero-where { font-weight: 600; color: var(--ink-soft); margin-top: -4px; }
.hero-goal { font-weight: 600; color: var(--pop); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hero-mb { margin-top: 6px; max-width: 460px; }
.hero .back { color: var(--ink); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-scene { order: 0; } .hero-copy { padding: 16px 16px 18px; } }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .hub-grid { grid-template-columns: 1fr; } }
.hcard { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); text-align: left; min-width: 0; --sil: #8a7a64; }
button.hcard:hover { background: var(--glass-2); }
.hc-ico { flex: none; width: 92px; height: 64px; display: grid; place-items: center; }
.hc-ico .animal { max-width: 100%; max-height: 100%; }
.hc-ico .rankbadge { width: 56px; height: 62px; }
.mentors-ico { display: flex; }
.mentors-ico svg { width: 44px; height: 44px; margin-left: -12px; }
.mentors-ico svg:first-child { margin-left: 0; }
.hc-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.hc-txt b { font-family: var(--font-d); font-weight: 400; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; }
.hc-txt small { color: var(--ink-soft); font-weight: 500; }
.hc-last { color: var(--pop) !important; }
.hub-foot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 8px 0 0; }

/* ----- tabs and chips ----- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.tabs button { min-height: 42px; padding: 6px 14px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 700; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.fchip { min-height: 36px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 600; }
.fchip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ----- the timeline ----- */
.ribwrap { background: linear-gradient(180deg, #2a2118, #201912); border: 1px solid var(--line); border-radius: 20px; padding: 12px 12px 8px; margin-bottom: 18px; overflow-x: auto; }
.ribbon { width: 100%; min-width: 620px; height: auto; display: block; }
.rb-era { font: 700 12px var(--font-b); fill: #1c1a14; letter-spacing: .1em; text-transform: uppercase; }
.rb-per { font: 700 13px var(--font-b); }
.rb-ma { font: 600 11px var(--font-b); fill: var(--ink-soft); }
.pin { cursor: pointer; }
.pin:focus { outline: none; }
.pin:focus-visible circle, .pin:hover circle { stroke: var(--focus); }
.pin-n { font: 800 12px var(--font-b); fill: #1c1408; pointer-events: none; }
.pin.locked .pin-n { font-size: 10px; }
.rib-note { color: var(--ink-soft); font-size: .8rem; font-weight: 500; text-align: center; padding: 4px 0 2px; }
.sitegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sitecard { display: grid; grid-template-rows: auto 1fr; border: 0; padding: 0; border-radius: 20px; overflow: hidden; background: var(--paper); color: var(--paper-ink); text-align: left; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); transition: transform .15s; }
.sitecard:hover { transform: translateY(-2px); }
.sc-scene { position: relative; display: block; aspect-ratio: 16 / 8; overflow: hidden; }
.sc-scene .scene { position: absolute; inset: 0; }
.sitecard.locked .sc-scene { filter: grayscale(.85) brightness(.7); }
.sc-num { position: absolute; left: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.sitecard.locked .sc-num { background: #5a5348; color: #eee; }
.sc-lock { position: absolute; inset: auto 10px 10px auto; background: rgba(20, 14, 8, .82); color: #fff; padding: 4px 10px; border-radius: 10px; font-weight: 700; font-size: .85rem; }
.sc-body { display: grid; gap: 5px; padding: 12px 14px 14px; align-content: start; }
.sc-body b { font-family: var(--font-d); font-weight: 400; font-size: 1.2rem; color: var(--paper-head); text-transform: uppercase; letter-spacing: .03em; }
.sc-body small { color: var(--paper-soft); font-weight: 500; font-size: .85rem; }
.sc-pers { display: flex; flex-wrap: wrap; gap: 4px; }
.sc-meta { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .85rem; margin-top: 2px; }
.sc-av { width: 30px; height: 30px; }
.sc-medals { margin-left: auto; display: flex; gap: 2px; }
.sc-prog { font-size: .8rem; font-weight: 600; color: var(--paper-soft); }
.medal { display: block; }
.medal.mini { width: 18px; height: 24px; }
.medal.unearned circle, .medal.unearned path { fill: #c8bba4; stroke: #a8987c; }
.medal.unearned { opacity: .55; }
.medal.big { width: 110px; height: 138px; margin: 0 auto 6px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3)); }

/* ----- a dig site ----- */
.site-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin-top: 16px; }
@media (max-width: 900px) { .site-grid { grid-template-columns: 1fr; } .site-side { order: -1; } }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.acard { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); --sil: #7a6a56; }
.acard.found { background: rgba(242, 169, 59, .07); border-color: rgba(242, 169, 59, .3); }
.ac-art { height: 96px; border: 0; border-radius: 12px; background: radial-gradient(120% 90% at 50% 100%, rgba(239, 226, 194, .14), rgba(239, 226, 194, .03)); display: grid; place-items: center; padding: 8px; }
.ac-art svg { max-width: 100%; max-height: 100%; }
.ac-body { display: grid; gap: 4px; }
.ac-body b { font-weight: 800; font-size: 1.02rem; }
.ac-tags { display: flex; align-items: center; gap: 8px; }
.ac-body small { color: var(--ink-soft); font-weight: 500; font-size: .84rem; }
.side-mb .mb-av { width: 72px; height: 72px; }
.mslots { display: grid; gap: 8px; }
.mslot { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--glass); }
.mslot .medal { width: 34px; height: 44px; flex: none; }
.mslot b { display: block; font-weight: 800; }
.mslot small { display: block; color: var(--ink-soft); font-weight: 500; font-size: .84rem; }
.mslot.got { background: rgba(242, 196, 58, .12); }

/* ----- the museum ----- */
.hall { margin-bottom: 10px; }
.hall-h { border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.mu-sec { margin: 10px 0 14px; padding-left: 12px; border-left: 4px solid var(--pc); }
.mu-per { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1rem; }
.mu-per .pchip { font-size: .86rem; padding: 3px 10px; }
.mu-per small { color: var(--ink-soft); font-weight: 500; font-size: .82rem; }
.mu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mu-card { display: grid; gap: 4px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); text-align: left; --sil: #6a5c4a; }
.mu-card:hover { background: var(--glass-2); }
.mu-card.found { background: linear-gradient(180deg, rgba(239, 226, 194, .1), rgba(239, 226, 194, .03)); }
.mu-art { height: 68px; display: grid; place-items: center; }
.mu-art svg { max-width: 100%; max-height: 100%; }
.mu-card b { font-weight: 700; font-size: .92rem; line-height: 1.2; }
.mu-card small { color: var(--ink-soft); font-weight: 500; font-size: .78rem; }
.tablewrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.catchlog { width: 100%; border-collapse: collapse; font-size: .92rem; }
.catchlog th, .catchlog td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.catchlog th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); background: rgba(0, 0, 0, .2); }
.catchlog .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ----- the museum label ----- */
.m-ff { width: min(660px, 100%); }
.ff-art { height: 170px; border-radius: 16px; background: radial-gradient(120% 100% at 50% 100%, #e9d7b0, #c9b48a 70%, #a8946a); display: grid; place-items: center; padding: 12px; margin-bottom: 8px; --sil: #6a5a44; }
.ff-art.bones { background: radial-gradient(120% 100% at 50% 100%, #5e4a36, #3e3024 70%, #2e241a); }
.ff-art svg { max-width: 100%; max-height: 100%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .2)); }
.ff-view { margin: 0 0 10px; }
.ff-sci { color: var(--paper-soft); margin-bottom: 8px; }
.ff-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.ff-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.ff-data div { background: var(--paper-2); border-radius: 12px; padding: 8px 10px; }
.ff-data div.wide { grid-column: 1 / -1; }
.ff-data dt { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-soft); }
.ff-data dd { margin: 2px 0 0; font-weight: 500; }
.ff-facts { margin: 4px 0; padding-left: 20px; display: grid; gap: 6px; }
.ff-src { font-size: .85rem; word-break: break-word; }
.ss-wrap { background: #fffaf0; border: 1px solid var(--line-paper); border-radius: 14px; padding: 10px; margin: 10px 0; --ss-animal: #6a5236; }
.sizescale { width: 100%; height: auto; display: block; }
.ss-ground { stroke: #b9a77e; stroke-width: 2; }
.ss-kid path { fill: #2f6fb8; }
.ss-cap { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; font-size: .9rem; color: #3a2c1c; margin-top: 4px; }
.ss-you { color: #2f6fb8; font-weight: 600; font-size: .84rem; }
.ss-ruler { fill: #f2d88a; stroke: #b48810; stroke-width: 1; }
.ss-tick { stroke: #5a4320; stroke-width: 1; }
.ss-cm { font: 600 8px var(--font-b); fill: #5a4320; }
.ss-note { font-size: .84rem; color: var(--paper-soft); margin-top: 6px; }
.mythbox { margin: 12px 0; border-radius: 14px; overflow: hidden; border: 2px solid #e0c48a; }
.mythbox p { padding: 8px 12px; }
.mb-myth { background: #fbe6dc; color: #6a2410; }
.mb-truth { background: #e6f3dc; color: #1f4a14; }

/* ----- mentors and fossil hunters ----- */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.mcard { display: grid; justify-items: center; gap: 5px; padding: 14px 10px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); text-align: center; }
.mcard:hover { background: var(--glass-2); }
.mcard svg.portrait { width: 96px; height: 96px; }
.mcard b { font-weight: 800; }
.mcard small { color: var(--ink-soft); font-weight: 500; font-size: .82rem; }
.mc-medals { display: flex; gap: 3px; }
.mcard.locked svg.portrait { filter: grayscale(1) brightness(.7); }
.mc-lock { font-size: .78rem; font-weight: 700; color: var(--pop); }
.mentor-m { text-align: center; }
.mentor-m .portrait.big, .master-side .portrait.big { width: 140px; height: 140px; margin: 0 auto 8px; }
.m-quote { font-style: italic; font-weight: 600; color: var(--paper-head); margin: 10px 0; }
.mm-medals { display: flex; justify-content: center; gap: 14px; margin: 8px 0; }
.mm-medals span { display: grid; justify-items: center; gap: 2px; }
.mm-medals .medal { width: 34px; height: 44px; }
.mm-medals small { font-weight: 700; font-size: .78rem; color: var(--paper-soft); }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.hunter { background: var(--paper); color: var(--paper-ink); border-radius: 18px; padding: 14px 16px; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); border-top: 6px solid var(--accent); min-width: 0; }
.hu-name { font-family: var(--font-d); font-weight: 400; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; color: var(--paper-head); }
.hu-years { color: var(--paper-soft); font-weight: 600; font-size: .86rem; margin-bottom: 6px; }
.hu-facts { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .92rem; }
.hu-src { font-size: .8rem; margin-top: 8px; word-break: break-word; }
.hu-src a { color: var(--link-paper); }

/* ----- grown-ups ----- */
.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.gcard { padding: 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.gcard b { display: block; font-family: var(--font-d); font-weight: 400; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.gcard small { color: var(--ink-soft); font-weight: 500; }
.gsec { margin-top: 10px; }
.bars { display: grid; gap: 8px; max-width: 640px; }
.bar { display: grid; grid-template-columns: 170px 1fr 90px; gap: 10px; align-items: center; }
.bar-l { font-weight: 600; font-size: .9rem; }
.bar-t { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar-t i { display: block; height: 100%; background: var(--good); border-radius: 6px; }
.bar-v { font-weight: 800; font-variant-numeric: tabular-nums; }
.bar-v small { color: var(--ink-soft); font-weight: 500; }
@media (max-width: 520px) { .bar { grid-template-columns: 1fr 70px; } .bar-l { grid-column: 1 / -1; } }
.setrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.setrow > span { font-weight: 700; }

/* ----- the dig ----- */
body[data-screen="dig"] #main, body[data-screen="exam"] #main { padding-block: 10px 16px; }
.digscr, .master { display: grid; gap: 10px; }
.fs-bar { display: flex; align-items: center; gap: 10px; }
.fs-bar .btn.ghost { color: var(--ink); }
.fs-title { display: grid; min-width: 0; flex: 1; }
.fs-title b { font-family: var(--font-d); font-weight: 400; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; }
.fs-title small { color: var(--ink-soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-hud { display: flex; gap: 8px; align-items: center; }
.hud-dmg { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 10px; background: var(--chip); }
.hud-dmg small { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-right: 2px; }
.crk { width: 16px; height: 16px; border-radius: 4px; background: var(--bone); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); position: relative; }
.crk.on { background: #8a6a4a; }
.crk.on::after { content: ""; position: absolute; inset: 2px; background: linear-gradient(135deg, transparent 42%, #2a1a10 42% 52%, transparent 52%), linear-gradient(45deg, transparent 46%, #2a1a10 46% 54%, transparent 54%); }
.fs-body { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 1000px) { .fs-body { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); align-items: start; } .stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 10px); } }
.stage { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 16px 36px rgba(0, 0, 0, .4); background: #2a2118; max-width: 100%; }
.stage .scene, .stage .labbg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-mb { position: absolute; top: 10px; left: 10px; right: 10px; max-width: 420px; }
.fs-panel { min-height: 200px; }
.phase { display: grid; gap: 10px; }
.ph-h { font-family: var(--font-d); font-weight: 400; font-size: 1.3rem; color: var(--paper-head); line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.ph-h.big { font-size: 2.3rem; }
.rig-target { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--paper-2); border-radius: 14px; padding: 8px 10px; }
.rig-target > div { min-width: 180px; flex: 1; display: grid; gap: 2px; }
.rig-target b { font-weight: 800; }
.rig-target small { color: var(--paper-soft); font-weight: 500; font-size: .82rem; }
.rt-art { width: 86px; height: 52px; flex: none; display: grid; place-items: center; --sil: #8a7a64; }
.rt-art svg { max-width: 100%; max-height: 100%; }

/* the pit: bone under a grid of rock */
.pit { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, var(--matrix), var(--matrix2)); --bone: #efe2c2; --bone-d: #8a7550; --rock-d: #2a1e14; }
.pit::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0, 0, 0, .25) 1px, transparent 1.6px), radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.6px); background-size: 13px 11px, 17px 19px; background-position: 0 0, 6px 4px; }
.pit-bonebox { position: absolute; }
.pit-bonebox svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); }
.pit canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pit-rock { touch-action: none; cursor: crosshair; }
.pit.picking .pit-rock { cursor: cell; }
.pit-dust, .pit-cracks { pointer-events: none; }
.pit.jacketing .pit-bonebox svg { filter: drop-shadow(0 0 0 #fff) brightness(1.5) saturate(0); transition: filter 1s; }
.pit.jacketing::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 50%, rgba(250, 246, 236, .95), rgba(250, 246, 236, .7) 70%, transparent 72%); animation: fadeIn 1s ease-out; }
.toolrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg.tools button { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 12px 6px 8px; text-align: left; }
.seg.tools .tool { width: 34px; height: 34px; flex: none; }
.seg.tools span { display: grid; line-height: 1.15; font-weight: 800; }
.seg.tools small { font-weight: 500; font-size: .72rem; opacity: .85; }
.expo { display: grid; gap: 4px; background: var(--paper-2); border-radius: 14px; padding: 8px 12px; }
.expo-top { display: flex; justify-content: space-between; font-weight: 700; }
.expo-top b { font-variant-numeric: tabular-nums; }
.expo-bar { position: relative; height: 14px; border-radius: 7px; background: #d8ccb4; overflow: hidden; }
.expo-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #c9a46a, var(--bone)); border-right: 2px solid #8a7550; transition: width .25s; }
.expo-mark { position: absolute; left: 70%; top: -2px; bottom: -2px; width: 3px; background: var(--accent-edge); }
.expo small { color: var(--paper-soft); font-weight: 500; }

/* the lab */
.lab-spec { position: absolute; --bone: #efe2c2; --bone-d: #8a7550; --rock-d: #3a2c20; }
.lab-spec > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lab-bone { filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .45)); }
.lab-mx, .lab-cradle { overflow: visible; }
.lab-mx .mx { transition: opacity .7s, transform .7s; transform-box: fill-box; transform-origin: center; }
.lab-mx .mx.gone { opacity: 0; transform: scale(.6) translateY(-6px); }
.lab-cracks .lc { fill: none; stroke: #2a1a10; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lab-cracks .lc.glued { stroke: #f2c43a; stroke-dasharray: 3 2; opacity: .9; }
.lab-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.prep { font-weight: 800; font-size: .86rem; background: var(--paper-2); padding: 3px 10px; border-radius: 10px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.steps li { font-size: .74rem; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: var(--paper-2); color: var(--paper-soft); }
.steps li.done { background: #d4ecd6; color: #1f4a24; }
.steps li.done::before { content: "✓ "; }
.steps li.cur { background: var(--accent); color: var(--accent-ink); }

/* the reveal */
.reveal { position: absolute; inset: 0; background: radial-gradient(90% 80% at 50% 60%, #4a3a2a, #1c150f); display: grid; place-items: center; }
.rv-in { position: relative; width: 80%; height: 70%; --bone: #efe2c2; --bone-d: #8a7550; --rock-d: #2a1e14; }
.rv-in > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rv-bone { animation: rvOut 2.2s ease-in-out forwards; }
.rv-life { opacity: 0; animation: rvIn 2.2s ease-in-out forwards; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }
@keyframes rvOut { 0%, 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rvIn { 0%, 30% { opacity: 0; transform: scale(.96); } 100% { opacity: 1; transform: none; } }
.rv-cap { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-family: var(--font-d); text-transform: uppercase; letter-spacing: .16em; color: var(--bone); opacity: 0; animation: capIn 1s 1.6s forwards; }
@keyframes capIn { to { opacity: 1; } }

/* questions */
.qcard { display: grid; gap: 10px; }
.q-text { font-weight: 700; font-size: 1.1rem; line-height: 1.32; color: var(--paper-head); }
.q-img { height: 140px; border-radius: 14px; background: radial-gradient(120% 100% at 50% 100%, #e9d7b0, #c9b48a 70%, #a8946a); display: grid; place-items: center; padding: 10px; }
.q-img.bones { background: radial-gradient(120% 100% at 50% 100%, #5e4a36, #3e3024 70%, #2e241a); --bone: #efe2c2; --bone-d: #8a7550; --rock-d: #2a1e14; }
.q-img svg { max-width: 100%; max-height: 100%; }
.q-clue { margin: 0; padding: 10px 14px; border-left: 4px solid var(--accent); background: var(--paper-2); border-radius: 0 12px 12px 0; font-weight: 500; color: var(--paper-ink); }
.q-clue.mf { font-size: 1.08rem; font-weight: 600; border-left-color: #8a6a4a; }
.gap { display: inline-block; min-width: 3.2em; padding: 0 .4em; margin: 0 .1em; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 800; text-align: center; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts.long { grid-template-columns: 1fr; }
@media (max-width: 480px) { .opts { grid-template-columns: 1fr; } .opts.mf { grid-template-columns: 1fr 1fr; } }
.opt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--line-paper); background: #fffdf7; color: var(--paper-ink); font-weight: 600; text-align: left; box-shadow: 0 3px 0 var(--line-paper); transition: transform .08s, border-color .12s, background .12s; }
.opt:hover:not([disabled]) { border-color: var(--accent-edge); }
.opt:active:not([disabled]) { transform: translateY(2px); box-shadow: 0 1px 0 var(--line-paper); }
.opt .okey { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--paper-2); display: grid; place-items: center; font-size: .76rem; font-weight: 800; color: var(--paper-soft); }
.opt .otext { min-width: 0; line-height: 1.25; }
.opts.mf .opt { justify-content: center; min-height: 64px; font-size: 1.15rem; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; }
.opt.right { border-color: var(--right); background: #cdeed6; box-shadow: 0 3px 0 var(--right); }
.opt.right .okey { background: var(--right); color: #fff; }
.opt.wrong { border-color: var(--wrong); background: var(--wrong-bg); }
.opt.wrong .okey { background: var(--wrong); color: #fff; }
.opt.dim { opacity: .55; }
.opt[disabled] { cursor: default; }
/* the layer choice: a stack of rock layers, youngest on top */
.opts.strata { grid-template-columns: 1fr; gap: 0; border-radius: 14px; overflow: hidden; border: 2px solid #3a2c1c; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.opt.layer { border: 0; border-radius: 0; box-shadow: none; background: var(--pc); color: var(--pt); min-height: 58px; border-top: 2px dashed rgba(0, 0, 0, .25); background-image: repeating-linear-gradient(170deg, rgba(0, 0, 0, .06) 0 6px, transparent 6px 16px); }
.opt.layer:first-child { border-top: 0; }
.opt.layer .okey { background: rgba(0, 0, 0, .25); color: #fff; }
.opt.layer .otext { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.opt.layer b { font-family: var(--font-d); font-weight: 400; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .05em; }
.opt.layer small { font-weight: 600; font-size: .82rem; opacity: .9; }
.opt.layer:hover:not([disabled]) { filter: brightness(1.08); }
.opt.layer.right { box-shadow: inset 0 0 0 4px var(--right); background-color: var(--pc); }
.opt.layer.wrong { box-shadow: inset 0 0 0 4px var(--wrong); background-color: var(--pc); opacity: .6; }
.opt.layer.dim { opacity: .45; }
.strata-note { font-size: .8rem; color: var(--paper-soft); font-weight: 500; }
.fb { border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; justify-items: start; }
.fb.good { background: var(--right-bg); }
.fb.bad { background: var(--wrong-bg); }
.fb-h { font-family: var(--font-d); font-size: 1.1rem; color: var(--paper-head); text-transform: uppercase; letter-spacing: .03em; }
.fb-a { font-weight: 600; }
.fb-x { font-weight: 500; color: var(--paper-soft); font-size: .94rem; }

/* the catalogue card */
.catchcard { display: grid; grid-template-columns: 1fr; border-radius: 18px; overflow: hidden; background: #fffdf7; box-shadow: 0 8px 22px rgba(42, 33, 23, .2); }
.catchcard.trophy { box-shadow: 0 0 0 4px var(--gold), 0 8px 22px rgba(42, 33, 23, .2); }
.cc-art { position: relative; height: 170px; background: radial-gradient(120% 100% at 50% 100%, #e9d7b0, #c9b48a 70%, #a8946a); display: grid; place-items: center; padding: 14px; }
.cc-art svg { max-width: 100%; max-height: 100%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); }
.cc-tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.cc-body { padding: 12px 14px 14px; display: grid; gap: 5px; }
.cc-name { font-family: var(--font-d); font-weight: 400; font-size: 1.6rem; color: var(--paper-head); text-transform: uppercase; letter-spacing: .03em; }
.cc-sci { color: var(--paper-soft); }
.cc-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--paper-ink); }
.cc-size { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cc-size span { font-weight: 600; color: var(--paper-soft); }
.cc-fact { font-weight: 500; color: var(--paper-ink); }
.cc-xp { list-style: none; margin: 6px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--line-paper); display: grid; gap: 3px; font-size: .9rem; }
.cc-xp li { display: flex; justify-content: space-between; gap: 10px; font-weight: 500; color: var(--paper-soft); }
.cc-xp li b { font-variant-numeric: tabular-nums; color: var(--paper-ink); }
.cc-xp li.tot { font-weight: 800; color: var(--paper-ink); padding-top: 4px; }
.cc-xp li.tot b { display: inline-flex; align-items: center; gap: 4px; }
.pickfish { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pf { display: grid; gap: 4px; justify-items: center; padding: 8px; border-radius: 14px; border: 2px solid var(--line-paper); background: #fffdf7; color: var(--paper-ink); --sil: #8a7a64; }
.pf svg.animal, .pf svg.fish { height: 54px; max-width: 100%; }
.pf b { font-weight: 800; font-size: .88rem; text-align: center; }
.m-pick { width: min(640px, 100%); }
.dots { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.dots i.cur { background: var(--ink); }
.dots i.ok { background: var(--good); }
.dots i.no { background: var(--bad); }
.master-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 800px) { .master-body { grid-template-columns: 1fr; } .master-side { display: flex; align-items: center; gap: 12px; } .master-side .portrait.big { width: 80px; height: 80px; margin: 0; } }
.master-side { text-align: center; }
.m-say { background: var(--paper); color: var(--paper-ink); border-radius: 16px; padding: 10px 12px; font-weight: 600; }
.medal-m, .rank-m, .open-m { text-align: center; }
.mm-say { text-align: left; margin: 10px 0; }
.rank-m .rankbadge.big { width: 120px; height: 132px; margin: 0 auto 8px; display: block; }
.om-row { display: flex; gap: 12px; align-items: center; text-align: left; margin: 10px 0; }
.om-scene { width: 130px; height: 70px; border-radius: 12px; overflow: hidden; flex: none; position: relative; }
.om-scene .scene { position: absolute; inset: 0; }
.om-row b { display: block; font-family: var(--font-d); font-weight: 400; font-size: 1.1rem; text-transform: uppercase; }
.om-row small { color: var(--paper-soft); font-weight: 500; }
.about { text-align: left; }
.about .logo { margin-bottom: 8px; color: var(--paper-head); }
.about-sup { background: var(--paper-2); border-radius: 14px; padding: 10px 12px; margin: 10px 0; display: grid; gap: 8px; justify-items: start; }

@media (pointer: coarse) { .kbd-hint { display: none; } }
@media (max-width: 640px) {
  .fs-title b { font-size: 1rem; }
  .stage-mb { top: 6px; left: 6px; right: 6px; }
  .stage-mb .mbubble.mini .mb-av { width: 34px; height: 34px; }
  .stage-mb .mbubble.mini .mb-say { padding: 5px 8px; border-radius: 12px; }
  .stage-mb .mbubble.mini .mb-say p { font-size: .78rem; }
  .ph-h.big { font-size: 1.9rem; }
}

/* ----- maths: digs to earn, and the prospecting walk that earns them ----- */
.chipbtn { border: 0; color: inherit; font: inherit; cursor: pointer; }
.chipbtn:hover { background: var(--glass-2); }
.chiptoken { width: 22px; height: 22px; display: block; }
@media (max-width: 420px) { .hide-xs { display: none !important; } }
.hub-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.minigrid { width: 60px; height: 60px; }
.hero-goal.soft { color: var(--ink-soft); }
.hero-casts { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--pop); }
.hero-casts .token { width: 34px; height: 34px; flex: none; }
.hud-casts { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 10px; background: var(--chip); font-weight: 800; font-variant-numeric: tabular-nums; }
.phase.gate { text-align: left; }
.kit-note { font-weight: 700; font-size: .86rem; color: #6e4a0a; background: #fbecc4; border-radius: 10px; padding: 6px 10px; }
.bl-tag { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .75); font-weight: 700; font-size: .9rem; }
.bl-tag b { font-family: var(--font-d); font-weight: 400; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.pr-over { pointer-events: none; }
.pr-walker { transition: transform .5s cubic-bezier(.3, .7, .3, 1); }
.pr-walker.stumble { animation: prStumble .45s ease-in-out; }
@keyframes prStumble { 20% { translate: -3px 1px; } 45% { translate: 3px -1px; } 70% { translate: -2px 0; } }
.frag { animation: frIn .5s ease-out both; }
.frag .halo { animation: frGlow 1.8s ease-in-out infinite; }
@keyframes frIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes frGlow { 50% { opacity: .35; } }
.found .frag path { filter: drop-shadow(0 0 3px rgba(255, 230, 150, .9)); }
@media (max-width: 520px) { .bl-tag { font-size: .78rem; left: 8px; top: 6px; right: 8px; } .bl-tag b { font-size: .92rem; } }
@media (prefers-reduced-motion: reduce) { .pr-walker { transition: none; } .pr-walker.stumble, .frag, .frag .halo { animation: none; } }
