/* 보탐이 v2 디자인 시스템 */

:root {
  --bg: #08070d;
  --bg-2: #0d0c14;
  --surface: #121119;
  --surface-2: #17161f;
  --surface-3: #1e1c28;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --ink: #f3f0ea;
  --ink-2: #d6d1dc;
  --muted: #9f98ad;
  --faint: #6c6679;
  --brand: #9b86ff;
  --brand-2: #b6a7ff;
  --brand-ink: #130f22;
  --brand-soft: rgba(155, 134, 255, .13);
  --ember: #ffb15a;
  --ember-soft: rgba(255, 177, 90, .12);
  --ok: #5fd39a;
  --ok-soft: rgba(95, 211, 154, .12);
  --warn: #f5c451;
  --warn-soft: rgba(245, 196, 81, .12);
  --bad: #ff7a7a;
  --bad-soft: rgba(255, 122, 122, .12);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .35);
  --side: 252px;
  --top: 64px;
  --tab: 64px;
  --max: 1240px;
  --font: Pretendard, "Pretendard Variable", "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 85% -12%, rgba(109, 90, 224, .2), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(255, 140, 70, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
svg[aria-hidden="true"] { width: 1.1em; height: 1.1em; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.03em; font-weight: 750; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
[hidden] { display: none !important; }
::selection { background: rgba(155, 134, 255, .35); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 앱 틀 ---------- */

.app { min-height: 100vh; }
.side {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--side);
  display: flex;
  flex-direction: column;
  background: rgba(10, 9, 16, .92);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.side-brand { display: flex; align-items: center; height: var(--top); padding: 0 20px; border-bottom: 1px solid var(--line); }
.side-brand img { height: 30px; width: auto; }
.side-close { position: absolute; top: 15px; right: 12px; }
.side-guild {
  margin: 14px 14px 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.side-guild small { display: block; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.side-guild b { display: block; margin-top: 2px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-guild .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.side-guild a { color: var(--brand-2); font-size: 12px; font-weight: 700; }
.side-nav { flex: 1; overflow-y: auto; padding: 8px 10px 16px; scrollbar-width: thin; }
.side-group { margin-top: 14px; }
.side-group > span { display: block; padding: 0 12px 6px; color: var(--faint); font-size: 11px; font-weight: 750; letter-spacing: .1em; }
.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
.side-link svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.side-link:hover { background: rgba(255, 255, 255, .04); color: var(--ink); }
.side-link.on { background: var(--brand-soft); color: var(--ink); }
.side-link.on svg { color: var(--brand); }
.side-link.on::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.side-link .lock { margin-left: auto; color: var(--faint); font-size: 11px; font-weight: 700; }
.side-foot { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.avatar {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #6d5ae0, #9b86ff);
  color: #fff; font-size: 13px; font-weight: 800;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-foot .who { min-width: 0; flex: 1; }
.side-foot b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot small { color: var(--faint); font-size: 11px; }
.side-foot a { color: var(--muted); font-size: 12px; font-weight: 650; }
.side-foot a:hover { color: var(--ink); }

.main { margin-left: var(--side); min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  height: var(--top);
  padding: 0 32px;
  background: rgba(8, 7, 13, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.topbar .crumb { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .crumb b { color: var(--ink); }
.topbar .spacer { flex: 1; }
.topbar .mlogo, .topbar .mmenu { display: none; }
.live { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(95, 211, 154, .15); }
.content { width: min(var(--max), 100%); margin: 0 auto; padding: 32px 32px 72px; }
.tabbar { display: none; }
.scrim { display: none; }

/* ---------- 페이지 머리 ---------- */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-head .eyebrow { margin-bottom: 8px; }
.page-head h1 { font-size: clamp(26px, 2.4vw, 34px); }
.page-head p { margin-top: 8px; color: var(--muted); max-width: 640px; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.eyebrow { display: flex; align-items: center; gap: 6px; color: var(--brand); font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow svg { width: 13px; height: 13px; }
.eyebrow.ember { color: var(--ember); }
.section { margin-top: 34px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font-size: 19px; }
.section-head p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.section-head a.more { color: var(--brand-2); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ---------- 카드 ---------- */

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 60%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
}
.card + .card { margin-top: 16px; }
.stack > .card + .card, .grid > .card + .card { margin-top: 0; }
.card.flat { background: var(--surface); }
.card.tight { padding: 16px; }
.card.pad0 { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { font-size: 16.5px; }
.card-head p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.card-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.card.accent { border-color: rgba(155, 134, 255, .35); background: linear-gradient(180deg, rgba(155, 134, 255, .1), transparent 55%), var(--surface); }
.card.danger-zone { border-color: rgba(255, 122, 122, .3); background: linear-gradient(180deg, rgba(255, 122, 122, .06), transparent 60%), var(--surface); }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.g-side-l { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 750; }
.right { text-align: right; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }

/* ---------- 수치 ---------- */

.stat { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); min-width: 0; }
.stat .label { color: var(--muted); font-size: 12.5px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .value small { margin-left: 3px; color: var(--muted); font-size: 14px; font-weight: 650; letter-spacing: 0; }
.stat .sub { color: var(--faint); font-size: 12.5px; }
.stat.brand .value { color: var(--brand-2); }
.stat.ember .value { color: var(--ember); }
.stat.ok .value { color: var(--ok); }
.stat.bad .value { color: var(--bad); }
.meter-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.meter-strip > div { padding: 18px 20px; border-left: 1px solid var(--line); min-width: 0; }
.meter-strip > div:first-child { border-left: 0; }
.meter-strip span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 650; }
.meter-strip strong { display: block; margin-top: 4px; font-size: 26px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.meter-strip strong small { margin-left: 2px; color: var(--muted); font-size: 14px; font-weight: 650; }
.meter-strip em { display: block; margin-top: 2px; color: var(--faint); font-size: 12px; font-style: normal; }

.progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* ---------- 버튼 ---------- */

.btn, .button, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 14px; font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  text-decoration: none;
}
.btn:hover, .button:hover { background: var(--brand-2); }
.btn:active, .button:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.ghost, .button.secondary, .btn.secondary { background: rgba(255, 255, 255, .03); border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover, .button.secondary:hover, .btn.secondary:hover { border-color: rgba(155, 134, 255, .6); background: rgba(155, 134, 255, .07); }
.btn.quiet { background: transparent; color: var(--muted); padding: 0 10px; }
.btn.quiet:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.btn.danger, .button.danger { background: var(--bad-soft); border-color: rgba(255, 122, 122, .35); color: #ffb3b3; }
.btn.danger:hover, .button.danger:hover { background: rgba(255, 122, 122, .2); }
.btn.ok { background: var(--ok-soft); border-color: rgba(95, 211, 154, .35); color: #9ff0c6; }
.btn.ember { background: var(--ember); color: #1e1206; }
.btn.sm, .button.small, .btn.small { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
.btn.xs { min-height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
.btn.lg { min-height: 50px; padding: 0 22px; border-radius: 13px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- 입력 ---------- */

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .label-text { color: var(--ink-2); font-size: 13px; font-weight: 700; }
.field .hint, .hint { color: var(--faint); font-size: 12px; line-height: 1.5; }
input[type=text], input[type=number], input[type=date], input[type=datetime-local], input[type=time], input[type=search], input[type=email], input[type=password], input[type=url], input:not([type]), select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--ink);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { padding: 11px 13px; min-height: 96px; line-height: 1.55; resize: vertical; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239f98ad' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: rgba(155, 134, 255, .75); box-shadow: 0 0 0 3px rgba(155, 134, 255, .16); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=date]::-webkit-calendar-picker-indicator, input[type=datetime-local]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator { filter: invert(.75); cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex: none; }
input[type=file] { width: 100%; padding: 9px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--muted); font-size: 13px; }
input[type=file]::file-selector-button { margin-right: 10px; padding: 7px 12px; border: 0; border-radius: 8px; background: var(--surface-3); color: var(--ink); font-weight: 700; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--brand); }
.check { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.toolbar .field { min-width: 150px; }
.toolbar .field.grow { flex: 1; min-width: 200px; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.input-sm { min-height: 34px !important; padding: 0 10px !important; font-size: 13px !important; border-radius: 8px !important; }
.input-num { width: 86px !important; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 표 ---------- */

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
.card > .table-wrap:last-child { margin-bottom: -4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { position: sticky; top: 0; padding: 11px 14px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .02em; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
tbody td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .018); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.nowrap, th.nowrap { white-space: nowrap; }
td .sub { display: block; margin-top: 2px; color: var(--faint); font-size: 12px; }
td.actions { white-space: nowrap; text-align: right; }
td.actions form { display: inline-block; margin: 0 0 0 4px; }
tr.dim td { opacity: .5; }
.table-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.table-card thead th { background: var(--surface-2); }

/* ---------- 목록 ---------- */

.list { display: grid; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); min-width: 0; }
.list-item:first-child { border-top: 0; padding-top: 4px; }
.list-item .main-col { flex: 1; min-width: 0; }
.list-item b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item small { display: block; color: var(--muted); font-size: 12.5px; }
.list-item .end { text-align: right; flex: none; }
.rank-no { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--surface-3); color: var(--ink-2); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-no.r1 { background: linear-gradient(140deg, #f8d77a, #c89a35); color: #2a1b02; }
.rank-no.r2 { background: linear-gradient(140deg, #e3e7ef, #9aa3b4); color: #1a1d24; }
.rank-no.r3 { background: linear-gradient(140deg, #e6a877, #a8643a); color: #2a1306; }

/* ---------- 표시 ---------- */

.badge, .chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink-2); font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1; }
.badge.brand { background: var(--brand-soft); color: var(--brand-2); }
.badge.ember { background: var(--ember-soft); color: var(--ember); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.line { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.flash-stack { display: grid; gap: 8px; margin-bottom: 20px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border: 1px solid rgba(155, 134, 255, .3); border-radius: var(--r); background: rgba(155, 134, 255, .08); color: var(--ink); font-size: 14px; }
.flash::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--brand); }
.notice { padding: 13px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; }
.notice.warn { border-color: rgba(245, 196, 81, .35); background: var(--warn-soft); color: #f7dc95; }
.notice.bad { border-color: rgba(255, 122, 122, .35); background: var(--bad-soft); color: #ffc0c0; }
.notice.ok { border-color: rgba(95, 211, 154, .35); background: var(--ok-soft); color: #b5f2d3; }
.notice b { color: var(--ink); }
.empty { padding: 38px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.empty b { display: block; margin-bottom: 4px; color: var(--ink-2); font-size: 15px; }
.empty .ico { width: 44px; height: 44px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-3); color: var(--muted); }
.empty .ico svg { width: 22px; height: 22px; }
td.empty { padding: 34px 14px; }
.kbd { display: inline-block; padding: 1px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); font-size: 12px; font-weight: 700; }
.divider { height: 1px; margin: 18px 0; background: var(--line); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 탭 ---------- */

.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs a.on, .tabs button.on { background: var(--surface-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-2); }
.seg a, .seg button, .seg label { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.seg .on, .seg input:checked + span { background: var(--surface-3); color: var(--ink); }

/* ---------- 페이지 넘김 ---------- */

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pager a:hover { border-color: var(--line-2); color: var(--ink); }
.pager .on { background: var(--brand-soft); border-color: rgba(155, 134, 255, .45); color: var(--ink); }

/* ---------- 보스 ---------- */

.boss-hero {
  position: relative;
  min-height: 360px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  isolation: isolate;
}
.boss-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; z-index: -2; }
.boss-hero.is-text > img { object-fit: contain; object-position: right center; background: #0c0e14; }
.boss-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 7, 13, .96) 0%, rgba(8, 7, 13, .78) 38%, rgba(8, 7, 13, .15) 72%), linear-gradient(0deg, rgba(8, 7, 13, .7), transparent 45%); }
.boss-hero.is-text::after { background: linear-gradient(90deg, rgba(8, 7, 13, .98) 0%, rgba(8, 7, 13, .88) 42%, rgba(8, 7, 13, .35) 78%), linear-gradient(0deg, rgba(8, 7, 13, .55), transparent 50%); }
.boss-hero .inner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 360px; padding: 34px; max-width: 560px; }
.boss-hero .clock { font-size: clamp(48px, 5.4vw, 76px); font-weight: 800; letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.boss-hero h2 { font-size: 26px; }
.boss-hero .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.boss-hero.no-art::after { background: radial-gradient(600px 300px at 80% 20%, rgba(155, 134, 255, .22), transparent 60%); }
.boss-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.boss-tile { scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.boss-tile .art { position: relative; aspect-ratio: 4 / 3.3; background: radial-gradient(160px 120px at 50% 40%, rgba(155, 134, 255, .2), transparent 70%), var(--surface-2); overflow: hidden; }
.boss-tile .art img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.boss-tile .art.is-text img { object-fit: contain; object-position: center; background: #0c0e14; }
.boss-tile .art .order { position: absolute; top: 10px; left: 10px; }
.boss-tile .art .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(182, 167, 255, .55); }
.boss-tile .art .glyph svg { width: 44px; height: 44px; }
.boss-tile .body { padding: 12px 14px 14px; display: grid; gap: 3px; }
.boss-tile .body b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boss-tile .body .cd { color: var(--ember); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.boss-tile .body small { color: var(--muted); font-size: 12px; }
.boss-tile.soon .body .cd { color: #ffcf8f; }
.boss-tile.now { border-color: rgba(255, 177, 90, .5); }
.boss-rail.fill { grid-auto-columns: minmax(180px, 1fr); }
.boss-hero.now .clock { color: var(--ember); }
.boss-hero.soon .clock { color: #ffcf8f; }

/* ---------- 보스 타이머 ---------- */

.push-ack { position: fixed; z-index: 90; top: 76px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid rgba(255, 177, 90, .5); border-radius: var(--r-lg); background: rgba(30, 20, 12, .96); box-shadow: var(--shadow); backdrop-filter: blur(12px); animation: ack-pulse 1.6s ease-in-out infinite; }
.push-ack strong { display: block; color: var(--ember); font-size: 14px; }
.push-ack #bossPushAckText { font-size: 14px; color: var(--ink); }
.push-ack #bossPushAckStatus { color: var(--muted); margin-top: 2px; }
.push-ack-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--ember-soft); color: var(--ember); }
.push-ack-ico svg { width: 20px; height: 20px; }
@keyframes ack-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 177, 90, .12), var(--shadow); } }
.push-card h3 { display: flex; align-items: center; gap: 8px; }
.push-card #push-status { min-height: 20px; }
.push-indicator { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); font-size: 12.5px; font-weight: 750; }
.push-indicator .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.push-indicator.is-active { color: var(--ok); border-color: rgba(95, 211, 154, .4); background: var(--ok-soft); }
.push-indicator.is-stopped { color: var(--bad); border-color: rgba(255, 122, 122, .35); background: var(--bad-soft); }
.sched-head, .sched-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px 56px; align-items: center; gap: 12px; padding: 0 18px; }
.sched-head { height: 42px; background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 750; }
.sched-head span:last-child { text-align: center; }
.sched-row { min-height: 66px; border-bottom: 1px solid var(--line); }
.sched-row:last-child { border-bottom: 0; }
.sched-row:hover { background: rgba(255, 255, 255, .018); }
.sched-row.dim .sched-name b { color: var(--muted); }
.sched-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sched-name img, .sched-name .thumb { width: 42px; height: 42px; flex: none; border-radius: 11px; object-fit: cover; object-position: center 15%; }
.sched-name .thumb { display: grid; place-items: center; background: var(--surface-3); color: var(--faint); }
.sched-name .thumb svg { width: 20px; height: 20px; }
.sched-name div { min-width: 0; }
.sched-name b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-name small { display: block; color: var(--faint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-cd { color: var(--ember); font-weight: 800; font-variant-numeric: tabular-nums; }
.sched-at { color: var(--ink-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.bell-btn { justify-self: center; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(155, 134, 255, .45); border-radius: 11px; background: var(--brand-soft); color: var(--brand-2); }
.bell-btn svg { width: 18px; height: 18px; }
.bell-btn.is-muted { border-color: var(--line-2); background: transparent; color: var(--faint); }
.bell-btn.is-muted svg { opacity: .55; }
.bell-btn[disabled] { opacity: .5; }

/* ---------- 아이템 ---------- */

details.disclose > summary { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-2); font-size: 13.5px; font-weight: 700; cursor: pointer; list-style: none; }
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose > summary::after { content: "▾"; font-size: 11px; transition: transform .15s; }
details.disclose[open] > summary::after { transform: rotate(180deg); }
.item-row { border-bottom: 1px solid var(--line); }
.item-row:last-child { border-bottom: 0; }
.item-row > summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.item-row > summary::-webkit-details-marker { display: none; }
.item-row > summary:hover { background: rgba(255, 255, 255, .018); }
.item-row[open] > summary { background: rgba(155, 134, 255, .05); }
.item-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand-2); }
.item-ico svg { width: 19px; height: 19px; }
.item-main { flex: 1; min-width: 0; }
.item-main b { display: block; overflow-wrap: anywhere; }
.item-main small { display: block; color: var(--faint); font-size: 12.5px; }
.item-more { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.item-more::after { content: " ▾"; }
.item-row[open] .item-more::after { content: " ▴"; }
.item-detail { padding: 4px 18px 18px 72px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 16px; margin-top: 10px; font-size: 13.5px; }
.people em { color: var(--brand-2); font-style: normal; font-size: 12.5px; margin-left: 4px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--muted); font-size: 13.5px; font-weight: 650; }
.back-link:hover { color: var(--ink); }
.back-link svg { width: 15px; height: 15px; transform: rotate(180deg); }
.meter { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--ember)); }
.avatar.lg { width: 52px; height: 52px; border-radius: 16px; font-size: 20px; }
.kv dt, .kv dd { padding: 4px 0; }
.auc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.auc-card { display: flex; flex-direction: column; align-items: stretch; width: 100%; min-width: 0; height: auto; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); font-size: 15px; transition: border-color .15s, transform .15s; }
.auc-card:hover { border-color: rgba(155, 134, 255, .5); transform: translateY(-2px); }
.auc-card.is-open { border-color: rgba(255, 177, 90, .3); background: linear-gradient(180deg, rgba(255, 177, 90, .06), transparent 50%), var(--surface); }
.auc-top h3 { margin-top: 12px; font-size: 18px; overflow-wrap: anywhere; }
.auc-top small { color: var(--muted); font-size: 12.5px; }
.auc-price small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.auc-price strong { font-size: 28px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.auc-price em { margin-left: 4px; color: var(--muted); font-style: normal; font-size: 13px; font-weight: 700; }
.auc-timer { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--ember-soft); color: var(--muted); font-size: 12.5px; }
.auc-timer strong { color: var(--ember); font-size: 17px; font-variant-numeric: tabular-nums; }
.auc-timer.urgent strong { color: var(--bad); }
.auc-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--brand-2); font-size: 13px; font-weight: 750; }
.auc-go svg { width: 15px; height: 15px; }
.auc-hero h1 { font-size: clamp(24px, 2.4vw, 30px); overflow-wrap: anywhere; }
.auc-hero-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.auc-price.big { text-align: right; }
.auc-price.big strong { font-size: 40px; }
.auc-countdown { display: grid; justify-items: center; gap: 4px; margin-top: 20px; padding: 18px; border-radius: var(--r); border: 1px solid rgba(255, 177, 90, .35); background: var(--ember-soft); text-align: center; }
.auc-countdown span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.auc-countdown strong { color: var(--ember); font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.auc-countdown small { color: var(--muted); font-size: 12.5px; }
.auc-countdown.urgent strong, .auc-countdown.ended strong { color: var(--bad); }
.auc-countdown.ended { border-color: rgba(255, 122, 122, .4); background: var(--bad-soft); }
.picker-results { display: grid; gap: 4px; max-height: 230px; overflow: auto; color: var(--muted); font-size: 13px; }
.picker-results button { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg-2); color: var(--ink); text-align: left; font-size: 13.5px; }
.picker-results button:hover { border-color: rgba(155, 134, 255, .6); }
.steps-mini { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps-mini li { flex: 1; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--faint); font-size: 13px; font-weight: 700; text-align: center; }
.steps-mini li.now { border-color: rgba(255, 177, 90, .5); color: var(--ember); }
.steps-mini li.done { border-color: rgba(95, 211, 154, .4); color: var(--ok); background: var(--ok-soft); }
.steps-mini li.done::before { content: "✓ "; }

/* ---------- 홈 ---------- */

.podium { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--r); background: radial-gradient(220px 140px at 20% 50%, rgba(255, 177, 90, .14), transparent 70%), var(--surface-2); border: 1px solid var(--line); }
.podium img { width: 84px; height: 84px; object-fit: contain; flex: none; filter: drop-shadow(0 8px 18px rgba(255, 177, 90, .25)); }
.podium strong { display: block; margin-top: 6px; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium small { color: var(--muted); font-size: 13px; }
.podium > div { min-width: 0; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-grid a { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(255, 255, 255, .02); color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.quick-grid a:hover { border-color: rgba(155, 134, 255, .55); color: var(--ink); }
.podium-row { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 14px; }
.podium-card { position: relative; display: grid; justify-items: center; gap: 8px; padding: 22px 18px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.podium-card.p1 { order: 2; padding-top: 28px; border-color: rgba(255, 177, 90, .4); background: radial-gradient(260px 160px at 50% 0%, rgba(255, 177, 90, .16), transparent 70%), var(--surface); }
.podium-card.p2 { order: 1; }
.podium-card.p3 { order: 3; }
.podium-card img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35)); }
.podium-card.p1 img { width: 118px; height: 118px; filter: drop-shadow(0 10px 22px rgba(255, 177, 90, .3)); }
.podium-card .rank-no { position: absolute; top: 14px; left: 14px; }
.podium-card strong { max-width: 100%; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-stats { display: flex; gap: 18px; color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; }
.podium-stats small { display: block; color: var(--faint); font-size: 11.5px; font-weight: 700; }
tr.mine td { background: rgba(155, 134, 255, .07); }
.rank-table td { padding-top: 11px; padding-bottom: 11px; }
.quick-grid svg { width: 17px; height: 17px; color: var(--brand-2); flex: none; }

/* ---------- 모달 ---------- */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(4, 3, 8, .72); backdrop-filter: blur(6px); }
.modal-card { width: min(440px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.modal-card img.icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 16px; }
.modal-card h3 { font-size: 19px; }
.modal-card p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.modal-card .guide { display: block; margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.modal-card .guide span { display: block; padding: 8px; color: var(--muted); font-size: 12px; }
.modal-card .btn { margin-top: 16px; width: 100%; }
.modal-close { position: absolute; top: 12px; right: 12px; }

/* ---------- 손님 화면 ---------- */

.guest { min-height: 100vh; }
.guest-flash { width: min(560px, calc(100% - 32px)); margin: 20px auto 0; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; }
.gate-card { width: min(520px, 100%); padding: 34px; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(155, 134, 255, .07), transparent 40%), var(--surface); box-shadow: var(--shadow); }
.gate-card .logo { height: 30px; width: auto; margin-bottom: 26px; }
.gate-card h1 { font-size: 26px; }
.gate-card > p { margin-top: 10px; color: var(--muted); }
.gate-card .btn-row { margin-top: 24px; }
.contact-box { display: grid; gap: 10px; justify-items: center; margin-top: 22px; padding: 18px 16px; border: 1px solid rgba(254, 229, 0, .28); border-radius: var(--r); background: rgba(254, 229, 0, .06); text-align: center; }
.contact-box strong { font-size: 14.5px; }
.contact-box span { color: var(--muted); font-size: 13.5px; line-height: 1.45; max-width: 34ch; }
.contact-box .btn { margin-top: 4px; }
.btn-kakao { background: #FEE500; color: #191919; border-color: #FEE500; font-weight: 800; }
.btn-kakao:hover { filter: brightness(.96); color: #191919; }
.btn-kakao svg { color: #191919; }
.gate-list { display: grid; gap: 10px; margin-top: 22px; }
.gate-option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); text-align: left; color: var(--ink); transition: border-color .15s, background .15s; }
.gate-option:hover { border-color: rgba(155, 134, 255, .6); background: rgba(155, 134, 255, .06); }
.gate-option .gi { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-2); font-weight: 800; overflow: hidden; }
.gate-option .gi.has-img { padding: 0; background: #1a1824; }
.gate-option .gi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gate-option b { display: block; font-size: 15px; }
.gate-option small { display: block; color: var(--muted); font-size: 12.5px; }
.gate-option .go { margin-left: auto; color: var(--faint); }

/* ---------- 반응형: 태블릿 ---------- */

@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side { grid-template-columns: minmax(0, 1fr) 320px; }
  .meter-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meter-strip > div:nth-child(3) { border-left: 0; }
  .meter-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- 반응형: 모바일 ---------- */

@media (max-width: 1023px) {
  body { font-size: 15px; background-attachment: scroll; }
  .side {
    width: min(86vw, 320px);
    transform: translateX(-102%);
    transition: transform .22s ease;
    box-shadow: var(--shadow);
  }
  body.nav-open .side { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(4, 3, 8, .6); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .main { margin-left: 0; }
  .topbar { height: 58px; padding: 0 12px 0 16px; gap: 10px; }
  .topbar .crumb { display: none; }
  .topbar .mlogo { display: block; }
  .topbar .mlogo img { height: 24px; width: auto; }
  .topbar .mmenu { display: inline-grid; }
  .topbar .mguild { display: block; min-width: 0; color: var(--muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .live { display: none; }
  a.auc-card { display: flex; height: auto; }
  .content { padding: 20px 16px calc(var(--tab) + 36px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tab) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(10, 9, 16, .94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; color: var(--faint); font-size: 11px; font-weight: 700; }
  .tabbar svg { width: 21px; height: 21px; }
  .tabbar .on { color: var(--ink); }
  .tabbar .on svg { color: var(--brand); }
  .page-head { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 20px; }
  .page-head h1 { font-size: 25px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .g2, .g3, .g-side, .g-side-l { grid-template-columns: minmax(0, 1fr); }
  .grid > * { min-width: 0; }
  .boss-rail.fill { grid-auto-columns: 46%; }
  .form-grid, .form-grid.g3, .form-grid.g4 { grid-template-columns: 1fr; }
  .card { padding: 18px 16px; border-radius: 16px; }
  .card-head { flex-wrap: wrap; gap: 10px; }
  .card-head.col { flex-direction: column; }
  .section { margin-top: 28px; }
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar .field, .toolbar .field.grow { min-width: 0; }
  .toolbar .field.grow, .toolbar .full { grid-column: 1 / -1; }
  .toolbar .btn { width: 100%; }
  .stat { padding: 15px 16px; }
  .stat .value { font-size: 24px; }
  .meter-strip > div { padding: 15px 16px; }
  .meter-strip strong { font-size: 22px; }
  .boss-hero, .boss-hero .inner { min-height: 420px; }
  .boss-hero::after { background: linear-gradient(0deg, rgba(8, 7, 13, .97) 8%, rgba(8, 7, 13, .7) 42%, rgba(8, 7, 13, .05) 75%); }
  .boss-hero .inner { padding: 22px; justify-content: flex-end; }
  .boss-rail { grid-auto-columns: 46%; }
  thead th { padding: 10px 12px; }
  tbody td { padding: 12px; }
  .gate-card { padding: 26px 20px; }
  .sched-row { grid-template-columns: minmax(0, 1fr) auto 40px; grid-template-areas: "name cd bell" "name at bell"; row-gap: 2px; padding: 10px 14px; }
  .sched-name { grid-area: name; }
  .sched-cd { grid-area: cd; text-align: right; font-size: 14px; }
  .sched-at { grid-area: at; text-align: right; color: var(--faint); font-size: 12px; }
  .bell-btn { grid-area: bell; }
  .push-ack { top: 66px; }
  .item-row > summary { flex-wrap: wrap; gap: 8px 12px; padding: 13px 14px; }
  .item-main { flex-basis: calc(100% - 56px); }
  .item-row > summary .badge { margin-left: 52px; }
  .item-more { margin-left: auto; }
  .item-detail { padding: 4px 14px 16px; }
  .hide-m { display: none !important; }
  .m-stack { display: grid !important; grid-template-columns: 1fr !important; }
}
@media (min-width: 1024px) {
  .hide-d { display: none !important; }
}
@media (max-width: 520px) {
  .g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .boss-rail, .boss-rail.fill { grid-auto-columns: 62%; }
  .podium-row { gap: 8px; }
  .podium-card { padding: 16px 8px 12px; }
  .podium-card img { width: 60px; height: 60px; }
  .podium-card.p1 img { width: 76px; height: 76px; }
  .podium-card .rank-no { top: 8px; left: 8px; width: 24px; height: 24px; font-size: 12px; }
  .podium-card strong { font-size: 14px; }
  .podium-stats { flex-direction: column; gap: 4px; font-size: 13px; }
  .btn.lg { min-height: 48px; }
  /* 좁은 화면에서 표를 카드처럼 쌓는다 */
  table.stack-m thead { display: none; }
  table.stack-m, table.stack-m tbody, table.stack-m tr, table.stack-m td { display: block; width: 100%; }
  table.stack-m tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.stack-m tbody tr:last-child { border-bottom: 0; }
  table.stack-m td { padding: 3px 0; border: 0; text-align: left !important; }
  table.stack-m td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 76px; color: var(--faint); font-size: 12px; font-weight: 700; }
  table.stack-m td.actions { padding-top: 8px; }
  table.stack-m td.actions form:first-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
