:root,
:root[data-theme='dark'] {
  --bg: #0b0d12;
  --surface: #12151c;
  --surface-2: #181c25;
  --surface-3: #1f2430;
  --line: #1f2430;
  --line-2: #2a303c;
  --ink: #eef0f4;
  --ink-soft: #a3abb8;
  --ink-mute: #8d95a4;
  --accent: #ffc63a;
  --accent-ink: #14110a;
  --up: #43d18f;
  --tier-s: #ffc63a;
  --tier-a: #ff8a4c;
  --tier-b: #4b8dff;
  --tier-c: #6b7383;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #f0f2f6;
  --surface-3: #e6e9ef;
  --line: #e3e6ec;
  --line-2: #d5dae3;
  --ink: #12161d;
  --ink-soft: #4d5564;
  --ink-mute: #5d6574;
  --accent: #f0ad00;
  --accent-ink: #14110a;
  --up: #12804d;
  --tier-c: #6b7383;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
img.broken { visibility: hidden; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--ink-mute); font-size: 13px; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.25; }
h1 small, h2 small { font-size: 0.55em; font-weight: 600; color: var(--ink-mute); letter-spacing: 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 58px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.04em; white-space: nowrap; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 11px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current='page'] { color: var(--ink); background: var(--surface-3); }
.lang { font-size: 13px; font-weight: 700; color: var(--ink-soft); text-decoration: none; padding: 8px 4px; white-space: nowrap; }
.theme-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-soft); display: grid; place-items: center; cursor: pointer; flex: none; }
@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; gap: 6px 12px; padding-top: 8px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -6px; padding-bottom: 6px; }
  .lang { margin-left: auto; }
}
.sample-banner { background: color-mix(in srgb, var(--accent) 16%, var(--bg)); color: var(--ink); font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--line); }

main { padding-bottom: 40px; }

/* hero */
.hero { padding: 26px 0 8px; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--ink-soft); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.hero h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; margin: 12px 0 6px; letter-spacing: -0.045em; }
.lead { color: var(--ink-soft); margin: 0 0 16px; max-width: 640px; }

.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); padding: 3px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); margin: 6px 0 4px; }
.seg button { min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 0 18px; }
.seg button[aria-selected='true'] { background: var(--surface-3); color: var(--ink); font-weight: 700; }

/* map strip */
.map-strip { display: flex; gap: 10px; overflow-x: auto; padding: 14px 16px 6px; margin: 0 -16px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: thin; }
.map-card { flex: none; width: 152px; scroll-snap-align: start; text-align: left; padding: 0; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: inherit; font: inherit; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; }
.map-card[aria-pressed='true'] { border: 1.5px solid var(--accent); }
.map-card .mode-name { padding: 9px 11px 0; }
.map-card .map-name { padding: 0 11px 11px; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-img { position: relative; display: block; height: 92px; background: var(--surface-3); overflow: hidden; }
.map-img::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--mode); z-index: 1; }
.map-img .mimg { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.map-img .left { position: absolute; right: 7px; top: 9px; z-index: 1; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: rgba(11, 13, 18, 0.82); color: #eef0f4; }
.map-img.big { width: 180px; height: 220px; border-radius: 16px; flex: none; }
.map-img.big .mimg { object-fit: contain; background: var(--surface-3); }
.map-img.sm { width: 48px; height: 48px; border-radius: 10px; flex: none; }
.mode-name { font-size: 12px; color: var(--ink-mute); }
.mode { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-soft); }
.mode i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
h2.mode { font-size: 17px; color: var(--ink); }

/* map panel */
.map-panel { padding-top: 22px; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 2px 0 0; font-size: 21px; font-weight: 800; }
.top3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.top-card { display: flex; flex-direction: column; gap: 7px; padding: 12px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.top-card.first { border: 1.5px solid var(--accent); }
.top-card .rank { font-size: 12px; font-weight: 800; color: var(--ink-mute); }
.top-card.first .rank, .top-card.first .win { color: var(--accent); }
.top-card .portrait { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; background: var(--surface-3); object-fit: contain; }
.top-card .name { font-size: 15px; }
.stat { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ink-mute); }
.stat b { font-size: 17px; font-weight: 800; color: var(--ink); }
.stat.small span:last-child { color: var(--ink-soft); }
.bar { display: flex; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.bar i { height: 100%; background: var(--ink-soft); border-radius: 2px; }
.top-card.first .bar i { background: var(--accent); }

.table { margin-top: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.row { display: grid; grid-template-columns: 22px 32px minmax(0, 1fr) 70px 54px 54px; gap: 10px; align-items: center; min-height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
.row:hover { background: var(--surface-2); }
.row.head { min-height: 36px; font-size: 11px; font-weight: 600; color: var(--ink-mute); background: var(--surface-2); }
.row .no { font-size: 13px; font-weight: 700; color: var(--ink-mute); }
.row .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); object-fit: cover; }
.row .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .w, .row .p, .row .g { text-align: right; }
.row .w { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.row .w b { font-size: 14px; }
.row .w .bar { width: 56px; }
.row .p, .row .g { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 480px) { .row { grid-template-columns: 20px 30px minmax(0, 1fr) 64px 48px; } .row .g { display: none; } }
.more { display: flex; align-items: center; justify-content: center; min-height: 48px; font-weight: 700; font-size: 14px; color: var(--accent); text-decoration: none; }
.note, .empty { font-size: 13px; color: var(--ink-mute); margin: 10px 2px; }
.empty { padding: 26px 16px; text-align: center; border: 1px dashed var(--line-2); border-radius: 14px; }

/* blocks */
.block { margin-top: 32px; }
.block > h2 { font-size: 18px; margin: 0 0 12px; }
.trust { margin-top: 32px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trust div span { display: block; font-size: 11px; color: var(--ink-mute); }
.trust div b { font-size: 14px; }
.trust h2 { grid-column: 1 / -1; font-size: 14px; margin: 6px 0 0; }
.trust p { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-soft); }
.ad { margin: 24px 0; min-height: 90px; }

/* videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.video { margin: 0; }
.video-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface-3); cursor: pointer; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.65); color: #fff; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.video figcaption { margin-top: 8px; font-size: 13px; }
.video figcaption a { font-weight: 600; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video figcaption span { display: block; color: var(--ink-mute); font-size: 12px; margin-top: 2px; }

/* map / brawler pages */
.crumb { margin: 18px 0 0; font-size: 13px; }
.crumb a { color: var(--ink-soft); }
.map-hero, .brawler-hero { display: flex; gap: 18px; align-items: center; padding: 16px 0 10px; }
.map-hero h1, .brawler-hero h1 { margin: 6px 0 6px; font-size: clamp(26px, 5vw, 34px); font-weight: 800; }
@media (max-width: 560px) { .map-hero { flex-direction: column; align-items: flex-start; } .map-img.big { width: 100%; height: 200px; } }
.portrait.big { width: 112px; height: 112px; border-radius: 22px; background: var(--surface-3); object-fit: contain; flex: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 14px 0 6px; }
.kpis div { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.kpis span { display: block; font-size: 12px; color: var(--ink-mute); }
.kpis b { font-size: 22px; font-weight: 800; }
.tier { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px; font-weight: 900; color: #14110a; background: var(--tier-c); }
.tier.t-S { background: var(--tier-s); }
.tier.t-A { background: var(--tier-a); }
.tier.t-B { background: var(--tier-b); color: #fff; }
.tier.t-C { color: #fff; }
.best-maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.best-map { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.best-map > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.best-map .w { text-align: right; display: flex; flex-direction: column; }
.best-map .w small { font-size: 11px; color: var(--ink-mute); }

.page-head { padding: 24px 0 4px; }
.page-head h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; margin: 0 0 6px; }
.tier-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tier-row > .tier { width: 44px; height: 44px; font-size: 20px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; min-height: 48px; }
.chip .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); }
.chip span { display: flex; flex-direction: column; line-height: 1.25; }
.chip small { color: var(--ink-mute); font-size: 12px; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.map-tile { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-decoration: none; }
.map-tile b { padding: 0 11px; font-size: 14px; }
.map-tile .mini { display: flex; gap: 4px; padding: 0 11px; }
.map-tile .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); }
.prose { max-width: 720px; }
.prose h2 { font-size: 17px; margin-top: 24px; }
.prose p { color: var(--ink-soft); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 34px; font-size: 12px; color: var(--ink-mute); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }

/* 홈 상단: 오늘의 1위 브롤러 그림 (은은하게, 글씨 뒤로) */
.hero { position: relative; isolation: isolate; }
.hero > :not(.hero-art) { position: relative; z-index: 1; }
.hero-art {
  position: absolute; z-index: 0; right: -24px; top: 4px;
  height: 300px; width: auto; max-width: 62%; object-fit: contain;
  opacity: 0.32; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 95%), linear-gradient(to top, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to left, #000 35%, transparent 95%), linear-gradient(to top, transparent 0%, #000 30%);
}
:root[data-theme='light'] .hero-art { opacity: 0.22; }
@media (min-width: 720px) { .hero-art { height: 360px; right: 0; opacity: 0.4; max-width: 45%; } }
.top-chip { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--line-2); text-decoration: none; font-size: 13px; }
.top-chip span { color: var(--ink-mute); }
.top-chip em { font-style: normal; font-weight: 800; color: var(--accent); }
/* 전신 그림이 없는 브롤러: 얼굴 그림을 조금 작게 */
.hero-art.face { height: 190px; top: 30px; right: 4px; border-radius: 28px; }
@media (min-width: 720px) { .hero-art.face { height: 240px; top: 20px; right: 24px; } }
