:root {
  --bg: #060608;
  --bg2: #0b0b0e;
  --card: #0e0e12;
  --card2: #121217;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.12);
  --text: #edebe6;
  --muted: #a4a3ae;
  --dim: #8e8d9b;
  --gold: #e7c873;
  --gold2: #b8913f;
  --goldsoft: rgba(231, 200, 115, 0.12);
  --up: #ff4d67;
  --upsoft: rgba(255, 77, 103, 0.12);
  --down: #3d8bff;
  --downsoft: rgba(61, 139, 255, 0.12);
  --positive-text: #ff8b9e;
  --negative-text: #8cbdff;
  --success-text: #74dda6;
  --gold-text: #f6cf75;
  --credit-panel: #131723;
  --credit-surface: #1b2434;
  --credit-input: #1e2637;
  --flat: #6f6f79;
  --serif: 'Instrument Serif', 'Nanum Myeongjo', 'Times New Roman', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --r: 18px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  word-break: keep-all;
}
.mono { font-family: var(--mono); font-feature-settings: 'zero' 0; letter-spacing: -0.02em; }
b { font-weight: 650; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 28px; }

.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(231, 200, 115, 0.09), transparent 60%),
    radial-gradient(700px 400px at 0% 30%, rgba(255, 77, 103, 0.035), transparent 60%),
    radial-gradient(700px 400px at 100% 70%, rgba(61, 139, 255, 0.035), transparent 60%);
}
main, header { position: relative; z-index: 1; }

/* ── TOPBAR ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.logo { position: relative; width: 38px; height: 38px; display: block; }
.logo svg { width: 38px; height: 38px; display: block; filter: drop-shadow(0 4px 14px rgba(231, 200, 115, 0.25)); }
.logo .brand-logo { width: 40px; height: 40px; display: block; border-radius: 11px; box-shadow: 0 4px 16px rgba(240, 185, 11, 0.35), 0 0 0 1px rgba(240, 185, 11, 0.35); }
.tassel {
  position: absolute; left: 19px; top: 13px; width: 14px; height: 1.5px;
  background: var(--gold); transform-origin: 0 50%; transform: rotate(8deg);
}
.tassel i {
  position: absolute; right: -1px; top: 0; width: 1.5px; height: 14px; background: var(--gold);
  transform-origin: 50% 0; animation: swing 3.2s ease-in-out infinite;
}
.tassel i::after {
  content: ''; position: absolute; left: -2.5px; bottom: -6px; width: 6.5px; height: 7px;
  background: linear-gradient(var(--gold), var(--gold2)); border-radius: 1px 1px 3px 3px;
}
@keyframes swing { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-weight: 900; letter-spacing: -0.01em; font-size: 19px; background: linear-gradient(135deg, #ffe08a, #f0b90b 55%, #d99a06); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { color: var(--muted); font-size: 11px; margin-top: 2px; letter-spacing: 0.12em; font-weight: 700; text-transform: none; }
html[data-theme="light"] .brand-text b { background-image: linear-gradient(135deg, #e0a100, #b97800 55%, #8a5600); }

.conn { display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--muted); font-size: 12px;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.pill.ok i { background: #3ddc97; box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.15); }
.pill.err i { background: var(--up); }
.pill.ok { color: var(--text); }
.clock { color: var(--muted); font-size: 12px; margin-left: 6px; min-width: 64px; text-align: right; }

/* ── HERO ── */
.hero {
  display: grid; grid-template-columns: 0.95fr 1.1fr; gap: 48px; align-items: end;
  padding: 56px 0 36px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(231, 200, 115, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(231, 200, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 200, 115, 0); }
}
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.98; letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: italic; white-space: nowrap;
  background: linear-gradient(100deg, #f6e3a1, #e2be66 45%, #a9822f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); max-width: 560px; margin: 22px 0 26px; font-size: 15px; line-height: 1.7; }
.lede b { color: var(--text); font-weight: 600; }
.scanline { display: flex; align-items: center; gap: 14px; }
.scanbar { width: 160px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.scanbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold2), var(--gold)); transition: width 0.9s linear; }
.scanbar i.busy { width: 40% !important; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
#scantext { font-size: 11.5px; color: var(--muted); }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.stat.gold { border-color: rgba(231, 200, 115, 0.28); background: linear-gradient(180deg, rgba(231, 200, 115, 0.08), rgba(231, 200, 115, 0.01)); }
.stat-k { font-size: 12px; color: var(--muted); }
.stat-v { font-size: 26px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.25; margin-top: 4px; }
.stat.gold .stat-v { color: var(--gold); }
.stat-s { font-size: 11px; color: var(--dim); }
.thermo { margin-top: 10px; height: 4px; background: linear-gradient(90deg, var(--down), #3a3a44 50%, var(--up)); border-radius: 4px; position: relative; opacity: 0.85; }
.thermo i { position: absolute; top: -4px; width: 2px; height: 12px; background: #fff; border-radius: 2px; left: 50%; transition: left 0.8s; box-shadow: 0 0 8px #fff; }

/* ── CONTROLS ── */
.controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 6px 0 16px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.seg button {
  font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; padding: 7px 16px;
  border-radius: 9px; cursor: pointer; transition: 0.2s;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: #1d1d24; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.segs { display: flex; gap: 10px; flex-wrap: wrap; }
.seg.mode button.on { background: linear-gradient(180deg, rgba(231, 200, 115, .18), rgba(231, 200, 115, .06)); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(231, 200, 115, .35); }
.rsiv.sig { color: var(--sig); font-weight: 600; }
.mode-tag { font-family: var(--mono); font-size: 10px; padding: 1px 6px; border-radius: 5px; background: var(--goldsoft); color: var(--gold); margin-left: 6px; letter-spacing: .02em; text-transform: none; }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg.full { background: var(--gold); }
.lg.near { border: 2px solid var(--gold); }
.lg.trend { background: rgba(231, 200, 115, 0.3); transform: scale(0.7); }
.lg.off { border: 1.5px solid #3a3a44; }

/* ── BOARDS ── */
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.board {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 10px;
  position: relative; overflow: hidden;
}
.board::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.6;
}
.board.up { --accent: var(--up); --accentsoft: var(--upsoft); }
.board.down { --accent: var(--down); --accentsoft: var(--downsoft); }
.board-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.board-eyebrow { margin: 0 0 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.board h2, .sec-h h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.board h2 span { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); font-size: 28px; margin-left: 4px; }
.board-desc { margin: 0; color: var(--muted); font-size: 12px; text-align: right; max-width: 260px; line-height: 1.5; }
.board-desc b { color: var(--accent); font-weight: 600; }

.list { display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 76px 108px 96px 54px; gap: 12px; align-items: center;
  padding: 14px 8px 12px; margin: 0 -8px; border-top: 1px solid var(--line); cursor: pointer;
  border-radius: 12px; transition: background 0.2s; position: relative;
  animation: rowin 0.5s both;
}
.row:first-child { border-top-color: transparent; }
.row:hover { background: rgba(255, 255, 255, 0.025); }
.row:hover + .row { border-top-color: transparent; }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } }
.rank { font-family: var(--serif); font-size: 28px; color: var(--dim); line-height: 1; font-style: italic; }
.row:nth-child(1) .rank { color: var(--gold); }
.coin { min-width: 0; }
.sym { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; flex-wrap: wrap; }
.nm { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 5px; color: var(--muted); background: #1a1a20; letter-spacing: 0; }
.ex.upbit { color: #7fb2ff; background: rgba(9, 54, 135, 0.35); }
.ex.bithumb { color: #ffa462; background: rgba(240, 116, 30, 0.14); }
.badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; letter-spacing: 0; white-space: nowrap; }
.badge.grad { color: #1a1406; background: linear-gradient(100deg, #f6e3a1, #d9b257); }
.badge.warn { color: var(--down); background: var(--downsoft); }
.badge.caution { color: #ffcf5a; background: rgba(255, 207, 90, 0.1); }
.badge.surge { color: var(--accent); background: var(--accentsoft); }

.spark { width: 76px; height: 30px; display: block; }

.matrix { display: grid; grid-template-columns: auto 1fr 1fr; gap: 3px 8px; align-items: center; font-size: 10px; color: var(--dim); font-family: var(--mono); }
.matrix .h { text-align: center; color: var(--muted); }
.matrix .lb { text-align: right; white-space: nowrap; }
.cell { display: flex; justify-content: center; }
.dt { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #34343d; }
.dt.full { background: var(--sig); border-color: var(--sig); box-shadow: 0 0 8px color-mix(in srgb, var(--sig) 60%, transparent); }
.dt.near { border: 2px solid var(--sig); animation: blink 1.4s ease-in-out infinite; }
.dt.trend { background: color-mix(in srgb, var(--sig) 32%, transparent); border-color: transparent; transform: scale(0.75); }
@keyframes blink { 50% { opacity: 0.35; } }
.board.up .row, .drawer .up { --sig: var(--gold); }
.board.down .row, .drawer .down { --sig: var(--down); }
.rsiv { font-size: 10.5px; text-align: center; color: var(--text); }
.rsiv.bad { color: var(--up); }
.board.down .rsiv.bad { color: var(--down); }

.px { text-align: right; }
.px .p { font-family: var(--mono); font-size: 13.5px; font-weight: 500; transition: color 0.4s; }
.px .r { font-family: var(--mono); font-size: 12px; }
.flash-up { color: var(--positive-text) !important; }
.flash-down { color: var(--negative-text) !important; }
.c-up { color: var(--positive-text); }
.c-down { color: var(--negative-text); }
.c-warn { color: var(--gold-text); }
.c-flat { color: var(--muted); }

.ring { position: relative; width: 54px; height: 54px; justify-self: end; }
.ring svg { width: 54px; height: 54px; transform: rotate(-90deg); }
.ring .rv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring .rv b { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.ring .rv small { font-size: 9px; color: var(--muted); margin-top: 3px; font-family: var(--mono); }

.flowline { grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); margin-top: -2px; }
.fbar { flex: 1; height: 4px; border-radius: 4px; background: var(--downsoft); overflow: hidden; display: flex; }
.fbar i { display: block; height: 100%; background: linear-gradient(90deg, rgba(255, 77, 103, 0.55), var(--up)); border-radius: 4px; }
.fl-b { color: var(--up); font-family: var(--mono); }
.fl-s { color: var(--down); font-family: var(--mono); }
.fl-w { font-family: var(--mono); white-space: nowrap; }

.empty { padding: 34px 10px 40px; text-align: center; color: var(--muted); font-size: 13px; }
.empty svg { width: 40px; height: 40px; opacity: 0.5; display: block; margin: 0 auto 12px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-4deg); } }
.skel { height: 66px; border-radius: 12px; margin: 6px 0; background: linear-gradient(90deg, #101015 0%, #17171d 50%, #101015 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── SECTIONS ── */
.futures, .radar, .dna, .perf { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-src { margin: 0; color: var(--dim); font-size: 11.5px; }

.fut-grid { display: grid; grid-template-columns: 340px 1fr; gap: 14px; }
.verdict {
  position: relative; border-radius: var(--r); padding: 20px; border: 1px solid var(--line2);
  background: radial-gradient(120% 90% at 50% 0%, var(--vglow, rgba(255, 255, 255, 0.04)), transparent 70%), var(--card2);
  display: flex; flex-direction: column; transition: background 0.6s;
}
.verdict.LONG { --vglow: rgba(255, 77, 103, 0.16); border-color: rgba(255, 77, 103, 0.3); }
.verdict.SHORT { --vglow: rgba(61, 139, 255, 0.16); border-color: rgba(61, 139, 255, 0.3); }
.v-top { display: flex; justify-content: space-between; align-items: baseline; }
.v-label { font-size: 12px; color: var(--muted); }
.v-price { font-size: 13px; }
.v-main { margin: 14px 0 0; display: flex; flex-direction: column; }
.v-pos { font-family: var(--serif); font-size: 64px; line-height: 0.95; letter-spacing: -0.02em; }
.verdict.LONG .v-pos { color: var(--up); }
.verdict.SHORT .v-pos { color: var(--down); }
.verdict.NEUTRAL .v-pos { color: var(--text); }
.v-sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.gauge { position: relative; margin: 14px auto 0; width: 220px; }
.gauge svg { width: 100%; display: block; }
#needle { transition: transform 1s cubic-bezier(0.3, 1.4, 0.5, 1); }
.g-t { fill: var(--dim); font: 600 8px var(--mono); letter-spacing: 0.1em; }
.g-score { display: block; margin-top: 4px; text-align: center; font-size: 12px; color: var(--muted); }
.v-spark { width: 100%; height: 56px; margin-top: 16px; display: block; }
.v-spark-l { font-size: 10.5px; color: var(--dim); margin-top: 4px; font-family: var(--mono); }

.tfs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tf {
  position: relative; background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 10px; transition: border-color 0.4s;
}
.tf.best { border-color: rgba(231, 200, 115, 0.5); box-shadow: 0 0 0 1px rgba(231, 200, 115, 0.15), 0 10px 40px -20px rgba(231, 200, 115, 0.5); }
.tf-best { position: absolute; top: -9px; right: 12px; font-size: 10px; font-weight: 700; color: #1a1406; background: linear-gradient(100deg, #f6e3a1, #d9b257); padding: 2px 8px; border-radius: 99px; }
.tf-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.tf-pos { font-family: var(--mono); font-weight: 600; font-size: 24px; letter-spacing: -0.03em; line-height: 1.1; }
.tf-pos.LONG { color: var(--up); }
.tf-pos.SHORT { color: var(--down); }
.tf-pos.NEUTRAL { color: var(--flat); }
.tf-pos small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.sbar { position: relative; height: 6px; border-radius: 6px; background: #1b1b22; overflow: hidden; }
.sbar::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #3a3a44; }
.sbar i { position: absolute; top: 0; bottom: 0; border-radius: 6px; transition: all 0.8s; }
.stc svg { width: 100%; height: 64px; display: block; border-radius: 8px; background: rgba(255, 255, 255, 0.015); }
.stc-l { display: flex; gap: 10px; font-size: 10px; color: var(--dim); margin-top: 5px; font-family: var(--mono); }
.stc-l span { display: inline-flex; align-items: center; gap: 4px; }
.stc-l span:last-child { margin-left: auto; }
.stc-l i { width: 8px; height: 2px; display: inline-block; border-radius: 2px; }
.tf-rows { margin-top: auto; display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-family: var(--mono); color: var(--muted); }
.tf-rows div { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tf-rows .st { font-family: var(--sans); font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; }
.st.bullish { color: var(--up); background: var(--upsoft); }
.st.bearish { color: var(--down); background: var(--downsoft); }
.st.neutral { color: var(--muted); background: #1b1b22; }

.fut-bottom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin-top: 14px; }
.deriv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dv { background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.dv-k { font-size: 11.5px; color: var(--muted); }
.dv-v { font-family: var(--mono); font-size: 18px; font-weight: 500; margin-top: 4px; letter-spacing: -0.03em; }
.dv-s { font-size: 10.5px; color: var(--dim); margin-top: 2px; }
.lsbar { display: flex; height: 4px; border-radius: 4px; overflow: hidden; margin-top: 8px; background: var(--down); }
.lsbar i { background: var(--up); display: block; }
.comments { background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.c-h { margin: 0 0 10px; font-size: 12px; color: var(--gold); font-family: var(--mono); letter-spacing: 0.08em; }
.comments ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.comments li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.55; color: #cfcdc7; }
.comments li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 1px; transform: rotate(45deg); background: var(--gold); opacity: 0.8; }

/* ── RADAR ── */
.radar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radar-col { background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.r-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; font-weight: 700; }
.r-h small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.radar-col.in .r-h span { color: var(--up); }
.radar-col.out .r-h span { color: var(--down); }
.r-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 1.2fr 86px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.r-row:first-child { border-top: 0; }
.r-row:hover .r-sym { color: var(--gold); }
.r-n { font-family: var(--mono); color: var(--dim); font-size: 11px; }
.r-sym { font-weight: 650; display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; transition: color 0.2s; }
.r-bar { height: 6px; border-radius: 6px; background: #1b1b22; overflow: hidden; }
.r-bar i { display: block; height: 100%; border-radius: 6px; }
.radar-col.in .r-bar i { background: linear-gradient(90deg, rgba(255, 77, 103, 0.3), var(--up)); }
.radar-col.out .r-bar i { background: linear-gradient(90deg, rgba(61, 139, 255, 0.3), var(--down)); }
.r-v { text-align: right; font-family: var(--mono); font-size: 12.5px; }

.thermo.fg { background: linear-gradient(90deg, #3d8bff, #6f6f79 50%, #ff4d67); }

/* reasons on rows */
.why { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: -4px; align-items: center; }
.chip { font-size: 10.5px; padding: 2px 7px; border-radius: 6px; background: #17171d; color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.chip.good { color: var(--sig); border-color: color-mix(in srgb, var(--sig) 35%, transparent); background: color-mix(in srgb, var(--sig) 8%, transparent); }
.chip.warn { color: #ffcf5a; border-color: rgba(255, 207, 90, 0.25); }
.chip.cal { margin-left: auto; font-family: var(--mono); color: var(--text); border-color: var(--line2); }
.chip.cal b { color: var(--sig); font-weight: 600; }

.tgt { display: inline-flex; gap: 7px; align-items: center; font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 6px; background: #121218; border: 1px solid var(--line2); }
.tgt small { color: var(--muted); font-size: 10px; }
.vpvr { width: 100%; display: block; margin-top: 4px; }

/* ── DNA ── */
.dna-ex { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ex-card { background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; transition: border-color .2s; }
.ex-card:hover { border-color: rgba(231, 200, 115, .35); }
.ex-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ex-h b { font-size: 15px; }
.ex-gain { font-family: var(--mono); color: var(--up); font-weight: 600; font-size: 15px; }
.ex-sub { font-size: 11px; color: var(--muted); margin: 2px 0 10px; }
.ex-chart { width: 100%; display: block; }
.ex-chart text { font: 500 8px var(--mono); fill: var(--dim); }
.ex-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; margin-top: 10px; font-size: 10.5px; font-family: var(--mono); color: var(--muted); }
.ex-vals span b { color: var(--text); font-weight: 500; }
.dna-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; margin-top: 14px; }
.dna-common, .dna-match { background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.dna-common ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.dna-common li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; font-size: 13px; color: #cfcdc7; line-height: 1.5; }
.agree { font-family: var(--mono); font-size: 11px; text-align: center; border-radius: 6px; padding: 2px 0; background: #1b1b22; color: var(--muted); }
.agree.full { background: var(--goldsoft); color: var(--gold); }
.dna-val { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.6; }
.dna-val b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.m-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 60px; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.m-row:first-of-type { border-top: 0; }
.m-row:hover .sym { color: var(--gold); }
.m-feats { display: flex; gap: 3px; margin-top: 6px; flex-wrap: wrap; }
.m-feats i { font-style: normal; font-size: 9.5px; font-family: var(--mono); padding: 1px 5px; border-radius: 4px; background: #1b1b22; color: var(--dim); }
.m-feats i.on { background: var(--goldsoft); color: var(--gold); }
.simbar { height: 6px; border-radius: 6px; background: #1b1b22; overflow: hidden; }
.simbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); border-radius: 6px; }
.simv { font-family: var(--mono); font-size: 18px; text-align: right; color: var(--gold); }
.simv small { font-size: 10px; color: var(--muted); }

/* ── PERF ── */
.perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.perf-col { background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.ptable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ptable th { text-align: right; font-weight: 500; color: var(--muted); font-size: 11px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ptable th:first-child, .ptable td:first-child { text-align: left; }
.ptable td { text-align: right; padding: 8px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.ptable td:first-child { font-family: var(--sans); color: var(--muted); }
.ptable tr.hl td { background: rgba(231, 200, 115, .04); }
.hit-hi { color: var(--gold); }
.p-note { font-size: 11.5px; color: var(--dim); margin: 10px 0 0; line-height: 1.6; }
.p-note b { color: var(--muted); }
.p-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.p-big div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.p-big span { display: block; font-size: 11px; color: var(--muted); }
.p-big b { font-family: var(--mono); font-size: 22px; font-weight: 500; }
.p-big small { font-size: 11px; color: var(--dim); font-family: var(--mono); }
.p-sub { margin: 16px 0 6px; font-size: 11px; color: var(--dim); font-family: var(--mono); letter-spacing: .1em; }
.tf-bt { font-size: 10.5px; color: var(--muted); border-top: 1px dashed var(--line2); padding-top: 8px; font-family: var(--mono); display: flex; justify-content: space-between; }
.tf-bt b { color: var(--gold); font-weight: 600; }

/* ── METHOD / FOOT ── */
.method { margin-top: 16px; }
.method details { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 4px 24px; }
.method summary { cursor: pointer; padding: 18px 0; font-weight: 650; list-style: none; display: flex; align-items: center; gap: 8px; }
.method summary::-webkit-details-marker { display: none; }
.method summary::before { content: '+'; font-family: var(--mono); color: var(--gold); width: 16px; }
.method details[open] summary::before { content: '–'; }
.method summary span { color: var(--muted); font-weight: 400; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px; padding: 6px 0 24px; }
.method h4 { margin: 0 0 6px; font-size: 13px; color: var(--gold); font-weight: 600; }
.method p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.method p b { color: var(--text); }
.foot { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 32px 0 48px; color: var(--dim); font-size: 11.5px; }
.foot p { margin: 0; max-width: 720px; text-align: right; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); letter-spacing: 0.24em; color: var(--muted); font-size: 11px; }
.foot-brand svg, .foot-brand img { width: 20px; height: 20px; border-radius: 5px; }

/* ── DRAWER ── */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: 0.3s; z-index: 40; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 41;
  background: #0b0b0f; border-left: 1px solid var(--line2); padding: 28px 26px 40px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer.on { transform: none; }
.d-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--muted); cursor: pointer; font-size: 14px; }
.d-close:hover { color: var(--text); }
.d-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.d-h h3 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.d-nm { color: var(--muted); margin: 0 0 18px; }
.d-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.d-price b { font-family: var(--mono); font-size: 28px; font-weight: 500; letter-spacing: -0.04em; }
.d-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.d-sc { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card); }
.d-sc.up { border-color: rgba(231, 200, 115, 0.25); }
.d-sc.down { border-color: rgba(61, 139, 255, 0.25); }
.d-sc .k { font-size: 11.5px; color: var(--muted); }
.d-sc .v { font-family: var(--mono); font-size: 26px; margin-top: 2px; }
.d-sc.up .v { color: var(--gold); }
.d-sc.down .v { color: var(--down); }
.d-sc .s { font-size: 11px; color: var(--dim); font-family: var(--mono); }
.d-sec { margin: 22px 0 8px; font-size: 11px; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.d-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.d-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.d-table td { padding: 9px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.d-table td:first-child { font-family: var(--sans); color: var(--muted); }
.d-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.d-kv div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.d-kv span { display: block; font-size: 11px; color: var(--muted); }
.d-kv b { font-family: var(--mono); font-weight: 500; font-size: 15px; }
.d-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--gold); text-decoration: none; font-size: 13px; border: 1px solid rgba(231, 200, 115, 0.3); padding: 10px 14px; border-radius: 12px; }
.d-link:hover { background: var(--goldsoft); }
.d-spark { width: 100%; height: 80px; display: block; margin-bottom: 6px; }

/* ── AUTH / LOCK ── */
.auth-box { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; }
.btn { font: inherit; font-size: 13px; font-weight: 600; border-radius: 10px; padding: 8px 14px; cursor: pointer; border: 1px solid var(--line2); background: var(--card); color: var(--text); transition: .2s; }
.btn:hover { border-color: rgba(231, 200, 115, .5); }
.btn.gold { color: #1a1406; border-color: transparent; background: linear-gradient(100deg, #f6e3a1, #d9b257); }
.btn.gold:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; padding: 12px; font-size: 14px; }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.macro-tab { text-decoration: none; color: var(--text); }
.macro-tab:hover { color: var(--gold); }
.admin-tab { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--gold); border-color: rgba(231, 200, 115, .4); background: var(--goldsoft); }
.badge-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--up); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); }
.me { font-size: 12.5px; color: var(--muted); }
.me b { color: var(--gold); font-weight: 600; }

.gate-wrap { position: relative; }
body.locked .gated { display: none; }
body.locked .gate-wrap .list { filter: blur(9px) saturate(.7); opacity: .7; pointer-events: none; user-select: none; }
body.locked .gate-wrap .row { cursor: default; }
.lock { position: absolute; left: 0; right: 0; top: 118px; bottom: -40px; z-index: 5; display: flex; justify-content: center; align-items: flex-start; padding-top: 70px;
  background: linear-gradient(180deg, rgba(6, 6, 8, 0) 0%, rgba(6, 6, 8, .55) 30%, rgba(6, 6, 8, .92) 100%); }
.lock[hidden] { display: none; }
.lock-card { text-align: center; max-width: 460px; padding: 34px 32px 30px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08); }
.lock-ico { width: 84px; height: 98px; display: block; margin: 0 auto 16px; filter: drop-shadow(0 10px 30px rgba(231, 200, 115, .25)); animation: bob 3.2s ease-in-out infinite; }
.lock-card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.03em; }
.lock-card p { margin: 0 0 22px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.lock-card p b { color: var(--gold); font-weight: 600; }
.lock-btns { display: flex; gap: 10px; justify-content: center; }
.lock-btns .btn { min-width: 120px; padding: 11px 18px; }

.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #0c0c10; border: 1px solid var(--line2); border-radius: 22px; padding: 26px 26px 22px; box-shadow: 0 40px 100px -30px #000; animation: rowin .3s both; }
.m-brand { display: flex; align-items: center; gap: 8px; font-family: var(--mono); letter-spacing: .24em; font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.m-brand svg, .m-brand img { width: 22px; height: 22px; border-radius: 6px; }
.m-tabs { display: inline-flex; padding: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; }
.m-tabs button { font: inherit; font-size: 12.5px; background: none; border: 0; color: var(--muted); padding: 6px 14px; border-radius: 8px; cursor: pointer; }
.m-tabs button.on { background: #1d1d24; color: var(--text); }
.m-form h3, .m-done h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.02em; }
.m-form h3 small { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.m-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 11px; }
.m-form input:not([type=checkbox]) { font: inherit; font-size: 14px; color: var(--text); background: var(--card); border: 1px solid var(--line2); border-radius: 10px; padding: 11px 12px; outline: none; transition: border-color .2s; }
.m-form input:focus { border-color: rgba(231, 200, 115, .6); box-shadow: 0 0 0 3px rgba(231, 200, 115, .1); }
.m-form input.bad { border-color: var(--up); }
.m-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin: 4px 0 6px; background: var(--card); }
.chk { flex-direction: row !important; align-items: center; gap: 9px !important; margin: 0 !important; color: var(--text) !important; font-size: 13px !important; cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: #d9b257; }
.chk b { color: var(--gold); }
.consent details { margin-top: 8px; font-size: 12px; color: var(--muted); }
.consent summary { cursor: pointer; color: var(--dim); }
.consent ul { margin: 8px 0 0; padding-left: 16px; line-height: 1.7; }
.consent ul b { color: var(--text); font-weight: 500; margin-right: 4px; }
.m-err { min-height: 18px; margin: 6px 0 8px; color: var(--up); font-size: 12.5px; }
.m-foot { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--dim); }
.m-foot a { color: var(--gold); }
.m-done { text-align: center; padding: 10px 0 4px; }
.m-done svg { width: 64px; height: 64px; margin: 6px auto 8px; display: block; animation: bob 2.4s ease-in-out infinite; }
.m-done p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin: 0 0 18px; }

/* ── 회원: 관심종목 · 레벨 · 알림 ── */
.star { font: inherit; font-size: 15px; line-height: 1; background: none; border: 0; color: var(--dim); cursor: pointer; padding: 0 2px; transition: transform .15s, color .15s; }
.star:hover { color: var(--gold); transform: scale(1.2); }
.star.on { color: var(--gold); }
.me-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-size: 13px; padding: 5px 10px 5px 6px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); }
.me-link:hover { border-color: rgba(231, 200, 115, .5); }
.lv-chip { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 7px; color: var(--text); background: color-mix(in srgb, var(--cap) 14%, transparent); border: 1px solid color-mix(in srgb, var(--cap) 40%, transparent); }
.bell { position: relative; text-decoration: none; font-size: 16px; padding: 4px 6px; }
.bell .badge-n { position: absolute; top: -4px; right: -6px; }
.watch-strip { margin: 0 0 16px; }
.ws-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ws-h a { color: var(--gold); font-size: 12.5px; text-decoration: none; }
.wcards { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.wcard { flex: 0 0 200px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; cursor: pointer; transition: border-color .2s; color: inherit; text-decoration: none; }
.wcard:hover { border-color: rgba(231, 200, 115, .45); }
.wcard.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--gold); font-size: 22px; border-style: dashed; flex-basis: 140px; }
.wcard.add span { font-size: 12px; color: var(--muted); }
.wc-h { display: flex; align-items: center; gap: 6px; }
.wc-h b { font-size: 15px; }
.wc-h .star { margin-left: auto; }
.wc-p { font-size: 13.5px; margin-top: 6px; }
.wc-p span { font-size: 12px; }
.wc-s { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.wc-s b { font-family: var(--mono); font-weight: 600; color: var(--text); }
.wc-t { font-size: 11.5px; margin-top: 4px; }
.wc-g { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.wempty { flex: 1; padding: 16px 18px; border: 1px dashed var(--line2); border-radius: 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.wempty a { color: var(--gold); }
.wempty b { color: var(--gold); }

/* ── 정밀 셋업 ── */
.precise { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.ps-desc { margin: -6px 0 16px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.ps-desc b { color: var(--gold); font-weight: 600; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 12px; }
.pcard { background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; cursor: pointer; transition: border-color .2s; display: flex; flex-direction: column; gap: 10px; }
.pcard:hover { border-color: rgba(231, 200, 115, .45); }
.pcard.grade-A { border-color: rgba(231, 200, 115, .5); box-shadow: 0 16px 50px -30px rgba(231, 200, 115, .6); }
.pc-h { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pc-h b { font-size: 17px; }
.pc-px { margin-left: auto; font-size: 13px; }
.pgrade { font-family: var(--mono); font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 8px; background: #2a2a33; color: #cfd5dd; }
.grade-A .pgrade { color: #1a1406; background: linear-gradient(100deg, #f6e3a1, #d9b257); }
.pc-type { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.pc-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--dim); }
.pc-checks li { display: flex; gap: 8px; align-items: baseline; }
.pc-checks li i { font-style: normal; width: 14px; text-align: center; font-weight: 700; }
.pc-checks li.ok { color: var(--text); }
.pc-checks li.ok i { color: #3ddc97; }
.pc-plan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pc-plan div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; min-width: 0; }
.pc-plan span { display: block; font-size: 10.5px; color: var(--muted); }
.pc-plan b { font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pc-plan small { font-size: 10px; }
.pc-facts { display: flex; flex-wrap: wrap; gap: 4px; }
.pc-warn { font-size: 12px; color: #ffcf5a; background: rgba(255, 207, 90, .08); border: 1px solid rgba(255, 207, 90, .25); border-radius: 10px; padding: 7px 10px; }
.pc-calc { font-size: 12.5px; color: var(--gold); text-decoration: none; }
.st-a { color: #3ddc97; font-size: 11.5px; }
.st-d { color: var(--up); font-size: 11.5px; }
.st-c { color: var(--dim); font-size: 11.5px; }

/* ── 레버리지 · 유동성 ── */
.lev-grid { display: grid; grid-template-columns: 1fr 1.6fr 1fr 1fr; gap: 10px; }
.lev-card { background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.lev-card .dv-k .dim { font-size: 10.5px; margin-left: 4px; }
.lev-big { font-size: 22px; font-weight: 750; letter-spacing: -.03em; margin: 6px 0 4px; }
.lev-desc { font-size: 12.5px; line-height: 1.65; color: #cfcdc7; margin: 0; }
.lev-sub { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.liq-svg { width: 100%; height: 130px; display: block; margin-top: 8px; }
.liq-svg text { font: 500 9px var(--mono); fill: var(--dim); }
.liq-legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin-top: 4px; }
.liq-legend i { display: inline-block; width: 10px; height: 8px; border-radius: 2px; margin-right: 5px; }
.ls-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 7px 0; border-top: 1px solid var(--line); }
.ls-row:first-of-type { border-top: 0; margin-top: 6px; }
.ls-row b { font-family: var(--mono); font-weight: 500; font-size: 12px; text-align: right; }
.on-dot-s { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; margin-left: 4px; box-shadow: 0 0 6px #3ddc97; }
.cwarn-s { margin-top: 8px; font-size: 12px; line-height: 1.5; color: #ffb3c0; background: var(--upsoft); border: 1px solid rgba(255, 77, 103, .3); border-radius: 10px; padding: 7px 9px; }
.cok-s { margin-top: 8px; font-size: 12px; line-height: 1.5; color: #9fe9c6; background: rgba(61, 220, 151, .07); border: 1px solid rgba(61, 220, 151, .25); border-radius: 10px; padding: 7px 9px; }

/* ── 모바일 · 태블릿 ── */
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
* { -webkit-tap-highlight-color: transparent; }
.topbar, .atop { padding-top: env(safe-area-inset-top); }
.modal-card { max-height: calc(100dvh - 32px); }
.perf-col { overflow-x: auto; }
.mnav { display: none; }
@media (max-width: 700px) {
  /* 하단 탭 바 (앱처럼) */
  .mnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(10, 10, 13, .92); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-top: 1px solid var(--line2); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 10.5px; padding: 4px 0; border-radius: 10px; }
  .mnav a.on { color: var(--gold); }
  .mnav a.on .mi { transform: translateY(-1px); }
  .mnav .mi { position: relative; font-size: 19px; line-height: 1.2; }
  .mnav .mi b { position: absolute; top: -3px; right: -12px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--up); color: #fff; font: 700 9.5px/16px var(--mono); text-align: center; }
  body.has-mnav { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.has-mnav .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  /* 상단 바는 슬림하게: 메뉴는 하단 탭으로 */
  body.has-mnav .auth-box .macro-tab, body.has-mnav .auth-box .admin-tab, body.has-mnav .auth-box .bell, body.has-mnav .auth-box .me-link { display: none; }
  body.has-mnav .aright > a.btn { display: none; }
  .brand-text small { display: none; }
  .topbar-in, .atop-in { gap: 10px; }
  .auth-box .btn.sm { padding: 6px 10px; }
  /* 마이페이지 · 관리자 · 경제지표: 탭 메뉴는 상단 바 아래 한 줄로 (옆으로 밀어서 이동) */
  body .atop-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 0; row-gap: 2px; }
  body .atop-in .atabs { order: 3; flex: 0 0 100%; padding-bottom: 8px; scrollbar-width: none; }
  body .atop-in .atabs::-webkit-scrollbar { display: none; }
  body .atop-in .aright { margin-left: auto; }
  /* iOS: 입력칸 글자가 16px 미만이면 자동 확대돼서 16px로 */
  input, select, textarea, .m-form input:not([type=checkbox]), .search { font-size: 16px !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1180px) {
  .lev-grid { grid-template-columns: 1fr 1fr; }
  .lev-card.wide { grid-column: 1 / -1; }
  .boards { grid-template-columns: 1fr; }
  .dna-ex { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dna-grid, .perf-grid { grid-template-columns: 1fr; }
  .fut-grid { grid-template-columns: 1fr; }
  .tfs { grid-template-columns: repeat(5, minmax(min(150px, 100%), 1fr)); overflow-x: auto; padding-top: 10px; }
  .fut-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .conn .pill { display: none; }
  .clock { display: none; }
  .m-row2 { grid-template-columns: 1fr; }
  .lock { padding-top: 30px; }
  .lock-card { padding: 26px 20px; }
  .row { grid-template-columns: 26px minmax(0, 1fr) 96px 54px; }
  .row .spark { display: none; }
  .row .matrix { grid-column: 2 / -1; grid-row: 2; grid-template-columns: auto 26px 26px; justify-content: start; }
  .row .flowline { grid-row: 3; }
  .deriv { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .dna-ex { grid-template-columns: 1fr; }
  .pc-plan { grid-template-columns: 1fr 1fr; }
  .pcards { grid-template-columns: 1fr; }
  .lev-grid { grid-template-columns: 1fr; }
  .why { grid-row: 4; }
  .radar-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .board-h { flex-direction: column; align-items: flex-start; }
  .board-desc { text-align: left; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── 스토캐스틱 대·중·소파동 분석 ── */
.wave-wrap { margin-top: 18px; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.wave-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.wave-tfs button { font-size: 12px; padding: 5px 10px; }
.wave { display: flex; flex-direction: column; gap: 12px; }
.wv-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.wv-combo, .wv-mtf { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.wv-combo small, .wv-mtf small { font-size: 10.5px; color: var(--dim); letter-spacing: .02em; }
.wv-combo b { font-size: 18px; letter-spacing: -.02em; }
.wv-combo.up b { color: var(--up); }
.wv-combo.down b { color: var(--down); }
.wv-combo.flat b { color: var(--gold); }
.wv-combo span, .wv-mtf span { font-size: 12.5px; color: #cfcdc7; line-height: 1.5; }
.wv-mtf.warn { border-color: rgba(255, 207, 90, .28); }
.wv-mtf em { font-style: normal; font-size: 12px; color: #ffcf5a; }
.wv-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wv-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 460px; }
.wv-table th { text-align: left; font-weight: 500; color: var(--dim); font-size: 10.5px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.wv-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; color: #d9d7d1; }
.wv-table td small { display: block; font-size: 10px; color: var(--dim); font-weight: 400; }
.wv-table tr:last-child td { border-bottom: 0; }
.wv-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wv-side { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.wv-side.ready.long { border-color: color-mix(in srgb, var(--up) 45%, transparent); }
.wv-side.ready.short { border-color: color-mix(in srgb, var(--down) 45%, transparent); }
.wv-sh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.wv-sh .mono { margin-left: auto; font-size: 11px; }
.wv-st { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: #17171d; color: var(--dim); border: 1px solid var(--line); }
.wv-st.ready.long { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent); background: color-mix(in srgb, var(--up) 10%, transparent); }
.wv-st.ready.short { color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, transparent); background: color-mix(in srgb, var(--down) 10%, transparent); }
.wv-st.watch { color: #ffcf5a; border-color: rgba(255, 207, 90, .28); }
.wv-side ul { margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dim); }
.wv-side li.ok { color: var(--text); }
.wv-side.long li.ok { color: color-mix(in srgb, var(--up) 70%, var(--text)); }
.wv-side.short li.ok { color: color-mix(in srgb, var(--down) 70%, var(--text)); }
.wv-plan { display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed var(--line); padding-top: 9px; }
.wv-plan div { display: grid; grid-template-columns: 58px auto auto 1fr; gap: 2px 8px; align-items: baseline; font-size: 12px; }
.wv-plan span { color: var(--dim); font-size: 11px; }
.wv-plan em { font-style: normal; font-size: 11px; color: var(--muted); }
.wv-plan small { grid-column: 2 / -1; font-size: 10.5px; color: var(--dim); }
.wv-none .wv-plan { opacity: .75; }
.wv-sub { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.wv-sub small { font-weight: 400; color: var(--dim); margin-left: 6px; }
.wv-notes, .wv-scen { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.wv-notes li { position: relative; padding-left: 14px; font-size: 12.5px; line-height: 1.5; color: #cfcdc7; }
.wv-notes li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .8; }
.wv-notes li.up::before { background: var(--up); }
.wv-notes li.down::before { background: var(--down); }
.wv-scen li { font-size: 12.5px; line-height: 1.55; }
.wv-scen li b { margin-right: 4px; }
#dBody .wave { margin-bottom: 18px; }
@media (max-width: 760px) {
  .wv-head, .wv-sides { grid-template-columns: 1fr; }
  .wave-wrap { padding: 14px 12px; }
  .wv-plan div { grid-template-columns: 52px auto auto 1fr; }
}
#dBody .wv-head, #dBody .wv-sides { grid-template-columns: 1fr; }

/* ── 현물 / 선물 탭 (상단 바, 경제지표 옆) ── */
.view-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); }
.view-tabs a { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.view-tabs a:hover { color: var(--text); }
.view-tabs a.on { color: var(--gold); background: #1d1d24; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent); }
body:not(.view-arena) [data-v="arena"] { display: none !important; }
body:not(.view-shop) [data-v="shop"] { display: none !important; }
body:not(.view-omok) [data-v="omok"] { display: none !important; }
.fut-lock { display: none; }
body.locked .fut-lock { display: flex; justify-content: center; padding: 60px 0 80px; }

@media (max-width: 700px) {
  /* 로그인 회원은 하단 탭 바에 현물/선물이 있어 상단에서는 숨김 · 비회원은 로고 글자를 줄여 자리 확보 */
  body.has-mnav .view-tabs { display: none; }
  body:not(.has-mnav) .brand-text small { display: none; }
  .brand-text b { font-size: 17px; }
  .view-tabs a { padding: 5px 8px; font-size: 12px; }
}

/* ── CVD ── */
.cvd-svg { width: 100%; height: 220px; display: block; }
.d-cvd .cvd-svg { height: 170px; }
.cvd-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--muted); margin: 6px 0 10px; font-family: var(--mono); }
.cvd-leg i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.cvd-leg .dim { color: var(--dim); }
.cvd-table td small { display: block; font-size: 10.5px; color: #ffcf5a; margin-top: 2px; }
.cvd-table { min-width: 520px; }
#dBody .cvd-table { min-width: 0; }

/* ── 상단 실시간 시세 띠 ── */
.tape { border-top: 1px solid var(--line); background: rgba(8, 8, 11, .6); overflow: hidden; height: 32px; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tape-track { display: flex; width: max-content; height: 100%; align-items: center; animation: tape var(--tape-dur, 50s) linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-seq { display: flex; align-items: center; }
.tape-wait { font-size: 11.5px; color: var(--dim); padding: 0 20px; }
.tp { display: inline-flex; align-items: baseline; gap: 7px; padding: 3px 18px; font-size: 12.5px; white-space: nowrap; border-right: 1px solid #1c1c22; border-radius: 4px; transition: background .6s; }
.tp b { font-weight: 600; color: #d9d7d1; letter-spacing: -.01em; }
.tp-p { font-style: normal; color: var(--text); font-size: 12.5px; }
.tp-r { font-style: normal; font-size: 11.5px; }
.tp.flash-up { animation: tpUp 1s ease-out; }
.tp.flash-down { animation: tpDown 1s ease-out; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tpUp { 0% { background: rgba(255, 77, 103, .22); } 100% { background: transparent; } }
@keyframes tpDown { 0% { background: rgba(61, 139, 255, .22); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .tape-track { animation: none; } .tape { overflow-x: auto; } }
@media (max-width: 700px) { .tape { height: 30px; } .tp { padding: 3px 13px; font-size: 12px; } }

/* ── 실시간 청산 맵 ── */
.lq-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.liqmap-svg { width: 100%; height: 250px; display: block; }
.liqmap-svg text { font: 500 10px var(--mono); fill: var(--dim); }
.liqmap-svg text.lbl { font: 600 10.5px var(--sans); fill: var(--muted); }
.liqmap-svg text.cur { font: 600 10.5px var(--mono); fill: #E7C873; }
.lq-mag { font-size: 12.5px; color: #cfcdc7; margin: 4px 0 10px; line-height: 1.55; }
.lq-mag b { color: var(--gold); margin-right: 4px; }
.lq-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lq-lv { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: baseline; font-size: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.lq-lv em { font-style: normal; font-size: 11px; color: var(--muted); }
.lq-lv.up b { color: var(--up); }
.lq-lv.down b { color: var(--down); }
.lq-tot { min-width: 0; margin-bottom: 10px; }
.lq-feed { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 3px; max-height: 300px; overflow-y: auto; }
.lq-feed li { display: grid; grid-template-columns: 62px 56px 1fr auto; gap: 8px; align-items: baseline; font-size: 12px; padding: 5px 8px; border-radius: 7px; background: var(--card); border: 1px solid var(--line); }
.lq-feed li.long b { color: var(--down); }
.lq-feed li.short b { color: var(--up); }
.lq-feed li.dim { display: block; color: var(--dim); }
.lq-feed li.new.long { animation: tpDown 1.6s ease-out; }
.lq-feed li.new.short { animation: tpUp 1.6s ease-out; }
.lq-feed .dim, .lq-tot .dim { color: var(--dim); }
.liq-wrap .dim { color: var(--dim); }
@media (max-width: 900px) { .lq-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .liqmap-svg { height: 210px; }
  .lq-levels { grid-template-columns: 1fr; }
  .lq-feed li { grid-template-columns: 58px 50px 1fr; }
  .lq-feed li > :last-child { display: none; }
}
/* 상단 바 공간 정리 (현물/선물 탭이 들어오면서) */
.conn .pill, .conn .clock, .auth-box .btn, .auth-box .me-link, .auth-box .me { white-space: nowrap; }
.auth-box { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 1240px) { .conn .pill { display: none; } }
@media (max-width: 960px) { .conn .clock { display: none; } }

/* ── 코인니스 실시간 속보 (시세 띠 아래 한 줄) ── */
.newsline { display: flex; align-items: stretch; height: 30px; border-top: 1px solid var(--line); background: rgba(10, 10, 13, .7); }
.nl-tag { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 12px; font-weight: 700; color: var(--gold-text); text-decoration: none; border-right: 1px solid var(--line); background: rgba(255, 207, 90, .06); white-space: nowrap; }
.nl-tag small { font-size: 10.5px; font-weight: 500; color: var(--dim); }
.nl-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.nl-track { display: flex; width: max-content; height: 100%; align-items: center; animation: tape var(--nl-dur, 90s) linear infinite; }
.newsline:hover .nl-track { animation-play-state: paused; }
.nl-seq { display: flex; align-items: center; }
.nl-it { display: inline-flex; align-items: center; gap: 7px; padding: 0 22px; font-size: 12.5px; color: #d9d7d1; text-decoration: none; white-space: nowrap; border-right: 1px solid #1c1c22; }
.nl-it:hover span { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.nl-it time { font-size: 11px; color: var(--dim); }
.nl-it.imp span { color: #ff8fa0; font-weight: 600; }
.nl-imp, .nl-new { font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.nl-imp { color: #fff; background: #ad294b; }
.nl-new { color: #111; background: #ffcf5a; }
.nl-it.fresh { animation: tpUp 2.4s ease-out; }
@media (prefers-reduced-motion: reduce) { .nl-track { animation: none; } .nl-view { overflow-x: auto; } }
@media (max-width: 700px) { .newsline { height: 28px; } .nl-tag { padding: 0 9px; font-size: 11.5px; } .nl-tag small { display: none; } .nl-it { font-size: 12px; padding: 0 16px; } }

/* ── 홈: 트레이딩 대회 TOP 10 ── */
.home-rank { margin: 6px 0 26px; padding: 18px 20px; border-radius: 20px; background: linear-gradient(180deg, rgba(231, 200, 115, .06), rgba(255, 255, 255, .015)); border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line)); }
.hr-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hr-h h2 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.03em; }
.hr-h h2 span { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--gold); font-weight: 400; }
.hr-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hr-side .dim, .home-rank .dim { color: var(--dim); font-size: 11.5px; }
.hr-champ { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.hr-champ b { color: var(--gold); }
.hr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.rk { display: flex; flex-direction: column; gap: 4px; }
.rk-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .025); border: 1px solid transparent; font-size: 13px; }
.rk-row.r1 { background: rgba(231, 200, 115, .1); border-color: rgba(231, 200, 115, .3); }
.rk-row.r2, .rk-row.r3 { background: rgba(255, 255, 255, .045); }
.rk-row.me { border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.rk-m { text-align: center; font-size: 15px; color: var(--dim); }
.rk-m .mono { font-size: 12px; }
.rk-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; margin-left: 6px; vertical-align: middle; box-shadow: 0 0 6px #3ddc97; }
.rk-roe { font-weight: 700; font-size: 13px; }
.rk-p { font-size: 11.5px; min-width: 90px; text-align: right; }
.rk-me { margin-top: 8px; font-size: 12px; color: var(--muted); padding: 6px 10px; border-radius: 8px; background: rgba(231, 200, 115, .06); }

/* ── 트레이딩 대회 화면 ── */
.arena { margin-top: 24px; }
.ar-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.ar-sym { display: flex; align-items: center; gap: 14px; }
.ar-px b { font-size: 26px; letter-spacing: -.02em; display: block; line-height: 1.1; }
.ar-px small { font-size: 11px; color: var(--dim); }
.ar-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.ar-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; min-width: 112px; }
.ar-stats span { display: block; font-size: 10.5px; color: var(--dim); margin-bottom: 2px; }
.ar-stats b { font-size: 14.5px; }
.ar-stats small { font-size: 11px; color: var(--muted); font-weight: 400; }
.ar-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; }
.ar-chart-wrap, .ar-order-wrap, .ar-book, .ar-rank { min-width: 0; background: var(--card2); border: 1px solid var(--line); border-radius: 16px; }
.ar-chart-wrap { padding: 10px 10px 6px; display: flex; flex-direction: column; min-height: 470px; }
.ar-chart-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ar-int button { font-size: 12px; padding: 5px 9px; }
.ar-leg { font-size: 11px; color: var(--dim); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ar-leg i { display: inline-block; width: 10px; height: 2px; margin: 0 2px 0 8px; vertical-align: middle; }
.ar-chart { flex: 1; min-height: 420px; position: relative; }
.ar-order-wrap { position: relative; padding: 14px; }
.ar-order { display: flex; flex-direction: column; gap: 10px; }
.ar-order.off { opacity: .25; pointer-events: none; }
.ar-side { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ar-side button { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; }
.ar-side button.on.long { background: rgba(255, 77, 103, .16); border-color: rgba(255, 77, 103, .55); color: #ff8fa0; }
.ar-side button.on.short { background: rgba(61, 139, 255, .16); border-color: rgba(61, 139, 255, .55); color: #8fb8ff; }
.ar-type { display: flex; }
.ar-type button { flex: 1; }
.ar-f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); margin: 0; }
.ar-f input:not([type=range]) { background: var(--card); border: 1px solid var(--line2); border-radius: 9px; padding: 9px 11px; color: var(--text); font: 500 14px var(--mono); width: 100%; box-sizing: border-box; }
.ar-f input:focus { outline: none; border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.ar-lev-h { display: flex; justify-content: space-between; align-items: baseline; }
.ar-lev-h b { font-size: 18px; }
#arLev { width: 100%; accent-color: #E7C873; }
.ar-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(42px, 1fr)); gap: 4px; }
.ar-quick button { padding: 5px 0; border-radius: 7px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 600 11.5px var(--mono); cursor: pointer; }
.ar-quick button:hover { color: var(--text); border-color: var(--line2); }
#arLevQ button[aria-pressed="true"] { border-color: var(--gold); color: var(--text); }
.ar-tpsl summary { font-size: 12px; color: var(--muted); cursor: pointer; }
.ar-tpsl-in { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.ar-calc { display: flex; flex-direction: column; gap: 4px; padding: 9px 11px; border-radius: 10px; background: rgba(255, 255, 255, .025); border: 1px dashed var(--line); }
.ar-calc div { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }
.ar-calc b { color: var(--text); font-weight: 500; font-size: 12.5px; }
.ar-calc small { color: var(--dim); font-weight: 400; }
.ar-submit { padding: 13px; font-size: 15px; font-weight: 800; border: 0; color: #fff; }
.ar-submit.long { background: linear-gradient(180deg, #ff5f77, #e33d58); }
.ar-submit.short { background: linear-gradient(180deg, #4d97ff, #2f74e0); }
.ar-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 8, 11, .72); border-radius: 16px; backdrop-filter: blur(3px); }
.ar-lock-in { text-align: center; }
.ar-lock-ico { font-size: 52px; animation: bob 2.6s ease-in-out infinite; }
.ar-lock-in h3 { margin: 6px 0; font-size: 20px; }
.ar-lock-in p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 8px; }
.ar-lock-t { font-size: 28px; color: var(--gold); margin: 8px 0; }
.ar-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; margin-top: 12px; }
.ar-book { padding: 12px; min-width: 0; }
.ar-tabs { margin-bottom: 10px; }
.ar-tabs button b { font: 700 10px var(--mono); background: var(--gold); color: #111; border-radius: 6px; padding: 0 5px; margin-left: 3px; }
.ar-tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ar-tbl table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 760px; }
.ar-tbl th { text-align: left; font-weight: 500; color: var(--dim); font-size: 11px; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ar-tbl td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; color: #d9d7d1; }
.ar-tbl td small { color: var(--muted); }
.ar-tbl tr.liq td { background: rgba(255, 77, 103, .05); }
.ar-tbl tr.bonus td { background: rgba(231, 200, 115, .06); }
.ar-tag { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.ar-tag.long { color: #ff8fa0; background: rgba(255, 77, 103, .14); }
.ar-tag.short { color: #8fb8ff; background: rgba(61, 139, 255, .14); }
.ar-tp { display: flex; gap: 4px; }
.ar-tp input { width: 82px; background: var(--card); border: 1px solid var(--line2); border-radius: 7px; padding: 4px 6px; color: var(--text); font: 500 11.5px var(--mono); }
.ar-cl { display: flex; gap: 4px; }
.ar-send { display: grid; grid-template-columns: 1fr 180px auto; gap: 8px; align-items: end; }
.ar-rank { padding: 14px; }
.ar-rank .rk-row { grid-template-columns: 26px minmax(0, 1fr) auto; padding: 6px 8px; font-size: 12.5px; }
.hall-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; font-size: 12.5px; padding: 5px 2px; border-bottom: 1px solid var(--line); }
.ar-note { margin-top: 12px; }
.ar-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .66); backdrop-filter: blur(4px); padding: 16px; }
.ar-modal-in { max-width: 420px; text-align: center; padding: 28px 26px; border-radius: 24px; background: #121217; border: 1px solid rgba(255, 77, 103, .35); box-shadow: 0 20px 60px rgba(255, 77, 103, .18); }
.ar-modal-in h3 { margin: 8px 0; font-size: 19px; }
.ar-modal-in p { font-size: 13.5px; color: #cfcdc7; line-height: 1.6; margin: 0 0 10px; }
.ar-liq-skull { font-size: 64px; animation: liqPop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes liqPop { 0% { transform: scale(.2) rotate(-30deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
body.ar-shake .arena { animation: arShake .5s; }
@keyframes arShake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.ar-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; background: #1b1b22; border: 1px solid var(--line2); color: var(--text); padding: 10px 16px; border-radius: 12px; font-size: 13px; transition: .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.ar-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1000px) {
  .ar-main, .ar-bottom { grid-template-columns: minmax(0, 1fr); }
  .ar-chart-wrap { min-height: 380px; }
  .ar-chart { min-height: 330px; }
}
@media (max-width: 700px) {
  .hr-cols { grid-template-columns: 1fr; }
  .home-rank { padding: 14px 12px; }
  .hr-h h2 { font-size: 19px; }
  .rk-p { display: none; }
  .rk-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .ar-px b { font-size: 21px; }
  .ar-stats div { min-width: 0; flex: 1 1 calc(50% - 8px); }
  .ar-chart-wrap { min-height: 320px; }
  .ar-chart { min-height: 280px; }
  .ar-send { grid-template-columns: 1fr; }
  .ar-toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ── 레벨 배지 (Lv.1~30 스프라이트: 6열 × 5행) ── */
.lvb { display: inline-block; flex: none; width: var(--s, 22px); height: var(--s, 22px); background: url(/img/badges.png) no-repeat; background-size: 600% 500%; vertical-align: middle; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.lv-chip .lvb { margin: -4px 2px -4px -4px; }

/* ── 대회 실시간 소식 줄 ── */
.feedline .nl-tag { background: rgba(231, 200, 115, .07); }
.nl-it.fd { gap: 6px; }
.nl-it.fd em { font-style: normal; font-weight: 700; }
.nl-it.fd small { color: var(--dim); }
.nl-it.fd.liq span { color: #ffb3c0; }
.nl-it.fd.fresh.win { animation: tpUp 2.4s ease-out; }
.nl-it.fd.fresh.liq, .nl-it.fd.fresh.loss { animation: tpDown 2.4s ease-out; }

/* ── 대회 차트 보조지표 ── */
.ar-ind-wrap { position: relative; }
.ar-ind { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: 300px; padding: 10px 12px; border-radius: 12px; background: #15151b; border: 1px solid var(--line2); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
.ar-ind label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #d9d7d1; padding: 5px 2px; cursor: pointer; }
.ar-ind input { accent-color: #E7C873; width: 15px; height: 15px; }
.ar-ind-h { margin: 6px 0 2px; font-size: 10.5px; color: var(--dim); letter-spacing: .04em; }
.ar-ind-note { margin: 6px 0 0; font-size: 10.5px; color: var(--dim); }
.ar-ind-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 10.5px; color: var(--muted); font-family: var(--mono); margin: 0 0 4px 2px; min-height: 14px; }
.ar-ind-leg i { display: inline-block; width: 10px; height: 2px; margin-right: 4px; vertical-align: middle; }
@media (max-width: 700px) { .ar-ind { width: min(300px, calc(100vw - 48px)); } }

/* ── 매매대회: 거래소 세부 기능 ── */
.ar-pos-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 11.5px; }
.ar-pos-h .dim { color: var(--dim); }
.btn.xs { padding: 1px 6px; font-size: 11px; line-height: 1.4; border-radius: 6px; min-width: 0; }
.ar-mg { display: inline-flex; gap: 2px; margin-left: 4px; }
.ar-cl-limit { display: flex; gap: 4px; align-items: center; }
.ar-cl-limit input { width: 86px; background: var(--card); border: 1px solid var(--line2); border-radius: 7px; padding: 4px 6px; color: var(--text); font: 500 11.5px var(--mono); }
.ar-cl-limit select { background: var(--card); border: 1px solid var(--line2); border-radius: 7px; padding: 4px; color: var(--text); font: 500 11.5px var(--mono); }
.ar-kind { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.ar-kind.close { color: #3ddc97; background: rgba(61, 220, 151, .1); }
.ar-kind.stop { color: #ffcf5a; background: rgba(255, 207, 90, .1); }
.ar-type button { font-size: 12px; }
.ar-tbl table { min-width: 980px; }

/* ── 꾸민 레벨 배지 · 닉네임 (상점) ── */
.dk { position: relative; display: inline-block; flex: none; vertical-align: middle; }
.dk-l { position: absolute; background-repeat: no-repeat; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.dk-b { position: absolute; inset: 0; display: block; }
.dk-b .lvb { position: absolute; inset: 0; }
.dk-item { display: inline-block; background-repeat: no-repeat; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.nm-title { display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; font-weight: 700; line-height: 17px; color: #ffcf5a; background: rgba(255, 207, 90, .1); border: 1px solid rgba(255, 207, 90, .25); vertical-align: middle; white-space: nowrap; }
.nmc-gold { color: #E7C873 !important; text-shadow: 0 0 8px rgba(231, 200, 115, .35); }
.nmc-red { color: #ff5f77 !important; text-shadow: 0 0 8px rgba(255, 77, 103, .45); }
.nmc-blue { color: #5aa2ff !important; text-shadow: 0 0 8px rgba(61, 139, 255, .45); }
.nmc-mint { color: #3ddc97 !important; text-shadow: 0 0 8px rgba(61, 220, 151, .35); }
.nmc-purple { color: #b98cff !important; text-shadow: 0 0 10px rgba(168, 117, 255, .55); }
.nmc-rainbow { background: linear-gradient(90deg, #ff5f77, #ffcf5a, #3ddc97, #5aa2ff, #b98cff, #ff5f77); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: nmRainbow 3s linear infinite; }
@keyframes nmRainbow { to { background-position: 200% 0; } }

/* ── 졸업 상점 ── */
.shop { margin-top: 24px; }
.sh-hero { display: flex; align-items: center; gap: 34px; padding: 26px 28px; border-radius: 20px; background: radial-gradient(circle at 18% 50%, rgba(231, 200, 115, .12), transparent 55%), var(--card2); border: 1px solid color-mix(in srgb, var(--gold) 25%, var(--line)); margin-bottom: 16px; flex-wrap: wrap; }
.sh-stage { width: 210px; height: 190px; display: flex; align-items: center; justify-content: center; flex: none; }
.sh-who { flex: 1; min-width: 240px; }
.sh-name { font-size: 22px; margin: 6px 0 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.sh-name .nm-title { font-size: 12px; line-height: 20px; }
.sh-money span { display: block; font-size: 11.5px; color: var(--dim); }
.sh-money b { font-size: 26px; color: var(--gold); }
.sh-money small { font-size: 13px; color: var(--muted); }
.sh-note { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin: 8px 0 0; }
.sh-slots { flex-wrap: wrap; margin-bottom: 6px; }
.sh-slots button { font-size: 12.5px; }
.sh-gh { margin: 18px 0 8px; font-size: 14px; font-weight: 700; }
.sh-gh small { font-weight: 400; color: var(--dim); margin-left: 6px; font-size: 11.5px; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(176px, 100%), 1fr)); gap: 10px; }
.sh-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.sh-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.sh-card.owned { border-color: rgba(61, 220, 151, .25); }
.sh-card.on { border-color: color-mix(in srgb, var(--gold) 60%, transparent); box-shadow: 0 0 0 1px rgba(231, 200, 115, .15), 0 10px 26px rgba(231, 200, 115, .08); }
.sh-card.pv { border-color: #8fb8ff; }
.sh-pic { height: 96px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: radial-gradient(circle, rgba(255, 255, 255, .05), transparent 70%); border: 0; cursor: zoom-in; padding: 0; }
.sh-title { font-size: 13px !important; line-height: 24px !important; padding: 0 10px !important; }
.sh-color { font-size: 18px; }
.sh-info b { display: block; font-size: 13.5px; }
.sh-info small { display: block; font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.sh-act { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; }
.sh-slot { font-size: 10.5px; color: var(--dim); }
.sh-act .btn { font-family: var(--mono); font-size: 11.5px; }
.sh-act .btn:disabled { opacity: .45; cursor: not-allowed; }
.rk-n { display: flex; align-items: center; gap: 4px; }
@media (max-width: 700px) {
  .sh-hero { padding: 18px 14px; gap: 10px; justify-content: center; }
  .sh-stage { width: 100%; height: 170px; }
  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-pic { height: 80px; }
}

/* ── 📣 사자후 줄 ── */
.shoutline { display: flex; align-items: stretch; min-height: 34px; border-top: 1px solid var(--line); background: linear-gradient(90deg, rgba(255, 77, 103, .08), rgba(231, 200, 115, .06) 40%, rgba(10, 10, 13, .7)); }
.sl-tag { border: 0; cursor: pointer; color: #ff8fa0 !important; background: rgba(255, 77, 103, .1) !important; font-family: inherit; }
.sl-tag:hover { background: rgba(255, 77, 103, .18) !important; }
.sl-view { flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 14px; overflow: hidden; }
.sl-empty { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-empty b { color: #ff8fa0; }
.sl-item { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; animation: slIn .45s ease-out; width: 100%; }
.sl-item time { font-size: 11px; color: var(--dim); flex: none; }
.sl-who { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.sl-text { font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.sl-item.hot .sl-text { color: #ffcf5a; font-size: 14px; text-shadow: 0 0 12px rgba(255, 207, 90, .35); }
.sl-del { margin-left: auto; flex: none; background: none; border: 1px solid var(--line2); color: var(--dim); border-radius: 6px; font-size: 11px; padding: 1px 6px; cursor: pointer; }
.sl-del:hover { color: var(--up); border-color: var(--up); }
.shoutline.boom { animation: slBoom 1.2s ease-out; }
@keyframes slIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slBoom { 0% { background-color: rgba(255, 207, 90, .35); } 100% { background-color: transparent; } }
.shout-in { border-color: rgba(255, 207, 90, .35) !important; box-shadow: 0 20px 60px rgba(255, 207, 90, .12) !important; }
.shout-field { position: relative; margin: 12px 0 4px; }
.shout-field input { width: 100%; box-sizing: border-box; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 58px 12px 14px; color: var(--text); font-size: 15px; }
.shout-field input:focus { outline: none; border-color: rgba(255, 207, 90, .6); }
.shout-field span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11.5px; color: var(--dim); }
.sh-shout { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.sh-shout b { color: #ff8fa0; }
.sh-cons-ico { font-size: 46px; }
.sh-qty { margin-left: 4px; font: 800 18px var(--mono); color: var(--gold); }
.sh-card.cons { border-color: rgba(255, 77, 103, .3); }
@media (max-width: 700px) { .sl-item time { display: none; } .sl-item { font-size: 12.5px; gap: 6px; } .shoutline .sl-tag small { display: none; } }

/* ── 닉네임 색 (추가) · 이펙트 ── */
.nmc-sakura, .nmc-emerald, .nmc-ice, .nmc-fire, .nmc-shine, .nmc-galaxy { -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.nmc-sakura { background-image: linear-gradient(90deg, #ffb7d0, #ff7fae); }
.nmc-emerald { background-image: linear-gradient(90deg, #3ddc97, #0fa36b); }
.nmc-ice { background-image: linear-gradient(90deg, #dff6ff, #7cc8ff); }
.nmc-fire { background-image: linear-gradient(90deg, #ffd166, #ff5f3c, #ff2d55); }
.nmc-shine { background-image: linear-gradient(100deg, #b8902f 0%, #ffe9a3 45%, #fff 50%, #ffe9a3 55%, #b8902f 100%); background-size: 250% 100%; animation: nmShine 2.4s linear infinite; }
.nmc-galaxy { background-image: linear-gradient(90deg, #7f5cff, #ff5fd2, #5aa2ff, #7f5cff); background-size: 300% 100%; animation: nmRainbow 4s linear infinite; }
@keyframes nmShine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.nm-fx { margin-left: 3px; font-size: .95em; display: inline-block; }
b.nm + .nm-fx, .nm-fx + b.nm { margin-left: 3px; }
.nm-fx-spark, .nm-fx-diamond { animation: fxTwinkle 1.6s ease-in-out infinite; }
.nm-fx-fire { animation: fxFlick .9s ease-in-out infinite alternate; }
.nm-fx-rocket { animation: fxFloat 1.8s ease-in-out infinite; }
.nm-fx-crown { margin-right: 2px; animation: fxFloat 2.2s ease-in-out infinite; }
.nmfx-glow { animation: fxGlow 2.2s ease-in-out infinite; }
@keyframes fxTwinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .7; } }
@keyframes fxFlick { from { transform: scale(1) rotate(-6deg); } to { transform: scale(1.15) rotate(6deg); } }
@keyframes fxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes fxGlow { 0%, 100% { text-shadow: 0 0 4px rgba(255, 255, 255, .25); } 50% { text-shadow: 0 0 14px rgba(255, 230, 150, .9), 0 0 24px rgba(255, 200, 80, .5); } }
@media (prefers-reduced-motion: reduce) { .nm-fx, .nmfx-glow, .nmc-shine, .nmc-galaxy, .nmc-rainbow { animation: none !important; } }

/* ── 홈 성적표: 수석 졸업생 vs 불명예 퇴학생 ── */
.hr-h h2 span { margin: 0 4px; }
.hr-col { padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); min-width: 0; }
.hr-col.honor { border-color: rgba(231, 200, 115, .3); background: linear-gradient(180deg, rgba(231, 200, 115, .07), transparent 60%); }
.hr-col.shame { border-color: rgba(255, 77, 103, .28); background: linear-gradient(180deg, rgba(255, 77, 103, .07), transparent 60%); }
.hr-ct { margin: 0 0 8px; font-size: 14.5px; font-weight: 800; letter-spacing: -.02em; }
.hr-col.honor .hr-ct { color: var(--gold); }
.hr-col.shame .hr-ct { color: #ff8fa0; }
.hr-ct small { font-size: 11px; font-weight: 500; color: var(--dim); margin-left: 4px; }
.rk-row.shame { background: rgba(255, 77, 103, .04); }
.rk-row.shame.s1 { background: rgba(255, 77, 103, .12); border-color: rgba(255, 77, 103, .35); }
.rk-liq { font-size: 10px; font-weight: 700; color: #ff8fa0; background: rgba(255, 77, 103, .12); border-radius: 5px; padding: 0 5px; margin-left: 4px; white-space: nowrap; }
.rk-liq.dead { color: #fff; background: rgba(255, 77, 103, .55); }
.ar-rank-tabs { display: flex; width: 100%; }
.ar-rank-tabs button { flex: 1; font-size: 12px; padding: 6px 4px; }

.ar-ind { max-height: min(520px, 70vh); overflow-y: auto; }
.ar-ind label { padding: 4px 2px; }

/* ── 트레이딩뷰 차트 · 모드 전환 ── */
.ar-mode { display: flex; margin-bottom: 8px; }
.ar-mode button { flex: 1; font-size: 12.5px; }
.ar-tv { min-height: 520px; border-radius: 10px; overflow: hidden; background: #0b0b0f; }
.ar-posbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 7px 10px; margin-bottom: 6px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ar-posbar b { font-weight: 600; }
.ar-posbar .btn { margin-left: auto; }
@media (max-width: 700px) { .ar-tv { min-height: 420px; } .ar-mode button { font-size: 11.5px; padding: 6px 4px; } }

/* ── 오목대회 ── */
.omok { margin-top: 24px; }
.om-hall-nav { margin-top: 20px; }
.om-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.om-wrap:has(.om-game[hidden]) { grid-template-columns: minmax(0, 560px); justify-content: center; }
.om-game { background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.om-game.my-turn { border-color: rgba(255, 207, 90, .5); box-shadow: 0 0 0 1px rgba(255, 207, 90, .15); }
.om-players { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 12px; }
.om-p { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); min-width: 0; font-size: 13px; }
.om-p > div { min-width: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.om-p:last-child { flex-direction: row-reverse; text-align: right; }
.om-p.on { border-color: rgba(255, 207, 90, .55); background: rgba(255, 207, 90, .07); }
.om-p .om-s { position: static; width: 20px; height: 20px; flex: none; }
.om-t { margin-left: auto; font-size: 16px; color: var(--gold); }
.om-p:last-child .om-t { margin-left: 0; margin-right: auto; }
.om-t.warn { color: var(--up); animation: fxTwinkle 1s infinite; }
.om-pot { text-align: center; }
.om-pot small { display: block; font-size: 10.5px; color: var(--dim); }
.om-pot b { font-size: 18px; color: var(--gold); }
.om-board-wrap { display: flex; justify-content: center; }
.om-board { width: min(100%, 600px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(15, 1fr); background: linear-gradient(135deg, #e3b873, #c9954f); border-radius: 10px; padding: 2.2%; box-sizing: border-box; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), 0 12px 30px rgba(0, 0, 0, .45); }
.om-c { position: relative; border: 0; padding: 0; background: none; cursor: default; aspect-ratio: 1; }
.om-c::before, .om-c::after { content: ''; position: absolute; background: rgba(40, 24, 8, .75); pointer-events: none; }
.om-c::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-.5px); }
.om-c::after { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-.5px); }
.om-c.l::before { left: 50%; }
.om-c.r::before { right: 50%; }
.om-c.t::after { top: 50%; }
.om-c.b::after { bottom: 50%; }
.om-c.star { background: radial-gradient(circle, rgba(40, 24, 8, .85) 0 3px, transparent 3.5px); }
.om-c.can { cursor: pointer; }
.om-s { position: absolute; inset: 7%; border-radius: 50%; z-index: 1; }
.om-s.bk { background: radial-gradient(circle at 32% 30%, #6a6a72, #121216 55%, #000); box-shadow: 1px 2px 3px rgba(0, 0, 0, .55); }
.om-s.wt { background: radial-gradient(circle at 32% 30%, #fff, #e6e3dc 55%, #b9b4aa); box-shadow: 1px 2px 3px rgba(0, 0, 0, .4); }
.om-s.last::after { content: ''; position: absolute; inset: 36%; border-radius: 50%; background: #ff4d67; }
.om-ghost { position: absolute; inset: 9%; border-radius: 50%; opacity: 0; z-index: 1; transition: opacity .1s; }
.om-ghost.bk { background: #111; }
.om-ghost.wt { background: #fff; }
.om-c.can:hover .om-ghost { opacity: .45; }
/* 📱 두 번 눌러 두기: 조준한 자리 + 가로·세로 안내선 */
.om-board { touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.om-c.aim-ln::before, .om-c.aim-ln::after { background: rgba(214, 64, 32, .55); }
.om-c.aim::before, .om-c.aim::after { background: rgba(214, 64, 32, .9); }
.om-c.aim .om-ghost { opacity: .7 !important; box-shadow: 0 0 0 2px #e0452a, 0 0 10px rgba(224, 69, 42, .6); animation: omAim 1s ease-in-out infinite; }
@keyframes omAim { 50% { opacity: .4; } }
.om-c:focus-visible { outline: 2px solid #e0452a; outline-offset: -2px; border-radius: 50%; z-index: 2; }
.om-aim-tip { color: #e0452a; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .om-c.aim .om-ghost { animation: none; } }
.om-status { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.om-lobby { background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.om-room { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); margin-bottom: 6px; font-size: 12.5px; flex-wrap: wrap; }
.om-host { display: inline-flex; align-items: center; gap: 4px; flex: 1; min-width: 0; flex-wrap: wrap; }
.om-bet { color: var(--gold); font-size: 12px; }
.om-res { font-size: 12px; padding: 5px 2px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.om-res-in.win { border-color: rgba(231, 200, 115, .5) !important; }
.om-res-ico { font-size: 60px; animation: liqPop .6s cubic-bezier(.2, 1.6, .4, 1); }
@media (max-width: 1000px) { .om-wrap { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .om-game { padding: 8px; }
  .om-players { grid-template-columns: 1fr 1fr; }
  .om-pot { grid-column: 1 / -1; order: -1; }
  .om-p { font-size: 12px; padding: 6px 8px; }
  .om-board { padding: 1.5%; }
}

.om-room { flex-direction: column; align-items: stretch; gap: 6px; }
.om-room.bet { border-color: rgba(231, 200, 115, .35); }
.om-rt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.om-title { font-size: 13px; margin-right: auto; }
.om-eye { font-size: 11px; color: var(--muted); }
.om-bet-tag { font-size: 10.5px; font-weight: 800; color: #111; background: var(--gold); border-radius: 5px; padding: 1px 6px; font-family: var(--mono); }
.om-free-tag { font-size: 10.5px; font-weight: 700; color: #3ddc97; background: rgba(61, 220, 151, .12); border-radius: 5px; padding: 1px 6px; }
.om-acts { display: flex; gap: 6px; }
.om-acts .btn:first-child { flex: 2; }
.om-acts .btn { flex: 1; }

/* ── 실시간 손익 ── */
.ar-stats .ar-live { min-width: 150px; border-color: var(--line2); }
.ar-stats .ar-live.up { border-color: rgba(255, 77, 103, .5); background: rgba(255, 77, 103, .08); }
.ar-stats .ar-live.down { border-color: rgba(61, 139, 255, .5); background: rgba(61, 139, 255, .08); }
.ar-stats .ar-live b { font-size: 16px; }
.ar-posbar.up { border-color: rgba(255, 77, 103, .45); background: linear-gradient(90deg, rgba(255, 77, 103, .12), rgba(255, 255, 255, .02) 60%); }
.ar-posbar.down { border-color: rgba(61, 139, 255, .45); background: linear-gradient(90deg, rgba(61, 139, 255, .12), rgba(255, 255, 255, .02) 60%); }
.ar-pnl-big { display: flex; align-items: baseline; gap: 8px; margin-right: 6px; padding-right: 12px; border-right: 1px solid var(--line2); }
.ar-pnl-big small { font-size: 10.5px; color: var(--dim); align-self: center; }
.ar-pnl-big b { font-size: 22px; letter-spacing: -.02em; }
.ar-pnl-big em { font-style: normal; font-size: 11px; color: var(--muted); }
.ar-pnl-big span { font-size: 14px; font-weight: 700; }
.ar-other { font-size: 11.5px; color: var(--muted); padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .04); }
@media (max-width: 700px) { .ar-pnl-big { width: 100%; border-right: 0; padding-right: 0; flex-wrap: wrap; } .ar-pnl-big b { font-size: 20px; } .ar-stats .ar-live { flex: 1 1 100% !important; } }

/* ── 차트 클릭 주문 ── */
.ar-chart { position: relative; }
.ar-click { position: absolute; z-index: 30; width: 232px; padding: 10px; border-radius: 14px; background: rgba(18, 18, 24, .97); border: 1px solid var(--line2); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 6px; }
.ar-ck-h { display: flex; align-items: baseline; gap: 8px; }
.ar-ck-h b { font-size: 16px; color: var(--gold); }
.ar-ck-h small { font-size: 11px; }
.ar-ck-x { margin-left: auto; background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 13px; }
.ar-ck-m { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ar-ck-m input { width: 82px; background: var(--card); border: 1px solid var(--line2); border-radius: 7px; padding: 4px 6px; color: var(--text); font: 500 12px var(--mono); }
.ar-ck-b { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 12.5px; font-weight: 700; text-align: left; cursor: pointer; background: var(--card); color: var(--text); font-family: var(--mono); }
.ar-ck-b.long { background: rgba(255, 77, 103, .14); border-color: rgba(255, 77, 103, .45); color: #ff8fa0; }
.ar-ck-b.short { background: rgba(61, 139, 255, .14); border-color: rgba(61, 139, 255, .45); color: #8fb8ff; }
.ar-ck-b.sub { font-family: var(--sans); font-weight: 600; font-size: 12px; }
.ar-ck-b:hover { filter: brightness(1.2); }
.ar-ck-sep { font-size: 10.5px; color: var(--dim); margin-top: 2px; }
.ar-ck-n { margin: 0; font-size: 10.5px; color: var(--dim); }
.ar-hint { font-size: 11px; color: var(--muted); }
.ar-lev-max { animation: fxTwinkle 1.2s ease-in-out infinite; }

/* ── 오목 방 채팅 ── */
.om-chat { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.om-chat-h { font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.om-chat-list { height: 170px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 10px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.om-chat-empty { font-size: 12px; text-align: center; margin: auto; }
.om-msg { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; line-height: 1.45; flex-wrap: wrap; }
.om-msg.mine .om-msg-t { color: var(--gold); }
.om-msg-who { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; }
.om-msg-who .nm-title { display: none; }
.om-msg-t { color: #e6e3dc; word-break: break-all; flex: 1; min-width: 40%; }
.om-msg time { font-size: 10px; color: var(--dim); }
.om-role { font-size: 10px; font-weight: 700; padding: 0 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); }
.om-role.bk { color: #ddd; background: rgba(0, 0, 0, .5); }
.om-role.wt { color: #111; background: #e9e6df; }
.om-chat-f { display: flex; gap: 6px; margin-top: 6px; }
.om-chat-f input { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line2); border-radius: 9px; padding: 8px 10px; color: var(--text); font-size: 13px; }
.om-chat-f input:focus { outline: none; border-color: rgba(231, 200, 115, .5); }
@media (max-width: 700px) { .om-chat-list { height: 140px; } }

.om-s.pending { opacity: .55; animation: fxTwinkle .8s ease-in-out infinite; }
.om-game:not(.my-turn) .om-c { cursor: default; }
.om-game.my-turn .om-c { cursor: pointer; }

.ar-held { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; font-family: var(--mono); white-space: nowrap; }

/* 주문창 보유 USDT */
.ar-avail { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; padding: 9px 11px; border-radius: 10px; background: rgba(231, 200, 115, .06); border: 1px solid rgba(231, 200, 115, .22); font-size: 12px; color: var(--muted); }
.ar-avail > b { font-size: 15px; color: var(--gold); transition: color .3s; }
.ar-avail small { font-size: 10.5px; color: var(--dim); }
.ar-avail-sub { flex-basis: 100%; font-size: 11px; color: var(--dim); }
.ar-avail-sub b { color: var(--text); font-weight: 600; }
.ar-avail > b.flash-up { color: #3ddc97; }
.ar-avail > b.flash-down { color: #ff6b6b; }
/* 랭킹: 닉네임은 절대 줄이지 않고, 칭호·태그가 길면 다음 줄로 */
.rk-n { flex-wrap: wrap; row-gap: 3px; white-space: normal; overflow: visible; }
.rk-n > * { flex-shrink: 0; }
.rk-n .nm { overflow: visible; text-overflow: clip; max-width: none; white-space: nowrap; }
.rk-n .nm-title { margin-left: 0; }

/* ── 오목: 게임 중 판돈 올리기 ── */
.om-raise { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(231, 200, 115, .06); border: 1px solid rgba(231, 200, 115, .2); font-size: 12.5px; }
.om-raise > span { font-weight: 700; color: var(--gold); margin-right: 2px; }
.om-raise.wait { color: var(--gold); }
.om-raise.ask { flex-direction: column; align-items: stretch; background: rgba(231, 200, 115, .14); border-color: rgba(231, 200, 115, .55); animation: omRaisePulse 1.2s ease-in-out infinite; }
.om-raise-q { font-size: 13.5px; line-height: 1.5; }
.om-raise-q small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.om-raise-b { display: flex; align-items: center; gap: 6px; }
.om-raise-t { margin-left: auto; color: var(--gold); font-size: 15px; }
@keyframes omRaisePulse { 50% { box-shadow: 0 0 0 4px rgba(231, 200, 115, .12); } }
.om-msg.sys { justify-content: center; font-size: 11.5px; color: var(--gold); background: rgba(231, 200, 115, .06); border-radius: 6px; padding: 2px 6px; }
.om-status .om-raise { flex-basis: 100%; width: 100%; box-sizing: border-box; }

/* ── 오목: 내 잔고 · 내 차례 알림 ── */
.om-bal { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.om-bal b { color: var(--gold); font-size: 14px; }
.om-bell { background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); color: var(--text); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; cursor: pointer; }
.om-bell:hover { border-color: rgba(231, 200, 115, .5); }
.om-bal { flex-wrap: wrap; row-gap: 6px; }
.om-bal > span { white-space: nowrap; }
.om-bell { white-space: nowrap; }
.om-players .om-bal { grid-column: 1 / -1; order: 5; }
.om-game { position: relative; }
.om-turn-pop { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 30; pointer-events: none; text-align: center; padding: 14px 26px; border-radius: 16px; background: rgba(15, 14, 12, .92); border: 2px solid var(--gold); color: var(--gold); font-size: 24px; font-weight: 800; box-shadow: 0 10px 40px rgba(0, 0, 0, .6), 0 0 0 6px rgba(231, 200, 115, .12); animation: omTurnPop 1.9s ease forwards; white-space: nowrap; }
.om-turn-pop small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; }
@keyframes omTurnPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.7); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 22% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(.98); } }
.om-game.my-turn .om-board { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), 0 0 0 3px rgba(231, 200, 115, .55), 0 0 28px rgba(231, 200, 115, .25); transition: box-shadow .3s; }

/* ── 오목돌 스킨 ── */
.sh-stones { display: inline-flex; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #d9b26a; background: linear-gradient(135deg, #e3bf78, #c99a4f); }
.sh-stones .om-s { position: relative; inset: auto; display: block; width: 48px; height: 48px; }
.om-s[class*="sk-"] { overflow: hidden; }
.om-s[class*="sk-"].last::after { inset: auto; top: 6%; right: 6%; width: 24%; height: 24%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); z-index: 2; }
.om-s[class*="sk-"].last { overflow: visible; }

/* ── 오목돌 스킨 (이미지 30종) ── */
.om-s[class*="sk-"] { box-shadow: 1px 2px 3px rgba(0, 0, 0, .35); }
.om-s.bk.sk-m0 { background: url(/img/stones1.png) 3.291% 5.021% / 726.98% 605.82% no-repeat; }
.om-s.wt.sk-m0 { background: url(/img/stones1.png) 21.857% 5.021% / 726.98% 605.82% no-repeat; }
.om-s.bk.sk-m1 { background: url(/img/stones1.png) 40.709% 5.026% / 723.16% 602.63% no-repeat; }
.om-s.wt.sk-m1 { background: url(/img/stones1.png) 59.122% 5.026% / 723.16% 602.63% no-repeat; }
.om-s.bk.sk-m2 { background: url(/img/stones1.png) 78.294% 5.026% / 723.16% 602.63% no-repeat; }
.om-s.wt.sk-m2 { background: url(/img/stones1.png) 96.709% 5.021% / 726.98% 605.82% no-repeat; }
.om-s.bk.sk-m3 { background: url(/img/stones1.png) 3.215% 28.541% / 715.62% 596.35% no-repeat; }
.om-s.wt.sk-m3 { background: url(/img/stones1.png) 21.809% 28.616% / 719.37% 599.48% no-repeat; }
.om-s.bk.sk-m4 { background: url(/img/stones1.png) 40.728% 28.676% / 711.92% 593.26% no-repeat; }
.om-s.wt.sk-m4 { background: url(/img/stones1.png) 59.153% 28.707% / 708.25% 590.21% no-repeat; }
.om-s.bk.sk-m5 { background: url(/img/stones1.png) 78.372% 28.737% / 704.62% 587.18% no-repeat; }
.om-s.wt.sk-m5 { background: url(/img/stones1.png) 96.859% 28.662% / 701.02% 584.18% no-repeat; }
.om-s.bk.sk-m6 { background: url(/img/stones1.png) 3.218% 51.891% / 711.92% 593.26% no-repeat; }
.om-s.wt.sk-m6 { background: url(/img/stones1.png) 21.827% 51.836% / 715.62% 596.35% no-repeat; }
.om-s.bk.sk-m7 { background: url(/img/stones1.png) 40.813% 51.891% / 711.92% 593.26% no-repeat; }
.om-s.wt.sk-m7 { background: url(/img/stones1.png) 59.153% 51.945% / 708.25% 590.21% no-repeat; }
.om-s.bk.sk-m8 { background: url(/img/stones1.png) 78.372% 52.000% / 704.62% 587.18% no-repeat; }
.om-s.wt.sk-m8 { background: url(/img/stones1.png) 96.859% 52.055% / 701.02% 584.18% no-repeat; }
.om-s.bk.sk-m9 { background: url(/img/stones1.png) 3.218% 74.475% / 711.92% 593.26% no-repeat; }
.om-s.wt.sk-m9 { background: url(/img/stones1.png) 21.695% 74.553% / 708.25% 590.21% no-repeat; }
.om-s.bk.sk-m10 { background: url(/img/stones1.png) 40.763% 74.448% / 708.25% 590.21% no-repeat; }
.om-s.wt.sk-m10 { background: url(/img/stones1.png) 59.153% 74.448% / 708.25% 590.21% no-repeat; }
.om-s.bk.sk-m11 { background: url(/img/stones1.png) 78.372% 74.526% / 704.62% 587.18% no-repeat; }
.om-s.wt.sk-m11 { background: url(/img/stones1.png) 96.856% 74.684% / 697.46% 581.22% no-repeat; }
.om-s.bk.sk-m12 { background: url(/img/stones1.png) 3.212% 96.855% / 719.37% 599.48% no-repeat; }
.om-s.wt.sk-m12 { background: url(/img/stones1.png) 21.724% 96.960% / 719.37% 599.48% no-repeat; }
.om-s.bk.sk-m13 { background: url(/img/stones1.png) 40.644% 97.164% / 711.92% 593.26% no-repeat; }
.om-s.wt.sk-m13 { background: url(/img/stones1.png) 59.322% 97.266% / 708.25% 590.21% no-repeat; }
.om-s.bk.sk-m14 { background: url(/img/stones1.png) 78.475% 97.266% / 708.25% 590.21% no-repeat; }
.om-s.wt.sk-m14 { background: url(/img/stones1.png) 96.862% 97.368% / 704.62% 587.18% no-repeat; }
.om-s.bk.sk-i0 { background: url(/img/stones2.png) 2.369% 3.987% / 715.62% 596.35% no-repeat; }
.om-s.wt.sk-i0 { background: url(/img/stones2.png) 20.914% 3.992% / 711.92% 593.26% no-repeat; }
.om-s.bk.sk-i1 { background: url(/img/stones2.png) 40.609% 3.987% / 715.62% 596.35% no-repeat; }
.om-s.wt.sk-i1 { background: url(/img/stones2.png) 59.187% 3.992% / 711.92% 593.26% no-repeat; }
.om-s.bk.sk-i2 { background: url(/img/stones2.png) 78.916% 3.992% / 711.92% 593.26% no-repeat; }
.om-s.wt.sk-i2 { background: url(/img/stones2.png) 97.544% 3.992% / 711.92% 593.26% no-repeat; }
.om-s.bk.sk-i3 { background: url(/img/stones2.png) 2.203% 27.760% / 708.25% 590.21% no-repeat; }
.om-s.wt.sk-i3 { background: url(/img/stones2.png) 20.763% 27.760% / 708.25% 590.21% no-repeat; }
.om-s.bk.sk-i4 { background: url(/img/stones2.png) 40.678% 27.760% / 708.25% 590.21% no-repeat; }
.om-s.wt.sk-i4 { background: url(/img/stones2.png) 59.102% 27.836% / 711.92% 593.26% no-repeat; }
.om-s.bk.sk-i5 { background: url(/img/stones2.png) 79.032% 27.819% / 701.02% 584.18% no-repeat; }
.om-s.wt.sk-i5 { background: url(/img/stones2.png) 97.625% 27.895% / 704.62% 587.18% no-repeat; }
.om-s.bk.sk-i6 { background: url(/img/stones2.png) 2.122% 51.423% / 701.02% 584.18% no-repeat; }
.om-s.wt.sk-i6 { background: url(/img/stones2.png) 20.713% 51.423% / 701.02% 584.18% no-repeat; }
.om-s.bk.sk-i7 { background: url(/img/stones2.png) 40.508% 51.314% / 708.25% 590.21% no-repeat; }
.om-s.wt.sk-i7 { background: url(/img/stones2.png) 59.118% 51.368% / 704.62% 587.18% no-repeat; }
.om-s.bk.sk-i8 { background: url(/img/stones2.png) 78.929% 51.477% / 697.46% 581.22% no-repeat; }
.om-s.wt.sk-i8 { background: url(/img/stones2.png) 97.538% 51.423% / 701.02% 584.18% no-repeat; }
.om-s.bk.sk-i9 { background: url(/img/stones2.png) 2.039% 74.684% / 697.46% 581.22% no-repeat; }
.om-s.wt.sk-i9 { background: url(/img/stones2.png) 20.713% 74.710% / 701.02% 584.18% no-repeat; }
.om-s.bk.sk-i10 { background: url(/img/stones2.png) 40.442% 74.684% / 697.46% 581.22% no-repeat; }
.om-s.wt.sk-i10 { background: url(/img/stones2.png) 58.998% 74.710% / 701.02% 584.18% no-repeat; }
.om-s.bk.sk-i11 { background: url(/img/stones2.png) 78.912% 74.762% / 693.94% 578.28% no-repeat; }
.om-s.wt.sk-i11 { background: url(/img/stones2.png) 97.536% 74.684% / 697.46% 581.22% no-repeat; }
.om-s.bk.sk-i12 { background: url(/img/stones2.png) 2.041% 97.994% / 693.94% 578.28% no-repeat; }
.om-s.wt.sk-i12 { background: url(/img/stones2.png) 20.713% 97.787% / 701.02% 584.18% no-repeat; }
.om-s.bk.sk-i13 { background: url(/img/stones2.png) 40.442% 97.890% / 697.46% 581.22% no-repeat; }
.om-s.wt.sk-i13 { background: url(/img/stones2.png) 59.014% 97.994% / 693.94% 578.28% no-repeat; }
.om-s.bk.sk-i14 { background: url(/img/stones2.png) 78.979% 98.097% / 690.45% 575.38% no-repeat; }
.om-s.wt.sk-i14 { background: url(/img/stones2.png) 97.619% 97.994% / 693.94% 578.28% no-repeat; }

/* ── 오목: 3단 배치 (왼쪽 랭킹 · 가운데 판 · 오른쪽 채팅+로비) ── */
.om-wrap, .om-wrap:has(.om-game[hidden]) { display: grid; grid-template-columns: 250px minmax(0, 1fr) 330px; gap: 14px; align-items: start; justify-content: stretch; }
.om-wrap:has(.om-game[hidden]) { grid-template-columns: 250px minmax(0, 600px); justify-content: center; }
.om-rank { background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow-y: auto; }
.om-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.om-side .om-chat { margin-top: 0; border-top: 0; padding: 12px; background: var(--card2); border: 1px solid var(--line); border-radius: 18px; }
.om-side .om-chat-list { height: 300px; }
.om-me-in { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 12px; background: rgba(231, 200, 115, .07); border: 1px solid rgba(231, 200, 115, .22); font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.om-me-in b.mono { font-size: 16px; color: var(--text); }
.om-rtabs { margin-bottom: 8px; }
.om-rk { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 6px 7px; border-radius: 10px; font-size: 12.5px; }
.om-rk:nth-child(odd) { background: rgba(255, 255, 255, .025); }
.om-rk.me { border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.om-rk-m { text-align: center; }
.om-rk-n { min-width: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.om-rk-n .nm { overflow: visible; text-overflow: clip; }
.om-rk-n .nm-title { display: none; }
.om-rk-s { font-size: 11.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.om-rk-s b { color: var(--text); }
.om-rk-s small { display: block; font-size: 11px; font-weight: 700; }
.om-rec { display: inline-block; font-size: 10.5px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); white-space: nowrap; vertical-align: middle; line-height: 17px; }
.om-rec b { color: var(--text); }
.om-rec.hi b { color: #3ddc97; }
.om-rec.lo b { color: #ff6b6b; }
.om-rec.new { color: var(--dim); }
.om-p-rec { margin-top: 2px; }
@media (max-width: 1180px) {
  .om-wrap, .om-wrap:has(.om-game[hidden]) { grid-template-columns: minmax(0, 1fr) 320px; }
  .om-rank { grid-column: 1 / -1; order: 3; position: static; max-height: none; }
}
@media (max-width: 860px) {
  .om-wrap, .om-wrap:has(.om-game[hidden]) { grid-template-columns: minmax(0, 1fr); }
  .om-side .om-chat-list { height: 180px; }
}

.om-rtabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.om-rtabs button { flex: 1; background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 600; padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.om-rtabs button small { font-size: 10px; font-weight: 400; }
.om-rtabs button.on { background: rgba(231, 200, 115, .14); color: var(--gold); }
.om-reset { margin-top: 6px; align-self: flex-start; background: none; border: 1px dashed rgba(231, 200, 115, .4); color: var(--gold); border-radius: 8px; padding: 3px 8px; font-size: 11px; cursor: pointer; text-decoration: none; }
.om-reset small { color: var(--muted); }
.om-reset:hover { background: rgba(231, 200, 115, .08); }
.ar-reset { align-self: flex-start; background: none; border: 1px dashed rgba(231, 200, 115, .45); color: var(--gold); border-radius: 8px; padding: 3px 9px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.ar-reset small { color: var(--muted); font-weight: 400; }
.ar-reset:hover { background: rgba(231, 200, 115, .08); }
.ar-reset:disabled { opacity: .5; cursor: wait; }
.sh-ticket.ar { background: linear-gradient(135deg, #7fe0b0, #1fa971); color: #053a24; }
.sh-ticket.ar .tk-l { border-right-color: rgba(5, 58, 36, .45); font-size: 18px; letter-spacing: 0; }
.sh-ticket.ar .tk-r b { font-size: 11.5px; }

/* 오목 승률 50% 초과: 닉네임이 반짝이는 불빛 */
.om-glow { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.om-glow .nm { animation: omGlow 1.8s ease-in-out infinite; }
.om-glow::after { content: '✦'; font-size: .75em; color: #ffe07a; margin-left: 2px; animation: omSpark 1.2s ease-in-out infinite; text-shadow: 0 0 6px #ffd04a; }
@keyframes omGlow { 0%, 100% { filter: drop-shadow(0 0 1px rgba(255, 214, 102, .35)); } 50% { filter: drop-shadow(0 0 5px rgba(255, 214, 102, .95)) drop-shadow(0 0 10px rgba(255, 180, 60, .5)); } }
@keyframes omSpark { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) { .om-glow .nm, .om-glow::after { animation: none; } }
/* 새 버전 안내 */
.ver-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 9000; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(20, 18, 14, .96); border: 1px solid rgba(231, 200, 115, .5); color: var(--text); font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px); }

/* ── 오목 티어 ── */
.om-tier { display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 800; padding: 0 6px; border-radius: 999px; line-height: 17px; white-space: nowrap; vertical-align: middle; margin-right: 3px; border: 1px solid currentColor; background: rgba(0, 0, 0, .25); }
.om-tier.t-bronze { color: #d29a6a; }
.om-tier.t-silver { color: #cfd6df; }
.om-tier.t-gold { color: #ffd34d; }
.om-tier.t-plat { color: #4fe0c8; }
.om-tier.t-diamond { color: #7fb4ff; }
.om-tier.t-master { color: #c98bff; }
.om-tier.t-gm { color: #ff6b6b; }
.om-tier.t-chal { color: #fff; border-color: #ffd34d; background: linear-gradient(90deg, #ff6b6b, #ffd34d, #4fe0c8, #7fb4ff, #c98bff); background-size: 300% 100%; animation: tierFlow 3s linear infinite; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
@keyframes tierFlow { to { background-position: 300% 0; } }
.om-me-tier { display: flex; align-items: center; gap: 6px; }
.om-me-tier .om-tier { font-size: 13px; line-height: 22px; padding: 0 9px; }
.om-me-tier b.mono { font-size: 15px; color: var(--text); }
.om-next { font-size: 11px; color: var(--muted); }
.om-next b { color: var(--gold); }
.om-rk-s .om-tier { margin: 0 0 1px; }
.om-rk-s small { font-weight: 500 !important; }
/* 홈 화면 오목장인 */
.home-omok { margin: -10px 0 26px; padding: 16px 20px; border-radius: 20px; background: linear-gradient(180deg, rgba(127, 180, 255, .06), rgba(255, 255, 255, .015)); border: 1px solid color-mix(in srgb, #7fb4ff 22%, var(--line)); }
.ho-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ho-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px; row-gap: 3px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.ho-card.r1 { background: rgba(231, 200, 115, .09); border-color: rgba(231, 200, 115, .35); }
.ho-m { grid-row: 1 / 4; font-size: 28px; }
.ho-who { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; font-size: 14px; }
.ho-who .nm { overflow: visible; text-overflow: clip; font-size: 14px; }
.ho-t { display: flex; align-items: center; gap: 6px; }
.ho-t b.mono { font-size: 13px; color: var(--text); }
.ho-s { font-size: 11.5px; color: var(--muted); }
.ho-s b { color: var(--text); }
@media (max-width: 760px) { .ho-list { grid-template-columns: minmax(0, 1fr); } }

.rk-roe { text-align: right; line-height: 1.2; }
.rk-sub { display: block; font-size: 10px; font-weight: 500; color: var(--dim); white-space: nowrap; }
.sh-old { opacity: .55; font-weight: 400; }

/* 마진 모드 */
.ar-mode { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 4px; }
.ar-mode button small { font-size: 10px; opacity: .7; font-weight: 500; }
.ar-mode button[data-mode="cross"].on { color: #ffb44a; }
.ar-cross-warn { grid-column: 1 / -1; font-size: 11px; color: #ffb44a; background: rgba(255, 180, 74, .08); border: 1px solid rgba(255, 180, 74, .25); border-radius: 8px; padding: 5px 8px; }
.ar-mtag { display: inline-block; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 5px; line-height: 16px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.ar-mtag.cross { background: rgba(255, 180, 74, .15); color: #ffb44a; }

/* ── 오목 효과: 착수 · 감정표현 · 결과 · 승급 ── */
.om-s.om-drop { animation: omDrop .28s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes omDrop { 0% { transform: translateY(-40%) scale(1.5); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.om-ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); pointer-events: none; animation: omRipple .6s ease-out forwards; z-index: 2; }
@keyframes omRipple { from { transform: scale(.5); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.om-em-pal { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line2); }
.om-em-b { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 10px; padding: 3px; cursor: pointer; line-height: 0; }
.om-em-b:hover { border-color: var(--gold); transform: translateY(-2px); }
.om-em-shop { font-size: 11.5px; color: var(--gold); margin-left: auto; text-decoration: none; }
.om-emote-pop { position: absolute; top: 56px; z-index: 40; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px 6px; border-radius: 16px; background: rgba(255, 255, 255, .96); color: #222; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: omEmote 2.8s ease forwards; }
.om-emote-pop.l { left: 6%; }
.om-emote-pop.r { right: 6%; }
.om-emote-pop::after { content: ''; position: absolute; top: -8px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: rgba(255, 255, 255, .96); }
.om-emote-pop b { font-size: 13px; }
.om-emote-pop small { font-size: 10.5px; color: #777; }
@keyframes omEmote { 0% { opacity: 0; transform: scale(.4) translateY(10px); } 12% { opacity: 1; transform: scale(1.12); } 20% { transform: scale(1); } 30% { transform: translateY(-4px); } 40% { transform: translateY(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.px-emote { image-rendering: pixelated; }
.sh-emote { display: inline-flex; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.sh-pic.bounce .sh-emote { animation: omEmote 1.4s ease; }
.sh-sound { display: inline-flex; flex-direction: column; align-items: center; font-size: 34px; line-height: 1; gap: 4px; }
.sh-sound small { font-size: 11px; color: var(--gold); }
.sh-own { font-size: 12px; color: #3ddc97; font-weight: 700; }
.sh-own small { color: var(--muted); font-weight: 400; }
.om-ai { padding: 10px; border-radius: 12px; background: rgba(127, 180, 255, .06); border: 1px solid rgba(127, 180, 255, .25); margin-top: 14px; }
.om-ai-b { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
/* 승리 컷인 */
.om-cutin { position: absolute; left: -10%; right: -10%; top: 40%; z-index: 50; pointer-events: none; transform: rotate(-6deg); padding: 14px 0; text-align: center; animation: omCut 1.6s cubic-bezier(.2, .9, .2, 1) forwards; }
.om-cutin span { font: 900 46px/1 var(--mono); letter-spacing: .12em; color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.om-cutin.win { background: linear-gradient(90deg, transparent, #ffb800 15%, #ff6b6b 50%, #ffb800 85%, transparent); }
.om-cutin.lose { background: linear-gradient(90deg, transparent, #3b4a6b 15%, #22283a 50%, #3b4a6b 85%, transparent); }
@keyframes omCut { 0% { transform: translateX(-110%) rotate(-6deg); } 25%, 70% { transform: translateX(0) rotate(-6deg); } 100% { transform: translateX(110%) rotate(-6deg); opacity: .6; } }
.om-res-in.win { border-color: rgba(255, 211, 77, .7) !important; box-shadow: 0 0 0 6px rgba(255, 211, 77, .12), 0 20px 60px rgba(0, 0, 0, .6); }
.om-res-in.win .om-res-ico { animation: omTrophy 1s ease infinite alternate; }
@keyframes omTrophy { from { transform: rotate(-8deg) scale(1); } to { transform: rotate(8deg) scale(1.12); } }
.om-cheer { font-size: 15px; font-weight: 700; color: var(--text); }
.om-res-in.lose .om-cheer { color: #9ec5ff; }
/* 승급 팝업 */
.om-tier-pop { text-align: center; position: relative; overflow: hidden; }
.om-tier-pop.up { border-color: rgba(255, 211, 77, .7) !important; }
.om-tp-k { font: 900 26px/1.2 var(--mono); margin: 0; color: var(--gold); letter-spacing: .05em; }
.om-tier-pop.down .om-tp-k { color: #9ec5ff; }
.om-tp-badges { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 6px; }
.om-tp-badges .om-tier { font-size: 13px; line-height: 22px; padding: 0 9px; }
.om-tp-from { opacity: .55; }
.om-tp-arrow { color: var(--gold); font-size: 18px; }
.om-tp-big { font-size: 84px; line-height: 1; margin: 8px 0; animation: omBig 1.2s cubic-bezier(.2, 1.5, .3, 1) both; filter: drop-shadow(0 0 18px rgba(255, 211, 77, .6)); }
.om-tier-pop.down .om-tp-big { animation: omBigDown .9s ease both; filter: none; }
@keyframes omBig { 0% { transform: scale(0) rotate(-180deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes omBigDown { 0% { transform: translateY(-20px); opacity: 0; } 100% { transform: none; opacity: 1; } }
/* 꽃가루 */
.om-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 10000; overflow: hidden; }
.om-confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; animation: omConf linear forwards; }
@keyframes omConf { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 105vh) rotate(var(--rot)); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .om-cutin, .om-confetti, .om-s.om-drop, .om-ripple { animation: none !important; display: none; } }

/* 상단 내 잔고 */
.bal-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 5px 10px; border-radius: 999px; background: rgba(231, 200, 115, .1); border: 1px solid rgba(231, 200, 115, .35); color: var(--text); text-decoration: none; font-size: 12px; white-space: nowrap; transition: border-color .2s; }
.bal-chip:hover { border-color: var(--gold); }
.bal-chip b { color: var(--gold); font-size: 13px; }
.bal-chip small { color: var(--muted); font-size: 10.5px; }
.bal-chip .bal-ico { font-size: 12px; }
.bal-chip.up { animation: balUp 1.2s ease; }
.bal-chip.down { animation: balDown 1.2s ease; }
@keyframes balUp { 0%, 60% { border-color: #3ddc97; box-shadow: 0 0 0 3px rgba(61, 220, 151, .2); } }
@keyframes balDown { 0%, 60% { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, .2); } }
.bal-chip.float { position: fixed; top: 10px; right: 12px; z-index: 900; background: rgba(15, 14, 12, .92); }
.aright .bal-chip { margin-right: 4px; align-self: center; }
@media (max-width: 760px) { .bal-chip { padding: 4px 8px; } .bal-chip small { display: none; } }
.ar-modal-in.om-tier-pop .om-tp-k { font: 900 28px/1.2 var(--mono); margin: 0; color: var(--gold); letter-spacing: .05em; }
.ar-modal-in.om-tier-pop.down .om-tp-k { color: #9ec5ff; }
.ar-modal-in.om-tier-pop .om-tp-big { font-size: 88px; line-height: 1.1; margin: 10px 0; }
.ar-modal-in.om-res-in .om-res-ico { font-size: 64px; line-height: 1.1; }
.ar-modal-in.om-res-in .om-cheer { font-size: 15px; }

.om-res-b { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.om-rm-hot { animation: omRaisePulse 1.1s ease-in-out infinite; }

/* 화면 어디서나 알림 */
.g-alerts { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 9500; display: flex; flex-direction: column; gap: 8px; width: min(460px, calc(100vw - 24px)); pointer-events: none; }
.g-alert { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 14px; background: rgba(18, 16, 14, .97); border: 1px solid var(--line2); box-shadow: 0 12px 40px rgba(0, 0, 0, .55); animation: gAlIn .35s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .5s, transform .5s; }
.g-alert.out { opacity: 0; transform: translateY(-8px); }
.g-alert.warn { border-color: #ffb44a; box-shadow: 0 0 0 3px rgba(255, 180, 74, .18), 0 12px 40px rgba(0, 0, 0, .55); }
.g-alert.liq { border-color: #ff4d67; box-shadow: 0 0 0 3px rgba(255, 77, 103, .22), 0 12px 40px rgba(0, 0, 0, .55); }
.g-alert.grant { border-color: #ffd54f; box-shadow: 0 0 0 3px rgba(255, 213, 79, .25), 0 12px 40px rgba(0, 0, 0, .55); }
.g-alert.crit { border-color: #ff4d4d; box-shadow: 0 0 0 3px rgba(255, 77, 77, .3), 0 12px 40px rgba(0, 0, 0, .55); animation: gAlIn .35s cubic-bezier(.2, 1.4, .4, 1), gAlCrit 1.2s ease-in-out .4s 3; }
.g-alert.gold { border-color: rgba(240, 185, 11, .7); }
.g-al-gif { width: 44px; height: 44px; object-fit: contain; display: block; }
.war-confirm-gif { display: block; width: 128px; height: auto; margin: 0 auto 8px; }
@keyframes gAlCrit { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 77, 77, .3), 0 12px 40px rgba(0, 0, 0, .55); } 50% { box-shadow: 0 0 0 7px rgba(255, 77, 77, .12), 0 12px 40px rgba(0, 0, 0, .55); } }
@media (prefers-reduced-motion: reduce) { .g-alert.crit { animation: none; } }
.g-alert.grant .g-al-b b { color: #ffe08a; font-size: 15px; }
.g-alert.grant .g-al-ico { animation: gGrant .6s cubic-bezier(.2, 1.6, .4, 1) 2; }
@keyframes gGrant { 50% { transform: scale(1.35) rotate(-10deg); } }
.g-alert.new { border-color: #4fe0c8; }
.g-al-ico { font-size: 26px; }
.g-al-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); }
.g-al-b b { font-size: 14px; color: var(--text); }
.g-al-x { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 14px; padding: 4px; }
@keyframes gAlIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
/* 프로필 카드 */
[data-uid] { cursor: pointer; }
.rk-row[data-uid]:hover, .om-rk[data-uid]:hover, .ho-card[data-uid]:hover { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.pc-modal { position: fixed; inset: 0; z-index: 9600; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; }
.pc-modal[hidden] { display: none; }
.pc-in { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px; border-radius: 20px; background: #121217; border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); animation: gAlIn .3s ease; }
.pc-x { position: absolute; top: 0; right: 0; z-index: 1; width: 44px; height: 44px; border-radius: 10px; background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; }
.pc-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pc-n { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pc-n .nm { overflow: visible; font-size: 18px; }
.pc-sec { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pc-t { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--gold); }
.pc-girlfriend-body { display: flex; gap: 12px; align-items: center; overflow-wrap: anywhere; }
.pc-girlfriend-body img { flex: none; object-fit: cover; object-position: center 25%; border-radius: 8px; background: var(--card2); }
.pc-girlfriend-body p { margin: 0; }
.pc-girlfriend-body strong { font-size: 16px; }
.pc-girlfriend-body span, .pc-girlfriend-body small { color: var(--muted); }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.pc-grid span { font-size: 11px; color: var(--muted); }
.pc-grid b { font-size: 13.5px; }
.pc-grid small { font-size: 10.5px; color: var(--dim); font-weight: 400; }
.pc-inline { padding: 4px 0; }
.pc-crime-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.pc-crime-stats dt { font-size: 12px; color: var(--muted); }
.pc-crime-stats dd { margin: 0; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pc-crime-stars { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-top: 8px; color: var(--gold); line-height: 1.25; }
.pc-crime details { margin-top: 6px; border-top: 1px solid var(--line); }
.pc-crime summary, .pr-cases summary { padding-block: 8px; cursor: pointer; font-weight: 650; }
.pc-crime ul, .pr-cases ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pc-crime li, .pr-cases li { display: grid; gap: 2px; padding-bottom: 6px; overflow-wrap: anywhere; }
.pc-crime li small, .pr-cases li small { font-size: 12px; color: var(--muted); }
.pc-crime details p { margin: 0 0 6px; font-size: 12px; }
.pr-cases { margin-top: 8px; }

.m-check { flex-direction: row !important; align-items: center; gap: 6px !important; font-size: 12.5px; color: var(--muted); cursor: pointer; user-select: none; }
.m-check input { width: auto !important; margin: 0; accent-color: var(--gold); }

/* ── 📸 수익 인증 상장 ── */
.ar-cert-b { padding: 1px 6px !important; font-size: 12px !important; }
.ar-cert { display: flex; flex-direction: column; gap: 8px; }
.ar-cert-h { margin: 2px 0 4px; font-weight: 700; font-size: 14px; }
.ar-cert-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ar-cert-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #FFFDF7; border: 2px solid #D4AA1E; color: #151515; cursor: pointer; text-align: left; font-family: inherit; }
.ar-cert-card span { font-size: 12px; color: #6b5420; font-weight: 700; }
.ar-cert-card b { font-size: 26px; }
.ar-cert-card small { font-size: 12px; color: #6b5420; }
.ar-cert-card em { font-style: normal; font-size: 12px; color: #A87C0E; margin-top: 4px; font-weight: 700; }
.ar-cert-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(212, 170, 30, .25); }
.ar-cert-card b.c-up { color: #1F7A3A; } .ar-cert-card b.c-down { color: #B3261E; }
.ar-cert-t { margin: 8px 0 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ar-cert-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--text); cursor: pointer; text-align: left; font-family: inherit; font-size: 13px; }
.ar-cert-row:hover { border-color: rgba(231, 200, 115, .5); }
.ar-cert-row em { font-style: normal; margin-left: auto; }
.cert-in { width: min(480px, 100%); }
.cert-prev img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.cert-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.cert-note { text-align: center; font-size: 12px; margin: 8px 0 0; }

/* 오목 판 흔들림 방지: 효과는 판 안에서만 · 헤더 높이 고정 · 타이머 자리 미리 확보 */
.om-board { overflow: hidden; contain: layout paint; }
.om-board-wrap { contain: layout; }
.om-c { contain: layout; }
.om-players { min-height: 64px; align-items: stretch; }
.om-p { min-height: 52px; }
.om-p-rec { min-height: 17px; }
.om-t { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.om-t.idle { visibility: hidden; }
.om-status { min-height: 40px; }
.om-ripple { animation-duration: .5s; }
@keyframes omDrop { 0% { transform: translateY(-30%) scale(1.25); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }

/* ── 매매대회: 거래소형 화면 ── */
.ex-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 10px; border-radius: 14px; background: #0d0d10; border: 1px solid var(--line); }
.ex-inst { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ex-coin { display: inline-flex; }
.ex-gold-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #efbe52; color: #362403; font: 800 13px var(--mono); }
.ex-name { display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: center; }
.ex-name b { font-size: 18px; letter-spacing: .01em; }
.ex-name small { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); }
.ex-tag { font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.ex-symseg button { padding: 4px 10px !important; font-size: 12px !important; }
.ex-last { display: flex; flex-direction: column; min-width: 120px; }
.ex-last b { font-size: 24px; line-height: 1.1; }
.ex-last small { font-size: 12px; }
.ex-kvs { display: flex; gap: 22px; flex-wrap: wrap; flex: 1; }
.ex-kv { display: flex; flex-direction: column; gap: 2px; }
.ex-kv span { font-size: 11px; color: var(--muted); border-bottom: 1px dashed rgba(255, 255, 255, .15); padding-bottom: 1px; white-space: nowrap; }
.ex-kv b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.ex-order { gap: 10px !important; }
.ex-or-top { display: flex; gap: 8px; align-items: center; }
.ex-mm { flex: 1; }
.ex-mm button { padding: 7px 0 !important; font-size: 13px !important; font-weight: 700; }
.ex-levpill { flex: 1; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); color: var(--text); border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.ex-levpill b { color: var(--gold); }
.ex-levbox { padding: 8px 4px 2px; }
.ex-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); }
.ex-tabs button { background: none; border: 0; color: var(--muted); font-size: 14px; font-weight: 700; padding: 8px 0; cursor: pointer; position: relative; }
.ex-tabs button.on { color: var(--text); }
.ex-tabs button.on::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text); }
.ex-f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.ex-f small { color: var(--dim); }
.ex-in { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); border-radius: 10px; padding: 0 10px; }
.ex-in:focus-within { border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.ex-in input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 600 15px var(--mono); padding: 11px 0; }
.ex-in em { font-style: normal; font-size: 12px; color: var(--muted); }
.ex-in-b { background: rgba(255, 255, 255, .08); border: 0; color: var(--text); border-radius: 6px; padding: 4px 8px; font-size: 11.5px; cursor: pointer; }
.ex-pct input[type=range] { width: 100%; margin: 0; accent-color: var(--gold); }
.ex-ticks { display: flex; justify-content: space-between; }
.ex-ticks button { background: none; border: 0; color: var(--dim); font-size: 11px; cursor: pointer; padding: 2px 0; }
.ex-ticks button:hover { color: var(--gold); }
.ex-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.ex-row b { color: var(--text); }
.ex-ck { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.ex-ck input { accent-color: var(--gold); }
.ex-tpsl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ex-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 2px; }
.ex-buy, .ex-sell { border: 0; border-radius: 999px; padding: 14px 6px; font-size: 15px; font-weight: 800; color: #fff; cursor: pointer; transition: filter .15s, transform .1s; }
.ex-buy { background: #e5484d; }
.ex-sell { background: #3b82f6; }
.ex-buy:hover, .ex-sell:hover { filter: brightness(1.1); }
.ex-buy:active, .ex-sell:active { transform: scale(.98); }
.ex-buy:disabled, .ex-sell:disabled { opacity: .6; }
.ex-max { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
@media (max-width: 760px) { .ex-head { gap: 12px; } .ex-kvs { gap: 12px 16px; } .ex-last b { font-size: 20px; } }
@media (max-width: 540px) {
  .ex-last { flex: 1 1 100%; min-width: 0; }
  .ex-kvs { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 승률 */
.rk-wr { display: inline-block; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 999px; line-height: 16px; margin-left: 4px; background: rgba(255, 255, 255, .06); color: var(--muted); white-space: nowrap; }
.rk-wr.hi { color: #3ddc97; background: rgba(61, 220, 151, .1); }
.rk-wr.lo { color: #ff8a8a; background: rgba(255, 107, 107, .08); }
.pc-h { position: relative; }
.pc-all { margin-left: auto; text-align: right; display: flex; flex-direction: column; padding-right: 24px; }
.pc-all span { font-size: 11px; color: var(--muted); }
.pc-all b { font-size: 22px; }
.pc-all small { font-size: 10.5px; color: var(--dim); }

/* 👤 내 프로필 */
body:not(.view-profile) [data-v="profile"] { display: none !important; }
.profile-view { margin-top: 18px; }
.pf-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pf-card, .pf-f { background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.pf-forms { display: flex; flex-direction: column; gap: 16px; }
.pf-f { display: flex; flex-direction: column; gap: 10px; }
.pf-t { margin: 0; font-weight: 800; font-size: 15px; }
.pf-cur { margin: 0; font-size: 13px; color: var(--muted); }
.pf-cur b { color: var(--gold); font-size: 15px; }
.pf-guest { padding: 40px; text-align: center; background: var(--card2); border: 1px solid var(--line); border-radius: 18px; }
@media (max-width: 860px) { .pf-wrap { grid-template-columns: minmax(0, 1fr); } }

/* 오목대회 탭 배지 */
.tab-badge { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 800; line-height: 16px; background: rgba(255, 255, 255, .08); color: var(--muted); white-space: nowrap; }
.tab-badge.live { background: #18c37e; color: #fff; animation: tabPulse 1.8s ease-in-out infinite; }
@keyframes tabPulse { 50% { box-shadow: 0 0 0 4px rgba(24, 195, 126, .2); } }
.mnav .tab-badge { position: absolute; top: 2px; right: 50%; transform: translateX(26px); font-size: 9px; line-height: 14px; padding: 0 4px; }
.mnav a { position: relative; }

/* 테마 전환 버튼 */
.theme-tg { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card); color: var(--text); font-size: 15px; cursor: pointer; display: inline-grid; place-items: center; flex: none; }
.theme-tg:hover { border-color: var(--gold); }
.theme-tg.float { position: fixed; top: 10px; left: 12px; z-index: 900; }

/* ── 밝은 화면 ── */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f1ec;
  --bg2: #ebe8e1;
  --card: #ffffff;
  --card2: #fbfaf7;
  --line: rgba(20, 18, 14, 0.09);
  --line2: rgba(20, 18, 14, 0.16);
  --text: #1c1b1f;
  --muted: #55535d;
  --dim: #65636d;
  --gold: #a07612;
  --gold2: #7d5a0c;
  --goldsoft: rgba(160, 118, 18, 0.12);
  --up: #e0314a;
  --upsoft: rgba(224, 49, 74, 0.1);
  --down: #2768d8;
  --downsoft: rgba(39, 104, 216, 0.1);
  --positive-text: #b41e3b;
  --negative-text: #1b55a1;
  --success-text: #176541;
  --gold-text: #765108;
  --credit-panel: #fffdf8;
  --credit-surface: #f3f0e8;
  --credit-input: #ffffff;
  --flat: #8a8a93;
}
html[data-theme="light"] .seg button.on, html[data-theme="light"] .m-tabs button.on, html[data-theme="light"] .view-tabs a.on { background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08), inset 0 0 0 1px var(--line2); }
html[data-theme="light"] :is(.ex, .sbar, .st.neutral, .r-bar, .chip, .agree, .m-feats i, .simbar, .wv-st, .pgrade, .tab-badge:not(.live), .om-rec, .rk-wr:not(.hi):not(.lo)) { background: #ebe8e2; }
html[data-theme="light"] .pgrade { color: #3a3a44; }
html[data-theme="light"] :is(.modal-card, .ar-modal-in, .pc-in, .g-alert, .ver-bar, .ar-toast, .ar-ind, .ex-head, .om-emote-pop) { background: #ffffff; color: var(--text); }
html[data-theme="light"] .ar-click { background: rgba(255, 255, 255, .98); }
html[data-theme="light"] .om-turn-pop { background: rgba(255, 255, 255, .96); }
html[data-theme="light"] .ar-modal-in p { color: var(--muted); }
html[data-theme="light"] .topbar { background: rgba(255, 255, 255, .9) !important; }
html[data-theme="light"] .newsline, html[data-theme="light"] .shoutline, html[data-theme="light"] .feedline, html[data-theme="light"] .tape { background: rgba(255, 255, 255, .75); }
html[data-theme="light"] .bal-chip.float { background: rgba(255, 255, 255, .95); }
html[data-theme="light"] :is(.ex-in, .ex-levpill, .om-chat-f input, .ar-f input:not([type=range])) { background: #f6f4ef; }
html[data-theme="light"] .om-msg-t { color: var(--text); }
html[data-theme="light"] .om-chat-list { background: #f6f4ef; }
html[data-theme="light"] .om-em-pal { background: #f6f4ef; }
html[data-theme="light"] .ar-tv { background: #ffffff; }
html[data-theme="light"] .rk-row, html[data-theme="light"] .om-rk:nth-child(odd), html[data-theme="light"] .ar-cert-row, html[data-theme="light"] .pc-grid > div { background: rgba(20, 18, 14, .035); }
html[data-theme="light"] .bal-chip { background: rgba(160, 118, 18, .08); }
html[data-theme="light"] body { background: var(--bg); }

/* 🏙 부동산 · 졸업시티 */
body:not(.view-city) [data-v="city"] { display: none !important; }
.city { margin-top: 18px; }
.ct-top { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.ct-chip { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; min-width: 140px; }
.ct-chip > span { font-size: 11.5px; color: var(--muted); }
.ct-chip b { font-size: 18px; }
.ct-chip small { font-size: 11px; color: var(--dim); }
.ct-chip.ct-rent { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ct-chip.ct-rent > span { width: 100%; }
.ct-chip.ct-guest { flex-direction: row; align-items: center; gap: 12px; }
.ct-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.ct-mapbox { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); background: #0e2238; scroll-margin-top: 150px; }
.ct-map { height: min(72vh, 680px); min-height: 420px; touch-action: none; }
.ct-map canvas { display: block; cursor: grab; outline: none; }
.ct-map canvas:focus-visible { box-shadow: inset 0 0 0 3px rgba(240, 185, 11, .8); }
.ct-map canvas:active { cursor: grabbing; }
.ct-tip { position: absolute; pointer-events: none; background: rgba(10, 14, 22, .92); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 9px; max-width: 220px; line-height: 1.4; z-index: 3; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.ct-tip-b { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.ct-tip-n { font-size: 13px; color: #fff; }
.ct-tip-n small { color: #ffd54f; font-weight: 700; }
.ct-tip-b > span { color: rgba(255, 255, 255, .86); overflow-wrap: anywhere; }
.ct-tip-v { color: #ffd54f; }
.ct-tip-me { font-style: normal; font-size: 10.5px; font-weight: 800; background: #f0b90b; color: #1b1f2b; border-radius: 6px; padding: 0 5px; margin-left: 2px; }
.ct-tip-sale { color: #ff8fa3 !important; }
.ct-park { margin-top: 10px; padding: 10px; border: 1px solid var(--line2); border-radius: 12px; background: rgba(42, 79, 158, .06); }
.ct-park > p:first-child { margin: 0 0 8px; font-weight: 700; }
.ct-drone-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--card);
}
.ct-drone-card img { object-fit: contain; }
.ct-drone-card h4 { margin: 0; font-size: 14px; }
.ct-drone-card p { margin: 4px 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.ct-drone-card .ct-acts { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 0; }
.ct-park-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ct-park-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line2); font-size: 12px; min-height: 34px; }
.ct-park-slot b { font-weight: 700; }
.ct-park-slot small { color: var(--muted); flex-basis: 100%; }
.ct-park-slot.empty { border-style: dashed; color: var(--muted); justify-content: center; }
.ct-park-slot.me { border-color: var(--gold); background: rgba(240, 185, 11, .1); }
.ct-park-x { margin-left: auto; border: 1px solid var(--line2); background: none; color: var(--text); border-radius: 7px; font-size: 11px; padding: 1px 7px; cursor: pointer; }
.ct-park-x:hover { border-color: var(--gold); }
.ct-carmodal-wrap .ar-modal-in.ct-carmodal { max-width: 760px; width: 100%; max-height: min(86vh, 820px); display: flex; flex-direction: column; text-align: left; padding: 18px 18px 12px; border-color: var(--line2); background: var(--card, #121217); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
body.ct-modal-open main.wrap { z-index: 30; }
.bk-modal { max-width: 640px !important; }
.tw-modal { max-width: 860px !important; }
.bn-modal { max-width: 560px !important; }
.cs-game.bn-send { background: radial-gradient(ellipse at 50% 30%, #2a5bd7, #13285e); }
.cs-game.bn-loan { background: radial-gradient(ellipse at 50% 30%, #8a6a12, #3a2a05); }
.bn-modal .ct-bankf { display: grid; gap: 8px; }

.tw-table td, .tw-table th { font-size: 12.5px; }
.tw-table tr { cursor: default; }

.st-item { display: grid !important; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; }
.st-item .st-thumb { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #3a4150, #1d222b); position: relative; }
.st-item .st-thumb img { position: absolute; left: 50%; top: 50%; width: 190%; transform: translate(-50%, calc(-1 * var(--fy))); image-rendering: pixelated; }

.bk-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.bk-sum > div { padding: 10px; border-radius: 12px; border: 1px solid var(--line2); text-align: center; }
.bk-sum span { display: block; font-size: 12px; color: var(--muted); }
.bk-sum b { font-size: 17px; }
.bk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bk-table th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--line2); }
.bk-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; position: relative; }
.bk-table tr { cursor: pointer; }
.bk-table tr:hover td, .bk-table tr.on td { background: rgba(240, 185, 11, .07); }
.bk-table tr.zero td { opacity: .55; }
.bk-table td small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin: 1px 0 4px; }
.bk-table .r { text-align: right; white-space: nowrap; }
.bk-bar { display: block; height: 4px; border-radius: 4px; background: #18c37e; min-width: 0; }
.bk-bar.neg { background: #ef4565; }
.bk-detail { margin-top: 10px; padding: 10px; border: 1px solid var(--line2); border-radius: 12px; }
.bk-detail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.bk-detail li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; }
.bk-tip, .bk-note { font-size: 12px; margin: 8px 0 0; }
.bk-chart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; height: 90px; align-items: end; }
.bk-chart > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bk-chart i { display: block; width: 100%; max-width: 22px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #ffd54f, #f0b90b); }
.bk-chart small { font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.ct-casino { margin-top: 10px; padding: 10px; border: 1px solid rgba(240, 185, 11, .45); border-radius: 12px; background: rgba(120, 20, 40, .08); }
.cs-modal { max-width: 560px !important; }
.cs-tabs, .cs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.cs-tabs .chip, .cs-chips .chip { cursor: pointer; }
.cs-wallet { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 13px; margin-bottom: 8px; }
.cs-table { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border-radius: 16px; background: radial-gradient(ellipse at center, #1f6b45, #0f3d27); border: 3px solid #6b4a1f; min-height: 128px; }
.cs-table.empty { display: grid; place-items: center; grid-template-columns: 1fr; color: #d7f0e2; font-size: 13px; text-align: center; }
.cs-hand { text-align: center; color: #e9f7ef; border-radius: 10px; padding: 4px; }
.cs-hand.won { box-shadow: 0 0 0 2px #ffd54f inset; background: rgba(255, 213, 79, .08); }
.cs-hand small { display: block; margin-bottom: 6px; font-weight: 700; }
.cs-hand > div { display: flex; justify-content: center; gap: 4px; }
.cs-card { position: relative; width: 42px; height: 60px; perspective: 400px; opacity: 0; animation: csDeal .3s ease forwards; animation-delay: var(--d); }
.cs-cf, .cs-cb { position: absolute; inset: 0; border-radius: 6px; backface-visibility: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.cs-cf { background: #fdfdf8; color: #1b1f2b; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotateY(180deg); animation: csFlipF .35s ease forwards; animation-delay: calc(var(--d) + .25s); }
.cs-cb { background: repeating-linear-gradient(45deg, #8a1c2c 0 4px, #a8283b 4px 8px); border: 2px solid #f4e3b5; animation: csFlipB .35s ease forwards; animation-delay: calc(var(--d) + .25s); }
.cs-card.red .cs-cf { color: #c62828; }
.cs-cf b { font-size: 17px; line-height: 1; } .cs-cf i { font-style: normal; font-size: 15px; }
@keyframes csFlipF { to { transform: rotateY(0deg); } }
@keyframes csFlipB { to { transform: rotateY(-180deg); } }
.cs-hand .cs-pt, .cs-reveal { opacity: 0; animation: csShow .3s ease forwards; animation-delay: var(--rd); }
.cs-hand.won { box-shadow: none; animation: csWon .3s ease forwards; animation-delay: var(--rd); }
@keyframes csShow { to { opacity: 1; } }
@keyframes csWon { to { box-shadow: 0 0 0 2px #ffd54f inset; background: rgba(255, 213, 79, .1); } }
.cs-pt { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 6px; background: rgba(0, 0, 0, .35); }
.cs-reel { overflow: hidden; position: relative; }
.cs-reel b { font-size: 44px; line-height: 1; }
.cs-reel.run .cs-strip { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; align-items: center; animation: csRoll .45s linear infinite; }
.cs-reel.run .cs-strip b { height: 86px; display: grid; place-items: center; filter: blur(1.2px); }
@keyframes csRoll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.cs-reel.stop b { animation: csLand .25s ease; }
@keyframes csLand { 0% { transform: translateY(-18px); } 70% { transform: translateY(4px); } 100% { transform: none; } }
.cs-slot.win { box-shadow: 0 0 0 3px #ffd54f, 0 0 24px rgba(255, 213, 79, .5); }
.cs-res.jack { font-size: 20px; animation: csJack .6s ease 3; }
@keyframes csJack { 50% { transform: scale(1.12); } }
.cs-chips { gap: 8px; }
.cs-chip { width: 46px; height: 46px; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .7); color: #fff; font-weight: 800; font-size: 12px; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.cs-chip.c100 { background: #6b7280; } .cs-chip.c500 { background: #2a5bd7; } .cs-chip.c1000 { background: #1f8f5a; } .cs-chip.c5000 { background: #c62839; } .cs-chip.c10000 { background: #1b1f2b; border-color: #ffd54f; }
.cs-chip.on { transform: translateY(-4px); box-shadow: 0 0 0 3px #ffd54f, 0 6px 12px rgba(0, 0, 0, .35); }
.cs-chip:disabled { opacity: .6; cursor: wait; }
.cs-lobby-t { font-weight: 800; font-size: 16px; margin: 6px 0 10px; text-align: center; }
.cs-lobby { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-game { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px; border-radius: 16px; border: 2px solid rgba(255, 213, 79, .5); color: #fff; cursor: pointer; font: inherit; text-align: center; transition: transform .15s; }
.cs-game:hover { transform: translateY(-3px); }
.cs-game, .cs-game b, .cs-game small { color: #fff !important; }
.cs-game em { color: #ffd54f !important; }
.cs-game.bacc { background: radial-gradient(ellipse at 50% 30%, #2a7a52, #0f3d27); }
.cs-game.slot { background: radial-gradient(ellipse at 50% 30%, #6a1a2e, #250914); }
.cs-game-art { position: relative; font-size: 54px; line-height: 1.1; }
.cs-game-art i { position: absolute; font-style: normal; font-size: 20px; } .cs-game-art i:first-of-type { left: -16px; top: 4px; } .cs-game-art i:last-of-type { right: -16px; bottom: 2px; }
.cs-game b { font-size: 18px; } .cs-game small { font-size: 12px; opacity: .9; } .cs-game em { font-style: normal; font-size: 11.5px; color: #ffd54f; }
.cs-note { font-size: 12px; margin-top: 12px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .cs-card, .cs-cf, .cs-cb, .cs-reveal, .cs-hand .cs-pt, .cs-reel.run .cs-strip { animation-duration: .01s !important; animation-delay: 0s !important; } }
@keyframes csDeal { from { opacity: 0; transform: translateY(-14px) rotate(-8deg); } to { opacity: 1; transform: none; } }
.cs-win { text-align: center; font-weight: 800; margin: 8px 0 0; }
.cs-res { text-align: center; font-weight: 800; font-size: 16px; margin: 8px 0; }
.cs-res.win { color: #18c37e; } .cs-res.lose { color: #ef4565; }
.cs-bets { display: flex; gap: 8px; margin: 10px 0; }
.cs-side { flex: 1; border: 0; border-radius: 12px; padding: 12px 6px; font: inherit; font-weight: 800; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cs-side small { font-weight: 500; font-size: 11px; opacity: .9; }
.cs-side.p { background: #2a5bd7; } .cs-side.b { background: #c62839; } .cs-side.t { background: #1f8f5a; }
.cs-side:disabled, .cs-spin:disabled { opacity: .5; cursor: wait; }
.cs-spin { flex: 1; padding: 12px; font-size: 15px; }
.cs-slot { display: flex; justify-content: center; gap: 10px; padding: 18px; border-radius: 18px; background: linear-gradient(180deg, #3a0d1a, #1b0710); border: 3px solid #d4a017; }
.cs-reel { width: 74px; height: 86px; display: grid; place-items: center; font-size: 44px; border-radius: 12px; background: #fffaf0; box-shadow: inset 0 6px 10px rgba(0, 0, 0, .25); }
@keyframes csSpin { 0% { transform: translateY(-6px); filter: blur(1.5px); } 50% { transform: translateY(6px); } 100% { transform: translateY(-6px); filter: blur(1.5px); } }
.cs-rule { font-size: 12.5px; color: var(--muted); } .cs-rule summary { cursor: pointer; color: var(--text); }
.cs-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; margin: 6px 0; color: var(--text); }
.ct-staff { margin-top: 10px; padding: 10px; border: 1px solid var(--line2); border-radius: 12px; background: rgba(24, 195, 126, .05); }
.ct-staff-list { display: grid; gap: 6px; margin: 4px 0 8px; }
.ct-staff-row { display: flex; align-items: center; gap: 8px; }
.ct-staff-row > div { flex: 1; min-width: 0; }
.ct-staff-row small { display: block; color: var(--muted); font-size: 11.5px; }
.tl-face { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: end center; background: #dfe6ee; }
.tl-face img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; image-rendering: pixelated; }
.tl-face.lg { width: 64px; height: 64px; }
.tl-face.r-cfo { background: #e8dcc0; } .tl-face.r-marketer { background: #ffd9c7; } .tl-face.r-designer { background: #e3d6f5; } .tl-face.r-accountant { background: #d4e7f7; }
.tl-face.r-newbie { background: #d8f2d6; } .tl-face.r-developer { background: #cfe0ea; } .tl-face.r-sales { background: #f7e3b8; } .tl-face.r-hr { background: #f6d5e3; } .tl-face.r-lawyer { background: #d9d9e3; } .tl-face.r-chef { background: #f3ead7; }
.tl-face.r-strategist { background: #cdddf5; } .tl-face.r-scenario_planner { background: #d2eddd; }
.tl-face.r-fund_manager { background: #dcdaf3; } .tl-face.r-wall_street_fund_manager { background: #f3dfb5; }
.tl-grade { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 0 6px; border-radius: 6px; color: #1b1f2b; vertical-align: 1px; }
.tl-grade.g-S { background: linear-gradient(135deg, #ffd54f, #ff9f43); } .tl-grade.g-A { background: #7fd3ff; } .tl-grade.g-B { background: #b9e6a8; } .tl-grade.g-C { background: #d5d8de; }
.ct-talmodal { max-width: 980px !important; }
.tl-roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.tl-roles .chip { cursor: pointer; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(268px, 100%), 1fr)); gap: 10px; }
.tl-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line2); border-radius: 14px; background: var(--card, #121217); }
.tl-card.busy { opacity: .62; }
.tl-top { display: flex; gap: 10px; align-items: center; }
.tl-name { font-size: 15px; }
.tl-role { font-size: 13px; font-weight: 600; margin: 1px 0; }
.tl-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 0; font-size: 12.5px; }
.tl-dl dt { color: var(--muted); } .tl-dl dd { margin: 0; }
.tl-traits { display: flex; flex-wrap: wrap; gap: 4px; }
.tl-traits span { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(127, 211, 255, .14); color: var(--text); }
.tl-perk { margin: 0; font-size: 12px; color: var(--muted); }
.tl-gain { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; border-radius: 10px; background: rgba(24, 195, 126, .08); font-size: 12.5px; }
.tl-gain > span { font-size: 11px; color: var(--muted); }
.tl-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.tl-st { font-size: 11.5px; } .tl-st.free { color: #18c37e; } .tl-st.busy { color: var(--muted); } .tl-st.here { color: var(--gold); font-weight: 700; }
/* 그룹 본사 운영실 */
.hq-dialog { width: min(780px, calc(100% - 20px)); max-height: calc(100dvh - 26px); padding: 0; box-sizing: border-box; overflow: hidden; color: var(--text); background: var(--card); border: 1px solid var(--gold); border-radius: 20px; box-shadow: 0 5px 0 rgba(181, 122, 16, .55), 0 28px 70px rgba(9, 12, 24, .55); }
.hq-dialog[open] { display: flex; flex-direction: column; }
.hq-dialog::backdrop { background: rgba(6, 8, 17, .72); backdrop-filter: blur(4px); }
.hq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 18px 13px; border-bottom: 1px solid var(--line2); }
.hq-head h3 { margin: 0; font-family: var(--game); font-size: 21px; font-weight: 600; }
.hq-dialog .btn:disabled { opacity: .48; cursor: default; }
.hq-head small { color: var(--muted); overflow-wrap: anywhere; }
.hq-body { padding: 14px 18px 16px; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.hq-body p { margin: 0; }
.hq-kpis.ct-co-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.hq-kpis > div { background: var(--card2); overflow-wrap: anywhere; }
.hq-kpis > div b { margin-top: 2px; font-size: 15px; }
.hq-kpis small, .hq-section-title small { color: var(--muted); }
.hq-kpis > div > small { font-size: 11px; }
.hq-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.hq-section-title h4 { margin: 0; font-size: 15px; }
.hq-departments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hq-dept { display: grid; align-content: start; gap: 7px; min-height: 108px; padding: 10px; border: 1px solid var(--line2); border-radius: 12px; color: var(--text); background: var(--card2); text-align: left; font: inherit; }
button.hq-dept { cursor: pointer; transition: border-color .15s ease; }
button.hq-dept:focus-visible, button.hq-dept[aria-expanded="true"] { border-color: var(--gold); outline: 1px solid var(--gold); }
@media (hover: hover) { button.hq-dept:hover { border-color: var(--gold); } }
.hq-dept-name { font-weight: 800; font-size: 13px; }
.hq-dept-person { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.hq-dept-person small, .hq-connect small, .hq-preview small { display: block; color: var(--muted); font-size: 11px; }
.hq-empty-seat { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border: 1px dashed var(--line2); border-radius: 10px; font-size: 19px; color: var(--gold); }
.hq-dept-effect { color: var(--gold); font-size: 11px; }
.hq-found, .hq-connect, .hq-edit { margin-top: 12px; padding: 10px; border: 1px solid var(--line2); border-radius: 12px; }
.hq-found, .hq-connect { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.hq-edit-actions.ct-acts { margin: 0; }
.hq-preview:not(:empty) { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.hq-body .hq-note, .hq-body .hq-empty-note { margin-top: 10px; color: var(--muted); font-size: 12px; }
.hq-feedback { margin: 0; padding: 7px 18px 10px; color: var(--gold); font-size: 13px; }
.hq-feedback:empty { display: none; }
@media (max-width: 600px) {
  .hq-head { padding: 12px; }
  .hq-body { padding: 10px 12px 13px; }
  .hq-kpis.ct-co-kpi, .hq-departments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hq-kpis > div:last-child { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) { .hq-dept { transition: none; } }
.ct-carmodal-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ct-carmodal-h h3 { margin: 0 0 2px; font-size: 18px; }
.ct-carmodal-body { overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.ct-carmodal-body .ct-grid { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.ct-carmodal-tip { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: rgba(240, 185, 11, .1); color: var(--text); font-size: 13px; }
.ct-carmodal-body .ct-carbuy { position: sticky; top: 0; z-index: 2; background: var(--card, #121217); margin-bottom: 10px; }
@media (max-width: 640px) { .ct-carmodal-wrap { padding: 8px 8px 76px; align-items: flex-end; } .ct-carmodal-wrap .ar-modal-in.ct-carmodal { max-height: 90vh; border-radius: 18px 18px 12px 12px; } }
.ct-tip small { color: #c9ced6; }
.ct-tools { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.ct-tb { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(10, 14, 22, .7); color: #fff; font-size: 16px; cursor: pointer; }
.ct-tb:hover { background: rgba(10, 14, 22, .9); border-color: var(--gold); }
.ct-filters { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ct-filters .chip { background: rgba(10, 14, 22, .7); color: #fff; border: 1px solid rgba(255, 255, 255, .16); cursor: pointer; }
.ct-filters .chip.on { background: var(--gold); color: #1b1f2b; }
@media (max-width: 980px) {
  .ct-stage .ct-filters { right: 56px; }
}
.ct-buildbar { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; background: rgba(10, 14, 22, .88); color: #fff; border: 1px solid var(--gold); border-radius: 999px; white-space: nowrap; }
.ct-buildbar .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.ct-help { position: absolute; left: 12px; bottom: 8px; margin: 0; font-size: 11px; color: rgba(255, 255, 255, .75); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); pointer-events: none; }
.ct-side { background: var(--card2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; max-height: min(72vh, 680px); min-height: 420px; }
.ct-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.ct-tabs button { padding: 10px 2px; background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; }
.ct-tabs button.on { color: var(--text); border-bottom-color: var(--gold); }
.ct-pane { padding: 12px; overflow-y: auto; flex: 1; }
.ct-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ct-cats .chip, .ct-sizes .chip { cursor: pointer; border: 1px solid var(--line); }
.ct-cats .chip.on { background: var(--gold); color: #1b1f2b; border-color: var(--gold); }
.ct-build-vehicles { align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
.ct-build-vehicles > span { margin-inline-end: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.ct-build-filters .chip, .ct-build-vehicles .chip { min-height: 36px; white-space: normal; }
.ct-build-card { min-width: 0; cursor: default; }
.ct-build-card .ct-build-main, .ct-build-card .ct-build-info {
  width: 100%; border: 0; padding: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer;
}
.ct-build-main { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 2px; }
.ct-build-main canvas { max-width: 100%; }
.ct-build-main small, .ct-build-main .dim { color: var(--muted); }
.ct-build-main .ct-price { overflow-wrap: anywhere; }
.ct-build-main .ct-go { justify-content: center; margin-top: auto; min-height: 28px; }
.ct-build-card .ct-build-info { min-height: 34px; color: var(--gold-text); font-size: 12px; font-weight: 700; }
.ct-build-card .ct-build-info:hover { text-decoration: underline; text-underline-offset: 3px; }
.ct-build-card button:focus-visible, .ct-build-filters .chip:focus-visible, .ct-build-vehicles .chip:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px;
}
@media (pointer: coarse) {
  .ct-build-card .ct-build-info, .ct-build-filters .chip, .ct-build-vehicles .chip { min-height: 44px; }
}
.ct-sizes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.ct-sizes .chip { display: flex; flex-direction: column; align-items: center; padding: 5px 0; font-weight: 800; font-size: 12px; }
.ct-sizes .chip small { font-weight: 400; font-size: 9.5px; color: var(--dim); }
.ct-sizes .chip:hover { border-color: var(--gold); }
.ct-step { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed var(--line2); }
.ct-step-t { margin: 0 0 8px; font-size: 13px; }
.ct-step-t small { font-size: 11px; }
.ct-hint { font-size: 12px; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ct-card { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 6px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--text); cursor: pointer; text-align: center; font: inherit; }
.ct-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.ct-card canvas { width: 116px; height: 92px; }
.ct-card b { font-size: 13px; }
.ct-card small { font-size: 11px; color: var(--dim); }
.ct-price { font-weight: 800; color: var(--gold-text); font-size: 14px; }
.ct-info h3 { margin: 0 0 6px; font-size: 17px; }
.ct-info p { margin: 6px 0; font-size: 13px; }
.ct-dl { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 5px 12px; margin: 10px 0; font-size: 13px; }
.ct-dl :is(dt, dd) { min-width: 0; overflow-wrap: anywhere; }
.ct-dl dt { color: var(--muted); }
.ct-dl dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ct-why { font-size: 12px; color: var(--success-text); background: rgba(24, 195, 126, .08); padding: 6px 9px; border-radius: 8px; }
.ct-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ct-acts .btn.armed, .btn.armed { background: #ef4565 !important; color: #fff !important; border-color: #ef4565 !important; }
.ct-need { background: rgba(240, 185, 11, .1); border: 1px solid rgba(240, 185, 11, .4); border-radius: 12px; padding: 10px; margin: 10px 0; font-size: 13px; }
.ct-need p { margin: 4px 0 8px; }
.ct-sale { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line2); }
.ct-sale label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.ct-sale label small { font-weight: 400; color: var(--dim); }
.ct-sale div { display: flex; gap: 6px; }
.ct-sale input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; }
.ct-owner { cursor: pointer; color: var(--gold-text); text-decoration: underline dotted; overflow-wrap: anywhere; }
.ct-list { display: flex; flex-direction: column; gap: 4px; }
.ct-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.ct-row:hover { border-color: var(--gold); }
.ct-row > span:last-child { text-align: right; white-space: nowrap; }
.ct-rk { display: inline-block; min-width: 22px; }
.ct-empty { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 13px; line-height: 1.6; }
.ct-rules p { font-size: 12.5px; line-height: 1.6; margin: 0 0 9px; }
.ct-logbox { margin-top: 14px; background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.ct-log { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 4px 16px; font-size: 12.5px; }
.ct-log li { padding: 4px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ct-log li b[data-uid] { cursor: pointer; }
@media (max-width: 980px) {
  .ct-wrap { grid-template-columns: minmax(0, 1fr); }
  .ct-side { max-height: none; min-height: 0; }
  .ct-map { height: 58vh; min-height: 340px; }
  .ct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-sizes { grid-template-columns: repeat(4, 1fr); }
  .ct-chip { min-width: 0; flex: 1 1 45%; }
  .ct-help { display: none; }
  .ct-buildbar { bottom: 10px; font-size: 12px; }
}
html[data-theme="light"] .ct-side, html[data-theme="light"] .ct-chip, html[data-theme="light"] .ct-logbox { background: #ffffff; }

.ct-tabs { grid-template-columns: repeat(6, 1fr); }
.ct-tabs button { font-size: 11.5px; }
.ct-occ { display: inline-block; width: 70px; height: 7px; border-radius: 9px; background: var(--line2); overflow: hidden; vertical-align: middle; }
.ct-occ i { display: block; height: 100%; border-radius: 9px; }
.ct-occ.hi i { background: #18c37e; }
.ct-occ.mid i { background: #f0b90b; }
.ct-occ.lo i { background: #ef4565; }
.ct-lv { margin-top: 10px; }
.ct-lv p { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; }
.ct-lv > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.ct-lv .chip { display: flex; flex-direction: column; align-items: center; cursor: pointer; border: 1px solid var(--line); font-weight: 800; font-size: 12px; padding: 5px 0; }
.ct-lv .chip small { font-weight: 400; font-size: 9.5px; color: var(--dim); }
.ct-lv .chip.on { background: var(--gold); color: #1b1f2b; border-color: var(--gold); }
.ct-lv .chip.on small { color: #3a2f10; }
.ct-co-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.ct-co-kpi > div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; display: flex; flex-direction: column; }
.ct-co-kpi span { font-size: 10.5px; color: var(--muted); }
.ct-co-kpi b { font-size: 14px; }
.ct-market { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line2); }
.ct-dem { display: grid; grid-template-columns: 62px 1fr 34px; align-items: center; gap: 8px; font-size: 12px; margin: 5px 0; }
.ct-dem-b { position: relative; height: 8px; background: var(--line2); border-radius: 9px; }
.ct-dem-b::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--muted); }
.ct-dem-b i { position: absolute; top: 0; bottom: 0; border-radius: 9px; }
.ct-dem-b i.pos { background: #18c37e; }
.ct-dem-b i.neg { background: #ef4565; }
.ct-dem b { text-align: right; }

/* 매수·매도 아래 시장가 청산 */
.ex-close { display: block; width: 100%; margin-top: 8px; border: 1px solid var(--line2); border-radius: 999px; padding: 11px 6px; background: var(--card); color: var(--text); font-weight: 800; font-size: 14px; cursor: pointer; }
.ex-close small { font-weight: 600; font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.ex-close:not(:disabled):hover { border-color: var(--gold); filter: brightness(1.08); }
.ex-close.long:not(:disabled) { border-color: rgba(229, 72, 77, .6); }
.ex-close.short:not(:disabled) { border-color: rgba(24, 195, 126, .6); }
.ex-close:disabled { opacity: .55; cursor: default; }

.ct-u { font-size: .68em; font-weight: 600; color: var(--muted); }
.ct-price .ct-u { color: var(--gold-text); }
.ct-co-kpi b { font-size: 13px; }

/* 프로필 카드: 총 자산 · 집 · 요트 */
.pc-asset .pc-total { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.pc-asset .pc-total > b { font-size: 24px; color: var(--gold); }
.pc-asset .pc-total small { font-size: 12px; color: var(--muted); }
.pc-split { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--muted); }
.pc-t2 { margin: 10px 0 6px; font-size: 12.5px; font-weight: 700; }
.pc-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.pc-prop { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 3px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.pc-prop canvas { width: 64px; height: 54px; border-radius: 6px; }
.pc-prop small { font-size: 10.5px; line-height: 1.2; }
.pc-prop em { font-style: normal; font-size: 10px; color: var(--gold); }
.pc-prop.more { justify-content: center; color: var(--muted); font-size: 12px; }
html[data-theme="light"] .pc-prop { background: #f6f4ef; }

.ct-ypv { display: block; width: 100%; height: 130px; border-radius: 12px; margin: 6px 0; }
.ct-card canvas[data-ypv] { width: 116px; height: 80px; border-radius: 8px; }
.sh-yacht { width: 120px; height: 80px; border-radius: 10px; }

/* 직업 */
.pc-job { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pc-job-m { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--goldsoft, rgba(240, 185, 11, .14)); color: var(--gold); border: 1px solid rgba(240, 185, 11, .35); }
.pc-job-m.job-idle { background: rgba(140, 140, 150, .14); color: var(--muted); border-color: var(--line2); }
.pc-job-m.job-ant { background: rgba(255, 138, 101, .12); color: #ff8a65; border-color: rgba(255, 138, 101, .35); }
.pc-job-m.job-legendtrader, .pc-job-m.job-tycoon, .pc-job-m.job-omokmaster { background: linear-gradient(90deg, #f0b90b, #ffdd75); color: #3a2a00; border-color: #f0b90b; }
.pc-job-s { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; color: var(--muted); border: 1px solid var(--line2); }
.pc-earn { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); padding: 8px 10px; margin: 6px 0 2px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 10px; }
.pc-earn b { font-size: 12.5px; }

/* 랭킹 보드: 지금 포지션 */
.rk-pos { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 800; line-height: 16px; white-space: nowrap; border: 1px solid transparent; }
.rk-pos.long { background: rgba(229, 72, 77, .12); color: #ff6b70; border-color: rgba(229, 72, 77, .35); }
.rk-pos.short { background: rgba(39, 104, 216, .14); color: #6ea2ff; border-color: rgba(39, 104, 216, .35); }
.rk-pos b { font-weight: 800; }
html[data-theme="light"] .rk-pos.long { color: #c8283e; }
html[data-theme="light"] .rk-pos.short { color: #1f57c0; }

.sh-cdeco { font-size: 46px; line-height: 1; }

/* 이름 · 꾸미기 */
.ct-name { margin: 8px 0; }
.ct-name label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; }
.ct-name div { display: flex; gap: 6px; }
.ct-name input { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; }
.ct-name.ask input { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 185, 11, .2); }
.ct-deco { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line2); }
.ct-deco > p:first-child { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ct-shoplink { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--gold); }
.ct-deco-slots { display: flex; flex-wrap: wrap; gap: 5px; }
.ct-deco-slots .chip { cursor: pointer; border: 1px solid var(--line); font-size: 11.5px; }
.ct-deco-slots .chip.on { background: var(--goldsoft, rgba(240, 185, 11, .14)); color: var(--gold); border-color: rgba(240, 185, 11, .4); }
.ct-empty-slot { opacity: .5; cursor: default !important; border-style: dashed !important; }
.pc-prop b { font-size: 10px; color: var(--gold); line-height: 1.2; }

.sh-for { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 3px; }
.sh-for i { font-style: normal; font-size: 10px; padding: 0 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--muted); }

/* 오목 전적 초기화권: 티켓 모양 */
.sh-ticket { position: relative; display: inline-flex; align-items: stretch; width: 128px; height: 62px; border-radius: 8px; background: linear-gradient(135deg, #f7d774, #e0a91a); color: #3a2a00; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); transform: rotate(-6deg); overflow: hidden;
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.sh-ticket .tk-l { display: grid; place-items: center; width: 38px; font-size: 13px; letter-spacing: -2px; border-right: 2px dashed rgba(58, 42, 0, .45); background: rgba(255, 255, 255, .18); }
.sh-ticket .tk-r { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 8px 0 10px; line-height: 1.1; }
.sh-ticket .tk-r b { font-size: 13px; font-weight: 900; }
.sh-ticket .tk-r small { font-size: 12px; font-weight: 800; }
.sh-ticket .tk-r em { font-style: normal; font-size: 8px; letter-spacing: .12em; opacity: .7; margin-top: 2px; }

/* 부동산 팝업 · 지분 · 회사 · BTC */
.ct-tabs { grid-template-columns: repeat(7, 1fr); }
.ct-tabs button { font-size: 10.5px; padding: 9px 0; }
.ct-modal { position: fixed; inset: 0; z-index: 2000; max-width: 100dvw; max-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; background: rgba(5, 8, 14, .6); backdrop-filter: blur(3px); animation: ctFade .15s ease; }
@keyframes ctFade { from { opacity: 0; } }
.ct-modal-in { width: min(400px, 100%); background: var(--card); color: var(--text); border: 1px solid var(--line2); border-radius: 18px; padding: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); animation: ctPop .2s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes ctPop { from { transform: scale(.92); opacity: 0; } }
.ct-modal-in h3 { margin: 6px 0 10px; font-size: 18px; text-align: center; }
.ct-modal-in p { text-align: center; font-size: 13.5px; color: var(--muted); margin: 6px 0; }
.ct-modal .ct-acts { justify-content: center; }
.ct-modal .ct-acts .btn { min-width: 110px; }
.ct-mi { font-size: 36px; text-align: center; line-height: 1; }
.ct-mi.big { font-size: 54px; }
.ct-mnote { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 6px 0; }
.btn.danger { background: #ef4565; color: #fff; border-color: #ef4565; }
.ct-eq, .ct-corp, .ct-btc { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line2); }
.ct-eqh { margin: 0 0 6px; font-size: 13px; font-weight: 800; }
.ct-sales-title { margin: 10px 0 5px; font-size: 12px; font-weight: 700; }
.ct-sales-list { margin: 0; padding-inline-start: 1.4em; font-size: 13px; }
.ct-sales-list li { padding-block: 3px; overflow-wrap: anywhere; }
.ct-sales-list li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.ct-sales-list small { display: block; color: var(--muted); font-variant-numeric: tabular-nums; }
.ct-profit { border-block-start: 1px solid var(--line); padding-block: 2px 7px; }
.ct-profit .ct-profit-net { font-size: 15px; font-weight: 800; padding-bottom: 4px; }
.ct-profit .ct-profit-note { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.ct-eqbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--line2); }
.ct-eqbar i, .ct-eqleg i { display: block; height: 100%; }
.ct-eqbar .o, .ct-eqleg .o { background: #f0b90b; }
.ct-eqbar .r0, .ct-eqleg .r0 { background: #4fc3f7; }
.ct-eqbar .r1 { background: #18c37e; }
.ct-eqbar .r2 { background: #b47cff; }
.ct-eqbar .r3 { background: #ff8a65; }
.ct-eqbar .c, .ct-eqleg .c { background: #8d9097; }
.ct-eqleg { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--muted); margin: 5px 0; }
.ct-eqleg i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 3px; vertical-align: -1px; }
.ct-reslist { display: flex; flex-direction: column; gap: 3px; font-size: 12px; margin: 6px 0; }
.ct-reslist > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ct-reslist b[data-uid] { cursor: pointer; }
.ct-due { background: rgba(239, 69, 101, .15) !important; color: #ef4565 !important; font-size: 10px !important; }
.ct-eqf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0; font-size: 12.5px; }
.ct-eqf input[type=number] { width: 90px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; }
.ct-myres { font-size: 13px; padding: 8px 10px; background: rgba(79, 195, 247, .08); border: 1px solid rgba(79, 195, 247, .3); border-radius: 10px; margin: 6px 0; }
.ct-f { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; margin: 8px 0; }
.ct-f select { padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; }

.pf-ledger { margin-top: 16px; background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.pf-ledger .pf-t2 { margin: 12px 0 6px; font-size: 13px; font-weight: 700; }
.pf-lsum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.pf-lsum > div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; }
.pf-lsum span { font-size: 11px; color: var(--muted); }
.pf-homes { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pf-lrows { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; max-height: 420px; overflow-y: auto; }
.pf-lrows > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.pf-lrows > div > span:last-child { white-space: nowrap; text-align: right; }
@media (max-width: 640px) { .pf-lsum { grid-template-columns: repeat(2, 1fr); } }

.ct-upg { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line2); }
.ct-stars i { font-style: normal; color: var(--dim); font-size: 12px; }
.ct-stars i.on { color: var(--gold-text); }

/* 내 프로필: 자산 · 아이템 */
.pf-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 10px 0 6px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(240, 185, 11, .16), rgba(240, 185, 11, .04)); border: 1px solid rgba(240, 185, 11, .35); }
.pf-total span { font-size: 13px; color: var(--muted); font-weight: 700; }
.pf-total b { font-size: 26px; color: var(--gold); }
.pf-total small { font-size: 12px; color: var(--muted); }
.pf-asum { grid-template-columns: repeat(5, 1fr); }
.pf-asum small { font-size: 10.5px; color: var(--dim); }
.pf-arows { display: flex; flex-direction: column; gap: 4px; }
.pf-arow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; color: var(--text); text-decoration: none; }
a.pf-arow:hover { border-color: var(--gold); }
.pf-arow > span:last-child { text-align: right; white-space: nowrap; }
.pf-items { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 6px 0; }
.pf-sl { font-size: 11.5px; font-weight: 800; color: var(--muted); min-width: 92px; }
.pf-item { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.pf-item.on { border-color: var(--gold); color: var(--gold); background: rgba(240, 185, 11, .08); }
@media (max-width: 640px) { .pf-asum { grid-template-columns: repeat(2, 1fr); } .pf-sl { min-width: 100%; } }

/* 밝은 화면 수동 보정 */
html[data-theme="light"] .om-tier { background: rgba(255, 255, 255, .85); }
html[data-theme="light"] .om-tier.t-chal { color: #fff; }
html[data-theme="light"] .ct-filters .chip { background: rgba(255, 255, 255, .94); color: var(--text); border-color: var(--line2); }
html[data-theme="light"] .ct-filters .chip.on { background: var(--gold); color: #fff; }
html[data-theme="light"] .ct-tb { background: rgba(255, 255, 255, .94); color: var(--text); border-color: var(--line2); }
html[data-theme="light"] .ct-help { color: var(--muted); text-shadow: none; }
html[data-theme="light"] .ct-buildbar { background: rgba(255, 255, 255, .96); color: var(--text); }
html[data-theme="light"] .ct-buildbar .btn.ghost { color: var(--text); border-color: var(--line2); }
html[data-theme="light"] .ct-mapbox { background: #cfe3f5; }
html[data-theme="light"] .nl-it { border-right-color: var(--line); }
html[data-theme="light"] .nl-tag { background: rgba(160, 118, 18, .08); }
html[data-theme="light"] .nl-new { color: #50320a; background: #ead193; }
html[data-theme="light"] .sl-tag, html[data-theme="light"] .nl-tag.sl-tag, html[data-theme="light"] .sl-empty b { color: #c8283e !important; }
html[data-theme="light"] .om-tier.t-bronze { color: #9a5a2a; }
html[data-theme="light"] .om-tier.t-silver { color: #5f6b78; }
html[data-theme="light"] .om-tier.t-gold { color: #a07612; }
html[data-theme="light"] .om-tier.t-plat { color: #11806e; }
html[data-theme="light"] .om-tier.t-diamond { color: #2a63c9; }
html[data-theme="light"] .om-tier.t-master { color: #8a3fd1; }
html[data-theme="light"] .om-tier.t-gm { color: #c62828; }



.ct-eqtag { color: var(--gold-text) !important; font-weight: 700; }
.ct-more { color: var(--gold, #f0b90b) !important; }
.ct-card-acts { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; width: 100%; flex-wrap: wrap; }
.ct-go { font-size: 11.5px; font-weight: 700; color: #1b1f2b; background: var(--gold, #f0b90b); border-radius: 999px; padding: 2px 9px; }
.ct-card-acts .ct-more { font-size: 11px; padding: 2px 4px; border-radius: 6px; text-decoration: underline; text-underline-offset: 2px; }
.ct-card-acts .ct-more:hover { background: rgba(240, 185, 11, .12); }
.ct-card:hover .ct-go { filter: brightness(1.08); }
.ct-spec .ct-specpic { display: block; width: 232px; height: 184px; margin: 4px auto 0; }
.ct-specbox { margin-top: 8px; }
.ct-specbox .ct-eqh { margin-top: 12px; }
.ct-specfold { margin: 8px 0; border: 1px dashed var(--line2); border-radius: 10px; padding: 6px 10px; }
.ct-specfold summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.pc-cnt { color: var(--text); font-size: 10.5px; }
.pc-lot canvas { opacity: .95; }



/* 🏛 지역 시의원 */
.ct-council-chip.on { background: linear-gradient(135deg, #f0b90b, #ffde7a); color: #1b1b1b; border-color: #f0b90b; }
.cc-head h3 { margin: 0 0 4px; font-size: 16px; }
.cc-list { display: flex; flex-direction: column; gap: 8px; }
.cc-card { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.cc-card.mayor { border-color: #f0b90b; background: linear-gradient(160deg, rgba(240, 185, 11, .16), rgba(240, 185, 11, .03)); box-shadow: 0 0 0 1px rgba(240, 185, 11, .25) inset; }
.cc-av { flex: none; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; width: 78px; border-radius: 12px; background: radial-gradient(circle at 50% 70%, rgba(255, 255, 255, .08), transparent 70%); }
.cc-card.mayor .cc-av { width: 100px; }
.cc-card.chief { border-color: #ff9d00; background: linear-gradient(160deg, rgba(255, 157, 0, .22), rgba(240, 185, 11, .05)); box-shadow: 0 0 0 2px rgba(255, 157, 0, .35) inset, 0 8px 24px -12px #ff9d00; }
.cc-card.chief .cc-av { width: 112px; }
.cc-card.chief .cc-seat { color: #ff9d00; font-size: 12.5px; }
.cc-body { flex: 1; min-width: 0; }
.cc-seat { margin: 0; font-size: 11px; font-weight: 800; color: var(--gold, #f0b90b); letter-spacing: .02em; }
.cc-name { margin: 1px 0 4px; cursor: pointer; font-size: 15px; }
.cc-job { font-size: 11px; color: var(--muted); }
.cc-titles { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.cc-title { display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .07); border: 1px solid var(--line2); white-space: nowrap; }
.cc-title.t-estateking, .cc-title.t-tradeking, .cc-title.t-whale, .cc-title.t-finance { border-color: rgba(240, 185, 11, .6); color: #f0b90b; }
.cc-title.t-biz, .cc-title.t-builder { border-color: rgba(79, 195, 247, .6); color: #4fc3f7; }
.cc-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 0; font-size: 12px; }
.cc-dl dt { color: var(--muted); }
.cc-dl dd { margin: 0; text-align: right; }
.cc-blds { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cc-bld { font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .05); color: var(--muted); }
.cc-row { align-items: center; }
.cc-mini { flex: none; display: inline-flex; margin-right: 4px; }
.cc-row > span:nth-child(2) { flex: 1; }
html[data-theme="light"] .cc-title { background: #f3f1ec; }
html[data-theme="light"] .cc-title.t-estateking, html[data-theme="light"] .cc-title.t-tradeking, html[data-theme="light"] .cc-title.t-whale, html[data-theme="light"] .cc-title.t-finance { color: #946c00; }
html[data-theme="light"] .cc-title.t-biz, html[data-theme="light"] .cc-title.t-builder { color: #1769a0; }
html[data-theme="light"] .cc-bld { background: #f3f1ec; }

/* 🧑 아바타 */
.pc-av { flex: none; width: 58px; display: flex; align-items: flex-end; margin-right: 2px; }
.pc-profile-photo { display: block; width: 58px; height: 58px; object-fit: cover; border-radius: 12px; }
.pc-titles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.pf-av { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.pf-av h3 { margin: 0 0 10px; font-size: 16px; }
.pf-photos p { margin: 0; }
.pf-photos a { color: var(--gold, #f0b90b); text-decoration: underline; }
.pf-photo-form { display: flex; align-items: center; gap: 12px; }
.pf-photo-preview { display: grid; flex: none; place-items: center; overflow: hidden; width: 72px; height: 72px; border-radius: 12px; background: var(--bg2, #10151f); font-size: 24px; }
.pf-photo-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-photo-controls { min-width: 0; }
.pf-photo-controls label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.pf-photo-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-photo-row select { max-width: 100%; min-height: 38px; padding: 5px 8px; border-radius: 8px; background: var(--bg2, #10151f); color: var(--text); border: 1px solid var(--line2); font: inherit; font-size: 13px; }
.studio-photo-shop[open] { position: fixed; inset: 50dvh auto auto 50dvw; transform: translate(-50%, -50%); margin: 0; display: flex; flex-direction: column; box-sizing: border-box; width: min(740px, calc(100dvw - 24px)); max-width: none; max-height: min(820px, calc(100dvh - 24px)); overflow: hidden; padding: 18px; border: 1px solid var(--line2); border-radius: 18px; background: var(--card); color: var(--text); text-align: left; box-shadow: 0 20px 60px #0007; }
.studio-photo-shop::backdrop { background: #070a12bc; }
.studio-photo-shop :is(.ct-carmodal-h, .studio-photo-filters) { flex-shrink: 0; }
.studio-photo-shop .ct-carmodal-h h3 { margin: 0; }
.studio-photo-shop [data-photo-close] { min-width: 40px; min-height: 40px; }
.studio-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: none; gap: 8px; margin-bottom: 12px; }
.studio-tab { min-height: 46px; padding: 8px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg2); color: var(--text); font: inherit; font-size: 15px; font-weight: 800; line-height: 1.3; text-align: center; cursor: pointer; }
.studio-tab[data-studio-view="logos"] { border-color: var(--gold2); background: color-mix(in srgb, var(--gold) 10%, var(--card)); color: var(--gold2); }
.studio-tab:hover { border-color: var(--gold); }
.studio-tab[aria-current="page"] { border-color: #a97722; background: #ffe29c; color: #2d200c; cursor: default; }
.studio-tab:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
.studio-photo-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.studio-photo-filters .chip { min-height: 34px; padding: 4px 9px; }
.studio-photo-preview { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px; margin-bottom: 10px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg2); }
.studio-photo-preview img, .studio-photo-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--bg2); }
.studio-photo-preview h4 { margin: 0; font-size: 17px; }
.studio-photo-preview h4:focus { outline: none; }
.studio-photo-shop .studio-photo-preview p { margin: 2px 0 4px; color: var(--text); }
.studio-photo-preview .btn { min-height: 40px; white-space: normal; }
.studio-photo-preview .studio-photo-confirm { border-color: #d08c18; background: #d08c18; color: #101018; }
.studio-photo-shop p.studio-photo-error { color: var(--red, #ff647c); }
.studio-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(98px, 100%), 1fr)); gap: 8px; }
.studio-photo-card { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 5px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.studio-photo-card[aria-pressed="true"] { border-color: var(--gold, #f0b90b); box-shadow: inset 0 0 0 1px var(--gold, #f0b90b); }
.studio-photo-card b { font-size: 12px; line-height: 1.25; }
.studio-photo-card small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.studio-photo-shop .studio-photo-empty { padding: 12px 2px; color: var(--muted); }
@media (max-width: 520px) {
  .studio-photo-shop[open] { width: calc(100dvw - 16px); padding: 12px; }
  .studio-photo-preview { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
  .studio-photo-preview h4 { font-size: 15px; }
}
.pf-av-wrap { display: flex; gap: 16px; flex-wrap: wrap; }
.pf-av-pic { flex: none; width: 170px; text-align: center; padding: 10px 0 6px; border-radius: 14px; background: radial-gradient(circle at 50% 75%, rgba(240, 185, 11, .14), transparent 70%); }
.pf-av-pic p { margin: 6px 0 0; font-size: 11px; }
.pf-av-opts { flex: 1; min-width: 240px; }
.pf-av-opts > p { margin: 8px 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pf-row { display: flex; flex-wrap: wrap; gap: 5px; }
.pf-row .chip.av-lock { opacity: .55; }
.pf-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line2); cursor: pointer; padding: 0; }
.pf-sw.on { border-color: var(--gold, #f0b90b); box-shadow: 0 0 0 2px rgba(240, 185, 11, .45); }
.pf-av-acts { display: flex; gap: 8px; margin-top: 12px; }
.pf-av-note { font-size: 11px; margin: 10px 0 0; line-height: 1.5; }
@media (max-width: 520px) { .pf-av-pic { width: 100%; } }
.pc-h:has(.pc-av) { flex-wrap: nowrap; align-items: flex-start; }
.pc-h:has(.pc-av) > div:not(.pc-av):not(.pc-all) { flex: 1; min-width: 0; }
.pc-h:has(.pc-av) .pc-all { flex: none; }


.sh-cdeco-img { max-width: 78%; max-height: 92px; object-fit: contain; image-rendering: auto; }
.av-px { display: inline-flex; align-items: flex-end; justify-content: center; }
.av-px img { image-rendering: pixelated; }



/* 💵 상단 총자산 · 실시간 손익 */
.bal-chip .bal-pnl { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.bal-chip.live { box-shadow: 0 0 0 1px rgba(240, 185, 11, .35) inset; }
/* ✏️ 작도 도구 */
.ar-draw { display: inline-flex; flex-wrap: wrap; gap: 2px; }
.ar-draw button { font-size: 12px; }
.ar-draw button.on { background: var(--gold, #f0b90b); color: #1b1b1b; }
#arChart.drawing { cursor: crosshair; }
#arDraw[hidden], #arInt[hidden], #arDrawHint:empty, #arHint:empty { display: none !important; }



/* ✏️ 트레이딩뷰식 그리기 도구 */
.ar-cbox { display: flex; flex: 1; gap: 6px; min-height: 420px; }
.ar-cbox #arChart { flex: 1; min-width: 0; }
.ar-cbox #arChart[hidden], #arDT[hidden] { display: none; }
.ar-dtbar { position: relative; flex: none; width: 38px; }
.ar-dt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 10px; }
.ar-dt-b { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 7px; cursor: pointer; padding: 0; }
.ar-dt-b:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.ar-dt-b.on { background: rgba(41, 98, 255, .22); color: #5b8cff; }
.ar-dt-g { position: relative; }
.ar-dt-more { position: absolute; right: -6px; bottom: 1px; width: 11px; height: 14px; font-size: 11px; line-height: 1; border: 0; background: transparent; color: var(--muted); padding: 0; cursor: pointer; }
.ar-dt-more:hover { color: var(--text); }
.ar-dt-sep { display: block; width: 22px; height: 1px; background: var(--line); margin: 3px 0; }
.ar-dt-fly { position: absolute; z-index: 40; min-width: 200px; background: var(--card); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); padding: 4px; }
.ar-dt-fly button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; background: transparent; color: var(--text); border-radius: 6px; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.ar-dt-fly button:hover, .ar-dt-fly button.on { background: rgba(41, 98, 255, .18); }
.ar-dt-fly small { margin-left: auto; color: var(--muted); font-size: 11px; }
.ar-dcv { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.ar-dsel { position: absolute; top: 6px; z-index: 6; display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: var(--card); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); font-size: 12px; white-space: nowrap; }
.ar-dsel[hidden] { display: none; }
.ar-dsw { width: 16px; height: 16px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.ar-dsw.on { border-color: var(--text); }
.ar-dsel button[data-dx] { border: 0; background: transparent; cursor: pointer; font-size: 14px; color: var(--text); padding: 2px 4px; }
.ar-dsel .ar-dorder { padding: 4px 10px; border-radius: 7px; font-weight: 700; font-size: 12px; color: #fff; }
.ar-dsel .ar-dorder.long { background: #26a69a; }
.ar-dsel .ar-dorder.short { background: #ef5350; }
.ar-pulse { animation: arPulse 1.2s ease 3; }
@keyframes arPulse { 50% { box-shadow: 0 0 0 6px rgba(240, 185, 11, .45); } }
@media (max-width: 720px) { .ar-cbox { min-height: 330px; } .ar-dtbar { width: 34px; } .ar-dt-b { width: 28px; height: 28px; } }
.ar-cbox[hidden] { display: none !important; }


/* ⛵ 상점 요트 미리보기: GPT 스프라이트 + 바다 배경 */
.sh-ypic { background: radial-gradient(ellipse at 50% 75%, #2f6fa8 0%, #1d4a78 55%, #163a60 100%); border-radius: 12px; overflow: hidden; }
.sh-yacht-img { max-width: 88%; max-height: 88%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .35)); transition: transform .3s; }
.sh-card.yacht:hover .sh-yacht-img { transform: translateY(-3px) rotate(-1.5deg); }
.sh-card.yacht .sh-act .btn { white-space: nowrap; }

/* ── 오목 대기실: 방 목록 표 + 선택한 방 정보 → 들어가면 대국 화면 ── */
#omWrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; align-items: start; justify-content: stretch; }
#omWrap.ingame { grid-template-columns: minmax(0, 1fr) 330px; }
#omWrap.ingame .om-rank { display: none; }
.om-side[hidden], .om-hall[hidden] { display: none !important; }
.om-hall { background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; min-width: 0; }
.om-hall-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.om-hall-ai { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; }
.om-puz-btn small { font-size: 11px; color: var(--gold, #f0b90b); font-weight: 800; margin-left: 2px; }
.om-hall-main { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; align-items: start; }
.om-tbl { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); min-width: 0; }
.om-flt { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.om-flt button { border: 1px solid var(--line2, var(--line)); background: transparent; color: var(--muted); border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.om-flt button.on { background: var(--gold, #f0b90b); color: #1b1b1b; border-color: transparent; font-weight: 700; }
.om-thead, .om-tr { display: grid; grid-template-columns: 44px minmax(0, 1fr) 92px 50px 88px 64px; gap: 6px; align-items: center; padding: 0 10px; }
.om-thead { font-size: 11px; color: var(--muted); height: 30px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line); }
.om-thead span:nth-child(n+3), .om-tr > span:nth-child(n+3) { text-align: center; }
.om-tbody { max-height: 430px; overflow-y: auto; }
.om-tr { min-height: 44px; font-size: 13px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; outline: none; }
.om-tr:hover { background: rgba(255, 255, 255, .04); }
.om-tr.sel { background: rgba(240, 185, 11, .12); box-shadow: inset 3px 0 0 var(--gold, #f0b90b); }
.om-tr.mine .om-tt b::after { content: ' · 내 방'; color: var(--gold, #f0b90b); font-size: 11px; font-weight: 700; }
.om-tr.play { color: var(--muted); }
.om-tr.play .om-tt b { color: var(--text); }
.om-no { color: var(--muted); font-size: 12px; text-align: center; }
.om-tt { display: flex; align-items: center; gap: 6px; min-width: 0; }
.om-tt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-tt small { flex: none; font-size: 11px; color: var(--muted); }
.om-cheer-tag { color: #ff9f43 !important; }
.om-ppl { font-size: 12px; } .om-ppl.full { color: var(--muted); }
.om-st { font-size: 12px; white-space: nowrap; }
.om-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }
.om-dot.g { background: #2ecc71; box-shadow: 0 0 6px #2ecc71; animation: omDot 1.4s ease-in-out infinite; }
.om-dot.r { background: #ff5e57; }
@keyframes omDot { 50% { opacity: .35; } }
.om-tr .btn.sm { padding: 4px 10px; }
.om-empty-t { padding: 34px 12px; text-align: center; color: var(--muted); }
.om-empty-t p { margin: 0 0 10px; }
.om-pick { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--card); position: sticky; top: 150px; }
.om-pk-t { margin: 0 0 8px; font-size: 15px; overflow-wrap: anywhere; }
.om-pk-p { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 10px; background: rgba(255, 255, 255, .04); margin-bottom: 6px; font-size: 13px; }
.om-pk-p.empty { border: 1px dashed var(--line2, var(--line)); background: transparent; }
.om-pk-p > .om-s { position: static; width: 20px; height: 20px; flex: none; inset: auto; }
.om-pk-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; font-size: 12.5px; margin: 10px 0; }
.om-pk-dl dt { color: var(--muted); } .om-pk-dl dd { margin: 0; text-align: right; }
.om-pk-b { display: flex; flex-direction: column; gap: 6px; }
.om-pk-b .btn { width: 100%; }
.om-game-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12.5px; }
.om-game-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-create { max-width: 420px; }
/* 📣 응원 베팅 */
.om-cheer { padding: 12px; background: var(--card2); border: 1px solid var(--line); border-radius: 18px; }
.om-cheer[hidden] { display: none; }
.om-ch-bar { height: 10px; border-radius: 99px; background: #e9e9e9; overflow: hidden; margin: 8px 0 4px; }
.om-ch-bar span { display: block; height: 100%; background: linear-gradient(90deg, #111, #444); transition: width .4s; }
.om-ch-sum { display: flex; justify-content: space-between; font-size: 12.5px; }
.om-ch-amt { display: flex; gap: 4px; margin: 10px 0 6px; }
.om-ch-amt button { flex: 1; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 8px; padding: 4px 0; font-size: 12px; cursor: pointer; }
.om-ch-amt button.on { border-color: var(--gold, #f0b90b); color: var(--gold, #f0b90b); font-weight: 800; }
.om-ch-go { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.om-ch-go .btn small { opacity: .7; font-size: 10.5px; }
.om-ch-bk { background: #1b1b1b !important; color: #fff !important; border-color: #444 !important; }
.om-ch-wt { background: #f3f3f3 !important; color: #111 !important; border-color: #ddd !important; }
.om-ch-n { font-size: 11px; margin: 6px 0 0; }
.om-ch-r { margin: 8px 0 0; font-size: 13px; }
/* 🧩 묘수풀이 */
.om-puz { max-width: 560px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; }
.om-puz-h { display: flex; justify-content: space-between; align-items: center; }
.om-puz-h h3 { margin: 0; }
.om-puz-q { font-size: 13px; margin: 6px 0; }
.om-puz-info { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; margin-bottom: 8px; }
.om-puz-msg { min-height: 20px; font-size: 13.5px; text-align: center; margin: 8px 0; }
.om-puz-msg.win { color: #2ecc71; font-weight: 700; } .om-puz-msg.fail { color: #ff6b6b; }
.om-pz-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 10px; font-weight: 800; color: #f0b90b; }
.om-puz-first { font-size: 11.5px; text-align: center; margin: 6px 0 0; }
.om-puz-board .om-c.can { cursor: pointer; }
#omWrap .om-rank { grid-column: auto; order: 0; }
@media (max-width: 1200px) {
  #omWrap { grid-template-columns: minmax(0, 1fr); }
  #omWrap .om-rank { order: 3; position: static; max-height: none; }
}
@media (max-width: 1000px) {
  #omWrap { grid-template-columns: minmax(0, 1fr); }
  #omWrap .om-rank { order: 3; position: static; max-height: none; }
  #omWrap.ingame { grid-template-columns: minmax(0, 1fr); }
  .om-hall-main { grid-template-columns: minmax(0, 1fr); }
  .om-pick { position: static; }
}
@media (max-width: 640px) {
  .om-thead, .om-tr { grid-template-columns: 30px minmax(0, 1fr) 64px 0 60px 56px; gap: 4px; padding: 0 6px; }
  .om-thead span:nth-child(4), .om-tr > span:nth-child(4) { display: none; }
  .om-hall-ai { margin-left: 0; width: 100%; }
  .om-hall { padding: 10px; }
}
html[data-theme="light"] .om-tr.sel { background: rgba(240, 185, 11, .16); }
html[data-theme="light"] .om-thead { background: #f6f4ef; }
/* 🎪 도시 이벤트 배너 · 💰 동전 */
.ct-event { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: calc(100% - 24px); pointer-events: none; }
.ct-event > span { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 14, 22, .82); color: #fff; font-size: 12.5px; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.ct-ev-main { background: linear-gradient(135deg, rgba(240, 185, 11, .95), rgba(255, 120, 60, .92)) !important; color: #1b1b1b !important; font-weight: 600; animation: ctEvPulse 2.4s ease-in-out infinite; }
.ct-event.ev-goldrush .ct-ev-main { background: linear-gradient(135deg, #ffd54f, #ffb300) !important; }
.ct-event.ev-meteor .ct-ev-main { background: linear-gradient(135deg, #7f8cff, #b08cff) !important; color: #fff !important; }
.ct-event.ev-rentboom .ct-ev-main { background: linear-gradient(135deg, #43e97b, #38f9d7) !important; }
.ct-ev-main small { opacity: .75; }
@keyframes ctEvPulse { 50% { box-shadow: 0 0 0 4px rgba(255, 200, 80, .25), 0 4px 14px rgba(0, 0, 0, .3); } }
.ct-ev-coin b { color: #ffd54f; }
.ct-ev-coin { white-space: nowrap; }
.ct-ev-find { border: 0; background: #f5c518; color: #1b1b1b; font-weight: 800; border-radius: 999px; padding: 1px 9px; font-size: 11.5px; cursor: pointer; }
.ct-pop { position: absolute; z-index: 6; transform: translate(-50%, -100%); pointer-events: none; padding: 2px 7px; border-radius: 6px; background: #121a2a; font-weight: 900; font-size: 15px; color: #ffd54f; animation: ctPop 1.4s ease-out forwards; white-space: nowrap; }
.ct-pop.big { font-size: 22px; color: #ff9f1a; }
@keyframes ctPop { 0% { opacity: 0; transform: translate(-50%, -60%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -110%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }
.ct-log-ev { color: var(--gold, #f0b90b); font-weight: 600; }
@media (max-width: 640px) { .ct-event { bottom: 44px; } .ct-event > span { font-size: 11.5px; padding: 5px 10px; } }
/* 짓기 모드: 아래 짓기 바와 동전 · 이벤트 알림이 겹치지 않게 알림을 위로 */
.ct-mapbox:has(.ct-buildbar:not([hidden])) .ct-event { bottom: 96px; }
@media (max-width: 640px) { .ct-mapbox:has(.ct-buildbar:not([hidden])) .ct-event { bottom: 104px; } }
.ct-map { position: relative; }
#omok { scroll-margin-top: 140px; }
.om-puz .om-board-wrap { max-width: min(440px, calc(100vh - 290px)); min-width: 260px; margin: 0 auto; }
.om-pz-ok { color: #18a058; font-weight: 700; }
.ct-ev-main { flex-wrap: wrap; justify-content: center; text-align: center; border-radius: 16px !important; row-gap: 0 !important; }
.ct-ev-main b, .ct-ev-main small { white-space: nowrap; }
@media (max-width: 640px) {
  .om-thead, .om-tr { grid-template-columns: 24px minmax(0, 1fr) 64px 12px 56px; }
  .om-thead span:nth-child(5) { font-size: 0; }
  .om-st { font-size: 0; }
  .om-st .om-dot { margin: 0; }
}



/* ── 💇 꾸밈 가게 (건물을 눌러 들어가는 가게 창) ── */
.st-modal { position: fixed; inset: 0; z-index: 9600; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 12px; }
.st-modal[hidden] { display: none; }
.st-box { position: relative; width: min(760px, 100%); max-height: calc(100vh - 24px); overflow-y: auto; padding: 18px; border-radius: 20px; background: var(--card2); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); animation: gAlIn .3s ease; }
.st-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.st-head { display: flex; align-items: center; gap: 12px; margin: 0 28px 14px 0; }
.st-head b { display: block; font-size: 18px; }
.st-head small { font-size: 12px; }
.st-ic { font-size: 30px; line-height: 1; }
.st-body { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.ct-salon-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.ct-salon-nav .btn[aria-pressed="true"] { color: var(--text); background: var(--goldsoft); border-color: var(--gold); }
.ct-salon { display: grid; min-width: 0; gap: 10px; color: var(--text); }
.ct-salon .btn, .ct-salon-nav .btn { min-height: 44px; white-space: normal; }
.ct-salon label { display: grid; gap: 5px; min-width: 0; font-size: 13px; font-weight: 650; }
.ct-salon-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.ct-salon select, .ct-salon input {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line2);
  border-radius: 8px; color: var(--text); background: var(--card); font: inherit; font-size: 16px;
}
.ct-salon :is(select, input, button, summary):focus-visible, .ct-salon-nav button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ct-salon-preview { display: grid; place-items: center; min-height: 92px; background: var(--card); border-radius: 10px; }
.ct-salon-preview img { width: 76px; height: auto; }
.ct-salon .ct-mnote { margin: 0; }
.ct-salon-booking, .ct-salon-details { border: 1px solid var(--line2); border-radius: 10px; padding: 10px; overflow-wrap: anywhere; }
.ct-salon-booking { display: grid; gap: 5px; }
.ct-salon-booking small, .ct-salon-receipt small { display: block; color: var(--muted); }
.ct-salon-details summary { cursor: pointer; font-size: 13px; font-weight: 700; padding: 6px 0; }
.ct-salon-details > .ct-mnote { padding-top: 6px; }
.ct-salon-receipt, .ct-salon-price { display: flex; flex-wrap: wrap; align-items: end; gap: 6px 12px; padding-top: 9px; }
.ct-salon-receipt > div, .ct-salon-price label { flex: 1 1 145px; }
.ct-salon-receipt b { font-size: 13px; }

.st-left { position: sticky; top: 0; text-align: center; padding: 12px; border-radius: 16px; background: radial-gradient(circle at 50% 70%, var(--goldsoft), transparent 70%); }
.st-pv { height: 190px; display: grid; place-items: center; }
.st-pn { margin: 6px 0; font-size: 13px; }
.st-cta { display: grid; gap: 6px; margin-top: 8px; }
.st-cta .btn { width: 100%; }
.st-hint, .st-bal { font-size: 11.5px; margin: 4px 0 0; }
.st-own { margin: 0; color: var(--gold); font-weight: 700; font-size: 13px; }
.st-sl { margin: 10px 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.st-sl:first-child { margin-top: 0; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(132px, 100%), 1fr)); gap: 6px; }
.st-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.st-item b { font-size: 13px; }
.st-item span { font-size: 12px; color: var(--gold); }
.st-item.own span { color: var(--muted); }
.st-item:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--line2)); }
.st-item.on { border-color: var(--gold); background: var(--goldsoft); }
.ct-style .ct-acts .btn { width: 100%; }
.av-shop { opacity: .75; border-style: dashed !important; }
.pf-av-sec { margin-top: 14px !important; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; }
@media (max-width: 640px) {
  .st-body { grid-template-columns: 1fr; }
  .st-left { position: static; }
  .st-pv { height: 150px; }
  .st-grid { grid-template-columns: repeat(2, 1fr); }
}


/* 👁 투시(평면) 보기 버튼 */
.ct-tb.on { background: var(--gold); border-color: var(--gold); color: #1b1f2b; }


/* 🏦 은행 송금 창구 */
.ct-bankf { display: grid; gap: 8px; margin-top: 8px; }
.ct-bankf label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.ct-bankf input { width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; font-size: 14px; }
.ct-bankf input::placeholder { color: var(--dim); opacity: 1; }
.ct-bankf .btn small { font-weight: 500; opacity: .8; }
.ct-bankf .ct-bank-error { margin: 0; color: var(--negative-text); }
/* 🧭 요트 이동 */
.ct-ymove { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ct-ymove .ct-acts { flex-wrap: wrap; }
.ct-ysail { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: rgba(61, 139, 255, .12); color: #7fb6ff; font-size: 13px; }


/* 🏢 회사 이름 한 줄 */
.ct-cos { display: flex; align-items: center; gap: 6px; margin: 10px 0 12px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; padding-bottom: 2px; }
.ct-cos-h { flex: none; font-size: 12px; font-weight: 800; color: var(--muted); margin-right: 2px; }
.ct-cos-none { font-size: 12px; }
.ct-co-chip { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ct-co-chip small { color: var(--muted); font-weight: 500; margin-left: 2px; }
.ct-co-chip:hover { border-color: var(--gold); }
.ct-co-chip.mine { border-color: var(--gold); background: var(--goldsoft); }
/* 🏢 회사(클랜) 관리 */
.ct-clan { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ct-clanf { display: grid; gap: 8px; }
.ct-clanf label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.ct-clanf input, .ct-clanf select, #ctCoApply input { width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; font-size: 14px; }
#ctCoApply { display: grid; gap: 8px; }
.ct-copay { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ct-copay input { width: 74px; padding: 5px 6px; border-radius: 8px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; font-size: 13px; }
.ct-coapp { align-items: flex-start; }
.ct-cobox { width: min(460px, 100%); }


/* ⚫ 렌주룰: 흑 금수 자리 · 규칙 안내 */
.om-c.forbid { cursor: not-allowed; }
.om-fb, .om-fb-demo { color: #ef4565; font-style: normal; font-weight: 900; }
.om-fb { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(9px, 1.6vw, 15px); opacity: .85; pointer-events: none; }
.om-rule { margin: 8px 0 10px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); font-size: 13px; }
.om-rule summary { cursor: pointer; font-weight: 800; }
.om-rule summary small { font-weight: 500; margin-left: 4px; }
.om-rule ul { margin: 8px 0 2px; padding-left: 18px; display: grid; gap: 5px; line-height: 1.55; }


/* 📊 도시 경제 대시보드 · 담보대출 */
.ct-econ-chip { text-align: left; cursor: pointer; font: inherit; color: inherit; }
.ct-econ-chip:hover { border-color: var(--gold); }
.ec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px; margin: 10px 0 14px; }
.ec-chart { padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--muted); }
.ec-ch-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 12px; }
.ec-ch-h b { color: var(--text); font-size: 13px; }
.ec-svg { display: block; width: 100%; height: 54px; margin-top: 4px; }
.ec-ch-f { display: flex; justify-content: space-between; font-size: 10.5px; margin-top: 2px; }
.ec-wait { font-size: 11.5px; margin: 10px 0 4px; }
.ct-loan { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
/* 부동산 탭 버튼: 한 줄로 · 넘치면 옆으로 밀기 */
.ct-tabs { display: flex !important; flex-wrap: nowrap; flex-shrink: 0; overflow-x: auto; scrollbar-width: none; }
.ct-tabs::-webkit-scrollbar { display: none; }
.ct-tabs button { flex: 1 0 auto; white-space: nowrap; padding: 10px 9px !important; }


/* 🔥 랭커전 실시간 배당 */
.om-odds { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0; }
.om-odd { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); }
.om-odd span { font-size: 12px; color: var(--muted); }
.om-odd b { font-size: 20px; }
.om-odd small { font-size: 11px; }
.om-odd.bk b { color: var(--text); }
.om-odd.wt b { color: var(--gold); }
.om-rk { display: inline-block; padding: 0 5px; border-radius: 6px; background: var(--goldsoft); color: var(--gold); font-weight: 800; font-size: 10.5px; }
.om-up { color: #18c37e; font-style: normal; font-size: 12px; margin-left: 3px; }
.om-dn { color: #ef4565; font-style: normal; font-size: 12px; margin-left: 3px; }
.om-ch-chart { display: block; width: 100%; height: 46px; margin-top: 4px; }
.om-ranker-tag { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(239, 69, 101, .14); color: #ff7a8f; font-size: 11px; font-weight: 800; }
/* 지도 위 정보 칸: 경제 · BTC · 순위 · 규칙 */
.ct-panebar { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.ct-panebar button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ct-panebar button:hover { color: var(--text); border-color: color-mix(in srgb, var(--gold) 50%, var(--line2)); }
.ct-panebar button.on { color: #1b1f2b; background: var(--gold); border-color: var(--gold); }
/* 🏆 회사 매출 랭킹 (지도 아래) */
/* 💎 재벌 순위 */
.ct-rich { margin: 14px 0; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--goldsoft), transparent 42%), var(--card); scroll-margin-top: 90px; }
.rc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 14px; margin-bottom: 8px; }
.rc-head .ct-step-t { margin: 0; }
.rc-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--muted); }
.rc-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.rc-list { display: grid; gap: 6px; }
.rc-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--card2); }
.rc-row[data-rich-row] { cursor: pointer; }
.rc-row[data-rich-row]:hover, .rc-row[data-rich-row]:focus-within { border-color: var(--gold); }
.rc-row.top1 { border-color: color-mix(in srgb, var(--gold) 70%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 25%, transparent), 0 6px 18px -10px var(--gold); }
.rc-row.top2, .rc-row.top3 { border-color: color-mix(in srgb, var(--gold) 35%, var(--line)); }
.rc-row.mine { border-color: var(--gold); background: var(--goldsoft); }
.rc-rk { font-size: 20px; text-align: center; font-weight: 800; color: var(--muted); }
.rc-row.top1 .rc-rk, .rc-row.top2 .rc-rk, .rc-row.top3 .rc-rk { font-size: 24px; }
.rc-main { min-width: 0; display: grid; gap: 5px; }
.rc-nm { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rc-player { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rc-player b { min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.rc-player img { display: block; flex: none; border: 1px solid var(--line2); border-radius: 9px; object-fit: cover; background: var(--card); }
.rc-player:hover b { text-decoration: underline; }
.rc-player:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 4px; }
@media (min-width: 561px) {
  .rc-has-photo .rc-main { position: relative; min-height: 56px; padding-inline-start: 68px; align-content: center; }
  .rc-has-photo .rc-player img { position: absolute; inset-inline-start: 0; top: 50%; width: 56px; height: 56px; transform: translateY(-50%); }
}
.rc-me { padding: 0 6px; border-radius: 99px; background: var(--gold); color: #1a1405; font-weight: 800; font-size: 10px; }
.rc-job { color: var(--muted); font-size: 12px; }
.rc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.rc-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line2); background: var(--card); font-size: 11.5px; white-space: nowrap; }
.rc-tag b { font-family: var(--mono, ui-monospace, monospace); font-weight: 700; color: var(--up, #3fb97f); }
.rc-tag.main { border-color: var(--gold); background: var(--goldsoft); font-weight: 700; }
.rc-tag.main::before { content: '주 수입'; padding: 0 5px; margin-right: 2px; border-radius: 99px; background: var(--gold); color: #1a1405; font-size: 9.5px; font-weight: 800; }
.rc-bar { display: flex; height: 5px; border-radius: 99px; overflow: hidden; background: var(--line); max-width: 340px; }
.rc-bar i { display: block; height: 100%; }
.rc-v { display: grid; justify-items: end; text-align: right; gap: 1px; }
.rc-v b { font-size: 17px; color: var(--gold); }
.rc-v small { font-size: 10.5px; }
.rc-sep { margin: 8px 0 4px; font-size: 12px; text-align: center; }
.rc-more { margin-top: 8px; width: 100%; }
.rc-foot { margin: 8px 0 0; font-size: 11px; }
.rc-none { margin: 6px 0; }
@media (max-width: 560px) { .rc-row { grid-template-columns: 30px minmax(0, 1fr); } .rc-v { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 8px; align-items: baseline; } .rc-rk { font-size: 16px; } }
.rc-detail { position: fixed; inset: 0; margin: auto; width: min(820px, calc(100% - 28px)); max-width: none; padding: 0; overflow: hidden; border: 1px solid var(--line2); border-radius: 18px; background: var(--card); color: var(--text); box-shadow: 0 18px 55px #050a1460; }
.rc-detail::backdrop { background: #0a102675; }
.rc-detail-frame { display: flex; flex-direction: column; max-height: min(88dvh, 880px); min-width: 0; }
.rc-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.rc-detail-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rc-detail-identity h2 { margin: 0; font-size: 1.32rem; overflow-wrap: anywhere; }
.rc-detail-identity p { margin: 3px 0 0; color: var(--muted); font-size: .84rem; }
.rc-detail-identity img, .rc-family-person img { flex: none; border-radius: 9px; object-fit: cover; background: var(--card2); }
.rc-detail-close { min-width: 44px; min-height: 44px; flex: none; }
.rc-detail-body { overflow: auto; padding: 16px 20px 20px; scrollbar-gutter: stable; }
.rc-detail-body > * + * { margin-top: 18px; }
.rc-detail-body h3 { font-size: 1rem; margin: 0 0 8px; }
.rc-detail-muted { color: var(--muted); font-size: .85rem; margin: 0; }
.rc-family-tree { text-align: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.rc-family-parents, .rc-family-children { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.rc-family-person { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); text-align: left; }
.rc-family-person div { display: grid; overflow-wrap: anywhere; line-height: 1.34; gap: 2px; }
.rc-family-person small { color: var(--muted); font-size: .75rem; }
.rc-family-children { position: relative; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); list-style: none; }
.rc-family-children::before { content: ""; position: absolute; bottom: 100%; height: 10px; left: 50%; border-inline-start: 1px solid var(--line2); }
.rc-tendency { border: 1px solid var(--line); border-radius: 12px; background: var(--goldsoft); padding: 12px 14px; }
.rc-tendency h3 { display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: baseline; margin-bottom: 5px; }
.rc-tendency h3 strong { color: var(--gold-text); font-size: .9rem; }
.rc-tendency p { margin: 0; line-height: 1.55; font-size: .86rem; }
.rc-detail-values { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; }
.rc-detail-values > section + section { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.rc-net { margin: 0 0 4px; color: var(--gold-text); font-size: 1.27rem; overflow-wrap: anywhere; }
.rc-net small { font-size: .7em; }
.rc-holdings, .rc-income-list { margin: 8px 0 0; padding: 0; font-size: .84rem; }
.rc-holdings > div, .rc-income-item { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; padding: 4px 0; border-top: 1px solid var(--line); }
.rc-holdings dd { margin: 0; text-align: right; }
.rc-holdings dt, .rc-holdings dd { overflow-wrap: anywhere; min-width: 0; }
.rc-income-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.rc-income-item small { color: var(--muted); }
.rc-income-item b { text-align: right; }
.rc-income-bar { display: block; height: 3px; grid-column: 1 / -1; border-radius: 3px; overflow: hidden; background: var(--line); }
.rc-income-bar i { display: block; height: 100%; background: var(--gold); }
.rc-detail summary { margin: 6px 0 0; font-size: .8rem; color: var(--muted); cursor: pointer; }
.rc-detail-action { display: flex; justify-content: flex-end; }
@media (max-width: 620px) {
  .rc-detail-frame { max-height: 92dvh; }
  .rc-detail-head, .rc-detail-body { padding-inline: 13px; }
  .rc-family-tree { padding: 10px; }
  .rc-family-person { padding-inline: 8px; }
  .rc-family-person img { width: 34px; height: 34px; }
  .rc-detail-values { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rc-detail-values > section + section { border-inline-start: 0; border-top: 1px solid var(--line); padding: 11px 0 0; }
}
.ct-corank { margin: 14px 0; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.ct-cr { display: grid; gap: 6px; }
.ct-cr-row { display: grid; grid-template-columns: 34px minmax(110px, 1.2fr) 2fr minmax(90px, auto); align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ct-cr-row:hover { border-color: var(--line2); background: var(--card2); }
.ct-cr-row.mine { border-color: var(--gold); background: var(--goldsoft); }
.ct-cr-rk { text-align: center; font-weight: 800; font-size: 15px; }
.ct-cr-nm { display: grid; min-width: 0; }
.ct-cr-nm b, .ct-cr-nm small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-cr-bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ct-cr-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold2), var(--gold)); }
.ct-cr-v { display: grid; text-align: right; font-size: 13px; }
.ct-cr-v small { font-size: 10.5px; }
.ct-cr-none { font-size: 13px; margin: 4px 0 0; }
@media (max-width: 640px) { .ct-cr-row { grid-template-columns: 28px 1fr auto; } .ct-cr-bar { grid-column: 2 / 4; grid-row: 2; } }


/* 🚗 자동차 사기 */
.ct-car-pic { display: grid; place-items: center; width: 116px; height: 80px; border-radius: 8px; background: rgba(140, 200, 107, .18); }
.ct-car-pic img { max-width: 104px; max-height: 72px; image-rendering: pixelated; }
.ct-car-emo { font-size: 34px; }
.ct-carbuy { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; margin: 0 0 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--gold); background: var(--goldsoft); }
.ct-carbuy img { width: 120px; image-rendering: pixelated; }
.ct-carbuy p { margin: 2px 0 6px; font-size: 12px; }
.ct-carbuy form { display: grid; gap: 6px; }
.ct-carbuy select { width: 100%; padding: 7px 8px; border-radius: 9px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; }
.ct-card.on { border-color: var(--gold); }



/* ── 비회원 구경 모드 ── */
.guest-bar { display: none; }
body.guest .guest-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin: 10px auto 12px; padding: 10px 14px; border: 1px solid rgba(231, 200, 115, .35); border-radius: 12px; background: linear-gradient(90deg, rgba(231, 200, 115, .12), rgba(231, 200, 115, .04)); font-size: 13.5px; line-height: 1.55; }
body.guest .guest-bar b { color: var(--gold, #E7C873); }
.guest-btns { display: flex; gap: 6px; flex-shrink: 0; }
.m-why { margin: -2px 0 10px; padding: 9px 12px; border-radius: 10px; background: rgba(231, 200, 115, .12); border: 1px solid rgba(231, 200, 115, .35); font-size: 13px; line-height: 1.5; }
.m-id { margin: 6px 0 10px; padding: 10px 12px; border-radius: 10px; background: rgba(231, 200, 115, .1); border: 1px solid rgba(231, 200, 115, .3); font-size: 13.5px; line-height: 1.6; }
.m-id b { color: var(--gold, #E7C873); word-break: break-all; }



/* 지도 위 칸(경제 · BTC · 순위 · 규칙) 닫기 줄 */
.ct-panehead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line, rgba(255,255,255,.1)); flex-shrink: 0; background: var(--card2); }
.ct-panehead[hidden] { display: none; }
.ct-panehead b { font-size: 15px; }
.ct-x { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line, rgba(255,255,255,.18)); background: rgba(127,127,127,.12); color: inherit; font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ct-x:hover { background: rgba(231, 200, 115, .25); border-color: rgba(231, 200, 115, .6); }



/* ── 🎰 카지노 2.0: 베팅 금액 직접 입력 · 화려한 바카라 · 그랜드 카지노 게임 (룰렛 · 로켓 크래시 · 플링코) ── */
.cs-modal { max-width: 640px !important; }
.cs-modal.cs-bacc, .cs-modal.cs-rou { max-width: 700px !important; }
.cs-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.cs-tabs .chip { white-space: nowrap; }
/* 로비 카드 */
.cs-lobby .cs-game.photo { grid-column: 1 / -1; padding: 0; overflow: hidden; gap: 0; position: relative; border: 2px solid #e7c46a; box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(231, 196, 106, .25) inset; }
.cs-game-photo { position: relative; display: block; width: 100%; aspect-ratio: 16 / 7; overflow: hidden; }
.cs-game-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; transition: transform .6s ease; }
.cs-game.photo:hover .cs-game-photo img { transform: scale(1.05); }
.cs-game-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(6, 30, 18, .95)); }
.cs-live { position: absolute; top: 10px; left: 10px; z-index: 1; background: #e5243b; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .05em; animation: csBlink 1.4s ease-in-out infinite; }
@keyframes csBlink { 50% { opacity: .55; } }
.cs-game-tx { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 12px 16px; margin-top: -34px; position: relative; z-index: 1; }
.cs-game-tx b { font-size: 21px; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.cs-game.photo { background: linear-gradient(180deg, #0b3a22, #062012); }
.cs-game.rou { background: radial-gradient(ellipse at 50% 30%, #8a1d2b, #2a0710); }
.cs-game.crash { background: radial-gradient(ellipse at 50% 30%, #2b2f8f, #0b0d33); }
.cs-game.plinko { background: radial-gradient(ellipse at 50% 30%, #6b2a9a, #1c0a33); }
.cs-game { position: relative; }
.cs-game-art { font-size: 46px; }
.cs-vip { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 900; color: #1b1300; background: linear-gradient(135deg, #ffe08a, #c99412); padding: 2px 7px; border-radius: 999px; letter-spacing: .08em; }
.cs-modal .cs-teaser { text-align: center; font-size: 12.5px; margin: 10px 0 0; color: #c99412; font-weight: 700; }
/* 베팅 금액 */
.bc-betbar { display: grid; gap: 8px; margin: 12px 0 6px; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, #1a1408, #0d0a04); border: 1px solid rgba(231, 196, 106, .45); }
.bc-amt { display: flex; align-items: center; gap: 8px; color: #f3dfa6; font-weight: 700; font-size: 13px; }
.bc-amt span { white-space: nowrap; }
.bc-in { flex: 1; min-width: 0; font-size: 22px; font-weight: 800; text-align: right; padding: 6px 10px; border-radius: 10px; border: 1px solid #c99412; background: #050403; color: #ffe08a; outline: none; }
.bc-in:focus { box-shadow: 0 0 0 3px rgba(255, 213, 79, .3); }
.bc-amt em { font-style: normal; color: #c9b27a; }
.bc-chips { display: flex; gap: 8px; justify-content: space-between; }
.bc-chips .cs-chip { flex: 1; max-width: 56px; aspect-ratio: 1; width: auto; height: auto; font-size: 12px; background-image: radial-gradient(circle, transparent 52%, rgba(255, 255, 255, .18) 53%, transparent 60%); transition: transform .12s; }
.bc-chips .cs-chip:hover:not(:disabled) { transform: translateY(-3px) rotate(-8deg); }
.bc-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bc-quick button { border: 1px solid rgba(231, 196, 106, .5); background: rgba(231, 196, 106, .08); color: #f3dfa6; border-radius: 9px; padding: 7px 4px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-quick button:hover:not(:disabled) { background: rgba(231, 196, 106, .2); }
.bc-quick button:disabled, .bc-in:disabled { opacity: .55; cursor: wait; }
.cs-spin { font-size: 16px !important; padding: 14px !important; background: linear-gradient(180deg, #ffe08a, #d39b14) !important; color: #1b1300 !important; box-shadow: 0 6px 18px rgba(211, 155, 20, .35); }
/* 바카라 방 */
.bc-room { display: grid; gap: 10px; }
.bc-hero { position: relative; height: 150px; border-radius: 16px; overflow: hidden; border: 2px solid #e7c46a; }
.bc-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.bc-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 12, 8, .9) 0%, rgba(5, 12, 8, .35) 45%, rgba(5, 12, 8, .85) 100%); }
.bc-hero-in { position: absolute; left: 14px; bottom: 14px; z-index: 1; color: #fff; }
.bc-hero-in b { display: block; font-size: 24px; letter-spacing: .12em; background: linear-gradient(180deg, #fff3c4, #e7b33a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.bc-hero-in small { color: #f3e6c2; font-size: 12px; }
.bc-road { position: absolute; right: 10px; top: 10px; bottom: 10px; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; background: rgba(250, 247, 238, .94); border-radius: 10px; padding: 6px; }
.bc-beads { display: grid; grid-auto-flow: column; grid-template-rows: repeat(6, 14px); grid-auto-columns: 14px; gap: 2px; }
.bc-beads i { width: 14px; height: 14px; border-radius: 50%; font-style: normal; font-size: 8px; font-weight: 900; color: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.bc-beads i.bP { background: #2a5bd7; } .bc-beads i.bB { background: #d0243a; } .bc-beads i.bT { background: #18a058; }
.bc-road small { font-size: 10px; text-align: center; display: flex; gap: 6px; justify-content: center; }
.bc-road .tP { color: #2a5bd7; } .bc-road .tB { color: #d0243a; } .bc-road .tT { color: #18a058; }
.bc-felt { position: relative; overflow: hidden; padding: 16px 14px 14px; border-radius: 120px 120px 22px 22px / 70px 70px 22px 22px; background: radial-gradient(ellipse at 50% 0%, #2f9a63 0%, #17673f 45%, #0b3d24 100%); border: 6px solid #6b3d12; box-shadow: 0 0 0 2px #e7c46a, inset 0 0 40px rgba(0, 0, 0, .45), 0 14px 30px rgba(0, 0, 0, .4); }
.bc-felt::before { content: ''; position: absolute; inset: 8px; border: 1.5px dashed rgba(255, 233, 160, .35); border-radius: inherit; pointer-events: none; }
.bc-deal { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; min-height: 124px; }
.bc-vs { font-weight: 900; color: #ffe08a; font-size: 18px; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.bc-hand { text-align: center; color: #eafff3; padding: 6px 4px 8px; border-radius: 14px; position: relative; }
.bc-hand small { display: block; font-weight: 900; letter-spacing: .14em; font-size: 12px; margin-bottom: 6px; }
.bc-hand.p small { color: #9cc0ff; } .bc-hand.b small { color: #ff9aa8; }
.bc-hand > div { display: flex; justify-content: center; gap: 5px; min-height: 72px; }
.bc-room .cs-card { width: 50px; height: 72px; }
.bc-room .cs-cf b { font-size: 21px; } .bc-room .cs-cf i { font-size: 18px; }
.bc-back { width: 50px; height: 72px; border-radius: 7px; background: repeating-linear-gradient(45deg, #8a1c2c 0 5px, #a8283b 5px 10px); border: 2px solid #f4e3b5; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); opacity: .45; }
.bc-pt { display: inline-block; margin-top: 6px; min-width: 30px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 16px; border: 1px solid rgba(255, 255, 255, .25); }
.bc-hand.won { animation: bcWon .5s ease forwards; animation-delay: var(--rd); }
@keyframes bcWon { to { background: rgba(255, 213, 79, .14); box-shadow: 0 0 0 2px #ffd54f inset, 0 0 26px rgba(255, 213, 79, .45); } }
.cs-modal .bc-hint { text-align: center; color: #d7f0e2; font-size: 12.5px; margin: 2px 0 8px; }
.bc-hint b { color: #ffe08a; }
.bc-banner { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); z-index: 3; text-align: center; padding: 8px 26px; border-radius: 14px; background: linear-gradient(180deg, rgba(20, 12, 0, .92), rgba(50, 32, 0, .92)); border: 2px solid #ffd54f; box-shadow: 0 0 30px rgba(255, 213, 79, .55); pointer-events: none; white-space: nowrap; }
.bc-banner.cs-reveal { animation: bcBanner .6s cubic-bezier(.2, 1.6, .4, 1) forwards, bcFade .5s ease forwards; animation-delay: var(--rd), calc(var(--rd) + 2.4s); }
@keyframes bcBanner { from { opacity: 0; transform: translateX(-50%) scale(.4); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes bcFade { to { opacity: 0; transform: translateX(-50%) scale(1.1); } }
.bc-banner b { display: block; font-size: 22px; letter-spacing: .1em; background: linear-gradient(180deg, #fff6cc, #f1b51c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bc-banner small { color: #fff; font-weight: 700; }
.bc-zones { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 8px; margin-top: 6px; }
.bc-zone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 12px 4px 10px; border-radius: 14px; font: inherit; color: #fff; cursor: pointer; border: 2px solid rgba(255, 255, 255, .55); transition: transform .12s, box-shadow .2s; }
.bc-zone b { font-size: 17px; letter-spacing: .1em; }
.bc-zone span { font-size: 12px; opacity: .9; }
.bc-zone em { font-style: normal; font-size: 11px; color: #ffe08a; font-weight: 700; }
.bc-zone.z-player { background: linear-gradient(180deg, rgba(42, 91, 215, .85), rgba(18, 48, 128, .9)); }
.bc-zone.z-tie { background: linear-gradient(180deg, rgba(24, 160, 88, .85), rgba(10, 90, 48, .9)); }
.bc-zone.z-banker { background: linear-gradient(180deg, rgba(208, 36, 58, .85), rgba(122, 14, 30, .9)); }
.bc-zone:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 0 0 2px #ffd54f, 0 8px 18px rgba(0, 0, 0, .35); }
.bc-zone:disabled { cursor: wait; }
.bc-zone.win { animation: bcZone .9s ease-in-out infinite; animation-delay: var(--rd); }
@keyframes bcZone { 0%, 100% { box-shadow: 0 0 0 2px #ffd54f, 0 0 12px rgba(255, 213, 79, .4); } 50% { box-shadow: 0 0 0 3px #fff3b0, 0 0 34px rgba(255, 213, 79, .9); } }
.bc-zone.lost { filter: grayscale(.6) brightness(.7); transition-delay: var(--rd); }
.bc-stack { position: absolute; right: 8px; top: -12px; display: flex; flex-direction: column-reverse; align-items: center; animation: bcDrop .35s cubic-bezier(.2, 1.5, .5, 1); }
.bc-stack i { width: 26px; height: 7px; border-radius: 50%; background: #ffd54f; border: 1.5px dashed #7a4b00; margin-top: -3px; box-shadow: 0 2px 0 #a07000; }
.bc-stack b { position: absolute; top: -16px; font-size: 10px; background: #000c; color: #ffe08a; padding: 1px 5px; border-radius: 6px; white-space: nowrap; }
@keyframes bcDrop { from { transform: translateY(-40px); opacity: 0; } }
/* 축하 꽃가루 */
.bc-confetti { position: relative; height: 0; pointer-events: none; z-index: 5; }
.bc-confetti i { position: absolute; top: -260px; left: var(--x); width: 7px; height: 12px; background: var(--c); border-radius: 2px; opacity: 0; transform: rotate(var(--r)); animation: bcConf 1.8s ease-in forwards; animation-delay: calc(var(--rd, 0s) + var(--dl)); }
@keyframes bcConf { 0% { opacity: 1; transform: translateY(0) rotate(var(--r)); } 100% { opacity: 0; transform: translateY(300px) rotate(calc(var(--r) + 540deg)); } }
/* 룰렛 */
.rw-room { display: grid; gap: 10px; }
.rw-top { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: radial-gradient(ellipse at 30% 40%, #3a1a08, #120703); border: 2px solid #e7c46a; }
.rw-wheel { position: relative; width: 100%; aspect-ratio: 1; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .6)); }
.rw-rot, .rw-svg { width: 100%; height: 100%; display: block; }
.rw-ptr { position: absolute; left: 50%; top: -4px; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 18px solid #ffe08a; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); z-index: 2; }
.rw-ball { position: absolute; left: 50%; top: 10.5%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #bbb); box-shadow: 0 1px 3px rgba(0, 0, 0, .6); z-index: 2; animation: csLand .3s ease; }
.rw-side { color: #f3dfa6; display: grid; gap: 8px; justify-items: center; }
.rw-side small { font-size: 12px; }
.rw-hist { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.rw-hist i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.c-r { background: #c3172e; } .c-k { background: #15161c; } .c-g { background: #0e8a4a; }
.rw-hist i.c-k { box-shadow: inset 0 0 0 1px #555; }
.rw-num { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; font-weight: 900; color: #fff; border: 3px solid #ffe08a; box-shadow: 0 0 26px rgba(255, 213, 79, .5); animation: csLand .35s ease; }
.rw-num.idle, .rw-num.spin { background: #1c140a; color: #ffe08a; }
.rw-num.spin { animation: csBlink .6s infinite; }
.rw-board { display: grid; grid-template-columns: 34px 1fr; gap: 4px; padding: 10px; border-radius: 14px; background: radial-gradient(ellipse at center, #1f7a4c, #0c3f26); border: 3px solid #6b3d12; box-shadow: 0 0 0 1.5px #e7c46a; }
.rw-z { grid-row: 1; border-radius: 10px 0 0 10px; }
.rw-nums { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.rw-n, .rw-z, .rw-o { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; border-radius: 6px; padding: 7px 0; transition: transform .1s; }
.rw-n:hover:not(:disabled), .rw-o:hover:not(:disabled), .rw-z:hover:not(:disabled) { transform: translateY(-2px); border-color: #ffe08a; }
.rw-n.on, .rw-o.on, .rw-z.on { box-shadow: 0 0 0 2.5px #ffe08a, 0 0 14px rgba(255, 213, 79, .7); border-color: #ffe08a; }
.rw-n.hit { animation: bcZone .9s ease-in-out infinite; }
.rw-out { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; margin-top: 4px; }
.rw-o { background: rgba(0, 0, 0, .25); font-size: 11.5px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; }
.rw-o small { font-weight: 600; color: #ffe08a; font-size: 10px; }
.rw-o.o-red { background: #c3172e; } .rw-o.o-black { background: #15161c; }
/* 로켓 크래시 */
.cr-room { display: grid; gap: 10px; }
.cr-sky { position: relative; height: 230px; overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, #060818 0%, #1a1f5c 60%, #47257a 100%); border: 2px solid #7a8cff; }
.cr-stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 12% 20%, #fff, transparent), radial-gradient(1px 1px at 35% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 30%, #fff, transparent), radial-gradient(1px 1px at 80% 55%, #fff, transparent), radial-gradient(1px 1px at 90% 15%, #fff, transparent), radial-gradient(1.5px 1.5px at 22% 45%, #cfd8ff, transparent), radial-gradient(1px 1px at 70% 85%, #fff, transparent); opacity: .8; }
.cr-trail { position: absolute; inset: 0; width: 100%; height: 100%; }
.cr-trail path { fill: none; stroke: #ffb74d; stroke-width: 1.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px #ff9800); }
.cr-rocket { position: absolute; font-size: 34px; transform: rotate(-10deg); transform-origin: center; filter: drop-shadow(0 0 10px rgba(255, 170, 60, .8)); z-index: 2; }
.cr-mul { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-size: 52px; font-weight: 900; color: #fff; text-shadow: 0 0 24px rgba(122, 140, 255, .9); z-index: 1; }
.cr-sky.pass .cr-mul, .cr-sky.ok .cr-mul { color: #7cff9a; text-shadow: 0 0 24px rgba(60, 255, 120, .8); }
.cr-sky.boom .cr-mul { color: #ff5c6c; text-shadow: 0 0 24px rgba(255, 60, 80, .9); }
.cr-sky.boom .cr-rocket { display: none; }
.cr-sky.boom::after { content: '💥'; position: absolute; right: 12%; top: 18%; font-size: 64px; animation: csLand .4s ease; }
.cr-tag { position: absolute; left: 0; right: 0; top: 62%; text-align: center; color: #dfe4ff; font-weight: 700; font-size: 13px; z-index: 1; padding: 0 8px; }
.cr-hist { position: absolute; left: 8px; right: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 1; }
.cr-hist i { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .45); }
.cr-hist i.hi { color: #7cff9a; } .cr-hist i.lo { color: #ff8a95; }
.cr-target { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(180deg, #11143a, #090a22); border: 1px solid rgba(122, 140, 255, .5); color: #dfe4ff; }
.cr-target label { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.cr-target input { width: 110px; font-size: 20px; font-weight: 800; padding: 4px 8px; border-radius: 9px; border: 1px solid #7a8cff; background: #04051a; color: #fff; text-align: right; }
.cr-tq { display: flex; gap: 6px; flex-wrap: wrap; }
.cr-target .dim { color: #b9c0ee !important; } .cr-target b { color: #fff; }
/* 플링코 */
.pk-room { display: grid; gap: 10px; }
.pk-board { position: relative; height: 300px; border-radius: 18px; background: radial-gradient(ellipse at 50% 0%, #4a1d7a, #160828 75%); border: 2px solid #b47cff; overflow: hidden; }
.pk-board > i { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #f2e6ff; box-shadow: 0 0 6px rgba(220, 190, 255, .9); }
.pk-ball { position: absolute; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff7c2, #ffb300); box-shadow: 0 0 12px #ffcf40; z-index: 2; }
.pk-slots span { position: absolute; top: 92%; width: 6.6%; transform: translate(-50%, -50%); text-align: center; font-size: 10px; font-weight: 900; padding: 5px 0; border-radius: 6px; color: #1a0b00; }
.m-hot { background: #ff3b5c; color: #fff !important; } .m-warm { background: #ff9f1c; } .m-mid { background: #ffd54f; } .m-cold { background: #b9a6d9; }
.pk-slots span.hit { animation: pkHit .8s ease-in-out infinite; box-shadow: 0 0 0 2px #fff, 0 0 16px #fff; }
@keyframes pkHit { 50% { transform: translate(-50%, -30%); } }
.pk-hist { display: flex; gap: 4px; flex-wrap: wrap; min-height: 20px; }
.pk-hist i { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; color: #1a0b00; }
@media (max-width: 560px) {
  .rw-top { grid-template-columns: 1fr; justify-items: center; }
  .rw-wheel { max-width: 220px; }
  .rw-out { grid-template-columns: repeat(5, 1fr); }
  .rw-n { font-size: 10.5px; padding: 6px 0; }
  .bc-road { display: none; }
  .bc-zone b { font-size: 14px; }
  .cr-mul { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { .bc-confetti, .bc-zone.win, .rw-n.hit, .pk-slots span.hit, .cs-live { animation: none !important; } }


.bc-hand .cs-pt { opacity: 0; animation: csShow .3s ease forwards; animation-delay: var(--rd); }
.bc-zone.lost { filter: none; transition: none; animation: bcLost .4s ease forwards; animation-delay: var(--rd); }
@keyframes bcLost { to { filter: grayscale(.6) brightness(.7); } }
.bc-beads i:not([class]) { background: rgba(0, 0, 0, .06); }
.cs-still .cs-card, .cs-still .cs-cf, .cs-still .cs-cb, .cs-still .cs-reveal, .cs-still .cs-pt, .cs-still .bc-hand.won, .cs-still .bc-zone.lost, .cs-still .bc-banner { animation-delay: 0s !important; animation-duration: .01s !important; }
.cs-still .bc-zone.win { animation-delay: 0s; }
.cs-still .bc-confetti { display: none; }
.cs-modal .cs-res { display: block; width: fit-content; margin: 8px auto; padding: 8px 18px; border-radius: 999px; font-size: 17px; background: rgba(0, 0, 0, .06); }
.cs-modal .cs-res.win { color: #18c37e; background: rgba(24, 195, 126, .14); box-shadow: 0 0 0 1.5px rgba(24, 195, 126, .5); }
.cs-modal .cs-res.lose { color: #ef4565; background: rgba(239, 69, 101, .1); }
/* 좁은 화면에서 카지노 판이 팝업 밖으로 넘치지 않게 */
.bc-room > *, .rw-room > *, .cr-room > *, .pk-room > *, .cs-modal .ct-carmodal-body { min-width: 0; }
.bc-deal { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.bc-zones { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); }
.rw-nums { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.rw-out { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.bc-chips .cs-chip { min-width: 0; }
@media (max-width: 560px) {
  .bc-felt { padding: 12px 8px 10px; border-width: 4px; }
  .bc-room .cs-card, .bc-back { width: 34px; height: 50px; }
  .bc-room .cs-cf b { font-size: 15px; } .bc-room .cs-cf i { font-size: 13px; }
  .bc-hand > div { gap: 3px; min-height: 50px; }
  .bc-vs { font-size: 14px; }
  .bc-zone { padding: 10px 2px 8px; }
  .bc-zone b { font-size: 13px; letter-spacing: .04em; }
  .bc-zone em { font-size: 9.5px; }
  .bc-banner b { font-size: 17px; }
  .bc-hero { height: 120px; }
  .bc-hero-in b { font-size: 19px; }
  .rw-out { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rw-nums { gap: 2px; }
  .rw-n { font-size: 10px; padding: 6px 0; }
  .bc-in { font-size: 18px; }
  .pk-slots span { font-size: 8px; }
}
/* 아주 좁은 폰: 로그인하면 상단 바(잔고 · 학생증 · 로그아웃)가 화면 밖으로 밀려 페이지 전체가 넓어지던 문제 */
@media (max-width: 440px) {
  body.has-mnav .brand-text { display: none; }
  .auth-box { gap: 5px; margin-left: 0; }
  .auth-box .btn.sm { padding: 6px 8px; }
}
.bc-room, .rw-room, .cr-room, .pk-room, .bc-betbar { grid-template-columns: minmax(0, 1fr); }
.bc-in { width: 100%; }
@media (max-width: 560px) {
  .rw-top { grid-template-columns: minmax(0, 1fr) 96px; justify-items: stretch; padding: 10px; gap: 8px; }
  .rw-wheel { max-width: none; }
  .rw-num { width: 62px; height: 62px; font-size: 26px; }
  .rw-hist i { width: 20px; height: 20px; font-size: 9.5px; }
}


/* 🏦 대출: 신용대출(누구나) · 담보대출 */
.ct-loan-k { margin: 10px 0; padding: 12px; border-radius: 14px; border: 1px solid var(--line2); background: var(--goldsoft); }
.ct-loan-k.credit { background: rgba(61, 139, 255, .08); border-color: rgba(61, 139, 255, .35); }
.ct-loan-k .ct-eqh { margin-top: 0; }
.ct-loan-sum { padding: 10px 12px; border-radius: 12px; background: var(--card2); }
.ct-co-rev .ct-co-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ct-co-rev { margin: 6px 0 4px; padding: 8px 10px 2px; border-radius: 12px; background: rgba(24, 195, 126, .07); border: 1px solid rgba(24, 195, 126, .25); }
@media (max-width: 480px) { .ct-co-rev .ct-co-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 🎰 로비 게임 버튼: GPT 그림 카드 */
.cs-game.art { padding: 0; gap: 0; overflow: hidden; border: 2px solid rgba(231, 196, 106, .7); box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }
.cs-game-img { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; font-size: 46px; }
.cs-game-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.cs-game-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .75)); }
.cs-game.art .cs-game-tx { margin-top: -26px; padding: 0 10px 14px; }
.cs-game.art .cs-game-tx b { font-size: 17px; }
.cs-game.art .cs-game-tx small { font-size: 11.5px; }
.cs-game.art:hover .cs-game-img img, .cs-game.photo:hover .cs-game-photo img { transform: scale(1.08); }
.cs-game.art::before, .cs-game.photo::before { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 2; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-18deg); animation: csShine 4.5s ease-in-out infinite; }
.cs-game.rou::before { animation-delay: 1.1s; } .cs-game.crash::before { animation-delay: 2.2s; } .cs-game.plinko::before { animation-delay: 3.3s; } .cs-game.slot::before { animation-delay: .5s; }
@keyframes csShine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.cs-game.art:hover, .cs-game.photo:hover { border-color: #ffe08a; box-shadow: 0 0 0 1px #ffe08a, 0 10px 28px rgba(255, 213, 79, .35); }
.cs-vip { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .cs-game.art::before, .cs-game.photo::before { animation: none; display: none; } }


.cs-chip.c100000 { background: #6b2a9a; border-color: #ffd54f; } .cs-chip.c1000000 { background: linear-gradient(135deg, #ffe08a, #c99412); color: #1b1300 !important; border-color: #fff; }

/* ── ♠️ 홀덤펍: 로비 · 테이블 ── */
.hd-modal { max-width: 720px !important; }
.hd-modal.hd-tablemode { max-width: 860px !important; }
.hd-hero { position: relative; height: 170px; border-radius: 16px; overflow: hidden; border: 2px solid #e7c46a; margin-bottom: 12px; background: radial-gradient(ellipse at 50% 120%, #1f7a4c, #0a2416 70%); }
.hd-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hd-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 12, 8, .88), rgba(5, 12, 8, .25) 55%, rgba(5, 12, 8, .6)); }
.hd-hero-in { position: absolute; left: 16px; bottom: 16px; z-index: 1; color: #fff; }
.hd-hero-in b { display: block; font-size: 26px; letter-spacing: .12em; background: linear-gradient(180deg, #fff3c4, #e7b33a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.hd-hero-in small { color: #f3e6c2; font-size: 12.5px; }
.hd-suits { position: absolute; right: 16px; top: 12px; z-index: 1; font-size: 22px; letter-spacing: .3em; color: #fff; text-shadow: 0 0 10px rgba(255, 80, 100, .8); }
.hd-g.ai { background: radial-gradient(ellipse at 50% 30%, #2b6bd7, #0b1c47); }
.hd-g.pvp { background: radial-gradient(ellipse at 50% 30%, #1f8f5a, #072b18); }
.hd-back { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: rgba(231, 196, 106, .12); border: 1px solid rgba(231, 196, 106, .5); font-size: 13px; }
.hd-bots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.hd-bot { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: radial-gradient(ellipse at 50% 20%, #23304f, #0c1122); border: 1px solid rgba(122, 140, 255, .4); color: #e8ecff; text-align: center; }
.hd-bot span { font-size: 30px; } .hd-bot b { font-size: 13px; } .hd-bot small { font-size: 10.5px; color: #b9c0ee; }
.hd-form { display: grid; gap: 8px; text-align: left; }
.hd-form label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; }
.hd-form input, .hd-form select { font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); }
.hd-form .dim { font-size: 12px; margin: 0; }
.hd-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.hd-quick .chip { cursor: pointer; }
.hd-big { padding: 13px !important; font-size: 16px !important; }
.hd-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hd-rooms { display: grid; gap: 8px; margin-bottom: 14px; }
.hd-room { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); }
.hd-room > div { display: grid; gap: 2px; min-width: 0; }
.hd-room small { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-room.full { opacity: .7; }
.hd-room-act { display: flex; gap: 6px; }
.hd-joinf { grid-column: 1 / -1; }
.hd-create { padding: 12px; border-radius: 14px; border: 1px solid rgba(231, 196, 106, .45); background: var(--goldsoft); }
.hd-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; font-size: 13px; }
.hd-top-act { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hd-mynet { font-size: 12.5px; margin-right: 4px; }
.hd-panel { display: flex; flex-wrap: wrap; align-items: end; gap: 6px; padding: 10px; margin-bottom: 8px; border-radius: 12px; background: var(--goldsoft); border: 1px solid rgba(231, 196, 106, .45); }
.hd-panel label { flex: 1 1 180px; }
/* 테이블 */
.hd-table { position: relative; width: 100%; aspect-ratio: 16 / 10; margin: 10px 0 6px; }
.hd-felt { position: absolute; inset: 11% 9%; border-radius: 50% / 50%; background: radial-gradient(ellipse at 50% 35%, #2f9a63 0%, #17673f 50%, #0b3d24 100%); border: 10px solid #4a2a0e; box-shadow: 0 0 0 3px #e7c46a, inset 0 0 50px rgba(0, 0, 0, .5), 0 18px 40px rgba(0, 0, 0, .5); }
.hd-felt::before { content: ''; position: absolute; inset: 10px; border: 1.5px dashed rgba(255, 233, 160, .3); border-radius: inherit; }
.hd-center { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: 80%; }
.hd-board { display: flex; gap: 6px; }
.hd-pot { color: #ffe08a; font-size: 13px; font-weight: 700; background: rgba(0, 0, 0, .45); padding: 3px 12px; border-radius: 999px; }
.hd-pot b { font-size: 15px; }
.hd-wait { color: #d7f0e2; font-size: 13px; text-align: center; }
.hd-banner { position: absolute; left: 50%; top: -14px; transform: translate(-50%, -100%); z-index: 6; width: max-content; max-width: min(410px, calc(100vw - 42px)); text-align: center; padding: 6px 18px; border-radius: 12px; background: linear-gradient(180deg, rgba(20, 12, 0, .94), rgba(50, 32, 0, .94)); border: 2px solid #ffd54f; box-shadow: 0 0 26px rgba(255, 213, 79, .55); }
.hd-banner b { display: block; color: #ffe08a; font-size: 15px; } .hd-banner small { color: #fff; font-size: 12px; }
.hd-banner .hd-pot-breakdown { display: block; color: #ffe4a3; }
.hd-pot-breakdown span { white-space: nowrap; }
@keyframes bcBanner { from { opacity: 0; transform: translate(-50%, -100%) scale(.5); } }
.hd-card { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 42px; height: 60px; border-radius: 6px; background: #fdfdf8; color: #1b1f2b; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); line-height: 1; }
.hd-card b { font-size: 18px; font-weight: 800; } .hd-card i { font-style: normal; font-size: 16px; }
.hd-card.red { color: #c62828; }
.hd-card.back { background: repeating-linear-gradient(45deg, #8a1c2c 0 4px, #a8283b 4px 8px); border: 2px solid #f4e3b5; }
.hd-card.empty { background: rgba(0, 0, 0, .18); border: 1.5px dashed rgba(255, 255, 255, .25); box-shadow: none; }
.hd-card.deal { animation: hdDeal .35s cubic-bezier(.2, 1.2, .4, 1) both; }
.hd-card.flip { animation: hdFlip .45s ease both; }
@keyframes hdDeal { from { opacity: 0; transform: translate(0, -30px) rotate(-12deg) scale(.6); } }
@keyframes hdFlip { from { opacity: 0; transform: rotateY(90deg) scale(.8); } }
.hd-seat { position: absolute; transform: translate(-50%, -50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 118px; }
.hd-seat.empty { width: auto; padding: 8px 10px; border-radius: 12px; border: 1.5px dashed rgba(231, 196, 106, .5); background: rgba(0, 0, 0, .25); font-size: 12px; }
.hd-cards { display: flex; gap: 2px; height: 46px; margin-bottom: -10px; z-index: 0; }
.hd-cards .hd-card { width: 32px; height: 46px; } .hd-cards .hd-card b { font-size: 14px; } .hd-cards .hd-card i { font-size: 12px; }
.hd-seat.me .hd-cards { height: 64px; margin-bottom: -12px; }
.hd-seat.me .hd-cards .hd-card { width: 46px; height: 64px; } .hd-seat.me .hd-cards .hd-card b { font-size: 19px; } .hd-seat.me .hd-cards .hd-card i { font-size: 16px; }
.hd-plate { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; width: 100%; padding: 5px 8px; border-radius: 999px; background: linear-gradient(180deg, #1d1d26, #0b0b10); border: 1.5px solid rgba(231, 196, 106, .55); color: #f3e6c2; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); overflow: hidden; }
.hd-ava { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #2a2f45; font-size: 16px; font-weight: 800; color: #fff; }
.hd-nm { display: grid; min-width: 0; line-height: 1.15; }
.hd-nm b { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hd-nm small { color: #ffe08a; font-size: 11.5px; }
.hd-dealer { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #111; font-size: 10px; font-weight: 900; display: grid; place-items: center; }
.hd-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #ff5c6c, #ffd54f, #7cff9a); transform-origin: left; transform: scaleX(var(--t)); animation: hdTimer var(--ms) linear forwards; }
@keyframes hdTimer { to { transform: scaleX(0); } }
.hd-seat.turn .hd-plate { border-color: #ffe08a; box-shadow: 0 0 0 2px #ffe08a, 0 0 18px rgba(255, 213, 79, .6); }
.hd-seat.me .hd-plate { background: linear-gradient(180deg, #2a2208, #120e03); }
.hd-seat.folded { opacity: .45; }
.hd-seat.away .hd-plate { filter: grayscale(.8); }
.hd-seat.win .hd-plate { border-color: #ffe08a; box-shadow: 0 0 12px rgba(255, 213, 79, .35); }
.hd-seat.best .hd-cards .hd-card { box-shadow: 0 0 0 2px #ffd54f, 0 0 12px rgba(255, 213, 79, .8); }
.hd-last, .hd-hn { margin-top: 2px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; white-space: nowrap; }
.hd-last.f { color: #aaa; } .hd-last.a { background: #c3172e; } .hd-last.r { background: #b8660e; }
.hd-hn { background: #ffd54f; color: #2a1a00; }
.hd-won { position: absolute; top: -18px; z-index: 5; font-size: 13px; font-weight: 900; color: #7cff9a; text-shadow: 0 0 8px rgba(0, 0, 0, .8); }
.hd-bet { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .55); padding: 2px 8px 2px 3px; border-radius: 999px; }
.hd-bet i { width: 14px; height: 14px; border-radius: 50%; background: #ffd54f; border: 2px dashed #7a4b00; }
.hd-acts { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; align-items: stretch; padding: 10px; border-radius: 14px; background: linear-gradient(180deg, #1a1408, #0d0a04); border: 1px solid rgba(231, 196, 106, .45); }
.hd-acts.wait { display: block; text-align: center; color: #f3dfa6; font-size: 13px; }
.hd-btn { border: 0; border-radius: 12px; padding: 12px 14px; font: inherit; font-weight: 800; font-size: 15px; color: #fff; cursor: pointer; white-space: nowrap; transition: transform .1s; }
.hd-btn:hover { transform: translateY(-2px); }
.hd-btn.fold { background: #4b4f5c; } .hd-btn.call { background: #1f8f5a; } .hd-btn.raise { background: #d0821b; } .hd-btn.allin { background: linear-gradient(180deg, #e5243b, #8a0f1f); }
.hd-raise { display: grid; gap: 5px; min-width: 0; }
.hd-rq { display: flex; gap: 4px; }
.hd-rq button { flex: 1; border: 1px solid rgba(231, 196, 106, .5); background: rgba(231, 196, 106, .1); color: #f3dfa6; border-radius: 8px; padding: 4px 0; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.hd-raise input[type=range] { width: 100%; accent-color: #ffd54f; }
.hd-rin { display: flex; gap: 6px; }
.hd-rin input { flex: 1; min-width: 0; font: inherit; font-size: 16px; font-weight: 800; text-align: right; padding: 6px 8px; border-radius: 9px; border: 1px solid #c99412; background: #050403; color: #ffe08a; }
.hd-log { font-size: 12px; margin-top: 8px; } .hd-log summary { cursor: pointer; } .hd-log p { margin: 2px 0; }
.hd-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 100; padding: 10px 18px; border-radius: 999px; background: #111; color: #ffe08a; font-weight: 800; border: 1px solid #c99412; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
@media (max-width: 640px) {
  .hd-table { aspect-ratio: 3 / 4; }
  .hd-felt { inset: 10% 6%; border-radius: 45% / 32%; border-width: 7px; }
  .hd-seat { width: 92px; }
  .hd-nm b, .hd-nm small { font-size: 10.5px; }
  .hd-ava { width: 22px; height: 22px; font-size: 13px; }
  .hd-card { width: 32px; height: 46px; } .hd-card b { font-size: 14px; } .hd-card i { font-size: 12px; }
  .hd-board { gap: 3px; }
  .hd-cards .hd-card { width: 26px; height: 38px; } .hd-cards { height: 38px; }
  .hd-seat.me .hd-cards .hd-card { width: 40px; height: 56px; } .hd-seat.me .hd-cards { height: 56px; }
  .hd-acts { grid-template-columns: 1fr 1fr; }
  .hd-raise { grid-column: 1 / -1; order: 3; }
  .hd-btn.allin { order: 4; grid-column: 1 / -1; }
  .hd-bots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hd-row2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .hd-card.deal, .hd-card.flip { animation: none !important; } }


@media (max-width: 640px) {
  .hd-seat { width: 86px; }
  .hd-plate { padding: 4px 6px; gap: 4px; }
  .hd-dealer { width: 15px; height: 15px; font-size: 9px; right: 3px; }
  .hd-table { overflow: visible; }
  .hd-modal .ct-carmodal-body { overflow-x: hidden; }
}
/* ── ♠️ 홀덤 2.0: ChatGPT 테이블 · 카드 · 칩 그림 (그림이 있을 때만 hd-img-* 클래스로) ── */
.hd-card { border-radius: 7%/5%; overflow: hidden; font-family: Georgia, 'Times New Roman', 'Nanum Myeongjo', serif; }
.hd-card .hd-ci { position: absolute; left: 7%; top: 4%; display: flex; flex-direction: column; align-items: center; line-height: .95; }
.hd-card .hd-ci b { font-size: 15px; font-weight: 700; letter-spacing: -.04em; }
.hd-card .hd-ci i { font-style: normal; font-size: 11px; }
.hd-card .hd-ci.r { left: auto; top: auto; right: 7%; bottom: 4%; transform: rotate(180deg); }
.hd-card .hd-cs { font-size: 24px; line-height: 1; margin-top: 8%; }
.hd-card .hd-face { position: absolute; inset: 22% 20%; display: grid; place-items: center; border: 1px solid rgba(201, 148, 18, .7); border-radius: 4px; background: linear-gradient(160deg, rgba(255, 240, 200, .9), rgba(240, 214, 150, .6)); font-size: 22px; font-weight: 700; color: inherit; opacity: .9; }
.hd-card .hd-face + .hd-cs { display: none; }
.hd-card > b, .hd-card > i { display: none; }
.hd-card.red { color: #c3172e; }
.hd-cards .hd-card .hd-ci.r, .hd-board .hd-card .hd-ci.r { display: none; }
.hd-cards .hd-card .hd-ci b { font-size: 13px; } .hd-cards .hd-card .hd-ci i { font-size: 9px; } .hd-cards .hd-card .hd-cs { font-size: 17px; margin-top: 30%; }
.hd-cards .hd-card .hd-face { inset: 34% 14% 10%; font-size: 15px; }
.hd-seat.me .hd-cards .hd-card .hd-ci b { font-size: 17px; } .hd-seat.me .hd-cards .hd-card .hd-ci i { font-size: 12px; } .hd-seat.me .hd-cards .hd-card .hd-cs { font-size: 24px; }
.hd-board .hd-card { width: 50px; height: 70px; }
.hd-board .hd-card .hd-ci b { font-size: 16px; } .hd-board .hd-card .hd-cs { font-size: 26px; margin-top: 22%; }
.hd-board .hd-card .hd-face { inset: 30% 16% 10%; }
.hd-img-card-front .hd-card:not(.back):not(.empty) { background: url(/img/holdem/card-front.png) center / 100% 100% no-repeat; box-shadow: 0 4px 10px rgba(0, 0, 0, .45); }
.hd-img-card-back .hd-card.back { background: url(/img/holdem/card-back.png) center / 100% 100% no-repeat; border: 0; box-shadow: 0 4px 10px rgba(0, 0, 0, .45); }
.hd-img-table-wide .hd-felt { inset: 4% 3%; border: 0; border-radius: 0; background: url(/img/holdem/table-wide.png) center / 100% 100% no-repeat; box-shadow: none; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.hd-img-table-wide .hd-felt::before { display: none; }
.hd-img-chip .hd-bet i, .hd-img-chip .hd-stack i, .hd-img-chip .hd-potchips i { background: url(/img/holdem/chip.png) center / contain no-repeat; border: 0; }
.hd-potchips { display: inline-flex; margin-right: 6px; vertical-align: middle; }
.hd-potchips i { width: 16px; height: 16px; margin-left: -6px; border-radius: 50%; background: #ffd54f; border: 2px dashed #7a4b00; box-shadow: 0 2px 3px rgba(0, 0, 0, .4); }
.hd-bet i { width: 18px; height: 18px; }
.hd-img-dealer .hd-dealer { background: url(/img/holdem/dealer.png) center / contain no-repeat; color: transparent; width: 22px; height: 22px; right: 3px; }
@media (max-width: 640px) {
  .hd-img-table-tall .hd-felt { inset: 5% 2%; border: 0; border-radius: 0; background: url(/img/holdem/table-tall.png) center / 100% 100% no-repeat; box-shadow: none; }
  .hd-img-table-wide:not(.hd-img-table-tall) .hd-felt { inset: 6% 2%; }
  .hd-board .hd-card { width: 38px; height: 54px; }
  .hd-board .hd-card .hd-ci b { font-size: 13px; } .hd-board .hd-card .hd-cs { font-size: 19px; }
}


.hd-card .hd-face em { font-style: normal; }
.hd-img-face-k .hd-card .hd-face { background: center / cover no-repeat; border: 1px solid rgba(160, 110, 10, .8); opacity: 1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.hd-img-face-k .hd-card .hd-face em { display: none; }
.hd-img-face-k .hd-card .hd-face.f-k { background-image: url(/img/holdem/face-k.jpg); }
.hd-img-face-k .hd-card .hd-face.f-q { background-image: url(/img/holdem/face-q.jpg); }
.hd-img-face-k .hd-card .hd-face.f-j { background-image: url(/img/holdem/face-j.jpg); }
@media (max-width: 640px) {
  .hd-img-table-tall .hd-table { aspect-ratio: 10 / 16; }
  .hd-img-table-tall .hd-felt { inset: 3% 3%; }
}
.hd-img-face-k .hd-card .hd-face { background-position: 50% 12%; inset: 20% 12% 14%; }
.hd-img-face-k .hd-cards .hd-card .hd-face { inset: 32% 10% 8%; }
.hd-img-face-k .hd-board .hd-card .hd-face { inset: 28% 12% 8%; }


.cs-backbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line2); }
.cs-backbar .btn { padding: 11px 12px; font-weight: 800; }
/* ── 📱 폰(아이폰 · 안드로이드) 화면 맞춤: 주소창 · 노치 · 홈 막대에 안 잘리게 (dvh + safe-area) ── */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.ar-modal-in { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.ct-carmodal-wrap .ar-modal-in.ct-carmodal { overflow: hidden; }
.st-box { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
@media (max-width: 640px) {
  body.ct-modal-open .mnav { display: none; } /* 팝업이 떠 있으면 하단 탭은 숨겨서 팝업이 화면을 다 써요 */
  .ar-modal { padding: calc(6px + env(safe-area-inset-top)) 6px calc(6px + env(safe-area-inset-bottom)); }
  .ct-carmodal-wrap { padding: calc(6px + env(safe-area-inset-top)) 6px calc(6px + env(safe-area-inset-bottom)); align-items: flex-end; }
  .ct-carmodal-wrap .ar-modal-in.ct-carmodal {
    width: 100%; max-width: none !important; padding: 12px 10px 8px; border-radius: 18px 18px 14px 14px;
    max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
  .ct-carmodal-h h3 { font-size: 17px; }
  .ct-carmodal-h small { font-size: 11px; }
  .ct-carmodal-body { padding-bottom: env(safe-area-inset-bottom); -webkit-overflow-scrolling: touch; }
  .st-modal { padding: calc(6px + env(safe-area-inset-top)) 6px calc(6px + env(safe-area-inset-bottom)); }
  .st-box { padding: 14px 12px; }
  .cs-wallet { font-size: 12px; }
  .cs-lobby { gap: 8px; }
  .cs-game.art .cs-game-tx b { font-size: 15px; }
  .cs-game.art .cs-game-tx small, .cs-game small { font-size: 10.5px; }
  .cs-game em { font-size: 10.5px; }
  .cs-backbar { grid-template-columns: 1fr; }
  .hd-top { font-size: 12px; }
  .hd-top-act .btn.sm { padding: 6px 8px; font-size: 12px; }
}
@media (max-width: 380px) {
  .cs-lobby { grid-template-columns: 1fr 1fr; }
  .cs-game-art { font-size: 36px; }
  .bc-zone span { display: none; }
  .bc-quick button { font-size: 11px; padding: 6px 2px; }
  .hd-seat { width: 78px; }
  .hd-nm b, .hd-nm small { font-size: 9.5px; }
  .hd-btn { padding: 10px 8px; font-size: 13.5px; }
}
/* 🎤 노래방: 테이블 중인 아가씨 · VIP 술 · 양주 메뉴 */
.kr-mini { position: relative; }
.kr-mini.busy img { box-shadow: 0 0 0 2px #ff5ca8; }
.kr-mini em { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 0 4px; border-radius: 99px; background: #ff5ca8; color: #fff; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.kr-ev.vip { background: linear-gradient(90deg, rgba(255, 213, 79, .22), rgba(255, 92, 168, .12)); border-left: 3px solid #ffd54f; font-weight: 700; }
.kr-liq { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 8px; }
.kr-liq span { padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line2); background: var(--card2); font-size: 11.5px; white-space: nowrap; }
.kr-liq span b { color: var(--positive-text); margin-left: 2px; }
.kr-liq span.vip { border-color: #ffd54f; background: rgba(255, 213, 79, .12); }
.ct-ai { font-size: 10px; padding: 0 6px; margin-left: 2px; border-color: #7fb4ff; color: #7fb4ff; }
.ct-bizkpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100px, 100%), 1fr)); gap: 6px; margin: 8px 0 6px; }
.ct-bizkpi > div { padding: 6px 8px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); display: grid; }
.ct-bizkpi span { font-size: 10.5px; color: var(--muted); }
.ct-bizkpi small { font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-bizfeed { display: grid; gap: 3px; margin-bottom: 6px; }
.ct-bizfeed > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: baseline; font-size: 12px; padding: 3px 6px; border-radius: 8px; background: var(--card2); }
.ct-bizfeed > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-bizfeed > div small { color: var(--muted); font-size: 10px; }
.ct-tenlist { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; max-height: 140px; overflow: auto; }
.ct-tenlist span { font-size: 11.5px; padding: 2px 7px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line); white-space: nowrap; }
.ct-tenlist b { color: var(--up, #3fb97f); margin-left: 2px; }
.ct-bizfeed .ct-rich { color: #d9a400; font-weight: 700; font-size: 10px; }
.ct-bizfeed > div.vip { background: rgba(255, 213, 79, .14); box-shadow: inset 3px 0 0 #ffd54f; }
/* 🧾 세무서 */
.tx-modal { width: min(900px, calc(100vw - 24px)); }
.tx-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tx-company-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.tx-company-form { gap: 12px; }
.tx-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tx-field { display: grid; gap: 4px; }
.tx-field select { min-width: 0; }
@media (max-width: 600px) { .tx-fields { grid-template-columns: 1fr; } }
.tx-company-form :is(.ct-acts, .ct-mnote) { margin: 0; }
.tx-company-form textarea { width: 100%; min-height: 92px; padding: 9px 10px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; font-size: 14px; resize: vertical; }
.tx-company-form :is(select, textarea):focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.tx-company-form [aria-disabled="true"] { opacity: .65; }
.tx-company-form .tx-feedback { margin-bottom: 0; color: var(--text); }
.tx-feedback:empty { display: none; }
.tx-profile dd { text-align: left; }
.tx-intro { white-space: pre-wrap; overflow-wrap: anywhere; }
.tx-row { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card2); margin-bottom: 8px; }
.tx-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.tx-rk { min-width: 22px; color: var(--muted); }
.tx-nm { cursor: pointer; font-size: 15px; }
.tx-tot { margin-left: auto; font-size: 12.5px; }
.tx-bar { display: flex; height: 7px; border-radius: 99px; overflow: hidden; background: var(--line); margin: 8px 0 6px; }
.tx-bar i { display: block; height: 100%; }
.tx-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tx-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line2); background: var(--card); font-size: 11.5px; white-space: nowrap; }
.tx-chips span i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.tx-chips span b { color: var(--up, #3fb97f); }
.tx-chips span.neg b { color: var(--down, #4f8cff); }
.tx-chips small { color: var(--muted); font-size: 10px; }
.ct-p2pbox { margin-top: 10px; }
/* 🎰 잭팟 화면 효과 */
.cs-jackpot { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; pointer-events: auto; cursor: pointer; animation: jpIn .25s ease-out; }
.cs-jackpot.out { animation: jpOut .4s ease-in forwards; }
.cs-jp-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(255, 230, 120, .85), rgba(255, 170, 0, .35) 35%, rgba(20, 10, 0, .75) 75%); animation: jpFlash .45s ease-in-out 4 alternate; }
.cs-jp-rays { position: absolute; width: 160vmax; height: 160vmax; left: 50%; top: 45%; transform: translate(-50%, -50%); background: repeating-conic-gradient(rgba(255, 215, 80, .22) 0 10deg, transparent 10deg 20deg); animation: jpSpin 6s linear infinite; mix-blend-mode: screen; }
.cs-jp-coins { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cs-jp-coins i { position: absolute; top: -50px; font-style: normal; animation: jpFall linear infinite; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.cs-jp-box { position: relative; text-align: center; padding: 22px 34px; border-radius: 26px; background: linear-gradient(160deg, #3a2400, #120a00); border: 3px solid #ffd54f; box-shadow: 0 0 60px rgba(255, 200, 40, .8), inset 0 0 30px rgba(255, 200, 40, .25); animation: jpPop .6s cubic-bezier(.2, 1.6, .4, 1); }
.cs-jp-t { margin: 0; font-size: clamp(40px, 10vw, 84px); font-weight: 900; letter-spacing: .02em; background: linear-gradient(180deg, #fff6c8, #ffd54f 45%, #ff9d00); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 30px rgba(255, 200, 40, .6); animation: jpPulse .5s ease-in-out infinite alternate; }
.cs-jp-amt { margin: 6px 0 0; font-size: clamp(26px, 6vw, 44px); font-weight: 900; color: #7dffb0; text-shadow: 0 0 18px rgba(80, 255, 160, .6); }
.cs-jp-amt small { font-size: .5em; color: #c9ffe0; }
.cs-jp-m { margin: 8px 0 0; color: #ffe9a8; font-size: 13px; }
body.cs-shake { animation: arShake .6s; }
@keyframes jpIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes jpOut { to { opacity: 0; transform: scale(1.04); } }
@keyframes jpFlash { from { opacity: .55; } to { opacity: 1; } }
@keyframes jpSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes jpFall { from { transform: translateY(0) rotate(0); } to { transform: translateY(115vh) rotate(540deg); } }
@keyframes jpPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes jpPulse { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .cs-jp-rays, .cs-jp-coins i, .cs-jp-t { animation: none; } }
/* 🏛 시청: 시장 · 예산 · 바뀐 규칙 */
.hall-mayor { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border-radius: 18px; border: 2px solid #ff9d00; background: linear-gradient(160deg, rgba(255, 157, 0, .2), transparent 60%), var(--card2); margin: 8px 0 12px; }
.hall-av { display: flex; justify-content: center; align-items: flex-end; min-height: 120px; border-radius: 14px; background: radial-gradient(circle at 50% 70%, rgba(255, 210, 120, .25), transparent 70%); cursor: pointer; }
.hall-mayor h4 { margin: 0 0 2px; font-size: 18px; }
.hall-mayor .hall-tag { display: inline-block; padding: 1px 8px; border-radius: 99px; background: #ff9d00; color: #1a1000; font-weight: 800; font-size: 11px; margin-bottom: 4px; }
.hall-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 6px; margin: 6px 0; }
.hall-kpi > div { padding: 6px 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: grid; }
.hall-kpi span { font-size: 10.5px; color: var(--muted); }
.hall-kpi small { font-size: 10.5px; color: var(--muted); }
.hall-seats { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.hall-seats span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 99px; border: 1px solid var(--line2); background: var(--card2); font-size: 12px; cursor: pointer; }
.hall-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 4px 0 10px; }
.hall-tbl th, .hall-tbl td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.hall-tbl td.r, .hall-tbl th.r { text-align: right; }
.hall-rules { display: grid; gap: 6px; margin: 4px 0; }
.hall-rules details { border: 1px solid var(--line); border-radius: 12px; background: var(--card2); padding: 8px 10px; }
.hall-rules summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.hall-rules ul { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.55; }
@media (max-width: 560px) { .hall-mayor { grid-template-columns: 1fr; text-align: center; } }
/* 🏛 관공서 창구 */
.cv-modal { width: min(640px, calc(100vw - 24px)); }

/* 법원 창구 · 판사 임명 · 사건 문서 */
.ct-court { display: grid; gap: 12px; }
.court-judge, .court-candidate {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start;
  gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--card2);
}
.court-judge img, .court-candidate img {
  max-width: 100%; object-fit: cover; border-radius: 9px; background: var(--card);
}
.court-judge h4, .court-section-title h4, .court-cases > h4 { margin: 0; }
.court-judge h4 { font-size: 22px; line-height: 1.2; margin-bottom: 5px; }
.court-judge p, .court-candidate p, .court-filing-body > p { margin: 0 0 6px; }
.court-roster, .court-filing, .court-record {
  border: 1px solid var(--line2); border-radius: 10px; background: var(--card);
}
.court-roster > summary, .court-filing > summary, .court-record > summary {
  padding: 8px 11px; cursor: pointer; font-weight: 650;
}
.court-service-career { margin: 6px 0 10px; padding: 9px 10px; border-inline-start: 2px solid #ad9062; overflow-wrap: anywhere; }
.court-service-career p { margin: 0 0 4px; }
.court-service-career p:last-child { margin-bottom: 0; }
.court-service-career ul { margin-block: 5px; padding-inline-start: 18px; }
.court-roster > summary:focus-visible, .court-filing > summary:focus-visible,
.court-record > summary:focus-visible, .court-file :is(input, select, textarea):focus-visible,
.court-statement textarea:focus-visible {
  outline: 2px solid var(--gold2); outline-offset: -2px;
}
.court-appoint {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 8px; padding: 0 9px 9px;
}
.court-candidate { padding: 9px; gap: 9px; font-size: 12px; }
.court-candidate img { width: 62px; height: 74px; }
.court-candidate b { font-size: 14px; }
.court-candidate div > span { color: var(--gold2); }
.court-candidate button { display: block; margin-top: 6px; }
.court-filings, .court-cases, .court-file, .court-statement { display: grid; gap: 7px; }
.court-file label, .court-statement label { display: grid; gap: 4px; font-size: 12px; font-weight: 650; }
.court-file :is(input, select, textarea), .court-statement textarea {
  width: 100%; min-width: 0; border: 1px solid var(--line2); border-radius: 8px;
  padding: 8px 9px; background: var(--card2); color: var(--text); font: inherit;
}
.court-file textarea, .court-statement textarea { resize: vertical; }
.court-war-filing[open] { border-color: var(--gold2); }
.court-war-order :is(select, button) { min-height: 44px; }
.court-filing-body, .court-record-body { padding: 0 11px 10px; }
.court-statement small { font-weight: 400; color: var(--muted); }
.court-statement .btn { justify-self: start; }
.court-record-body p { margin: 0 0 6px; }
.court-statement-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.court-form-actions, .court-section-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.court-laws { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 11px; }
.court-laws a { color: var(--gold2); text-decoration: underline; text-underline-offset: 2px; }
.court-record > summary small { margin-inline-start: 8px; color: var(--muted); }
.court-relief {
  display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line2);
  border-radius: 10px; background: var(--card2);
}
.court-relief :is(h4, p, dl, dd) { margin: 0; }
.court-relief-balances, .court-relief-options {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 142px), 1fr)); gap: 8px 12px;
}
.court-relief-balances dt, .court-relief-options p { font-size: 12px; color: var(--muted); }
.court-relief-balances dd { margin-top: 2px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.court-relief-options .btn { width: 100%; min-height: 44px; margin-bottom: 4px; }
.court-relief-debts summary { cursor: pointer; font-size: 13px; }
.court-relief-debts dl { margin-top: 4px; }
.court-relief-debts dl div { display: flex; justify-content: space-between; gap: 6px; padding: 3px 0; }
.court-relief-status { color: var(--gold2); }
.court-relief-error { color: var(--down); }
.court-relief-error:empty { display: none; }
.court-docket { display: grid; }
.court-docket > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px;
}
.court-docket small { color: var(--muted); }
.ct-bankf .ct-p2p-check {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 6px;
}
.ct-bankf .ct-p2p-check input { width: auto; accent-color: var(--gold2); }
@media (max-width: 430px) {
  .court-judge img { width: 78px; height: 78px; }
  .court-judge h4 { font-size: 18px; }
  .court-record > summary small { display: block; margin-inline-start: 14px; }
}
.cv-hi { margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; background: var(--goldsoft); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); font-size: 13.5px; }
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 6px; margin: 8px 0 10px; }
.cv-sv { padding: 12px 12px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); font: inherit; font-weight: 700; font-size: 13.5px; text-align: left; cursor: pointer; transition: transform .12s, border-color .12s; }
.cv-sv:hover { border-color: var(--gold); transform: translateY(-1px); }
.cv-sv small { font-weight: 500; }
/* ✉️ 우편함 */
.mail-btn { position: relative; }
.mail-btn .badge-n { position: absolute; top: -6px; right: -6px; }
.mail-modal { width: min(860px, calc(100vw - 24px)); max-height: min(88dvh, 760px); display: flex; flex-direction: column; padding: 16px; }
.mail-head { display: flex; align-items: baseline; gap: 8px; }
.mail-head h3 { margin: 0; }
.mail-head small { flex: 1; }
.mail-alert { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: rgba(239, 69, 101, .14); border: 1px solid rgba(239, 69, 101, .5); color: #ef4565; font-weight: 700; font-size: 13px; }
.mail-tabs { margin: 10px 0 8px; }
.mail-main { flex: 1; min-height: 0; overflow: auto; }
.mail-split { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 10px; min-height: 340px; }
.mail-list { display: grid; align-content: start; gap: 4px; max-height: 62dvh; overflow: auto; }
.mail-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 6px; align-items: center; text-align: left; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font: inherit; cursor: pointer; }
.mail-item.on { border-color: var(--gold); }
.mail-item.new b { font-weight: 800; }
.mail-item.k-seizure { border-color: rgba(239, 69, 101, .5); }
.mail-item.k-contract { border-color: rgba(240, 185, 11, .45); }
.mail-ic { font-size: 18px; text-align: center; }
.mail-t { display: grid; min-width: 0; }
.mail-t b, .mail-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-t b { font-weight: 600; font-size: 13px; }
.mail-t small { color: var(--muted); font-size: 11px; }
.mail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.mail-detail { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card2); min-width: 0; }
.mail-detail.empty { display: grid; place-items: center; }
.mail-detail.k-seizure { border-color: #ef4565; background: linear-gradient(180deg, rgba(239, 69, 101, .1), transparent 40%), var(--card2); }
.mail-detail.k-contract { border-color: var(--gold); background: linear-gradient(180deg, rgba(240, 185, 11, .08), transparent 40%), var(--card2); }
.mail-detail.k-verdict { border-color: #7fb4ff; }
.mail-dk { margin: 0; font-size: 11.5px; color: var(--muted); }
.mail-detail h4 { margin: 6px 0 10px; font-size: 16px; }
.mail-body { font-size: 13.5px; line-height: 1.6; white-space: normal; word-break: break-word; }
.mail-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mail-acts.small { margin-top: 10px; }
.mail-write { display: grid; gap: 8px; }
.mail-write label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.mail-write input, .mail-write textarea { font: inherit; font-size: 15px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); }
.mail-repay-dialog { box-sizing: border-box; width: min(380px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 18px; text-align: left; color: var(--text); border-color: var(--gold); box-shadow: 0 16px 60px #0009; }
.mail-repay-dialog::backdrop { background: rgba(0, 0, 0, .66); }
.mail-repay-dialog h3 { margin: 0 0 8px; }
.mail-repay-dialog .mail-acts { justify-content: flex-end; margin-top: 4px; }
.mail-repay-dialog .mail-repay-error { margin: 0; color: #ff8797; }
.mail-repay-dialog .mail-repay-error:empty { display: none; }
.mail-repay-dialog button:disabled { opacity: .55; cursor: wait; }
.ct-property-actions { margin: 8px 0; }
@media (max-width: 700px) {
  .ct-property-actions { scroll-margin-block: calc(var(--hdr, 120px) + 10px) calc(78px + env(safe-area-inset-bottom)); }
}
.ct-property-actions .btn, .property-offer-dialog .btn { min-height: 44px; }
.property-offer-dialog .ct-dl { margin: 0; }
.property-offer-dialog .mail-write small { margin-top: -4px; }
.property-offer-dialog .mail-write p { margin: 0; }
.property-offer-building { display: grid; gap: 3px; margin-bottom: 12px; overflow-wrap: anywhere; }
.property-offer-building span { font-size: 13px; }
.property-offer-row { flex-wrap: wrap; }
.property-offer-row .mail-acts { margin: 0 0 0 auto; }
.mail-h { margin: 12px 0 6px; font-weight: 800; font-size: 13.5px; }
.mail-loan { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); margin-bottom: 4px; }
.mail-loan > div:first-child { display: grid; min-width: 0; }
.mail-loan small { color: var(--muted); font-size: 11px; }
.mail-loan.default { border-color: rgba(239, 69, 101, .55); }
.mail-loan-r { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.mail-note { margin-top: 10px; font-size: 11.5px; }
@media (max-width: 640px) { .mail-split { grid-template-columns: minmax(0, 1fr); } .mail-list { max-height: 34dvh; } .mail-modal { padding: 12px; } .mail-loan { flex-direction: column; align-items: stretch; } .mail-loan-r { justify-content: flex-start; } }
/* 💬 부동산 탭 채팅 */
.ct-chat { margin: 14px 0; padding: 12px; border-radius: 16px; border: 1px solid var(--line2); background: var(--card); }
.cc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-head small { flex: 1; min-width: 0; font-size: 11.5px; }
.cc-list { height: 240px; overflow-y: auto; overscroll-behavior: contain; margin: 10px 0 8px; padding: 6px 8px; border-radius: 12px; background: var(--card2); display: flex; flex-direction: column; gap: 4px; }
.cc-msg { display: flex; align-items: baseline; gap: 6px; font-size: 13.5px; line-height: 1.45; word-break: break-word; }
.cc-msg.me .cc-who { color: var(--gold-text); }
.cc-who { flex: none; font-weight: 800; color: var(--negative-text); cursor: pointer; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-txt { flex: 1; min-width: 0; }
.cc-t { flex: none; color: var(--muted); font-size: 10.5px; }
.cc-del { flex: none; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; }
.cc-empty { margin: auto; font-size: 12.5px; }
.cc-form { display: flex; gap: 6px; }
.cc-form input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); }
.ct-panebar [data-ct-chatjump] { cursor: pointer; }
.ct-rotb { position: relative; }
.ct-rotb small { position: absolute; right: -4px; bottom: -4px; padding: 0 4px; border-radius: 99px; background: var(--gold); color: #1a1405; font-size: 9px; font-weight: 800; line-height: 14px; }
.ct-rotb small:empty { display: none; }
.ct-tb.on { box-shadow: 0 0 0 2px var(--gold) inset; }
/* 💬 매매대회 실시간 채팅: 넓은 화면은 차트 왼쪽 세로 칸 · 좁으면 아래 */
.ar-chat { grid-column: 1 / -1; order: 5; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--card2); min-width: 0; display: flex; flex-direction: column; }
.ar-chat .cc-head b { font-size: 13.5px; }
.ar-chat .cc-head small { flex-basis: 100%; order: 3; font-size: 10.5px; }
.ar-chat .cc-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ar-chat .cc-list { height: 170px; margin: 8px 0 6px; padding: 6px; }
.cc-compact .cc-msg { font-size: 12.5px; gap: 4px; flex-wrap: wrap; }
.cc-compact .cc-who { max-width: 8em; }
.cc-compact .cc-txt { flex-basis: 100%; order: 3; }
.cc-compact .cc-t { margin-left: auto; }
.cc-compact .cc-form input { font-size: 14px; padding: 7px 9px; }
.cc-compact .cc-form .btn { padding: 7px 10px; }
@media (min-width: 1100px) {
  .ar-main { grid-template-columns: 220px minmax(0, 1fr) 330px; }
  /* 채팅 칸은 차트 · 주문 칸 높이에 맞추고 안에서만 스크롤 (글이 쌓여도 화면이 길어지지 않게) */
  .ar-chat { grid-column: auto; order: 0; contain: size; min-height: 360px; }
  .ar-chat .cc-list { height: auto; flex: 1; min-height: 0; }
  .ar-chat:has(.cc-body[hidden]) { align-self: start; contain: none; min-height: 0; }
}
@media (max-width: 640px) { .cc-list { height: 200px; } .cc-head small { flex-basis: 100%; order: 3; } }


.hd-lobby .cs-game-img.hd-gimg { aspect-ratio: 4 / 3; }
.hd-lobby .cs-game-img.hd-gimg img { object-position: 50% 35%; }
.cs-live.hd-tag { background: #2b6bd7; animation: none; }
.hd-g.art.ai { background: linear-gradient(180deg, #0f1c3d, #070d1f); }
.hd-g.art.pvp { background: linear-gradient(180deg, #0b3a22, #052012); }
/* 📱 비로그인 폰: 하단 탭이 없어서 상단 탭(현물 · 선물 …)이 화면 밖으로 밀리던 문제 → 둘째 줄에서 옆으로 밀어 보기 */
@media (max-width: 700px) {
  body:not(.has-mnav) .topbar-in { flex-wrap: wrap; height: auto; min-height: 56px; padding-top: 8px; padding-bottom: 8px; row-gap: 6px; }
  body:not(.has-mnav) .conn { flex-wrap: wrap; flex: 1 1 auto; min-width: 0; justify-content: flex-end; row-gap: 6px; }
  body:not(.has-mnav) .view-tabs { order: 10; flex: 0 0 100%; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  body:not(.has-mnav) .view-tabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 400px) {
  .conn { gap: 4px; min-width: 0; }
  .auth-box { gap: 4px; }
  .auth-box .btn.sm, .auth-box .bal-chip, .bal-chip { padding: 5px 7px; font-size: 11.5px; }
  .theme-tg { width: 28px; height: 28px; }
  .topbar-in { gap: 6px; }
}
@media (max-width: 340px) {
  .theme-tg { display: none; }
  .brand img, .brand svg { width: 30px; height: 30px; }
}
.ct-log { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.ct-log li { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .ar-tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .ar-tabs::-webkit-scrollbar { display: none; }
  .ar-tabs button { flex: none; }
  .sh-act { flex-wrap: wrap; min-width: 0; }
  .sh-act .btn { white-space: nowrap; font-size: 12px; padding: 6px 8px; }
  .sh-card { min-width: 0; }
}


/* ⌚ 시계샵: 진열 사진 · 한정 수량 · 중고 판매 */
.st-item.photo .st-thumb { position: relative; background: #111114; }
.st-item.photo .st-thumb { width: 64px; height: 64px; }
.st-item.photo .st-thumb img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: none; image-rendering: auto; }
.st-stock { position: absolute; right: 4px; bottom: 4px; font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; }
.st-stock.low { background: #c3172e; } .st-stock.out { background: #555; }
.st-item.soldout { opacity: .55; }
.st-item.soldout .st-thumb img { filter: grayscale(.8); }
.st-photo { border-radius: 14px; overflow: hidden; margin-bottom: 8px; border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); background: #111; }
.st-photo img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.st-usedbox { margin-bottom: 10px; padding: 10px; border-radius: 12px; background: var(--goldsoft); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); }
.st-usedbox .st-sl { margin-top: 0; }
.st-usedrow { display: flex; flex-wrap: wrap; gap: 6px; }
.st-usedrow .chip { cursor: pointer; }
.st-sell { margin-top: 6px; }
.st-item.photo { grid-template-columns: 64px minmax(0, 1fr); }
.st-item.photo b { line-height: 1.25; }


/* ── 🎤 노래방: 아가씨 · 매니저 · AI 손님 ── */
.kr-modal { max-width: 820px !important; }
.kr-stage { position: relative; border-radius: 16px; overflow: hidden; padding: 16px 14px 12px; background: radial-gradient(ellipse at 50% 0%, #5b1f8a, #1a0a2e 70%); border: 2px solid #c77dff; box-shadow: inset 0 0 40px rgba(199, 125, 255, .35); }
.kr-neon { display: flex; justify-content: space-between; align-items: center; }
.kr-neon b { font-size: 24px; letter-spacing: .25em; color: #fff; text-shadow: 0 0 6px #ff5ec4, 0 0 14px #ff5ec4, 0 0 26px #c77dff; animation: krNeon 2.4s ease-in-out infinite; }
.kr-neon span { color: #7cf3ff; font-size: 18px; text-shadow: 0 0 10px #7cf3ff; animation: krNote 1.6s ease-in-out infinite; }
@keyframes krNeon { 50% { opacity: .75; text-shadow: 0 0 4px #ff5ec4, 0 0 8px #c77dff; } }
@keyframes krNote { 50% { transform: translateY(-4px); } }
.kr-crew { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; min-height: 58px; align-items: center; color: #e9d8ff; font-size: 13px; }
.kr-mini { position: relative; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 2px solid #fff3; background: #2b1645; }
.kr-mini img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.kr-mini i { position: absolute; right: 0; bottom: 0; font-style: normal; font-size: 10px; font-weight: 900; padding: 0 5px; border-radius: 999px; background: #000c; color: #fff; }
.kr-mini.g-S { border-color: #ffd54f; box-shadow: 0 0 12px #ffd54f; } .kr-mini.g-A { border-color: #ff8fb1; } .kr-mini.g-B { border-color: #7fb4ff; }
.kr-mini.mgr { border-color: #7cf3ff; border-radius: 12px; }
.kr-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.kr-kpi > div { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.kr-kpi span { font-size: 11px; color: var(--muted); } .kr-kpi b { font-size: 16px; } .kr-kpi small { font-size: 11px; color: var(--muted); }
.kr-sub { font-weight: 800; margin: 10px 0 6px; }
.kr-feed { max-height: 260px; overflow-y: auto; display: grid; gap: 4px; padding: 8px; border-radius: 12px; background: var(--card2); }
.kr-ev { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 4px 6px; border-radius: 8px; animation: krIn .4s ease both; }
.kr-ev small { flex: none; color: var(--muted); font-size: 11px; }
.kr-ev.reg, .kr-ev.rin { background: rgba(255, 94, 196, .1); }
.kr-ev.bad { background: rgba(239, 69, 101, .12); color: #ef4565; }
.kr-ev.sys { background: rgba(124, 243, 255, .1); }
@keyframes krIn { from { opacity: 0; transform: translateX(-10px); } }
.kr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.kr-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 10px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--card); }
.kr-card.on { border-color: #ff5ec4; box-shadow: 0 0 0 1px #ff5ec4, 0 0 16px rgba(255, 94, 196, .25); }
.kr-card.busy { opacity: .6; }
.kr-card.g-S { border-color: #ffd54f; } .kr-card.g-S.on { box-shadow: 0 0 0 1px #ffd54f, 0 0 18px rgba(255, 213, 79, .4); }
.kr-photo { position: relative; width: 96px; height: 120px; border-radius: 10px; overflow: hidden; background: #2b2233; }
.kr-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.kr-grade { position: absolute; left: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #1b1300; background: var(--gc); box-shadow: 0 0 10px var(--gc); }
.kr-on { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 10.5px; font-weight: 800; color: #fff; background: rgba(255, 94, 196, .85); padding: 2px 0; }
.kr-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kr-info b { font-size: 14px; } .kr-info em { font-style: normal; font-size: 12px; font-weight: 700; color: #ff5ec4; }
.kr-info > small { font-size: 11px; line-height: 1.35; }
.kr-stats { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 6px; align-items: center; font-size: 10.5px; color: var(--muted); }
.kr-stats b { font-size: 10.5px; color: var(--text); }
.kr-bar { height: 5px; border-radius: 99px; background: var(--line2); overflow: hidden; }
.kr-bar i { display: block; height: 100%; background: #7fb4ff; } .kr-bar.pk i { background: #ff5ec4; } .kr-bar.rd i { background: #ef4565; }
.kr-money { margin: 2px 0; font-size: 12px; }
.kr-busy { font-size: 11px; display: block; margin-top: 3px; }
.kr-info .btn.sm { align-self: flex-start; }
@media (max-width: 640px) { .kr-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kr-card { grid-template-columns: 82px minmax(0, 1fr); } .kr-photo { width: 82px; height: 104px; } }
@media (prefers-reduced-motion: reduce) { .kr-neon b, .kr-neon span, .kr-ev { animation: none; } }


/* 🔢 바카라 점수: 카드가 뒤집힐 때마다 숫자가 바뀌며 톡 튀어요 */
.bc-hand { position: relative; }
.bc-pt.live { opacity: 1 !important; animation: none; font-size: 20px; min-width: 40px; transition: background .2s; }
.bc-pt.pop { animation: bcPop .45s cubic-bezier(.2, 1.8, .4, 1); background: #ffd54f; color: #2a1a00; }
@keyframes bcPop { 0% { transform: scale(.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.bc-plus { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); font-style: normal; font-weight: 900; font-size: 14px; color: #ffe08a; text-shadow: 0 0 6px rgba(0, 0, 0, .8); pointer-events: none; animation: bcPlus .9s ease-out forwards; }
@keyframes bcPlus { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -26px); } }
@media (prefers-reduced-motion: reduce) { .bc-pt.pop, .bc-plus { animation: none; } }
/* ── 🏡 집 구경 ── */
.hv-modal { max-width: 820px !important; }
.hv-hero { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #1a1610; border: 2px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.hv-hero img { width: 100%; height: 100%; object-fit: cover; display: block; animation: hvZoom 18s ease-in-out infinite alternate; }
@keyframes hvZoom { to { transform: scale(1.08); } }
.hv-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .78)); }
.hv-hero-in { position: absolute; left: 14px; bottom: 12px; z-index: 1; color: #fff; display: grid; }
.hv-hero-in b { font-size: 22px; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); } .hv-hero-in small { color: #f3e6c2; }
.hv-stars { color: #ffd54f; letter-spacing: 2px; font-size: 13px; text-shadow: 0 0 6px rgba(0, 0, 0, .8); }
.hv-hero.t7 { border-color: #ffd54f; box-shadow: 0 0 24px rgba(255, 213, 79, .4); }
.hv-h { font-weight: 800; margin: 14px 0 6px; }
.hv-furn { display: flex; flex-wrap: wrap; gap: 6px; }
.hv-owner { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.hv-owner b[data-uid] { cursor: pointer; } .hv-owner > div { display: grid; }
.hv-ava { width: 52px; height: 64px; flex: none; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #3a4150, #1d222b); }
.hv-ava img { width: 100%; height: 100%; object-fit: contain; }
.hv-lux, .hv-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); gap: 8px; }
.hv-item { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); text-align: center; }
.hv-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.hv-item b { font-size: 12px; } .hv-item small { font-size: 11px; color: var(--muted); }
.hv-carimg { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; background: radial-gradient(ellipse at 50% 70%, #3a4150, #161a22); }
.hv-carimg img { width: 80%; aspect-ratio: auto; object-fit: contain; border-radius: 0; image-rendering: auto; }
.hv-empty { font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .hv-hero img { animation: none; } }
/* 💃 바카라 딜러 (ChatGPT 실사 · 테이블 뒤에 서 있어요) */
.bc-dealer { position: relative; height: 170px; margin: 4px 0 -58px; z-index: 0; display: flex; justify-content: center; pointer-events: none; }
.bc-dealer.none { display: none; }
.bc-dealer img { height: 100%; width: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); transform-origin: 50% 100%; }
.bc-dealer.dealing img { animation: bcDeal 0.55s ease-in-out infinite alternate; }
@keyframes bcDeal { to { transform: translateY(3px) rotate(-1.2deg); } }
.bc-say { position: absolute; top: 18px; left: calc(50% + 70px); padding: 6px 12px; border-radius: 14px 14px 14px 2px; background: #fff; color: #1b1f2b; font-size: 12.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); animation: krIn .35s ease both; }
.bc-felt { z-index: 1; }
@media (max-width: 560px) { .bc-dealer { height: 130px; margin-bottom: -44px; } .bc-say { left: calc(50% + 46px); font-size: 11px; top: 10px; } }
@media (prefers-reduced-motion: reduce) { .bc-dealer.dealing img { animation: none; } }


/* ♠️ 홀덤: 액션 버튼은 테이블 바로 아래에 늘 보이게 (스크롤 안 해도) · 테이블은 화면 높이에 맞춰 */
.hd-tablemode .hd-table { width: min(100%, calc((100vh - 360px) * 1.6)); width: min(100%, calc((100dvh - 360px) * 1.6)); min-width: min(100%, 420px); margin: 4px auto 0; }
.hd-dock { position: sticky; bottom: 0; z-index: 12; margin: 0 -2px; padding: 6px 2px calc(4px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--card, #121217) 18%); }
.hd-handstats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 460px);
  margin: 14px auto 7px;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line2));
  border-radius: 10px;
  background: var(--card2);
}
.hd-handstats > div {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: baseline;
  justify-content: center;
  gap: 0 8px;
  min-width: 0;
  padding: 6px 8px;
  text-align: center;
}
.hd-handstats > div + div { border-inline-start: 1px solid var(--line2); }
.hd-handstats dt { color: var(--muted); font-size: 12px; }
.hd-handstats dd { margin: 0; font-size: 16px; font-weight: 750; }
.hd-handstats .hd-handwin { color: var(--gold); font-variant-numeric: tabular-nums; }
.hd-handstats small { flex-basis: 100%; color: var(--muted); font-size: 11px; }
.hd-dock .hd-acts { box-shadow: 0 -6px 20px rgba(0, 0, 0, .35); }
.hd-dock .hd-acts.quick { grid-template-columns: repeat(var(--hd-action-count), minmax(0, 1fr)); }
.hd-dock .cs-res { margin: 4px auto; }
@media (min-width: 641px) {
  .hd-handstats { width: min(100%, 570px); grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); margin-top: 26px; }
  .hd-handstats > div { padding-block: 4px; }
  .hd-handstats small { flex-basis: auto; }
  .hd-dock .hd-acts { grid-template-columns: auto auto minmax(0, 1fr) auto; padding: 8px; gap: 6px; }
  .hd-dock .hd-btn { padding: 10px 14px; font-size: 14.5px; }
  .hd-dock .hd-raise { gap: 3px; }
  .hd-dock .hd-rin input { font-size: 15px; padding: 4px 8px; }
}
@media (max-width: 640px) {
  .hd-tablemode .hd-table { width: 100%; min-width: 0; }
  .hd-dock .hd-acts { gap: 6px; padding: 8px; }
  .hd-dock .hd-btn { padding: 10px 6px; font-size: 14px; }
  .hd-dock .hd-rq button { padding: 3px 0; }
}


@media (max-width: 640px) {
  .hd-img-table-tall .hd-tablemode .hd-table, .hd-tablemode .hd-table { width: min(100%, calc((100dvh - 300px) * 0.68)); margin-inline: auto; }
}
.hd-rztoggle { display: none; }
@media (max-width: 640px) {
  /* 📱 폰: 버튼 한 줄 (폴드 · 콜 · 레이즈▲ · 올인) · 레이즈를 누르면 금액 칸이 펼쳐져요 */
  .hd-dock .hd-acts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hd-dock .hd-btn.allin { grid-column: auto; order: 0; }
  .hd-rztoggle { display: block; }
  .hd-dock .hd-raise { display: none; grid-column: 1 / -1; order: 5; }
  .hd-dock .hd-acts.rz-open .hd-raise { display: grid; }
  .hd-dock .hd-btn { font-size: 13px; padding: 11px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hd-img-table-tall .hd-tablemode .hd-table, .hd-tablemode .hd-table { width: min(100%, calc((100dvh - 320px) * 0.66)); }
}
/* 🎁 지분 양도 · 일부 팔기 */
.ct-givebox { margin: 8px 0; padding: 8px 10px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--gold) 45%, var(--line2)); }
.ct-givebox summary { cursor: pointer; font-weight: 800; font-size: 13px; }
.ct-givef { display: flex; flex-wrap: wrap; gap: 6px; align-items: end; margin-top: 8px; }
.ct-givef label { display: grid; gap: 2px; font-size: 11.5px; }
.ct-givef input[name=to] { min-width: 140px; }
.ct-offer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; }
.ct-offer.in { background: var(--goldsoft); border: 1.5px solid color-mix(in srgb, var(--gold) 60%, transparent); }
.ct-offer.out { background: var(--card2); border: 1px solid var(--line2); }
.ct-offer span:last-child { display: flex; gap: 6px; }
/* 💃 홀덤 딜러 (테이블 위쪽 가운데 · 펠트 뒤에 서 있어요) */
.hd-tablemode .hd-table.has-dealer { margin-top: clamp(44px, 8%, 86px); }
.hd-girl { position: absolute; left: 50%; top: 0; transform: translate(-50%, -46%); height: 34%; z-index: 0; pointer-events: none; display: flex; justify-content: center; }
.hd-girl img { height: 100%; width: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55)); }
.hd-table .hd-felt { z-index: 1; }
.hd-say { position: absolute; left: calc(50% + 42%); top: 8%; padding: 5px 11px; border-radius: 14px 14px 14px 2px; background: #fff; color: #1b1f2b; font-size: 12px; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); z-index: 2; }
.hd-start { width: 100%; padding: 14px !important; font-size: 17px !important; }
.hd-start small { font-weight: 600; opacity: .85; }
.hd-start:disabled { opacity: .5; cursor: not-allowed; }
.hd-acts.wait .dim { margin: 6px 0 0; font-size: 12px; }
@media (max-width: 640px) {
  .hd-girl { height: 22%; transform: translate(-50%, -40%); }
  .hd-say { font-size: 10.5px; left: calc(50% + 30%); top: 4%; max-width: 46vw; white-space: normal; }
  .hd-tablemode .hd-table.has-dealer { margin-top: 44px; }
}


.hd-say { top: 46%; }
.hd-tablemode .hd-table.has-dealer { width: min(100%, calc((100vh - 440px) * 1.6)); width: min(100%, calc((100dvh - 440px) * 1.6)); min-width: min(100%, 420px); }
.hd-tablemode:has(.hd-handstats) .hd-table.has-dealer {
  width: min(100%, calc((100dvh - 489px) * 1.6));
  min-width: min(100%, 405px);
}
@media (min-width: 641px) and (max-height: 720px) {
  .hd-tablemode:has(.hd-handstats) .hd-table.has-dealer { margin-top: 36px; }
  .hd-tablemode .hd-center { top: 44%; }
  .hd-handinfo:has(.hd-handstats) ~ .hd-actwrap .hd-raise {
    grid-template-columns: minmax(0, 3fr) minmax(128px, 2fr);
    align-items: center;
  }
  .hd-handinfo:has(.hd-handstats) ~ .hd-actwrap .hd-rin {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}
@media (max-width: 640px) {
  .hd-tablemode .hd-table.has-dealer { width: min(100%, calc((100dvh - 360px) * 0.66)); min-width: 0; }
  .hd-tablemode:has(.hd-handstats) .hd-table.has-dealer {
    width: min(100%, max(190px, calc((100dvh - 390px) * 0.66)));
    min-width: 0;
    margin-top: 40px;
  }
  .hd-say { top: 30%; }
}
.hd-table > .hd-say { position: absolute; left: 50%; right: auto; top: -9%; transform: translateX(28px); z-index: 6; }
@media (max-width: 640px) { .hd-table > .hd-say { top: -5%; transform: translateX(18px); max-width: 44%; } }


/* 🛋 DIY 거실 */
.hv-roomhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.hv-roomhead b { font-size: 16px; }
.hv-roomhead .hv-edit { margin-left: auto; align-self: center; }
.hv-roomhead .hv-lock { margin-left: auto; }
.hv-room { position: relative; }
.rm-wrap { position: relative; border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #2a2433, #0f0d14 75%); border: 1.5px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.rm-cv { display: block; width: 100%; height: auto; max-height: 62vh; max-height: 62dvh; margin: 0 auto; object-fit: contain; touch-action: manipulation; cursor: pointer; image-rendering: auto; }
.rm-tip { position: absolute; z-index: 3; pointer-events: none; padding: 4px 9px; border-radius: 8px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 12px; white-space: nowrap; }
.rm-tools { margin-top: 8px; padding: 10px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line2); }
.rm-hint { margin: 0 0 6px; font-size: 12.5px; }
.rm-sel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; padding: 8px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); }
.rm-sel.on { border-color: #ffd54f; box-shadow: 0 0 0 1px #ffd54f inset; }
.rm-sel b { margin-right: 4px; } .rm-sel small { flex: 1; min-width: 120px; }
.rm-tabs { margin-bottom: 6px; }
.rm-pal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(96px, 100%), 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; padding: 2px; }
.rm-pi { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--card); color: var(--text); font: inherit; cursor: pointer; text-align: center; }
.rm-pi.on { border-color: #ffd54f; box-shadow: 0 0 10px rgba(255, 213, 79, .35); }
.rm-pi b { font-size: 11px; line-height: 1.25; } .rm-pi small { font-size: 10.5px; color: var(--muted); }
.rm-pimg { width: 64px; height: 56px; display: grid; place-items: center; }
.rm-pimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rm-pimg.tex { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; }
.rm-pimg.tex img { width: 100%; height: 100%; object-fit: cover; }



/* 💼 컨설팅 회사 */
.cs-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 8px; }
.cs-tier { display: grid; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #2a3240); background: var(--card2, rgba(255,255,255,.04)); color: inherit; cursor: pointer; font: inherit; }
.cs-tier:hover { border-color: #7aa6e0; }
.cs-tier b { font-size: 14px; }
.cs-tier span { font-size: 15px; font-weight: 700; color: #4aa3df; }
.cs-tier small { opacity: .75; line-height: 1.35; }
.cs-tier.vip { border-color: rgba(240, 185, 11, .55); background: linear-gradient(135deg, rgba(240,185,11,.14), rgba(240,185,11,.03)); }
.cs-tier.vip span { color: #f0b90b; }
.cs-report { max-width: 620px; max-height: 86vh; overflow-y: auto; }
.cs-report.vip { border: 1px solid rgba(240, 185, 11, .6); }
.cs-rh { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; }
.cs-paid { margin: 4px 0 10px; font-size: 12px; }
.cs-sec { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--card2, rgba(255,255,255,.04)); }
.cs-sec h4 { margin: 0 0 6px; font-size: 14px; }
.cs-sec ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.cs-sec li { line-height: 1.5; font-size: 13px; }
@media (max-width: 520px) { .cs-tiers { grid-template-columns: 1fr; } }



/* ⚡ 발전소 · 전력망 */
.pw-bar { height: 8px; border-radius: 6px; background: rgba(127,127,127,.18); overflow: hidden; margin: 6px 0; }
.pw-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f0b90b, #ff7a59); }
.pw-modal { max-width: 640px; max-height: 86vh; overflow-y: auto; }
.pw-modal .ct-bizkpi { grid-template-columns: repeat(4, 1fr); margin: 10px 0; }
@media (max-width: 520px) { .pw-modal .ct-bizkpi { grid-template-columns: repeat(2, 1fr); } }
.pw-mix { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: rgba(127,127,127,.15); margin: 4px 0 8px; }
.pw-mix i { display: block; height: 100%; }
.pw-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; margin-bottom: 10px; }
.pw-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pw-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pw-solar { background: #f0b90b; }
.pw-wastepower { background: #4ac7a0; }
.pw-coalplant { background: #6b6f78; }
.pw-oilplant { background: #c0583a; }
.pw-imp { background: repeating-linear-gradient(45deg, #e05f5f, #e05f5f 4px, #f2a0a0 4px, #f2a0a0 8px); }
.pw-modal > *, .cs-report > * { flex-shrink: 0; }



/* 🏥 종합병원 */
.hp-closed { margin: 4px 0 8px; padding: 8px 10px; border-radius: 10px; background: rgba(224, 95, 95, .12); color: #e05f5f; font-weight: 600; font-size: 13px; }
.hp-doc { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 8px; margin: 6px 0; border-radius: 12px; border: 1px solid var(--line, rgba(127,127,127,.25)); background: var(--card2, rgba(255,255,255,.03)); }
.hp-doc.on { border-color: rgba(47, 191, 143, .6); background: rgba(47, 191, 143, .07); }
.hp-doc img { width: 74px; height: 96px; object-fit: cover; object-position: top; border-radius: 8px; background: #cfd8e3; }
.hp-di p { margin: 0 0 3px; font-size: 13px; }
.hp-dept { font-size: 12px !important; }
.hp-gr { display: inline-block; min-width: 18px; text-align: center; padding: 0 5px; border-radius: 6px; color: #222; font-size: 11px; font-weight: 800; }
.hp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; margin: 4px 0; font-size: 11px; }
.hp-stats span { display: grid; grid-template-columns: 26px 1fr 22px; align-items: center; gap: 4px; }
.hp-stats b { text-align: right; font-family: var(--mono, monospace); }
.hp-st { display: block; height: 6px; border-radius: 4px; background: rgba(127,127,127,.2); overflow: hidden; }
.hp-st i { display: block; height: 100%; background: linear-gradient(90deg, #4aa3df, #2fbf8f); }
.hp-money { font-size: 12px !important; }
.hp-pool summary { cursor: pointer; font-weight: 600; margin: 8px 0 4px; }



/* ⏰ 대출 기한 · 📨 독촉장 */
.ln-due { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 0 0 8px; border-radius: 12px; border: 1px solid rgba(74, 163, 223, .45); background: rgba(74, 163, 223, .08); }
.ln-due div { display: grid; gap: 2px; }
.ln-due small { opacity: .8; }
.ln-due.soon { border-color: rgba(240, 185, 11, .6); background: rgba(240, 185, 11, .1); }
.ln-due.over { border-color: rgba(224, 95, 95, .7); background: rgba(224, 95, 95, .1); }
.mail-detail.k-dunning h4 { color: #e05f5f; }
.mail-item.k-dunning .mail-ic { filter: drop-shadow(0 0 3px rgba(224, 95, 95, .6)); }
.mail-paid { margin: 8px 0; color: #2fbf8f; font-weight: 600; }
.ar-modal-in.mail-modal { max-width: min(860px, calc(100vw - 24px)); overflow-y: auto; }
.mail-modal > * { flex-shrink: 0; }



/* 🏢 사업자 대출 */
.ct-loan-k.bz { border-color: rgba(240, 185, 11, .45); }
.bz-amt { margin: 4px 0 6px; font-size: 13px; }
.linklike { background: none; border: 0; padding: 0; color: #4aa3df; cursor: pointer; font: inherit; text-decoration: underline; }


.bc-shoe { display: block; margin-top: 2px; font-size: 10px; font-weight: 600; opacity: .7; color: #555; }
.bc-road.new-shoe { animation: bcShoe 1.2s ease 2; }
@keyframes bcShoe { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 185, 11, 0); } 50% { box-shadow: 0 0 0 4px rgba(240, 185, 11, .75); } }



/* 👥 라이브 바카라 */
.bc-mode { display: flex; gap: 6px; margin: 0 0 8px; }
.bc-mode .chip small { opacity: .75; font-weight: 500; }
.bl-top { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; margin: 8px 0; border-radius: 12px; background: var(--card2, rgba(255,255,255,.04)); border: 1px solid var(--line, rgba(127,127,127,.25)); font-size: 13px; }
.bl-bar { height: 6px; border-radius: 4px; background: rgba(127,127,127,.2); overflow: hidden; }
.bl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f0b90b, #ff7a59); transition: width .25s linear; }
.bl-zsum { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; opacity: .9; min-height: 14px; }
.bl-zsum b { display: block; color: #ffd54f; }
.bl-players { margin: 8px 0; }
.bl-h { display: flex; justify-content: space-between; align-items: center; margin: 0 0 6px; font-weight: 700; font-size: 13px; }
#bcLvPl { display: flex; flex-wrap: wrap; gap: 6px; }
.bl-p { display: inline-flex; gap: 5px; align-items: center; padding: 4px 8px; border-radius: 999px; background: var(--card2, rgba(255,255,255,.05)); border: 1px solid var(--line, rgba(127,127,127,.25)); font-size: 12px; }
.bl-p.me { border-color: #f0b90b; }
.bl-p i { font-style: normal; font-family: var(--mono, monospace); font-size: 11px; padding: 0 5px; border-radius: 6px; color: #fff; }
.bl-p i.k-player, .bl-rl .k-player { background: #3d6fd6; }
.bl-p i.k-banker { background: #c43c3c; }
.bl-p i.k-tie { background: #2f9e5a; }
.bl-res { margin: 6px 0; }
.bl-rl { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.bl-rl span { padding: 3px 8px; border-radius: 8px; background: var(--card2, rgba(255,255,255,.05)); }
.bl-rl span.w b.mono { color: #2fbf8f; }
.bl-rl span.l b.mono { color: #e05f5f; }
.bl-rl span.me { outline: 1px solid #f0b90b; }
.bl-prev { margin: 4px 0; font-size: 12px; }
@media (max-width: 520px) { .bl-top { grid-template-columns: auto 1fr; } .bl-top .bl-bar { grid-column: 1 / -1; } }
.bc-stack.paid { animation: bcPaid 1.1s ease .1s 2; }
.bc-stack.paid i { background: #ffe58a; box-shadow: 0 2px 0 #a07000, 0 0 10px rgba(255, 213, 79, .9); }
@keyframes bcPaid { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-10px) scale(1.18); } }



/* 🔁 롤링머신 연속 돌리기 */
.cs-multi { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.cs-mbtn { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; }
.cs-mbtn small { font-size: 10px; opacity: .75; font-family: var(--mono, monospace); }
.cs-mprog { font-size: 13px; }
.cs-msum { margin: 6px 0; padding: 10px 12px; border-radius: 12px; background: var(--card2, rgba(255,255,255,.04)); border: 1px solid var(--line, rgba(127,127,127,.25)); }
.cs-msum.win { border-color: rgba(240, 185, 11, .6); }
.cs-msum > p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin: 0 0 6px; font-size: 13px; }
.cs-mlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
.cs-mlist span { display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 8px; background: rgba(127,127,127,.08); font-size: 13px; }
.cs-mlist span.w { background: rgba(240, 185, 11, .15); }
.cs-mlist small { width: 16px; opacity: .6; font-size: 10px; }
.cs-mlist b { font-size: 11px; color: #f0b90b; }
.cs-mlist em { margin-left: auto; font-style: normal; font-size: 11px; }
.cs-mlist span.w em { color: #2fbf8f; }



/* 👥 라이브 룰렛 */
.rw-board button { position: relative; }
.rw-chip { display: none; position: absolute; right: -4px; top: -6px; z-index: 2; min-width: 18px; padding: 0 4px; height: 16px; line-height: 14px; border-radius: 999px; font-size: 9px; font-weight: 800; font-family: var(--mono, monospace); color: #3a2600; background: #ffd54f; border: 1.5px dashed #7a4b00; box-shadow: 0 2px 0 #a07000; pointer-events: none; }
.rw-chip.on { display: inline-block; animation: bcDrop .3s cubic-bezier(.2, 1.5, .5, 1); }
.rw-chip.on.me { background: #ff8fb1; border-color: #8a1e45; color: #3a0016; }
.bl-p i.k-rw { background: #8e6cf0; }
.rw-board .rw-chip { right: 1px; top: 1px; transform: none; min-width: 16px; height: 14px; line-height: 11px; font-size: 8.5px; padding: 0 3px; box-shadow: 0 1px 0 #a07000; }
.rw-board .rw-o .rw-chip { right: 3px; top: 3px; }



/* ⚖️ 로펌 */
.lw-svc { margin: 8px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, rgba(127,127,127,.25)); background: var(--card2, rgba(255,255,255,.03)); }
.lw-h { margin: 0 0 4px; font-weight: 700; font-size: 13px; }
.lw-who { margin: 0 0 6px; font-size: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.lw-m { display: inline-flex; align-items: center; gap: 5px; }
.lw-m img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; object-position: top; }
.lw-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--line, rgba(127,127,127,.25)); font-size: 13px; }
.lw-crimes { display: grid; gap: 3px; margin: 4px 0 6px; font-size: 12px; }
.lw-none { margin: 2px 0; font-size: 12px; }
.lw-on { margin: 4px 0; font-size: 12px; color: #2fbf8f; }



/* ── 🧭 2026-11 리브랜딩: 상단바 한 줄 정리 ── 고정되는 건 로고 · 메뉴 · 내 계정뿐, 시세 · 속보 줄은 스크롤되면 사라져요 */
.topbar-in { gap: 18px; }
.topbar-in .brand { flex: none; }
.topbar-in .view-tabs { flex: 0 1 auto; min-width: 0; margin: 0 auto; padding: 4px; border-radius: 14px; }
.view-tabs a { gap: 6px; padding: 6px 12px 6px 9px; font-size: 13.5px; font-weight: 700; border-radius: 10px; }
.nv-ic { display: inline-block; width: 22px; height: 22px; flex: none; background: url(/img/brand/nav-icons.png?v=1) no-repeat; background-size: 400% 200%; filter: saturate(.85); transition: transform .15s, filter .15s; }
.view-tabs a:hover .nv-ic { transform: translateY(-1px); filter: none; }
.view-tabs a.on .nv-ic { filter: none; transform: scale(1.08); }
.nv-spot { background-position: 0 0; } .nv-fut { background-position: 33.333% 0; } .nv-arena { background-position: 66.667% 0; } .nv-omok { background-position: 100% 0; }
.nv-city { background-position: 0 100%; } .nv-shop { background-position: 33.333% 100%; } .nv-me { background-position: 66.667% 100%; } .nv-macro { background-position: 100% 100%; }
.auth-box { flex: none; }
.tickers { position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.tape { display: flex; align-items: stretch; }
.tape-conn { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-right: 1px solid var(--line); }
.tape-conn .pill { padding: 2px 8px; font-size: 11px; }
.tape-conn .clock { margin-left: 2px; font-size: 11.5px; }
.tape-view { flex: 1; min-width: 0; overflow: hidden; }
.tape-view .tape-track { height: 100%; }
.shoutline.idle, .feedline.idle { display: none; }
.nl-shout { flex: none; border: 0; border-left: 1px solid var(--line); background: rgba(255, 77, 103, .07); color: var(--positive-text); font: 700 12px var(--sans, inherit); padding: 0 12px; cursor: pointer; white-space: nowrap; }
.nl-shout:hover { background: rgba(255, 77, 103, .15); }
/* 계정 메뉴: 경제지표 · 시민증 · 로그아웃을 ⋯ 안으로 */
.acct { position: relative; display: inline-flex; }
.acct-btn { min-width: 34px; justify-content: center; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; border-radius: 14px; background: var(--card, #fff); border: 1px solid var(--line2, #ddd); box-shadow: 0 14px 40px rgba(0, 0, 0, .18); z-index: 40; display: grid; gap: 2px; }
.acct-menu[hidden] { display: none; }
.acct-menu a, .acct-menu button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; border: 0; background: none; color: var(--text); font: 600 13.5px inherit; text-decoration: none; text-align: left; cursor: pointer; font-family: inherit; }
.acct-menu a:hover, .acct-menu button:hover { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.acct-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.acct-menu .nv-ic { width: 20px; height: 20px; }
@media (max-width: 1320px) { .tape-conn .pill { display: none; } }
@media (max-width: 1200px) { .view-tabs a { padding: 6px 9px 6px 7px; font-size: 12.5px; gap: 4px; } .brand-text small { display: none; } }
@media (max-width: 1060px) { .view-tabs a { font-size: 0; gap: 0; padding: 6px 8px; } .view-tabs .nv-ic { width: 24px; height: 24px; } }
@media (max-width: 860px) { .tape-conn { display: none; } }
@media (max-width: 700px) {
  body.has-mnav .acct .acct-btn { display: inline-flex; }
  body:not(.has-mnav) .view-tabs a { font-size: 12px; gap: 4px; padding: 5px 8px 5px 6px; }
  body:not(.has-mnav) .view-tabs .nv-ic { width: 18px; height: 18px; }
}
/* 📱 하단 탭: 5칸 + 더보기 */
@media (max-width: 700px) {
  .mnav .mi { display: grid; place-items: center; height: 26px; }
  .mnav .mi .nv-ic { width: 26px; height: 26px; filter: saturate(.6) opacity(.85); }
  .mnav a.on .mi .nv-ic { filter: none; }
  .mnav a, .mnav button { font-weight: 600; }
  .mnav button { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; color: var(--muted); font-size: 10.5px; padding: 4px 0; font-family: inherit; }
  .mnav button.on { color: var(--gold); }
  .mnav-more { position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 31; padding: 10px; border-radius: 18px; background: var(--card, #fff); border: 1px solid var(--line2); box-shadow: 0 18px 50px rgba(0, 0, 0, .25); display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .mnav-more[hidden] { display: none; }
  .mnav-more a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; text-decoration: none; color: var(--text); font-size: 11.5px; font-weight: 600; text-align: center; }
  .mnav-more a.on { background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); }
  .mnav-more .mi { font-size: 22px; height: 28px; display: grid; place-items: center; position: relative; }
  .mnav-more .mi .nv-ic { width: 28px; height: 28px; }
  .mnav-more .mi b { position: absolute; top: -4px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--up); color: #fff; font: 700 9.5px/16px var(--mono); }
}

/* ── 🎮 2026-11 게임 스킨: 남색 + 금색 · 둥근 게임 글씨(Jua) · 눌리는 입체 버튼 ── */
:root { --game: 'Jua', 'Pretendard Variable', Pretendard, system-ui, sans-serif; }
.topbar, html[data-theme] .topbar {
  --text: #f4efe2; --muted: #b3b9d3; --dim: #8088a6; --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .18); --card: #1c2240; --card2: #232a4c; --gold: #ffd35a;
  color: var(--text);
  background: linear-gradient(180deg, #232c52 0%, #151b36 100%) !important;
  border-bottom: 0;
  box-shadow: 0 3px 0 #e0a52a, 0 4px 0 #8a5a08, 0 12px 26px rgba(10, 14, 40, .28);
}
.topbar .brand-text b { font-family: var(--game); font-weight: 400; font-size: 22px; background: linear-gradient(180deg, #fff3b8, #ffd35a 45%, #e8a21a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #6b4306); }
.topbar .brand-text small { color: #8f97b8; letter-spacing: .2em; }
.topbar .brand-logo { filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); }
html[data-theme] .topbar-in .view-tabs, .topbar-in .view-tabs { background: rgba(4, 6, 20, .35); border: 0; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .06); gap: 4px; padding: 5px; border-radius: 16px; }
.topbar .view-tabs a { font-family: var(--game); font-weight: 400; font-size: 15.5px; color: #c9cee4; border-radius: 12px; padding: 4px 13px 4px 7px; gap: 6px; letter-spacing: .01em; transition: background .15s, color .15s, transform .12s, box-shadow .12s; }
.topbar .view-tabs a .nv-ic { width: 30px; height: 30px; filter: saturate(.75) brightness(.95); }
.topbar .view-tabs a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.topbar .view-tabs a:hover .nv-ic { transform: translateY(-2px) rotate(-4deg); filter: none; }
html[data-theme] .topbar .view-tabs a.on, .topbar .view-tabs a.on { color: #3b2400; background: linear-gradient(180deg, #fff0a8 0%, #ffd04a 45%, #f0a51c 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 0 rgba(160, 90, 0, .35), 0 3px 0 #8f5806, 0 6px 12px rgba(0, 0, 0, .35); transform: translateY(-2px); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.topbar .view-tabs a.on .nv-ic { filter: drop-shadow(0 2px 1px rgba(110, 60, 0, .45)); transform: scale(1.1); }
html[data-theme] .topbar .btn.ghost, .topbar .btn.ghost, .topbar .btn.sm:not(.gold) { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e8ebf7; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.topbar .btn.ghost:hover { background: rgba(255, 255, 255, .14); }
.topbar .bell, .topbar .me-link, .topbar .me-link b { color: #eef0f8; }
.topbar .theme-tg { background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .14) !important; color: #ffd35a; }
/* 💰 지갑: 코인 카운터 */
.bal-chip, html[data-theme] .bal-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 4px; border-radius: 999px; background: linear-gradient(180deg, #0d1230, #070a1d) !important; border: 2px solid #e8b23a !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 0 #7a4e06; color: #fff3c4 !important; text-decoration: none; }
.bal-chip b { font-family: var(--game); font-weight: 400; font-size: 15px; color: #ffe28a !important; letter-spacing: .02em; }
.bal-chip small { color: #c9b67a !important; font-size: 10px; }
.bal-coin { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); animation: coinSpin 6s ease-in-out infinite; }
@keyframes coinSpin { 0%, 86%, 100% { transform: rotateY(0); } 93% { transform: rotateY(180deg); } }
.bal-chip .bal-ico { display: none; }
/* ✨ 시세 · 소식 줄 */
.tickers { box-shadow: inset 0 6px 8px -6px rgba(10, 14, 40, .25); }
/* 🟡 눌리는 금색 버튼 · 게임 글씨 */
.btn.gold, html[data-theme] .btn.gold { font-family: var(--game); font-weight: 400; letter-spacing: .02em; color: #3b2400 !important; border: 0 !important; background: linear-gradient(180deg, #fff0a8 0%, #ffd04a 45%, #f0a51c 100%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 3px 0 #a86a05, 0 6px 12px rgba(160, 100, 0, .22) !important; transition: transform .08s, box-shadow .08s, filter .12s; }
.btn.gold:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn.gold:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 0 #a86a05 !important; }
main h1, main h2, .ar-modal-in h3, .board-h h2 { font-family: var(--game); font-weight: 400 !important; letter-spacing: 0; }
.hero h1 { font-family: var(--game); font-weight: 400; line-height: 1.12; }
.hero h1 em { font-style: normal; background: linear-gradient(180deg, #ffd96a, #e9a01b 70%, #b8760b); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(120, 70, 0, .18)); }
.board-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; background: var(--goldsoft); color: var(--gold) !important; font-weight: 700; letter-spacing: .08em; }
/* 🧱 카드: 살짝 두꺼운 테두리 + 아래 그림자 (게임 패널 느낌) */
.stat, .hr-col, .ct-panebar button, .seg { border-radius: 16px; }
html[data-theme="light"] .stat { box-shadow: 0 3px 0 rgba(20, 18, 14, .07), 0 8px 18px rgba(20, 18, 14, .05); }
.ct-panebar button { font-family: var(--game); font-weight: 400 !important; font-size: 14px !important; box-shadow: 0 2px 0 var(--line2); transition: transform .08s, box-shadow .08s; }
.ct-panebar button:hover { transform: translateY(-1px); }
.ct-panebar button:active { transform: translateY(1px); box-shadow: none; }
@media (max-width: 1240px) { .topbar .view-tabs a { font-size: 14px; padding: 4px 9px 4px 5px; } .topbar .view-tabs a .nv-ic { width: 26px; height: 26px; } }
@media (max-width: 1060px) { .topbar .view-tabs a { font-size: 0; padding: 4px 7px; gap: 0; } }
@media (max-width: 700px) {
  .mnav, html[data-theme] .mnav { background: linear-gradient(180deg, #1f2747, #121731) !important; border-top: 3px solid #e0a52a !important; }
  .mnav a, .mnav button { color: #aeb5d0 !important; font-family: var(--game); font-size: 11.5px; font-weight: 400 !important; }
  .mnav a.on, .mnav button.on { color: #ffd35a !important; }
  .mnav a.on .mi { transform: translateY(-3px) scale(1.08); }
  .mnav a.on .mi::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: #ffd35a; }
  .mnav-more, html[data-theme] .mnav-more { background: #1b2240 !important; border: 2px solid #e0a52a !important; }
  .mnav-more a { color: #e8ebf7 !important; font-family: var(--game); font-weight: 400; font-size: 12.5px; }
  .bal-chip b { font-size: 13.5px; }
}

/* ── 🎬 홈 히어로: 게임 키 아트 배너 ── */
.hero, html[data-theme] .hero {
  --text: #fbf7ec; --muted: #c4c9de; --dim: #9aa1bf; --line: rgba(255, 255, 255, .14); --line2: rgba(255, 255, 255, .22); --gold: #ffd35a; --gold2: #e8a21a;
  color: var(--text);
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 22px; padding: 54px 44px 40px; border-radius: 26px;
  background: #121834 url(/img/brand/hero-city.jpg?v=1) center right / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 211, 90, .35), 0 4px 0 #b57a10, 0 22px 50px rgba(14, 18, 48, .35);
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 12, 34, .92) 0%, rgba(9, 12, 34, .78) 34%, rgba(9, 12, 34, .25) 62%, rgba(9, 12, 34, .05) 100%), linear-gradient(0deg, rgba(9, 12, 34, .55), transparent 40%); }
.hero h1 { color: #fffaf0; text-shadow: 0 4px 0 rgba(0, 0, 0, .25), 0 10px 30px rgba(0, 0, 0, .35); }
.hero h1 em { filter: drop-shadow(0 4px 0 rgba(90, 50, 0, .55)); }
.hero .eyebrow { color: #ffd35a; background: rgba(0, 0, 0, .3); padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 211, 90, .35); }
.hero .lede b { color: #fff; }
.hero .stat, html[data-theme] .hero .stat { background: rgba(10, 14, 40, .55); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 3px 0 rgba(0, 0, 0, .3); }
.hero .stat.gold { background: linear-gradient(180deg, rgba(255, 211, 90, .22), rgba(10, 14, 40, .55)); border-color: rgba(255, 211, 90, .5); }
.hero .stat-v { font-family: var(--game); font-weight: 400; font-size: 28px; letter-spacing: 0; }
@media (max-width: 860px) { .hero, html[data-theme] .hero { padding: 30px 18px 22px; border-radius: 20px; background-position: 70% center; } .hero::before { background: linear-gradient(180deg, rgba(9, 12, 34, .86), rgba(9, 12, 34, .7) 60%, rgba(9, 12, 34, .82)); } }
/* 🏆 홈 랭킹: 게임 리더보드 패널 */
.home-rank, html[data-theme] .home-rank { border-radius: 22px; overflow: hidden; border: 1px solid rgba(224, 165, 42, .45) !important; box-shadow: 0 4px 0 rgba(181, 122, 16, .55), 0 16px 34px rgba(14, 18, 48, .12); }
.home-rank .hr-h { margin: -18px -20px 16px; padding: 16px 20px; background: linear-gradient(180deg, #232c52, #161c38); --text: #f6f1e4; --muted: #b6bcd6; --dim: #8b92b0; --gold: #ffd35a; color: var(--text); }
.home-rank .hr-h h2 { color: #fff7dd; }
.home-rank .hr-h .board-eyebrow { background: rgba(255, 211, 90, .14); }
.hr-col.honor { box-shadow: inset 0 3px 0 #f0b52a; }
.hr-col.shame { box-shadow: inset 0 3px 0 #e0566e; }
.hr-ct { font-family: var(--game); font-weight: 400 !important; font-size: 16px; }
/* 🎮 학생증 · 경제지표 · 관리자 페이지 상단도 같은 남색 게임 바 */
html .atop, html[data-theme] .atop {
  --text: #f4efe2; --muted: #b3b9d3; --dim: #8088a6; --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .18); --card: #1c2240; --card2: #232a4c; --gold: #ffd35a;
  color: var(--text); background: linear-gradient(180deg, #232c52 0%, #151b36 100%) !important; border-bottom: 0 !important;
  box-shadow: 0 3px 0 #e0a52a, 0 4px 0 #8a5a08, 0 12px 26px rgba(10, 14, 40, .28);
}
html .atop .atabs button { font-family: var(--game); font-weight: 400; font-size: 15px; color: #c9cee4; border-radius: 12px; }
html .atop .atabs button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
html .atop .atabs button.on, html[data-theme] .atop .atabs button.on { color: #3b2400; background: linear-gradient(180deg, #fff0a8 0%, #ffd04a 45%, #f0a51c 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 3px 0 #8f5806; }
html .atop .brand-text b { font-family: var(--game); font-weight: 400; font-size: 21px; background: linear-gradient(180deg, #fff3b8, #ffd35a 45%, #e8a21a); -webkit-background-clip: text; background-clip: text; color: transparent; }
html .atop .btn:not(.gold) { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e8ebf7; }
html .atop .theme-tg { background: rgba(255, 255, 255, .08) !important; color: #ffd35a; border-color: rgba(255, 255, 255, .14) !important; }



/* ── 🏙 도시 화면 게임 스킨 ── 남색 HUD · 금색 테두리 · 눌리는 입체 버튼 */
/* 상단 자원 바 (잔고 · 부동산 · 임대료 · 경기) */
.ct-chip, html[data-theme] .ct-chip { position: relative; border-radius: 16px; border: 1px solid rgba(224, 165, 42, .35) !important; background: linear-gradient(180deg, var(--card), var(--card2)) !important; box-shadow: 0 3px 0 rgba(181, 122, 16, .35), 0 8px 18px rgba(14, 18, 48, .06); padding: 10px 14px 10px 16px; }
.ct-chip::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #ffd35a, #e09a14); }
.ct-chip > span { font-weight: 700; letter-spacing: .01em; }
.ct-chip b { font-family: var(--game); font-weight: 400; font-size: 21px; letter-spacing: .01em; }
.ct-chip.ct-econ-chip { cursor: pointer; transition: transform .1s; }
.ct-chip.ct-econ-chip:hover { transform: translateY(-2px); }
/* 회사 줄 */
.ct-cos { padding: 8px 12px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 7%, transparent); border: 1px dashed color-mix(in srgb, var(--gold) 35%, transparent); }
.ct-cos-h { font-family: var(--game); font-weight: 400; }
/* 지도 액자 */
.ct-mapbox, html[data-theme] .ct-mapbox { border-radius: 22px; border: 3px solid #1c2342 !important; box-shadow: 0 0 0 2px #e0a52a, 0 5px 0 2px #8a5a08, 0 20px 40px rgba(14, 18, 48, .25); }
.ct-tb { width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255, 211, 90, .35); background: linear-gradient(180deg, #2a335c, #161c38); color: #ffe9a6; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 3px 0 #0a0d1f; font-size: 17px; transition: transform .08s, box-shadow .08s; }
.ct-tb:hover { background: linear-gradient(180deg, #34407a, #1d2447); border-color: #ffd35a; }
.ct-tb:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 0 #0a0d1f; }
.ct-filters .chip { font-family: var(--game); font-weight: 400; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(16, 20, 44, .78) !important; border: 1px solid rgba(255, 211, 90, .3) !important; color: #f1ecdc !important; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.ct-filters .chip.on { background: linear-gradient(180deg, #fff0a8, #ffd04a 45%, #f0a51c) !important; color: #3b2400 !important; border-color: transparent !important; }
.ct-event { font-family: var(--game); }
/* 오른쪽 패널: 게임 인벤토리 창 */
.ct-side, html[data-theme] .ct-side { border-radius: 22px; border: 1px solid rgba(224, 165, 42, .45) !important; box-shadow: 0 4px 0 rgba(181, 122, 16, .5), 0 16px 34px rgba(14, 18, 48, .12); }
.ct-tabs, html[data-theme] .ct-tabs { background: linear-gradient(180deg, #232c52, #161c38); border-bottom: 0; padding: 6px; gap: 4px; }
.ct-tabs button, html[data-theme] .ct-tabs button { font-family: var(--game); font-weight: 400 !important; font-size: 13px !important; color: #c3c9e2 !important; border: 0 !important; border-radius: 10px; padding: 8px 2px; transition: background .12s, color .12s; }
.ct-tabs button:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
.ct-tabs button.on, html[data-theme] .ct-tabs button.on { color: #3b2400 !important; background: linear-gradient(180deg, #fff0a8, #ffd04a 45%, #f0a51c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 0 #8f5806; }
.ct-step-t { font-family: var(--game); font-weight: 400; font-size: 15px; }
.ct-step-t small { font-family: var(--sans); }
/* 크기 · 분류 버튼 */
.ct-sizes .chip, html[data-theme] .ct-sizes .chip { border-radius: 12px; background: var(--card) !important; border: 1px solid var(--line2) !important; box-shadow: 0 2px 0 var(--line2); font-family: var(--game); font-weight: 400; font-size: 13px; color: var(--text); transition: transform .08s, box-shadow .08s, border-color .12s; }
.ct-sizes .chip:hover { transform: translateY(-1px); border-color: #e0a52a !important; }
.ct-sizes .chip:active { transform: translateY(1px); box-shadow: none; }
.ct-cats .chip, html[data-theme] .ct-cats .chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--card) !important; box-shadow: 0 2px 0 var(--line2); font-weight: 700; }
.ct-cats .chip.on, html[data-theme] .ct-cats .chip.on { background: linear-gradient(180deg, #fff0a8, #ffd04a 45%, #f0a51c) !important; color: #3b2400 !important; border-color: transparent !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 0 #8f5806; }
/* 건물 카드: 게임 상점 아이템 카드 */
.ct-card, html[data-theme] .ct-card { position: relative; border-radius: 16px; border: 1px solid var(--line2) !important; background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--gold) 12%, var(--card)) 0%, var(--card) 60%) !important; box-shadow: 0 3px 0 var(--line2), 0 8px 16px rgba(14, 18, 48, .06); padding: 8px 8px 10px; transition: transform .12s, box-shadow .12s, border-color .12s; }
.ct-card:hover { transform: translateY(-3px); border-color: #e0a52a !important; box-shadow: 0 5px 0 rgba(181, 122, 16, .55), 0 14px 24px rgba(14, 18, 48, .12); }
.ct-card b { font-family: var(--game); font-weight: 400; font-size: 15px; }
.ct-price { font-family: var(--game); font-weight: 400 !important; font-size: 16px !important; }
.ct-go { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 9px; font-family: var(--game); font-weight: 400 !important; color: #3b2400 !important; background: linear-gradient(180deg, #fff0a8, #ffd04a 45%, #f0a51c) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 0 #a86a05; }
/* 아래 패널들: 재벌 순위 · 채팅 · 회사 랭킹 · 거래 소식 */
.ct-rich, .ct-chat, .ct-corank, .ct-logbox, html[data-theme] :is(.ct-rich, .ct-chat, .ct-corank, .ct-logbox) { border-radius: 20px !important; border: 1px solid rgba(224, 165, 42, .35) !important; box-shadow: 0 3px 0 rgba(181, 122, 16, .35), 0 12px 26px rgba(14, 18, 48, .07); }
.rc-head, .cc-head, .ct-corank > :first-child, .ct-logbox > :first-child { font-family: var(--game); }
.rc-head b, .rc-head h3, .cc-head h3, .ct-corank h3, .ct-logbox h3 { font-weight: 400 !important; }
.rc-row.top1 { box-shadow: inset 4px 0 0 #f0b52a; }
.rc-row.top2 { box-shadow: inset 4px 0 0 #b9c2d4; }
.rc-row.top3 { box-shadow: inset 4px 0 0 #cd8a4e; }
.rc-rk { font-size: 20px; }
.rc-v { font-family: var(--game); }
/* 🪟 팝업 창 (카지노 · 은행 · 병원 등): 금색 테두리 게임 창 */
.ar-modal-in, html[data-theme] .ar-modal-in { border-radius: 22px !important; border: 1px solid rgba(224, 165, 42, .5) !important; box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 5px 0 rgba(181, 122, 16, .55), 0 30px 70px rgba(8, 10, 30, .45) !important; }
.ar-modal-in h3 { font-family: var(--game); font-weight: 400; }
@media (max-width: 700px) {
  .ct-chip b { font-size: 18px; }
  .ct-mapbox, html[data-theme] .ct-mapbox { border-radius: 16px; border-width: 2px !important; }
  .ct-tabs button, html[data-theme] .ct-tabs button { font-size: 12px !important; }
}


html .ct-tools .ct-tb, html[data-theme] .ct-tools .ct-tb { background: linear-gradient(180deg, #2a335c, #161c38) !important; color: #ffe9a6 !important; border: 1px solid rgba(255, 211, 90, .35) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 3px 0 #0a0d1f !important; }


html .ct-tools .ct-tb.on, html[data-theme] .ct-tools .ct-tb.on { background: linear-gradient(180deg, #fff0a8, #ffd04a 45%, #f0a51c) !important; color: #3b2400 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 3px 0 #8f5806 !important; }



/* ── 🎮 도시 게임 모드 (넓은 화면): 지도가 화면을 꽉 채우고, 창들은 지도 위에 떠 있어요 ──
   왼쪽: 도구 막대 · 오른쪽: 건설 · 정보 창(접기 가능) · 아래: 자원 상태 바 */
.ct-sidetg, .ct-menu-toggle { display: none; }
.city { scroll-margin-top: calc(var(--hdr, 64px) + var(--tk, 0px)); }
.ct-hudbar { display: contents; }
.ct-funds .ct-funds-available { display: block; }
@media (min-width: 981px) {
  .city > .sec-h { display: none; }
  .ct-wrap.ct-stage {
    --sw: 372px;
    --ct-map-min: 600px;
    --ct-map-available: calc(100vh - var(--hdr, 64px) - var(--tk, 0px) - 26px);
    --ct-menu-top: 56px;
    --ct-hud-bottom: 12px;
    position: relative; display: block;
    width: calc(100vw - var(--sbw, 0px) - 24px); max-width: 2200px;
    margin: 12px 0 18px calc(50% - (100vw - var(--sbw, 0px)) / 2 + 12px);
    height: var(--ct-map-available); min-height: var(--ct-map-min);
  }
  @supports (height: 100dvh) {
    .ct-wrap.ct-stage { --ct-map-available: calc(100dvh - var(--hdr, 64px) - var(--tk, 0px) - 26px); }
  }
  .ct-stage .ct-mapbox { position: absolute; inset: 0; border-radius: 22px; }
  .ct-stage .ct-map { height: 100% !important; min-height: 0 !important; }
  .ct-stage .ct-help { display: none; }
  /* 오른쪽 창 */
  .ct-stage .ct-side, html[data-theme] .ct-stage .ct-side { position: absolute; top: 12px; right: 12px; bottom: 12px; width: var(--sw); max-height: none; min-height: 0; z-index: 8; background: color-mix(in srgb, var(--card2) 94%, transparent) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .28s cubic-bezier(.3, .9, .3, 1), opacity .2s; }
  .ct-stage.side-off .ct-side { transform: translateX(calc(100% + 24px)); opacity: 0; pointer-events: none; }
  .ct-sidetg { display: grid; place-items: center; position: absolute; z-index: 9; top: 50%; right: calc(var(--sw) + 12px); width: 22px; height: 64px; margin-top: -32px; border-radius: 12px 0 0 12px; border: 1px solid rgba(255, 211, 90, .45); border-right: 0; background: linear-gradient(180deg, #2a335c, #161c38); color: #ffd35a; font: 700 18px/1 var(--sans); cursor: pointer; box-shadow: -3px 3px 0 rgba(0, 0, 0, .25); transition: right .28s cubic-bezier(.3, .9, .3, 1); }
  .ct-stage.side-off .ct-sidetg { right: 12px; border-radius: 12px; border-right: 1px solid rgba(255, 211, 90, .45); width: 30px; }
  .ct-sidetg:hover { color: #fff; }
  /* 오른쪽 위 확대 · 축소 버튼은 창 왼쪽에 */
  .ct-stage .ct-tools { right: calc(var(--sw) + 44px); top: 12px; transition: right .28s; }
  .ct-stage.side-off .ct-tools { right: 52px; }
  /* 왼쪽 도구 막대 (경제 · BTC · 순위 · 규칙 · 전력 · 재벌 · 채팅) */
  .ct-stage .ct-panebar { position: absolute; z-index: 7; left: 12px; top: var(--ct-menu-top); display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 7px; border-radius: 16px; background: linear-gradient(180deg, rgba(35, 44, 82, .92), rgba(21, 27, 54, .92)); border: 1px solid rgba(255, 211, 90, .35); box-shadow: 0 3px 0 rgba(0, 0, 0, .3), 0 10px 24px rgba(0, 0, 0, .25); }
  html[data-theme] .ct-stage .ct-panebar button, .ct-stage .ct-panebar button { justify-content: flex-start; text-align: left; padding: 7px 12px; border-radius: 11px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #e8ebf7; font-size: 13.5px !important; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); white-space: nowrap; }
  .ct-stage .ct-panebar button:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 211, 90, .5); }
  html[data-theme] .ct-stage .ct-panebar button.on, .ct-stage .ct-panebar button.on { color: #3b2400; background: linear-gradient(180deg, #fff0a8, #ffd04a 45%, #f0a51c); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 0 #8f5806; }
  /* 아래 자원 상태 바 (잔고 · 부동산 · 임대료 · 도시 · 경기) */
  .ct-stage .ct-top {
    --text: #f6f1e4; --muted: #aeb5d0; --dim: #8b92b0; --card: transparent; --card2: transparent; --gold: #ffd35a;
    position: absolute; z-index: 7; left: 12px; right: calc(var(--sw) + 24px); bottom: var(--ct-hud-bottom); margin: 0;
    display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px 8px;
    border-radius: 16px; background: linear-gradient(180deg, rgba(35, 44, 82, .94), rgba(16, 21, 44, .96)); border: 1px solid rgba(255, 211, 90, .4);
    box-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 12px 28px rgba(0, 0, 0, .3); transition: right .28s cubic-bezier(.3, .9, .3, 1); color: var(--text);
  }
  .ct-stage.side-off .ct-top { right: 12px; }
  .ct-stage .ct-top::-webkit-scrollbar { display: none; }
  html[data-theme] .ct-stage .ct-chip, .ct-stage .ct-chip { flex: 0 0 auto; min-width: 0; padding: 4px 14px 4px 12px; background: none !important; border: 0 !important; border-right: 1px solid rgba(255, 255, 255, .1) !important; border-radius: 0; box-shadow: none; }
  .ct-stage .ct-chip:last-child { border-right: 0 !important; }
  .ct-stage .ct-chip::before { display: none; }
  .ct-stage .ct-chip > span { font-size: 10.5px; color: var(--muted); }
  .ct-stage .ct-chip b { font-size: 17px; color: #fff3c4; }
  .ct-stage .ct-chip small { color: var(--muted); }
  .ct-stage .ct-chip small:not(.ct-u) { display: none; }
  .ct-stage .ct-chip.ct-rent { flex-wrap: nowrap; }
  .ct-stage .ct-chip.ct-rent > span { width: auto; display: none; }
  .ct-stage .ct-chip .btn.sm { padding: 3px 9px; font-size: 12px; }
  /* 지도 위 알림 · 건설 바는 상태 바 위로 */
  .ct-stage .ct-event, .ct-stage .ct-buildbar { bottom: 84px; }
  .ct-stage .ct-filters { top: 12px; left: 12px; }
}
@media (min-width: 981px) {
  .ct-stage .ct-event, .ct-stage .ct-buildbar { left: calc((100% - var(--sw) - 24px) / 2); }
  .ct-stage.side-off .ct-event, .ct-stage.side-off .ct-buildbar { left: 50%; }
}


/* 📊 경기 요인 (비트코인 · 실제 경제 → 목표 경기 → 시민 소비력) */
.ec-drv { display: grid; gap: 6px; margin: 10px 0; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 6%, var(--card)); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); }
.ec-drow { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; font-size: 12.5px; padding: 6px 2px; }
.ec-drow > b { justify-self: end; }
.ec-drow small { grid-column: 1 / -1; line-height: 1.5; }
.ec-drow .ec-dbar { grid-column: 1; min-width: 150px; }
.ec-drow em { justify-self: end; }
.ec-drow > span:first-child { font-weight: 800; }
.ec-drow > b { font-family: var(--game); font-weight: 400; font-size: 15px; }
.ec-drow small { color: var(--muted); }
.ec-drow em { font-style: normal; font-weight: 800; font-size: 12px; white-space: nowrap; }
.ec-drow.sum { border-top: 1px dashed var(--line2); padding-top: 8px; }
.ec-drow.sum > span:nth-of-type(2) { display: none; }
.ec-dbar { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--down), #9a9aa6 50%, var(--up)); opacity: .9; }
.ec-dbar i { position: absolute; top: -3px; width: 4px; height: 12px; margin-left: -2px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--card); }



/* ── 📈 트레이딩 화면 정리: 내 계좌 한 줄 HUD · BTC 매매 가이드 줄 ── */
#arena .ex-head, html[data-theme] #arena .ex-head { border-radius: 20px; border: 1px solid rgba(224, 165, 42, .4) !important; box-shadow: 0 3px 0 rgba(181, 122, 16, .4), 0 10px 24px rgba(14, 18, 48, .08); }
#arena .ex-last b { font-family: var(--game); font-weight: 400; letter-spacing: .01em; }
/* 🧭 매매 가이드: 작은 한 줄 */
.ar-guide { display: flex; align-items: center; gap: 14px; margin: 10px 0 0; padding: 7px 14px; border-radius: 14px; text-decoration: none; color: var(--text); font-size: 12.5px; background: linear-gradient(90deg, rgba(35, 44, 82, .06), transparent 70%), var(--card); border: 1px solid var(--line2); overflow-x: auto; scrollbar-width: none; white-space: nowrap; transition: border-color .15s, transform .12s; }
.ar-guide::-webkit-scrollbar { display: none; }
.ar-guide:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line2)); }
.ar-guide.up { box-shadow: inset 4px 0 0 var(--up); }
.ar-guide.down { box-shadow: inset 4px 0 0 var(--down); }
.ar-guide.flat { box-shadow: inset 4px 0 0 var(--gold); }
.ag-k { font-family: var(--game); font-size: 13.5px; color: var(--gold); flex: none; }
.ag-main { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.ag-main b { font-family: var(--game); font-weight: 400; font-size: 15px; }
.ar-guide.up .ag-main b, .ar-guide.up .ag-main em { color: var(--up); }
.ar-guide.down .ag-main b, .ar-guide.down .ag-main em { color: var(--down); }
.ag-main em { font-style: normal; font-weight: 700; font-size: 12px; }
.ag-meter { position: relative; width: 70px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--down), #9a9aa6 50%, var(--up)); }
.ag-meter i { position: absolute; top: -3px; width: 3px; height: 11px; margin-left: -1.5px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--card); }
.ag-tfs { display: inline-flex; gap: 5px; flex: none; }
.ag-tf { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; font: 700 11.5px var(--mono); background: var(--bg2); border: 1px solid var(--line); }
.ag-tf small { font: 600 10.5px var(--sans); color: var(--muted); margin-right: 2px; }
.ag-tf.up { color: var(--up); background: var(--upsoft); }
.ag-tf.down { color: var(--down); background: var(--downsoft); }
.ag-x { color: var(--muted); flex: none; }
.ag-go { margin-left: auto; color: var(--gold); font-weight: 700; flex: none; }
/* 💼 내 계좌: 카드 9개 → 한 줄 HUD */
#arena .ar-top { margin-top: 10px; }
.ar-stats, html[data-theme] .ar-stats { flex-wrap: nowrap; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line2); box-shadow: 0 3px 0 var(--line2); }
.ar-stats::-webkit-scrollbar { display: none; }
.ar-stats > div, html[data-theme] .ar-stats > div { flex: 0 0 auto !important; min-width: 0 !important; background: none !important; border: 0 !important; border-right: 1px solid var(--line) !important; border-radius: 0 !important; padding: 5px 16px !important; }
.ar-stats > div:last-child { border-right: 0 !important; }
.ar-stats > div > span { font-size: 10.5px; }
.ar-stats b { font-size: 15px; white-space: nowrap; }
.ar-stats .ar-held { display: none; }
.ar-stats .ar-live, html[data-theme] .ar-stats .ar-live { border-radius: 12px !important; border: 0 !important; margin-right: 4px; padding: 5px 16px !important; }
.ar-stats .ar-live.up { background: var(--upsoft) !important; }
.ar-stats .ar-live.down { background: var(--downsoft) !important; }
.ar-stats .ar-live b { font-family: var(--game); font-weight: 400; font-size: 18px; }
.ar-stats .ar-reset-row { margin-left: auto; display: flex !important; align-items: center; gap: 8px; }
.ar-stats .ar-reset-row > span { display: none; }
.ar-stats .ar-reset { font-size: 11.5px; padding: 4px 10px; white-space: nowrap; }
/* 메인 3단 패널: 같은 테두리 · 같은 둥글기 */
#arena .ar-chat, #arena .ar-chart-wrap, #arena .ar-order-wrap > form, html[data-theme] #arena :is(.ar-chat, .ar-chart-wrap, .ar-order-wrap > form) { border-radius: 20px; border: 1px solid var(--line2) !important; box-shadow: 0 3px 0 var(--line2), 0 10px 24px rgba(14, 18, 48, .05); }
#arena .ar-mode button.on { font-family: var(--game); font-weight: 400; }
@media (max-width: 700px) {
  .ar-guide { gap: 10px; padding: 6px 10px; }
  .ag-x { display: none; }
  .ar-stats > div, html[data-theme] .ar-stats > div { padding: 5px 12px !important; }
  .ar-stats .ar-live { flex: 0 0 auto !important; }
}
.ar-stats, html[data-theme] .ar-stats { display: flex; width: 100%; }
.ar-stats > div, html[data-theme] .ar-stats > div { flex: 1 1 auto !important; }
.ar-stats .ar-reset-row { flex: 0 0 auto !important; }
.ar-guide { min-width: 0; max-width: 100%; box-sizing: border-box; }
#arena .ar-top { min-width: 0; max-width: 100%; }
@media (max-width: 700px) {
  .ar-stats, html[data-theme] .ar-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .ar-stats > div, html[data-theme] .ar-stats > div { border-right: 0 !important; padding: 6px 8px !important; min-width: 0 !important; }
  .ar-stats .ar-live { grid-column: 1 / -1; }
  .ar-stats b { font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
  .ar-stats b small { display: block; }
  .ar-stats .ar-reset-row { grid-column: 1 / -1; margin-left: 0; }
}


/* 🎨 도시 패널 아이콘 (GPT로 만든 금색 3D 아이콘 · 4×4 스프라이트) */
.ci { display: inline-block; width: 22px; height: 22px; flex: none; vertical-align: -6px; margin-right: 5px; background: url(/img/brand/city-icons.png?v=1) no-repeat; background-size: 400% 400%; }
.ci-build { background-position: 0 0; } .ci-info { background-position: 33.333% 0; } .ci-co { background-position: 66.667% 0; } .ci-sale { background-position: 100% 0; }
.ci-home { background-position: 0 33.333%; } .ci-shop { background-position: 33.333% 33.333%; } .ci-style { background-position: 66.667% 33.333%; } .ci-office { background-position: 100% 33.333%; }
.ci-civic { background-position: 0 66.667%; } .ci-power { background-position: 33.333% 66.667%; } .ci-land { background-position: 66.667% 66.667%; } .ci-park { background-position: 100% 66.667%; }
.ci-water { background-position: 0 100%; } .ci-yacht { background-position: 33.333% 100%; } .ci-car { background-position: 66.667% 100%; } .ci-lot { background-position: 100% 100%; }
.ct-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.ct-tabs .ci { width: 24px; height: 24px; margin-right: 3px; vertical-align: middle; }
.ct-tabs button.on .ci { filter: drop-shadow(0 1px 1px rgba(110, 60, 0, .45)); }
@media (max-width: 420px) {
  .ct-tabs, html[data-theme] .ct-tabs { gap: 3px; }
  .ct-tabs button { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 7px 3px !important; white-space: normal; overflow-wrap: anywhere; }
  .ct-tabs .ci { width: 18px; height: 18px; margin-right: 0; }
}
.ct-cats .chip { display: inline-flex; align-items: center; gap: 1px; padding: 4px 12px 4px 7px !important; }
.ct-cats .ci { width: 24px; height: 24px; margin-right: 4px; vertical-align: middle; }
.ct-step-t .ci { width: 26px; height: 26px; vertical-align: -8px; margin-right: 6px; }




/* ── 💬 지도 위 채팅창 ── */
.ct-chat.cc-overlay {
  --ct-chat-bottom: 48px;
  --ct-chat-opacity: .88;
  --ct-chat-secondary: #d2dbee;
  --ct-chat-unread: #bc294a;
  position: absolute; z-index: 6; left: 10px; bottom: var(--ct-chat-bottom); width: min(400px, calc(100% - 20px)); margin: 0; padding: 0;
  max-height: max(100px, calc(100% - var(--ct-chat-bottom) - 92px));
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  color: #eef1ff; color-scheme: dark; font-size: 13px; transition: background .2s, width .2s;
}
.ct-chat.cc-overlay, html[data-theme] .ct-chat.cc-overlay {
  background: rgba(8, 12, 30, var(--ct-chat-opacity)) !important; border: 1px solid rgba(255, 255, 255, .16) !important;
}
.ct-chat.cc-overlay:is(:hover, :focus-within) { --ct-chat-opacity: .94; }
.cc-overlay .cc-head { display: flex; flex: none; align-items: center; gap: 8px; flex-wrap: nowrap; padding: 6px 10px; cursor: pointer; user-select: none; background: linear-gradient(180deg, rgba(42, 52, 96, .5), rgba(22, 28, 58, .3)); border-bottom: 1px solid rgba(255, 211, 90, .18); }
.cc-overlay .cc-head b { font-family: var(--game); font-weight: 400; font-size: 14px; color: #ffe28a; white-space: nowrap; }
.cc-overlay .cc-head:focus-visible { outline: 2px solid #ffe28a; outline-offset: -3px; }
.cc-overlay .cc-prev { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--ct-chat-secondary); opacity: 0; transition: opacity .2s; }
.cc-overlay .cc-prev em { font-style: normal; font-weight: 800; color: #9cc4ff; }
.cc-overlay.cc-off .cc-prev { opacity: 1; }
.cc-overlay .cc-new { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ct-chat-unread); color: #fff; font: 800 11px/18px var(--sans, system-ui); font-style: normal; text-align: center; }
.cc-overlay .cc-arrow { flex: none; margin-left: auto; color: #ffd35a; font-size: 12px; transition: transform .2s; }
.cc-overlay.cc-off .cc-arrow { transform: rotate(180deg); }
.cc-overlay .cc-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.cc-overlay.cc-off .cc-body { display: none; }
.cc-overlay.cc-off { width: min(330px, calc(100% - 20px)); }
.cc-overlay .cc-list { height: 168px; min-height: 0; margin: 0; padding: 6px 10px 4px; gap: 2px; border-radius: 0; background: none !important; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.cc-overlay .cc-msg { font-size: 13px; line-height: 1.42; text-shadow: 0 1px 2px rgba(0, 0, 0, .85); }
.cc-overlay .cc-who { color: #9cc4ff; max-width: 8em; }
.cc-overlay .cc-who::after { content: ':'; color: var(--ct-chat-secondary); }
.cc-overlay .cc-msg.me .cc-who { color: #ffd35a; }
.cc-overlay .cc-txt { color: #f3f5ff; }
.cc-overlay .cc-t { color: var(--ct-chat-secondary); font-size: 11px; }
.cc-overlay .cc-sys .cc-txt { color: #ffd35a; font-weight: 700; }
.cc-overlay .cc-del, .cc-overlay .cc-empty { color: var(--ct-chat-secondary); }
.cc-overlay .cc-form { display: flex; flex: none; gap: 6px; margin: 0; padding: 6px 8px 8px; background: rgba(17, 23, 46, .94); }
.cc-overlay .cc-form input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(0, 0, 0, .3); color: #fff; font: inherit; font-size: 14px; outline: none; }
.cc-overlay .cc-form input::placeholder { color: #c2c9e1; }
.cc-overlay .cc-form input:focus { border-color: rgba(255, 211, 90, .7); background: rgba(0, 0, 0, .5); }
.cc-overlay .cc-send { flex: none; width: 40px; height: 36px; border: 0; border-radius: 9px; cursor: pointer; color: #3b2400; font-size: 14px; background: linear-gradient(180deg, #fff0a8, #ffd04a 45%, #f0a51c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 0 #8f5806; }
.cc-overlay .cc-send:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
/* 데스크톱 지도: 상태 바 높이와 짧은 화면에서 잘리는 지도 영역을 함께 비워요. */
@media (min-width: 981px) {
  .ct-stage .ct-chat.cc-overlay {
    --ct-map-overflow: max(0px, calc(var(--ct-map-min) - var(--ct-map-available)));
    --ct-chat-bottom: calc(var(--hud, 58px) + var(--ct-map-overflow) + var(--ct-chat-gap, 34px));
    left: 124px; right: calc(var(--sw) + 24px); width: auto; max-width: 760px; margin-inline: auto;
    transition: background .2s, right .28s cubic-bezier(.3, .9, .3, 1);
  }
  .ct-stage.side-off .ct-chat.cc-overlay { right: 52px; }
  .ct-stage .ct-chat.cc-overlay.cc-off { width: min(420px, 100%); right: calc(var(--sw) + 24px); }
  .ct-stage.side-off .ct-chat.cc-overlay.cc-off { right: 52px; }
  .ct-stage .cc-overlay .cc-list { height: 150px; }
  .ct-mapbox:has(.ct-buildbar:not([hidden])) .ct-chat.cc-overlay { --ct-chat-gap: 82px; }
}
/* 좁은 화면: 지도 아래쪽에 작게 */
@media (max-width: 980px) {
  .ct-chat.cc-overlay { left: 8px; width: calc(100% - 64px); }
  .ct-mapbox:has(.ct-buildbar:not([hidden])) .ct-chat.cc-overlay { --ct-chat-bottom: 74px; }
  .cc-overlay .cc-list { height: 112px; }
  .cc-overlay .cc-msg { font-size: 12.5px; }
  .cc-overlay .cc-form input { height: 44px; font-size: 16px; }
  .cc-overlay .cc-send { width: 44px; height: 44px; }
}

/* 🛬 공항: 여객기 운항 현황 */
.al-list { display: grid; gap: 8px; margin: 10px 0 4px; }
.al-row { padding: 9px 11px; border-radius: 12px; background: linear-gradient(160deg, rgba(79, 195, 247, .1), transparent 70%), var(--card2); border: 1px solid var(--line2); }
.al-row.me { border-color: rgba(255, 211, 90, .55); }
.al-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.al-h b { font-family: var(--game); font-weight: 400; font-size: 14.5px; }
.al-h small { color: var(--muted); }
.al-dep { margin-left: auto; font-size: 11.5px; font-weight: 800; color: #4fc3f7; white-space: nowrap; }
.al-seats { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin: 6px 0 4px; font-size: 11px; font-weight: 800; }
.al-seats span { padding: 2px 7px; border-radius: 999px; }
.al-f { background: rgba(255, 211, 90, .2); color: #e0a400; }
.al-b { background: rgba(176, 140, 255, .2); color: #9d7cff; }
.al-e { background: rgba(127, 180, 255, .18); color: #5d9cf5; }
.al-seats small { margin-left: auto; color: var(--muted); font-weight: 600; }
.al-last { margin: 0; font-size: 12px; color: var(--muted); }
.al-last b { color: var(--text); }
@media (max-width: 700px) {
  body.view-city .tickers > :not(.feedline),
  body.view-city #guestBar,
  .city > .sec-h { display: none; }
  .city { scroll-margin-top: calc(var(--hdr, 120px) + var(--tk, 0px)); }
  .ct-wrap.ct-stage { gap: 12px; }
  .ct-stage .ct-mapbox { scroll-margin-top: calc(var(--hdr, 120px) + 8px); }
  .ct-stage .ct-map {
    height: clamp(320px, calc(100svh - var(--hdr, 120px) - var(--tk, 0px) - 82px), 560px);
    min-height: 320px;
  }
  .ct-hudbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .ct-stage .ct-top {
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
    border: 1px solid var(--line2);
    border-radius: 12px;
    background: var(--card);
  }
  .ct-stage .ct-top .ct-chip {
    flex: none;
    gap: 1px;
    min-width: 0;
    min-height: 50px;
    padding: 5px 10px;
    border: 0;
    border-right: 1px solid var(--line2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    white-space: nowrap;
  }
  .ct-stage .ct-top .ct-chip::before,
  .ct-stage .ct-top .ct-econ-chip,
  .ct-stage .ct-top .ct-guest > span,
  .ct-stage .ct-top .ct-chip > small:not(.ct-funds-available) { display: none; }
  .ct-stage .ct-top .ct-population { border-right: 0; }
  .ct-stage .ct-top .ct-chip b { font-size: 14px; }
  .ct-stage .ct-top .ct-chip > span { font-size: 11px; }
  .ct-menu-toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    white-space: nowrap;
  }
  .ct-menu-toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
  }
  .ct-menu-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
  .ct-stage:has(.ct-menu-toggle[aria-expanded="false"]) .ct-panebar { display: none; }
  .ct-stage .ct-panebar { margin: 0; }
  .ct-stage .ct-panebar button { min-height: 44px; }
}
/* 키가 작은 화면: 채팅 줄을 조금 낮게 */
@media (min-width: 981px) and (max-height: 870px) {
  .ct-stage .cc-overlay .cc-list { height: 118px; }
}



/* 🔒 상단 메뉴 고정: 지갑 숫자 폭이 바뀌어도 메뉴가 좌우로 흔들리지 않게 (가운데 정렬 → 로고 옆 고정) */
.topbar-in .view-tabs { margin: 0 auto 0 8px !important; }
.bal-chip, .bal-chip b, .bal-chip .bal-pnl { font-variant-numeric: tabular-nums; }
.topbar .bal-chip { flex: none; }
.topbar .bal-chip b { min-width: 9.5ch; text-align: right; display: inline-block; }
.topbar .bal-chip .bal-pnl { min-width: 9ch; text-align: center; display: inline-block; }
.topbar .view-tabs a, .topbar .view-tabs a.on { transform: none !important; }
.topbar .view-tabs a:hover .nv-ic { transform: translateY(-1px); }

/* Header language selector */
.site-langs { position: relative; flex: none; color: var(--text); font: 600 13px system-ui, sans-serif; }
.site-langs summary { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; min-width: 36px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 10px; cursor: pointer; list-style: none; white-space: nowrap; }
.site-langs summary::-webkit-details-marker { display: none; }
.site-lang-options, .site-lang-error:not(:empty) { position: absolute; z-index: 45; top: calc(100% + 7px); right: 0; width: 145px; padding: 5px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); box-shadow: 0 9px 24px rgba(0, 0, 0, .25); }
.site-lang-options button { display: block; width: 100%; padding: 8px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.site-lang-options button[aria-pressed="true"] { background: var(--line); color: var(--gold); }
.site-lang-options button:hover { background: var(--card2); }
.site-langs :is(summary, button):focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.site-lang-error:empty { display: none; }
html:not([lang="ko"]) .topbar .view-tabs a { font-family: system-ui, sans-serif; font-size: 13px; gap: 4px; padding-inline: 7px; }
.hero-copy, .hero-stats { min-width: 0; }
.hero h1 em { white-space: normal; }
html:not([lang="ko"]) .hero h1 { font-size: clamp(36px, 4.6vw, 68px); }
html:not([lang="ko"]) .hero h1 em { display: block; font-size: .77em; margin-top: 6px; }
html:not([lang="ko"]) .hero .stat { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1450px) {
  .topbar-in > .site-langs .site-lang-name { display: none; }
}
@media (min-width: 701px) and (max-width: 1060px) {
  html:not([lang="ko"]) .topbar .view-tabs a { font-size: 0; }
}
@media (max-width: 700px) {
  .site-lang-name { display: none; }
  .topbar-in { gap: 6px; }
  .topbar-in .auth-box { gap: 4px; min-width: 0; }
  .topbar .bal-chip .bal-pnl { min-width: 0; padding-inline: 3px; }
}
@media (max-width: 380px) {
  body.has-mnav .topbar-in { gap: 4px; padding-inline: 8px; }
  body.has-mnav .topbar .bal-chip { max-width: calc(100vw - 160px); gap: 4px; padding-inline: 3px 7px; }
  body.has-mnav .topbar .bal-chip b { min-width: 0; font-size: 13px; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
  body.has-mnav .topbar .bal-coin { display: none; }
  body.has-mnav .site-langs summary { min-width: 32px; padding-inline: 5px; }
}

/* ── 💧 물타기 창 (시장가 청산 아래) ── */
.ar-dca { margin-top: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, rgba(56, 160, 255, .08), transparent 60%), var(--card); border: 1px solid rgba(56, 160, 255, .35); box-shadow: 0 3px 0 rgba(30, 90, 160, .25), 0 10px 22px rgba(14, 18, 48, .06); }
.ar-dca[hidden] { display: none; }
.dca-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.dca-h b { font-family: var(--game); font-weight: 400; font-size: 17px; color: #2f8cff; }
.dca-h small { color: var(--muted); font-size: 11.5px; }
.dca-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.dca-mode button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: 400 14px var(--game); cursor: pointer; box-shadow: 0 2px 0 var(--line2); transition: transform .08s, box-shadow .08s; }
.dca-mode button small { font: 500 10.5px var(--sans); color: var(--muted); }
.dca-mode button.on { background: linear-gradient(180deg, #6fc0ff, #2f8cff); color: #fff; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 #1a5fb8; }
.dca-mode button.on small { color: rgba(255, 255, 255, .85); }
.dca-mode button:disabled { opacity: .45; cursor: not-allowed; }
.dca-mode button:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.dca-in { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); }
.dca-in:focus-within { border-color: #2f8cff; box-shadow: 0 0 0 3px rgba(47, 140, 255, .15); }
.dca-in input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; color: var(--text); font: 600 17px var(--mono); outline: none; }
.dca-in span { color: var(--muted); font-size: 12px; font-weight: 700; }
.dca-q { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 8px 0 10px; }
.dca-q button { padding: 6px 0; border-radius: 9px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: 700 12px var(--sans); cursor: pointer; }
.dca-q button:hover { border-color: #2f8cff; color: #2f8cff; }
.dca-pv { display: grid; gap: 5px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); font-size: 12.5px; }
.dca-r { display: grid; grid-template-columns: 70px 1fr 16px 1fr; align-items: center; gap: 4px; }
.dca-r > span { color: var(--muted); }
.dca-r b { text-align: right; font-weight: 700; }
.dca-r i { font-style: normal; color: var(--dim); text-align: center; }
.c-good { color: #18b26b !important; }
.dca-safe { display: grid; gap: 3px; padding: 6px 0; border-top: 1px dashed var(--line2); border-bottom: 1px dashed var(--line2); }
.dca-safe > span { color: var(--muted); }
.dca-safe > div { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 8px; }
.dca-safe small { font: 600 11px var(--mono); color: var(--muted); }
.dca-safe .after small { color: #18b26b; }
.dca-bar { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.dca-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ff5a6e, #ffb84d 40%, #18c37e); transition: width .3s; }
.dca-note { margin: 4px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
.dca-err { margin: 2px 0 0; font-size: 11.5px; color: var(--up); font-weight: 700; }
.dca-go { width: 100%; margin-top: 10px; padding: 12px; border: 0; border-radius: 14px; cursor: pointer; color: #fff; font: 400 16px var(--game); background: linear-gradient(180deg, #6fc0ff, #2f8cff 55%, #1f6fe0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 0 #1a5fb8, 0 8px 16px rgba(31, 111, 224, .25); transition: transform .08s, box-shadow .08s, filter .12s; }
.dca-go:hover:not(:disabled) { filter: brightness(1.06); }
.dca-go:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 0 #1a5fb8; }
.dca-go:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.dca-lev { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; flex-wrap: wrap; }
.dca-lev[hidden] { display: none; }
.dca-lev span { font-size: 11.5px; color: var(--muted); margin-right: 2px; }
.dca-lev button { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: 700 11.5px var(--mono); cursor: pointer; }
.dca-lev button.on { background: #2f8cff; border-color: #2f8cff; color: #fff; }
.dca-tip { margin: 4px 0 0; padding: 7px 9px; border-radius: 10px; background: rgba(255, 196, 0, .12); color: var(--text); font-size: 11.5px; line-height: 1.5; }

/* 오목 방 만들기: 판돈 빠른 버튼 8개를 4칸 × 2줄로 */
#omNew .ar-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
#omNew .ar-quick button { width: auto; }

/* ── 🎲 크랩스 테이블 (그랜드 카지노) ── */
.cr-room { display: grid; gap: 10px; }
.cr-hero img { object-position: 50% 45%; }
.cr-hist { position: absolute; right: 10px; bottom: 10px; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; max-width: 58%; padding: 5px 6px; border-radius: 10px; background: rgba(5, 12, 8, .7); border: 1px solid rgba(231, 196, 106, .4); }
.cr-hist small { color: #f3e6c2; font-size: 11px; }
.cr-hist i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 10.5px/1 var(--mono); font-style: normal; color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.cr-hist i:last-child { outline: 2px solid #ffe08a; outline-offset: 1px; }
.t-r { background: #d0243a; } .t-k { background: #3b3f4a; } .t-g { background: #1e8a52; } .t-y { background: #c78a00; }
.cr-dealer { height: 150px; margin-bottom: -50px; }
.cr-dealer .bc-say { background: #1b1f2b; color: #ffe08a; border: 1px solid rgba(255, 224, 138, .5); }
.cr-felt { position: relative; z-index: 1; display: grid; gap: 8px; padding: 14px 12px 12px; border-radius: 28px; background: radial-gradient(ellipse at 50% 30%, #2f9a63 0%, #17673f 50%, #0b3d24 100%); border: 7px solid #6b3d12; box-shadow: 0 0 0 2px #e7c46a, inset 0 0 44px rgba(0, 0, 0, .5), 0 14px 30px rgba(0, 0, 0, .4); color: #fff; }
.cr-felt::before { content: ''; position: absolute; inset: 7px; border: 1.5px dashed rgba(255, 233, 160, .3); border-radius: 22px; pointer-events: none; }
/* 포인트 숫자 줄 + ON/OFF 퍽 */
.cr-pts { display: grid; grid-template-columns: .8fr repeat(6, 1fr); gap: 4px; }
.cr-pts > span { position: relative; display: grid; place-items: center; align-content: center; min-height: 54px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 8px; background: rgba(0, 0, 0, .12); }
.cr-num b { font: 900 17px/1 var(--game, inherit); letter-spacing: .04em; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.cr-num small, .cr-off small { font-size: 9.5px; color: #ffe08a; margin-top: 3px; }
.cr-num.on { background: rgba(255, 224, 138, .16); border-color: #ffe08a; box-shadow: 0 0 14px rgba(255, 224, 138, .45); }
.cr-puck { position: absolute; top: -9px; right: -6px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 900 10px/1 var(--sans, system-ui); font-style: normal; letter-spacing: .02em; box-shadow: 0 3px 0 rgba(0, 0, 0, .45), inset 0 0 0 3px rgba(255, 255, 255, .5); }
.cr-puck.on { background: radial-gradient(circle at 35% 30%, #fff, #e8e8e8 60%, #bdbdbd); color: #111; animation: crPuck .45s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: var(--rd); }
.cr-puck.off { position: static; background: radial-gradient(circle at 35% 30%, #555, #1b1b1b 65%); color: #fff; margin-bottom: 2px; }
@keyframes crPuck { from { transform: translateY(-30px) scale(.4); opacity: 0; } }
/* 가운데: 주사위 트레이 + 원 롤 베팅 */
.cr-mid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.cr-tray { position: relative; display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 118px; border-radius: 14px; background: radial-gradient(ellipse at 50% 60%, rgba(0, 0, 0, .05), rgba(0, 0, 0, .28)); border: 1.5px solid rgba(255, 233, 160, .35); perspective: 600px; overflow: hidden; }
.cr-props { display: grid; gap: 5px; align-content: start; }
.cr-props > p { margin: 0; text-align: center; font-size: 10.5px; color: #ffe08a; letter-spacing: .08em; }
/* 3D 주사위 */
.cr-die-w { position: relative; width: 46px; height: 46px; transform-style: preserve-3d; }
.cr-die { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.cr-f { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 6px; gap: 2px; border-radius: 9px; background: radial-gradient(circle at 30% 25%, #ff6b6b, #d11a2a 55%, #8e0d18); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25), inset 0 -4px 8px rgba(0, 0, 0, .25); backface-visibility: hidden; }
.cr-f i { border-radius: 50%; }
.cr-f i.on { background: radial-gradient(circle at 40% 35%, #fff, #e8e8e8 70%, #c9c9c9); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.cr-f.f1 { transform: translateZ(23px); }
.cr-f.f2 { transform: rotateX(90deg) translateZ(23px); }
.cr-f.f3 { transform: rotateY(90deg) translateZ(23px); }
.cr-f.f4 { transform: rotateY(-90deg) translateZ(23px); }
.cr-f.f5 { transform: rotateX(-90deg) translateZ(23px); }
.cr-f.f6 { transform: rotateY(180deg) translateZ(23px); }
.cr-shadow { position: absolute; left: 4px; right: 4px; bottom: -10px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .35); filter: blur(3px); transform: translateZ(-30px); }
.cr-die.idle { transform: rotateX(calc(var(--rx) - 18deg)) rotateY(calc(var(--ry) + 24deg)); }
.cr-die.spin { animation: crSpin .5s linear infinite; animation-delay: calc(var(--i) * -.17s); }
.cr-die-w:has(.spin) { animation: crShake .18s ease-in-out infinite alternate; }
@keyframes crSpin { from { transform: rotateX(0) rotateY(0) rotateZ(0); } to { transform: rotateX(360deg) rotateY(720deg) rotateZ(180deg); } }
@keyframes crShake { from { transform: translate(-3px, -2px); } to { transform: translate(3px, 2px); } }
.cr-die.land { animation: crLand 1.15s cubic-bezier(.15, .7, .25, 1) both; animation-delay: calc(var(--i) * .08s); }
@keyframes crLand { from { transform: rotateX(calc(var(--rx) + 1080deg)) rotateY(calc(var(--ry) + 720deg)) rotateZ(240deg); } to { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(0deg); } }
.cr-die-w.throw { animation: crThrow 1.15s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--i) * .08s); }
@keyframes crThrow { 0% { transform: translate(190px, -60px); } 45% { transform: translate(-14px, 6px); } 62% { transform: translate(10px, -10px); } 80% { transform: translate(-4px, 2px); } 100% { transform: translate(0, 0); } }
.cr-sum { position: absolute; right: 10px; top: 8px; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 17px; display: grid; place-items: center; font: 900 18px/1 var(--mono); color: #fff; border: 2px solid rgba(255, 255, 255, .7); box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
/* 베팅 칸 */
.cr-z { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 46px; padding: 8px 6px; border-radius: 12px; font: inherit; color: #fff; cursor: pointer; background: rgba(0, 0, 0, .14); border: 2px solid rgba(255, 255, 255, .6); transition: transform .12s, box-shadow .2s, filter .3s; }
.cr-z b { font: 900 14px/1.1 var(--game, inherit); letter-spacing: .08em; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.cr-z small { font-size: 10.5px; color: #ffe08a; font-weight: 700; }
.cr-z:hover:not(:disabled):not(.off) { transform: translateY(-2px); box-shadow: 0 0 0 2px #ffd54f, 0 8px 18px rgba(0, 0, 0, .35); }
.cr-z.off { opacity: .45; cursor: not-allowed; }
.cr-z:disabled { cursor: wait; }
.cr-z.win { animation: bcZone .9s ease-in-out infinite; animation-delay: var(--rd); }
.cr-z.lost { filter: grayscale(.7) brightness(.65); transition-delay: var(--rd); }
.z-any7 { background: linear-gradient(180deg, rgba(208, 36, 58, .75), rgba(122, 14, 30, .85)); }
.z-craps, .z-yo { background: linear-gradient(180deg, rgba(120, 40, 160, .6), rgba(60, 14, 90, .8)); }
.cr-z.z-field b { font-size: 18px; color: #ffe08a; }
.cr-fnums { display: flex; gap: 8px; font: 900 15px/1 var(--mono); }
.cr-fnums i { font-style: normal; }
.cr-fnums .x2, .cr-fnums .x3 { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #ffe08a; color: #ffe08a; margin-top: -4px; }
.cr-line { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.z-dp { background: rgba(0, 0, 0, .3); }
.z-odds { background: linear-gradient(180deg, rgba(231, 196, 106, .3), rgba(120, 90, 20, .35)); border-style: dashed; }
.cr-pass { min-height: 58px; border-radius: 12px 12px 26px 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(0, 0, 0, .15)); border-width: 3px; }
.cr-pass b { font-size: 22px; letter-spacing: .22em; color: #fff; }
/* 칩 더미 · 따낸 금액 */
.cr-stk { position: absolute; right: 10px; top: 20px; display: flex; flex-direction: column-reverse; align-items: center; animation: bcDrop .35s cubic-bezier(.2, 1.5, .5, 1); z-index: 2; }
.cr-stk i { width: 26px; height: 7px; border-radius: 50%; background: #ffd54f; border: 1.5px dashed #7a4b00; margin-top: -3px; box-shadow: 0 2px 0 #a07000; }
.cr-stk.pend i { background: #fff3c4; border-color: #b07a00; opacity: .9; }
.cr-stk b { position: absolute; top: -16px; font-size: 10px; background: #000c; color: #ffe08a; padding: 1px 5px; border-radius: 6px; white-space: nowrap; }
.cr-pop { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); font-style: normal; font: 900 13px/1 var(--mono); color: #3b2400; background: linear-gradient(180deg, #fff0a8, #ffd04a); padding: 3px 8px; border-radius: 10px; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); white-space: nowrap; z-index: 3; }
.cr-z.push .cr-pop { background: #e8ecf5; color: #333; }
.cr-res { display: grid; gap: 4px; }
.cr-res-l { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cr-res-l span { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--card2); border: 1px solid var(--line2); }
.cr-res-l .win { color: #18c37e; border-color: rgba(24, 195, 126, .5); }
.cr-res-l .lose { color: #ef4565; border-color: rgba(239, 69, 101, .4); }
.cr-res .cs-res { margin: 2px 0; }
.cr-stay { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.cr-acts { display: flex; gap: 8px; }
.cr-acts .cs-spin { flex: 1; }
.cr-tip { margin: -2px 0 0; text-align: center; font-size: 11.5px; color: var(--muted); }
@media (max-width: 560px) {
  .cr-dealer { height: 120px; margin-bottom: -40px; }
  .cr-dealer .bc-say { white-space: normal; max-width: calc(50% - 52px); line-height: 1.35; }
  .cr-pts { grid-template-columns: repeat(7, 1fr); }
  .cr-num b { font-size: 13px; } .cr-num small { display: none; }
  .cr-mid { grid-template-columns: 1fr; }
  .cr-props { grid-template-columns: repeat(3, 1fr); }
  .cr-props > p { grid-column: 1 / -1; }
  .cr-z b { font-size: 12px; } .cr-pass b { font-size: 17px; }
  .cr-fnums { gap: 5px; font-size: 13px; }
  .cr-line { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cr-die.land, .cr-die-w.throw, .cr-die.spin, .cr-puck.on { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* ♠️ 홀덤: 돌려받은 웃돈(반환) · AI 테이블 게임비 표시 */
.hd-won small { display: block; font-size: 10px; font-weight: 700; color: #ffd27a; text-align: center; }
.hd-won.back { color: #cfd6ea; font-size: 12px; }

/* ── 🎟 코인시티 로또 ── */
.lt-modal[hidden] { display: none; }
.lt-modal { align-items: flex-start; overflow-y: auto; }
html[data-theme] .lt-modal .lt-in, .lt-modal .lt-in { background: linear-gradient(180deg, #1a1f3d, #0f1328) !important; color: #eef1ff !important; border-color: #e7c46a !important; }
.lt-modal .lt-in { max-width: 1040px; width: 100%; text-align: left; padding: 16px; margin: auto; background: linear-gradient(180deg, #1a1f3d, #0f1328); border: 2px solid #e7c46a; box-shadow: 0 0 0 4px rgba(231, 196, 106, .15), 0 24px 70px rgba(0, 0, 0, .55); color: #eef1ff; }
.lt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lt-head h3 { margin: 0; font-size: 21px; color: #ffe08a; }
.lt-head h3 small { font-size: 13px; color: #c9d1ee; margin-left: 6px; font-weight: 700; }
.lt-head .dim { color: #aeb5d0; }
.lt-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; font-size: 16px; cursor: pointer; }
/* 추첨기 무대 */
.lt-stage { position: relative; display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 14px; margin: 12px 0; padding: 12px; border-radius: 18px; background: radial-gradient(ellipse at 30% 30%, #2b2f6b, #0b0d22 75%); border: 1px solid rgba(231, 196, 106, .35); }
.lt-machine { position: relative; width: 100%; aspect-ratio: 600 / 953; }
.lt-machine img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .55)); }
.lt-machine img.none { display: none; }
.lt-machine:has(img.none) { background: radial-gradient(circle at 50% 37%, rgba(150, 190, 255, .18) 0 30%, transparent 30.5%); }
.lt-cv { position: absolute; inset: 0; pointer-events: none; }
.lt-fly { position: absolute; left: 0; top: 0; z-index: 3; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 900 14px/1 system-ui; color: #1b2340; background: radial-gradient(circle at 35% 30%, #fff, #e8ecf5 60%, #9aa3b5); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); pointer-events: none; }
.lt-fly.g { color: #3b2400; background: radial-gradient(circle at 35% 30%, #fff6c4, #ffd23f 55%, #b8860b); }
.lt-side { display: grid; gap: 10px; align-content: center; }
.lt-count { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lt-count small { color: #aeb5d0; font-size: 12px; }
.lt-count b { font-size: 18px; color: #fff; }
.lt-count em { font-style: normal; font-size: 30px; font-weight: 900; color: #5dffb0; text-shadow: 0 0 14px rgba(93, 255, 176, .45); }
.lt-count em.soon { color: #ff6b81; animation: ltBlink .8s steps(2) infinite; }
@keyframes ltBlink { 50% { opacity: .45; } }
.lt-slots { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lt-ball { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 900 19px/1 system-ui; font-style: normal; color: #1b2340; background: rgba(255, 255, 255, .07); border: 2px dashed rgba(255, 255, 255, .25); }
.lt-ball.on { border: 0; background: radial-gradient(circle at 35% 30%, #fff, #e8ecf5 60%, #9aa3b5); box-shadow: 0 6px 14px rgba(0, 0, 0, .45); }
.lt-ball.g.on { background: radial-gradient(circle at 35% 30%, #fff6c4, #ffd23f 55%, #b8860b); color: #3b2400; }
.lt-ball.g { border-color: rgba(255, 211, 63, .55); }
.lt-ball.next { border: 2px solid #f7d279; box-shadow: 0 0 14px rgba(247, 210, 121, .35); }
.lt-ball.pop { animation: ltPop .23s cubic-bezier(.2, .8, .4, 1); }
@keyframes ltPop { from { transform: scale(.9); } 65% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .lt-ball.pop, .lt-count em.soon { animation: none; } }
.lt-plus { font: 900 22px/1 system-ui; color: #ffd23f; }
.lt-odds {
  width: min(100%, 390px);
  padding: 8px 11px;
  border: 1px solid rgba(231, 196, 106, .28);
  border-radius: 11px;
  background: rgba(255, 255, 255, .055);
}
.lt-odds-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lt-odds-head b { color: #eef1ff; font-size: 13px; }
.lt-odds-head output { color: #ffe08a; font-size: 16px; font-weight: 800; }
.lt-odds-track { height: 8px; overflow: hidden; margin: 5px 0 3px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.lt-odds-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0a51c, #ffe08a);
  transform: scaleX(var(--lt-chance, 0));
  transform-origin: left;
  transition: transform .24s cubic-bezier(.2, .8, .3, 1);
}
.lt-odds small { color: #bfc7e4; font-size: 11px; }
.lt-odds.won .lt-odds-track span { background: #5dffb0; }
.lt-odds.won output { color: #5dffb0; }
@media (prefers-reduced-motion: reduce) { .lt-odds-track span { transition: none; } }
.lt-result { display: flex; min-height: 44px; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }
.lt-result .lt-next { min-height: 44px; }
.lt-result .lt-next:focus-visible { outline: 2px solid #ffd23f; outline-offset: 2px; }
.lt-say { margin: 0; min-height: 22px; font-size: 15px; font-weight: 800; color: #ffe08a; }
.lt-prizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.lt-prizes span { display: grid; gap: 2px; padding: 7px 4px; border-radius: 10px; text-align: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.lt-prizes b { font-size: 13px; color: #fff; } .lt-prizes small { font-size: 9.5px; color: #aeb5d0; } .lt-prizes em { font-style: normal; font-weight: 900; color: #ffd23f; font-size: 13px; }
.lt-prizes .t1 { border-color: #ffd23f; background: rgba(255, 210, 63, .14); }
.lt-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
/* 로또 용지 */
.lt-buy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.lt-slip { position: relative; aspect-ratio: 2 / 3; padding: 21% 7% 15%; border-radius: 6px; color: #c2185b; background: #fbf8f2 url('/img/lotto/slip.jpg') center / 100% 100% no-repeat; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); display: flex; flex-direction: column; }
.lt-slip .lt-panel { flex: 1; }
.lt-slip-tabs { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 0 0 8px; }
.lt-slip-tabs button { position: relative; padding: 5px 0; border-radius: 6px; border: 1.5px solid #e57399; background: rgba(255, 255, 255, .7); color: #c2185b; font: 900 13px/1 system-ui; cursor: pointer; }
.lt-slip-tabs button.on { background: #c2185b; color: #fff; }
.lt-slip-tabs button.empty { opacity: .55; border-style: dashed; }
.lt-slip-tabs button i { position: absolute; right: -4px; top: -6px; font-style: normal; font-size: 10px; background: #1e8a52; color: #fff; border-radius: 50%; width: 14px; height: 14px; display: grid; place-items: center; }
.lt-panel { position: relative; padding: 8px; border: 1.2px dashed #f3a6c1; border-radius: 8px; background: rgba(255, 255, 255, .35); }
.lt-ph { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12px; font-weight: 800; color: #c2185b; }
.lt-ph b { font-size: 16px; } .lt-ph small { color: #b06a86; font-weight: 700; }
.lt-ph.mega { margin-top: 8px; color: #b07800; }
.lt-qp { margin-left: auto; padding: 3px 8px; border-radius: 6px; border: 1.5px solid #e57399; background: #fff; color: #c2185b; font: 800 12px/1 system-ui; cursor: pointer; }
.lt-qp.on { background: #1b1b1b; color: #fff; border-color: #1b1b1b; }
.lt-grid { display: grid; gap: 4px; }
.lt-grid.w { grid-template-columns: repeat(10, 1fr); }
.lt-grid.m { grid-template-columns: repeat(12, 1fr); }
.lt-grid button { position: relative; padding: 7px 0; border-radius: 5px; border: 1.2px solid #f08cb0; background: rgba(255, 255, 255, .85); color: #d0457a; font: 700 11.5px/1 ui-monospace, monospace; cursor: pointer; }
.lt-grid.m button { border-color: #e6b84a; color: #b07800; }
.lt-grid button:hover { background: #ffe6ef; }
.lt-grid button.on { color: transparent; border-color: #1b1b1b; background: #fff; }
.lt-grid button.on::after { content: ''; position: absolute; inset: 2px 4px; border-radius: 40%; background: #1b1b1b; transform: rotate(-4deg); box-shadow: 1px 1px 0 rgba(0, 0, 0, .25); }
.lt-panel.auto .lt-grid { opacity: .35; }
.lt-autostamp { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%) rotate(-12deg); padding: 6px 16px; border: 3px solid #c2185b; border-radius: 10px; color: #c2185b; font: 900 26px/1 system-ui; text-align: center; background: rgba(255, 255, 255, .7); pointer-events: none; }
.lt-autostamp small { display: block; font-size: 10px; letter-spacing: .2em; }
.lt-slip-foot { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 800; font-size: 13px; color: #9a1a4b; }
.lt-buy-r { display: grid; gap: 8px; }
.lt-h { margin: 4px 0; font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #fff; }
.lt-h em { font-style: normal; margin-left: auto; font-size: 13px; }
.lt-list { display: grid; gap: 4px; }
.lt-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); cursor: pointer; font-size: 13px; }
.lt-row.cur { border-color: #ffd23f; }
.lt-row b { width: 18px; color: #ffd23f; }
.lt-row .mono { letter-spacing: .05em; }
.lt-mb { font-style: normal; padding: 1px 6px; border-radius: 8px; background: #ffd23f; color: #3b2400; font-weight: 800; }
.lt-del { margin-left: auto; border: 0; background: none; color: #aeb5d0; cursor: pointer; }
.lt-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-quick-buy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.lt-modal .lt-quick-buy .btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; min-height: 48px; white-space: normal; line-height: 1.2;
  color: #ffe08a; border: 1px solid rgba(247, 210, 121, .5); background: rgba(255, 210, 63, .1);
}
.lt-modal .lt-quick-buy small { font-size: 11px; color: #eef1ff; }
.lt-modal .lt-quick-buy .btn:not(:disabled):hover { border-color: #ffd23f; background: rgba(255, 210, 63, .18); }
.lt-modal .lt-quick-buy .btn:disabled { opacity: .5; cursor: not-allowed; }
.lt-modal .lt-quick-buy .btn:focus-visible { outline: 2px solid #ffd23f; outline-offset: 2px; }
html[data-theme] .lt-modal .lt-quick .btn { color: #eef1ff !important; background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .22) !important; box-shadow: none !important; }
html[data-theme] .lt-modal .lt-quick .btn:hover { border-color: #ffd23f !important; }
html[data-theme] .lt-modal .lt-tabs .chip { color: #eef1ff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
html[data-theme] .lt-modal .lt-tabs .chip.on { color: #3b2400; background: linear-gradient(180deg, #fff0a8, #ffd04a 45%, #f0a51c); border-color: transparent; }
.lt-buybtn { padding: 13px; font-size: 16px; }
.lt-note { font-size: 11.5px; margin: 0; color: #aeb5d0; }
.lt-round-limit { margin-bottom: 6px; font-weight: 700; }
.lt-empty { padding: 18px; text-align: center; color: #aeb5d0; }
/* 영수증 (구매 확인) */
.lt-ticket { margin-top: 6px; padding: 12px 14px 10px; color: #222; background: repeating-linear-gradient(0deg, #fffdf6 0 22px, #f7f2e4 22px 23px); border-radius: 4px; box-shadow: 0 8px 18px rgba(0, 0, 0, .4); font-family: ui-monospace, monospace; animation: ltPrint .7s ease; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 95% 100%, 90% calc(100% - 6px), 85% 100%, 80% calc(100% - 6px), 75% 100%, 70% calc(100% - 6px), 65% 100%, 60% calc(100% - 6px), 55% 100%, 50% calc(100% - 6px), 45% 100%, 40% calc(100% - 6px), 35% 100%, 30% calc(100% - 6px), 25% 100%, 20% calc(100% - 6px), 15% 100%, 10% calc(100% - 6px), 5% 100%, 0 calc(100% - 6px)); }
@keyframes ltPrint { from { clip-path: inset(0 0 100% 0); } }
.lt-tk-h { margin: 0 0 6px; text-align: center; font-weight: 900; letter-spacing: .2em; color: #c2185b; }
.lt-tk-h small { display: block; letter-spacing: 0; color: #555; font-weight: 700; font-size: 11px; }
.lt-tk-l { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: #222; }
.lt-tk-l b { width: 14px; } .lt-tk-l i { font-style: normal; padding: 0 5px; border-radius: 6px; background: #ffd23f; font-weight: 800; } .lt-tk-l small { margin-left: auto; color: #777; }
.lt-tk-f { display: flex; justify-content: space-between; margin: 8px 0 4px; padding-top: 6px; border-top: 1px dashed #999; color: #222; font-weight: 800; }
.lt-tk-bar { height: 26px; margin: 4px 0; background: repeating-linear-gradient(90deg, #222 0 2px, transparent 2px 4px, #222 4px 7px, transparent 7px 9px, #222 9px 10px, transparent 10px 13px); }
.lt-tk-t { display: block; text-align: center; color: #555; font-size: 11px; }
/* 내 로또 · 지난 추첨 */
.lt-tlist { display: grid; gap: 4px; }
.lt-t { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 12.5px; }
.lt-t > b { color: #ffd23f; width: 16px; }
.lt-t small { margin-left: auto; color: #aeb5d0; }
.lt-t.win { background: rgba(93, 255, 176, .1); border: 1px solid rgba(93, 255, 176, .45); }
.lt-t.win small { color: #5dffb0; font-weight: 800; }
.lt-t.t1 { background: rgba(255, 210, 63, .18); border-color: #ffd23f; }
.lt-nums { display: inline-flex; gap: 3px; }
.lt-b { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font: 800 11.5px/1 system-ui; font-style: normal; color: #1b2340; background: radial-gradient(circle at 35% 30%, #fff, #dfe4ef 65%, #a9b1c4); }
.lt-b.g { background: radial-gradient(circle at 35% 30%, #fff6c4, #ffd23f 55%, #b8860b); color: #3b2400; }
.lt-b.hit { box-shadow: 0 0 0 2.5px #5dffb0, 0 0 10px #5dffb0; }
.lt-pasts { display: grid; gap: 10px; margin-top: 10px; }
.lt-hist { display: grid; gap: 6px; }
.lt-hrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 12.5px; }
.lt-hrow > b { color: #ffd23f; min-width: 42px; }
.lt-hrow small { color: #aeb5d0; }
.lt-hrow em { font-style: normal; color: #ffd23f; font-weight: 800; }
/* 밝은 화면에서도 로또 창 글씨색 그대로 (.ar-modal-in p 규칙보다 우선) */
html[data-theme] .lt-modal .lt-say { color: #ffe08a; margin: 0; }
html[data-theme] .lt-modal .lt-h { color: #fff; margin: 4px 0; }
html[data-theme] .lt-modal :is(.lt-note, .lt-empty) { color: #aeb5d0; }
html[data-theme] .lt-modal .lt-ph { color: #c2185b; margin: 0 0 6px; } html[data-theme] .lt-modal .lt-ph.mega { color: #b07800; margin-top: 8px; }
html[data-theme] .lt-modal .lt-tk-h { color: #c2185b; } html[data-theme] .lt-modal :is(.lt-tk-l, .lt-tk-f) { color: #222; margin: 0; }
/* 🎉 도시 현수막 (1등 당첨 · 10분) */
.lt-banner { position: absolute; z-index: 9; left: 124px; right: calc(var(--sw, 360px) + 70px); top: 58px; max-width: 760px; margin-inline: auto; pointer-events: none; animation: ltBanIn .8s cubic-bezier(.2, 1.4, .4, 1); }
.ct-stage.side-off .lt-banner { right: 70px; }
.lt-cloth { position: relative; padding: 12px 18px; text-align: center; background: linear-gradient(180deg, #e3262e, #a50f17); border: 3px solid #ffd35a; border-radius: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); overflow: hidden; animation: ltWave 3s ease-in-out infinite; transform-origin: 50% 0; }
.lt-cloth::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); animation: ltShine 2.8s linear infinite; }
.lt-cloth span { position: relative; font: 900 18px/1.3 var(--game, system-ui); color: #fff3b0; text-shadow: 0 2px 0 #6b0000, 0 0 12px rgba(255, 210, 63, .6); }
.lt-rope { position: absolute; top: -40px; width: 3px; height: 44px; background: linear-gradient(#6b4a1a, #c9a25a); }
.lt-rope.l { left: 12%; transform: rotate(-12deg); } .lt-rope.r { right: 12%; transform: rotate(12deg); }
@keyframes ltBanIn { from { transform: translateY(-120px); opacity: 0; } }
@keyframes ltWave { 50% { transform: skewX(-1.5deg) translateY(2px); } }
@keyframes ltShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (max-width: 980px) { .lt-banner { left: 12px; right: 12px; top: 8px; } .lt-cloth span { font-size: 14px; } }
@media (max-width: 760px) {
  .lt-stage { grid-template-columns: 1fr; }
  .lt-machine { max-width: 240px; margin: 0 auto; }
  .lt-buy { grid-template-columns: 1fr; }
  .lt-ball { width: 40px; height: 40px; font-size: 16px; }
  .lt-prizes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lt-grid button { font-size: 10px; }
}
@media (max-width: 420px) {
  .lt-prizes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lt-prizes span { grid-column: span 2; }
  .lt-prizes :is(.t1, .t2) { grid-column: span 3; }
}

/* 📝 자유 고소장 · 1~3심 */
.court-filing.suit { border-color: rgba(231, 196, 106, .6); }
.court-disp { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.court-disp span { display: grid; padding: 5px 10px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line2); }
.court-disp small { font-size: 10.5px; color: var(--muted); } .court-disp b { font-size: 13px; }
.court-suit { display: grid; gap: 8px; }
.court-suit label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; }
.court-suit :is(input, select, textarea) { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; font-weight: 400; }
.court-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.court-laws-all { margin-top: 8px; font-size: 12.5px; }
.court-laws-all > summary { cursor: pointer; font-weight: 700; }
.court-laws-all p { margin: 8px 0; }
.court-disp-form { display: grid; gap: 8px; padding: 8px 0; }
.court-disp-form label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; }
.court-disp-form select { padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--text); }
.court-facts { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: var(--card2); border: 1px dashed var(--line2); font-size: 12.5px; }
.court-facts p { margin: 3px 0; }
.court-inst { margin: 8px 0; padding-left: 18px; display: grid; gap: 6px; font-size: 12.5px; }
.court-inst li { padding: 6px 8px; border-radius: 10px; background: var(--card2); }
.court-inst li.win { border-left: 3px solid #18c37e; } .court-inst li.lose { border-left: 3px solid #ef4565; }
.court-inst li p { margin: 4px 0 0; color: var(--muted); }
.court-appeal { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: rgba(231, 196, 106, .12); border: 1px solid rgba(231, 196, 106, .5); font-size: 12.5px; }
.court-appeal p { margin: 0 0 6px; }
@media (max-width: 560px) { .court-row { grid-template-columns: 1fr; } }

/* 🏙 / 🌾 도시 고르기 */
.ct-citysw { display: inline-flex; gap: 0; border-radius: 999px; overflow: hidden; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.ct-citysw .chip { border-radius: 0; margin: 0; min-height: 34px; white-space: nowrap; }
.ct-citysw .chip:focus-visible { outline: 2px solid #fff0a8; outline-offset: -3px; }
.ct-citysw .chip.on:focus-visible { outline-color: #3b2400; }
.ct-filters .ct-map-jump { color-scheme: dark; min-height: 34px; max-width: 9rem; padding-inline-end: 7px; }
.ct-citysw .chip:first-child { border-radius: 999px 0 0 999px; } .ct-citysw .chip:last-child { border-radius: 0 999px 999px 0; }
.ct-citysw .chip.on { color: #3b2400; background: linear-gradient(180deg, #fff0a8, #ffd04a 45%, #f0a51c); border-color: transparent; }

/* ── 🕶 뒷골목 ── */
.mob-box { border-color: rgba(120, 120, 140, .5); }
.mob-box.gang { background: linear-gradient(160deg, rgba(30, 30, 40, .9), rgba(60, 20, 20, .85)); color: #eee; }
.mob-box.phish { background: linear-gradient(160deg, rgba(20, 30, 50, .9), rgba(30, 40, 70, .85)); color: #eee; }
.mob-box.gang .ct-eqh, .mob-box.phish .ct-eqh { color: #ffd35a; }
.mob-box .dim, .mob-box small { color: #b9bfd4; }
.mob-hero { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; margin: 6px 0; }
.mob-hero img { width: 90px; image-rendering: pixelated; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.mob-hero p { margin: 0; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .35); font-size: 13px; line-height: 1.5; }
.mob-warn { margin: 6px 0 0; font-size: 11.5px; color: #ffb347; }
.mob-case { margin: 8px 0 0; padding: 7px 10px; border-radius: 10px; background: rgba(239, 69, 101, .14); border: 1px solid rgba(239, 69, 101, .5); font-weight: 800; font-size: 12.5px; }
.mob-recs { display: grid; gap: 3px; margin: 8px 0; max-height: 220px; overflow: auto; }
.mob-recs p { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin: 0; padding: 5px 8px; border-radius: 8px; background: var(--card2); font-size: 12px; }
.mob-recs small { color: var(--muted); }
.mob-report { margin: 8px 0; }
.mob-report > summary { cursor: pointer; font-weight: 800; }
.mob-report-f { display: grid; gap: 8px; margin-top: 6px; }
.mob-report-f p { margin: 0; font-size: 12.5px; }
.mob-report-f label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; }
.mob-report-f :is(input, select) { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--text); }
.mob-cases p { margin: 3px 0; font-size: 12px; } .mob-cases span { color: var(--muted); }
/* 경찰서 기록과 신고 창구 */
.police-desk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line2); }
.police-desk-head h4 { margin: 0; font-size: 16px; color: var(--text); }
.police-desk-head .police-actions { margin: 0; }
.police-desk [data-police-records] { padding-top: 4px; }
.police-totals small { white-space: normal; overflow-wrap: anywhere; }
.police-members { margin-top: 14px; }
.police-members h3, .police-profile h4 { margin: 0 0 6px; font: inherit; font-weight: 800; }
.police-members label { display: grid; gap: 4px; margin-top: 8px; font-size: 12px; font-weight: 700; }
.police-members input { min-width: 0; padding: 8px 10px; color: var(--text); background: var(--card); border: 1px solid var(--line2); border-radius: 9px; font: inherit; }
.police-chart-axis { display: flex; justify-content: space-between; margin: 9px 9px 3px; color: var(--muted); font-size: 11px; }
.police-chart { display: grid; gap: 5px; max-height: 230px; overflow-y: auto; }
.police-chart-row { display: grid; gap: 5px; width: 100%; padding: 7px 9px; background: var(--card2); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; font: inherit; font-size: 12px; cursor: pointer; }
.police-chart-row[aria-pressed="true"] { border-color: #699de9; background: color-mix(in srgb, #699de9 17%, var(--card2)); }
.police-chart-value { display: flex; justify-content: space-between; gap: 8px; text-align: left; }
.police-chart-value b:first-child { overflow-wrap: anywhere; }
.police-chart-value b:last-child { flex-shrink: 0; }
.police-chart-track { display: block; height: 6px; background: var(--line2); border-radius: 4px; overflow: hidden; }
.police-chart-track span { display: block; height: 100%; background: #699de9; border-radius: inherit; }
.police-profile:not(:empty) { margin-top: 10px; padding: 9px 10px; border: 1px solid var(--line2); border-radius: 10px; }
.police-profile h4 span { font-size: 11px; color: var(--muted); }
.police-profile-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.police-profile-tags span { padding: 3px 7px; border: 1px solid var(--line2); border-radius: 5px; font-size: 12px; }
.police-profile dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 9px; margin: 0; font-size: 12px; }
.police-profile dt { color: var(--muted); }
.police-profile dd { margin: 0; }
.police-actions .btn { min-height: 44px; }
@media (min-width: 760px) {
  .cv-police .police-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 12px; align-items: start; }
}
@media (max-width: 520px) {
  .police-desk-head .police-actions { width: 100%; }
  .police-actions .btn { flex: 1 1 125px; }
}
.police-intake .mob-report-f[hidden] { display: none; }
.police-intake .mob-report-f select { min-height: 40px; }
.mob-box.bribe { background: linear-gradient(160deg, rgba(20, 20, 24, .92), rgba(40, 30, 10, .9)); color: #eee; border-color: rgba(231, 196, 106, .5); }
.mob-box.bribe .ct-eqh { color: #ffd35a; }
.mob-pros { display: grid; gap: 6px; margin-top: 6px; }
.mob-pros > div { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.mob-pros img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.mob-pros span { display: grid; font-size: 12.5px; } .mob-pros i { font-style: normal; font-weight: 900; color: #ffd35a; }
.mob-pros i.g-S { color: #ff6bd6; }
/* ☎️ 옛날 전화기 팝업 */
.mob-phone-modal[hidden] { display: none; }
html[data-theme] .mob-phone, .mob-phone { position: relative; width: min(360px, 100%); text-align: center; padding: 18px; background: radial-gradient(ellipse at 50% 0%, #3a2a18, #120c06 70%) !important; border: 2px solid #b8873b !important; color: #f3e6c2; }
.mob-ph-t { margin: 0 0 4px; font-weight: 800; color: #ffd35a; }
.mob-ph-img img { width: 230px; max-width: 80%; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .6)); }
.mob-ph-emoji { font-size: 90px; }
.mob-phone.ringing .mob-ph-img img { animation: mobRing .09s linear infinite alternate; }
@keyframes mobRing { from { transform: rotate(-3deg) translateX(-2px); } to { transform: rotate(3deg) translateX(2px); } }
.mob-roll { margin: 8px 0 0; padding: 10px; border-radius: 12px; background: #050505; border: 2px inset #6b4a1a; font-size: 30px; font-weight: 900; color: #5dff7a; text-shadow: 0 0 12px rgba(93, 255, 122, .6); letter-spacing: .04em; }
.mob-roll.hit { color: #ffd35a; text-shadow: 0 0 18px rgba(255, 211, 90, .8); animation: ltPop .5s cubic-bezier(.2, 1.8, .4, 1); }
.mob-callbtn { width: 100%; margin-top: 10px; padding: 13px; font-size: 17px; }
.mob-phone .mob-warn { margin-top: 8px; }



/* 회사 주가 */
.company-stocks {
  --stock-text: #f1f3f9;
  --stock-muted: #b3bfd5;
  --stock-line: #33405e;
  --stock-card: #19243d;
  box-sizing: border-box;
  width: min(940px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  color: var(--stock-text);
  background: #111a30;
  border: 1px solid #93763d;
  border-radius: 20px;
  box-shadow: 0 22px 80px #080b1499;
  font-family: var(--sans, system-ui);
}
.company-stocks[open] { display: flex; flex-direction: column; }
.company-stocks::backdrop { background: #080c1bc2; backdrop-filter: blur(4px); }
.company-stocks .stock-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--stock-line); }
.company-stocks .stock-head h3 { margin: 0; font-family: var(--game, system-ui); font-weight: 500; font-size: 22px; color: #ffde90; }
.company-stocks .stock-head > div { display: flex; align-items: center; gap: 8px; }
.company-stocks .stock-close, .company-stocks .stock-range button { background: #202d47; color: var(--stock-text); border: 1px solid var(--stock-line); border-radius: 9px; cursor: pointer; font: inherit; }
.company-stocks .stock-close { width: 38px; height: 38px; }
.company-stocks .stock-scroll { overflow: auto; overscroll-behavior: contain; padding: 16px 20px; }
.company-stocks .stock-layout { display: grid; grid-template-columns: minmax(150px, 192px) minmax(0, 1fr); gap: 18px; }
.company-stocks .stock-list { display: flex; flex-direction: column; gap: 8px; align-self: start; max-height: 470px; overflow: auto; }
.company-stocks .stock-company { display: grid; gap: 4px; padding: 10px 11px; text-align: left; font: inherit; border-radius: 10px; border: 1px solid var(--stock-line); background: var(--stock-card); color: var(--stock-text); cursor: pointer; }
.company-stocks .stock-company[aria-pressed="true"] { background: #38334a; border-color: #be9b50; }
.company-stocks .stock-company b { font-size: 14px; overflow-wrap: anywhere; }
.company-stocks .stock-company span { color: #ffd370; font: 700 13px var(--mono, monospace); }
.company-stocks small.stock-ai-badge { display: inline-block; padding: 1px 5px; border: 1px solid var(--stock-line); border-radius: 5px; color: var(--stock-text); font: 700 10px system-ui; white-space: nowrap; vertical-align: 1px; }
.stock-ai-trades { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--stock-line); }
.stock-ai-trades h5 { margin: 0 0 7px; font-size: 13px; }
.stock-ai-trades h5 small { margin-left: 4px; font-size: 11px; font-weight: 400; }
.stock-ai-trades p { margin: 0; color: var(--stock-muted); font-size: 12px; }
.stock-ai-trades ul { margin: 0; padding: 0; display: grid; gap: 4px; list-style: none; }
.stock-ai-trades li { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px; background: var(--stock-card); font-size: 12px; }
.stock-ai-trades li span { min-width: 0; overflow-wrap: anywhere; }
.stock-ai-trades li span small { display: block; }
.stock-ai-side.up { color: var(--up, #228b59); }
.stock-ai-side.down { color: var(--down, #c33a50); }
.stock-ai-fill { text-align: right; }
.stock-ai-time, .stock-ai-fill { font-variant-numeric: tabular-nums; }
.company-stocks small, .company-stocks .stock-meta, .company-stocks .stock-title p,
.company-stocks .stock-position span, .company-stocks .stock-amount span { color: var(--stock-muted); }
.company-stocks .stock-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.company-stocks .stock-title h4 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.company-stocks .stock-title p { margin: 3px 0 0; font-size: 12px; }
.company-stocks .stock-range { display: inline-flex; gap: 4px; }
.company-stocks .stock-range button { min-height: 34px; padding: 5px 9px; font-size: 12px; }
.company-stocks .stock-range button[aria-pressed="true"] { background: #ffda83; color: #272044; border-color: #ffda83; font-weight: 700; }
.company-stocks.profit-rank-dialog { width: min(580px, calc(100% - 24px)); }
.profit-rank-dialog .stock-range button, .profit-rank-dialog .stock-close { min-height: 44px; }
.profit-rank-dialog .stock-close { min-width: 44px; }
.profit-rank-list { margin: 12px 0 0; padding-inline-start: 25px; font-variant-numeric: tabular-nums; }
.profit-rank-list li { padding-inline-start: 3px; margin-block: 5px; }
.profit-rank-list li::marker { color: var(--stock-muted); }
.profit-rank-list button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 7px 9px; color: inherit; text-align: start; font: inherit;
  border: 1px solid var(--stock-line); border-radius: 8px; background: var(--stock-card); cursor: pointer;
}
.profit-rank-list button:focus-visible, .profit-rank-list button:hover { border-color: #be9b50; }
.profit-rank-building { display: grid; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.profit-rank-list strong { font-size: 14px; white-space: nowrap; }
.profit-rank-pages { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.profit-rank-pages button { min-height: 44px; }
.company-stocks.ai-citizen-dialog { width: min(540px, calc(100% - 24px)); }
.ai-citizen-controls { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.ai-citizen-controls .stock-range { flex-wrap: wrap; }
.ai-citizen-controls button, .ai-citizen-dialog .stock-range button, .ai-citizen-dialog .stock-close { min-height: 44px; }
.ai-citizen-dialog .stock-close { min-width: 44px; }
.ai-citizen-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.ai-citizen-list li { min-width: 0; padding: 8px 10px; border: 1px solid var(--stock-line); border-radius: 8px; background: var(--stock-card); overflow-wrap: anywhere; }
.ai-citizen-list li > b { font-size: 13px; }
.ai-citizen-list li > div { margin-top: 3px; font-size: 12px; color: var(--stock-muted); }
.ai-campus-link { background: transparent; color: #ffda83; font: inherit; border: 0; padding: 4px 0; text-align: start; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ct-tenant-education { display: block; color: var(--muted); overflow-wrap: anywhere; }
.ct-education-line { overflow-wrap: anywhere; }
@media (max-width: 440px) { .ai-citizen-list { grid-template-columns: minmax(0, 1fr); } }
.company-stocks .stock-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.company-stocks .stock-charts section { min-width: 0; padding: 10px 11px 2px; background: var(--stock-card); border: 1px solid var(--stock-line); border-radius: 12px; }
.company-stocks .stock-charts section > span { display: block; color: var(--stock-text); font-size: 13px; }
.company-stocks .stock-charts section > b { display: block; margin: 5px 0 0; color: #ffd370; font: 800 clamp(17px, 2.3vw, 22px) var(--mono, monospace); overflow-wrap: anywhere; }
.company-stocks .stock-charts section + section > b { color: #84d0fd; }
.company-stocks .stock-charts b small { font-size: 10px; }
.company-stocks .stock-market { display: grid; gap: 6px; padding: 10px 11px; background: var(--stock-card); border: 1px solid var(--stock-line); border-radius: 12px; font-size: 12px; }
.company-stocks .stock-market:empty { display: none; }
.company-stocks .stock-market-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.company-stocks .stock-market h5, .company-stocks .stock-market p, .company-stocks .stock-market ul { margin: 0; }
.company-stocks .stock-market h5 { font-size: 13px; }
.company-stocks .stock-market ul { padding: 0; list-style: none; }
.company-stocks .stock-market li + li { margin-top: 3px; }
.company-stocks .stock-market li b { margin-right: 4px; }
.company-stocks canvas { display: block; width: 100%; height: 125px; }
.company-stocks .stock-meta { margin: 8px 0 14px; font-size: 11.5px; }
.company-stocks .stock-position { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 12px 0; border-top: 1px solid var(--stock-line); border-bottom: 1px solid var(--stock-line); }
.company-stocks .stock-position span, .company-stocks .stock-amount span { display: block; font-size: 12px; }
.company-stocks .stock-position b, .company-stocks .stock-amount b { display: block; margin-top: 4px; font: 750 13px var(--mono, monospace); overflow-wrap: anywhere; }
.company-stocks .stock-position .positive { color: #89e5b9; }
.company-stocks .stock-position .negative, .company-stocks .stock-feedback.error { color: #ffacb8; }
.company-stocks .stock-form { display: grid; grid-template-columns: minmax(88px, 1fr) minmax(105px, 1fr) auto; align-items: end; gap: 10px; margin-top: 13px; }
.company-stocks .stock-form label { display: grid; gap: 5px; color: var(--stock-muted); font-size: 12px; }
.company-stocks .stock-form input { box-sizing: border-box; width: 100%; min-height: 38px; padding: 7px 9px; color: var(--stock-text); background: #11192a; border: 1px solid var(--stock-line); border-radius: 8px; font: 700 15px var(--mono, monospace); color-scheme: dark; }
.company-stocks .stock-amount { align-self: end; min-height: 37px; }
.company-stocks .stock-actions { display: flex; gap: 6px; }
.company-stocks .stock-actions button { min-height: 38px; }
.company-stocks .btn.ghost { color: var(--stock-text); border-color: #63738e; }
.company-stocks .btn:disabled { opacity: .46; cursor: default; }
.company-stocks.war-dialog .btn:disabled { opacity: .7; }
.company-stocks .stock-empty { padding: 22px 6px; margin: 0; color: var(--stock-muted); }
.company-stocks .stock-feedback { flex: none; margin: 0; padding: 10px 20px; background: #18223a; border-top: 1px solid var(--stock-line); color: #a2eac7; font-size: 13px; }
.company-stocks .stock-feedback:empty { display: none; }
.company-stocks :focus-visible { outline: 2px solid #ffda83; outline-offset: 2px; }
@media (max-width: 650px) {
  .company-stocks .stock-head { padding: 12px; }
  .company-stocks .stock-scroll { padding: 12px; }
  .company-stocks .stock-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .company-stocks .stock-list { flex-direction: row; padding: 2px; }
  .company-stocks .stock-company { flex: 0 0 auto; min-width: 108px; max-width: 190px; }
  .company-stocks .stock-feedback { padding-inline: 12px; }
}
@media (max-width: 450px) {
  .company-stocks .stock-charts { grid-template-columns: minmax(0, 1fr); }
  .company-stocks canvas { height: 100px; }
  .company-stocks .stock-position { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-stocks .stock-position > div:last-child { grid-column: 1 / -1; }
  .company-stocks .stock-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .company-stocks .stock-actions { grid-column: 1 / -1; }
  .company-stocks .stock-actions button { flex: 1; }
}

/* 회사 주주 명부와 재매입 제안 */
.company-stocks.stock-buybacks { width: min(740px, calc(100vw - 24px)); }
.company-stocks .buyback-tabs { flex-wrap: wrap; margin-bottom: 14px; }
.buyback-company { margin: 0 0 10px; font-size: 19px; overflow-wrap: anywhere; }
.buyback-stats { margin-bottom: 12px; }
.company-stocks .buyback-stats .buyback-number { display: inline; color: inherit; font: inherit; }
.buyback-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.buyback-table :is(th, td) { text-align: right; padding: 8px; border-bottom: 1px solid var(--stock-line); }
.buyback-table :is(th, td):first-child { text-align: left; width: 100%; overflow-wrap: anywhere; }
.buyback-table th { color: var(--stock-muted); font-weight: 500; }
.buyback-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.buyback-table :is(th, td):not(:first-child) { white-space: nowrap; }
.buyback-table .btn { white-space: nowrap; min-height: 36px; }
.buyback-form, .buyback-offers li { background: var(--stock-card); border: 1px solid var(--stock-line); border-radius: 10px; padding: 10px 12px; }
.buyback-form { margin-bottom: 12px; }
.buyback-table small, .buyback-peer small, .buyback-note span, .buyback-offers small { display: block; }
.buyback-note { margin: 10px 0; font-size: 12px; color: var(--stock-muted); }
.buyback-note span + span { margin-top: 4px; }
.buyback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.buyback-actions button { min-height: 36px; }
.buyback-offers { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.buyback-offers li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.buyback-offers li.focused { border-color: #bf9a52; }
.buyback-offer-amount { font-variant-numeric: tabular-nums; }
.hq-shareholders { margin-bottom: 14px; }
@media (max-width: 650px) {
  .buyback-offers li { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buyback-offers .buyback-actions { grid-column: 1 / -1; }
}
@media (max-width: 450px) {
  .buyback-table :is(th, td) { padding-inline: 4px; font-size: 12px; }
  .buyback-table .btn { padding-inline: 6px; font-size: 11px; }
  .buyback-form .stock-amount { grid-column: 1 / -1; }
}

/* 대학교 칠판 */
.univ-dialog {
  --chalk: #f2f0de;
  --chalk-muted: #bfd4c4;
  --chalk-line: #9cd5b442;
  --chalk-gold: #ffe2a2;
  box-sizing: border-box;
  width: min(850px, calc(100vw - 20px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--chalk);
  background: radial-gradient(ellipse at 21% 0%, #255045, transparent 64%), radial-gradient(ellipse at 87% 68%, #153f37, transparent 61%), #102f29;
  border: 9px solid #795233;
  border-radius: 10px;
  box-shadow: 0 0 0 1px #d4a574, inset 0 0 0 1px #a37a4f, inset 0 0 30px #0716119c, 0 24px 78px #050d0bc2;
  font-family: var(--sans, system-ui);
}
.univ-dialog[open] { display: flex; flex-direction: column; }
.univ-dialog::backdrop { background: #06150ec7; backdrop-filter: blur(4px); }
.univ-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 22px 13px; border-bottom: 1px dashed var(--chalk-line); }
.univ-label { color: var(--chalk-muted); font-size: 12px; }
.univ-head h3 { margin: 3px 0 0; font: 400 clamp(22px, 2.6vw, 32px)/1.25 var(--game, system-ui); overflow-wrap: anywhere; }
.univ-body { overflow: auto; overscroll-behavior: contain; padding: 0 22px 19px; }
.univ-owner { margin: 13px 0 10px; color: var(--chalk-muted); font-size: 13px; overflow-wrap: anywhere; }
.univ-owner b { color: var(--chalk); margin-left: 4px; }
.univ-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.univ-metrics > div { padding: 11px; border: 1px solid var(--chalk-line); border-radius: 7px; background: #10312775; }
.univ-metrics > div > span, .univ-records > div > span, .univ-effects > div > span, .univ-checkout > div > span { display: block; color: var(--chalk-muted); font-size: 12px; }
.univ-metrics b, .univ-records b, .univ-effects b, .univ-checkout b { display: block; margin-top: 3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.univ-metrics b { color: var(--chalk-gold); font-size: clamp(15px, 2.2vw, 23px); }
.univ-records { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 10px 0 13px; }
.univ-records b { font-size: 14px; }
.univ-tabs { display: flex; gap: 8px; border-block: 1px dashed var(--chalk-line); margin-bottom: 13px; }
.univ-tabs button, .univ-button, .univ-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 7px 13px; border: 1px solid var(--chalk-line); border-radius: 7px; background: #103127ad; color: var(--chalk); font: 700 14px var(--sans, system-ui); cursor: pointer; }
.univ-tabs button { background: transparent; border: 0; border-radius: 0; border-bottom: 3px solid transparent; }
.univ-tabs button[aria-pressed="true"] { border-bottom-color: var(--chalk-gold); color: var(--chalk-gold); }
.univ-tools { flex: none; display: flex; gap: 6px; }
.univ-close { width: 42px; flex: none; padding: 0; }
.univ-primary { background: #ffe3a1; color: #28220f; border-color: #fff0cd; min-height: 44px; }
.univ-dialog button:hover:not(:disabled) { filter: brightness(1.12); }
.univ-dialog button:disabled { opacity: .46; cursor: default; }
.univ-dialog :focus-visible { outline: 2px solid #fff5cc; outline-offset: 2px; }
.univ-empty, .univ-note, .univ-unemployed { margin: 10px 0 0; font-size: 13px; color: var(--chalk-muted); }
.univ-section { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.univ-section h4 { margin: 0; font-size: 16px; }
.univ-section small, .univ-person-name small, .univ-job small, .univ-status small { color: var(--chalk-muted); }
.univ-section input { box-sizing: border-box; width: min(220px, 100%); border: 1px solid var(--chalk-line); border-radius: 6px; padding: 8px 9px; background: #102c25; color: var(--chalk); font: inherit; }
.univ-section input::placeholder { color: var(--chalk-muted); }
.univ-students { display: grid; gap: 5px; }
.univ-person, .univ-alumnus { border: 1px solid var(--chalk-line); border-radius: 8px; background: #102d267d; }
.univ-person { display: flex; align-items: center; gap: 10px; padding: 7px 9px; cursor: pointer; }
.univ-person:has(:checked) { border-color: #f9dfa1; background: #2f4b37; }
.univ-person.univ-unavailable { cursor: default; }
.univ-person input { margin: 0; width: 17px; height: 17px; flex: 0 0 17px; accent-color: #f9dfa1; }
.univ-portrait { display: block; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #547360; object-fit: cover; }
.univ-person-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.univ-person-name small, .univ-job small, .univ-status small { display: block; font-size: 12px; }
.univ-status { color: var(--chalk-gold); text-align: right; font-size: 12px; }
.univ-status b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.univ-checkout { position: sticky; bottom: -19px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 0 11px; background: #14382f; border-top: 1px dashed var(--chalk-line); }
.univ-checkout small { display: block; color: #ffd1b5; }
.univ-alumni { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.univ-campus-records { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.univ-campus-records > div { padding: 8px; border-bottom: 1px solid var(--chalk-line); }
.univ-campus-records span, .univ-department small { display: block; color: var(--chalk-muted); font-size: 12px; }
.univ-campus-records b, .univ-capacity b { font-variant-numeric: tabular-nums; }
.univ-campus-records b { display: block; overflow-wrap: anywhere; font-size: 14px; }
.univ-campus-program { margin: 0 0 12px; padding: 8px 0 12px; border-bottom: 1px solid var(--chalk-line); }
.univ-campus-program p { margin: 4px 0 8px; color: var(--chalk-muted); font-size: 13px; }
.univ-campus-employment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 13px; }
.univ-campus-employment span, .univ-campus-employment b { display: block; overflow-wrap: anywhere; }
.univ-campus-employment span { margin-bottom: 3px; color: var(--chalk-muted); }
.univ-campus-offer { margin-top: 6px; }
.univ-campus-offer .univ-button, .univ-campus-program .univ-button { min-height: 44px; }
.univ-departments { display: grid; gap: 6px; }
.univ-department { border: 1px solid var(--chalk-line); border-radius: 8px; background: #102d267d; }
.univ-department > summary { display: flex; align-items: center; gap: 9px; padding: 8px; min-height: 48px; cursor: pointer; list-style: none; }
.univ-department > summary::-webkit-details-marker { display: none; }
.univ-department > summary::after { content: '+'; flex: none; color: var(--chalk-gold); font-size: 17px; }
.univ-department[open] > summary::after { content: '−'; }
.univ-department:has(summary:focus-visible) { border-color: var(--chalk-gold); }
.univ-department-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.univ-department-name strong { display: block; font-size: 14px; }
.univ-capacity { flex: none; text-align: right; font-size: 13px; }
.univ-capacity.is-full small { color: var(--chalk-gold); }
.univ-department-body { padding: 7px 10px 10px; border-top: 1px dashed var(--chalk-line); }
.univ-student-career > summary { padding: 4px 0; color: var(--chalk-gold); }
.univ-department-body p { margin: 0 0 6px; color: var(--chalk-muted); font-size: 12px; }
.univ-checkout [hidden] { display: none; }
.univ-origin + .univ-origin { margin-top: 14px; }
.univ-origin h5 { margin: 7px 0; font-size: 14px; }
.univ-origin h5 small, .univ-origin li small { color: var(--chalk-muted); font-weight: 500; }
.univ-origin ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 5px; padding: 0; margin: 0; list-style: none; }
.univ-origin li { display: grid; gap: 2px; padding: 6px 8px; border: 1px solid #ffffff24; border-radius: 6px; font-size: 12px; overflow-wrap: anywhere; }
.univ-origin .univ-award-list { grid-template-columns: 1fr; }
.univ-hire-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; margin-top: 5px; }
.univ-hire-form > small { grid-column: 1 / -1; }
.univ-hire-form label { display: grid; gap: 3px; color: var(--chalk); }
.univ-hire-form input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 6px 8px; border: 1px solid var(--chalk-line); border-radius: 7px; color: var(--chalk); background: #102c24; font: 600 16px var(--sans, system-ui); }
.univ-hire-form :focus-visible, [data-scholarship-person]:focus-visible { outline: 2px solid var(--chalk-gold); outline-offset: 2px; }
.univ-origin summary { padding: 8px 0; cursor: pointer; }
.univ-alumnus { padding: 10px; overflow-wrap: anywhere; }
.univ-alumnus-head { display: flex; align-items: center; gap: 8px; }
.univ-job { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--chalk-line); }
.univ-effects { display: flex; gap: 6px 12px; flex-wrap: wrap; margin-top: 8px; }
.univ-effects b { font-size: 13px; color: var(--chalk-gold); }
.univ-feedback { flex: none; margin: 0; padding: 9px 22px; border-top: 1px dashed var(--chalk-line); background: #12332b; color: #c6f1d6; font-size: 13px; }
.univ-feedback.error { color: #ffd1b5; }
.univ-feedback:empty { display: none; }
@media (max-width: 600px) {
  .univ-dialog { border-width: 6px; }
  .univ-head { padding: 12px; }
  .univ-tools :is(button, .univ-close) { padding-inline: 8px; font-size: 12px; }
  .univ-body { padding-inline: 12px; }
  .univ-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .univ-alumni { grid-template-columns: minmax(0, 1fr); }
  .univ-person { gap: 6px; }
  .univ-person > .univ-status { max-width: 34%; overflow-wrap: anywhere; }
  .univ-feedback { padding-inline: 12px; }
}

/* 상품 시장 */
.company-stocks.company-products { width: min(810px, calc(100vw - 24px)); }
.product-nav, .product-owner, .product-line-head {
  display: flex; align-items: center; justify-content: space-between; gap: 9px 12px; flex-wrap: wrap;
}
.product-nav, .product-line-head { margin-bottom: 12px; }
.product-owner > h4, .product-line-head h4, .product-launch h4 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.product-owner > span, .product-clock { font-size: 12px; color: var(--stock-muted); }
.product-owner b, .product-clock b { font-variant-numeric: tabular-nums; color: var(--stock-text); white-space: nowrap; }
.product-clock { margin: 0; white-space: nowrap; }
.product-kinds { flex-wrap: wrap; margin: 10px 0 16px; }
.product-kinds button { white-space: nowrap; }
.product-filters, .product-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 9px; align-items: end; }
.product-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; }
.product-inline small { grid-column: 1 / -1; }
.company-products label { display: grid; gap: 5px; color: var(--stock-muted); font-size: 12px; min-width: 0; }
.company-products :is(input, select) {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 39px; padding: 7px 9px; border: 1px solid var(--stock-line);
  border-radius: 8px; color: var(--stock-text); background: #121b2e; color-scheme: dark; font: inherit; font-size: 14px;
}
.company-products :is(.product-inline, .product-controls) .btn { min-height: 39px; }
.product-market-summary {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  margin: 12px 0; padding: 8px 0; border-bottom: 1px solid var(--stock-line);
}
.product-market-summary > div { display: grid; gap: 3px; min-width: 65px; }
.product-market-summary > div > span, .product-note { color: var(--stock-muted); font-size: 12px; }
.product-market-summary b { font-size: 13px; font-variant-numeric: tabular-nums; }
.product-note { margin: 6px 0 8px; }
.product-launch, .product-controls > section {
  background: var(--stock-card); border: 1px solid var(--stock-line); border-radius: 11px; padding: 12px;
}
.product-launch p { margin-bottom: 0; }
.product-venue-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.product-venue-list span { font-size: 12px; border: 1px solid var(--stock-line); padding: 4px 7px; border-radius: 7px; }
.company-stocks .product-numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.product-controls h5 { margin: 0; font-size: 14px; }
.product-controls .btn b { font-variant-numeric: tabular-nums; }
.product-relocate { margin: 12px 0; }
.product-recent { margin-top: 13px; }
.product-recent summary { padding: 6px 0; cursor: pointer; }
.product-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.product-table :is(th, td) { text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--stock-line); overflow-wrap: anywhere; }
.product-table th:first-child { text-align: left; }
.product-table th[scope="col"] { color: var(--stock-muted); font-weight: 500; }
.product-table td { font-variant-numeric: tabular-nums; }
.product-table small, .product-table meter { display: block; }
.product-table meter { width: min(82px, 100%); min-width: 34px; height: 6px; margin: 3px 0 0 auto; }
.product-table meter::-webkit-meter-bar { background: #263657; border: 0; border-radius: 4px; }
.product-table meter::-webkit-meter-optimum-value { background: #ffcd67; border-radius: 4px; }
@media (max-width: 560px) {
  .product-table :is(th, td) { padding-inline: 3px; font-size: 12px; }
  .product-controls { grid-template-columns: minmax(0, 1fr); }
  .company-stocks .product-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-stocks .product-numbers > div:last-child { grid-column: auto; }
}

/* 신용정보회사 */
.credit-office { margin: 10px 0; padding: 10px; border: 1px solid var(--line2); border-radius: 12px; }
.credit-roster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding: 4px 0 8px; }
.credit-roster img { display: block; width: 100%; height: 54px; max-width: 56px; object-fit: contain; justify-self: center; background: rgba(140,156,192,.12); border-radius: 6px; }
.credit-stop { border: 1px solid #a65253; border-radius: 9px; color: #ffc4c7; background: #3c2029; padding: 8px 10px; font-size: 13px; }
.credit-dialog { box-sizing: border-box; width: min(440px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 16px; color: var(--text); background: var(--credit-panel); border: 1px solid #9b7844; border-radius: 18px; box-shadow: 0 18px 65px #05060bcc; }
.credit-dialog::backdrop { background: #05070cbb; backdrop-filter: blur(4px); }
.credit-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.credit-dialog h3 { font-family: var(--game, system-ui); font-size: 18px; color: var(--gold-text); margin: 0; }
.credit-dialog p { margin: 12px 0 0; }
.credit-dialog .btn.ghost { color: inherit; border-color: #737b8c; }
.credit-dialog dl { display: grid; grid-template-columns: minmax(72px, auto) minmax(0, 1fr); gap: 7px 12px; padding: 10px 0; margin: 0; }
.credit-dialog dt { color: var(--muted); }
.credit-dialog dd { margin: 0; overflow-wrap: anywhere; }
.credit-faces { display: flex; justify-content: center; gap: 8px; margin-top: 12px; padding: 8px; border-radius: 10px; background: #212b40; }
.credit-faces img { object-fit: contain; }
.credit-feedback { color: var(--gold-text); min-height: 1em; }
.credit-feedback:empty { display: none; }
.credit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.credit-office .credit-actions:first-of-type > .btn { flex: 1 1 105px; flex-direction: column; gap: 3px; min-height: 48px; }
.credit-office [data-ct-credit-service] small { font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.credit-teams { margin-top: 5px; }
.credit-dialog .credit-office-name { color: var(--muted); font-size: 13px; }
.credit-form { display: grid; gap: 12px; margin-top: 12px; }
.credit-form label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.credit-form input, .credit-form select, .credit-form textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; color: var(--text); background: var(--credit-input); border: 1px solid #6c768c; border-radius: 9px; font: inherit; }
.credit-form textarea { resize: vertical; }
.credit-form .credit-check { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.credit-form .credit-check input { width: 18px; height: 18px; min-height: 0; flex: none; padding: 0; accent-color: #ffaca1; }
.btn.credit-danger { color: #ffebe6; background: #642733; border-color: #a75662; }
.btn.credit-danger:hover { background: #793441; }
.credit-form dl { margin: 0; padding: 10px; border-radius: 9px; background: var(--credit-surface); }
.credit-case { display: grid; gap: 5px; margin-top: 7px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--credit-surface); }
.credit-case small { color: var(--muted); }
.credit-case .credit-actions { margin: 3px 0 0; }
.credit-cases h4 { margin: 14px 0 6px; }
.credit-time { color: var(--gold-text); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) {
  .credit-actions .btn, .credit-form button { min-height: 44px; }
  .credit-form input, .credit-form select, .credit-form textarea { font-size: 16px; }
}

/* 📈 회사 주가 실시간 */
.company-stocks .stock-live { transition: color .3s; }
.company-stocks .stock-live.up { animation: stkUp .9s ease; }
.company-stocks .stock-live.down { animation: stkDown .9s ease; }
@keyframes stkUp { 0% { color: #ff5c7a; text-shadow: 0 0 14px rgba(255, 92, 122, .7); } 100% { color: #ffd370; } }
@keyframes stkDown { 0% { color: #4f9dff; text-shadow: 0 0 14px rgba(79, 157, 255, .7); } 100% { color: #ffd370; } }
.company-stocks .stock-chg { display: block; margin: 2px 0 0; font-style: normal; font-size: 12px; font-weight: 800; color: var(--stock-text, #b3bfd5); }
.company-stocks .stock-chg.positive { color: #ff7a90; } .company-stocks .stock-chg.negative { color: #6fb0ff; }
.company-stocks .stock-range button[data-stock-range="live"][aria-pressed="true"] { color: #ff5c7a; }

/* 📈 매매대회: 포지션이 생기면 오른쪽 주문 칸(시장가 청산 · 물타기)이 길어져 차트까지 같이 늘어나던 문제
   → 차트 높이는 화면에 맞춰 고정하고, 주문 칸은 그 높이 안에서만 스크롤 */
@media (min-width: 1001px) {
  .ar-chart-wrap { height: clamp(680px, calc(100dvh - 120px), 900px); }
  .ar-order-wrap { contain: size; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}

/* 🚗✈ 내 차 · 비행기 계기판 */
.ct-veh { position: absolute; left: 50%; bottom: 108px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 16px; background: rgba(8, 12, 26, .78); border: 1px solid rgba(255, 211, 90, .45); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); user-select: none; -webkit-user-select: none; touch-action: none; }
.ct-veh[hidden] { display: none; }
.ct-veh-g { display: flex; flex-direction: column; min-width: 118px; line-height: 1.25; }
.ct-veh-n { font-size: 12px; color: #ffe9a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.ct-veh-sp { font: 800 20px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #fff; }
.ct-veh-alt { font-size: 11px; color: #9fd3ff; min-height: 13px; }
.ct-veh-pad { display: grid; grid-template-columns: repeat(4, 38px); gap: 5px; }
.ct-veh-pad button { height: 38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px; cursor: pointer; touch-action: none; }
.ct-veh-pad button.on { background: rgba(255, 211, 90, .85); color: #2a1a00; }
.ct-veh-out { height: 38px; padding: 0 12px; border-radius: 10px; border: 0; background: linear-gradient(180deg, #ffd35a, #e0a52a); color: #2a1a00; font-weight: 800; cursor: pointer; white-space: nowrap; }
.ct-veh-out kbd { font: 700 10px system-ui; padding: 1px 4px; border-radius: 4px; background: rgba(0, 0, 0, .15); margin-left: 2px; }
.ct-tip-go { color: #ffd35a; font-weight: 800; }
@media (max-width: 600px) { .ct-veh { bottom: 96px; gap: 6px; padding: 6px 8px; } .ct-veh-g { min-width: 84px; } .ct-veh-sp { font-size: 16px; } .ct-veh-pad { grid-template-columns: repeat(4, 34px); } .ct-veh-pad button, .ct-veh-out { height: 34px; } }

/* 🚀 로켓 크래시 (캔버스 무대 · public/rocket.js) — 크랩스(.cr-hist 등)와 겹치지 않게 rkc- 로 (rk- 는 순위표가 씀) */
.rkc-stage { position: relative; height: 320px; overflow: hidden; border-radius: 18px; background: #0b0a24; border: 2px solid #7a8cff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 12px 30px rgba(20, 10, 60, .45); isolation: isolate; }
.rkc-stage.pass { border-color: #7cff9a; box-shadow: 0 0 22px rgba(124, 255, 154, .35); }
.rkc-stage.boom { border-color: #ff5c6c; box-shadow: 0 0 22px rgba(255, 92, 108, .4); }
.rkc-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rkc-hud { position: absolute; left: 0; right: 0; top: 12%; display: grid; justify-items: center; gap: 4px; pointer-events: none; z-index: 2; text-align: center; padding: 0 10px; }
.rkc-mul { font-size: 54px; font-weight: 900; line-height: 1; color: #fff; letter-spacing: -.01em; text-shadow: 0 0 22px rgba(122, 140, 255, .95), 0 3px 0 rgba(0, 0, 0, .45); }
.rkc-stage.pass .rkc-mul, .rkc-stage.ok .rkc-mul { color: #7cff9a; text-shadow: 0 0 24px rgba(60, 255, 120, .85), 0 3px 0 rgba(0, 0, 0, .45); }
.rkc-stage.boom .rkc-mul { color: #ff5c6c; text-shadow: 0 0 24px rgba(255, 60, 80, .95), 0 3px 0 rgba(0, 0, 0, .45); animation: rkShake .45s ease; }
.rkc-tag { font-weight: 800; font-size: 13px; color: #fff; padding: 4px 12px; border-radius: 999px; background: rgba(8, 8, 30, .62); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(4px); }
.rkc-live { white-space: nowrap; font-size: 11.5px; font-weight: 700; color: #ffd6a0; padding: 2px 10px; border-radius: 999px; background: rgba(8, 8, 30, .55); }
.rkc-hist { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 2; pointer-events: none; }
.rkc-hist i { font-style: normal; font: 800 11px/1 var(--mono, monospace); padding: 4px 7px; border-radius: 999px; background: rgba(6, 6, 24, .62); border: 1px solid rgba(255, 255, 255, .14); }
.rkc-hist i.hi { color: #7cff9a; } .rkc-hist i.lo { color: #ff8a95; }
@keyframes rkShake { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-3px, 2px); } 80% { transform: translate(2px, -1px); } }
@media (max-width: 640px) { .rkc-stage { height: 260px; } .rkc-mul { font-size: 42px; } .rkc-hud { top: 14%; } }

/* 👁 1인칭 운전 (public/fpv.js): 지도 칸 위에 3D 화면 · 운전석 테두리(ChatGPT 그림, 창문은 투명) · 속도계 */
.fpv { position: absolute; inset: 0; z-index: 30; overflow: hidden; border-radius: inherit; pointer-events: none; }
.fpv-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
.fpv-pit { position: absolute; inset: 0; opacity: 0; background: center bottom / cover no-repeat; transform-origin: 50% 100%; will-change: transform, opacity; }
.fpv-pit[data-k="car"] { background-image: url(/img/city/fpv/fpv-car.webp); background-position: center 30%; }
.fpv-pit[data-k="plane"] { background-image: url(/img/city/fpv/fpv-plane.webp); background-position: center 35%; }
.fpv-pit[data-k="boat"] { background-image: url(/img/city/fpv/fpv-boat.webp); background-position: center 45%; }
.fpv-hud { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: baseline; gap: 6px; padding: 6px 16px; border-radius: 999px; background: rgba(6, 10, 24, .62); border: 1px solid rgba(255, 211, 90, .45); color: #fff; opacity: 0; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.fpv-sp { font-size: 28px; font-weight: 900; line-height: 1; text-shadow: 0 0 12px rgba(120, 200, 255, .6); }
.fpv-un { font-size: 12px; font-weight: 800; color: #ffd36a; }
.fpv-alt { font-size: 13px; font-weight: 800; color: #9fe0ff; margin-left: 6px; }
.fpv-alt:empty { display: none; }
.fpv-hint { position: absolute; left: 12px; top: 14px; font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .85); padding: 4px 10px; border-radius: 999px; background: rgba(6, 10, 24, .5); opacity: 0; }
body.fpv-on .ct-veh { z-index: 31; bottom: 10px; background: rgba(8, 12, 26, .55); }
.ct-veh-fpv { height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(159, 224, 255, .55); background: rgba(40, 90, 160, .35); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
.ct-veh-fpv kbd { font-size: 10px; opacity: .8; margin-left: 2px; }
.ct-veh-fpv.on { background: #2f7fe0; border-color: #9fe0ff; box-shadow: 0 0 12px rgba(80, 170, 255, .6); }
@media (max-width: 600px) { .fpv-hud { top: 10px; padding: 4px 12px; } .fpv-sp { font-size: 22px; } .fpv-hint { display: none; } .ct-veh-fpv { height: 34px; padding: 0 8px; } }


.law-chat {
  width: min(640px, calc(100% - 24px));
  height: min(680px, calc(100dvh - 24px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--gold2);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--goldsoft), 0 22px 64px rgba(6, 8, 16, .45);
}
.law-chat[open] { display: flex; flex-direction: column; }
.law-chat::backdrop { background: rgba(6, 8, 16, .69); backdrop-filter: blur(3px); }
.law-chat [hidden] { display: none; }
.law-chat-head, .law-chat-contact, .law-chat-footer { flex-shrink: 0; }
.law-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line2);
}
.law-chat-head h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.law-chat-head small { display: block; margin-top: 3px; color: var(--muted); }
.law-chat-head .btn { min-width: 40px; min-height: 40px; }
.law-chat-contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 42%);
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--card2);
  border-bottom: 1px solid var(--line);
}
.law-chat-contact img { display: block; object-fit: cover; border-radius: 12px; background: var(--goldsoft); }
.law-chat-contact b { font-size: 15px; }
.law-chat-contact small, .law-chat-contact label { display: block; color: var(--muted); overflow-wrap: anywhere; }
.law-chat-contact select, .law-chat-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  background: var(--bg2);
  font: inherit;
}
.law-chat-contact select { display: block; margin-top: 3px; min-height: 38px; }
.law-chat-thread {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
}
.law-chat-empty { margin: 0 0 8px; padding: 14px; background: var(--goldsoft); border-radius: 12px; }
.law-chat-thread ol { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.law-chat-thread li { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.law-chat-message {
  width: fit-content;
  max-width: min(100%, 530px);
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--line2);
  border-radius: 4px 14px 14px;
  background: var(--card2);
  overflow-wrap: anywhere;
}
.law-chat-message.own { align-self: flex-end; border-radius: 14px 4px 14px 14px; background: var(--goldsoft); }
.law-chat-message b { display: block; font-size: 12px; color: var(--muted); }
.law-chat-message span { display: block; margin-top: 2px; white-space: pre-wrap; line-height: 1.6; }
.law-chat-sources { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0 3px; }
.law-chat-sources a { font-size: 13px; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.law-chat-footer { padding: 11px 18px 15px; background: var(--card2); border-top: 1px solid var(--line2); }
.law-chat-suggestions { display: flex; gap: 7px; margin-bottom: 10px; padding: 2px; overflow-x: auto; scrollbar-width: thin; }
.law-chat-suggestions .btn { flex-shrink: 0; min-height: 36px; white-space: nowrap; }
.law-chat-feedback { display: flex; align-items: center; gap: 8px; }
.law-chat-feedback p { margin: 0; color: var(--muted); }
.law-chat-feedback p:not(:empty) { margin-bottom: 7px; }
.law-chat-feedback .error { color: var(--up); }
.law-chat-form label { display: block; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.law-chat-form > div { display: flex; align-items: stretch; gap: 8px; }
.law-chat-form input { flex: 1; min-height: 42px; font-size: 16px; }
.law-chat-form button { min-width: 68px; }
.law-chat button:disabled { opacity: .55; }
.law-chat :focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
.law-chat-language { display: block; margin-top: 5px; color: var(--muted); }
html[lang="ko"] .law-chat-language { display: none; }
html[data-theme="light"] .law-chat-sources a { color: #775200; }
html[data-theme="light"] .law-chat-feedback .error { color: #a41830; }
@media (max-width: 540px) {
  .law-chat { width: calc(100% - 12px); height: calc(100dvh - 12px); border-radius: 16px; }
  .law-chat-head, .law-chat-contact, .law-chat-thread, .law-chat-footer { padding-inline: 12px; }
  .law-chat-contact { grid-template-columns: auto minmax(0, 1fr); }
  .law-chat-contact label { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
  .law-chat-contact select { flex: 1; margin: 0; }
  .law-chat-suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .law-chat-suggestions .btn { white-space: normal; overflow-wrap: anywhere; }
}

.apt-dialog { width: min(710px, calc(100% - 20px)); }
.apt-dialog [hidden] { display: none; }
.apt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line2);
}
.apt-head h3 { margin: 0; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.apt-head small { display: block; margin-top: 4px; color: var(--muted); }
.apt-head button { flex: none; min-width: 40px; min-height: 40px; }
.apt-body { display: grid; gap: 14px; min-height: 0; overflow: auto; padding: 16px 20px; overscroll-behavior: contain; }
.apt-body:empty { padding: 0; }
.apt-body h4 { margin: 0; font-size: 15px; }
.apt-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: radial-gradient(ellipse at top left, var(--goldsoft), transparent 66%), var(--card2);
  border: 1px solid var(--line2);
  border-radius: 14px;
}
.apt-hero img { display: block; object-fit: contain; max-width: 100%; }
.apt-hero dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.apt-hero dt { font-size: 12px; color: var(--muted); }
.apt-hero dd { margin: 0; color: var(--text); font: 650 19px var(--mono); }
.apt-lease {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px 14px;
  padding: 12px 14px;
  border: 1px solid var(--gold2);
  border-radius: 14px;
  background: var(--goldsoft);
}
.apt-lease small { display: block; color: var(--muted); margin-top: 2px; }
.apt-lease strong { display: block; font-size: 16px; }
.apt-dialog .btn { min-height: 38px; }
@media (pointer: coarse) { .apt-dialog .btn { min-height: 44px; } }
.apt-plan-grid, .apt-quantities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.apt-plan {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--card2);
}
.apt-plan .btn { width: 100%; padding: 6px; font-size: 13px; }
.apt-plan b { font-size: clamp(12px, 2.3vw, 15px); overflow-wrap: anywhere; }
.apt-plan small { color: var(--muted); }
.apt-note { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.apt-owner, .apt-owned { border-top: 1px solid var(--line2); padding-top: 11px; }
.apt-section-head, .apt-stock-foot, .apt-owned li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 10px;
}
.apt-section-head { margin-bottom: 7px; }
.apt-section-head span, .apt-stock-foot p { color: var(--muted); margin: 0; }
.apt-stock { margin-top: 8px; }
.apt-quantities label { display: grid; gap: 4px; color: var(--muted); }
.apt-quantities input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid var(--line2);
  border-radius: 9px;
  background: var(--bg2);
  color: var(--text);
  font: 16px var(--mono);
}
.apt-stock-foot { padding-top: 9px; }
.apt-owned ul { display: grid; gap: 6px; padding: 0; margin: 7px 0 0; }
.apt-owned li { list-style: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.apt-footer { padding: 10px 20px; background: var(--card2); border-top: 1px solid var(--line2); }
.apt-footer:has(p:empty):has([data-apt-confirm][hidden]) { display: none; }
.apt-footer p { margin: 0; color: var(--text); }
.apt-footer p.error { color: var(--up); }
.apt-confirm { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.apt-confirm span { display: block; }
.apt-confirm-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.apt-dialog :focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
html[data-theme="light"] .apt-footer p.error { color: #a41830; }
@media (max-width: 500px) {
  .apt-body, .apt-head, .apt-footer { padding-inline: 12px; }
  .apt-hero { padding: 6px; gap: 6px; }
  .apt-hero img { width: 80px; height: 88px; }
  .apt-hero dl { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 5px; }
  .apt-plan { padding: 6px; }
}

/* 💵 밀린 급여 한 번에 지급 (회사 대표) */
.ct-coowed { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 8px 0; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(239, 69, 101, .5); background: rgba(239, 69, 101, .1); }
.ct-coowed b { color: #ff8797; }
.ct-coowed small { color: var(--muted); }


.company-stocks.industry-dialog { width: min(670px, calc(100vw - 24px)); }
.industry-toolbar, .industry-row, .ct-car-stock-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.industry-toolbar { margin-bottom: 14px; }
.industry-toolbar b { font-variant-numeric: tabular-nums; }
.industry-section { margin-top: 16px; }
.industry-section h4 { margin: 0 0 8px; font-size: 14px; }
.industry-kpis, .industry-inventory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 6px;
  margin: 0;
}
.industry-kpis div, .industry-inventory div, .industry-panel {
  padding: 10px 12px;
  min-width: 0;
  border-radius: 10px;
  background: var(--stock-card);
  border: 1px solid var(--stock-line);
}
.industry-kpis span, .industry-inventory dt { display: block; color: var(--stock-muted); font-size: 12px; }
.industry-kpis b, .industry-inventory dd { display: block; margin: 2px 0 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.industry-kpis b span { display: inline; color: inherit; font-size: inherit; }
.ct-oil { margin: 8px 0 12px; padding: 9px 11px; border: 1px solid var(--line2); border-radius: 12px; }
.ct-oil h4 { margin: 0 0 6px; font-size: 14px; }
.ct-oil > small { display: block; margin-top: 6px; color: var(--muted); }
.ct-oil .ct-row { width: 100%; min-height: 44px; }
.ct-oil-end-use { margin-top: 12px; }
.pw-dieselplant { background: #6ca6de; }
.industry-inventory meter { display: block; width: 100%; height: 11px; margin-top: 4px; }
.industry-panel { margin-bottom: 8px; }
.food-market-panel { padding: 13px; margin-bottom: 14px; }
.food-market-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.food-market-heading h4 { margin: 0; font-size: 17px; }
.food-market-heading button { min-height: 36px; white-space: normal; }
.food-market-panel .industry-kpis { margin: 8px 0; }
.food-market-panel .industry-kpis div { background: transparent; padding: 8px 9px; border-color: var(--stock-line); }
.food-market-suppliers { list-style: none; padding: 0; margin: 10px 0 0; }
.food-market-suppliers li { display: grid; gap: 4px; padding: 8px 0; border-top: 1px solid var(--stock-line); font-size: 13px; overflow-wrap: anywhere; }
.food-market-suppliers small { color: var(--stock-muted); }
@media (pointer: coarse) { .food-market-heading button { min-height: 44px; } }
.industry-panel p, .industry-note, .industry-contract { margin: 7px 0; font-size: 13px; }
.industry-flow { line-height: 1.5; }
.industry-note, .industry-status { color: var(--stock-muted); font-size: 13px; }
.industry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 8px; margin-top: 10px; }
.industry-form label { display: grid; gap: 3px; font-size: 12px; min-width: 0; }
.industry-form input, .industry-form select {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--stock-line);
  border-radius: 7px;
  padding: 5px 7px;
  background: var(--card, #101729);
  color: var(--text, #f1f3f9);
}
.industry-wide { grid-column: 1 / -1; }
.industry-submit { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; justify-content: flex-end; min-height: 36px; }
.industry-contract { border-top: 1px solid var(--stock-line); padding-top: 8px; }
.industry-contract summary { cursor: pointer; }
.industry-activity { list-style: none; padding: 0; margin: 0; }
.industry-activity li { padding: 6px 0; border-bottom: 1px solid var(--stock-line); font-size: 12px; }
.industry-activity li div { display: flex; flex-wrap: wrap; gap: 2px 5px; align-items: baseline; }
.industry-activity li div small, .industry-activity li div:last-child > b { margin-left: auto; }
.ct-car-stock-actions { margin: 6px 0; }
@media (max-width: 520px) {
  .industry-dialog .stock-head, .industry-dialog .stock-scroll { padding: 10px; }
  .industry-kpis, .industry-inventory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 📖 첫 화면 아래 '게임 소개' (검색엔진용 안내 글 · 평소엔 접혀 있어요) */
.site-about { margin: 18px 0 6px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card2, rgba(255, 255, 255, .03)); color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.site-about summary { cursor: pointer; font-weight: 800; color: var(--text); }
.site-about h2 { font-size: 17px; margin: 14px 0 6px; color: var(--text); }
.site-about h3 { font-size: 14.5px; margin: 12px 0 4px; color: var(--text); }
.site-about p { margin: 0 0 6px; }

/* 🃏 홀덤 카드 숫자 · 글자는 검정 (내 자리의 '.me b { 금색 }' 규칙이 카드 숫자까지 금색으로 칠해 잘 안 보였어요) · 무늬는 빨강/검정 그대로 */
.hd-card .hd-ci b, .hd-seat.me .hd-card .hd-ci b, html[data-theme] .hd-card .hd-ci b { color: #111 !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.hd-seat.me .hd-card i, .hd-seat.me .hd-card .hd-cs { color: inherit; }

/* 🏢 본사 효과 · 📣 마케팅 홍보 */
.hq-effects { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 10px 0; }
.hq-effects > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2, rgba(255, 255, 255, .03)); }
.hq-effects span { font-size: 12px; color: var(--muted); font-weight: 700; }
.hq-effects b { font-size: 17px; }
.hq-effects small { font-size: 11.5px; color: var(--muted); }
.hq-effects .ok { border-color: rgba(61, 220, 151, .5); }
.hq-effects .warn { border-color: rgba(239, 69, 101, .5); }
.hq-ad-now { margin: 4px 0 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 211, 90, .12); border: 1px solid rgba(255, 211, 90, .45); font-size: 13px; }
.hq-ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hq-ad { display: grid; justify-items: start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2, rgba(255, 255, 255, .15)); background: var(--card, rgba(255, 255, 255, .04)); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.hq-ad:hover:not(:disabled) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.hq-ad:disabled { opacity: .45; cursor: not-allowed; }
.hq-ad.on { border-color: var(--gold); background: rgba(255, 211, 90, .1); }
.hq-ad-ic { font-size: 22px; line-height: 1; }
.hq-ad b { font-size: 13.5px; }
.hq-ad small { font-size: 11.5px; color: var(--muted); }
.hq-ad em { font-style: normal; font-weight: 800; color: var(--gold); font-size: 13px; }

/* 🔗 산업 공급망 자동 연결 상태 */
.industry-chains { display: grid; gap: 6px; margin: 0 0 10px; }
.industry-chain { display: grid; gap: 2px; padding: 9px 12px; border-radius: 12px; border: 1px dashed var(--line2, rgba(255, 255, 255, .2)); background: var(--card2, rgba(255, 255, 255, .03)); }
.industry-chain.on { border-style: solid; border-color: rgba(61, 220, 151, .55); background: rgba(61, 220, 151, .08); }
.industry-chain small { color: var(--muted); font-size: 12px; }

/* 🤝 서비스 건물 창구 */
.svc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 6px 0; }
.svc-card { display: grid; gap: 4px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #2a3240); background: var(--card2, rgba(255,255,255,.04)); color: inherit; cursor: pointer; font: inherit; }
.svc-card:hover:not([disabled]) { border-color: #4aa3df; }
.svc-card[disabled] { opacity: .5; cursor: not-allowed; }
.svc-card b { font-size: 14px; }
.svc-card b small { font-weight: 500; opacity: .7; margin-left: 4px; }
.svc-card > small { opacity: .75; line-height: 1.35; }
.svc-eff { font-size: 13px; font-weight: 700; color: var(--success-text); }
.svc-price { font-size: 14px; font-weight: 700; color: var(--negative-text); }
.svc-price small { font-weight: 500; color: var(--muted); }
.svc-target { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0; font-size: 13px; }
.svc-target select { flex: 1; min-width: 0; max-width: 100%; }
.svc-mine { margin: 6px 0; padding: 6px 10px; border-radius: 10px; background: rgba(47,191,113,.12); font-size: 13px; }
.svc-own { display: grid; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line, #2a3240); }
.svc-own label { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.svc-own input[type=range] { flex: 1; }
.svc-rivals { font-size: 12px; margin-top: 6px; }
.svc-list { display: grid; gap: 4px; margin: 4px 0; }
.svc-item { display: grid; gap: 2px; font-size: 13px; }
.svc-item small { opacity: .7; }
.svc-security-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.svc-security-tabs .btn { min-height: 44px; white-space: normal; }
.svc-security-contract { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); }
.svc-security-contract h4, .svc-security-contract p { margin: 0; }
.svc-security-contract p { font-size: 13px; line-height: 1.5; }
.svc-security-contract header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.svc-security-contract header strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.svc-security-contract .btn { justify-self: start; min-height: 44px; }
.svc-war { display: grid; gap: 8px; margin: 8px 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); }
.svc-war header { display: grid; gap: 4px; }
.svc-war h4, .svc-war p { margin: 0; }
.svc-war header strong { color: var(--gold); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.svc-war header small { font-size: .75em; }
.svc-war p, .svc-war-form label { font-size: 13px; line-height: 1.45; }
.svc-war-form { display: grid; gap: 6px; min-width: 0; }
.svc-war-form select { width: 100%; min-width: 0; min-height: 38px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; font-size: 13px; }
.svc-war-form button { min-height: 40px; justify-self: start; }
.svc-war-status:empty { display: none; }
.svc-war-paid { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; color: var(--muted); }
.svc-war-paid strong { color: var(--text); }
.svc-war-paid small { flex-basis: 100%; overflow-wrap: anywhere; }

/* 경매의 배경과 글자색을 같은 테마에서 가져와요. */
.seizure-auctions {
  --auction-accent: #ffde90;
  --auction-control: #202d47;
  --auction-control-line: #7889a4;
}
html[data-theme="light"] .seizure-auctions {
  --stock-text: var(--text);
  --stock-muted: var(--muted);
  --stock-line: var(--line2);
  --stock-card: var(--card);
  --auction-accent: var(--gold-text);
  --auction-control: var(--card2);
  --auction-control-line: #81796e;
  background: var(--card2);
}
.seizure-auctions .stock-head #seizureAuctionTitle { color: var(--auction-accent); }
.seizure-auctions .stock-close { background: var(--auction-control); border-color: var(--auction-control-line); }
.seizure-auctions .stock-scroll { padding-bottom: 16px; }
.seizure-auctions .ct-mnote { font-size: 13px; }
.seizure-auctions :is(.ct-mnote, .dim, .war-empty, .auction-lot small, .auction-lot dt, .auction-bid label) { color: var(--stock-muted); }
.auction-catalog { display: grid; gap: 8px; margin-top: 10px; }
.auction-lot { padding: 12px; border: 1px solid var(--stock-line); border-radius: 12px; background: var(--stock-card); color: var(--stock-text); }
.auction-lot header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auction-lot h4 { margin: 0 0 3px; overflow-wrap: anywhere; }
.auction-lot header > time { white-space: nowrap; color: var(--auction-accent); font-variant-numeric: tabular-nums; }
.auction-lot dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4px 8px; margin: 10px 0; font-size: 13px; }
.auction-lot dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.auction-bid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px; margin: 8px 0; }
.auction-bid label { grid-column: 1 / -1; font-size: 13px; }
.auction-bid input { width: 100%; min-width: 0; min-height: 40px; padding: 6px 8px; background: var(--auction-control); color: var(--stock-text); border: 1px solid var(--auction-control-line); border-radius: 8px; font: inherit; }
.auction-bid button { min-height: 40px; }
.seizure-auctions .auction-lot .btn.ghost { border-color: var(--auction-control-line); }
.seizure-auctions .auction-lot .btn.ghost:hover { background: var(--auction-control); }
.seizure-auctions :is(.stock-close, .btn, .auction-bid input):focus-visible { outline: 2px solid var(--auction-accent); outline-offset: 2px; }
.auction-feedback:empty { display: none; }

/* 🔗 관공서 행정 연계 */
.cl-list, .cl-cands { display: grid; gap: 6px; margin: 6px 0; }
.cl-cands { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cl-link, .cl-req { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, #2a3240); background: var(--card2, rgba(255,255,255,.04)); font-size: 13px; }
.cl-link > span:nth-child(2), .cl-req > span:first-child { flex: 1; min-width: 0; }
.cl-req { border-color: rgba(240,185,11,.5); }
.cl-acts { display: flex; gap: 4px; }
.cl-ic { font-size: 20px; }
.cl-go { background: none; border: 0; padding: 0; color: #4aa3df; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.cl-cand { display: grid; gap: 3px; text-align: left; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line, #2a3240); background: var(--card2, rgba(255,255,255,.04)); color: inherit; font: inherit; cursor: pointer; }
.cl-cand:hover:not([disabled]) { border-color: #6ebeff; }
.cl-cand[disabled] { opacity: .5; cursor: not-allowed; }
.cl-cand small { opacity: .75; line-height: 1.35; }
.cl-cost { font-size: 13px; font-weight: 700; color: #4aa3df; }
.cl-here { margin: 6px 0; padding: 6px 10px; border-radius: 10px; background: rgba(110,190,255,.12); font-size: 13px; }

/* 🖼 미술품 */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 6px 0; }
.art-card { display: grid; gap: 6px; padding: 8px; border-radius: 12px; border: 1px solid var(--line, #2a3240); background: var(--card2, rgba(255,255,255,.04)); }
.art-card.sold { opacity: .55; }
.art-pic { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; image-rendering: pixelated; background: #1b1f27; box-shadow: inset 0 0 0 3px #6b5434, 0 2px 6px rgba(0,0,0,.35); }
.art-meta { display: grid; gap: 3px; font-size: 12.5px; min-width: 0; }
.art-meta b { font-size: 13.5px; }
.art-meta small { opacity: .8; line-height: 1.35; }
.art-tier { display: inline-block; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #111; background: var(--tc); vertical-align: 1px; }
.art-acts { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.art-acts input, .art-list input { width: 100%; min-width: 0; font: inherit; font-size: 12px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line, #2a3240); background: transparent; color: inherit; }
.art-list { display: grid; gap: 4px; width: 100%; }
.art-list select { font: inherit; font-size: 12px; }
.art-busy { font-size: 12px; }
.art-wealth { display: grid; gap: 3px; margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: rgba(240,185,11,.08); border: 1px solid rgba(240,185,11,.3); font-size: 12.5px; }

/* 🎯 공격 유닛 선택 칩 */
.ct-warsel { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 6; display: flex; gap: 6px; align-items: center; max-width: calc(100% - 24px); padding: 7px 8px 7px 12px; border-radius: 999px; background: rgba(20, 16, 10, .92); color: #fff; border: 1px solid #f9c66a; box-shadow: 0 6px 22px rgba(0,0,0,.45); font-size: 13px; }
.ct-warsel[hidden] { display: none; }
.ct-warsel span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-warsel b { color: #f9c66a; }
#ctCanvas.war-aiming { cursor: crosshair; }
.ct-warsel { width: max-content; }
.ct-warsel .btn { flex: none; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35); }
.ct-warsel .btn:hover { border-color: #f9c66a; }
@media (max-width: 560px) { .ct-warsel { width: auto; left: 12px; right: 12px; transform: none; } .ct-warsel span { white-space: normal; } }


.ct-war-picker[hidden] { display: none; }
.ct-war-picker {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 16;
  display: flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 24px);
  gap: 12px;
  padding: 7px 9px 7px 13px;
  border: 1px solid #d4a455;
  border-radius: 10px;
  background: #111725f5;
  color: #f4dba5;
  font-size: 13px;
  box-shadow: 0 5px 14px #05081087;
}
.ct-war-picker .btn { min-height: 36px; flex: none; color: #f3f5ff; border-color: #9098ac; }
.ct-war-picker span { min-width: 0; }
@media (min-width: 981px) {
  #ctWarSel { top: calc(var(--hdr, 64px) + 14px); }
  .ct-stage:not(.side-off) #ctWarSel { left: calc((100% - var(--sw) - 24px) / 2); }
}
#ctCanvas.war-picking { cursor: crosshair !important; }

/* 🙈 홀덤: 내 패는 마우스를 올렸을 때만 */
.hd-peek { position: relative; cursor: pointer; }
.hd-pk { display: inline-flex; }
.hd-pk .pk-f { display: none; }
.hd-peek:hover .pk-f, .hd-peek.open .pk-f { display: inline-flex; }
.hd-peek:hover .pk-b, .hd-peek.open .pk-b { display: none; }
.hd-peek-tip { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); font-style: normal; font-size: 10px; white-space: nowrap; color: #f4e3b5; opacity: .85; pointer-events: none; }
.hd-peek:hover .hd-peek-tip, .hd-peek.open .hd-peek-tip { opacity: 0; }
.hd-handstats.hd-hide dd { filter: blur(7px); transition: filter .15s; }
.hd-peeking .hd-handstats.hd-hide dd { filter: none; }

/* 👁 투시 보기 안내 칩 */
.ct-flatchip { top: 54px; }

/* 📢 운영자 개인 공지 팝업 */
.g-notice { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; background: rgba(5, 8, 16, .72); }
.g-notice-in { width: min(440px, 100%); padding: 26px 22px 20px; border-radius: 18px; text-align: center; background: linear-gradient(180deg, #1d2335, #121726); border: 1px solid #f0b90b; box-shadow: 0 20px 60px rgba(0,0,0,.6); color: #f3efe4; animation: gAlIn .35s cubic-bezier(.2, 1.4, .4, 1); }
.g-family-politics .g-notice-in { max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; }
.g-notice-ico { font-size: 46px; line-height: 1; margin-bottom: 8px; }
.g-notice-in h2 { margin: 0 0 10px; font-size: 20px; color: #f9d26a; }
.g-notice-in p { margin: 6px 0; font-size: 14.5px; line-height: 1.55; }
.g-notice-amt { margin-top: 12px !important; font-size: 24px !important; font-weight: 800; color: #4ee18a; }
.g-notice-ok { margin-top: 16px; min-width: 140px; }

/* 🛍 백화점 명품관 팝업 */
.dx-modal { max-width: 880px !important; }
.dx-preview { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; margin-bottom: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); }
.dx-photo { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #0b0b0f; box-shadow: inset 0 0 0 1px #f0b90b55; }
.dx-photo img { width: 100%; height: 100%; object-fit: cover; display: block; animation: dxIn .35s ease-out; }
@keyframes dxIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.dx-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dx-info h4 { margin: 0; font-size: 20px; }
.dx-info p { margin: 0; }
.dx-price { font-size: 24px; font-weight: 800; color: var(--gold, #f0b90b); }
.dx-price small { font-size: 13px; font-weight: 600; }
.dx-own { color: #2fbf71; font-weight: 700; }
.dx-warn { color: #e5534b; font-weight: 700; }
.dx-buy { align-self: flex-start; min-width: 200px; }
.dx-buy.dx-sure { background: #e5534b; border-color: #e5534b; color: #fff; }
.dx-rev { margin: 0 0 10px; }
.dx-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(132px, 100%), 1fr)); gap: 8px; }
.dx-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); color: var(--text); text-align: center; cursor: pointer; font: inherit; }
.dx-card:hover { border-color: #f0b90b99; }
.dx-card.on { border-color: #f0b90b; box-shadow: 0 0 0 2px #f0b90b55; }
.dx-thumb { aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: #0b0b0f; }
.dx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-card b { font-size: 12.5px; line-height: 1.3; }
.dx-card small { font-size: 11.5px; opacity: .8; }
.dx-card em { position: absolute; top: 10px; right: 10px; padding: 1px 6px; border-radius: 8px; background: #2fbf71; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
@media (max-width: 600px) { .dx-preview { grid-template-columns: 1fr; } .dx-photo { max-width: 320px; width: 100%; margin: 0 auto; } .dx-buy { align-self: stretch; } }

/* 🏛 국회의사당 · 🇰🇷 청와대 팝업 */
.pol-modal, .pres-modal { max-width: 980px !important; }
.pol-hero { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: linear-gradient(135deg, #18233f, #23345e); color: #f3efe4; border-bottom: 1px solid #f0b90b55; }
.pol-hero img { width: 120px; height: auto; filter: drop-shadow(0 4px 10px #0008); }
.pol-hero > div { flex: 1; min-width: 0; }
.pol-hero h3 { margin: 0; font-size: 20px; color: #f9d26a; }
.pol-hero small { color: #cfd6e6; }
.pol-hero b { color: #fff; }
.pol-tabs { margin: 8px 12px 0; flex-shrink: 0; }
.pol-hero, .pres-hero { flex-shrink: 0; }
.pol-hero [data-pol-x] { color: #fff; }
.dx-modal .cs-tabs { flex-shrink: 0; }
.pol-note { margin: 4px 0 10px; font-size: 13px; }
.pol-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.pol-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.pol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(118px, 100%), 1fr)); gap: 8px; }
.pol-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 6px 6px 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); border-top: 3px solid var(--pc); color: var(--text); text-align: center; cursor: pointer; font: inherit; transition: transform .12s, box-shadow .12s; }
.pol-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px #0003; }
.pol-card.conn { box-shadow: 0 0 0 2px #2fbf71aa; }
.pol-face { aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: #101830; }
.pol-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pol-card b { font-size: 13.5px; }
.pol-card small { font-size: 11px; opacity: .8; line-height: 1.3; }
.pol-card em { position: absolute; top: 10px; left: 10px; padding: 1px 6px; border-radius: 8px; background: #2fbf71; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.pol-mini { height: 5px; border-radius: 3px; background: #8884; overflow: hidden; margin-top: 3px; }
.pol-mini i { display: block; height: 100%; background: linear-gradient(90deg, #f0b90b, #2fbf71); }
.pol-back { margin-bottom: 8px; }
.pol-mp { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); border-left: 4px solid var(--pc); }
.pol-mp-face { border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: #101830; }
.pol-mp-face img { width: 100%; height: 100%; object-fit: cover; display: block; animation: dxIn .3s ease-out; }
.pol-mp-info h4 { margin: 2px 0 4px; font-size: 20px; }
.pol-mp-info h4 small { font-size: 12px; opacity: .75; font-weight: 600; }
.pol-mp-info p { margin: 2px 0 6px; font-size: 13px; }
.pol-bars { display: grid; gap: 4px; margin: 6px 0; }
.pol-bar { display: grid; grid-template-columns: 52px 1fr 30px; align-items: center; gap: 6px; font-size: 12px; }
.pol-bar i { height: 8px; border-radius: 4px; background: #8883; overflow: hidden; }
.pol-bar b { display: block; height: 100%; border-radius: 4px; transition: width .5s ease; }
.pol-bar.a b { background: #ff7aa2; } .pol-bar.t b { background: #4aa3ff; } .pol-bar.l b { background: #f0b90b; }
.pol-bars.big .pol-bar { font-size: 13px; } .pol-bars.big .pol-bar i { height: 10px; }
.pol-conn { font-size: 13px; }
.pol-talk { margin: 12px 0; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, #1b2440, #141b31); color: #eef1f8; border: 1px solid #3a4a78; }
.pol-say { display: flex; gap: 10px; align-items: flex-start; }
.pol-say-face { flex: 0 0 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 2px solid #f0b90b; }
.pol-say-face img { width: 100%; height: 100%; object-fit: cover; }
.pol-say p { margin: 0; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: #ffffff14; font-size: 14.5px; line-height: 1.5; }
.pol-flatter { margin-bottom: 8px; } html[data-theme] .ar-modal-in .pol-talk .pol-flatter p { background: #f0b90b2e; color: #ffe7a3; font-weight: 700; }
.pol-ask { margin: 10px 0; padding: 10px; border-radius: 12px; background: var(--card); border: 1px dashed #e5534b88; }
.pol-ask-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pres-modal .pol-ask { background: #ffffff0a; border-color: #e5534b99; }
.pres-angry { margin: 10px 0; } .pres-angry .pol-say-face { border-color: #e5534b; }
html[data-theme] .ar-modal-in .pres-angry .pol-said.bad, html[data-theme] .ar-modal-in.pres-modal .pol-said.bad { color: #ffb3ad; }
.pol-choices { display: grid; gap: 6px; margin-top: 10px; }
.pol-choice { text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid #4b5c8e; background: #ffffff0d; color: #eef1f8; font: inherit; font-size: 14px; cursor: pointer; }
.pol-choice:hover:not(:disabled) { background: #f0b90b26; border-color: #f0b90b; }
.pol-choice:disabled { opacity: .45; cursor: default; }
.pol-said { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; animation: dxIn .3s ease-out; }
.pol-said.good { background: #2fbf7126; color: #9df0c2; } .pol-said.bad { background: #e5534b26; color: #ffb3ad; }
.pol-talk small.dim { color: #aab4cc; }
.pol-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pol-acts small { opacity: .75; margin-left: 4px; }
.pol-lobby, .pol-giftbox, .pol-favor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); }
.pol-lobby input { flex: 1 1 160px; min-width: 0; }
.pol-lobby small, .pol-giftbox > small, .pol-favor > small { flex-basis: 100%; }
.pol-gifts { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.pol-gift { width: 86px; display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg, transparent); color: var(--text); cursor: pointer; font: inherit; }
.pol-gift:hover { border-color: #f0b90b; }
.pol-gift img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.pol-gift small { font-size: 10.5px; line-height: 1.2; }
.pol-specials { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.pol-special { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); text-align: center; }
.pol-special img { width: 100%; max-width: 200px; height: 140px; object-fit: contain; }
.pol-special p { margin: 2px 0; } .pol-special s { opacity: .6; } .pol-special em { color: #2fbf71; font-style: normal; font-weight: 700; }
.pol-special.locked img { filter: grayscale(.8) brightness(.8); }
.pol-lock { padding: 4px 10px; border-radius: 10px; background: #8883; font-size: 12.5px; font-weight: 700; }
.pol-mine p { margin: 6px 0; }
.pol-prog { height: 10px; border-radius: 5px; background: #8883; overflow: hidden; margin: 6px 0; }
.pol-prog b { display: block; height: 100%; background: linear-gradient(90deg, #f0b90b, #ff7a3c); }
.ok { color: #2fbf71; }
/* 🇰🇷 청와대: 화려하게 */
.pres-modal { background: linear-gradient(180deg, #0d1530, #121a36 40%, #0d1328) !important; color: #f3efe4; border: 1px solid #d4a640 !important; box-shadow: 0 0 0 1px #f0b90b55, 0 24px 80px #000a, 0 0 60px #f0b90b33 !important; }
.pres-hero { position: relative; display: flex; align-items: flex-end; gap: 16px; min-height: 230px; padding: 16px; overflow: hidden; background: radial-gradient(ellipse at 30% 0%, #3a4f9a 0%, #16224a 55%, #0d1530 100%); border-bottom: 2px solid #d4a640; }
.pres-hero::before { content: ''; position: absolute; inset: 0; background: url(/img/city/bluehouse.png) right -40px bottom -30px / 460px auto no-repeat; opacity: .35; }
.pres-shine { position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent 0 20%, #f0b90b22 25%, transparent 30% 70%, #f0b90b22 75%, transparent 80%); animation: presSpin 14s linear infinite; pointer-events: none; }
@keyframes presSpin { to { transform: rotate(360deg); } }
.pres-img { position: relative; width: 200px; height: 200px; object-fit: cover; border-radius: 16px; border: 3px solid #f0c75e; box-shadow: 0 0 0 4px #f0b90b33, 0 10px 30px #000a; animation: dxIn .5s ease-out; }
.pres-name { position: relative; flex: 1; }
.pres-name small { color: #f0c75e; letter-spacing: .12em; font-weight: 700; }
.pres-name h3 { margin: 2px 0 6px; font-size: 32px; color: #fff; text-shadow: 0 2px 12px #f0b90b66; }
.pres-vip { display: inline-block; padding: 3px 10px; border-radius: 12px; background: linear-gradient(90deg, #f0b90b, #ffdf7e); color: #3a2a00; font-weight: 800; font-size: 13px; }
.pres-hero [data-pres-x] { position: absolute; top: 10px; right: 10px; color: #fff; }
.pres-modal .ct-carmodal-body { color: #eef1f8; }
.pres-modal .pol-lobby, .pres-modal .pol-giftbox { background: #ffffff0d; border-color: #3a4a78; color: #eef1f8; }
.pres-modal .pol-gift { color: #eef1f8; border-color: #3a4a78; }
.pres-modal .dim { color: #aab4cc; }
.pres-h { margin: 16px 0 8px; color: #f0c75e; font-size: 16px; }
.pres-favors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 10px; }
.pres-favor { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, #ffffff12, #ffffff06); border: 1px solid #d4a64066; }
.pres-favor.on { border-color: #f0c75e; box-shadow: 0 0 18px #f0b90b44; }
.pres-favor b { color: #f9d26a; } .pres-favor small { color: #cfd6e6; line-height: 1.4; flex: 1; }
.pres-badge { font-weight: 700; font-size: 13px; }
.pres-lock { padding: 20px; text-align: center; }
.pres-fav { margin-top: 16px; padding: 12px; border-radius: 14px; background: #ffffff0a; border: 1px solid #d4a64055; }
.pres-fav h5 { margin: 0 0 8px; color: #f0c75e; font-size: 15px; }
.pres-fav ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.pres-fav li { display: flex; justify-content: space-between; gap: 8px; } .pres-fav li.me b { color: #f9d26a; }
/* 일정·개인 연락 카드는 각 테마의 글자색을 사용한다. */
html[data-theme] .ar-modal-in .pol-talk p,
html[data-theme] .ar-modal-in .pol-hero small,
html[data-theme] .ar-modal-in.pres-modal p:not(:where(.pol-private *)),
html[data-theme] .ar-modal-in.pres-modal li { color: #e6eaf4; }
html[data-theme] .ar-modal-in .pol-talk .pol-said.good { color: #9df0c2; } html[data-theme] .ar-modal-in .pol-talk .pol-said.bad { color: #ffb3ad; }
html[data-theme] .ar-modal-in.pres-modal .dim, html[data-theme] .ar-modal-in .pol-talk .dim { color: #aab4cc; }
html[data-theme] .ar-modal-in.pres-modal .pres-favor small { color: #cfd6e6; }
html[data-theme] .ar-modal-in.pres-modal .pol-bar span, html[data-theme] .ar-modal-in.pres-modal .pol-bar em, html[data-theme] .ar-modal-in.pres-modal b { color: inherit; }
html[data-theme] .ar-modal-in.pres-modal { color: #f3efe4; }
html[data-theme] .ar-modal-in.pres-modal .pres-favor b, html[data-theme] .ar-modal-in.pres-modal .pres-fav li.me b, html[data-theme] .ar-modal-in.pres-modal .pol-conn b { color: #f9d26a; }
@media (max-width: 640px) {
  .pol-mp { grid-template-columns: 1fr; } .pol-mp-face { max-width: 220px; margin: 0 auto; width: 100%; }
  .pol-hero img { width: 80px; }
  .pres-hero { flex-direction: column; align-items: center; text-align: center; min-height: 0; }
  .pres-img { width: 160px; height: 160px; } .pres-name h3 { font-size: 26px; }
}

/* ⛳ 골프장 · 🥃 접대 라운지 팝업 */
.ent-hero.golfclub { background: linear-gradient(135deg, #123a26, #1f5a3a); }
.ent-hero.vipsalon { background: linear-gradient(135deg, #2a1410, #4a2318); }
.ent-hero h3 { color: #ffe08a; }
.ent-hero [data-ent-x] { color: #fff; }
html[data-theme] .ar-modal-in .ent-hero small { color: #e6eaf4; }
.ent-h { margin: 12px 0 8px; font-size: 15px; }
.ent-h small { font-weight: 400; font-size: 12px; margin-left: 6px; }
.ent-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 8px; }
.ent-course { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.ent-course.on { border-color: #f0b90b; box-shadow: 0 0 0 2px #f0b90b55; }
.ent-course span { font-weight: 800; color: var(--gold, #f0b90b); }
.ent-course small { opacity: .8; font-size: 12px; }
.ent-target { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); border-left: 4px solid var(--pc, #f0b90b); }
.ent-target .pol-face { width: 56px; }
.ent-target b { display: block; font-size: 14px; }
.ent-target small { display: block; font-size: 11.5px; opacity: .8; }
.ent-target.conn { box-shadow: inset 0 0 0 1px #2fbf71aa; }
.ent-target.pres { margin-bottom: 10px; background: linear-gradient(90deg, #f0b90b22, transparent); border-left-color: #f0b90b; }
.ent-target.locked { opacity: .7; }
.ent-wait { font-size: 12px; opacity: .75; white-space: nowrap; }
.ent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px; }

/* 🗳 정당 · 정치 지도 · 측근 · 의원 연락 */
.pol-badge { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 8px; background: #4aa3ff26; color: #4aa3ff; font-size: 11px; font-style: normal; font-weight: 700; vertical-align: middle; }
.pol-badge.pres { background: #f0b90b2e; color: #c98a00; }
.pol-card .pol-badge { position: absolute; top: 10px; right: 8px; margin: 0; }
.pol-presbar { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: linear-gradient(90deg, #f0b90b22, transparent); border: 1px solid var(--line2); border-left: 4px solid var(--pc); margin-bottom: 10px; }
.pol-presbar img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #f0c75e; }
.pol-presbar small { display: block; margin-top: 2px; }
.pol-strat { padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); font-size: 13px; }
.pol-strat ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.pol-parties { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 8px; }
.pol-party { padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); border-top: 4px solid var(--pc); }
.pol-party.ruling { box-shadow: 0 0 0 2px #f0b90b66; }
.pol-party-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pol-party small { display: block; margin: 4px 0 6px; opacity: .85; }
.pol-party-act { display: flex; flex-wrap: wrap; gap: 6px; }
.pol-party-act input { flex: 1 1 120px; min-width: 0; }
.pol-map { width: 100%; max-width: 760px; display: block; margin: 0 auto; background: radial-gradient(ellipse at center, #1b2645 0%, #0f1630 72%); border-radius: 18px; }
.pol-node { cursor: pointer; } .pol-node:hover circle { stroke-width: 5; }
.pol-node-t { font-size: 11px; fill: #e6eaf4; font-weight: 700; paint-order: stroke; stroke: #0f1630; stroke-width: 3px; }
.pol-node-t.pres { font-size: 14px; fill: #f9d26a; }
.pol-elect { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 3px; }
.pres-term { margin: 0 0 6px; color: #f0c75e; font-weight: 700; font-size: 13px; }
.pres-ally-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(110px, 100%), 1fr)); gap: 8px; }
.pres-ally { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.pres-ally img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #d4a640; }
.pres-ally small { font-size: 11px; }
.g-call { position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; padding: 16px; background: rgba(5, 8, 16, .66); }
.g-call-in { width: min(420px, 100%); padding: 20px; border-radius: 18px; background: linear-gradient(180deg, #1d2335, #121726); border: 1px solid var(--pc, #f0b90b); box-shadow: 0 20px 60px #0009; color: #f3efe4; animation: gAlIn .35s cubic-bezier(.2, 1.4, .4, 1); }
.g-call-top { display: flex; gap: 12px; align-items: center; }
.g-call-top img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--pc, #f0b90b); animation: gCallRing 1s ease-in-out infinite; }
@keyframes gCallRing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
html[data-theme] .g-call-in p, html[data-theme] .g-call-in small { color: #e6eaf4; }
.g-call-top h3 { margin: 0; font-size: 17px; color: #f9d26a; }
.g-call-line { margin: 12px 0; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: #ffffff12; line-height: 1.5; }
.g-call-amt { font-size: 22px; font-weight: 800; color: #4ee18a; margin: 6px 0 10px; text-align: center; }
.g-call-btns { display: flex; gap: 8px; } .g-call-btns .btn { flex: 1; }
html[data-theme] .g-call-btns .btn.ghost { color: #e6eaf4; border: 1px solid #5b6a94; background: #ffffff10; }
:is(.g-politics-call, .g-artist-proposal) { position: fixed; inset: 0; margin: auto; width: min(420px, calc(100% - 32px)); max-width: none; height: fit-content; max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 18px; background: transparent; box-shadow: 0 20px 60px #0009; overflow: auto; }
:is(.g-politics-call, .g-artist-proposal)[open] { animation: gAlIn .22s ease-out; }
:is(.g-politics-call, .g-artist-proposal)::backdrop { background: rgba(5, 8, 16, .66); }
:is(.g-politics-call, .g-artist-proposal) .g-call-in { width: 100%; animation: none; box-shadow: none; }
:is(.g-politics-call, .g-artist-proposal) .g-call-top img { flex: none; }
:is(.g-politics-call, .g-artist-proposal) .g-call-top h3 { text-wrap: balance; }
:is(.g-politics-call, .g-artist-proposal) .g-call-top h3:focus { outline: none; }
:is(.g-politics-call, .g-artist-proposal).g-call-replied .g-call-top img { animation: none; }
.g-artist-proposal { --pc: #dca4c8; }
.g-artist-proposal .g-call-top img { animation: none; }
.g-politics-call .g-call-in .g-call-amt { color: #4ee18a; }
.g-politics-call .g-call-terms { display: block; line-height: 1.65; }
.g-politics-call .g-call-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
:is(.g-politics-call, .g-artist-proposal) .g-call-btns .btn { min-height: 44px; padding-inline: 8px; }
.g-politics-call .g-call-btns .btn.ghost.g-call-rude { color: #ffdce0; border-color: #a76575; }
.g-politics-call .g-call-bubble { margin: 12px 0; }
.g-politics-call .g-call-bubble .g-call-line { margin: 4px 0 0; }
.g-politics-call .g-call-receipt { margin: 8px 0; font-size: 13px; }
:is(.g-politics-call, .g-artist-proposal) .g-call-in .g-call-error { color: #ffc7cf; margin: 10px 0; }
@media (max-width: 480px) {
  .g-politics-call .g-call-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-politics-call [data-call="accept"] { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.g-politics-call, .g-artist-proposal)[open], .g-politics-call .g-call-top img { animation: none; }
}

.g-crime-victim { --pc: #e0838f; }
.g-crime-victim .g-call-top h3, .g-crime-victim-details [data-loss] { color: #ffc5ca; }
.g-crime-victim-details { display: grid; gap: 8px; margin: 14px 0 16px; }
.g-crime-victim-details div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.g-crime-victim-details dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

.g-invite-choice { display: grid; gap: 5px; margin-bottom: 12px; color: #e6eaf4; font-size: 13px; }
.g-invite-choice select { width: 100%; min-width: 0; min-height: 44px; padding: 6px 9px; color: #f3efe4; background: #252d42; color-scheme: dark; border: 1px solid #687495; border-radius: 10px; font: inherit; font-size: 16px; }
.g-invite-choice select:focus-visible { outline: 2px solid #f9d26a; outline-offset: 2px; }
.g-npc-invitation .g-invite-price { margin: 0 0 12px; font-size: 13px; font-weight: 700; line-height: 1.5; }

/* 🎤 엔터테인먼트 소속사 · 🎬 영화사 팝업 */
.sx-hero { background: linear-gradient(135deg, #2a1240, #4b1d63 55%, #7a2a6e); }
.sx-hero.studio { background: linear-gradient(135deg, #2b1a10, #4a2a16 55%, #6b1f2a); }
.sx-hero h3 { color: #ffd6f2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sx-hero.studio h3 { color: #ffe08a; }
.sx-hero [data-sx-x], .sx-hero [data-st-x] { color: #fff; }
.sx-lv { padding: 2px 9px; border-radius: 10px; background: linear-gradient(90deg, #ff5fa2, #f0b90b); color: #1a0f22; font-size: 12.5px; font-weight: 800; }
.sx-prog { margin: 6px 0 2px; max-width: 420px; }
.sx-prog b { background: linear-gradient(90deg, #ff5fa2, #f0b90b); }
html[data-theme] .ar-modal-in .sx-hero small { color: #eadcf2; }
html[data-theme] .ar-modal-in .sx-hero b { color: #fff; }
.sx-note { margin: 0 0 10px; font-size: 13px; }
.sx-empty { padding: 24px; text-align: center; }
.sx-warn { color: #e5534b; font-weight: 700; }
.sx-h { margin: 14px 0 8px; font-size: 15px; }
.sx-h small { font-weight: 400; font-size: 12px; margin-left: 6px; }
.sx-grid { grid-template-columns: repeat(auto-fill, minmax(min(132px, 100%), 1fr)); }
.sx-card { border-top-color: #ff5fa2; }
.sx-card.k-actor { border-top-color: #4aa3ff; } .sx-card.k-influencer { border-top-color: #2fbf71; }
.sx-bars { margin: 4px 0 2px; gap: 3px; }
.sx-bars .pol-bar { grid-template-columns: 30px 1fr 24px; font-size: 11px; }
.sx-card .pol-bar em { position: static; padding: 0; border-radius: 0; background: none; color: inherit; font-size: 11px; font-weight: 700; }
.sx-card .pol-bar span { text-align: left; }
.pol-bar.sx-pop b { background: linear-gradient(90deg, #ff5fa2, #ff9acb); } .pol-bar.sx-skill b { background: linear-gradient(90deg, #4aa3ff, #8fd0ff); }
.sx-st { display: inline-block; margin-top: 2px; padding: 1px 7px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.sx-st i { font-style: normal; } .sx-st.busy { background: #f0b90b2e; color: #c98a00; } .sx-st.rest { background: #8883; }
.sx-fee { font-weight: 800; color: var(--gold, #f0b90b); font-size: 13px; }
.sx-sign { margin-top: 3px; align-self: center; } .sx-sign[aria-disabled="true"] { opacity: .5; }
.sx-tag { position: static !important; align-self: center; margin-top: 3px; }
.sx-tag.taken { background: #7a8190 !important; }
.sx-star { border-left-color: #ff5fa2; } .sx-star.k-actor { border-left-color: #4aa3ff; } .sx-star.k-influencer { border-left-color: #2fbf71; }
.sx-invs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 8px; }
.sx-inv { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); }
.sx-amts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sx-amts input { flex: 1 1 120px; min-width: 0; }
.sx-amts button i { font-style: normal; }
.sx-produce { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); }
.sx-produce .sx-h { margin-top: 0; }
.sx-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sx-kinds small { opacity: .7; font-size: 11px; }
.sx-tiers { margin-bottom: 8px; }
.sx-studios { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.sx-studios small { opacity: .7; font-size: 11px; }
.sx-pbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin: 8px 0 4px; font-size: 13px; }
.sx-pbar .pol-prog { margin: 0; height: 12px; } .sx-pbar .pol-prog b { background: linear-gradient(90deg, #ff5fa2, #f0b90b, #2fbf71); }
.sx-odds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 6px 0 10px; }
.sx-odds span { display: flex; flex-direction: column; padding: 6px; border-radius: 10px; background: #8881; text-align: center; font-size: 12px; }
.sx-odds small { opacity: .8; }
.sx-odds .jp b, .sx-chart .jp .sx-res b { color: #ff5fa2; } .sx-odds .hit b, .sx-chart .hit .sx-res b { color: #f08c00; } .sx-odds .flop b, .sx-chart .flop .sx-res b { color: #e5534b; }
.sx-go { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.sx-go input { flex: 1 1 180px; min-width: 0; }
.sx-contract { display: grid; gap: 8px; margin: 12px 0 16px; padding: 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); }
.sx-contract-person.pol-mp { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; }
.sx-contract-person .pol-mp-face { width: 64px; height: 64px; margin: 0; }
.sx-contract-person .pol-mp-info { min-width: 0; }
.sx-contract .sx-h, .sx-contract p { margin: 0; }
.sx-contract-status, .sx-contract p { font-size: 13px; }
.sx-contract-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr)); gap: 8px; }
.sx-contract-options .btn { display: grid; gap: 3px; min-height: 48px; white-space: normal; font-variant-numeric: tabular-nums; }
.sx-contract-options span { font-size: 12px; }
.sx-career-head { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px; }
.sx-career-head img { border-radius: 8px; object-fit: cover; }
.sx-career-head p { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sx-career-details { display: grid; gap: 8px; }
.sx-release { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.sx-prods, .sx-chart { display: grid; gap: 8px; }
.sx-prod, .sx-chart li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); }
.sx-prod { grid-template-columns: 52px minmax(0, 1fr); }
.sx-prod b, .sx-chart b { display: block; font-size: 13.5px; } .sx-prod small, .sx-chart small { display: block; font-size: 11.5px; opacity: .8; } .sx-prod i { font-style: normal; }
.sx-chart { margin: 0; padding: 0; list-style: none; }
.sx-cface { width: 52px; aspect-ratio: 1; border-radius: 9px; overflow: hidden; } .sx-cface img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-chart li.jp { border-color: #ff5fa288; box-shadow: 0 0 12px #ff5fa233; }
.sx-res { text-align: right; white-space: nowrap; }
.sx-favor { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); }
.sx-favor small { grid-column: 1 / -1; } .sx-favor .pol-prog { margin: 0; }
.sx-bribe .sx-amts { flex-basis: 100%; }
@media (max-width: 640px) { .sx-odds { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sx-res small { display: none; } }
/* 🎤 엔터 2단계: 장르 포스터 · 신드롬 · CF 제의 · 광고 제안 · 정계 동행 · 필모그래피 */
.sx-odds { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sx-odds .mega b, .sx-chart .mega .sx-res b, .sx-works .mega b { color: #ffb02e; text-shadow: 0 0 8px #ff5fa288; }
.sx-chart li.mega { border-color: #f0b90b; box-shadow: 0 0 0 1px #f0b90b66, 0 0 18px #ff5fa244; background: linear-gradient(90deg, #f0b90b14, transparent 60%), var(--card); }
.sx-chart li:has(.sx-cposter) { grid-template-columns: 46px 40px minmax(0, 1fr) auto; }
.sx-prod:has(.sx-poster) { grid-template-columns: 54px 52px minmax(0, 1fr); }
.sx-cposter, .sx-poster { display: block; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; box-shadow: 0 3px 10px #0006; }
.sx-cposter.sq, .sx-poster.sq { aspect-ratio: 1; }
.sx-cposter img, .sx-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-chart li:has(.sx-cposter) .sx-cface { width: 40px; border-radius: 50%; }
.sx-chart .sx-line { margin-top: 2px; opacity: .95 !important; color: var(--gold, #f0b90b); }
.sx-genres { margin: 6px 0 10px; } .sx-genres > b { display: block; margin-bottom: 6px; font-size: 13px; } .sx-genres small { font-weight: 400; }
.sx-glist { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.sx-genre { display: flex; flex-direction: column; gap: 3px; padding: 3px; border-radius: 9px; border: 2px solid transparent; background: #8881; color: inherit; font: inherit; font-size: 11.5px; cursor: pointer; }
.sx-genre img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; display: block; }
.sx-genre.sq img { aspect-ratio: 1; }
.sx-genre.on { border-color: #ff5fa2; background: #ff5fa21f; font-weight: 800; }
.sx-genre:hover img { filter: brightness(1.1); }
.sx-st.buzz { background: linear-gradient(90deg, #ff5fa233, #f0b90b33); color: #ff7a3d; margin-right: 4px; }
.sx-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #e5534b; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.sx-propose, .sx-escort { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); }
.sx-propose .sx-h, .sx-escort .sx-h { margin-top: 0; }
.sx-escort.on { border-color: #f0b90b; box-shadow: 0 0 14px #f0b90b26; }
.sx-on { color: #2fbf71; font-size: 12.5px; }
.sx-price { align-self: center; font-size: 15px; color: var(--gold, #f0b90b); }
.sx-deals { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.sx-deals li { padding: 6px 9px; border-radius: 9px; background: #8881; }
.sx-deals i, .sx-offer i { font-style: normal; }
.sx-offers { display: grid; gap: 8px; }
.sx-offer { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); border-left: 4px solid #f0b90b; }
.sx-offer.deal { border-left-color: #4aa3ff; }
.sx-offer .pol-face { width: 44px; height: 44px; }
.sx-offer > div > b { display: block; font-size: 13.5px; } .sx-offer > div > small { display: block; font-size: 11.5px; }
.sx-works { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.sx-works li { padding: 5px 9px; border-radius: 8px; background: #8881; }
.sx-works .jp b { color: #ff5fa2; } .sx-works .hit b { color: #f08c00; } .sx-works .flop b { color: #e5534b; }
html[data-theme="light"] .sx-odds .mega b, html[data-theme="light"] .sx-chart .mega .sx-res b, html[data-theme="light"] .sx-works .mega b { color: #d9480f; text-shadow: none; }
html[data-theme="light"] .sx-chart .sx-line { color: #9a5b00; }

/* 💰 자산 돌파 축하 · 🏆 1조 클럽 명예의 전당 */
.g-mile .g-notice-in { border: 2px solid #f0c75e; background: radial-gradient(ellipse at top, #3a2f0f 0%, #1d2335 55%, #121726 100%); box-shadow: 0 0 0 4px #f0b90b33, 0 0 60px #f0b90b55, 0 20px 60px #000a; position: relative; z-index: 1; }
.g-mile .g-notice-ico { font-size: 72px; animation: gMilePop 1s cubic-bezier(.2, 1.6, .4, 1); }
.g-mile .g-notice-in h2 { font-size: 24px; background: linear-gradient(90deg, #ffe08a, #fff6d0, #f0b90b); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes gMilePop { 0% { transform: scale(.2) rotate(-30deg); opacity: 0; } 70% { transform: scale(1.25) rotate(8deg); opacity: 1; } 100% { transform: none; } }
.g-confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.g-confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; opacity: .9; animation: gConf linear forwards; }
@keyframes gConf { to { transform: translateY(110vh) rotate(720deg); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .g-confetti { display: none; } .g-mile .g-notice-ico { animation: none; } }
.club-modal { max-width: 860px !important; background: linear-gradient(180deg, #120e05, #1a1408 40%, #0f0c06) !important; color: #f6eccb; border: 1px solid #d4a640 !important; box-shadow: 0 0 0 1px #f0b90b66, 0 24px 80px #000c, 0 0 80px #f0b90b33 !important; }
.club-hero { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; overflow: hidden; border-bottom: 2px solid #d4a640; background: radial-gradient(ellipse at 20% 0%, #5a4210 0%, #22190a 60%, #120e05 100%); flex-shrink: 0; }
.club-glow { position: absolute; inset: -60%; background: conic-gradient(from 0deg, transparent 0 15%, #f0b90b2a 20%, transparent 25% 65%, #f0b90b2a 70%, transparent 75%); animation: presSpin 16s linear infinite; pointer-events: none; }
.club-hero img { position: relative; width: 190px; filter: drop-shadow(0 8px 20px #000a); }
.club-hero > div:not(.club-glow) { position: relative; flex: 1; }
.club-hero small { color: #f0c75e; letter-spacing: .25em; font-weight: 800; }
.club-hero h3 { margin: 4px 0; font-size: 26px; background: linear-gradient(90deg, #ffe08a, #fff6d0, #f0b90b); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme] .ar-modal-in.club-modal p, html[data-theme] .ar-modal-in.club-modal li, html[data-theme] .ar-modal-in.club-modal small { color: #e9dcb4; }
html[data-theme] .ar-modal-in.club-modal b { color: #fff3c4; }
.club-hero [data-club-x] { position: absolute; top: 10px; right: 10px; color: #fff; }
.club-modal .ct-carmodal-body { color: #f6eccb; }
.club-h { margin: 16px 0 8px; color: #f0c75e; font-size: 16px; } .club-h small { opacity: .7; font-weight: 400; }
.club-me { padding: 12px; border-radius: 12px; background: #ffffff0d; border: 1px solid #d4a64066; }
.club-me i, .club-chal i { display: block; height: 8px; border-radius: 4px; background: #ffffff1a; overflow: hidden; margin-top: 6px; }
.club-me i b, .club-chal i b { display: block; height: 100%; background: linear-gradient(90deg, #f0b90b, #ffe08a); }
.club-members { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.club-members li { display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 10px; align-items: center; padding: 10px; border-radius: 12px; background: linear-gradient(90deg, #f0b90b26, #ffffff08); border: 1px solid #d4a64066; }
.club-members li small { grid-column: 2 / 4; opacity: .7; }
.club-members li.me { box-shadow: 0 0 0 2px #f0c75e; }
.club-rank { font-size: 22px; text-align: center; }
.club-empty { padding: 18px; text-align: center; border-radius: 12px; border: 1px dashed #d4a64099; }
.club-chal { display: grid; gap: 8px; }
.club-chal > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; border-radius: 10px; background: #ffffff08; }
.club-chal > div i { grid-column: 1 / 3; } .club-chal > div small { grid-column: 1 / 3; opacity: .7; }
.club-chal > div.me { box-shadow: inset 0 0 0 1px #f0c75e; }
.club-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(110px, 100%), 1fr)); gap: 8px; }
.club-tier { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 12px; background: #ffffff08; border: 1px solid #ffffff1a; opacity: .6; }
.club-tier.on { opacity: 1; border-color: #f0c75e; background: #f0b90b1f; }
.club-tier span { font-size: 26px; }
.club-perks { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 640px) { .club-hero { flex-direction: column; text-align: center; } .club-hero img { width: 150px; } }

/* 🕶 조직 공작실 · 부하 보고 */
.ops-modal { max-width: 940px !important; background: linear-gradient(180deg, #0c0c10, #15121a 50%, #0b0a0e) !important; color: #e9e3f2; border: 1px solid #7b2d3a !important; box-shadow: 0 0 0 1px #c0394b55, 0 24px 80px #000c !important; }
.ops-hero { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; background: radial-gradient(ellipse at 10% 0%, #4a1320 0%, #1a0d14 60%, #0c0c10 100%); border-bottom: 2px solid #7b2d3a; flex-shrink: 0; }
.ops-hero > div { flex: 1; } .ops-hero small { color: #ff6b81; letter-spacing: .2em; font-weight: 800; }
.ops-hero h3 { margin: 2px 0 4px; font-size: 24px; color: #fff; }
.ops-hero [data-ops-x] { color: #fff; }
html[data-theme] .ar-modal-in.ops-modal p, html[data-theme] .ar-modal-in.ops-modal small, html[data-theme] .ar-modal-in.ops-modal b { color: #e9e3f2; }
html[data-theme] .ar-modal-in.ops-modal .dim { color: #a59fb3; }
.ops-modal .ct-carmodal-body { color: #e9e3f2; }
.ops-tabs { margin: 8px 12px 0; flex-shrink: 0; }
.ops-h { margin: 12px 0 6px; color: #ff8a9a; } .ops-h small { opacity: .7; font-weight: 400; }
.ops-ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 8px; }
.ops-op { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 12px; border: 1px solid #3a2a40; background: #ffffff08; color: #e9e3f2; font: inherit; cursor: pointer; }
.ops-op span { font-size: 26px; } .ops-op small { font-size: 11px; opacity: .75; }
.ops-op.on { border-color: #ff4d6a; box-shadow: 0 0 0 2px #ff4d6a55; } .ops-op.locked { opacity: .5; }
.ops-step { margin-top: 12px; padding: 12px; border-radius: 12px; background: #ffffff08; border: 1px solid #3a2a40; }
.ops-desc { margin: 0 0 6px; } .ops-lock { color: #ff8a9a; font-weight: 700; }
.ops-targets, .ops-crewpick { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-tg, .ops-cp { width: 72px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border-radius: 10px; border: 1px solid #3a2a40; border-top: 3px solid var(--pc, #7b2d3a); background: #ffffff06; color: #e9e3f2; font: inherit; cursor: pointer; }
.ops-tg img, .ops-cp img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.ops-tg small, .ops-cp small { font-size: 10.5px; line-height: 1.2; }
.ops-tg.on, .ops-cp.on { border-color: #ff4d6a; box-shadow: 0 0 0 2px #ff4d6a66; } .ops-tg:disabled, .ops-cp:disabled { opacity: .4; }
.ops-cp.fit { border-top-color: #f0b90b; }
.ops-parties { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-victims { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 6px; }
.ops-vic { display: flex; flex-direction: column; padding: 8px; border-radius: 10px; border: 1px solid #3a2a40; background: #ffffff06; color: #e9e3f2; font: inherit; cursor: pointer; text-align: left; }
.ops-vic.on { border-color: #ff4d6a; } .ops-vic:disabled { opacity: .4; }
.ops-go { margin-top: 12px; width: 100%; }
.pol-card em.pol-hurt { top: auto; bottom: 34px; background: #e5534b; }
.ops-said { padding: 10px; border-radius: 10px; background: #ff4d6a1f; margin: 10px 0; }
.ops-crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 8px; }
.ops-man { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px; border-radius: 12px; background: #ffffff08; border: 1px solid #3a2a40; text-align: center; }
.ops-man img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; border: 2px solid #3a2a40; }
.ops-man.mine img { border-color: #f0b90b; }
.ops-tag { font-size: 12px; font-weight: 700; color: #f0c75e; }
.ops-jobs { display: grid; gap: 6px; } .ops-jobs > div { padding: 8px 10px; border-radius: 10px; background: #ffffff08; }
.ops-reps { display: grid; gap: 8px; }
.ops-rep { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 10px; border-radius: 12px; background: #ffffff08; border-left: 4px solid #2fbf71; }
.ops-rep.bad { border-left-color: #e5534b; } .ops-rep img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.ops-rep p { margin: 4px 0; font-style: italic; }
.g-crime .g-call-in { --pc: #c0394b; background: linear-gradient(180deg, #1c1015, #0f0b10); }
.g-crime-fx { font-weight: 700; } .g-crime-fx.ok { color: #6ee7a3; } .g-crime-fx.bad { color: #ff9a9a; }
html[data-theme] .g-crime .g-call-in .g-crime-fx.ok { color: #6ee7a3; } html[data-theme] .g-crime .g-call-in .g-crime-fx.bad { color: #ff9a9a; }

/* 🎨 디자인 스튜디오 로고 팝업 · 회사 · 상품 로고 */
.lg-modal { max-width: 900px !important; }
.lg-modal .cs-tabs { flex-shrink: 0; }
.lg-hero { background: linear-gradient(135deg, #12223a, #1d3557 55%, #3a2d6b); }
.lg-hero h3 { color: #ffe9a8; }
.lg-hero [data-lg-x] { color: #fff; }
.lg-hero small, .lg-hero .dim { color: #c9d6ea !important; opacity: 1; }
.lg-tier { display: inline-block; align-self: flex-start; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 800; color: #10151f; background: #9fb3c8; }
.lg-tier.t1 { background: #5ec8ff; }
.lg-tier.t2 { background: linear-gradient(90deg, #f0b90b, #ffdf6e); }
.lg-preview { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; margin-bottom: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); }
.lg-photo { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 6px 22px rgba(0,0,0,.35), inset 0 0 0 1px #f0b90b55; }
.lg-photo img { width: 100%; height: 100%; object-fit: contain; display: block; animation: dxIn .35s ease-out; }
.lg-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lg-info h4 { margin: 0; font-size: 21px; }
.lg-info p { margin: 0; }
.lg-modal .dx-buy.lg-sure { background: #e5534b; border-color: #e5534b; color: #fff; }
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(104px, 100%), 1fr)); gap: 8px; }
.lg-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); color: var(--text); text-align: center; cursor: pointer; font: inherit; transition: transform .12s ease, border-color .12s ease; }
.lg-card:hover { border-color: #f0b90b99; transform: translateY(-2px); }
.lg-card.on { border-color: #f0b90b; box-shadow: 0 0 0 2px #f0b90b55; }
.lg-thumb { aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: #fff; }
.lg-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lg-card b { font-size: 12px; line-height: 1.3; }
.lg-card small { font-size: 11px; opacity: .8; }
.lg-card em { position: absolute; top: 9px; right: 9px; padding: 1px 6px; border-radius: 8px; background: #2fbf71; color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; }
.lg-dot { position: absolute; top: 10px; left: 10px; width: 9px; height: 9px; border-radius: 50%; background: #9fb3c8; box-shadow: 0 0 0 2px #fff; }
.lg-dot.t1 { background: #5ec8ff; }
.lg-dot.t2 { background: #f0b90b; }
.lg-empty { padding: 24px; text-align: center; }
.lg-own { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.lg-own span { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 64px; }
.lg-own img { width: 52px; height: 52px; border-radius: 10px; background: #fff; object-fit: contain; }
.lg-own small { font-size: 10.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 64px; }
.lg-all { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: linear-gradient(90deg, #f0b90b1f, transparent); border: 1px solid #f0b90b55; }
.lg-all > div { display: flex; gap: 6px; margin-left: auto; }
.lg-all select, .lg-all input, .lg-slot select, .lg-bld select, .lg-price input { padding: 5px 8px; border-radius: 8px; background: var(--bg2, #10151f); color: var(--text); border: 1px solid var(--line2); font: inherit; font-size: 13px; }
.lg-all input { width: 80px; }
.lg-slots { display: grid; gap: 8px; margin-bottom: 12px; }
.lg-slot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); }
.lg-slot > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lg-slot small { font-size: 11.5px; }
.lg-sub { margin: 6px 0 8px; }
.lg-blds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 6px; }
.lg-bld { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--line2); }
.lg-bld img, .lg-bld .lg-none { width: 26px; height: 26px; flex-shrink: 0; border-radius: 6px; background: #fff; object-fit: contain; }
.lg-bld .lg-none { background: transparent; border: 1px dashed var(--line2); }
.lg-bld span { flex: 1; min-width: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-bld select { max-width: 130px; }
.lg-prices { display: grid; gap: 6px; }
.lg-price { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--line2); }
.lg-price img { width: 34px; height: 34px; border-radius: 8px; background: #fff; object-fit: contain; }
.lg-price > span { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.lg-price > span small { flex-basis: 100%; font-size: 11px; }
.lg-price input { width: 130px; }
.co-logo { width: 18px; height: 18px; margin-right: 5px; vertical-align: -4px; border-radius: 4px; background: #fff; object-fit: contain; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.co-logo.big { width: 28px; height: 28px; vertical-align: -8px; border-radius: 7px; }
.st-ic .co-logo.big { width: 34px; height: 34px; margin: 0; vertical-align: middle; }
.co-logo-note { font-size: 11.5px; color: #f0b90b; font-weight: 700; }
@media (max-width: 640px) {
  .lg-preview { grid-template-columns: 1fr; }
  .lg-photo { max-width: 200px; margin: 0 auto; }
  .lg-slot { flex-direction: column; align-items: stretch; }
  .lg-all > div { margin-left: 0; width: 100%; }
}

/* ── 🎭 돌발 NPC 팝업 ── */
.g-npc-pop .g-call-in { padding: 0 0 16px; overflow: hidden; }
.g-npc-pop-art { position: relative; margin: 0; aspect-ratio: 480 / 312; background: #0b0f1a; }
.g-npc-pop-art > img:first-child { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-npc-pop-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #121726 100%); pointer-events: none; }
.g-npc-pop-art figcaption { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--pc, #f0b90b); color: #10131d; font-size: 12px; font-weight: 800; box-shadow: 0 2px 10px #0006; }
.g-npc-pop-star { position: absolute; right: 12px; bottom: -14px; z-index: 1; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--pc, #f0b90b); background: #1d2335; box-shadow: 0 4px 14px #0008; }
.g-npc-pop h3 { margin: 6px 16px 0; font-size: 19px; color: var(--pc, #f0b90b); }
.g-npc-pop h3:focus { outline: none; }
.g-npc-pop .g-call-line { margin: 8px 16px 10px; }
.g-npc-pop-body { padding: 0 16px; }
.g-npc-pop-choices { display: grid; gap: 7px; }
.g-npc-pop-choice { display: grid; gap: 2px; width: 100%; padding: 9px 12px; border: 1px solid #ffffff24; border-radius: 12px; background: #ffffff0d; color: #f3efe4; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.g-npc-pop-choice:hover:not(:disabled), .g-npc-pop-choice:focus-visible { border-color: var(--pc, #f0b90b); background: color-mix(in srgb, var(--pc, #f0b90b) 16%, transparent); outline: none; }
.g-npc-pop-choice:active:not(:disabled) { transform: scale(.98); }
.g-npc-pop-choice:disabled { opacity: .55; cursor: default; }
.g-npc-pop-choice b { font-size: 14px; }
.g-npc-pop-choice small { color: #b8bccb; font-size: 12px; line-height: 1.4; }
.g-npc-pop-timer { height: 5px; margin: 12px 0 5px; border-radius: 99px; background: #ffffff1a; overflow: hidden; }
.g-npc-pop-timer i { display: block; height: 100%; background: var(--pc, #f0b90b); transform-origin: left; transition: transform .25s linear; }
.g-npc-pop-left { margin: 0; color: #9aa0b4; font-size: 12px; }
.g-npc-pop .g-call-error { margin: 8px 0 0; }
.g-npc-pop-result { margin: 4px 0 12px; padding: 10px 12px; border-radius: 12px; background: #2fbf7120; border: 1px solid #2fbf7166; line-height: 1.5; }
.g-npc-pop-bad .g-npc-pop-result { background: #e5534b1f; border-color: #e5534b66; }
.g-npc-pop .g-call-btns { display: flex; justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) { .g-npc-pop-timer i, .g-npc-pop-choice { transition: none; } }


/* ── 👥 본사 직원 채용 탭 · 📨 채용 제안 팝업 ── */
.hq-tabs { display: flex; gap: 6px; padding: 10px 18px 0; border-bottom: 1px solid var(--line2); }
.hq-tabs[hidden] { display: none; }
.hq-tab { padding: 8px 14px; border: 1px solid var(--line2); border-bottom: 0; border-radius: 12px 12px 0 0; color: var(--muted); background: var(--card2); font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
.hq-tab.on { color: #1a1406; background: linear-gradient(180deg, #ffd45a, #f0b90b); border-color: var(--gold); }
.hq-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hq-hire-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 12px; padding: 12px; border: 1px solid var(--gold); border-radius: 14px; background: rgba(240, 185, 11, .08); }
.hq-hire-cta b { display: block; font-size: 16px; }
.hq-hire-cta small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.hq-hire-btn { min-height: 46px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
.hq-hire-form { display: grid; gap: 8px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--line2); border-radius: 14px; background: var(--card2); }
.hq-hire-form label { display: grid; gap: 4px; font-weight: 800; font-size: 13px; }
.hq-hire-form input { width: 100%; box-sizing: border-box; }
.hq-hire-form > small { margin-top: -4px; font-size: 11px; }
.hq-hire-form .ct-acts { margin: 4px 0 0; }
.hq-hire-cost:not(:empty) { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 8px 10px; border-radius: 10px; background: rgba(240, 185, 11, .1); font-size: 13px; }
.hq-hire-cost b { color: var(--gold); }
.hq-hire-cost small { flex-basis: 100%; color: var(--muted); font-size: 11px; }
.hq-hire-list { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.hq-hire-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card2); }
.hq-hire-list li > div { min-width: 0; flex: 1 1 180px; overflow-wrap: anywhere; }
.hq-hire-list li small { display: block; color: var(--muted); font-size: 11px; }
.hq-hire-list li.st-accepted { border-color: rgba(58, 170, 110, .6); }
.hq-hire-list li.st-declined, .hq-hire-list li.st-canceled, .hq-hire-list li.st-expired { opacity: .62; }
.hq-hire-st { font-size: 12px; font-weight: 800; color: var(--gold); }
.hq-hire-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hq-hire-inline input { width: 96px; }
.hq-hire-inline span { color: var(--muted); font-size: 11px; }
.hq-hire-empty { padding: 18px 4px; color: var(--muted); }
.hq-body .hq-empty-note + .hq-section-title { margin-top: 16px; }
.job-offer-pop { max-width: min(440px, calc(100% - 24px)); }
.job-offer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.job-offer-ic { display: grid; place-items: center; flex: 0 0 52px; height: 52px; border-radius: 16px; background: linear-gradient(180deg, #ffd45a, #f0b90b); font-size: 26px; }
.job-offer-head small { color: var(--gold); font-weight: 800; font-size: 12px; }
.job-offer-head h3 { margin: 2px 0 0; font-size: 18px; }
.job-offer-terms { display: grid; gap: 6px; margin: 12px 0; }
.job-offer-terms > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--card2); }
.job-offer-terms dt { color: var(--muted); font-size: 13px; }
.job-offer-terms dd { margin: 0; text-align: right; font-size: 13px; }
.job-offer-terms dd b { color: var(--gold); font-size: 18px; }
.job-offer-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.job-offer-btns { flex-wrap: wrap; }
.ct-raise { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; }
.ct-raise .ct-step-t { margin-top: 0; }
.ct-raise-form { display: grid; gap: 6px; }
.ct-raise-form label { display: grid; gap: 3px; font-size: 12px; font-weight: 800; }
.ct-raise-form input { width: 100%; box-sizing: border-box; }
.ct-raise-form .btn { justify-self: start; }
.ct-raise-diff, .raise-pop-diff { margin: 0; padding: 6px 8px; border-radius: 8px; background: rgba(240, 185, 11, .08); font-size: 12px; }
.ct-raise-wait { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.raise-pop-form { display: grid; gap: 6px; margin: 4px 0 8px; }
.raise-pop-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 800; }
.raise-pop-form label small { color: var(--muted); font-weight: 400; font-size: 11px; }
.raise-pop-form input { width: 100%; box-sizing: border-box; font-size: 16px; }
@media (max-width: 600px) {
  .hq-tabs { padding: 8px 12px 0; }
  .hq-hire-cta { grid-template-columns: 1fr; }
  .hq-hire-btn { width: 100%; }
}
/* ── 밝은 화면 글씨 자동 보정 (deploy/make-light-theme.py) ── */
html[data-theme="light"] .ex.upbit { color: #0446a9; }
html[data-theme="light"] .ex.bithumb { color: #a94a04; }
html[data-theme="light"] .badge.caution { color: #a97904; }
html[data-theme="light"] .comments li { color: var(--muted); }
html[data-theme="light"] .chip.warn { color: #a97904; }
html[data-theme="light"] .dna-common li { color: var(--muted); }
html[data-theme="light"] .badge-n { color: var(--text); }
html[data-theme="light"] .pgrade { color: var(--text); }
html[data-theme="light"] .pc-checks li.ok i { color: #1e905e; }
html[data-theme="light"] .pc-warn { color: #a97904; }
html[data-theme="light"] .st-a { color: #1e905e; }
html[data-theme="light"] .lev-desc { color: var(--muted); }
html[data-theme="light"] .cwarn-s { color: #a90421; }
html[data-theme="light"] .cok-s { color: #238a59; }
html[data-theme="light"] .wv-combo span, html[data-theme="light"] .wv-mtf span { color: var(--muted); }
html[data-theme="light"] .wv-mtf em { color: #a97904; }
html[data-theme="light"] .wv-table td { color: var(--text); }
html[data-theme="light"] .wv-st.watch { color: #a97904; }
html[data-theme="light"] .wv-notes li { color: var(--muted); }
html[data-theme="light"] .cvd-table td small { color: #a97904; }
html[data-theme="light"] .tp b { color: var(--text); }
html[data-theme="light"] .lq-mag { color: var(--muted); }
html[data-theme="light"] .nl-it { color: var(--text); }
html[data-theme="light"] .nl-it.imp span { color: #a9041d; }
html[data-theme="light"] .ar-side button.on.long { color: #a9041d; }
html[data-theme="light"] .ar-side button.on.short { color: #0441a9; }
html[data-theme="light"] .ar-submit { color: var(--text); }
html[data-theme="light"] .ar-tbl td { color: var(--text); }
html[data-theme="light"] .ar-tag.long { color: #a9041d; }
html[data-theme="light"] .ar-tag.short { color: #0441a9; }
html[data-theme="light"] .ar-modal-in p { color: var(--muted); }
html[data-theme="light"] .nl-it.fd.liq span { color: #a90421; }
html[data-theme="light"] .ar-ind label { color: var(--text); }
html[data-theme="light"] .ar-kind.close { color: #1e905e; }
html[data-theme="light"] .ar-kind.stop { color: #a97904; }
html[data-theme="light"] .nm-title { color: #a97904; }
html[data-theme="light"] .nmc-gold { color: #91721c !important; }
html[data-theme="light"] .nmc-mint { color: #1e905e !important; }
html[data-theme="light"] .sl-tag { color: #a9041d !important; }
html[data-theme="light"] .sl-empty b { color: #a9041d; }
html[data-theme="light"] .sl-text { color: var(--text); }
html[data-theme="light"] .sl-item.hot .sl-text { color: #a97904; }
html[data-theme="light"] .sh-shout b { color: #a9041d; }
html[data-theme="light"] .hr-col.shame .hr-ct { color: #a9041d; }
html[data-theme="light"] .rk-liq { color: #a9041d; }
html[data-theme="light"] .rk-liq.dead { color: var(--text); }
html[data-theme="light"] .om-free-tag { color: #1e905e; }
html[data-theme="light"] .ar-ck-b.long { color: #a9041d; }
html[data-theme="light"] .ar-ck-b.short { color: #0441a9; }
html[data-theme="light"] .om-msg-t { color: var(--text); }
html[data-theme="light"] .om-role.bk { color: var(--text); }
html[data-theme="light"] .ar-avail > b.flash-up { color: #1e905e; }
html[data-theme="light"] .om-rec.hi b { color: #1e905e; }
html[data-theme="light"] .om-glow::after { color: #a98304; }
html[data-theme="light"] .om-tier.t-silver { color: #3e4b5b; }
html[data-theme="light"] .om-tier.t-gold { color: #a98004; }
html[data-theme="light"] .om-tier.t-plat { color: #1d907d; }
html[data-theme="light"] .om-tier.t-diamond { color: #0449a9; }
html[data-theme="light"] .ar-mode button[data-mode="cross"].on { color: #a96504; }
html[data-theme="light"] .ar-cross-warn { color: #a96504; }
html[data-theme="light"] .ar-mtag.cross { color: #a96504; }
html[data-theme="light"] .sh-own { color: #1e905e; }
html[data-theme="light"] .om-cutin span { color: var(--text); }
html[data-theme="light"] .om-res-in.lose .om-cheer { color: #0447a9; }
html[data-theme="light"] .om-tier-pop.down .om-tp-k { color: #0447a9; }
html[data-theme="light"] .ar-modal-in.om-tier-pop.down .om-tp-k { color: #0447a9; }
html[data-theme="light"] .g-alert.grant .g-al-b b { color: #a97d04; }
html[data-theme="light"] .ex-buy, html[data-theme="light"] .ex-sell { color: var(--text); }
html[data-theme="light"] .rk-wr.hi { color: #1e905e; }
html[data-theme="light"] .ct-buildbar .btn.ghost { color: var(--text); }
html[data-theme="light"] .ct-help { color: var(--text); }
html[data-theme="light"] .cc-card.chief .cc-seat { color: #a96a04; }
html[data-theme="light"] .cc-title.t-estateking, html[data-theme="light"] .cc-title.t-tradeking, html[data-theme="light"] .cc-title.t-whale, html[data-theme="light"] .cc-title.t-finance { color: #a27e0c; }
html[data-theme="light"] .cc-title.t-biz, html[data-theme="light"] .cc-title.t-builder { color: #0b73a2; }
html[data-theme="light"] .ar-dsel .ar-dorder { color: var(--text); }
html[data-theme="light"] .om-cheer-tag { color: #a95504 !important; }
html[data-theme="light"] .om-puz-msg.win { color: #238b4f; }
html[data-theme="light"] .om-pz-n { color: #a27e0c; }
html[data-theme="light"] .ct-ysail { color: #044ba9; }
html[data-theme="light"] .cs-modal .bc-hint { color: #2b6e49; }
html[data-theme="light"] .ct-ai { color: #0449a9; }
html[data-theme="light"] .cs-jp-amt { color: #04a945; }
html[data-theme="light"] .cs-jp-amt small { color: #04a94a; }
html[data-theme="light"] .cs-jp-m { color: #a97f04; }
html[data-theme="light"] :where(.ar-chat, .ct-chat:not(.cc-overlay)) .cc-who { color: #0449a9; }
html[data-theme="light"] .cs-tier.vip span { color: #a27e0c; }
html[data-theme="light"] .bl-zsum b { color: #a98204; }
html[data-theme="light"] .bl-p i { color: var(--text); }
html[data-theme="light"] .cs-mlist b { color: #a27e0c; }
html[data-theme="light"] .al-dep { color: #0b73a2; }
html[data-theme="light"] .al-f { color: #a97d04; }
html[data-theme="light"] /* 베팅 칸 */
.cr-z { color: var(--text); }
html[data-theme="light"] /* ♠️ 홀덤: 돌려받은 웃돈(반환) · AI 테이블 게임비 표시 */
.hd-won small { color: #a97104; }
html[data-theme="light"] .company-stocks .stock-head h3 { color: #a97804; }
html[data-theme="light"] .company-stocks .stock-company span { color: #a97604; }
html[data-theme="light"] .company-stocks .stock-charts section > b { color: #a97604; }
html[data-theme="light"] .company-stocks .stock-charts section + section > b { color: #076ba6; }
html[data-theme="light"] .company-stocks .stock-position .positive { color: #228b59; }
html[data-theme="light"] .company-stocks .stock-position .negative, html[data-theme="light"] .company-stocks .stock-feedback.error { color: #a9041c; }
html[data-theme="light"] .company-stocks .stock-feedback { color: #238b58; }
html[data-theme="light"] .univ-checkout small { color: #a94304; }
html[data-theme="light"] .univ-feedback { color: #25894a; }
html[data-theme="light"] .univ-feedback.error { color: #a94304; }
/* ── 밝은 화면 글씨 자동 보정 끝 ── */

.ct-zombie-raid[hidden], .ct-zombie-raid [hidden], .admin-raid-actions [hidden], #zombieRaidTab[hidden] { display: none; }
.ct-zombie-raid {
  position: absolute;
  z-index: 11;
  top: 61px;
  left: 12px;
  width: min(296px, calc(100% - 62px));
  padding: 11px 12px;
  border: 1px solid #70865f;
  border-radius: 13px;
  background: #17251f;
  color: #f3f7e8;
  box-shadow: 0 5px 17px #07110dc4;
}
@media (min-width: 981px) {
  .ct-zombie-raid { top: calc(var(--hdr, 64px) + 68px); left: clamp(124px, 12vw, 172px); }
}
.ct-zombie-raid[data-phase="running"] { border-color: #bc8066; }
.ct-zombie-head, .ct-zombie-when { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ct-zombie-head h3 { font-size: 14px; margin: 0; color: inherit; }
.ct-zombie-raid button { min-height: 34px; }
.ct-zombie-when { margin-top: 4px; color: #d9e6c4; font-size: 12px; }
.ct-zombie-when b { font-variant-numeric: tabular-nums; }
.ct-zombie-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 12px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #52654f;
  color: #d9e6c4;
  font-size: 11px;
}
.ct-zombie-status b { color: #f3f7e8; font-variant-numeric: tabular-nums; }
.ct-zombie-raid p { margin: 6px 0 0; font-size: 11px; color: #d9e6c4; }
.ct-zombie-tower-status { color: #a8db8b; font-weight: 700; }
html[data-theme="light"] .ct-zombie-tower-status { color: #35601d; }
.admin-raid-panel h2 { margin: 0 0 4px; font-size: 14px; font-weight: 650; }
.admin-raid-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 12px;
  max-width: 600px;
  margin: 16px 0;
  padding: 13px 0;
  border-block: 1px solid var(--line2);
}
.admin-raid-counts dt { color: var(--dim); font-size: 12px; }
.admin-raid-counts dd { margin: 5px 0 0; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.admin-raid-actions { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.admin-raid-actions label { display: grid; gap: 5px; font-size: 12px; color: var(--text); }
.admin-raid-actions .btn { min-height: 40px; }

/* Map land prices */
.ct-filters .ct-demolition-watch[hidden] { display: none; }
.ct-filters .ct-demolition-watch {
  min-height: 34px;
  max-width: min(100%, 265px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffe0a0 !important;
  background: #29221c !important;
  border-color: #b78342 !important;
}
.ct-filters .ct-demolition-watch[data-phase="done"] {
  color: #b5ebcc !important;
  border-color: #70af88 !important;
  background: #1a2a26 !important;
}
.ct-demolition-watch::before { content: "◆"; color: #efb14f; margin-inline-end: 6px; }
.ct-demolition-watch[data-phase="done"]::before { content: "✓"; color: #a1e5bf; }
.ct-demolition-watch:focus-visible { outline: 2px solid #f6da98; outline-offset: 2px; }
@media (pointer: coarse) {
  .ct-filters .ct-demolition-watch { min-height: 44px; }
}
.ct-filters .ct-land-price-button { min-height: 34px; white-space: nowrap; }
.ct-land-price-row { flex: 0 0 100%; min-width: 0; pointer-events: none; }
.ct-land-price-row[hidden], .ct-land-price-legend output[hidden] { display: none; }
.ct-land-price-legend {
  display: inline-grid;
  pointer-events: auto;
  gap: 6px;
  width: min(100%, 372px);
  padding: 8px 10px;
  border: 1px solid rgba(255, 224, 137, .42);
  border-radius: 11px;
  background: #141a32;
  color: #f5f5ff;
  box-shadow: 0 3px 12px rgba(7, 10, 22, .35);
}
.ct-land-price-unit { color: #ccd1e7; font-size: 11px; line-height: 1.2; }
.ct-land-price-scale { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ct-land-price-scale b { display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1.35; }
.ct-land-price-scale b::before {
  content: '';
  flex: 0 0 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--ct-land-swatch);
}
.ct-land-price-scale small, .ct-land-price-legend output {
  color: #e4e7f5;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.ct-land-price-legend output { border-top: 1px solid rgba(230, 233, 250, .19); padding-top: 5px; }
@media (min-width: 981px) {
  .ct-land-price-row { padding-inline-start: 145px; }
}

.cs-prize { max-width: 600px; margin: 0 auto; padding: 14px; }
.cs-prize h4 { font-size: clamp(1.25rem, 5vw, 1.8rem); margin: 0 0 12px; }
.cs-prize label { display: block; margin: 8px 0 4px; }
.cs-prize progress { display: block; width: 100%; block-size: 12px; accent-color: #bf8f32; }
.cs-prize .btn { min-height: 42px; }
.cs-prize-result { font-variant-numeric: tabular-nums; margin-block: 12px; }
.cs-prize-fund { border-top: 1px solid rgb(156 132 85 / 45%); margin-top: 18px; padding-top: 8px; }
.cs-prize-fund input { width: min(100%, 230px); min-height: 40px; padding-inline: 8px; }

.tax-informant {
  width: min(530px, calc(100% - 24px));
  max-height: calc(100dvh - 20px);
  padding: 0;
  overflow: auto;
  border: 1px solid #6c6653;
  border-radius: 16px;
  background: #12171f;
  color: #f9f0df;
  box-shadow: 0 24px 64px #0009;
}
.tax-informant::backdrop { background: #080a10bb; }
.tax-informant [hidden] { display: none; }
.tax-scene { display: block; width: 100%; height: clamp(132px, 31dvh, 246px); object-fit: cover; object-position: center 32%; }
.tax-content { padding: clamp(14px, 4vw, 24px); }
.tax-content h2 { margin: 0 0 .6em; font-size: clamp(1.28rem, 5vw, 1.7rem); }
.tax-line { margin: 0 0 1em; line-height: 1.65; word-break: keep-all; }
.tax-content .btn.ghost { color: #f9f0df; border-color: #827662; }
.tax-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tax-actions .btn { min-height: 44px; }
.tax-informant :focus-visible { outline: 2px solid #ffdb80; outline-offset: 2px; }
.tax-feedback:not(:empty) { margin: .85em 0 0; color: #ffbe9d; }
.tax-feedback:empty { margin: 0; }
.prison-popup[data-pr-secret-bank] {
  position: fixed;
  inset: var(--pr-bank-y, 50dvh) auto auto var(--pr-bank-x, 50dvw);
  width: min(540px, calc(var(--pr-bank-width, 100dvw) - 24px));
  max-width: none;
  height: fit-content;
  max-height: calc(var(--pr-bank-height, 100dvh) - 24px);
  translate: -50% -50%;
  margin: 0;
}
.pr-secret-bank { margin-top: 12px; border-top: 1px solid var(--line2); padding-top: 12px; }
.pr-secret-bank h4 small { margin-inline-start: 6px; font-size: .75em; }
.pr-secret-bank p { overflow-wrap: anywhere; }
.prison-popup .pr-secret-bank .pr-form { grid-template-columns: minmax(0, 1fr) minmax(0, max-content); }
.pr-secret-bank input { width: 100%; min-width: 0; }
.pr-secret-bank .btn { min-height: 44px; }
.pr-secret-bank .pr-form + .pr-form { margin-top: 12px; }
.pr-secret-deposit { margin-top: 14px; }
.pr-secret-deposit summary { cursor: pointer; min-height: 44px; padding-block: 10px; }
@media (max-width: 480px) {
  .prison-popup .pr-secret-bank .pr-form { grid-template-columns: minmax(0, 1fr); }
  .pr-secret-bank .btn { justify-self: start; }
}
