:root{--bg:#f7f5ef;--card:#fff;--ink:#233731;--muted:#748078;--green:#236c57;--dark:#213e34;--soft:#e9f1eb;--line:#e3e7df;--warm:#f6d99b;--danger:#aa4442;--shadow:0 10px 32px #23373108}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,'Noto Sans KR','Malgun Gothic',sans-serif;letter-spacing:-.035em;line-height:1.5}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #f2b452;outline-offset:3px}button{touch-action:manipulation}h1,h2,h3,p{margin:0}h2{font-size:19px;letter-spacing:-.055em}h3{font-size:16px}[hidden]{display:none!important}.shell{max-width:1160px;margin:0 auto;padding:0 28px}.topbar{height:92px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:30px}.brand{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:850}.brand-icon{background:var(--green);color:white;font-size:32px;width:44px;height:44px;border-radius:14px;text-align:center;line-height:40px}.brand small{display:block;font-size:11px;font-weight:600;color:var(--muted);margin-top:1px;letter-spacing:0}.top-actions{display:flex;gap:12px;align-items:center}.version{font-size:11px;font-weight:800;padding:4px 10px;border:1px solid var(--line);border-radius:30px;color:var(--muted)}.icon-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--card);font-size:22px;line-height:1}.hero{display:flex;position:relative;min-height:260px;align-items:center;justify-content:space-between;padding:4px 32px 32px 14px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.2em;color:var(--green)}.hero h1{font-size:46px;line-height:1.25;margin-top:12px;font-weight:850;letter-spacing:-.07em}.hero h1 em{font-style:normal;color:var(--green)}.hero-copy>p{display:none}.name-tag{display:inline-block;margin-top:20px;font-size:13px;color:var(--green);font-weight:700}.hero-art{position:relative;width:340px;height:218px;flex-shrink:0}.paper{position:absolute;width:148px;height:172px;background:white;border:1px solid #dfe6dc;border-radius:8px;box-shadow:0 14px 22px #23373112;display:flex;align-items:center;justify-content:center;font-size:75px}.paper small{position:absolute;bottom:10px;font-size:10px;color:#7f877f;letter-spacing:.07em}.p1{left:12px;top:9px;transform:rotate(-14deg);background:linear-gradient(#eef3e6 0 79%,white 79%)}.p2{right:5px;top:32px;transform:rotate(12deg);background:linear-gradient(#f8e8c9 0 79%,white 79%)}.art-star{position:absolute;font-size:46px;color:#d89834;left:168px;top:-12px}.entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:var(--shadow)}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:18px}.section-heading>h2{flex:1}.section-heading .icon-btn{flex:0 0 auto}.step-dot{width:29px;height:29px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800}.step-dot.pale{background:var(--warm);color:var(--ink)}label{display:block;font-size:12px;font-weight:750;margin:0 0 7px}input:not([type=range]),textarea,select{width:100%;border:1px solid var(--line);border-radius:11px;padding:11px 12px;background:#fafbf8;font-size:14px;outline-color:var(--green)}textarea{resize:vertical;max-height:130px}input[type=range]{min-width:0;accent-color:var(--green)}.form-row{display:flex;gap:12px;margin:16px 0}.form-row>div,.form-row>.button{flex:1;min-width:0}.button{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:44px;padding:11px 16px;background:#f2f5ef;border:1px solid var(--line);border-radius:12px;font-size:13px;font-weight:800;white-space:normal;text-align:center;line-height:1.35}.button.primary{background:var(--green);border-color:var(--green);color:#fff}.button.dark{background:var(--dark);border-color:var(--dark);color:#fff}.button.soft-danger{color:#944b45;background:#faf1ed;border-color:#eeded7}.button.wide{width:100%}.button.small{font-size:12px;min-height:36px;padding:8px 11px;border-radius:9px}.button span{margin-left:auto}.text-btn{border:0;background:none;padding:7px 3px;font-size:12px;font-weight:700;color:var(--green);border-radius:5px}.text-btn.danger,.danger{color:var(--danger)}.avatar-choice{display:flex;gap:8px;margin:8px 0 22px}.avatar-pick{border:2px solid transparent;width:46px;height:46px;background:#f7f6f0;border-radius:14px;font-size:27px}.avatar-pick.chosen{border-color:var(--green);background:#e9f0e6}.join-panel .button{margin-top:16px}.join-art{text-align:center;font-size:42px;margin-top:32px}.join-art span{font-size:18px;color:#adbaaa;vertical-align:middle;margin:0 10px}.small-chips{display:flex;gap:7px;justify-content:center;margin-top:14px}.small-chips span{padding:4px 10px;font-size:11px;border-radius:30px;background:var(--soft);color:var(--green)}.list-section{margin:30px 0}.room-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.room-item{display:flex;gap:12px;align-items:center;background:white;padding:14px 16px;border:1px solid var(--line);border-radius:14px}.room-item .room-copy{flex:1;min-width:0}.room-item b{display:block;overflow-wrap:anywhere;font-size:14px}.room-item small{font-size:11px;color:var(--muted)}.room-item .button{flex-shrink:0;min-width:64px}.room-item .tiny-delete{border:0;background:none;color:var(--danger);padding:8px}.muted{color:var(--muted);font-size:12px}.gate{text-align:center;max-width:500px;margin:40px auto}.gate h1{font-size:27px}.gate p{font-size:14px;margin:12px 0 20px}.gate .button{margin:4px}.large-emoji{font-size:55px;margin-bottom:18px}.notice{border:1px solid #cfdfd7;background:#eef6ed;padding:14px 16px;border-radius:13px;font-size:13px;margin:14px 0}.notice.warn{background:#fff4d9;border-color:#e7d39c}.notice.error{background:#faeeeb;color:#913d37;border-color:#ebc9bf}.notice .button{margin-top:10px}.room-top{display:flex;align-items:center;gap:15px;justify-content:space-between;margin-bottom:20px}.room-top h1{font-size:28px;margin-top:5px;line-height:1.25;overflow-wrap:anywhere}.room-top .button{flex-shrink:0}.players{display:flex;gap:10px;margin-bottom:24px;flex-wrap:wrap}.player{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:9px 13px;min-width:120px;max-width:230px;flex:1}.player.current{border-color:var(--green);box-shadow:0 0 0 2px #236c5720;background:#f1f7ef}.player.me{border-bottom:3px solid #a4bc94}.player .face{width:37px;height:37px;border-radius:12px;background:var(--soft);font-size:25px;display:grid;place-items:center;flex-shrink:0}.player .who{min-width:0}.player b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px}.player small{display:block;font-size:10px;color:var(--muted)}.turn-no{margin-left:auto;flex-shrink:0;font-size:14px;font-weight:850;background:#f6e4b7;color:#725c21;width:24px;height:24px;border-radius:50%;text-align:center;line-height:24px}.play-grid{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:20px;align-items:start}.play-main{min-width:0}.turnbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 2px 14px;font-size:14px}.turnbar>div{min-width:0;display:flex;align-items:center;gap:8px}.turnbar strong{overflow-wrap:anywhere}.turn-dot{width:8px;height:8px;flex-shrink:0;background:#a7b3a3;border-radius:50%}.turn-dot.on{background:#358164;box-shadow:0 0 0 4px #e2edde}.timer{font-size:17px;font-variant-numeric:tabular-nums;font-weight:850;color:var(--green);white-space:nowrap}.timer.urgent{color:var(--danger)}.time-track{height:3px;background:#e0e6d9;margin-top:-5px;margin-bottom:10px;border-radius:4px;overflow:hidden}.time-track span{display:block;height:100%;background:var(--green);width:100%;transition:width .3s linear}.stage-wrap{position:relative;border-radius:15px;padding:16px;background:#deded5;border:1px solid #d2d5cb;overflow:hidden;min-height:180px}#board{display:block;width:100%;height:auto;background:white;touch-action:none;border:0;box-shadow:0 2px 9px #28322614}#board:focus-visible{outline:2px solid #c79735}.stage-cover{position:absolute;inset:16px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;background:rgba(249,248,242,.96);text-align:center;padding:18px}.stage-cover>span{font-size:48px;color:#8ba48b}.stage-cover strong{font-size:16px;font-weight:750}.stage-cover .button{font-size:13px}.board-caption{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;color:var(--muted);padding:7px 2px}.cut-tray{display:flex;gap:8px;overflow-x:auto;padding:10px;background:#eeeee6;border-radius:12px;margin:5px 0}.cut-item{flex:0 0 66px;border:2px solid transparent;background:white;padding:3px;border-radius:9px;min-width:0}.cut-item.selected{border-color:var(--danger)}.cut-item img{width:54px;height:46px;object-fit:contain;display:block}.cut-item small{display:block;font-size:9px;max-width:55px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.editor-tools{background:white;border:1px solid var(--line);border-radius:15px;padding:14px;margin:7px 0 12px}.tool-head,.tool-end{display:flex;align-items:center;justify-content:space-between;gap:10px}.tool-head strong{font-size:13px}.tool-head>div{display:flex;gap:10px}.tool-end{margin-top:6px}.tool-end>div{display:flex;gap:7px}.sliders{display:flex;gap:12px;margin-top:12px}.sliders label{display:flex;align-items:center;gap:6px;font-size:11px;flex:1;min-width:0}.sliders input{width:100%;flex:1}.sliders output{min-width:31px;font-size:10px}.action-dock{display:flex;flex-direction:column;gap:8px;margin-top:8px}.action-dock>.button{min-height:47px;font-size:14px}.secondary-actions{display:flex;gap:8px}.secondary-actions>.button{flex:1;font-size:12px}.room-options{margin:18px 0;font-size:12px;color:var(--muted)}summary{cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}.room-options summary::after{content:' ＋'}.room-options[open] summary::after{content:' −'}.option-body{background:white;border:1px solid var(--line);padding:15px;border-radius:13px;display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.option-body #playerAdmin{width:100%}.admin-player{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0}.admin-player .button{font-size:10px;min-height:30px;padding:5px 8px}.side-panel{padding:0;overflow:hidden}.tabs{display:flex;border-bottom:1px solid var(--line)}.tabs button{flex:1;border:0;border-bottom:3px solid transparent;background:#fafbf8;padding:16px 8px;font-size:13px;font-weight:800;color:var(--muted)}.tabs button.on{background:white;border-bottom-color:var(--green);color:var(--green)}.tabs button span{font-size:11px;padding:2px 6px;background:#e3eadf;border-radius:10px;margin-left:3px}.tabs i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#d99743;margin-left:5px}.side-panel section{padding:17px}.hand-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px;gap:5px;font-size:13px}.private-badge{font-size:10px;border-radius:20px;padding:3px 7px;color:#817451;background:#f7edcf}.hand-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:304px;overflow:auto;margin-top:15px}.hand-card{position:relative;padding:3px;background:#f5f5ee;border:2px solid transparent;border-radius:10px;min-width:0;overflow:hidden}.hand-card img{width:100%;height:64px;object-fit:cover;border-radius:5px;display:block}.hand-card.used{opacity:.5}.hand-card.used::after{content:'공개함';position:absolute;left:0;right:0;bottom:0;background:#233731bd;color:white;font-size:10px;text-align:center}.hand-card.selected{border-color:var(--green)}#handStatus{font-size:11px;margin:10px 0}.sticker-details{margin:18px 0 5px;border-top:1px solid var(--line);padding-top:15px}.sticker-details summary{font-size:12px;font-weight:750;color:var(--green)}.sticker-details summary::after{content:' ＋'}.sticker-details[open] summary::after{content:' −'}.sticker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:12px 0}.sticker-btn{font-size:29px;height:48px;background:#f6f5ee;border:0;border-radius:11px}.chat-messages{height:320px;overflow:auto;padding-right:5px;overscroll-behavior:contain}.chat-bubble{margin:0 0 14px;display:flex;flex-direction:column;align-items:flex-start}.chat-bubble.me{align-items:flex-end}.chat-bubble small{font-size:10px;color:var(--muted);margin:0 4px 4px}.chat-bubble p{background:#f2f4ed;padding:9px 11px;border-radius:3px 12px 12px;max-width:95%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.chat-bubble.me p{background:#e1edde;border-radius:12px 3px 12px 12px}#chatForm{margin-top:12px}#chatForm textarea{margin-bottom:7px}#lastEvent{font-size:11px;color:var(--muted);text-align:center;min-height:20px;margin:10px 0}.vote-panel,.finish-panel{margin-top:16px;text-align:center;padding:24px 18px}.vote-panel h2,.finish-panel h2{margin:8px 0 12px}.vote-panel .muted{margin-top:8px}.finish-panel{background:#f3f8ed;border-color:#cddfbe}.finish-star{font-size:32px;color:#be8f33}.save-buttons{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}#saveStatus{font-size:12px;color:var(--green);margin-top:12px}.help{margin-top:35px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.help>summary{padding:18px 2px;display:flex;justify-content:space-between;font-size:13px;font-weight:700;color:var(--muted)}.help-close{display:none}.help[open] .help-open{display:none}.help[open] .help-close{display:inline}.help-body{padding:0 4px 24px;max-width:790px;font-size:13px;color:#5f6f64;line-height:1.8}.help-body h2{font-size:17px;margin-bottom:10px}.help-body h3{margin:20px 0 8px}.help-body p+p{margin-top:12px}footer{font-size:11px;text-align:center;color:#879182;padding:26px 0 max(28px,env(safe-area-inset-bottom));letter-spacing:-.03em}.modal{position:fixed;inset:0;background:#1e332dbc;z-index:150;display:flex;justify-content:center;align-items:center;padding:18px;overscroll-behavior:contain}.modal-card{background:var(--bg);border-radius:22px;padding:22px;width:100%;max-width:690px;max-height:95dvh;overflow:auto;box-shadow:0 15px 60px #0003}.crop-presets{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}#cropCanvas{width:100%;height:auto;display:block;background:#24302a;border-radius:12px;touch-action:none;margin-bottom:14px}.crop-presets .on{border-color:var(--green);background:var(--soft)}#savePreview{width:100%;max-height:58vh;object-fit:contain;display:block;margin:12px 0}#saveModal p{margin-top:10px;text-align:center}.toast{position:fixed;bottom:calc(25px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:min(520px,calc(100vw - 24px));background:#213e34;color:white;box-shadow:0 10px 22px #12211638;padding:13px 18px;border-radius:13px;z-index:200;line-height:1.5;font-size:13px;text-align:center;pointer-events:none}.sr-only{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
@media(max-width:900px){.shell{padding:0 20px}.hero h1{font-size:38px}.hero-art{transform:scale(.9);transform-origin:right center;width:300px}.play-grid{grid-template-columns:minmax(0,1fr) 265px;gap:15px}.side-panel section{padding:14px}.stage-wrap{padding:12px}.stage-cover{inset:12px}.players{gap:7px}.player{min-width:100px;padding:8px;gap:7px}.player b{font-size:12px;max-width:100px}.player .face{width:31px;height:31px;font-size:23px}.player small{font-size:9px}.sliders{flex-direction:column;gap:6px}.sliders label{font-size:12px}}
@media(max-width:700px){.shell{padding:0 14px}.topbar{height:73px;margin-bottom:20px}.brand{font-size:16px}.brand small{font-size:10px}.brand-icon{width:37px;height:37px;font-size:28px;line-height:34px;border-radius:12px}.hero{min-height:210px;padding:4px 0 25px}.hero h1{font-size:34px}.hero-art{width:160px;height:175px;transform:none}.paper{width:100px;height:122px;font-size:54px;border-radius:6px}.p1{left:-15px;top:0}.p2{right:-5px;top:45px}.paper small{font-size:8px;bottom:6px}.art-star{left:92px;top:-8px;font-size:31px}.eyebrow{font-size:9px}.name-tag{margin-top:15px;font-size:12px}.entry-grid{grid-template-columns:1fr;gap:15px}.panel{padding:20px;border-radius:19px}.join-panel .join-art{display:none}.join-panel .small-chips{margin-top:18px}.room-list{grid-template-columns:1fr}.room-top h1{font-size:23px}.room-top .button{font-size:11px;padding:8px 10px;min-height:36px}.players{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:12px}.player{position:relative;min-width:0;max-width:none;flex-direction:column;text-align:center;padding:10px 3px 7px;gap:5px;border-radius:13px}.player .who{width:100%}.player b{max-width:100%;font-size:11px}.player .face{width:33px;height:33px;font-size:26px}.player .turn-no{position:absolute;right:4px;top:4px;width:17px;height:17px;line-height:17px;font-size:10px}.player small{font-size:8px}.play-grid{grid-template-columns:1fr;gap:14px}.turnbar{font-size:13px;padding:9px 2px 12px}.stage-wrap{padding:10px;border-radius:12px}.stage-cover{inset:10px}.stage-cover strong{font-size:14px}.stage-cover>span{font-size:40px}.stage-cover .button{min-height:40px;font-size:12px}.side-panel{padding:0;grid-row:2}.side-panel section{padding:16px}.hand-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-height:177px}.hand-card img{height:62px}.sticker-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.sticker-btn{height:45px;font-size:27px}.chat-messages{height:245px}.sliders{flex-direction:row;gap:10px}.sliders label{font-size:10px}.action-dock>.button{font-size:13px}.secondary-actions>.button{font-size:11px;padding:10px 8px}.room-options{margin:13px 0}.board-caption{font-size:10px}.help{margin-top:25px}.modal{padding:10px}.modal-card{padding:16px;border-radius:17px}.crop-presets{gap:6px}.crop-presets .button{font-size:11px;padding:7px 10px}.list-section{margin:23px 0}}
@media(max-width:360px){.hero h1{font-size:30px}.hero-art{width:143px}.avatar-choice{gap:6px}.avatar-pick{width:40px;height:42px;font-size:25px}.sliders{flex-direction:column}.hand-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hero .eyebrow{font-size:8px}.small-chips span{font-size:10px;padding:4px 8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

/* ============================================================
   V1.0.1 · mobile compact UI only. Game/point/auth logic unchanged.
   Board pixel dimensions stay intact; compact.js changes CSS size only.
   ============================================================ */
.play-grid{grid-template-areas:"board side" "controls side";row-gap:10px}
.play-main{grid-area:board}
.play-controls{grid-area:controls;min-width:0}
.side-panel{grid-area:side;grid-row:auto}
.room-top>div{min-width:0}
.room-bottom{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap;margin-top:12px}
.room-bottom>details{flex:1;min-width:240px;margin:0}
.room-info{font-size:12px;color:var(--muted)}
.room-info>summary,.room-options>summary{padding:12px 3px;font-weight:700;min-height:42px}
.room-info>summary::after{content:' ＋'}
.room-info[open]>summary::after{content:' −'}
.info-body{padding:14px;background:white;border:1px solid var(--line);border-radius:13px}
.info-row{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding:5px 0}
.info-player{padding:6px 0;font-size:12px;overflow-wrap:anywhere}
.info-body #lastEvent{text-align:left;margin:10px 0;min-height:0}
.info-body .muted{margin-top:10px}
.side-top{display:flex;align-items:stretch;border-bottom:1px solid var(--line)}
.side-top .tabs{flex:1;min-width:0;border-bottom:0}
.character-toggle{border:0;background:#f4f5ec;color:var(--green);font-size:12px;font-weight:750;padding:0 11px;min-height:40px;white-space:nowrap}
.character-toggle[aria-expanded=true]{background:var(--soft);box-shadow:inset 0 -3px var(--green)}
.hand-row{display:flex;gap:7px;min-width:0;align-items:stretch}
.pick-tile{flex:0 0 53px;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border:1px dashed #9bb2a2;border-radius:10px;background:#f0f5ed;color:var(--green);padding:4px;line-height:1.1}
.pick-tile>span{font-size:26px;font-weight:500}
.pick-tile>b{font-size:11px;font-weight:750;margin-top:3px}
.hand-grid{flex:1;display:flex;gap:7px;min-width:0;max-height:none;margin:0;overflow-x:auto;overflow-y:hidden;padding:0 0 3px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x;scrollbar-width:thin;scrollbar-color:#b7c8b9 transparent}
.hand-grid::-webkit-scrollbar{height:3px}
.hand-grid::-webkit-scrollbar-thumb{background:#b7c8b9;border-radius:4px}
.hand-card{flex:0 0 66px;width:66px;min-height:68px;scroll-snap-align:start}
.hand-card img{height:60px;object-fit:contain;background:white}
body.compact-ready #handStatus{display:none}
body.compact-ready #handStatus.hand-alert{display:block;margin:6px 0 0;color:#98512e;font-size:11px}
body.compact-ready #stickerDetails{border:0;padding:0;margin:0}
body.compact-ready #stickerDetails>summary{display:none}
body.compact-ready #stickerDetails[open]{margin-top:7px}
body.compact-ready .sticker-grid{display:flex;gap:7px;overflow-x:auto;overflow-y:hidden;margin:0;padding-bottom:3px;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x}
body.compact-ready .sticker-btn{flex:0 0 48px;width:48px}
.editor-tools{padding:0;margin:8px 0 0;box-shadow:none}
#editDetails>summary{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;font-size:12px;font-weight:750;min-height:40px;color:var(--green)}
#editDetails[open]>summary>span{transform:rotate(180deg)}
.edit-body{border-top:1px solid var(--line);padding:12px}
.edit-body .tool-head>strong{display:none}
.edit-body .tool-head>div{width:100%;justify-content:space-between}
.action-dock{margin:0;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.7fr);gap:8px}
.action-dock>.button{min-height:44px;font-size:13px;padding:9px 10px}
.secondary-actions{gap:7px}
.secondary-actions>.button{min-width:0;min-height:44px;padding:9px 6px;font-size:12px}
#gameHelp{margin-top:16px}
#roomInfo #clearHand{min-height:40px}
#handPanel{padding:12px}
#chatPanel{padding:12px}

@media(max-width:700px){
  /* No decorative headline above the actual game / room entry. */
  .shell{padding:0 8px}
  .topbar{height:42px;margin-bottom:4px;border:0;gap:8px}
  .brand{gap:6px;font-size:14px;line-height:1.2}
  .brand small{display:none}
  .brand-icon{width:26px;height:26px;font-size:21px;line-height:24px;border-radius:8px}
  .top-actions{gap:6px}
  .version{font-size:9px;padding:2px 6px}
  .topbar .icon-btn{width:36px;height:36px;font-size:23px}
  .hero{display:none}
  .entry-grid{gap:10px;margin-top:6px}
  .entry-grid>.panel{padding:15px;border-radius:15px}
  .section-heading{margin-bottom:12px}
  .section-heading h2{font-size:17px}
  .entry-grid .small-chips{display:none}
  .entry-grid .avatar-choice{margin-bottom:14px;gap:7px}
  .entry-grid .avatar-pick{width:41px;height:41px;font-size:25px}
  input:not([type=range]),textarea,select{font-size:16px}
  .room-top{margin:0 0 5px;min-height:26px;gap:6px}
  .room-top .eyebrow{display:none}
  .room-top h1{font-size:16px;line-height:1.2;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .room-top .button{font-size:10px;min-height:30px;padding:5px 9px}
  /* Original mobile participant cards were about 90 px tall; new cards ~44 px. */
  .players{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0 0 3px}
  .player{height:44px;min-height:44px;padding:3px 3px 2px;gap:1px;border-radius:9px;justify-content:center;position:relative}
  .player .face{width:21px;height:21px;font-size:19px;border-radius:6px;line-height:1}
  .player b{font-size:11px;line-height:13px;font-weight:750;letter-spacing:-.06em}
  .player small{display:none}
  .player .turn-no{right:3px;top:3px;width:14px;height:14px;line-height:14px;font-size:9px}
  .player.me{border-bottom-width:2px}
  .player.current{box-shadow:0 0 0 1px #236c5720}
  .play-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"board" "side" "controls";gap:5px}
  .play-main,.side-panel,.play-controls{min-width:0;grid-row:auto}
  .turnbar{min-height:26px;padding:3px 2px 4px;font-size:12px;line-height:1.3}
  .turnbar>div{gap:5px;flex:1;min-width:0}
  .turnbar strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;overflow-wrap:normal;font-size:12px}
  .timer{font-size:14px}
  .turn-dot{width:6px;height:6px}
  .time-track{height:2px;margin:0 0 3px}
  .stage-wrap{min-height:0;padding:5px;border-radius:9px;display:flex;justify-content:center;align-items:center}
  #board{max-width:100%;box-shadow:none}
  .stage-cover{inset:5px;padding:10px;gap:10px}
  .stage-cover>span{display:none}
  .stage-cover strong{font-size:13px}
  .stage-cover .button{min-height:40px;padding:10px 12px}
  .board-caption{height:28px;padding:0 2px;font-size:10px;gap:6px}
  .board-caption .text-btn{min-height:28px;padding:4px 2px;font-size:11px}
  .cut-tray{padding:6px;margin:0 0 4px;gap:6px}
  .cut-item{flex-basis:56px}
  .cut-item img{width:46px;height:37px}
  .cut-item small{max-width:46px}
  .side-panel{padding:0;border-radius:12px;box-shadow:none}
  .tabs button{padding:7px 5px;min-height:36px;font-size:12px}
  .tabs button span{font-size:10px;margin-left:1px;padding:1px 5px}
  .character-toggle{font-size:11px;padding:0 10px;min-height:36px}
  #handPanel{padding:7px}
  .hand-row{gap:6px;height:72px}
  .pick-tile{flex-basis:48px;min-height:68px;border-radius:9px}
  .hand-grid{gap:5px;padding-bottom:2px}
  .hand-card{flex-basis:62px;width:62px;min-height:68px;padding:2px;border-radius:8px}
  .hand-card img{height:62px;border-radius:4px}
  .hand-card.used::after{font-size:9px}
  body.compact-ready .sticker-btn{height:44px;font-size:27px;flex-basis:46px}
  #chatPanel{padding:8px}
  .chat-messages{height:135px}
  .chat-bubble{margin-bottom:8px}
  .chat-bubble p{font-size:13px;padding:6px 9px}
  #chatForm{display:flex;gap:7px;margin-top:7px}
  #chatInput{flex:1;min-width:0;min-height:42px;margin:0;padding:9px}
  #sendChat{width:60px;flex:0 0 60px;min-height:42px;padding:8px;font-size:12px}
  .action-dock{gap:6px}
  .action-dock>.button{font-size:12px;min-height:42px;border-radius:10px;padding:8px}
  .secondary-actions{gap:6px}
  .secondary-actions>.button{font-size:11px;min-height:42px;border-radius:10px;padding:8px 4px}
  .editor-tools{margin:5px 0 0;border-radius:11px}
  #editDetails>summary{padding:7px 10px;min-height:36px;font-size:11px}
  .edit-body{padding:9px}
  .sliders{flex-direction:row;gap:8px;margin-top:9px}
  .sliders label{font-size:11px}
  .tool-head>div{gap:8px}
  .tool-end .text-btn{font-size:10px}
  .room-bottom{margin:5px 0 0;gap:4px}
  .room-bottom>details{flex:1 1 45%;min-width:0}
  .room-bottom>details[open]{flex-basis:100%}
  .room-options>summary,.room-info>summary{font-size:11px;padding:8px 3px;min-height:36px}
  .option-body,.info-body{padding:11px;margin-top:0}
  #gameHelp{margin-top:3px}
  #gameHelp>summary{font-size:12px;padding:10px 2px;min-height:40px}
  .help-body{font-size:13px;line-height:1.7}
  footer{display:none}
  .notice{padding:9px 11px;font-size:12px;margin:5px 0}
  .vote-panel,.finish-panel{margin-top:5px;padding:14px 10px}
  .vote-panel .eyebrow,.vote-panel>.muted,.finish-star{display:none}
  .vote-panel h2,.finish-panel h2{font-size:16px;margin:0 0 7px}
  .vote-panel .form-row{margin:10px 0 0}
  .toast{font-size:12px;padding:10px 13px;bottom:calc(10px + env(safe-area-inset-bottom))}
  .modal-card{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}
}
@media(max-width:360px){
  .shell{padding:0 6px}
  .player b{font-size:10px}
  .entry-grid .avatar-choice{gap:5px}
  .entry-grid .avatar-pick{width:39px;height:39px}
  .pick-tile{flex-basis:43px}
  .hand-card{flex-basis:57px;width:57px}
  .character-toggle{padding:0 7px;font-size:10px}
}
/* A short landscape display stays scrollable; no clipped or locked viewport. */
@media(min-width:701px) and (max-height:520px){
  .topbar{height:42px;margin-bottom:4px}
  .brand small,.hero,.room-top .eyebrow{display:none}
  .brand-icon{width:28px;height:28px;line-height:26px;font-size:22px}
  .room-top{margin-bottom:6px}
  .room-top h1{font-size:18px;margin:0}
  .players{margin-bottom:4px}
  .player{padding:4px 7px}
  .player .face{width:24px;height:24px;font-size:21px}
  .player small{display:none}
  .turnbar{padding:4px 2px;font-size:12px}
  .stage-wrap{min-height:0;display:flex;justify-content:center;align-items:center;padding:5px}
}

/* V1.0.2 · one horizontal row even with 7–12 family members. */
.players{
  display:flex;flex-flow:row nowrap;min-width:0;max-width:100%;
  overflow-x:auto;overflow-y:hidden;padding:2px 1px 5px;
  overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x;
  scrollbar-width:thin;scrollbar-color:#b7c8b9 transparent;
}
.players>.player{flex:0 0 146px;min-width:146px;max-width:146px}
.players::-webkit-scrollbar,.cut-tray::-webkit-scrollbar{height:3px}
.players::-webkit-scrollbar-thumb,.cut-tray::-webkit-scrollbar-thumb{background:#b7c8b9;border-radius:4px}
.hand-grid,.cut-tray,body.compact-ready .sticker-grid{flex-wrap:nowrap}
.cut-tray{max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x;scrollbar-width:thin}
.cut-tray>.cut-item{flex-shrink:0}
.editor-shortcuts{display:flex;align-items:center;gap:8px;padding:5px 8px;min-height:44px}
.editor-shortcuts .crop-direct{min-width:72px;color:var(--green);background:var(--soft);border-color:#a6c6b1;font-weight:850}
.editor-shortcuts .tool-more{flex:1;min-width:0;min-height:36px;text-align:center}
.editor-shortcuts #cancelDraft{min-width:42px;min-height:36px}
body.compact-ready #editDetails>summary{display:none}
body.compact-ready #editDetails[open] .edit-body{display:block}
#cropCanvas{touch-action:none;max-width:100%}
@media(max-width:700px){
  .players{gap:5px;margin-bottom:2px;padding-bottom:4px}
  .players>.player{flex:0 0 84px;min-width:84px;max-width:84px;height:44px;min-height:44px}
  .player .who{max-width:100%;width:100%;text-align:center}
  .player b{max-width:100%}
  .editor-shortcuts{padding:3px 6px;gap:6px;min-height:40px}
  .editor-shortcuts .crop-direct{min-width:64px;min-height:34px;padding:6px 10px;font-size:12px}
  .editor-shortcuts .tool-more,.editor-shortcuts #cancelDraft{font-size:11px;min-height:34px}
  #cropModal{padding:8px}
  #cropModal .modal-card{padding:14px;width:100%;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);overflow-y:auto}
  #cropModal .section-heading{margin-bottom:10px}
  #cropModal h2{font-size:17px}
  #cropModal .crop-presets{gap:5px;flex-wrap:nowrap}
  #cropModal .crop-presets>.button{flex:1;min-width:0;padding:6px 3px;font-size:11px}
  #cropApply{min-height:42px}
}


/* V1.0.3 UI only: reuse the same buttons beside the current-turn label.
   No fixed overlay, cloning, hidden substitutes or new game handlers. */
.turnbar.turn-actions-bar{
  display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-start;
  gap:7px;min-height:50px;padding:3px 0 7px;
}
.turn-actions-bar>.turn-status{flex:1 1 0;min-width:0;gap:6px;overflow:hidden}
.turn-actions-bar #turnText{
  display:flex;align-items:baseline;flex:1 1 0;min-width:0;max-width:100%;
  white-space:nowrap;overflow:hidden;overflow-wrap:normal;text-overflow:ellipsis;
}
.turn-actions-bar .turn-name{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.turn-actions-bar .turn-suffix{flex:0 0 auto;white-space:nowrap}
/* The full phrase remains available through title/aria-label on turnText. */
.turn-actions-bar .turn-note{display:none}
.turn-actions-bar>.timer{flex:0 0 auto;margin:0;font-size:14px;line-height:1.2}
.turn-actions-bar>#playActions{
  display:flex;flex:0 0 auto;flex-flow:row nowrap;align-items:center;
  grid-template-columns:none;width:auto;min-width:0;gap:5px;margin:0;
}
.turn-actions-bar #playActions>.secondary-actions{display:flex;flex:0 0 auto;flex-flow:row nowrap;gap:5px;margin:0}
.turn-actions-bar #playActions .button{
  flex:0 0 auto;min-width:0;min-height:42px;padding:8px 10px;gap:0;
  border-radius:10px;white-space:nowrap;word-break:keep-all;
  font-size:12px;line-height:1.2;letter-spacing:-.04em;
}
@media(max-width:700px){
  .turnbar.turn-actions-bar{gap:5px;min-height:46px;padding:2px 0 4px}
  .turn-actions-bar>.turn-status{gap:4px}
  .turn-actions-bar #turnText{font-size:11px;line-height:1.3}
  .turn-actions-bar>.timer{font-size:11px}
  .turn-actions-bar>#playActions,.turn-actions-bar #playActions>.secondary-actions{gap:4px}
  .turn-actions-bar #playActions .button{min-height:40px;padding:7px 7px;font-size:11px;border-radius:8px}
}
@media(max-width:360px){
  .turnbar.turn-actions-bar{gap:3px}
  .turn-actions-bar>.turn-status{gap:3px}
  .turn-actions-bar #turnText{font-size:10px}
  .turn-actions-bar #playActions .button{padding-right:5px;padding-left:5px;font-size:10px}
  .turn-actions-bar>#playActions,.turn-actions-bar #playActions>.secondary-actions{gap:3px}
}

/* FREE V1 · 닉네임 직접초대 */
.direct-invite-panel{margin:8px 0 14px;padding:13px;border:1px solid #d8e6de;border-radius:16px;background:#f8fbf9}
.direct-invite-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.direct-invite-head b{font-size:14px;color:#234a3d}.direct-invite-head small{font-size:10.5px;color:#71837b}
.direct-invite-search{width:100%;border:1px solid #cbd9d1;border-radius:11px;padding:9px 11px;background:#fff;font:inherit;color:#243c34}
.direct-invite-members{display:flex;gap:7px;overflow-x:auto;padding:9px 1px 3px;scrollbar-width:none}.direct-invite-members::-webkit-scrollbar{display:none}
.invite-member-btn{flex:0 0 auto;min-width:92px;border:1px solid #d6e2dc;border-radius:12px;padding:8px 10px;background:#fff;color:#2b443b;font:inherit;font-size:12px;font-weight:800;cursor:pointer;text-align:center}
.invite-member-btn:hover{border-color:#77aa92;background:#f0f8f4}.invite-member-btn.sent{border-color:#aed7c3;background:#eaf6f0;color:#227052}.invite-member-btn.playing{opacity:.55;cursor:default}
.invite-member-btn span{display:block;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.invite-member-btn small{display:block;margin-top:2px;color:#87958f;font-size:9.5px;font-weight:700}
.received-invite-list{display:grid;gap:8px}.received-invite-item{border:1px solid #cfe4d8;border-radius:13px;padding:11px;background:#f3fbf6}.received-invite-item b{display:block;color:#1d4d3c;font-size:14px}.received-invite-item p{margin:3px 0 8px;color:#6a7d75;font-size:11px}
.received-invite-actions{display:flex;gap:7px}.received-invite-actions button{flex:1;border:0;border-radius:10px;padding:8px;font:inherit;font-size:11.5px;font-weight:850;cursor:pointer}.received-invite-actions .accept{background:#22795d;color:#fff}.received-invite-actions .decline{background:#eef2ef;color:#64746d}.invite-empty{padding:17px 8px;text-align:center;color:#84928c;font-size:12px}
@media(max-width:680px){.direct-invite-panel{padding:11px}.invite-member-btn{min-width:82px;padding:7px 8px}}
