*{box-sizing:border-box}body{margin:0;background:#f7f7f7;color:#292929;font-family:Arial,'Malgun Gothic','맑은 고딕',sans-serif;font-size:14px}button,input,select{font:inherit;color:inherit}button,.button-link{border:1px solid #d5d5d5;border-radius:7px;background:#eee;padding:8px 14px;cursor:pointer;text-decoration:none;color:#333;font-size:13px}button:hover,.button-link:hover{background:#e2e2e2}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid #888;outline-offset:3px}input:not([type=checkbox]),select{min-width:0;width:100%;padding:10px 12px;background:#fff;border:1px solid #d7d7d7;border-radius:7px;font-size:14px}input[type=checkbox]{accent-color:#555}.primary{background:#3e3e3e;border-color:#3e3e3e;color:#fff}.primary:hover{background:#222}.site-header{min-height:78px;max-width:1220px;margin:auto;padding:20px 32px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;align-items:center;gap:10px;color:#292929;font-size:25px;letter-spacing:-.9px;font-weight:800;text-decoration:none}.brand img{display:block;width:27px;height:27px;object-fit:contain}.site-header nav{display:flex;gap:8px}.site-header nav button{border-color:transparent;background:transparent;color:#606060}.site-header nav button:hover{background:#e9e9e9}.lobby-wrap{max-width:1220px;margin:14px auto 48px;padding:0 32px;display:flex;flex-direction:column;gap:24px}.room-section,.lobby-chat{background:#fff;border:1px solid #dedede;border-radius:12px;overflow:hidden;box-shadow:0 2px 5px #00000003}.section-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:24px}.eyebrow{color:#999;font-size:10px;letter-spacing:1.6px;margin:0 0 6px}h1{font-size:21px;margin:0;line-height:1.4}.room-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.table-wrap{overflow-x:auto;min-height:280px;max-height:480px;overflow-y:auto}.room-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left;font-size:13px}.room-table th{position:sticky;top:0;background:#f3f3f3;color:#707070;font-size:12px;font-weight:500;border-top:1px solid #e7e7e7;border-bottom:1px solid #e0e0e0;padding:12px 16px;z-index:1}.room-table td{height:54px;padding:10px 16px;border-bottom:1px solid #f0f0f0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-table th:first-child{width:64px}.room-table th:nth-child(2){width:100px}.room-table th:nth-child(4){width:140px}.room-table th:nth-child(5){width:110px}.room-table th:nth-child(6){width:105px}.room-table tr:last-child td{border-bottom:0}.room-table tbody tr:hover{background:#fafafa}.room-no{color:#999}.room-mode{color:#777}.room-title-button{display:inline-flex;align-items:center;gap:8px;max-width:100%;border:0;background:none;padding:4px 0;font-size:14px;text-align:left}.room-title-button:hover{background:none;text-decoration:underline}.room-title-button span{min-width:0;overflow:hidden;text-overflow:ellipsis}.room-lock{width:14px;height:14px;flex-shrink:0;color:#858585}.room-host{color:#686868}.room-users{font-variant-numeric:tabular-nums;font-size:12px}.status{display:inline-block;border-radius:5px;padding:5px 8px;background:#efefef;font-size:11px;line-height:1.3;color:#555}.status.playing{color:#999;background:#f4f4f4}.empty-state{text-align:center;color:#999;white-space:normal!important;height:200px!important;line-height:1.8}.chat-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 24px;border-bottom:1px solid #e8e8e8}.chat-heading h2{font-size:15px;margin:0}.chat-heading span{font-size:12px;color:#999}#lobby-messages{height:260px;overflow:auto;padding:18px 24px;scrollbar-width:thin}.chat-empty{font-size:13px;color:#aaa;margin:0}.lobby-chat-row{display:flex;gap:12px;margin-bottom:12px;font-size:13px;line-height:1.7;align-items:baseline}.lobby-chat-row time{font-size:10px;color:#aaa;flex-shrink:0}.lobby-chat-row strong{font-size:12px;font-weight:600;flex:0 0 90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#555}.lobby-chat-row>span{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#666}#lobby-chat-form{display:flex;gap:10px;padding:14px 24px;border-top:1px solid #eee;background:#fcfcfc}#lobby-chat-form input{flex:1}#lobby-chat-form button{flex-shrink:0;min-width:64px}.error{font-size:12px;color:#a23e3e;line-height:1.6;overflow-wrap:anywhere}.error:empty{display:none}#chat-error{margin:0;padding:0 24px 12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#lobby-notice{font-size:13px;line-height:1.6;margin:0;padding:12px 24px;background:#f5f5f5;border-top:1px solid #e4e4e4;color:#666}dialog{width:520px;max-width:calc(100vw - 32px);max-height:calc(100svh - 40px);overflow:auto;margin:auto;padding:24px;border:1px solid #d3d3d3;border-radius:13px;color:#333;background:#fafafa;box-shadow:0 15px 55px #0002}dialog::backdrop{background:#0005}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}.dialog-heading h2,dialog h3{font-size:19px;margin:0}.icon-close{font-size:23px;line-height:1;border:0;background:none;padding:0 4px;color:#999}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid .full{grid-column:1/-1}dialog label{display:block;font-size:12px;color:#6e6e6e;line-height:1.6}dialog label input:not([type=checkbox]),dialog label select{display:block;margin-top:6px}.secret-toggle{display:flex;align-items:center;gap:6px;margin:18px 0 12px}.secret-toggle input{margin:0;width:16px;height:16px}.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:22px}.profile-details{display:grid;grid-template-columns:72px 1fr;gap:18px;font-size:13px;line-height:1.6}.profile-details dt{color:#888}.profile-details dd{margin:0;overflow-wrap:anywhere}#entry-dialog{width:380px}#entry-room-title{font-size:14px;margin-bottom:20px;overflow-wrap:anywhere}#help-dialog{width:660px}#help-dialog p,#help-dialog li{font-size:13px;line-height:1.9}#help-dialog ol{padding-left:24px}#role-table table{width:100%;border-collapse:collapse;font-size:12px}#role-table td{padding:10px;border:1px solid #ddd;line-height:1.7}#role-table td:first-child{width:125px;background:#f2f2f2}.hint{color:#999;font-size:12px}[hidden]{display:none!important}
@media(max-width:800px){.site-header{padding:18px 20px;flex-wrap:wrap;gap:10px}.brand{font-size:22px}.brand img{width:24px;height:24px}.site-header nav{margin-left:auto}.lobby-wrap{padding:0 20px;margin-top:4px}.section-header{padding:18px;align-items:flex-start}.room-actions{gap:6px}.room-actions button{font-size:12px;padding:7px 9px}.room-table{min-width:650px}.room-table th,.room-table td{padding-left:12px;padding-right:12px}.room-table th:first-child{width:50px}.room-table th:nth-child(2){width:76px}.room-table th:nth-child(4){width:98px}.room-table th:nth-child(5){width:90px}.room-table th:nth-child(6){width:92px}.room-table th:nth-child(3){width:244px}.chat-heading{padding:16px 18px}#lobby-messages{padding:16px 18px;height:230px}#lobby-chat-form{padding:12px 18px}.lobby-chat-row{gap:8px}.lobby-chat-row strong{flex-basis:70px}}
@media(max-width:480px){.site-header{padding:18px 16px;justify-content:center}.brand{font-size:22px}.site-header nav{width:100%;margin:0;justify-content:center;gap:20px}.site-header nav button{font-size:12px;padding:5px 7px}.lobby-wrap{padding:0 12px;gap:18px}.section-header{padding:16px;flex-direction:column;gap:14px}.room-actions{width:100%;justify-content:flex-end}.room-actions #create-room{margin-left:0}.eyebrow{font-size:9px}h1{font-size:19px}.table-wrap{min-height:220px;max-height:360px}.chat-heading{padding:14px 16px}#lobby-messages{padding:14px 16px;height:210px}.lobby-chat-row{flex-wrap:wrap;column-gap:8px;row-gap:2px}.lobby-chat-row strong{flex-basis:auto}.lobby-chat-row>span{flex-basis:100%;padding-left:0}#lobby-chat-form{padding:12px}.form-grid{gap:12px}dialog{padding:20px}.profile-details{grid-template-columns:60px 1fr;gap:14px}.room-title-button{font-size:13px}}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}.room-table th:nth-child(1){width:56px}.room-table th:nth-child(2){width:auto}.room-table th:nth-child(3){width:112px}.room-table th:nth-child(4){width:106px}.room-table th:nth-child(5){width:96px}.room-table th:nth-child(6){width:130px}#help-dialog{width:950px}#role-table{max-width:100%;overflow-x:auto}#role-table table{min-width:760px;table-layout:fixed}#role-table th{background:#f2f2f2;border:1px solid #ddd;padding:10px;font-size:12px;line-height:1.5}#role-table th:nth-child(1){width:80px}#role-table th:nth-child(2){width:65px}#role-table th:nth-child(3),#role-table th:nth-child(4){width:110px}#role-table th:nth-child(5),#role-table th:nth-child(6){width:85px}#role-table td:first-child{width:auto}
@media(max-width:800px){.room-table{min-width:560px}.room-table th,.room-table td{padding:9px 7px}.room-table th:nth-child(1){width:36px}.room-table th:nth-child(2){width:178px}.room-table th:nth-child(3){width:84px}.room-table th:nth-child(4){width:76px}.room-table th:nth-child(5){width:80px}.room-table th:nth-child(6){width:106px}}
@media(max-width:480px){.lobby-wrap{padding:0 6px}.section-header{padding:12px}.site-header{padding:16px 8px}.room-table th,.room-table td{padding:9px 5px}.room-table th:nth-child(1){width:30px}.room-table th:nth-child(2){width:160px}.room-table th:nth-child(3){width:76px}.room-table th:nth-child(4){width:66px}.room-table th:nth-child(5){width:80px}.room-table th:nth-child(6){width:106px}.room-title-button{font-size:12px}.room-users{font-size:11px}.status{font-size:10px;padding:4px}.room-table{min-width:518px}.room-actions button{font-size:11px;padding:7px}#lobby-message{font-size:16px}#lobby-messages{padding:12px}.form-grid input,.form-grid select,#entry-code{font-size:16px}}
@media(min-width:361px) and (max-width:480px){.room-table{min-width:0}.room-table th,.room-table td{padding:9px 4px}.room-table th{font-size:10px}.room-table th:nth-child(1){width:24px}.room-table th:nth-child(2){width:auto}.room-table th:nth-child(3){width:60px}.room-table th:nth-child(4){width:52px}.room-table th:nth-child(5){width:58px}.room-table th:nth-child(6){width:58px}.room-host,.room-mode{font-size:11px}.room-title-button{font-size:11px;gap:4px}.room-lock{width:11px;height:11px}.room-users{font-size:10px}.status{font-size:9px;padding:4px 3px}}

#menu-toggle,#menu-backdrop{display:none}
.site-header #user-menu .icon-button{width:48px;min-width:0;padding:8px 12px}
.site-header #user-menu .icon-button>span{display:none}
@media(max-width:800px){
 .site-header{position:sticky;top:0;z-index:30;height:72px;min-height:72px;padding:12px;flex-wrap:nowrap;justify-content:flex-start;gap:10px;background:#f7f7f7}
 .site-header .brand{min-width:0;gap:8px;font-size:clamp(15px,4.8vw,22px);white-space:nowrap}
 #menu-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;padding:8px;border:0;border-radius:50%;background:transparent;color:#14191c}
 #menu-toggle:hover,#menu-toggle:focus-visible{background:#dce6eb}
 .site-header #user-menu{position:fixed;inset:72px auto 0 0;width:min(280px,82vw);margin:0;padding:16px 12px;display:flex;flex-direction:column;justify-content:flex-start;gap:4px;overflow-y:auto;background:#fff;border-right:1px solid #e5e5e5;transform:translateX(-100%);visibility:hidden;transition:transform .26s cubic-bezier(.2,.8,.2,1),visibility 0s .26s}
 .site-header #user-menu .icon-button{width:100%;min-width:0;height:48px;min-height:48px;justify-content:flex-start;gap:16px;padding:12px 16px;border-radius:7px;font-size:16px;font-weight:500}
 .site-header #user-menu .icon-button>span{display:block;line-height:24px;transform:none}
 #menu-backdrop{display:block;position:fixed;inset:72px 0 0;z-index:20;background:#0006;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .26s ease,visibility 0s .26s}
 body.mobile-menu-open{overflow:hidden}
 .mobile-menu-open .site-header #user-menu{transform:translateX(0);visibility:visible;transition:transform .26s cubic-bezier(.2,.8,.2,1),visibility 0s}
 .mobile-menu-open #menu-backdrop{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .26s ease,visibility 0s}
 .mobile-menu-open #icon-tooltip{display:none}
}
@media(prefers-reduced-motion:reduce){.site-header #user-menu,#menu-backdrop{transition:none!important}}

@font-face{font-family:'Deo Uahan Serif';src:url('/fonts/DeoUahanSerif.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
.site-header{max-width:none;margin:0;padding:0;background:#14233f;color:#fff}
.site-header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;max-width:1220px;min-height:78px;margin:0 auto;padding:14px 32px}
.site-header .brand{font-family:'Deo Uahan Serif','Malgun Gothic',serif;font-size:30px;font-weight:400;font-synthesis:none;letter-spacing:0;line-height:1.3;color:#fff}
.site-header .brand img{filter:brightness(0) invert(1)}
.site-header #user-menu .icon-button{color:#fff}
.site-header #user-menu .icon-button:hover,.site-header #user-menu .icon-button:focus-visible{background:#ffffff1f}
.site-header .brand:focus-visible,.site-header #user-menu .icon-button:focus-visible{outline-color:#fff}
@media(max-width:800px){
 .site-header-inner{min-height:72px;height:72px;padding:12px;justify-content:flex-start;gap:10px}
 .site-header .brand{font-size:clamp(21px,6vw,27px)}
 #menu-toggle{color:#fff}
 #menu-toggle:hover,#menu-toggle:focus-visible{background:#ffffff1f}
 #menu-toggle:focus-visible{outline-color:#fff}
 .site-header #user-menu .icon-button{color:#14191c}
 .site-header #user-menu .icon-button:hover,.site-header #user-menu .icon-button:focus-visible{background:#dce6eb}
 .site-header #user-menu .icon-button:focus-visible{outline-color:#65757f}
}

#help-dialog{padding:0;overflow:hidden}
#help-dialog[open]{display:flex;flex-direction:column}
.rules-heading{position:relative;flex-shrink:0;padding:26px 72px 20px 24px}
.rules-content{min-height:0;overflow:auto;padding:0 24px 24px}
@media(max-width:600px){.rules-heading{padding:22px 62px 18px 20px}.rules-content{padding:0 20px 20px}}

#create-form input:not([type=checkbox]),#create-form select{height:44px;line-height:1.4;box-sizing:border-box}
.create-options{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px}
#create-form .create-options .secret-toggle{margin:0;display:flex;align-items:center}
.create-reveal{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows .28s ease,opacity .2s ease,visibility 0s .28s}
.create-reveal.is-expanded{grid-template-rows:1fr;opacity:1;visibility:visible;transition:grid-template-rows .28s ease,opacity .2s ease,visibility 0s}
.create-reveal-inner{min-height:0;overflow:hidden}
.create-reveal-inner>.form-grid,.create-reveal-inner>label{padding-top:14px}
#create-advanced-toggle .ui-icon{transition:transform .28s ease}
#create-advanced-toggle[aria-expanded=true] .ui-icon{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){.create-reveal,#create-advanced-toggle .ui-icon{transition:none!important}}

.site-header #user-menu{align-items:center}
.header-viewer{display:flex;align-items:baseline;gap:6px;margin-right:12px;color:#fff;white-space:nowrap}
.header-viewer strong{font-size:14px;font-weight:700}
.header-viewer small{font-size:11px;font-weight:400}
@media(max-width:800px){.header-viewer{width:100%;margin:0 0 8px;padding:12px 16px;border-radius:7px;background:#14233f;flex-wrap:wrap}}

#profile-dialog{padding:0;overflow:hidden;background:#fff}
#profile-dialog[open]{display:flex;flex-direction:column}
.profile-heading{position:relative;flex-shrink:0;padding:26px 72px 20px 24px}
.profile-heading h2{margin:0;font-size:19px}
.profile-content{min-height:0;overflow:auto;padding:0 24px 24px}
#profile-dialog .profile-details{display:block;margin:0;line-height:1.6}
.profile-details>div{padding:18px 0;border-bottom:1px solid #dedede}
.profile-details>div:last-child{border-bottom:0;padding-bottom:0}
#profile-dialog dt{font-size:14px;font-weight:700;color:#1b2023}
#profile-dialog dd{margin:10px 0 0;font-size:14px;color:#1b2023}
#profile-reset{background:#fff;border-color:#dedede;padding:8px 16px}
#profile-reset:hover{background:#f4f4f4}
#withdraw{background:#b40b0b;border-color:#b40b0b;color:#fff}
#withdraw:hover{background:#950707;border-color:#950707}
@media(max-width:600px){.profile-heading{padding:22px 62px 18px 20px}.profile-content{padding:0 20px 20px}}

.lobby-chat>.chat-heading{position:relative;padding-right:80px}#official-open-chat{position:absolute;right:24px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:10px;background:#F7E600;color:#3A1D1D;text-decoration:none;transition:background-color .16s ease,color .16s ease}#official-open-chat:hover,#official-open-chat:focus-visible{background:#E1D200;color:#2C1515}#official-open-chat:focus-visible{outline:2px solid #65757f;outline-offset:3px}#official-open-chat .ui-icon{width:32px;height:32px}@media(max-width:800px){#official-open-chat{right:18px;width:32px;height:32px;border-radius:8px}#official-open-chat .ui-icon{width:25.6px;height:25.6px}}@media(max-width:480px){#official-open-chat{right:16px}}@media(prefers-reduced-motion:reduce){#official-open-chat{transition:none}}

@media(max-width:800px){.room-section>.section-header{padding-right:8px;padding-bottom:8px}.room-actions{align-items:center;gap:4px}.room-actions #refresh.icon-button,.room-actions #create-room.icon-button{height:38px;min-height:38px;align-items:center;line-height:1}.room-actions #refresh.icon-button{width:38px;min-width:38px;padding:7px 8px}.room-actions #create-room.icon-button{width:auto;min-width:0;padding:7px 10px;gap:6px}.room-actions #refresh .ui-icon,.room-actions #create-room .ui-icon{width:22px;height:22px}.room-actions #create-room>span{line-height:22px;transform:none}}
