/* Mimikama palette; crisp geometric collectible art, no soft modelling. */
html,body{background:#e8f2ee;color:#184742}.app-shell,.home-screen{background:radial-gradient(ellipse at 50% 35%,#ffffff 0,#f4f8f6 45%,#e4efeb 100%);box-shadow:0 0 70px #1b4d480c}body[data-skin="sage"] .app-shell{background:linear-gradient(#f8fbfa,#e4f0eb)}body[data-skin="mist"] .app-shell{background:linear-gradient(#fafcfb,#ebf4f0)}.home-heading h1{color:#184742;letter-spacing:-.65px}.home-heading .eyebrow,.home-heading p{color:#6d978f}.home-rank{background:#ffffffdc;border:1px solid #e9f2ee;box-shadow:0 4px 0 #d2e5dd,0 10px 22px #1b4d4808}.home-rank small,.rank-copy small{color:#80a496}.home-rank #homeRankNext{color:#6c9990}.home-rank-meter{background:#e7f1ed}.home-rank-meter i{background:linear-gradient(90deg,#489686,#95b3a8)}.home-rank>span:last-child{color:#81a698}.home-emblem,.rank-emblem,.rank-medal,.road-award>span{filter:drop-shadow(0 4px 4px #28756d12)}
.shell-icon,.energy-chip{background:#ffffffd9;border-color:#e4f0eb;box-shadow:0 3px 0 #d4e7df;color:#236760}.energy-chip small{color:#72a198}.energy-chip[data-empty="true"]{background:#fff0f3;border-color:#f8cbd7}.home-header img{opacity:.85}.selected-case>span,.selected-case small{color:#6c988f}.selected-case strong{color:#184843}.home-nav>button,.home-nav>a{color:#508a7e}.home-nav>button>span,.home-nav>a>span{color:#458f80}.home-nav small{color:#89ac9e}.home-nav>*:hover{background:#ffffffa0}.road-chapter{background:#f8fbfa;border-color:#e6f0ec;box-shadow:0 3px 0 #e0ede8;color:#578f84}.road-chapter small,.road-start small{color:#91b1a5}.road-start{background:linear-gradient(#f1f7f500,#f1f7f5 25%,#f1f7f5 75%,#f1f7f500)}.road-start span{color:#89ac9e}.road-start b{color:#28736c}.case-road::before{background:repeating-linear-gradient(#9bb8ad 0 12px,#9bb8ad20 12px 22px)}.road-stop::before{background:#a0bcb1}.road-tag{color:#69a69a}.road-node.selected .node-art{filter:drop-shadow(0 0 4px #57ae9d88) drop-shadow(0 6px 5px #39776a22)}.road-node[data-grade="Schwer"].upcoming .node-art,.road-node[data-grade="Sehr schwer"].upcoming .node-art{filter:none}.road-stop:has(.road-node[data-grade="Schwer"]) .road-tag{color:#d06565}.road-stop:has(.road-node[data-grade="Sehr schwer"]) .road-tag{color:#90b1a4}.road-node .road-number{color:#4d9183;text-shadow:0 1px 0 #ffffffb0}.road-node.current .road-number,.road-node.done .road-number{color:#fff;text-shadow:0 2px 0 #23665f3d}.road-award{background:#f7fbf9;border-color:#e7f1ed;box-shadow:0 4px 0 #d7e8e1}.road-award.earned{background:linear-gradient(130deg,#ffffff,#edf5f2);border-color:#d4e6df;color:#387468}.road-award.unearned{color:#8bada0}.road-award.unearned>span{opacity:.28;filter:grayscale(.8)}
.primary,.play-case{background:linear-gradient(180deg,#3a786c 0,#22645d 32%,#1e5751 100%);border:1px solid #29776f;box-shadow:inset 0 2px 0 #ffffff33,0 4px 0 #194844,0 9px 18px #29776f1c;color:#fff}.primary:active,.play-case:active{box-shadow:0 2px 0 #194844}.hud,body[data-screen="play"] .hud{background:linear-gradient(135deg,#ffffff,#fafcfb);border-color:#e8f2ee;box-shadow:0 3px 0 #d6e8e1,0 9px 18px #1b4d4808}body[data-screen="play"] .life-label{color:#609086}body[data-screen="play"] .life-label b{color:#1f5a54}body[data-screen="play"] .progress-capsule #count{color:#548e82}.progress{background:#e3efea}.progress #bar{background:linear-gradient(90deg,#4a9a8a,#95b4a8)}.hud #difficulty{background:#e4f0eb!important;color:#3c7e71!important}.hud #difficulty[data-grade="Schwer"]{background:#ffe6e4!important;color:#c86564!important}.hud #difficulty[data-grade="Sehr schwer"]{background:#eef5f2!important;color:#87aa9d!important}.stage{background:radial-gradient(ellipse at 50% 50%,#fff8,transparent 70%)}.drag-note{color:#7da294}.case-brief strong{color:#297971}.case-brief span{color:#87aa9d}body[data-screen="play"] .case-brief{background:linear-gradient(90deg,transparent,#f7faf9ea,transparent)}.controls button{color:#427d71}.controls .tool-next{color:#8daea1}.stock{background:#23655f;border-color:#f3f8f6}.controls .tool-icon{filter:drop-shadow(0 4px 3px #29766f16)}
dialog{background:linear-gradient(140deg,#fff,#f5f9f7);border:1px solid #fff;box-shadow:0 7px 0 #c8dfd6,0 24px 80px #1b4d482b}dialog::backdrop{background:#22645d5c;backdrop-filter:blur(8px)}dialog h2{color:#1d5650}.eyebrow{color:#86a99c}.badge-card.earned{background:linear-gradient(145deg,#ffffff,#eef6f3);box-shadow:inset 0 0 0 1px #e5f0ec,0 4px 0 #d6e8e1}.badge-card.locked{background:#f0f6f4;box-shadow:inset 0 0 0 1px #fff}.badge-card.locked b{color:#82a598}.badge-card.locked small{color:#93b2a6}.badge-card b{color:#256e66}.badge-card small{color:#7ca293}.rank-celebration{background:linear-gradient(140deg,#ecf4f1,#f4f8f6);border-color:#dbeae4;box-shadow:0 4px 0 #cfe3db}.rank-celebration h3{color:#28746d}.rank-celebration p{color:#70a49a}.next-rank-text,.win-adventure{background:#f2f7f5;color:#5e988c}.tip,.daily-goal{background:#f5faf8;border-color:#e3efea;color:#6aa69a}.tip summary,.daily-goal span{color:#7ca293}.goal-meter{background:#e4f0eb}.goal-meter i{background:#b4c9c1}.chapter-card{background:#fafcfb;border-color:#e6f1ed}.chapter-card h3{color:#408477}.chapter-card small,.chapter-card p{color:#8daea1}.chapter-seal{clip-path:none;border-radius:14px;background:#e0ede8;color:#469182}.chapter-done{background:linear-gradient(135deg,#f6faf8,#eff6f3);border-color:#cae1d8}.chapter-done .chapter-seal{background:#4c9e8e;color:white}.chapter-current{border-color:#bfd1ca;box-shadow:0 3px 0 #d8e9e2}.chapter-dots i{background:#e2efea}.chapter-dots .earned{background:#5eb2a1}
.profile-entry,.profile-portrait,.frame-sample{--frame-light:#92b1a5;--frame-dark:#438c7d;--frame-shadow:#297870;background:linear-gradient(145deg,#ffffff,#f0f6f4) padding-box,linear-gradient(140deg,var(--frame-light),var(--frame-dark)) border-box;box-shadow:inset 0 2px 0 #ffffff99,0 3px 0 var(--frame-shadow),0 6px 12px #29787016}.frame-sky{--frame-light:#c2dcd2;--frame-dark:#8fafa3;--frame-shadow:#52ab99}.frame-berry{--frame-light:#d1e4dc;--frame-dark:#9cb9ae;--frame-shadow:#5bb09f}.frame-gold{--frame-light:#ffed8e;--frame-dark:#efc142;--frame-shadow:#c6a32d}.frame-forest{--frame-light:#c2d3cd;--frame-dark:#86aa9c;--frame-shadow:#4a9a8a}.frame-violet{--frame-light:#e0ede8;--frame-dark:#afc7be;--frame-shadow:#86a99c}.frame-guardian{--frame-light:#afc7be;--frame-dark:#50a795;--frame-shadow:#3e8274}.frame-guardian::after{content:'';width:23px;height:23px;background:url('assets/player/road-rounded.png') 0 100%/300% 200% no-repeat;border:0;border-radius:0;bottom:-10px}.avatar-well{overflow:hidden;background:radial-gradient(ellipse,#fff 35%,#edf5f2);box-shadow:none}.profile-tabs{background:#e8f1ed}.profile-tabs [aria-selected="true"]{background:linear-gradient(#fff,#f9fcfb);box-shadow:0 3px 0 #cae0d7;color:#356f63}.name-form input{background:#fff;border-color:#dbeae4;color:#27736b}.name-form button{background:#eaf3ef;border-color:#d3e5de;color:#3f8476}.name-form label,.name-form small,.player-summary>div>span{color:#8bac9f}.player-summary strong{color:#256d66}.animal-choice,.frame-choice{background:linear-gradient(145deg,#fff,#f4f9f7);border-color:#e6f0ec;box-shadow:0 3px 0 #d9e9e3;color:#458d7f}.animal-choice[aria-pressed="true"],.frame-choice[aria-pressed="true"]{background:linear-gradient(145deg,#f9fbfa,#e9f2ee);border-color:#9cb9ae;box-shadow:0 3px 0 #a5bfb5}.choice-check{background:#4b9b8b}.profile-saved{color:#8fb0a3!important}.profile-entry .animal-sprite,.profile-portrait .animal-sprite,.avatar-well .animal-sprite{transform:scale(1.05)}.energy-timer,.loss-life-status{background:#eef6f3;border-color:#dcebe5}.energy-timer b{color:#408678}.energy-timer small{color:#90b1a4}#energyDialog>.small,.energy-explanation{color:#8fafa3!important}
.brand-intro{background:radial-gradient(ellipse at 50% 40%,#fff 0,#f5f9f7 42%,#e2efea 100%)}.splash-progress-row{color:#81a698}.splash-progress-row #introPercent{color:#408477}.splash-loading progress{border-color:#fff;background:#deece6;box-shadow:inset 0 1px 2px #3e82741a,0 3px 0 #c4ddd3,0 8px 15px #2979710e}.splash-loading progress::-webkit-progress-bar{background:#e2efea;box-shadow:none}.splash-loading progress::-webkit-progress-value{background:linear-gradient(#93b3a7,#4d9f8f);box-shadow:inset 0 1px 0 #fff7}.splash-loading progress::-moz-progress-bar{background:linear-gradient(#93b3a7,#4d9f8f)}.splash-loading .primary{background:linear-gradient(#fff,#f0f7f4);color:#479484;border-color:#e0ede8;box-shadow:0 3px 0 #cfe3db}.splash-version{color:#a3bdb3}
/* Keep neighbouring sprite cells out of the rounded tile silhouette. */
.node-art,.level-rail button::before{clip-path:inset(5% 5% 3% round 22%)}.level-rail button.active::before{filter:drop-shadow(0 0 4px #7ca29388)}

/* Keep the existing layout with restrained brand colours and precise edges. */
html,body{background:#e5efeb;color:#19484b}.app-shell,.home-screen{background:radial-gradient(ellipse at 50% 35%,#ffffff 0,#f2f8f4 45%,#e1efe8 100%)}
.home-heading h1,.selected-case strong,dialog h2{color:#19484b}.home-heading p,.home-heading .eyebrow,.home-rank #homeRankNext,.controls button,.home-nav>button,.home-nav>a{color:#5a7b70}.home-rank-meter i,.progress #bar{background:#6baf98}.case-road::before{background:repeating-linear-gradient(#9ebfaf 0 12px,#9ebfaf20 12px 22px)}.road-stop::before{background:#9ebfaf}.road-node.selected .node-art{filter:drop-shadow(0 4px 3px #19484b22)}.level-rail button.active::before{filter:none}
.primary,.play-case{background:linear-gradient(145deg,#327868,#19484b);border-color:#285d55;box-shadow:inset 0 1px 0 #ffffff30,0 4px 0 #123c3d,0 7px 14px #19484b14}.home-rank,dialog,.hud{box-shadow:0 3px 0 #c7dcd1,0 10px 24px #19484b0c}
.profile-entry,.profile-portrait,.frame-sample{border-radius:13px;--frame-light:#a8c9bd;--frame-dark:#356d62;--frame-shadow:#19484b;box-shadow:0 3px 0 var(--frame-shadow)}.frame-sky{--frame-light:#dce7e3;--frame-dark:#90afa4;--frame-shadow:#618479}.frame-berry{--frame-light:#bdc9c3;--frame-dark:#657f76;--frame-shadow:#3c5d53}.frame-gold{--frame-light:#e6ddba;--frame-dark:#aa9a65;--frame-shadow:#7c714b}.frame-forest{--frame-light:#b1c7b0;--frame-dark:#6e8d6c;--frame-shadow:#486345}.frame-violet{--frame-light:#c4cfd3;--frame-dark:#738b93;--frame-shadow:#4f6871}.frame-guardian{--frame-light:#d8eee4;--frame-dark:#508d78;--frame-shadow:#255d4c}
.splash-wordmark{display:flex;align-items:center;flex-direction:column;gap:24px;width:100%;text-align:center}.splash-game-name{font-size:clamp(29px,8vw,54px);font-weight:800;line-height:1.03;letter-spacing:-1.2px;color:#19484b}.splash-game-name span{display:block}.splash-cube{width:clamp(86px,25vw,145px);height:auto;overflow:visible}.brand-intro{background:radial-gradient(ellipse at 50% 40%,#fff,#edf7f0 65%,#dfede5)}.brand-intro .splash-mimikama{width:160px;opacity:1;margin-top:20px}.splash-loading progress{border-radius:6px;border:1px solid #a6c3b5;box-shadow:0 2px 0 #b8d0c2;background:#d9e9df}.splash-loading progress::-webkit-progress-bar{background:#d9e9df}.splash-loading progress::-webkit-progress-value{border-radius:4px;background:linear-gradient(90deg,#477f6c,#9dc8b2);box-shadow:none}.splash-loading progress::-moz-progress-bar{background:#649b84}.splash-progress-row,.splash-loading .primary{color:#4f7868}.splash-progress-row #introPercent{color:#19484b}.splash-loading .primary{background:#f5faf6;border-color:#bfd5c8;box-shadow:0 3px 0 #b9d0c1}
@media(max-height:650px){.splash-wordmark{gap:15px}.splash-game-name{font-size:clamp(28px,8vw,42px)}.splash-cube{width:90px}.brand-intro .splash-mimikama{width:130px;margin-top:12px}}
@media(orientation:landscape) and (max-height:500px){.splash-wordmark{gap:10px}.splash-game-name{font-size:29px}.splash-cube{width:64px}.brand-intro .splash-mimikama{width:105px;margin-top:8px}}
.road-node.done .road-number{color:#19484b;text-shadow:0 1px 0 #ffffff66}.level-rail button.complete>span{color:#19484b;text-shadow:none}

/* Gently rounded illustration, unchanged brand palette and screen layout. */
.profile-entry,.profile-portrait,.frame-sample{border-radius:18px}.profile-entry .animal-sprite{border-radius:12px}.profile-portrait .animal-sprite{border-radius:17px}.frame-sample{border-radius:17px}.avatar-well{border-radius:18px}
.node-art,.level-rail button::before{clip-path:inset(3% round 18%)}.road-node:focus-visible{border-radius:21px;outline-offset:2px}.home-emblem,.rank-emblem,.rank-medal{filter:drop-shadow(0 3px 2px #19484b12)}

/* Atlas cell artwork has unequal padding. Normalize the visible tile centre before placing numbers. */
.road-node{--tile-offset-x:7.8125%}.road-node.current{--tile-offset-x:-7.3242%}.road-node.done{--tile-offset-x:0%}.road-node .node-art{transform:translate(var(--tile-offset-x),-9.1797%)}.road-node .road-number{left:50%;top:50%;transform:translate(-50%,-50%);font-variant-numeric:tabular-nums}.road-stop::before{top:50px}
/* The same atlas is used by the compact preview rail. */
.level-rail button::before{transform:translate(7.8125%,-9.1797%)}.level-rail button.active::before{transform:translate(-7.3242%,-9.1797%)}.level-rail button.complete:not(.active)::before{transform:translate(0,-9.1797%)}
/* Frosted glass surfaces, preserving the centred artwork and brand palette. */
.road-node::before{content:'';position:absolute;inset:12%;z-index:1;border-radius:16px;pointer-events:none;background:linear-gradient(135deg,#ffffff52 0,#ffffff12 41%,#ffffff04 44%,#ffffff20 100%);border:1px solid #ffffff88;box-shadow:inset 0 1px 0 #ffffffe0,inset 0 -1px 0 #19484b16,0 7px 14px #19484b14}
.road-node::after{content:'';position:absolute;z-index:1;pointer-events:none;left:19%;right:19%;top:14%;height:27%;border-radius:13px 13px 45% 45%;background:linear-gradient(180deg,#ffffff48,#ffffff03);border-top:1px solid #ffffffa0}
.road-node.current::before{border-color:#e4fff4aa;box-shadow:inset 0 1px 0 #ffffffe8,inset 0 -1px 0 #ffffff22,0 8px 17px #19484b24}.road-node .node-art{filter:drop-shadow(0 3px 4px #19484b12)}
body[data-screen="play"] .hud,.home-rank{background:linear-gradient(130deg,#ffffffea 0,#f0f8f3b8 58%,#e3f0e8ba 100%);border:1px solid #ffffffde;box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 #b8d6c644,0 9px 24px #19484b12,0 2px 0 #c1d9cbb0;backdrop-filter:blur(18px) saturate(125%);-webkit-backdrop-filter:blur(18px) saturate(125%)}
#awardsDialog,#profileDialog,#winDialog{background:linear-gradient(135deg,#ffffffee,#f0f8f1dc 55%,#e5f2e8df);border:1px solid #ffffffed;box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 #c1d9cbaa,0 22px 70px #19484b28,0 4px 0 #b8d4c8b0;backdrop-filter:blur(22px) saturate(120%);-webkit-backdrop-filter:blur(22px) saturate(120%)}
.badge-card{position:relative;border:1px solid #ffffffc9}.badge-card.earned{background:linear-gradient(145deg,#ffffffdd,#e1f2e6a1);box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 #afcdbb44,0 5px 12px #19484b0c}.badge-card.locked{background:linear-gradient(140deg,#ffffff70,#e5eee7a6);border-color:#ffffff80;box-shadow:inset 0 1px 0 #ffffffa0}.badge-card::after{content:'';position:absolute;pointer-events:none;inset:2px 2px auto;height:31%;border-radius:18px 18px 45% 45%;background:linear-gradient(#ffffff38,#fff0)}.badge-card>span{position:relative;z-index:1}.badge-card.earned>span{filter:drop-shadow(0 5px 5px #19484b18)}.badge-card b{font-size:13px}.badge-card small{font-size:10px;line-height:1.4}
.shell-icon,.profile-entry{box-shadow:inset 0 1px 0 #ffffffe0,0 2px 0 #aac9b9,0 4px 12px #19484b0b}.shell-icon{background:linear-gradient(140deg,#ffffffee,#e8f4edaa);border-color:#ffffffd0}
/* Identity replaces the separate rank shortcut in the playing header. */
.game-player{display:none}body[data-screen="play"] .hud-main{grid-template-columns:44px minmax(0,1fr) 44px}body[data-screen="play"] #help{grid-column:3}body[data-screen="play"] .rank-trail{display:none}
body[data-screen="play"] .game-player{grid-column:1/-1;grid-row:2;display:flex;align-items:center;gap:9px;width:calc(100% - 156px);min-width:0;min-height:44px;text-align:left;padding:1px 0;border:0;background:none;color:#19484b;cursor:pointer;border-radius:12px;justify-self:start}
.game-player .profile-entry{width:36px;height:36px;flex-shrink:0;border-width:2px;border-radius:12px}.game-player .profile-entry .animal-sprite{border-radius:8px}.game-player-copy{display:flex;flex-direction:column;min-width:0;gap:1px}.game-player-copy strong{font:700 15px/1.1 SourceSans,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-player-copy small{font:500 10px/1.2 SourceSans,sans-serif;color:#628376;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-screen="play"] .life-row{justify-self:end;align-items:flex-end;flex-direction:column;width:auto;padding:0;gap:3px}body[data-screen="play"] .life-label{font-size:12px}body[data-screen="play"] .life-label b{font-size:13px}.game-player:focus-visible{outline:2px solid #527f6e;outline-offset:3px}.profile-awards{width:100%;margin-top:12px;color:#356d5d;font-size:13px}
.win-player{display:flex;justify-content:center;align-items:center;gap:12px;margin:0 44px 18px 0;text-align:left}.win-player .profile-entry{width:48px;height:48px;flex-shrink:0;border-radius:15px}.win-player>span:last-child{display:flex;flex-direction:column;min-width:0;gap:3px}.win-player small{font-size:9px;letter-spacing:1px;color:#6d8e7c}.win-player strong{font-size:21px;line-height:1.1;color:#19484b;overflow-wrap:anywhere}#winDialog>.win-icon{position:absolute;right:24px;top:30px;width:40px;height:40px;margin:0;border-radius:12px}#winDialog>.win-icon img{width:30px;height:30px}
@media(max-width:360px){body[data-screen="play"] .hud-main{grid-template-columns:40px minmax(0,1fr) 40px}body[data-screen="play"] .game-player{gap:7px;width:calc(100% - 138px)}.game-player .profile-entry{width:32px;height:32px}.game-player-copy strong{font-size:14px}.game-player-copy small{font-size:9px}.win-player{margin-right:35px;gap:9px}.win-player strong{font-size:18px}#winDialog>.win-icon{right:16px;top:30px;width:34px;height:34px}#winDialog>.win-icon img{width:26px;height:26px}.badge-card b{font-size:11px}}
@media(orientation:landscape) and (max-height:500px){body[data-screen="play"] .hud-main{display:flex;gap:10px}body[data-screen="play"] .level-block{flex:1;min-width:0;flex-direction:column;gap:2px;align-items:flex-start}body[data-screen="play"] .hud .level-block #levelNo{font-size:20px}body[data-screen="play"] .game-player{width:130px;flex-shrink:0;order:3}body[data-screen="play"] .game-player .profile-entry{width:30px;height:30px}.game-player-copy strong{font-size:13px}.game-player-copy small{font-size:9px}body[data-screen="play"] .life-row{order:4;flex-direction:column;gap:2px}body[data-screen="play"] #help{order:5}body[data-screen="play"] .hearts span{width:18px;height:18px}body[data-screen="play"] .life-label{font-size:10px}body[data-screen="play"] .controls{top:95px}}
body[data-preview="true"] .game-player{display:none}
/* A menu contains destinations; explanations live behind a separate entry. */
#helpDialog,#settingsDialog,#instructionsDialog{width:min(94vw,440px);padding:26px 22px 20px;background:linear-gradient(135deg,#fffffff2,#edf7f0e8);border:1px solid #fff;box-shadow:inset 0 1px 0 #fff,0 16px 60px #19484b24;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
#helpDialog h2,#settingsDialog h2,#instructionsDialog h2{font-size:28px;line-height:1.1;margin:3px 38px 23px 0;text-align:left}.compact-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:22px}.menu-entry{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:87px;padding:13px 5px;border:1px solid #ffffffdc;border-radius:18px;background:linear-gradient(135deg,#ffffffdc,#dcefe3a8);color:#19484b;box-shadow:inset 0 1px 0 #fff,0 3px 8px #19484b09;font:600 16px/1.15 SourceSans,sans-serif;cursor:pointer}.menu-entry:active{transform:translateY(1px)}.menu-symbol{display:grid;place-items:center;width:28px;height:28px}.menu-symbol svg{width:27px;height:27px}.menu-entry:focus-visible{outline:2px solid #527f6e;outline-offset:2px}#helpDialog>.primary{width:100%;min-height:54px;font-size:18px;margin:0}.settings-list{display:flex;flex-direction:column;gap:9px}.settings-list .app-action{margin:0;min-height:46px;font-size:16px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:48px;font-size:16px;padding:0 5px}.setting-row .zoom-group{display:flex;align-items:center;gap:12px}.setting-row .zoom-group button{width:44px;height:44px;border:1px solid #c6ddce;border-radius:12px;background:#fff9;font-size:22px;color:#19484b}.setting-row #zoomValue{font-size:15px;min-width:44px;text-align:center}.menu-back{font-size:16px;min-height:44px;width:100%;margin-top:12px}.app-info{margin-top:16px}.app-info summary,#instructionsDialog summary{font-size:16px;min-height:44px;line-height:1.4;padding:10px 0;color:#365e50;cursor:pointer}.app-info p,#instructionsDialog p{font-size:16px;line-height:1.45;color:#527466}.instruction-cards{display:flex;flex-direction:column;gap:13px;margin-bottom:10px}.instruction-cards section{padding:14px 16px;border:1px solid #d8e9df;border-radius:16px;background:#ffffff8a}.instruction-cards h3{font-size:18px;line-height:1.2;margin:0 0 7px;color:#19484b}.instruction-cards p{margin:0}.instruction-cards+p{margin-top:12px}#instructionsDialog>.app-action{min-height:48px;font-size:16px;margin:10px 0}#instructionsDialog>.small{font-size:14px}#levelDialog>.adventure-entry,#levelDialog>.daily-entry{margin:10px 0;min-height:46px;font-size:15px}#journeyDialog .daily-goal{margin:15px 0}
/* A result can be understood at a glance; chapter/tip/replay information is optional. */
#winDialog{padding:24px 22px 20px;width:min(94vw,440px);max-height:calc(100dvh - 28px)}#winDialog .win-player{margin:0 40px 14px 0;gap:10px;min-height:40px}#winDialog .win-player .profile-entry{width:40px;height:40px;border-radius:13px}#winDialog .win-player small{display:none}#winDialog .win-player strong{font-size:20px}#winDialog>.win-icon{top:24px;right:22px;width:36px;height:36px}#winDialog>.win-icon img{width:28px;height:28px}#winDialog h2#winTitle{font-size:32px;line-height:1.1;margin:0 0 8px}#winDialog #winText{font-size:17px;line-height:1.4;margin:0 0 12px;color:#315c50}#winDialog #winStars{line-height:1;margin:0 0 12px}#winDialog .result-stars .star-art{width:48px;height:48px}#winDialog #winReward{font-size:16px;line-height:1.4;margin:0 0 14px;color:#356d5a}#winReward[hidden]{display:none!important}#winDialog #next{position:static;min-height:56px;font-size:18px;width:100%;margin:0}#winDialog #winHome{font-size:16px;min-height:44px;margin:4px 0 0;width:100%}.win-details{margin:0;text-align:left}.win-details>summary{font-size:15px;line-height:1.4;min-height:44px;padding:11px 0;text-align:center;color:#557e6c;cursor:pointer}.win-details .win-adventure{padding:14px;margin:6px 0 14px}.win-details .win-adventure strong{font-size:16px}.win-details .win-adventure span,.win-details .win-adventure small{font-size:15px;line-height:1.4}.win-details .next-rank-text{font-size:15px;line-height:1.4}.win-details .tip{margin:12px 0;padding:14px}.win-details .tip h3{font-size:17px;margin:0 0 8px}.win-details .tip p{font-size:15px;line-height:1.5;margin:0}.win-details #inspect{font-size:15px;min-height:44px;width:100%}
@media(max-width:360px){#helpDialog,#settingsDialog,#instructionsDialog{padding:22px 17px 17px}.compact-menu{gap:9px;margin-bottom:17px}.menu-entry{min-height:76px;font-size:15px;gap:7px;padding:10px 4px}#helpDialog h2,#settingsDialog h2,#instructionsDialog h2{font-size:26px;margin-bottom:18px}#winDialog{padding:22px 17px 16px}#winDialog .win-player strong{font-size:18px}#winDialog h2#winTitle{font-size:29px}#winDialog #next{font-size:17px}.settings-list .app-action{min-height:44px}}
@media(orientation:landscape) and (max-height:500px){#helpDialog{width:min(94vw,560px);padding:19px 22px}.compact-menu{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:15px}.menu-entry{min-height:68px;padding:9px 5px;font-size:15px;gap:5px}.menu-symbol,.menu-symbol svg{width:23px;height:23px}#helpDialog h2{font-size:25px;margin-bottom:15px}#helpDialog>.primary{min-height:46px}}
@media(max-width:360px){#settingsDialog{padding-top:20px}#settingsDialog h2{margin-bottom:15px}#settingsDialog .settings-list{gap:7px}#settingsDialog .settings-list .app-action{padding:10px 12px;min-height:44px;line-height:1.2}#settingsDialog .app-info{margin-top:10px}#settingsDialog .menu-back{margin-top:8px}}
#winDialog #winHome,.menu-back{color:#426b5b;opacity:1}
/* Attempts have dots; only the persistent life stock uses hearts. */
.fact-core{display:none!important}.hearts span{display:grid;place-items:center}.attempt-dot{display:block;width:12px;height:12px;border-radius:50%;background:#427d68;border:1px solid #3b715f;box-shadow:inset 0 1px 0 #ffffff70,0 1px 2px #19484b16}.hearts .lost .attempt-dot{background:transparent;border-color:#708f80;box-shadow:none}body[data-screen="play"] #gamePlayerRank{display:flex;align-items:center;gap:5px;margin-top:2px;font-size:12px;line-height:22px;font-weight:600;color:#365e56}#gamePlayerRank::before{content:"";display:block;flex:0 0 21px;width:21px;height:21px;background:url("assets/player/life.svg") center/contain no-repeat;filter:drop-shadow(0 1px 1px #a5395420)}.brand-intro .splash-mimikama{width:min(68vw,250px);opacity:1;margin-top:6px}
@media(max-height:650px){.brand-intro .splash-mimikama{width:min(68vw,220px);margin-top:6px}}@media(orientation:landscape) and (max-height:500px){.brand-intro .splash-mimikama{width:155px}}
#loseDialog .life-loss{display:flex;justify-content:center;align-items:center;gap:9px;background:none;box-shadow:none;width:auto;height:64px;margin-bottom:16px}#loseDialog .life-loss .life-gem{width:56px;height:56px}#loseDialog .life-loss b{font-size:34px;color:#bd405d}#loseDialog h2{font-size:29px}#loseDialog>p{font-size:16px;line-height:1.45}
#loseDialog>.eyebrow{display:none}#loseDialog #lossLifeStatus{font-size:14px;line-height:1.4;font-weight:600;padding:12px;color:#365f50}

/* One heart pool per case; unlimited immediate retries. */
body[data-screen="play"] #gamePlayerRank{display:block;font-size:11px;line-height:16px;font-weight:400;margin-top:2px}#gamePlayerRank::before{display:none}.hearts span img{display:block;width:25px;height:25px}.hearts span.lost img{opacity:.22;filter:grayscale(1)}.hearts{gap:4px}.life-loss .life-gem{width:64px;height:64px}

/* Brief first-use explanations and independent, consequence-free exercises. */
#introDialog{width:min(440px,calc(100vw - 28px));padding:28px 24px 24px}#introDialog h2{padding-right:22px;font-size:27px;line-height:1.12}#introText{font-size:17px;line-height:1.4;margin:14px 0 0}.lesson-scene{margin:10px 0 0;background:linear-gradient(145deg,#ffffffa6,#e1f0e999);border-radius:22px;border:1px solid #fff}.lesson-scene svg{display:block;width:100%;max-height:220px}.lesson-arrow{cursor:pointer}.lesson-feedback{font-size:15px;line-height:1.4;min-height:42px;color:#42695c}.lesson-feedback[data-done="true"]{color:#226953;font-weight:700}.lesson-choices{display:flex;flex-wrap:wrap;gap:8px}.lesson-choice,.lesson-library button{flex:1;min-height:48px;border-radius:16px;border:1px solid #abc9bd;background:#f6fbf9;color:#19484b;font:700 16px SourceSans,sans-serif;padding:10px 14px}.lesson-library{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:12px}.lesson-travel{animation:lesson-travel .6s linear infinite}@keyframes lesson-travel{to{stroke-dashoffset:-22}}@media(prefers-reduced-motion:reduce){.lesson-travel{animation:none}}@media(max-height:650px){#introDialog{padding:22px 20px}.lesson-scene svg{max-height:160px}#introText{font-size:16px}#introDialog h2{font-size:25px}.lesson-feedback{margin:8px 0}}

#introTitle:focus{outline:none}

.fullscreen-setting{font-size:16px}.fullscreen-setting input{width:24px;height:24px;accent-color:#287365;cursor:pointer}:fullscreen{background:#edf6f1}

/* Short lessons fit phone screens, with real touch targets and a scroll fallback. */
#introDialog{max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}#introText{font-size:clamp(15px,3.8vw,18px);line-height:1.4}.lesson-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.lesson-choice{min-height:46px;font-size:15px}.lesson-scene{max-height:clamp(130px,27dvh,220px)}
@media(max-height:680px){#introDialog{padding:20px}#introTitle{font-size:23px;margin:12px 0}#introText{margin:10px 0}.lesson-scene{max-height:145px}.lesson-feedback{margin:8px 0;font-size:14px}}

/* Soft brand glow: the original logo remains readable throughout the load. */
.splash-brand{position:relative;isolation:isolate;display:inline-grid;place-items:center;margin-top:6px;animation:splash-brand-breathe 2.8s ease-in-out infinite;transform-origin:center}
.brand-intro .splash-brand .splash-mimikama{position:relative;z-index:1;display:block;margin-top:0;filter:drop-shadow(0 0 5px #91cdbb38)}
.splash-brand::before{content:"";position:absolute;z-index:0;inset:-70% -22%;background:radial-gradient(ellipse,#91cdbb66,transparent 68%);pointer-events:none;animation:splash-brand-halo 2.8s ease-in-out infinite}
.splash-brand::after{content:"";position:absolute;z-index:2;inset:0;background:linear-gradient(110deg,transparent 38%,#e3fff3cc 49%,transparent 60%);background-size:300% 100%;-webkit-mask:url("assets/mimikama-logo.png") center/contain no-repeat;mask:url("assets/mimikama-logo.png") center/contain no-repeat;mix-blend-mode:screen;pointer-events:none;animation:splash-brand-sheen 3.4s ease-in-out infinite}
@keyframes splash-brand-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
@keyframes splash-brand-halo{0%,100%{opacity:.22;transform:scale(.94)}50%{opacity:.7;transform:scale(1.08)}}
@keyframes splash-brand-sheen{0%,16%{background-position:150% 0;opacity:0}30%{opacity:.65}65%{background-position:-50% 0;opacity:.65}80%,100%{background-position:-50% 0;opacity:0}}
@media(prefers-reduced-motion:reduce){.splash-brand,.splash-brand::before,.splash-brand::after{animation:none;transform:none}.splash-brand::before{opacity:.18}.splash-brand::after{display:none}}

/* Total earned currency stays visible without adding another HUD row. */
body[data-screen="play"] .game-player-copy #gamePlayerRank{display:none}
.game-point-total{display:flex;align-items:baseline;gap:4px;white-space:nowrap;color:#326b60;line-height:17px}
.game-point-total b{font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}.game-player-copy .game-point-total small{font-size:11px;color:#52796d}
.home-point-total{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:62px;max-width:98px;padding:4px 7px;border:1px solid #ffffffd9;border-radius:14px;background:linear-gradient(140deg,#fffffff0,#e2f2e9b8);box-shadow:0 2px 0 #b7d1c369,inset 0 1px 0 #fff;color:#19484b;white-space:nowrap}
.home-point-total b{font-size:15px;font-weight:800;line-height:18px;font-variant-numeric:tabular-nums}.home-point-total small{font-size:9px;line-height:12px;color:#5e8275}
.points-earned{animation:points-earned .65s ease-out}
@keyframes points-earned{0%,100%{transform:scale(1)}35%{transform:scale(1.08);filter:drop-shadow(0 0 6px #8ed3b8)}}
@media(max-width:360px){.home-point-total{min-width:51px;padding:4px 5px}.home-point-total b{font-size:14px}.game-point-total b{font-size:12px}.game-player-copy .game-point-total small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.points-earned{animation:none}}

/* Handy-Spielansicht: Kopfzeile und Hilfenleiste kompakt, damit der Körper mehr Fläche bekommt (Prüfung v53, M1). */
@media(max-width:600px){
body[data-screen="play"] .app-shell{padding-inline:6px}
body[data-screen="play"] .hud{padding:7px 10px 5px;border-radius:16px}
body[data-screen="play"] .hud-main{gap:8px;align-items:center}
body[data-screen="play"] .case-eyebrow{display:none}
body[data-screen="play"] .level-block{flex-direction:row;align-items:center;gap:6px;flex-wrap:nowrap;min-width:0}
body[data-screen="play"] .hud .level-block #levelNo{font-size:16px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-screen="play"] .hud #difficulty{font-size:9px;padding:2px 6px;white-space:nowrap}
body[data-screen="play"] .game-player{display:none}
body[data-screen="play"] .life-row{flex-direction:row;align-items:center;gap:5px;flex-shrink:0}
body[data-screen="play"] .life-label{font-size:10px}
body[data-screen="play"] .hearts{gap:2px}
body[data-screen="play"] .hearts span{width:15px;height:15px}
body[data-screen="play"] .hearts span img{width:17px;height:17px}
body[data-screen="play"] .progress-capsule{margin-top:4px;padding-bottom:6px}
body[data-screen="play"] .counter-label{font-size:10px}
body[data-screen="play"] .progress-capsule #count{font-size:11px}
body[data-screen="play"] .progress{height:3px}
body[data-screen="play"] .controls{padding:5px 0 0;gap:2px}
body[data-screen="play"] .controls button{min-height:64px;gap:3px;font-size:10px}
body[data-screen="play"] .controls .tool-icon{width:50px;height:42px;border-radius:14px}
body[data-screen="play"] .controls .tool-icon svg{width:26px;height:26px}
body[data-screen="play"] .tool-next{font-size:8px;margin-top:-2px}
body[data-screen="play"] .stock{min-width:20px;height:20px;font-size:10px;top:-5px;right:calc(50% - 31px)}
body[data-screen="play"] .drag-note{font-size:9px;bottom:4px}
}
