@font-face {
  font-family: Yauza;
  src: url('./assets/fonts/yauzatygra.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Podkova;
  src: url('./assets/fonts/Podkova.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --font-body: Podkova, Georgia, serif;
  --font-display: Yauza, var(--font-body);
  --dock-height: 88px;
}
:root{--gold:#ffe08b;--gold2:#e5a52e;--ink:#132e2c;--cream:#fff1d3;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{margin:0;width:100%;min-height:100%;background:#081d24;color:var(--cream);font-family:var(--font-body)}html{overflow-x:hidden}body{overflow-x:clip}button{font:inherit;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible,summary:focus-visible{outline:3px solid #fff3a0;outline-offset:3px}button:disabled{cursor:not-allowed;filter:saturate(.4);opacity:.64}button:not(:disabled):active{translate:0 2px}::selection{color:#163c34;background:#ffe1a1}svg{display:block;width:100%;height:100%}.display{font-family:var(--font-display)}.num{font-variant-numeric:tabular-nums;font-weight:800}.desktop-backdrop{position:fixed;inset:0;background:linear-gradient(#071c24a8,#071c24cc),url('./assets/forest.webp') center/cover;filter:blur(12px);transform:scale(1.05)}
.game-shell{position:relative;isolation:isolate;width:min(100%,480px);height:max(100dvh,780px);margin:auto;display:grid;grid-template-rows:84px 78px 86px minmax(140px,1fr) 82px 220px 70px;padding-top:var(--safe-top);padding-bottom:var(--safe-bottom);border-inline:1px solid #99805a;box-shadow:0 15px 80px #0009;overflow:hidden}.forest{position:absolute;inset:0;z-index:-5;background:url('./assets/forest.webp') center/cover}.env-2 .forest{background-image:url('./assets/forest-2.webp')}.env-3 .forest{background-image:url('./assets/forest-3.webp')}.shading{position:absolute;inset:0;z-index:-4;background:linear-gradient(#08293485,#092c3215 50%,#071c2cd9 90%)}.floaters{position:absolute;inset:0;pointer-events:none;z-index:-1}.floater{position:absolute;width:3px;height:3px;border-radius:50%;background:#b4ffee;box-shadow:0 0 8px #8ff1df;animation:firefly 5s ease-in-out infinite alternate}.floater:nth-child(2n){background:#ffe498}
.hud{position:relative;z-index:10;display:flex;align-items:center;gap:7px;padding:5px 11px}.tier-button{position:relative;flex:0 0 68px;height:74px;padding:0;background:none;color:#ffedbe}.tier-art{display:block;width:68px;height:68px;filter:drop-shadow(0 3px 3px #041a22);--badge:#765034;--badge-inner:#b17a43}.tier-art-2{--badge:#285d54;--badge-inner:#378b7a}.tier-art-3{--badge:#5c335e;--badge-inner:#a35c9b}.tier-art-4{--badge:#243f71;--badge-inner:#3d74a1}.tier-art-5{--badge:#976320;--badge-inner:#dcac45}.badge-leaf{fill:none;stroke:#dcad59;stroke-width:4;stroke-linecap:round}.badge-shield{fill:var(--badge);stroke:#e0b86c;stroke-width:3}.badge-detail{fill:var(--badge-inner);stroke:#6f452c;stroke-width:1.5}.tier-art text{fill:#fff0ba;font:bold 28px var(--font-body);paint-order:stroke;stroke:#593b22;stroke-width:1}.tier-count{position:absolute;bottom:0;left:17px;min-width:36px;border-radius:9px;background:#f2d69c;color:#573a27;font-size:11px;font-weight:800;padding:2px 5px;box-shadow:0 2px 4px #16291f}.hud-main{flex:1;min-width:0;border:3px solid #d5a24f;border-radius:17px;background:linear-gradient(#7b2944,#421c34);box-shadow:inset 0 2px #ffc785,0 4px 6px #071a25;padding:5px 10px 7px;height:72px}.coin-display{display:flex;gap:7px;align-items:center;font-size:28px;font-weight:900;line-height:1.1;color:#fff0b6;text-shadow:0 2px 2px #41222a}.coin{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;font-size:17px;color:#a45c17;background:radial-gradient(circle at 30% 20%,#fffbc3,#f0b82f 65%,#a46716);border:2px solid #ffe6a0;box-shadow:0 2px 3px #321c24}.xp-line{display:flex;justify-content:space-between;align-items:center;gap:5px;margin:3px 0;font-size:10px;color:#f9dfc5;font-variant-numeric:tabular-nums}.xp-line b{font-size:15px;white-space:nowrap}.xp-track{height:7px;border:1px solid #e5b067;border-radius:8px;background:#27162c;overflow:hidden}.xp-track i{display:block;height:100%;background:linear-gradient(#ffef9b,#ee9c28);box-shadow:0 0 6px #ffcc5b;transform-origin:left;transition:transform .2s}.gear{flex:0 0 42px;width:42px;height:46px;padding:7px;color:#643740;border:3px solid #f1cf80;border-radius:14px;background:linear-gradient(#ffe49b,#bc772b);box-shadow:inset 0 2px #fff4bf,0 4px 7px #041e28}
.order-board{position:relative;z-index:5;margin:3px 12px 4px;padding:9px;border:3px solid #d6a157;border-radius:17px;background:linear-gradient(160deg,#68404f,#302d42);box-shadow:inset 0 1px #ffdf9e,0 4px 7px #031a25}.order-detail{display:flex;align-items:center;gap:9px;height:100%}.order-emblem{flex:0 0 44px;height:44px;border:2px solid #f3ce84;border-radius:12px;padding:8px;background:radial-gradient(circle at 30% 20%,#4aa49b,#124c56);color:#fff0bd;box-shadow:0 3px 5px #12282f}.order-copy{flex:1;min-width:0}.order-name{font-size:14px;font-weight:800;line-height:1.15;color:#fff1d0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-progress-label{display:flex;justify-content:space-between;margin:4px 0;font-size:10px;color:#d6e6d4;gap:4px}.order-reward{color:#ffdc8b;font-weight:700;display:flex;gap:7px}.order-reward span{color:#d9c0f7}.meter{height:12px;overflow:hidden;background:#1c2530;border:1px solid #c39352;border-radius:9px;box-shadow:inset 0 2px 3px #0c1b25}.meter-fill{height:100%;background:linear-gradient(#c8fa94,#51cb74 40%,#137b57);box-shadow:inset 0 1px #efffc4;transform-origin:left;transition:transform .12s}.carousel-wrap{position:relative;min-width:0;z-index:4}.task-carousel{display:flex;align-items:center;gap:9px;height:86px;overflow-x:auto;overflow-y:hidden;padding-inline:calc(50% - 36px);scroll-snap-type:x mandatory;scrollbar-width:none;touch-action:pan-x;overscroll-behavior-x:contain}.task-carousel::-webkit-scrollbar{display:none}.task-option{position:relative;flex:0 0 72px;height:82px;background:none;color:#f2e3c4;scroll-snap-align:center;padding:4px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.task-orb{position:relative;width:48px;height:48px;padding:11px;border:3px solid #b3975e;border-radius:50%;background:radial-gradient(circle at 30% 15%,#4f7f6b,#163f42 65%,#112c36);box-shadow:inset 0 1px #f8dda2,0 3px 5px #05262e;color:#efdeb2;transition:transform .32s cubic-bezier(.16,1,.3,1),border-color .32s,box-shadow .32s}.task-option.selected .task-orb{transform:scale(1.23);border-color:#ffe5a4;background:radial-gradient(circle at 35% 15%,#b9a256,#4f795a 40%,#205653);box-shadow:inset 0 1px #fff6c7,0 4px 7px #062936,0 0 13px #e0bf5b66}.task-label{font-size:10px;font-weight:700;margin-top:4px;transition:color .3s}.task-option.selected .task-label{color:#ffe7a2}.task-option.locked .task-orb{filter:saturate(.25);color:#adbbb0}.task-lock{position:absolute;bottom:-4px;left:50%;translate:-50% 0;background:#4c3b3e;color:#f3d49d;font-size:8px;padding:1px 4px;border:1px solid #a28b61;border-radius:6px;white-space:nowrap}.carousel-fade{position:absolute;top:0;bottom:0;width:22px;pointer-events:none}.carousel-fade.left{left:0;background:linear-gradient(90deg,#102f38aa,transparent)}.carousel-fade.right{right:0;background:linear-gradient(-90deg,#102f38aa,transparent)}
.hero-zone{position:relative;display:flex;align-items:flex-end;justify-content:center;min-height:0;pointer-events:none;padding:0 8px}.hero-art{position:relative;height:100%;max-width:85%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 9px 6px #051a2788);animation:hero-hover 3.8s ease-in-out infinite;z-index:2;transform-origin:50% 95%}.hero-art.impact{animation:hero-impact .3s cubic-bezier(.16,1,.3,1)}.ritual-aura{position:absolute;bottom:0;left:15%;width:70%;height:35px;border:2px solid #c3b36f99;border-radius:50%;background:radial-gradient(ellipse,#c5e3aa4d,#38b69b33,transparent 70%);box-shadow:0 0 15px #6ce6bd66}.hero-sparks{position:absolute;inset:0}.rune{position:absolute;color:#f0dd9d;text-shadow:0 0 9px #74f0c8;animation:firefly 4s ease-in-out infinite alternate;font-size:20px}

.skills-grid{position:relative;z-index:7;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:8px 12px 11px}.skill-card{height:96px;min-width:0;perspective:850px}.skill-turn{height:100%;position:relative;transform-style:preserve-3d;transition:transform .5s cubic-bezier(.16,1,.3,1)}.skill-card.flipped .skill-turn{transform:rotateY(180deg)}.skill-front,.skill-back{position:absolute;inset:0;backface-visibility:hidden;border-radius:17px;background:linear-gradient(130deg,#fff2da,#e7d4af);border:2px solid #fff1cf;box-shadow:inset 0 1px #fffdf3,0 4px 7px #0a282e99;color:#16372f;padding:6px 7px}.skill-front{display:grid;grid-template-columns:45px minmax(0,1fr);grid-template-rows:44px 32px;gap:4px 7px}.skill-art{width:45px;height:44px;object-fit:cover;border-radius:11px;box-shadow:0 2px 3px #54716466}.skill-summary{min-width:0;padding-top:2px}.skill-summary h3{margin:0 0 1px;font-size:12px;line-height:1.2;font-weight:800;padding-right:11px}.skill-summary>span{font-size:11px;line-height:1.3}.skill-info{position:absolute;z-index:2;right:1px;top:0;width:29px;height:29px;border-radius:50%;background:none;color:#41604c;font-family:var(--font-body);font-size:14px;font-weight:bold;display:grid;place-items:center}.skill-info::before{content:'';position:absolute;border:1px solid currentColor;border-radius:50%;width:15px;height:15px}.skill-price{grid-column:1/-1;height:32px;width:100%;padding:2px 10px;display:flex;justify-content:space-between;align-items:center;border:1px solid #5b8670;border-radius:10px;background:linear-gradient(145deg,#47735c,#163e36);color:#ffcf77;font-size:17px;line-height:1;font-weight:800;text-shadow:0 1px 2px #172e20;box-shadow:inset 0 1px #b1b995,0 2px 3px #877c5855}.skill-price:disabled{opacity:1;filter:saturate(.55);color:#e3d2a7;background:linear-gradient(#557563,#365748)}.skill-back{transform:rotateY(180deg);padding:10px 12px;display:flex;flex-direction:column;justify-content:center}.skill-back h3{font-size:12px;margin:0 20px 5px 0}.skill-back p{font-size:10px;line-height:1.45;margin:0}.skills-grid .shop-pips{gap:2px;margin-top:3px}.skills-grid .shop-pips i{border:1px solid #b0a287;background:#c8bca2;width:7px;height:7px;flex:1;max-width:8px;border-radius:50%;box-shadow:inset 0 1px #a79a80}.skills-grid .shop-pips i.on{background:linear-gradient(#ffe397,#f29424);border-color:#db972e}

.veil{position:absolute;z-index:50;inset:0;background:#071b27c9;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:calc(22px + var(--safe-top)) 14px calc(22px + var(--safe-bottom));animation:veil-in .22s ease-out}.modal{position:relative;width:100%;max-height:100%;display:flex;flex-direction:column;border-radius:25px 25px 20px 20px;border:4px solid #f4c770;background:linear-gradient(155deg,#7c4751 0%,#432a42 25%,#2b303e 69%,#242536 100%);box-shadow:0 9px 0 #713e31,0 18px 50px #000a,inset 0 3px #ffe7a1,inset 0 0 0 3px #9d6e5a;overflow:hidden}.modal::before{content:'❧ ✦ ❧';position:absolute;top:-6px;left:50%;transform:translateX(-50%);z-index:2;color:#fff4b1;text-shadow:0 2px #783c2f;background:linear-gradient(#bd7a43,#713740);border:2px solid #eec078;border-radius:0 0 13px 13px;padding:4px 21px;font-size:16px}.modal-head{position:relative;padding:27px 40px 10px;text-align:center;background:radial-gradient(ellipse at top,#b87555b0,transparent 70%);flex-shrink:0}.modal-title{font:28px var(--font-display);color:#ffe59e;text-shadow:0 3px #6b3137,0 4px 6px #211625;margin:0}.modal-caption{font-size:11px;color:#d8d7c5;margin-top:4px;line-height:1.4}.close-modal{position:absolute;z-index:3;right:8px;top:9px;width:35px;height:35px;border-radius:50%;color:#5c2434;background:linear-gradient(#fff2af,#dc942e 67%,#a75a20);border:3px solid #fbd187;box-shadow:0 3px #753822;font-size:21px;font-weight:900}.modal-body{overflow-y:auto;overscroll-behavior:contain;padding:8px 13px 17px;scrollbar-width:thin;scrollbar-color:#c28e57 #332b3b}.modal-footer{flex-shrink:0;padding:8px 15px 16px;text-align:center;background:#2b2434b5;color:#e4d5be;font-size:11px}.section-eyebrow{margin:8px 2px 11px;color:#f8d89a;font-size:10px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.shop-row{position:relative;display:flex;align-items:center;gap:10px;min-height:90px;padding:9px 10px;margin-bottom:9px;border-radius:15px;border:2px solid #ac8358;background:linear-gradient(110deg,#674e5e 0%,#37364d 66%,#2a3348);box-shadow:0 4px 0 #202338,inset 0 1px #d9b68b}.shop-row.bought{border-color:#81cba0;background:linear-gradient(110deg,#41665c,#2f3b4c)}.shop-icon{width:64px;height:64px;object-fit:contain;flex:0 0 64px;filter:drop-shadow(0 3px 2px #17212b)}.shop-text{flex:1;min-width:0}.shop-name{font-size:13px;color:#fff2cc;font-weight:900;line-height:1.15}.shop-desc{font-size:10px;color:#c7d8dc;line-height:1.3;margin-top:4px}.shop-pips{display:flex;gap:3px;margin-top:7px}.shop-pips i{height:6px;flex:1;max-width:12px;border-radius:3px;background:#293141;border:1px solid #8e7a69}.shop-pips i.on{background:linear-gradient(#ffe7a0,#edac39);border-color:#ffc55e}.shop-action{min-width:77px;max-width:84px;flex:0 0 79px;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center}.price-button{width:100%;min-height:39px;display:flex;align-items:center;justify-content:center;gap:3px;padding:3px 4px;border-radius:12px;border:3px solid #ffe194;background:linear-gradient(#b8f56e,#57c355 46%,#248d56 47%,#146944);color:#fff9de;font-size:12px;font-weight:900;text-shadow:0 2px #236d3c;box-shadow:0 4px 0 #195b48,inset 0 2px #eeffb3}.price-button:active{transform:translateY(3px);box-shadow:0 1px #195b48}.price-button:disabled{background:linear-gradient(#867c79,#5c6565);border-color:#948e85;box-shadow:0 3px #4b4449}.price-button .mini-coin{font-size:14px;color:#ffe271}.purchased{color:#9ee3bb;font-size:10px;font-weight:900;text-align:center}.item-art{width:87px;min-height:77px;flex:0 0 87px;display:grid;place-items:center;font-size:44px;background:radial-gradient(circle,#ffffff18,transparent 68%);text-shadow:0 4px #172231}.item-art img{max-width:105px;height:104px;object-fit:contain}.shop-row.cosmetic{min-height:119px}.shop-row.cosmetic .shop-action{align-self:center}.tab-switch{display:flex;gap:6px;padding:5px;margin:3px 0 11px;border-radius:15px;background:#1a2639;border:2px solid #9f7754}.tab-switch button{flex:1;padding:8px 6px;border-radius:11px;background:linear-gradient(#564459,#3c3b4d);border:1px solid #aa8065;color:#ead6ba;font-size:12px;font-weight:900}.tab-switch button.active{color:#573344;text-shadow:0 1px #fff0b1;background:linear-gradient(#ffe6a4,#dfaa49);border-color:#ffe9b9;box-shadow:inset 0 1px #fffcdb}.story-note{border-radius:12px;background:#172d3caf;border:1px solid #668a80;padding:10px 11px;font-size:11px;line-height:1.5;color:#d9e5d7;margin:7px 0 12px}.story-note strong{color:#ffdf97}
.hero-preview{display:flex;justify-content:center;align-items:center;height:205px;position:relative;background:radial-gradient(ellipse at bottom,#67e4b355,transparent 64%);border-radius:15px;overflow:hidden}.hero-preview img{height:100%;max-width:100%;object-fit:contain}.title-list{display:flex;flex-direction:column;gap:9px}.title-step{display:flex;align-items:center;gap:10px;padding:10px;border:2px solid #9e795a;border-radius:14px;background:linear-gradient(90deg,#62414e,#303444)}.title-step.achieved{border-color:#e8cb7b;background:linear-gradient(90deg,#70513e,#3a4550)}.title-step.current{box-shadow:0 0 15px #edc77a77,inset 0 1px #fff7a4}.title-medal{font-size:30px;filter:drop-shadow(0 2px 2px #181d29)}.title-step strong{font-size:13px;color:#fff0bf}.title-step small{display:block;margin-top:3px;color:#c6dbdd;font-size:10px}.title-check{margin-left:auto;font-size:20px;color:#c3f7a3}.intro-art{height:245px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:radial-gradient(ellipse,#6bdac43b,transparent 70%);border-radius:15px}.intro-art img{height:100%;object-fit:contain}.intro-text{text-align:center;line-height:1.55;color:#fff0d7;font-size:12px;margin:12px 10px}.primary-cta{display:block;width:100%;min-height:54px;padding:8px 12px;font:23px var(--font-display);color:#fffadd;text-shadow:0 3px #9b5629;background:linear-gradient(#ffeb9f,#f7b646 33%,#ca762e 56%,#aa3938);border:4px solid #ffe7a2;border-radius:17px;box-shadow:0 5px #69304b,inset 0 2px #fff7ba}.primary-cta:active{transform:translateY(4px);box-shadow:0 1px #69304b}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #b6a27c44;padding:14px 3px;color:#f5e9cd;font-size:13px}.toggle-pill{background:#35545b;color:#e9f1da;padding:8px 13px;border:2px solid #aa9874;border-radius:19px;font-weight:900}.toggle-pill.active{background:#388c67;border-color:#b5e9a9}.setting-row .small-note{font-size:10px;color:#bfd4ce}.speed-choices{display:flex;gap:5px}.speed-choices button{background:#39435c;border:2px solid #a88d6b;color:#f1dfb4;padding:6px 9px;border-radius:9px;font-size:11px;font-weight:900}.speed-choices button.active{background:#ddad4e;color:#3f2c3b;border-color:#ffe7aa}.danger{color:#fbbab1;background:#542b3c;border:2px solid #ca786d;padding:9px 14px;border-radius:10px;font-weight:800;font-size:12px}

.veil{z-index:90!important;position:fixed!important;width:min(100%,480px);left:50%!important;right:auto!important;transform:translateX(-50%);height:100dvh}.close-modal{min-width:38px;min-height:38px}.modal-body{scrollbar-color:#bba379 #303744}.title-medal .tier-art{width:50px;height:55px}.title-medal{flex:0 0 50px}.shop-row.cosmetic .shop-name{font-size:13px}.shop-row.cosmetic .shop-desc{font-size:10px}.shop-row.cosmetic{gap:7px}.item-art{width:65px;flex-basis:65px}.item-art img{max-width:72px}.shop-action{min-width:69px;flex-basis:69px}.env-thumb{width:64px;height:83px;border:2px solid #d5b477;border-radius:10px;background:url('./assets/forest.webp') center/cover}.env-thumb-2{background-image:url('./assets/forest-2.webp')}.env-thumb-3{background-image:url('./assets/forest-3.webp')}.item-art-button{padding:0;border:none;background:none}.inspect-preview{height:270px}.relic-list{display:flex;flex-direction:column;gap:8px;margin:12px 0}.relic-row{display:flex;gap:8px;border-radius:10px;padding:10px;background:#213d42;color:#f0dfba}.relic-number{font-weight:bold;color:#e8c176}.relic-row small{display:block;font-size:12px;line-height:1.45;margin-top:4px}.section-eyebrow{letter-spacing:0;text-transform:none;font-size:13px}.primary-cta{font-size:21px}.final-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:15px}.final-stat{padding:10px;text-align:center;background:#193c43;border-radius:10px}.final-stat small{display:block;margin-top:4px}
.spirit-veil{position:absolute;z-index:85;inset:0;background:#04191cb5}.spirit-modal{position:absolute;z-index:95;top:12px;left:13px;right:13px;min-height:300px;height:min(43vh,360px);max-height:370px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px 24px;border:3px solid #ead59b;border-radius:22px;background:linear-gradient(145deg,#fff3d8,#dfcca3);color:#23423b;box-shadow:inset 0 2px #fffdf2,0 14px 40px #031923a6;animation:spirit-enter .4s cubic-bezier(.16,1,.3,1)}.spirit-modal h2{font:24px var(--font-display);margin:9px 0 5px;text-align:center}.spirit-modal p{font-size:13px;line-height:1.5;text-align:center;margin:0 0 12px;max-width:32ch}.spirit-modal small{font-size:10px;margin-top:10px}.spirit-modal .primary-cta{min-height:43px;font-size:19px;width:auto;min-width:210px;border-width:2px;border-radius:12px}.spirit-illustration{height:70px;width:80px;display:grid;place-items:center}.spirit-body{position:relative;display:block;width:56px;height:65px;border-radius:50% 50% 45% 40%;background:radial-gradient(circle at 30% 20%,#efffe1,#78c8a0 50%,#327e79);box-shadow:inset 0 0 8px #f9ffda,0 3px 18px #53947866;rotate:-8deg;animation:hero-hover 3s ease-in-out infinite}.spirit-body i{position:absolute;top:22px;left:14px;width:6px;height:10px;background:#214d48;border-radius:50%}.spirit-body i:nth-child(2){left:33px}.spirit-body b{position:absolute;left:21px;top:39px;color:#fff2b1}.guiding.guide-0 .tap-zone,.guiding.guide-2 .tap-zone{z-index:88}.guiding.guide-1 .skills-grid{z-index:88}.guiding .tap-button,.guiding.guide-1 #skill-accuracy{outline:3px solid #ffe49c;outline-offset:4px;filter:drop-shadow(0 0 13px #ffd66a)}
.toast{position:fixed;z-index:110;top:95px;left:50%;width:max-content;max-width:min(90%,410px);transform:translateX(-50%);background:linear-gradient(#fff6d7,#e7c47d);border:2px solid #d69b40;border-radius:14px;padding:11px 18px;color:#5b3740;font-weight:700;font-size:12px;box-shadow:0 5px 15px #07191caa;text-align:center}.celebration{position:absolute;z-index:40;top:42%;left:50%;width:90%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;animation:celebrate 1.9s ease both}.big-phrase{font:31px var(--font-display);color:#ffec9e;text-shadow:0 3px 3px #562636}.bonus-line{font-size:14px;font-weight:800;color:#edffcf;text-shadow:0 2px 3px #1d433b}.floating-number{position:absolute;z-index:43;color:#fff5c5;font-size:25px;font-weight:800;pointer-events:none;text-shadow:0 2px 3px #25473e;animation:float-number .9s ease-out forwards}.floating-number.crit{font-size:31px;color:#ffdb75}.particle{position:absolute;z-index:42;width:5px;height:5px;border-radius:50%;background:#ffe9a3;pointer-events:none;animation:particle-burst .7s ease-out forwards}
@keyframes hero-hover{50%{transform:translateY(-6px) rotate(.6deg)}}@keyframes hero-impact{0%{transform:translateY(0) scale(1)}30%{transform:translateY(-14px) rotate(-2deg) scale(1.025)}75%{transform:translateY(2px) scale(.99)}100%{transform:none}}@keyframes firefly{to{transform:translate(12px,-26px);opacity:.25}}@keyframes float-number{0%{transform:translate(-50%,0) scale(.8);opacity:0}20%{opacity:1}100%{transform:translate(-50%,-100px);opacity:0}}@keyframes particle-burst{to{transform:translate(var(--dx),var(--dy)) scale(0);opacity:0}}@keyframes celebrate{0%{opacity:0;transform:translate(-50%,-20%) scale(.8)}20%,75%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-80%) scale(1.05)}}@keyframes reel-shake{50%{transform:translateY(20px);filter:blur(3px)}}@keyframes spirit-enter{from{opacity:0;transform:translateY(-25px) scale(.97)}to{opacity:1;transform:none}}@keyframes veil-in{from{opacity:0}to{opacity:1}}
@media(min-width:430px){.skill-front{grid-template-columns:51px minmax(0,1fr)}.skill-art{width:51px}.skill-summary h3{font-size:14px}.skill-price{font-size:19px}.xp-line{font-size:11px}.coin-display{font-size:30px}}
@media(max-width:359px){.hud{padding-inline:7px;gap:5px}.tier-button{flex-basis:61px}.tier-art{width:61px}.hud-main{padding-inline:7px}.coin-display{font-size:24px}.xp-line{font-size:9px}.xp-line b{font-size:13px}.skills-grid{padding-inline:7px;gap:7px}.skill-front{grid-template-columns:37px minmax(0,1fr);gap:4px}.skill-art{width:37px;height:40px}.skill-summary h3{font-size:10px}.skill-summary>span{font-size:10px}.skill-price{font-size:16px}.skill-info{right:-3px;top:-2px}.order-name{font-size:12px}.item-art{width:48px;flex-basis:48px}.item-art img{max-width:54px}.shop-action{min-width:61px;flex-basis:61px}.shop-row.cosmetic .shop-name{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* The border on touch-vine draws a plant stem; the dock trim belongs to the retained game frame. */
.xp-line{font-size:11px}.xp-line b{font-size:17px}.skill-summary h3{padding-right:13px}.skill-info{width:32px;height:36px}.skill-info::after{content:"";position:absolute;inset:-4px 0}.guide-1 .spirit-modal{max-height:345px}.guiding.guide-1 #skill-accuracy{filter:none;box-shadow:0 0 20px #ffdb67}
/* v0.4 — requested spacing, clearer collections, and the interactive root machine. */
.game-shell{height:max(100dvh,880px);grid-template-rows:90px 90px 106px minmax(180px,1fr) 96px 230px 70px}
.hud{padding-top:7px;padding-bottom:7px;gap:10px}.xp-line{margin:5px 0 4px}.order-board{margin-top:10px;margin-bottom:6px}.carousel-wrap{padding-top:10px}.task-carousel{height:96px;padding-inline:calc(50% - 39.5px);gap:10px}.task-option{flex-basis:79px;height:92px}.task-orb{width:53px;height:53px;padding:12px}.task-label{font-size:11px;margin-top:6px}
.task-option.mentor-task .task-orb{border-color:#b58cdb;background:radial-gradient(circle at 30% 15%,#9271c0,#59366e 48%,#2f234b);color:#f0d9ff}.task-option.mentor-task.selected .task-orb{border-color:#e8c5ff;background:radial-gradient(circle at 35% 15%,#d0a1ff,#8554b7 45%,#482966);box-shadow:inset 0 1px #fce7ff,0 4px 7px #182234,0 0 14px #b17fe390}.task-option.mentor-task.selected .task-label{color:#ebc9ff}.task-option.mentor-task.locked .task-orb{filter:saturate(.55)}.mentor-order .order-emblem{background:radial-gradient(circle at 30% 20%,#ac77cf,#4e286a);border-color:#dfb8f8}.mentor-order .meter-fill{background:linear-gradient(#e2c6ff,#aa7bdc 40%,#6a3a9c)}
.skills-grid{gap:10px;padding-top:8px;padding-bottom:10px}.skill-card{height:101px}.skill-front{grid-template-rows:44px 32px;row-gap:10px}.skill-summary{display:flex;flex-direction:column;justify-content:space-between;padding-block:2px 3px}.skill-summary h3{margin-bottom:7px}.skills-grid .shop-pips{margin-top:0}.skill-level-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skill-art{border-radius:23%;clip-path:inset(0 round 23%);corner-shape:squircle;object-fit:cover}.skill-front .skill-price{margin-top:0}
.tab-switch{background:none;border:0;box-shadow:none;padding:0;gap:12px;margin:6px 0 18px}.tab-switch button{min-height:50px;padding:10px 12px;font-size:16px;border-radius:13px;border-width:2px}.shop-row.cosmetic{display:grid;grid-template-columns:78px minmax(0,1fr);gap:10px 15px;min-height:176px;padding:13px 12px;margin-bottom:14px;align-items:center}.shop-row.cosmetic .item-art{grid-column:1;grid-row:1/3;position:relative;width:78px;min-height:132px;align-self:stretch;display:flex;align-items:center;justify-content:center}.shop-row.cosmetic .item-art img{width:100%;height:145px;max-width:78px;object-fit:contain}.shop-row.cosmetic .shop-text{grid-column:2;min-width:0}.shop-row.cosmetic .shop-name{font-size:16px;line-height:1.25}.shop-row.cosmetic .shop-desc{font-size:13px;line-height:1.5;margin-top:7px}.shop-row.cosmetic .shop-action{grid-column:2;justify-self:start;min-width:105px;max-width:none;width:auto;gap:0}.shop-row.cosmetic .price-button{min-height:42px;font-size:15px;padding:7px 13px}.shop-row.cosmetic .purchased{font-size:12px;line-height:1.4;padding:8px 0}.shop-row.cosmetic .env-thumb{width:76px;height:128px;border-radius:13px}
.current-title{text-align:center;padding:10px 5px 22px}.current-title>.tier-art{width:120px;height:120px;margin:0 auto 10px}.current-title h3{font:26px/1.15 var(--font-display);margin:5px 0 8px;color:#ffe6a8}.current-title p{font-size:13px;color:#d0dcd0;margin:0}.title-goal{margin:0 0 12px;font-size:16px;color:#fff1d1}.title-requirements{display:flex;flex-direction:column;gap:11px}.title-requirement{display:flex;align-items:center;gap:11px;padding:14px 12px;background:#253b43;border:1px solid #a58b69;border-radius:13px}.title-requirement.done{background:#28483e;border-color:#719f7b}.requirement-check{width:24px;flex:0 0 24px;color:#e6bf73;font-size:24px}.done .requirement-check{color:#b4e7ab}.title-requirement strong{font-size:14px;line-height:1.4;color:#ffebbb}.title-requirement p{font-size:12px;line-height:1.5;margin:5px 0 0;color:#d6e0d1}.requirement-shop{flex:0 0 34px;height:40px;background:#a97e3c;color:#fff2c9;border-radius:9px;font-size:23px}.next-title{display:flex;align-items:center;gap:13px;margin-top:22px;padding:18px 0 3px;border-top:1px solid #a58b6980}.next-title .tier-art{flex:0 0 76px;width:76px;height:80px}.next-title h3{font:21px/1.2 var(--font-display);color:#ffe0a2;margin:6px 0}.next-title small,.next-title p{font-size:12px;color:#d5ddca;margin:0}.title-complete{font-size:15px;line-height:1.6;text-align:center;color:#f7e7b7}
.casino-balance{display:flex;justify-content:center;align-items:center;gap:8px;margin:0 0 10px;font-size:13px;color:#d7dec8}.casino-balance b{font-size:22px;color:#ffe2a1;font-variant-numeric:tabular-nums}.casino-balance .coin{width:23px;height:23px;font-size:15px}.modal-casino .modal-body{padding-top:2px}.modal-casino .modal-head{padding-bottom:14px}.slot-stage{position:relative;container-type:inline-size;width:min(100%,350px,calc((100dvh - 360px)*.75));height:auto;aspect-ratio:auto;max-height:none;margin-inline:auto;background:none;border:0;overflow:hidden;border-radius:15px;box-shadow:0 6px 16px #07171ecc}.slot-frame{display:block;width:100%;height:auto;user-select:none;pointer-events:none}.slot-reels{position:absolute;left:14%;right:16%;top:24%;height:44%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3%;margin:0;padding:0;background:none;border:0;border-radius:0;overflow:hidden}.slot-reel{position:relative;display:block;border:0;border-radius:3px;background:linear-gradient(#b8a477,#f9ebc4 24%,#f9ebc4 75%,#9b875f);padding:0;overflow:hidden;box-shadow:inset 0 7px 10px #4c362c66,inset 0 -7px 10px #4c362c66;isolation:isolate}.slot-reel::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(#5f46264a,transparent 25%,transparent 75%,#60482955);box-shadow:inset 0 1px 4px #55381f55}.reel-track{width:100%;transform:translateY(0)}.is-spinning .reel-track{will-change:transform}.reel-symbol{display:grid;place-items:center;width:100%;height:var(--cell,60px);padding:2px 1px}.reel-symbol img{display:block;width:94%;height:94%;object-fit:contain;filter:drop-shadow(0 2px 1px #94733d55);pointer-events:none;user-select:none}.slot-reel.landed{animation:reel-land .25s ease-out}.slot-payline{position:absolute;z-index:3;left:12%;right:15%;top:45.5%;height:2px;background:#ffe495;opacity:0;box-shadow:0 0 12px 3px #f1b53b;pointer-events:none}.has-win .slot-payline{animation:payline-glow .7s ease-out 2}.machine-glow{position:absolute;inset:0;border-radius:15px;box-shadow:inset 0 0 24px #ffd472;opacity:0;pointer-events:none}.has-win .machine-glow{animation:machine-win .7s ease-out 2}.jackpot .machine-glow{box-shadow:inset 0 0 35px #d5a2ff}.slot-lever{position:absolute;z-index:4;right:1%;top:24%;width:13%;height:40%;border:0;background:none;transform-origin:50% 88%;transform-style:preserve-3d;touch-action:none;transition:transform .13s;perspective:250px}.slot-lever span{top:17px;left:calc(50% - 3px);width:6px;height:86%;background:linear-gradient(90deg,#6a4e27,#e8d49f 40%,#ad8348 65%,#544024);box-shadow:2px 1px 4px #0008}.slot-lever i{width:30px;height:30px;left:calc(50% - 15px);top:0;border:2px solid #f1d08a;background:radial-gradient(circle at 30% 22%,#fff3b6,#e1a542 38%,#8d4325 77%);box-shadow:0 4px 7px #061b23,inset 0 1px 3px #fff7bd}.is-spinning .slot-lever{transform:none}.slot-name{bottom:12%;left:9%;right:9%;font-size:21px;line-height:1.1;text-shadow:0 2px 3px #081a21}.slot-result{min-height:44px;padding:13px 0 2px;line-height:1.4;font-size:14px;color:#e8e2cc}.slot-stakes{margin:7px 0 14px}.slot-stakes button{min-height:44px;font-size:14px}.modal-casino .primary-cta{font-size:20px;min-height:54px}.reward-coins{position:absolute;z-index:6;inset:0;pointer-events:none;overflow:hidden}.reward-coins img{position:absolute;left:var(--x);top:37%;width:30px;height:30px;object-fit:contain;opacity:0;animation:coin-shower 1.25s cubic-bezier(.15,.45,.6,1) var(--delay) both;--rise:-85px}.jackpot .reward-coins img{width:36px;height:36px;--rise:-130px}
@keyframes reel-land{0%{filter:brightness(1.32)}100%{filter:brightness(1)}}@keyframes payline-glow{0%,100%{opacity:0}35%{opacity:1}}@keyframes machine-win{0%,100%{opacity:0}35%{opacity:1}}@keyframes coin-shower{0%{opacity:0;transform:translate(0,0) rotate(0) scale(.65)}15%{opacity:1}45%{transform:translate(calc(var(--drift)*.45),var(--rise)) rotate(calc(var(--rotate)*.45)) scale(1)}100%{opacity:0;transform:translate(var(--drift),250px) rotate(var(--rotate)) scale(.8)}}
@media(max-width:359px){.hud{gap:5px}.shop-row.cosmetic{grid-template-columns:64px minmax(0,1fr);column-gap:12px;padding-inline:10px}.shop-row.cosmetic .item-art{width:64px}.shop-row.cosmetic .item-art img{max-width:64px}.shop-row.cosmetic .shop-name{font-size:14px}.shop-row.cosmetic .shop-desc{font-size:12px}.shop-row.cosmetic .env-thumb{width:62px}.tab-switch{gap:9px}.tab-switch button{font-size:15px;padding-inline:8px}.task-label{font-size:10px}.skill-summary h3{margin-bottom:6px}.slot-name{font-size:18px}.current-title h3{font-size:24px}}
@media(prefers-reduced-motion:reduce){.reward-coins{display:none}.slot-payline,.machine-glow{animation:none!important}.has-win .machine-glow{opacity:.5}.has-win .slot-payline{opacity:.7}.slot-lever{transition:none}}
/* Align the interactive layers to the final generated frame without stretching the art. */
.slot-reels{left:18.7%;right:18.8%;top:22%;height:46.4%;gap:7.3%}.slot-reel{background:none;box-shadow:none;border-radius:14% / 5%}.slot-name{bottom:21%;font-size:20px}.slot-lever{top:23%;height:32%;right:0;width:12%}.slot-payline{left:17%;right:17%;top:45.2%}
.veil.persistent{animation:none}.skill-info{width:24px;height:26px;right:2px;top:1px}.skill-info::after{inset:-8px}.slot-result.positive{animation:result-reveal .28s cubic-bezier(.16,1,.3,1)}
@keyframes result-reveal{from{opacity:.4;transform:scale(.95)}to{opacity:1;transform:scale(1)}}
@media(max-width:420px){.skill-summary h3{font-size:11px;padding-right:12px}}
.slot-lever span,.slot-lever i{position:absolute;display:block}.slot-lever span{border-radius:5px}.slot-lever i{border-radius:50%}.slot-result.positive{color:#c4eebd}.slot-result.negative{color:#ffc8ba}.slot-stakes{display:flex;gap:7px}.slot-stakes button{flex:1;padding:6px;border:2px solid #a28c69;border-radius:11px;background:#2f4a49;color:#ead5b1;font-weight:800}.slot-stakes button.active{background:linear-gradient(#ffe1a0,#bd8942);color:#48352d;border-color:#ffebb1;box-shadow:0 3px 5px #0c202b}

/* Reserve the reel geometry before the artwork arrives over the network. */
.slot-stage{aspect-ratio:3/4}.slot-name{position:absolute;text-align:center;color:#ead5a2;pointer-events:none}

/* v0.5 local review — proportions, illustrated work badges and bookmark navigation. */
.game-shell{height:max(100dvh,1000px);grid-template-rows:90px 116px 114px minmax(180px,1fr) 96px 318px 86px;padding-bottom:calc(var(--dock-height) + 8px + var(--safe-bottom))}
.hud{gap:6px;padding:7px 8px}.tier-button{flex-basis:60px;height:70px}.hud .tier-art{width:60px;height:64px}.tier-count{left:13px}.gear{flex-basis:32px;width:32px;height:40px;padding:5px;border-width:2px;border-radius:11px}.hud-main{display:grid;grid-template-columns:1.12fr 1fr;gap:6px;height:64px;padding:0;border:0;background:none;box-shadow:none;border-radius:0;overflow:visible}.resource-bar{position:relative;min-width:0;display:flex;align-items:center;gap:3px;padding:6px 5px 8px;border:2px solid #d9a95d;border-radius:13px;background:linear-gradient(#fff0d0,#dfc495);color:#572b41;box-shadow:inset 0 1px #fff9de,0 3px 6px #091d29aa}.resource-bar .currency-art{width:24px;height:30px;flex:0 0 24px;filter:drop-shadow(0 2px 1px #89613877)}.resource-copy{min-width:0;display:flex;flex-direction:column;gap:5px}.resource-copy b{font-size:16px;line-height:1;white-space:nowrap}.resource-copy span{font-size:9px;font-weight:700;white-space:nowrap}.gold-resource .resource-copy b{font-size:clamp(17px,5vw,24px)}.gold-resource .resource-copy span{font-size:11px;color:#735139}.xp-resource{padding-bottom:12px}.xp-resource .xp-track{position:absolute;left:8px;right:8px;bottom:5px;height:5px;border-color:#af775d;background:#51304e}.xp-resource .xp-track i{background:linear-gradient(#ddc9ff,#9c57ce)}.currency-art{display:block;width:20px;height:20px;object-fit:contain;flex-shrink:0}
.order-board{margin:7px 12px 5px;padding:10px 10px 8px}.order-detail{display:block;height:auto}.order-name{font-size:16px;line-height:1.2;margin:0 0 9px 48px;white-space:normal;overflow:visible}.order-workline{position:relative;height:29px;display:flex;align-items:center;padding-left:24px}.order-emblem{position:absolute;z-index:3;left:-3px;top:50%;transform:translateY(-50%);width:47px;height:47px;padding:0;border-radius:50%;overflow:visible}.order-emblem .work-art{position:absolute;inset:-8px;width:59px;height:59px;object-fit:contain;filter:drop-shadow(0 3px 2px #152b32aa)}.meter{position:relative;flex:1;height:27px;border:2px solid #f4ce82;border-radius:11px;background:#1b2b38;box-shadow:inset 0 2px 4px #091923}.meter .num{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding-left:18px;font-size:14px;color:#fff5d4;text-shadow:0 1px 3px #14292a}.order-reward{display:flex;justify-content:flex-start;gap:16px;margin:8px 0 0 49px;font-size:13px;line-height:1.1}.order-reward>span{display:flex;align-items:center;gap:4px;color:#ffe09a}.order-reward>span:first-child{color:#e1c6ff}.order-reward .currency-art{width:19px;height:19px}
.carousel-wrap{padding-top:9px}.task-carousel{height:103px;gap:12px;padding-inline:calc(50% - 43px);align-items:center}.task-option{flex-basis:86px;height:98px;padding:12px 8px 5px;display:grid;place-items:center;overflow:visible}.task-orb{display:block;width:64px;height:64px;padding:0;border-width:3px;overflow:visible}.task-orb>.work-art{position:absolute;left:-8px;top:-17px;width:74px;height:74px;object-fit:contain;filter:drop-shadow(0 4px 2px #142a2aa0);pointer-events:none}.task-label{position:absolute;z-index:2;left:50%;bottom:-9px;transform:translateX(-50%);min-width:74px;max-width:82px;margin:0;padding:4px 6px 5px;border:2px solid #e2b661;border-radius:8px;background:linear-gradient(#4e7662,#193e3d);font-size:11px;line-height:1;font-weight:800;color:#fff1bf;text-shadow:0 1px 2px #122d2b;white-space:nowrap;box-shadow:0 3px 4px #0b242b88}.task-option.selected .task-orb{transform:scale(1.14)}.task-option.mentor-task .task-label{background:linear-gradient(#8b57b4,#462661);border-color:#d7b2ec;color:#f4dcff}.task-option.locked .work-art{filter:saturate(.3) brightness(.72)}.task-lock{bottom:auto;top:-10px;left:auto;right:-13px;translate:none;z-index:3;font-size:9px;padding:2px 4px}.task-option.locked .task-label{color:#dacdb7}
.skills-grid{gap:10px;padding:8px 10px 12px;align-content:start}.skill-card{height:144px}.skill-front{grid-template-columns:minmax(0,.48fr) minmax(0,.52fr);grid-template-rows:minmax(0,1fr) 38px;gap:12px 8px;padding:8px}.skill-front .skill-art{display:block;width:100%;height:auto;aspect-ratio:1/1;align-self:center;object-fit:contain;border-radius:23%;clip-path:inset(0 round 23%);corner-shape:squircle;box-shadow:0 2px 4px #54716366}.skill-summary{display:flex;justify-content:center;gap:10px;padding:0;align-self:stretch;min-width:0}.skill-summary h3{font-size:12px;line-height:1.12;margin:0;padding:0;overflow-wrap:anywhere;hyphens:auto}.skills-grid .shop-pips{display:grid;grid-template-columns:repeat(5,8px);gap:4px;margin:0}.skills-grid .shop-pips i{display:block;flex:none;width:8px;height:8px;min-width:8px;max-width:8px;aspect-ratio:1;border-radius:50%;padding:0}.skill-front .skill-price{height:38px;padding:3px 9px;font-size:19px;line-height:1;grid-column:1/-1}.upgrade-icon{display:block;width:22px;height:24px;flex:0 0 22px;align-self:center}.skill-price>span{white-space:nowrap}.skill-info{top:1px;right:1px;width:22px;height:23px;font-size:13px}.skill-info::before{width:14px;height:14px}.skill-back h3{font-size:14px}.skill-back p{font-size:12px;line-height:1.5}
.veil{padding-top:calc(16px + var(--safe-top))}.modal-mentors .modal-head{padding-top:44px;padding-bottom:18px}.mentor-intro{font-size:15px;line-height:1.55;margin:6px 0 20px;color:#ecebd6;padding:0;border:0;background:none}.modal-mentors .shop-row{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px 12px;padding:14px 12px;margin-bottom:15px}.modal-mentors .item-art{grid-column:1;grid-row:1/3;width:48px;min-height:64px;align-self:start}.modal-mentors .item-art img{width:62px;height:72px;object-fit:contain}.modal-mentors .shop-text{grid-column:2}.modal-mentors .shop-name{font-size:16px;line-height:1.25}.modal-mentors .shop-desc{font-size:13px;line-height:1.5;margin-top:7px}.mentor-reward{display:inline-block;color:#ffe292;margin-top:7px}.modal-mentors .shop-action{grid-column:2;min-width:132px;max-width:none;width:fit-content;justify-self:start}.modal-mentors .price-button{min-height:48px;padding:9px 16px;gap:6px;font-size:17px;white-space:nowrap}.modal-mentors .price-button .currency-art{width:25px;height:25px}.modal-mentors .purchased{font-size:12px;padding:6px 0}
.modal-casino{border:0;border-radius:19px;background:#1d2d31;box-shadow:0 12px 34px #000a}.modal-casino::before{display:none}.modal-casino .modal-head{position:absolute;z-index:9;left:0;right:0;top:0;padding:0;background:none;height:0}.modal-casino .modal-title,.modal-casino .modal-caption{display:none}.modal-casino .close-modal{top:9px;right:9px;box-shadow:0 3px 5px #071c2c}.modal-casino .modal-body{padding:0;overflow-x:hidden}.modal-casino .slot-stage{width:100%;max-width:none;margin:0;border-radius:0;box-shadow:none;aspect-ratio:3/4}.casino-controls{padding:12px 14px 15px;background:linear-gradient(#293f3e,#1b3032)}.casino-balance{margin:0;font-size:13px;gap:6px}.casino-balance b{font-size:22px}.slot-result{padding-top:7px;min-height:36px;font-size:13px;text-align:center}.slot-stakes{margin:6px 0 0}.slot-stakes button{font-size:14px;min-height:46px;padding:8px 4px}.slot-lever i{width:34px;height:34px;left:calc(50% - 17px)}.slot-lever span{top:22px}.slot-name{font-size:clamp(19px,5vw,25px)}
@media(min-width:430px){.skill-front{column-gap:10px}.skill-summary h3{font-size:14px}.skills-grid .shop-pips{grid-template-columns:repeat(5,9px);gap:5px}.skills-grid .shop-pips i{width:9px;height:9px;min-width:9px;max-width:9px}.resource-copy span{font-size:11px}.resource-copy b{font-size:18px}.gold-resource .resource-copy b{font-size:26px}.resource-bar .currency-art{width:28px;flex-basis:28px}.hud-main{grid-template-columns:1.1fr 1fr}.order-name{font-size:18px}}
@media(max-width:359px){.hud{gap:4px;padding-inline:6px}.tier-button{flex-basis:50px}.hud .tier-art{width:50px}.tier-count{left:9px;font-size:10px}.gear{flex-basis:28px;width:28px;padding:4px}.hud-main{gap:4px;grid-template-columns:1.2fr 1fr}.resource-bar{padding-inline:3px;gap:1px}.resource-bar .currency-art{width:19px;flex-basis:19px;height:25px}.resource-copy b{font-size:14px}.gold-resource .resource-copy b{font-size:17px}.resource-copy span{font-size:8px}.resource-copy{gap:6px}.order-board{margin-inline:8px;padding-inline:8px}.order-name{font-size:15px;margin-left:44px}.order-reward{margin-left:44px;gap:12px;font-size:12px}.skills-grid{gap:7px;padding-inline:7px}.skill-front{padding:7px 6px;column-gap:6px;grid-template-columns:minmax(0,.48fr) minmax(0,.52fr)}.skill-summary h3{font-size:11px;line-height:1.15}.skill-front .skill-price{font-size:16px;padding-inline:7px}.skills-grid .shop-pips{grid-template-columns:repeat(5,7px);gap:3px}.skills-grid .shop-pips i{width:7px;height:7px;min-width:7px;max-width:7px}.skill-back p{font-size:11px}.modal-mentors .modal-head{padding-inline:29px}.modal-mentors .modal-title{font-size:24px}.modal-mentors .shop-row{grid-template-columns:40px minmax(0,1fr);column-gap:10px;padding-inline:10px}.modal-mentors .item-art{width:40px}.modal-mentors .item-art img{width:50px}.slot-stakes button{font-size:12px}.casino-controls{padding-inline:11px}}
/* Fixed navigation is outside the grid; its safe space belongs to the shell padding. */
.game-shell{grid-template-rows:90px 116px 114px minmax(180px,1fr) 96px 318px}
.modal-mentors .item-art img{max-width:56px}

/* v0.5.4 — ten gemstone sockets, one per skill level. */
.game-shell{--skill-row:204px;grid-template-rows:90px 116px 114px minmax(180px,1fr) 96px var(--skill-row)}
.skills-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px 8px 16px;align-content:start}
.skill-card{height:180px;min-width:0}
.skill-front{display:flex;flex-direction:column;align-items:center;gap:0;padding:0;border:0;background:none;box-shadow:none;color:#fff0c8}
.skill-visual{position:relative;width:100%;aspect-ratio:1;flex:none}
.skill-gem{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 4px 3px #061e25aa)}
.gem-socket{transition:filter .3s}
.skill-visual .skill-info{right:17%;top:22%;width:28px;height:28px;font-size:13px;color:#fff2c5;text-shadow:0 1px 2px #062d28}
.skill-visual .skill-info::before{width:17px;height:17px;border:1px solid #e2c57f;background:#17483c;box-shadow:0 2px 3px #071f25aa;z-index:-1}
.skill-summary{position:relative;z-index:1;display:grid;place-items:center;flex:none;width:100%;height:30px;min-width:0;margin:0;padding:2px 4px;background:linear-gradient(#ecce8f,#d7af68);color:#253f32;clip-path:polygon(5% 0,95% 0,100% 50%,95% 100%,5% 100%,0 50%)}
.skill-summary h3{font-size:12px;line-height:1.08;text-align:center;padding:0;margin:0;overflow-wrap:anywhere;hyphens:auto;text-shadow:0 1px #fff2c37a}
.skill-front .skill-price{position:relative;z-index:2;grid-column:auto;flex:0 0 36px;width:92%;height:36px;min-width:0;margin:0;padding:3px 7px;gap:3px;border:2px solid #c8a360;border-radius:0 0 12px 12px;background:linear-gradient(#356d51,#153f34);box-shadow:inset 0 1px #a6c183,0 3px 5px #07212799;font-size:14px}
.skill-front .skill-price:disabled{color:#c6c8ae;border-color:#8b9066;background:linear-gradient(#36564a,#223e36);filter:none}
.skill-front .skill-price:enabled:hover{background:linear-gradient(#4b825f,#20543f)}
.skill-front .skill-price:enabled:active{transform:translateY(1px)}
.skill-cost{display:flex;align-items:center;gap:2px;min-width:0}
.skill-cost>.currency-art{display:block;width:13px;height:17px;flex:0 0 13px;object-fit:contain}
.skill-cost>span{white-space:nowrap;font-variant-numeric:tabular-nums}
.skill-price>.upgrade-icon{width:14px;height:20px;flex:0 0 14px}
.skill-price.long-price .skill-cost>span{font-size:.8em}
.skill-price.skill-max{justify-content:center}.skill-max .currency-art,.skill-max .upgrade-icon{display:none}
.skill-back{padding:30px 8px 12px;border-radius:14px;justify-content:flex-start;overflow-y:auto;scrollbar-width:thin;border:2px solid #d5b374;background:linear-gradient(#315849,#173e36);color:#fff0c8}
.skill-back h3{font-size:13px;line-height:1.2;margin:0 0 9px;overflow-wrap:anywhere}
.skill-back p{font-size:12px;line-height:1.4;margin:0}
.skill-back .skill-info{top:3px;right:3px;width:26px;height:26px;color:#f7d994}
@media(max-width:420px){.game-shell{--skill-row:184px}.skills-grid{gap:4px;padding-inline:6px}.skill-card{height:160px}.skill-summary{height:31px;padding-inline:3px}.skill-summary h3{font-size:11px}.skill-front .skill-price{font-size:11px;padding-inline:6px;width:96%}.skill-cost>.currency-art{width:11px;flex-basis:11px}.skill-price>.upgrade-icon{width:12px;flex-basis:12px}.skill-visual .skill-info{width:25px;height:25px;right:14%;top:21%;font-size:12px}.skill-visual .skill-info::before{width:16px;height:16px}.skill-back h3{font-size:12px}.skill-back p{font-size:11px}}
@media(max-width:359px){.game-shell{--skill-row:172px}.skills-grid{gap:3px;padding-inline:4px}.skill-card{height:148px}.skill-summary h3{font-size:10px}.skill-front .skill-price{font-size:9.5px;padding-inline:5px;gap:1px;width:100%;flex-basis:34px;height:34px}.skill-cost{gap:1px}.skill-cost>.currency-art{width:10px;flex-basis:10px}.skill-price>.upgrade-icon{width:11px;flex-basis:11px}.skill-visual .skill-info{right:11%;top:18%;font-size:11px}.skill-visual .skill-info::before{width:14px;height:14px}.skill-back{padding-inline:5px}.skill-back h3{font-size:11px}.skill-back p{font-size:10px}}
@media(prefers-reduced-motion:reduce){.gem-socket{transition:none}}
