/* 기본 리셋 (iPhone 노치 영역은 위·아래 여백으로 비켜 간다) */
:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: 수퍼스 엠블럼 색(남색·로열 블루·하늘색) 풀블리드 히어로 + 경기 티켓 → 히누 → 수퍼스 → 일정(목록/달력) → 중계 모음 → CTA 띠. 떠 있는 알약 내비, 모바일은 하단 탭바. */
:root {
  --bg: #F3F4F8;
  --surface: #FFFFFF;
  --surface-2: #E9ECF4;
  --ink: #0B1029;
  --muted: #555D7C;
  --line: #D6DBE8;
  --court: #1F45F5;
  --court-ink: #1734C2;
  --court-soft: #E0E6FF;
  --on-court: #FFFFFF;
  --free: #38B6FF;
  --free-ink: #0B6FB8;
  --free-soft: #DDF2FF;
  --on-free: #04165A;
  --hero: #061D72;
  --hero-veil: rgba(6, 29, 114, .55);
  --hero-ink: #FFFFFF;
  --hero-muted: rgba(255, 255, 255, .78);
  --hero-line: rgba(255, 255, 255, .2);
  --win: #0B8A57;
  --loss: #C4334A;
  --shadow: 0 12px 32px rgba(11, 16, 41, .14);
  --backdrop: rgba(4, 12, 40, .55);
  --press: 0 4px 0 rgba(11, 16, 41, .22);
  --f-display: "Black Han Sans", "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-num: "Barlow Condensed", "IBM Plex Sans KR", "Arial Narrow", sans-serif;
  --f-hand: "Permanent Marker", "Segoe Print", cursive;
  --hero-glow: 0 4px 28px rgba(4, 12, 58, .4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080C1D; --surface: #10162F; --surface-2: #181F3E; --ink: #ECEEF8; --muted: #9BA3C4; --line: #252E55;
    --court: #7390FF; --court-ink: #AFBFFF; --court-soft: #1B2557; --on-court: #080C1D;
    --free: #5CC6FF; --free-ink: #8ED8FF; --free-soft: #0E2A4A; --on-free: #04165A;
    --hero: #04165A; --hero-veil: rgba(4, 22, 90, .55); --hero-ink: #FFFFFF; --hero-muted: rgba(255, 255, 255, .76); --hero-line: rgba(255, 255, 255, .17);
    --win: #43D394; --loss: #FF8291; --shadow: 0 12px 32px rgba(0, 0, 0, .5); --press: 0 4px 0 rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #080C1D; --surface: #10162F; --surface-2: #181F3E; --ink: #ECEEF8; --muted: #9BA3C4; --line: #252E55;
  --court: #7390FF; --court-ink: #AFBFFF; --court-soft: #1B2557; --on-court: #080C1D;
  --free: #5CC6FF; --free-ink: #8ED8FF; --free-soft: #0E2A4A; --on-free: #04165A;
  --hero: #04165A; --hero-veil: rgba(4, 22, 90, .55); --hero-ink: #FFFFFF; --hero-muted: rgba(255, 255, 255, .76); --hero-line: rgba(255, 255, 255, .17);
  --win: #43D394; --loss: #FF8291; --shadow: 0 12px 32px rgba(0, 0, 0, .5); --press: 0 4px 0 rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 15px; line-height: 1.65;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--hero);
}
a { color: var(--court-ink); }
:focus-visible { outline: 2.5px solid var(--free); outline-offset: 3px; border-radius: 8px; }
.wrap {
  max-width: 1120px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
section[id] { scroll-margin-top: 84px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 떠 있는 알약 내비 ---------- */
.topbar { position: fixed; z-index: 50; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 12px); pointer-events: none; }
.topbar-in { display: flex; justify-content: center; }
.pill {
  pointer-events: auto; display: flex; align-items: center; gap: 4px; max-width: 100%;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 4px; color: var(--ink); text-decoration: none; font-family: var(--f-display); font-size: 16px; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.pill-links { display: flex; gap: 2px; }
.pill-links a {
  padding: 8px 15px; border-radius: 999px; color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: 14px; white-space: nowrap; transition: background-color .2s, color .2s;
}
.pill-links a:hover { color: var(--ink); background: var(--surface-2); }
.pill-links a[aria-current="page"] { background: var(--ink); color: var(--bg); }

.tabbar { display: none; }
@media (max-width: 760px) {
  .pill-links { display: none; }
  .topbar-in { justify-content: space-between; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px;
    position: fixed; z-index: 50;
    left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    background: var(--ink); color: var(--bg); border-radius: 22px; padding: 6px; box-shadow: var(--shadow);
  }
  .tabbar a {
    display: grid; justify-items: center; gap: 1px; padding: 7px 2px 6px; border-radius: 16px;
    color: inherit; text-decoration: none; font-size: 11.5px; font-weight: 600; opacity: .62;
    transition: background-color .2s, opacity .2s;
  }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { background: var(--court); color: var(--on-court); opacity: 1; }
  body { padding-bottom: 96px; }
  section[id] { scroll-margin-top: 76px; }
}

/* ---------- 히어로 ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--hero); color: var(--hero-ink); padding-top: 92px; }
/* 수퍼스 유니폼 입은 히누 그림을 히어로 전체 배경으로. 왼쪽과 아래는 히어로 색으로 녹여서 글자가 읽히게 */
.hero-visual { position: absolute; z-index: -1; inset: 0; margin: 0; }
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 68% 22%; }
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--hero) 0%, var(--hero-veil) 30%, transparent 56%),
    linear-gradient(0deg, var(--hero) 0%, transparent 30%);
}
.hero-in { position: relative; display: grid; align-content: center; min-height: 500px; padding-block: 20px 32px; }
.hero-copy { max-width: 600px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: 13.5px; font-weight: 600; color: var(--hero-ink);
  border: 1px solid var(--hero-line); border-radius: 999px; padding: 5px 12px 5px 8px;
}
.hero-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--free); }
.hero-title {
  display: grid; margin: 18px 0 20px; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(56px, 9.6vw, 128px); line-height: 1; letter-spacing: -.01em; text-shadow: var(--hero-glow);
}
.hero-title > span { display: block; animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero-title > span:nth-child(2) { animation-delay: .08s; }
.hero-title > .ht-with { display: flex; align-items: center; gap: .16em; margin-top: .1em; }
.ht-with i { font-family: var(--f-hand); font-style: normal; font-size: .6em; line-height: 1; color: var(--free); transform: rotate(-9deg) translateY(-.06em); }
.hero-title mark {
  display: inline-block; text-shadow: none;
  background: linear-gradient(180deg, var(--hero-ink) 18%, var(--free) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes rise { from { transform: translateY(.3em); } to { transform: none; } }
.hero-sub { margin: 0 0 26px; max-width: 38ch; font-size: 17px; color: var(--hero-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background-color .15s;
}
.cta .arr { display: inline-block; transition: transform .2s ease; }
.cta:hover { transform: translateY(-2px); }
.cta:hover .arr { transform: translate(3px, -3px); }
.cta:active { transform: translateY(2px); box-shadow: none; }
.cta-free { background: var(--free); color: var(--on-free); box-shadow: var(--press); }
.cta-ghost { border-color: var(--hero-line); color: var(--hero-ink); }
.cta-ghost:hover { border-color: var(--hero-ink); }
.cta-ink { background: var(--ink); color: var(--bg); box-shadow: var(--press); }
.cta-line { border-color: var(--on-free); color: var(--on-free); }

/* 다음 경기 티켓 (히어로 아래 가로 띠) */
.ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 28px; }
.tk-main { padding: 20px 24px; }
.tk-label { margin: 0; font-family: var(--f-num); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tk-label b { color: var(--free-ink); }
.tk-vs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 8px 0 14px; font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 36px); line-height: 1.12; }
.tk-vs i { font-style: normal; font-family: var(--f-num); font-weight: 800; font-size: .58em; color: var(--free-ink); letter-spacing: .06em; }
.tk-meta { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 4px 18px; margin: 0; }
.tk-meta dt { font-family: var(--f-num); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.tk-meta dd { margin: 0; font-weight: 600; font-size: 14.5px; }
.tk-stub { position: relative; padding: 18px 24px; border-left: 2px dashed var(--line); display: grid; gap: 12px; align-content: center; }
.count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.count div { background: var(--surface-2); border-radius: 12px; padding: 8px 4px 6px; text-align: center; }
.count b { display: block; font-family: var(--f-num); font-weight: 800; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.count small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.count-live { display: flex; align-items: center; gap: 10px; font-family: var(--f-num); font-weight: 800; font-size: 40px; line-height: 1; color: var(--free-ink); }
.count-live::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--free); animation: pulse 1.2s ease-in-out infinite; }
.tk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tk-link { font-size: 14px; font-weight: 700; text-underline-offset: 3px; }
.ticket-end .tk-vs { font-size: 26px; }

/* 흐르는 띠 */
.ticker { border-top: 1px solid var(--hero-line); overflow: hidden; white-space: nowrap; padding-block: 12px; }
.ticker-track { display: inline-flex; animation: marquee 48s linear infinite; font-family: var(--f-num); font-weight: 700; font-size: 18px; letter-spacing: .06em; }
.ticker-track span { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; }
.ticker-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--free); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .25; } }

@media (max-width: 860px) {
  .ticket { grid-template-columns: 1fr; }
  .tk-stub { border-left: 0; border-top: 2px dashed var(--line); }
}
@media (max-width: 900px) {
  .hero { padding-top: 0; }
  .hero-visual { position: relative; inset: auto; z-index: 0; height: min(100vw, 520px); margin-bottom: -88px; }
  .hero-visual img { object-position: 72% 24%; }
  .hero-visual::after { background: linear-gradient(0deg, var(--hero) 5%, transparent 45%), linear-gradient(180deg, var(--hero) 0%, transparent 18%); }
  .hero-in { min-height: 0; padding-block: 0 24px; }
}

/* ---------- 공통 섹션 ---------- */
.sec { padding-block: 92px 8px; }
.sec-head { display: grid; gap: 10px; margin-bottom: 30px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--f-num); font-weight: 700; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--court-ink); }
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--free); }
h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 6.6vw, 70px); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.sec-lead { margin: 0; max-width: 56ch; font-size: 16px; color: var(--muted); }
.sub-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 56px 0 16px; font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; }
.sub-h small { font-family: var(--f-body); font-size: 13.5px; font-weight: 500; color: var(--muted); }
.note { margin: 18px 0 0; font-size: 13px; color: var(--muted); max-width: 78ch; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: border-color .15s, color .15s, transform .15s;
}
.btn:hover { border-color: var(--court); color: var(--court-ink); transform: translateY(-1px); }
.btn-primary { background: var(--court); border-color: var(--court); color: var(--on-court); }
.btn-primary:hover { color: var(--on-court); filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 히누 소개 ---------- */
.hinu { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.hinu-card { position: relative; display: grid; gap: 18px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; overflow: hidden; }
.badge { position: absolute; top: 18px; right: 18px; width: 108px; height: 108px; }
.badge-spin { transform-origin: 60px 60px; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hinu-tag { margin: 0; padding-right: 110px; font-family: var(--f-display); font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; }
.hinu-handle { margin: -8px 0 0; font-size: 14px; color: var(--muted); }
.hinu-bio p { margin: 0 0 8px; max-width: 60ch; font-size: 16px; }
.hinu-bio p:last-child { margin-bottom: 0; }
.hinu-side { display: grid; gap: 18px; align-content: start; background: var(--ink); color: var(--bg); border-radius: 24px; padding: 28px; }
.hinu-side h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.hinu-note p { margin: 0 0 6px; font-size: 14.5px; opacity: .86; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.stats div { border-top: 1.5px solid var(--muted); padding-top: 8px; }
.stats dt { font-size: 12.5px; opacity: .75; }
.stats dd { margin: 0; font-family: var(--f-num); font-weight: 800; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd small { font-family: var(--f-body); font-size: 13px; font-weight: 600; margin-left: 3px; }
@media (max-width: 760px) {
  .hinu { grid-template-columns: 1fr; }
  .hinu-card, .hinu-side { padding: 22px; border-radius: 20px; }
  .badge { width: 84px; height: 84px; top: 14px; right: 14px; }
  .hinu-tag { padding-right: 88px; }
}

/* ---------- 수퍼스 소개 ---------- */
.team { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.team-name { margin: 0; font-family: var(--f-display); font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; }
.team-en { margin: 4px 0 16px; font-family: var(--f-num); font-weight: 700; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--court-ink); }
.team-copy p:not(.team-name):not(.team-en) { margin: 0 0 10px; max-width: 58ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; align-content: start; }
.facts div { padding-block: 10px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.facts dd small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; padding: 22px; border-radius: 20px; } }

.record { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; background: var(--ink); color: var(--bg); border-radius: 20px; overflow: hidden; }
.record div { padding: 16px 18px 14px; border-left: 1px solid var(--muted); }
.record div:first-child { border-left: 0; }
.record dt { font-size: 12.5px; opacity: .72; }
.record dd { margin: 0; font-family: var(--f-num); font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .record div { padding: 12px 10px; } }

.seg-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; line-height: 1.3;
  padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { margin-left: 5px; font-family: var(--f-num); font-weight: 700; opacity: .65; }

.players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.player {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; min-width: 0;
  transition: transform .2s ease, background-color .2s, border-color .2s;
}
.player:hover { transform: translateY(-3px); border-color: var(--court); }
.p-no {
  min-width: 2.4ch; white-space: nowrap; overflow-wrap: normal; text-align: center; font-family: var(--f-num); font-weight: 800; font-size: 44px; line-height: .9;
  color: transparent; -webkit-text-stroke: 1.6px var(--court-ink); font-variant-numeric: tabular-nums;
}
.player:hover .p-no { color: var(--court-ink); }
.p-no.none { -webkit-text-stroke-color: var(--line); }
.p-body { display: grid; min-width: 0; line-height: 1.4; }
.p-name { font-size: 16px; }
.p-pos { font-family: var(--f-num); font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.p-meta { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-tag { justify-self: start; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--free-ink); background: var(--free-soft); border-radius: 6px; padding: 0 7px; }
.staff { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.staff b { color: var(--ink); margin-right: 8px; }

.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.guide > div { border-top: 3px solid var(--ink); padding-top: 14px; min-width: 0; }
.guide h3 { margin: 0 0 8px; font-size: 16px; }
.guide p { margin: 0 0 8px; font-size: 14.5px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td + td { padding-left: 12px; }
.tbl .num { text-align: right; font-family: var(--f-num); font-weight: 800; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .ab { width: 36px; font-family: var(--f-num); font-weight: 800; font-size: 16px; color: var(--court-ink); }
.tbl .muted { color: var(--muted); }
@media (max-width: 760px) { .guide { grid-template-columns: 1fr; } }

/* ---------- 경기일정 ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 14px; }
.toolbar-l { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.viewsw { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.viewsw button { font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 7px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); transition: background-color .2s, color .2s; }
.viewsw button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(11, 16, 41, .12); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--court); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.legend .item { display: inline-flex; align-items: center; gap: 6px; }

.round { margin-bottom: 26px; }
.round-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.round-h small { font-family: var(--f-num); font-weight: 700; font-size: 16px; letter-spacing: .04em; color: var(--muted); }
.matches { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.match {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) 100px 156px; grid-template-areas: "date main res cast";
  gap: 6px 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); transition: background-color .3s;
}
.match:first-child { border-top: 0; }
.match.is-next { background: var(--free-soft); }
.match.is-done .m-date, .match.is-done .m-main { opacity: .6; }
.match.flash { background: var(--court-soft); }
.m-date { grid-area: date; display: grid; line-height: 1.15; }
.m-md { font-family: var(--f-num); font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums; }
.m-dow { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.m-main { grid-area: main; min-width: 0; }
.m-vs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16.5px; }
.m-sub { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--muted); }
.m-memo { margin-top: 2px; font-size: 13px; }
.ha { font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 0 7px; line-height: 1.7; }
.ha-home { background: var(--court); color: var(--on-court); }
.ha-away { border: 1.5px solid var(--line); color: var(--muted); line-height: 1.5; }
.next-tag { font-size: 11.5px; font-weight: 700; color: var(--on-free); background: var(--free); border-radius: 6px; padding: 0 7px; line-height: 1.7; }
.m-res { grid-area: res; text-align: right; font-family: var(--f-num); font-weight: 800; font-size: 21px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.res b { font-family: var(--f-body); font-size: 14px; margin-right: 3px; }
.res-w { color: var(--win); }
.res-l { color: var(--loss); }
.dday { color: var(--muted); }
.res-none { font-family: var(--f-body); font-weight: 500; font-size: 13px; color: var(--muted); }
.tag-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-body); font-size: 13px; font-weight: 700; color: var(--free-ink); }
.tag-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--free); animation: pulse 1.2s ease-in-out infinite; }
.m-cast { grid-area: cast; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.replay { font-size: 13px; font-weight: 700; white-space: nowrap; }
.empty-row { margin: 0; padding: 32px 16px; text-align: center; color: var(--muted); }
@media (max-width: 640px) {
  .match { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "date main res" "date cast cast"; gap: 8px 12px; padding: 13px 14px; }
  .m-date, .m-res { align-self: start; }
  .m-md { font-size: 23px; }
  .m-cast { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 12px; }
}

.cast { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap; border: 1.5px solid transparent; }
.cast-on { background: var(--court); color: var(--on-court); }
.cast-on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--on-court); }
.cast-done { background: var(--court-soft); color: var(--court-ink); }
.cast-off { background: var(--surface-2); color: var(--muted); }
.cast-tbd { border-style: dashed; border-color: var(--muted); color: var(--muted); }

/* 달력 보기 */
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 24px; }
.cal-title small { display: block; font-family: var(--f-body); font-size: 13px; color: var(--muted); }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; font-weight: 700; cursor: pointer; }
.cal-nav button:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { padding: 4px 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.cal-dow.sun { color: var(--loss); }
.cal-cell { min-height: 92px; padding: 6px; border-radius: 12px; background: var(--bg); display: grid; align-content: start; gap: 4px; min-width: 0; }
.cal-cell.blank { background: transparent; }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--free); }
.cal-day { font-family: var(--f-num); font-weight: 700; font-size: 15px; color: var(--muted); }
.cal-match {
  display: grid; gap: 1px; text-align: left; min-width: 0; cursor: pointer;
  font: inherit; font-size: 12.5px; line-height: 1.3; padding: 6px 7px; border-radius: 9px; border: 0;
  background: var(--surface-2); color: var(--ink); transition: transform .15s;
}
.cal-match:hover { transform: scale(1.03); }
.cal-match.home { background: var(--court); color: var(--on-court); }
.cal-match b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-match small { font-family: var(--f-num); font-weight: 700; font-size: 13px; opacity: .85; display: flex; align-items: center; gap: 4px; }
.cal-match .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--court); }
.cal-match.home .dot { background: var(--on-court); }
@media (max-width: 640px) {
  .cal { padding: 10px; }
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 64px; padding: 4px; border-radius: 9px; }
  .cal-match { padding: 4px 3px; font-size: 11px; }
  .cal-match b { white-space: normal; overflow: visible; word-break: break-all; }
  .cal-match .vs { display: none; }
  .cal-match small { font-size: 11.5px; }
}


/* ---------- 중계 모음 ---------- */
.vods { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.vod { display: grid; gap: 8px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; transition: transform .2s, border-color .2s; }
.vod:hover { transform: translateY(-3px); border-color: var(--court); }
.vod-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vod-kind { font-size: 11.5px; font-weight: 700; color: var(--court-ink); background: var(--court-soft); border-radius: 6px; padding: 0 8px; }
.vod-play { width: 38px; height: 38px; border-radius: 50%; background: var(--free); display: grid; place-items: center; flex: none; }
.vod-play svg { width: 14px; height: 14px; margin-left: 2px; }
.vod h2 { margin: 0; font-family: var(--f-body); font-weight: 700; font-size: 17px; line-height: 1.4; letter-spacing: 0; }
.vod-meta { margin: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vod-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.vod-link { font-weight: 700; font-size: 14px; }
.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 6px; border: 2px dashed var(--line); border-radius: 20px; padding: 40px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 46px; height: 46px; }
.empty b { font-size: 17px; color: var(--ink); }
.empty p { margin: 0; max-width: 46ch; font-size: 14px; }

/* ---------- CTA 띠 ---------- */
.band { margin-top: 96px; background: var(--free); color: var(--on-free); }
.band-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; padding-block: 56px; }
.band h2 { font-size: clamp(36px, 6vw, 64px); }
.band p { margin: 10px 0 0; font-size: 16px; max-width: 46ch; }
.band .cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .band-in { grid-template-columns: 1fr; padding-block: 44px; } }

/* ---------- 하단 ---------- */
.foot { padding-block: 28px 40px; font-size: 13px; color: var(--muted); }
.foot p { margin: 0 0 6px; max-width: 80ch; }

/* ---------- 메뉴: 수퍼스 드롭다운 ---------- */
.dd { position: relative; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 13px 8px 15px; border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s;
}
.dd-btn svg { width: 14px; height: 14px; transition: transform .2s; }
.dd-btn:hover { color: var(--ink); background: var(--surface-2); }
.dd-btn[aria-current="page"] { background: var(--ink); color: var(--bg); }
.dd-menu { display: none; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); padding-top: 10px; }
.dd:hover .dd-menu, .dd-btn[aria-expanded="true"] + .dd-menu { display: block; }
.dd:hover .dd-btn svg, .dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-menu-in { display: grid; gap: 2px; min-width: 230px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.dd-menu a { display: grid; gap: 1px; padding: 10px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { background: var(--court-soft); }
.dd-menu b { font-size: 15px; }
.dd-menu small { font-size: 12.5px; color: var(--muted); }

/* ---------- 하위 페이지 머리 ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; background: var(--hero); color: var(--hero-ink); padding-top: 104px; }
/* 오른쪽에 걸친 큰 배구공 선 */
.page-head::after {
  content: ""; position: absolute; z-index: -1; right: -90px; top: -60px; width: 380px; height: 380px; border-radius: 50%;
  border: 3px solid var(--hero-line); box-shadow: inset 60px -40px 0 -56px var(--hero-line), inset -70px 50px 0 -66px var(--hero-line);
}
.page-head-in { display: grid; gap: 10px; padding-block: 8px 40px; }
.page-head .kicker { color: var(--free); }
.page-head h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(42px, 7vw, 78px); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.page-lead { margin: 0; max-width: 58ch; font-size: 16px; color: var(--hero-muted); }
.subnav { justify-self: start; display: inline-flex; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 999px; background: var(--hero-line); }
.subnav a { padding: 8px 20px; border-radius: 999px; color: var(--hero-ink); text-decoration: none; font-weight: 700; font-size: 14px; transition: background-color .2s, color .2s; }
.subnav a:hover { background: var(--hero-line); }
.subnav a[aria-current="page"] { background: var(--hero-ink); color: var(--hero); }
.page-body { padding-block: 40px 8px; }
.page-body > .wrap > .sub-h:first-child { margin-top: 0; }
@media (max-width: 760px) {
  .page-head { padding-top: 80px; }
  .page-head-in { padding-block: 4px 30px; }
}

/* ---------- 홈: 다가오는 경기 / 티켓 메모 ---------- */
.more { margin: 16px 0 0; }
.tk-memo { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- 수퍼스 소식 (최신순 타임라인) ---------- */
.news { list-style: none; margin: 0 0 0 7px; padding: 0; border-left: 2px solid var(--line); }
.news-item { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 6px 20px; padding: 0 0 28px 26px; }
.news-item:last-child { padding-bottom: 4px; }
.news-item::before { content: ""; position: absolute; left: -9px; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--court); }
.news-item:first-child::before { background: var(--court); }
.news-date { padding-top: 13px; font-family: var(--f-num); font-weight: 700; font-size: 19px; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-body { display: grid; gap: 6px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
.news-tag { justify-self: start; font-size: 11.5px; font-weight: 700; color: var(--court-ink); background: var(--court-soft); border-radius: 6px; padding: 0 8px; }
.news-body h2 { margin: 0; font-family: var(--f-body); font-weight: 700; font-size: 18px; line-height: 1.4; letter-spacing: 0; }
.news-body p { margin: 0; font-size: 14.5px; max-width: 66ch; }
.news-src { justify-self: start; font-size: 13px; font-weight: 700; }
@media (max-width: 640px) {
  .news-item { grid-template-columns: 1fr; gap: 4px; padding-left: 20px; }
  .news-item::before { top: 6px; }
  .news-date { padding-top: 0; font-size: 17px; }
}

/* ---------- 선수 카드 → 미리보기 / 프로필 ---------- */
.players > li { display: grid; min-width: 0; }
.player { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.player:hover, .player:focus-visible { border-color: var(--court); transform: translateY(-3px); }
.player:hover .p-no, .player:focus-visible .p-no { color: var(--court-ink); }
.roster-hint { margin: -6px 0 14px; font-size: 13.5px; color: var(--muted); }

.peek {
  position: absolute; z-index: 45; width: 290px; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); pointer-events: none;
}
.peek .jersey { width: 88px; height: auto; display: block; }
.peek-body { display: grid; gap: 3px; min-width: 0; }
.peek-name { font-size: 16px; line-height: 1.3; }
.peek-pos { font-size: 12.5px; font-weight: 600; color: var(--court-ink); }
.peek dl { display: grid; gap: 1px; margin: 4px 0 2px; font-size: 13px; }
.peek dl div { display: flex; gap: 8px; }
.peek dt { width: 52px; flex: none; color: var(--muted); }
.peek dd { margin: 0; min-width: 0; }
.peek-more { font-size: 12px; font-weight: 700; color: var(--court-ink); }

dialog.profile {
  width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 24px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow); overflow: auto;
}
dialog.profile::backdrop { background: var(--backdrop); backdrop-filter: blur(3px); }
.pf-head { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: center; padding: 28px 56px 28px 28px; background: var(--hero); color: var(--hero-ink); }
.pf-head .jersey { width: 170px; height: auto; display: block; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .35)); }
.pf-id { min-width: 0; }
.pf-pos { margin: 0; font-family: var(--f-num); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--free); }
.pf-name { margin: 6px 0 8px; font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 6vw, 50px); line-height: 1.05; }
.pf-sub { margin: 0; font-size: 14.5px; color: var(--hero-muted); }
.pf-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--hero-line); color: var(--hero-ink); font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
.pf-close:hover { background: var(--hero-ink); color: var(--hero); }
.pf-body { display: grid; gap: 24px; padding: 24px 28px 28px; }
.pf-body h3 { margin: 0 0 10px; font-size: 15px; }
.pf-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; margin: 0; }
.pf-facts div { padding-block: 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.pf-facts .wide { grid-column: 1 / -1; }
.pf-facts dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.pf-facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.career { list-style: none; margin: 0 0 0 5px; padding: 0; border-left: 2px solid var(--line); display: grid; gap: 12px; }
.career li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding-left: 18px; font-size: 14.5px; line-height: 1.5; }
.career li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--court); }
.career li:last-child::before { background: var(--court); }
.career b { font-family: var(--f-num); font-weight: 800; font-size: 17px; line-height: 1.3; color: var(--court-ink); font-variant-numeric: tabular-nums; }
.pf-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-note { margin: -8px 0 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) {
  .pf-head { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 22px 52px 22px 18px; }
  .pf-head .jersey { width: 104px; }
  .pf-body { padding: 20px 18px 22px; }
  .pf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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