:root {
  --ink:#303c4f; --ink-soft:#566d8f; --purple:#587093; --purple-dark:#3f4f68;
  --purple-bright:#8699b6; --pink:#91a3bd; --gold:#9faec5; --paper:#fefefe;
  --page:#fdfcf7; --stroke:#f7f2e2; --shadow:0 18px 55px rgba(53,89,72,.085);
  --radius:27px;
  font-family:ui-rounded,"Arial Rounded MT Bold","Trebuchet MS",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink); background:var(--page); font-synthesis:none;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{min-width:320px; scroll-behavior:smooth}
body{margin:0;min-width:320px;min-height:100vh;overflow-x:hidden}
button,input,select{font:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
button:disabled{cursor:not-allowed;opacity:.46}
button:focus-visible,select:focus-visible{outline:4px solid #8ea0bc;outline-offset:4px}
::selection{background:#f0e8cc;color:#2a3647}
.app-shell{min-height:100vh;position:relative;overflow:hidden;isolation:isolate}
.app-shell:before{content:"";position:absolute;inset:0 0 auto;height:690px;pointer-events:none;background:radial-gradient(ellipse at 3% 20%,#f8f5e9 0,transparent 46%),radial-gradient(ellipse at 91% 1%,#ffece4 0,transparent 46%),linear-gradient(180deg,#fffffe,#fdfcf7);z-index:-2}
.ambient{pointer-events:none;position:absolute;border-radius:50%;filter:blur(7px);z-index:-1}
.ambient-one{width:230px;height:230px;left:-140px;top:470px;background:#f6f1df80}
.ambient-two{width:260px;height:260px;right:-110px;top:150px;background:#f8f4e682}
.site-header,.welcome-screen,.game-screen,.site-footer{max-width:1540px;margin-left:auto;margin-right:auto}
.site-header{height:93px;display:flex;align-items:center;justify-content:space-between;padding:0 44px;gap:20px}
.brand{display:flex;align-items:center;gap:11px}
.brand-icon{background:linear-gradient(140deg,#97a8c1,#5e779d);color:white;display:grid;place-items:center;flex:0 0 auto;width:45px;height:45px;border-radius:15px;box-shadow:0 5px 0 #52688940,0 7px 17px #5e779c32;transform:rotate(-8deg)}
.brand-icon span{font-size:32px;line-height:1;transform:rotate(8deg)}
.brand-name{display:flex;flex-direction:column;line-height:1.12;gap:4px}
.brand-name strong{font-weight:1000;font-size:17px;letter-spacing:.038em}
.brand-name small{font-size:9px;letter-spacing:.17em;color:#8699b6;font-weight:900}
.header-actions{display:flex;gap:16px;align-items:center}
.header-tag{color:#7c8fab;font-weight:800;font-size:12px;white-space:nowrap}
.icon-button{width:45px;height:45px;border:1px solid #f6f1df;border-radius:50%;background:#ffffff;color:#5e789e;display:grid;place-items:center;box-shadow:0 6px 16px #3e4f680c;transition:transform .2s,box-shadow .2s}
.icon-button:hover{transform:translateY(-2px);box-shadow:0 9px 16px #3e4f6819}
.sound-switch svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.sound-switch .sound-off-svg{display:none}
.sound-switch.is-muted .sound-on-svg{display:none}
.sound-switch.is-muted .sound-off-svg{display:block}
.header-home{border:1px solid #f6f1df;background:#ffffff;padding:10px 16px;border-radius:15px;color:#5e789e;font-size:14px;font-weight:1000}
.header-home:hover{background:#fbf9f3}
.welcome-screen{padding:18px 44px 30px;min-height:min(735px,calc(100svh - 140px));display:grid;grid-template-columns:minmax(310px,.82fr) minmax(470px,1.18fr);align-items:center;column-gap:38px}
.welcome-copy{position:relative;padding:28px 0 42px;z-index:1}
.eyebrow{display:inline-flex;gap:10px;align-items:center;font-size:12px;font-weight:1000;letter-spacing:.105em;color:#6e85a8}
.eyebrow-star{display:grid;place-items:center;background:#f8f4e7;color:#8699b6;border-radius:50%;width:32px;height:32px;font-size:23px;line-height:1}
.welcome-copy h1{font-size:clamp(70px,7.5vw,124px);letter-spacing:-.072em;line-height:.99;margin:24px 0 24px;font-weight:1000}
.green-word{white-space:nowrap;color:#546b8d;background:linear-gradient(115deg,#455773 0%,#627ba1 40%,#94a5bf 90%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 6px 0 #485c790f)}
.exclamation{font-weight:900}
.welcome-description{font-size:clamp(17px,1.55vw,20px);font-weight:650;line-height:1.65;color:#576478;max-width:450px;margin:0 0 31px}
.welcome-description strong{color:#4e6281;font-weight:950}
.primary-button{border:none;color:white;font-weight:1000;box-shadow:0 6px 0 #4b5f7c,0 12px 25px #5c749842;background:linear-gradient(150deg,#94a5bf,#677fa4);padding:17px 25px;border-radius:18px;transition:transform .15s,box-shadow .15s,filter .15s}
.primary-button:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 9px 0 #4b5f7c,0 18px 30px #5c749838;filter:saturate(1.1)}
.primary-button:active:not(:disabled){transform:translateY(4px);box-shadow:0 2px 0 #4b5f7c,0 4px 13px #5c749833}
.play-button{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-width:248px;min-height:68px;font-size:21px}
.button-play-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#ffffff38;font-size:13px;padding-left:3px}
.button-arrow{font-size:24px;margin-left:auto}
.welcome-perks{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px;max-width:470px}
.welcome-perks span{background:white;border:1px solid #f6f2e2;padding:8px 11px;border-radius:25px;font-size:12px;font-weight:850;color:#6a778b;box-shadow:0 4px 13px #3f506908}
.welcome-bottom-note{margin-top:36px;color:#9aa3b0;font-size:13px;font-weight:700}
.tiny-heart{color:#90a2bd;font-size:19px;vertical-align:middle}
.hero-area{width:100%;position:relative;transform:rotate(1.5deg);padding:15px 9px 25px}
.hero-art-frame{position:relative;z-index:1;padding:10px;border-radius:33px;background:white;box-shadow:0 34px 70px #313e5123,0 9px 0 #8094b215;border:1px solid #ffffffa8}
.hero-art-frame:before{content:"";position:absolute;inset:0;border:9px solid #ffffff;border-radius:31px;pointer-events:none;z-index:2}
.hero-art-inner{overflow:hidden;border-radius:24px;aspect-ratio:1536/1024;box-shadow:inset 0 0 0 2px #ffffff;position:relative}
.hero-art-inner img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .8s}
.hero-art-frame:hover img{transform:scale(1.03)}
.hero-sticker{position:absolute;right:-12px;bottom:-5px;z-index:3;display:flex;align-items:center;gap:12px;background:#f7f3e4;color:#38475e;padding:13px 24px 13px 12px;transform:rotate(-10deg);border:4px solid #ffffff;box-shadow:0 14px 25px #46587430;border-radius:20px;font-size:16px;line-height:1.15;font-weight:700}
.hero-sticker strong{font-size:21px;color:#6981a5;font-weight:1000}
.sticker-heart{font-size:38px}
.hero-sparkle-label{position:absolute;z-index:4;top:0;left:8%;font-size:12px;letter-spacing:.11em;color:#5b7397;font-weight:1000;background:#ffffff;border:2px solid #f8f4e6;border-radius:30px;padding:10px 17px;transform:rotate(-11deg);box-shadow:0 6px 16px #5870941c}
.floating-star{position:absolute;z-index:4;font-weight:1000;pointer-events:none;filter:drop-shadow(0 3px 1px white);animation:star-float 4s ease-in-out infinite}
.star-a{color:#8a9cb8;right:-18px;top:14%;font-size:59px}
.star-b{color:#94a5bf;left:-15px;bottom:24%;font-size:44px;animation-delay:1s}
.star-c{color:#90a2bd;right:6%;top:-35px;font-size:39px;animation-delay:2s}
.site-footer{min-height:65px;display:flex;align-items:center;justify-content:center;gap:7px;padding:16px;color:#96a0af;font-size:12px;font-weight:750}
.site-footer span{color:#8b9eba}.site-footer .footer-star{color:#c4d0e1;margin-left:13px}
/* Game shell */
.game-screen{padding:19px 44px 56px;animation:fade-enter .35s ease}
.game-topline{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:21px}
.game-eyebrow{font-size:10px;letter-spacing:.13em}
.game-title-group h2{font-size:clamp(25px,2.6vw,36px);font-weight:1000;letter-spacing:-.05em;line-height:1.12;margin:5px 0 5px}
.game-title-group h2 em{font-style:normal;color:#8094b3}
.game-title-group p{color:#758091;margin:0;font-weight:680;font-size:13px;line-height:1.45}
.game-controls{display:flex;align-items:end;justify-content:flex-end;flex-wrap:wrap;gap:10px}
.level-wrapper label{font-size:11px;font-weight:950;display:block;margin:0 0 6px 9px;color:#78869b}
.select-shell{position:relative}
.select-shell select{height:47px;max-width:242px;width:242px;appearance:none;-webkit-appearance:none;border:1.5px solid #f3edd7;background:white;color:#40516b;border-radius:15px;box-shadow:0 4px 11px #3b4b630b;padding:0 32px 0 16px;font-size:13px;font-weight:900;cursor:pointer}
.select-caret{position:absolute;right:14px;top:8px;color:#7d92b1;font-size:22px;pointer-events:none}
.control-button{height:47px;border-radius:14px;background:#ffffff;border:1.5px solid #f5f0dd;color:#4b5f7d;padding:0 14px;font-size:13px;font-weight:1000;box-shadow:0 4px 12px #38475d0c;white-space:nowrap;transition:transform .15s,background .15s}
.control-button:hover:not(:disabled){transform:translateY(-2px);background:#fcfaf5}
.control-emoji{font-size:16px}
.control-mini{font-size:9px;display:inline-block;margin-left:2px;color:#9aa3b0}
.hint-button.is-active{background:#f8f4e7;color:#556c8e;border-color:#b9c7db;box-shadow:0 0 0 2px #cfd9e744}
.hint-button.is-active .control-mini{color:#586f92}
.reset-button span{font-size:23px;vertical-align:-2px;line-height:0;margin-right:2px}
.game-columns{display:grid;grid-template-columns:minmax(0,1fr) 263px;gap:20px;align-items:start}
.main-game-column{display:flex;flex-direction:column;gap:18px;min-width:0}
.board-card,.tray-card{background:var(--paper);border:1px solid var(--stroke);border-radius:var(--radius);box-shadow:var(--shadow)}
.board-card{padding:13px}
.board-topbar{display:flex;align-items:center;justify-content:space-between;padding:3px 8px 12px;gap:10px}
.board-overline{color:#7587a1;font-size:11px;letter-spacing:.12em;font-weight:1000}
.board-overline span{color:#8d9fbb;font-size:20px;vertical-align:middle;margin-right:6px;line-height:.1}
.phase-pill{font-size:10px;white-space:nowrap;color:#8094b3;background:#f9f6eb;border-radius:30px;padding:8px 12px;letter-spacing:.085em;font-weight:1000}
.board-scroll{position:relative;overflow:auto;max-height:min(70vh,740px);border-radius:18px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b6c4da #fdfbf6}
.board-frame{position:relative;width:100%;aspect-ratio:1536/1024;min-height:0;border-radius:18px;overflow:hidden;isolation:isolate;background:#f4eedb;box-shadow:inset 0 0 0 1px #c7d2e2}
.board-space{position:absolute;top:0;left:0;width:960px;height:640px;transform-origin:top left;touch-action:pan-x pan-y}
.board-paper,.ghost-image,.whole-image,.crack-svg,.glass-shards,.board-flash,.placed-layer,.target-outline{position:absolute;inset:0;user-select:none;-webkit-user-select:none}
.board-paper{z-index:0;background:radial-gradient(ellipse at 48% 31%,#fcfbf6 0%,#f8f4e5 75%,#f2ebd1 100%)}
.board-paper:after{content:"";position:absolute;inset:0;opacity:.23;background-image:radial-gradient(#7c91b1 1px,transparent 1px);background-size:26px 26px}
.ghost-image,.whole-image{width:100%;height:100%;object-fit:fill;pointer-events:none}
.ghost-image{z-index:1;opacity:0;transition:opacity .3s,filter .3s}
.board-frame.hint-active .ghost-image{opacity:.44;filter:saturate(1.08)}
.target-outline{z-index:2;inset:auto;pointer-events:none;border:4px dashed #8c9eba;border-radius:12px;background:#ffffff15;box-shadow:0 0 0 5px #677fa49c,0 0 25px #9faec5;animation:target-glow 1.25s ease-in-out infinite}
.placed-layer{z-index:3;pointer-events:none}
.placed-tile{position:absolute;pointer-events:none;filter:drop-shadow(0 2px 2px #222c3a5e);animation:piece-snap .3s cubic-bezier(.14,1.8,.35,1) both}
.placed-tile canvas{width:100%;height:100%;display:block}
.whole-image{z-index:4;opacity:1;transition:opacity .12s linear}
.board-frame.phase-playing .whole-image,.board-frame.phase-finding .whole-image{opacity:0}
.crack-svg{z-index:5;width:960px;height:640px;pointer-events:none;opacity:0;overflow:visible}
.crack-svg.is-visible{opacity:1;animation:crack-appear .38s cubic-bezier(.1,.7,.4,1)}
.crack-svg path{stroke:#fefdfa;fill:none;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(1px 1px 1px #12171e) drop-shadow(0 0 3px #ffffffaa)}
.glass-shards{z-index:6;pointer-events:none;overflow:visible}
.glass-chip{position:absolute;width:17px;height:23px;clip-path:polygon(50% 0,100% 100%,3% 76%);background:linear-gradient(135deg,#ffffff,#ccd6e588,#ffffff33);border:1px solid #ffffff;opacity:0;animation:glass-fly .92s cubic-bezier(.11,.72,.46,1) both}
.board-flash{z-index:7;pointer-events:none;background:#ffffff;opacity:0}
.board-flash.flash{animation:flash .45s ease-out}
.board-frame.is-shaking{animation:shake .36s ease both}
.preview-caption{position:absolute;z-index:9;left:3.5%;bottom:5%;color:white;background:linear-gradient(130deg,#2e3a4cbf,#293445bf);backdrop-filter:blur(9px);border:1px solid #ffffff61;border-radius:17px;padding:15px 21px;max-width:67%;display:flex;flex-direction:column;gap:5px;pointer-events:none;box-shadow:0 6px 20px #0f131a2b}
.preview-caption strong{font-size:clamp(12px,1.4vw,20px);font-weight:1000}
.preview-caption span{font-size:clamp(9px,1.02vw,14px);font-weight:700;color:#faf7ec}
.hammer-button{position:absolute;z-index:10;right:6%;bottom:8%;width:clamp(83px,13vw,151px);height:clamp(96px,15vw,174px);border:0;background:none;display:flex;align-items:center;flex-direction:column;justify-content:center;filter:drop-shadow(0 12px 8px #1e2633a3);animation:hammer-bob 2.2s ease-in-out infinite;touch-action:manipulation}
.hammer-button:hover{filter:drop-shadow(0 14px 15px #3f506aaa) brightness(1.1)}
.hammer-halo{position:absolute;z-index:-1;inset:0;border:5px solid #ffffffba;background:radial-gradient(circle,#96a7c0be,#95a6c077);border-radius:50%;transform:scale(.88);box-shadow:0 0 0 10px #ffffff38}
.hammer-art{position:relative;z-index:1;width:100%;height:88%;overflow:visible;filter:drop-shadow(0 4px 1px #28324255)}
.hammer-label{position:relative;z-index:2;display:block;margin-top:-9px;padding:4px 10px;background:#92a3bd;color:#3f506a;letter-spacing:.05em;border:2px solid white;border-radius:30px;box-shadow:0 3px 0 #495d7a;font-weight:1000;font-size:clamp(10px,1.35vw,15px)}
.hammer-button.hammer-hit{animation:hammer-strike .53s cubic-bezier(.13,.72,.24,1) both!important}
.hunt-prompt{position:absolute;top:5%;left:50%;transform:translateX(-50%);z-index:11;pointer-events:none;white-space:nowrap;max-width:94%;font-size:clamp(11px,1.9vw,24px);font-weight:1000;color:white;text-align:center;padding:13px 25px;border-radius:35px;background:#657ea3e8;border:2px solid #faf7ed;box-shadow:0 9px 30px #1f273375;animation:hunt-pulse 1.7s ease-in-out infinite}
.hunt-prompt span{font-size:1.2em}
.board-status{position:absolute;z-index:10;bottom:4%;left:50%;transform:translateX(-50%);border-radius:25px;background:#f7f3e4;box-shadow:0 9px 26px #21293650;padding:13px 23px;font-size:15px;color:#3c4c63;white-space:nowrap;font-weight:800}
.board-footer{padding:13px 6px 1px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.board-footer-tip{color:#788598;font-size:12px;font-weight:700}
.board-footer-tip span{font-size:20px;color:#94a5bf;vertical-align:middle}
.zoom-controls{display:flex;gap:8px;align-items:center;white-space:nowrap}
.zoom-controls>span{font-size:10px;letter-spacing:.1em;color:#8b99ae;font-weight:1000;margin-right:1px}
.zoom-controls button{background:#fbf9f1;color:#566d90;font-size:23px;width:30px;height:30px;border:1px solid #f5f0dd;border-radius:10px;line-height:1}
.zoom-controls strong{font-size:11px;min-width:36px;text-align:center;color:#647c9f}
/* Puzzle tray */
.tray-card{padding:18px 22px 14px;animation:tray-rise .35s ease}
.tray-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tray-heading{display:flex;align-items:center;gap:12px;min-width:0}
.tray-icon{width:47px;height:47px;display:grid;place-items:center;border-radius:15px;background:#faf8ef;box-shadow:0 4px 0 #c7d2e2;font-size:25px;flex:0 0 auto}
.tray-heading h3{margin:0 0 4px;font-size:17px;letter-spacing:-.035em;font-weight:1000}
.tray-heading p{margin:0;color:#8691a1;font-size:12px;font-weight:700}
.pieces-left{font-size:10px;letter-spacing:0;display:inline-block;background:#faf8ef;color:#8296b4;margin-left:5px;padding:4px 8px;border-radius:30px;vertical-align:middle}
.tray-navigation{display:flex;gap:9px;align-items:center;flex:0 0 auto}
.tray-navigation button{border:1px solid #f6f1e0;border-radius:11px;background:#fcfbf6;color:#667ea3;font-size:28px;line-height:1;width:36px;height:36px;display:grid;place-items:center}
.tray-navigation button:hover:not(:disabled){background:#f8f4e6}
.tray-navigation span{min-width:47px;text-align:center;font-weight:1000;font-size:12px;color:#596d8c}
.tray-viewport{margin-top:19px;padding:11px 12px;border-radius:18px;background:linear-gradient(120deg,#fbf9f2,#fcfaf5);min-height:176px;border:2px dashed #f2ebd1;overflow:hidden;position:relative}
.tray-grid{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,max-content);grid-auto-columns:max-content;align-items:center;justify-content:start;gap:7px 12px;min-height:150px}
.tray-tile{flex:0 0 auto;border:2px solid transparent;padding:0;display:flex;align-items:center;justify-content:center;background:transparent;border-radius:13px;position:relative;touch-action:none;user-select:none;-webkit-user-select:none;transition:background .18s,filter .18s,transform .15s;outline-offset:2px}
.tray-tile canvas{width:100%;height:100%;display:block;pointer-events:none;filter:drop-shadow(0 2px 2px #35435877)}
.tray-tile:hover{transform:translateY(-3px)}
.tray-tile.is-selected{border:2px solid #94a5bf;background:#f5f0ddb0;box-shadow:0 0 0 3px #ccd6e477,0 5px 14px #6d85a82e;transform:translateY(-3px)}
.tray-tile.is-drag-source{opacity:.36;transform:scale(.91)}
.tray-tile.is-wrong{animation:wrong-piece .3s ease}
.tray-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 5px 0;color:#98a5b8;font-size:10px;font-weight:820}
.tray-page-hint{color:#9baecb}
.drag-layer{position:fixed;inset:0;z-index:80;pointer-events:none;overflow:visible}
.drag-ghost{position:fixed;pointer-events:none;filter:drop-shadow(0 13px 13px #27324277);transform:rotate(-5deg) scale(1.13);opacity:.95;will-change:left,top}
.drag-ghost canvas{width:100%;height:100%;display:block}
/* Side cards */
.guide-column{display:flex;flex-direction:column;gap:16px}
.progress-card{background:linear-gradient(149deg,#6880a5 0%,#879ab7 69%,#8c9eba 100%);color:white;border-radius:24px;box-shadow:0 16px 35px #667ea345;padding:24px 23px 17px;position:relative;overflow:hidden}
.progress-card:before{content:"✦";position:absolute;right:-10px;top:0;font-size:100px;color:#ffffff16;transform:rotate(21deg)}
.side-eyebrow{font-size:10px;letter-spacing:.11em;font-weight:1000;color:#f6f1e1}
.progress-number{display:flex;align-items:baseline;gap:8px;margin-top:14px;font-size:54px;line-height:1;font-weight:1000;letter-spacing:-.06em}
.progress-number span:last-child{font-size:34px;color:#f5efdc}
.progress-divider{color:#efe7c9;font-size:31px}
.progress-card p{margin:9px 0 19px;color:#faf8ef;font-size:12px;font-weight:750}
.progress-track{height:13px;background:#ffffff42;border:2px solid #ffffff36;border-radius:20px;overflow:hidden}
.progress-fill{width:0;height:100%;background:linear-gradient(90deg,#ced8e6,#a5b6d0);border-radius:20px;transition:width .45s ease}
.progress-below{display:flex;justify-content:space-between;gap:8px;font-size:10px;font-weight:800;color:#f8f4e6;margin-top:9px}
.progress-stars{text-align:center;font-size:20px;color:#a0b2ce;letter-spacing:12px;white-space:nowrap;margin-top:18px}
.progress-stars span{color:#cfd9e7}
.howto-card{background:white;border:1px solid var(--stroke);border-radius:24px;box-shadow:var(--shadow);padding:23px 21px 18px}
.howto-card .side-eyebrow{color:#8a9cb8}
.howto-card h3{font-size:23px;line-height:1.2;font-weight:1000;letter-spacing:-.05em;margin:9px 0 21px}
.howto-card h3 span{color:#8195b4}
.howto-step{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.step-number{width:32px;height:32px;border-radius:10px;background:#faf8ef;color:#7e92b1;font-weight:1000;font-size:11px;display:grid;place-items:center;flex-shrink:0}
.howto-step>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.howto-step strong{font-size:12px;letter-spacing:-.02em;font-weight:1000}
.howto-step small{color:#8d98a8;font-size:10.5px;font-weight:700;line-height:1.3}
.step-emoji{font-size:24px}
.green-fact{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#fbf9f1,#f8f5e9);border:1px solid #f3edd6;border-radius:23px;padding:19px 15px;position:relative;overflow:hidden}
.color-swatch{width:52px;height:52px;display:grid;place-items:center;border-radius:50%;background:#8397b4;border:4px solid white;box-shadow:0 6px 14px #627ba137;font-size:24px;flex-shrink:0}
.green-fact>div:nth-child(2){display:flex;flex-direction:column;gap:3px}
.green-fact span:not(.fact-shine){font-size:8px;color:#778dae;letter-spacing:.075em;font-weight:1000}
.green-fact strong{font-size:20px;color:#5e779d;font-weight:1000;letter-spacing:-.05em}
.green-fact small{font-size:10px;color:#7e8ca0;font-weight:800}
.fact-shine{position:absolute;right:6px;top:3px;font-size:24px;color:#abbbd4}
/* Dialogs */
.dialog-backdrop{position:fixed;inset:0;z-index:120;display:grid;place-items:center;background:#1c232ebc;backdrop-filter:blur(9px);padding:20px;animation:fade-enter .2s ease}
.dialog-card{width:min(460px,100%);border:7px solid #ffffff;background:linear-gradient(145deg,#fefefe,#faf8ef);border-radius:35px;padding:32px 30px 33px;text-align:center;box-shadow:0 30px 90px #181f2970;animation:modal-enter .35s cubic-bezier(.15,1.35,.4,1)}
.dialog-glyph{font-size:63px;filter:drop-shadow(0 7px 0 #758bac23)}
.dialog-card h2{font-size:clamp(26px,4vw,36px);letter-spacing:-.055em;line-height:1.1;margin:11px 0;color:#2f3b4e;font-weight:1000}
.dialog-card p{margin:0 auto 25px;color:#758398;font-size:15px;line-height:1.55;max-width:350px;font-weight:750}
.dialog-actions{display:flex;justify-content:center;gap:11px;flex-wrap:wrap}
.dialog-actions button{font-size:13px;min-height:47px;padding:12px 19px}
.secondary-button{color:#587094;background:#ffffff;border:1px solid #f3ecd5;font-weight:1000;padding:13px 19px;border-radius:15px}
.secondary-button:hover{background:#f9f6ea}
.victory-card{width:min(500px,100%);border:7px solid #f6f1df;background:linear-gradient(145deg,#fefdfa,#fbf9f1);position:relative;overflow:hidden}
.victory-decoration{color:#7b90b0;font-size:30px;letter-spacing:15px}
.victory-medal{width:116px;height:116px;border-radius:50%;background:linear-gradient(130deg,#9eadc4,#bbc8dc);margin:10px auto;display:grid;place-items:center;font-size:69px;border:7px solid white;box-shadow:0 8px 0 #b3c2d8,0 13px 26px #6a82a638;animation:medal-bob 2s ease-in-out infinite}
.victory-eyebrow{color:#7e93b2;font-size:11px;letter-spacing:.17em;font-weight:1000;margin-top:23px}
.victory-card h2 em{font-style:normal;color:#7c91b0}
.victory-card p{font-size:14px}
.victory-stats{display:flex;gap:9px;justify-content:center;flex-wrap:wrap;margin:0 0 24px}
.victory-stats span{background:#ffffff;border:1px solid #f5f0de;border-radius:20px;padding:9px 13px;color:#607aa0;font-weight:900;font-size:12px}
.toast{position:fixed;z-index:110;bottom:23px;left:50%;max-width:calc(100% - 30px);transform:translate(-50%,40px);opacity:0;pointer-events:none;background:#ffffff;color:#445671;border:2px solid #f5f0dd;box-shadow:0 12px 50px #242d3b3d;border-radius:30px;padding:14px 22px;text-align:center;font-size:14px;font-weight:900;transition:opacity .2s,transform .22s}
.toast.show{opacity:1;transform:translate(-50%,0)}
.celebration-confetti{position:fixed;z-index:125;inset:0;overflow:hidden;pointer-events:none}
.confetti-piece{position:absolute;top:-30px;width:11px;height:16px;border-radius:2px;animation:confetti-fall var(--duration,3.5s) ease-in forwards;transform-origin:center}
/* Motion */
@keyframes star-float{0%,100%{transform:translateY(0) rotate(-5deg)}50%{transform:translateY(-12px) rotate(12deg)}}
@keyframes fade-enter{from{opacity:0}to{opacity:1}}
@keyframes tray-rise{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes hammer-bob{0%,100%{transform:translateY(0) rotate(-7deg)}50%{transform:translateY(-8px) rotate(8deg)}}
@keyframes hammer-strike{0%{transform:rotate(-12deg) translate(0,0) scale(1)}38%{transform:rotate(-47deg) translate(-18%,-30%) scale(1.09)}63%{transform:rotate(28deg) translate(-57%,-44%) scale(1.2)}100%{transform:rotate(6deg) translate(-35%,-28%) scale(.75);opacity:0}}
@keyframes crack-appear{0%{opacity:0;transform:scale(.96)}20%{opacity:1}100%{opacity:1;transform:scale(1)}}
@keyframes shake{0%,100%{transform:translate(0,0)}20%{transform:translate(-5px,3px)}40%{transform:translate(5px,-4px)}60%{transform:translate(-3px,2px)}80%{transform:translate(2px,-1px)}}
@keyframes flash{0%{opacity:0}20%{opacity:.68}100%{opacity:0}}
@keyframes glass-fly{0%{opacity:.9;transform:translate(0,0) rotate(0) scale(1)}100%{opacity:0;transform:translate(var(--fly-x),var(--fly-y)) rotate(var(--fly-rotate)) scale(.2)}}
@keyframes piece-snap{0%{opacity:.8;transform:scale(.78)}65%{opacity:1;transform:scale(1.07)}100%{transform:scale(1)}}
@keyframes target-glow{0%,100%{box-shadow:0 0 0 4px #c4cfe091,0 0 18px #93a4be88}50%{box-shadow:0 0 0 8px #f2ebd2ba,0 0 36px #a7b8d1b8}}
@keyframes wrong-piece{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
@keyframes modal-enter{from{opacity:0;transform:translateY(25px) scale(.87)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes medal-bob{0%,100%{transform:rotate(-6deg) translateY(0)}50%{transform:rotate(6deg) translateY(-6px)}}
@keyframes hunt-pulse{0%,100%{filter:drop-shadow(0 1px 4px #f9f6ea50)}50%{filter:drop-shadow(0 0 13px #c3cfe0)}}
@keyframes confetti-fall{0%{opacity:1;transform:translate3d(0,-20px,0) rotate(0)}95%{opacity:1}100%{opacity:0;transform:translate3d(var(--drift),105vh,0) rotate(var(--spin))}}
/* Responsive */
@media (min-width:1500px){.welcome-screen{column-gap:76px}.hero-area{max-width:795px}}
@media (max-width:1170px){.site-header{padding:0 27px}.welcome-screen{padding:16px 27px 30px;grid-template-columns:minmax(290px,.9fr) minmax(380px,1.1fr);gap:18px}.welcome-copy h1{font-size:clamp(68px,7vw,95px)}.game-screen{padding-left:27px;padding-right:27px}.game-columns{grid-template-columns:minmax(0,1fr) 232px;gap:14px}.guide-column{gap:13px}.progress-card,.howto-card{padding:19px 16px}.game-topline{align-items:start}.game-controls{max-width:570px}}
@media (max-width:850px){.welcome-screen{grid-template-columns:1fr;min-height:0;gap:5px;padding-top:35px;max-width:680px;text-align:center}.welcome-copy{padding:9px 0 15px}.welcome-description{margin-left:auto;margin-right:auto}.welcome-perks{justify-content:center;margin-left:auto;margin-right:auto}.welcome-bottom-note{margin-top:24px}.hero-area{max-width:650px;margin:0 auto 35px;transform:rotate(1deg)}.game-topline{flex-direction:column;align-items:stretch}.game-controls{max-width:none;justify-content:flex-start}.game-columns{grid-template-columns:1fr}.guide-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.green-fact{grid-column:1/-1;justify-content:center}.progress-card{padding:20px 25px}.howto-card{padding:19px 24px}}
@media (max-width:570px){.site-header{height:77px;padding:0 16px}.brand-icon{width:37px;height:37px;border-radius:13px}.brand-icon span{font-size:26px}.brand-name strong{font-size:13px}.brand-name small{font-size:7px;letter-spacing:.12em}.header-tag{display:none}.icon-button{width:39px;height:39px}.header-home{font-size:13px;padding:9px 12px}.welcome-screen{padding:10px 18px 20px}.welcome-copy h1{font-size:clamp(65px,16vw,87px);margin:15px 0}.eyebrow{font-size:9px;letter-spacing:.07em}.welcome-description{font-size:15px;line-height:1.5;margin-bottom:22px}.play-button{min-width:235px;min-height:59px;font-size:18px}.welcome-perks span{font-size:10px;padding:7px 9px}.welcome-bottom-note{font-size:11px;margin-top:19px}.hero-area{padding:7px 4px 26px;margin-bottom:5px}.hero-art-frame{border-radius:22px;padding:6px}.hero-art-frame:before{border:5px solid white;border-radius:20px}.hero-art-inner{border-radius:17px}.hero-sticker{right:-2px;bottom:0;padding:6px 12px 6px 7px;font-size:11px;border:3px solid white;border-radius:13px;gap:6px}.hero-sticker strong{font-size:13px}.sticker-heart{font-size:24px}.hero-sparkle-label{font-size:8px;top:-8px}.floating-star.star-a{font-size:39px;right:-7px}.floating-star.star-b{font-size:30px}.site-footer{font-size:10px;flex-wrap:wrap;padding:15px}.game-screen{padding:13px 10px 35px}.game-title-group{padding:0 7px}.game-title-group h2{font-size:27px}.game-title-group p{font-size:12px}.game-controls{gap:7px}.level-wrapper{flex:1 1 155px}.select-shell select{max-width:none;width:100%;font-size:11px;height:43px;padding-left:10px}.level-wrapper label{font-size:10px}.control-button{height:43px;font-size:12px;padding:0 10px}.reset-button{padding:0 11px}.game-columns{gap:13px}.board-card{padding:6px;border-radius:18px}.board-topbar{padding:7px 8px 9px}.board-overline{font-size:8px}.phase-pill{font-size:8px;padding:6px 9px}.board-scroll,.board-frame{border-radius:12px}.preview-caption{border-radius:9px;max-width:74%;padding:8px 10px;gap:2px;bottom:5%;left:3%}.preview-caption strong{font-size:10px}.preview-caption span{font-size:8px;line-height:1.3}.hammer-button{width:85px;height:99px;bottom:7%;right:2%}.hammer-label{font-size:9px}.board-footer{padding:9px 4px 3px;align-items:start}.board-footer-tip{font-size:9px;max-width:53%;line-height:1.5}.board-footer-tip span{font-size:13px}.zoom-controls{gap:4px}.zoom-controls>span{font-size:8px}.zoom-controls button{width:26px;height:26px;font-size:20px}.zoom-controls strong{font-size:9px;min-width:29px}.tray-card{padding:13px 11px 10px;border-radius:18px}.tray-icon{width:38px;height:38px;font-size:22px;border-radius:11px}.tray-heading{gap:8px}.tray-heading h3{font-size:14px}.tray-heading p{font-size:10px;max-width:190px;line-height:1.3}.pieces-left{font-size:8px;padding:3px 6px}.tray-navigation{gap:4px}.tray-navigation button{width:27px;height:31px;border-radius:9px;font-size:21px}.tray-navigation span{font-size:10px;min-width:36px}.tray-viewport{margin-top:12px;min-height:163px;padding:8px}.tray-grid{gap:5px 7px}.tray-bottom{font-size:9px}.tray-page-hint{display:none}.guide-column{grid-template-columns:1fr 1fr;gap:8px}.progress-card,.howto-card{border-radius:18px;padding:14px 11px}.side-eyebrow{font-size:8px}.progress-number{font-size:38px;gap:5px}.progress-number span:last-child{font-size:25px}.progress-divider{font-size:20px}.progress-card p{font-size:10px;margin:8px 0 11px}.progress-track{height:10px}.progress-below{font-size:8px}.progress-stars{font-size:13px;letter-spacing:5px}.howto-card h3{font-size:16px;margin:7px 0 13px}.howto-step{gap:5px;margin-bottom:10px}.step-number{height:25px;width:25px;font-size:8px;border-radius:7px}.howto-step strong{font-size:9px}.howto-step small{font-size:8px}.step-emoji{display:none}.green-fact{padding:12px}.color-swatch{width:43px;height:43px;font-size:20px}.green-fact strong{font-size:17px}.dialog-card{padding:23px 14px}.dialog-actions{gap:8px}.dialog-actions button{font-size:12px;padding:10px 13px}.hunt-prompt{padding:8px 11px;border-width:1px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
/* Keep the puzzle pieces and board visible together: a side tray on desktop,
   and a child-friendly bottom dock on smaller screens. */
@media (min-width:851px){
  .guide-column>.tray-card{padding:15px 13px 10px;border-radius:23px;box-shadow:0 16px 45px #4c607e20}
  .guide-column .tray-top{flex-direction:column;align-items:stretch;gap:11px}
  .guide-column .tray-heading{align-items:flex-start;gap:8px}
  .guide-column .tray-icon{width:35px;height:35px;font-size:20px;border-radius:11px}
  .guide-column .tray-heading h3{font-size:14px;line-height:1.2}
  .guide-column .tray-heading p{font-size:10px;line-height:1.35}
  .guide-column .pieces-left{font-size:9px;margin:5px 0 0}
  .guide-column .tray-navigation{align-self:end}
  .guide-column .tray-viewport{padding:9px;margin-top:9px;min-height:285px}
  .guide-column .tray-grid{grid-template-rows:repeat(4,max-content);gap:6px 7px;min-height:0}
  .guide-column .tray-bottom{font-size:9px;justify-content:center;text-align:center}
  .guide-column .tray-page-hint{display:none}
}
@media (max-width:850px){
  .guide-column>.tray-card:not([hidden]){position:fixed;bottom:max(8px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(720px,calc(100vw - 16px));z-index:60;box-shadow:0 6px 0 #9fb2ce,0 22px 70px #26303f78;border:2px solid #c4d0e1;animation:none}
  .game-screen{padding-bottom:265px}
  .guide-column .tray-grid{grid-template-rows:repeat(2,max-content)}
}
@media (max-width:850px){
  .toast{bottom:calc(265px + env(safe-area-inset-bottom));font-size:12px;padding:10px 15px;max-width:calc(100vw - 34px)}
}

/* The tray is never allowed to overlap the puzzle board on phones. */
.puzzle-fullscreen-button{border:1px solid #f4eed8;border-radius:12px;background:#faf8ef;color:#597195;font-weight:900;font-size:12px;padding:9px 10px;display:inline-flex;align-items:center;gap:6px;min-height:39px;}
.puzzle-fullscreen-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.puzzle-fullscreen-button .fullscreen-icon-exit{display:none;}
body.puzzle-immersive .puzzle-fullscreen-button .fullscreen-icon-enter{display:none;}
body.puzzle-immersive .puzzle-fullscreen-button .fullscreen-icon-exit{display:block;}
@media(max-width:850px){
 .game-screen{padding-bottom:35px;}
 .game-columns{grid-template-columns:minmax(0,1fr);gap:14px;align-items:start;}
 .guide-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0;}
 .guide-column>.tray-card:not([hidden]){position:relative;inset:auto;bottom:auto;left:auto;transform:none;width:100%;max-width:100%;grid-column:1 / -1;z-index:auto;animation:tray-rise .35s ease;box-shadow:0 16px 45px #4c607e20;}
 .guide-column .tray-card{min-width:0;min-height:0;}
 .guide-column .tray-grid{grid-template-rows:repeat(2,max-content);}
 .toast{bottom:20px;}
}
@media(max-width:570px){
 .puzzle-fullscreen-button{min-height:34px;padding:6px 7px;font-size:10px;}
 .puzzle-fullscreen-button span{display:none;}
 .guide-column>.tray-card:not([hidden]){grid-column:1/-1;}
}
/* Puzzle fullscreen: no overlaying tray; board + tray are distinct grid areas. */
body.puzzle-immersive{overflow:hidden!important;overscroll-behavior:none;}
body.puzzle-immersive .app-shell{height:100vh;height:100dvh;min-height:0;overflow:hidden;}
body.puzzle-immersive .site-header{height:49px;min-height:49px;padding:0 11px;position:relative;z-index:4;background:#ffffff;}
body.puzzle-immersive .brand-icon{width:32px;height:32px;border-radius:10px;}
body.puzzle-immersive .brand-name strong{font-size:12px;}
body.puzzle-immersive .brand-name small{display:none;}
body.puzzle-immersive .header-tag{display:none;}
body.puzzle-immersive .game-screen:not([hidden]){
 position:relative;height:calc(100dvh - 49px);min-height:0;overflow:hidden;
 display:grid;grid-template-rows:auto minmax(0,1fr);gap:6px;
 padding:6px 9px max(7px,env(safe-area-inset-bottom));max-width:none;
}
body.puzzle-immersive .game-topline{margin:0;gap:5px;min-height:0;}
body.puzzle-immersive .game-title-group{display:none;}
body.puzzle-immersive .game-controls{margin:0;display:flex;align-items:center;justify-content:flex-start;gap:6px;max-width:none;}
body.puzzle-immersive .level-wrapper label{display:none;}
body.puzzle-immersive .select-shell select{height:36px;min-height:36px;font-size:11px;}
body.puzzle-immersive .control-button{height:36px;min-height:36px;font-size:11px;padding:5px 9px;}
body.puzzle-immersive .game-columns{height:100%;min-height:0;max-height:100%;overflow:hidden;align-items:stretch;gap:9px;}
body.puzzle-immersive .main-game-column{height:100%;min-height:0;overflow:hidden;}
body.puzzle-immersive .board-card{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:7px;}
body.puzzle-immersive .board-topbar{flex:0 0 auto;padding:3px 5px 7px;}
body.puzzle-immersive .board-scroll{flex:1 1 0;display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;max-height:none;overflow:auto;overscroll-behavior:contain;}
body.puzzle-immersive .board-frame{width:100%;max-width:none;flex:0 0 auto;aspect-ratio:1536/1024;}
body.puzzle-immersive .board-footer{flex:0 0 auto;padding:5px 2px 1px;}
body.puzzle-immersive .board-footer-tip{font-size:10px;}
body.puzzle-immersive .guide-column{min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden;}
body.puzzle-immersive .guide-column>.tray-card:not([hidden]){
 position:relative;left:auto;bottom:auto;transform:none;inset:auto;z-index:auto;
 width:100%;height:100%;min-height:0;min-width:0;max-width:none;
 box-shadow:0 5px 22px #4d618024;display:flex;flex-direction:column;
 padding:8px;overflow:hidden;animation:none;
}
body.puzzle-immersive .tray-top{flex:0 0 auto;gap:6px;}
body.puzzle-immersive .tray-icon{display:none;}
body.puzzle-immersive .tray-heading h3{font-size:12px;margin:0;}
body.puzzle-immersive .tray-heading p{display:none;}
body.puzzle-immersive .tray-navigation button{width:30px;height:31px;}
body.puzzle-immersive .tray-viewport{flex:1 1 0;min-height:0;margin-top:7px;padding:6px;overflow:auto;overscroll-behavior:contain;}
body.puzzle-immersive .tray-grid{min-height:0;}
body.puzzle-immersive .tray-bottom{display:none;}
body.puzzle-immersive .guide-column>.progress-card,
body.puzzle-immersive .guide-column>.howto-card,
body.puzzle-immersive .guide-column>.green-fact{display:none;}
body.puzzle-immersive .site-footer{display:none;}
/* On a portrait phone both panels stay visible, divided vertically. */
@media(max-width:850px) and (orientation:portrait){
 body.puzzle-immersive .game-columns{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,min(52%,355px)) minmax(0,1fr);}
 body.puzzle-immersive .game-columns:not(.has-tray){grid-template-rows:minmax(0,1fr);}
 body.puzzle-immersive .game-columns:not(.has-tray) .guide-column{display:none;}
 body.puzzle-immersive .game-columns.has-tray .guide-column{display:flex;}
 body.puzzle-immersive .board-overline{font-size:9px;}
 body.puzzle-immersive .phase-pill{font-size:8px;padding:5px 8px;}
 body.puzzle-immersive .board-footer-tip{max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
}
/* Wide screens / phone landscape: two separate side-by-side areas. */
@media(min-width:851px), (orientation:landscape){
 body.puzzle-immersive .game-columns{grid-template-columns:minmax(0,1fr) minmax(185px,33%);grid-template-rows:minmax(0,1fr);}
 body.puzzle-immersive .game-columns:not(.has-tray){grid-template-columns:minmax(0,1fr);}
 body.puzzle-immersive .game-columns:not(.has-tray) .guide-column{display:none;}
 body.puzzle-immersive .game-columns.has-tray .guide-column{display:flex;}
 body.puzzle-immersive .guide-column .tray-grid{grid-template-rows:repeat(3,max-content);}
}
@media(max-height:510px){
 body.puzzle-immersive .site-header{height:40px;min-height:40px;}
 body.puzzle-immersive .game-screen:not([hidden]){height:calc(100dvh - 40px);}
 body.puzzle-immersive .game-topline{gap:3px;}
 body.puzzle-immersive .game-controls{gap:4px;}
 body.puzzle-immersive .board-topbar{padding:2px 4px 4px;}
 body.puzzle-immersive .board-footer{padding:2px;}
}

/* Zoomed board starts at its scrollable origin instead of clipping its left edge. */
body.puzzle-immersive .board-scroll.is-zoomed{justify-content:flex-start;align-items:flex-start;}

/* Yellow Quest theme — responsive/fullscreen layout above is preserved from the Robin reference. */
:root{
  --ink:#232c3a;
  --ink-soft:#42546f;
  --purple:#506686;
  --purple-dark:#364459;
  --purple-bright:#90a2bc;
  --gold:#90a2bc;
  --page:#fdfbf6;
  --stroke:#b2c1d8;
}
.app-shell:before{
  background:radial-gradient(ellipse at 3% 20%,#f3ecd5 0,transparent 45%),
             radial-gradient(ellipse at 91% 1%,#f8f4e6 0,transparent 35%),
             linear-gradient(180deg,#ffffff,#faf8ef)!important;
}
.ambient-one{background:#becadd80}.ambient-two{background:#efe7c982}
.green-word{
  white-space:normal;
  background:linear-gradient(120deg,#344257 0%,#506584 42%,#778dad 73%,#90a2bc 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 6px 0 rgba(58,96,78,.08));
}
.brand-icon,.primary-button{
  background:linear-gradient(135deg,#99a9c2,#6880a4)!important;
  color:#161c25!important;
}
.primary-button{
  box-shadow:0 6px 0 #455773,0 12px 25px rgba(63,106,85,.26)!important;
  text-shadow:none!important;
}
.primary-button:hover:not(:disabled){box-shadow:0 9px 0 #3f4f68,0 18px 30px rgba(63,106,85,.24)!important;filter:saturate(1.03)}
.primary-button:active:not(:disabled){box-shadow:0 2px 0 #3f4f68,0 4px 13px rgba(63,106,85,.22)!important}
.button-play-icon{background:rgba(255,255,255,.48);color:#1c232e}
.brand-name small{color:#465975}
.header-home,.icon-button,.control-button,.puzzle-fullscreen-button{
  background:#f4eeda!important;border-color:#8599b6!important;color:#26303f!important;
}
.header-home:hover,.control-button:hover:not(:disabled),.puzzle-fullscreen-button:hover{background:#c6d1e1!important}
.eyebrow,.hero-sparkle-label{color:#344256}
.eyebrow-star{background:#c4d0e1;color:#455772}
.welcome-description strong{color:#3a4a61}
.hero-sticker{background:#f4eeda;color:#2a3546}
.hero-sticker strong{color:#37465c!important}
.phase-pill{color:#2a3647!important;background:#ced8e6!important}
.game-title-group h2 em{color:#465975!important}
.hint-button.is-active{background:#c3cfe0;color:#2c384a;border-color:#5d759a;box-shadow:0 0 0 2px rgba(93,154,125,.25)}
.hint-button.is-active .control-mini{color:#2c384a}
.board-frame{background:#efe6c8!important;aspect-ratio:4/3!important}
.board-paper{background:radial-gradient(ellipse at 48% 31%,#fdfbf6 0%,#f1e9cd 75%,#aabad3 100%)!important}
.board-paper:after{background-image:radial-gradient(#7e92b1 1px,transparent 1px)!important}
.tray-icon,.step-number{background:#c6d1e1;color:#344257;box-shadow:none}
.pieces-left{background:#f0e8cc;color:#344257}
.tray-navigation button{background:#f6f1e1;color:#2c384a;border-color:#9db0cc}
.tray-navigation button:hover:not(:disabled){background:#c7d2e2}
.tray-tile.is-selected{border-color:#546a8c;background:rgba(153,194,174,.42);box-shadow:0 0 0 3px rgba(90,150,121,.22),0 5px 14px rgba(53,88,71,.16)}
.progress-card{background:linear-gradient(149deg,#9aaac2 0%,#778dad 72%,#627ba0 100%);color:#19202a;box-shadow:0 16px 35px rgba(66,111,89,.24)}
.progress-card:before{color:rgba(255,255,255,.24)}
.progress-card .side-eyebrow,.progress-card p,.progress-below,.progress-number span:last-child,.progress-divider{color:#232c3a}
.progress-track{background:rgba(255,255,255,.48);border-color:rgba(50,83,67,.14)}
.progress-fill{background:linear-gradient(90deg,#f8f4e7,#ffffff,#c2cee0)}
.progress-stars{color:#f4edd7}.progress-stars span{color:#3e4e67}
.howto-card .side-eyebrow{color:#3a4a61}.howto-card h3 span{color:#465975}
.green-fact,.blue-fact{background:linear-gradient(135deg,#f4eeda,#c2cedf)!important;border-color:#8b9db9!important}
.color-swatch{background:#778dad;border-color:#ffffff;box-shadow:0 6px 14px rgba(59,99,80,.24)}
.green-fact span:not(.fact-shine){color:#40526c}.green-fact strong{color:#2e3a4d}.green-fact small{color:#445671}.fact-shine{color:#516788}
.secondary-button{color:#26303f;background:#fcfaf3;border-color:#9aaac3}.secondary-button:hover{background:#ccd6e5}
.victory-card h2 em{color:#455874}.victory-eyebrow{color:#3a4960}
.toast{color:#252f3d;border-color:#97a7c0}

/* The yellow title is longer than Robin: keep the same mobile composition without widening the iframe. */
.welcome-copy,.welcome-copy h1,.green-word{min-width:0;max-width:100%;}
@media(max-width:850px){
  .welcome-screen{width:100%;max-width:680px;min-width:0;overflow:hidden;}
  .welcome-copy,.hero-area{width:100%;min-width:0;max-width:100%;}
  .welcome-copy h1{overflow-wrap:normal;word-break:normal;}
}
@media(max-width:570px){
  .welcome-screen{padding-left:18px;padding-right:18px;}
  .welcome-copy h1{font-size:clamp(44px,13vw,62px);line-height:.94;letter-spacing:-.055em;}
  .green-word{display:inline;white-space:normal;}
  .welcome-description{width:100%;max-width:100%;padding:0 4px;}
  .play-button{width:min(100%,310px);min-width:0;}
  .welcome-perks{width:100%;max-width:100%;justify-content:center;}
  .hero-area{box-sizing:border-box;}
}

/* Cornflower palette over the existing Colors puzzle's responsive layout. */
:root{--ink:#3b4b62;--ink-soft:#495c79;--purple:#4d6281;--purple-dark:#4a5e7b;--purple-bright:#a7b8d1;--gold:#97a8c1;--page:#fdfcf9;--stroke:#f5efdc;}
.app-shell:before{background:radial-gradient(ellipse at 3% 20%,#f8f4e8 0,transparent 45%),radial-gradient(ellipse at 91% 1%,#f6f2e2 0,transparent 35%),linear-gradient(180deg,#ffffff,#fcfbf6)!important;}
.ambient-one{background:#f2ebd380}.ambient-two{background:#f1e9cd82}
.green-word{background:linear-gradient(120deg,#4a5e7c 0%,#52688a 42%,#7289ab 73%,#b5c3d9 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 6px 0 #4f648314);}
.brand-icon,.primary-button{background:linear-gradient(135deg,#748aac,#485b77)!important;color:#ffffff!important;}
.primary-button{box-shadow:0 6px 0 #4a5e7b,0 12px 25px #485b7740!important;}
.primary-button:hover:not(:disabled){box-shadow:0 9px 0 #4a5e7b,0 18px 30px #485b7738!important;}
.primary-button:active:not(:disabled){box-shadow:0 2px 0 #4a5e7b,0 4px 13px #485b7733!important;}
.button-play-icon{background:#ffffff38;color:white}.brand-name small{color:#546a8b;}
.header-home,.icon-button,.control-button,.puzzle-fullscreen-button{background:#fbf9f1!important;border-color:#c8d3e3!important;color:#506584!important;}
.header-home:hover,.control-button:hover:not(:disabled),.puzzle-fullscreen-button:hover{background:#f7f3e4!important;}
.eyebrow,.hero-sparkle-label{color:#445671;}.eyebrow-star{background:#f9f6eb;color:#4d6281;}
.welcome-description,.game-title-group p{color:#485b77;}.welcome-description strong{color:#485b77;}
.hero-sticker{background:#f8f5e9;color:#43536b;}.hero-sticker strong{color:#3f5069!important;}
.phase-pill{color:#506584!important;background:#f9f6ea!important;}.game-title-group h2 em{color:#4d6281!important;}
.hint-button.is-active{background:#f7f3e4!important;color:#4a5e7c!important;border-color:#9eb1cd!important;box-shadow:0 0 0 2px #5e779d40;}.hint-button.is-active .control-mini{color:#4a5e7c;}
.board-frame{background:#f9f6eb!important;aspect-ratio:1536/1024!important;}
.board-paper{background:radial-gradient(ellipse at 48% 31%,#ffffff 0%,#faf8ef 75%,#f4eedb 100%)!important;}.board-paper:after{background-image:radial-gradient(#c2cedf 1px,transparent 1px)!important;}
.tray-icon,.step-number{background:#f8f5e9;color:#485b77;}.pieces-left{background:#faf7ee;color:#506584;}
.tray-navigation button{background:#fcfaf3;color:#506584;border-color:#f0e7ca;}.tray-navigation button:hover:not(:disabled){background:#f7f3e5;}
.tray-tile.is-selected{border-color:#5d769b;background:#f8f4e670;box-shadow:0 0 0 3px #6880a538,0 5px 14px #4e638229;}
.progress-card{background:linear-gradient(149deg,#7288aa 0%,#516788 72%,#3f5069 100%);color:#ffffff;box-shadow:0 16px 35px #4d62813d;}
.progress-card .side-eyebrow,.progress-card p,.progress-below,.progress-number span:last-child,.progress-divider{color:#fcfbf6;}.progress-track{background:#ffffff42;border-color:#ffffff36;}.progress-fill{background:linear-gradient(90deg,#bcc9dc,#efe7ca);}.progress-stars{color:#ced8e6}.progress-stars span{color:#c8d2e2;}
.howto-card .side-eyebrow{color:#445671;}.howto-card h3 span{color:#4d6281;}
.green-fact,.blue-fact{background:linear-gradient(135deg,#f8f4e7,#f4eed8)!important;border-color:#b7c5da!important;}.color-swatch{background:#becadd;border-color:#ffffff;box-shadow:0 6px 14px #4d628138;}
.green-fact span:not(.fact-shine){color:#4c5c73;}.green-fact strong{color:#3c4c64;}.green-fact small{color:#5a6678;}.fact-shine{color:#6a7d9a;}
.secondary-button{color:#506584;background:#fdfbf6;border-color:#cad4e3;}.secondary-button:hover{background:#f8f4e6;}
.victory-card h2 em,.victory-eyebrow{color:#4d6281;}.toast{color:#506584;border-color:#c8d3e3;background:#fcfbf6;}
.brand-name strong{font-size:16px;}.green-fact strong{font-size:20px;}.welcome-copy h1{font-size:clamp(58px,6.3vw,100px);}
@media(max-width:570px){.brand-name strong{font-size:11px;}.welcome-copy h1{font-size:clamp(40px,11.5vw,58px);}.green-fact strong{font-size:16px;}}

/* Cornflower: warm cream, golden centers and sage leaves. */
:root{--ink:#30425d;--muted:#586270;--ink-soft:#586270;--blue:#3c5274;--blue-deep:#233145;--leaf:#3c5274;--violet:#3c5274;--violet-deep:#233145;--purple:#3c5274;--purple-dark:#233145;--purple-bright:#8498b6;--lavender:#faf7ec;--cornflower:#f4edd7;--hairline:#b5c3d9;--line:#b5c3d9;--stroke:#b5c3d9;--page:#fefdfb;--paper:#ffffff;}

.primary-button,.brand-icon{background:linear-gradient(135deg,#f2ebd3,#b6c4da)!important;color:#233145!important;}.primary-button{box-shadow:0 6px 0 #798ba5,0 12px 25px #3c52742a!important;}.primary-button:hover:not(:disabled){box-shadow:0 9px 0 #798ba5,0 18px 30px #3c52742a!important;}.primary-button:active:not(:disabled){box-shadow:0 2px 0 #798ba5,0 4px 13px #3c527428!important;}.button-play-icon{color:#233145;}
.green-word{background:linear-gradient(120deg,#30425d,#3c5274 45%,#6981a5 80%,#8498b6);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;}.progress-card{background:linear-gradient(145deg,#53698a,#3c5274);color:#ffffff;}.progress-card .side-eyebrow,.progress-card p,.progress-below,.progress-number span:last-child,.progress-divider{color:#faf7ed;}.progress-fill{background:linear-gradient(90deg,#f2ebd3,#f1e9ce);}.progress-stars span{color:#a6b7d1;}
.green-fact,.blue-fact{background:linear-gradient(135deg,#f7f3e4,#f0e7ca)!important;border-color:#bcc9dc!important;}.green-fact strong,.green-fact span:not(.fact-shine){color:#3c5274;}.color-swatch{background:#f2ebd3;}.toast{background:#faf7ec;color:#30425d;border-color:#b5c3d9;}.header-home,.icon-button,.control-button,.puzzle-fullscreen-button{color:#30425d!important;background:#faf7ec!important;border-color:#b5c3d9!important;}
/* Board and piece-tray colors are literal values in the shared base CSS. */
.board-overline{color:#3c5274;}.board-overline span{color:#3c5274;}.board-footer-tip{color:#586270;}.board-footer-tip span{color:#3c5274;}
.zoom-controls>span,.zoom-controls strong{color:#30425d;}.zoom-controls button{background:#faf7ec;color:#30425d;border-color:#b5c3d9;}.zoom-controls button:hover:not(:disabled){background:#f3ecd5;border-color:#8d9fb9;}.zoom-controls button:focus-visible,.tray-tile:focus-visible{outline-color:#3c5274;}
.board-scroll{scrollbar-color:#8094b3 #faf7ec;}.board-frame{box-shadow:inset 0 0 0 1px #b5c3d9;}.tray-viewport{background:linear-gradient(120deg,#faf7ec,#ffffff);border-color:#b5c3d9;scrollbar-color:#8094b3 #faf7ec;}.tray-heading p,.tray-bottom,.tray-page-hint{color:#586270;}.tray-navigation span{color:#30425d;}.tray-navigation button{background:#faf7ec;color:#30425d;border-color:#b5c3d9;}.tray-navigation button:hover:not(:disabled){background:#f3ecd5;}.pieces-left{background:#faf7ec;color:#3c5274;}
.tray-tile.is-selected{border-color:#6f85a5;background:#f2ebd355;box-shadow:0 0 0 3px #6f85a538,0 5px 14px #3c527429;}.tray-tile canvas{filter:drop-shadow(0 2px 2px #23314566);}.drag-ghost{filter:drop-shadow(0 13px 13px #23314566);}
.target-outline{border-color:#6f85a5;background:#f1e9ce26;box-shadow:0 0 0 5px #8699b69c,0 0 25px #f2ebd3;animation-name:cornflower-target-glow;}
@keyframes cornflower-target-glow{0%,100%{box-shadow:0 0 0 4px #8699b691,0 0 18px #f2ebd388;}50%{box-shadow:0 0 0 8px #9dadc4ba,0 0 36px #f2ebd3b8;}}
/* Restart and victory dialogs share the complete Cornflower palette. */
.dialog-backdrop{background:#202834bc;}.dialog-card{color:#30425d;border-color:#ffffff;background:linear-gradient(145deg,#ffffff,#faf7ec);box-shadow:0 30px 90px #1e263170;}.dialog-glyph{filter:drop-shadow(0 7px 0 #3c527423);}.dialog-card h2{color:#233145;}.dialog-card p{color:#586270;}
.dialog-actions .secondary-button{color:#30425d;background:#fefdfb;border-color:#b5c3d9;}.dialog-actions .secondary-button:hover{background:#f3ecd5;border-color:#8d9fb9;}.dialog-actions .primary-button{background:linear-gradient(135deg,#f2ebd3,#b6c4da)!important;color:#233145!important;}.dialog-actions button:focus-visible{outline-color:#3c5274;}
.victory-card{border-color:#f4edd7;background:linear-gradient(145deg,#ffffff,#faf7ec);}.victory-decoration{color:#516686;}.victory-medal{background:linear-gradient(130deg,#f2ebd3,#faf7ec);border-color:#ffffff;box-shadow:0 8px 0 #b5c3d9,0 13px 26px #3c527438;}.victory-eyebrow{color:#3c5274;}.victory-card h2 em{color:#3c5274;}.victory-stats span{background:#faf7ec;border-color:#bcc9dc;color:#3c5274;}.toast{box-shadow:0 12px 50px #2331453d;}

/* Cornflower: cornflower-pink blossoms, cream backgrounds and dark berry text. */
:root{--ink:#30425d;--muted:#586270;--ink-soft:#586270;--blue:#3c5274;--blue-deep:#233145;--leaf:#3c5274;--violet:#3c5274;--violet-deep:#233145;--purple:#3c5274;--purple-dark:#233145;--purple-bright:#a7b8d1;--gold:#cbd5e4;--lavender:#faf7ec;--cornflower:#f4edd7;--hairline:#b5c3d9;--line:#b5c3d9;--stroke:#b5c3d9;--page:#fefdfb;--paper:#fff;}
.primary-button,.start-button,.save-button,.brand-icon,.brand-mark{background:linear-gradient(135deg,#f2ebd3,#b6c4da)!important;color:#233145!important;}.primary-button,.start-button,.save-button{box-shadow:0 6px 0 #798ba5,0 12px 25px #3c527428!important;}.primary-button:hover:not(:disabled),.start-button:hover,.save-button:hover:not(:disabled){background:linear-gradient(135deg,#f6f1e1,#cbd5e4)!important;}.primary-button:active:not(:disabled){box-shadow:0 2px 0 #798ba5,0 4px 13px #3c527428!important;}
.toast{background:#233145;color:#fff;border-color:#b5c3d9;}.dialog-backdrop,.confirm-overlay{background:#202b3bbc;}.dialog-card,.victory-card,.confirm-card{background:linear-gradient(145deg,#fff,#faf7ec);border-color:#f4edd7;color:#30425d;}.dialog-card h2,.confirm-card h2{color:#233145;}.dialog-card p,.confirm-card p{color:#586270;}.victory-card h2 em,.victory-eyebrow{color:#3c5274;}.victory-stats span{background:#faf7ec;color:#3c5274;border-color:#bcc9dc;}
.board-overline,.board-footer-tip span{color:#3c5274;}.board-footer-tip,.tray-heading p,.tray-bottom,.tray-page-hint{color:#586270;}.zoom-controls>span,.zoom-controls strong{color:#30425d;}.zoom-controls button,.tray-navigation button{background:#faf7ec;color:#30425d;border-color:#b5c3d9;}.tray-viewport{background:linear-gradient(120deg,#faf7ec,#fff);border-color:#b5c3d9;}.tray-tile.is-selected{border-color:#6f85a5;background:#cbd5e455;box-shadow:0 0 0 3px #6f85a538,0 5px 14px #3c527429;}
.progress-card{background:linear-gradient(145deg,#5a7296,#3c5274);color:#fff;}.progress-card .side-eyebrow,.progress-card p,.progress-below,.progress-number span:last-child,.progress-divider{color:#fff;}.progress-fill{background:linear-gradient(90deg,#cbd5e4,#faf7ec);}#progress-fill{background:#6f85a5;}.current-color-preview,.brush-demo-dot{background:#3c5274;}.complete-stars{color:#3c5274;}
