/* 인생 방송국 — 방송국 테마 (픽셀 · 큰 글씨 · 방송 화면에서 잘 보이게) */
@font-face { font-family: "Galmuri11"; src: url("./assets/clinic/fonts/Galmuri11.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Galmuri11"; src: url("./assets/clinic/fonts/Galmuri11-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --bg: #120f24; --bg2: #1c1838; --bg3: #29234f; --line: #3d3570; --tx: #f3eefc; --mut: #a99fd0; --gold: #ffd166; --red: #ff4d6d; --grn: #06d6a0; --blu: #5ee6ff; --pink: #ff9bd2; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--tx); font-family: "Galmuri11", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.boot { position: fixed; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; font-size: 18px; z-index: 50; background: var(--bg); }
.boot b { font-size: 56px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(1.1); } }
.screen { position: fixed; inset: 0; }

/* 버튼 */
.pbtn { border: 0; background: linear-gradient(#7b5cff, #5a3fd6); color: #fff; padding: 10px 16px; border-radius: 6px; box-shadow: 0 4px 0 #2e1f80, inset 0 1px 0 #ffffff40; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-size: 15px; }
.pbtn:active { transform: translateY(2px); box-shadow: 0 2px 0 #2e1f80; }
.pbtn.big { padding: 14px 22px; font-size: 19px; min-width: 260px; }
.pbtn.big small { font-size: 12px; opacity: .85; }
.pbtn.gold { background: linear-gradient(#ffd166, #f4a93b); color: #3a2400; box-shadow: 0 4px 0 #a5641a; }
.pbtn.ghost { background: #2a2450; box-shadow: 0 4px 0 #15102e; }
.pbtn.red { background: linear-gradient(#ff6b88, #e0405e); box-shadow: 0 4px 0 #8c1d34; }
.pbtn.grn { background: linear-gradient(#2fe0b0, #10b386); box-shadow: 0 4px 0 #0b6a50; color: #04241a; }
.pbtn.sm { padding: 6px 10px; font-size: 13px; }
.pbtn:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; }
.ibtn { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--bg2); border-radius: 6px; font-size: 16px; }
.ibtn.on { background: #3b2f7a; border-color: var(--gold); }
.linkbtn { background: none; border: 0; color: var(--mut); text-decoration: underline; font-size: 13px; }

/* 타이틀 */
.title-bg { position: absolute; inset: 0; width: 100%; height: 100%; filter: brightness(.55) saturate(1.1); }
.title-box { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; text-align: center; background: radial-gradient(ellipse at center, #120f24aa 0%, #120f2400 70%); }
.t-kicker { margin: 0; letter-spacing: .3em; color: var(--blu); font-size: 13px; }
.t-logo { margin: 0; font-size: clamp(42px, 9vw, 86px); line-height: 1; display: flex; align-items: center; gap: 12px; text-shadow: 0 4px 0 #2e1f80, 0 0 30px #7b5cff99; }
.t-logo b { font-weight: 700; background: linear-gradient(#fff, #ffd166); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-sub { margin: 0 0 8px; color: #e6defa; font-size: 16px; }
.t-btns { display: grid; gap: 14px; }
.t-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.langs { display: flex; gap: 4px; } .langs button { background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; padding: 5px 9px; font-size: 13px; } .langs button.on { border-color: var(--gold); color: var(--gold); }

/* HUD */
#scGame { display: flex; flex-direction: column; }
.hud { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: linear-gradient(#211b44, #17132f); border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.hud-l { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.h-station { font-size: 17px; color: var(--gold); white-space: nowrap; }
.h-day { font-size: 15px; } .h-time { font-size: 20px; font-weight: 700; color: var(--blu); font-variant-numeric: tabular-nums; }
.hud-m { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; justify-content: center; }
.chip { background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; font-size: 14px; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.chip.money b { color: var(--gold); } .chip.neg b { color: var(--red); } .chip.rival b { color: #ff9b9b; }
.hud-r { display: flex; gap: 6px; align-items: center; }
.speed { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; } .speed button { background: var(--bg2); border: 0; padding: 7px 9px; font-size: 13px; } .speed button.on { background: #5a3fd6; }
.body { flex: 1; display: flex; min-height: 0; }
.stage { position: relative; flex: 1; min-width: 0; background: #0d0c18; }
#cvWorld { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.ticker { position: absolute; left: 12px; right: 12px; bottom: 12px; min-height: 0; pointer-events: none; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ticker .tk { background: rgba(14,10,36,.88); border-left: 4px solid var(--gold); padding: 7px 12px; font-size: clamp(14px, 1.5vw, 19px); border-radius: 0 6px 6px 0; animation: tkIn .35s ease-out; max-width: 100%; }
.ticker .tk.imp3 { border-color: var(--red); background: rgba(60,8,24,.9); font-size: clamp(16px, 1.8vw, 22px); }
.ticker .tk.imp1 { border-color: var(--blu); opacity: .9; }
@keyframes tkIn { from { transform: translateX(-20px); opacity: 0; } }
.next-show { position: absolute; top: 10px; left: 10px; background: rgba(14,10,36,.9); border: 2px solid var(--red); border-radius: 8px; padding: 8px 12px; font-size: 14px; max-width: 320px; }
.next-show b { color: var(--red); }
.toasts { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: grid; gap: 6px; pointer-events: none; }
.toast { background: #2a2450; border: 1px solid var(--gold); border-radius: 6px; padding: 8px 12px; font-size: 14px; animation: tkIn .3s; }
.zoom { position: absolute; right: 10px; bottom: 12px; display: grid; gap: 4px; } .zoom button { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line); background: rgba(28,24,56,.9); font-size: 16px; }

/* 패널 */
.panel { width: 360px; display: flex; flex-direction: column; background: var(--bg2); border-left: 2px solid var(--line); min-height: 0; }
.tabs { display: flex; } .tabs button { flex: 1; padding: 10px 4px; background: var(--bg); border: 0; border-bottom: 2px solid var(--line); font-size: 14px; color: var(--mut); } .tabs button.on { background: var(--bg2); color: var(--gold); border-bottom-color: var(--gold); }
.tab-body { flex: 1; overflow-y: auto; padding: 10px; }
.card { background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 8px; }
.ccard { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; cursor: pointer; }
.ccard:hover { border-color: var(--gold); }
.ccard canvas, .por { width: 44px; height: 44px; image-rendering: pixelated; background: #0d0c18; border-radius: 6px; }
.ccard .nm { font-size: 15px; } .ccard .nm small { color: var(--mut); font-size: 12px; margin-left: 4px; }
.ccard .doing { font-size: 12px; color: var(--blu); } .ccard .mood { font-size: 22px; }
.bars { display: grid; grid-template-columns: 70px 1fr 30px; gap: 4px 6px; align-items: center; font-size: 12px; }
.bar { height: 8px; background: #0d0c18; border-radius: 4px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--grn); }
.bar.e i { background: var(--pink); } .bar.a i { background: var(--blu); } .bar.p i { background: var(--gold); } .bar.low i { background: var(--red); }
.sec { font-size: 13px; color: var(--gold); margin: 10px 0 4px; }
.rel { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; border-bottom: 1px dashed #3d357066; }
.rel .rt { font-size: 11px; padding: 1px 6px; border-radius: 10px; background: #3d3570; } .rt.lover, .rt.crush { background: #b0306a; } .rt.enemy { background: #8c1d34; } .rt.rival { background: #a5641a; } .rt.best { background: #0b6a50; } .rt.friend { background: #2a5a8a; } .rt.ally { background: #5a3fd6; } .rt.ex { background: #555; }
.mem { font-size: 12px; padding: 3px 0; color: #ddd; } .mem.pos { color: #a8f0d0; } .mem.neg { color: #ffb3c1; }
.slot { border-left: 4px solid var(--line); } .slot.live { border-color: var(--red); } .slot.done { opacity: .7; } .slot.past { opacity: .5; }
.slot h4 { margin: 0 0 4px; font-size: 14px; display: flex; justify-content: space-between; }
.cchips { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0; } .cchips span { background: #3d3570; border-radius: 10px; padding: 2px 8px; font-size: 12px; }
.loge { font-size: 13px; padding: 5px 0; border-bottom: 1px dashed #3d357066; } .loge small { color: var(--mut); margin-right: 6px; } .loge.i2 { color: #ffe8a3; } .loge.i3 { color: #ffb3c1; font-weight: 700; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px; font-size: 14px; } .kv b { color: var(--gold); }
.row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* 방송 화면 */
.show-layer { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: #0a0816; }
.sh-top { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: linear-gradient(#3a0d1f, #1c0710); border-bottom: 2px solid var(--red); }
.onair { color: #fff; background: var(--red); padding: 3px 10px; border-radius: 4px; font-weight: 700; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .55; } }
#shTitle { font-size: 20px; } .sh-phase { color: var(--gold); font-size: 16px; } .sh-timer { margin-left: auto; font-size: 22px; color: var(--blu); font-variant-numeric: tabular-nums; }
.sh-body { flex: 1; display: flex; min-height: 0; }
#cvShow { flex: 1; min-width: 0; width: 100%; height: 100%; }
.sh-side { width: 300px; display: flex; flex-direction: column; gap: 8px; padding: 8px; background: #140f2a; border-left: 2px solid var(--line); min-height: 0; }
.sh-board { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; align-content: start; }
.sh-board li { display: grid; grid-template-columns: 24px 1fr auto; gap: 6px; align-items: center; background: var(--bg3); border-radius: 6px; padding: 6px 8px; font-size: 16px; } .sh-board li:first-child { border: 1px solid var(--gold); }
.sh-board em { color: var(--gold); font-style: normal; } .sh-board b { color: var(--blu); font-size: 18px; }
.sh-feed { margin: 0; padding: 0; list-style: none; overflow-y: auto; flex: 1; display: flex; flex-direction: column-reverse; gap: 4px; }
.sh-feed li { font-size: 14px; background: #1f1840; border-radius: 4px; padding: 5px 8px; } .sh-feed li.i2 { background: #3b2f12; } .sh-feed li.i3 { background: #4a0f22; font-weight: 700; }

/* 모달 */
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(5,3,15,.72); display: grid; place-items: center; padding: 16px; }
.mbox { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: var(--bg2); border: 2px solid var(--gold); border-radius: 10px; padding: 18px; box-shadow: 0 10px 40px #000a; animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.mbox h3 { margin: 0 0 10px; font-size: 20px; color: var(--gold); }
.ev-text { font-size: 19px; line-height: 1.55; margin: 6px 0 14px; }
.ev-who { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.ev-who canvas { width: 64px; height: 64px; image-rendering: pixelated; background: #0d0c18; border-radius: 8px; }
.choices { display: grid; gap: 8px; } .choices .pbtn { width: 100%; font-size: 16px; padding: 12px; }
.auto { font-size: 12px; color: var(--mut); text-align: center; margin-top: 8px; }
.res-big { font-size: 44px; color: var(--blu); text-align: center; font-weight: 700; margin: 6px 0; }
.parts { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; color: var(--mut); } .parts .p { color: var(--grn); } .parts .n { color: var(--red); }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pick { background: var(--bg3); border: 2px solid var(--line); border-radius: 8px; padding: 10px; text-align: left; } .pick:hover:not(:disabled) { border-color: var(--gold); } .pick.on { border-color: var(--grn); background: #12403a; }
.pick .ic { font-size: 26px; } .pick b { display: block; font-size: 15px; margin: 4px 0; } .pick small { color: var(--mut); font-size: 12px; } .pick:disabled { opacity: .45; }
.mfoot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.credits { font-size: 13px; line-height: 1.6; } .credits li { margin-bottom: 4px; }

/* 시네마틱 */
.cine { position: fixed; inset: 0; z-index: 40; pointer-events: auto; display: flex; flex-direction: column; justify-content: space-between; background: rgba(0,0,0,.35); cursor: pointer; }
.cine-bar { height: 13vh; background: #000; animation: barIn .4s ease-out; } .cine-bar.b { animation-name: barIn2; }
@keyframes barIn { from { transform: translateY(-100%); } } @keyframes barIn2 { from { transform: translateY(100%); } }
.cine-text { text-align: center; font-size: clamp(22px, 4vw, 44px); font-weight: 700; text-shadow: 0 3px 0 #000, 0 0 30px var(--c, #ff4d6d); padding: 0 20px; animation: cineT .6s ease-out; }
.cine-text small { display: block; font-size: .5em; color: var(--gold); margin-bottom: 8px; letter-spacing: .2em; }
@keyframes cineT { from { transform: scale(1.4); opacity: 0; letter-spacing: .3em; } }

/* 스트리머 모드 패널 (방송 화면에서 잘 보이게 크게) */
.s-dock { position: absolute; top: 10px; right: 10px; width: min(340px, 46%); max-height: calc(100% - 70px); overflow-y: auto; display: grid; gap: 8px; z-index: 5; }
.s-dock .sd-top { display: flex; gap: 8px; background: rgba(14,10,36,.92); border: 2px solid var(--red); border-radius: 10px; padding: 8px; align-items: center; }
.s-dock .sd-top { position: relative; } .s-dock .sd-top:not(.mini) .sd-info { padding-right: 26px; }
.s-dock .sd-top.mini { flex-wrap: wrap; padding: 6px 34px 6px 10px; } .sd-top.mini b { color: var(--red); font-size: 14px; }
.sd-fold { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; padding: 0; border: 1px solid #ffffff40; border-radius: 6px; background: #ffffff14; color: #fff; font-size: 13px; line-height: 1; cursor: pointer; } .sd-fold:hover { background: #ffffff2e; }
.sd-qr { background: #fff; padding: 4px; border-radius: 6px; line-height: 0; flex: none; } .sd-qr img { width: 92px; height: 92px; image-rendering: pixelated; }
.sd-info { display: grid; gap: 3px; font-size: 13px; min-width: 0; } .sd-info b { color: var(--red); font-size: 15px; } .sd-info code { font-size: 11px; color: var(--blu); word-break: break-all; }
.sd-box { background: rgba(14,10,36,.92); border: 2px solid var(--gold); border-radius: 10px; padding: 8px 10px; } .sd-box.pred { border-color: var(--pink); }
.sd-h { font-weight: 700; color: var(--gold); display: flex; justify-content: space-between; font-size: 15px; } .sd-h em { font-style: normal; color: var(--blu); }
.sd-q { margin: 4px 0 6px; font-size: 14px; line-height: 1.4; }
.sd-bar, .ev-vote .sd-bar { position: relative; background: #0d0c18; border-radius: 6px; overflow: hidden; margin: 4px 0; min-height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; font-size: 14px; }
.sd-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #5a3fd6, #9b7bff); z-index: 0; transition: width .4s; } .sd-bar span, .sd-bar b { position: relative; z-index: 1; } .sd-bar b { color: var(--gold); font-size: 13px; white-space: nowrap; margin-left: 8px; }
.sd-bar.win { outline: 2px solid var(--grn); } .sd-bar.win i { background: linear-gradient(90deg, #10b386, #2fe0b0); }
.sd-board { background: rgba(14,10,36,.88); border-radius: 10px; padding: 6px 10px; display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.ev-vote { margin: 10px 0; } .ev-vote small { color: var(--mut); font-size: 12px; }
.tin { width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); background: #0d0c18; color: var(--tx); font: inherit; }

/* 모바일 */
@media (max-width: 900px) {
  html, body { overflow: auto; }
  #scGame { position: static; min-height: 100%; }
  .body { flex-direction: column; }
  .stage { height: 58vh; flex: none; }
  .panel { width: auto; border-left: 0; border-top: 2px solid var(--line); }
  .tab-body { max-height: none; }
  .hud { gap: 6px; padding: 6px 8px; } .hud-m { order: 3; flex-basis: 100%; justify-content: flex-start; } .chip { font-size: 12px; padding: 2px 7px; }
  .h-station { display: none; }
  .sh-body { flex-direction: column; } #cvShow { flex: none; height: min(68vw, 52vh); } .sh-side { width: auto; flex: 1; min-height: 0; border-left: 0; border-top: 2px solid var(--line); flex-direction: row; } .sh-board { width: 45%; overflow-y: auto; } .sh-feed { width: 55%; } .sh-board li { font-size: 14px; padding: 4px 6px; }
  #shTitle { font-size: 16px; } .sh-top { flex-wrap: wrap; gap: 6px; }
  .pbtn.big { min-width: 0; width: min(320px, 100%); }
  .ticker .tk { font-size: 13px; }
  .s-dock { width: min(250px, 62%); } .sd-qr img { width: 64px; height: 64px; } .sd-box { padding: 6px; } .sd-q { font-size: 12px; } .sd-bar { min-height: 22px; font-size: 12px; }
}

/* 시설 짓기 바 */
.b-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 6; background: rgba(28,24,56,.96); border: 2px solid var(--gold); border-radius: 12px; padding: 8px 10px; box-shadow: 0 8px 28px #0008; }
.bb-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .bb-top b { color: var(--gold); font-size: 15px; } .bb-money { margin-left: auto; font-size: 13px; color: var(--tx); }
.bb-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.bb-it { flex: 0 0 auto; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; background: var(--bg); border: 2px solid var(--line); border-radius: 9px; color: var(--tx); }
.bb-it canvas { width: 32px; height: 32px; image-rendering: pixelated; } .bb-it b { font-size: 12px; line-height: 1.2; text-align: center; min-height: 2.4em; display: flex; align-items: center; } .bb-it small { font-size: 11px; color: var(--gold); }
.bb-it.on { border-color: var(--gold); background: var(--bg3); } .bb-it:disabled { opacity: .4; }
.bb-tip { margin: 4px 2px 0; font-size: 12px; color: var(--mut); }
@media (max-width: 760px) { .b-bar { left: 4px; right: 4px; bottom: 4px; padding: 4px 6px; border-width: 1px; background: rgba(28,24,56,.92); } .bb-top { margin-bottom: 3px; gap: 5px; } .bb-top b { font-size: 12px; } .bb-top .pbtn.sm { padding: 3px 8px; font-size: 12px; } .bb-money { font-size: 11px; } .bb-it { width: 56px; padding: 3px 2px; gap: 0; } .bb-it canvas { width: 22px; height: 22px; } .bb-it b { font-size: 10px; min-height: 2.3em; } .bb-it small { font-size: 10px; } .bb-tip { font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* 함께 운영: 우승 예측 버튼 */
.sh-board li .pred { margin-left: 6px; padding: 1px 6px; font-size: 12px; line-height: 1.4; background: #ffffff14; border: 1px solid var(--line); border-radius: 6px; color: var(--tx); cursor: pointer; } .sh-board li .pred:hover { border-color: var(--gold); }

/* 방송 채팅 투표 */
.sd-n { font-style: normal; color: var(--gold); font-weight: 700; margin-right: 2px; } .sd-chat { margin-top: 6px; font-size: 12px; color: var(--grn); background: #06d6a014; border-radius: 6px; padding: 4px 8px; }

/* 첫날 길잡이 */
.tut-box { position: absolute; left: 10px; top: 10px; z-index: 5; max-width: 330px; pointer-events: none; }
.tut-box > * { pointer-events: auto; }
.tut-card { background: rgba(28,24,56,.94); border: 2px solid var(--blu); border-radius: 12px; padding: 8px 10px; box-shadow: 0 6px 22px #0008; font-size: 13px; }
.tut-card.done { border-color: var(--grn); color: var(--grn); font-weight: 700; }
.tut-h { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; } .tut-h b { color: var(--blu); } .tut-h span { color: var(--mut); font-size: 12px; margin-left: auto; }
.tut-x { background: none; border: 0; color: var(--mut); font-size: 14px; cursor: pointer; padding: 0 2px; }
.tut-now { color: var(--tx); line-height: 1.45; animation: tutPulse 2.2s ease-in-out infinite; }
@keyframes tutPulse { 50% { color: #fff6c9; } }
.tut-list { display: flex; gap: 4px; list-style: none; margin: 6px 0 0; padding: 0; }
.tut-list li { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--bg); font-size: 12px; opacity: .55; }
.tut-list li.ok { background: #06d6a033; color: var(--grn); opacity: 1; } .tut-list li.now { outline: 2px solid var(--gold); opacity: 1; }
.tut-pill { background: rgba(28,24,56,.9); border: 1px solid var(--blu); color: var(--blu); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
@media (max-width: 760px) { .tut-box { left: 6px; top: 6px; max-width: calc(100% - 60px); } .tut-card { padding: 6px 8px; font-size: 12px; } .tut-list li { width: 18px; height: 18px; font-size: 10px; } }

/* 시작 설정 */
.su-join { display: flex; align-items: center; gap: 6px; font-weight: 700; margin: 4px 0 8px; cursor: pointer; }
.su-char { display: flex; gap: 12px; align-items: flex-start; } .su-char.off, .su-chips.off { opacity: .35; pointer-events: none; }
.su-prev { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 8px; } .su-prev .por { image-rendering: pixelated; }
.su-form { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; } .su-form .tin { width: 100%; }
.su-part { display: flex; align-items: center; gap: 6px; font-size: 13px; } .su-part span { width: 52px; color: var(--mut); } .su-part b { width: 22px; text-align: center; }
.su-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; } .su-chips small { width: 100%; color: var(--mut); }
.chipb { background: var(--bg); border: 1px solid var(--line); color: var(--tx); border-radius: 999px; padding: 5px 10px; font-size: 13px; cursor: pointer; } .chipb.on { border-color: var(--gold); background: #ffd16622; color: var(--gold); }
.su-how { display: block; width: 100%; text-align: left; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; color: var(--tx); cursor: pointer; }
.su-how b { font-size: 16px; } .su-how small { display: block; color: var(--mut); margin-top: 4px; } .su-how.on { border-color: var(--gold); background: #ffd16614; }
.su-how ul, .su-list { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--mut); } .su-how li, .su-list li { margin: 2px 0; }
@media (max-width: 560px) { .su-char { flex-direction: column; } .su-prev .por { width: 56px !important; height: 56px !important; } }

/* 상점 · 메뉴 */
.ibtn.lbl { width: auto; padding: 0 10px; gap: 4px; font-size: 14px; white-space: nowrap; }
.ibtn.shop { background: linear-gradient(#ffd166, #f4a93b); color: #3a2400; border-color: #f4a93b; font-weight: 700; }
.ibtn.shop span { color: #3a2400; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-it { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--tx); cursor: pointer; }
.menu-it span { font-size: 22px; } .menu-it b { font-size: 15px; } .menu-it small { color: var(--mut); font-size: 12px; } .menu-it:hover { border-color: var(--gold); }
@media (max-width: 560px) { .menu-grid { grid-template-columns: 1fr; } }

/* 좁은 화면: 위쪽 버튼 줄이 넘치지 않게 줄바꿈 · 탭 글자 한 줄 */
@media (max-width: 760px) {
  .hud-r { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; max-width: 100%; }
  .ibtn.lbl { height: 34px; padding: 0 9px; font-size: 13px; }
  .tabs button { white-space: nowrap; font-size: 13px; padding: 10px 2px; }
}

/* 엔딩 결과창: 출연자별 결말 */
.modal.wide .mbox { width: min(720px, 100%); }
.fate-mvp { margin: 10px 0; padding: 8px 12px; border-radius: 10px; background: linear-gradient(90deg, #ffd16633, transparent); color: var(--gold); font-size: 15px; }
.fate-card { background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: 12px; margin: 10px 0; }
.fate-card.me { border-color: var(--gold); background: linear-gradient(160deg, #3a2f12, var(--bg) 60%); box-shadow: 0 0 0 3px #ffd16622, 0 8px 24px #0006; }
.fate-card.viewer { border-color: var(--pink); background: linear-gradient(160deg, #3a1a35, var(--bg) 60%); }
.fate-top { display: flex; gap: 12px; align-items: center; } .fate-por .por { image-rendering: pixelated; background: var(--bg2); border-radius: 10px; padding: 4px; }
.fate-name { font-size: 20px; } .fate-card.me .fate-name { color: var(--gold); } .fate-title { font-size: 15px; font-weight: 700; color: var(--blu); margin-top: 2px; }
.fate-badge { display: inline-block; font-size: 11px; border-radius: 999px; padding: 2px 8px; margin-bottom: 2px; } .fate-badge.me { background: #ffd16633; color: var(--gold); } .fate-badge.vw { background: #ff9bd233; color: var(--pink); }
.fate-line { margin: 8px 0 6px; line-height: 1.5; } .fate-stats { display: flex; gap: 12px; font-size: 13px; color: var(--mut); }
.fate-mems { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: var(--mut); } .fate-mems li { margin: 2px 0; }
.fate-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed #3d357066; font-size: 13px; } .fate-row small { color: var(--blu); } .fate-row span { color: var(--mut); }
.fate-por.sm .por { width: 36px; height: 36px; }

/* ================= 시즌 결과 쇼 ================= */
.rs { position: fixed; inset: 0; z-index: 60; background: radial-gradient(ellipse at 50% 0%, #3a2a78 0%, #1a1440 45%, #0b0918 100%); color: var(--tx); display: flex; flex-direction: column; animation: rsIn .5s ease-out; }
@keyframes rsIn { from { opacity: 0; } }
.rs-fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.rs-body { flex: 1; overflow-y: auto; padding: 18px 16px 10px; position: relative; z-index: 2; }
.rs-page { max-width: 880px; margin: 0 auto; animation: rsPage .45s ease-out; } @keyframes rsPage { from { opacity: 0; transform: translateY(14px); } }
.rs-nav { position: relative; z-index: 4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(10,8,24,.88); border-top: 2px solid var(--line); }
.rs-dots { display: flex; gap: 6px; } .rs-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); } .rs-dots i.on { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.rs-auto { font-size: 12px; color: var(--mut); display: flex; align-items: center; gap: 4px; }
.rs-h { text-align: center; color: var(--gold); font-size: clamp(22px, 3.4vw, 34px); margin: 6px 0 16px; text-shadow: 0 3px 0 #0008; } .rs-h small { font-size: 14px; color: var(--mut); }
.rs-mut { color: var(--mut); text-align: center; }
.rs-spr { image-rendering: pixelated; display: block; } .rs-spr-slot { display: inline-block; vertical-align: middle; }
.rs-finale { text-align: center; padding-top: 6vh; position: relative; }
.rs-curtain { position: fixed; top: 0; bottom: 0; width: 50%; background: repeating-linear-gradient(90deg, #8c1d34 0 26px, #a8243f 26px 52px); z-index: 5; animation: curtL 1.6s .3s ease-in forwards; box-shadow: inset 0 -30px 60px #0008; pointer-events: none; }
.rs-curtain.l { left: 0; } .rs-curtain.r { right: 0; animation-name: curtR; }
@keyframes curtL { to { transform: translateX(-100%); } } @keyframes curtR { to { transform: translateX(100%); } }
.rs-kick { letter-spacing: 6px; color: var(--pink); font-weight: 700; } .rs-finale h1 { font-size: clamp(30px, 6vw, 60px); margin: 10px 0; color: #fff; text-shadow: 0 4px 0 #6b3fd8, 0 0 30px #ffd16688; }
.rs-end-name { display: inline-block; font-size: clamp(22px, 4vw, 36px); color: var(--gold); border: 3px solid var(--gold); border-radius: 12px; padding: 6px 18px; margin: 8px 0; animation: pulseG 1.6s infinite; }
@keyframes pulseG { 50% { box-shadow: 0 0 24px #ffd16699; } }
.rs-lineup { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 26px; } .rs-lineup span { padding: 4px; border-radius: 10px; background: #ffffff10; animation: hop 1.2s ease-in-out infinite; } .rs-lineup span:nth-child(2n) { animation-delay: .3s; }
.rs-lineup span.mine { background: #ffd16640; box-shadow: 0 0 0 2px var(--gold); } .rs-lineup span.viewer { background: #ff9bd230; box-shadow: 0 0 0 2px var(--pink); }
@keyframes hop { 50% { transform: translateY(-6px); } }
.rs-grade { width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 5px solid var(--gold); background: radial-gradient(#3a2f12, #1a1440); box-shadow: 0 0 40px #ffd16655; animation: stamp .6s cubic-bezier(.2,1.6,.4,1); }
.rs-grade b { font-size: 76px; line-height: 1; color: var(--gold); } .rs-grade small { color: var(--mut); } .rs-grade.g-S b { color: #ff9bd2; } .rs-grade.g-D b { color: var(--mut); }
@keyframes stamp { from { transform: scale(2.4); opacity: 0; } }
.rs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; } .rs-cards > div { background: #ffffff0d; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; } .rs-cards small { display: block; color: var(--mut); font-size: 12px; } .rs-cards b { font-size: 19px; } .rs-cards i { display: block; font-style: normal; color: var(--gold); font-size: 13px; }
.rs-big { margin-top: 14px; text-align: center; color: #ffb3c1; }
.rs-stage { text-align: center; position: relative; }
.rs-award-name { display: inline-block; font-size: clamp(22px, 4vw, 34px); font-weight: 700; color: #fff; background: linear-gradient(90deg, #6b3fd8, #c94f8a); padding: 8px 22px; border-radius: 999px; box-shadow: 0 6px 0 #2a1650; margin-bottom: 18px; }
.rs-reveal { min-height: 330px; display: flex; align-items: center; justify-content: center; position: relative; background: radial-gradient(ellipse at 50% 100%, #5a2a4a 0%, transparent 70%); border-bottom: 6px solid #c94f8a; border-radius: 0 0 50% 50% / 0 0 30px 30px; overflow: visible; }
.rs-drum { font-size: 22px; color: var(--mut); } .rs-drum b { display: block; font-size: 110px; color: var(--gold); animation: beat .65s infinite; } @keyframes beat { 30% { transform: scale(1.25); } }
.rs-winner { position: relative; display: flex; flex-direction: column; align-items: center; animation: rise .7s cubic-bezier(.2,1.4,.4,1); } @keyframes rise { from { transform: translateY(60px) scale(.6); opacity: 0; } }
.rs-winner h3 { margin: 6px 0 2px; font-size: clamp(26px, 4vw, 40px); color: #fff; text-shadow: 0 3px 0 #000a; } .rs-winner.mine h3 { color: var(--gold); } .rs-winner.viewer h3 { color: var(--pink); } .rs-winner small { color: var(--mut); font-size: 15px; }
.rs-trophy { position: absolute; top: 8px; right: -46px; font-size: 54px; animation: spin 2.4s ease-in-out infinite; } @keyframes spin { 50% { transform: rotate(-12deg) scale(1.1); } }
.rs-spot { position: absolute; left: 50%; top: -90px; width: 360px; height: 420px; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 100%, #fff3b0aa 0%, #ffd16633 40%, transparent 70%); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); pointer-events: none; animation: spotIn .8s ease-out; } @keyframes spotIn { from { opacity: 0; } }
.rs-me-hero { position: relative; display: flex; align-items: center; gap: 22px; padding: 18px; border-radius: 18px; background: #ffffff0a; border: 3px solid var(--line); overflow: hidden; }
.rs-me.mine .rs-me-hero { border-color: var(--gold); background: linear-gradient(140deg, #4a3a12, #1c1838 60%); box-shadow: 0 0 0 4px #ffd16630, 0 0 40px #ffd16644; }
.rs-me.viewer .rs-me-hero { border-color: var(--pink); background: linear-gradient(140deg, #4a1a40, #1c1838 60%); }
.rs-me-hero .rs-spot { left: 110px; top: -120px; width: 300px; }
.rs-enter .rs-me-hero .rs-spr-slot { animation: enter .9s cubic-bezier(.2,1.5,.4,1); } @keyframes enter { from { transform: translateX(-120px) scale(.4); opacity: 0; } }
.rs-me-id h2 { margin: 4px 0; font-size: clamp(28px, 5vw, 44px); } .rs-me.mine h2 { color: var(--gold); }
.rs-badge { font-size: 12px; border-radius: 999px; padding: 3px 10px; font-weight: 700; } .rs-badge.me { background: #ffd16633; color: var(--gold); } .rs-badge.vw { background: #ff9bd233; color: var(--pink); }
.rs-title { font-size: clamp(18px, 2.8vw, 26px); font-weight: 700; } .fx-gold { color: var(--gold); } .fx-pink { color: var(--pink); } .fx-blue { color: var(--blu); } .fx-red { color: #ff7b7b; } .fx-green { color: var(--grn); }
.rs-end-d { color: var(--mut); margin: 4px 0 0; }
.rs-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; } .rs-stats > div { background: #ffffff0d; border-radius: 10px; padding: 8px; text-align: center; } .rs-stats small { display: block; color: var(--mut); font-size: 11px; } .rs-stats b { font-size: 20px; } .rs-stats i { font-style: normal; font-size: 12px; color: var(--mut); }
.rs-got { display: inline-block; margin: 2px 6px 2px 0; background: #ff9bd222; color: var(--pink); border-radius: 999px; padding: 3px 12px; font-weight: 700; }
.rs-sec { margin: 18px 0 8px; font-weight: 700; color: var(--gold); border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.rs-story { line-height: 1.75; font-size: 15px; background: #ffffff08; border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 0 10px 10px 0; }
.rs-progs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.rs-prog { background: #ffffff0d; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 12px; display: grid; grid-template-columns: 24px 1fr; column-gap: 6px; } .rs-prog span { grid-row: span 3; font-size: 18px; } .rs-prog small { color: var(--mut); } .rs-prog em { font-style: normal; color: #ffe8a3; font-size: 11px; }
.rs-prog.win { border-color: var(--gold); background: #ffd16618; } .rs-prog.none { opacity: .38; }
.rs-rel { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #3d357066; flex-wrap: wrap; } .rs-rel-k { width: 150px; color: var(--mut); font-size: 13px; } .rs-rel small { width: 100%; padding-left: 158px; color: var(--mut); font-size: 12px; }
.rs-tl { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--gold); } .rs-tl li { position: relative; padding: 6px 0 6px 16px; font-size: 14px; } .rs-tl li::before { content: ""; position: absolute; left: -8px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); } .rs-tl b { color: var(--gold); margin-right: 8px; font-size: 12px; } .rs-tl span { margin-right: 6px; }
.rs-share { margin: 20px auto 6px; display: block; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rs-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; background: #ffffff0d; border: 2px solid var(--line); border-radius: 14px; padding: 12px 8px 10px; color: var(--tx); cursor: pointer; transition: transform .15s; } .rs-card:hover { transform: translateY(-3px); border-color: var(--blu); }
.rs-card.mine { border-color: var(--gold); background: linear-gradient(160deg, #4a3a12, #1c1838 70%); box-shadow: 0 0 22px #ffd16644; } .rs-card.viewer { border-color: var(--pink); background: linear-gradient(160deg, #4a1a40, #1c1838 70%); }
.rs-card b { font-size: 16px; } .rs-card small { font-size: 12px; text-align: center; } .rs-card em { font-style: normal; font-size: 11px; color: var(--gold); } .rs-card.viewer em { color: var(--pink); }
.rs-rank { position: absolute; top: 6px; left: 8px; font-weight: 700; color: var(--gold); font-size: 13px; } .rs-mini { font-size: 11px; color: var(--mut); }
@media (max-width: 640px) {
  .rs-me-hero { flex-direction: column; text-align: center; } .rs-me-hero .rs-spr-slot canvas { width: 128px !important; height: 128px !important; }
  .rs-stats { grid-template-columns: repeat(3, 1fr); } .rs-rel-k { width: 100%; } .rs-rel small { padding-left: 0; }
  .rs-trophy { right: -30px; font-size: 40px; } .rs-reveal { min-height: 280px; } .rs-winner .rs-spr-slot canvas { width: 120px !important; height: 120px !important; }
  .rs-nav .pbtn { padding: 6px 10px; font-size: 13px; }
}

/* 시청자 관리 (강퇴·닉네임 변경) */
.vm-list { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.vm-row { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.vm-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vm-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-who small { color: var(--mut); font-size: 11px; }
.vm-edit { flex: 1; display: flex; gap: 6px; min-width: 0; }
.vm-edit[hidden], .vm-who[hidden] { display: none; }
.vm-edit .tin { flex: 1; min-width: 0; }

/* 내 행동 카드 (🃏) */
.me-btn { position: absolute; right: 64px; bottom: 14px; z-index: 6; display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 14px; border: 2px solid #ffd166; background: linear-gradient(160deg, #4a3a12, #2a1f48); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 16px #0008, 0 0 14px #ffd16655; }
.me-btn b { color: #ffd166; }
.me-btn:hover { transform: translateY(-2px); }
.me-btn.empty { border-color: #6b6890; box-shadow: 0 4px 12px #0008; opacity: 0.75; }
.me-btn.empty b { color: var(--mut); }
.ma-left { font-weight: 700; color: var(--gold, #ffd166); margin: 0 0 4px; }
.ma-none { color: var(--mut); padding: 16px 0; text-align: center; }
.ma-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ma-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px; border-radius: 12px; border: 1px solid #ffffff22; background: #ffffff0d; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ma-card:hover { border-color: #ffd166; background: #ffd16618; }
.ma-card .ic { font-size: 26px; line-height: 1; }
.ma-card small { color: var(--mut); font-size: 11px; line-height: 1.35; }
.ma-who { cursor: pointer; font: inherit; color: inherit; }
@media (max-width: 640px) { .me-btn { top: 10px; bottom: auto; right: 8px; font-size: 13px; padding: 8px 11px; } }

/* ===== 비밀·동맹·인터뷰 (2026-11-05) ===== */
.so-map { padding: 6px; } .so-map canvas { width: 100%; display: block; image-rendering: pixelated; }
.so-legend { display: block; text-align: center; color: var(--mut); font-size: 11px; margin-top: 4px; }
.so-al { display: flex; flex-direction: column; padding: 6px 8px; border-left: 3px solid #ffd166; background: #ffd16612; border-radius: 6px; margin-bottom: 6px; }
.so-al.off { border-left-color: #6b6890; background: #ffffff08; opacity: 0.8; } .so-al small { color: var(--mut); font-size: 11px; }
.so-sec { font-size: 13px; padding: 5px 8px; border-radius: 6px; background: #ff5ea81a; margin-bottom: 5px; } .so-sec small { color: var(--mut); }
.so-empty { color: var(--mut); font-size: 12px; margin: 4px 0; }
.so-iv { padding: 8px; border-radius: 8px; background: #ffffff08; margin-bottom: 8px; border: 1px solid #ffffff14; }
.so-iv-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; } .so-iv-h small { color: var(--mut); font-size: 11px; }
.so-iv .q { margin: 4px 0 0; font-size: 12px; color: var(--blu, #5ee6ff); } .so-iv .a { margin: 2px 0 0; font-size: 13px; line-height: 1.5; }
.so-h { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: #ffffff14; color: var(--mut); white-space: nowrap; }
.so-h.lie { background: #ff4d6d33; color: #ff9fb0; } .so-h.dodge { background: #9aa0ff26; color: #c3c7ff; } .so-h.part { background: #ffd16626; color: #ffe39a; } .so-h.ok { background: #3ddc9726; color: #9ff0c9; }

/* 인터뷰룸 자막 (방송 예능 고백 인터뷰 느낌 · 화면 아래 큰 자막) */
.ivw { position: absolute; inset: 0; z-index: 7; pointer-events: auto; cursor: pointer; }
.ivw-vig { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(5, 4, 15, 0.72) 100%); opacity: 0; transition: opacity .45s; pointer-events: none; }
.ivw-bar { position: absolute; left: 0; right: 0; background: #07060f; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.ivw-bar.top { top: 0; height: 44px; transform: translateY(-100%); display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.ivw-bar.bot { bottom: 0; min-height: 118px; transform: translateY(100%); display: flex; gap: 14px; align-items: center; padding: 12px 18px; border-top: 2px solid #ff5ea8; }
.ivw.in .ivw-bar { transform: none; } .ivw.in .ivw-vig { opacity: 1; } .ivw.out .ivw-bar.top { transform: translateY(-100%); } .ivw.out .ivw-bar.bot { transform: translateY(100%); } .ivw.out .ivw-vig { opacity: 0; }
.ivw-rec { color: #ff4d6d; font-weight: 700; font-size: 13px; animation: ivw-blink 1s steps(2) infinite; } @keyframes ivw-blink { 50% { opacity: .2; } }
.ivw-tag { color: #ffd166; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.ivw-who canvas { width: 56px; height: 56px; border-radius: 10px; background: #3a1f5c; border: 2px solid #ffd166; image-rendering: pixelated; }
.ivw-cap { flex: 1; min-width: 0; }
.ivw-name { color: #ffd166; font-size: 15px; } .ivw-q { margin: 2px 0 0; color: #9fe7ff; font-size: 14px; }
.ivw-a { margin: 4px 0 0; color: #fff; font-size: 20px; line-height: 1.45; text-shadow: 0 2px 0 #000; min-height: 1.45em; }
.ivw-h { display: inline-block; margin-top: 4px; font-size: 12px; padding: 2px 8px; border-radius: 8px; background: #ffffff1a; color: #ddd; }
.ivw-h:empty { display: none; } .ivw-h.lie { background: #ff4d6d44; color: #ffc2cc; } .ivw-h.dodge { background: #9aa0ff33; } .ivw-h.part { background: #ffd16633; color: #ffe8a8; }
@media (max-width: 640px) { .ivw-bar.bot { min-height: 96px; padding: 8px 10px; gap: 8px; } .ivw-who canvas { width: 40px; height: 40px; } .ivw-a { font-size: 15px; } .ivw-q, .ivw-tag { font-size: 12px; } .ivw-bar.top { height: 34px; } }

/* 비밀 공개 · 동맹 체결/해체 (화면 어둡게 + 제목 + 관련 인물) */
.sbig { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; background: rgba(5, 4, 15, 0); transition: background .35s; cursor: pointer; padding: 16px; }
.sbig.in { background: rgba(5, 4, 15, 0.7); }
.sbig-box { max-width: 520px; width: 100%; text-align: center; padding: 18px 20px; border-radius: 16px; background: linear-gradient(160deg, #2a1648, #120e24); border: 2px solid #ff5ea8; box-shadow: 0 0 40px #ff5ea855; transform: scale(.85); opacity: 0; transition: transform .35s cubic-bezier(.2,1.4,.4,1), opacity .3s; }
.sbig.in .sbig-box { transform: none; opacity: 1; }
.sbig-box.pact, .sbig-box.recon { border-color: #ffd166; box-shadow: 0 0 40px #ffd16655; } .sbig-box.broken { border-color: #ff4d6d; }
.sbig-k { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #ff9fcf; } .sbig-box.pact .sbig-k, .sbig-box.recon .sbig-k { color: #ffd166; }
.sbig-box h2 { margin: 8px 0; font-size: 22px; line-height: 1.4; color: #fff; } .sbig-box h3 { margin: 8px 0 0; font-size: 17px; line-height: 1.4; }
.sbig-who { display: flex; justify-content: center; gap: 10px; margin: 8px 0; } .sbig-who canvas { width: 64px; height: 64px; border-radius: 12px; background: #3a1f5c; border: 2px solid #ffffff33; image-rendering: pixelated; }
.sbig-box p { margin: 4px 0; color: #cfc7f0; font-size: 13px; } .sbig-eff { color: #ffd166 !important; font-weight: 700; }
/* 탭 6개: 글자를 자르지 않고 한 줄 · 넘치면 옆으로 밀기 */
.tabs { overflow-x: auto; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; white-space: nowrap; font-size: 13px; padding: 10px 8px; }
@media (max-width: 640px) { .tabs button { font-size: 13px; padding: 10px 10px; } }

/* 인생 사건 전용 무대 */
.modal.lf-host { padding: 0; background: rgba(4,2,12,.9); } .modal.lf-host .mbox { width: 100%; max-width: none; height: 100%; max-height: none; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: hidden; } .modal.lf-host #mBody { height: 100%; }
.lf-stage { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; color: #fff; --lf: #ffd166; animation: lfIn .28s ease-out; } .lf-tense { --lf: #ff4d6d; } .lf-warm { --lf: #ff9ecb; } .lf-shadow { --lf: #8ea2ff; } .lf-stage.lf-stage { } .lf-stage.lf-good { --lf: #06d6a0; } .lf-stage.lf-bad { --lf: #ff4d6d; }
@keyframes lfIn { from { opacity: 0; transform: scale(1.04); } }
.lf-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; filter: brightness(.55) saturate(.85); }
.lf-shadow .lf-bg { filter: brightness(.3) saturate(.5) hue-rotate(200deg); } .lf-tense .lf-bg { filter: brightness(.4) saturate(.9) sepia(.3) hue-rotate(-30deg); } .lf-warm .lf-bg { filter: brightness(.6) saturate(1.1) sepia(.25); }
.lf-light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 48% at 50% 52%, transparent 0, rgba(5,3,15,.25) 55%, rgba(5,3,15,.92) 100%); box-shadow: inset 0 0 140px color-mix(in srgb, var(--lf) 30%, transparent); transition: box-shadow .4s; } .lf-tense .lf-light { animation: lfPulse 1.8s ease-in-out infinite; } @keyframes lfPulse { 50% { box-shadow: inset 0 0 200px color-mix(in srgb, var(--lf) 55%, transparent); } }
.lf-top { position: relative; z-index: 1; padding: 18px 24px 8px; text-align: center; } .lf-top small { color: var(--lf); font-size: 15px; font-weight: 700; letter-spacing: .08em; } .lf-top h2 { margin: 2px 0 10px; font-size: clamp(24px, 4vw, 40px); text-shadow: 0 3px 0 #0008; animation: lfTitle .45s cubic-bezier(.2,1.4,.5,1); } @keyframes lfTitle { from { transform: scale(1.5); opacity: 0; letter-spacing: .1em; } }
.lf-timer { height: 7px; max-width: 520px; margin: 0 auto; background: #ffffff22; border-radius: 4px; overflow: hidden; } .lf-timer i { display: block; height: 100%; width: 100%; background: var(--lf); transition: width 1s linear; }
.lf-cast { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 9vw, 150px); padding-bottom: 12px; }
.lf-who { display: grid; justify-items: center; gap: 2px; transition: transform .25s, filter .25s; filter: brightness(.72); } .lf-who.speaking, .lf-who.l { filter: none; } .lf-who.speaking { transform: scale(1.1); transform-origin: 50% 100%; } .lf-who span { background: #0009; padding: 2px 12px; border-radius: 999px; font-weight: 700; font-size: 16px; } .lf-who.l span { color: #ffd166; }
.lf-em { image-rendering: pixelated; min-height: 30px; } .lf-spr { image-rendering: pixelated; display: block; } .lf-body { animation: lfIdle 1.6s ease-in-out infinite; filter: drop-shadow(0 8px 0 #0006); } @keyframes lfIdle { 50% { transform: translateY(-4px); } }
.lf-who.hop .lf-body { animation: lfHop .45s ease-out 3; } @keyframes lfHop { 40% { transform: translateY(-26px); } } .lf-who.shake .lf-body { animation: lfShake .12s linear 6; } @keyframes lfShake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } } .lf-who.nod .lf-body { animation: lfNod .5s ease-in-out 2; } @keyframes lfNod { 50% { transform: translateY(6px); } }
.lf-low { position: relative; z-index: 2; padding: 0 clamp(12px, 6vw, 90px) 18px; display: grid; gap: 10px; max-height: 58%; overflow-y: auto; }
.lf-talk { background: rgba(10,7,28,.94); border: 3px solid var(--lf); border-radius: 12px; padding: 12px 18px; min-height: 84px; } .lf-talk b { color: var(--lf); font-size: 16px; } .lf-talk p { margin: 3px 0 0; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.5; } .lf-talk.nar p { font-style: italic; color: #e6e2ff; }
.lf-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 8px; }
.lf-c { display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; font-size: clamp(16px, 1.9vw, 20px); font-weight: 700; color: #fff; background: #1c1644; border: 2px solid #ffffff40; border-radius: 10px; padding: 12px 14px; cursor: pointer; animation: lfCh .3s ease-out backwards; transition: transform .12s, background .12s, opacity .3s; } .lf-c em { font-style: normal; flex: none; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--lf); color: #14102e; font-size: 15px; } .lf-c:hover, .lf-c:focus-visible { background: #2f2670; transform: translateY(-2px); outline: none; border-color: var(--lf); } @keyframes lfCh { from { opacity: 0; transform: translateY(12px); } }
.lf-c.chosen { background: var(--lf); color: #14102e; transform: scale(1.03); } .lf-c.gone { opacity: .18; pointer-events: none; }
.lf-wait { text-align: center; padding: 14px; background: #0009; border-radius: 10px; font-size: 18px; }
.lf-auto { margin: 0; text-align: center; font-size: 13px; color: #cfc9ee; } .lf-auto.hot { color: #ff4d6d; font-weight: 700; }
.lf-res { background: rgba(10,7,28,.95); border: 3px solid var(--lf); border-radius: 12px; padding: 14px 18px; display: grid; gap: 10px; animation: lfCh .3s ease-out; } .lf-res p { margin: 0; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.45; font-weight: 700; }
.lf-chips { display: flex; flex-wrap: wrap; gap: 6px; } .lf-chip { padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #ffffff1c; } .lf-chip.up { background: #06d6a033; color: #6cf5cf; } .lf-chip.dn { background: #ff4d6d33; color: #ff9db0; } .lf-chip.note { background: #ffd16633; color: #ffd166; }
.lf-ok { justify-self: end; font: inherit; font-weight: 700; padding: 8px 22px; border-radius: 8px; border: 0; background: var(--lf); color: #14102e; cursor: pointer; }
@media (max-width: 700px) { .lf-top { padding: 10px 12px 4px; } .lf-low { padding: 0 10px 12px; max-height: 64%; } .lf-talk { min-height: 66px; padding: 8px 12px; } .lf-c { padding: 10px 12px; } .lf-who span { font-size: 13px; padding: 1px 8px; } }
@media (prefers-reduced-motion: reduce) { .lf-stage, .lf-stage * { animation: none !important; } }
.lf-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 60vh; overflow-y: auto; } .lf-log li, .lf-pick { background: #ffffff0d; border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 1.5; } .lf-log span, .lf-pick span { color: #ffd166; } .lf-log small, .lf-pick small { display: block; color: var(--mut); }
.lf-pick { margin: 6px 0; } .lf-pick em { display: block; font-style: normal; font-weight: 700; color: #bfb7ff; } .lf-pick.good em { color: #06d6a0; } .lf-pick.bad em { color: #ff4d6d; } .lf-pick.top em { color: #ffd166; }

/* 오른쪽 창 닫기 */
.panel[hidden] { display: none; } .panel-head { display: flex; align-items: stretch; min-width: 0; } .panel-head .tabs { flex: 1; min-width: 0; }
.panel-x { flex: none; width: 38px; background: var(--bg); border: 0; border-bottom: 2px solid var(--line); border-left: 1px solid var(--line); color: var(--mut); font-size: 15px; cursor: pointer; } .panel-x:hover, .panel-x:focus-visible { color: #fff; background: var(--bg2); }
.panel-open { position: absolute; right: 10px; bottom: 150px; z-index: 6; width: 40px; height: 40px; border-radius: 8px; border: 2px solid var(--line); background: var(--bg2); color: #fff; font-size: 17px; cursor: pointer; } .panel-open[hidden] { display: none; }
@media (max-width: 900px) { .body.no-panel .stage { height: calc(100dvh - 96px); min-height: 320px; } }
/* 탭 6개 + 닫기 버튼이 한 줄에 다 들어가게 (좁은 폰만 옆으로 밀기) */
.panel-head .tabs button { flex: 1 1 auto; min-width: 0; padding: 10px 3px; font-size: 12px; letter-spacing: -.02em; }
.panel-x { width: 30px; }
@media (max-width: 359px) { .panel-head .tabs { flex-wrap: wrap; overflow: visible; } .panel-head .tabs button { flex: 1 1 30%; padding: 8px 4px; } }

.rs-share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; } .rs-share-row .rs-share { margin: 0; }

/* ===== 위기 시스템 ===== */
.cr-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 3px 10px; background: #0e0a24; border-bottom: 1px solid var(--line); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .cr-bar[hidden] { display: none; }
.cr-m { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12px; } .cr-m i { font-style: normal; } .cr-m em { display: block; width: 46px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; } .cr-m u { display: block; height: 100%; background: var(--c); transition: width .4s; text-decoration: none; } .cr-m b { min-width: 18px; color: var(--c, #fff); font-size: 12px; } .cr-alert { color: #ff4d6d; font-weight: 700; animation: crBlink 1s steps(2) infinite; } @keyframes crBlink { 50% { opacity: .25; } }
.cr-diff { color: var(--mut); font-size: 11px; font-weight: 400; } .cr-row { display: grid; grid-template-columns: minmax(0, 118px) minmax(0, 1fr) 28px; align-items: center; gap: 8px; margin: 5px 0; font-size: 13px; } .cr-row em { display: block; height: 9px; border-radius: 5px; background: rgba(255,255,255,.12); overflow: hidden; } .cr-row u { display: block; height: 100%; background: var(--c); text-decoration: none; transition: width .4s; } .cr-row b { text-align: right; color: var(--c); } .cr-row.ads { grid-template-columns: 1fr auto; } .cr-row.ads b { color: var(--gold); }
.cr-streak { margin: 6px 0 0; color: #ff9b9b; font-size: 13px; } .cr-sub { margin: 4px 0 8px; color: var(--mut); font-size: 12px; } .cr-w { margin: 0 0 5px; padding: 6px 8px; border-left: 3px solid #ffd166; background: rgba(255,209,102,.08); font-size: 13px; line-height: 1.35; } .cr-w.lv3 { border-color: #ff4d6d; background: rgba(255,77,109,.14); }
.cr-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .cr-act { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; height: auto; min-height: 58px; white-space: normal; } .cr-act small { font-size: 11px; opacity: .85; } .cr-act .d { font-weight: 400; line-height: 1.25; }
.cr-chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; } .cr-chain span { position: relative; display: grid; justify-items: center; gap: 3px; text-align: center; } .cr-chain i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); } .cr-chain span.on i { background: #ff4d6d; border-color: #ff9b9b; box-shadow: 0 0 10px #ff4d6d; } .cr-chain small { font-size: 10px; color: var(--mut); line-height: 1.15; } .cr-chain span.on small { color: #ff9b9b; }
.cr-graph { display: block; width: 100%; height: 72px; }
#modal.cr-urgent .mbox { border-color: #ff4d6d; box-shadow: 0 0 34px rgba(255,77,109,.45); } .cr-break { position: relative; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; padding: 9px 14px; overflow: hidden; background: linear-gradient(90deg, #c8102e, #7c0a22); color: #fff; animation: crSlide .35s cubic-bezier(.2,.8,.2,1); } .cr-break b { font-size: clamp(18px, 3.2vw, 25px); letter-spacing: .03em; } .cr-break span { font-size: 13px; } .cr-break::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-100%); animation: crShine 2.2s 0.3s infinite; } @keyframes crSlide { from { transform: translateX(-40px); opacity: 0; } } @keyframes crShine { to { transform: translateX(100%); } }
.cr-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 4px; font-weight: 400; } .cr-hints i { padding: 0 6px; border-radius: 9px; background: rgba(0,0,0,.28); font-size: 12px; font-style: normal; } .cr-hints i.g { color: #7ef0b2; } .cr-hints i.b { color: #ffb0b0; } .cr-hints i.r { color: var(--gold); }
.cr-endc { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; overflow: hidden; padding: 20px; background: #05040e; color: #fff; text-align: center; } .cr-endc.special { background: radial-gradient(circle at 50% 40%, #3a2a7c, #05040e 72%); } .cr-endc .in { position: relative; display: grid; justify-items: center; gap: 8px; max-width: 620px; animation: crIn .9s .35s both; } @keyframes crIn { from { opacity: 0; transform: translateY(16px); } }
.cr-endc small { letter-spacing: .18em; color: #ff9b9b; font-size: 13px; } .cr-endc.special small { color: var(--gold); } .cr-endc .day { font-size: clamp(44px, 11vw, 82px); font-weight: 700; color: #ff4d6d; line-height: 1; } .cr-endc.special .day { color: var(--gold); } .cr-endc h2 { margin: 0; font-size: clamp(24px, 5vw, 36px); } .cr-endc p { margin: 0; font-size: clamp(15px, 2.6vw, 18px); line-height: 1.5; } .cr-endc em { color: var(--mut); font-size: 13px; font-style: normal; } .cr-endc .pbtn { margin-top: 10px; }
.cr-noise { position: absolute; inset: 0; opacity: .1; background-image: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px); animation: crNoise .25s steps(3) infinite; } @keyframes crNoise { 50% { transform: translateY(2px); } } .cr-bars { position: absolute; inset: 0 0 auto; display: grid; grid-template-columns: repeat(7, 1fr); height: 22%; opacity: .32; } .cr-bars i { background: hsl(calc(var(--i) * 51), 70%, 50%); }
@media (max-width: 700px) { .cr-bar { justify-content: flex-start; gap: 7px; padding: 3px 8px; } .cr-m em { width: 26px; height: 6px; } .cr-acts { grid-template-columns: 1fr; } .cr-row { grid-template-columns: minmax(0, 104px) minmax(0, 1fr) 26px; } }
@media (prefers-reduced-motion: reduce) { .cr-noise, .cr-alert, .cr-break::after { animation: none; } .cr-endc .in, .cr-break { animation: none; } }
/* ===== 스토리 모드: 범인 찾기 · 비상사태 · 청문회 · 약속 ===== */
#modal.op-modal .mbox { width: min(760px, 100%); }
.op-res-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; font-size: 13px; } .op-res-bar span { background: var(--bg3); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; } .op-res-bar .op-cand { border-color: var(--gold); color: var(--gold); }
.op-evs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.op-ev { background: var(--bg3); border: 1px dashed var(--line); border-radius: 8px; padding: 8px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; } .op-ev.on { border-style: solid; border-color: #6b5bd6; }
.op-ev b { font-size: 13px; display: flex; justify-content: space-between; gap: 4px; } .op-ev b small { color: var(--gold); font-weight: 400; letter-spacing: -1px; } .op-ev p { margin: 0; line-height: 1.4; } .op-ev em { color: var(--mut); font-style: normal; } .op-ev .pbtn { align-self: flex-start; }
.op-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.op-sus { background: var(--bg3); border: 2px solid var(--line); border-radius: 8px; padding: 8px; font-size: 13px; } .op-sus.fit { border-color: var(--gold); } .op-sus.culprit { border-color: var(--red); box-shadow: 0 0 14px rgba(255,77,109,.35); } .op-sus.acc { outline: 2px dashed #ff9b9b; outline-offset: 2px; }
.op-sh { display: flex; gap: 8px; align-items: center; } .op-sh b { font-size: 15px; } .op-pr { display: block; color: #8fd3ff; font-size: 11px; }
.op-at { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; } .op-at span { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #ffffff10; border: 1px solid transparent; } .op-at span.g { border-color: #3ddc97; color: #9ff0cf; } .op-at span.b { opacity: .45; text-decoration: line-through; }
.op-al { margin: 6px 0 2px; color: var(--mut); } .op-chk { margin: 2px 0; font-weight: 700; } .op-chk.clash { color: #ff8896; } .op-chk.match { color: #9ff0cf; } .op-chk.unknown { color: var(--mut); }
.op-qa { margin: 4px 0; padding: 4px 6px; background: #ffffff08; border-radius: 4px; font-size: 12px; line-height: 1.4; }
.op-btns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; } .op-btns .pbtn.red { margin-left: auto; }
.op-res { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px; border-radius: 8px; margin: 8px 0; background: var(--bg3); border: 2px solid var(--line); } .op-res.good { border-color: #3ddc97; } .op-res.bad { border-color: var(--red); }
.op-res > b { font-size: 34px; line-height: 1; } .op-res p { margin: 0; font-size: 15px; } .op-res .op-mot { color: var(--mut); font-size: 13px; }
.op-probs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 6px 0; }
.op-pb { background: var(--bg3); border: 2px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; } .op-pb.ok { border-color: #3ddc97; } .op-pb.no { border-color: var(--red); } .op-pb small { color: var(--mut); }
.op-pb em { height: 6px; background: #0e0a24; border-radius: 3px; overflow: hidden; } .op-pb em u { display: block; height: 100%; background: linear-gradient(90deg, #5a3fd6, #3ddc97); transition: width .25s; }
.op-hps { display: grid; gap: 4px; max-height: 300px; overflow-y: auto; margin: 6px 0; }
.op-hp { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 6px; align-items: center; background: var(--bg3); border-radius: 6px; padding: 4px 6px; font-size: 13px; } .op-hp b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .op-hp small.b { color: #ff9b9b; font-weight: 400; }
.op-ch { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; } .op-ch button { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg2); font-size: 16px; cursor: pointer; } .op-ch button.fit { border-color: #6b8f5a; } .op-ch button.on { background: #5a3fd6; border-color: var(--gold); }
.op-gb { width: 100%; text-align: left; } .op-gb .cr-hints { justify-content: flex-start; }
.op-delta { justify-content: center; margin: 6px 0; }
.op-votes { display: flex; flex-wrap: wrap; gap: 4px; } .op-vote { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--bg3); border: 1px solid var(--line); } .op-vote b { font-size: 11px; } .op-vote.yes b { color: #ff8896; } .op-vote.no b { color: #9ff0cf; }
.op-pact { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .op-pact small { color: var(--mut); margin-left: 6px; }
.op-form { display: grid; gap: 6px; margin-top: 8px; } .op-form select { width: 100%; background: var(--bg2); color: var(--tx); border: 1px solid var(--line); border-radius: 6px; padding: 6px; font-size: 14px; }
.op-types { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 520px) { .op-grid { grid-template-columns: 1fr; } .op-evs { grid-template-columns: 1fr 1fr; } .op-hp { grid-template-columns: 26px minmax(0, 1fr); } .op-ch { grid-column: 1 / -1; justify-content: flex-start; } }
.op-vp { display: block; color: #ff9bd6; font-size: 11px; font-weight: 700; }
/* 처음 안내 · 지금 할 일 · 결정적 순간 연출 */
.op-guide { background: #1f2a4a; border: 2px solid #5aa9ff; border-radius: 8px; padding: 10px 12px; margin: 6px 0 8px; font-size: 13px; } .op-guide b { color: #9fd0ff; } .op-guide ol { margin: 6px 0 8px; padding-left: 20px; line-height: 1.5; } .op-guide li { margin: 2px 0; }
.op-coach { margin: 4px 0 8px; padding: 6px 10px; border-radius: 6px; background: #3a2f12; border: 1px solid var(--gold); color: #ffe7a8; font-size: 13px; }
[data-pulse], .op-pulse { animation: opPulse 1.2s ease-in-out infinite; } @keyframes opPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,209,102,.0); } 50% { box-shadow: 0 0 0 4px rgba(255,209,102,.75); } }
.op-stage { position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 170px; margin: 6px 0 10px; padding: 14px; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #43378c 0, #1a1538 55%, #0c0920 100%); }
.op-stage::before { content: ""; position: absolute; inset: -40% 30%; background: linear-gradient(180deg, rgba(255,240,180,.18), transparent 70%); transform: skewX(-8deg); pointer-events: none; }
.op-drum { font-size: 22px; color: var(--gold); letter-spacing: .12em; } .op-who { display: grid; justify-items: center; gap: 4px; } .op-who b { font-size: 20px; } .op-who canvas { filter: drop-shadow(0 0 10px rgba(255,255,255,.35)); } .op-big { font-size: 56px; line-height: 1; }
.op-stamp { position: absolute; right: 16px; top: 16px; padding: 4px 14px; border: 4px solid currentColor; border-radius: 8px; font-size: 26px; font-weight: 900; letter-spacing: .06em; transform: rotate(-12deg); background: rgba(0,0,0,.25); }
.op-stage.good .op-stamp, .op-res.good .op-stamp { color: #3ddc97; } .op-stage.bad .op-stamp, .op-res.bad .op-stamp { color: #ff4d6d; }
.op-res { position: relative; } .op-stamp.in { position: static; transform: rotate(-6deg); font-size: 22px; margin-bottom: 4px; }
.op-tally { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 6px 0 8px; font-size: 14px; } .op-tally .y b { color: #ff8896; font-size: 20px; } .op-tally .n b { color: #9ff0cf; font-size: 20px; }
.op-tally em { height: 10px; border-radius: 5px; background: #2a8c6a; overflow: hidden; } .op-tally em u { display: block; height: 100%; background: #e0405e; transition: width .2s; }
.op-anim [data-seq] { opacity: 0; } .op-anim [data-seq]:not(.show) { pointer-events: none; }
.op-anim [data-seq].show { animation: opIn .35s ease-out forwards; } .op-anim .op-stamp[data-seq].show { animation: opStamp .38s cubic-bezier(.2, 1.6, .4, 1) forwards; } .op-anim .op-vote.show { animation: opPop .25s ease-out forwards; } .op-anim .op-pb.show { animation: opFlip .45s ease-out forwards; }
@keyframes opIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes opStamp { from { opacity: 0; transform: rotate(-12deg) scale(2.6); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes opPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes opFlip { from { opacity: 0; transform: perspective(500px) rotateY(80deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { [data-pulse], .op-pulse { animation: none; outline: 2px solid var(--gold); } }
/* 바로 편성 버튼 */
.ibtn.plan { position: relative; background: linear-gradient(#7b5cff, #5a3fd6); border-color: #9b84ff; color: #fff; font-weight: 700; } .ibtn.plan span { color: #fff; }
.ibtn.plan.dot::after { content: ""; position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); animation: opPulse 1.2s ease-in-out infinite; }

/* 11-11 내 행동 카드: 컨디션 · 오늘의 패 · 느낌 */
.ma-cond { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 8px 12px; margin: 0 0 8px; border-radius: 12px; background: #ffffff0d; border: 1px solid #ffffff22; }
.ma-cond .ic { grid-row: span 2; font-size: 30px; }
.ma-cond small { color: var(--mut); font-size: 11px; }
.ma-cond.c0 { border-color: #ff4d6d88; background: #ff4d6d14; } .ma-cond.c1 { border-color: #ff9b9b55; }
.ma-cond.c3 { border-color: #06d6a066; } .ma-cond.c4 { border-color: #ffd166aa; background: #ffd16618; box-shadow: 0 0 18px #ffd16633; }
.ma-card.used { opacity: .4; cursor: default; filter: grayscale(.7); }
.ma-feel { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 10px; margin-top: 2px; }
.ma-feel.good { background: #06d6a022; color: var(--grn); } .ma-feel.ok { background: #ffffff14; color: var(--mut); } .ma-feel.bad { background: #ff4d6d22; color: var(--red); }

/* 11-11 자동 편성 · 운영 방침 */
.card.autopd, .card.policy { border-color: #7b5cff66; background: linear-gradient(160deg, #241d4a, #1a1636); }
.pol-lock { font-size: 11px; color: var(--grn); font-weight: 400; } .pol-lock.on { color: var(--mut); }
.pol-trend { font-size: 12px; color: var(--mut); margin: 2px 0 8px; } .pol-trend b { color: var(--gold); }
.pol-row { margin: 8px 0 0; } .pol-t { font-size: 12px; color: var(--blu); }
.pol-opts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pol-o { display: inline-flex; gap: 4px; align-items: center; padding: 5px 9px; border-radius: 16px; border: 1px solid var(--line); background: #ffffff08; font-size: 12px; transition: transform .12s, background .2s, border-color .2s; }
.pol-o:hover:not(:disabled) { transform: translateY(-1px); border-color: #a99fd0; }
.pol-o.on { background: linear-gradient(#7b5cff, #5a3fd6); border-color: #b9a6ff; box-shadow: 0 0 12px #7b5cff66; }
.pol-o:disabled { opacity: .35; cursor: not-allowed; }
.pol-d { margin: 4px 0 0; font-size: 11px; color: var(--mut); line-height: 1.4; }
.sp-tag { color: var(--gold); }
#modal.ev-big .mbox { border-color: var(--gold); box-shadow: 0 0 0 2px #ffd16633, 0 0 40px #ffd16633; }
#modal.ev-big .auto { color: var(--gold); }

/* 11-11 라이브 방송 화면 */
.sh-stage { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; }
.sh-stage #cvShow { flex: 1; min-height: 0; }
.sh-genre { font-size: 12px; color: var(--pink); background: #ff9bd21a; border: 1px solid #ff9bd255; border-radius: 12px; padding: 2px 9px; }
.sh-view { font-size: 15px; font-weight: 700; color: #fff; background: #ff4d6d33; border-radius: 12px; padding: 2px 10px; font-variant-numeric: tabular-nums; }
.sh-alerts { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: min(92%, 460px); z-index: 2; }
.sa { width: 100%; text-align: center; padding: 8px 14px; border-radius: 14px; background: linear-gradient(135deg, #2b2160ee, #1a1440ee); border: 2px solid #7b5cff; box-shadow: 0 8px 24px #0008; animation: saIn .35s cubic-bezier(.2,1.4,.4,1), saOut .4s ease-in forwards 2.4s; }
.sa b { display: block; font-size: 16px; } .sa small { display: block; color: #e6defa; font-size: 12px; margin-top: 2px; }
.sa-don { border-color: var(--gold); } .sa-sub { border-color: var(--grn); } .sa-club { border-color: var(--pink); }
.sa-bigdon { border-color: var(--gold); background: linear-gradient(135deg, #5a3a00ee, #2a1a00ee); box-shadow: 0 0 30px #ffd16688; animation: saIn .45s cubic-bezier(.2,1.5,.4,1), saShine 1s ease-in-out 2, saOut .5s ease-in forwards 3.7s; }
.sa-bigdon b { font-size: 20px; color: var(--gold); }
@keyframes saIn { from { transform: translateY(-16px) scale(.85); opacity: 0; } }
@keyframes saOut { to { transform: translateY(-10px); opacity: 0; } }
@keyframes saShine { 50% { box-shadow: 0 0 46px #ffd166cc; } }
.sh-bar { display: flex; align-items: center; gap: 12px; padding: 6px 12px; background: linear-gradient(#17112f, #0f0b22); border-top: 1px solid var(--line); flex-wrap: wrap; }
.sb-mood { display: flex; align-items: center; gap: 6px; } .sb-mood span { font-size: 18px; }
.sb-meter { width: 110px; height: 8px; background: #ffffff14; border-radius: 6px; overflow: hidden; }
.sb-meter i { display: block; height: 100%; border-radius: 6px; transition: width .4s; background: var(--blu); }
.sb-meter i.m0 { background: #7a7aa0; } .sb-meter i.m2 { background: var(--gold); } .sb-meter i.m3 { background: linear-gradient(90deg, var(--gold), var(--red)); }
.sb-graph { width: 160px; height: 34px; }
.sb-st { font-size: 13px; color: var(--mut); white-space: nowrap; } .sb-st.gold { color: var(--gold); }
.sh-chat-h { font-size: 13px; color: var(--mut); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.sh-feed.chat { gap: 2px; }
.sh-feed.chat li { background: none; padding: 2px 4px; font-size: 13px; line-height: 1.45; border-radius: 4px; animation: tkIn .25s ease-out; word-break: break-word; }
.sh-feed.chat li b { font-weight: 700; margin-right: 2px; }
.sh-feed.chat li.sys { background: #1f1840; padding: 4px 8px; color: #e6defa; } .sh-feed.chat li.sys.i2 { background: #3b2f12; } .sh-feed.chat li.sys.i3 { background: #4a0f22; font-weight: 700; }
.sh-feed.chat li.c-don { background: #ffd16618; color: var(--gold); } .sh-feed.chat li.c-sub { background: #06d6a014; color: var(--grn); }
.live-kv b { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .sh-stage { flex: none; } .sh-stage #cvShow { flex: none; }
  .sh-bar { gap: 8px; padding: 4px 8px; } .sb-graph { width: 110px; } .sb-meter { width: 70px; }
  .sa b { font-size: 14px; } .sa-bigdon b { font-size: 16px; }
  .sh-side { flex-direction: column; } .sh-board { width: auto; max-height: 30%; display: flex; flex-wrap: wrap; } .sh-board li { flex: 1 1 45%; } .sh-feed { width: auto; }
}

/* 11-11 방송국 SNS */
.sns-prof { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; background: linear-gradient(160deg, #2a1f55, #1a1636); border-color: #7b5cff66; }
.sp-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: linear-gradient(#7b5cff, #ff9bd2); grid-row: span 2; }
.sp-id b { display: block; font-size: 15px; } .sp-id small { color: var(--mut); font-size: 11px; }
.sp-st { grid-column: 1 / -1; display: flex; justify-content: space-around; margin-top: 6px; text-align: center; }
.sp-st span { display: flex; flex-direction: column; font-size: 11px; color: var(--mut); } .sp-st b { font-size: 15px; color: var(--tx); }
.sp-mood { grid-column: 1 / -1; height: 5px; background: #ffffff14; border-radius: 4px; overflow: hidden; } .sp-mood i { display: block; height: 100%; background: linear-gradient(90deg, #5ee6ff, #ff9bd2); }
.sp-src { grid-column: 1 / -1; color: var(--mut); font-size: 11px; }
.sns-f { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; }
.sns-post { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; animation: tkIn .3s ease-out; }
.sns-post.t-issue { border-color: #ff4d6d66; } .sns-post.t-hot { border-color: #ffd16677; } .sns-post.a-official { background: linear-gradient(160deg, #221b47, #1c1838); }
.sn-h { display: flex; align-items: center; gap: 6px; } .sn-h b { font-size: 13px; } .sn-h small { color: var(--mut); font-size: 11px; margin-left: auto; }
.sn-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #ffffff12; font-size: 14px; }
.sn-tag { font-style: normal; font-size: 12px; }
.sn-t { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
.sn-q { margin: 6px 0 0; padding: 8px 10px; border-left: 3px solid var(--blu); background: #5ee6ff10; border-radius: 0 8px 8px 0; font-size: 12px; color: #e6defa; }
.sn-img { margin-top: 6px; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: linear-gradient(135deg, #ff9bd222, #7b5cff22); font-size: 12px; } .sn-img canvas { border-radius: 8px; background: #ffffff10; }
.sn-f { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--mut); }
.sn-cm { margin: 6px 0 0; padding: 6px 0 0; list-style: none; border-top: 1px dashed #ffffff18; font-size: 12px; color: #cfc6ee; } .sn-cm li { padding: 1px 0; } .sn-cm li::before { content: "↳ "; color: var(--mut); }

/* 11-11 스튜디오 단계 */
.studio-card { border-color: #ffd16655; } .st-stage { color: var(--gold); line-height: 1.4; }
.st-up { text-align: center; padding: 6px 0; }
.st-burst { font-size: 64px; line-height: 1.1; animation: stPop .6s cubic-bezier(.2,1.6,.4,1); filter: drop-shadow(0 0 18px #ffd166aa); }
.st-name { font-size: 22px; color: var(--gold); margin: 4px 0; }
.st-steps { display: flex; justify-content: center; gap: 8px; margin: 10px 0; } .st-steps span { font-size: 22px; opacity: .25; filter: grayscale(1); transition: .3s; } .st-steps span.on { opacity: 1; filter: none; }
@keyframes stPop { from { transform: scale(.2) rotate(-20deg); opacity: 0; } }

/* 11-11 표정 */
.ex-tag { align-self: center; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #ffffff12; color: var(--tx); }

/* 11-11 개국 오프닝 */
.opn { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: radial-gradient(ellipse at center, #2a1f55 0%, #0a0816 70%); cursor: pointer; overflow: hidden; transition: opacity .5s; }
.opn.out { opacity: 0; }
.opn-cur { position: absolute; top: 0; bottom: 0; width: 50%; background: repeating-linear-gradient(90deg, #7a0f2a 0 22px, #5c0a1f 22px 44px); box-shadow: inset 0 0 60px #0008; animation: opnCur 1.1s cubic-bezier(.6,0,.3,1) .3s forwards; z-index: 2; }
.opn-cur.l { left: 0; } .opn-cur.r { right: 0; animation-name: opnCurR; }
@keyframes opnCur { to { transform: translateX(-100%); } } @keyframes opnCurR { to { transform: translateX(100%); } }
.opn-body { position: relative; z-index: 1; text-align: center; padding: 16px; max-width: 760px; }
.opn-k { color: var(--blu); letter-spacing: .25em; font-size: 13px; margin: 0; opacity: 0; animation: opnUp .5s ease-out .9s forwards; }
.opn-t { margin: 6px 0; font-size: clamp(34px, 8vw, 72px); line-height: 1.05; background: linear-gradient(#fff, #ffd166); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #2e1f80) drop-shadow(0 0 24px #7b5cff99); opacity: 0; animation: opnZoom .7s cubic-bezier(.2,1.4,.4,1) 1s forwards; }
.opn-s { color: #e6defa; margin: 0 0 14px; opacity: 0; animation: opnUp .5s ease-out 1.2s forwards; }
.opn-cast { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.opn-c { display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: 0; animation: opnPop .45s cubic-bezier(.2,1.6,.4,1) forwards; } .opn-c small { font-size: 11px; color: var(--mut); } .opn-c canvas { background: #ffffff10; border-radius: 10px; }
.opn-g { margin: 16px 0 4px; color: var(--gold); opacity: 0; animation: opnUp .5s ease-out 2.6s forwards; }
.opn-tap { font-size: 12px; color: var(--mut); opacity: 0; animation: opnUp .5s ease-out 3s forwards, blink 1.4s 3.5s infinite; }
@keyframes opnUp { from { transform: translateY(12px); opacity: 0; } to { opacity: 1; transform: none; } }
@keyframes opnZoom { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes opnPop { from { transform: translateY(20px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* 11-11 정산 연출 */
.nt-top { text-align: center; padding: 10px; border-radius: 12px; margin-bottom: 8px; background: #ffffff08; display: flex; flex-direction: column; gap: 2px; }
.nt-top.up { background: linear-gradient(160deg, #06d6a01f, #ffd16614); } .nt-top.down { background: #ff4d6d14; }
.nt-top small { color: var(--mut); font-size: 12px; } .nt-num { font-size: 32px; font-variant-numeric: tabular-nums; } .nt-top.up .nt-num { color: var(--grn); } .nt-top.down .nt-num { color: var(--red); }
.nt-shows { display: grid; gap: 4px; margin-bottom: 8px; }
.nt-show { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--bg3); font-size: 13px; } .nt-show span { color: var(--blu); font-weight: 700; } .nt-show small { grid-column: 1 / -1; color: var(--mut); font-size: 11px; }
.nt-graph { width: 100%; height: 70px; margin-bottom: 6px; }
#modal .mbox { position: relative; } .cf { position: absolute; top: -8px; width: 7px; height: 11px; border-radius: 2px; pointer-events: none; animation: cfFall 2.2s ease-in forwards; }
@keyframes cfFall { to { transform: translateY(420px) rotate(540deg); opacity: 0; } }

/* 11-11 공통 꾸밈: 눌림·떠오름·창 등장·탭 강조 (하나의 톤으로) */
.pbtn { transition: transform .12s, filter .15s, box-shadow .15s; } .pbtn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.card { transition: border-color .2s, background .2s; } .ccard:hover { border-color: #a99fd0; background: #2f2860; }
.mbox { animation: mIn .28s cubic-bezier(.2,1.3,.4,1); background: linear-gradient(170deg, #221c48, #1a1636 60%); }
@keyframes mIn { from { transform: translateY(14px) scale(.96); opacity: 0; } }
.tabs button { transition: color .2s, background .2s; } .tabs button.on { background: linear-gradient(#2a2356, #1c1838); box-shadow: inset 0 -2px 0 var(--gold), 0 6px 14px -8px #ffd16688; }
.toast { background: linear-gradient(135deg, #2f2862, #221c48); border-radius: 10px; box-shadow: 0 6px 20px #0008; animation: toastIn .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes toastIn { from { transform: translateY(-12px) scale(.9); opacity: 0; } }
.chip { box-shadow: inset 0 1px 0 #ffffff14; }
@media (prefers-reduced-motion: reduce) { .opn-cur, .opn *, .mbox, .toast, .sa, .cf { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* 11-11 시즌 결과: 성장 기록 */
.rs-vs { max-width: 520px; margin: 0 auto 10px; display: grid; gap: 4px; }
.rs-vs-h, .rs-vs-r { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; align-items: center; text-align: right; } .rs-vs-h span, .rs-vs-r span { text-align: left; }
.rs-vs-h b { color: var(--mut); font-size: 12px; } .rs-vs-r { padding: 6px 10px; border-radius: 8px; background: #ffffff0a; font-size: 14px; } .rs-vs-r em { font-style: normal; color: var(--mut); } .rs-vs-r strong { color: var(--gold); }
.rs-graph { display: block; width: min(640px, 100%); height: auto; margin: 6px auto; background: #ffffff06; border-radius: 10px; }

/* 11-11 설정 · 저사양 모드 */
.opt-r { display: grid; grid-template-columns: 1fr 140px 36px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #ffffff12; font-size: 14px; }
.opt-r small { color: var(--mut); font-size: 11px; } .opt-r input[type=range] { width: 100%; accent-color: #7b5cff; } .opt-r input[type=checkbox] { width: 22px; height: 22px; accent-color: #06d6a0; justify-self: end; grid-column: 2 / 4; }
.opt-r b { text-align: right; color: var(--gold); font-variant-numeric: tabular-nums; }
html.lowfx .cf, html.lowfx .opn-cur { display: none; }
html.lowfx .sa, html.lowfx .mbox, html.lowfx .toast, html.lowfx .sns-post, html.lowfx .sh-feed.chat li, html.lowfx .ticker .tk { animation: none !important; }
html.lowfx .sa { animation: saOut .3s ease-in forwards 2.4s !important; }
html.lowfx .pbtn:hover { transform: none; }
/* 11-11 탭 9개: 줄이지 말고 옆으로 넘기기 (활성 탭은 자동으로 가운데로) */
.panel-head .tabs { overflow-x: auto; flex-wrap: nowrap !important; scroll-behavior: smooth; }
.panel-head .tabs button { flex: 1 0 auto !important; min-width: max-content; padding: 10px 7px; }

/* 11-11 방송 상황 배지 */
.sh-genre { display: inline-flex; gap: 4px; flex-wrap: wrap; background: none; border: 0; padding: 0; }
.sh-genre span { font-size: 12px; color: var(--pink); background: #ff9bd21a; border: 1px solid #ff9bd255; border-radius: 12px; padding: 2px 9px; }
.sh-genre .hb.sp { color: var(--gold); border-color: #ffd16688; background: #ffd1661a; animation: blink 1.6s infinite; } .sh-genre .hb.tr { color: var(--grn); border-color: #06d6a066; background: #06d6a01a; }
.sh-genre .hb.st { color: var(--blu); border-color: #5ee6ff66; background: #5ee6ff1a; } .sh-genre .hb.is { color: var(--red); border-color: #ff4d6d66; background: #ff4d6d1a; }

/* 11-11 방송계 */
.w-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.w-rank li { display: grid; grid-template-columns: 26px 30px 1fr auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg3); font-size: 14px; animation: tkIn .3s ease-out; }
.w-rank li.me { background: linear-gradient(90deg, #7b5cff44, #2a2356); border: 1px solid #b9a6ff; }
.w-rank li:nth-child(1) em { color: var(--gold); } .w-rank em { font-style: normal; color: var(--mut); text-align: center; font-weight: 700; }
.w-rank small { color: var(--mut); font-size: 11px; } .w-rank strong { color: var(--blu); font-variant-numeric: tabular-nums; }
.w-logo { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--c, #7b5cff) 30%, transparent); border: 1px solid var(--c, #7b5cff); font-size: 16px; }
.w-st { border-left: 3px solid var(--c); } .w-h { display: flex; align-items: center; gap: 8px; } .w-h small { color: var(--mut); font-size: 11px; margin-left: auto; }
.w-bar { height: 6px; background: #ffffff12; border-radius: 4px; margin: 8px 0 4px; overflow: hidden; } .w-bar i { display: block; height: 100%; background: var(--c); }
.w-kv { display: flex; gap: 14px; font-size: 12px; } .w-act { color: var(--mut); font-size: 11px; display: block; margin-top: 4px; }
.w-offer { border-color: var(--gold); background: linear-gradient(160deg, #3b2f12, #1c1838); } .w-offer p { margin: 4px 0 8px; font-size: 13px; color: #e6defa; }
.w-news { padding: 7px 10px; border-radius: 8px; background: var(--bg3); margin-bottom: 4px; font-size: 13px; } .w-news small { color: var(--mut); margin-right: 4px; } .w-news.i2 { border-left: 3px solid var(--gold); }
@media (max-width: 760px) { .w-rank li { grid-template-columns: 22px 28px 1fr auto; } .w-rank small { display: none; } }

/* 11-11 방송 하이라이트 카드 */
.hl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 4px 0 10px; }
.hl-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(160deg, #2c2462, #1b1640); border: 1px solid #7b5cff88; box-shadow: 0 6px 18px #0006; opacity: 0; animation: hlIn .5s cubic-bezier(.2,1.4,.4,1) forwards; overflow: hidden; }
.hl-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, #ffffff22 50%, transparent 70%); transform: translateX(-100%); animation: hlShine 1.6s ease-in-out .6s; pointer-events: none; }
.hl-card b { font-size: 14px; line-height: 1.35; } .hl-card small { color: #d8cff5; font-size: 11px; line-height: 1.4; }
.hl-ic { font-size: 26px; line-height: 1; filter: drop-shadow(0 0 8px #ffffff44); }
.hl-who { display: flex; gap: 4px; margin-top: 2px; } .hl-who canvas { border-radius: 8px; background: #ffffff12; }
.hl-card.k-record, .hl-card.k-first, .hl-card.k-firstdon { border-color: var(--gold); background: linear-gradient(160deg, #4a3810, #231a40); }
.hl-card.k-peak { border-color: var(--blu); } .hl-card.k-bigdon { border-color: #b9f; background: linear-gradient(160deg, #3a1f5c, #1b1640); }
.hl-card.k-comeback { border-color: #ff9b54; } .hl-card.k-flop { border-color: #6a7aa0; background: linear-gradient(160deg, #1c2236, #15142c); }
.hl-d { color: var(--mut) !important; }
.rs-reel { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; max-width: 860px; margin: 0 auto; }
@keyframes hlIn { from { transform: translateY(14px) scale(.9) rotate(-1.5deg); opacity: 0; } to { opacity: 1; transform: none; } }
@keyframes hlShine { to { transform: translateX(100%); } }
html.lowfx .hl-card { animation: none; opacity: 1; } html.lowfx .hl-card::after { display: none; }

/* 11-11 모바일 방송 화면: 탭(채팅/순위) · 크게 보기 · 겹침 채팅 */
.sh-mtabs, .sh-full-btn, .sh-ov { display: none; }
@media (max-width: 760px) {
  .show-layer { height: 100dvh; }
  .sh-top { display: grid; grid-template-columns: auto 1fr auto auto; gap: 4px 8px; padding: 6px 8px; align-items: center; }
  .sh-top .onair { font-size: 11px; padding: 2px 6px; }
  #shTitle { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .sh-phase { grid-column: 1 / -1; font-size: 12px; order: 5; }
  .sh-genre { grid-column: 1 / -1; order: 6; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .sh-genre::-webkit-scrollbar { display: none; }
  .sh-genre span { font-size: 11px; padding: 1px 7px; white-space: nowrap; }
  .sh-view { grid-column: 1 / 3; order: 7; font-size: 13px; justify-self: start; }
  .sh-timer { order: 8; font-size: 16px; margin: 0; grid-column: 3 / 5; justify-self: end; }
  #shSpeed, #shSkip { min-height: 38px; padding: 6px 10px; font-size: 13px; }
  .sh-body { flex: 1; min-height: 0; }
  .sh-stage { flex: none; height: min(46vh, 74vw); } .sh-stage #cvShow { flex: 1; height: auto; min-height: 0; }
  .sh-bar { gap: 8px; padding: 4px 8px; flex-wrap: nowrap; overflow-x: auto; } .sb-graph { width: 90px; height: 28px; flex: none; } .sb-meter { width: 60px; } .sb-st { font-size: 12px; }
  .sh-side { flex: 1; min-height: 0; flex-direction: column !important; padding: 0 8px 8px; gap: 6px; }
  .sh-mtabs { display: flex; gap: 0; position: sticky; top: 0; z-index: 1; background: #140f2a; }
  .sh-mtabs button { flex: 1; min-height: 42px; border: 0; background: none; color: var(--mut); border-bottom: 2px solid var(--line); font-size: 14px; }
  .sh-mtabs button.on { color: var(--gold); border-bottom-color: var(--gold); background: linear-gradient(#2a2356, #1c1838); }
  .sh-chat-h { display: none; }
  .sh-board { display: none !important; width: auto !important; max-height: none !important; overflow-y: auto; }
  .sh-feed { flex: 1; min-height: 0; width: auto !important; }
  .show-layer.mt-board .sh-board { display: grid !important; grid-template-columns: 1fr; align-content: start; }
  .show-layer.mt-board .sh-feed { display: none; }
  .sh-full-btn { display: grid; place-items: center; position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid #ffffff33; background: #0d0a20cc; color: #fff; font-size: 18px; z-index: 3; }
  .sh-ov { display: flex; position: absolute; left: 8px; bottom: 8px; right: 56px; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; pointer-events: none; z-index: 2; }
  .sh-ov li { align-self: flex-start; max-width: 100%; font-size: 12px; line-height: 1.35; padding: 2px 8px; border-radius: 10px; background: #0d0a20b8; color: #fff; animation: tkIn .25s ease-out; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sh-ov li.sys { background: #3b2f12d0; }
  .show-layer.sh-full .sh-stage { flex: 1; height: auto; }
  .show-layer.sh-full .sh-side { display: none; }
  .sh-alerts { top: 6px; width: min(94%, 360px); } .sa { padding: 6px 10px; border-radius: 12px; } .sa b { font-size: 13px; } .sa small { font-size: 11px; } .sa-bigdon b { font-size: 15px; }
}

@media (max-width: 760px) {
  .sh-full-btn { bottom: 52px; } .sh-ov { bottom: 52px; }
  .sh-bar { flex-wrap: wrap; row-gap: 2px; } .sb-st { flex: none; }
}
@media (max-width: 420px) { .sb-graph { display: none; } }

/* 11-11 출연자 SNS */
.sn-por { background: none; overflow: hidden; } .sn-por canvas, .sn-mini canvas { border-radius: 50%; background: #ffffff14; display: block; }
.sn-handle { color: var(--mut); font-size: 10px; margin-left: 2px !important; } .sns-post.a-cast { border-color: #b9a6ff55; }
.sn-rp { margin: 6px 0 0; padding: 6px 0 0; list-style: none; border-top: 1px dashed #ffffff18; display: grid; gap: 4px; font-size: 12px; }
.sn-rp li { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; } .sn-mini { display: inline-block; width: 20px; height: 20px; }
.sn-rel { font-style: normal; font-size: 10px; padding: 0 6px; border-radius: 8px; background: #ffffff14; color: var(--mut); }
.sn-rel.r-lover { color: #ff8fb1; background: #ff8fb11f; } .sn-rel.r-best { color: var(--grn); background: #06d6a01a; } .sn-rel.r-rival { color: #ff9b54; background: #ff9b541a; } .sn-rel.r-enemy { color: var(--red); background: #ff4d6d1a; } .sn-rel.r-crush { color: #ffb6d2; }

/* ---------- PD 직접 연출 (방송 중 연출 신호) ---------- */
.sh-pd { font-size: 12px; font-weight: 800; color: #ffd166; background: #ffd16622; border: 1px solid #ffd16655; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.sh-pd[hidden] { display: none !important; }
.sh-cue { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 6; pointer-events: none; animation: cueIn .18s ease-out; }
.sh-cue[hidden] { display: none !important; }
.cue-btn { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 22px 12px 14px; border-radius: 999px; border: 2px solid #fff; color: #fff; font-weight: 800; font-size: 18px; line-height: 1; font-family: inherit; cursor: pointer; background: linear-gradient(135deg, #ff4d6d, #ff9b54); box-shadow: 0 6px 22px #ff4d6d88, 0 0 0 4px #ffffff22; animation: cuePulse .5s ease-in-out infinite alternate; touch-action: manipulation; }
.cue-btn:active { transform: scale(.95); }
.cue-ring { width: 34px; height: 34px; border-radius: 50%; flex: none; background: conic-gradient(#fff calc(var(--p, 1) * 360deg), #ffffff33 0); -webkit-mask: radial-gradient(circle, transparent 11px, #000 12px); mask: radial-gradient(circle, transparent 11px, #000 12px); position: absolute; left: 12px; }
.cue-ic { width: 34px; height: 34px; display: grid; place-items: center; font-size: 17px; flex: none; }
.sh-cue.pz .cue-btn { background: linear-gradient(135deg, #ffd166, #ff9b54); color: #2a1600; border-color: #fff6cc; box-shadow: 0 6px 26px #ffd166aa, 0 0 0 5px #ffd16644; }
.sh-cue.pz .cue-ring { background: conic-gradient(#2a1600 calc(var(--p, 1) * 360deg), #2a160033 0); }
.sh-cue.k-ad .cue-btn { background: linear-gradient(135deg, #5b6cff, #5ee6ff); }
.cue-k { font-size: 11px; color: #fffc; text-shadow: 0 1px 3px #000; }
.sh-cuefx { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); pointer-events: none; z-index: 7; }
.sh-cuefx b { display: block; font-size: 30px; font-weight: 900; color: #fff; text-shadow: 0 3px 0 #ff4d6d, 0 0 18px #ff4d6daa; animation: cueFx 1.1s ease-out forwards; white-space: nowrap; }
.sh-cuefx b.perfect { color: #ffd166; text-shadow: 0 3px 0 #b85d00, 0 0 22px #ffd166; font-size: 36px; }
.sh-cuefx b.ad { color: #5ee6ff; text-shadow: 0 3px 0 #1a3a8a; font-size: 24px; }
.live-kv b.dim { color: #fff8; font-weight: 600; font-size: 12px; }
@keyframes cuePulse { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes cueIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes cueFx { 0% { opacity: 0; transform: scale(.6); } 15% { opacity: 1; transform: scale(1.12); } 30% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
html.lowfx .cue-btn { animation: none; } html.lowfx .sh-cuefx b { animation-duration: .8s; }
@media (max-width: 760px) { .sh-cue { bottom: 52px; } .cue-btn { font-size: 15px; padding: 10px 18px 10px 12px; } .cue-ring, .cue-ic { width: 30px; height: 30px; } .sh-cuefx b { font-size: 24px; } .sh-cuefx b.perfect { font-size: 28px; } .cue-k { display: none; } }
/* 대표(나): 방에서 할 일 버튼 */
.av-act{position:absolute;left:50%;bottom:58px;transform:translateX(-50%);z-index:6;padding:9px 16px;border-radius:999px;border:2px solid #ffd166;background:rgba(40,22,0,.9);color:#fff;font:700 14px/1.2 inherit;box-shadow:0 4px 14px rgba(0,0,0,.4);cursor:pointer;white-space:nowrap;max-width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis}
.av-act b{color:#ffd166}.av-act kbd{margin-left:6px;padding:0 5px;border-radius:4px;background:#ffd166;color:#3a2600;font:800 11px/16px system-ui}
.av-act[hidden]{display:none}
@media(hover:none),(pointer:coarse){.av-act kbd{display:none}}
.av-act.hot{border-color:#3fd68f;box-shadow:0 0 0 3px rgba(63,214,143,.35),0 4px 14px rgba(0,0,0,.4);animation:avHot 1.2s ease-in-out infinite}@keyframes avHot{50%{transform:translateX(-50%) scale(1.05)}}
.wr-top{display:flex;gap:12px;align-items:center;margin-bottom:10px}.wr-por canvas{border-radius:10px}.wr-q{margin:4px 0 0;font-size:15px;color:#ffe9b0}.wr-ans{display:flex;flex-direction:column;gap:8px}.wr-ans small{opacity:.8}

/* ===== 💝 후원 방송 모드 (2026-11-14) ===== */
.don-btn { border-color: rgba(255,120,170,.55) !important; background: linear-gradient(135deg, rgba(255,110,170,.18), rgba(255,200,90,.10)) !important; }
.don-alerts { position: fixed; left: 50%; top: 64px; transform: translateX(-50%); z-index: 950; display: grid; gap: 8px; width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.don-alert { padding: 10px 16px; border-radius: 16px; border: 3px solid #fff; background: linear-gradient(135deg, #ff6fae, #ffb35c); color: #fff; text-align: center; text-shadow: 0 2px 0 rgba(0,0,0,.25); box-shadow: 0 8px 24px rgba(0,0,0,.4); animation: donIn .45s cubic-bezier(.2,1.6,.4,1); transition: opacity .45s, transform .45s; }
.don-alert.big { background: linear-gradient(135deg, #a46bff, #ff5fa8 55%, #ffc94d); padding: 14px 18px; }
.don-alert.big .don-a-what { font-size: 20px; }
.don-alert.test { opacity: .92; }
.don-alert.out { opacity: 0; transform: translateY(-10px); }
.don-a-top { font-weight: 800; font-size: 15px; }
.don-a-top i { font-style: normal; font-size: 10px; background: rgba(0,0,0,.3); border-radius: 6px; padding: 1px 6px; margin-right: 6px; vertical-align: middle; }
.don-a-what { font-size: 17px; font-weight: 800; margin-top: 2px; }
.don-a-msg { font-size: 13px; margin-top: 4px; opacity: .95; word-break: break-word; }
@keyframes donIn { from { opacity: 0; transform: translateY(-14px) scale(.9); } }
.don-rows { display: grid; gap: 4px; }
.don-row { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 6px; font-size: 13px; }
.don-row b { color: var(--gold); }
.don-row.off { opacity: .4; }
.don-edit { display: grid; grid-template-columns: 1fr 110px; gap: 2px 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.don-edit small { grid-column: 1 / -1; color: var(--mut); font-size: 11px; }
.don-edit .tin { width: 100%; }
.don-on { font-size: 13px; }
.rs-credits { position: relative; height: min(62vh, 520px); overflow: hidden; mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.rs-credits-roll { position: absolute; left: 0; right: 0; top: 100%; text-align: center; animation: rsRoll var(--dur, 30s) linear forwards; }
.rs-credits-roll p { margin: 6px 0; font-size: 16px; }
.rs-credits-roll p b { color: var(--gold); margin-left: 8px; }
.rs-credits-roll h3 { margin: 22px 0 8px; color: #ff9bd2; font-size: 14px; letter-spacing: .1em; }
@keyframes rsRoll { to { transform: translateY(calc(-100% - 62vh)); } }
.rs-credits.done { overflow-y: auto; mask-image: none; -webkit-mask-image: none; }
.rs-credits-roll.done { position: relative; top: 0; animation: none; }
