:root{--paper:#a98aef;--ink:#253558;--muted:#354775;--blue:#2476ff;--red:#ff354f;--line:#7864c6;--round:22px;font-family:'Avenir Next',Avenir,'Trebuchet MS',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{opacity:.65;cursor:wait}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #286eea;outline-offset:5px}button{border:0}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.header{height:100px;padding:0 5%;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:2;background:var(--paper)}.brand{font-weight:800;font-size:23px;letter-spacing:-1px;display:flex;align-items:center;gap:11px}.brand-icon{position:relative;width:28px;height:30px;display:inline-block}.brand-icon i{position:absolute;width:15px;height:15px;border-radius:4px;background:var(--red);left:0;top:0;transform:rotate(-9deg)}.brand-icon i:nth-child(2){left:14px;top:4px;background:#36c7f4;transform:rotate(8deg)}.brand-icon i:nth-child(3){left:5px;top:15px;background:#79df4b;transform:rotate(8deg)}.beta{font-size:9px;letter-spacing:1px;border:1px solid #8265bb;border-radius:5px;padding:4px 5px;color:#4c3c71;margin-left:2px}.header-actions{display:flex;align-items:center;gap:24px}.icon-button{font-size:27px;background:transparent;position:relative;width:34px;height:40px}.sound-off{font-size:16px;position:absolute;right:0;top:5px}.help-button{display:flex;gap:8px;align-items:center;background:transparent;font-size:13px;font-weight:650}.help-button>span:first-child:not(:last-child){border:1.5px solid currentColor;border-radius:50%;width:19px;height:19px;display:grid;place-items:center;font-size:12px}.home{position:relative;overflow:hidden;min-height:790px;padding:27px 30px 40px;background:linear-gradient(145deg,#51dec8 0%,#65c9ee 48%,#a28af0 100%);border-top:1px solid #62b1d5;border-bottom:1px solid #8c70d7}.hero{position:relative;text-align:center;z-index:1;max-width:590px;margin:0 auto}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2.4px;display:flex;align-items:center;justify-content:center;gap:8px;margin:10px 0 20px}.eyebrow span,.status-dot{width:6px;height:6px;background:#48c942;border-radius:50%;display:inline-block}h1{font-size:clamp(48px,5vw,72px);letter-spacing:-4px;line-height:1.04;margin:0;font-weight:850;position:relative}h1>span{color:var(--blue)}h1 svg{display:block;width:220px;height:15px;position:absolute;right:61px;bottom:-13px;stroke:#ffcf36;stroke-width:4;fill:none;stroke-linecap:round}.intro{font-size:15px;color:#30496e;margin:24px 0 0;letter-spacing:.1px}.character-stage{height:225px;position:relative;width:350px;margin:0 auto}.hero-cube{width:112px;height:112px;position:absolute;left:119px;top:61px;animation:bob 3.5s ease-in-out infinite;transform:rotate(-7deg)}.cube-face{position:absolute;inset:0;background:#ff354f;border-radius:13px 9px 12px 12px;box-shadow:inset 0 -5px #e51f47,inset 3px 2px #ffb3aa66;z-index:2}.cube-top{position:absolute;width:111px;height:30px;background:#ff8d99;top:-23px;left:12px;transform:skewX(-39deg);border-radius:7px 9px 0 0}.cube-side{position:absolute;right:-23px;top:-11px;width:25px;height:111px;background:#cf204b;transform:skewY(-48deg);border-radius:0 8px 6px 0}.eye{position:absolute;top:29px;width:20px;height:28px;background:white;border-radius:50%}.eye.left{left:24px}.eye.right{right:23px}.eye:after{content:'';position:absolute;bottom:5px;left:7px;width:9px;height:13px;background:#493d4d;border-radius:50%}.eye:before{content:'';position:absolute;top:4px;left:9px;width:4px;height:4px;background:white;z-index:1;border-radius:50%}.cheek{width:16px;height:8px;background:#ffb0a666;border-radius:50%;position:absolute;top:63px}.cheek.left{left:13px}.cheek.right{right:13px}.smile{position:absolute;width:32px;height:18px;left:41px;top:66px;border-bottom:5px solid #7a3743;border-radius:0 0 35px 35px;transform:rotate(-4deg)}.cube-shadow{position:absolute;left:115px;bottom:20px;width:140px;height:22px;filter:blur(3px);border-radius:50%;background:#a5a39829;transform:rotate(-6deg)}.hello-note{position:absolute;right:-105px;top:54px;font-family:'Bradley Hand','Comic Sans MS',cursive;font-size:19px;color:#573084;transform:rotate(7deg)}.hello-note svg{display:block;stroke:#704298;fill:none;stroke-width:1.6;width:70px;margin-left:-29px;transform:rotate(6deg)}.spark{position:absolute;color:#ffbc20;font-size:30px}.spark-one{left:68px;top:48px;transform:rotate(14deg)}.spark-two{right:49px;bottom:68px;font-size:22px;color:#2ebcf0}.play-controls{max-width:300px;margin:auto}.mode-picker{display:flex;gap:5px;background:#9490ed;border-radius:12px;padding:4px;margin:0 0 14px}.mode-picker button{font-size:11px;flex:1;padding:9px 5px;border-radius:9px;background:transparent;font-weight:650;color:#2e315f}.mode-picker button[aria-pressed=true]{background:#ffda57;box-shadow:0 2px 5px #604c8325;color:#353267}.primary-button{width:100%;padding:18px 24px;border-radius:15px;background:var(--blue);color:white;font-size:20px;font-weight:750;box-shadow:0 5px 0 #245ccb,0 8px 18px #4479da25;display:flex;align-items:center;justify-content:center;gap:14px;transition:transform .15s,background .15s}.primary-button:hover{background:#2869e7;transform:translateY(-2px)}.primary-button:active{transform:translateY(3px);box-shadow:0 2px 0 #245ccb}.play-icon{font-size:17px}.button-arrow{font-size:24px;margin-left:auto;font-weight:400}.play-caption{font-size:11px;color:#354775;margin:19px 0 0;display:flex;align-items:center;justify-content:center;gap:7px}.play-caption .status-dot{background:#48c942;width:5px;height:5px}.status-text{font-size:12px;min-height:16px;margin:9px 0;color:#a35659}.steps{position:relative;z-index:1;max-width:805px;margin:28px auto 0;display:flex;justify-content:space-between;gap:20px;padding:25px 0 0;border-top:1px solid #7377ba}.steps>div{display:flex;gap:12px;align-items:center}.step-number{height:38px;width:38px;display:grid;place-items:center;border-radius:12px;font-size:16px;font-weight:750;transform:rotate(-6deg)}.pink{background:#ff697f;color:#6f1634}.yellow{background:#ffdc4f;color:#735214}.green{background:#89e755;color:#235d20}.steps p{margin:0;display:grid;gap:4px}.steps strong{font-size:13px}.steps p>span{font-size:11px;color:#354775}.record-note{position:absolute;right:10%;top:237px;width:177px;min-height:201px;padding:27px 20px 23px;background:#ffda57;border:1px solid #ffdf56;border-radius:5px;box-shadow:4px 7px 0 #edb82e30;transform:rotate(7deg);display:flex;flex-direction:column;align-items:center;z-index:1}.record-note:before{content:'';position:absolute;top:-10px;width:63px;height:22px;background:#ffbf35b3;transform:rotate(-7deg)}.record-label{font-size:9px;font-weight:750;letter-spacing:1.1px;margin:7px 0}.record-note strong{font-size:43px;line-height:1.2;font-weight:850;letter-spacing:-2px}.record-note strong>span{font-size:23px;margin-left:3px}.record-description{font-size:10px;line-height:1.5;text-align:center;color:#80652f;margin-top:10px}.note-star{color:#f5a300;font-size:29px;line-height:1}.note-doodle{position:absolute;right:-26px;bottom:-30px;font-size:52px;color:#7dcc40;transform:rotate(20deg)}.little-note{position:absolute;left:12%;top:291px;font-family:'Bradley Hand','Comic Sans MS',cursive;font-size:23px;color:#30496e;line-height:1.3;transform:rotate(-9deg)}.little-note b{font-weight:normal;color:#2b5791}.little-note svg{display:block;width:75px;stroke:#72a4cc;stroke-width:1.8;fill:none;margin:15px 0 0 34px}.patch{position:absolute;opacity:.95;box-shadow:inset 0 -12px #00000009}.patch-purple{background-color:#b17af5;width:250px;height:245px;left:-100px;top:45px;border-radius:33% 57% 43% 34% / 39% 36% 64% 57%;transform:rotate(-12deg)}.patch-green{background-color:#85e34e;width:235px;height:245px;right:-85px;bottom:68px;border-radius:59% 35% 27% 51% / 43% 35% 59% 53%;transform:rotate(13deg)}.patch-yellow{background-color:#ffda42;width:144px;height:135px;left:2%;bottom:83px;border-radius:39% 54% 35% 55% / 55% 37% 57% 32%;transform:rotate(9deg)}.tiny-cube{position:absolute;width:37px;height:37px;border-radius:7px;box-shadow:5px -5px #ce93ff;display:grid;place-items:center;transform:rotate(-14deg);font-size:19px;font-weight:bold;letter-spacing:5px;padding-left:5px}.cube-purple{left:6%;top:156px;background:#a45aec;color:#54228b}.cube-green{right:6%;bottom:167px;background:#76d940;box-shadow:5px -5px #b5f27c;color:#326722;transform:rotate(13deg)}footer{padding:24px 5%;display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:1.4px;color:#353260}footer>span+span{font-size:11px;letter-spacing:.3px}.footer-flower{font-size:23px;vertical-align:middle;color:#57c635;margin-left:15px}dialog{border:1px solid #e9a742;border-radius:26px;padding:40px;width:min(460px,calc(100% - 30px));color:var(--ink);background:#ffcf70;box-shadow:0 22px 100px #26334233}dialog::backdrop{background:#303b4960;backdrop-filter:blur(7px)}.dialog-close{position:absolute;top:12px;right:16px;background:transparent;font-size:27px}.dialog-kicker{display:block;font-size:10px;letter-spacing:1.6px;font-weight:800;color:#7855b5;margin:5px 0 13px}dialog h2{font-size:32px;letter-spacing:-1.3px;line-height:1.15;margin:10px 0 20px}dialog p,dialog li{font-size:13px;line-height:1.6;color:#50425b}dialog ol{padding-left:21px}dialog li{padding-left:4px;margin-bottom:15px}dialog .primary-button{margin-top:25px;font-size:16px}.text-button{display:block;background:none;font-size:13px;margin:22px auto 0;text-decoration:underline;text-underline-offset:4px}#pause-dialog,#result-dialog{text-align:center}.result-flower{color:#73d840;font-size:54px;line-height:1}.result-score{display:grid;margin:15px 0;gap:0}.result-score strong{font-size:62px;font-weight:850;color:var(--red);letter-spacing:-3px}.result-score span{font-size:12px;color:#50425b}#save-status{min-height:21px;font-size:12px}.game-screen{padding:0 4%;height:calc(100dvh - 100px);display:flex;flex-direction:column}.game-bar{display:flex;align-items:center;justify-content:space-between;height:73px;flex-shrink:0}.game-label{display:flex;align-items:center;gap:9px;font-size:14px}.game-label>span:last-child{font-size:10px;margin-left:9px;color:#3b3b6a}.red-dot{width:14px;height:14px;background:var(--red);border-radius:4px}.score-display{text-align:center;position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:15px}.score-display>span{font-size:9px;letter-spacing:1.6px;color:#3b3b6a}.score-display strong{font-size:30px;letter-spacing:-1px;color:var(--red)}.canvas-wrap{position:relative;flex:1;min-height:200px;border-radius:20px;overflow:hidden;border:1px solid #439faf;background:#64ccd4}canvas{display:block;width:100%;height:100%;touch-action:none;outline:0}.arena-label{position:absolute;top:22px;left:25px;font-size:9px;letter-spacing:2px;color:#8b918980;pointer-events:none}.leaderboard{position:absolute;top:15px;right:15px;padding:14px 17px;background:#ffdc78;border-radius:12px;min-width:130px;pointer-events:none}.leader-row{display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.9}.leader-row i{width:7px;height:7px;border-radius:2px;background:var(--player-color)}.leader-row span{margin-left:auto;padding-left:20px;font-size:10px;font-variant-numeric:tabular-nums}.leader-row.is-player{font-weight:800}.toast{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);padding:10px 18px;background:#303847df;color:white;border-radius:12px;font-size:12px;white-space:nowrap;opacity:0;transition:opacity .2s;pointer-events:none}.toast.show{opacity:1}.game-bottom{height:57px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#393965;gap:15px;flex-shrink:0}kbd{font-family:inherit;display:inline-grid;place-items:center;background:#ffdc78;border:1px solid #cfab4c;border-bottom-width:2px;border-radius:4px;width:21px;height:23px;margin-right:3px;font-size:12px}#elapsed{font-variant-numeric:tabular-nums}.countdown{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:88px;font-weight:850;letter-spacing:-5px;background:#63c7d466;color:#3977ef;pointer-events:none}.countdown small{font-size:14px;letter-spacing:0;color:#596153;margin-top:15px}.touch-pad{display:none}body.playing .header{height:75px}body.playing .game-screen{height:calc(100dvh - 75px)}@keyframes bob{0%,100%{transform:translateY(0) rotate(-7deg)}50%{transform:translateY(-9px) rotate(-4deg)}}@media(min-width:1550px){.home{padding-top:55px;min-height:calc(100dvh - 174px)}.steps{margin-top:45px}.record-note{right:17%;top:270px}.little-note{left:19%;top:320px}}@media(max-width:1050px){.record-note{right:5%;top:268px;width:148px;padding:20px 12px;min-height:180px}.little-note{left:6%;font-size:20px}.hello-note{right:-60px;font-size:17px}.patch-purple{left:-140px}.patch-green{right:-130px}}@media(max-width:780px){.header{height:80px;padding:0 6%}.brand{font-size:20px}.header-actions{gap:10px}.help-button{font-size:11px}.beta{display:none}.home{padding:24px 20px 30px;min-height:0}.eyebrow{font-size:8px;letter-spacing:1.8px;margin:6px 0 20px}h1{font-size:clamp(43px,12.8vw,52px);letter-spacing:-2.8px}h1 svg{width:190px;right:calc(50% - 159px)}.intro{font-size:13px}.little-note,.record-note{display:none}.character-stage{height:218px}.hello-note{right:-7px;top:41px;font-size:13px;max-width:74px}.hello-note svg{width:49px;margin-left:0}.patch-yellow{width:95px;height:110px;left:-35px;bottom:185px}.patch-purple{width:170px;height:190px;left:-120px;top:110px}.patch-green{width:170px;height:190px;right:-125px;bottom:160px}.cube-purple{left:0;top:210px;width:24px;height:24px;font-size:12px}.cube-green{right:-10px;bottom:260px;width:28px;height:28px;font-size:13px}.steps{gap:20px;margin-top:20px;padding-top:22px;justify-content:center}.steps>div{flex-direction:column;gap:10px;text-align:center;flex:1;max-width:160px}.steps strong{font-size:11px}.steps p>span{font-size:10px;line-height:1.5}.step-number{width:32px;height:32px;border-radius:10px;font-size:13px}footer{padding:20px 6%;font-size:7px;letter-spacing:.8px}footer>span+span{font-size:8px}.footer-flower{font-size:18px;margin-left:5px}.score-display{gap:6px}.score-display strong{font-size:24px}.score-display>span{display:none}.game-label>span:last-child{display:none}.game-screen{padding:0 12px}.game-bar{height:60px}.arena-label{display:none}.leaderboard{padding:9px 12px;min-width:108px}.leader-row{font-size:10px}.game-bottom{font-size:9px;height:44px}.game-bottom>span:first-child{display:none}#game-hint{max-width:85%}.touch-pad{display:flex;gap:8px;justify-content:center;padding:0 0 max(16px,env(safe-area-inset-bottom))}.touch-pad button{width:59px;height:48px;border-radius:12px;background:#e5e9e0;border:1px solid #d8ddce;font-size:23px;touch-action:none;user-select:none}.touch-pad button:active{background:#cbdcff}.canvas-wrap{border-radius:14px}.toast{font-size:11px;max-width:95%;white-space:normal;text-align:center}.header .icon-button{font-size:23px}body.playing .header{height:64px}body.playing .game-screen{height:calc(100dvh - 64px)}dialog{padding:30px}dialog h2{font-size:29px}}@media(max-width:380px){h1{font-size:45px}.character-stage{width:310px}.hero-cube{left:100px}.cube-shadow{left:96px}.hello-note{right:-4px}.brand{font-size:18px}.header-actions{gap:2px}.steps{gap:10px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.touch-pad button.is-held{background:#cbdcff;box-shadow:inset 0 2px 5px #3977ef30}
@media(max-width:780px){.touch-pad button{width:100px}}
.mobile-instruction{display:none}
@media(max-width:780px),(hover:none) and (pointer:coarse){
  body.playing{overflow:hidden;overscroll-behavior:none;position:fixed;inset:0}
  body.playing .header{display:none}
  body.playing .game-screen{position:fixed;inset:0;width:100%;height:100dvh;padding:0;display:block;isolation:isolate}
  .playing .canvas-wrap{position:absolute;inset:0;border:0;border-radius:0;min-height:0}
  .playing canvas{width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none}
  .playing .game-bar{position:absolute;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));height:46px;z-index:3;pointer-events:none}
  .playing .game-label{border-radius:13px;background:#ffdc78;padding:12px;box-shadow:0 3px 14px #30384709}
  .playing .game-mode{display:none}
  .playing .score-display{background:#ffdc78;padding:7px 14px;border-radius:13px;line-height:1.1;box-shadow:0 3px 14px #30384709}
  .playing #pause{pointer-events:auto;background:#b394f3;border-radius:13px;min-height:44px;padding:0 14px}
  .playing .leaderboard{top:calc(max(12px,env(safe-area-inset-top)) + 58px);right:max(12px,env(safe-area-inset-right));padding:9px 12px;min-width:104px;max-width:120px}
  .playing .game-bottom{position:absolute;z-index:2;bottom:max(12px,env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));height:32px;pointer-events:none;padding:0 12px;border-radius:11px;background:#9f91ed;color:#302c5b;font-size:10px}
  .playing .game-bottom>span:first-child,.playing .desktop-instruction{display:none}
  .playing .mobile-instruction{display:inline}
  .playing .arena-label{display:none}
  .playing .toast{bottom:64px;z-index:2}
}

/* Bright, smooth color islands echo the in-game territories. */
.header{box-shadow:0 2px 0 #8c72d0;background:#ad8bed}
.hero h1{color:#26365f;text-shadow:0 3px 0 #9de7ed}
.character-stage:before{content:"";position:absolute;width:184px;height:108px;left:88px;top:110px;background:#ff84b4;border-radius:50%;transform:rotate(-10deg);box-shadow:0 7px 0 #dc5b94}
.cube-shadow{background:#b7275630}
.mode-picker button[aria-pressed=true]{box-shadow:0 2px 7px #2476ff20}
.eyebrow{color:#3e407a}
.leaderboard{box-shadow:0 4px 18px #205b8512}
.countdown{color:#2548b9;text-shadow:0 3px 0 #8de9e0}
@media(max-width:380px){.character-stage:before{left:69px}}

/* Every large surface has a visible color, including the mobile HUD. */
footer{background:#ad8bed}
.playing .game-label{background:#ff9bb6}
.playing .score-display{background:#ffda57}
.playing .score-display strong{color:#ac163b}
.game-screen{background:#a98aef}

/* The collection uses Pari's own drawn characters, with visible goals. */
.character-picker-button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-top:18px;padding:13px 17px;border-radius:13px;background:#ffcf58;box-shadow:0 3px 0 #d9a134;color:#493465;font-weight:800;font-size:16px}
.character-picker-button:hover{background:#ffdf79}
.character-picker-button>span+span{font-size:10px;font-weight:650;white-space:nowrap}
.hero-character{position:absolute;width:185px;height:185px;left:83px;top:21px;z-index:2;object-fit:contain;animation:bob 3.5s ease-in-out infinite}
#characters-dialog{width:min(830px,calc(100% - 24px));max-height:90dvh;padding:28px;background:#b49aee;overflow-y:auto;overscroll-behavior:contain}
#characters-dialog h2{margin-bottom:10px}
#characters-dialog .dialog-kicker{color:#493775}
#characters-dialog p{color:#403768}
.collection-intro{max-width:570px;margin-bottom:14px}
#characters-status{min-height:20px;margin:4px 0;font-weight:700}
.character-group h3{font-size:15px;margin:22px 0 11px;color:#392d69}
.character-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.character-card{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:10px 8px 13px;border-radius:17px;border:3px solid transparent;background:#ffd784;color:#372c5c;text-align:center;transition:transform .15s,border-color .15s}
.character-card:nth-child(2n){background:#f7a6c8}
.character-card:nth-child(3n){background:#80dac9}
.character-card[aria-pressed=true]{border-color:#4533a0;box-shadow:0 0 0 2px #d4b7ff}
.character-card:not(:disabled):hover{transform:translateY(-3px)}
.character-card:disabled{opacity:1;cursor:default}
.character-card img{width:100%;height:112px;object-fit:contain;filter:drop-shadow(0 4px 3px #48376520)}
.character-card.is-locked img{opacity:.55}
.character-card strong{font-size:13px;line-height:1.3;overflow-wrap:anywhere}
.character-state{font-size:10px;font-weight:800;border-radius:20px;background:#30245918;padding:4px 10px}
.character-card[aria-pressed=true] .character-state{background:#4533a0;color:#fff}
.character-card small{font-size:10px;line-height:1.35}
.character-card progress{width:80%;height:7px;accent-color:#6649c4;border:0;border-radius:10px;background:#30245925}
.character-card progress::-webkit-progress-bar{background:#30245925;border-radius:10px}
.character-card progress::-webkit-progress-value{background:#6649c4;border-radius:10px}
.collection-footnote{font-size:11px!important;margin-bottom:0}
.new-unlocks{padding:14px;border-radius:16px;background:#9ddd8f;color:#2c503b;margin:14px 0}
.new-unlocks>strong{font-size:15px}
.new-unlocks small{display:block;font-size:11px;margin-top:8px}
.unlock-list{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;max-height:190px;overflow:auto}
.unlock-list>span{display:flex;flex-direction:column;align-items:center;font-size:11px;max-width:95px}
.unlock-list img{width:70px;height:70px}
@media(max-width:600px){#characters-dialog{padding:24px 16px}.character-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.character-card img{height:104px}}
@media(max-width:380px){.hero-character{left:64px}.character-picker-button{font-size:15px;padding-inline:12px}}

.leader-row i{flex-shrink:0}
.leader-row .leader-name{margin:0;padding:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:inherit}
.leader-row .leader-score{padding-left:6px;flex-shrink:0;white-space:nowrap}
@media(max-width:780px),(hover:none) and (pointer:coarse){
  .playing .leaderboard{width:145px;max-width:145px}
  .playing .game-label strong{max-width:clamp(55px,18vw,110px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
}
#characters-dialog .dialog-close{position:sticky;top:0;float:right;z-index:3;width:36px;height:36px;margin:-8px -4px 0 0;border-radius:50%;background:#9377d7;box-shadow:0 2px 6px #49357520}

.leaderboard-title{font-size:10px;font-weight:800;color:#554270;border-bottom:1px solid #84632c33;margin-bottom:5px;padding-bottom:5px}
.boost-status{position:absolute;bottom:20px;left:16px;padding:11px 15px;background:#ffbb35;color:#6a291d;box-shadow:0 3px 0 #ee7938;border-radius:13px;font-size:12px;font-weight:850;pointer-events:none}
@media(max-width:780px),(hover:none) and (pointer:coarse){.playing .boost-status{bottom:78px;left:max(12px,env(safe-area-inset-left));font-size:11px;padding:9px 11px}}

.wallet-note{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:#413464;margin:14px 0 0}
.wallet-note button{background:#b58ae9;border-radius:8px;padding:8px 10px;font-weight:800;font-size:11px}
.wallet-note b{font-size:14px}
.wallet-banner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;padding:14px 16px;border-radius:15px;background:#ffda70;color:#513962;font-size:12px}
.wallet-banner small{width:100%;font-size:10px;color:#624d61}
.collection-tabs{display:flex;gap:7px;margin:16px 0 0;padding:4px;border-radius:13px;background:#9579d1}
.collection-tabs button{flex:1;border-radius:10px;background:transparent;padding:11px 8px;color:#33235d;font-size:12px;font-weight:800}
.collection-tabs button[aria-pressed=true]{background:#8ce1cd;box-shadow:0 2px 0 #66b8aa}
#treasure-dialog{text-align:center;background:radial-gradient(ellipse at 50% 42%,#ffe477,#ffc46d 65%,#f7a98b);max-height:94dvh;overflow:auto;padding:26px}
#treasure-dialog h2{margin-bottom:10px}
#treasure-dialog>p{margin:10px 0}
#treasure-dialog>small{display:block;margin-top:16px;color:#755465;font-size:10px}
.treasure-button{display:block;background:transparent;width:min(240px,100%);margin:0 auto;padding:0;touch-action:manipulation;animation:chest-wiggle .55s ease-in-out infinite}
.treasure-button img{display:block;width:100%;height:170px;filter:drop-shadow(0 8px 7px #b77a3240)}
.treasure-button:disabled{opacity:.7;cursor:default;animation:none}
.treasure-button:not(:disabled):hover{transform:scale(1.06)}
.treasure-time{display:block;font-size:42px;color:#a43566;font-variant-numeric:tabular-nums;line-height:1.15}
#treasure-progress{display:block;appearance:none;border:0;width:80%;height:10px;margin:12px auto;background:#c7878055;border-radius:20px}
#treasure-progress::-webkit-progress-bar{background:#c7878055;border-radius:20px}
#treasure-progress::-webkit-progress-value{background:#bd4286;border-radius:20px}
#treasure-progress::-moz-progress-bar{background:#bd4286;border-radius:20px}
#treasure-message{min-height:40px;font-weight:750;font-size:13px}
#treasure-actions .primary-button{margin-top:12px}
#treasure-actions .text-button{margin-top:17px}
.treasure-collected .treasure-button{opacity:1;filter:drop-shadow(0 0 16px #fff075)}
.treasure-collected .treasure-time{color:#347645}
@keyframes chest-wiggle{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg) scale(1.03)}}
@media(prefers-reduced-motion:reduce){.treasure-button{animation:none}}
@media(max-height:650px){#treasure-dialog{padding:20px}.treasure-button img{height:115px}#treasure-dialog h2{font-size:25px}.treasure-time{font-size:30px}#treasure-dialog .dialog-kicker{margin:0 0 7px}#treasure-message{min-height:20px}}

.character-card.is-legendary{background:linear-gradient(145deg,#fff08a,#ffc14d 55%,#ff92bc);border-color:#b67526;box-shadow:0 4px 0 #9b5b3833}
.character-card.is-legendary[aria-pressed=true]{border-color:#6740b8;box-shadow:0 0 0 2px #ffe177}
.rarity-badge{font-size:10px;font-weight:900;letter-spacing:.06em;border-radius:20px;padding:5px 9px;background:#71366f;color:#ffea80}
.splash-status{position:absolute;bottom:72px;left:16px;max-width:calc(100% - 32px);padding:10px 13px;border-radius:13px;background:#ffc95c;color:#612c60;box-shadow:0 3px 0 #cf793d;pointer-events:none;font-size:11px}
.splash-status progress{display:block;width:100%;height:6px;margin-top:7px;accent-color:#c9368c}
.splash-status.is-ready{background:#ffe579;box-shadow:0 0 16px #ffd042aa,0 3px 0 #cf793d}
@media(max-width:780px),(hover:none) and (pointer:coarse){.playing .splash-status{bottom:128px;left:max(12px,env(safe-area-inset-left));max-width:calc(100% - 24px);font-size:10px}}

.character-card.is-mythic{background:linear-gradient(140deg,#ffb28b,#ef455e);border-color:#a62049;color:#401c36;box-shadow:0 4px 0 #9e204b44}
.is-mythic .rarity-badge{background:#9c173f;color:#fff0b4}
.character-card.is-ultra{position:relative;overflow:hidden;background:linear-gradient(135deg,#191d28,#535c6b 40%,#f1f5fa 51%,#505969 62%,#171b26);border-color:#e2e8f2;color:#fff}
.character-card.is-ultra .rarity-badge{background:#fafbff;color:#232733;border:1px solid #818b9b}
.character-card.is-ultra .character-state{background:#151a2be8;color:#fff}
.character-card.is-ultra strong,.character-card.is-ultra small{text-shadow:0 1px 3px #000,0 0 5px #000}
.character-card.is-ultra::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 35%,#ffffff35 49%,transparent 63%);transform:translateX(-130%);animation:ultra-shimmer 4s ease-in-out infinite}
.character-card.is-ultra[aria-pressed=true],.character-card.is-mythic[aria-pressed=true]{border-color:#5532a2;box-shadow:0 0 0 2px #ffe37e}
.splash-status[data-kind=mega]{background:#8feaff;color:#174d82;box-shadow:0 3px 0 #4f96dc}
.splash-status[data-kind=bite]{background:#e2e8f0;color:#242836;box-shadow:0 3px 0 #7e8d9d}
@keyframes ultra-shimmer{0%,25%{transform:translateX(-130%)}75%,100%{transform:translateX(130%)}}
@media(prefers-reduced-motion:reduce){.character-card.is-ultra::after{animation:none;transform:none}}

/* The match takes place in a dark candy castle. */
body.playing,.playing .game-screen{background:#090910;color:#e5dcf4}
.playing .header{background:#10101d;border-color:#3c2b50}.playing .brand,.playing .header button{color:#e8ddfc}
.playing .canvas-wrap{background:#05050c;border-color:#4e356d;box-shadow:0 0 24px #8d49db20}
.playing .game-label,.playing .score-display,.playing #pause{background:#242033;color:#eee4ff;border:1px solid #715588}
.playing .score-display strong{color:#ff9abd}.playing .game-bottom{background:#161321;color:#d5c1ed}
.playing .leaderboard{background:#191525ed;color:#eee2ff;border:1px solid #684b84;box-shadow:0 5px 20px #0008}
.playing .leaderboard-title{color:#bfa8df;border-color:#72558a66}.playing .leader-row.is-player{color:#ff9bb9}
.playing .arena-label{color:#b19acb;opacity:.7}.playing .countdown{background:#09061388;color:#b398ff}.playing .countdown small{color:#efdcff}
.playing .toast{background:#20182eee;color:#f9eaff;border:1px solid #9270b3}
.playing .game-label,.playing .score-display{border-radius:12px;padding:8px 12px}
.playing .game-label>span,.playing .score-display>span{color:#cbb9e0}

/* A black Halloween welcome, with warm pumpkin lanterns. */
:root{--paper:#050507}
body{background:#050507}
body:not(.playing) .header,footer{background:#050507;color:#e9dfef;box-shadow:none}
body:not(.playing) .header{border-bottom:1px solid #302332}
body:not(.playing) .beta{color:#c0a6cb;border-color:#5e435f}
.home{background:#050507;color:#f5edf9;border-color:#302332}
.hero h1{color:#f5edf9;text-shadow:none}.hero h1>span{color:#ffab55}
.eyebrow,.intro,.hello-note,.play-caption,.wallet-note,.steps p>span,.little-note{color:#beabc9}
.hello-note svg{stroke:#b697c8}.little-note b{color:#f4ae62}.little-note svg{stroke:#ac79cf}
.character-stage:before{background:#351a35;box-shadow:0 7px 0 #1c1127,0 0 55px #a653ee24}
.cube-shadow{background:#0008}.steps{border-color:#39273f}
.mode-picker{background:#251c32;border:1px solid #493355}.mode-picker button{color:#c8b8d5}
.mode-picker button[aria-pressed=true]{background:#e9c2ff;color:#342144}
.record-note{background:#251b2e;border-color:#604249;box-shadow:4px 7px 0 #130e1a;color:#ffd791}
.record-note:before{background:#804427}.record-description{color:#c8acc7}.note-doodle{color:#bd83db}
.wallet-note button{color:#f3dbff;background:#412657}.wallet-note button:hover{background:#573570}
.home .status-text{color:#ffb7a7}
.pumpkin-garden{position:absolute;inset:0;pointer-events:none}
.pumpkin{position:absolute;object-fit:contain;filter:drop-shadow(0 0 25px #ff661b25)}
.pumpkin-left{width:clamp(150px,22vw,280px);left:-35px;top:45px;transform:rotate(-13deg)}
.pumpkin-right{width:clamp(160px,24vw,310px);right:-32px;bottom:112px;transform:rotate(12deg)}
.pumpkin-small{width:130px;left:12%;bottom:125px;transform:rotate(8deg)}
.night-star{position:absolute;color:#a57bcd}.star-one{left:27%;top:82px;font-size:22px}.star-two{right:25%;top:64px;font-size:31px}.star-three{left:31%;bottom:170px;font-size:14px}
.character-card.is-mystery img{opacity:1;filter:drop-shadow(0 4px 8px #21132a44)}
@media(max-width:780px){
  .pumpkin-left{width:106px;left:-28px;top:179px;transform:rotate(-16deg)}
  .pumpkin-right{width:107px;right:-32px;top:254px;bottom:auto;transform:rotate(15deg)}
  .pumpkin-small{width:75px;left:-20px;bottom:113px}
  .star-one{left:8%;top:95px;font-size:15px}.star-two{right:9%;top:79px;font-size:22px}.star-three{left:10%;bottom:211px}
}

.reset-link{display:block;margin:20px auto 0;padding:10px 12px;background:transparent;color:#bfa8ce;font-size:11px;text-decoration:underline;text-underline-offset:4px}.reset-link:hover{color:#fff}.reset-confirm{background:#a83160;box-shadow:0 5px 0 #762042}.reset-confirm:hover{background:#942554}#reset-status{min-height:20px}
