/* A playful, shared finish for the library and every adventure. */
:root{--paper:#faf8ff;--ink:#302747;--muted:#706780;--green:#7050cf;--line:#e5dff0;--accent:#7050cf;--accent-soft:#eee7ff;--lift:0 12px 32px #38215a10;color-scheme:light}
body{background:radial-gradient(ellipse at 5% 0%,#eee5ff 0,transparent 38%),radial-gradient(ellipse at 100% 15%,#ffecd9 0,transparent 33%),var(--paper)}
body[data-shelf="Explore"]{--accent:#267d78;--accent-soft:#dff4ee}
body[data-shelf="Create"]{--accent:#b04b73;--accent-soft:#ffe5ef}
body[data-shelf="Puzzle"]{--accent:#7050cf;--accent-soft:#eee7ff}
body[data-shelf="Learn"]{--accent:#93601c;--accent-soft:#fff0cb}
.console-header{border-bottom:1px solid #e5dff0;gap:24px;background:#ffffff70}
.brand{color:#463064}.brand>img{padding:5px;background:#fff;border-radius:15px;box-shadow:0 4px 12px #7050cf14}
.brand-small{color:#867199}.home-nav{font-weight:800}.home-nav:hover{color:#7050cf}
.eyebrow{color:var(--accent);font-weight:800}.welcome-line h1{font-weight:800;max-width:760px;font-size:clamp(32px,4vw,52px);letter-spacing:-2px}.welcome-stamp{background:#fff5dc;border-color:#f1dfb1;color:#80551b;border-radius:99px}
.primary-button{background:var(--accent);border-color:var(--accent);box-shadow:0 4px 0 color-mix(in srgb,var(--accent),#161023 30%),0 8px 20px #7050cf20;font-weight:800}
.primary-button:hover{background:var(--accent);filter:brightness(1.1);transform:translateY(-2px)}
.quiet-button{background:#ffffffb0;border-color:var(--line);font-weight:750}.quiet-button:hover{background:var(--accent-soft);border-color:var(--accent)}
.village-feature,.kido-feature{border:1px solid #fff;border-radius:30px;box-shadow:var(--lift);transition:transform .2s,box-shadow .2s}.village-feature:hover,.kido-feature:hover{transform:translateY(-4px);box-shadow:0 18px 40px #38215a20}
.village-feature:before{background:linear-gradient(90deg,#162f43ed,#183444b0 42%,transparent 80%)}
.village-feature .feature-copy h2{color:#fff9e9}.village-feature .feature-copy p{color:#f0f0e4}.village-feature .primary-button{background:#ffe09a;color:#4c351c;border-color:#ffe09a;box-shadow:0 4px 0 #b78840}
.kido-feature{background:radial-gradient(circle at 80% 20%,#fff8dd,transparent 50%),#eee4ff}.kido-feature p{color:#706080}.tiny-star{color:#9770db}.mini-card{box-shadow:0 12px 24px #5f3c7620}.text-link{border-color:#d7c5ee}
.new-adventures{background:linear-gradient(115deg,#f0e8ff,#fff2df);border-color:#e5d6f4;box-shadow:0 5px 18px #7050cf06}.new-game-links a{color:var(--ink);border:1px solid #ffffff;border-radius:18px;transition:transform .2s,box-shadow .2s}.new-game-links a:hover{transform:translateY(-3px);box-shadow:var(--lift)}
.recent-game{background:white;box-shadow:0 5px 18px #7050cf08}.recent-icon{color:#7050cf}
.shelf-tabs{background:#eee8f7;border:1px solid #e7dff2;padding:5px;border-radius:18px;gap:3px}.shelf-tab{border-radius:13px;color:#695d7e;font-weight:800;padding:9px 17px}.shelf-tab.active{background:#7050cf;color:white;box-shadow:0 4px 10px #7050cf25}.shelf-tab:hover:not(.active){background:#ffffffa0}
.search-box{background:#fff;border-color:#e2d9ed;border-radius:16px}.game-grid{gap:24px}.game-tile{background:white;border:1px solid #e8e0f0;border-radius:25px;box-shadow:0 5px 0 #e9e2f280;transition:transform .22s,box-shadow .22s,border-color .22s;overflow:hidden}.game-tile:hover{transform:translateY(-6px);border-color:#bda3eb;box-shadow:0 8px 0 #e9e2f2,0 18px 30px #54357514}
.game-tile[data-shelf="Explore"]{--tile-bg:#dff2eb!important}.game-tile[data-shelf="Create"]{--tile-bg:#ffe5ec!important}.game-tile[data-shelf="Puzzle"]{--tile-bg:#ece2ff!important}.game-tile[data-shelf="Learn"]{--tile-bg:#fff0cc!important}
.tile-art{background:radial-gradient(ellipse at 50% 30%,#ffffffb0,transparent 65%),var(--tile-bg);position:relative}.tile-art img{filter:drop-shadow(0 10px 7px #4b345719);transition:transform .25s}.game-tile:hover .tile-art img{transform:rotate(-4deg) scale(1.06)}.tile-category{background:#ffffffd9;color:#564266;border:1px solid #ffffff;border-radius:99px;font-weight:850}.tile-play{background:#fff;color:#7050cf;box-shadow:0 4px 12px #7050cf15}.tile-copy{padding:21px 23px 24px}.tile-copy h3{color:#392b52;font-weight:800}.tile-copy p{color:#746b80}.play-note{background:#eee7fa;border-color:#e2d5f2;border-radius:25px}.console-footer{color:#867890;border-color:#e5dff0}
.game-heading,.world-heading{padding:18px 22px;background:#ffffffc9;border:1px solid var(--line);border-radius:22px;box-shadow:0 5px 20px #38215a05}.game-heading h1,.world-heading h1{font-weight:850}.game-heading .eyebrow,.world-heading .eyebrow{color:var(--accent)}
.game-cabinet{border:1px solid #ddd1ef;border-radius:28px;box-shadow:0 8px 0 #e5dcf1,0 20px 45px #4c326215;background:#fff}.game-hud{background:linear-gradient(100deg,#fff,var(--accent-soft));border-bottom:1px solid var(--line)}.hud-scores>span{font-size:10px;letter-spacing:1px;font-weight:800}.hud-scores strong{color:var(--accent);font-size:24px;letter-spacing:0}
.game-overlay{background:radial-gradient(circle at 15% 20%,var(--accent-soft),transparent 45%),radial-gradient(circle at 90% 90%,#ffedd2,transparent 45%),#faf8fff2;backdrop-filter:blur(10px)}
.game-overlay .start-panel{width:min(100%,520px);padding:28px 32px;border:1px solid #ffffff;border-radius:30px;background:#ffffffeb;box-shadow:0 18px 60px #49316718}.start-panel>img{filter:drop-shadow(0 12px 12px #7050cf18)}.start-panel h2{font-weight:850;color:#392b52}.start-panel .control-tip{background:var(--accent-soft);border-color:transparent;color:#554762}.result-score{color:var(--accent)}.touch-bar{background:#f7f2ff}.touch-btn{background:white;border-color:#dfd3ee;color:#60488a;border-radius:14px;box-shadow:0 3px 0 #ded4ed}.game-caption{color:#85778f}
.world-stage{border:5px solid #fff;border-radius:28px;box-shadow:0 8px 0 #e3dbea,0 22px 48px #30274720}.world-tool{border-color:#e2d8ed;color:#54436e;background:#fff;font-weight:800}.world-tool:hover{background:var(--accent-soft)}.world-kicker{font-size:10px;letter-spacing:2px}.world-lobby{background-image:linear-gradient(90deg,#17182cf2,#191c32b8 45%,#18203340),var(--scene-image)}.chapter-selection{background:#242339c9;border-color:#ffffff40;border-radius:24px;box-shadow:0 20px 45px #080b2833}.chapter-choice{border-radius:16px;background:#ffffff0c;transition:background .2s,transform .2s}.chapter-choice:hover:not(:disabled){background:#ffffff20;transform:translateX(3px)}.chapter-choice[aria-pressed=true]{background:#ffda8b24;border-color:#ffe0a0}.world-primary{border-radius:16px;background:linear-gradient(#ffe6ad,#f2c571);font-weight:850}.world-control-deck{padding:14px 18px;border:1px solid var(--line);border-radius:20px;background:#ffffffb8}.world-control-deck>p{color:#706780}.world-control{border-color:#dfd3ed;border-bottom-color:#cabbdf;color:#584171;background:#fff}.world-control.is-primary{background:var(--accent);border-color:var(--accent);color:#fff}.world-modal-card{background:linear-gradient(140deg,#393152,#1d233b);border-color:#e0caff70}.mission-card,.world-counter{background:#20243de8}
.kido-book,.cream-shop{box-shadow:0 8px 0 #ebe2f2,0 18px 40px #4c326210;border-color:#e4d9ee;border-radius:28px}.kido-heading{background:linear-gradient(110deg,#eee6ff,#fff4de);border-color:#e1d4ef}.kido-heading::after{border-color:#d6c4eb}.cream-journey{background:linear-gradient(115deg,#ffe7ef,#fff2d6);border-color:#efd8e5}.cream-destination[aria-pressed=true]{border-color:#bf6b92}.recipe-shelf{padding:22px;background:#fff8fc;border:1px solid #efdeea;border-radius:24px}.studio-heading h2{color:#513980}.studio-footer{border-color:#e3d8f0}
.player-dialog,.parent-dialog{border:1px solid #e3d5f0;border-radius:28px;box-shadow:0 30px 100px #30274735}dialog::backdrop{background:#30274766;backdrop-filter:blur(5px)}
@media(max-width:850px){.console-header{gap:14px}.shelf-controls{align-items:stretch;flex-direction:column}.search-box{max-width:none}.shelf-tabs{width:fit-content}.game-grid{gap:18px}}
@media(max-width:650px){.welcome-line h1{font-size:32px;letter-spacing:-1px}.console-header{background:#ffffffa0}.game-heading,.world-heading{padding:14px}.game-grid{gap:14px}.tile-copy{padding:16px}.shelf-tab{padding:9px 12px}.shelf-tabs{width:100%}.game-overlay .start-panel{padding:20px;border-radius:22px}.start-panel h2{font-size:28px}.start-panel>img{width:100px;height:95px}.world-stage{border-radius:20px}.world-control-deck{padding:12px}.world-lobby{background-image:linear-gradient(#1e2035b8,#1b1d32ed),var(--scene-image)}.game-cabinet{border-radius:20px}.game-heading .game-actions{margin-top:8px}.village-feature,.kido-feature{border-radius:24px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}.game-tile,.tile-art img,.village-feature,.kido-feature,.new-game-links a,.chapter-choice{transition:none}.game-tile:hover,.game-tile:hover .tile-art img,.village-feature:hover,.kido-feature:hover,.new-game-links a:hover,.chapter-choice:hover:not(:disabled){transform:none}}
.reduce-motion .game-tile,.reduce-motion .tile-art img,.reduce-motion .chapter-choice{transition:none}.reduce-motion .game-tile:hover,.reduce-motion .game-tile:hover .tile-art img,.reduce-motion .chapter-choice:hover:not(:disabled){transform:none}
.welcome-stamp{padding:9px 15px}.welcome-line h1{max-width:820px}
@media(max-width:650px){.world-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 38px;gap:4px}.world-tools .world-tool{min-width:0;padding:8px 3px;font-size:10px}.world-tools .arcade-favorite{font-size:9px}}
.reduce-motion .village-feature,.reduce-motion .kido-feature,.reduce-motion .new-game-links a{transition:none}.reduce-motion .village-feature:hover,.reduce-motion .kido-feature:hover,.reduce-motion .new-game-links a:hover{transform:none}
