/* SIDEQUEST v0.02 · site shell, homepage tiles and the four toys. */
@font-face{font-family:Bricolage;src:url('assets/bricolage.woff2') format('woff2');font-weight:200 800;font-display:swap}
@font-face{font-family:'DM Sans';src:url('assets/dm-sans.woff2') format('woff2');font-weight:100 1000;font-display:swap}
:root{--paper:#f6f2e9;--surface:#fffdf8;--ink:#1d2422;--muted:#646b65;--line:#e1ddd1;--soft:#ece8dc;--accent:#e8502e;--money:#2f6b43;--green:#c8df9c;--yellow:#f3d778;--blue:#a8cadb;--purple:#c5b4db;--hl:#ffd75e;--shadow:0 14px 40px #1d242218;--spring:cubic-bezier(.34,1.56,.64,1);--display:Bricolage,'Arial Black',system-ui,sans-serif;--body:'DM Sans',system-ui,Arial,sans-serif;color-scheme:light}
[data-theme=dark]{--paper:#131917;--surface:#1c2421;--ink:#f1eee5;--muted:#a3ada6;--line:#323e39;--soft:#25302b;--accent:#ff7a55;--money:#8fd0a3;--hl:#ffc83d55;--shadow:0 14px 40px #0006;color-scheme:dark}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:15px;-webkit-font-smoothing:antialiased;overflow-x:clip;transition:background .3s,color .3s}
button,input,select,textarea{font:inherit}
button,a,input{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button{cursor:pointer;color:inherit;border:0;transition:background .18s,transform .2s var(--spring),box-shadow .2s,opacity .2s}
button:disabled{cursor:default;opacity:.42}
a{color:inherit;text-decoration:none}
:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--display);letter-spacing:-.04em;font-weight:750}
p{line-height:1.6}
button:active:not(:disabled){transform:scale(.96)}
.skip{position:fixed;top:-100px;left:20px;background:var(--ink);color:var(--paper);padding:14px;z-index:100;border-radius:10px}.skip:focus{top:10px}

/* Header + footer */
.site-header{height:76px;max-width:1240px;margin:0 auto;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:10px;font:800 22px var(--display);letter-spacing:-.045em}
.brand-mark{display:grid;grid-template-columns:repeat(2,11px);gap:3px;transition:transform .45s var(--spring)}
.brand-mark i{height:11px;border-radius:3px;background:var(--accent)}.brand-mark i:nth-child(2){background:#3d8ec2}.brand-mark i:nth-child(3){background:#e9b730;grid-column:2}
.brand:hover .brand-mark{transform:rotate(-90deg)}
.site-header nav{display:flex;align-items:center;gap:6px}
.text-button{background:none;padding:7px 0;font-size:14px;font-weight:600}.text-button:hover{color:var(--accent)}
.nav-archive{margin-right:10px}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:none;font-size:24px}
.icon-button:hover{background:var(--soft)}
.icon-button svg{width:21px;height:21px}
#sound-toggle[aria-pressed=true]{background:var(--soft);color:var(--accent)}
main{max-width:1240px;margin:0 auto;padding:0 32px;min-height:70vh}
.site-footer{max-width:1240px;margin:40px auto 0;padding:26px 32px 34px;display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:13px;color:var(--muted);border-top:1px solid var(--line)}
.footer-left{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
.footer-brand{font:800 16px var(--display);letter-spacing:-.04em;color:var(--ink)}
.footer-right{display:flex;align-items:center;gap:16px}
.version{font:700 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em;padding:6px 9px;border-radius:999px;background:var(--soft);color:var(--ink)}

/* Buttons */
.button{display:inline-flex;justify-content:center;align-items:center;gap:12px;background:var(--ink);color:var(--paper);border:1px solid var(--ink);padding:13px 22px;border-radius:999px;font-weight:700;min-height:48px;font-size:14px}
.button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 0 -1px #0000001f}
.button:active:not(:disabled){transform:translateY(1px) scale(.97);box-shadow:none}
.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.button.secondary{background:transparent;color:var(--ink);border-color:var(--line)}
.button.ghost{background:transparent;color:#fff;border-color:#ffffff66}
.button.small{padding:8px 16px;min-height:38px}
.live-dot{width:7px;height:7px;border-radius:50%;background:#4f9a5c;box-shadow:0 0 0 4px #4f9a5c22}

/* Homepage */
.home-intro{padding:44px 0 40px;max-width:900px}
.home-intro h1{font-size:clamp(40px,6.2vw,80px);line-height:.98;letter-spacing:-.055em;font-weight:800;margin-bottom:20px;text-wrap:balance}
.hl{background:linear-gradient(transparent 58%,var(--hl) 58%,var(--hl) 92%,transparent 92%) no-repeat 0 0/0% 100%;animation:marker .8s .35s cubic-bezier(.6,0,.2,1) forwards;padding:0 .04em}
.home-intro>p{font-size:18px;color:var(--muted);max-width:560px;line-height:1.55}
.today-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:26px;font-size:13px}
.today-row>span{display:inline-flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:7px 14px;min-height:38px}
.today-date{font-weight:650}
.progress-dots small{color:var(--muted);font-size:12px;margin-left:2px}
.progress-dot{width:18px;height:18px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;font-size:10px;font-weight:800;transition:transform .25s var(--spring)}
.progress-dot:hover{transform:scale(1.25)}
.progress-dot.done{background:var(--money);color:#fff;border-color:var(--money)}
.streak-pill strong{font:800 17px var(--display)}

.tile-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:36px 26px}
.tile{position:relative;display:flex;flex-direction:column;gap:14px;outline-offset:6px;border-radius:24px}
.tile-art{position:relative;aspect-ratio:5/4;border-radius:24px;overflow:hidden;display:grid;place-items:center;box-shadow:inset 0 0 0 1px #0000000d;transition:transform .45s var(--spring),box-shadow .35s}
.tile:hover .tile-art,.tile:focus-visible .tile-art{transform:translateY(-7px) rotate(var(--r,1deg));box-shadow:inset 0 0 0 1px #0000000d,0 22px 34px -16px #1d242266}
.tile:active .tile-art{transform:translateY(-2px) scale(.97);transition-duration:.12s}
.tile-art svg,.club-badge{stroke:none;stroke-width:1}
.tile-art svg{width:84%;height:auto;overflow:visible}
.tile-art svg text{font-family:var(--display);font-weight:800;stroke:none}
.tile-text h3{font-size:22px;line-height:1.1;letter-spacing:-.035em;font-weight:780}
.tile-text p{font-size:14px;color:var(--muted);line-height:1.45;margin-top:5px;max-width:30ch}
.tile-badge{position:absolute;top:12px;left:12px;z-index:2;font-size:11px;font-weight:750;letter-spacing:.01em;padding:5px 10px;border-radius:999px;background:#fffffff0;color:#1d2422;box-shadow:0 2px 6px #0000001a;transition:transform .35s var(--spring)}
.tile:hover .tile-badge{transform:translateY(-7px) rotate(var(--r,1deg))}
.tile-badge.new{background:#1d2422;color:#fff}
.tile-badge.solved{background:var(--money);color:#fff}
[data-theme=dark] .tile-badge.solved{color:#10231a}
.tile-type{position:absolute;bottom:11px;left:14px;font-size:11px;font-weight:650;opacity:.6;color:#1d2422}

/* Tile colours + illustrations */
.t-deep .tile-art{background:linear-gradient(#ffe2b4 0 29%,#6fd0dc 29%,#2289b9 58%,#0b3159)}
.art-deep .sun{fill:#ffb547}
.art-deep .wave{stroke:#fff;stroke-width:3;fill:none;animation:wave-x 3s linear infinite}
.art-deep .burj{fill:#e7f6f9;opacity:.92;transition:transform .5s var(--spring)}
.art-deep .ruler{stroke:#ffffffaa;stroke-width:2}
.art-deep .bubbles{fill:none;stroke:#fff;stroke-width:1.6}
.art-deep .bubbles circle{animation:bubble 2.8s ease-in infinite}.art-deep .bubbles circle:nth-child(2){animation-delay:.9s}.art-deep .bubbles circle:nth-child(3){animation-delay:1.8s}
.art-deep .fish{fill:#ffcf5c;transition:transform .6s var(--spring)}
.art-deep .depth{fill:#fff;font-size:15px;text-anchor:middle;opacity:0;transition:opacity .3s}
.t-deep:hover .burj{transform:translateY(-4px)}.t-deep:hover .fish{transform:translateX(-26px)}.t-deep:hover .depth{opacity:.9}
.t-kinship .tile-art{background:#efe6cf}
.t-spend .tile-art{background:#f5cf5b}
.art-spend .notes{transition:transform .5s var(--spring);transform-origin:90px 92px}
.art-spend .steam{animation:steam 2.4s ease-in-out infinite}
.art-spend .coins circle{transition:transform .5s var(--spring)}
.t-spend:hover .notes{transform:rotate(-14deg) translateY(-6px)}.t-spend:hover .coins circle:first-child{transform:translateY(-10px)}.t-spend:hover .coins circle:last-child{transform:translateY(-16px)}
.t-fivefold .tile-art{background:#e5dbf5}
.t-eyeball .tile-art{background:#f7c6b3}
.art-eye .arm{transform-origin:100px 132px;transition:transform .6s var(--spring)}
.art-eye .pupil{transition:transform .4s var(--spring)}
.art-eye .eye{animation:blink 4.5s infinite;transform-origin:52px 40px}
.t-eyeball:hover .arm{transform:rotate(-14deg)}.t-eyeball:hover .pupil{transform:translate(9px,3px)}
.t-sumkind .tile-art{background:#cfe1ec}
.t-vintage .tile-art{background:repeating-linear-gradient(90deg,#b7d78f 0 26px,#a9cd7f 26px 52px)}
.art-vintage .shield{transition:transform .5s var(--spring)}
.art-vintage .ball{animation:none}
.t-vintage:hover .left{transform:rotate(-14deg) translate(-4px,-4px)}.t-vintage:hover .right{transform:rotate(14deg) translate(4px,-4px)}
.t-lights .tile-art{background:#2f4339}
.t-lights .tile-type{color:#fff}
.mini-groups{display:grid;grid-template-columns:repeat(4,32px);gap:5px;transform:rotate(-9deg);transition:transform .5s var(--spring)}
.mini-groups i{height:30px;border-radius:6px;background:#6f9666;box-shadow:0 3px 0 #557d4c}
.mini-groups i:nth-child(n+5){background:#e9c95c;box-shadow:0 3px 0 #c3a23c}.mini-groups i:nth-child(n+9){background:#fffdf3;box-shadow:0 3px 0 #cfc6a8}
.t-kinship:hover .mini-groups{transform:rotate(-2deg) scale(1.05)}
.mini-word{display:flex;gap:5px;transform:rotate(6deg);transition:transform .5s var(--spring)}
.mini-word i{display:grid;place-items:center;background:#fff9df;font:800 25px var(--display);font-style:normal;width:36px;height:44px;border-radius:7px;box-shadow:0 3px 0 #c5b778;color:#26372c}
.mini-word i:nth-child(1),.mini-word i:nth-child(4){background:#5f9468;color:#fff;box-shadow:0 3px 0 #437050}.mini-word i:nth-child(2){background:#d8a93a;color:#fff;box-shadow:0 3px 0 #a87f22}
.t-fivefold:hover .mini-word i{animation:hop .45s var(--spring) both}.t-fivefold:hover .mini-word i:nth-child(2){animation-delay:.06s}.t-fivefold:hover .mini-word i:nth-child(3){animation-delay:.12s}.t-fivefold:hover .mini-word i:nth-child(4){animation-delay:.18s}
.mini-numbers{display:grid;grid-template-columns:repeat(3,38px);transform:rotate(-8deg);border:2px solid #658397;background:#f6f8f7;border-radius:7px;overflow:hidden;box-shadow:5px 5px 0 #9cb3c0;color:#24435b;transition:transform .5s var(--spring)}
.mini-numbers i{font:700 24px var(--display);font-style:normal;height:37px;display:grid;place-items:center;border:1px solid #b6c6cc}
.t-sumkind:hover .mini-numbers{transform:rotate(0) scale(1.06)}
.mini-lights{display:grid;grid-template-columns:repeat(3,35px);gap:9px;transform:rotate(8deg);transition:transform .5s var(--spring)}
.mini-lights i{height:35px;background:#4a6153;border-radius:50%;box-shadow:inset 0 3px 4px #0004;transition:background .2s,box-shadow .2s}
.mini-lights i:nth-child(2n){background:#f8d16c;box-shadow:0 0 14px #f8d16c88}
.t-lights:hover .mini-lights i{background:#f8d16c;box-shadow:0 0 14px #f8d16c88}.t-lights:hover .mini-lights i:nth-child(2n){background:#4a6153;box-shadow:inset 0 3px 4px #0004}

.home-note{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:56px 0 10px;padding:22px 26px;border-radius:22px;background:var(--surface);border:1px solid var(--line)}
.home-note p{font-size:15px;color:var(--muted)}.home-note strong{color:var(--ink)}

/* Shared toy chrome */
.toy-page{margin:20px auto 40px}
.toy-head{text-align:center;max-width:660px;margin:18px auto 34px}
.toy-kicker{display:inline-block;font-size:12px;font-weight:750;letter-spacing:.09em;text-transform:uppercase;color:var(--accent);margin-bottom:12px}
.toy-head h1{font-size:clamp(46px,7.5vw,84px);line-height:.95;letter-spacing:-.055em;font-weight:800;margin-bottom:16px}
.toy-head p{color:var(--muted);font-size:17px}.toy-head p strong{color:var(--ink)}
.toy-head .toy-aside{font-size:13px;margin-top:10px}
.toy-footnote{text-align:center;font-size:12px;color:var(--muted);margin:34px auto 0;max-width:520px}
.toy-error{text-align:center;padding:60px 0;color:var(--muted)}
.bump,.pop{animation:pop .35s var(--spring)}

/* The Deep End */
.is-deep main{max-width:none;padding:0}
.is-deep .site-footer{margin-top:0}
.toy-deep{margin:0}
.toy-deep .toy-crumb{max-width:1240px;margin:0 auto;padding:4px 32px 14px}
.deep-sky{position:relative;min-height:min(82vh,760px);display:grid;place-items:center;text-align:center;padding:60px 24px 140px;background:linear-gradient(#fff1d6,#ffd9a8 55%,#ffcf9a);color:#1f2a2e;overflow:hidden}
.deep-sun{position:absolute;width:130px;height:130px;border-radius:50%;background:#ffb547;right:12%;top:12%;box-shadow:0 0 90px #ffb54799;animation:float 6s ease-in-out infinite}
.deep-intro{position:relative;max-width:640px}
.deep-intro h1{font-size:clamp(54px,10vw,112px);line-height:.92;letter-spacing:-.06em;font-weight:800;margin-bottom:18px}
.deep-intro p{font-size:18px;color:#3f4b4f;max-width:520px;margin:0 auto}
.deep-intro .toy-kicker{color:#c2431f}
.deep-cue{display:inline-block;margin-top:34px;font-weight:750;font-size:14px;padding:10px 18px;border-radius:999px;background:#1f2a2e;color:#fff;animation:nudge 1.6s ease-in-out infinite}
.deep-sand{position:absolute;left:0;right:0;bottom:0;height:70px;background:#efd29b;border-radius:50% 50% 0 0/40px 40px 0 0}
.deep-water{position:relative;width:100%;color:#eaf6fb;overflow-x:clip}
.deep-wave{position:absolute;top:-16px;left:0;width:100%;height:32px;fill:#6fd0dc;stroke:none}
.deep-zone{position:absolute;left:0;width:100%;border-top:1px dashed #ffffff40;text-align:center;pointer-events:none}
.deep-zone span{position:sticky;top:16px;display:inline-block;margin-top:14px;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;padding:6px 12px;border-radius:999px;background:#00000033;backdrop-filter:blur(6px);color:#ffffffd0}
.deep-tick{position:absolute;left:0;font-size:11px;font-weight:650;color:#ffffff80;transform:translateY(-50%);padding-left:30px;font-variant-numeric:tabular-nums}
.deep-tick:before{content:'';position:absolute;left:0;top:50%;width:22px;height:1px;background:#ffffff60}
.deep-tape{position:absolute;top:0;width:3px;border-radius:0 0 3px 3px;background:linear-gradient(#ffffff70,#ffffff30)}
.deep-tape span{position:absolute;bottom:-10px;left:50%;transform:translate(-50%,100%);writing-mode:vertical-rl;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#ffffffb0}
.deep-tape:after{content:'';position:absolute;bottom:-4px;left:-3px;width:9px;height:9px;border-radius:50%;background:#fff}
.deep-item{position:absolute;left:50%;width:min(440px,calc(100% - 150px));transform:translate(-50%,-6px);display:flex;gap:16px;align-items:flex-start;opacity:0;transition:opacity .7s,transform .8s var(--spring)}
.deep-item.alt{left:calc(50% + 60px)}
.deep-item.seen{opacity:1;transform:translate(-50%,-26px)}
.deep-item:before{content:'';position:absolute;top:26px;right:calc(100% + 10px);width:50vw;height:1px;background:linear-gradient(to left,#ffffff80,transparent)}
.deep-icon{font-size:32px;width:60px;height:60px;display:grid;place-items:center;background:#ffffff1f;border:1px solid #ffffff2a;border-radius:18px;flex:none;transform:rotate(-4deg)}
.deep-item.seen .deep-icon{animation:boing .7s var(--spring)}
.deep-item b{font-size:12px;font-weight:800;letter-spacing:.06em;color:#bff2ff;font-variant-numeric:tabular-nums}
.deep-item h2{font-size:24px;line-height:1.1;color:#fff;margin:3px 0 6px}
.deep-item p{font-size:14px;color:#e2f2f7cc;line-height:1.55}
.deep-end{position:absolute;left:50%;transform:translateX(-50%);width:min(560px,calc(100% - 40px));text-align:center;color:#fff}
.deep-end h2{font-size:clamp(32px,5vw,48px);line-height:1;margin-bottom:14px}
.deep-end p{color:#ffe9d9cc;margin-bottom:24px}
.deep-scale-note{position:absolute;bottom:22px;left:20px;right:20px;text-align:center;font-size:12px;color:#ffffff80}
.deep-hud{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));transform:translate(-50%,160%);background:#04182ccc;backdrop-filter:blur(10px);color:#fff;border:1px solid #ffffff2e;border-radius:999px;padding:9px 22px;display:flex;gap:14px;align-items:baseline;font-variant-numeric:tabular-nums;z-index:40;transition:transform .5s var(--spring),background .4s;pointer-events:none;white-space:nowrap}
.deep-hud.show{transform:translate(-50%,0)}
.deep-hud.rock{background:#3a1f10dd}
.deep-hud strong{font:800 28px var(--display);letter-spacing:-.03em}
.deep-hud-atm{font-size:12px;opacity:.75}

/* Spend a Billion */
.spend-bar{position:sticky;top:8px;z-index:20;margin:0 auto 30px;max-width:900px}
.spend-bar-inner{display:grid;grid-template-columns:1fr auto;grid-template-areas:"label pct" "bal bal" "meter meter";gap:4px 12px;background:#1f5c3d;color:#fff;border-radius:22px;padding:14px 24px 16px;box-shadow:0 14px 30px -14px #1f5c3d99}
.spend-label{grid-area:label;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75}
.spend-pct{grid-area:pct;font-size:12px;font-weight:700;opacity:.85;font-variant-numeric:tabular-nums}
.spend-balance{grid-area:bal;font:800 clamp(28px,5vw,46px)/1.05 var(--display);letter-spacing:-.04em;font-variant-numeric:tabular-nums;transform-origin:left center}
.spend-balance.down{animation:flash-down .5s ease}.spend-balance.up{animation:flash-up .5s ease}
.spend-meter{grid-area:meter;height:8px;border-radius:99px;background:#ffffff26;overflow:hidden;margin-top:8px}
.spend-meter i{display:block;height:100%;width:0;background:#f5cf5b;border-radius:99px;transition:width .5s var(--spring)}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:16px}
.shop-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:20px 16px 16px;display:flex;flex-direction:column;align-items:center;text-align:center;transition:transform .35s var(--spring),box-shadow .3s,border-color .3s}
.shop-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.shop-card.owned{border-color:var(--money);box-shadow:0 0 0 2px color-mix(in srgb,var(--money) 25%,transparent)}
.shop-icon{font-size:44px;line-height:1;width:84px;height:84px;display:grid;place-items:center;border-radius:26px;background:var(--hue);transform:rotate(var(--r));margin-bottom:14px;transition:transform .45s var(--spring)}
.shop-card:hover .shop-icon{transform:rotate(calc(var(--r) * -2 - 3deg)) scale(1.07)}
.shop-card.bought .shop-icon{animation:boing .55s var(--spring)}
.shop-card.sold .shop-icon{animation:shake .3s ease}
.shop-card h3{font-size:17px;line-height:1.25;letter-spacing:-.02em;font-weight:720}
.shop-price{font:800 21px var(--display);letter-spacing:-.03em;color:var(--money);margin:6px 0 3px}
.shop-note{font-size:12.5px;color:var(--muted);min-height:38px;line-height:1.5}
.shop-controls{display:grid;grid-template-columns:1fr 1.1fr 1fr;gap:6px;width:100%;margin-top:14px}
.shop-controls button{border-radius:14px;height:44px;font-weight:750;font-size:14px}
.shop-sell{background:var(--soft)}
.shop-buy{background:var(--money);color:#fff}
[data-theme=dark] .shop-buy{color:#10231a}
.shop-buy:disabled{background:var(--soft);color:var(--muted)}
.shop-controls input{width:100%;min-width:0;height:44px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);text-align:center;font-weight:750;font-size:16px;font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield}
.shop-controls input::-webkit-outer-spin-button,.shop-controls input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.receipt{position:relative;max-width:500px;margin:48px auto 22px;background:#fffdf4;color:#2a2620;padding:30px 28px 34px;border-radius:6px 6px 0 0;box-shadow:0 18px 40px -20px #0005;animation:reveal .45s var(--spring);font-variant-numeric:tabular-nums}
.receipt:after{content:'';position:absolute;left:0;right:0;bottom:-10px;height:10px;background:linear-gradient(135deg,#fffdf4 50%,transparent 50%) 0 0/14px 10px,linear-gradient(-135deg,#fffdf4 50%,transparent 50%) 0 0/14px 10px}
.receipt h2{text-align:center;font-size:15px;letter-spacing:.18em;text-transform:uppercase;margin-bottom:18px}
.receipt-lines{list-style:none;margin:0;padding:0}
.receipt-lines li{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px dashed #00000026;font-size:14px}
.receipt-lines em{font-style:normal;color:#8a8478}
.receipt-total{display:flex;justify-content:space-between;align-items:baseline;margin:16px 0 22px;font-weight:750}
.receipt-total strong{font:800 22px var(--display);letter-spacing:-.03em}
.receipt .button.secondary{color:#2a2620;border-color:#00000026}

/* Eyeball */
.eye-stage{max-width:470px;margin:0 auto;text-align:center}
.eye-progress{display:flex;justify-content:center;gap:8px;margin-bottom:14px}
.eye-progress i{width:32px;height:32px;border-radius:10px;background:var(--soft);display:grid;place-items:center;font-style:normal;font-size:16px;transition:box-shadow .2s}
.eye-progress i.now{box-shadow:0 0 0 2px var(--accent)}
.eye-target{font-size:clamp(40px,7vw,56px);font-weight:800;letter-spacing:-.05em}
.eye-target span{color:var(--accent)}
.eye-svg{width:min(100%,390px);height:auto;aspect-ratio:1;touch-action:none;cursor:grab;display:block;margin:6px auto;user-select:none;-webkit-user-select:none;border-radius:50%}
.eye-svg.dragging{cursor:grabbing}.eye-svg.locked{cursor:default}
.eye-ring{fill:var(--surface);stroke:var(--line);stroke-width:2;stroke-dasharray:2 7}
.eye-wedge{fill:color-mix(in srgb,var(--accent) 24%,transparent);stroke:none}
.eye-answer-wedge{fill:#2f8a5522;stroke:#2f8a55;stroke-width:2;stroke-dasharray:3 5}
.eye-base{stroke:var(--ink);stroke-width:7;stroke-linecap:round}
.eye-user{stroke:var(--accent);stroke-width:7;stroke-linecap:round}
.eye-answer{stroke:#2f8a55;stroke-width:5;stroke-linecap:round}
.eye-vertex{fill:var(--ink);stroke:none}
.eye-handle{fill:var(--accent);stroke:var(--paper);stroke-width:4;transition:r .2s var(--spring),fill .2s}
.eye-svg.dragging .eye-handle{r:18px}
.eye-svg.locked .eye-handle{fill:var(--muted)}
.eye-svg.done .eye-user,.eye-svg.done .eye-handle,.eye-svg.done .eye-wedge{opacity:.25}
.eye-feedback{min-height:52px;font-size:15px;color:var(--muted);margin:6px 0 16px}
.eye-feedback strong{color:var(--ink)}

/* Vintage FC */
.vs-score{display:flex;justify-content:center;gap:10px;margin-bottom:24px}
.vs-score>span{background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:8px 18px;font-size:13px;font-weight:600}
.vs-score strong{font:800 18px var(--display);margin-left:5px;display:inline-block}
.vs-board{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:center;max-width:840px;margin:0 auto}
.club-card{background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:28px 20px 24px;text-align:center;min-height:350px;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:transform .4s var(--spring),background .3s,border-color .3s}
.club-badge{width:96px;height:104px;margin-bottom:14px;filter:drop-shadow(0 6px 0 #0000001c);animation:boing .6s var(--spring)}
.club-badge text{font-family:var(--display)}
.club-card h2{font-size:26px;line-height:1.08}
.club-place{font-size:13px;color:var(--muted);margin-top:5px}
.club-year{font:800 66px/1 var(--display);margin:18px 0 8px;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.mystery .club-year{color:var(--accent)}
.club-note{font-size:13px;color:var(--muted);max-width:230px;min-height:38px;line-height:1.45}
.club-card.right{background:color-mix(in srgb,#5fb37a 22%,var(--surface));border-color:#5fb37a;transform:scale(1.03)}
.club-card.right .club-year{color:#2f8a55}
.club-card.wrong{background:color-mix(in srgb,#e8502e 16%,var(--surface));border-color:#e8502e;animation:shake .35s ease}
.club-card.slide{animation:slide-left .5s var(--spring)}
.club-card.enter{animation:enter-right .55s var(--spring)}
.vs-mid{font:800 17px var(--display);width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:var(--paper);transform:rotate(-8deg)}
.vs-question{grid-column:1/-1;text-align:center;margin-top:10px}
.vs-question p{font-size:17px;margin-bottom:16px}
.vs-buttons{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.vs-buttons .button{min-width:210px;min-height:58px;font-size:16px;border-radius:18px;gap:10px}
.vs-buttons .button span{opacity:.75;font-weight:550;font-size:13px}
.vs-before{background:#2f6b43;border-color:#2f6b43;color:#fff}
.vs-after{background:#1b458f;border-color:#1b458f;color:#fff}
.vs-buttons .button.chosen{box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 45%,transparent);opacity:1}
.vs-over{grid-column:1/-1;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:36px 24px;animation:reveal .45s var(--spring)}
.vs-over-badges{display:flex;justify-content:center;gap:12px}.vs-over-badges svg{width:70px;height:76px}
.vs-over h2{font-size:36px;margin:16px 0 8px}
.vs-over p{color:var(--muted)}.vs-over p strong{color:var(--ink)}
.vs-final{display:flex;justify-content:center;gap:12px;margin:24px 0}
.vs-final div{background:var(--soft);border-radius:18px;padding:14px 26px;min-width:120px}
.vs-final strong{display:block;font:800 42px/1.1 var(--display)}
.vs-final small{font-size:12px;color:var(--muted)}

/* Motion */
@keyframes marker{to{background-size:100% 100%}}
@keyframes wave-x{to{transform:translateX(-26px)}}
@keyframes bubble{0%{transform:translateY(0);opacity:0}20%{opacity:1}100%{transform:translateY(-70px);opacity:0}}
@keyframes steam{0%,100%{transform:translateY(0);opacity:.55}50%{transform:translateY(-5px);opacity:.2}}
@keyframes blink{0%,46%,50%,100%{transform:scaleY(1)}48%{transform:scaleY(.1)}}
@keyframes hop{40%{transform:translateY(-10px)}}
@keyframes float{50%{transform:translateY(-12px)}}
@keyframes nudge{50%{transform:translateY(6px)}}
@keyframes boing{0%{transform:scale(.6) rotate(-10deg)}60%{transform:scale(1.12) rotate(4deg)}100%{transform:scale(1) rotate(var(--r,0deg))}}
@keyframes flash-down{30%{color:#ffd0c2;transform:scale(.97)}}
@keyframes flash-up{30%{color:#c9f5d6;transform:scale(1.02)}}
@keyframes slide-left{from{transform:translateX(40%);opacity:.4}to{transform:none;opacity:1}}
@keyframes enter-right{from{transform:translateX(30px) scale(.94);opacity:0}to{transform:none;opacity:1}}

/* Responsive */
@media(max-width:1060px){.tile-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){
  .tile-grid{grid-template-columns:repeat(2,1fr);gap:28px 18px}
  .deep-item,.deep-item.alt{left:56px;right:60px;width:auto;transform:translate(0,-6px)}
  .deep-item.seen{transform:translate(0,-26px)}
  .deep-item:before{display:none}
}
@media(max-width:650px){
  .site-header{height:64px;padding:0 16px}
  .brand{font-size:19px;gap:8px}
  .nav-archive{font-size:13px;margin-right:4px}
  .icon-button{width:38px;height:38px}
  main{padding:0 16px}
  .home-intro{padding:22px 0 28px}
  .home-intro h1{font-size:42px;margin-bottom:14px}
  .home-intro>p{font-size:16px}
  .today-row{gap:6px;margin-top:20px;font-size:12px}
  .today-row>span{padding:6px 11px;min-height:34px}
  .tile-grid{gap:24px 12px}
  .tile{gap:10px}
  .tile-art,.tile{border-radius:18px}
  .tile-text h3{font-size:17px}
  .tile-text p{font-size:12.5px}
  .tile-badge{top:8px;left:8px;font-size:10px;padding:4px 8px}
  .tile-type{display:none}
  .mini-groups,.mini-word,.mini-numbers,.mini-lights{scale:.72}
  .home-note{flex-direction:column;align-items:flex-start;padding:20px;margin-top:40px}
  .site-footer{flex-direction:column;align-items:flex-start;padding:22px 16px 30px;gap:14px}
  .footer-left{flex-direction:column;gap:6px}
  .toy-head{margin-bottom:26px}.toy-head p{font-size:15px}
  .toy-deep .toy-crumb{padding:4px 16px 12px}
  .deep-sky{padding:40px 20px 120px;min-height:76vh}
  .deep-sun{width:84px;height:84px;right:8%;top:8%}
  .deep-intro p{font-size:16px}
  .deep-item,.deep-item.alt{left:72px;right:58px;gap:12px}
  .deep-icon{width:46px;height:46px;font-size:24px;border-radius:14px}
  .deep-item h2{font-size:19px}.deep-item p{font-size:13px}
  .deep-tick{font-size:10px;padding-left:18px}.deep-tick:before{width:13px}
  .deep-hud strong{font-size:24px}
  .spend-bar{top:6px;margin-bottom:22px}
  .spend-bar-inner{padding:12px 18px 14px;border-radius:18px}
  .shop-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .shop-card{padding:16px 10px 12px;border-radius:18px}
  .shop-icon{width:62px;height:62px;font-size:32px;border-radius:20px;margin-bottom:10px}
  .shop-card h3{font-size:14px}.shop-price{font-size:17px}.shop-note{font-size:11.5px;min-height:34px}
  .shop-controls{grid-template-columns:1fr 1fr;gap:5px}
  .shop-controls input{grid-column:1/-1;grid-row:1;height:38px}
  .shop-controls button{height:40px;font-size:13px}
  .receipt{padding:26px 20px 30px}
  .vs-board{gap:8px}
  .club-card{min-height:250px;padding:18px 8px 16px;border-radius:20px}
  .club-badge{width:62px;height:68px;margin-bottom:10px}
  .club-card h2{font-size:16px}
  .club-place{font-size:11px}
  .club-year{font-size:38px;margin:12px 0 6px}
  .club-note{font-size:11px;min-height:32px}
  .vs-mid{width:34px;height:34px;font-size:12px}
  .vs-question p{font-size:15px}
  .vs-buttons{flex-direction:column}
  .vs-buttons .button{width:100%;min-width:0}
  .vs-final div{padding:12px 18px;min-width:100px}
}
@media(max-width:370px){.home-intro h1{font-size:36px}.tile-grid{gap:20px 10px}.nav-archive{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-delay:0ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}.confetti{display:none}.hl{background-size:100% 100%}.deep-item{opacity:1}}
