:root{--bg:#15171f;--bg-deep:#0f1117;--surface:#1e2130;--surface-2:#2f3344;--line:#3a3e4c;--line-soft:#2c2f3b;--text:#f4f1ea;--text-2:#b9b5ac;--text-3:#8e8a82;--accent:#ff8a4c;--accent-2:#ffc857;--accent-3:#7fb7ff;--on-accent:#1a1208;--error:#ff8f8f;--link:#ffb38a;--won-text:var(--accent-2);--won-glow:#4a2a16;--photo-bg:#2a2e3d;--name:#e6e2d9;--badge-gray:#d8d4cb;--banner-bg:#3a3320;--banner-text:#ffe3a3;--banner-error-bg:#3d1f22;--banner-error-text:#ffb3b3;--qr-bg:#f4f1ea;--avatar-text:#f4f1ea;--overlay:#0a0b10eb;--display-font:"Black Han Sans", "Noto Sans KR", sans-serif;color:var(--text);background:var(--bg);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;-webkit-tap-highlight-color:transparent;font-family:Noto Sans KR,system-ui,-apple-system,Apple SD Gothic Neo,sans-serif}:root[data-theme=light]{--bg:#f6f3ec;--bg-deep:#ece8df;--surface:#fff;--surface-2:#e8e3d8;--line:#d3cdc0;--line-soft:#e4dfd4;--text:#1f1c17;--text-2:#57524a;--text-3:#6e695f;--error:#c92a2a;--link:#b8511a;--won-text:#b06a00;--won-glow:#ffe1c7;--photo-bg:#e8e3d8;--name:#2b2822;--badge-gray:#4a463f;--banner-bg:#fff1c7;--banner-text:#6b4e00;--banner-error-bg:#ffe3e3;--banner-error-text:#a61e1e;--overlay:#f6f3ecf5;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input{font:inherit;color:inherit}a{color:var(--link)}button{border:1.5px solid var(--line);cursor:pointer;background:0 0;border-radius:16px;min-height:44px;padding:0 16px}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--accent);color:var(--on-accent);border:none;font-weight:700}button.big{width:100%;height:60px;font-size:18px}button.mid{height:56px;font-size:17px}button.link{color:var(--text-3);background:0 0;border:none;padding:0 4px;font-size:14px;text-decoration:underline}button.danger{color:#fff;background:#e03131;border:none;font-weight:700}input:not([type=checkbox]):not([type=range]){border:1.5px solid var(--line);background:var(--surface);border-radius:14px;width:100%;height:56px;padding:0 16px;font-size:18px}input:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input[type=checkbox],input[type=range]{accent-color:var(--accent)}.page{flex-direction:column;gap:24px;max-width:440px;min-height:100dvh;margin:0 auto;padding:24px 20px 32px;display:flex}.center{text-align:center;justify-content:center;align-items:center}.stack{flex-direction:column;gap:12px;display:flex}.grow{flex:1}.display-font{font-family:var(--display-font);font-weight:400}h1,h2{margin:0}.page-title{font-family:var(--display-font);font-size:34px;font-weight:400}.hint{color:var(--text-2);margin:0;font-size:15px;line-height:1.5}.muted{color:var(--text-3);margin:0;font-size:13px;line-height:1.6}.error{color:var(--error);margin:0;font-size:14px}.dots{gap:6px;display:flex}.dots span{background:var(--accent);border-radius:50%;width:12px;height:12px}.dots span:nth-child(2){background:var(--accent-2)}.dots span:nth-child(3){background:var(--accent-3)}.banner{background:var(--banner-bg);color:var(--banner-text);text-align:center;border-radius:12px;padding:10px 14px;font-size:13px}.banner.error{background:var(--banner-error-bg);color:var(--banner-error-text)}.segmented{background:var(--bg);border-radius:12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:4px;display:grid}.segmented button{color:var(--text-2);border:none;border-radius:9px;font-size:14px}.segmented button.on{background:var(--surface-2);color:var(--text);font-weight:700}.two-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.landing{gap:40px;padding-top:32px;padding-bottom:96px}.title{font-family:var(--display-font);font-size:56px;font-weight:400;line-height:1.05}.divider{color:var(--text-3);align-items:center;gap:12px;font-size:14px;display:flex}.divider:before,.divider:after{content:"";background:var(--line-soft);flex:1;height:1px}.code-input{text-align:center;letter-spacing:12px;font-weight:700;height:64px!important;font-size:30px!important}.back{min-height:44px;color:var(--text-2);align-self:flex-start;align-items:center;gap:4px;font-size:15px;text-decoration:none;display:flex}.photo-picker{border:3px solid var(--accent);background:var(--photo-bg);cursor:pointer;width:148px;height:148px;font-family:var(--display-font);border-radius:50%;justify-content:center;align-self:center;align-items:center;font-size:56px;display:flex;position:relative}.photo-picker img{object-fit:cover;border-radius:50%;width:100%;height:100%}.photo-picker .camera{background:var(--accent);width:44px;height:44px;color:var(--on-accent);border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;bottom:6px;right:2px}.saved-profile{background:var(--surface);color:var(--text-2);border-radius:14px;justify-content:space-between;align-items:center;gap:12px;padding:4px 4px 4px 16px;font-size:14px;display:flex}.saved-profile button{color:var(--link)}.field-head{color:var(--text-2);justify-content:space-between;font-size:14px;display:flex}.check{min-height:44px;color:var(--text-2);align-items:center;gap:10px;font-size:14px;display:flex}.check input{width:20px;height:20px}.crop-frame{touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none;background:#3b4152;border-radius:18px;align-self:center;position:relative;overflow:hidden}.crop-mask{pointer-events:none;outline-offset:-2px;border-radius:50%;outline:2px solid #f4f1ead9;position:absolute;inset:0;box-shadow:0 0 0 9999px #0a0b1099}.zoom-row{color:var(--text-2);align-items:center;gap:12px;display:flex}.zoom-row input{flex:1}.room-card{background:var(--surface);border-radius:18px;align-items:center;gap:14px;padding:14px;display:flex}.qr-button{background:var(--qr-bg);border:none;border-radius:12px;flex-shrink:0;padding:6px;line-height:0}.qr{border-radius:6px;display:block}.room-code{font-family:var(--display-font);letter-spacing:3px;font-size:34px;line-height:1.1}.section-head{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.section-head h2{font-size:17px}.grid{gap:14px 8px;margin:0;padding:0;list-style:none;display:grid}.person{flex-direction:column;align-items:center;gap:5px;min-width:0;padding:4px 0;display:flex}button.person{background:0 0;border:none;border-radius:14px}.person.selected{background:var(--surface);outline:2px solid var(--accent)}.person.offline{opacity:.45}.avatar{object-fit:cover;font-family:var(--display-font);color:var(--avatar-text);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:flex}.avatar.host{box-shadow:0 0 0 3px var(--accent)}.avatar.me{outline:2px dashed var(--text);outline-offset:3px}.name{text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--name);font-size:13px;overflow:hidden}.badge{background:var(--accent);color:var(--on-accent);border-radius:8px;padding:1px 7px;font-size:11px;font-weight:700}.badge.gray{background:var(--line);color:var(--badge-gray);font-weight:400}.host-panel{background:var(--surface);border:1px solid var(--line-soft);border-radius:18px;flex-direction:column;gap:14px;padding:16px;display:flex}.content-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.content-buttons button{background:var(--accent);height:76px;color:var(--on-accent);border:none;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:2px;display:flex;position:relative}.content-buttons button.roulette{background:var(--accent-2)}.content-buttons .recommend{background:var(--bg);color:var(--text);border-radius:8px;padding:1px 7px;font-size:11px;font-weight:700;position:absolute;top:6px;left:8px}.room-card.folded{color:var(--text);text-align:left;border:none;justify-content:space-between;padding:12px 14px;font-size:15px}.card-toggle{width:44px;height:44px;color:var(--text-2);background:0 0;border:none;border-radius:12px;flex-shrink:0;place-items:center;padding:0;display:grid}.join-toggle{background:var(--surface);color:var(--text-2);border:none;border-radius:12px;align-self:flex-start;align-items:center;gap:8px;padding:8px 14px;font-size:16px;display:flex}.join-toggle.folded{padding:10px}.content-buttons strong{font-size:17px}.content-buttons span{font-size:12px}.waiting{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;display:flex}.waiting .dots span{width:10px;height:10px}.waiting strong{font-size:18px}.qr-overlay{z-index:10;background:var(--overlay);border:none;border-radius:0;flex-direction:column;justify-content:center;align-items:center;gap:16px;display:flex;position:fixed;inset:0}.qr-overlay .qr{background:var(--qr-bg);border-radius:20px;padding:16px}.display{background:var(--bg-deep);flex-direction:column;gap:32px;min-height:100dvh;padding:64px 72px 48px;display:flex}.display.center{justify-content:center;align-items:center;font-size:2rem}.display-body{flex:1;gap:72px;min-height:0;display:flex}.display-join{flex-direction:column;flex-shrink:0;gap:24px;width:400px;display:flex}.display-join .qr{background:var(--qr-bg);border-radius:28px;padding:24px}.display-code{font-family:var(--display-font);letter-spacing:10px;font-size:96px;line-height:1.05}.display-people{flex-direction:column;flex:1;gap:28px;min-width:0;display:flex}.display-people .grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:28px 16px}.display-people .name{font-size:22px;font-weight:500}.display-people .badge{border-radius:10px;padding:2px 10px;font-size:15px}.display-people .avatar.host{box-shadow:0 0 0 5px var(--accent)}.display-footer{color:var(--text-3);justify-content:space-between;font-size:16px;display:flex}.display .banner{border-radius:0;position:fixed;inset:0 0 auto}.stepper{align-items:center;gap:12px;display:flex}.stepper .hint{flex:1}.stepper button{border-radius:12px;width:44px;height:44px;font-size:22px}.stepper strong{text-align:center;min-width:48px;font-size:18px}.stage{isolation:isolate;background:var(--surface);text-align:center;border-radius:20px;flex-direction:column;align-items:center;gap:18px;padding:24px 12px;display:flex;position:relative}.stage-title{margin:0;font-size:34px;font-weight:400}.stage-roster,.draw-slots{flex-wrap:wrap;justify-content:center;gap:8px;margin:0;padding:0;list-style:none;display:flex}.draw-slots{gap:16px}.draw-slots li{flex-direction:column;align-items:center;gap:6px;min-width:0;display:flex}.draw-slots li.done .avatar{box-shadow:0 0 0 4px var(--accent-2);animation:.35s ease-out pop}.draw-slots li.done .name{font-size:15px;font-weight:700}.stage.won{background:linear-gradient(180deg, var(--won-glow), var(--surface))}.stage.won .stage-title{color:var(--won-text)}.stage.flash:before{content:"";z-index:-1;border-radius:inherit;background-color:var(--accent);opacity:0;pointer-events:none;animation:.3s ease-in-out 5 flash;position:absolute;inset:0}@keyframes pop{0%{transform:scale(1.3)}}@keyframes flash{50%{opacity:.8}}@media (prefers-reduced-motion:reduce){.draw-slots li.done .avatar{animation:none}.stage.flash:before{animation:1.2s ease-in-out flash}}.roulette-items{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.roulette-items li{align-items:center;gap:8px;display:flex}.roulette-items input{flex:1;min-width:0}.roulette-items .stepper{gap:4px}.roulette-items .stepper button,.roulette-items .remove{width:36px;height:44px;padding:0}.roulette-items .stepper strong{min-width:36px;font-size:15px}.wheel{width:100%}.wheel svg{width:100%;height:auto;display:block}.simple-label{color:var(--won-text);font-size:28px}.top-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.theme-toggle{border-color:var(--line-soft);color:var(--text-2);border-radius:12px;flex-shrink:0;align-items:center;gap:6px;padding:0 12px;font-size:14px;display:flex}.stage-badge{top:env(safe-area-inset-top,0);z-index:1000;color:#08130c;pointer-events:none;background:#3fbf6f;border-radius:0 0 8px 8px;padding:2px 10px;font-size:12px;font-weight:700;position:fixed;left:50%;transform:translate(-50%)}
