 :root{--paper:#f5f3ee;--ink:#252a2b;--muted:#777b77;--orange:#ee7652;--orange-dark:#d95d3e;--yellow:#f2c74e;--line:#e4e0d7;--white:#fffefa;--green:#8b9e72}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--paper);color:var(--ink)}body{font-family:'M PLUS Rounded 1c','DM Sans',sans-serif}button{font:inherit}.app-shell{width:min(100% - 96px,1220px);min-height:100svh;margin:0 auto;display:flex;flex-direction:column;position:relative}.topbar{height:92px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;flex:none}.brand{color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:10px;font-size:16px;font-weight:800;letter-spacing:.02em}.brand-mark{font-size:24px;color:var(--orange);line-height:1}.brand-accent{color:var(--orange)}.edition,.footer{font:600 9px 'DM Sans',sans-serif;letter-spacing:.19em;color:#a3a198}.screen{flex:1;position:relative;animation:arrive .45s ease both}.screen[hidden]{display:none!important}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.home-screen{display:grid;grid-template-columns:1.08fr .92fr;align-items:center;padding:44px 4px 72px;min-height:610px}.home-copy{padding-bottom:20px;z-index:1}.eyebrow{font:700 9px 'DM Sans',sans-serif;letter-spacing:.2em;color:#9b9a90;display:flex;align-items:center;gap:9px}.eyebrow-dot,.caption-dot{width:7px;height:7px;background:var(--orange);border-radius:50%;display:inline-block}.home-copy h1,.game-heading h1,.result-heading h1{font-size:clamp(36px,4vw,54px);line-height:1.5;letter-spacing:.025em;margin:24px 0 14px;font-weight:800}.headline-accent{color:var(--orange)}.intro{color:#777b77;line-height:2.1;font-size:14px;letter-spacing:.035em;margin:0 0 29px}.button{height:58px;border:0;border-radius:4px;padding:0 20px 0 25px;display:inline-flex;align-items:center;justify-content:space-between;gap:34px;min-width:226px;cursor:pointer;letter-spacing:.06em;font-size:13px;font-weight:700;transition:transform .2s,background .2s}.button:hover{transform:translateY(-2px)}.button-primary{background:var(--orange);color:white;box-shadow:0 8px 20px #db765333}.button-primary:hover{background:var(--orange-dark)}.button-arrow{font:20px 'DM Sans',sans-serif}.howto{display:flex;align-items:center;gap:15px;margin-top:46px;color:#85857e;font-size:10px;line-height:1.8;letter-spacing:.04em}.howto-step{display:flex;gap:9px;align-items:flex-start;white-space:nowrap}.step-number{font:700 10px 'DM Sans',sans-serif;color:var(--orange);padding-top:2px}.step-line{width:26px;height:1px;background:#d9d5cc}.hero-art{width:min(100%,460px);aspect-ratio:1;position:relative;justify-self:end;margin-right:15px;border-radius:50%;background:#ece9df;overflow:hidden}.art-sun{width:48%;height:48%;position:absolute;left:26%;top:25%;border-radius:50%;background:#f4c94f;box-shadow:0 0 0 23px #f4c94f1a}.art-circle{position:absolute;width:36%;height:47%;left:31%;top:30%;background:var(--orange);border-radius:48% 48% 42% 42%;transform:rotate(-9deg);box-shadow:inset -18px -7px 0 #cf6048}.art-circle:before{content:'';position:absolute;width:13%;height:13%;top:35%;left:29%;border-radius:50%;background:#343738;box-shadow:38px 8px 0 #343738}.art-circle:after{content:'';position:absolute;width:30%;height:12%;top:57%;left:38%;border-bottom:3px solid #343738;border-radius:50%}.art-orbit{position:absolute;border:1px solid #b9b6aa;border-radius:50%;width:80%;height:32%;left:10%;top:36%;transform:rotate(-29deg)}.orbit-two{width:72%;height:58%;left:14%;top:21%;transform:rotate(52deg);border-color:#d5d1c7}.art-star{position:absolute;color:var(--orange);font-size:36px}.star-one{top:17%;right:22%}.star-two{bottom:22%;left:18%;color:#8c9e74;font-size:27px}.art-label{position:absolute;right:12%;bottom:24%;font:700 8px/1.7 'DM Sans',sans-serif;letter-spacing:.17em;color:#8b897f;transform:rotate(-8deg)}.art-caption{position:absolute;left:50%;bottom:8%;transform:translateX(-50%);background:var(--white);padding:11px 17px;border-radius:30px;white-space:nowrap;font-size:10px;letter-spacing:.05em;box-shadow:0 4px 16px #5953440d;display:flex;align-items:center;gap:8px}.art-caption .caption-dot{width:6px;height:6px}.home-index{position:absolute;bottom:31px;left:4px;font:700 10px 'DM Sans',sans-serif;letter-spacing:.1em;color:#9b9a90}.home-index i{font-style:normal;color:var(--orange);padding:0 7px}.footer{height:54px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;flex:none;font-size:8px}.footer b{font-weight:500;color:#c0bdb4;margin-left:10px}.game-screen{padding:42px 4px 32px;min-height:600px}.game-heading{display:flex;align-items:center;justify-content:space-between}.game-heading h1,.result-heading h1{font-size:27px;line-height:1.4;margin:12px 0 0}.timer{text-align:right;display:flex;flex-direction:column;align-items:flex-end}.timer-label{font-size:10px;color:#99978e;letter-spacing:.1em}.timer-number{font:700 31px 'DM Sans',sans-serif;line-height:1.1;color:var(--orange)}.timer-number span{font:500 12px 'M PLUS Rounded 1c',sans-serif;margin-left:3px}.memory-stage{height:430px;display:flex;align-items:center;justify-content:center;gap:44px}.memory-card{width:300px;background:var(--white);padding:15px 15px 13px;border-radius:5px;box-shadow:0 12px 35px #514a3912;transform:rotate(-1deg)}.card-topline,.card-bottomline{display:flex;align-items:center;justify-content:space-between;color:#9b9a90;font-size:9px;letter-spacing:.1em}.card-topline{padding:0 2px 10px}.card-spark{color:var(--orange);font-size:16px}.memory-card img{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#fff;border:1px solid #f0eee8}.card-bottomline{justify-content:flex-start;gap:8px;padding:10px 2px 0}.card-bottomline .caption-dot{width:6px;height:6px}.memory-note{font-size:11px;color:#929087;line-height:1.9;display:flex;gap:12px;align-items:center}.note-icon{color:var(--orange);font:22px 'DM Sans',sans-serif}.progress-track{position:absolute;bottom:27px;left:4px;right:4px;height:3px;background:#e7e3dc;overflow:hidden}.progress-track span{display:block;height:100%;width:100%;background:var(--orange);transform-origin:left;transition:transform .1s linear}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:28px;align-items:stretch;margin-top:27px}.canvas-wrap{aspect-ratio:1;width:min(100%,min(57vw,calc(100svh - 285px)));justify-self:center;position:relative;background:var(--white);box-shadow:0 4px 24px #4541360b;border:1px solid #ebe8e0}.canvas-wrap canvas{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}.canvas-corner{position:absolute;width:13px;height:13px;border-color:var(--orange);pointer-events:none}.corner-tl{left:-1px;top:-1px;border-top:2px solid;border-left:2px solid}.corner-br{right:-1px;bottom:-1px;border-right:2px solid;border-bottom:2px solid}.canvas-hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;color:#cfcbc1;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:10px;letter-spacing:.1em;transition:opacity .2s}.canvas-hint span:first-child{font-size:27px;color:#dedbd3}.tools-panel{background:var(--white);border:1px solid #eae7df;padding:20px 17px;display:flex;flex-direction:column;gap:23px;min-height:0}.tool-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:#85847a;font-size:10px}.tool-label span:first-child{font:700 8px 'DM Sans',sans-serif;letter-spacing:.14em;color:#b2afa5}.palette{display:grid;grid-template-columns:repeat(4,1fr);gap:10px 8px}.color-button{width:27px;height:27px;padding:0;border:2px solid transparent;border-radius:50%;cursor:pointer;position:relative;display:grid;place-items:center}.color-button.selected:after{content:'';width:7px;height:7px;border:1.5px solid white;border-radius:50%;box-shadow:0 0 0 1px #ffffffaa}.brush-options{display:flex;gap:10px}.brush-button{width:39px;height:37px;border:1px solid #e8e5de;background:#fffefa;display:grid;place-items:center;cursor:pointer;border-radius:3px}.brush-button.selected{border-color:var(--orange);background:#fff6f2}.brush-dot{display:block;background:#555b59;border-radius:50%}.brush-dot.thin{width:4px;height:4px}.brush-dot.medium{width:8px;height:8px}.brush-dot.thick{width:13px;height:13px}.tool-divider{height:1px;background:#eeece6;margin-top:-7px}.tool-actions{display:flex;flex-direction:column;gap:9px}.tool-action{height:39px;display:flex;align-items:center;gap:11px;border:1px solid #e9e6df;background:transparent;color:#777870;padding:0 10px;cursor:pointer;font-size:10px;text-align:left;border-radius:3px}.tool-action.selected{border-color:var(--orange);background:#fff6f2;color:var(--orange-dark)}.eraser-icon,.clear-icon{font-size:17px;color:#919188;width:19px;text-align:center}.tool-tip{margin-top:auto;border-top:1px solid #efede7;padding-top:14px;font-size:9px;line-height:1.7;color:#aaa69b}.tool-tip span{color:var(--orange);margin-right:4px}.draw-footnote{text-align:center;color:#aaa79e;font-size:9px;letter-spacing:.04em;margin:14px 0 0}.live-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#92a57a;margin:0 6px 1px 0}.draw-timer.urgent .timer-number{color:#cf4936;animation:pulse .7s infinite alternate}@keyframes pulse{to{opacity:.55}}.result-screen{padding-bottom:48px}.result-heading{text-align:center}.result-heading .eyebrow{justify-content:center}.result-heading h1{font-size:34px;margin:12px 0 4px}.result-heading p{margin:0;color:#8d8c83;font-size:12px}.result-content{display:grid;grid-template-columns:230px minmax(0,1fr);gap:39px;align-items:center;width:min(100%,790px);margin:32px auto 27px}.score-card{height:218px;background:#f0ece2;position:relative;padding:25px 23px;overflow:hidden}.score-label{font-size:11px;letter-spacing:.08em;color:#85847b}.score-number{font:700 71px/.98 'DM Sans',sans-serif;color:var(--orange);margin-top:12px;letter-spacing:-.06em}.score-number small{font:700 16px 'M PLUS Rounded 1c',sans-serif;letter-spacing:0;margin-left:6px}.score-meter{width:100%;height:4px;background:#dbd6ca;margin:15px 0 9px}.score-meter span{height:100%;display:block;width:0;background:var(--orange);transition:width .8s ease}.score-card p{font-size:9px;color:#918d82;margin:0}.score-decoration{position:absolute;right:17px;top:17px;color:#d9cba4;font-size:22px}.comparison{display:grid;grid-template-columns:1fr 30px 1fr;align-items:center;gap:15px}.picture-card{min-width:0;background:var(--white);padding:10px;box-shadow:0 4px 15px #514a390c}.picture-label{display:flex;justify-content:space-between;color:#99968c;font-size:9px;letter-spacing:.06em;padding:0 1px 8px}.picture-label span:last-child{font:600 9px 'DM Sans',sans-serif;color:#c3bfb5}.picture-card img,.picture-card canvas{width:100%;aspect-ratio:1;object-fit:contain;background:white;display:block}.compare-mark{text-align:center;color:#d0c8b7;font:22px 'DM Sans',sans-serif}.retry-button{display:flex;margin:0 auto;min-width:220px;height:52px}.retry-button .button-arrow{transform:rotate(90deg)}@media(max-width:760px){.app-shell{width:calc(100% - 40px)}.topbar{height:67px}.edition{font-size:7px}.home-screen{grid-template-columns:1fr;padding:42px 0 65px;align-content:center;min-height:calc(100svh - 121px)}.home-copy{padding:0}.home-copy h1{font-size:38px;margin:18px 0 8px}.intro{font-size:12px;margin-bottom:20px}.button{height:52px;min-width:210px}.howto{margin-top:28px;gap:9px;font-size:9px}.step-line{width:16px}.hero-art{position:absolute;width:min(43vw,210px);right:0;top:32px;opacity:.8;margin:0}.art-caption{font-size:7px;padding:7px 9px}.art-star{font-size:22px}.art-label{font-size:6px}.home-index{bottom:19px}.footer{height:45px;font-size:6px}.game-screen{padding:25px 0 24px;min-height:calc(100svh - 112px)}.game-heading h1{font-size:21px}.timer-number{font-size:27px}.memory-stage{height:min(65vh,470px);flex-direction:column;gap:13px}.memory-card{width:min(65vw,290px)}.memory-note{font-size:9px;text-align:center}.note-icon{display:none}.progress-track{left:0;right:0;bottom:12px}.workspace{display:flex;flex-direction:column;gap:10px;margin-top:16px}.canvas-wrap{width:min(100%,calc(100svh - 300px));min-width:min(100%,260px)}.tools-panel{padding:8px 12px;display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}.tool-section{min-width:0}.tool-label{margin-bottom:5px;font-size:9px}.palette{display:flex;gap:7px;flex-wrap:wrap}.color-button{width:23px;height:23px}.brush-options{gap:6px}.brush-button{width:31px;height:29px}.tool-divider{display:none}.tool-actions{display:flex;flex-direction:row;grid-column:1/-1;gap:7px}.tool-action{height:31px;flex:1;justify-content:center;gap:5px;padding:0;font-size:8px}.eraser-icon,.clear-icon{font-size:14px;width:auto}.tool-tip{display:none}.draw-footnote{margin-top:7px;font-size:8px}.result-screen{padding-top:25px}.result-heading h1{font-size:28px}.result-heading p{font-size:10px}.result-content{grid-template-columns:1fr;gap:17px;margin:20px auto}.score-card{height:auto;padding:15px 19px;display:grid;grid-template-columns:1fr auto;align-items:center}.score-number{font-size:48px;grid-column:2;grid-row:1/3;margin:0}.score-meter{grid-column:1;margin:7px 0}.score-card p{grid-column:1}.score-decoration{font-size:15px;top:8px;right:8px}.comparison{gap:9px;width:min(100%,340px);margin:0 auto}.picture-card{padding:7px}.picture-label{font-size:8px;padding-bottom:5px}.retry-button{height:46px}.result-content{max-width:420px}}@media(max-width:380px){.app-shell{width:calc(100% - 28px)}.hero-art{width:37vw;top:20px}.home-copy h1{font-size:34px}.howto{gap:6px}.step-line{width:10px}.canvas-wrap{width:min(100%,calc(100svh - 320px));min-width:240px}.tools-panel{padding:7px}.palette{gap:5px}.color-button{width:21px;height:21px}}@media(orientation:landscape) and (max-height:600px){.topbar{height:50px}.game-screen{padding-top:15px}.workspace{grid-template-columns:minmax(0,1fr) 170px;margin-top:8px}.canvas-wrap{width:min(62vh,calc(100svh - 150px))}.tools-panel{padding:12px;gap:11px}.draw-footnote{margin-top:5px}.memory-stage{height:calc(100svh - 190px)}.memory-card{width:min(38vh,250px)}}
 .result-actions{display:flex;justify-content:center;align-items:center;gap:12px}.result-actions .retry-button{margin:0}.button-share{min-width:154px;height:52px;padding:0 18px;justify-content:center;gap:9px;background:var(--white);border:1px solid #dedbd2;color:var(--ink);box-shadow:0 4px 14px #514a390a}.button-share:hover{background:#fff}.x-mark{font:700 18px 'DM Sans',sans-serif}.share-note{margin:9px 0 0;text-align:center;color:#aaa69b;font-size:9px;letter-spacing:.03em}@media(max-width:760px){.result-actions{gap:8px}.result-actions .button{min-width:0;flex:1;padding:0 12px;gap:8px}.button-share{height:46px}.share-note{font-size:8px}}
