@font-face{font-family:Body;src:url("Pretendard-Regular.subset.woff2");font-weight:100 500;font-display:swap}@font-face{font-family:Body;src:url("Pretendard-SemiBold.subset.woff2");font-weight:600 900;font-display:swap}@font-face{font-family:Pop;src:url('Korean.ttf');font-weight:100 900;font-display:swap}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#f5f0e5;color:#23494a;font-family:Body,system-ui,sans-serif;font-size:15px}body{--paper:#f5f0e5;--ink:#23494a;--teal:#276762;--muted:#58706b;--coral:#c95f49;--line:#cfd6c9;--bottom:max(16px,env(safe-area-inset-bottom));--top:max(16px,env(safe-area-inset-top))}button,input{font:inherit}button{cursor:pointer;min-height:48px;border:0;color:var(--ink);font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:16px;transition:background .16s,transform .16s,box-shadow .16s;touch-action:manipulation}button:active{transform:translateY(2px)}button:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #b34d35;outline-offset:4px}button:disabled{cursor:not-allowed;opacity:.5;transform:none}button:hover:not(:disabled){filter:brightness(.97)}[hidden]{display:none!important}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}span[data-icon]{display:inline-flex}#canvas{position:fixed;inset:0;display:block;width:100%;height:100%;touch-action:none;outline:0}#app{position:fixed;inset:0;pointer-events:none}#app button,#app input{pointer-events:auto}#home,#game{height:100%;position:relative}#home:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#f5f0e5 15%,#f5f0e5e0 32%,#f5f0e500 60%);pointer-events:none}.home-header{position:absolute;top:32px;left:5vw;right:4vw;display:flex;align-items:center;justify-content:space-between}.wordmark,.game-brand{font-weight:900;font-size:23px;letter-spacing:-1.6px}.mark-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#ce755a;margin-left:4px}.icon-button{width:48px;height:48px;flex-shrink:0;background:#fffdf6;border:1px solid var(--line);border-radius:16px}.home-copy{position:absolute;left:9vw;top:19%;max-width:40vw}.eyebrow{font-size:12px;font-weight:800;color:#8c543f;letter-spacing:2px}.home-copy h1{font-size:clamp(64px,7.8vw,120px);font-weight:900;letter-spacing:-8px;line-height:1.04;margin:24px 0 22px;transform:rotate(-3deg)}.home-copy h1>span{color:#c4684f}.title-dot{color:#23494a}.lead{font-size:clamp(18px,1.65vw,25px);font-weight:750;letter-spacing:-.7px;margin:0 0 15px}.home-description{font-size:15px;line-height:1.8;color:var(--muted);margin:0}.home-actions{position:absolute;left:9vw;bottom:9%;width:350px;display:grid;gap:12px}.pill{font-size:12px;font-weight:650;display:inline-flex;align-items:center;gap:7px;color:var(--muted);margin-bottom:4px}.status-dot{width:7px;height:7px;background:#3d8772;border-radius:50%;display:inline-block}.primary{background:var(--teal);color:#fffcef;padding:13px 22px;box-shadow:0 4px 0 #194d49}.start{justify-content:space-between;font-size:19px;min-height:62px;border-radius:19px}.secondary{background:#fffdf6;border:1px solid var(--line);padding:12px 14px;min-height:50px}.home-secondary{display:grid;grid-template-columns:1.2fr 1fr;gap:10px}.home-foot{font-size:11px;color:var(--muted);margin:6px 0 0;text-align:center;letter-spacing:.2px}.hero-note{position:absolute;right:15%;top:23%;font-size:16px;transform:rotate(6deg);color:#52726a;font-weight:650}.note-line{display:block;border:1px solid #acb9a2;border-width:0 1px 1px 0;width:28px;height:36px;transform:rotate(25deg);margin:15px auto}.chapter-stamp{position:absolute;right:5%;bottom:6%;display:flex;align-items:center;gap:14px;color:var(--muted)}.chapter-stamp b{font-size:45px;font-weight:850;letter-spacing:-3px;color:#8c9b86}.chapter-stamp span{font-size:11px;line-height:1.8}.game-header{position:absolute;top:var(--top);left:24px;right:24px;display:flex;align-items:center;gap:10px}.game-brand{background:transparent;margin-right:auto;padding:0 5px}.invite-button{border:1px solid var(--line);background:#fffdf6;padding:0 16px;font-size:13px}.resource-strip{position:absolute;top:20px;left:50%;transform:translateX(-50%);display:flex;gap:24px;border:1px solid #cbd5c6;border-radius:20px;padding:10px 28px;background:#fffcf3ed}.resource{display:flex;align-items:center;gap:10px;min-width:75px}.resource>span:last-child{display:flex;flex-direction:column;gap:2px}.resource small{font-size:10px;font-weight:650;color:var(--muted)}.resource b{font-size:17px;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:-.5px}.resource svg{color:#497e79;width:24px}.coin{width:22px;height:22px;border:5px solid #e2b65a;background:#fff0b8;border-radius:50%;box-shadow:0 2px 0 #aa813c}.mission-strip{position:absolute;top:100px;left:24px;width:225px;display:flex;flex-direction:column;gap:16px;padding:18px;background:#fffaf0ed;border:1px solid #d7dbcb;border-radius:22px}.heart-status{display:flex;align-items:center;gap:10px}.heart-status>span{color:#c85f50}.heart-status>div{display:grid;gap:5px;flex:1}#heart-text{font-size:12px;font-weight:700}meter{height:10px;width:100%;display:block}meter::-webkit-meter-bar{background:#e4dfd0;border:0;border-radius:6px}meter::-webkit-meter-optimum-value{background:#c87760;border-radius:6px}.wave-status{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;border-top:1px solid #dedfce;padding-top:13px}.wave-status b{font-size:15px;font-variant-numeric:tabular-nums}.context-hint{position:absolute;top:247px;left:24px;max-width:225px;font-size:13px;line-height:1.65;color:#355d58;background:#f7f2e5ed;padding:12px 16px;border-radius:16px;white-space:pre-line}.map-label{position:absolute;left:26px;bottom:30px;font-size:11px;letter-spacing:1px;display:flex;align-items:center;gap:7px}.view-controls{position:absolute;right:24px;bottom:30px;display:flex;gap:8px}.view-controls .icon-button{box-shadow:0 3px 0 #d5d8c9}.dock{position:absolute;bottom:var(--bottom);left:50%;transform:translateX(-50%);width:470px;border:1px solid #c7d0c3;border-radius:25px;background:#fffaf1f5;padding:11px 12px 12px;box-shadow:0 8px 30px #1c414b15}.tool-caption{display:flex;align-items:center;justify-content:space-between;padding:0 8px 9px;gap:8px}#tool-name{font-size:12px;font-weight:800}#tool-hint{font-size:10px;color:var(--muted)}.tools{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.tools button{min-height:66px;flex-direction:column;gap:5px;background:transparent;font-size:11px;border:1px solid transparent;border-radius:17px}.tools button[aria-pressed=true]{background:#276762;color:#fff9e9;box-shadow:0 3px 0 #174d48}.tools svg{width:23px;height:23px}.placement{position:absolute;bottom:145px;left:50%;transform:translateX(-50%);display:flex;gap:8px;align-items:center;width:470px;background:#fffbf2;border:1px solid #b4c8b8;border-radius:20px;padding:12px;box-shadow:0 7px 24px #183e3f18;pointer-events:auto}.placement>div{flex:1;min-width:0;display:grid;gap:5px}.placement b{font-size:13px}.placement span{font-size:11px;color:var(--muted)}.placement .primary{font-size:12px;padding:12px}.placement .icon-button{width:40px;border:0;background:transparent}.placement.invalid{border-color:#b45e49}#toast{position:fixed;left:50%;bottom:160px;transform:translateX(-50%);z-index:30;background:#244e4b;color:#fffcef;border-radius:16px;padding:14px 22px;max-width:calc(100% - 32px);font-size:13px;line-height:1.6;box-shadow:0 5px 20px #193d3920;pointer-events:none}#connection{position:fixed;top:0;left:0;right:0;padding:12px 20px;display:flex;align-items:center;justify-content:center;gap:20px;background:#fff0c9;color:#70491f;font-size:13px;z-index:40}#connection button{min-height:36px;border:1px solid #c8ab6f;background:transparent;padding:5px 15px;border-radius:10px}dialog{width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 40px);border:1px solid #e0ddcc;border-radius:28px;padding:24px;background:#fcf8ee;color:var(--ink);box-shadow:0 25px 100px #153c3d35;overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#14393765;backdrop-filter:blur(5px)}.sheet-header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.sheet-header h2{font-size:27px;letter-spacing:-1px;line-height:1.3;margin:7px 0 0}.sheet-header .eyebrow{font-size:10px}.sheet-header .icon-button{background:transparent;border-color:#dbddcd}.sheet-grip{display:none}#sheet-content>p{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 18px}.option-grid{display:grid;gap:10px}.option{width:100%;text-align:left;justify-content:flex-start;min-height:76px;border:1px solid #d8ddce;background:#fffdf5;padding:12px 14px;gap:14px;border-radius:18px}.option-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:#e5ecdf;color:#356b5d;flex-shrink:0}.option-copy{display:grid;gap:5px;flex:1}.option-copy b{font-size:14px}.option-copy small{font-weight:450;color:var(--muted);font-size:11px;line-height:1.5}.option-cost{font-size:12px;font-weight:800;color:#8b5c34;white-space:nowrap}.form-field{display:grid;gap:8px;margin-bottom:18px;font-size:13px;font-weight:700}input{min-height:52px;border:1px solid #b9c8b8;border-radius:14px;background:#fffdf5;padding:12px 15px;color:var(--ink);width:100%;font-size:16px}.wide{width:100%;margin-bottom:10px}.form-error{font-size:12px;color:#a34430;line-height:1.6}.guide-row{display:flex;gap:14px;margin-bottom:20px}.guide-row>b{display:grid;place-items:center;background:#e4e9d9;color:#466c5a;width:35px;height:35px;border-radius:12px;flex-shrink:0}.guide-row h3{font-size:15px;margin:2px 0 5px}.guide-row p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}.setting{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #dedfce;font-size:14px}.setting button{padding:10px 16px;background:#e5eadc}.invite-code{font-size:36px;font-weight:850;letter-spacing:7px;text-align:center;background:#e6ebdc;border:1px dashed #a3b59c;border-radius:20px;padding:25px 12px;margin-bottom:15px;user-select:all}.result-face{display:flex;justify-content:center;gap:12px;padding:12px 0 25px;color:#be8250;font-size:38px}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:24px}.result-stats>div{display:grid;text-align:center;gap:7px;padding:18px 5px;border:1px solid #dce0d0;border-radius:16px}.result-stats b{font-size:25px}.result-stats span{font-size:11px;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#loading{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;background:var(--paper);z-index:100;padding:30px;text-align:center}#loading strong{font-size:18px}#loading p{font-size:12px;line-height:1.8;color:var(--muted);max-width:300px}#loading button{padding:12px 24px;background:var(--teal);color:white}.loading-face{font-size:48px;letter-spacing:12px;background:#e6a182;color:#25494a;width:98px;height:85px;border-radius:38px 38px 30px 30px;box-shadow:0 8px 0 #ca866b;text-indent:12px}progress{width:220px;height:6px;border:0;border-radius:5px}progress::-webkit-progress-bar{background:#e0e4d4;border-radius:5px}progress::-webkit-progress-value{background:#447d68;border-radius:5px}
@media(max-width:700px){.home-header{top:var(--top);left:22px;right:22px}.wordmark{font-size:20px}.home-copy{left:24px;right:24px;top:calc(var(--top) + 67px);max-width:none;text-align:center}.home-copy .eyebrow{font-size:10px;letter-spacing:2px}.home-copy h1{font-size:70px;letter-spacing:-6px;margin:12px 0 14px}.lead{font-size:16px;margin:0}.home-description{display:none}#home:before{background:linear-gradient(180deg,#f5f0e500 55%,#f5f0e5bb 65%,#f5f0e5 77%)}.home-actions{left:24px;right:24px;bottom:calc(var(--bottom) + 14px);width:auto;gap:10px}.home-actions .pill{align-self:center;justify-content:center;margin-bottom:3px;font-size:11px}.start{min-height:58px;font-size:17px}.home-secondary{gap:9px}.home-secondary button{font-size:12px;padding:10px 8px;min-height:48px}.home-secondary svg{width:19px;height:19px}.home-foot{font-size:10px}.hero-note{top:37%;right:24px;font-size:10px;transform:rotate(9deg)}.note-line{height:20px;width:18px;margin:7px auto}.chapter-stamp{display:none}.game-header{top:var(--top);left:16px;right:16px;gap:8px}.game-brand{font-size:21px}.invite-button{font-size:12px;min-height:44px;padding:0 12px}.desktop-label{display:none}.game-header .icon-button{width:48px;height:48px}.resource-strip{top:calc(var(--top) + 61px);left:16px;right:16px;transform:none;justify-content:space-between;padding:10px 16px;gap:8px;border-radius:18px}.resource{min-width:0;gap:8px}.resource b{font-size:16px}.resource small{font-size:9px}.resource svg{width:20px}.coin{width:20px;height:20px;border-width:4px}.mission-strip{top:calc(var(--top) + 133px);left:18px;right:18px;width:auto;flex-direction:row;gap:12px;align-items:center;justify-content:space-between;background:transparent;border:0;padding:0}.heart-status{width:43%;gap:6px}.heart-status svg{width:20px}.wave-status{padding:0;border:0;display:grid;gap:2px;text-align:right;font-size:10px}.wave-status b{font-size:14px}#heart-text{font-size:10px}.context-hint{top:calc(var(--top) + 186px);left:50%;transform:translateX(-50%);max-width:none;width:max-content;max-width:calc(100% - 38px);font-size:11px;border:1px solid #d8dfcb;padding:8px 12px;border-radius:12px;text-align:center}.dock{left:12px;right:12px;bottom:var(--bottom);transform:none;width:auto;border-radius:23px;padding:10px 8px 8px}.tool-caption{padding:0 6px 7px}#tool-name{font-size:11px}#tool-hint{font-size:9px}.tools{gap:2px}.tools button{min-height:61px;font-size:10px;gap:5px;border-radius:14px;padding:6px 0}.tools svg{width:22px;height:22px}.view-controls{right:14px;bottom:calc(var(--bottom) + 116px);gap:6px}.view-controls .icon-button{width:48px;height:48px;border-radius:15px}.map-label{left:20px;bottom:calc(var(--bottom) + 133px);font-size:9px;letter-spacing:0}.placement{bottom:calc(var(--bottom) + 175px);left:12px;right:12px;transform:none;width:auto;gap:4px;padding:10px;border-radius:18px}.placement .primary{padding:9px;font-size:11px;min-height:48px}.placement b{font-size:12px}.placement span{font-size:10px}.placement .icon-button{width:36px}#toast{bottom:calc(var(--bottom) + 180px);font-size:12px;padding:12px 16px;width:max-content;text-align:center}dialog{position:fixed;top:auto;bottom:0;margin:0;width:100%;max-width:100%;max-height:88dvh;border-radius:28px 28px 0 0;padding:13px 22px calc(var(--bottom) + 12px);border-bottom:0}.sheet-grip{display:block;width:38px;height:4px;border-radius:3px;background:#c5cdbc;margin:0 auto 18px}.sheet-header h2{font-size:24px}.sheet-header{margin-bottom:20px}.sheet-header .icon-button{width:48px}.option{min-height:76px}.home-actions:has(#resume:not([hidden])){gap:8px}.home-actions:has(#resume:not([hidden])) .home-foot{display:none}}
@media(max-width:360px){.home-copy h1{font-size:59px}.home-actions{left:18px;right:18px}.resource-strip{padding:10px 12px}.home-copy{top:calc(var(--top) + 56px)}.lead{font-size:14px}.hero-note{display:none}.tool-caption{gap:3px}#tool-hint{font-size:8px}.option-cost{font-size:11px}.placement .primary{font-size:10px}.placement .icon-button{width:30px}}
@media(max-height:700px) and (max-width:700px){.home-copy{top:calc(var(--top) + 48px)}.home-copy h1{font-size:58px;margin:8px 0 10px}.home-copy .eyebrow{display:none}.hero-note{display:none}.home-foot{display:none}.home-actions{bottom:var(--bottom)}.home-actions .pill{margin:0}.context-hint{top:calc(var(--top) + 174px)}.mission-strip{top:calc(var(--top) + 124px)}.resource-strip{top:calc(var(--top) + 56px);padding:8px 14px}}
@media(max-height:520px) and (min-width:701px){.home-header{top:12px}.home-copy{top:22%}.home-copy h1{font-size:62px;margin:10px 0}.home-description,.hero-note,.chapter-stamp{display:none}.home-actions{left:auto;right:5%;bottom:10%;width:300px}.resource-strip{top:12px}.mission-strip{top:83px}.context-hint{top:220px}.dock{width:410px}.map-label{display:none}.view-controls{bottom:140px}.placement{bottom:140px;width:410px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}body.reduce-motion *{transition:none!important;animation:none!important}

h1,.wordmark,.game-brand{font-family:Pop,system-ui,sans-serif}
@media(max-width:700px){.mission-strip{background:#fcf8eee8;border:1px solid #d6dccb;padding:8px 10px;top:calc(var(--top) + 124px);border-radius:15px}.tools button{font-size:11px}.resource small{font-size:10px}}

@media(max-width:700px){.invite-button{min-height:48px}}
p,h2,.context-hint,.option-copy{word-break:keep-all;overflow-wrap:break-word}