:root{--game-chrome-height:calc(48px + env(safe-area-inset-top,0px))}.game-chrome{z-index:20;top:env(safe-area-inset-top,0px);padding:6px max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left));box-sizing:border-box;pointer-events:none;color:#413d37;justify-content:space-between;align-items:center;gap:12px;height:48px;font:500 14px/1.2 system-ui,Yu Gothic,Apple SD Gothic Neo,Malgun Gothic,Noto Sans KR,sans-serif;display:flex;position:fixed;left:0;right:0}.game-chrome .game-list-link{min-height:36px;color:inherit;white-space:nowrap;pointer-events:auto;touch-action:manipulation;background:#fff9ec;border-radius:999px;align-items:center;gap:6px;padding:0 10px;text-decoration:none;display:inline-flex}.game-chrome .about-link{min-height:36px;color:inherit;white-space:nowrap;pointer-events:auto;touch-action:manipulation;background:#fff9ec;border-radius:999px;align-items:center;margin-left:auto;margin-right:-4px;padding:0 12px;text-decoration:none;display:inline-flex}.game-chrome svg{flex-shrink:0;width:16px;height:16px;display:block}.game-chrome .language-select{box-sizing:border-box;pointer-events:auto;background:#fff9ec;border:1px solid #81796b;border-radius:999px;flex-shrink:0;align-items:center;height:36px;display:flex;position:relative}.language-select>svg{pointer-events:none;position:absolute;left:10px}.language-select>span{pointer-events:none;position:absolute;right:10px}.game-chrome select{appearance:none;width:128px;height:36px;min-height:36px;color:inherit;font:inherit;cursor:pointer;touch-action:manipulation;background:0 0;border:0;border-radius:999px;margin:0;padding:0 27px 0 33px;font-size:14px}.game-chrome a:focus-visible,.game-chrome select:focus-visible{outline-offset:2px;outline:3px solid #ad613a}.with-game-chrome #app{top:var(--game-chrome-height);height:calc(100% - var(--game-chrome-height));position:relative}.with-game-chrome #game{top:var(--game-chrome-height);width:100%;height:calc(100% - var(--game-chrome-height));position:fixed;left:0}.result-game-links{white-space:nowrap;flex-shrink:0;justify-content:center;align-self:center;align-items:baseline;gap:12px;font-size:14px;display:inline-flex}.result-game-links .more-games{font-size:inherit}.feedback-link{min-height:28px;font:inherit;color:inherit;opacity:.65;white-space:nowrap;text-underline-offset:3px;align-items:center;font-weight:400;display:inline-flex}.game-chrome .author-link{min-height:36px;color:inherit;white-space:nowrap;pointer-events:auto;touch-action:manipulation;background:#fff9ec;border-radius:999px;align-items:center;gap:4px;padding:0 10px;font-size:13px;font-weight:600;text-decoration:none;display:inline-flex}.game-chrome .author-link svg{width:13px;height:13px}.game-chrome .game-list-link+.author-link{margin-left:auto}.game-chrome .language-select.compact select{color:#0000;width:38px;padding:0}.game-chrome .language-select.compact>svg{left:10px}.game-chrome .language-select.compact>span{display:none}.game-chrome .language-select.compact select option{color:#413d37}@media (width<=349px){.game-chrome .about-link{display:none}.game-chrome .game-list-link+.about-link+.author-link{margin-left:auto}}@media (width<=399px){.game-chrome{gap:6px;padding-left:8px;padding-right:8px}.game-chrome .game-list-link,.game-chrome .about-link,.game-chrome .author-link{padding:0 7px}.game-chrome .about-link{margin-right:0}.game-chrome .author-link{font-size:12px}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}html,body{color:#e8dfcc;background:#050407;height:100%;margin:0;font:16px DotGothic16,system-ui,Hiragino Kaku Gothic ProN,Yu Gothic,Apple SD Gothic Neo,Malgun Gothic,sans-serif}body{overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overflow:hidden}[hidden]{display:none!important}button{font:inherit;color:#e8dfcc;cursor:pointer;touch-action:manipulation;background:#1a1520;border:2px solid #4a3e52;border-radius:0;min-height:44px}button:focus-visible{outline-offset:2px;outline:3px solid #ffe08a}#app{height:100dvh;padding-top:var(--game-chrome-height);flex-direction:column;display:flex}.game-chrome{gap:8px;max-width:640px;margin:auto}#stage{touch-action:none;flex:1;width:100%;max-width:640px;min-height:0;margin:0 auto;position:relative;overflow:hidden}#view{width:100%;height:100%;image-rendering:pixelated;cursor:crosshair;display:block;position:absolute;inset:0}#mute{z-index:3;background:#0c0a10cc;width:44px;padding:0;font-size:20px;position:absolute;top:6px;right:8px}#hud{color:#c9bfae;z-index:2;pointer-events:none;align-items:center;gap:14px;min-height:44px;font-size:18px;display:flex;position:absolute;top:6px;left:8px;right:60px}#check{gap:8px;margin-top:14px;display:flex}#check button{color:#c9a8e8;background:#1a0f22;border:1px dashed #8a5ab8;min-height:40px;padding:0 10px;font-size:14px}#gain.up{color:#ffe08a;animation:.5s ease-out pop}#gain.down{color:#ff9aa2;animation:.5s ease-out pop}@keyframes pop{0%{transform:scale(1.6)}to{transform:scale(1)}}#gain{display:inline-block}#tip{color:#ffe08a;white-space:nowrap;z-index:2;pointer-events:none;background:#0c0a10e6;border:2px solid #ffe08a;margin:0;padding:6px 12px;font-size:16px;position:absolute;left:50%;transform:translate(-50%)}#tip.tap{top:60px}#tip.done{animation:1.2s ease-in-out infinite bob;bottom:84px}#tip.done:after{content:"";border:8px solid #0000;border-top-color:#ffe08a;border-bottom:0;margin-left:-8px;position:absolute;bottom:-12px;left:50%}@keyframes bob{0%,to{transform:translate(-50%)}50%{transform:translate(-50%,4px)}}#bar{padding:10px 12px max(12px, env(safe-area-inset-bottom));z-index:2;justify-content:center;gap:8px;display:flex;position:absolute;bottom:0;left:0;right:0}#to-result{background:#0c0a10;border-color:#6a5a7a;flex:1;max-width:150px;min-height:54px;padding:0 6px;font-size:17px;line-height:1.2}#to-result em{color:#fff;background:#ff4d6d;width:fit-content;margin:2px auto 0;padding:0 4px;font-size:14px;font-style:normal;display:block}#share-now{color:#fff;background:#000;border-color:#fff;flex:1;justify-content:center;align-items:center;gap:6px;max-width:150px;min-height:54px;padding:0 6px;font-size:17px;display:inline-flex}#share-now svg{width:16px;height:16px}#act{color:#ffe2b0;background:#2a1d14;border-color:#c08a4a;flex:1.3;max-width:360px;min-height:54px;font-size:20px;box-shadow:0 4px #120c08}#act.next{color:#e8dfcc;white-space:nowrap;background:#1a1520;border-color:#8a7a9a;padding:0 6px;font-size:16px}#act:active{transform:translateY(3px);box-shadow:0 1px #120c08}#title{text-align:center;z-index:2;pointer-events:none;flex-direction:column;justify-content:center;align-items:center;padding:56px 20px 24px;display:flex;position:absolute;inset:0}#title>*{pointer-events:auto}#title h1{color:#f0e2b8;letter-spacing:.06em;white-space:nowrap;text-shadow:0 0 14px #ffb04a55;margin:0;font-size:clamp(36px,11vw,52px);font-weight:400}#tagline{color:#b8ad9c;text-wrap:balance;margin:8px 0 0;font-size:16px}#howto{text-align:left;background:#0c0a10e0;border:2px solid #3a3042;max-width:400px;margin:20px auto 0;padding:12px 16px}#howto h2{color:#ffe08a;margin:0 0 6px;font-size:16px;font-weight:400}#howto p{margin:4px 0;font-size:16px;line-height:1.55}#step3{color:#b8ad9c}.dex-open{color:#c9bfae;background:#0c0a10;border-color:#4a3e52;min-height:44px;margin-top:12px;padding:0 18px;font-size:16px}#start{color:#ffe2b0;background:#2a1d14;border-color:#c08a4a;width:min(100%,300px);min-height:56px;margin-top:22px;font-size:22px;box-shadow:0 4px #120c08}#result{z-index:5;padding:8px 16px max(10px, env(safe-area-inset-bottom));text-align:center;background:radial-gradient(circle at 50% 110%,#3a2414 0%,#120c0c 55%,#060508 100%);flex-direction:column;justify-content:center;align-items:center;gap:2px;display:flex;position:absolute;inset:0;overflow-y:auto}#r-level{color:#c9bfae;margin:0;font-size:18px}#r-level b{color:#ffcc3d;font-weight:400}#r-level s{color:#3a3242;text-decoration:none}#r-score{color:#ffe08a;font-variant-numeric:tabular-nums;margin:2px 0 0;font-size:clamp(44px,14vw,60px);line-height:1.05}#r-score small{color:#a99f8f;font-size:16px;display:block}#r-found{margin:2px 0 0;font-size:18px}#r-rank{color:#d9a05b;align-items:center;gap:8px;margin:2px 0 0;font-size:18px;display:flex}#rank-info{width:34px;min-height:34px;padding:0;font-size:16px}#r-best{color:#c9bfae;min-height:1em;margin:2px 0 0;font-size:16px}#r-best b{font-weight:400}#r-new{flex-wrap:wrap;justify-content:center;gap:6px;margin-top:8px;display:flex}#r-new .cell{width:56px}#dex-cta{color:#f0e2b8;text-align:center;background:#160f1e;border:2px solid #b58a3c;flex-direction:column;gap:6px;width:min(100%,420px);margin-top:10px;padding:10px 14px;display:flex;box-shadow:0 4px #0a0610}#dex-cta-top{font-size:20px}#dex-cta-top b{color:#ffe08a;font-weight:400}#dex-cta em,#gain em{color:#fff;background:#ff4d6d;margin-left:6px;padding:0 5px;font-size:16px;font-style:normal}#dex-bar{background:#2a2230;height:8px}#dex-bar i{background:linear-gradient(90deg,#8a5ab8,#ffcc3d);height:100%;display:block}#dex-cta-sub{color:#c9a8e8;font-size:16px}#dex-cta.complete{background:linear-gradient(#3a2a08,#1a1206);border-color:#ffcc3d;box-shadow:0 4px #0a0610,0 0 22px #ffcc3d88}#dex-cta.complete #dex-cta-sub{color:#ffe08a}#result.complete{background:radial-gradient(circle at 50% 110%,#5a4010 0%,#1a1208 55%,#060508 100%)}dialog#dexdlg.complete{border-color:#ffcc3d;box-shadow:0 0 24px #ffcc3d66}dialog#dexdlg.complete h3{color:#ffcc3d;text-shadow:0 0 10px #ffcc3d88}#dex-cta.fresh{animation:1.4s ease-in-out infinite dexpulse}@keyframes dexpulse{0%,to{box-shadow:0 4px #0a0610,0 0 #ffcc3d00}50%{box-shadow:0 4px #0a0610,0 0 18px #ffcc3d99}}.cell{aspect-ratio:1;background:#0e0b12;border:2px solid #2a2230;justify-content:center;align-items:center;min-height:0;padding:0;display:flex;position:relative}.cell.now,.cell.have{border-color:var(--rc)}.cell canvas{max-width:90%;max-height:90%;image-rendering:pixelated}.cell i{color:#fff;background:#ff4d6d;padding:1px 3px;font-size:14px;font-style:normal;line-height:1;position:absolute;top:-6px;right:-4px}dialog#dexdlg{color:#e8dfcc;background:#120e16;border:2px solid #4a3e52;width:min(96%,440px);max-height:92vh;padding:12px}dialog#dexdlg::backdrop{background:#000c}#dexdlg h3{color:#ffe08a;text-align:center;margin:0 0 8px;font-size:18px;font-weight:400}#dex{grid-template-columns:repeat(7,1fr);gap:4px;display:grid}#dex-ex{border-top:1px dashed #4a3e52;justify-content:center;align-items:center;gap:10px;margin-top:8px;padding-top:8px;display:flex}#dex-ex span{color:#b56dff;font-size:14px}#dex-ex .cell{aspect-ratio:2;background:#0a0410;width:120px}#dex-ex .cell.have{box-shadow:0 0 10px #b56dff88}#dex-cap{text-align:center;min-height:1.4em;margin:8px 0 0;font-size:16px}#dex-cap b{font-weight:400}#dexdlg form{text-align:center;margin:8px 0 0}#dexdlg form button{padding:0 24px}#actions{gap:10px;width:min(100%,420px);margin-top:10px;display:flex}#actions button{flex:1;min-width:0;min-height:50px;font-size:18px}#share{color:#fff;background:#000;border-color:#fff;justify-content:center;align-items:center;gap:8px;display:inline-flex}#share svg{width:18px;height:18px}#again{color:#ffe2b0;background:#2a1d14;border-color:#c08a4a}#share-note,#share-fallback{color:#ff9aa2;margin:8px 0 0;font-size:14px}#share-fallback{display:block}#more{margin-top:6px}.more-games{color:#a99f8f;align-items:center;min-height:36px;font-size:14px;display:inline-flex}dialog#ranks{color:#e8dfcc;background:#120e16;border:2px solid #4a3e52;width:92%;max-width:360px;padding:16px 18px}dialog#ranks::backdrop{background:#000b}#ranks h3{color:#ffe08a;margin:0 0 10px;font-size:18px;font-weight:400}#ranks table{border-collapse:collapse;width:100%;font-size:16px}#ranks td{border-bottom:1px solid #2a2230;padding:6px 4px}#ranks td+td{text-align:right;color:#a99f8f;font-size:14px}#ranks tr.current td{color:#ffe08a}#ranks form{text-align:center;margin:12px 0 0}#ranks form button{padding:0 24px}@media (height<=640px){#howto{margin-top:10px;padding:8px 12px}#r-score{font-size:44px}}@media (prefers-reduced-motion:reduce){#tip.done,#dex-cta.fresh{animation:none}}.game-chrome .about-link,.game-chrome .author-link{background:#f5ead2}#about{--about-bg:#050407;--about-fg:#e0d6c4;--about-sub:#b0a594;--about-accent:#ffe08a;--about-line:#2a2230;--about-card:#120e16;--about-heading:#f0e2b8}html.has-game-about{touch-action:auto;overscroll-behavior-y:none;height:100svh;overflow:hidden auto}html.has-game-about body{touch-action:auto!important;overscroll-behavior:auto!important;height:100svh!important;min-height:0!important;overflow:visible!important}html.has-game-about body>:not(#about):not(.game-chrome){touch-action:none}html.has-game-about .game-chrome,html.has-game-about.has-game-about .with-game-chrome #game{position:absolute}#about{--about-bg:#15130f;--about-fg:#ece2d0;--about-sub:#c8b59e;--about-accent:#efa46b;--about-line:#3d332b;--about-card:#201d1d;--about-heading:inherit;box-sizing:border-box;background:var(--about-bg);max-width:560px;color:var(--about-fg);border:1px solid var(--about-line);text-align:left;letter-spacing:normal;-webkit-user-select:text;user-select:text;-webkit-touch-callout:default;touch-action:auto;pointer-events:auto;border-bottom:0;margin:0 auto;font:400 16px/1.8 system-ui,Yu Gothic,Hiragino Sans,Apple SD Gothic Neo,Malgun Gothic,Noto Sans KR,sans-serif;position:absolute;top:100svh;left:0;right:0}#about,#about *{box-sizing:border-box;touch-action:auto;-webkit-user-select:text;user-select:text}html:not(.has-game-about) #about{display:none}.game-about{padding:28px 20px 40px}.game-about[hidden]{display:none!important}.game-about h2{color:var(--about-heading);margin:28px 0 8px;font-size:19px;font-weight:700;line-height:1.4}.game-about h2:first-child{margin-top:0}.game-about p{margin:0 0 10px}.game-about ul,.game-about ol{color:var(--about-sub);margin:4px 0 10px;padding-left:1.4em}.game-about li{margin-bottom:4px}.game-about a{color:var(--about-accent);text-underline-offset:3px}.game-about-links{flex-direction:column;gap:10px;display:flex;margin-top:24px!important}.game-about-links a{border:1px solid var(--about-line);background:var(--about-card);border-radius:10px;padding:10px 14px;text-decoration:none;display:block}.game-about-author{color:var(--about-sub);font-size:14px;margin-top:20px!important}
