:root {
  --bg: #0d1119;
  --panel: rgba(12, 16, 24, 0.8);
  --panel-solid: #151b27;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f3f1ea;
  --muted: #a7adb8;
  --red: #ff3b30;
  --red-deep: #b3140c;
  --gold: #f2c14e;
  --blue: #5aa8ff;
  --green: #5fd47a;
  --font-title: 'Anton', 'Black Han Sans', sans-serif;
  --font-body: 'Archivo', 'S-Core Dream', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'S-Core Dream', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  /* 21-4차: 서체에 없는 굵기·기울기를 브라우저가 획을 부풀려 만들지 않게(한 굵기뿐인 Black Han Sans 제목이 뭉개졌다) */
  font-synthesis: none;
  overflow: hidden;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; }
#overlay { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }

/* 버튼 */
.btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: rgba(255, 255, 255, 0.12); }
.btn.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-family: 'Black Han Sans', sans-serif;
  font-weight: 400;
  font-size: 20px;
  padding: 12px 28px;
  letter-spacing: 0.02em;
}
.btn.primary:hover { background: #ff5247; }
.btn.primary:disabled { background: #5a2a28; border-color: #5a2a28; color: #b9a09e; cursor: not-allowed; }
.btn.icon { padding: 8px 12px; }
.btn.sm { padding: 7px 12px; font-size: 13px; }

/* 참가자 고르기: 화면을 꽉 채우고 뒤로 섬이 보인다 */
.screen { position: fixed; inset: 0; overflow-y: auto; background: var(--bg); }
#setup {
  background: linear-gradient(90deg, rgba(8, 11, 18, 0.92) 0%, rgba(8, 11, 18, 0.72) 30%, rgba(8, 11, 18, 0.25) 62%, rgba(8, 11, 18, 0.55) 100%);
  display: grid; grid-template-columns: minmax(330px, 30vw) 1fr;
  overflow: hidden;
}
.menu-side { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 5vh, 64px) clamp(24px, 3vw, 56px); min-height: 0; }
.hero { animation: slideIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.kicker { font-family: var(--font-title); letter-spacing: 0.18em; color: var(--red); margin: 0 0 8px; font-size: 15px; }
.hero h1 {
  font-family: 'Black Han Sans', sans-serif; font-weight: 400;
  font-size: clamp(52px, 6.4vw, 118px); line-height: 0.98; margin: 0;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}
.hero .sub { color: #c9ced8; max-width: 440px; line-height: 1.65; margin: 18px 0 0; font-size: clamp(15px, 1.05vw, 17px); }
.menu-controls { display: flex; flex-direction: column; gap: 12px; animation: slideIn 0.6s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.menu-controls .count { display: flex; align-items: baseline; gap: 6px; }
.menu-controls .count b { font-family: var(--font-title); font-size: 56px; font-weight: 400; color: var(--red); line-height: 1; display: inline-block; }
.menu-controls #startBtn { font-size: 26px; padding: 16px 28px; width: 100%; }
.group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rand input {
  width: 58px; padding: 9px 8px; border-radius: 6px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono); text-align: center;
}
.rand span { color: var(--muted); font-size: 14px; }
.menu-cards { min-height: 0; overflow-y: auto; padding: clamp(20px, 4vh, 48px) clamp(20px, 3vw, 48px) clamp(20px, 4vh, 48px) 8px; display: flex; align-items: flex-end; }
.cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(80px, 6.4vw, 128px), 1fr));
  max-width: min(100%, 1100px);
  margin-left: auto;
  gap: clamp(8px, 0.8vw, 14px);
}
.card {
  position: relative;
  border: 2px solid transparent;
  background: rgba(21, 27, 39, 0.78);
  border-radius: 10px;
  padding: 6px 6px 8px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.14s cubic-bezier(0.3, 1.6, 0.5, 1), border-color 0.12s, opacity 0.12s, box-shadow 0.14s;
  user-select: none;
  animation: cardIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; background: #222a38; }
.card .nm { display: block; margin-top: 6px; font-size: clamp(11px, 0.8vw, 14px); font-weight: 600; line-height: 1.3; }
.card .no { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 11px; background: rgba(0, 0, 0, 0.55); padding: 1px 5px; border-radius: 3px; }
.card.on { border-color: var(--red); }
.card.on::after {
  content: ''; position: absolute; top: 10px; right: 10px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.4);
}
.card:not(.on) { opacity: 0.45; }
.card:not(.on) img { filter: grayscale(1); }
.card:hover { transform: translateY(-4px) scale(1.03); opacity: 1; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.card:active { transform: scale(0.95); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(0.92); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-24px); } }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { display: block; padding: 9px 12px; font-size: 14px; border: 0; background: transparent; cursor: pointer; }
.seg button.on { background: var(--text); color: var(--bg); font-weight: 600; }
.seg.small button { padding: 7px 11px; font-size: 13px; }

/* 버튼 누름 반응, 숫자 튀기, 장면 전환 */
.btn { transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.btn:active:not(:disabled), .seg button:active { transform: scale(0.95); }
.btn.primary:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 59, 48, 0.35); }
.bump { animation: bump 0.35s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes bump { 40% { transform: scale(1.35); } }
.fade { position: fixed; inset: 0; background: #06080d; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 40; }
.fade.on { opacity: 1; pointer-events: auto; }
body.rotating #stage { cursor: grabbing; }

/* 이름표와 떠오르는 숫자 */
.label {
  position: absolute; left: 0; top: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transform-origin: 50% 100%;
  white-space: nowrap;
}
.label .lname {
  font-family: 'S-Core Dream', sans-serif; font-weight: 600; font-size: 13px;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(10, 12, 18, 0.72);
  color: #fff;
}
.label .lbar { position: relative; width: 58px; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, 0.6); overflow: hidden; }
.label .hp { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--green); transition: width 0.15s; }
.label .ar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue); }
.label.low .hp { background: var(--red); }
.label .lwep { font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px #000; min-height: 0; }
.label .lwep:empty { display: none; }
.label .lwep[data-w="sword"], .label .lwep[data-w="crossbow"] { color: #d9a8ff; }
.label .lwep[data-w="spear"] { color: #8fbaff; }
.label .lwep[data-w="dagger"], .label .lwep[data-w="bow"] { color: #8fe39f; }
.label.focus .lname { background: var(--gold); color: #1b1405; }
.label.dead { opacity: 0.5; }
.label.dead .lname { text-decoration: line-through; }

.pop {
  position: absolute; left: 0; top: 0;
  font-family: var(--font-title); font-size: 22px; color: #fff;
  text-shadow: 0 2px 0 #000, 0 0 6px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.pop.crit { color: var(--gold); font-size: 30px; }
.pop.miss { font-family: 'S-Core Dream', sans-serif; font-weight: 600; font-size: 13px; color: #cfd3da; }
.pop.heal { color: var(--green); font-family: 'S-Core Dream', sans-serif; font-weight: 700; font-size: 15px; }
.pop.item { color: #9fd0ff; font-family: 'S-Core Dream', sans-serif; font-weight: 700; font-size: 15px; }
.pop.toy { color: #ff8fc8; font-family: 'Black Han Sans', sans-serif; font-size: 26px; }
.pop.zone { color: #8ec5ff; font-family: 'S-Core Dream', sans-serif; font-weight: 700; font-size: 15px; }

/* 경기 화면 */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
/* 경기 화면 위 요소는 기본적으로 클릭을 통과시키고, 누를 것만 받는다 */
#hud > * { pointer-events: none; }
#hud > .controls, #hud > .roster, #hud > .info, #hud > #minimap, #hud > .tl { pointer-events: auto; }
#hud > #minimap { cursor: pointer; }
.hud-top {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 18px;
}
.alive { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.alive .lab { font-size: 13px; color: var(--muted); }
.alive b { font-family: var(--font-title); font-weight: 400; font-size: 38px; line-height: 1; color: #fff; }
.alive .of { color: var(--muted); font-family: var(--font-mono); font-size: 14px; }
.alive .of i { font-style: normal; }
.zone { display: flex; flex-direction: column; gap: 5px; min-width: 190px; }
.zone span:first-child { font-size: 14px; font-weight: 600; }
.zone.danger span:first-child { color: #8ec5ff; }
.zone.farm span:first-child { color: var(--gold); }
.zone.farm .zbar i { background: var(--gold); }
.zbar { display: block; height: 4px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.zbar i { display: block; height: 100%; width: 0; background: var(--blue); }

.roster {
  position: absolute; left: 14px; top: 58px; bottom: 80px;
  width: 132px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; align-content: start;
  overflow-y: auto; scrollbar-width: none;
}
.roster button {
  position: relative; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden;
  background: #1a2130; cursor: pointer; aspect-ratio: 1;
}
.roster img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 지금 관전 중인 캐릭터: 빨간 테두리 위로 밝은 꼬리가 시계방향으로 돈다 */
@property --fa { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.roster button.focus::after {
  content: ''; position: absolute; inset: 0; border-radius: 4px; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--fa), rgba(255, 59, 48, 0.4) 0deg 190deg, #ff3b30 300deg, #ffe2dc 356deg, rgba(255, 59, 48, 0.4) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: rosterSpin 1.4s linear infinite;
}
@keyframes rosterSpin { to { --fa: 360deg; } }
.roster button.dead img { filter: grayscale(1) brightness(0.45); }
.roster button .pl {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  font-family: var(--font-title); font-size: 17px; color: #fff; text-shadow: 0 1px 3px #000;
}
.roster button.dead .pl { display: flex; }
.roster button .k {
  position: absolute; right: 2px; bottom: 2px; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  background: var(--red); color: #fff; border-radius: 3px; padding: 0 3px; line-height: 14px;
}
.roster button .k:empty { display: none; }

.feed { position: absolute; right: 14px; top: 58px; width: 330px; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; pointer-events: none; }
.kf {
  display: flex; align-items: center; gap: 7px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 9px 4px 4px; font-size: 13px;
  animation: kfIn 0.25s ease-out;
  transition: opacity 0.5s;
}
.kf img { width: 26px; height: 26px; border-radius: 4px; object-fit: cover; }
.kf b { font-weight: 700; }
.kf .w { font-size: 11px; color: var(--muted); padding: 1px 6px; border: 1px solid var(--line); border-radius: 3px; }
.kf .victim { color: #ff8f88; }
.kf.zone .w { color: #8ec5ff; border-color: rgba(90, 168, 255, 0.4); }
.kf.fade { opacity: 0; }
@keyframes kfIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

#minimap {
  position: absolute; right: 14px; bottom: 70px;
  width: 172px; height: auto; aspect-ratio: 146 / 206;
  border-radius: 8px; border: 2px solid rgba(255, 255, 255, 0.25);
  background: #246896; pointer-events: none;
}
#minimap.square { width: 204px; background: #0e1320; }
.controls {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px;
}
.controls .seg { border-color: transparent; background: rgba(255, 255, 255, 0.06); }

.countdown {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-size: min(34vw, 300px); color: #fff; pointer-events: none;
  text-shadow: 0 6px 0 var(--red-deep), 0 0 40px rgba(0, 0, 0, 0.5);
}
.countdown.go { font-family: 'Black Han Sans', sans-serif; color: var(--red); text-shadow: 0 6px 0 #000; font-size: min(20vw, 180px); }
.countdown .pulse { animation: cdPulse 1s ease-out; }
@keyframes cdPulse { from { transform: scale(1.5); opacity: 0; } 25% { opacity: 1; } to { transform: scale(0.9); opacity: 0.2; } }
.banner {
  position: absolute; top: 24%; left: 50%; transform: translateX(-50%);
  font-family: 'Black Han Sans', sans-serif; font-size: clamp(26px, 4.4vw, 54px);
  color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.7);
  pointer-events: none; opacity: 0; white-space: nowrap; transition: opacity 0.35s;
}
.banner.show { opacity: 1; }
.banner.blue { color: #a9d3ff; }
.banner.red { color: var(--red); }

/* 결과 */
#result { z-index: 10; background: rgba(8, 10, 16, 0.86); animation: fadeIn 0.6s; padding-bottom: 110px; }
@keyframes fadeIn { from { opacity: 0; } }
.res-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.winner { text-align: center; }
.winner h2 { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: clamp(40px, 6vw, 72px); margin: 0; color: var(--gold); }
.winner img { height: min(52vh, 460px); max-width: 100%; object-fit: contain; margin: 14px auto 0; display: block; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.6)); animation: rise 0.9s cubic-bezier(0.2, 0.9, 0.2, 1.2); }
@keyframes rise { from { transform: translateY(40px) scale(0.9); opacity: 0; } }
.wname { font-family: 'S-Core Dream', sans-serif; font-weight: 800; font-size: 34px; margin: 10px 0 2px; }
.wstat { color: var(--muted); margin: 0; font-size: 15px; }
.ranking h3 { font-family: 'S-Core Dream', sans-serif; font-weight: 700; font-size: 18px; margin: 12px 0 12px; color: var(--muted); }
.ranking ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 62vh; overflow-y: auto; }
.ranking li { display: grid; grid-template-columns: 38px 32px 1fr auto; align-items: center; gap: 10px; padding: 5px 10px 5px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); font-size: 14px; }
.ranking li:first-child { background: rgba(242, 193, 78, 0.16); }
.ranking .pl { font-family: var(--font-title); font-size: 18px; text-align: center; color: var(--muted); }
.ranking li:first-child .pl { color: var(--gold); }
.ranking img { width: 32px; height: 32px; border-radius: 4px; object-fit: cover; }
.ranking .nm { font-weight: 700; }
.ranking .nm em { font-style: normal; font-weight: 600; font-size: 11px; color: var(--gold); margin-left: 6px; padding: 1px 5px; border: 1px solid rgba(242, 193, 78, 0.4); border-radius: 3px; }
.ranking .why { color: var(--muted); font-size: 12px; display: block; font-weight: 400; margin-top: 1px; }
.ranking .kc { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.res-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); background: rgba(8, 10, 16, 0.9); border-top: 1px solid var(--line); }

.loading, .error {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'S-Core Dream', sans-serif; font-weight: 600; font-size: 18px; background: rgba(13, 17, 25, 0.9); z-index: 50;
}
.error { color: #ffb4ae; padding: 24px; text-align: center; line-height: 1.6; }
/* 로딩 막대: 단계별 진행률 */
.ld { width: min(360px, calc(100% - 48px)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 12px; }
.ld-t { grid-column: 1 / -1; margin: 0; font-size: 17px; }
.ld-bar { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 3px; transition: width 0.18s ease-out; }
.ld-p { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--muted); min-width: 4ch; text-align: right; }

/* 좁은 화면 */
@media (max-width: 820px) {
  .card .nm { font-size: 12px; }
  .roster {
    display: grid; left: 10px; right: 10px; top: 62px; bottom: auto; width: auto; height: 46px;
    grid-auto-flow: column; grid-auto-columns: 42px; grid-template-columns: none; grid-template-rows: 42px;
    overflow-x: auto; overflow-y: hidden; gap: 4px;
  }
  .feed { width: auto; align-items: flex-start; }
  .feed .kf:nth-child(n+4) { display: none; }
  .hud-top { padding: 6px 12px; gap: 12px; top: 10px; }
  .alive b { font-size: 28px; }
  .zone { min-width: 130px; }
  #minimap { width: 96px; bottom: 112px; right: 10px; }
  #minimap.square { width: 116px; }
  .controls { width: calc(100% - 20px); bottom: 10px; }
  .res-wrap { grid-template-columns: 1fr; gap: 16px; padding: 24px 16px; }
  .winner img { height: 34vh; }
  .ranking ol { max-height: none; }
}

/* 방송 화면 요소 */
.lb { position: fixed; left: 0; right: 0; height: 0; background: #000; z-index: 1; pointer-events: none; transition: height 0.35s ease; }
.lb.top { top: 0; }
.lb.bot { bottom: 0; }
body.letterbox .lb { height: 9vh; }
@media (max-width: 820px) {
}

/* 체력: 깎인 만큼 잠깐 남는 막대, 맞으면 이름표가 살짝 튄다 */
.label .lag { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: #ffe7b0; }
.label .hp { z-index: 1; }
.label .ar { z-index: 2; }
.label.hit { animation: labelHit 0.25s ease-out; }
@keyframes labelHit { 30% { translate: 0 -3px; } }
.pop.rank { font-family: 'Black Han Sans', sans-serif; font-size: 30px; color: #fff; text-shadow: 0 3px 0 #b3140c, 0 0 10px rgba(0, 0, 0, 0.6); }
/* 결과: 순위가 차례로 들어온다 */
.ranking li { animation: rowIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }
@keyframes rowIn { from { opacity: 0; transform: translateX(24px); } }
.res-bar { animation: fadeIn 0.4s 0.8s both; }
#aliveN { display: inline-block; }

@media (max-width: 820px) {
  #setup { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; background: rgba(8, 11, 18, 0.78); }
  .menu-side { padding: 22px 16px 10px; gap: 16px; }
  .hero h1 { font-size: 46px; }
  .hero .sub { font-size: 14px; margin-top: 10px; }
  .menu-controls { gap: 8px; }
  .menu-controls .count b { font-size: 38px; }
  .menu-controls #startBtn { font-size: 20px; padding: 12px; position: sticky; bottom: 10px; }
  .menu-cards { padding: 6px 16px 90px; overflow: visible; display: block; }
  .cards { margin-left: 0; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
}

/* 순위 전광판: 체력 줄과 정렬 */
.roster button .rh { position: absolute; left: 3px; right: 3px; bottom: 2px; height: 3px; background: rgba(0, 0, 0, 0.6); border-radius: 2px; overflow: hidden; }
.roster button .rh b { display: block; height: 100%; width: 100%; background: var(--green); transition: width 0.25s; }
.roster button.dead .rh { display: none; }
.roster button .k { bottom: 7px; }
.roster button:hover { transform: scale(1.06); }
/* 캐릭터 정보 창 */
.info {
  position: absolute; left: 156px; top: 58px; width: 290px;
  background: rgba(12, 16, 24, 0.92); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 6px;
  padding: 14px 14px 12px; font-size: 13px;
}
.info.show { animation: infoIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes infoIn { from { opacity: 0; transform: translateX(-14px) scale(0.96); } }
.info .x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, 0.08); cursor: pointer; }
.info .x:hover { background: rgba(255, 255, 255, 0.18); }
.info .ih { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.info .ih img { width: 58px; height: 58px; border-radius: 5px; object-fit: cover; }
.info .in { margin: 0; font-family: 'S-Core Dream', sans-serif; font-weight: 800; font-size: 18px; }
.info .it { margin: 3px 0 0; font-weight: 700; color: var(--gold); font-size: 13px; }
.info .it span { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
.info .ibar { position: relative; height: 16px; background: rgba(0, 0, 0, 0.5); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.info .ibar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); transition: width 0.25s; }
.info .ibar.ar { height: 10px; }
.info .ibar.ar i { background: var(--blue); }
.info .ibar em { position: relative; font-style: normal; font-size: 11px; font-weight: 700; padding-left: 6px; line-height: 16px; text-shadow: 0 1px 2px #000; }
.info .ibar.ar em { line-height: 10px; font-size: 9px; }
.info dl { display: grid; grid-template-columns: 52px 1fr; gap: 5px 8px; margin: 10px 0 8px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; }
.info dd em { font-style: normal; color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.info .ok { color: var(--green); }
.info .out { color: #ff8f88; }
.info .ihint { margin: 0; color: var(--muted); font-size: 11px; }
@media (max-width: 820px) { .info { left: 10px; top: 110px; width: calc(100% - 20px); } }

.map-seg { width: 100%; }
.map-seg button { flex: 1; padding: 10px 6px; font-weight: 600; }

/* 좁은 화면: 순위 줄 아래로 카메라 표시와 처치 기록 */
@media (max-width: 820px) {
  .feed { top: 142px; left: 10px; right: auto; }
}

/* 화면 집중: 조작 막대는 쉬면 숨기고, 처치 기록은 작게 */
.controls { transition: opacity 0.4s, transform 0.4s; }
body.idle .controls { opacity: 0; transform: translate(-50%, 12px); }
body.idle #stage { cursor: none; }
.controls .btn.off { color: var(--muted); text-decoration: line-through; }
.kf { font-size: 12px; padding: 3px 8px 3px 3px; }
.kf img { width: 22px; height: 22px; }
.feed { width: auto; }

/* 결과 순위표: 기호로 장비·처치·피해를 한눈에, 1~3위는 금·은·동 */
.ranking li.row, .ranking li.head { grid-template-columns: 38px 34px minmax(0, 1fr) auto 50px 64px; }
.ranking li.head { background: none; padding-top: 0; padding-bottom: 2px; font-size: 11px; color: var(--muted); font-weight: 600; animation: none; }
.ranking li.head .st, .ranking li.head .gh { text-align: right; }
.ranking li.head .gh { text-align: left; }
.ranking li:first-child { background: none; }
.ranking li.row { background: rgba(255, 255, 255, 0.045); }
.ranking .who { min-width: 0; }
.ranking .nm { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking .gear { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-start; }
.gc { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 5px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; background: rgba(255, 255, 255, 0.08); color: #e8e8ea; }
.gc svg { width: 13px; height: 13px; flex: none; }
.gc.melee svg { color: #ff9a76; }
.gc.gun svg { color: #8fc7ff; }
.gc.armor svg { color: #9fe3a6; }
.gc.armor.lv2 svg { color: #5fd3ff; }
.gc.none { color: var(--muted); background: rgba(255, 255, 255, 0.04); }
.gc.none svg { color: var(--muted); }
.ranking .st { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: #f1f1f3; }
.ranking .st svg { width: 14px; height: 14px; color: var(--muted); }
.ranking .kc svg { color: #ff6b6b; }
.ranking .dm svg { color: #ffb347; }
.ranking li.row .pl { font-size: 17px; }
.ranking li.p1, .ranking li.p2, .ranking li.p3 { color: #1b1408; }
.ranking li.p1 { background: linear-gradient(100deg, #ffe08a, #f2b634 55%, #d99a1b); box-shadow: 0 0 0 1px rgba(255, 230, 150, 0.6) inset, 0 4px 18px rgba(242, 182, 52, 0.25); }
.ranking li.p2 { background: linear-gradient(100deg, #f4f6f8, #c9d0d8 55%, #a9b2bc); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset; }
.ranking li.p3 { background: linear-gradient(100deg, #f1c49a, #cd8a52 55%, #a9683a); box-shadow: 0 0 0 1px rgba(255, 215, 175, 0.5) inset; }
.ranking li.p1 .pl, .ranking li.p2 .pl, .ranking li.p3 .pl { color: #1b1408; font-size: 20px; }
.ranking li.p1 .why, .ranking li.p2 .why, .ranking li.p3 .why { color: rgba(27, 20, 8, 0.72); }
.ranking li.p1 .nm em, .ranking li.p2 .nm em, .ranking li.p3 .nm em { color: #1b1408; border-color: rgba(27, 20, 8, 0.35); }
.ranking li.p1 .st, .ranking li.p2 .st, .ranking li.p3 .st { color: #1b1408; }
.ranking li.p1 .st svg, .ranking li.p2 .st svg, .ranking li.p3 .st svg { color: rgba(27, 20, 8, 0.7); }
.ranking li.p1 .gc, .ranking li.p2 .gc, .ranking li.p3 .gc { background: rgba(255, 255, 255, 0.55); color: #1b1408; }
.ranking li.p1 .gc svg, .ranking li.p2 .gc svg, .ranking li.p3 .gc svg { color: #3a2a10; }
.ranking li.p1 img, .ranking li.p2 img, .ranking li.p3 img { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8); }
.wgear { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0 0; }
.wgear .gc { font-size: 13px; padding: 4px 10px 4px 7px; }
.wgear .gc svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .ranking li.row, .ranking li.head { grid-template-columns: 30px 30px minmax(0, 1fr) 42px 54px; row-gap: 4px; }
  .ranking li.row .gear { grid-column: 3 / -1; grid-row: 2; }
  .ranking li.head .gh { display: none; }
  .ranking li.row .kc { grid-column: 4; grid-row: 1; }
  .ranking li.row .dm { grid-column: 5; grid-row: 1; }
}
.info .ifollow { width: 100%; margin-top: 10px; }
.ranking .why { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking .why .tr { font-style: normal; font-weight: 600; font-size: 10.5px; color: var(--gold); margin-right: 5px; padding: 0 4px; border: 1px solid rgba(242, 193, 78, 0.4); border-radius: 3px; }
.ranking li.p1 .why .tr, .ranking li.p2 .why .tr, .ranking li.p3 .why .tr { color: #1b1408; border-color: rgba(27, 20, 8, 0.35); }
/* 순위표 쪽을 넓게, 순위표가 좁으면(560px 아래) 장비를 이름 아래 줄로 */
@media (min-width: 821px) { .res-wrap { max-width: 1240px; grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.6fr); } }
.ranking { container-type: inline-size; min-width: 0; }
@container (max-width: 560px) {
  .ranking li.row, .ranking li.head { grid-template-columns: 30px 30px minmax(0, 1fr) 42px 54px; row-gap: 4px; }
  .ranking li.row .gear { grid-column: 3 / -1; grid-row: 2; }
  .ranking li.head .gh { display: none; }
  .ranking li.row .kc { grid-column: 4; grid-row: 1; }
  .ranking li.row .dm { grid-column: 5; grid-row: 1; }
}

/* ---------- 궁극기 컷인: 시간이 멈추고 캐릭터·이름·한 줄 설명이 박힌다 ---------- */
.ultcut { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; --uc: #ffd23a; --ug: #ffffff; }
.ultcut[hidden] { display: none; }
.uc-motif { position: absolute; inset: 0; width: 100%; height: 100%; }
.uc-dim { position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 50%, rgba(0,0,0,0) 20%, rgba(0,0,0,0.72) 80%); animation: ucDim 3.8s ease both; }
.uc-band { position: absolute; left: -10%; right: -10%; top: 30%; height: 40%; transform: skewY(-7deg); overflow: hidden;
  background: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, color-mix(in srgb, var(--uc) 60%, transparent) 40%, color-mix(in srgb, var(--uc) 75%, transparent) 72%, color-mix(in srgb, var(--ug) 55%, transparent) 100%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ug) 80%, transparent), 0 0 60px var(--uc);
  animation: ucBand 3.8s cubic-bezier(.2,.9,.2,1) both; }
.uc-lines { position: absolute; inset: -50% 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 38px, rgba(255,255,255,0.28) 38px 42px, rgba(255,255,255,0) 42px 90px);
  animation: ucLines 0.35s linear infinite; mix-blend-mode: overlay; }
.uc-img { position: absolute; right: 6%; bottom: 0; height: 92%; max-width: 48%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 0 18px var(--uc)) drop-shadow(0 0 42px var(--ug)); animation: ucImg 3.8s cubic-bezier(.15,.9,.25,1) both; }
.uc-text { position: absolute; left: 6%; top: 50%; transform: translateY(-50%) skewY(-7deg); max-width: 52%; }
.uc-kicker { margin: 0 0 6px; font: 700 clamp(12px, 1.5vw, 18px) 'Space Mono', monospace; letter-spacing: 0.5em; color: var(--ug); text-shadow: 0 0 12px var(--uc); animation: ucFade 3.8s ease both; }
.uc-name { margin: 0; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: clamp(40px, 7.4vw, 118px); line-height: 1.02; color: #fff; word-break: keep-all;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--uc) 70%, black); text-shadow: 0 6px 0 rgba(0,0,0,0.55), 0 0 26px var(--uc), 0 0 60px var(--uc); animation: ucName 3.8s cubic-bezier(.2,1.4,.3,1) both; }
.uc-desc { margin: 14px 0 0; font-size: clamp(15px, 1.75vw, 26px); font-weight: 800; color: #fff; word-break: keep-all; text-shadow: 0 2px 10px rgba(0,0,0,0.9); animation: ucDesc 3.8s ease both; }
.uc-who { margin: 10px 0 0; font-size: clamp(13px, 1.3vw, 18px); font-weight: 700; color: var(--ug); letter-spacing: 0.12em; text-shadow: 0 0 10px var(--uc); animation: ucDesc 3.8s ease both; }
.uc-flash { position: absolute; inset: 0; background: #fff; animation: ucFlash 3.8s ease-out both; mix-blend-mode: screen; }
@keyframes ucDim { 0% { opacity: 0 } 8% { opacity: 1 } 86% { opacity: 1 } 100% { opacity: 0 } }
@keyframes ucBand { 0% { clip-path: inset(0 100% 0 0); } 12% { clip-path: inset(0 0 0 0); } 84% { clip-path: inset(0 0 0 0); opacity: 1 } 100% { clip-path: inset(48% 0 48% 0); opacity: 0 } }
@keyframes ucLines { from { transform: translateX(0) } to { transform: translateX(-90px) } }
@keyframes ucImg { 0%, 5% { transform: translateX(60%) scale(1.25); opacity: 0 } 20% { transform: translateX(0) scale(1.04); opacity: 1 } 84% { transform: translateX(-3%) scale(1); opacity: 1 } 100% { transform: translateX(-12%) scale(1); opacity: 0 } }
@keyframes ucName { 0%, 11% { transform: scale(2.2); opacity: 0; filter: blur(8px) } 21% { transform: scale(0.96); opacity: 1; filter: blur(0) } 25% { transform: scale(1) } 84% { opacity: 1 } 100% { transform: scale(1.06); opacity: 0 } }
@keyframes ucDesc { 0%, 22% { transform: translateX(-24px); opacity: 0 } 32% { transform: translateX(0); opacity: 1 } 84% { opacity: 1 } 100% { opacity: 0 } }
@keyframes ucFade { 0%, 8% { opacity: 0 } 16% { opacity: 1 } 84% { opacity: 1 } 100% { opacity: 0 } }
@keyframes ucFlash { 0% { opacity: 0.95 } 7% { opacity: 0 } 100% { opacity: 0 } }
@media (max-width: 720px) {
  .uc-img { right: -4%; height: 70%; max-width: 70%; opacity: 0.9; }
  .uc-text { left: 5%; max-width: 88%; top: 56%; }
}
/* 궁극기 효과가 이어지는 동안 위쪽 이름표 */
.ultchip { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: rgba(10, 12, 18, 0.78); border: 1.5px solid var(--uc, #ffd23a); box-shadow: 0 0 18px var(--uc, #ffd23a); font-weight: 800; font-size: 13px; white-space: nowrap; animation: chipIn 0.4s cubic-bezier(.2,1.4,.3,1) both; }
.ultchip[hidden] { display: none; }
.ultchip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.ultchip em { font-style: normal; color: var(--uc, #ffd23a); font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 15px; letter-spacing: 0.02em; }
@keyframes chipIn { from { transform: translate(-50%, -10px) scale(0.8); opacity: 0 } to { transform: translate(-50%, 0) scale(1); opacity: 1 } }
.kf .w em.ult { font-style: normal; color: #ffd23a; font-weight: 800; }

/* 결과 순위: 눌러서 왼쪽 카드로 보기 */
.ranking li.row { cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.ranking li.row:hover { transform: translateX(-3px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset; }
.ranking li.row:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.ranking li.row.sel { box-shadow: 0 0 0 2px #fff inset, 0 0 18px rgba(255, 255, 255, 0.25); }
.winner.lost .kicker { color: #c9ccd6; }
.winner.lost h2 { font-size: clamp(24px, 3.4vw, 40px); color: #e8e9ee; }
.winner.lost #winImg { filter: grayscale(0.35) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.6)); }
.winner.swap #winImg { animation: cardSwap 0.45s cubic-bezier(.2,1.2,.3,1) both; }
.winner.swap .wname, .winner.swap h2 { animation: cardText 0.4s ease both; }
@keyframes cardSwap { from { transform: translateY(20px) scale(0.94); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes cardText { from { transform: translateY(6px); opacity: 0 } to { transform: none; opacity: 1 } }
.wult { display: inline-flex; align-items: center; gap: 8px; margin: 10px auto 0; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--uc, #ffd23a); box-shadow: 0 0 14px var(--uc, #ffd23a); background: rgba(0, 0, 0, 0.35); }
.wult[hidden] { display: none; }
.wult span { font-size: 12px; color: #c9ccd6; font-weight: 700; }
.wult b { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 17px; color: var(--uc, #ffd23a); }
.whint { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* 포션을 가진 캐릭터만 체력바 위에 포션 병 */
.label .lpot { display: flex; gap: 2px; justify-content: center; height: 14px; margin-bottom: 1px; }
.label .lpot:empty { display: none; }
.label .lpot .pot { width: 10px; height: 14px; display: block; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Crect x='3.3' y='0.5' width='3.4' height='3' rx='0.6' fill='%23c9a26a'/%3E%3Cpath d='M3.6 3.4h2.8v1.8l2.6 3.4a3.6 3.6 0 1 1-8 0l2.6-3.4z' fill='%23ff4d7a' stroke='%23fff' stroke-width='0.9'/%3E%3Ccircle cx='3.6' cy='9.6' r='0.9' fill='%23ffd0dc'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 3px rgba(255, 77, 122, 0.8)); }

/* 도움말 말풍선 */
.tipbox { position: fixed; left: 0; top: 0; z-index: 60; max-width: 260px; padding: 10px 12px; border-radius: 10px; background: rgba(14, 16, 24, 0.96); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); color: #eef0f4; font-size: 13px; line-height: 1.45; pointer-events: none; word-break: keep-all; }
.tipbox[hidden] { display: none; }
.tipbox b { display: block; font-size: 15px; }
.tipbox em { display: block; font-style: normal; font-size: 11.5px; color: #ffd23a; margin: 1px 0 6px; }
.tipbox p { margin: 4px 0 6px; color: #c9ccd6; }
.tipbox .tg { display: grid; grid-template-columns: auto auto; gap: 3px 14px; }
.tipbox .tk { color: #9aa0ad; }
.tipbox .tv { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tag, [data-tip] { cursor: help; }
.info .it .tag, .ranking .why .tag { text-decoration: underline dotted rgba(255, 210, 58, 0.7); text-underline-offset: 3px; font-style: normal; }
.info .it .tag { color: var(--gold); font-weight: 700; margin-right: 6px; }
.info dd .tag { border-bottom: 1px dotted rgba(255, 255, 255, 0.45); }
/* 1) 자기장이 줄어들 때: 눈에 잘 띄는 주황빨강 */
.zone.danger span:first-child { color: #ff6a3a; font-weight: 800; text-shadow: 0 0 10px rgba(255, 90, 40, 0.7), 0 1px 0 rgba(0, 0, 0, 0.6); animation: zonePulse 0.9s ease-in-out infinite alternate; }
.zone.danger .zbar i { background: linear-gradient(90deg, #ff3a2a, #ffb03a) !important; box-shadow: 0 0 10px rgba(255, 80, 40, 0.8); }
@keyframes zonePulse { from { opacity: 0.8 } to { opacity: 1; } }
.banner.zone { color: #ff5a3a; -webkit-text-stroke: 1px rgba(60, 0, 0, 0.6); text-shadow: 0 0 18px rgba(255, 60, 40, 0.85), 0 3px 0 rgba(0, 0, 0, 0.55); }
/* 멀티동욱 클론 이름표 */
.label.clone .lname { color: #9fc8ff; font-size: 11px; }
.label.clone .lbar { width: 40px; height: 4px; }
.label.clone .hp { background: #6fa8ff; }
/* 22차: 가로로 넓은 그림(주작희 날개)은 아래에 붙이지 않고 화면 높이 가운데에 둔다(등장 애니메이션이 transform 을 쓰므로 상자와 object-position 으로 맞춘다) */
.uc-img.wide { max-width: 64%; right: 2%; top: 0; bottom: 0; height: 100%; object-position: center 47%; }
/* 검은 깜빡임 방지: 킬 로그 줄이 두 개 이상 동시에 애니메이션되면, Intel UHD 에서 합성기가
   그 반투명 배경을 화면 전체에 잘못 칠해 화면이 한순간 어두워진다(tools/flicker-probe.mjs 로 재현·확인).
   킬 로그는 애니메이션 없이 바로 나타나고 바로 사라진다. */
.kf, .kf.fade { animation: none; transition: none; }
.tipbox .habit { margin: 4px 0 0; padding-left: 16px; }
.tipbox .habit li { margin: 3px 0; color: #e7e9ef; }

/* ===== 15차: 팀 방식·명예의 전당 ===== */
.team-seg button { font-size: 13px; }
.hof-open { width: 100%; margin-top: 8px; }
.hofbox { position: fixed; inset: 0; z-index: 55; background: rgba(6, 8, 13, 0.82); display: grid; place-items: center; padding: 16px; }
.hofbox[hidden] { display: none; }
.hof-in { width: min(760px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hof-in header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.hof-in h2 { margin: 0; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 26px; letter-spacing: 0.02em; }
.hof-in .x { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
#hofBody { overflow-y: auto; padding: 8px 20px 12px; }
.hof-in footer { padding: 10px 20px; border-top: 1px solid var(--line); text-align: right; }
.hof-sum { color: var(--muted); margin: 6px 0 10px; }
.hof-sum b { color: var(--text); }
.hof-empty { color: var(--muted); padding: 30px 0; text-align: center; word-break: keep-all; }
.hof-list { list-style: none; margin: 0; padding: 0; }
.hof-list li { display: grid; grid-template-columns: 28px 34px 1fr repeat(6, auto); align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; }
.hof-list li:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.hof-list li.m1 { background: rgba(242, 193, 78, 0.16); }
.hof-list li.m2 { background: rgba(200, 208, 220, 0.12); }
.hof-list li.m3 { background: rgba(205, 127, 50, 0.13); }
.hof-list img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.hof-list .hr { font-family: var(--font-mono); color: var(--muted); text-align: right; }
.hof-list .hn { font-weight: 700; }
.hof-list .hs { font-variant-numeric: tabular-nums; text-align: right; min-width: 44px; font-size: 14px; }
.hof-list .hs i { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); }
.hof-list .hs b { color: var(--gold); font-size: 16px; }
@media (max-width: 640px) { .hof-list li { grid-template-columns: 22px 30px 1fr auto auto; } .hof-list .hs:nth-of-type(n+3) { display: none; } }

/* ===== ESC 메뉴(열린 동안 경기가 멈춘다) ===== */
.pause { position: fixed; inset: 0; z-index: 58; background: rgba(6, 8, 13, 0.62); display: grid; place-items: center; padding: 16px; }
.pause[hidden] { display: none; }
.pz { width: min(420px, 100%); background: var(--panel-solid); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 18px; }
.pz .kicker { margin: 0; color: var(--gold); font-size: 12px; letter-spacing: 0.16em; font-weight: 700; }
.pz h2 { margin: 2px 0 16px; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 30px; letter-spacing: 0.02em; }
.prow { display: grid; grid-template-columns: 76px 1fr 36px; align-items: center; gap: 10px; margin: 12px 0; }
.prow > span { color: var(--muted); font-size: 14px; }
.prow input[type=range] { width: 100%; accent-color: var(--gold); }
.prow b { font-variant-numeric: tabular-nums; text-align: right; font-size: 14px; }
.prow .seg { grid-column: 2 / 4; justify-self: start; }
.prow.chk { grid-template-columns: 76px auto 1fr; }
.prow.chk input { width: 18px; height: 18px; accent-color: var(--gold); }
.prow.chk em { font-style: normal; color: var(--muted); font-size: 12.5px; word-break: keep-all; }
.pbtn { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pbtn .btn.primary { flex: 1 1 100%; }
.pbtn .btn.ghost { flex: 1 1 0; }
kbd { font-family: var(--font-mono); font-size: 0.78em; padding: 0 5px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 4px; margin-left: 4px; opacity: 0.8; }

/* ===== 최후의 결투 카드 ===== */
.duel { position: absolute; top: 84px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-radius: 10px; background: var(--panel); border: 1px solid rgba(255, 90, 70, 0.45); pointer-events: none; }
.duel[hidden] { display: none; }
.duel .dk { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 10px; font-weight: 800; letter-spacing: 0.2em; color: #fff; background: var(--red); padding: 1px 8px; border-radius: 3px; }
.duel .ds { display: grid; grid-auto-flow: column; align-items: center; gap: 4px; min-width: 150px; }
.duel .ds.r { justify-items: end; }
.duel .ds img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; grid-row: 1; }
.duel .ds img.dead { filter: grayscale(1) brightness(0.45); }
.duel .dn { grid-row: 2; grid-column: 1 / -1; font-weight: 800; font-size: 14px; white-space: nowrap; }
.duel .ds.r .dn { text-align: right; }
.duel .dh { grid-row: 3; grid-column: 1 / -1; width: 150px; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, 0.6); overflow: hidden; }
.duel .dh i { display: block; height: 100%; width: 100%; background: var(--green); }
.duel .ds.r .dh i { margin-left: auto; }
.duel .vs { font-family: 'Black Han Sans', sans-serif; font-size: 26px; color: var(--red); text-shadow: 0 2px 0 #000; }
@media (max-width: 720px) { .duel { top: 110px; transform: translateX(-50%) scale(0.82); } }

/* ===== 안내 배너 ===== */
.banner.count { color: #fff; }
.banner.omen { color: #c8b0ff; text-shadow: 0 0 20px rgba(140, 90, 255, 0.85), 0 3px 0 rgba(0, 0, 0, 0.6); font-size: clamp(20px, 3vw, 38px); }
.banner.drop { color: #ff7a5a; }
.banner.gold { color: var(--gold); text-shadow: 0 0 18px rgba(255, 200, 60, 0.7), 0 3px 0 rgba(0, 0, 0, 0.6); }

/* ===== 이름표: 수류탄·팀 색 ===== */
.label .lpot .nade { width: 11px; height: 14px; display: block; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Crect x='3.6' y='0.6' width='3.8' height='2.4' rx='0.5' fill='%239aa0a8'/%3E%3Cpath d='M7.3 1.2c1.6 0 2.6.9 2.6 2.2' stroke='%23c9ced6' stroke-width='0.9' fill='none'/%3E%3Cellipse cx='5.5' cy='8.6' rx='4.4' ry='4.9' fill='%23556b3a' stroke='%23fff' stroke-width='0.9'/%3E%3Cpath d='M1.4 8.6h8.2M5.5 4v9.2' stroke='%23364523' stroke-width='0.8'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 3px rgba(160, 210, 120, 0.8)); }
.label.team .lname { border-bottom: 2px solid var(--tc); padding-bottom: 1px; }
.label.team .lbar { box-shadow: 0 0 0 1px var(--tc); }

/* ===== 팀 색: 순위판·정보 창·결과 ===== */
.roster button.team { box-shadow: inset 0 -3px 0 var(--tc); }
.info .tb { display: inline-block; font-size: 11px; font-weight: 800; padding: 0 6px; border-radius: 3px; background: var(--tc); color: #111; vertical-align: 2px; }
.ranking li.row.team .pl { color: var(--tc); }

/* ===== 최고의 플레이 ===== */
.potg { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.potg[hidden] { display: none; }
.potg .pg-bar { position: absolute; left: 0; bottom: 9vh; padding: 14px 34px 14px 26px; background: linear-gradient(90deg, rgba(10, 12, 18, 0.9) 70%, rgba(10, 12, 18, 0)); border-left: 5px solid var(--gold); }
.potg .pg-k { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.22em; color: var(--gold); }
.potg .pg-n { margin: 2px 0 0; font-family: 'Black Han Sans', sans-serif; font-size: clamp(28px, 4vw, 52px); color: #fff; line-height: 1.05; }
.potg .pg-d { margin: 4px 0 0; color: #d6d9e0; font-size: 15px; }
.potg #potgSkip { position: absolute; right: 18px; bottom: 9vh; pointer-events: auto; }

/* 스페이스로 멈췄을 때: 배경 없이 작은 글자 하나 */
.pausetag { position: fixed; left: 50%; top: 44%; transform: translateX(-50%); z-index: 45; pointer-events: none; font-weight: 800; font-size: 15px; letter-spacing: 0.2em; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.5); }
.pausetag[hidden] { display: none; }

/* ===== 18차: 결과 화면을 창 전체로(참가자 목록만 스크롤) ===== */
#result { display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; padding-bottom: 0; }
#result .res-wrap { max-width: none; width: 100%; height: 100%; min-height: 0; margin: 0; padding: clamp(18px, 3.5vh, 44px) clamp(18px, 4vw, 72px) 12px; grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 56px); align-items: stretch; }
#result .winner { display: flex; flex-direction: column; justify-content: safe center; align-items: center; min-height: 0; overflow: hidden; }
/* 세로가 모자라면 그림이 먼저 줄어든다(위 글자가 잘리지 않게) */
#result .winner img { height: min(50vh, 520px); flex: 0 1 auto; min-height: 0; }
#result .winner > :not(img) { flex: 0 0 auto; }
#result .ranking { display: flex; flex-direction: column; min-height: 0; }
#result .ranking ol { flex: 1 1 auto; max-height: none; min-height: 0; overflow-y: auto; padding-right: 4px; }
#result .res-bar { position: static; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 24px calc(14px + env(safe-area-inset-bottom)); }
.rb-main, .rb-sub { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rb-main .btn { min-width: 170px; font-size: 16px; padding: 12px 22px; }
.rb-sub .btn { font-size: 13px; padding: 6px 14px; opacity: 0.85; }
/* 타이틀 메뉴: 새 판과 헷갈리지 않게 파란 계열 */
.btn.title { background: #1f4f8f; border: 1px solid #3f7fd0; color: #fff; font-weight: 700; }
.btn.title:hover { background: #2a62ad; }
@media (max-width: 820px) {
  #result .res-wrap { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding: 14px 14px 8px; gap: 10px; }
  #result .winner img { height: 22vh; }
  #result .winner h2 { font-size: 34px; }
  .rb-main .btn { min-width: 0; flex: 1 1 30%; font-size: 14px; padding: 10px 8px; }
}

/* 순위판: 킬 수는 빼고 등수만 */
.roster button .k { display: none; }

/* 무기 등급 색 */
.rar-e { color: #c58bff; }
.rar-l { color: #ffcf4a; }

/* ===== 첫 방문 가이드 ===== */
.guide-open { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 2px 0; align-self: center; }
.guide { position: fixed; inset: 0; z-index: 70; background: rgba(6, 8, 13, 0.8); display: grid; place-items: center; padding: 16px; }
.guide[hidden] { display: none; }
.gd-in { position: relative; width: min(560px, 100%); min-height: 380px; display: flex; flex-direction: column; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px 20px; }
.gd-in .x { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.gd-page { flex: 1; }
.gd-page[hidden] { display: none; }
.gd-k { margin: 0; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.gd-page h2 { margin: 4px 0 12px; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 30px; }
.gd-page p { color: #d6d9e0; line-height: 1.65; margin: 0 0 12px; word-break: keep-all; }
.gd-flow, .gd-list, .gd-traits { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.gd-flow { counter-reset: s; }
.gd-flow li, .gd-list li { background: rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 9px 12px; color: #d6d9e0; word-break: keep-all; line-height: 1.5; }
.gd-flow li b, .gd-list li b { color: #fff; margin-right: 6px; }
.gd-keys { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 0; align-items: center; }
.gd-keys dt { text-align: right; color: #fff; font-weight: 700; white-space: nowrap; }
.gd-keys dd { margin: 0; color: #d6d9e0; }
.gd-keys kbd { margin-left: 0; }
.gd-traits { grid-template-columns: 1fr 1fr; gap: 6px; }
.gd-traits li { background: rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 7px 10px; font-size: 13px; color: #c9ccd6; word-break: keep-all; }
.gd-traits li b { display: block; color: var(--gold); font-size: 14px; }
.gd-nav { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.gd-dots { flex: 1; display: flex; gap: 6px; }
.gd-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.gd-dots i.on { background: var(--gold); }
.gd-nav .btn { font-size: 15px; padding: 9px 22px; min-width: 96px; }
.gd-credit { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; word-break: keep-all; }
.gd-credit a { color: inherit; }
@media (max-width: 520px) { .gd-traits { grid-template-columns: 1fr; } .gd-in { padding: 22px 18px 16px; } }
.pop.rar-e { color: #d7a8ff; text-shadow: 0 0 10px rgba(180, 92, 255, 0.9), 0 1px 2px #000; font-weight: 800; }
.pop.rar-l { color: #ffd766; text-shadow: 0 0 12px rgba(255, 190, 40, 0.95), 0 1px 2px #000; font-weight: 800; }
.gc.rar-e { color: #d7a8ff; border-color: rgba(180, 92, 255, 0.6); }
.gc.rar-l { color: #ffd766; border-color: rgba(255, 197, 58, 0.7); }
.tipbox b.rar-e { color: #d7a8ff; }
.tipbox b.rar-l { color: #ffd766; }

/* 명단 불러오기: 캐릭터 고르기 화면 오른쪽 위 */
.import-wrap { position: absolute; top: clamp(16px, 3vh, 32px); right: clamp(20px, 3vw, 48px); display: flex; align-items: center; z-index: 5; }
.import-help {
  position: relative; top: -12px; margin-left: 4px; width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: help;
  font-size: 11px; font-weight: 800; color: var(--muted); border: 1px solid var(--line); background: rgba(13, 17, 25, 0.85);
}
.import-help:hover, .import-help:focus { color: var(--text); border-color: var(--muted); outline: none; }
.import-tip {
  position: absolute; top: 24px; right: 0; width: 260px; padding: 10px 12px; border-radius: 8px;
  background: var(--panel-solid); border: 1px solid var(--line); color: #d6d9e0;
  font-size: 12.5px; font-weight: 400; line-height: 1.6; text-align: left; word-break: keep-all;
  opacity: 0; visibility: hidden; transition: opacity 0.15s; pointer-events: none;
}
.import-tip b { display: block; color: #fff; margin-bottom: 3px; }
.import-help:hover .import-tip, .import-help:focus .import-tip { opacity: 1; visibility: visible; }
.imp-in { min-height: 0; }
.imp-h { margin: 0 0 6px; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 28px; }
.imp-p { margin: 0 0 12px; color: #c9ced8; font-size: 14px; }
#importText {
  width: 100%; resize: vertical; min-height: 110px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--text);
  font: 15px/1.6 var(--font-body);
}
#importText:focus { outline: none; border-color: var(--muted); }
.imp-prev { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; max-height: 190px; overflow-y: auto; align-content: flex-start; }
.imp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); font-size: 13px; }
.imp-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.imp-chip i { font-style: normal; color: var(--muted); font-size: 11.5px; }
.imp-miss { width: 100%; margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.imp-count { flex: 1; color: var(--muted); font-size: 13px; }
.imp-count b { color: var(--red); font-size: 18px; margin-right: 2px; }
@media (max-width: 820px) { .import-wrap { position: static; justify-content: flex-end; padding: 0 16px; } }

/* 조작 막대가 숨으면 그 자리에 작은 ←/→ 안내만 남는다(배경 없이 글자만) */
.arrow-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; pointer-events: none;
  font-size: 12px; color: rgba(243, 241, 234, 0.8); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  opacity: 0; transition: opacity 0.4s;
}
.arrow-hint span { margin-left: 4px; }
.arrow-hint kbd { font-size: 11px; padding: 0 5px; line-height: 17px; }
body.idle .arrow-hint.on { opacity: 1; }

/* 명단 복사: 순위표를 끌어서 고르면 줄이 표시되고(글자 칠은 숨김), Ctrl+C 로 이름만 복사 */
#rankList li.row { user-select: text; -webkit-user-select: text; }
#rankList li.row ::selection, #rankList li.row::selection, #rankList li.head ::selection { background: transparent; color: inherit; }
#rankList li.row.picked { box-shadow: 0 0 0 2px #ff3b30 inset, 0 0 0 999px rgba(255, 59, 48, 0.16) inset; }
#rankList ::selection { background: transparent; }
#rankList li.row img { -webkit-user-drag: none; }
.copytoast {
  position: fixed; left: 50%; bottom: 128px; transform: translateX(-50%); z-index: 60; pointer-events: none;
  padding: 8px 14px; border-radius: 8px; background: var(--panel-solid); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; opacity: 0; transition: opacity 0.25s;
}
.copytoast.on { opacity: 1; }
.cg-in { min-height: 0; width: min(540px, 100%); }
.cg-h { margin: 4px 0 8px; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 26px; }
.cg-h b { color: var(--red); font-weight: 400; }
.cg-p { margin: 0 0 12px; color: #d6d9e0; font-size: 14px; line-height: 1.65; word-break: keep-all; }
.cg-p kbd { margin-left: 0; }
.cg-gif { display: block; width: 100%; height: auto; max-height: 46vh; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #10141d; }

/* 현황판: 화면 가운데 패널 하나(전체를 덮지 않아 미니맵·순위판은 그대로 눌린다) */
#hud > .board { pointer-events: auto; }
.board {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1000px, calc(100vw - 340px)); max-height: min(84vh, 860px); display: flex; flex-direction: column;
  background: rgba(11, 14, 21, 0.94); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); padding: 16px 18px 10px; z-index: 30;
  font-family: var(--font-body); /* 위에서 숫자용 굵은 서체를 물려받지 않게 */
}
.board[hidden] { display: none; }
.board.pop { animation: bdIn 0.16s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes bdIn { from { opacity: 0; transform: translate(-50%, -48%) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
.bd-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px; padding: 0 4px 10px; border-bottom: 1px solid var(--line); }
.bd-k { margin: 0; font-family: var(--font-title); letter-spacing: 0.18em; color: var(--red); font-size: 12px; }
.bd-h { margin: 2px 0 0; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 30px; line-height: 1; }
.bd-best { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bd-best .bb { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); font-size: 12.5px; color: #d6d9e0; }
.bd-best .bb img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.bd-best .bb b { color: #fff; }
.bd-best .bb i { font-style: normal; color: var(--gold); font-family: var(--font-mono); font-weight: 700; }
.bd-meta { text-align: right; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.bd-meta b { color: #fff; font-family: var(--font-title); font-size: 22px; font-weight: 400; margin-right: 2px; }
.bd-cols, .bd-row { display: grid; grid-template-columns: 52px 34px minmax(150px, 1.35fr) minmax(130px, 1fr) 150px 54px 66px; align-items: center; gap: 10px; }
.bd-cols { padding: 8px 10px 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
.bd-cols .n, .bd-row .n { text-align: right; }
.bd-list { list-style: none; margin: 0; padding: 0 2px 4px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; scrollbar-width: thin; }
.bd-row { padding: 4px 10px; border-radius: 7px; background: rgba(255, 255, 255, 0.04); font-size: 13.5px; cursor: pointer; position: relative; }
.bd-row:hover { background: rgba(255, 255, 255, 0.09); }
.bd-row .rk { font-family: var(--font-title); font-size: 17px; text-align: center; color: #fff; }
.bd-row .rk small { display: block; font-family: var(--font-body); font-size: 10px; color: var(--green); font-weight: 700; letter-spacing: 0.04em; margin-top: -2px; }
.bd-row img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; display: block; background: #1a2130; }
.bd-row .who { min-width: 0; }
.bd-row .nm { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-row .sub { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-row .sub em { font-style: normal; color: var(--gold); margin-right: 6px; }
.bd-row .gear { display: flex; flex-wrap: wrap; gap: 4px; }
.bd-row .hpb { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bd-row .hpb i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); border-radius: 4px; }
.bd-row .hpb i.low { background: #ff6b5a; }
.bd-row .hpb u { position: absolute; left: 0; bottom: 0; height: 3px; background: #6ab8ff; }
.bd-row .hpt { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 3px; display: block; }
.bd-row .st { font-family: var(--font-mono); font-weight: 700; font-size: 15px; }
.bd-row .st.k { color: #fff; }
.bd-row .st.d { color: #ffcf6a; font-size: 13.5px; }
.bd-row.top .st.k { color: var(--gold); }
.bd-row.dead { opacity: 0.62; }
.bd-row.dead img { filter: grayscale(1); }
.bd-row.dead .rk { color: var(--muted); font-size: 15px; }
.bd-row.watch { background: rgba(255, 59, 48, 0.14); box-shadow: inset 3px 0 0 var(--red); }
.bd-team { display: flex; align-items: center; gap: 10px; margin: 8px 2px 2px; padding: 0 8px; font-size: 13px; font-weight: 800; color: #fff; }
.bd-team i { width: 10px; height: 10px; border-radius: 3px; background: var(--tc); }
.bd-team span { color: var(--muted); font-weight: 500; }
.bd-foot { padding: 8px 4px 0; font-size: 11.5px; color: var(--muted); text-align: center; }
.bd-foot kbd { margin-left: 0; }
@media (max-width: 900px) { .board { width: calc(100vw - 24px); } .bd-cols, .bd-row { grid-template-columns: 40px 30px minmax(110px, 1fr) 90px 46px 56px; } .bd-cols span:nth-child(4), .bd-row .gear { display: none; } }

/* 촬영 모드(개발용): 화면 위 HUD·이름표·레터박스·안내를 숨긴다. 궁극기 컷인은 남긴다 */
body.film-clean #hud, body.film-clean #overlay, body.film-clean .lb, body.film-clean #banner, body.film-clean #guide, body.film-clean #copyToast { display: none !important; }

/* 20차: 보급 상자 3초 정신 집중 게이지(여는 사람 머리 위) */
.sgauge { position: absolute; left: 0; top: 0; width: 240px; margin-top: -18px; pointer-events: none; transform-origin: 50% 100%; font-family: 'Black Han Sans', sans-serif; z-index: 3; }
.sgauge .sg-t { text-align: center; color: #fff; font-size: 20px; letter-spacing: 0.5px; margin-bottom: 5px; white-space: nowrap; text-shadow: 0 2px 0 #000, 0 0 8px rgba(0, 0, 0, 0.75); }
.sgauge .sg-bar { position: relative; height: 24px; border-radius: 13px; background: rgba(10, 14, 20, 0.8); border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6), 0 0 18px var(--gc); overflow: hidden; }
.sgauge .sg-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg, var(--gc2), var(--gc)); box-shadow: 0 0 12px var(--gc); }
.sgauge .sg-fill::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 0 8px, transparent 8px 16px); background-size: 23px 23px; animation: sgmove 0.6s linear infinite; }
.sgauge .sg-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 400; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, 0.8); }
.sgauge.cancel .sg-bar { border-color: #ff4a3a; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6), 0 0 18px #ff2a1a; }
.sgauge.cancel .sg-fill { background: #b3140c; box-shadow: none; }
.sgauge.cancel .sg-t { color: #ff6a5a; }
.sgauge.done .sg-t { color: var(--gc); }
.sgauge.shake { animation: sgshake 0.35s linear; }
@keyframes sgmove { to { background-position: 23px 0; } }
@keyframes sgshake { 0%, 100% { margin-left: 0; } 20% { margin-left: -9px; } 40% { margin-left: 9px; } 60% { margin-left: -6px; } 80% { margin-left: 5px; } }
.pop.cancel { color: #ff5a4a; font-family: 'Black Han Sans', sans-serif; font-size: 26px; text-shadow: 0 2px 0 #000, 0 0 8px rgba(0, 0, 0, 0.7); }

/* 20차: 같은 판 다시 보기 시간 막대(누르거나 끌어서 원하는 시점으로) */
.tl { position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%); width: min(820px, calc(100vw - 420px)); min-width: 360px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; transition: opacity 0.4s; }
.tl[hidden] { display: none; }
body.idle .tl { opacity: 0.3; }
.tl-btn { flex: none; width: 34px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 13px; cursor: pointer; }
.tl-btn:hover { background: rgba(255, 255, 255, 0.16); }
.tl-time { flex: none; min-width: 38px; text-align: center; font-size: 13px; color: #fff; font-variant-numeric: tabular-nums; }
.tl-k { flex: none; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--muted); }
.tl-track { position: relative; flex: 1; height: 26px; cursor: pointer; touch-action: none; outline: none; }
.tl-rail, .tl-fill { position: absolute; left: 0; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; }
.tl-rail { right: 0; background: rgba(255, 255, 255, 0.16); }
.tl-track:hover .tl-rail, .tl-track:focus-visible .tl-rail { background: rgba(255, 255, 255, 0.26); }
.tl-fill { width: 0; background: linear-gradient(90deg, #ff7a3a, #ffc24a); }
.tl-thumb { position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #ff9a3a, 0 2px 6px rgba(0, 0, 0, 0.5); }
.tl-marks { position: absolute; inset: 0; pointer-events: none; }
.tl-marks .tm { position: absolute; top: 50%; width: 3px; height: 12px; margin: -6px 0 0 -1px; border-radius: 2px; background: rgba(255, 255, 255, 0.78); }
.tl-marks .tm.ukill { background: #ffb43a; }
.tl-marks .tm.final { width: 4px; height: 18px; margin-top: -9px; background: #ff4a3a; }
.tl-marks .tm.farm { width: 2px; height: 16px; margin-top: -8px; background: #6ad08a; }
.tl-marks .tm.ult { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 2px; transform: rotate(45deg); background: #ffd23a; box-shadow: 0 0 8px #ffd23a; }
.tl-tip { position: absolute; bottom: 30px; transform: translateX(-50%); padding: 3px 8px; border-radius: 5px; background: rgba(10, 12, 18, 0.92); border: 1px solid var(--line); color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; }
.tl-tip[hidden] { display: none; }

/* 21차: 화면 글자가 끌려서 파랗게 선택되지 않게. 입력칸과 결과 순위표(끌어서 이름을 복사하는 기능)는 그대로 */
body { -webkit-user-select: none; user-select: none; }
input, textarea, [contenteditable="true"], #rankList, #rankList * { -webkit-user-select: text; user-select: text; }
img, a { -webkit-user-drag: none; }

/* ---------- 21차 맞궁: 궁극기 컷인이 깨지고 반박 컷인이 끼어든다(4.4초) ---------- */
.ultcut.broken { animation: ucBreak 0.5s cubic-bezier(.3,0,.7,1) forwards; }
.ultcut.broken .uc-img, .ultcut.broken .uc-name { filter: grayscale(1) brightness(0.7); }
@keyframes ucBreak { 0% { transform: none; opacity: 1 } 20% { transform: translate(-1.5%, 1%) rotate(-0.6deg) } 100% { transform: translateX(-14%) scale(0.9) rotate(-2deg); opacity: 0 } }
.ccut { position: fixed; inset: 0; z-index: 41; pointer-events: none; overflow: hidden; --uc: #ffd23a; --ug: #ffffff; animation: ccShake 4.4s linear both; }
.ccut[hidden] { display: none; }
.cc-motif { position: absolute; inset: 0; width: 100%; height: 100%; animation: ccFadeAll 4.4s ease both; }
.cc-dim { position: absolute; inset: 0; background: radial-gradient(ellipse at 40% 50%, rgba(0,0,0,0) 15%, rgba(0,0,0,0.78) 82%); animation: ccFadeAll 4.4s ease both; }
/* 반박당한 쪽: 오른쪽 위 구석에 잿빛으로 밀려나고 붉은 X 가 그어진다 */
.cc-old { position: absolute; right: 3%; top: 9%; width: clamp(110px, 15vw, 230px); aspect-ratio: 3 / 4; display: grid; place-items: end center; animation: ccOld 4.4s cubic-bezier(.2,.9,.2,1) both; }
.cc-old img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: grayscale(1) brightness(0.65) contrast(1.1); }
.cc-old p { position: relative; margin: 0 0 -6px; padding: 3px 10px; border-radius: 6px; background: rgba(0,0,0,0.75); color: #c9ccd6; font-size: clamp(11px, 1vw, 14px); font-weight: 800; text-decoration: line-through 2px #ff3a3a; white-space: nowrap; max-width: 140%; overflow: hidden; text-overflow: ellipsis; }
.cc-x { position: absolute; inset: 8% 4%; animation: ccX 4.4s cubic-bezier(.2,1.4,.3,1) both; }
.cc-x::before, .cc-x::after { content: ''; position: absolute; left: -10%; top: 46%; width: 120%; height: 9%; background: #ff2a2a; box-shadow: 0 0 18px #ff2a2a; border-radius: 4px; }
.cc-x::before { transform: rotate(45deg); }
.cc-x::after { transform: rotate(-45deg); }
/* 맞궁 쪽 띠는 궁극기 컷인과 반대로 기울어 왼쪽에서 베고 들어온다 */
.cc-band { position: absolute; left: -10%; right: -10%; top: 28%; height: 44%; transform: skewY(7deg); overflow: hidden;
  background: linear-gradient(270deg, rgba(0,0,0,0.8) 0%, color-mix(in srgb, var(--uc) 62%, transparent) 38%, color-mix(in srgb, var(--uc) 80%, transparent) 70%, color-mix(in srgb, var(--ug) 60%, transparent) 100%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ug) 85%, transparent), 0 0 80px var(--uc); animation: ccBand 4.4s cubic-bezier(.2,.9,.2,1) both; }
.cc-lines { position: absolute; inset: -50% 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 30px, rgba(255,255,255,0.32) 30px 35px, rgba(255,255,255,0) 35px 72px); animation: ccLines 0.25s linear infinite; mix-blend-mode: overlay; }
.cc-img { position: absolute; left: 4%; bottom: 0; height: 96%; max-width: 46%; object-fit: contain; object-position: bottom; transform-origin: bottom center;
  filter: drop-shadow(0 0 22px var(--uc)) drop-shadow(0 0 50px var(--ug)); animation: ccImg 4.4s cubic-bezier(.15,.9,.25,1) both; }
.cc-text { position: absolute; right: 5%; top: 52%; transform: translateY(-50%) skewY(7deg); max-width: 50%; text-align: right; }
.cc-kicker { margin: 0 0 6px; font: 700 clamp(12px, 1.4vw, 17px) 'Space Mono', monospace; letter-spacing: 0.4em; color: #fff; text-shadow: 0 0 12px var(--uc), 0 0 2px #000; animation: ccIn 4.4s ease both; }
.cc-name { margin: 0; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: clamp(36px, 6.6vw, 108px); line-height: 1.02; word-break: keep-all;
  background: linear-gradient(180deg, #fff 0%, #fff 45%, var(--ug) 60%, var(--uc) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--uc) 60%, black); filter: drop-shadow(0 6px 0 rgba(0,0,0,0.6)) drop-shadow(0 0 22px var(--uc)); animation: ccName 4.4s cubic-bezier(.2,1.4,.3,1) both; }
.cc-line { display: inline-block; margin: 14px 0 0; padding: 6px 14px; border-radius: 12px 12px 2px 12px; background: rgba(255,255,255,0.94); color: #111; font-size: clamp(15px, 1.7vw, 25px); font-weight: 900; box-shadow: 0 0 0 3px var(--uc), 0 8px 24px rgba(0,0,0,0.5); animation: ccLine 4.4s cubic-bezier(.2,1.5,.3,1) both; }
.cc-desc { margin: 12px 0 0; font-size: clamp(14px, 1.55vw, 23px); font-weight: 800; color: #fff; word-break: keep-all; text-shadow: 0 2px 10px rgba(0,0,0,0.95); animation: ccDesc 4.4s ease both; }
.cc-who { margin: 8px 0 0; font-size: clamp(13px, 1.2vw, 17px); font-weight: 700; color: var(--ug); letter-spacing: 0.12em; text-shadow: 0 0 10px var(--uc); animation: ccDesc 4.4s ease both; }
.cc-crack { position: absolute; inset: 0; width: 100%; height: 100%; animation: ccCrack 4.4s ease-out both; }
.cc-crack path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(255,255,255,0.9)); }
.cc-crack path.shard { fill: rgba(255,255,255,0.08); stroke-width: 1.2; }
.cc-stamp { position: absolute; left: 50%; top: 46%; display: flex; gap: 0.04em; transform: translate(-50%, -50%) rotate(-8deg); font-family: 'Black Han Sans', sans-serif; font-size: clamp(70px, 15vw, 230px); line-height: 1; animation: ccStamp 4.4s cubic-bezier(.2,1.6,.3,1) both; }
.cc-stamp b { font-weight: 400; color: #fff; -webkit-text-stroke: 4px #1a0000; paint-order: stroke fill; text-shadow: 0 0 30px #ff2a2a, 0 0 70px var(--uc), 0 10px 0 rgba(0,0,0,0.65); }
.cc-stamp b:nth-child(2) { color: #ffe14a; }
.cc-flash { position: absolute; inset: 0; background: #fff; mix-blend-mode: screen; animation: ccFlash 4.4s ease-out both; }
@keyframes ccShake { 0% { transform: none } 2% { transform: translate(-14px, 8px) } 4% { transform: translate(12px, -6px) } 6% { transform: translate(-6px, 4px) } 9%, 100% { transform: none } }
@keyframes ccFadeAll { 0% { opacity: 0 } 4% { opacity: 1 } 90% { opacity: 1 } 100% { opacity: 0 } }
@keyframes ccOld { 0% { transform: translateX(-60vw) scale(1.8); opacity: 0.9 } 10% { transform: translateX(-30vw) scale(1.3); opacity: 0.9 } 22% { transform: none; opacity: 1 } 88% { transform: none; opacity: 1 } 100% { transform: translateX(20%); opacity: 0 } }
@keyframes ccX { 0%, 18% { transform: scale(0.2); opacity: 0 } 26% { transform: scale(1.08); opacity: 1 } 30% { transform: none } 88% { opacity: 1 } 100% { opacity: 0 } }
@keyframes ccBand { 0%, 8% { clip-path: inset(0 0 0 100%); } 18% { clip-path: inset(0 0 0 0); } 88% { clip-path: inset(0 0 0 0); opacity: 1 } 100% { clip-path: inset(48% 0 48% 0); opacity: 0 } }
@keyframes ccLines { from { transform: translateX(0) } to { transform: translateX(72px) } }
@keyframes ccImg { 0%, 10% { transform: translateX(-70%) scale(1.3); opacity: 0 } 22% { transform: translateX(0) scale(1.05); opacity: 1 } 26% { transform: scale(1) } 88% { transform: translateX(2%) scale(1.02); opacity: 1 } 100% { transform: translateX(10%) scale(1.04); opacity: 0 } }
@keyframes ccIn { 0%, 14% { opacity: 0; transform: translateX(30px) } 22% { opacity: 1; transform: none } 88% { opacity: 1 } 100% { opacity: 0 } }
@keyframes ccName { 0%, 16% { transform: scale(2.4); opacity: 0; filter: blur(10px) } 26% { transform: scale(0.95); opacity: 1 } 30% { transform: scale(1) } 88% { opacity: 1 } 100% { transform: scale(1.08); opacity: 0 } }
@keyframes ccLine { 0%, 28% { transform: scale(0.3) rotate(-6deg); opacity: 0 } 34% { transform: scale(1.06) rotate(1deg); opacity: 1 } 38% { transform: none } 88% { opacity: 1 } 100% { opacity: 0 } }
@keyframes ccDesc { 0%, 34% { transform: translateX(24px); opacity: 0 } 44% { transform: none; opacity: 1 } 88% { opacity: 1 } 100% { opacity: 0 } }
@keyframes ccCrack { 0% { opacity: 0 } 1% { opacity: 1 } 12% { opacity: 1 } 26% { opacity: 0.35 } 60% { opacity: 0 } 100% { opacity: 0 } }
@keyframes ccStamp { 0% { transform: translate(-50%, -50%) rotate(-8deg) scale(3.2); opacity: 0 } 5% { transform: translate(-50%, -50%) rotate(-8deg) scale(0.92); opacity: 1 } 8% { transform: translate(-50%, -50%) rotate(-8deg) scale(1) } 17% { transform: translate(-50%, -50%) rotate(-8deg) scale(1.02); opacity: 1 } 24% { transform: translate(-50%, -120%) rotate(-8deg) scale(0.55); opacity: 0 } 100% { opacity: 0 } }
@keyframes ccFlash { 0% { opacity: 1 } 6% { opacity: 0 } 18% { opacity: 0 } 20% { opacity: 0.45 } 26% { opacity: 0 } 100% { opacity: 0 } }
@media (max-width: 720px) {
  .cc-img { left: -6%; height: 70%; max-width: 72%; opacity: 0.9; }
  .cc-text { right: 4%; max-width: 90%; top: 58%; }
  .cc-old { width: 96px; top: 12%; }
}
/* 위쪽 칩: 맞궁은 붉은 테두리와 '맞궁' 딱지 */
.ultchip.sup { border-color: #ff3a3a; box-shadow: 0 0 22px #ff3a3a, 0 0 8px var(--uc, #ffd23a); }
.ultchip.sup::before { content: '맞궁'; padding: 1px 7px; border-radius: 999px; background: #ff2a2a; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: 0.06em; }

/* 21차: 궁극기 컷인 설명 아래 칩(시간·한 방 세기·피하는 법) */
.uc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; animation: ucDesc 3.8s ease both; animation-delay: 0.06s; }
.uc-chips span { padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.62); border: 1.5px solid color-mix(in srgb, var(--ug) 70%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--uc) 60%, transparent); color: #fff; font-size: clamp(12px, 1.15vw, 16px); font-weight: 800; white-space: nowrap; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }

/* ---------- 21차: 명예의 전당·사전 위쪽 탭 ---------- */
.hof-tabs { display: flex; gap: 6px; margin: 2px 0 10px; border-bottom: 1px solid var(--line); }
.hof-tabs button { padding: 8px 16px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.hof-tabs button.on { color: var(--text); border-bottom-color: var(--gold, #f2c14e); }
.hof-tabs button:hover { color: var(--text); }
.hof-list.traits .ht { font-family: 'Black Han Sans', sans-serif; font-size: 18px; color: var(--gold, #f2c14e); min-width: 72px; }
.hof-list.traits .hn small { color: var(--muted); font-size: 12px; font-weight: 600; }
.hof-list .hsup { font-style: normal; font-size: 10px; color: #ff6a6a; margin-left: 3px; }
/* 사전 */
.cx-in { width: min(1020px, 100%); }
.cx-in #dictBody { overflow: auto; padding: 0 20px 18px; }
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cx-grid.traits { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cx-card { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.cx-card header h3 { margin: 0; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 20px; letter-spacing: 0.01em; }
.cx-card header p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; word-break: keep-all; }
.cx-habit { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: #e7e9ef; }
.cx-bars { display: grid; gap: 4px; }
.cx-bar { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.cx-bar i { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.cx-bar b { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #f2c14e, #ff8a3a); }
.cx-pic { height: 108px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 70%); border-radius: 8px; }
.cx-pic img { max-height: 108px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.cx-tier { color: #f2c14e; font-size: 12px; letter-spacing: 0.08em; }
.cx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.cx-st { display: flex; justify-content: space-between; font-size: 12.5px; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); padding-bottom: 2px; }
.cx-st i { font-style: normal; color: var(--muted); }
.cx-st b { font-variant-numeric: tabular-nums; }
.cx-line { margin: 0; font-weight: 800; font-size: 13.5px; }
.cx-more { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; word-break: keep-all; }

/* ---------- 21차: 방탄조끼 표시(이름 위. 22차부터 얼굴 목록에는 없다) ---------- */
.label .lpot .vest { display: block; width: 13px; height: 13px; background: currentColor; -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 1.2h2l1 1.6h1.6l1-1.6h2l1.4 3-1.2 1.4V14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5.6L2.8 4.2z' fill='white'/%3E%3Cpath d='M5.6 8h4.8M5.6 10.6h4.8' stroke='black' stroke-opacity='.35' stroke-width='1.1'/%3E%3C/svg%3E"); mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 1.2h2l1 1.6h1.6l1-1.6h2l1.4 3-1.2 1.4V14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5.6L2.8 4.2z' fill='white'/%3E%3Cpath d='M5.6 8h4.8M5.6 10.6h4.8' stroke='black' stroke-opacity='.35' stroke-width='1.1'/%3E%3C/svg%3E"); }
.label .lpot .vest { color: #5fe07a; filter: drop-shadow(0 0 3px rgba(95, 224, 122, 0.9)); margin-right: 1px; }
.label .lpot .vest.lv2 { color: #c58bff; filter: drop-shadow(0 0 3px rgba(197, 139, 255, 0.95)); }
.roster button .rh { position: absolute; }
/* ---------- 21차 팀전: 얼굴 목록을 팀끼리 묶는다 ----------
   21-4차: 굵은 머리띠·얼굴마다 두른 팀 색 테두리가 난잡하다는 피드백 → 팀 하나를 한 줄로.
   앞의 좁은 꼬리표(팀 색 · 팀 글자 · 생존 수) + 팀원 얼굴. 4인 팀도 한 줄, 탈락한 팀은 줄째 흐리게 */
.roster.teams { --fs: 34px; display: flex; flex-direction: column; gap: 4px; width: auto; }
.roster.teams.ts2 { --fs: 38px; }
.roster.teams .rteam { display: flex; align-items: stretch; gap: 3px; transition: opacity 0.3s; }
.roster.teams .rteam .tg {
  flex: 0 0 18px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 3px 0 2px;
  border-radius: 5px; background: color-mix(in srgb, var(--tc) 72%, #10131b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); font-style: normal;
}
.roster.teams .rteam .tg b { font: 800 12px/1 'S-Core Dream', sans-serif; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.roster.teams .rteam .tg span { font: 700 8.5px/1 'Space Mono', 'S-Core Dream', monospace; color: rgba(255, 255, 255, 0.92); letter-spacing: -0.04em; }
.roster.teams .rteam.out { opacity: 0.45; }
.roster.teams .rteam.out .tg { background: #3a3d46; }
.roster.teams button.team { width: var(--fs); height: var(--fs); flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; box-shadow: none; }
.roster.teams button.team .rh { left: 2px; right: 2px; bottom: 2px; height: 2px; }
.roster.teams button.team .rjj .jja { --jz: 17px; }
@media (max-width: 820px) {
  .roster.teams { --fs: 28px; }
  .roster.teams .rteam .tg { flex-basis: 8px; }
  .roster.teams .rteam .tg b, .roster.teams .rteam .tg span { display: none; }
}

.cx-card header .cx-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.cx-card header .cx-meta span { color: var(--muted); font-size: 12px; }
.cx-card.item header h3 { font-size: 19px; }
/* 사전 카드 머리말은 대화창 머리말 모양(가로 배치·밑줄)을 따르지 않는다 */
.hof-in .cx-card header { display: block; padding: 0; border: 0; }
.hof-in .cx-card.trait header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
/* 성향 탭: 얼굴 그림 자리 없이 이름(넓게)·설명 */
.hof-list.traits li { grid-template-columns: 28px 86px 1fr repeat(6, auto); }
.hof-list.traits .ht { min-width: 0; white-space: nowrap; }
.hof-list.traits .hn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .hof-list.traits .hn { display: none; } .hof-list.traits li { grid-template-columns: 24px 70px repeat(6, auto); } }

/* 21차: 자기장은 배그처럼 파란색(줄어드는 중에는 파랗게 번쩍인다) */
.zone.danger span:first-child { color: #6fb4ff; text-shadow: 0 0 10px rgba(60, 140, 255, 0.85), 0 1px 0 rgba(0, 0, 0, 0.6); }
.zone.danger .zbar i { background: linear-gradient(90deg, #2f7bff, #9fd8ff) !important; box-shadow: 0 0 10px rgba(60, 140, 255, 0.85); }
.banner.zone { color: #7cc0ff; -webkit-text-stroke: 1px rgba(0, 20, 70, 0.6); text-shadow: 0 0 18px rgba(50, 130, 255, 0.9), 0 3px 0 rgba(0, 0, 0, 0.55); }

/* ---------- 21차: 아주 넓은 화면(21:9 보다 넓은 화면) ----------
   HUD·궁극기 컷인·맞궁 컷인은 가운데 21:9 너비 안에 모은다(눈이 화면 끝까지 가지 않아도 되게). 컷인 바깥은 어둡게 덮는다 */
@media (min-aspect-ratio: 5/2) {
  #hud { left: calc(50vw - 116.5vh); right: calc(50vw - 116.5vh); }
  .ultcut, .ccut { left: calc(50vw - 116.5vh); right: calc(50vw - 116.5vh); box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.55); }
  .result .res-in, .potg { max-width: 233vh; margin-left: auto; margin-right: auto; }
}

/* 21-2차: 섬광탄이 카메라 가까이에서 터지면 화면 전체가 하얗게 번쩍했다 걷힌다 */
.flash-white { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 3; mix-blend-mode: screen; }

/* 21-2차 성향: 스트리머 이름표(체력 막대 오른쪽 시청자 수), 도플갱어 분신 이름표 */
.label .lview { position: absolute; left: calc(50% + 33px); bottom: -5px; font: 700 11px/1 'Space Mono', monospace; color: #fff; background: #1d6cff; padding: 2px 5px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.label .lview:empty { display: none; }
.label.streamer .lname { background: linear-gradient(90deg, #1d6cff, #34a6ff); }
.label.clone .lname { background: rgba(110, 70, 170, 0.85); }

/* 21-2차 [히든] 스트리머 후원 알림(SOOP 방송 알림 느낌): 위 가운데에 쏙 올라온다 */
.dono { position: absolute; left: 50%; top: 96px; transform: translate(-50%, -12px) scale(0.92); opacity: 0; z-index: 6; pointer-events: none;
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 14px 12px; border-radius: 16px; min-width: 320px; max-width: min(560px, 92vw);
  background: linear-gradient(135deg, #0b2a6b, #1d6cff 60%, #34a6ff); color: #fff; box-shadow: 0 8px 26px rgba(0, 30, 90, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.25); }
.dono.show { animation: donoIn 0.45s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.dono .dn-b { width: 46px; height: 58px; flex: none; animation: donoBob 0.9s ease-in-out infinite alternate; }
.dono .dn-b svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); }
.dono .dn-who { margin: 0; font: 400 21px/1.2 'Black Han Sans', sans-serif; letter-spacing: 0.01em; }
.dono .dn-who b { color: #ffe04a; font-weight: 400; }
.dono .dn-who em { font-style: normal; color: #fff; text-shadow: 0 0 10px rgba(255, 224, 74, 0.8); }
.dono .dn-sub { margin: 3px 0 0; font: 600 12px/1.2 var(--font-body); opacity: 0.9; }
.dono .dn-sub span { color: #ffe04a; }
.dono .dn-bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.dono .dn-bar::after { content: ''; position: absolute; inset: 0; background: #ffe04a; transform-origin: 0 50%; animation: donoBar 10s linear forwards; }
.dono.done .dn-bar::after { animation: none; transform: scaleX(0); }
@keyframes donoIn { to { transform: translate(-50%, 0) scale(1); opacity: 1; } }
@keyframes donoBob { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-5px) rotate(6deg); } }
@keyframes donoBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.banner.hidden { color: #ffe04a; text-shadow: 0 0 18px rgba(255, 200, 40, 0.8), 0 3px 0 #5a2a00; }

/* 21-2차 사전: 히든 성향 */
.cx-sec { grid-column: 1 / -1; margin: 14px 0 2px; font: 400 20px/1.2 'Black Han Sans', sans-serif; color: #ffe04a; }
.cx-sec small { font: 600 12px var(--font-body); color: rgba(255, 255, 255, 0.6); margin-left: 6px; }
.cx-card.trait.hidden { border-color: rgba(255, 210, 60, 0.55); background: linear-gradient(160deg, rgba(60, 44, 8, 0.6), rgba(20, 16, 10, 0.7)); }
.cx-card.trait.hidden.locked h3 { letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.55); }
.cx-hid { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: #ffd23f; color: #2a1a00; font: 700 11px/1.4 var(--font-body); vertical-align: 2px; }

/* 21-2차: 정식 기록 남기기 단추(금색), 결과 화면 표시, 팀전 명예의 전당 */
.btn.official { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; text-align: left; padding: 10px 14px; border: 2px solid #f2c14e; color: #f2c14e; background: rgba(242, 193, 78, 0.08); }
.btn.official .ob-dot { grid-row: span 2; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; box-shadow: inset 0 0 0 3px transparent; }
/* 작은 단추 글씨는 두꺼운 제목 서체 대신 본문 서체의 진짜 굵은 굵기로(21-4차: 19px Black Han Sans 는 획이 뭉쳐 읽기 어려웠다) */
.btn.official .ob-t { font: 800 17px/1.15 'S-Core Dream', sans-serif; letter-spacing: -0.01em; }
.btn.official .ob-s { font: 600 11px/1.3 var(--font-body); opacity: 0.85; }
.btn.official.on { background: linear-gradient(135deg, #f2c14e, #ffdf85); color: #2a1a00; border-color: #ffdf85; box-shadow: 0 6px 18px rgba(242, 193, 78, 0.35); }
.btn.official.on .ob-dot { background: #2a1a00; box-shadow: inset 0 0 0 3px #ffdf85; }
.btn.official:hover { transform: translateY(-1px); }
.wofficial { margin: 6px 0 0; font: 700 12px var(--font-body); color: rgba(255, 255, 255, 0.55); }
.wofficial.on { color: #f2c14e; }
.hof-recent { margin: 4px 0 12px; }
.hof-recent h4 { margin: 0 0 6px; font: 400 16px 'Black Han Sans', sans-serif; color: #f2c14e; }
.tw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tw-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.tw-size { font: 700 12px var(--font-body); color: rgba(255, 255, 255, 0.7); min-width: 44px; }
.tw-faces { display: flex; gap: 4px; }
.tw-faces img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: #1b2130; }
.tw-faces img.mvp { outline: 2px solid #f2c14e; }
.tw-k { margin-left: auto; font: 600 12px var(--font-body); color: rgba(255, 255, 255, 0.6); }

/* 21-2차: 명예의 전당·사전 단추를 한 줄에(정식 기록 단추가 늘어난 만큼 높이를 아낀다) */
.menu-controls .group.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-controls .group.two .btn { width: 100%; }


/* 타이틀 아래 게임 방법 단추 */
.menu-controls .group.mini { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; }
.menu-controls .group.mini .guide-open { margin: 0; }

/* ===== 21-2차 15번: 맵 고르기(단추 + 미리보기 팝업) ===== */
.menu-top { display: flex; flex-direction: column; flex: none; }
/* 타이틀 왼쪽은 화면이 낮으면 스크롤된다(아래 단추가 잘려 안 보이는 일이 없게) */
.menu-side { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; container-type: inline-size; }
.map-pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.06); cursor: pointer; text-align: left; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.map-pick:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
.map-pick:active { transform: scale(0.98); }
.map-pick img { width: 46px; height: 46px; border-radius: 6px; object-fit: contain; background: #0b1e33; flex: none; }
.map-pick .mp-t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.map-pick small { color: var(--muted); font-size: 12px; }
.map-pick b { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-pick .mp-go { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; }
.map-pick .mp-go::after { content: ' ›'; }
.mb-in { position: relative; width: min(940px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px 26px; }
.mb-in .x { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.mb-h { margin: 0 0 16px; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 28px; }
.mb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.map-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 12px; border: 2px solid transparent; border-radius: 12px; background: rgba(255, 255, 255, 0.05); cursor: pointer; text-align: left; transition: transform 0.14s cubic-bezier(0.3, 1.6, 0.5, 1), border-color 0.12s, background 0.12s; animation: cardIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.map-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.09); }
.map-card.on { border-color: var(--red); background: rgba(255, 59, 48, 0.08); }
.map-card .mc-img { display: block; aspect-ratio: 1; border-radius: 8px; background: #0b1e33 center / contain no-repeat; }
.map-card .mc-img.mix { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; background: #0b1e33; }
.map-card .mc-img.mix i { border-radius: 4px; background: center / cover no-repeat; }
.map-card b { font-size: 17px; font-weight: 800; }
.map-card small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.map-card.on::after { content: '고름'; position: absolute; top: 16px; left: 16px; padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; }

/* ===== 21-3차 도박장 모드 ===== */
/* 모드 탭: 일반 · 도박장 */
.mode-tabs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--line); animation: slideIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.mode-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.15s, color 0.15s, box-shadow 0.15s; }
.mode-tabs button:hover { color: var(--text); }
.mode-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.mode-tabs button[data-mode="casino"][aria-selected="true"] { background: linear-gradient(180deg, #ffe58a, #e6a92a); color: #3b2500; box-shadow: 0 0 0 1px #8a5a00 inset, 0 0 18px rgba(255, 196, 60, 0.45); }
.mt-chip { width: 14px; height: 14px; border-radius: 50%; flex: none; background: radial-gradient(circle, #fff 0 20%, #d41f3a 22% 58%, #fff 60% 68%, #d41f3a 70%); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); }
.cz-only { display: none !important; }
body.casino .cz-only { display: inline-flex !important; }

/* 바탕: 초록 펠트 + 금빛 마름모 결, 화면 가장자리에 금테 */
body.casino #setup {
  background:
    repeating-linear-gradient(45deg, rgba(255, 214, 110, 0.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-45deg, rgba(255, 214, 110, 0.05) 0 1px, transparent 1px 26px),
    linear-gradient(90deg, rgba(5, 36, 21, 0.96) 0%, rgba(7, 50, 29, 0.84) 30%, rgba(9, 56, 32, 0.5) 62%, rgba(5, 34, 20, 0.74) 100%);
  box-shadow: inset 0 0 0 3px rgba(242, 193, 78, 0.28), inset 0 0 140px rgba(0, 0, 0, 0.6);
}
#setup > .menu-side, #setup > .menu-cards { position: relative; z-index: 1; }
.cz-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; display: none; overflow: hidden; }
body.casino .cz-deco { display: block; }
/* 간판 모서리의 마인크래프트 아이템(에메랄드·금괴·칩·다이아몬드) */
.cz-pix { position: absolute; z-index: 2; pointer-events: none; image-rendering: pixelated; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)); animation: czBob 4.2s ease-in-out infinite; }
.cz-pix svg { display: block; width: 100%; height: 100%; }
.cz-pix.e1 { width: 34px; height: 34px; left: -24px; top: -26px; }
.cz-pix.g1 { width: 44px; height: 22px; right: -18px; top: -18px; animation-delay: -1.3s; }
.cz-pix.c1 { width: 26px; height: 26px; right: -12px; bottom: -18px; animation-delay: -2.1s; }
.cz-pix.c2 { width: 22px; height: 22px; right: 8px; bottom: -24px; animation-delay: -0.7s; }
.cz-pix.d1 { width: 28px; height: 28px; left: -20px; bottom: -20px; animation-delay: -2.8s; }
@keyframes czBob { 50% { transform: translateY(-6px) rotate(6deg); } }
/* 베팅 현황판(흐르는 글씨) */
.cz-ticker { position: absolute; top: 22px; left: calc(max(330px, 30vw) + 18px); right: 210px; height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 6px; background: rgba(12, 6, 2, 0.78); border: 1px solid rgba(242, 193, 78, 0.55); box-shadow: 0 0 18px rgba(242, 193, 78, 0.18); overflow: hidden; }
.cz-ticker > b { flex: none; font: 700 12px/1 'Galmuri11', var(--font-mono); letter-spacing: 0.16em; color: #ff5a6e; text-shadow: 0 0 8px rgba(255, 70, 100, 0.7); }
.cz-ticker .ct-win { position: relative; flex: 1; overflow: hidden; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.cz-ticker .ct-track { position: absolute; top: 50%; left: 0; display: inline-flex; gap: 28px; white-space: nowrap; transform: translateY(-50%); animation: czTick var(--dur, 30s) linear infinite; font: 700 13px/1 'Galmuri11', var(--font-body); color: #ffe7a3; }
.cz-ticker .ct-track > span { display: inline-flex; align-items: center; gap: 6px; }
.cz-ticker .ct-track .jja { --jz: 18px; }
.cz-ticker .ct-track i { font-style: normal; color: #7dffb0; }
@keyframes czTick { from { transform: translate(0, -50%); } to { transform: translate(-50%, -50%); } }

/* 간판: 어두운 붉은 판 + 금테 + 둘레 전구(전구는 스크립트가 둘레를 따라 놓는다) */
.cz-hero { animation: slideIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.cz-sign { position: relative; display: inline-block; align-self: flex-start; margin: 14px 0 6px 14px; padding: 18px 26px 16px; border-radius: 10px; background: linear-gradient(180deg, #3d0e14, #1a0508); box-shadow: 0 0 0 3px #f2c14e, 0 0 0 7px #2a080c, 0 0 0 9px #8a6418, 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 70px rgba(255, 170, 40, 0.22); }
.cz-bulbs { position: absolute; inset: 0; pointer-events: none; }
.cz-bulbs i { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: radial-gradient(circle, #fffbe2 0 35%, #ffcf45 40%); box-shadow: 0 0 6px 1px rgba(255, 200, 60, 0.85); animation: czBulb 0.9s steps(1) infinite; }
.cz-bulbs i:nth-child(2n) { animation-delay: -0.45s; }
@keyframes czBulb { 50% { background: radial-gradient(circle, #ffe9a8 0 30%, #8a5a12 40%); box-shadow: none; } }
.cz-top { margin: 0 0 6px; font-family: 'Galmuri11', var(--font-body); font-weight: 700; font-size: clamp(15px, 5.2cqi, 26px); color: #ffe7a3; letter-spacing: 0.06em; text-shadow: 2px 2px 0 #4a2600; }
/* 간판 글자는 왼쪽 칸 너비에 맞춘다(한 줄, 오른쪽 모서리 아이템이 들어갈 자리를 남긴다) */
.cz-hero .cz-title { margin: 0; font-family: 'Galmuri11', 'Black Han Sans', sans-serif; font-weight: 700; font-size: clamp(24px, calc(13.3cqi - 11.5px), 64px); line-height: 1.1; color: #ffd84a; letter-spacing: 0.02em; text-shadow: 4px 4px 0 #5a3300, 0 0 22px rgba(255, 200, 60, 0.5); white-space: nowrap; }
.cz-hero .cz-title b { font-weight: 700; color: #ff5a6e; text-shadow: 4px 4px 0 #4d0012, 0 0 24px rgba(255, 70, 100, 0.75); animation: czNeon 3.4s infinite; }
@keyframes czNeon { 0%, 90%, 100% { opacity: 1; } 91% { opacity: 0.5; } 93% { opacity: 1; } 95% { opacity: 0.35; } 97% { opacity: 1; } }
.cz-en { margin: 10px 0 0; font-family: 'Galmuri11', var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: #7dffb0; text-shadow: 0 0 10px rgba(80, 255, 160, 0.6); }
.cz-hero .sub { color: #d3e8da; }
.cz-hero .sub b { color: #ffd84a; }
body.casino .menu-controls .count b { color: #ffd84a; }
.cz-bets { align-self: center; align-items: center; gap: 6px; margin-left: 8px; padding: 3px 4px 3px 10px; border-radius: 999px; background: rgba(242, 193, 78, 0.14); border: 1px solid rgba(242, 193, 78, 0.45); color: #ffe7a3; font-size: 13px; font-weight: 700; white-space: nowrap; }
.cz-bets button { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.35); color: #ffe7a3; font-size: 11px; line-height: 20px; cursor: pointer; }
.cz-bets button:hover { background: #d41f3a; color: #fff; }
body.casino #startBtn { background: linear-gradient(180deg, #ffe17a, #e3a21f); border-color: #8a5a00; color: #3b2500; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); }
body.casino #startBtn:hover:not(:disabled) { box-shadow: 0 8px 22px rgba(242, 193, 78, 0.45); }
body.casino #startBtn:disabled { background: #4a3d1e; border-color: #4a3d1e; color: #a4977a; text-shadow: none; }
body.casino .map-pick, body.casino .seg, body.casino .btn.ghost { border-color: rgba(242, 193, 78, 0.3); }

/* 카드: 고르면 금테 + 칩 표시, 아래에 주주 칸 */
body.casino .card { background: rgba(8, 28, 18, 0.84); }
body.casino .card.on { border-color: var(--gold); box-shadow: 0 0 16px rgba(242, 193, 78, 0.25); }
body.casino .card.on::after { width: 18px; height: 18px; background: radial-gradient(circle, #fff 0 20%, #d41f3a 22% 58%, #fff 60% 68%, #d41f3a 70%); }
.card .cjj { display: none; }
body.casino .card .cjj { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 6px; min-height: 24px; padding: 2px 4px; border-radius: 6px; border: 1px dashed rgba(242, 193, 78, 0.6); color: #f2c14e; font-size: 11.5px; font-weight: 700; cursor: pointer; }
body.casino .card .cjj:hover, body.casino .card .cjj:focus-visible { background: rgba(242, 193, 78, 0.16); outline: none; }
body.casino .card .cjj.has { border-style: solid; background: rgba(242, 193, 78, 0.12); color: #ffe7a3; }
.cjj .cjj-av { display: inline-flex; }
.cjj .cjj-av .jja { --jz: 18px; }
.cjj .cjj-av .jja + .jja { margin-left: -7px; }
.cjj b { font-family: var(--font-mono); }

/* 주주 프로필(동그라미): 사진이 없거나 안 열리면 닉네임 첫 글자 */
.jja { --jz: 18px; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--jz); height: var(--jz); border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #ffe58a, #c98a12); box-shadow: 0 0 0 1.5px rgba(20, 12, 0, 0.8); color: #3b2500; font: 800 calc(var(--jz) * 0.52)/1 var(--font-body); }
.jja::before { content: attr(data-i); grid-area: 1 / 1; }
.jja img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; display: block; background: #e8d7a8; }

/* 주주 등록 창: 마인크래프트 창(회색 판, 볼록 테두리, 오목한 칸) */
.juju-box { background: rgba(3, 14, 8, 0.8); }
.jj-in { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 16px; background: #c6c6c6; color: #303030; border: 3px solid #000; border-radius: 3px; box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #555, 0 24px 60px rgba(0, 0, 0, 0.6); }
.jj-in .x { position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; border: 2px solid #000; background: #6f6f6f; color: #fff; font-size: 14px; cursor: pointer; box-shadow: inset 2px 2px 0 #a8a8a8, inset -2px -2px 0 #3c3c3c; }
.jj-in .x:hover { background: #b0463f; }
.jj-head { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.jj-head img { width: 64px; height: 64px; object-fit: cover; flex: none; background: #8b8b8b; border: 2px solid; border-color: #373737 #fff #fff #373737; }
.jj-k { margin: 0; font: 700 11px/1 'Galmuri11', var(--font-mono); letter-spacing: 0.2em; color: #8a5a00; }
.jj-head h2 { margin: 3px 0; font: 700 24px/1.15 'Galmuri11', 'Black Han Sans', sans-serif; color: #2f2f2f; }
.jj-s { margin: 0; font-size: 13px; color: #4a4a4a; }
.jj-list { list-style: none; margin: 0; padding: 5px; display: flex; flex-direction: column; gap: 4px; max-height: 170px; overflow-y: auto; background: #8b8b8b; border: 2px solid; border-color: #373737 #fff #fff #373737; }
.jj-list li { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 6px; background: rgba(255, 255, 255, 0.2); color: #151515; }
.jj-list li.empty { justify-content: center; background: none; color: #222; font-size: 13px; padding: 10px; }
.jl-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.jl-t b { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jl-t small { font-size: 11px; color: #2c2c2c; }
.jl-x { flex: none; width: 26px; height: 26px; border: 2px solid #000; background: #6f6f6f; color: #fff; cursor: pointer; box-shadow: inset 2px 2px 0 #9a9a9a, inset -2px -2px 0 #3a3a3a; }
.jl-x:hover { background: #b0463f; }
.jj-form { display: flex; gap: 8px; }
.jj-form input { flex: 1; min-width: 0; padding: 9px 10px; background: #000; color: #fff; border: 2px solid #a0a0a0; border-radius: 0; font-weight: 600; font-size: 15px; outline: none; }
.jj-form input:focus { border-color: #fff; }
.jj-find { border: 2px solid #000; border-radius: 0; background: #6f6f6f; color: #fff; box-shadow: inset 2px 2px 0 #a8a8a8, inset -2px -2px 0 #3c3c3c; }
.jj-find:hover { background: #7f8dd0; box-shadow: inset 2px 2px 0 #b7c2f2, inset -2px -2px 0 #4a5590; }
.jj-res { min-height: 110px; max-height: 310px; overflow-y: auto; }
.jj-hint, .jj-miss, .jj-found, .jj-load { margin: 2px 2px 8px; font-size: 13px; line-height: 1.55; color: #2f2f2f; }
.jj-miss { color: #8a1c1c; font-weight: 700; }
.jj-found { font-weight: 700; }
.jj-load i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; background: #3c8527; animation: jjBlink 0.6s steps(2) infinite; }
@keyframes jjBlink { 50% { background: #c6c6c6; } }
.jj-cands { display: flex; flex-direction: column; gap: 4px; }
.jj-cand { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px 6px 6px; text-align: left; cursor: pointer; background: #8b8b8b; border: 2px solid; border-color: #373737 #fff #fff #373737; color: #111; }
.jj-cand:hover, .jj-cand:focus-visible { background: #a6b2e8; outline: none; }
.jj-cand.virt { background: #95c4a2; }
.jj-cand.virt:hover { background: #a6b2e8; }
.jj-cand.none { background: #b4b4b4; }
.jc-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.jc-t b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-t small { font-size: 12px; color: #262626; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-go { flex: none; font-style: normal; font: 700 12px/1 'Galmuri11', var(--font-body); color: #fff; background: #3c8527; padding: 7px 9px; box-shadow: inset 2px 2px 0 #6fc552, inset -2px -2px 0 #1f4a12; }
.jj-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 700 13px 'Galmuri11', var(--font-body); color: #3a3a3a; }
.jj-foot .btn.primary { background: #3c8527; border: 2px solid #000; border-radius: 0; color: #fff; box-shadow: inset 2px 2px 0 #6fc552, inset -2px -2px 0 #1f4a12; font-family: 'Galmuri11', 'Black Han Sans', sans-serif; font-weight: 700; font-size: 15px; }
.jj-foot .btn.primary:hover { background: #4a9a33; transform: none; }
.jj-btns { display: inline-flex; align-items: center; gap: 8px; }
/* '이미지 없이': 회색 돌 단추(맞는 프로필이 없을 때 반짝인다) */
.jj-noimg { border: 2px solid #000; border-radius: 0; background: #6f6f6f; color: #fff; font: 700 14px 'Galmuri11', var(--font-body); box-shadow: inset 2px 2px 0 #a8a8a8, inset -2px -2px 0 #3c3c3c; }
.jj-noimg:hover:not(:disabled) { background: #7f8dd0; box-shadow: inset 2px 2px 0 #b7c2f2, inset -2px -2px 0 #4a5590; }
.jj-noimg:disabled { opacity: 0.45; cursor: not-allowed; }
.jj-noimg.pulse { animation: jjPulse 0.9s ease-in-out 3; }
@keyframes jjPulse { 50% { background: #c9a227; box-shadow: inset 2px 2px 0 #ffe17a, inset -2px -2px 0 #6b5000, 0 0 14px rgba(255, 210, 80, 0.8); } }

/* 경기 중: 이름표 위 주주, 왼쪽 얼굴 목록의 작은 표시, 정보창 */
.label .ljj { display: inline-flex; align-items: center; gap: 4px; max-width: 160px; padding: 1px 7px 1px 1px; border-radius: 999px; background: rgba(28, 18, 0, 0.8); border: 1px solid rgba(242, 193, 78, 0.75); color: #ffe7a3; font-size: 11px; font-weight: 700; }
.label .ljj b { overflow: hidden; text-overflow: ellipsis; max-width: 96px; font-weight: 700; }
.label .ljj em { font-style: normal; color: #f2c14e; font-size: 10px; }
.ljj-av { display: inline-flex; }
.ljj-av .jja { --jz: 22px; }
.ljj-av .jja + .jja { margin-left: -8px; }
.roster button .rjj { position: absolute; right: -8px; top: -8px; z-index: 2; }
.roster button .rjj .jja { --jz: 21px; box-shadow: 0 0 0 1.5px #f2c14e, 0 1px 4px rgba(0, 0, 0, 0.6); }
.jjl { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.jji { display: inline-flex; align-items: center; gap: 4px; }
.jji b { font-weight: 700; }
.jjl em { font-style: normal; color: var(--muted); font-size: 0.92em; }

/* 결과 화면: 순위 줄의 주주, 우승 카드의 적중 상자 */
.ranking .rjjs { display: block; margin-top: 2px; font-size: 11.5px; color: #ffe7a3; }
.ranking .rjjs .jja { --jz: 15px; }
.ranking li.p1 .rjjs, .ranking li.p2 .rjjs, .ranking li.p3 .rjjs { color: #2a1a04; }
.ranking li.p1 .rjjs em, .ranking li.p2 .rjjs em, .ranking li.p3 .rjjs em { color: rgba(27, 20, 8, 0.7); }
.ranking .hit { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #d41f3a; color: #fff; font: 700 11px/1.4 'Galmuri11', var(--font-body); vertical-align: 1px; box-shadow: 0 0 10px rgba(212, 31, 58, 0.6); }
.wjuju { margin: 12px auto 0; padding: 10px 14px; max-width: 380px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(242, 193, 78, 0.35); text-align: center; }
.wjuju .wj-h { display: block; margin-bottom: 8px; font: 700 13px/1.2 'Galmuri11', var(--font-body); color: #f2c14e; letter-spacing: 0.04em; }
.wjuju .jjl { justify-content: center; font-size: 13px; color: #fff; }
.wjuju .jja { --jz: 22px; }
.wjuju.hit { border-color: #ffd84a; background: linear-gradient(180deg, rgba(90, 10, 22, 0.75), rgba(40, 6, 10, 0.75)); box-shadow: 0 0 24px rgba(255, 200, 60, 0.35); animation: wjIn 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.wjuju.hit .wj-h { font-size: 18px; color: #ffd84a; text-shadow: 2px 2px 0 #5a3300, 0 0 14px rgba(255, 200, 60, 0.6); }
.wjuju.miss .wj-h { color: #c9ccd6; }
@keyframes wjIn { from { opacity: 0; transform: scale(0.6) rotate(-4deg); } }

/* 화면 높이가 낮으면(노트북 125~150% 배율 등) 타이틀 왼쪽을 촘촘하게 */
@media (max-height: 900px) and (min-width: 721px) {
  .menu-side { padding-top: clamp(14px, 3vh, 28px); padding-bottom: clamp(14px, 3vh, 28px); }
  .mode-tabs { margin-bottom: 10px; }
  .mode-tabs button { padding: 6px 14px; font-size: 13px; }
  .kicker { font-size: 13px; margin-bottom: 4px; }
  .hero h1 { font-size: clamp(40px, 7.4vh, 72px); }
  .hero .sub { display: none; }
  .cz-sign { padding: 12px 20px 11px; margin-top: 16px; margin-bottom: 14px; }
  .cz-top { font-size: 17px; margin-bottom: 3px; }
  .cz-hero .cz-title { font-size: clamp(24px, min(calc(13.3cqi - 11.5px), 6.4vh), 52px); }
  .cz-en { display: none; }
  .menu-controls { gap: 8px; }
  .menu-controls .count b { font-size: 40px; }
  .menu-controls #startBtn { font-size: 22px; padding: 11px 24px; }
  .map-pick { padding: 5px 12px 5px 5px; }
  .map-pick img { width: 38px; height: 38px; }
  .btn.official { padding: 7px 12px; }
  .btn.official .ob-t { font-size: 15.5px; }
  .menu-controls .group.two .btn { padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 900px) {
  .cz-ticker { left: 16px; right: 16px; top: auto; bottom: 8px; }
  .cz-hero .cz-title { font-size: 34px; white-space: normal; }
  .cz-sign { margin-left: 12px; }
}

/* ---------- 21-4차: 전설 장비를 가진 캐릭터(이름표·얼굴 목록이 금빛으로 반짝) ---------- */
.label.legend .lname { color: #ffe9a8; background: linear-gradient(90deg, rgba(70, 46, 0, 0.88), rgba(36, 24, 0, 0.88)); box-shadow: 0 0 0 1px rgba(255, 212, 90, 0.85), 0 0 10px rgba(255, 196, 60, 0.55); }
.label.legend .lname::before { content: '★ '; color: #ffd45a; }
.roster button.legend { border-color: #ffd45a; animation: legendGlow 1.2s ease-in-out infinite; }
@keyframes legendGlow { 0%, 100% { box-shadow: 0 0 0 1px #ffd45a, 0 0 6px rgba(255, 200, 60, 0.6); } 50% { box-shadow: 0 0 0 2px #ffe79a, 0 0 14px rgba(255, 210, 80, 0.95); } }

/* 22차 도박장: 주주가 건 캐릭터 탈락 줄(킬 로그 맨 위). 움직임 없이 색·테두리·딱지로만 강조한다(킬 로그 줄 애니메이션은 깜빡임 원인) */
.kf.jjout { gap: 8px; padding: 4px 12px 4px 4px; font-size: 13.5px; color: #ffe7a3; background: linear-gradient(90deg, rgba(70, 8, 16, 0.95), rgba(26, 6, 10, 0.95)); border: 1px solid rgba(242, 193, 78, 0.95); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 16px rgba(255, 70, 60, 0.32); }
.kf.jjout .jo-tag { flex: none; display: inline-grid; place-items: center; height: 26px; padding: 0 7px; border-radius: 4px; background: linear-gradient(180deg, #ffd96a, #e9a91f); color: #7a0c12; font: 700 14px/1 'Galmuri11', var(--font-body); letter-spacing: 0.02em; box-shadow: inset 0 -2px 0 rgba(90, 40, 0, 0.35), 0 0 0 1px rgba(60, 20, 0, 0.6); }
.kf.jjout .jo-av { display: inline-flex; flex: none; }
.kf.jjout .jo-av .jja { --jz: 22px; box-shadow: 0 0 0 1.5px #f2c14e; }
.kf.jjout .jo-av .jja + .jja { margin-left: -7px; }
.kf.jjout .jo-t { white-space: nowrap; }
.kf.jjout .jo-t b { color: #fff; font-weight: 800; }

/* 22차 도박장: 경기 화면 오른쪽 위 주주 현황판(움직임 없이: 반투명 패널의 애니메이션은 깜빡임 원인) */
.czb { position: absolute; right: 14px; top: 58px; width: 318px; padding: 8px 10px 9px; border-radius: 10px; background: linear-gradient(180deg, rgba(52, 10, 18, 0.93), rgba(20, 8, 11, 0.93)); border: 1px solid rgba(242, 193, 78, 0.85); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 6px 18px rgba(0, 0, 0, 0.45); pointer-events: none; color: #ffe7a3; }
.czb[hidden] { display: none; }
.czb-h { margin: 0 0 7px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.czb-h b { font: 700 13px/1 'Galmuri11', var(--font-body); letter-spacing: 0.06em; color: #ffd84a; text-shadow: 0 0 8px rgba(255, 200, 60, 0.45); }
.czb-h span { font: 600 11.5px/1 var(--font-body); color: rgba(255, 231, 163, 0.78); }
.czb-h em { font-style: normal; font-weight: 800; color: #fff; }
.czb ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.czb li { display: grid; grid-template-columns: minmax(0, 1fr) auto 22px minmax(0, 0.72fr) 56px; align-items: center; gap: 6px; font-size: 12px; line-height: 1.1; }
.czb-j { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.czb-j .jja { --jz: 20px; }
.czb-j .jja + .jja { margin-left: -8px; }
.czb-j b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; color: #fff; }
.czb-j em { font-style: normal; color: #f2c14e; font-size: 10.5px; white-space: nowrap; }
.czb-to { font-style: normal; color: #7dffb0; font-weight: 800; }
.czb li img { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; }
.czb-c { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e8e9ee; font-weight: 700; }
.czb .st { justify-self: end; font: 800 11.5px/1 var(--font-body); white-space: nowrap; }
.czb .st.live { width: 54px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.czb .st.live i { display: block; height: 100%; background: linear-gradient(90deg, #3fd47e, #b8ff8a); }
.czb .st.out { color: #ff6a6a; }
.czb li.out { opacity: 0.62; }
.czb li.out .jja, .czb li.out img { filter: grayscale(1); }
.czb li.out .czb-c { text-decoration: line-through; text-decoration-color: rgba(255, 106, 106, 0.8); }
.czb .st.win { color: #2a1a04; background: linear-gradient(180deg, #ffe58a, #f2b81e); padding: 3px 9px; border-radius: 999px; }
.czb li.win .czb-j b, .czb li.win .czb-c { color: #ffd84a; }
.czb-more { margin: 6px 0 0; font-size: 11px; color: rgba(255, 231, 163, 0.6); text-align: right; }
@media (max-width: 720px) { .czb { width: 236px; } .czb li { grid-template-columns: minmax(0, 1fr) auto 20px 50px; } .czb-c { display: none; } .czb li img { width: 20px; height: 20px; } }

/* 23차: 초필살기 단계 자막 */
#supStory { position: fixed; left: 50%; bottom: 13%; transform: translateX(-50%); z-index: 56; pointer-events: none; display: flex; align-items: center; gap: 12px; max-width: min(92vw, 900px); padding: 10px 22px 10px 12px; border-radius: 14px; background: rgba(8, 10, 22, 0.82); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45); }
#supStory[hidden] { display: none; }
#supStory b { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font: 400 22px/1 'Black Han Sans', sans-serif; color: #111; background: #ffd23a; }
#supStory[data-step='1'] b { background: #ff8a3a; }
#supStory[data-step='2'] b { background: #ff3a46; color: #fff; }
#supStory span { font: 700 clamp(15px, 2vw, 22px)/1.4 'S-Core Dream', sans-serif; color: #fff; word-break: keep-all; }

/* 23차 팀 구분: 이름 앞 팀 색 이름표, 고른 사람 기준 아군(초록)·적(빨강) */
.label.team .lteam { display: inline-block; margin-right: 4px; padding: 0 5px; border-radius: 4px; background: var(--tc); color: #fff; font: 700 11px/16px 'S-Core Dream', sans-serif; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); vertical-align: 1px; }
.label.team.ally .lteam { background: #22c45e; }
.label.team.ally .lteam::before { content: '아군 · '; }
.label.team.enemy .lteam { background: #e8323e; }
.label.team.enemy .lteam::before { content: '적 · '; }

/* 23차 M34: 맵 카드 미리보기는 실제 게임 전경(16:10) + 오른쪽 아래 작은 미니맵. 무작위는 넷을 모으고 가운데 큰 물음표 */
.map-card .mc-img { aspect-ratio: 16 / 10; background: #0b1e33 center / cover no-repeat; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); transition: transform 0.25s ease; }
.map-card:hover .mc-img { transform: scale(1.02); }
.map-card .mc-img .mc-mini { position: absolute; right: 6px; bottom: 6px; width: 30%; aspect-ratio: 1; border-radius: 6px; background: #0b1e33 center / cover no-repeat; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.85); }
.map-card .mc-img.mix { padding: 0; gap: 2px; }
.map-card .mc-img.mix em { position: absolute; inset: 0; display: grid; place-items: center; font: 400 54px/1 'Black Han Sans', sans-serif; font-style: normal; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45), 0 0 18px rgba(0, 0, 0, 0.5); }

/* 23차 M44: 명예의 전당 탭 줄 오른쪽 끝의 "연습 경기도 포함" 체크박스(기본 꺼짐) */
.hof-tabs { display: flex; align-items: center; }
.hof-prac { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.hof-prac:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.hof-prac input { width: 15px; height: 15px; accent-color: var(--red); cursor: pointer; }
.hof-prac:has(input:checked) { color: #fff; background: rgba(255, 59, 48, 0.16); }

/* 23차 M42: 주주 플랫폼 꼬리표(숲 파랑 · 치지직 초록) */
.jc-plat { display: inline-block; margin-right: 5px; padding: 0 5px; border-radius: 4px; font: 700 10.5px/16px 'S-Core Dream', sans-serif; font-style: normal; color: #fff; vertical-align: 1px; }
.jc-plat.soop { background: #2f6bff; }
.jc-plat.chzzk { background: #00c785; color: #062a1f; }

/* 23차 M42 도박장: 큰 금빛 코인 테두리 주주 사진, 주주 n명 칩, 킬 +1, 탈락 회색·금 */
.label .ljj { max-width: 230px; padding: 2px 9px 2px 2px; gap: 6px; font-size: 12px; box-shadow: 0 0 10px rgba(242, 193, 78, 0.35); position: relative; }
.ljj-av .jja { --jz: 32px; box-shadow: 0 0 0 2px #f2c14e, 0 0 0 3.5px rgba(80, 50, 0, 0.9), 0 0 9px rgba(255, 205, 80, 0.7); animation: jjGlow 2.6s ease-in-out infinite; }
.ljj-av .jja + .jja { margin-left: -11px; }
@keyframes jjGlow { 0%, 100% { box-shadow: 0 0 0 2px #f2c14e, 0 0 0 3.5px rgba(80, 50, 0, 0.9), 0 0 6px rgba(255, 205, 80, 0.45); } 50% { box-shadow: 0 0 0 2px #ffe08a, 0 0 0 3.5px rgba(80, 50, 0, 0.9), 0 0 14px rgba(255, 215, 100, 0.85); } }
.label .ljj .ljj-n { flex: none; padding: 1px 6px; border-radius: 999px; background: linear-gradient(180deg, #ffe08a, #d9a227); color: #3b2500; font: 800 10.5px/15px var(--font-body); }
.label .ljj .ljj-plus { position: absolute; left: 10px; top: -4px; font: 400 18px/1 "Black Han Sans", sans-serif; font-style: normal; color: #ffe08a; text-shadow: 0 2px 0 #6a4200, 0 0 8px rgba(255, 200, 60, 0.9); opacity: 0; pointer-events: none; }
.label .ljj.gain .ljj-plus { animation: jjPlus 1.1s ease-out; }
.label .ljj.gain .jja { animation: jjBump 0.5s ease-out; }
@keyframes jjPlus { 0% { opacity: 0; transform: translateY(6px) scale(0.6); } 20% { opacity: 1; transform: translateY(-6px) scale(1.15); } 100% { opacity: 0; transform: translateY(-26px) scale(1); } }
@keyframes jjBump { 0% { transform: scale(1); } 35% { transform: scale(1.25); } 100% { transform: scale(1); } }
.label .ljj.lost { filter: grayscale(1) brightness(0.75); border-color: rgba(160, 160, 160, 0.6); box-shadow: none; }
.label .ljj.lost .jja { animation: none; }
.pop.betfail { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 999px; background: rgba(30, 30, 34, 0.88); border: 1px solid rgba(200, 200, 210, 0.45); color: #e6e6ea; font: 400 17px/1 "Black Han Sans", sans-serif; white-space: nowrap; }
.pop.betfail em { font: 700 11px/1 var(--font-body); font-style: normal; color: #b8b8c0; }
.pop.betfail .bf-av { display: inline-flex; }
.pop.betfail .jja { --jz: 30px; filter: grayscale(1); box-shadow: 0 0 0 2px #8a8a92; position: relative; }
.pop.betfail .jja + .jja { margin-left: -10px; }
.pop.betfail .jja::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 44%, rgba(20, 20, 24, 0.9) 45%, rgba(20, 20, 24, 0.9) 49%, transparent 50%), linear-gradient(35deg, transparent 58%, rgba(20, 20, 24, 0.85) 59%, rgba(20, 20, 24, 0.85) 62%, transparent 63%); }

/* 25차 P13: 넓은(큰) 화면에서도 UI 가 1920×1080 때와 같은 비율로 보이게 패널을 함께 키운다(--uiz 는 main.js 가 정한다: 가로·세로 배율 중 작은 쪽, 1~1.6).
   이름표(3D 위치를 따라감)·전체 화면 컷인·타이틀은 빼고, 모서리에 붙은 경기 화면 패널만 키운다 */
:root { --uiz: 1; }
#hud .hud-top, #hud .roster, #hud .info, #hud .czb, #hud .feed, #hud #minimap, #hud .duel, #hud .controls, #hud .tl, #hud .board, #hud .banner, #hud #ultChip, #hud #countdown, #hud #donoAlert { zoom: var(--uiz); }
/* 왼쪽 얼굴 목록은 위아래를 화면에 맞춘 높이라, 키운 만큼 높이를 줄여 아래로 넘치지 않게 */
#hud .roster { bottom: auto; height: calc((100vh - 138px * var(--uiz)) / var(--uiz)); }

/* 25차 P16: 도박장 타이틀 '참가자 크게 보기' 단추와 창(배경 불투명) */
.cz-peek { margin-top: 10px; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(242, 193, 78, 0.7); background: rgba(40, 20, 6, 0.85); color: #ffe7a3; font: 700 14px/1 var(--font-body); cursor: pointer; }
.cz-peek:hover { background: #f2c14e; color: #2a1600; }
.cz-view { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: minmax(300px, 34%) 1fr; gap: 2vw; padding: 3vh 3vw; overflow: hidden;
  background: radial-gradient(120% 90% at 18% 60%, #3a0d12 0%, #160707 55%, #0b0505 100%); }
.cz-view[hidden] { display: none; }
/* 왼쪽: 타이틀처럼 서 있는 캐릭터 */
.czv-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
.czv-kick { position: absolute; top: 0; left: 0; margin: 0; font: 700 13px/1 var(--font-body); letter-spacing: 0.12em; color: #f2c14e; }
.czv-body { position: absolute; left: 50%; bottom: 13vh; transform: translateX(-50%); max-width: 100%; height: 74vh; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.7)); }
.czv-name { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; border-radius: 14px; background: rgba(12, 6, 4, 0.82); border: 1px solid rgba(242, 193, 78, 0.45); }
.czv-name b { font: 400 clamp(28px, 4.2vh, 46px)/1 'Black Han Sans', var(--font-body); color: #fff4d6; }
.czv-name span { font: 700 16px/1 var(--font-body); color: #f2c14e; }
/* 오른쪽: 전원 격자(화면 높이에 맞춰 스크롤 없음) */
.czv-side { display: flex; flex-direction: column; min-height: 0; }
.czv-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 1.6vh; color: #ffe7a3; }
.czv-head b { font: 800 28px/1 var(--font-body); }
.czv-head span { font: 600 16px/1 var(--font-body); color: #c9b48a; }
.czv-x { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 231, 163, 0.4); background: transparent; color: #ffe7a3; font-size: 18px; cursor: pointer; }
.czv-x:hover { background: #d41f3a; color: #fff; border-color: #d41f3a; }
.czv-grid { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols, 8), 1fr); grid-template-rows: repeat(var(--rows, 4), 1fr); gap: 1.2vh 0.9vw; }
.czv-grid li { min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8vh; padding: 0.8vh 4px; border-radius: 12px; background: #1b1511; border: 1px solid rgba(242, 193, 78, 0.18); cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.czv-grid li.on { background: #3a2410; border-color: #f2c14e; }
.czv-grid img { width: min(100%, 13vh); aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; background: #2a2018; box-shadow: 0 0 0 3px #f2c14e; }
.czv-grid b { font: 800 clamp(13px, 1.9vh, 18px)/1.15 var(--font-body); color: #fff4d6; text-align: center; word-break: keep-all; }
.czv-grid small { font: 700 12px/1 var(--font-body); color: #f2c14e; }

/* 25차 P14: 사전 성향 아이콘 타일(성향 색 그라데이션 + 그림 문자)과 '신규' 표시 */
.cx-card header.cx-th { display: flex; align-items: center; gap: 12px; }
.cx-ti { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; line-height: 1;
  background: radial-gradient(120% 120% at 30% 20%, var(--a), var(--b)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.35); }
.cx-card.trait.hidden.locked .cx-ti { filter: grayscale(1) brightness(0.5); }
.cx-new { display: inline-block; margin-left: 7px; padding: 2px 7px 3px; border-radius: 999px; background: #ff3d5a; color: #fff; font: 800 11px/1.2 var(--font-body); letter-spacing: 0.02em; vertical-align: 3px; }
.cx-card header.cx-th > div { flex: 1; min-width: 0; text-align: left; display: block; }

/* 25차 P12: 우왁굳 궁극기 슬롯머신(777 잭팟처럼) */
.wak-slot { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(40, 10, 10, 0.55), rgba(0, 0, 0, 0.82)); pointer-events: none; }
.wak-slot[hidden] { display: none; }
.ws-box { position: relative; padding: 22px 28px 26px; border-radius: 26px; background: linear-gradient(180deg, #b3121f, #6a0710); border: 6px solid #f2c14e; box-shadow: 0 0 0 4px #5a3a00, 0 0 60px rgba(255, 190, 60, 0.55), inset 0 4px 0 rgba(255, 255, 255, 0.25); text-align: center; }
.ws-top { font: 900 34px/1 'Black Han Sans', var(--font-body); letter-spacing: 0.08em; color: #ffe066; text-shadow: 0 3px 0 #7a3a00, 0 0 18px rgba(255, 224, 102, 0.8); margin-bottom: 16px; }
.ws-reels { display: flex; gap: 14px; padding: 12px; border-radius: 16px; background: #1a0a06; box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.8); }
.ws-reel { width: 112px; height: 112px; overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, #d8d2c4, #fffdf6 40%, #fffdf6 60%, #c9c2b2); box-shadow: inset 0 0 0 3px #f2c14e; }
.ws-strip { will-change: transform; }
.ws-cell { height: 112px; display: grid; place-items: center; }
.ws-emo { font-size: 74px; line-height: 1; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.ws-blk { width: 72px; height: 72px; display: block; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35)); }
.ws-blk svg { width: 100%; height: 100%; display: block; }
.ws-img { width: 84px; height: 84px; object-fit: contain; display: block; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.3)); }
.ws-reel.done { box-shadow: inset 0 0 0 4px #ffe066, 0 0 18px rgba(255, 224, 102, 0.7); }
.ws-win { margin-top: 14px; font: 900 46px/1 'Black Han Sans', var(--font-body); color: #fff; opacity: 0; transform: scale(0.6); -webkit-text-stroke: 3px #b3121f; text-shadow: 0 0 24px #ffe066; }
.wak-slot.won .ws-win { opacity: 1; transform: scale(1); transition: transform 0.25s cubic-bezier(0.2, 1.6, 0.4, 1), opacity 0.1s; }
.wak-slot.won .ws-box { box-shadow: 0 0 0 4px #5a3a00, 0 0 120px rgba(255, 224, 102, 0.95), inset 0 4px 0 rgba(255, 255, 255, 0.25); }
