@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');
:root{--bg:#f7f9f6;--paper:#fff;--ink:#293c36;--muted:#8a9690;--line:#e8ece6;--green:#32664f;--mint:#70c3aa;--purple:#a28ade;--orange:#eabb72}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans','Noto Sans KR',sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0;background:none}button:focus-visible,a:focus-visible{outline:3px solid #9b86d9;outline-offset:4px}button{transition:background .18s,transform .18s,box-shadow .18s}button:hover{filter:brightness(.97)}button:active{transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.4}a{color:inherit;text-decoration:none}.header{height:90px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 5.5%;background:#fafbf9}.brand{display:flex;align-items:center;gap:12px;font-weight:900;font-size:23px;letter-spacing:-1px}.brand-symbol{display:grid;grid-template-columns:12px 12px;gap:3px;transform:rotate(-7deg);margin-right:2px}.brand-symbol i{width:12px;height:12px;border-radius:3px;background:var(--purple)}.brand-symbol i:nth-child(2){background:var(--mint)}.brand-symbol i:nth-child(3){background:var(--orange)}.brand-symbol i:nth-child(4){background:#b6d2a0}.brand-tag{font-size:11px;font-weight:400;color:#93a095;letter-spacing:0;margin-left:10px;padding-left:21px;border-left:1px solid #dde3d9}.header-right{display:flex;align-items:center;gap:14px}.local-badge{font-size:11px;color:#839186;margin-right:13px;display:flex;gap:7px;align-items:center}.local-badge i,.eyebrow span{width:6px;height:6px;border-radius:50%;background:#87b79c}.icon-btn{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#7a8980}.icon-btn:hover{background:#eaf0e7}svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}main{max-width:1248px;margin:0 auto;padding:0 32px}.intro{height:195px;display:flex;align-items:center;justify-content:space-between;padding:5px 15px 0}.eyebrow{font-size:11px;letter-spacing:1.1px;color:#7b9382;display:flex;align-items:center;gap:8px}.eyebrow span{width:5px;height:5px}h1{font-size:38px;letter-spacing:-2px;line-height:1.3;margin:12px 0 11px;font-weight:800}h1>span{color:#5e9173}.intro p{font-size:12px;color:#8c968e;margin:0;letter-spacing:.05px}.intro-art{width:230px;height:140px;position:relative;margin-right:48px}.art-tile{position:absolute;width:55px;height:55px;border-radius:14px;display:grid;place-items:center;font-size:26px;font-weight:600;box-shadow:0 9px 0 #e1e9de88}.a{background:#b1a0df;left:45px;top:44px;transform:rotate(-15deg);color:#68508f;z-index:2}.b{background:#a2d6bc;left:105px;top:25px;transform:rotate(10deg);color:#4f896a;z-index:3}.c{background:#eed6a3;left:123px;top:87px;transform:rotate(19deg);width:38px;height:38px;font-size:19px;z-index:4}.spark{position:absolute;left:188px;top:41px;color:#87a88c;font-size:30px}.mini-spark{position:absolute;left:14px;top:78px;color:#c4ccba;font-size:19px}.art-line{position:absolute;width:129px;height:65px;border:1px dashed #cbd9c4;border-radius:50%;left:57px;top:45px;transform:rotate(-20deg)}.workspace{display:grid;grid-template-columns:232px minmax(0,568px) 240px;gap:26px;align-items:start}.left-panel,.right-panel{padding-top:5px}.section-kicker{font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:space-between}.section-kicker>span{font-size:10px;color:#a3aba2;font-weight:400}.mode-panel{padding:15px 0 23px;border-bottom:1px solid var(--line)}.mode-panel>.section-kicker{margin:0 12px 17px}.mode{display:flex;align-items:center;gap:12px;border:1px solid transparent;border-radius:12px;width:100%;text-align:left;padding:14px 12px;margin-bottom:7px}.mode.active{background:#e9f0e6;border-color:#dce7d6}.mode-icon{width:34px;height:36px;border-radius:9px;display:grid;place-items:center;background:#edf0e9;color:#8c9a8b}.mode.active .mode-icon{color:#628565;background:#dae6d2}.mode b{font-size:12px;display:block;font-weight:700}.mode small{font-size:9px;color:#99a196;display:block;margin-top:6px;letter-spacing:-.2px}.mode-check{margin-left:auto;color:#56815d;font-size:9px}.mode:not(.active) .mode-check{display:none}.daily-dot{width:5px;height:5px;border-radius:50%;background:#dcbb70;margin-left:auto}.difficulty-panel{padding:23px 12px;border-bottom:1px solid var(--line)}.difficulty-list{margin-top:18px;display:flex;flex-direction:column;gap:6px}.difficulty-list button{display:flex;align-items:center;text-align:left;height:42px;gap:13px;padding:0 12px;border-radius:8px;font-size:11px;border:1px solid transparent}.difficulty-list button.active{background:white;border-color:#dce6d7;box-shadow:0 2px 5px #293c3603}.difficulty-list button>span:last-child{margin-left:auto;color:#9da59b;font-size:10px}.level-dots{color:#6f9674;font-size:6px;letter-spacing:2px;white-space:nowrap}.level-dots i{font-style:normal;color:#d4ddd0}.game-facts{display:flex;justify-content:space-between;margin:19px 0 21px;font-size:9px;color:#939d92}.game-facts b{font-weight:400}.game-facts span{display:flex;gap:5px;align-items:center}.tiny-colors{width:11px;height:7px;background:linear-gradient(90deg,#80b99b 50%,#a790d4 50%);border-radius:2px}.primary{width:100%;background:#35624d;color:white;border-radius:9px;font-size:11px;font-weight:600;padding:14px 18px;display:flex;justify-content:center;align-items:center;gap:25px;box-shadow:0 4px 8px #35624d0b}.primary:hover{background:#274d3c}.primary>span{font-size:17px;line-height:14px}.record-panel{padding:23px 12px}.record-panel .section-kicker span{display:flex}.record-panel svg{width:16px;height:16px}.record-numbers{display:flex;align-items:center;justify-content:space-around;padding:22px 0 15px}.record-numbers>div{text-align:center;flex:1}.record-numbers strong{font-size:24px;font-weight:600;letter-spacing:-1px}.record-numbers small{font-size:9px;color:#98a192;display:block;margin-top:7px}.record-numbers>span{height:29px;width:1px;background:#e2e7dd}.record-panel>p{font-size:9px;text-align:center;color:#a3ab9d;margin-top:8px}.left-note{font-size:10px;line-height:1.9;color:#9aa593;margin:12px 12px 0;padding:18px 7px;border-top:1px dashed #dce4d5;position:relative}.left-note>span{position:absolute;right:8px;top:26px;font-size:24px;color:#c0cfb1}.game-card{background:#fff;border:1px solid #e6eae3;border-radius:18px;padding:24px 29px 0;box-shadow:0 9px 32px #34432c04;overflow:hidden}.game-card-top{display:flex;align-items:center;justify-content:space-between}.game-label{font-size:10px;font-weight:600;padding:5px 8px;background:#f1f5ed;color:#6c8a62;border-radius:5px}.puzzle-id{font-size:9px;color:#a1a89f;margin-left:8px;letter-spacing:.4px}.text-btn{font-size:10px;color:#929c91;display:flex;align-items:center;gap:6px;padding:3px 0}.text-btn>span:first-child:not(:last-child){font-size:8px;border:1px solid #b6beb1;border-radius:50%;width:13px;height:13px;display:grid;place-items:center}.game-meta{display:flex;justify-content:space-between;align-items:center;margin-top:23px}.difficulty-title{display:flex;align-items:center;gap:8px}.difficulty-title i{width:6px;height:6px;background:#84a478;border-radius:50%}.difficulty-title strong{font-size:15px;letter-spacing:-.5px}.difficulty-title>span{font-size:10px;color:#9ca496;margin-left:3px}.timer{display:flex;gap:7px;align-items:center;color:#858f81;font-size:13px;font-variant-numeric:tabular-nums}.timer>span:first-child{display:flex}.timer svg{width:14px;height:14px}.small{width:25px;height:25px;margin-left:4px}.progress-line{display:flex;justify-content:space-between;margin-top:20px;font-size:9px;color:#a6ada0}.progress-line b{font-size:11px;color:#6e9260;font-weight:600}.progress-track{height:4px;background:#eff3eb;border-radius:4px;overflow:hidden;margin-top:8px}.progress-track span{height:100%;display:block;background:#b4cda0;width:0;transition:width .4s}.board-area{position:relative;padding-left:22px;margin:18px -1px 0 -11px}.board-columns{display:flex;margin:0 0 8px;font-size:8px;color:#bac0b3;text-align:center}.board-columns span{flex:1}.board-rows{position:absolute;left:0;top:22px;bottom:0;width:17px;display:flex;flex-direction:column;align-items:center;justify-content:space-around;font-size:8px;color:#bac0b3}.board-wrap{position:relative;width:100%;aspect-ratio:1}canvas{width:100%;height:100%;display:block}.cell-buttons{display:grid;position:absolute;inset:0;gap:5px;padding:3px;grid-template-columns:repeat(7,1fr)}.cell-buttons button{padding:0;background:transparent;border-radius:8px;min-width:0;touch-action:manipulation}.cell-buttons button:focus-visible{outline:2px solid #38664e;outline-offset:-3px}.cell-buttons button:hover{background:#ffffff22}.cell-buttons button.wrong{background:#e8838050;animation:shake .3s}.pause-layer{position:absolute;inset:0;background:#f8faf5f5;backdrop-filter:blur(9px);display:flex;justify-content:center;align-items:center;flex-direction:column;z-index:4;border-radius:12px}.pause-layer[hidden]{display:none}.pause-layer>span{font-size:22px;font-weight:700}.pause-layer>p{font-size:11px;color:var(--muted)}.pause-layer .primary{width:auto;margin-top:13px}.palette-area{text-align:center;padding:23px 0 21px}.palette-label{font-size:10px;color:#8f9b87;margin-bottom:13px}.palette{display:flex;align-items:center;justify-content:center;gap:13px}.swatch{display:flex;align-items:center;gap:9px;background:#f7f8f5;border:1px solid #edf0e8;padding:8px 12px 8px 8px;border-radius:9px;font-size:10px;position:relative}.swatch.active{border-color:#97bda0;background:#f2f7ef;box-shadow:0 0 0 2px #97bda019}.swatch i{width:27px;height:27px;border-radius:6px;display:grid;place-items:center;font-style:normal;color:#ffffffd9;font-size:14px}.swatch kbd{font-size:9px;margin-left:3px}.palette-tip{font-size:8px;color:#adb4a5;margin-top:13px;display:flex;align-items:center;justify-content:center;gap:4px}kbd{border:1px solid #e2e6db;background:#fff;box-shadow:0 1px 0 #e2e6db;font:9px 'DM Sans',sans-serif;padding:1px 4px;border-radius:3px;color:#9ba691}.game-tools{display:flex;border-top:1px solid #eff1ea;border-bottom:1px solid #eff1ea;padding:17px 0;justify-content:space-between}.game-tools button{display:flex;align-items:center;gap:7px;font-size:10px;color:#798872;padding:0 7px}.game-tools svg{width:17px;height:17px}.game-tools kbd{margin-left:5px}.game-tools button.selected{color:#7f5ab0}.hint-count{background:#f5edcf;color:#ad954e;padding:2px 5px;border-radius:5px;font-size:8px;margin-left:3px}.game-status{font-size:9px;color:#9aa68e;display:flex;align-items:center;justify-content:center;gap:6px;height:42px;letter-spacing:-.15px}.game-status i{width:4px;height:4px;background:#afc29b;border-radius:50%}.right-panel{padding-top:5px}.guide-card{background:#f0f3e9;border:1px solid #e5eade;border-radius:14px;padding:22px 22px 23px}.guide-card>.section-kicker{font-size:10px;justify-content:flex-start;gap:6px;color:#728364}.guide-card>.section-kicker>span{display:flex;color:#829673}.guide-card svg{width:15px;height:15px}.guide-card h2{font-size:21px;line-height:1.5;letter-spacing:-.9px;margin:18px 0 11px;font-weight:700}.guide-card>p{color:#98a28c;font-size:10px;line-height:1.95}.guide-card>p b{font-weight:500;color:#738566}.example-grid{display:grid;grid-template-columns:repeat(3,35px);grid-auto-rows:35px;gap:5px;margin:25px auto 18px;width:max-content;position:relative}.example-grid i{border-radius:7px;background:#e3e8da;border:1px solid #dae2d2}.example-grid i.mint{background:#b1d7be;border-color:#a8ceb5}.example-grid .center{font-size:20px;font-style:normal;font-weight:600;color:#4e7f5c;display:grid;place-items:center;border:2px solid #76a780;box-shadow:0 0 0 3px #88b48e18}.example-arrow{position:absolute;font-size:27px;bottom:-10px;right:-20px;color:#98ae85;transform:rotate(-10deg)}.example-caption{font-size:8px;color:#94a089;display:flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap}.example-caption>i{width:5px;height:5px;background:#a4cfb1;border-radius:2px}.guide-card hr{height:1px;background:#e0e7d7;border:0;margin:23px 0 19px}.guide-step{display:flex;align-items:center;gap:10px;margin:13px 0}.guide-step>span{font-size:9px;color:#94a385;border-radius:50%;border:1px solid #d9e3cc;width:21px;height:21px;display:grid;place-items:center}.guide-step p{margin:0;font-size:10px;color:#87967b}.guide-card>.text-btn{margin-top:24px;font-size:9px;justify-content:space-between;width:100%;color:#879a77}.guide-card>.text-btn>span{font-size:13px}.tip-card{margin-top:17px;padding:21px 22px;border:1px solid #ede9da;background:#f8f5e9;border-radius:13px;position:relative;overflow:hidden}.tip-card>span{font-size:10px;color:#a1956a}.tip-card p{font-size:10px;line-height:1.9;color:#aaa181;margin:12px 0 0}.tip-card b{font-weight:500;color:#978b64}.tip-decoration{position:absolute;font-size:46px;font-weight:500;color:#e6dfc7;right:13px;bottom:3px;transform:rotate(14deg)}.tip-decoration span{font-size:25px}.deduction-note{font-size:9px;line-height:1.9;color:#a3ac99;position:relative;padding-left:24px;margin:23px 7px}.deduction-note>span{position:absolute;left:0;top:3px}.deduction-note svg{width:14px;height:14px}footer{border-top:1px solid #e3e9dd;margin-top:41px;padding:24px 3px 28px;display:flex;align-items:center;color:#a3ad9a;font-size:9px;gap:20px}.footer-brand{font-size:12px;font-weight:700;color:#8c9c82;display:flex;align-items:center;gap:7px}.tiny-logo{font-size:19px;color:#a3b498}footer p{font-size:9px;color:#a8b29e}footer button{margin-left:auto;color:#9aa88d;font-size:9px}dialog{border:1px solid #e1e8d9;border-radius:21px;width:min(440px,calc(100vw - 36px));padding:32px;color:var(--ink);box-shadow:0 30px 100px #24392d30}dialog::backdrop{background:#253b3155;backdrop-filter:blur(4px)}dialog h2{margin:5px 0 18px;font-size:25px;letter-spacing:-1px}dialog p,dialog li{font-size:12px;line-height:1.95;color:#819078}dialog ol{padding-left:20px}dialog .primary{margin-top:25px}dialog .modal-badge{font-size:11px;color:#83a478}dialog a{color:#47785c;text-decoration:underline}dialog .setting-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}input[type=checkbox]{accent-color:#527c5a;width:18px;height:18px}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#304d3d;color:white;border-radius:10px;padding:13px 20px;font-size:12px;box-shadow:0 5px 25px #304d3d25;z-index:20}.win-stars{text-align:center;color:#ddba67;font-size:35px;letter-spacing:10px}.win-stat{display:flex;justify-content:center;gap:30px;text-align:center;margin:25px 0}.win-stat strong{font-size:25px;display:block}.win-stat small{font-size:10px;color:#9ca792}.confetti{position:fixed;pointer-events:none;z-index:100;width:8px;height:13px;top:-20px;border-radius:2px;animation:fall 2.6s ease-in forwards}@keyframes fall{to{transform:translate(var(--drift),100vh) rotate(560deg);opacity:0}}@keyframes shake{25%,75%{transform:translateX(-3px)}50%{transform:translateX(3px)}}@media(min-width:1400px){main{padding:0 22px}.workspace{grid-template-columns:240px minmax(0,594px) 242px;gap:30px}.intro{height:205px}}@media(max-width:1120px){main{padding:0 25px}.workspace{grid-template-columns:205px minmax(0,540px);justify-content:center;gap:24px}.right-panel{display:none}.intro{max-width:769px;margin:auto}.game-card{padding:22px 26px 0}.header{padding:0 32px}.intro-art{margin-right:0}footer{max-width:769px;margin:32px auto 0}}@media(max-width:720px){.header{height:70px;padding:0 20px}.brand{font-size:20px;gap:10px}.brand-tag,.local-badge{display:none}.header-right{gap:5px}main{padding:0 18px}.intro{height:154px;padding:0 4px}.eyebrow{font-size:9px;letter-spacing:.3px}h1{font-size:29px;letter-spacing:-1.7px;margin:11px 0}.intro p{font-size:10px;line-height:1.8;max-width:230px}.intro-art{transform:scale(.68);transform-origin:right center;width:100px;margin-right:0;flex-shrink:0;right:30px}.a{left:0}.b{left:56px}.c{left:80px}.spark{left:130px}.mini-spark{left:-25px}.art-line{left:0}.workspace{display:flex;flex-direction:column;gap:17px}.left-panel{width:100%;padding:0;display:flex;flex-direction:column}.mode-panel{display:flex;padding:0;border:0;gap:8px}.mode-panel>.section-kicker{display:none}.mode{flex:1;padding:10px;gap:8px;margin:0;border-color:#e3e9de}.mode-icon{width:27px;height:28px}.mode-icon svg{width:16px}.mode b{font-size:11px}.mode small{font-size:8px;margin-top:3px}.difficulty-panel{padding:12px 0 0;border:0;display:flex;gap:8px;align-items:center}.difficulty-panel>.section-kicker,.game-facts{display:none}.difficulty-list{margin:0;display:flex;flex:1;flex-direction:row;gap:4px}.difficulty-list button{flex:1;justify-content:center;gap:0;padding:0 8px;font-size:10px;height:35px}.difficulty-list .level-dots,.difficulty-list button>span:last-child{display:none}.difficulty-panel .primary{width:auto;padding:10px 12px;font-size:10px;gap:8px;white-space:nowrap}.difficulty-panel .primary span{font-size:13px}.record-panel,.left-note{display:none}.game-card{width:100%;padding:20px 18px 0;border-radius:15px}.game-meta{margin-top:20px}.game-label{font-size:9px}.puzzle-id{font-size:8px}.text-btn{font-size:9px}.board-area{margin-top:15px;padding-left:17px;margin-left:-7px}.board-rows{width:13px}.palette-area{padding:20px 0 18px}.swatch{padding:7px 9px 7px 7px;gap:7px}.game-tools{padding:15px 0}.game-tools button{font-size:10px;gap:6px}.game-status{font-size:8px;height:40px}footer{margin-top:25px;padding:20px 0;gap:12px}footer p{font-size:8px}footer button{font-size:8px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}body:fullscreen{overflow:auto;background:var(--bg)}
/* 퍼즐마다 주어지는 세 번의 기회 */
.lives{display:flex;align-items:center;gap:4px;color:#cf9385;font-size:15px;white-space:nowrap}.lives .used{color:#e3e6df}.lives small{font-size:9px;color:#a18e86;margin-left:4px;font-variant-numeric:tabular-nums}.cell-buttons button:disabled{opacity:1;cursor:default}.pause-layer.is-lost{background:#faf8f3f5}.pause-layer.is-lost>span{font-size:21px}.pause-layer.is-lost>p{font-size:10px;text-align:center;padding:0 12px}.pause-layer.is-lost .primary{background:#8c7460}
@media(max-width:420px){.lives{gap:2px;font-size:13px}.lives small{font-size:8px;margin-left:2px}.difficulty-title{gap:5px}.difficulty-title strong{font-size:13px}.timer{gap:4px;font-size:12px}}
/* 400단계 여정 · 로컬 플레이어 기록 */
.profile-chip{display:flex;align-items:center;gap:8px;border:1px solid #dce6d6;border-radius:22px;background:#f0f5eb;padding:8px 13px;font-size:11px;color:#658060;margin-right:8px}.profile-chip b{font-weight:500;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.journey-panel{padding:23px 12px;border-bottom:1px solid var(--line)}.journey-panel .section-kicker{font-size:11px}.journey-number{display:flex;align-items:baseline;gap:10px;margin-top:15px}.journey-number strong{font-size:38px;font-weight:600;letter-spacing:-2px;color:#547b53}.journey-number span{font-size:11px;color:#89967e}.journey-panel>p{font-size:10px;color:#98a48d;margin:8px 0 12px}.secondary{width:100%;border:1px solid #dce6d5;border-radius:8px;padding:10px 14px;background:#fff;color:#708668;font-size:11px;margin-top:14px}.stage-banner{display:flex;flex-direction:column;gap:6px;border-top:1px solid #eff2ea;padding-top:14px;margin-top:15px}.stage-banner>span{font-size:13px;font-weight:600;color:#68855b}.stage-banner>small{font-size:9px;color:#a3ad99}.stage-banner[hidden]{display:none}.active-rules{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px}.active-rules button{background:#f5f1e4;color:#a08c5f;border-radius:5px;padding:4px 7px;font-size:9px}.active-rules button:hover{background:#ede5ca}.campaign-active .difficulty-list{opacity:.6}.campaign-active .difficulty-list button{cursor:help}.note-tools{display:flex;justify-content:center;gap:25px;padding:12px 0 8px}.note-tools button{font-size:10px;color:#91a082;border-radius:5px;padding:4px 7px}.note-tools button.selected{background:#f2ecd9;color:#a88d48}.note-tools kbd{margin-left:5px}.save-state{font-size:8px;color:#a8b19f;text-align:center;padding:7px 0 0}.save-state.save-error{color:#b07558}.game-status{min-height:42px;height:auto;padding:12px 3px;text-align:center;line-height:1.7}.line-clues{display:flex;flex-wrap:wrap;gap:5px;margin-top:15px}.line-clues[hidden]{display:none}.line-clues span{font-size:9px;border-radius:4px;padding:4px 6px}.rule-legend{border-bottom:1px solid #e0e7d7;padding-bottom:8px;margin-top:12px}.rule-legend b{font-size:11px;color:#6d845f}.rule-legend p{font-size:10px;line-height:1.85;color:#94a087}.guide-card h2{font-size:20px}.guide-card>p{font-size:11px}.guide-card .example-grid,.guide-card .example-caption,.guide-card>hr,.guide-card .guide-step{display:none}.learn-rule{margin:16px 0}.learn-rule b{font-size:14px;color:#64805c}.learn-rule p{margin:7px 0}.chapter-picker{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin:18px 0}.chapter-picker button{border:1px solid #e3e9dd;border-radius:6px;font-size:10px;padding:7px}.chapter-picker button.active{background:#eaf1e3;color:#557d4b;border-color:#c3d7b4}.stage-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.stage-grid button{background:#f2f5ed;border:1px solid #e2e9db;border-radius:8px;padding:10px 4px;font-size:15px}.stage-grid button small{display:block;font-size:8px;margin-top:4px;color:#a3ad9b}.stage-grid .done{background:#e5f1e4;color:#57844e}.stage-grid .current{background:#34644d;color:white;border-color:#34644d}.stage-grid .current small{color:#b9d4bd}.stage-grid button:disabled{opacity:.5}.profile-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border:1px solid #e3e9dd;background:#f7f9f4;border-radius:9px;padding:13px 11px;margin:8px 0}.profile-row.active{border-color:#98bb8b;background:#eff5e9}.profile-row b{font-size:12px;overflow-wrap:anywhere}.profile-row span{font-size:10px;white-space:nowrap;color:#98a58d}.profile-label{display:block;font-size:11px;color:#819574;margin-top:22px}.profile-label input{display:block;box-sizing:border-box;width:100%;border:1px solid #d7e3ce;background:#fafbf8;padding:12px;border-radius:8px;margin-top:8px;font:inherit;color:#476941}.backup-tools{display:flex;align-items:center;justify-content:space-between;margin-top:20px;color:#9ba58d;font-size:10px;gap:8px}.backup-tools label{cursor:pointer;border-bottom:1px solid #d6e0cb;padding-bottom:3px}.backup-tools button{font-size:10px}#profile-feedback{color:#a27762;min-height:16px}dialog{max-height:88vh;overflow:auto}dialog h3{font-size:15px;font-weight:600;color:#5e7b53}.palette{flex-wrap:wrap;gap:9px}.swatch{gap:6px;padding-right:9px}.swatch kbd{margin-left:0}.swatch i{width:24px;height:24px}#rule-legend:has(.rule-legend:only-child){display:none}.record-panel{padding-top:20px}.intro{height:175px}.header{height:80px}
@media(min-width:721px){.board-area{max-width:440px;margin-left:auto;margin-right:auto}.game-card{padding-top:20px}.game-meta{margin-top:19px}.palette-area{padding:18px 0 15px}.game-tools{padding:14px 0}.mode{padding-top:11px;padding-bottom:11px}.mode-panel{padding-bottom:15px}.difficulty-panel{padding-top:18px;padding-bottom:18px}.journey-panel{padding-top:18px;padding-bottom:18px}}
@media(max-width:720px){.header{height:70px}.profile-chip{padding:6px 8px;gap:5px;font-size:10px;margin-right:0}.profile-chip b{max-width:75px}.header-right{gap:0}.brand{font-size:18px}.brand-symbol{grid-template-columns:10px 10px;gap:2px}.brand-symbol i{width:10px;height:10px}.intro{height:150px}.mode-panel{gap:5px}.mode{padding:9px 7px;gap:5px}.mode-icon{display:none}.mode b{font-size:10px}.mode small{font-size:7px}.mode-check,.daily-dot{display:none}.journey-panel{display:flex;flex-wrap:wrap;align-items:center;gap:8px 13px;padding:13px 3px 5px;border:0}.journey-panel .section-kicker{display:none}.journey-number{margin:0;gap:6px}.journey-number strong{font-size:25px}.journey-number span{font-size:9px}.journey-panel>p{margin:0;font-size:9px}.journey-panel>.progress-track{display:none}.journey-panel .secondary{width:auto;margin:0 0 0 auto;padding:8px 10px;font-size:9px}.stage-banner{padding-top:11px;margin-top:12px}.stage-banner>span{font-size:11px}.stage-banner>small{font-size:8px}.active-rules{gap:4px}.active-rules button{font-size:8px;padding:4px 6px}.difficulty-list button{padding:0 5px}.difficulty-panel.campaign-active .difficulty-list{display:none}.difficulty-panel.campaign-active .primary{width:100%}.save-state{font-size:7px}.swatch{gap:5px;padding:7px 6px}.swatch i{width:22px;height:22px}.swatch span{font-size:9px}.swatch kbd{font-size:8px}.palette{gap:6px}.profile-row{gap:5px}.profile-row span{font-size:8px}.backup-tools{font-size:9px}.backup-tools button{font-size:9px}}
/* 원작 앱 자산에서 확인한 다섯 라인 규칙 */
.line-clues{max-height:96px;overflow:auto;padding:2px 3px 6px;scrollbar-width:thin;border-bottom:1px solid #eef1e8}.line-clues button{font-size:9px;line-height:1.6;padding:4px 7px;border-radius:5px;border:1px solid #e4eadd55;white-space:nowrap}.line-clues button:hover{filter:brightness(.95)}.cipher-code{display:flex;align-items:center;gap:7px;flex-wrap:wrap;background:#f7f8f3;border:1px solid #e5ebdf;border-radius:8px;margin-top:13px;padding:10px 12px}.cipher-code[hidden]{display:none}.cipher-code b{font-size:10px;font-weight:600;color:#8c9e7a;margin-right:3px}.cipher-code span{font-size:10px;padding:4px 7px;border-radius:5px;min-width:42px;text-align:center}
@media(max-width:420px){.palette:has(.swatch:nth-child(4)){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.palette:has(.swatch:nth-child(4)) .swatch{justify-content:center;gap:4px;padding:7px 4px}.palette:has(.swatch:nth-child(4)) .swatch i{width:20px;height:22px;flex-shrink:0}.palette:has(.swatch:nth-child(4)) .swatch kbd{font-size:7px;padding:1px 3px}.cipher-code{gap:5px;padding:9px}.cipher-code span{font-size:9px}.line-clues button{font-size:8px;padding:4px 6px}}
