/* ===== 눈치 룰렛 (다크 네온 카지노). 전광판 .nc-host 는 화면 높이에 맞춰 em 으로 커져요 ===== */
.nc {
  --bg: #07060d; --bg2: #110e1f; --card: rgba(255, 255, 255, .05); --line: rgba(255, 255, 255, .12);
  --gold: #ffd34d; --gold2: #ff9f1c; --em: #2ee59d; --cr: #ff3b5c; --vio: #7c6bff; --tx: #f6f2ff; --dim: #a59fc0;
  position: fixed; inset: 0; z-index: 50; overflow: auto; color: var(--tx); font-family: "IBM Plex Sans KR", system-ui, sans-serif;
  background: radial-gradient(120% 80% at 50% -10%, #2a1650 0%, var(--bg) 60%) fixed, var(--bg);
}
.nc * { box-sizing: border-box; }
.nc h1, .nc h2, .nc h3, .nc-logo, .nc-btn, .nc-title { font-family: "Jua", "IBM Plex Sans KR", sans-serif; font-weight: 400; letter-spacing: .01em; }
.nc-dim { color: var(--dim); }
.nc .small { font-size: .85em; }
.nc .center { text-align: center; }
.nc.fever { background: radial-gradient(120% 80% at 50% -10%, #5a1020 0%, #12040a 62%) fixed, #12040a; }

/* ---------- 공통 버튼·입력 ---------- */
.nc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 0; border-radius: 14px; padding: .8em 1.1em; font-size: 1.05rem; color: #1b1300; cursor: pointer;
  background: linear-gradient(180deg, #ffe58a, var(--gold) 45%, var(--gold2)); box-shadow: 0 0 0 1px #ffe9a8 inset, 0 6px 22px rgba(255, 190, 40, .35); transition: transform .12s, filter .2s; }
.nc-btn:active { transform: scale(.97); }
.nc-btn:disabled { filter: grayscale(1) brightness(.55); cursor: default; box-shadow: none; }
.nc-btn.big { width: 100%; font-size: 1.3rem; padding: .9em; }
.nc-btn.red { background: linear-gradient(180deg, #ff7b8f, var(--cr)); color: #fff; box-shadow: 0 6px 22px rgba(255, 59, 92, .35); }
.nc-btn.green { background: linear-gradient(180deg, #7dffc9, var(--em)); color: #002a17; box-shadow: 0 6px 22px rgba(46, 229, 157, .3); }
.nc-btn.ghost { background: rgba(255, 255, 255, .06); color: var(--tx); box-shadow: 0 0 0 1px var(--line) inset; }
.nc-btn.ghost.danger { color: #ff9aaa; }
.nc-input { width: 100%; padding: .85em 1em; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--tx); font-size: 1.15rem; outline: none; }
.nc-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 211, 77, .2); }
.nc-mini { border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--tx); border-radius: 999px; padding: .35em .8em; font-size: .85rem; cursor: pointer; text-decoration: none; }
.nc-mini.danger { color: #ff9aaa; border-color: rgba(255, 59, 92, .4); }

/* ---------- 폰 (참가자·진행자) ---------- */
.nc-phone, .nc-admin { padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
.nc-phone > *, .nc-admin > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.nc-ph-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 2px 10px;
  background: linear-gradient(180deg, var(--bg) 70%, transparent); }
.nc.fever .nc-ph-top { background: linear-gradient(180deg, #12040a 70%, transparent); }
.nc-logo { font-size: 1.3rem; color: var(--gold); text-shadow: 0 0 14px rgba(255, 211, 77, .55); }
.nc-ph-me { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.nc-ph-me i { font-style: normal; font-size: .8rem; color: var(--dim); }
.nc-ph-me b { color: var(--gold); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.nc-ph-card { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-top: 12px; }
.nc-ph-card h1 { font-size: 2rem; margin: 0 0 .3em; color: var(--gold); text-shadow: 0 0 22px rgba(255, 211, 77, .5); }
.nc-ph-card h2 { font-size: 1.6rem; margin: .2em 0; }
.nc-ph-card h3 { margin: 0 0 .6em; font-size: 1.15rem; }
.nc-ph-join form { display: grid; gap: 12px; margin: 16px 0 8px; }
.nc-ph-err { color: #ff8d9f; margin: .4em 0 0; }
.nc-ph-warn { background: rgba(255, 59, 92, .12); border: 1px solid rgba(255, 59, 92, .35); padding: .6em .8em; border-radius: 12px; color: #ffc1cb; }
.nc-ph-big { font-size: 4.2rem; line-height: 1.1; margin: .1em 0; filter: drop-shadow(0 0 18px rgba(255, 211, 77, .4)); }
.nc-ph-big.drum { animation: nc-drum .35s infinite alternate; }
@keyframes nc-drum { from { transform: rotate(-8deg) scale(1); } to { transform: rotate(8deg) scale(1.08); } }
.nc-ph-pts { font-family: "Jua", sans-serif; font-size: 2rem; color: var(--gold); margin: .2em 0; font-variant-numeric: tabular-nums; }
.nc-ph-look { font-size: 1.15rem; margin: .8em 0 .3em; animation: nc-blink 1.4s ease-in-out infinite; }
@keyframes nc-blink { 50% { opacity: .45; } }
.nc-ph-wait { padding: 34px 20px; }
.nc-ph-round { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-family: "Jua", sans-serif; font-size: 1.1rem; }
.nc-ph-round em { font-style: normal; color: #ffb3c0; margin-left: .3em; font-size: .9em; }
.nc-ph-round b { font-size: 1.6rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.nc-ph-round b.hurry { color: var(--cr); animation: nc-pulse .5s infinite alternate; }
@keyframes nc-pulse { to { transform: scale(1.15); } }
.nc-ph-round-s { font-family: "Jua", sans-serif; color: var(--dim); margin: 0; letter-spacing: .08em; }
.nc-ph-rescue { background: rgba(46, 229, 157, .12); border: 1px solid rgba(46, 229, 157, .4); color: #b8ffe1; border-radius: 12px; padding: .55em .8em; margin: 10px 0 0; text-align: center; }
.nc-ph-zones { display: grid; gap: 10px; margin-top: 12px; }
.nc-zone-btn { --c: var(--em); display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "e n m" "e l m"; align-items: center; column-gap: 12px; text-align: left;
  padding: 14px 16px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: var(--tx); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s, background .15s; }
.nc-zone-btn.z2 { --c: var(--gold); } .nc-zone-btn.z3 { --c: var(--cr); }
.nc-zone-btn .emo { grid-area: e; font-size: 2.2rem; }
.nc-zone-btn .nm { grid-area: n; font-family: "Jua", sans-serif; font-size: 1.3rem; }
.nc-zone-btn .lim { grid-area: l; color: var(--dim); font-size: .9rem; }
.nc-zone-btn .mul { grid-area: m; font-family: "Jua", sans-serif; font-size: 1.7rem; color: var(--c); text-shadow: 0 0 14px var(--c); }
.nc-zone-btn.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: 0 0 0 1px var(--c), 0 0 26px color-mix(in srgb, var(--c) 45%, transparent); transform: scale(1.02); }
.nc-ph-amt { padding: 16px; }
.nc-amt-top { display: flex; justify-content: space-between; align-items: baseline; }
.nc-amt-top b { font-family: "Jua", sans-serif; font-size: 2rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.nc-range { width: 100%; margin: 12px 0 6px; accent-color: var(--gold); height: 28px; }
.nc-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.nc-quick button { padding: .75em 0; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--tx); font-weight: 700; font-size: .95rem; cursor: pointer; }
.nc-quick button:active { background: rgba(255, 255, 255, .14); }
.nc-quick .all { background: linear-gradient(180deg, #ff7b8f, var(--cr)); border: 0; color: #fff; }
.nc-ph-bet > .nc-btn.big { margin-top: 12px; }
.nc-ph-done { border-width: 2px; }
.nc-ph-done.z1 { border-color: var(--em); } .nc-ph-done.z2 { border-color: var(--gold); } .nc-ph-done.z3 { border-color: var(--cr); }
.nc-ph-pick { font-size: 1.15rem; margin: .3em 0; }
.nc-ph-pick b { color: var(--gold); }
.nc-ph-done .nc-btn { margin: 14px 0 6px; }
.nc-ph-res { padding: 30px 20px; transition: background .4s, border-color .4s; }
.nc-ph-res.ok { border-color: var(--em); background: radial-gradient(circle at 50% 0, rgba(46, 229, 157, .28), transparent 70%); }
.nc-ph-res.bad { border-color: var(--cr); background: radial-gradient(circle at 50% 0, rgba(255, 59, 92, .3), transparent 70%); animation: nc-shake .5s; }
.nc-ph-res.ok .nc-ph-big, .nc-ph-res.bad .nc-ph-big, .nc-ph-res.pass .nc-ph-big { animation: nc-pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.nc-ph-delta { font-family: "Jua", sans-serif; font-size: 3rem; margin: .1em 0; font-variant-numeric: tabular-nums; }
.nc-ph-res.ok .nc-ph-delta { color: var(--em); text-shadow: 0 0 22px rgba(46, 229, 157, .6); }
.nc-ph-res.bad .nc-ph-delta { color: var(--cr); text-shadow: 0 0 22px rgba(255, 59, 92, .6); }
.nc-ph-rank { font-size: 1.25rem; margin: .5em 0 0; animation: nc-pop .5s; }
.nc-ph-rank b { color: var(--gold); }
.nc-ph-final h2 b { color: var(--gold); }
@keyframes nc-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes nc-shake { 10%, 50%, 90% { transform: translateX(-6px); } 30%, 70% { transform: translateX(6px); } }

/* 진행자 */
.nc-ad-state { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.nc-ad-state div { display: flex; flex-direction: column; }
.nc-ad-state small { color: var(--dim); }
.nc-ad-state b { font-family: "Jua", sans-serif; font-size: 1.4rem; color: var(--gold); }
.nc-ad-btns { display: grid; gap: 10px; margin-top: 12px; }
.nc-ad-btns .nc-btn { width: 100%; font-size: 1.1rem; padding: .95em; }
.nc-ad-set { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nc-ad-set label, .nc-ad-url { display: grid; gap: 4px; font-size: .85rem; color: var(--dim); }
.nc-ad-url { margin: 14px 0 8px; word-break: break-all; }
.nc-row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nc-ad-peek { font-size: 1.2rem; margin: .6em 0 0; }
.nc-ad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nc-ad-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.nc-ad-list .rk { width: 2em; color: var(--dim); text-align: right; }
.nc-ad-list b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.nc-ad-list .pt { color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------- 전광판 ---------- */
.nc-host { overflow: hidden; font-size: min(1.9vh, 1.07vw); display: flex; flex-direction: column; padding: 1.6em 2.4em; }
.nc-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.nc-bg i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .28; animation: nc-float 18s ease-in-out infinite alternate; }
.nc-bg i:nth-child(1) { background: var(--vio); left: -15vmax; top: -20vmax; }
.nc-bg i:nth-child(2) { background: var(--gold2); right: -20vmax; top: 10vmax; animation-delay: -6s; opacity: .18; }
.nc-bg i:nth-child(3) { background: var(--em); left: 20vmax; bottom: -35vmax; animation-delay: -12s; opacity: .14; }
.nc-host.fever .nc-bg i:nth-child(1), .nc-host.fever .nc-bg i:nth-child(3) { background: var(--cr); opacity: .3; }
@keyframes nc-float { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
.nc-host > :not(.nc-bg) { position: relative; }
.nc-h-top { display: flex; align-items: center; gap: 2em; }
.nc-title { margin: 0; display: flex; align-items: baseline; gap: .5em; font-size: 2.4em; }
.nc-title span { background: linear-gradient(180deg, #fff3c2, var(--gold) 50%, var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 .35em rgba(255, 190, 40, .55)); }
.nc-title small { font-size: .55em; color: var(--dim); }
.nc-h-round { font-family: "Jua", sans-serif; font-size: 2.2em; letter-spacing: .06em; padding: .15em .8em; border-radius: 999px; border: 1px solid rgba(255, 211, 77, .5); box-shadow: 0 0 1em rgba(255, 211, 77, .25) inset; }
.nc-h-round b { color: var(--gold); }
.nc-h-round em { font-style: normal; font-size: .62em; color: #fff; background: linear-gradient(90deg, var(--cr), var(--gold2)); padding: .2em .7em; border-radius: 999px; margin-left: .6em; vertical-align: middle; animation: nc-pulse .6s infinite alternate; display: inline-block; }
.nc-h-tools { margin-left: auto; display: flex; align-items: center; gap: 1em; }
.nc-h-url { color: var(--dim); font-size: 1.1em; }
.nc-icon { width: 2.4em; height: 2.4em; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--tx); font-size: 1.1em; cursor: pointer; }
.ph-lobby .nc-h-url { display: none; }

/* 대기실 */
.nc-h-lobby { flex: 1; min-height: 0; display: grid; grid-template-columns: 34em 1fr; gap: 3em; align-items: center; margin-top: 1.5em; }
.nc-h-qrbox { text-align: center; padding: 2em; border-radius: 2em; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 211, 77, .35); box-shadow: 0 0 3em rgba(255, 211, 77, .15); }
.nc-qr { width: 26em; height: 26em; margin: 0 auto; padding: 1.2em; background: #fff; border-radius: 1.2em; display: grid; place-items: center; }
.nc-qr img, .nc-qr canvas { width: 100% !important; height: 100% !important; image-rendering: pixelated; }
.nc-h-scan { font-family: "Jua", sans-serif; font-size: 1.9em; margin: .7em 0 .2em; color: var(--gold); }
.nc-h-link { font-size: 1.3em; color: var(--tx); word-break: break-all; margin: 0; }
.nc-h-people { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.nc-h-count { display: flex; align-items: baseline; gap: .4em; font-family: "Jua", sans-serif; font-size: 2em; }
.nc-h-count b { font-size: 3.2em; color: var(--gold); line-height: 1; text-shadow: 0 0 .4em rgba(255, 211, 77, .6); font-variant-numeric: tabular-nums; }
.nc-badges { list-style: none; margin: 1em 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6em; align-content: flex-start; flex: 1; min-height: 0; overflow: hidden; }
.nc-badge { --h: 45; font-family: "Jua", sans-serif; font-size: 1.5em; padding: .3em .9em; border-radius: 999px; color: #fff;
  background: hsl(var(--h) 70% 30% / .65); border: 1px solid hsl(var(--h) 90% 65% / .8); box-shadow: 0 0 .8em hsl(var(--h) 90% 60% / .45); animation: nc-in .6s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes nc-in { from { transform: translateY(1em) scale(.3); opacity: 0; } }
.nc-h-rules { font-size: 1.25em; color: var(--dim); margin: 0; padding: .8em 1em; border-radius: 1em; background: rgba(0, 0, 0, .3); }
.nc-h-rules b { color: var(--gold); }

/* 구역 카드 */
.nc-h-bet, .nc-h-reveal { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1.6em; margin-top: 1.4em; }
.nc-h-zones { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 1.6em; align-items: stretch; }
.nc-h-zones.res { grid-template-columns: repeat(3, 1fr); flex: 1; min-height: 0; }
.nc-zcard { --c: var(--em); position: relative; text-align: center; padding: 1.1em 1.2em; border-radius: 1.6em; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, transparent), rgba(255, 255, 255, .02));
  border: 2px solid color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 0 2em color-mix(in srgb, var(--c) 22%, transparent), inset 0 0 2em color-mix(in srgb, var(--c) 10%, transparent); overflow: hidden; }
.nc-zcard.z2 { --c: var(--gold); } .nc-zcard.z3 { --c: var(--cr); }
.nc-zcard .emo { font-size: 4em; line-height: 1.1; }
.nc-zcard h2 { margin: .15em 0; font-size: 2.3em; }
.nc-zcard h2 small { font-size: .6em; color: var(--c); }
.nc-zcard .mul { font-family: "Jua", sans-serif; font-size: 4.6em; margin: 0; color: var(--c); text-shadow: 0 0 .35em var(--c); line-height: 1.1; }
.nc-zcard .cond { font-size: 1.35em; color: var(--dim); margin: .4em 0 0; }
.nc-host.fever .nc-zcard .mul { animation: nc-pulse .7s infinite alternate; }
.nc-timer { --p: 100; width: 15em; height: 15em; align-self: center; border-radius: 50%; display: grid; place-items: center; align-content: center;
  background: radial-gradient(closest-side, var(--bg2) 82%, transparent 83%), conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); box-shadow: 0 0 3em rgba(255, 211, 77, .3); transition: --p .3s; }
.nc-timer b { font-family: "Jua", sans-serif; font-size: 6.5em; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.nc-timer small { font-size: 1.4em; color: var(--dim); }
.nc-timer.hurry { background: radial-gradient(closest-side, var(--bg2) 82%, transparent 83%), conic-gradient(var(--cr) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); box-shadow: 0 0 3em rgba(255, 59, 92, .5); animation: nc-pulse .5s infinite alternate; }
.nc-timer.hurry b { color: var(--cr); }
.nc-h-progress { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 1.4em 1.8em; border-radius: 1.6em; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.nc-h-progress > p { margin: 0 0 .5em; font-family: "Jua", sans-serif; font-size: 2.2em; }
.nc-h-progress > p b { color: var(--gold); font-size: 1.3em; }
.nc-h-progress > p .nc-dim { font-family: "IBM Plex Sans KR", sans-serif; font-size: .5em; }
.nc-gauge { height: 1.4em; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.nc-gauge i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--em), var(--gold)); box-shadow: 0 0 1em rgba(46, 229, 157, .6); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.nc-badges.lights .nc-badge { --h: 250; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); color: #6f6a88; box-shadow: none; animation: none; font-size: 1.1em; padding: .22em .75em; transition: all .35s; }
.nc-badges.lights { gap: .45em; overflow: auto; scrollbar-width: none; }
.nc-badges.lights .nc-badge.lit { background: rgba(255, 211, 77, .2); border-color: var(--gold); color: #fff6d0; box-shadow: 0 0 1em rgba(255, 211, 77, .6); animation: nc-lit .6s; }
@keyframes nc-lit { from { transform: scale(1.35); } }

/* 결과 공개 */
.nc-h-reveal { flex-direction: row; }
.nc-h-reveal .nc-h-zones { flex: 1; }
.nc-zcard.hide { filter: saturate(.4) brightness(.75); }
.nc-zcard .big { font-family: "Jua", sans-serif; font-size: 7em; margin: .05em 0 0; line-height: 1; font-variant-numeric: tabular-nums; }
.nc-zcard .big small { font-size: .35em; }
.nc-zcard .big.q { color: var(--dim); animation: nc-blink 1s infinite; }
.nc-zcard.ok, .nc-zcard.boom { animation: nc-flip .6s cubic-bezier(.2, 1.4, .4, 1); }
.nc-zcard.ok { --c: var(--em); }
.nc-zcard.boom { --c: var(--cr); animation: nc-flip .6s cubic-bezier(.2, 1.4, .4, 1), nc-shake .55s .55s 2; background: linear-gradient(180deg, rgba(255, 59, 92, .32), rgba(60, 0, 10, .4)); }
.nc-zcard.boom::after { content: "💥"; position: absolute; font-size: 12em; inset: 0; display: grid; place-items: center; opacity: 0; animation: nc-boom .9s ease-out; pointer-events: none; }
@keyframes nc-boom { 0% { opacity: 1; transform: scale(.2); } 60% { opacity: .9; } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes nc-flip { from { transform: rotateY(90deg) scale(.8); } }
.nc-zcard .verdict { font-family: "Jua", sans-serif; font-size: 1.7em; margin: .3em 0; color: var(--c); }
.nc-zcard .names { list-style: none; padding: 0; margin: .6em 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .35em; }
.nc-zcard .names li { font-size: 1.1em; padding: .15em .6em; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); }
.nc-board { width: 30em; flex: none; padding: 1.2em 1.4em; border-radius: 1.6em; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 211, 77, .35); }
.nc-board h3 { margin: 0 0 .6em; font-size: 1.9em; color: var(--gold); }
.nc-board ol { position: relative; list-style: none; margin: 0; padding: 0; }
.nc-row { position: absolute; left: 0; right: 0; height: 2.75em; display: flex; align-items: center; gap: .7em; padding: 0 .9em; border-radius: .8em; background: rgba(255, 255, 255, .05);
  font-size: 1.15em; transition: top .9s cubic-bezier(.3, 1.3, .4, 1), background .5s; animation: nc-in .5s both; }
.nc-row.r1 { background: rgba(255, 211, 77, .2); } .nc-row.r2 { background: rgba(220, 220, 255, .14); } .nc-row.r3 { background: rgba(255, 160, 90, .15); }
.nc-row .rk { width: 1.8em; font-family: "Jua", sans-serif; font-size: 1.3em; color: var(--gold); text-align: center; }
.nc-row .nk { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.nc-row .pt { font-variant-numeric: tabular-nums; font-weight: 700; }
.nc-row .dl { font-size: .8em; font-weight: 700; padding: .1em .5em; border-radius: 999px; animation: nc-pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.nc-row.up .dl { background: rgba(46, 229, 157, .2); color: var(--em); }
.nc-row.down .dl { background: rgba(255, 59, 92, .2); color: #ff8d9f; }
.nc-count { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; background: rgba(5, 3, 12, .72); backdrop-filter: blur(4px); z-index: 3; border-radius: 1.6em; }
.nc-count b { font-family: "Jua", sans-serif; font-size: 22em; line-height: 1; color: var(--gold); text-shadow: 0 0 .2em rgba(255, 190, 40, .8); animation: nc-countin .9s ease-out both; }
.nc-count small { font-family: "Jua", sans-serif; font-size: 2.6em; letter-spacing: .2em; }
@keyframes nc-countin { from { transform: scale(2.2); opacity: 0; } 40% { transform: scale(1); opacity: 1; } }

/* 최종 */
.nc-h-final { flex: 1; min-height: 0; display: flex; gap: 2.5em; margin-top: 1.4em; position: relative; }
.nc-podium { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 1.6em; padding-bottom: 1em; }
.nc-pod { width: 15em; display: flex; flex-direction: column; align-items: center; animation: nc-rise 1s cubic-bezier(.2, 1.2, .4, 1) both; }
.nc-pod.p1 { animation-delay: 1.4s; } .nc-pod.p2 { animation-delay: .7s; } .nc-pod.p3 { animation-delay: .1s; }
@keyframes nc-rise { from { transform: translateY(40%); opacity: 0; } }
.nc-pod .who { text-align: center; margin-bottom: .6em; display: flex; flex-direction: column; align-items: center; }
.nc-pod .medal { font-size: 5em; line-height: 1; filter: drop-shadow(0 0 .3em rgba(255, 211, 77, .7)); }
.nc-pod .who b { font-family: "Jua", sans-serif; font-size: 2.4em; max-width: 7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-pod .who small { font-size: 1.6em; color: var(--gold); font-variant-numeric: tabular-nums; }
.nc-pod .stand { width: 100%; border-radius: 1em 1em 0 0; display: grid; place-items: start center; padding-top: .4em; font-family: "Jua", sans-serif; font-size: 3.4em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04)); border: 1px solid var(--line); }
.nc-pod.p1 .stand { height: 7em; background: linear-gradient(180deg, #ffe58a, #b8860b 90%); color: #3a2500; box-shadow: 0 0 2em rgba(255, 211, 77, .6); }
.nc-pod.p2 .stand { height: 5em; background: linear-gradient(180deg, #f0f0ff, #8a8aa8 90%); color: #23233a; }
.nc-pod.p3 .stand { height: 3.6em; background: linear-gradient(180deg, #ffc08a, #a0522d 90%); color: #3a1800; }
.nc-pod.p1 .who b { color: var(--gold); font-size: 3em; }
.nc-allrank { width: 32em; flex: none; display: flex; flex-direction: column; min-height: 0; padding: 1.2em 1.4em; border-radius: 1.6em; background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 211, 77, .35); }
.nc-allrank h3 { margin: 0 0 .6em; font-size: 1.9em; color: var(--gold); }
.nc-allrank ol { list-style: none; margin: 0; padding: 0; overflow: hidden; flex: 1; min-height: 0; }
.nc-allrank li { display: flex; gap: .8em; align-items: center; padding: .5em .8em; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 1.3em; }
.nc-allrank li.top { color: var(--gold); }
.nc-allrank .rk { width: 2em; text-align: right; font-family: "Jua", sans-serif; }
.nc-allrank .nk { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.nc-allrank .pt { font-variant-numeric: tabular-nums; }
.nc-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* 세로로 긴 화면(폰으로 전광판을 열었을 때)도 깨지지 않게 */
@media (max-aspect-ratio: 1/1) {
  .nc-host { overflow: auto; font-size: 2.2vw; padding: 16px; }
  .nc-h-lobby, .nc-h-final, .nc-h-reveal { grid-template-columns: 1fr; flex-direction: column; }
  .nc-h-zones, .nc-h-zones.res { grid-template-columns: 1fr; }
  .nc-board, .nc-allrank { width: auto; }
  .nc-board ol { min-height: 10em; }
}
@media (prefers-reduced-motion: reduce) {
  .nc *, .nc *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
}

/* ===== 가위바위보 토너먼트 (폰만) — 눈치 룰렛 폰 스타일을 같이 써요 ===== */
.rps .gold { color: var(--gold); }
.rps-round { text-align: center; font-family: "Jua", sans-serif; font-size: 1.25rem; margin: 8px 0 0; letter-spacing: .04em; }
.rps-round b { color: var(--gold); }
.rps-hands { display: flex; justify-content: center; gap: 14px; font-size: 3rem; }
.rps-hands span { animation: rps-bob 1.2s ease-in-out infinite; }
.rps-hands span:nth-child(2) { animation-delay: .2s; } .rps-hands span:nth-child(3) { animation-delay: .4s; }
@keyframes rps-bob { 50% { transform: translateY(-10px) rotate(-8deg); } }
.rps-names { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rps-names li { padding: .25em .7em; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: .9rem; animation: nc-in .5s both; }
.rps-names li.me { border-color: var(--gold); color: var(--gold); }
.rps-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; font-family: "Jua", sans-serif; font-size: 1.5rem; }
.rps-vs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rps-vs .me { color: var(--gold); }
.rps-vs b { font-size: 1.1rem; color: #fff; background: linear-gradient(180deg, var(--cr), #b3122f); padding: .2em .55em; border-radius: 10px; box-shadow: 0 0 16px rgba(255, 59, 92, .5); }
.rps-score { font-family: "Jua", sans-serif; font-size: 2rem; margin: .2em 0 0; color: var(--gold); }
.rps-score small { font-size: .45em; color: var(--dim); }
.rps-call { font-family: "Jua", sans-serif; font-size: 1.6rem; margin: .6em 0 0; animation: nc-pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.rps-left { font-family: "Jua", sans-serif; font-size: 1.3rem; color: var(--gold); margin: .2em 0 .6em; }
.rps-left.hurry { color: var(--cr); animation: nc-pulse .45s infinite alternate; }
.rps-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.rps-pick { aspect-ratio: 1 / 1.15; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 20px; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: var(--tx); transition: transform .12s, border-color .15s, background .15s, box-shadow .15s; touch-action: manipulation; }
.rps-pick span { font-size: 3.2rem; line-height: 1; }
.rps-pick small { font-family: "Jua", sans-serif; font-size: 1.05rem; }
.rps-pick:active { transform: scale(.94); }
.rps-pick.on { border-color: var(--gold); background: rgba(255, 211, 77, .16); box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(255, 211, 77, .45); transform: scale(1.04); }
.rps-show { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 16px 0 6px; }
.rps-show div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rps-show span { font-size: 4.4rem; line-height: 1; animation: rps-reveal .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.rps-show div:last-child span { animation-delay: .12s; }
.rps-show small { color: var(--dim); max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rps-show b { font-family: "Jua", sans-serif; font-size: 2.2rem; color: var(--dim); }
@keyframes rps-reveal { from { transform: scale(.2) rotate(-40deg); opacity: 0; } }
.rps-show.win div:first-child span, .rps-show.lose div:last-child span { filter: drop-shadow(0 0 16px rgba(255, 211, 77, .8)); }
.rps-show.win div:last-child span, .rps-show.lose div:first-child span { opacity: .45; filter: grayscale(.6); }
.rps-verdict { font-size: 1.9rem !important; animation: nc-pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.rps-match.st-show:has(.win) { border-color: var(--em); background: radial-gradient(circle at 50% 0, rgba(46, 229, 157, .25), transparent 70%); }
.rps-match.st-show:has(.lose) { border-color: var(--cr); background: radial-gradient(circle at 50% 0, rgba(255, 59, 92, .25), transparent 70%); animation: nc-shake .5s; }
.rps-match.st-show:has(.draw) { border-color: var(--gold); }
.rps-next { border-color: rgba(46, 229, 157, .5); }
.rps-out { border-color: rgba(255, 59, 92, .35); }
.rps-board h3 { font-size: 1.05rem; }
.rps-board ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rps-board li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: .95rem; }
.rps-board li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rps-board li span:last-child { text-align: right; }
.rps-board li b { font-family: "Jua", sans-serif; color: var(--dim); }
.rps-board li.live { box-shadow: 0 0 0 1px rgba(255, 211, 77, .35) inset; }
.rps-board li.live b { color: var(--gold); animation: nc-blink 1.2s infinite; }
.rps-board .w { color: var(--em); font-weight: 700; }
.rps-board .l { color: #6f6a88; text-decoration: line-through; }
.rps-done { position: relative; overflow: hidden; }
.rps-done.champ { border-color: var(--gold); box-shadow: 0 0 40px rgba(255, 211, 77, .35); }
.rps-champ { font-size: 2.4rem !important; color: var(--gold); text-shadow: 0 0 22px rgba(255, 211, 77, .6); animation: nc-pop .7s cubic-bezier(.2, 1.6, .4, 1); }
.rps-rank { list-style: none; padding: 0; margin: 16px 0 0; text-align: left; display: grid; gap: 4px; }
.rps-rank li { display: flex; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.rps-rank li span { width: 5.5em; color: var(--gold); font-family: "Jua", sans-serif; }
.rps-rank li.me { box-shadow: 0 0 0 1px var(--gold) inset; }
.rps-admin { padding: 0; overflow: hidden; border-color: rgba(124, 107, 255, .5); }
.rps-admin-head { width: 100%; text-align: left; padding: 12px 16px; border: 0; background: rgba(124, 107, 255, .16); color: var(--tx); font-family: "Jua", sans-serif; font-size: 1.05rem; cursor: pointer; }
.rps-admin > :not(.rps-admin-head) { margin: 12px 16px; }
.rps-admin-btns { display: grid; gap: 8px; }
.rps-admin-btns .nc-btn { width: 100%; }
.rps-set { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rps-set label { display: grid; gap: 4px; font-size: .85rem; color: var(--dim); }
.rps-set select { font-size: 1rem; padding: .6em; }
.rps-qr { text-align: center; }
.rps-qr .nc-qr { width: 220px; height: 220px; padding: 10px; }
.rps-qr p { word-break: break-all; margin: 8px 0; }
.rps-list summary { cursor: pointer; color: var(--dim); margin-bottom: 8px; }
.rps-mc { text-align: center; margin: 22px 0 4px; }
.rps-pin { display: flex; gap: 8px; }
.rps-vote { margin: 16px 0 10px; display: grid; gap: 10px; }
.rps-vote.go { padding: 14px; border-radius: 16px; background: rgba(255, 211, 77, .1); border: 1px solid rgba(255, 211, 77, .45); }
.rps-start { font-family: "Jua", sans-serif; font-size: 1.5rem; margin: 0; }
.rps-start b { color: var(--gold); font-size: 1.6em; display: inline-block; animation: nc-pulse .5s infinite alternate; }

/* ===== 폰 빙고 ===== */
.bg-status { display: grid; gap: 8px; margin-top: 8px; }
.bg-turn { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-family: "Jua", sans-serif; font-size: 1.1rem; }
.bg-turn b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bg-turn span { color: var(--gold); flex: none; }
.bg-turn span.hurry { color: var(--cr); animation: nc-pulse .45s infinite alternate; }
.bg-turn.mine { border-color: var(--gold); background: rgba(255, 211, 77, .14); box-shadow: 0 0 22px rgba(255, 211, 77, .35); animation: nc-blink 1.2s infinite; }
.bg-last { display: flex; align-items: center; justify-content: center; gap: 14px; }
.bg-last small { color: var(--dim); }
.bg-last b { font-family: "Jua", sans-serif; font-size: 2.6rem; line-height: 1; width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 50%; color: #1b1300;
  background: radial-gradient(circle at 35% 30%, #fff6c8, var(--gold) 55%, var(--gold2)); box-shadow: 0 0 22px rgba(255, 211, 77, .55); }
.bg-last.pop b { animation: nc-pop .55s cubic-bezier(.2, 1.6, .4, 1); }
.bg-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; padding: 8px; border-radius: 18px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.bg-cell { aspect-ratio: 1; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .07); color: var(--tx); font-family: "Jua", sans-serif; font-size: 1.5rem; cursor: pointer; position: relative;
  transition: background .25s, transform .12s, box-shadow .25s; touch-action: manipulation; }
.bg-cell:disabled { cursor: default; color: var(--tx); opacity: 1; }
.bg-cell.on { background: radial-gradient(circle, rgba(255, 59, 92, .9) 0 46%, rgba(255, 59, 92, .18) 47%); color: #fff; }
.bg-cell.line { background: radial-gradient(circle, rgba(255, 211, 77, .95) 0 46%, rgba(255, 211, 77, .25) 47%); color: #2a1a00; box-shadow: 0 0 14px rgba(255, 211, 77, .55); }
.bg-cell.last { animation: nc-pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.mode-call .bg-cell.can { background: rgba(255, 211, 77, .14); box-shadow: 0 0 0 1px rgba(255, 211, 77, .55) inset; }
.mode-call .bg-cell.can:active, .mode-edit .bg-cell:active { transform: scale(.92); }
.bg-cell.sel { background: var(--vio); box-shadow: 0 0 0 2px #fff inset, 0 0 18px rgba(124, 107, 255, .7); }
.bg-lines { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; }
.bg-lines i { font-style: normal; width: 2em; height: 2em; display: grid; place-items: center; border-radius: 50%; font-family: "Jua", sans-serif; background: rgba(255, 255, 255, .06); color: var(--dim); border: 1px solid var(--line); }
.bg-lines i.on { background: var(--gold); color: #2a1a00; border-color: var(--gold); box-shadow: 0 0 12px rgba(255, 211, 77, .6); animation: nc-pop .5s; }
.bg-lines span { color: var(--dim); margin-left: 4px; }
.bg-bingo { display: block; width: 100%; margin-top: 12px; padding: .4em; border: 0; border-radius: 20px; font-family: "Jua", sans-serif; font-size: 3rem; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #ff7b8f, var(--cr)); box-shadow: 0 0 34px rgba(255, 59, 92, .7); animation: nc-pulse .45s infinite alternate; }
.bg-won { text-align: center; font-family: "Jua", sans-serif; font-size: 1.4rem; color: var(--gold); margin: 12px 0 0; }
.bg-winners { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 10px; }
.bg-winners span { padding: .3em .8em; border-radius: 999px; background: rgba(255, 211, 77, .15); border: 1px solid rgba(255, 211, 77, .5); font-weight: 700; animation: nc-pop .5s; }
.bg-calls h3 { font-size: 1rem !important; margin: 0 0 8px; }
.bg-calls h3 + .bg-chips { margin-bottom: 14px; }
.bg-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.bg-chips span { width: 2.1em; height: 2.1em; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .07); font-family: "Jua", sans-serif; }
.bg-chips span.new { background: var(--gold); color: #2a1a00; }
.bg-top { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.bg-top li { display: flex; gap: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.bg-top li span { width: 3em; color: var(--gold); font-family: "Jua", sans-serif; }
.bg-top li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bg-top li small { color: var(--dim); }
.bg-edit-top { display: flex; justify-content: space-between; align-items: center; }
.bg-edit-top h3 { margin: 0 !important; }
.bg-edit-top .nc-btn { padding: .5em .9em; font-size: .95rem; }
.bg-edit .bg-board { margin-bottom: 8px; }
.bg-done { position: relative; overflow: hidden; }
.bg-done .rps-rank li small { margin-left: auto; }
