@charset "UTF-8";
.character-option>span:last-child{font-size:15px;color:#283f31}
#lobby-visual #world-canvas{visibility:hidden;position:absolute;inset:0}
#self-portrait{width:100%;height:100%;object-fit:contain;display:block}
#results-overlay{background:#dfd5bb}
/* 승인된 심플 캠프 화면. 게임 조작과 3D 장면은 기존 스타일을 유지합니다. */
.site-header{max-width:1180px;width:calc(100% - 48px);height:72px;margin:24px auto 20px;padding:14px 22px;border:1px solid #a5b092;border-radius:18px;background:#c9cbb0;gap:20px}
.brand{font-family:inherit;font-size:25px;font-weight:850;letter-spacing:-1px}.site-header nav{gap:20px;margin-left:auto;font-size:14px}.site-header .sound-toggle{font-size:12px}.connection{font-size:11px}.page-shell{max-width:1180px;width:calc(100% - 48px);padding:0;margin:0 auto 24px}
body:not([data-screen=game]) .button{font-size:18px;min-height:52px;padding:13px 21px;border-radius:14px}.button.danger{background:#984d36;color:#eee5cf}.button[aria-pressed=true]{background:#c5cfb2;color:#315b40;border:1px solid #759363}
.hero{margin:0;grid-template-columns:1.1fr 1fr;min-height:610px;border-radius:22px;padding:38px 44px;gap:30px}.hero-copy{order:0;padding:0}.hero h1{font-size:68px;line-height:1.15;letter-spacing:-3.8px;margin:26px 0 22px}.hero h1 em{display:inline-block;border-bottom:6px solid #a4b18b;padding-bottom:6px}.hero p{font-size:18px}.hero .eyebrow{font:750 13px inherit;letter-spacing:0}.hero-actions{gap:12px;margin:30px 0}.home-facts{display:flex;gap:23px;font-size:14px;color:#5e6e56}.home-facts b{font-size:19px;color:#315b40}.hero-visual{order:1;height:440px;min-width:0;background:#b9c6a6;border:1px solid #a5b092;border-radius:24px}.camp-label{position:absolute;top:23px;left:24px;font:800 14px monospace;letter-spacing:2px;color:#526546;z-index:1}.hero-visual .character-edit{font-size:13px;bottom:16px;right:16px}.hero-visual #world-canvas{width:100%;height:100%}
.camp-room{border:1px solid #b3b598;border-radius:22px 22px 0 0;background:#e5ddc7;padding:28px 36px;min-height:585px}.room-heading{margin:0 0 24px;display:flex;justify-content:space-between;align-items:center}.room-heading h1{font-size:42px;margin:0;letter-spacing:-2px}.room-heading p{font-size:14px;margin:10px 0 0}.room-heading #room-code{font:800 16px monospace;letter-spacing:2px;padding:5px 8px;background:#d0d2b9;border-radius:5px}.room-actions{display:flex;gap:10px}.camp-room-grid{display:grid;grid-template-columns:245px minmax(0,1fr);gap:30px;min-height:0}.self-card{background:#c9cbb0;border:1px solid #9daa89;border-radius:18px;padding:13px 15px 17px;display:flex;align-items:center;flex-direction:column;min-width:0}.self-card .lobby-visual{width:100%;height:158px;position:relative;border:0;border-radius:14px;overflow:hidden}.self-card #world-canvas{width:100%;height:100%}.self-card>small{font-size:13px;color:#5e6e56}.self-card>strong{font-size:27px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;margin:7px 0}.self-card #lobby-character{font-size:15px;width:100%;margin-top:16px;min-height:42px;padding:9px}.course-summary{display:flex;flex-direction:column;gap:6px;width:100%;margin-top:14px;border:1px solid #b3b598;border-radius:12px;background:#d0d2b9;text-align:left;padding:13px 15px;color:#283f31}.course-summary strong{font-size:18px}.course-summary>span{font-size:13px;color:#5e6e56}.course-summary #host-badge{font-size:12px}
.players-panel{padding:0;border:0;background:none;margin:0;min-width:0;min-height:0;display:flex;flex-direction:column}.panel-heading{margin:0 0 14px;flex:none}.panel-heading h2{font-size:25px;letter-spacing:-1px}.panel-heading #room-count{font-size:15px;color:#6d7b61;margin-left:8px;letter-spacing:0}.panel-heading #ready-count{font-size:14px;color:#426039;background:#c5cfb2;padding:6px 9px;border-radius:6px}.player-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-height:450px;overflow:auto;align-content:start;padding:2px 5px 5px 0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a5b092 transparent}.player-card{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;min-height:177px;min-width:0;padding:10px 8px;border:1px solid #b3b598;border-top:4px solid #8fa17d;border-radius:12px;background:#d8d7bf;gap:5px}.player-portrait{width:80px;height:78px;object-fit:contain}.player-name{font-size:22px;font-weight:850;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.player-name small{font-size:11px;margin-left:5px;color:#6d7b61}.camp-status{display:inline-block;white-space:nowrap;font-size:14px;font-weight:700;padding:6px 9px;border-radius:5px;background:#d1d1bc;color:#67735c}.camp-status.ready{background:#c5cfb2;color:#315b40}.camp-status.choosing{background:#d8c79e;color:#795d26}.camp-status.offline{background:#dfc9b8;color:#8c4e34}.player-card.disconnected{border-style:dashed;background:#d8d4c3}.disconnected img{opacity:.55;filter:grayscale(.5)}.manage-player{position:absolute;inset:0;background:none;border:0;font-size:0;border-radius:12px}.manage-player:after{content:'⋮';position:absolute;right:8px;top:3px;font-size:26px;color:#637558}.manage-player:hover{outline:2px solid #789268;outline-offset:-2px}.empty-player{font-size:17px;background:#c9cbb0;color:#5e7751;border:1px dashed #93a47e}
.camp-room-footer{border:1px solid #b3b598;border-top:0;border-radius:0 0 22px 22px;background:#d0d2b9;padding:18px 36px;display:flex;justify-content:space-between;align-items:center;gap:20px}.camp-room-footer p{font-size:18px;color:#5e6e56;margin:0}.camp-room-footer .button{min-width:270px}.camp-room-footer #start-game{margin:0;width:auto}
dialog{max-width:min(500px,calc(100% - 32px));max-height:calc(100dvh - 48px)}.dialog-body{padding:30px}.dialog-body h2{font-size:29px}.dialog-body p{font-size:15px}.dialog-body label,#settings-form label{font-size:17px;font-weight:800;display:block;margin:17px 0 8px}.dialog-body input,#settings-form select{width:100%;font-size:18px;min-height:51px;border:1px solid #9daa89;border-radius:10px;background:#ddd7c1;color:#283f31;padding:12px}.dialog-close{z-index:2;width:38px;height:38px;font-size:27px}.dialog-body .full{margin-top:18px}.dialog-body .field-help{font-size:13px;line-height:1.6}.camp-page-dialog{width:1180px;max-width:calc(100% - 48px);border-radius:22px;background:#e5ddc7}.camp-page-dialog::backdrop{background:#dfd5bbf5;backdrop-filter:none}.entry-layout{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:60px;padding:55px 70px;min-height:570px}.entry-intro h2{font-size:43px;letter-spacing:-2px;line-height:1.3;max-width:400px;margin:20px 0 15px}.entry-intro p{font-size:15px;color:#5e6e56}.entry-layout .dialog-body{background:#c9cbb0;border:1px solid #a5b092;border-radius:18px}.entry-layout input{font-size:25px;min-height:64px}.entry-layout label{font-size:20px}.entry-character{background:none;border:0;padding:0;display:flex;flex-direction:column;align-items:flex-start;margin:15px 0 0}.entry-character>strong,.entry-character .text-button{display:none}#entry-avatar{background:none!important;width:210px;height:210px}#entry-avatar img{width:100%;height:100%;object-fit:contain}.entry-intro .eyebrow{font-size:12px}
.closet-header{display:flex;align-items:center;gap:25px;padding:26px 35px 18px}.closet-header h2{font-size:36px;margin:0;letter-spacing:-1.5px}.closet-header #character-help{font-size:14px;color:#627754;margin-right:30px}.camp-closet{display:grid;grid-template-columns:285px minmax(0,1fr);gap:30px;padding:0 35px 25px;min-height:0}.closet-preview{min-width:0}.character-preview{flex-direction:column;margin:0 0 14px;padding:12px;gap:10px;background:#c9cbb0}.character-preview img{width:205px;height:205px}.character-preview strong{font-size:20px;text-align:center}.color-picker{display:grid;grid-template-columns:repeat(5,38px);gap:10px 12px;justify-content:center;margin:18px 0 0}.color-swatch{width:32px;height:32px;border:3px solid #e5ddc7}.character-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;max-height:490px;overflow:auto;align-content:start;min-height:0;padding:3px 5px;scrollbar-width:thin}.character-option{background:#d8d7bf;border:1px solid #b3b598;border-radius:12px;padding:7px 3px;display:flex;align-items:center;flex-direction:column;min-width:0}.character-option.selected{border:2px solid #315b40;padding:6px 2px;background:#c5cfb2}.character-option .char-model{width:82px;height:82px;max-width:100%;object-fit:contain}.character-option>span{font-size:15px;font-weight:800}.closet-footer{display:flex;justify-content:space-between;align-items:center;padding:17px 35px;background:#d0d2b9;border-top:1px solid #b3b598}.closet-footer>span{font-size:16px;color:#5e6e56}.closet-footer .button{min-width:250px}#maps-dialog{max-width:min(1100px,calc(100% - 32px))}#maps-dialog .maps-section{margin:0}.toast{z-index:100;font-size:16px}
/* 스포트라이트는 공개 중인 한 명, 사진 격자는 최종 순위를 유지합니다. */
.results-overlay{background:#dfd5bbf2;backdrop-filter:none;padding:24px}.results-card{width:min(1360px,100%);height:min(860px,calc(100dvh - 48px));max-height:none;padding:25px 30px 0;display:flex;flex-direction:column;border-radius:22px;border:1px solid #aab496;overflow:hidden}.results-heading{flex:none}.results-heading h2{font-size:30px;margin:8px 0;line-height:1.2}.results-heading p{font-size:15px}.result-crown{display:none}.reveal-progress{flex:none;margin:14px 0;font-size:13px}.reveal-progress .text-button{font-size:13px}.camp-result-body{display:grid;grid-template-columns:.8fr 1.5fr;gap:24px;flex:1;min-height:0;margin-bottom:20px}.result-spotlight{background:radial-gradient(ellipse at 50% 38%,#d5ddbe,#adbd96);border:1px solid #93a783;border-radius:22px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:20px;min-height:0}.result-spotlight.winner{background:radial-gradient(ellipse at 50% 35%,#e3d9b2,#c7b579);border-color:#a78b4c}.result-spotlight>span{font-size:14px;color:#526e43;border:1px solid #8fa47c;padding:7px 13px;border-radius:20px}#spotlight-person{display:flex;flex-direction:column;align-items:center;text-align:center;min-height:0;max-width:100%;width:100%}#spotlight-person .spot-place{font-size:44px;margin:15px 0 0}#spotlight-person img{width:245px;height:245px;object-fit:contain;max-width:100%;min-height:0;flex-shrink:1}#spotlight-person>strong{font-size:31px;max-width:100%;overflow-wrap:anywhere;line-height:1.2}#spotlight-person>p{font-size:16px;color:#5e6e56;margin:10px 0 0}.result-album{min-height:0;display:flex;flex-direction:column}.album-heading{display:flex;justify-content:space-between;margin:5px 0 14px;gap:12px;font-size:13px}.album-heading strong{font-size:16px}.results-list{width:100%;max-height:none;flex:1;min-height:0;margin:0;padding:0;gap:8px;grid-template-columns:repeat(var(--columns),minmax(0,1fr));grid-template-rows:repeat(var(--rows),minmax(0,1fr));align-content:stretch;overflow:hidden}.result-tile{aspect-ratio:auto;min-height:0;max-height:none}.result-front,.result-back{border-radius:12px;border-width:1px}.result-front{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px;box-shadow:none!important;background:#d5d8be}.result-photo{position:static;width:80px;height:85px;min-height:0;flex:0 1 85px}.result-photo img{height:100%;width:100%;object-fit:contain}.tile-caption{position:static;padding:0;background:none!important;backdrop-filter:none;width:100%;flex:none}.tile-caption strong{font-size:18px;color:#283f31}.tile-caption small{font-size:11px;margin-top:3px}.tile-rank{top:5px;left:5px;padding:3px 4px;background:transparent!important;color:#315b40!important;font-size:17px}.tile-me{top:5px;right:5px;font-size:9px}.result-back>span{font-size:31px}.result-back>small{font-size:16px;letter-spacing:0}.result-tile.winner .result-front{background:#dfd0a3!important;border-color:#a78b4c}.results-overlay.crowded .result-photo{width:60px;height:65px;flex-basis:65px}.results-overlay.crowded .tile-caption strong{font-size:16px}.results-overlay.crowded .tile-caption small{display:none}.results-overlay.crowded .tile-rank{font-size:15px}.results-footer{flex:none;background:#c9cbb0;margin:0 -30px;padding:17px 30px;border-top:1px solid #aab496;display:flex;align-items:center;justify-content:space-between;gap:20px}.results-footer .field-help{font-size:16px;margin:0}.results-footer .button{min-height:53px;font-size:18px;padding:13px 24px;flex:none}
@media(min-width:1100px) and (min-height:880px){body:not([data-screen=game]){height:100dvh;display:flex;flex-direction:column}.site-header{flex:none}.page-shell{flex:1;min-height:0;display:flex;flex-direction:column}.hero{flex:1;min-height:0}.camp-room{flex:1;min-height:0;display:flex;flex-direction:column}.room-heading{flex:none}.camp-room-grid{flex:1;min-height:0}.player-grid{flex:1;min-height:0;max-height:none}.camp-room-footer{flex:none}.character-dialog[open]{height:calc(100dvh - 155px);display:flex;flex-direction:column}.camp-closet{flex:1;min-height:0}.character-grid{max-height:none}.closet-header,.closet-footer{flex:none}}
@media(max-height:950px) and (min-width:1100px){.character-preview img{height:175px;width:175px}#spotlight-person img{width:210px;height:210px}.self-card .lobby-visual{height:145px}}
@media(max-width:1099px){.site-header{gap:12px}.connection{display:none}.hero{min-height:560px;padding:30px;gap:20px}.hero h1{font-size:54px}.hero-visual{height:380px}.camp-room{padding:25px}.camp-room-grid{grid-template-columns:225px minmax(0,1fr);gap:22px}.player-name{font-size:20px}.camp-status{font-size:12px}.camp-closet{grid-template-columns:235px minmax(0,1fr);gap:20px;padding:0 25px 25px}.character-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.color-picker{gap:8px 6px}.entry-layout{padding:45px;gap:35px}.entry-intro h2{font-size:36px}.results-card{padding:20px 20px 0}.camp-result-body{gap:16px;grid-template-columns:.7fr 1.4fr}.results-footer{margin:0 -20px;padding:15px 20px}.tile-caption strong{font-size:16px}.results-list{overflow:auto;grid-template-rows:repeat(var(--rows),minmax(95px,1fr))}.results-overlay.crowded .tile-caption strong{font-size:14px}.results-overlay.crowded .tile-rank{font-size:12px}.result-spotlight{padding:13px}#spotlight-person img{width:190px;height:190px}#spotlight-person>strong{font-size:26px}#spotlight-person .spot-place{font-size:33px}.results-footer .field-help{font-size:13px}.results-footer .button{font-size:15px}}
@media(max-width:760px){.site-header{width:calc(100% - 24px);margin:12px auto;flex-wrap:wrap;height:auto;min-height:70px;padding:13px;gap:8px}.site-header nav{order:3;width:100%;height:30px;justify-content:center;font-size:13px}.site-header .brand{font-size:22px}.site-header .sound-toggle{margin-left:auto}.page-shell{width:calc(100% - 24px)}.hero{display:flex;flex-direction:column;padding:28px 23px;min-height:0;gap:22px}.hero-copy{padding:0}.hero h1{font-size:46px}.hero p{font-size:16px}.hero .button.large{font-size:16px}.hero-visual{height:320px;min-height:320px;width:100%}.home-facts{font-size:12px;gap:20px}.camp-room{padding:22px 17px}.room-heading h1{font-size:34px}.room-heading p{font-size:12px}.room-heading #room-code{font-size:12px}.room-actions{gap:5px}.room-actions .button{font-size:13px;min-height:42px;padding:9px}.camp-room-grid{grid-template-columns:1fr;gap:22px}.self-card{display:grid;grid-template-columns:110px minmax(0,1fr);gap:6px 13px;padding:12px}.self-card .lobby-visual{grid-row:1/5;height:132px}.self-card>strong{text-align:left;font-size:24px;margin:0}.self-card #lobby-character{margin:4px 0 0;font-size:14px;min-height:37px}.camp-status{font-size:12px;width:max-content;max-width:100%}.course-summary{padding:12px}.player-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:430px;gap:10px}.player-card{min-height:163px}.camp-room-footer{padding:17px;flex-direction:column;align-items:stretch;gap:12px}.camp-room-footer p{font-size:16px}.camp-room-footer .button{width:100%;min-width:0}.panel-heading h2{font-size:23px}.camp-page-dialog{max-width:calc(100% - 24px)}.entry-layout{grid-template-columns:1fr;padding:36px 24px;gap:20px;min-height:0}.entry-intro{position:relative;padding-right:75px}.entry-intro h2{font-size:30px;letter-spacing:-1px}.entry-intro .entry-character{position:absolute;right:-10px;bottom:0;width:95px;height:110px}#entry-avatar{width:100%;height:100%}.entry-layout .dialog-body{padding:20px}.entry-intro p{font-size:12px}.closet-header{padding:26px 22px 17px;display:block}.closet-header h2{font-size:29px}.closet-header #character-help{display:block;margin-top:9px}.camp-closet{grid-template-columns:1fr;padding:0 20px 20px;gap:18px}.closet-preview{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px;align-items:center}.character-preview{padding:6px;margin:0}.character-preview img{width:112px;height:118px}.character-preview strong{font-size:14px}.color-picker{grid-template-columns:repeat(4,30px);gap:7px 4px;margin:0}.color-swatch{width:28px;height:28px}.character-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:350px}.character-option .char-model{width:69px;height:69px}.character-option>span{font-size:13px}.closet-footer{padding:17px 20px;gap:13px;flex-wrap:wrap}.closet-footer>span{font-size:13px}.closet-footer .button{width:100%;min-width:0}.results-overlay{padding:12px}.results-card{height:calc(100dvh - 24px);padding:18px 15px 0;overflow:auto}.results-heading h2{font-size:23px}.results-heading p{font-size:13px}.camp-result-body{display:flex;flex-direction:column;flex:none;gap:15px}.result-spotlight{min-height:280px}.result-spotlight>span{font-size:12px}#spotlight-person img{width:145px;height:145px}#spotlight-person .spot-place{font-size:28px;margin:8px 0 0}#spotlight-person>strong{font-size:25px}#spotlight-person>p{font-size:14px;margin:5px 0 0}.results-list{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:115px;max-height:none;flex:none;overflow:visible}.results-overlay.crowded .tile-caption strong{font-size:16px}.results-footer{margin:0 -15px;padding:15px;flex-direction:column;align-items:stretch;gap:12px}.results-footer .button{width:100%}.results-footer .field-help{font-size:14px}.album-heading strong{font-size:17px}}

/* 멀리서도 읽기 쉬운 대기실 방 코드 */
.room-heading .room-identity{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px}.room-code-group{display:inline-flex;align-items:center;gap:12px}.room-code-group small{font-size:14px;color:#5e6e56}.room-heading #room-code{display:inline-block;font-size:38px;line-height:1.1;letter-spacing:5px;padding:8px 14px;color:#e9e5d2;background:#315b40;border-radius:10px}
@media(max-width:760px){.room-heading{flex-wrap:wrap;gap:16px}.room-heading .room-identity{gap:10px}.room-heading #room-code{font-size:28px;letter-spacing:3px;padding:8px 10px}.room-code-group{gap:8px}}

/* 화면의 실제 높이에 맞춰 배치하고, 긴 목록만 내부에서 스크롤합니다. */
:root{--screen-gap:clamp(10px,2dvh,24px);--panel-pad:clamp(14px,2.5dvh,28px);--side-pad:clamp(16px,3vw,36px)}
body:not([data-screen=game]){height:100dvh;display:flex;flex-direction:column}
.site-header{flex:none;height:clamp(54px,8dvh,72px);min-height:0;margin:var(--screen-gap) auto 12px;padding:10px 18px}
.page-shell{flex:1;min-height:0;display:flex;flex-direction:column;margin:0 auto var(--screen-gap)}
body:not([data-screen=game]) .button{font-size:clamp(15px,2dvh,18px);min-height:44px;padding:clamp(9px,1.5dvh,13px) clamp(12px,2vw,21px)}
.hero{flex:1;min-height:0;padding:clamp(20px,4dvh,38px) clamp(20px,3.5vw,44px);gap:clamp(16px,3vw,30px)}
.hero h1{font-size:clamp(38px,min(5.2vw,7.5dvh),68px);margin:clamp(12px,3dvh,26px) 0 clamp(12px,2.5dvh,22px)}
.hero p{margin-bottom:12px;font-size:clamp(15px,2dvh,18px)}
.hero-actions{margin:clamp(14px,3dvh,30px) 0;flex-wrap:wrap}
.hero-visual{height:min(440px,100%);min-height:0;max-height:100%;aspect-ratio:auto}
.camp-room{flex:1;min-height:0;display:flex;flex-direction:column;padding:var(--panel-pad) var(--side-pad)}
.room-heading{flex:none;margin-bottom:clamp(12px,2.5dvh,24px)}
.room-heading h1{font-size:clamp(28px,4.7dvh,42px)}
.room-heading #room-code{font-size:clamp(26px,4.3dvh,38px)}
.camp-room-grid{flex:1;min-height:0;grid-template-columns:clamp(170px,21vw,245px) minmax(0,1fr);gap:clamp(16px,2.5vw,30px)}
.my-camp{display:flex;flex-direction:column;min-height:0}
.self-card{flex:1;min-height:0;padding:clamp(8px,1.5dvh,13px) 12px}
.self-card .lobby-visual{flex:1;min-height:40px;max-height:158px;height:auto;width:100%}
.self-card>strong{flex:none;font-size:clamp(20px,3dvh,27px);margin:5px 0}
.self-card #lobby-character{flex:none;margin-top:clamp(6px,1.7dvh,16px);white-space:normal}
.course-summary{flex:none;margin-top:clamp(8px,1.5dvh,14px);padding:clamp(9px,1.5dvh,13px) 12px;gap:4px}
.course-summary strong{font-size:clamp(15px,2dvh,18px)}
.panel-heading{margin-bottom:clamp(8px,1.5dvh,14px)}
.panel-heading h2{font-size:clamp(20px,2.8dvh,25px)}
.player-grid{flex:1;min-height:0;max-height:none;gap:clamp(8px,1.4dvh,12px)}
.player-card{min-height:clamp(125px,20dvh,177px);padding:8px 6px;gap:4px}
.player-portrait{width:clamp(48px,9dvh,80px);height:clamp(46px,8.7dvh,78px)}
.player-name{font-size:clamp(16px,2.5dvh,22px)}
.camp-status{max-width:100%;font-size:clamp(11px,1.6dvh,14px);padding:5px 7px}
.camp-room-footer{flex:none;padding:clamp(10px,2dvh,18px) var(--side-pad);padding-bottom:max(clamp(10px,2dvh,18px),env(safe-area-inset-bottom));gap:12px}
.camp-room-footer p{font-size:clamp(14px,2dvh,18px)}
.camp-room-footer .button{min-width:clamp(180px,24vw,270px)}
dialog{max-height:calc(100dvh - 2 * var(--screen-gap))}
.camp-page-dialog{max-width:calc(100% - 2 * var(--screen-gap))}
.dialog-body{padding:clamp(18px,3dvh,30px)}
.entry-layout{min-height:0;padding:clamp(24px,5dvh,55px) clamp(24px,5vw,70px);gap:clamp(24px,5vw,60px)}
.entry-intro h2{font-size:clamp(28px,4.8dvh,43px);margin:14px 0}
.entry-layout input{min-height:48px;font-size:clamp(20px,2.8dvh,25px)}
#entry-avatar{width:clamp(100px,24dvh,210px);height:clamp(100px,24dvh,210px)}
.character-dialog[open]{height:min(780px,calc(100dvh - 2 * var(--screen-gap)));display:flex;flex-direction:column;overflow:hidden}
.closet-header,.closet-footer{flex:none;padding:clamp(12px,2dvh,20px) var(--side-pad)}
.closet-header h2{font-size:clamp(26px,4dvh,36px)}
.camp-closet{flex:1;min-height:0;grid-template-columns:clamp(190px,24vw,285px) minmax(0,1fr);gap:clamp(16px,2.5vw,30px);padding:0 var(--side-pad) var(--panel-pad)}
.closet-preview{min-height:0;display:flex;flex-direction:column}
.character-preview{flex:1;min-height:0;padding:8px;margin-bottom:8px;gap:6px}
.character-preview img{flex:1;min-height:0;max-height:205px;width:100%;object-fit:contain}
.character-preview strong{flex:none;font-size:clamp(15px,2.2dvh,20px)}
.color-picker{flex:none;grid-template-columns:repeat(5,34px);gap:8px; margin:8px 0 0}
.color-swatch{width:32px;height:32px}
.character-grid{max-height:none;grid-template-columns:repeat(6,minmax(0,1fr))}
.character-option .char-model{width:100%;height:clamp(48px,9dvh,82px)}
.closet-footer .button{min-width:180px}
#settings-dialog[open] .dialog-body{display:flex;flex-direction:column;max-height:calc(100dvh - 2 * var(--screen-gap) - 2px)}
#settings-dialog h2,#settings-dialog .full{flex:none}
#settings-form{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 5px 2px 0;scrollbar-width:thin}
#maps-dialog[open]{height:min(850px,calc(100dvh - 2 * var(--screen-gap)))}
#maps-dialog .dialog-body,#maps-dialog .maps-section{height:100%;min-height:0;display:flex;flex-direction:column}
#maps-dialog .section-top,#maps-dialog .filter-row{flex:none}
#maps-dialog .map-grid{flex:1;min-height:0;overflow:auto;align-content:start;grid-auto-rows:max-content;padding:3px;scrollbar-width:thin}
.results-overlay{padding:var(--screen-gap)}
.results-card{height:min(860px,calc(100dvh - 2 * var(--screen-gap)));padding:clamp(14px,2.5dvh,25px) var(--side-pad) 0;overflow:hidden}
.results-heading h2{font-size:clamp(23px,3.4dvh,30px)}
.reveal-progress{margin:clamp(8px,1.6dvh,14px) 0}
.camp-result-body{flex:1;min-height:0;gap:clamp(12px,2vw,24px);margin-bottom:clamp(10px,2dvh,20px)}
.result-spotlight{min-height:0;padding:clamp(10px,2dvh,20px)}
#spotlight-person .spot-place{font-size:clamp(28px,4.9dvh,44px);margin:clamp(6px,1.7dvh,15px) 0 0}
#spotlight-person img{width:min(245px,100%);height:clamp(90px,26dvh,245px)}
#spotlight-person>strong{font-size:clamp(22px,3.5dvh,31px)}
.results-list{grid-template-rows:repeat(var(--rows),minmax(0,1fr));overflow:hidden;gap:clamp(5px,1dvh,8px)}
.result-photo{height:clamp(32px,8dvh,85px);flex-basis:clamp(32px,8dvh,85px)}
.results-overlay.crowded .result-photo{height:clamp(28px,7dvh,65px);flex-basis:clamp(28px,7dvh,65px)}
.results-footer{margin:0 calc(-1 * var(--side-pad));padding:clamp(10px,2dvh,17px) var(--side-pad);gap:12px}
.results-footer .button{min-height:44px;font-size:clamp(15px,2dvh,18px);padding:10px 16px}

/* 크롬북·태블릿에서도 PC의 좌우 구성을 유지합니다. */
@media(min-width:600px) and (max-width:1100px){
  .site-header{flex-wrap:nowrap;gap:12px}.site-header nav{order:0;width:auto;margin-left:auto;height:100%;gap:14px}
  .site-header .brand{font-size:22px}.site-header .sound-toggle{margin-left:0}
  .hero{display:grid;grid-template-columns:1.1fr 1fr}.hero-visual{width:100%}
  .self-card{display:flex;flex-direction:column;gap:0}.self-card>strong{text-align:center}
  .camp-room-footer{flex-direction:row;align-items:center}.camp-room-footer .button{width:auto}
  .entry-layout{grid-template-columns:1fr 1fr}.entry-intro{padding:0}.entry-intro .entry-character{position:static}
  .closet-header{display:flex}.closet-header #character-help{margin:0 25px 0 0}
  .character-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .closet-footer{flex-wrap:nowrap}.closet-footer .button{width:auto}
  .camp-result-body{display:grid;grid-template-columns:.7fr 1.4fr}
  .results-list{flex:1;grid-template-columns:repeat(var(--columns),minmax(0,1fr))}
  .results-footer{flex-direction:row;align-items:center}.results-footer .button{width:auto}
}
@media(min-width:600px) and (max-width:850px){
  .page-shell,.site-header{width:calc(100% - 24px)}
  .camp-room-grid{grid-template-columns:170px minmax(0,1fr)}
  .player-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .camp-closet{grid-template-columns:180px minmax(0,1fr)}
  .character-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .home-facts{gap:12px;flex-wrap:wrap}.hero h1{letter-spacing:-2px}
  .results-overlay.crowded .tile-caption strong{font-size:13px}
}
/* 세로 휴대폰은 목록 공간을 확보하고 주요 버튼은 화면 안에 남깁니다. */
@media(max-width:599px){
  .site-header{height:auto;min-height:0;gap:6px;padding:10px 12px}.site-header nav{height:26px}
  .hero{gap:14px}.hero-copy{flex:none}.hero-visual{flex:1;width:100%;min-height:90px}
  .hero h1{font-size:36px;margin:12px 0;letter-spacing:-2px}.hero-actions{margin:12px 0}.hero p{font-size:15px}
  .camp-room{padding:12px}.room-heading{gap:8px;margin-bottom:12px}.room-heading h1{font-size:26px}
  .room-heading .room-identity{margin-top:6px;gap:6px}.room-heading #room-code{font-size:24px;letter-spacing:2px}
  .camp-room-grid{display:flex;flex-direction:column;gap:12px}
  .my-camp{flex:none;display:grid;grid-template-columns:1fr}.self-card{display:grid;grid-template-columns:85px minmax(0,1fr);gap:3px 10px;flex:none;padding:8px}
  .self-card .lobby-visual{height:100px;min-height:0;grid-row:1/5}.self-card>strong{font-size:20px;text-align:left;margin:0}
  .self-card #lobby-character{min-height:36px;font-size:13px;margin:0;padding:6px}.course-summary{margin-top:6px;padding:8px 10px;flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap}
  .course-summary #host-badge{margin-left:auto}.course-summary>span{font-size:11px}.course-summary strong{font-size:14px}
  .players-panel{flex:1}.player-card{min-height:118px}.player-portrait{width:46px;height:46px}.player-name{font-size:16px}
  .camp-room-footer{padding:10px 12px;gap:6px}.camp-room-footer p{font-size:13px}.camp-room-footer .button{width:100%;min-width:0}
  .entry-layout{padding:26px 20px;gap:16px}.entry-intro .entry-character{position:absolute;width:80px;height:95px}
  .entry-intro .entry-character #entry-avatar{width:100%;height:100%}.entry-intro h2{font-size:27px}
  .camp-closet{grid-template-columns:1fr;gap:12px;padding:0 14px 14px}.closet-header{padding:18px 16px 10px}
  .closet-preview{flex:none;display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px}.character-preview{margin:0;height:150px}
  .character-preview img{max-height:100px}.character-preview strong{font-size:13px}.color-picker{grid-template-columns:repeat(5,28px);gap:7px;margin:0}.color-swatch{width:28px;height:28px}
  .character-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.closet-footer{padding:10px 14px;gap:6px}.closet-footer>span{font-size:13px}
  .results-card{overflow:auto}.camp-result-body{flex:none;display:flex}.result-spotlight{min-height:240px}
  .results-list{flex:none;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:115px;overflow:visible}
  .results-footer{position:sticky;bottom:0;z-index:2;gap:6px}.results-footer .field-help{font-size:13px}
}

/* 사진·이름·점수를 함께 보이게 하고, 점수는 인원수와 관계없이 유지합니다. */
.result-front{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);grid-template-rows:20px minmax(0,1fr);column-gap:2px;align-items:center;padding:6px}
.result-front .tile-rank{position:static;grid-column:1 / -1;grid-row:1;justify-self:start;padding:0 2px;font-size:15px;line-height:18px}
.result-front .result-photo,.results-overlay.crowded .result-front .result-photo{grid-column:1;grid-row:2;width:100%;height:100%;max-height:105px;min-height:0;margin:0}
.result-front .tile-caption{grid-column:2;grid-row:2;text-align:center;min-width:0;line-height:1.15}
.result-front .tile-caption strong,.results-overlay.crowded .tile-caption strong{font-size:clamp(12px,1.15vw,17px);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}
.result-front .result-value{font-size:clamp(19px,2vw,29px);display:block;color:#284b34;white-space:nowrap;letter-spacing:-.8px;line-height:1.15;margin:4px 0}
.results-overlay.crowded .tile-caption small,.result-front .tile-caption small{display:block;font-size:clamp(9px,.85vw,12px);line-height:1.2;margin:0;color:#4e6146;white-space:nowrap}
.results-overlay.crowded .result-value{font-size:clamp(18px,1.7vw,25px)}
.volume-control{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:18px;margin:18px 0 8px}.volume-control input{width:100%;accent-color:#315b40;height:28px}.volume-control output{margin-left:auto}
.course-map{position:absolute;right:22px;bottom:76px;width:clamp(120px,16vw,195px);border:2px solid #344839;border-radius:14px;overflow:hidden;box-shadow:0 3px 0 #23382b33;pointer-events:none}
.course-map svg{display:block;width:100%;height:auto}.round-objective{position:absolute;top:100px;left:50%;transform:translateX(-50%);border-radius:30px;padding:9px 18px;background:#294432ef;color:#f4e8c9;font-size:clamp(14px,1.35vw,20px);font-weight:800;text-align:center;white-space:nowrap}
.game-progress{top:151px}.course-intro{z-index:12}.spectating .touch-controls{display:none}
.game-results>:not(#results-overlay):not(#game-canvas-slot){display:none}
@media(min-width:600px) and (max-height:700px){
  .results-heading .section-kicker,.results-heading>div>p{display:none}
  .results-heading h2{font-size:24px;margin:3px 0}.reveal-progress{margin:7px 0}.album-heading{margin:0 0 6px}
  .camp-result-body{grid-template-columns:.6fr 1.65fr;gap:12px}
  .result-front{grid-template-rows:15px minmax(0,1fr);padding:3px}.result-front .tile-rank{font-size:12px;line-height:15px}
  .result-front .result-value{font-size:20px;margin:1px 0}.results-overlay.crowded .result-value{font-size:18px}
  .result-front .tile-caption strong,.results-overlay.crowded .tile-caption strong{font-size:clamp(12px,1.1vw,16px)}
  .results-overlay.crowded .tile-caption small{font-size:9px}
  .course-map{width:126px;bottom:65px}.round-objective{top:81px;padding:6px 14px}.game-progress{top:122px}
}
@media(min-width:600px) and (max-width:850px){.camp-result-body{grid-template-columns:.5fr 1.5fr;gap:10px}.result-front{grid-template-columns:1fr;grid-template-rows:16px minmax(0,1fr) auto;padding:3px}.result-front .result-photo,.results-overlay.crowded .result-front .result-photo{grid-column:1;grid-row:2;max-height:65px}.result-front .tile-caption{grid-column:1;grid-row:3}.result-front .result-value{margin:2px 0}}
@media(max-width:599px){.result-front .result-value{font-size:21px}.results-overlay.crowded .result-value{font-size:20px}.course-map{width:105px;bottom:165px;right:12px}.round-objective{top:85px;font-size:13px;max-width:94%;white-space:normal}.game-progress{top:137px}}

/* TV에서도 읽기 쉬운 대기실 중앙 방 코드 */
.room-heading{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px}
.room-heading .room-code-group{display:flex;flex-direction:column;gap:4px;justify-self:center}
.room-heading .room-code-group small{font-size:16px;font-weight:700}
.room-heading #room-code{font:900 clamp(64px,8vw,112px)/1 monospace;letter-spacing:.08em;padding:8px 18px 10px 26px;border-radius:14px;color:#fff4d5;background:#284e37;font-variant-numeric:tabular-nums;white-space:nowrap}
.room-heading .room-actions{justify-self:end}
@media(max-width:760px){.room-heading{grid-template-columns:1fr auto;gap:12px}.room-heading .room-code-group{grid-row:2;grid-column:1/-1}.room-heading #room-code{font-size:clamp(48px,12vw,80px)}.room-heading .room-actions{grid-column:2;grid-row:1}}

/* 순위 아래를 사진과 기록이 나누어 써서, 30명일 때도 캐릭터가 작아지지 않게 합니다. */
.result-front{container-type:inline-size;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:18px minmax(0,1fr);column-gap:2px;row-gap:0;padding:4px}
.result-front .result-photo,.results-overlay.crowded .result-front .result-photo{grid-column:1;grid-row:2;width:100%;height:100%;max-height:none;overflow:hidden}
.result-front .result-photo img{transform:scale(1.22)}
.result-front .tile-caption{grid-column:2;grid-row:2;min-width:0}
.result-front .result-value,.results-overlay.crowded .result-front .result-value{font-size:clamp(15px,11cqi,21px);letter-spacing:-.5px;margin:1px 0;font-variant-numeric:tabular-nums}
@media(max-width:1099px){.results-list{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:125px;overflow:auto}}
@media(max-width:599px){.results-list{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:125px;overflow:visible}}
