/* 채팅 헤더·작성창 고정 및 투표·게임 관리 화면 */
.ladder-trace{transition:stroke-dashoffset 7.5s linear!important}
.number-range-editor:not([hidden])+.game-result-heading{display:none}.game-result-editor[hidden],.game-result-heading[hidden]{display:none!important}.number-prize-editor{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%;gap:8px;margin-top:14px}.number-prize-row{display:grid;width:100%;grid-template-columns:26px 110px minmax(220px,1fr) 34px!important;gap:7px;align-items:end;padding:9px;border:1px solid #eaded5;border-radius:11px;background:#fff}.number-prize-row>span{display:grid;width:26px;height:34px;place-items:center;border-radius:9px;background:#f2e5dc;color:#9a6741;font-weight:900}.number-prize-row label{display:grid;min-width:0;gap:4px;font-size:9px;color:#826f62}.number-prize-row label:nth-of-type(2),.number-prize-row label:nth-of-type(2) input{width:100%;min-width:0}.number-prize-row input,.number-default-message input{width:100%;min-width:0;padding:9px;border:1px solid #dfcec1;border-radius:8px}.number-prize-row button{width:34px;height:34px;border:0;border-radius:50%;background:#f9e9e6;color:#b34f43;font-size:18px;cursor:pointer}.number-default-message{display:grid!important;gap:6px!important;margin-top:12px;font-weight:900}@media(max-width:600px){.number-prize-row{grid-template-columns:26px minmax(0,1fr) 34px!important}.number-prize-row label:nth-of-type(2){grid-column:2/4}.number-prize-row button{grid-column:3;grid-row:1}.number-prize-row>span{grid-row:1}.number-prize-row label:first-of-type{grid-column:2/3}}
.ladder-svg-wrap{margin-top:8px;padding:8px;border:1px solid #ead9cd;border-radius:12px;background:#fff}.ladder-svg-wrap[hidden]{display:none}.ladder-svg-wrap svg{display:block;width:100%;height:auto;max-height:220px;overflow:visible}.ladder-lines line{stroke:#b9855e;stroke-width:5;stroke-linecap:round}.ladder-trace{fill:none;stroke:#e1443d;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;transition:stroke-dashoffset 2.8s ease-in-out}.ladder-hidden-results{display:grid;grid-template-columns:repeat(var(--lane-count,4),1fr);gap:5px}.ladder-hidden-results span{display:grid;min-height:28px;place-items:center;border-radius:7px;background:#f4ece6;color:#9a6741;font-weight:900}.ladder-board{--lane-count:4}.ladder-choice-row{display:grid!important;grid-template-columns:repeat(var(--lane-count,4),minmax(0,1fr))!important;gap:6px!important}.draw-ticket-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.draw-ticket-grid button{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;gap:2px 8px;align-items:center;padding:10px;border:1px dashed #bd845b;border-radius:12px;background:linear-gradient(135deg,#fff9f3,#f3e3d7);color:#6e4932;text-align:left;cursor:pointer;transition:.2s}.draw-ticket-grid button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 18px #8b5a3825}.draw-ticket-grid button>span{grid-row:1/3;display:grid;width:34px;height:34px;place-items:center;border-radius:50%;background:#9a6741;color:#fff;font-size:19px}.draw-ticket-grid b{font-size:11px}.draw-ticket-grid small{color:#8a776a;font-size:9px}.draw-ticket-grid button:disabled{opacity:.45;cursor:default}.suspense-result{animation:result-pop .45s ease}@keyframes result-pop{0%{transform:scale(.85);opacity:.2}100%{transform:scale(1);opacity:1}}.game-result-editor>label{grid-template-columns:28px minmax(0,1fr) auto 34px!important}.game-result-limit{display:none!important;grid-template-columns:auto 54px auto!important;gap:4px!important;align-items:center}.game-result-limit input{min-width:0!important;padding:7px!important;text-align:center}.game-result-limit small{font-size:9px;color:#84756b}.game-result-editor[data-game-type="draw"] .game-result-limit{display:grid!important}@media(max-width:520px){.draw-ticket-grid{grid-template-columns:1fr}.game-result-editor>label{grid-template-columns:26px minmax(0,1fr) 32px!important}.game-result-editor[data-game-type="draw"] .game-result-limit{grid-column:2/3}}
.emoji-picker{display:block!important;width:380px!important;max-width:min(380px,calc(100vw - 28px))!important;max-height:none!important;padding:0!important;overflow:hidden!important;border-radius:16px!important;background:#fff!important;box-shadow:0 14px 42px #271b1540!important}.emoji-picker[hidden]{display:none!important}.emoji-picker-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:9px;border-bottom:1px solid #eaded5;background:#fffaf7}.emoji-picker-tabs button{padding:8px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#82746b!important;font-size:12px!important;font-weight:900!important}.emoji-picker-tabs button.active{background:#9a6741!important;color:#fff!important}.emoji-picker-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px;max-height:300px;padding:8px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.emoji-picker-grid button{display:grid;min-width:0;height:39px;place-items:center;padding:3px!important;font-size:24px!important}.emoji-picker-grid button:hover{background:#faf2ec!important}
.ladder-board{overflow:hidden;margin-top:10px;padding:10px 8px;border:1px solid #eaded5;border-radius:12px;background:#fff}.ladder-choice-row{display:grid;grid-template-columns:repeat(var(--lane-count,2),minmax(0,1fr));gap:7px}.ladder-choice-row button{min-width:0;height:34px;border:1px solid #9a6741;border-radius:9px;background:#9a6741;color:#fff;font-size:12px;font-weight:900;cursor:pointer}.ladder-choice-row button:disabled{border-color:#ddd0c6;background:#eee7e1;color:#a89a90;cursor:default}.ladder-rails{--lane-count:2;position:relative;display:grid;grid-template-columns:repeat(var(--lane-count),1fr);height:118px;margin:7px 12px 0}.ladder-rails i{position:relative;border-left:3px solid #bd8a63}.ladder-rails i:last-of-type{border-right:3px solid #bd8a63}.ladder-rails span{position:absolute;left:8%;right:8%;height:3px;background:#bd8a63;transform:rotate(-4deg)}.ladder-rails span:nth-last-child(4){top:20%;left:9%;right:49%}.ladder-rails span:nth-last-child(3){top:40%;left:30%;right:28%;transform:rotate(5deg)}.ladder-rails span:nth-last-child(2){top:61%;left:8%;right:53%;transform:rotate(-3deg)}.ladder-rails span:last-child{top:79%;left:48%;right:8%;transform:rotate(4deg)}.game-guide{display:block;margin-top:8px;color:#7e7067;font-size:10px;line-height:1.45}.game-played-result{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-top:9px!important;padding:10px 12px!important;border:0!important;border-radius:10px;background:#f4e7dc;font-size:12px!important}.game-played-result strong{color:#9a6741;font-size:17px}.number-draw-zone{display:grid;justify-items:center;gap:8px;margin-top:10px;padding:14px;border:1px solid #eaded5;border-radius:12px;background:linear-gradient(145deg,#fff,#fff6ee)}.number-wheel-preview{display:grid;width:72px;height:72px;place-items:center;border:7px solid #f0dac8;border-radius:50%;background:#9a6741;color:#fff;font-size:29px;font-weight:900;box-shadow:inset 0 0 0 4px #fff}.number-draw-zone button{padding:9px 19px;border:0;border-radius:999px;background:#9a6741;color:#fff;font-weight:900;cursor:pointer}.number-draw-zone button:disabled{opacity:.45}.number-draw-zone small{color:#82746b;font-size:9px}.number-range-editor{display:grid;gap:9px;padding:13px;border:1px solid #e5d8cf;border-radius:11px;background:#fff}.number-range-editor[hidden]{display:none}.number-range-editor>div{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:end}.number-range-editor label{font-size:11px}.number-range-editor small{color:#82746b;font-size:10px}.number-roulette-overlay{position:fixed;z-index:5000;inset:0;display:grid;place-items:center;background:#251912a6;backdrop-filter:blur(5px)}.number-roulette-overlay>div{display:grid;width:min(310px,calc(100% - 40px));justify-items:center;gap:15px;padding:30px;border-radius:24px;background:#fff;color:#594235;box-shadow:0 25px 80px #0005}.number-roulette-overlay span{font-size:14px;font-weight:900}.number-roulette-overlay strong{display:grid;width:130px;height:130px;place-items:center;border:12px solid #efd8c5;border-radius:50%;background:#9a6741;color:#fff;font-size:51px;box-shadow:inset 0 0 0 5px #fff}.number-roulette-overlay i{width:80px;height:7px;overflow:hidden;border-radius:99px;background:#eadfd7}.number-roulette-overlay i::before{content:"";display:block;width:40%;height:100%;border-radius:inherit;background:#9a6741;animation:roulette-loading .55s linear infinite}.number-roulette-overlay.finished strong{animation:roulette-pop .35s ease}.number-roulette-overlay.finished i{display:none}@keyframes roulette-loading{from{transform:translateX(-100%)}to{transform:translateX(250%)}}@keyframes roulette-pop{50%{transform:scale(1.16)}}
@media(max-width:700px){.emoji-picker{position:fixed!important;right:12px!important;bottom:72px!important;left:12px!important;width:auto!important}.emoji-picker-grid{grid-template-columns:repeat(7,minmax(0,1fr));max-height:270px}.emoji-picker-grid button{height:38px;font-size:23px!important}.ladder-choice-row{gap:4px}.ladder-choice-row button{padding:0;font-size:11px}}
.top{display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important}.top>a{grid-column:2;justify-self:center}.top>#newRoomButton{grid-column:3;justify-self:end}.conversation{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;min-width:0!important;min-height:0!important;height:100%!important;overflow:hidden!important}.messages{min-height:0!important;overflow:auto!important}.composer{z-index:5;background:#fff}.conversation-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;justify-content:stretch!important;gap:8px!important}.conversation-head #roomTitle{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-tools-button{width:auto!important;max-width:88px!important;padding:6px 9px!important;color:#9a6741!important;font-size:11px!important;white-space:nowrap!important}.chat-tools-button::after{display:none!important}.participant-toggle{width:max-content!important}.feature-card-label{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#9a6741;font-size:11px;font-weight:900}.feature-card-label em{padding:3px 6px;border-radius:999px;background:#f1e4d9;color:#8b5c3c;font-size:9px;font-style:normal}.chat-poll>footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px}.chat-poll>footer small{color:#84756b;font-size:10px}.chat-poll>footer button{flex:none;padding:5px 7px;border:1px solid #d9c1ae;border-radius:7px;background:#fff;color:#9a6741;font-size:10px;font-weight:800;cursor:pointer}.game-card-members{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.game-card-members span{padding:4px 7px;border-radius:999px;background:#f4efeb;color:#77675d;font-size:10px}.game-card-members span.joined{background:#e8f3e9;color:#397149}.game-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-top:10px}.game-card-actions button{padding:7px 9px;border:1px solid #d9c1ae;border-radius:8px;background:#fff;color:#9a6741;font-size:11px;font-weight:800;cursor:pointer}.game-card-actions button.reveal{border-color:#9a6741;background:#9a6741;color:#fff}.game-card-actions small{margin-right:auto;color:#397149}.game-results{border:1px solid #e6d7cc;border-radius:9px;background:#fff}.game-results p{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;margin:0;padding:8px 10px;border-top:1px solid #f0e7e0;font-size:12px}.game-results p:first-child{border-top:0}.game-results p strong{text-align:right;color:#9a6741}.chat-feature-dialog form{display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto auto!important;max-height:90dvh;overflow:hidden}.chat-feature-dialog section{display:grid;gap:18px;overflow:auto}.chat-feature-dialog input,.chat-feature-dialog select{width:100%;padding:12px;border:1px solid #ddcdc1;border-radius:10px;background:#fff;outline:none}.feature-editor-card{display:grid;gap:13px;padding:15px;border:1px solid #eaded5;border-radius:14px;background:#fffaf7}.feature-check{display:flex!important;align-items:center;gap:9px;padding:10px;border-radius:10px;background:#f8f3ef}.feature-check input{width:19px;height:19px;flex:none;accent-color:#9a6741}.feature-check span,.feature-check small{display:block}.feature-check small{margin-top:3px;color:#85766d;font-size:10px;font-weight:400}.feature-editor-actions{display:flex;justify-content:flex-end;gap:7px}.feature-editor-actions button{padding:9px 13px;border:1px solid #e0cfc2;border-radius:9px;background:#fff;color:#755542;font-weight:800;cursor:pointer}.feature-editor-actions .primary{border-color:#9a6741;background:#9a6741;color:#fff}.feature-management{display:grid;gap:9px}.feature-management h3{margin:0;font-size:15px}.feature-management-list{display:grid;gap:7px}.feature-management-list article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;border:1px solid #eaded5;border-radius:11px;background:#fff}.feature-management-list article>div{min-width:0}.feature-management-list strong,.feature-management-list small{display:block}.feature-management-list strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.feature-management-list small{margin-top:4px;color:#87766b;font-size:10px}.feature-management-list article>span{display:flex;gap:5px}.feature-management-list button{padding:6px 8px;border:1px solid #d7c1b1;border-radius:7px;background:#fff;color:#8b5e3c;font-size:10px;font-weight:800;cursor:pointer}.feature-management-list button.danger{border-color:#ecc9c4;color:#b24e43}.feature-management-list button:disabled{opacity:.4;cursor:default}.feature-empty{margin:0;padding:15px;border-radius:10px;background:#faf6f3;color:#8b7b72;text-align:center;font-size:11px}.game-participants{margin:0;padding:12px;border:1px solid #e5d8cf;border-radius:11px}.game-participants legend{padding:0 5px;font-size:12px;font-weight:900}.game-participants>p{margin:0 0 9px;color:#84756b;font-size:10px}.game-participants>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:170px;overflow:auto}.game-participants label{display:flex;align-items:center;gap:7px;padding:8px;border-radius:8px;background:#f8f3ef;font-size:11px}.game-participants input{width:17px;height:17px;flex:none;accent-color:#9a6741}.game-participants em{margin-left:5px;padding:2px 5px;border-radius:999px;background:#9a6741;color:#fff;font-size:8px;font-style:normal}.game-result-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}.game-result-heading small{color:#84756b;font-size:9px}.game-result-editor{display:grid;gap:7px}.game-result-editor label{display:grid;grid-template-columns:28px minmax(0,1fr) 34px;gap:7px;align-items:center}.game-result-editor label>span{display:grid;width:27px;height:27px;place-items:center;border-radius:50%;background:#f3e5da;color:#9a6741;font-size:11px}.game-result-editor label>button{width:34px;height:34px;border:0;border-radius:50%;background:#f8e9e6;color:#b34f43;font-size:19px;cursor:pointer}.poll-voter-dialog{width:min(440px,calc(100% - 28px));padding:0;border:0;border-radius:20px}.poll-voter-dialog::backdrop{background:#261a156b}.poll-voter-dialog>div{padding:22px}.poll-voter-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.poll-voter-dialog h2{margin:0;font-size:20px}.poll-voter-dialog header button{width:38px;height:38px;border:0;border-radius:50%;background:#f7efe9;font-size:22px;cursor:pointer}.poll-voter-dialog #pollVoterList{display:grid;gap:7px;max-height:55dvh;overflow:auto}.poll-voter-dialog article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px;border:1px solid #eaded5;border-radius:10px}.poll-voter-dialog article span{color:#9a6741;font-size:12px;font-weight:800}@media(max-width:700px){.conversation-head{grid-template-columns:38px minmax(0,1fr) auto auto!important}.mobile-room-back{width:38px;height:38px}.chat-tools-button{max-width:66px!important;padding:5px 7px!important;font-size:10px!important}.participant-toggle{padding:5px 7px}.participant-toggle span{display:none}.game-participants>div{grid-template-columns:1fr}.chat-feature-dialog header,.chat-feature-dialog section,.chat-feature-dialog footer{padding-inline:18px}}
