:root{color:#f5f1e8;font-synthesis:none;text-rendering:optimizelegibility;background:#0b0a16;font-family:Inter,ui-rounded,SF Pro Rounded,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:#0b0a16;min-height:100%}body{background:radial-gradient(circle at 50% -10%,#74558d47,#0000 34rem),linear-gradient(#17142c 0%,#0b0a16 68%);min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}:where(button,input,select):focus-visible{outline-offset:2px;outline:3px solid #8ef0b3}button{-webkit-tap-highlight-color:transparent}.shell{width:min(100%,560px);padding:max(14px, env(safe-area-inset-top)) 14px max(28px, env(safe-area-inset-bottom));gap:12px;margin:0 auto;display:grid}.shell--landing{padding-top:max(28px, env(safe-area-inset-top))}.panel{background:#1c1932ed;border:1px solid #ffffff17;border-radius:20px;box-shadow:0 18px 40px #00000042,inset 0 1px #ffffff0a}.hero{padding:28px 24px;position:relative;overflow:hidden}.hero:after{content:"🐾";opacity:.07;font-size:110px;position:absolute;bottom:-24px;right:-10px;transform:rotate(-18deg)}h1,h2,p{margin-top:0}h1{color:#f6b84a;margin-bottom:8px;font-size:clamp(2.6rem,10vw,4.2rem);line-height:.95}h2{margin-bottom:4px;font-size:1.2rem}.hero__lead{color:#c9c3d6;max-width:42ch;margin:0;line-height:1.55}.eyebrow{color:#a99dbf;letter-spacing:.12em;text-transform:uppercase;font-size:.72rem;font-weight:800}.section-heading{justify-content:space-between;align-items:end;padding:18px 18px 12px;display:flex}.section-heading strong{color:#f6b84a}.companion-grid{grid-template-columns:repeat(2,1fr);gap:8px;padding:0 12px 12px;display:grid}.companion-card{min-height:126px;color:inherit;text-align:left;cursor:pointer;background:#ffffff09;border:1px solid #ffffff14;border-radius:16px;grid-template-columns:38px 1fr;gap:8px;padding:12px;display:grid}.companion-card--selected{background:#f6b84a1a;border-color:#f6b84a;box-shadow:inset 0 0 0 1px #f6b84a2e}.companion-card__avatar{font-size:1.6rem}.companion-card strong,.companion-card small{display:block}.companion-card small{color:#a99dbf;margin-top:2px;font-size:.69rem}.companion-card p{color:#d9d4e1;margin:7px 0 0;font-size:.73rem;line-height:1.32}.launch-panel{gap:10px;padding:18px;display:grid}.launch-panel label{color:#a99dbf;font-size:.78rem;font-weight:700}.launch-panel input{color:#fff;background:#100e20;border:1px solid #ffffff1f;border-radius:12px;outline:none;width:100%;padding:12px 14px}.launch-panel input:focus{border-color:#8064ac}.primary-button{color:#241a0c;cursor:pointer;background:linear-gradient(#ffd779,#f6b84a);border:0;border-radius:14px;padding:13px 18px;font-weight:900;box-shadow:0 8px 24px #f6b84a2e}.primary-button:disabled{opacity:.45;cursor:not-allowed}.hud{grid-template-columns:repeat(3,1fr);padding:12px 16px;display:grid}.hud__metric span,.hud__metric strong{display:block}.hud__metric span{color:#8f88a4;letter-spacing:.08em;font-size:.63rem;font-weight:800}.hud__metric strong{color:#f6b84a;margin-top:3px}.hud__metric--center{text-align:center}.hud__metric--right{text-align:right}.objective{padding:16px 18px}.objective--reached{border-color:#8ef0b3b8;animation:.42s cubic-bezier(.2,.9,.25,1) objective-hit;box-shadow:0 0 0 1px #8ef0b32e,0 0 32px #8ef0b333}.objective strong{margin-top:2px;font-size:1.6rem;display:block}.progress{background:#100e20;border-radius:999px;height:8px;margin-top:10px;overflow:hidden}.progress div{border-radius:inherit;background:linear-gradient(90deg,#f6b84a,#ffdf83);height:100%;transition:width .25s}.score-row{grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;display:grid}.score-card{background:#1c1932e0;border:1px solid #ffffff14;border-radius:18px;padding:13px 15px}.score-card span,.score-card strong{display:block}.score-card span{color:#aaa2bb;font-size:.65rem;font-weight:900}.score-card strong{margin-top:2px;font-size:1.65rem}.score-card--paws strong{color:#f6b84a}.score-card--purr strong{color:#c88cff}.score-card--active{animation:.22s cubic-bezier(.15,.9,.2,1.35) score-pop}.score-card--paws.score-card--active{box-shadow:0 0 26px #f6b84a40}.score-card--purr.score-card--active{box-shadow:0 0 30px #c88cff52}.score-op{color:#746b88;font-size:1.5rem;font-weight:900}.board-panel{padding:14px}.board-header{justify-content:space-between;align-items:end;margin:2px 3px 12px;display:flex}.board-header strong{margin-top:2px;display:block}.board-progress{color:#8f88a4;font-size:.78rem}.board-stage{isolation:isolate;position:relative}.board{aspect-ratio:1;touch-action:manipulation;background:#0e0c1b;border:3px solid #0e0c1b;border-radius:13px;width:100%;display:grid;overflow:hidden}.board-panel--mistake .board{animation:.22s ease-out board-error}.board-panel--protection .board{animation:.22s ease-out board-shield}.cell{color:#f9f5ec;text-shadow:0 2px 6px #0006;cursor:pointer;opacity:.96;border-style:solid;border-color:#0b0a16d1;place-items:center;min-width:0;min-height:0;padding:0;font-size:clamp(.72rem,5vw,1.55rem);font-weight:1000;display:grid}.cell:not(:disabled):active{filter:brightness(1.16);transform:scale(.94)}.cell--x{color:#f4eefad1}.cell--cat{filter:saturate(.9);font-size:clamp(.68rem,4.8vw,1.45rem)}.cell--solution{color:#8ef0b3;box-shadow:inset 0 0 0 2px #8ef0b3}.cell--pending{filter:brightness(1.18);box-shadow:inset 0 0 0 2px #ffffffa6}.cell--event-base{animation:.22s ease-out cell-tick}.cell--event-cat{z-index:1;animation:.22s cubic-bezier(.15,.9,.2,1.4) cat-pop}.cell--event-mistake{animation:.22s ease-out cell-error;box-shadow:inset 0 0 0 3px #ff6571}.cell:disabled{cursor:default}.mode-switch{border:0;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;padding:0;display:grid}.gesture-hint{color:#bdb5cb;text-align:center;margin:10px 2px 0;font-size:.74rem}.mode-switch legend{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.mode-switch button{color:#a9a1ba;background:#100e20;border:1px solid #ffffff14;border-radius:12px;padding:11px 8px;font-weight:850}.mode-switch button.active{color:#fff8e9;background:#3a3157;border-color:#8064ac}.companions-strip{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:10px;display:grid}.mini-companion{text-align:center;background:#ffffff09;border-radius:12px;min-width:0;padding:7px 5px}.mini-companion>span{font-size:1.15rem}.mini-companion strong,.mini-companion small{text-overflow:ellipsis;display:block;overflow:hidden}.mini-companion strong{white-space:nowrap;font-size:.65rem}.mini-companion small{color:#a99dbf;font-size:.58rem}.feed{padding:12px 14px}.feed__message{color:#e5dfec;min-height:1.1rem;font-size:.8rem}.feed__entries{gap:5px;margin-top:8px;display:grid}.feed-entry{color:#a9a1ba;justify-content:space-between;gap:8px;font-size:.72rem;display:flex}.feed-entry strong{color:#f6b84a}.result{border-color:#f6b84a52;padding:20px}.result h2{color:#f6b84a;margin:4px 0 8px;font-size:1.55rem}.result p{color:#bdb5cb;line-height:1.45}.result--lost{border-color:#e05e695c}.result--lost h2{color:#ff8c94}.result .primary-button{width:100%}@media (width<=380px){.shell{padding-left:8px;padding-right:8px}.companion-grid{grid-template-columns:1fr}}@media (width>=740px){.shell{padding-top:24px}.cell{font-size:1.35rem}}.shell--overlay{align-content:center;min-height:100vh}.overlay-card{gap:16px;padding:24px;display:grid}.overlay-card h1{margin:0;font-size:clamp(2rem,9vw,3.5rem)}.overlay-card>p{color:#c9c3d6;margin:0;line-height:1.5}.big-rule{background:#c88cff1a;border:1px solid #c88cff33;border-radius:16px;padding:18px;font-size:1.2rem}.choice-grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;display:grid}.choice-card{min-height:155px;color:inherit;text-align:left;cursor:pointer;background:#ffffff0a;border:1px solid #ffffff1a;border-radius:17px;flex-direction:column;gap:6px;padding:16px;animation:.38s cubic-bezier(.2,.85,.25,1) both card-reveal;display:flex;position:relative}.choice-grid>:nth-child(2){animation-delay:55ms}.choice-grid>:nth-child(3){animation-delay:.11s}.choice-card:hover,.choice-card:focus-visible{background:#f6b84a14;border-color:#f6b84a;outline-color:#f6b84a}.choice-card:disabled{opacity:.42;cursor:not-allowed}.choice-card strong{color:#fff8e9;font-size:1rem}.choice-card small,.choice-card p{color:#b9b2c8;margin:0;line-height:1.35}.choice-card--companion{padding:0 0 15px;overflow:hidden}.choice-card--companion>:not(.choice-avatar){margin-inline:15px}.choice-avatar{object-fit:cover;object-position:center 23%;background:#17152f;border-radius:16px 16px 8px 8px;width:100%;height:clamp(112px,31vw,158px);display:block}.choice-card--legendary{background-color:#f6b84a12;background-image:linear-gradient(115deg,#0000 20%,#ffe7a61a 42%,#0000 62%),none;background-position:0 0,0 0;background-repeat:repeat,repeat;background-size:220% 100%;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;border-color:#ffd77985;animation:.38s cubic-bezier(.2,.85,.25,1) both card-reveal,2.8s ease-in-out .5s infinite legendary-glint}.tag-row{flex-wrap:wrap;gap:5px;margin-top:auto;display:flex}.tag-row i,.relic-pill,.challenge-chip{color:#d7bbf3;background:#8064ac33;border-radius:999px;padding:4px 8px;font-size:.67rem;font-style:normal}.price{color:#f6b84a;margin-top:8px}.rules-card{padding:20px}.rules-card p{color:#bdb5cb}.formula{color:#f6b84a;justify-content:center;align-items:center;gap:14px;display:flex}.formula b{color:#746b88}.metric span,.metric strong{display:block}.metric span{color:#8f88a4;text-transform:uppercase;letter-spacing:.08em;font-size:.65rem}.metric strong{color:#f6b84a;overflow-wrap:anywhere;margin-top:3px}.hud .metric:nth-child(2){text-align:center}.hud .metric:last-child{text-align:right}.challenge-chip{border:1px solid #c88cff40;justify-self:center}.board-header{align-items:center}.ghost-button,.secondary-button,.sell-list button,.replace-row button{color:#c9c3d6;cursor:pointer;background:#ffffff0a;border:1px solid #ffffff1a;border-radius:10px;padding:8px 10px}.board-panel.is-busy{border-color:#c88cff5c}.cell--hidden-region{filter:grayscale()brightness(.72)}.build-panel{gap:8px;padding:10px;display:grid}.build-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;display:grid}.build-token{text-align:center;background:#ffffff09;border-radius:10px;min-width:0;padding:6px 3px}.build-token img,.build-token small{display:block}.build-token img{object-fit:cover;object-position:center 24%;border:1px solid #ffffff24;border-radius:50%;width:38px;height:38px;margin:0 auto 4px}.build-token--active{background:#f6b84a21;animation:.22s cubic-bezier(.15,.9,.2,1.35) companion-trigger;box-shadow:0 0 22px #f6b84a47}.build-token--tarti{box-shadow:0 0 24px #53dccc61}.build-token--pruni{box-shadow:0 0 24px #c88cff66}.build-token--cibou{box-shadow:0 0 24px #ff71476b}.build-token small{text-overflow:ellipsis;white-space:nowrap;font-size:.62rem;overflow:hidden}.relic-row{gap:5px;padding-bottom:2px;display:flex;overflow-x:auto}.relic-pill{white-space:nowrap;color:#bde7df;background:#3c968c26}.relic-pill--active{color:#e9fffb;animation:.22s ease-out relic-trigger;box-shadow:0 0 18px #53dccc57}.event-burst{z-index:4;color:#fff8e9;pointer-events:none;background:#141128e0;border:1px solid #ffffff47;border-radius:24px;place-content:center;place-items:center;min-width:76px;min-height:76px;padding:10px 14px;animation:.22s cubic-bezier(.15,.85,.25,1) both event-burst;display:grid;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 12px 36px #0000005c}.event-burst span{font-size:1.6rem;font-weight:1000;line-height:1}.event-burst strong{margin-top:2px;font-size:.76rem}.event-burst--paws,.event-burst--objective,.event-burst--victory{color:#ffd779;border-color:#f6b84a9e;box-shadow:0 0 34px #f6b84a40}.event-burst--purr,.event-burst--companion{color:#e1b5ff;border-color:#c88cffa8;box-shadow:0 0 36px #c88cff4d}.event-burst--relic,.event-burst--protection,.event-burst--completion{color:#aef8e7;border-color:#53dccca3;box-shadow:0 0 34px #53dccc42}.event-burst--mistake{color:#ffabb1;border-color:#ff6571b8;box-shadow:0 0 34px #ff657147}.feed>strong{color:#fff3d1;min-height:1.2rem;margin-bottom:8px;display:block}.shop-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.secondary-button{padding:12px;font-weight:800}.sell-list{flex-wrap:wrap;gap:6px;display:flex}.sell-list h3{flex-basis:100%;margin:8px 0 0}.replace-row{border-bottom:1px solid #ffffff0f;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 0;display:flex}.summary-grid{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}.summary-grid .metric{background:#ffffff0a;border-radius:12px;padding:12px}@keyframes card-reveal{0%{opacity:0;transform:translateY(12px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes legendary-glint{0%,42%{background-position:140% 0}78%,to{background-position:-80% 0}}@keyframes cell-tick{50%{filter:brightness(1.55);transform:scale(.88)}}@keyframes cat-pop{0%{filter:brightness(1.7);transform:scale(.35)rotate(-9deg)}70%{transform:scale(1.16)rotate(3deg)}}@keyframes cell-error{35%{background-color:#a53e4b;transform:scale(.9)}}@keyframes board-error{20%,60%{filter:saturate(.7);transform:translate(-5px)}40%,80%{transform:translate(5px)}}@keyframes board-shield{50%{box-shadow:0 0 0 4px #53dccc85,0 0 28px #53dccc57}}@keyframes event-burst{0%{opacity:0;transform:translate(-50%,-42%)scale(.68)}55%{opacity:1;transform:translate(-50%,-52%)scale(1.08)}to{opacity:.92;transform:translate(-50%,-50%)scale(1)}}@keyframes score-pop{55%{transform:translateY(-3px)scale(1.06)}}@keyframes objective-hit{45%{filter:brightness(1.2);transform:scale(1.025)}}@keyframes companion-trigger{55%{transform:translateY(-4px)scale(1.09)}}@keyframes relic-trigger{50%{transform:scale(1.08)}}@media (width<=380px){.choice-grid{grid-template-columns:1fr}.overlay-card{padding:18px 14px}.shop-actions{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto;transition-duration:.01ms;animation-duration:.01ms;animation-iteration-count:1}}.metric-button{font:inherit;text-align:right;cursor:pointer;background:0 0;border:0;padding:0}.modal-backdrop{z-index:20;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#04030ad1;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.modal-card{gap:16px;width:min(100%,420px);padding:22px;display:grid}.modal-card h2,.modal-card p{margin:0}.modal-card p{color:#c9c3d6;line-height:1.55}.modal-actions{grid-template-columns:1fr 1.5fr;gap:8px;display:grid}.setting-row{background:#ffffff0a;border-radius:12px;justify-content:space-between;align-items:center;padding:12px;display:flex}.setting-row input{accent-color:#f6b84a;width:22px;height:22px}.setting-volume{gap:8px;display:grid}.setting-volume input{accent-color:#f6b84a;width:100%}.debug-entry{color:#8ef0b3;background:0 0;border:1px dashed #8ef0b3;border-radius:12px;padding:9px}.debug-panel{color:#dfffea;background:#10251c;border:1px dashed #8ef0b3;border-radius:14px;width:min(100% - 24px,620px);margin:0 auto 28px;padding:14px}.debug-panel summary{cursor:pointer;font-weight:800}.debug-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;display:grid}.debug-controls label{gap:3px;font-size:.72rem;display:grid}.debug-controls input,.debug-controls select,.debug-controls button{min-width:0;color:inherit;background:#183326;border:1px solid #8ef0b359;border-radius:8px;padding:8px}.debug-controls .debug-checkbox{align-items:center;display:flex}.debug-panel pre{white-space:pre-wrap;max-height:240px;font-size:.65rem;overflow:auto}
