:root{color:#466179;font-synthesis:none;--blue:#dceffa;--teal:#238e94;--ink:#466179;background:#fff8e9;font-family:Hiragino Maru Gothic ProN,Yu Gothic,system-ui,sans-serif;font-weight:600}*{box-sizing:border-box}body{background:#fff8e9;margin:0}button,input{font:inherit}button{cursor:pointer;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border:0}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible{outline-offset:4px;outline:3px solid #238e94}button:active:not(:disabled){transform:translateY(2px)}a{color:#537ba2}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;top:0;left:0;overflow:hidden}.safe-probe{visibility:hidden;pointer-events:none;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);position:fixed}#app{max-width:none;margin:0;padding:0}#view{min-height:100dvh}h1,h2,p{margin:0}button{background:#e5f2f9;border-radius:18px;min-height:48px;padding:10px 20px}button:hover:not(:disabled){filter:brightness(.98)}.title-view{isolation:isolate;max-width:680px;min-height:100dvh;padding:clamp(20px,5vh,52px) 24px max(24px,env(safe-area-inset-bottom));text-align:center;flex-direction:column;align-items:center;gap:18px;margin:auto;display:flex;position:relative;overflow:hidden}.series-links{width:min(100%,400px);font-size:13px}.series-links summary{cursor:pointer;min-height:48px;color:var(--teal);background:#edf4e8;border-radius:16px;padding:12px}.series-links summary:focus-visible{outline:3px solid var(--teal);outline-offset:4px}.series-links nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;display:grid}.series-links a{background:#e5f2f9;border-radius:14px;justify-content:center;align-items:center;min-height:48px;padding:8px;text-decoration:none;display:flex}.eyebrow{letter-spacing:.12em;color:#6d8d9c;font-size:13px}.logo{letter-spacing:.03em;color:#4f89b1;text-shadow:0 4px #e7f2f9;font-size:clamp(48px,10vw,68px);font-weight:900;line-height:1.05;transform:rotate(-3deg)}.logo>span:first-child{color:#ff7940}.logo-bang{display:inline-block;transform:rotate(9deg)}.title-tagline{letter-spacing:.04em;font-size:17px}.title-tagline strong{color:#26999c}.mode-buttons{gap:14px;width:min(100%,480px);display:flex}.mode-card{border-radius:24px;flex-direction:column;flex:1;align-items:center;gap:5px;min-width:0;padding:17px 12px;display:flex;box-shadow:0 5px #c7e3ef}.mode-card.relaxed{background:#ddf3ef;box-shadow:0 5px #b9ded7}.mode-card.arcade{background:#e1effc}.mode-name{letter-spacing:.1em;font-size:25px;font-weight:850}.mode-card.relaxed .mode-name{color:#258f91}.mode-card.arcade .mode-name{color:#4c8cc5}.mode-card>span:nth-child(2){font-size:12px}.mode-card small{opacity:.8;margin-top:3px;font-size:11px;font-weight:600}.title-tools{gap:12px;margin-top:3px;display:flex}.title-tools button{background:0 0;min-width:92px}.lab-link{opacity:.75;font-size:11px;text-decoration:none}.game-view{grid-template-rows:var(--hud) calc(var(--cell)*10) var(--controls);gap:var(--gap);padding:calc(var(--safe-top) + var(--pad)) 12px calc(var(--safe-bottom) + var(--pad));-webkit-user-select:none;user-select:none;background:radial-gradient(at 50% 48%,#fffdf7 0,#fff8e9 72%);grid-template-columns:min(360px,100vw - 24px);place-content:center;display:grid;position:relative;overflow:clip}.game-hud{align-items:center;gap:8px;min-width:0;display:flex}.hud-info{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.mode-label{letter-spacing:.14em;color:#3a9198;font-size:11px;font-weight:800}.hud-info strong{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:19px;line-height:1.25}.hud-info>span:last-child{color:#72919c;font-size:11px}.next{flex-direction:column;align-items:center;gap:0;width:60px;display:flex}.next>span{letter-spacing:.14em;color:#6396b4;font-size:9px}.next>div{gap:0;width:60px;height:28px;display:flex}.next svg{width:30px;height:30px}.pause-button{background:#e0eff7;border-radius:50%;width:48px;min-width:48px;height:48px;padding:0;font-size:20px}.play-area{justify-content:center;align-items:center;display:flex;position:relative;overflow:visible}.board-frame{width:calc(var(--cell)*6);height:calc(var(--cell)*10);position:relative;overflow:visible}.board-grid{background-color:#edf5f8;background-image:linear-gradient(90deg,#b9d6e32b 1px,#0000 1px),linear-gradient(#b9d6e32b 1px,#0000 1px);background-size:16.6667% 10%;border-radius:18px;position:absolute;inset:0;box-shadow:0 0 0 3px #d8e9ed,0 7px #d8e9ed80,inset 0 2px 9px #aecdda22}.board-layer,.overlay-layer{pointer-events:none;position:absolute;inset:0;overflow:visible}.board-layer{z-index:2}.overlay-layer{z-index:3}.piece{transform-origin:50% 90%;pointer-events:none;position:absolute}.piece svg{width:100%;height:100%;display:block;overflow:visible}.piece.ghost svg{opacity:.25;filter:saturate(.7)}#active-layer .piece{filter:drop-shadow(0 2px #ffffffc9)}#feedback-layer{z-index:5}.board-hint{white-space:nowrap;color:#85a0a8;font-size:12px;display:none;position:absolute;left:calc(100% + 22px)}.controls{z-index:6;align-items:stretch;gap:4px;min-width:0;display:flex}.controls button{background:#dfedf7;border-radius:16px;flex:1;min-width:48px;padding:0;font-size:27px;line-height:1;box-shadow:0 4px #bad6e6}.controls .commit-button{letter-spacing:.05em;color:#277f85;background:#c7e9e4;flex:1.65;min-width:80px;font-size:17px;box-shadow:0 4px #9bcfc7}.mode-line{white-space:nowrap;align-items:center;gap:6px;font-size:11px;line-height:14px;display:flex}.mode-line .mode-label{letter-spacing:.03em}#placement-hint{color:#397884;letter-spacing:0}.preview-match:after{content:"";pointer-events:none;border:2px dashed #466179;border-radius:38%;position:absolute;inset:3%}.controls[data-scheme=pad]{grid-template-columns:minmax(0,1fr) 56px 80px;gap:6px;display:grid}.controls .rotate-button{font-size:15px}.controls .move-pad{touch-action:pan-y pinch-zoom;background:#d7eeea;min-width:48px;font-size:12px;line-height:1.4;box-shadow:0 4px #b7dad3}.move-pad span,.move-pad small{display:block}.move-pad small{font-size:11px}.controls[data-scheme=board]{grid-template-columns:1fr 1.35fr;gap:8px;display:grid}.board-frame[data-input=board]{touch-action:pan-y pinch-zoom}.setting select{font:inherit;color:#466179;background:#e5f2f9;border:1px solid #c7dee5;border-radius:12px;width:136px;min-height:48px;padding:8px}.setting input[type=range]{width:128px;height:48px}.size-warning{z-index:20;text-align:center;background:#fff8e9f5;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:24px;display:flex;position:absolute;inset:0}.size-warning[hidden]{display:none}.size-warning p{font-size:20px}.size-warning span{font-size:13px}dialog{color:#466179;background:#fffdf4;border:0;border-radius:28px;width:min(400px,100% - 32px);max-height:calc(100dvh - 40px);padding:28px 24px;box-shadow:0 20px 100px #47636b30}dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#3757684f}#modal-content{text-align:center;flex-direction:column;gap:18px;display:flex}dialog h2{font-size:24px;line-height:1.35}dialog p{font-size:14px;line-height:1.8}button.primary{color:#257f85;background:#c4e8e4;min-width:200px;font-size:18px;font-weight:800;box-shadow:0 4px #9fcfc8}button.quiet{background:0 0;font-size:14px}.setting{text-align:left;justify-content:space-between;align-items:center;gap:12px;min-height:64px;display:flex}.setting small{color:#85a0a8;margin-top:4px;font-size:11px;display:block}.setting input{accent-color:#238e94;cursor:pointer;width:24px;height:24px}.help-pieces{justify-content:center;gap:0;display:flex}.help-pieces svg{width:64px;height:64px}.help-modes p{text-align:left;margin-bottom:10px;font-size:12px}.keyboard-help{color:#7993a1;font-size:11px!important}.result-view{max-width:500px;min-height:100dvh;padding:36px 24px max(24px,env(safe-area-inset-bottom));text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:16px;margin:auto;display:flex}.result-mascot{width:136px;height:136px;transform:rotate(-7deg)}.result-mascot svg{width:100%;height:100%}.result-view h1{letter-spacing:.04em;font-size:34px}.result-lead{font-size:14px}.result-metric{color:#268e94;background:#e1f1f1;border-radius:24px;align-items:baseline;gap:8px;margin:6px;padding:14px 26px;display:flex}.result-metric strong{font-variant-numeric:tabular-nums;font-size:48px;line-height:1}.result-metric span{font-size:14px}.result-view>p:not(.result-lead){font-size:12px}.result-view .record-note{color:#be7649;min-height:18px}.result-view button{width:min(100%,280px)}@media (width<=440px){.title-view{gap:14px;padding-top:26px}.mode-buttons{flex-direction:column;gap:12px;width:min(100%,320px)}.mode-card{gap:3px;padding:12px 14px;position:relative}.mode-name{font-size:23px}.mode-card small{font-size:10px;position:absolute;top:12px;right:13px}.logo{font-size:50px}.eyebrow{font-size:11px}.title-tools{margin-top:0}.title-tagline,.controls .commit-button{font-size:15px}.hud-info strong{font-size:17px}}@media (width>=900px){.board-hint{display:block}.game-view:before{content:"524 POP!";color:#e8bd83;font-size:30px;font-weight:900;position:absolute;top:42%;left:calc(50% - 410px);transform:rotate(-8deg)}.game-view:after{content:"← →  移動\a ↑ 回転　Z 逆回転\a Space で確定";white-space:pre;color:#90a4aa;font-size:13px;line-height:2;position:absolute;top:52%;left:calc(50% + 230px)}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto}}.record-tools{text-align:left;border-top:1px solid #dfebe7;width:100%;max-width:320px;font-size:12px}.record-tools summary{cursor:pointer;color:#537b87;align-items:center;min-height:48px;display:flex}.record-tools p{margin:8px 0;font-size:12px;line-height:1.6}.record-tools button{width:100%;min-height:48px}.record-tools textarea{resize:vertical;color:#466179;background:#fffdf7;border:1px solid #c7dee5;border-radius:12px;width:100%;height:160px;padding:10px;font:11px ui-monospace,monospace}button.hud-info{text-align:left;background:0 0;border-radius:8px;align-items:flex-start;gap:1px;min-height:48px;padding:0;line-height:normal}button.hud-info:disabled{opacity:1}.hud-info .mode-line{max-width:100%;overflow:hidden}.hud-info>span:last-child{font-size:11px}.hud-info strong{font-size:17px}.game-hud{gap:6px}.lesson-entry{color:#527c68;background:#edf4e8;min-height:48px;padding:10px 24px}.lesson-list{text-align:center;flex-direction:column;justify-content:center;gap:18px;max-width:440px;min-height:100dvh;margin:auto;padding:36px 24px;display:flex}.lesson-list h1{color:#287e85;font-size:28px}.lesson-card{text-align:left;background:#e4f1ee;flex-direction:column;gap:8px;padding:18px;display:flex}.lesson-card strong{font-size:18px}.lesson-card span{font-size:13px;line-height:1.7}.lesson-guide{z-index:4;text-align:center;pointer-events:none;background:#fffdf4eb;border-radius:14px;width:84%;max-width:260px;padding:8px 12px;font-size:12px;line-height:1.7;position:absolute;top:24%;left:8%}.game-view[data-state=presenting] .lesson-guide,.game-view[data-paused=true] .lesson-guide{visibility:hidden}.board-frame{isolation:isolate}.board-grid{z-index:1}.background-layer{z-index:0;pointer-events:none;position:absolute;inset:0}#entry-layer{z-index:4}.entry-mark{color:#76969e;font-size:12px;line-height:12px;position:absolute;top:-8px;transform:translate(-50%)}#entry-layer[data-warning=true] .entry-mark{color:#ad6838;background:#fff0db;border-radius:8px;padding:0 5px;box-shadow:0 0 0 1px #d0a170}.entry-blocked{border:2px solid #ba7645;border-radius:12px;position:absolute}.game-view[data-paused=true] #entry-layer{visibility:hidden}.resume-cue{z-index:10;background:#fffdf4ee;border:1px solid #d5e7e6;border-radius:24px;flex-direction:column;align-items:center;gap:14px;padding:18px 24px;display:flex;position:absolute;top:40%;left:50%;transform:translate(-50%);box-shadow:0 4px 16px #47636b18}.resume-cue p{color:#287e85;white-space:nowrap;font-size:24px}.resume-cue button{min-width:144px;min-height:48px;font-size:14px}.game-view[data-preparing=true] .controls{opacity:.45}.title-tools{flex-wrap:wrap;justify-content:center}.secondary-metrics{white-space:nowrap;color:#72919c;align-items:center;gap:5px;max-width:100%;font-size:11px;display:flex}.speed-badge{color:#537e80;background:#e4efeb;border-radius:7px;padding:1px 5px;font-size:10px;line-height:1.4;display:inline-block}.resume-cue{width:min(144px,calc(var(--cell)*3 - 8px));border-radius:18px;gap:8px;padding:12px 8px;top:20%}.resume-cue p{font-size:18px}.resume-cue button{width:100%;min-width:0;padding:8px 0;font-size:13px}.piece[data-color=yellow]{--sending-glow:#d2a624}.piece[data-color=red]{--sending-glow:#d55f55}.piece[data-color=blue]{--sending-glow:#438ac9}.piece[data-color=green]{--sending-glow:#3c956b}.piece[data-color=purple]{--sending-glow:#8059ba}.piece[data-sending=true] [data-body]{stroke:#fffdf4;stroke-width:4px;paint-order:stroke fill;filter:drop-shadow(0 0 4px var(--sending-glow))}.secondary-metrics #goal-progress{color:#287e85;font-weight:800}.secondary-metrics #goal-progress[data-reached=true]{color:#a6602d;background:#fff0d4;border-radius:6px;padding:0 3px}@media (width<=350px){.secondary-metrics{gap:3px;font-size:10px}.speed-badge{padding:1px 3px;font-size:9px}}.title-view{max-width:620px;padding:22px 20px max(24px,env(safe-area-inset-bottom));background:radial-gradient(at 50% 25%,#ffeccc66,#0000 65%);gap:16px}.pop-cover{background:#fffdf6;border:2px solid #fff;border-radius:32px;flex-direction:column;align-items:center;gap:8px;width:100%;max-width:480px;padding:16px 12px 14px;display:flex;position:relative;box-shadow:0 8px 30px #bda36f1a}.pop-cover .eyebrow{letter-spacing:.08em;font-size:11px}.pop-cover .logo{text-shadow:0 3px #ffe7b5,2px 0 #fff,-2px 0 #fff;font-size:clamp(42px,10vw,65px)}.pop-cover .entry-art{margin-top:4px}.pop-cover .title-tagline{margin-top:3px;font-size:15px}.title-view .mode-buttons{gap:12px;width:100%;max-width:480px}.title-view .mode-card{--entry-button-shadow:#80c5b6;background:linear-gradient(135deg,#cdf4e6,#a6e3d4);border:2px solid #fff;min-height:85px;padding:12px}.title-view .mode-card.arcade{--entry-button-shadow:#80b4dd;background:linear-gradient(135deg,#d7edff,#b0d7ff)}.title-view .mode-name{font-size:23px}.title-view .mode-card small{opacity:1;font-size:10px}.title-view .lesson-entry{background:#fffdf4;border:1px solid #dddbc8;width:min(100%,340px);min-height:48px}@media (width<=440px){.title-view{gap:13px;padding:16px 16px 24px}.title-view .mode-buttons{flex-direction:row}.title-view .mode-card{gap:5px;min-height:104px;padding:10px 4px}.title-view .mode-card small{margin:0;position:static}.title-view .mode-name{font-size:21px}.title-view .mode-card>span:nth-child(2){letter-spacing:-.03em;font-size:10px}.pop-cover{padding:12px 8px}.pop-cover .eyebrow{font-size:10px}.title-view .title-tools{gap:8px}}@media (height<=600px){.title-view{gap:10px;padding-top:12px}.pop-cover{gap:5px}.pop-cover .logo{font-size:42px}.title-view .mode-card{min-height:90px}}.game-view{background:radial-gradient(at 3% 18%,#c7eadb55,#0000 42%),radial-gradient(at 98% 78%,#ffdda355,#0000 42%),#fff8e9}.game-hud{border-radius:22px;box-shadow:0 3px 14px #64979812}.game-hud .hud-info{background:#fffdf4;border-radius:18px;box-shadow:inset 0 0 0 1px #d9e8df}.game-hud .next{background:#e6f3ee;border-radius:14px;box-shadow:inset 0 0 0 1px #fff}.game-hud .pause-button{color:#27898b;background:#fffdf4;box-shadow:0 3px #cbded6}.board-grid{background-color:#eff8f5;box-shadow:0 0 0 3px #bbd8d0,0 7px #97c8bb55,inset 0 2px 12px #689c9720}.controls .move-pad{background:linear-gradient(135deg,#e0f5eb,#c2e7dd);box-shadow:0 4px #a4d1c3}.controls .commit-button{color:#fff;background:linear-gradient(135deg,#62bbac,#389e9d);box-shadow:0 4px #277d82}#modal{background:radial-gradient(at 90% 0,#e0f1e7,#0000 55%),#fffdf6;padding:24px 20px;box-shadow:0 20px 70px #35565a40,inset 0 0 0 2px #fff}#modal-content{gap:14px}#modal h2{color:#2d8489}#modal-content>p{font-size:13px;line-height:1.7}#modal .setting{background:#f1f6ee;border-radius:14px;min-height:60px;padding:10px 12px;box-shadow:inset 0 0 0 1px #dce8dc}#modal .setting input[type=range]{min-width:80px;max-width:110px}#modal .setting select{color:#466179;max-width:155px;min-height:38px;font:inherit;background:#fffdf6;border:1px solid #c3d7cd;border-radius:9px;font-size:12px}#modal button:not(.quiet){background:#e2f0e7}#modal button.primary{color:#fff;background:linear-gradient(135deg,#64bfae,#349797);box-shadow:0 4px #277b80}#modal .help-modes{text-align:left;background:#eaf4ed;border-radius:18px;padding:12px 14px}#modal .help-modes p:last-child{margin-bottom:0}.lesson-list{background:radial-gradient(at 50% 5%,#d8f0df77,#0000 65%);justify-content:flex-start;gap:14px;padding:24px 20px}.lesson-list .panel-art{align-self:center;max-width:360px}.lesson-card{background:#fffdf6;border-radius:22px;padding:18px;position:relative;box-shadow:0 4px #d0e1d4,inset 0 0 0 2px #fff}.lesson-card:nth-of-type(2){background:#f0f7f3}.lesson-card:nth-of-type(3){background:#fff4da}.result-view{padding:24px 20px max(24px,env(safe-area-inset-bottom));background:radial-gradient(at 50% 25%,#ffedbd66,#0000 65%);justify-content:flex-start;gap:14px}.result-summary{background:linear-gradient(150deg,#fffef9,#f2f8ec);border:2px solid #fff;border-radius:30px;flex-direction:column;align-items:center;gap:12px;width:100%;padding:20px 16px;display:flex;box-shadow:0 8px 30px #b9a77724}.result-summary>p{font-size:12px;line-height:1.6}.result-summary h1{font-size:clamp(26px,7.5vw,34px)}.result-mascot{isolation:isolate;position:relative;transform:none}.result-mascot:before{content:"";z-index:-1;background:repeating-conic-gradient(#f7d57666 0deg 12deg,#0000 12deg 30deg);border-radius:50%;position:absolute;inset:-7px;-webkit-mask-image:radial-gradient(#0008,#0000 72%);mask-image:radial-gradient(#0008,#0000 72%)}.result-mascot:after{content:"";z-index:-1;background:radial-gradient(circle at 4% 14%,#f4ce55 0 3px,#0000 4px),radial-gradient(circle at 94% 25%,#e89a91 0 3px,#0000 4px),radial-gradient(circle at 98% 79%,#86bcde 0 3px,#0000 4px),radial-gradient(circle at 2% 76%,#99c893 0 3px,#0000 4px);position:absolute;inset:17px -34px}.result-view .result-metric{background:#e0f2e9;border-radius:20px;justify-content:center;width:min(100%,310px);margin:0;padding:16px 12px;box-shadow:inset 0 0 0 2px #fff,0 4px #c4dfd0}.result-view .record-note{color:#8d6431;background:#fff0c9;border-radius:999px;padding:6px 12px}.result-view button.primary{color:#fff;background:linear-gradient(135deg,#63beac,#349b9c);box-shadow:0 4px #287e83}.result-view button:not(.primary){background:#fffdf5;box-shadow:inset 0 0 0 1px #dedfcf}@media (width<=350px){.result-summary{gap:10px;padding:16px 12px}.result-summary .result-mascot{width:112px;height:112px}#modal{padding:20px 16px}#modal-content{gap:12px}#modal .setting{padding:9px 10px}#modal .setting select{max-width:120px}.lesson-card{padding:14px}}:root{--pop-paper:#fffdf1;--pop-table:#eee5ce;--pop-ink:#344e50;--pop-muted:#697973;--pop-mint:#c6e6d2;--pop-teal:#277f77;--pop-edge:#cabd98;color:var(--pop-ink);--ink:var(--pop-ink);--teal:var(--pop-teal);background:var(--pop-table)}body{background:radial-gradient(ellipse at 50% 12%, #fff9e8 0, transparent 72%), url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%20viewBox='0%200%20160%20160'%3e%3cg%20fill='none'%20stroke='%23aa987b'%20stroke-width='.7'%20stroke-linecap='round'%20opacity='.12'%3e%3cpath%20d='M7%2013l5%201m26%208l7-1m34-13l4%202m34%208l9-1M18%2048l7%201m31-12l4%202m36%2011l6-1m32-13l8%202M6%2078l8-1m29-9l6%201m33%2010l4-1m27-8l8%201m26%209l6-1M17%20105l8%201m27-12l5%201m31%2013l7-2m24-8l8%201M4%20137l7%201m30-11l6-1m25%2018l8%201m32-15l5%202m21%2013l8-1'/%3e%3c/g%3e%3cg%20fill='%23fffdf4'%20opacity='.35'%3e%3ccircle%20cx='21'%20cy='23'%20r='1'/%3e%3ccircle%20cx='66'%20cy='17'%20r='.7'/%3e%3ccircle%20cx='106'%20cy='34'%20r='1'/%3e%3ccircle%20cx='35'%20cy='66'%20r='.8'/%3e%3ccircle%20cx='78'%20cy='54'%20r='1'/%3e%3ccircle%20cx='147'%20cy='55'%20r='.7'/%3e%3ccircle%20cx='22'%20cy='120'%20r='1'/%3e%3ccircle%20cx='68'%20cy='115'%20r='.8'/%3e%3ccircle%20cx='109'%20cy='150'%20r='1'/%3e%3c/g%3e%3c/svg%3e") repeat, var(--pop-table)}button{color:var(--pop-ink)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-color:var(--pop-teal)}.title-view,.lesson-list,.result-view{color:var(--pop-ink);background:0 0}.title-view{gap:14px}.pop-cover{background:var(--pop-paper);border:0;border-radius:14px 19px 17px 13px;gap:9px;padding:18px 14px 16px;box-shadow:0 2px #d7cdaa,0 8px 18px #77644619,inset 0 0 0 1px #fff}.pop-cover:before,.result-summary:before{content:"";pointer-events:none;background:#e8dcb5a8;width:64px;height:19px;position:absolute;top:-6px;left:50%;transform:translate(-50%)rotate(-3deg);box-shadow:inset 0 0 0 1px #f7eac966}.pop-cover .eyebrow,.lesson-list>.eyebrow{color:#6f7765;letter-spacing:.075em;font-weight:750}.pop-cover .logo{color:#2e8580;text-shadow:0 3px 0 #d4dcc2, 2px 0 var(--pop-paper), -2px 0 var(--pop-paper);transform:rotate(-2deg)}.pop-cover .logo>span:first-child{color:#e77b42}.pop-cover .title-tagline{color:#455b51;font-size:14px}.pop-cover .title-tagline strong{color:var(--pop-teal)}.title-placement{color:#52685c;letter-spacing:0;margin-top:4px;font-size:12px;display:block}.title-view .mode-card{--entry-button-shadow:#9bbd9f;background:#c9e6d2;border:0;border-radius:13px 16px 14px 17px;box-shadow:inset 0 0 0 1px #f6fff3,0 4px #9bbd9f,0 7px 13px #76644718!important}.title-view .mode-card.arcade{--entry-button-shadow:#ccae7d;background:#f6d69f;box-shadow:inset 0 0 0 1px #fff4cf,0 4px #ccae7d,0 7px 13px #76644718!important}.title-view .mode-card .mode-name{color:#2a6756;letter-spacing:.04em}.title-view .mode-card.arcade .mode-name{color:#8b6032}.title-view .mode-card>span:nth-child(2){color:#3d5f50}.title-view .mode-card.arcade>span:nth-child(2){color:#775d3b}.title-view .mode-card small{color:#52685c}.title-view .mode-card.arcade small{color:#7d6446}.title-view .entry-cta:after{animation:none;display:none}.title-view .lesson-entry,.title-tools button,.series-links summary{color:#526454;background:#fffdf0;border:0;border-radius:12px;box-shadow:inset 0 0 0 1px #d7cfb6,0 2px #d2c8a8}.title-tools button{min-width:100px}.series-links summary{background:#e9ead7;font-size:12px}.series-links a{color:#596c59;background:#fffbee;border-radius:10px}.lab-link{color:#6c7667}.pop-tableau{isolation:isolate;pointer-events:none;background:#edead5;border-radius:13px;flex-shrink:0;width:100%;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px #d9d0b4}.pop-tableau[data-scene=title]{aspect-ratio:24/11;animation:.4s ease-out both pop-paper-arrive}.pop-tableau[data-scene=result]{aspect-ratio:8/3}.pop-tableau[data-scene=practice],.pop-tableau[data-scene=help]{aspect-ratio:16/5;align-self:center;max-width:360px;height:auto}.pop-tableau[data-scene=practice]{aspect-ratio:20/7}.pop-paper-art{pointer-events:none;width:100%;height:auto;display:block;position:relative}.pop-lesson-art{pointer-events:none;background:#eef0df;border-radius:8px;width:100%;display:block;overflow:hidden;box-shadow:inset 0 0 0 1px #dedbc3}@keyframes pop-paper-arrive{0%{opacity:.65;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}[data-entry-motion=reduced] .pop-tableau,[data-motion=reduced] .pop-tableau,dialog:not([open]) .pop-tableau,[hidden] .pop-tableau{animation:none}[data-entry-paused=true] .pop-tableau{animation-play-state:paused}.game-view{isolation:isolate;background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%20viewBox='0%200%20160%20160'%3e%3cg%20fill='none'%20stroke='%23aa987b'%20stroke-width='.7'%20stroke-linecap='round'%20opacity='.12'%3e%3cpath%20d='M7%2013l5%201m26%208l7-1m34-13l4%202m34%208l9-1M18%2048l7%201m31-12l4%202m36%2011l6-1m32-13l8%202M6%2078l8-1m29-9l6%201m33%2010l4-1m27-8l8%201m26%209l6-1M17%20105l8%201m27-12l5%201m31%2013l7-2m24-8l8%201M4%20137l7%201m30-11l6-1m25%2018l8%201m32-15l5%202m21%2013l8-1'/%3e%3c/g%3e%3cg%20fill='%23fffdf4'%20opacity='.35'%3e%3ccircle%20cx='21'%20cy='23'%20r='1'/%3e%3ccircle%20cx='66'%20cy='17'%20r='.7'/%3e%3ccircle%20cx='106'%20cy='34'%20r='1'/%3e%3ccircle%20cx='35'%20cy='66'%20r='.8'/%3e%3ccircle%20cx='78'%20cy='54'%20r='1'/%3e%3ccircle%20cx='147'%20cy='55'%20r='.7'/%3e%3ccircle%20cx='22'%20cy='120'%20r='1'/%3e%3ccircle%20cx='68'%20cy='115'%20r='.8'/%3e%3ccircle%20cx='109'%20cy='150'%20r='1'/%3e%3c/g%3e%3c/svg%3e") repeat, url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='480'%20height='300'%20viewBox='0%200%20480%20300'%3e%3crect%20width='480'%20height='300'%20rx='24'%20fill='%23f5efdf'/%3e%3cpath%20d='M0%20241Q166%20229%20480%20258V300H0Z'%20fill='%23ece3cf'/%3e%3cg%20fill='none'%20stroke='%23cbbb9d'%20stroke-width='1'%20stroke-linecap='round'%20opacity='.2'%3e%3cpath%20d='M4%2020l30%202m58%202l20-1m30%207l14-1m86-9l27%202m49-9l35%202m59%2014l17-1M22%2065l20%201m78-10l25%202m-78%2037l14-1m153-28l28-2m43%2012l24%201m60-16l25%201M5%20150l29-2m102-19l23%201m75%2025l21-1m44-18l23%201m61%2017l17-1M15%20217l25%201m100-11l30%201m71-19l22%201m61%2017l22-1m71%205l26-1M56%20269l20%201m43%2015l22-1m77-14l20%201m71%2013l22%201m60-17l24%201'/%3e%3c/g%3e%3cg%20stroke='%23635d52'%20stroke-width='.8'%20stroke-opacity='.08'%3e%3cpath%20d='M-12%2054L46%2033%2072%2070%209%2089Z'%20fill='%23cadbe1'/%3e%3cpath%20d='M413-13L461%201%20448%2048%20402%2036Z'%20fill='%23f4d1b0'/%3e%3cpath%20d='M432%20237L477%20223%20495%20265%20454%20283Z'%20fill='%23d5dfb7'/%3e%3cpath%20d='M-6%20270L30%20261%2039%20307H-6Z'%20fill='%23e1cce8'/%3e%3c/g%3e%3cpath%20d='M1%208Q167%203%20478%208M4%20292Q214%20297%20476%20291'%20fill='none'%20stroke='%23fffdf5'%20stroke-width='2'%20opacity='.7'/%3e%3c/svg%3e") center / cover no-repeat, var(--pop-table)}.game-hud{z-index:6;box-shadow:none;align-items:stretch;position:relative}.game-hud .hud-info{background:#fffdf0;border-radius:9px 12px 10px 8px;justify-content:center;gap:0;padding-left:10px;box-shadow:inset 0 0 0 1px #d9cfb3,0 2px #d5cba9}.game-hud .mode-line{gap:6px;width:100%;line-height:14px}.game-hud .mode-label{flex-shrink:0}.game-hud .hud-metric{align-items:center;gap:4px;width:100%;padding-right:5px;display:flex}.preview-link{color:#3e7962;white-space:nowrap;margin-left:auto;font-size:11px;font-weight:800}.hud-info:not(:disabled) #placement-hint:after{content:none}.game-hud .mode-label{color:#347a6e;letter-spacing:.04em;font-size:10px}.hud-info strong{color:#344e45;font-size:20px;line-height:1.15}.hud-info .secondary-metrics{color:#6c7665;line-height:14px}.secondary-metrics #goal-progress{color:#3e7962}.secondary-metrics #goal-progress[data-reached=true]{color:#855625;background:#f9dfa7}.speed-badge{color:#706651;background:#eee9d6}#placement-hint{text-overflow:ellipsis;white-space:nowrap;color:#4a7464;min-width:0;font-size:12px;overflow:hidden}#placement-hint[data-kind=preview]{color:#577361}#placement-hint[data-kind=receipt]{color:#317353;font-weight:850}#placement-hint[data-kind=receipt]:after{content:""}#placement-hint[data-kind=off],#placement-hint[data-kind=none]{color:#848572;font-weight:600}#placement-hint[data-kind=resolving]{color:#8d7247}.game-hud .next{background:#eee9d6;border-radius:9px 8px 11px 9px;justify-content:center;gap:1px;width:62px;box-shadow:inset 0 0 0 1px #d6caab,0 2px #cbbf9c}.next>span{color:#726850;letter-spacing:.14em;font-size:9px;font-weight:850}.game-hud .pause-button{color:#577257;background:#fefbf0;border-radius:12px;align-self:center;box-shadow:inset 0 0 0 1px #d8ccb0,0 3px #bdbb97}.board-frame:before{content:"";z-index:0;pointer-events:none;background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='360'%20height='600'%20viewBox='0%200%20360%20600'%3e%3crect%20x='8'%20y='11'%20width='346'%20height='586'%20rx='25'%20fill='%23766a50'%20opacity='.14'/%3e%3crect%20x='3'%20y='3'%20width='354'%20height='586'%20rx='24'%20fill='%23d3bb91'/%3e%3cpath%20d='M23%203H337Q357%203%20357%2027V564Q357%20589%20333%20589H27Q3%20589%203%20564V27Q3%203%2023%203Z'%20fill='none'%20stroke='%239c8663'%20stroke-width='1.5'/%3e%3crect%20x='12'%20y='12'%20width='336'%20height='560'%20rx='16'%20fill='%23faf6ea'/%3e%3cpath%20d='M28%2012H332Q348%2012%20348%2028V34H12V28Q12%2012%2028%2012Z'%20fill='%23bdaa88'%20opacity='.45'/%3e%3cpath%20d='M12%2034H348M12%20572H348'%20stroke='%23c9b591'%20stroke-width='1'/%3e%3cpath%20d='M12%2036V552M348%2036V552'%20stroke='%23fdfaf2'%20stroke-width='3'/%3e%3cpath%20d='M14%20578H344'%20stroke='%23efe0c1'%20stroke-width='4'%20stroke-linecap='round'/%3e%3cg%20stroke='%23897454'%20stroke-width='.8'%20opacity='.17'%3e%3cpath%20d='M42%20578v5m5-5v5m5-5v5m5-5v5m5-5v5m5-5v5m235-5v5m5-5v5m5-5v5m5-5v5m5-5v5'/%3e%3c/g%3e%3c/svg%3e") 50%/100% 100% no-repeat,#d5c79e;border-radius:14px 13px 16px 15px;position:absolute;inset:-3px -5px -5px;box-shadow:0 3px #b3a780,0 8px 13px #74654924,inset 0 1px #fff9}.board-grid{background-color:#e9eddb;background-image:linear-gradient(90deg,#9ea58d19 1px,#0000 1px),linear-gradient(#9ea58d19 1px,#0000 1px);border-radius:9px 8px 11px 10px;box-shadow:inset 0 2px 5px #7c806429,inset 0 -2px #f9f8e4,0 0 0 1px #bfb897}.entry-mark{color:#738268}.entry-blocked{border-color:#b27644}#entry-layer[data-warning=true] .entry-mark{color:#995525;background:#fae7bb;box-shadow:0 0 0 1px #b88b57}.board-hint{color:#6e7b66}.controls{position:relative}.controls button{color:#466453;background:#e5ead8;border-radius:12px 11px 14px 13px;box-shadow:inset 0 0 0 1px #fffbed,0 4px #b8c1a5,0 5px 8px #71634116}.controls .move-pad{color:#466a50;background:#d7e7d0;position:relative;box-shadow:inset 0 0 0 1px #f6fae9,0 4px #a6b798,0 5px 8px #71634116}.controls .move-pad:before,.controls .move-pad:after{content:"";pointer-events:none;border:0 solid #658063;border-width:0 0 2px 2px;width:7px;height:7px;position:absolute;top:50%;transform:translateY(-50%)rotate(45deg)}.controls .move-pad:before{left:14px}.controls .move-pad:after{right:14px;transform:translateY(-50%)rotate(225deg)}.move-pad small{color:#64765b}.controls .rotate-button{color:#866637;background:#fff1c7;box-shadow:inset 0 0 0 1px #fff9e6,0 4px #d3bd8a,0 5px 8px #71634116}.controls .commit-button{color:#fffdf0;letter-spacing:.06em;background:#3e8d72;font-weight:850;box-shadow:inset 0 1px #a2c8a4,0 4px #2c6652,0 5px 8px #71634124}.game-view[data-mode=arcade] .commit-button{color:#382414;background:#cf8344;box-shadow:inset 0 1px #eabf84,0 4px #a16032,0 5px 8px #71634124}.controls button:active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 0 0 1px #fff9,0 1px #a9ae8a}.lesson-guide,.resume-cue{color:#425b4b;background:#fffcecef;border:0;border-radius:9px;box-shadow:inset 0 0 0 1px #d1c8a9,0 3px 8px #6b634321}.resume-cue p{color:#37775f}.resume-cue button{background:#d5e6cf;border-radius:9px}.size-warning{color:#53614c;background:#f6f0defa}.lesson-list{gap:14px}.lesson-list h1{color:#36765d}.lesson-card,.lesson-card:nth-of-type(2),.lesson-card:nth-of-type(3){background:#fffced;border-radius:12px 15px 13px 10px;box-shadow:inset 0 0 0 1px #fffdf5,0 3px #d1c7a7,0 6px 12px #84704a12}.lesson-card strong{color:#347159}.lesson-card span{color:#647260}#modal,dialog.chain-dialog{color:var(--pop-ink);background:var(--pop-paper);border-radius:15px 18px 16px 13px;box-shadow:inset 0 0 0 1px #fff,0 3px #cfc09a,0 20px 60px #4e51383b}dialog::backdrop,dialog.chain-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#454d3c61}#modal h2,.chain-dialog h2{color:#39765d}#modal .setting{background:#eeefdf;border-radius:10px;box-shadow:inset 0 0 0 1px #e3dfc9}#modal .setting small{color:#6c7663}#modal .setting select{color:#4d6550;background:#fffcf0;border-color:#c9c9ac}.setting input{accent-color:#438369}#modal button:not(.quiet),.chain-toolbar button{color:#52684d;background:#e2e8d4;border-radius:10px}#modal button.primary,.result-view button.primary{color:#fffef2;background:#438b70;border-radius:12px;box-shadow:inset 0 1px #9fbf94,0 4px #2b624d}#modal .help-modes{color:#5d6f56;background:#eeeede;border-radius:11px}#modal .panel-art:not(.pop-tableau){background:#eeefdc;border-radius:11px;box-shadow:inset 0 0 0 1px #ded8bb}.keyboard-help{color:#71816a}.chain-toolbar,.chain-toolbar .chain-step{background:var(--pop-paper)}.chain-board{background-color:#e9eddb;background-image:linear-gradient(90deg,#9ea58d19 1px,#0000 1px),linear-gradient(#9ea58d19 1px,#0000 1px);background-size:16.6667% 10%;border-radius:9px;box-shadow:0 0 0 4px #d5c79e,0 6px #bfb38b,inset 0 2px 5px #7c806429}.chain-preview-target{border-color:#486f57}.result-summary{background:var(--pop-paper);border:0;border-radius:13px 17px 15px 12px;padding:20px 16px;position:relative;box-shadow:0 3px #d2c7a4,0 10px 24px #82704b1a}.result-summary h1{color:#3d755b}.result-view .result-metric{color:#31745a;background:#e4edd5;border-radius:11px;box-shadow:inset 0 0 0 1px #f6f9e9,0 3px #c4ceae}.result-view .record-note{color:#8a642e;background:#f7e5bc;border-radius:8px}.result-view button:not(.primary){background:#fffbec;border-radius:11px;box-shadow:inset 0 0 0 1px #d3caad,0 2px #d2c8a8}.lesson-result[data-success=false] .result-summary{background:#f5f7e8}.all-send-result{color:#357c5c}.record-tools{color:#68785f;border-color:#d8d2b8}.record-tools summary{color:#537257}.record-tools textarea{color:#4a6650;background:#fffdf0;border-color:#c8cbb0}@media (width<=440px){.title-view{gap:12px;padding-top:18px}.pop-cover{padding:14px 10px 13px}.title-view .mode-card{min-height:104px;padding:10px 4px}.title-view .mode-name{font-size:22px}}@media (width<=350px){.title-view{gap:11px;padding-inline:12px}.pop-cover{padding-inline:8px}.pop-cover .logo{font-size:43px}.title-view .mode-name{font-size:20px}.game-hud .hud-info{padding-left:7px}.hud-info strong{font-size:17px}.game-hud .mode-line{gap:4px}.controls .move-pad:before{left:10px}.controls .move-pad:after{right:10px}.result-summary{padding:17px 12px}}@media (height<=600px){.title-view{gap:10px;padding-top:12px}.pop-cover{gap:5px;padding-block:12px}.pop-cover .logo{font-size:40px}.title-view .mode-card{min-height:90px}}@media (width>=900px){.game-view:before{color:#538067;text-shadow:0 2px #fffae9;letter-spacing:.03em;font-size:27px}.game-view:after{color:#72816a}}@media (prefers-reduced-motion:reduce){.pop-tableau{animation:none}}
