:root{font-family:'Noto Sans KR',ui-sans-serif,system-ui,sans-serif;color:#533c3b;background:#faf5ee;font-synthesis:none;--ink:#583b3e;--accent:#8e4056;--line:#e6d6c8;--soft:#f1e4d8}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button{min-height:44px;border:1px solid #d9c2b5;background:#fffaf5;color:var(--ink);border-radius:12px;padding:10px 14px;cursor:pointer;font-size:13px;font-weight:700;transition:background .15s,transform .15s}button:hover{background:#f1ded5}button:active{transform:translateY(1px)}button:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #b66e85;outline-offset:3px}button:disabled{opacity:.45;cursor:default}.primary{background:var(--accent);color:#fff7f3;border-color:var(--accent)}.primary:hover{background:#713146}button[hidden],[hidden]{display:none!important}#app{max-width:1220px;margin:auto;padding:18px 28px 12px}header{display:flex;align-items:center;gap:14px;height:48px;border-bottom:1px solid var(--line);padding-bottom:12px}.brand{font-size:29px;font-weight:900;color:#67494b;text-decoration:none;letter-spacing:-4px}.brand span{color:#d9a08a}.wordmark{font-size:12px;letter-spacing:.19em;font-weight:800}nav{margin-left:auto;display:flex;gap:7px;align-items:center}select{border:0;border-radius:8px;color:var(--ink);background:transparent;max-width:100px;font-size:12px;padding:5px;min-height:44px}.icon{width:44px;padding:0;border-color:transparent;background:transparent;font-size:18px}.heading{display:flex;justify-content:space-between;align-items:center;padding:28px 8px 13px}.eyebrow{font-size:10px;letter-spacing:.18em;font-weight:800;color:#a17b69;margin:0 0 9px}h1{font-size:36px;letter-spacing:-1.8px;line-height:1.2;margin:0 0 9px}h2{font-size:22px;line-height:1.3;margin:0}#tagline{font-size:13px;margin:0;color:#9b7b6f}.room-number{font-size:54px;font-weight:400;color:#c8a896;letter-spacing:-3px}.room-number span{font-size:14px;letter-spacing:0;color:#b99f91;margin-left:5px}.play-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:28px;align-items:center}.room-column{min-width:0}.phases{display:flex;gap:5px;padding:0 12px 6px}.phase{flex:1;min-height:43px;border-bottom:2px solid #e4d1c1;color:#b5998a;font-size:12px;display:flex;align-items:center;gap:7px;justify-content:center}.phase.active{border-color:#94465b;color:#7b354c;font-weight:800}.phase.passed{border-color:#bd8c75;color:#9b6d55}.phase .symbol{font-size:18px}.canvas-wrap{position:relative;background:#f4e5d8;border-radius:26px;overflow:hidden;box-shadow:0 18px 55px -36px #6a3f35;isolation:isolate}canvas{display:block;width:100%;height:auto;aspect-ratio:720/610;touch-action:none}#entry{position:absolute;bottom:18px;left:24px;right:24px;padding:12px 18px;background:#fffaf3ed;border-radius:16px;box-shadow:0 8px 25px #8e604018;text-align:center}#entry p{font-size:12px;line-height:1.6;margin:0 0 10px}.entry-actions{display:flex;gap:7px;justify-content:center}.move-badge{position:absolute;right:14px;top:12px;border:1px solid #dbc4b6;background:#fff9f0ed;border-radius:15px;padding:8px 12px;display:flex;align-items:center;gap:10px}.move-badge span{font-size:10px;max-width:65px}.move-badge strong{font-size:24px;color:#8b4255}.furniture-picks{display:flex;gap:5px;padding:9px 3px 0;flex-wrap:wrap}.furniture-picks button{flex:1;padding:6px 8px;font-size:11px;min-width:52px}.furniture-picks button.active{background:#edd6d1;border-color:#9f6070}.furniture-picks button small{display:block;font-size:9px;opacity:.65}.level-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:20px 0}.level-grid button{padding:6px 0;min-height:49px;font-size:14px;background:#f3e6db;border-color:transparent}.level-grid button.active{background:#8e4056;color:#fff}.level-grid small{display:block;font-size:8px;line-height:8px;min-height:8px;color:#bc8a50}.small{font-size:12px;color:#987a6c;line-height:1.8}.selected-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:17px}.selected-heading button{font-size:10px;max-width:90px;padding:7px}.selected-heading h2{font-size:24px}.action-row{display:flex;gap:7px}.action-row button:first-child{flex:1}.move-row{display:flex;gap:5px;margin-top:7px}.move-row button{padding:5px;flex:1;font-size:20px;min-width:42px}.move-row button:last-child{flex:1.7;font-size:11px}.requirements{margin:18px 0 13px;display:grid;gap:8px}.requirement{display:flex;align-items:center;gap:9px;font-size:11px;line-height:1.4;color:#977d72}.requirement .check{flex:none;width:17px;height:17px;border:1px solid #c7ad9d;border-radius:50%;text-align:center;font-size:10px;line-height:15px}.requirement.good{color:#6d4d43}.requirement.good .check{background:#b58367;color:white;border-color:#b58367}.complete{width:100%;font-size:13px}.complete.ready{box-shadow:0 0 0 4px #f0d7ce}.utility-row{display:flex;gap:5px;margin-top:9px}.utility-row button{flex:1;font-size:10px;padding:6px}.utility-row button:first-child{flex:1.5}#message{font-size:12px;min-height:25px;text-align:center;color:#a4425a;margin:14px 0 0;line-height:1.7}footer{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#aa9286;font-size:10px;border-top:1px solid var(--line);margin-top:6px;padding-top:6px}footer button{border:0;background:transparent;font-size:10px;min-height:36px;color:inherit}dialog{border:1px solid #d5b7a5;border-radius:24px;width:min(440px,calc(100vw - 28px));padding:36px 25px 24px;color:var(--ink);background:#fff8ef;box-shadow:0 25px 90px #4b223940}dialog::backdrop{background:#3a223955;backdrop-filter:blur(5px)}.dialog-close{position:absolute;right:10px;top:7px;border:0;font-size:24px;background:transparent}#dialog-content{text-align:center;line-height:1.8;font-size:13px}#dialog-content h2{font-size:27px;margin:8px 0 12px}#dialog-content .stars{font-size:30px;color:#b78251;letter-spacing:8px}#dialog-content small{display:block;font-size:10px}#dialog-content a{color:#8e4056}#dialog-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:20px;justify-content:center}#dialog-actions button{flex:1;min-width:100px}.replay-banner{color:#a15b6a}body.playing .heading{padding-top:20px}body.playing #title{font-size:28px}
@media(max-width:750px){#app{padding:10px 12px 8px;max-width:500px}header{gap:10px;height:46px;padding-bottom:5px}.wordmark{font-size:10px}.heading{padding:17px 4px 10px}.heading h1{font-size:28px}.heading .eyebrow{font-size:8px;margin-bottom:6px}.room-number{font-size:38px}#tagline{font-size:11px}.play-layout{display:flex;flex-direction:column;gap:12px;align-items:stretch}.room-column{width:100%}.phases{padding:0 4px 4px}.phase{min-height:32px;font-size:10px}.phase .symbol{font-size:15px}.canvas-wrap{border-radius:20px}#entry{left:12px;right:12px;bottom:12px;padding:10px}#entry p{font-size:10px}.entry-actions button{font-size:12px;min-height:44px;padding:8px 16px}.move-badge{right:9px;top:9px;padding:5px 9px;border-radius:12px}.move-badge strong{font-size:21px}.move-badge span{font-size:9px}.level-grid{margin:10px 0;gap:5px}.level-grid button{min-height:44px}#welcome h2{font-size:17px}#welcome .eyebrow{display:none}#welcome-tip{font-size:10px;line-height:1.6;margin:8px 0}body.playing .heading{padding:9px 4px 6px}body.playing .heading .eyebrow,body.playing #tagline{display:none}body.playing #title{font-size:20px;letter-spacing:-.5px;margin:0}body.playing .room-number{font-size:25px}.selected-heading{margin-bottom:7px}.selected-heading h2{font-size:18px}.selected-heading .eyebrow{font-size:9px;margin:0 0 3px}.selected-heading button{max-width:none;min-height:44px}.action-row{gap:5px}.action-row button{font-size:11px}.move-row{margin-top:5px}.requirements{grid-template-columns:1fr 1fr;gap:5px 7px;margin:10px 0}.requirement{font-size:9px;gap:5px}.requirement .check{width:15px;height:15px;line-height:13px}.utility-row{margin-top:5px}.furniture-picks{padding-top:6px}.furniture-picks button{min-height:44px}#message{margin-top:8px;font-size:10px;min-height:20px}.play-layout{gap:8px}footer{font-size:8px}footer button{font-size:9px}}
@media(max-width:750px) and (max-height:740px){body.playing #app{padding-top:5px}body.playing header{height:40px}body.playing .heading{padding-top:5px}body.playing canvas{max-height:35vh;aspect-ratio:auto;object-fit:contain}body.playing .canvas-wrap{display:flex;justify-content:center}body.playing .phases{padding-bottom:0}body.playing .phase{min-height:27px}body.playing .selected-heading{margin-bottom:4px}body.playing .furniture-picks{padding-top:3px}body.playing .requirements{margin:6px 0;gap:4px}body.playing #message{margin-top:4px}body.playing footer{display:none}body.playing .room-number span{font-size:11px}body.playing .utility-row button,body.playing .action-row button,body.playing .move-row button{min-height:44px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:750px) and (max-height:640px) and (orientation:portrait){body.playing .heading,body.playing .selected-heading{display:none}body.playing canvas{height:33vh;max-height:33vh;width:100%;object-fit:contain}body.playing .requirements .good{display:none}body.playing .requirements{margin:5px 0;gap:4px}body.playing .requirements:empty{display:none}body.playing .play-layout{gap:5px}body.playing #message{position:fixed;z-index:5;left:12px;right:12px;bottom:8px;background:#fff7ecf5;border-radius:8px;box-shadow:0 3px 18px #70413120;padding:5px 8px;pointer-events:none;min-height:0}body.playing #message:empty{display:none}body.playing .utility-row{margin-top:4px}body.playing .furniture-picks button small{display:none}}
@media(max-height:500px) and (orientation:landscape){#app{max-width:1250px;padding:5px 12px}header{height:37px;padding-bottom:3px}.heading{padding:8px 4px}.heading h1{font-size:20px}.heading .eyebrow,.heading #tagline{display:none}.room-number{font-size:25px}.play-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:14px;align-items:start}.room-column{width:100%}.phases{padding-bottom:2px}.phase{min-height:25px;font-size:10px}.canvas-wrap{height:calc(100dvh - 155px);min-height:150px;display:flex;align-items:center;justify-content:center}canvas{height:100%;width:100%;max-height:none;object-fit:contain}.furniture-picks{padding-top:4px}.furniture-picks button{min-height:44px}.furniture-picks button small{display:none}#panel{max-height:calc(100dvh - 102px);overflow:auto;padding:0 3px 8px}.selected-heading{margin-bottom:5px}.selected-heading h2{font-size:17px}.selected-heading .eyebrow{margin-bottom:2px}.selected-heading button{font-size:10px;max-width:100px}.requirements{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:7px 0}.requirement{font-size:9px}.utility-row{margin-top:5px}.action-row button,.move-row button{min-height:44px}.level-grid{margin:8px 0;gap:5px}.level-grid button{min-height:44px}#welcome-tip{font-size:10px;line-height:1.4}#message{position:fixed;z-index:5;left:15%;right:15%;bottom:4px;background:#fff7ecf2;min-height:0;border-radius:8px;padding:3px 7px;pointer-events:none}#message:empty{display:none}footer{display:none}#entry{bottom:8px;left:9px;right:9px;padding:8px}#entry p{display:none}body.playing .heading{padding-top:5px}body.playing #title{font-size:19px}}
@media(max-width:750px){body.playing .selected-heading,body.playing footer{display:none}body.playing .utility-row button{font-size:9px;padding:5px 4px}}
@media(min-width:751px) and (min-height:501px){body.playing canvas{max-height:calc(100dvh - 390px);min-height:280px;object-fit:contain}}
@media(max-height:500px) and (orientation:landscape){.canvas-wrap{height:calc(100dvh - 175px)}}
@media(max-height:500px) and (orientation:landscape){body.playing .heading{display:none}body.playing .canvas-wrap{height:calc(100dvh - 141px)}body.playing #panel{max-height:calc(100dvh - 55px)}}

button{min-width:44px}.move-row button{min-width:44px}

#rotate,#rotate-back{font-size:22px;line-height:1}

.room-options{display:flex;gap:6px;flex-wrap:wrap}.room-options button{flex:1;font-size:11px}.decor-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:15px}.decor-grid button{padding:8px 4px;font-size:10px}.decor-grid button.active{outline:2px solid #985466;outline-offset:1px}.decor-grid button span{display:block;width:28px;height:28px;border-radius:50%;margin:0 auto 5px}.decor-grid.art{grid-template-columns:repeat(3,1fr)}
