/* ==========================================================================
   히누의 루키노트 — styles
   팔레트: 히누히누 유니폼 네이비 · 허니 블론드 · 스카이 블루 아이 · 블러시 핑크 · 크라운 레드
   ========================================================================== */

@font-face { font-family: "Paperlogy"; font-weight: 700; font-style: normal; font-display: swap; src: url("https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-7Bold.woff2") format("woff2"); }
@font-face { font-family: "Paperlogy"; font-weight: 800; font-style: normal; font-display: swap; src: url("https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-8ExtraBold.woff2") format("woff2"); }

:root {
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: "Paperlogy", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --font-hand: "Gaegu", "Pretendard Variable", cursive;

  /* brand (Hinu) */
  --navy: #1B2556;
  --navy-deep: #111735;
  --cream: #F4F1EA;
  --honey: #E9BE78;
  --honey-strong: #F2CB86;
  --blush: #F4A7B1;
  --crown: #C8322F;
  --sbo: #0A68CC;

  /* surfaces — light */
  --bg: #F7F6F2;
  --bg-tint: #EFEDE6;
  --surface: #FFFFFF;
  --surface-2: #F4F2EC;
  --ink: #151B36;
  --ink-2: #3E4561;
  --muted: #5B6180;
  --line: #E2DFD5;
  --line-strong: #C9C5B8;
  --honey-ink: #8A5A0B;
  --honey-soft: #FFF5E3;
  --link: #2A5FC4;
  --sbo-ink: #0A5FBA;
  --sbo-soft: #EAF3FD;
  --focus: #2A5FC4;
  --danger: #B42A28;
  --grass: #D5EBD9;
  --grass-2: #C3E1C9;
  --dirt: #EDD3AE;
  --chalk: #FFFFFF;
  --series: #3B4C9B;
  --series-2: #B97A12;
  --shadow: 0 1px 2px rgb(21 27 54 / .05), 0 12px 32px rgb(21 27 54 / .08);

  /* practice categories (validated palette, fixed order) */
  --c-bat: #B97A12;
  --c-field: #0F917C;
  --c-pitch: #2F6FDB;
  --c-run: #D6456C;
  --c-study: #7657DE;

  --radius: 20px;
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1026; --bg-tint: #0F1530; --surface: #141B38; --surface-2: #1A2245;
    --ink: #ECEFF7; --ink-2: #C3C9DD; --muted: #9AA2BF; --line: #263056; --line-strong: #3A4577;
    --honey-ink: #F0C987; --honey-soft: rgb(233 190 120 / .09); --link: #9DBDFF;
    --sbo-ink: #7DB8FF; --sbo-soft: rgb(10 104 204 / .14); --focus: #9DBDFF; --danger: #FF8A80;
    --grass: #1D4231; --grass-2: #225038; --dirt: #5E4229; --chalk: #E7ECF5;
    --series: #8C9EF0; --series-2: #E0A33B;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .3);
    --c-bat: #B98020; --c-field: #17977F; --c-pitch: #3F7BE6; --c-run: #D9506F; --c-study: #8062E8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1026; --bg-tint: #0F1530; --surface: #141B38; --surface-2: #1A2245;
  --ink: #ECEFF7; --ink-2: #C3C9DD; --muted: #9AA2BF; --line: #263056; --line-strong: #3A4577;
  --honey-ink: #F0C987; --honey-soft: rgb(233 190 120 / .09); --link: #9DBDFF;
  --sbo-ink: #7DB8FF; --sbo-soft: rgb(10 104 204 / .14); --focus: #9DBDFF; --danger: #FF8A80;
  --grass: #1D4231; --grass-2: #225038; --dirt: #5E4229; --chalk: #E7ECF5;
  --series: #8C9EF0; --series-2: #E0A33B;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .3);
  --c-bat: #B98020; --c-field: #17977F; --c-pitch: #3F7BE6; --c-run: #D9506F; --c-study: #8062E8;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.65;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
main:focus { outline: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 12px;
  background: var(--honey); color: var(--navy-deep); font-weight: 800; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

svg use { pointer-events: none; }
.btn svg, .icon-btn svg, .inline-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.inline-ic { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; margin-left: 2px; }

/* ---------- buttons ----------
   primary  허니(히누 머리색) — 방송국 같은 핵심 행동 하나에만
   dark     네이비(유니폼) — 밝은 배경 위 보조 행동
   outline / outline-light — 그 외
   sbo      SBO 링크 전용 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1.5px solid transparent;
  font-family: var(--font-sans); font-weight: 700; font-size: 1rem; line-height: 1; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2.2; }
.btn--sm { min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: .92rem; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--lg { min-height: 56px; padding: 0 26px; border-radius: 14px; font-size: 1.06rem; }

/* primary: 레퍼런스 버튼에서 뽑은 금색 그라데이션 (#C99D41 → #E1BF86), 글자 #0A0A0A (대비 8:1 이상) */
.btn--primary {
  color: #0A0A0A; font-weight: 800; border-color: rgb(120 84 20 / .18);
  background: linear-gradient(105deg, #C99D41 0%, #D4AC5E 55%, #E1BF86 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), inset 0 -1px 0 rgb(0 0 0 / .08), 0 6px 16px rgb(0 0 0 / .16);
}
.btn--primary:hover { filter: brightness(1.06) saturate(1.05); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -1px 0 rgb(0 0 0 / .08), 0 8px 20px rgb(0 0 0 / .2); }
.btn--primary:active { filter: brightness(.96); box-shadow: inset 0 2px 4px rgb(0 0 0 / .12); }

/* dark: 같은 결의 네이비 그라데이션 */
.btn--dark {
  color: #fff; border-color: rgb(255 255 255 / .06);
  background: linear-gradient(105deg, #18204C 0%, #1F2A62 55%, #2B397E 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 6px 14px rgb(17 23 53 / .18);
}
.btn--dark:hover { filter: brightness(1.12); }
.btn--dark:active { filter: brightness(.95); }
:root[data-theme="dark"] .btn--dark { color: var(--navy-deep); background: linear-gradient(105deg, #E9E4D8 0%, #F4F1EA 60%, #FFFFFF 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--dark { color: var(--navy-deep); background: linear-gradient(105deg, #E9E4D8 0%, #F4F1EA 60%, #FFFFFF 100%); } }
.btn--outline { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn--outline:hover { border-color: var(--ink-2); background: var(--surface-2); }
.btn--outline-light { border-color: rgb(255 255 255 / .5); background: transparent; color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
.btn--sbo { background: var(--sbo); color: #fff; }
.btn--sbo:hover { background: #0858AE; }
.btn--text { min-height: 40px; padding: 0 6px; border: 0; background: none; color: var(--link); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 0; background: transparent; color: inherit;
}
.icon-btn:hover { background: rgb(127 127 127 / .12); }
.icon-btn--outline { border: 1.5px solid var(--line-strong); background: var(--surface); }

/* display type */
.hero__title, .section-title, .sub-title, .player-card__name, .cta-band__title, .countdown, .month-nav__label, .day-panel__date {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em;
}

/* ---------- header (floating pill) ---------- */
.site-header {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 50; margin-inline: auto;
  width: fit-content; max-width: calc(100% - 24px); height: 58px; display: flex; align-items: center; gap: 4px;
  padding: 0 8px 0 20px; border-radius: 999px; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 84%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header.is-over-hero { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .16); color: #fff; box-shadow: none; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: 22px; color: inherit; text-decoration: none; }

.site-nav { position: relative; }
.site-nav__list { display: flex; align-items: center; gap: 2px; }
.site-nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: inherit; text-decoration: none; font-weight: 700; font-size: .93rem; opacity: .85;
}
.site-nav__list a:hover { opacity: 1; background: rgb(127 127 127 / .14); }
.site-nav__list a[aria-current="true"] { opacity: 1; background: rgb(127 127 127 / .18); }
.header-cta { margin-left: 10px; }
.site-nav__toggle { display: none; }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle__moon { display: none; }
.theme-toggle[aria-pressed="true"] .theme-toggle__sun { display: none; }
.theme-toggle[aria-pressed="true"] .theme-toggle__moon { display: block; }

@media (max-width: 640px) {
  .site-header { width: calc(100% - 24px); padding-left: 16px; }
  .brand { margin-right: auto; }
  .site-nav__toggle { display: inline-grid; }
  .site-nav__list {
    position: absolute; right: -50px; top: calc(100% + 14px); min-width: 200px; flex-direction: column; align-items: stretch;
    padding: 8px; border-radius: 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav__list:not(.is-open) { display: none; }
  .site-nav__list a { width: 100%; border-radius: 12px; opacity: 1; }
}

/* ---------- hero (centered, symmetric) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center;
  padding: clamp(104px, 10vw, 124px) 0 clamp(36px, 4vw, 52px);
  background:
    radial-gradient(75% 60% at 50% 42%, rgb(10 14 38 / .25) 0%, rgb(10 14 38 / .82) 100%),
    linear-gradient(180deg, rgb(10 14 38 / .8) 0%, rgb(10 14 38 / .35) 45%, rgb(10 14 38 / .92) 100%),
    url("../img/ui/hero-bg.webp") center 58% / cover no-repeat,
    #111735;
}
.hero__stack { display: grid; justify-items: center; }
.hero__copy { display: grid; justify-items: center; max-width: 760px; }
.hero__eyebrow { font-weight: 700; color: rgb(255 255 255 / .72); }
.hero__dday { margin-left: 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--honey); }
.hero__title { margin-top: 12px; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.1; }
.hero__title em { font-style: normal; color: var(--honey); }
.br-m { display: none; }
.hero__lead { margin-top: 16px; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgb(255 255 255 / .82); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.hero__stats { margin-top: 18px; font-size: .92rem; color: rgb(255 255 255 / .6); }

/* three photos, fanned symmetrically under the copy */
.hero__photos { position: relative; width: min(100%, 860px); aspect-ratio: 1 / .47; margin-top: clamp(32px, 4vw, 44px); }
.hero__speed {
  position: absolute; left: 50%; top: 50%; z-index: 0; width: 175%; height: auto; max-width: none;
  transform: translate(-50%, -50%); opacity: .14; pointer-events: none; user-select: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}
.photo {
  position: absolute; margin: 0; overflow: hidden; border-radius: 18px; background: #0B1026;
  border: 6px solid var(--cream); box-shadow: 0 18px 40px rgb(0 0 0 / .4);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--main { left: 50%; top: 0; z-index: 3; width: 44%; aspect-ratio: 1 / 1.02; transform: translateX(-50%); }
.photo--main img { object-position: 45% 30%; }
.photo--left, .photo--right { top: 15%; z-index: 2; width: 30%; aspect-ratio: 4 / 5; }
.photo--left { left: 5%; transform: rotate(-7deg); }
.photo--right { right: 5%; transform: rotate(7deg); }
.photo--left img, .photo--right img { object-position: 50% 22%; }
.hero__photos:hover .photo--left { transform: rotate(-9deg) translateX(-8px); }
.hero__photos:hover .photo--right { transform: rotate(9deg) translateX(8px); }

@media (max-width: 640px) {
  .br-m { display: inline; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__photos { aspect-ratio: 1 / .66; }
  .photo { border-width: 4px; border-radius: 14px; }
  .photo--main { width: 58%; }
  .photo--left, .photo--right { width: 38%; top: 16%; }
  .photo--left { left: 0; }
  .photo--right { right: 0; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--bg-tint); }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-desc { margin-top: 12px; color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.sub-title { margin: 48px 0 18px; font-size: 1.3rem; font-weight: 800; display: flex; align-items: baseline; gap: 8px; }
.sub-title__count { font-family: var(--font-display); color: var(--muted); font-size: 1.1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- profile ---------- */
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.player-card {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden;
  border-radius: 24px; color: #fff; box-shadow: var(--shadow);
  background:
    repeating-linear-gradient(90deg, transparent 0 21px, rgb(255 255 255 / .05) 21px 22px),
    linear-gradient(160deg, #22306B 0%, var(--navy) 45%, var(--navy-deep) 100%);
}
.player-card__photo { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: 50% 22%; }
.player-card__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 52px); }
.player-card__name { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; }
.player-card__bio { margin-top: 6px; color: rgb(255 255 255 / .72); }
.player-card__fields { display: grid; gap: 10px; margin: 24px 0; padding: 18px 0; border-block: 1px solid rgb(255 255 255 / .16); }
.player-card__fields > div { display: flex; justify-content: space-between; gap: 12px; }
.player-card__fields dt { color: rgb(255 255 255 / .7); }
.player-card__fields dd { font-weight: 700; }
.player-card__note { margin-bottom: 28px; line-height: 1.75; color: rgb(255 255 255 / .88); }
.player-card__body .btn { align-self: flex-start; }
@media (max-width: 760px) {
  .player-card { grid-template-columns: 1fr; }
  .player-card__photo { min-height: 0; aspect-ratio: 4 / 3.4; }
  .player-card__body .btn { align-self: stretch; }
}

/* ---------- calendar ---------- */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 18px; }
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav__label { min-width: 8.5ch; text-align: center; font-size: 1.25rem; font-weight: 800; }
.filters { border: 0; margin: 0; padding: 0; min-width: 0; flex: 1; }
.filters__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); font-size: .9rem; font-weight: 700; color: var(--ink-2);
  transition: background-color .15s, border-color .15s, opacity .15s;
}
.chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--cc); border: 2px solid var(--cc); }
.chip b { font-family: var(--font-display); font-weight: 700; color: var(--muted); font-size: .95rem; }
.chip input:checked + span { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 12%, var(--surface)); color: var(--ink); }
.chip input:not(:checked) + span { opacity: .62; text-decoration: line-through; }
.chip input:not(:checked) + span i { background: transparent; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.segmented { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.segmented__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: none; font-weight: 700; font-size: .92rem; color: var(--muted); }
.segmented__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.segmented__btn[aria-pressed="true"] { background: var(--navy); color: #fff; }

.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.cal-main { padding: clamp(10px, 2vw, 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cal { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: clamp(3px, .6vw, 6px); }
.cal th { padding: 4px 0 6px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.cal th.is-sun { color: var(--danger); }
.cal th.is-sat { color: var(--link); }
.cal td { padding: 0; vertical-align: top; }
.day {
  position: relative; display: flex; flex-direction: column; width: 100%; aspect-ratio: 1 / .9; min-height: 46px;
  padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  text-align: left; color: var(--ink); transition: background-color .15s, border-color .15s, transform .15s;
}
.day:hover { border-color: var(--line-strong); background: var(--surface-2); }
.day.has-log { background: var(--surface-2); }
.day__num { font-weight: 700; font-size: .95rem; line-height: 1; }
.day__min { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--muted); line-height: 1; }
.day__bars { display: flex; gap: 2px; margin-top: 6px; }
.day__bars i { height: 6px; flex: 1; max-width: 22px; border-radius: 3px; background: var(--cc); }
.day.is-today { box-shadow: inset 0 0 0 2px var(--honey); }
.day__rest { margin-top: auto; align-self: flex-start; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); font-size: .72rem; font-weight: 800; color: var(--ink-2); line-height: 1.5; }
.day[aria-pressed="true"] .day__rest { background: rgb(255 255 255 / .16); color: #fff; }
.tagchip--rest { background: var(--surface-2); color: var(--ink-2); }
.day.is-today .day__num::after { content: "오늘"; margin-left: 6px; font-size: .68rem; font-weight: 800; color: var(--honey-ink); vertical-align: 1px; }
.day[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.day[aria-pressed="true"] .day__min { color: rgb(255 255 255 / .8); }
.day[aria-pressed="true"] .day__bars i { box-shadow: 0 0 0 1.5px var(--navy); }
.day[aria-pressed="true"].is-today .day__num::after { color: var(--honey); }
:root[data-theme="dark"] .day[aria-pressed="true"] { background: #2B3A85; border-color: #6B7FD8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .day[aria-pressed="true"] { background: #2B3A85; border-color: #6B7FD8; } }
.cal .is-sun-col .day__num { color: var(--danger); }
.cal .day[aria-pressed="true"] .day__num { color: #fff; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 4px 4px; font-size: .85rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 6px; border-radius: 3px; background: var(--cc); }

.month-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.month-stats > div { display: flex; flex-direction: column-reverse; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.month-stats dt { font-size: .82rem; color: var(--muted); }
.month-stats dd { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; }
.month-stats dd small { font-family: var(--font-sans); font-size: .82rem; font-weight: 600; margin-left: 3px; color: var(--muted); }

.cal-list { display: grid; gap: 10px; }
.cal-list li > button {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; width: 100%; padding: 14px; text-align: left;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.cal-list li > button:hover { background: var(--surface-2); }
.cal-list li > button[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.cal-list__date { display: grid; place-content: center; text-align: center; border-radius: 12px; background: var(--surface-2); padding: 6px 0; }
.cal-list__date b { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.cal-list__date span { font-size: .78rem; color: var(--muted); }
.cal-list__body { display: grid; gap: 6px; min-width: 0; }
.cal-list__memo { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-list__empty { padding: 32px; text-align: center; color: var(--muted); }

.tagchip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px 0 6px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--cc) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--cc) 45%, transparent);
}
.tagchip svg { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--cc); color: #fff; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }

.day-panel {
  position: sticky; top: calc(var(--header-h) + 16px); padding: 22px; min-height: 300px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.day-panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.day-panel__date { font-size: 1.35rem; font-weight: 800; }
.day-panel__total { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--muted); }
.day-panel__total svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.day-panel__tags { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--honey-soft); color: var(--honey-ink); font-size: .78rem; font-weight: 800; border: 1px solid color-mix(in srgb, var(--honey) 50%, transparent); }
.sessions { display: grid; gap: 14px; margin: 16px 0; }
.session { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.session__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--cc) 16%, var(--surface)); color: var(--cc); }
.session__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.session__cat { font-size: .78rem; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
.session__title { font-weight: 800; font-size: 1.02rem; line-height: 1.35; }
.session__detail { color: var(--muted); font-size: .92rem; }
.session__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--ink-2); }
.session .btn--text { min-height: 32px; padding: 0; font-size: .85rem; color: var(--danger); }
.memo {
  position: relative; padding: 14px 16px 16px; border-radius: 14px; background: var(--honey-soft);
  border: 1px dashed color-mix(in srgb, var(--honey) 70%, transparent);
}
.memo__label { position: absolute; top: 12px; right: 12px; display: flex; color: var(--honey-ink); opacity: .8; }
.memo__text { padding-right: 22px; }
.memo__label svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.memo__text { font-family: var(--font-hand); font-size: 1.28rem; line-height: 1.45; color: var(--ink); }
.day-panel__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.day-panel__empty { display: grid; justify-items: center; gap: 10px; padding: 18px 0 4px; text-align: center; color: var(--muted); }
.day-panel__empty-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.day-panel__empty-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.day-panel__empty strong { color: var(--ink); font-size: 1.05rem; }

@media (max-width: 980px) {
  .cal-layout { grid-template-columns: 1fr; }
  .day-panel { position: static; min-height: 0; }
}
@media (max-width: 600px) {
  .cal-toolbar { gap: 12px; }
  .month-nav { width: 100%; justify-content: space-between; }
  .segmented { order: -1; margin-left: auto; }
  .filters__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .chip span { white-space: nowrap; }
  .day { padding: 5px; aspect-ratio: 1 / 1.05; border-radius: 10px; }
  .day__num { font-size: .85rem; }
  .day.is-today .day__num::after { content: none; }
  .day__min { display: none; }
  .day__bars { margin-top: auto; flex-wrap: wrap; }
  .day__bars i { height: 5px; min-width: 5px; }
  .month-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- study ---------- */

.tabs__list { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 0 -4px 20px; scrollbar-width: none; }
.tabs__list [role="tab"] {
  flex: none; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--surface); font-weight: 700; color: var(--ink-2);
}
.tabs__list [role="tab"][aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .tabs__list [role="tab"][aria-selected="true"] { background: var(--honey); border-color: var(--honey); color: var(--navy-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs__list [role="tab"][aria-selected="true"] { background: var(--honey); border-color: var(--honey); color: var(--navy-deep); } }
.tabs__panel:focus-visible { outline-offset: 6px; border-radius: 12px; }

.field-map { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.field-map__diagram { position: relative; max-width: 560px; width: 100%; margin-inline: auto; aspect-ratio: 1; }
.diamond { width: 100%; height: 100%; }
.diamond__grass { fill: var(--grass); }
.diamond__dirt { fill: var(--dirt); }
.diamond__infield { fill: var(--grass-2); }
.diamond__line { stroke: var(--chalk); stroke-width: .6; fill: none; }
.diamond__mound { fill: var(--dirt); stroke: var(--chalk); stroke-width: .4; }
.diamond__base, .diamond__home { fill: var(--chalk); }
.field-map__pins { position: absolute; inset: 0; }
.pin {
  position: absolute; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid #fff; background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; box-shadow: 0 4px 12px rgb(14 20 51 / .3);
  transition: transform .15s, background-color .15s;
}
.pin:hover { transform: translate(-50%, -50%) scale(1.08); }
.pin[aria-pressed="true"] { background: var(--honey); color: var(--navy-deep); border-color: var(--navy); transform: translate(-50%, -50%) scale(1.12); }
.pos-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pos-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pos-card__no { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.pos-card__name { font-size: 1.4rem; font-weight: 800; }
.pos-card__id { font-family: var(--font-display); color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.pos-card__role { color: var(--ink-2); margin-bottom: 14px; }
.checks { display: grid; gap: 8px; margin-bottom: 14px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--c-field) 18%, var(--surface)); }
.checks li::after { content: ""; position: absolute; left: 5px; top: calc(.3em + 5px); width: 8px; height: 4px; border-left: 2px solid var(--c-field); border-bottom: 2px solid var(--c-field); transform: rotate(-45deg); }

.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rule { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.rule__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rule__title { font-size: 1.15rem; font-weight: 800; }
.rule__tag { flex: none; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.rule .memo__text { font-size: 1.2rem; }
.panel-note { margin-top: 16px; color: var(--muted); }
.sbo-rule { border-top: 4px solid var(--sbo); }
.sbo-rule ul { display: grid; gap: 6px; }
.sbo-rule li { position: relative; padding-left: 16px; }
.sbo-rule li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--sbo); }

.search { display: grid; gap: 6px; margin-bottom: 18px; max-width: 520px; }
.search__box { position: relative; }
.search__box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search__box input { width: 100%; min-height: 48px; padding: 0 16px 0 44px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); }
.search__count { font-size: .88rem; color: var(--muted); }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.glossary > div { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.glossary dt { font-weight: 800; margin-bottom: 2px; }
.glossary dd { color: var(--muted); font-size: .95rem; }
.glossary mark { background: color-mix(in srgb, var(--honey) 45%, transparent); color: inherit; border-radius: 3px; }
.glossary__empty { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--muted); }

.watch-list { display: grid; gap: 12px; }
.watch { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.watch__date { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--honey-ink); }
.watch__title { font-weight: 800; }
.watch__src { font-size: .85rem; color: var(--muted); }
.watch__memo { margin-top: 4px; color: var(--ink-2); font-size: .94rem; }

@media (max-width: 860px) {
    .field-map, .rule-grid, .glossary { grid-template-columns: 1fr; }
  .watch { grid-template-columns: 1fr; gap: 8px; }
  .watch .btn { justify-self: start; }
}
@media (max-width: 480px) { .pin { width: 42px; height: 42px; font-size: .95rem; } }

/* ---------- growth / charts ---------- */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart-card { position: relative; margin: 0; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.chart-card--wide { grid-column: 1 / -1; }
.chart-card figcaption { margin-bottom: 14px; }
.chart-card__title { font-size: 1.08rem; font-weight: 800; }
.chart-card__desc { font-size: .9rem; color: var(--muted); }
.chart-card__plot { position: relative; }
.chart-card svg { width: 100%; height: auto; overflow: visible; }
.chart-card details { margin-top: 12px; font-size: .9rem; }
.chart-card summary { cursor: pointer; color: var(--link); font-weight: 700; min-height: 32px; display: inline-flex; align-items: center; }
.chart-table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: .88rem; }
.chart-table th, .chart-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.chart-table td:last-child, .chart-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ax text { fill: var(--muted); font-size: 12px; font-family: var(--font-sans); }
.ax line { stroke: var(--line); }
.ax .base { stroke: var(--line-strong); }
.mark-bar { fill: var(--series); }
.mark-bar.is-dim { opacity: .45; }
.mark-line { fill: none; stroke: var(--series-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mark-dot { fill: var(--series-2); stroke: var(--surface); stroke-width: 2; }
.mark-label { fill: var(--ink); font-size: 12px; font-weight: 700; font-family: var(--font-sans); }
.hit { fill: transparent; cursor: default; }
.hit:focus-visible { outline: none; }
.hit:focus-visible + .focus-ring, .focus-ring.is-on { stroke: var(--focus); stroke-width: 2; fill: none; }
.crosshair { stroke: var(--line-strong); stroke-dasharray: 3 3; }
.tooltip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 120px; padding: 8px 12px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-size: .82rem; line-height: 1.45; box-shadow: var(--shadow);
  transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; opacity: 0; transition: opacity .12s;
}
.tooltip.is-on { opacity: 1; }
.tooltip b { font-family: var(--font-display); font-size: 1.05rem; }
.share-bar { display: flex; gap: 2px; height: 28px; border-radius: 8px; overflow: hidden; margin: 8px 0 16px; }
.share-bar span { background: var(--cc); min-width: 4px; }
.share-legend { display: grid; gap: 8px; }
.share-legend li { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 10px; align-items: center; font-size: .92rem; }
.share-legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--cc); }
.share-legend span:nth-of-type(2) { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.share-legend span:last-child { font-family: var(--font-display); font-weight: 600; color: var(--muted); min-width: 3.5ch; text-align: right; }

.milestones { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; position: relative; margin-top: 40px; }
.milestones::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 2px; background: var(--line-strong); }
.milestones li { position: relative; padding-top: 34px; }
.milestones li::before { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--honey); border: 3px solid var(--bg-tint); box-shadow: 0 0 0 2px var(--honey); }
.milestones li.is-upcoming::before { background: var(--bg-tint); box-shadow: 0 0 0 2px var(--sbo); }
.milestones time { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--honey-ink); }
.milestones li.is-upcoming time { color: var(--sbo-ink); }
.milestones__title { font-weight: 800; }

@media (max-width: 900px) {
  .charts { grid-template-columns: 1fr; }
  .milestones { grid-template-columns: 1fr; gap: 18px; padding-left: 4px; }
  .milestones::before { left: 11px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .milestones li { padding: 0 0 0 36px; }
  .milestones li::before { top: 4px; left: 3px; }
}

/* ---------- SBO ---------- */
.sbo { background: var(--bg); }
.notices { border-top: 1px solid var(--line); }
.notices li { display: flex; align-items: center; gap: 16px; min-height: 52px; border-bottom: 1px solid var(--line); }
.notices time { flex: none; width: 3.2em; font-family: var(--font-display); font-weight: 700; color: var(--muted); }
.notices a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.notices a:hover { color: var(--sbo-ink); text-decoration: underline; }
.asof { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.sbo-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.sbo-card--count {
  display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 26px; border-radius: var(--radius); color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #2D8BEE 0%, transparent 60%), linear-gradient(150deg, #0A68CC, #073F80);
}
.sbo-card__label { font-weight: 700; color: rgb(255 255 255 / .85); }
.countdown { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: .01em; }
.countdown small { display: block; font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: rgb(255 255 255 / .85); }
.timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.timeline li { display: grid; align-content: start; gap: 4px; padding: 12px; border-radius: 14px; }
.timeline li.is-key { background: var(--sbo-soft); }
.timeline__name { font-weight: 800; font-size: .98rem; }
.timeline__date { font-size: .84rem; color: var(--muted); }
.status { justify-self: start; display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--done { color: var(--muted); background: var(--surface-2); }
.status--now { color: #fff; background: var(--sbo); }
.status--next { color: var(--sbo-ink); background: var(--sbo-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sbo) 40%, transparent); }

.managers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.manager { display: grid; gap: 12px; align-content: start; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.manager__head { display: flex; align-items: center; gap: 12px; }
.manager__avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sbo-soft); color: var(--sbo-ink); font-weight: 800; font-size: 1.1rem; }
.manager__name { font-size: 1.15rem; font-weight: 800; }
.manager__age { font-size: .84rem; color: var(--muted); }
.manager__career { display: grid; gap: 4px; font-size: .9rem; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line); }
.manager__career li { position: relative; padding-left: 12px; }
.manager__career li::before { content: ""; position: absolute; left: 0; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.manager a { justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; font-weight: 700; font-size: .9rem; color: var(--sbo-ink); }
.manager a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 48px; padding: 20px 24px; border-radius: 24px; color: #fff;
  background:
    repeating-linear-gradient(90deg, transparent 0 21px, rgb(255 255 255 / .06) 21px 22px),
    linear-gradient(135deg, #22306B, var(--navy-deep));
}
.cta-band img { width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid var(--honey); }
.cta-band__text { flex: 1 1 200px; }
.cta-band__title { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 800; }
.cta-band__sub { color: rgb(255 255 255 / .75); }

@media (max-width: 1080px) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } .managers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .sbo-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; padding: 12px; gap: 2px; }
  .timeline li { grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
  .timeline__date { grid-column: 1; }
  .timeline .status { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 520px) { .managers { grid-template-columns: 1fr; } .cta-band .btn { width: 100%; } }

/* ---------- footer ---------- */
.site-footer { padding: 40px 0 48px; background: var(--navy-deep); color: rgb(255 255 255 / .82); }
.site-footer__inner { display: grid; gap: 16px; }
.site-footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .08em; color: #fff; }
.site-footer__brand span { color: var(--honey); font-size: 1rem; margin-left: 6px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; }
.site-footer__note { font-size: .85rem; max-width: 70ch; color: rgb(255 255 255 / .7); }

/* ---------- dialog ---------- */
.editor { width: min(580px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .35); }
.editor::backdrop { background: rgb(8 10 25 / .6); backdrop-filter: blur(4px); }
.editor__form { padding: 22px 24px 18px; }
.editor__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.editor__head h2 { font-size: 1.3rem; font-weight: 800; }
.editor__hint { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.editor__hint code { font-size: .85em; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; }
.field__opt { font-weight: 600; font-size: .78rem; color: var(--muted); margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--bg); }
.field textarea { resize: vertical; min-height: 88px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.form-error { min-height: 1.5em; margin-top: 10px; color: var(--danger); font-weight: 700; font-size: .9rem; }
.editor__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.editor__actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } .editor__form { padding: 18px 16px 14px; } }

.editor--small { width: min(400px, calc(100% - 24px)); }
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 20px; border-radius: 14px; background: var(--surface); }

/* ==========================================================================
   v3 — GPT 에셋 적용 (야구장 사진·로고·아이콘·배지·전광판·칠판·테이프·집중선)
   ========================================================================== */

/* header: always night navy so the cream script logo reads */
.site-header, .site-header.is-over-hero {
  color: #fff; background: rgb(17 23 53 / .84); border-color: rgb(255 255 255 / .12); box-shadow: 0 10px 30px rgb(0 0 0 / .25);
}
.brand__logo { width: auto; height: 36px; }

/* recent practice ticker (MLB scores strip) */
.ticker { background: var(--navy-deep); color: #fff; border-top: 1px solid rgb(255 255 255 / .08); }
.ticker__inner { display: flex; align-items: stretch; gap: 16px; padding: 14px 0; }
.ticker__title {
  flex: none; display: grid; place-items: center; padding: 0 14px; border-right: 1px solid rgb(255 255 255 / .14);
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--honey); writing-mode: horizontal-tb;
}
.ticker__list { position: relative; flex: 1; min-width: 0; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .25) transparent; padding-bottom: 2px; }
@media (max-width: 560px) { .ticker__title { display: none; } .tick { width: 210px; } }
.tick {
  scroll-snap-align: start; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px;
  width: 240px; min-height: 64px; padding: 10px 14px; border-radius: 12px; text-align: left;
  border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .04); color: #fff;
}
.tick:hover { background: rgb(255 255 255 / .09); border-color: rgb(255 255 255 / .24); }
.tick__date { display: grid; justify-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.tick__date small { font-family: var(--font-sans); font-weight: 600; font-size: .75rem; color: rgb(255 255 255 / .6); }
.tick__body { display: grid; min-width: 0; gap: 2px; }
.tick__icons { display: flex; gap: 2px; }
.tick__icons img { width: 20px; height: 20px; }
.tick__title { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tick__meta { font-size: .8rem; color: var(--honey); }

/* section titles: anime brush swash under the text */
.section-title { position: relative; display: inline-block; isolation: isolate; }
.section-title::after {
  content: ""; position: absolute; z-index: -1; left: -.35em; right: -.6em; bottom: -.05em; height: .62em;
  background: url("../img/ui/brush.webp") center / 100% 100% no-repeat; opacity: .9;
}

/* profile: GPT trading card + info */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.profile__card { margin: 0; justify-self: center; width: min(100%, 460px); }
.profile__card img { width: 100%; height: auto; border-radius: 18px; transform: rotate(-2.5deg); box-shadow: 0 24px 50px rgb(17 23 53 / .3); }
.profile__info .section-title { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.profile__bio { margin-top: 10px; color: var(--muted); font-size: 1.05rem; }
.profile__fields { display: grid; gap: 10px; margin: 24px 0; padding: 16px 0; border-block: 1px solid var(--line); max-width: 420px; }
.profile__fields > div { display: flex; justify-content: space-between; gap: 12px; }
.profile__fields dt { color: var(--muted); }
.profile__fields dd { font-weight: 800; }
.profile__note { margin-bottom: 26px; font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); max-width: 30em; }
@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; }
  .profile__card { width: min(100%, 360px); }
  .profile__info .btn { width: 100%; }
}

/* yesterday / today / next (NPB-style tabs) */
.today { margin-bottom: 32px; }
.today__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 480px; margin-bottom: 12px; }
.today__tabs [role="tab"] {
  min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface);
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--ink-2);
}
.today__tabs [role="tab"][aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .today__tabs [role="tab"][aria-selected="true"] { background: var(--honey); border-color: var(--honey); color: var(--navy-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .today__tabs [role="tab"][aria-selected="true"] { background: var(--honey); border-color: var(--honey); color: var(--navy-deep); } }
.today__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 860px) { .today__grid { grid-template-columns: 1fr; } }

.log-card { position: relative; display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.log-card--empty { color: var(--muted); }
.log-card__head { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.log-card__head span { margin-left: 8px; font-family: var(--font-sans); font-weight: 600; font-size: .88rem; color: var(--muted); }
.log-card__list { display: grid; gap: 10px; }
.log-card__list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.log-card__list img { width: 40px; height: 40px; padding: 5px; border-radius: 12px; background: color-mix(in srgb, var(--cc) 14%, var(--surface)); }
.log-card__list b { display: block; font-weight: 800; }
.log-card__list small { display: block; color: var(--muted); font-size: .88rem; }
.log-card .btn { justify-self: start; }
.plan-card { padding-right: 110px; }
.plan-card__ic { position: absolute; top: 14px; right: 18px; width: 70px; height: auto; transform: rotate(6deg); }
.plan-card__list { display: grid; gap: 10px; counter-reset: pl; }
.plan-card__list li { counter-increment: pl; display: flex; gap: 12px; align-items: baseline; font-weight: 600; }
.plan-card__list li::before { content: counter(pl); flex: none; width: 1.6em; font-family: var(--font-display); font-weight: 800; color: var(--honey-ink); }
@media (max-width: 520px) { .plan-card { padding-right: 22px; } .plan-card__ic { width: 48px; top: 10px; right: 12px; } }

/* dugout chalkboard routine */
.chalk {
  min-height: 280px; padding: 30px 36px 40px; border-radius: 14px; color: #F3F0E6;
  background: url("../img/ui/chalkboard.webp") center / 100% 100% no-repeat, #2B3230;
  box-shadow: 0 14px 30px rgb(0 0 0 / .18);
}
.chalk__title { font-family: var(--font-hand); font-weight: 700; font-size: 1.7rem; line-height: 1.2; margin-bottom: 10px; text-shadow: 0 0 1px rgb(255 255 255 / .5); }
.chalk__list { display: grid; gap: 4px; }
.chalk__list li, .chalk__list label { display: flex; align-items: center; gap: 12px; min-height: 40px; font-family: var(--font-hand); font-size: 1.35rem; line-height: 1.3; }
.chalk__list li > span::before { content: "·"; margin-right: 10px; }
.chalk__list label { cursor: pointer; }
.chalk__list input { width: 24px; height: 24px; flex: none; accent-color: var(--honey); cursor: pointer; }
.chalk__list input:checked + span { text-decoration: line-through; text-decoration-thickness: 2px; color: rgb(243 240 230 / .65); }

/* practice tools (edit mode) */
.tools { margin-bottom: 32px; }
.tools .sub-title { margin-top: 0; }
.tools__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tool { position: relative; display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.tool__ic { position: absolute; top: 14px; right: 14px; width: auto; height: 46px; }
.tool__name { font-weight: 800; }
.tool__hint { display: block; font-weight: 600; font-size: .8rem; color: var(--muted); }
.tool__value { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tool__value small { font-family: var(--font-sans); font-size: .95rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.tool.is-limit .tool__value { color: var(--danger); }
.tool__meter { width: 100%; height: 10px; }
.tool__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tool--save { background: var(--honey-soft); }
.tool__sum { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 1000px) { .tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tools__grid { grid-template-columns: 1fr; } }

/* GPT icons in chips / sessions / empty state */
.chip span { padding-left: 8px; }
.chip img { width: 22px; height: 22px; }
.chip input:not(:checked) + span img { filter: grayscale(1); opacity: .6; }
.tagchip img { width: 18px; height: 18px; }
.session__ic img { width: 30px; height: 30px; }
.day-panel__empty-ic { width: 64px; height: 64px; }

/* memo = paper note with GPT washi tape */
.memo { position: relative; margin-top: 18px; padding: 20px 18px 16px; border: 0; border-radius: 4px 4px 14px 4px; background: #FFF7E4; box-shadow: 0 6px 16px rgb(21 27 54 / .08); }
.memo::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 120px; height: 22px; transform: translateX(-50%) rotate(-2deg);
  background: url("../img/ui/tape.webp") center / contain no-repeat;
}
.memo__text { color: #2A2419; }
.memo__label { color: #8A5A0B; }
:root[data-theme="dark"] .memo { background: #2A2A36; } :root[data-theme="dark"] .memo__text { color: #F1ECE0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .memo { background: #2A2A36; } :root:not([data-theme="light"]) .memo__text { color: #F1ECE0; } }

/* milestones = GPT enamel badges */
.milestones::before { display: none; }
.milestones li { padding-top: 0; text-align: center; display: grid; justify-items: center; gap: 4px; }
.milestones li::before { display: none; }
.milestones__badge { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 10px rgb(21 27 54 / .2)); }
.milestones li.is-upcoming .milestones__badge { filter: grayscale(.6); opacity: .7; }
@media (max-width: 900px) {
  .milestones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; padding-left: 0; }
  .milestones li { padding: 0; }
}

/* SBO countdown on the GPT scoreboard */
.sbo-card--count.scoreboard {
  padding: 40px 44px; color: #FFF3D6; border-radius: 14px;
  background: url("../img/ui/scoreboard.webp") center / 100% 100% no-repeat, #1E3A2C;
}
.scoreboard .sbo-card__label { color: rgb(255 243 214 / .85); }
.scoreboard .countdown { color: #FFD27A; text-shadow: 0 0 18px rgb(255 190 90 / .45); }
.scoreboard .countdown small { color: rgb(255 243 214 / .85); text-shadow: none; }
.cta-band img { border: 0; border-radius: 16px; object-fit: contain; }

/* ==========================================================================
   v4 — 연습 영상 · 스틸컷 · 응원팀 · 퀴즈 페이지
   ========================================================================== */

/* 응원팀: 빈 칸 */
.field-blank { display: inline-block; min-width: 96px; height: 1.3em; border-bottom: 2px dashed var(--line-strong); vertical-align: middle; }

/* 연습 영상 */
.day-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.day-pill { min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 800; color: var(--ink-2); }
.day-pill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.practice-vod { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.player { position: relative; align-self: start; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; background: #0B1026; box-shadow: var(--shadow); }
.player__poster, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player__play {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%;
  border: 0; color: #fff; background: linear-gradient(180deg, rgb(10 14 38 / .1), rgb(10 14 38 / .55)); cursor: pointer;
}
.player__icon {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(105deg, #C99D41, #D4AC5E 55%, #E1BF86); box-shadow: 0 10px 30px rgb(0 0 0 / .35);
}
.player__icon::before { content: ""; margin-left: 6px; border-left: 22px solid #0A0A0A; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.player__label { font-weight: 800; text-shadow: 0 2px 8px rgb(0 0 0 / .5); }
.player__play:hover .player__icon { filter: brightness(1.06); }
.chapters { display: flex; flex-direction: column; min-height: 0; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.chapters__title { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.chapters__list { flex: 1; min-height: 0; max-height: 360px; overflow-y: auto; display: grid; gap: 2px; align-content: start; padding-right: 4px; }
.chapters__list a {
  display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: baseline; padding: 9px 10px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-size: .95rem;
}
.chapters__list a:hover { background: var(--surface-2); }
.chapters__list time { font-family: var(--font-display); font-weight: 700; color: var(--honey-ink); font-variant-numeric: tabular-nums; }
.chapters__more { margin-top: 10px; font-weight: 700; font-size: .9rem; }
.stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.still { margin: 0; }
.still button { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #0B1026; cursor: zoom-in; }
.still img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.still button:hover img { transform: scale(1.03); }
.still figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: .9rem; font-weight: 600; }
.still time { font-family: var(--font-display); color: var(--muted); font-weight: 700; }
@media (max-width: 900px) { .practice-vod { grid-template-columns: 1fr; } .chapters__list { max-height: 280px; } .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lightbox { width: min(1040px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 18px; background: #0B1026; color: #fff; box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
.lightbox::backdrop { background: rgb(5 8 20 / .8); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.lightbox figcaption { padding: 14px 18px 0; font-weight: 700; }
.lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px 14px; }
.lightbox__bar .btn--outline { color: #fff; border-color: rgb(255 255 255 / .35); }
.lightbox__bar .btn--outline:hover { background: rgb(255 255 255 / .08); border-color: #fff; }
.lightbox__bar .spacer { flex: 1; }

/* 성장 하이라이트: 개수에 맞게 */
.milestones { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.chart-empty { display: grid; place-items: center; min-height: 160px; padding: 20px; border-radius: 14px; background: var(--surface-2); color: var(--muted); text-align: center; }

/* 자주 묻는 질문 */
.faq { display: grid; gap: 10px; max-width: 840px; }
.faq__item { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 20px;
  font-weight: 800; font-size: 1.02rem; cursor: pointer; list-style: none; border-radius: 16px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; flex: none; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--honey-ink); transition: transform .2s; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { background: var(--surface-2); }
.faq__q:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.faq__a { padding: 2px 20px 18px; color: var(--ink-2); line-height: 1.75; }

/* 홈 → 하이라이트·공부 바로가기 */
.shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shortcut {
  display: grid; grid-template-columns: 156px minmax(0, 1fr); align-items: center; gap: 18px; height: 100%;
  padding: 12px 22px 12px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.shortcut:hover { border-color: var(--honey); transform: translateY(-2px); box-shadow: var(--shadow); }
.shortcut__img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; background: #0B1026; }
.shortcut--toon .shortcut__img { object-fit: contain; padding: 6px; background: var(--honey-soft); }
.shortcut__body { display: grid; gap: 3px; min-width: 0; }
.shortcut__kicker { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em; color: var(--honey-ink); }
.shortcut__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.25; }
.shortcut__desc { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .shortcuts { grid-template-columns: 1fr; gap: 10px; }
  .shortcut { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; padding-right: 16px; }
}

/* ---------- 퀴즈 페이지 ---------- */
.quiz-page { background: var(--bg); }
.quiz-hero { padding: clamp(104px, 11vw, 128px) 0 0; background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.quiz-hero__inner { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.quiz-hero__face { width: clamp(84px, 12vw, 120px); height: auto; border-radius: 50%; box-shadow: var(--shadow); }
.quiz-hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.15; }
.quiz-hero__title em { font-style: normal; color: var(--honey-ink); }
.quiz-hero__lead { margin-top: 8px; color: var(--muted); font-size: 1.05rem; }
.quiz-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-width: 560px; margin-top: 26px; }
.quiz-hero--pad { padding-bottom: clamp(26px, 4vw, 40px); }
.quiz-hero--pad + .section { padding-top: clamp(28px, 4vw, 48px); }
.hl-days { margin-top: 22px; }
.hl-days:empty { display: none; }
.quiz-tabs [role="tab"] {
  min-height: 52px; border: 1.5px solid var(--line-strong); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--surface);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ink-2);
}
.quiz-tabs [role="tab"][aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.study-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.study-tools .search__box { flex: 0 1 340px; }
.study-tools .search__count { flex-basis: 100%; }
.group-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.group-chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.group-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.group-chip__n { margin-left: 6px; font-size: .78rem; opacity: .72; }
.sort-toggle { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.sort-btn { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font-weight: 700; font-size: .9rem; color: var(--muted); }
.sort-btn[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* 용어 목록: 태그별 묶음 + 카드 흐름 (그림·영상 카드는 두 칸) */
.term-group { margin-top: 18px; }
.term-group + .term-group { margin-top: clamp(30px, 4vw, 44px); }
.term-group__title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.term-group__count { font-size: .95rem; color: var(--muted); }
.term-flow { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-flow: row dense; gap: 12px; }
#term-list > .term-flow { margin-top: 18px; }
.term-flow > .term-card { align-self: start; }
.term-card--pic { display: grid; gap: 4px; padding: 10px 10px 16px; }
.term-card--pic .term-card__top, .term-card--pic .term-card__short { padding-inline: 6px; }
.term-card__pic { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; margin-bottom: 8px; border-radius: 12px; background: #FFF8EC; }
@media (min-width: 640px) { .term-flow > .toon-card { grid-column: span 2; } }

.toon-card { display: grid; grid-template-columns: minmax(0, 264px) minmax(0, 1fr); gap: 18px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.toon-card__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 14px; background: #FFF8EC; }
.toon-card__body { display: grid; gap: 10px; align-content: start; }
.toon-card__group { font-size: .78rem; font-weight: 800; color: var(--honey-ink); }
.toon-card__term { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.2; }
.toon-card__short { font-weight: 700; }
.toon-card__tip { font-size: .9rem; color: var(--muted); }
.toon-card__tip::before { content: "TIP"; margin-right: 6px; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); font-size: .72rem; font-weight: 800; color: var(--ink-2); }
.toon-card__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.toon-card__media { display: grid; gap: 8px; align-content: start; margin: 0; }
.toon-card__media video { width: 100%; height: auto; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.toon-card__media figcaption { font-size: .84rem; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.toon-card__media .credit { display: block; margin-top: 2px; font-size: .74rem; font-weight: 500; color: var(--muted); }
.toon-card__media .credit a { color: inherit; }
.bubble { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; }
.bubble__face { width: 44px; height: 44px; border-radius: 50%; background: #FFF8EC; }
.bubble__text { position: relative; padding: 11px 14px; border-radius: 4px 16px 16px 16px; background: var(--honey-soft); border: 1px solid color-mix(in srgb, var(--honey) 40%, transparent); line-height: 1.65; }

.term-card { position: relative; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.term-card__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 4px; }
.term-card__term { font-weight: 800; font-size: 1.05rem; }
.term-card__group { font-size: .75rem; font-weight: 700; color: var(--muted); }
.term-card__short { color: var(--ink-2); font-size: .95rem; }
.is-flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--honey); } 100% { box-shadow: 0 0 0 0 transparent; } }
.empty-note { padding: 24px; text-align: center; color: var(--muted); }
@media (max-width: 520px) {
  .toon-card { grid-template-columns: 1fr; }
}

.exam { max-width: 760px; margin-inline: auto; }
.exam-start, .exam-result { display: grid; justify-items: center; gap: 10px; padding: clamp(24px, 5vw, 44px); text-align: center; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.exam-result:focus { outline: none; }
.exam__face { width: 110px; height: auto; border-radius: 50%; }
.exam__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.exam__lead { color: var(--muted); }
.exam__best { font-weight: 700; color: var(--honey-ink); min-height: 1.4em; }
.exam-q { display: grid; gap: 18px; padding: clamp(18px, 4vw, 32px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.exam-q__top { display: grid; gap: 8px; }
.exam-q__num { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-weight: 800; color: var(--muted); }
.exam-q__meta { display: inline-flex; align-items: center; gap: 6px; }
.exam-q__topic { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); font-size: .75rem; font-weight: 800; line-height: 1.5; }
.exam-q__bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.exam-q__bar i { display: block; height: 100%; background: linear-gradient(90deg, #C99D41, #E1BF86); transition: width .3s ease; }
.exam-q__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.exam-q__text { padding: 0; margin-bottom: 14px; font-size: clamp(1.15rem, 2.6vw, 1.4rem); font-weight: 800; line-height: 1.45; }
.sbo-tag { display: inline-block; vertical-align: 2px; padding: 2px 8px; border-radius: 6px; background: var(--sbo); color: #fff; font-size: .75rem; font-weight: 800; }
.exam-q__choices { display: grid; gap: 8px; }
.choice {
  position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; min-height: 56px; padding: 10px 16px;
  border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--bg); cursor: pointer; font-weight: 600;
}
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font-family: var(--font-display); font-weight: 800; }
.choice:hover { border-color: var(--ink-2); }
.choice:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.choice:has(input:checked) .choice__n { background: var(--navy); color: #fff; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice.is-answer { border-color: #1E8E5A; background: color-mix(in srgb, #1E8E5A 12%, var(--surface)); }
.choice.is-answer .choice__n { background: #1E8E5A; color: #fff; }
.choice.is-wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.choice.is-answer::after { content: "정답"; position: absolute; right: 14px; font-size: .78rem; font-weight: 800; color: #1E8E5A; }
.choice.is-wrong::after { content: "내 답"; position: absolute; right: 14px; font-size: .78rem; font-weight: 800; color: var(--danger); }
.choice input:disabled { cursor: default; }
.exam-q__feedback:empty { display: none; }
.feedback { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; }
.feedback img { width: 56px; height: 56px; border-radius: 50%; }
.feedback--ok { background: color-mix(in srgb, #1E8E5A 10%, var(--surface)); border: 1px solid color-mix(in srgb, #1E8E5A 40%, transparent); }
.feedback--no { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.feedback--hint { display: block; padding: 10px 14px; color: var(--danger); font-weight: 700; }
.feedback__head { font-weight: 800; margin-bottom: 2px; }
.exam-q__actions { display: flex; justify-content: flex-end; gap: 8px; }
.exam-result__score { font-family: var(--font-display); font-size: 1.4rem; color: var(--muted); }
.exam-result__score b { font-size: 3.4rem; color: var(--ink); }
.exam-result__msg { font-weight: 700; font-size: 1.1rem; }
.exam-result__label { margin-top: 8px; font-weight: 800; color: var(--muted); }
.exam-result__wrong ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.exam-result__wrong a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--surface-2); font-weight: 700; text-decoration: none; }
.exam-result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
@media (max-width: 520px) { .exam-q__actions .btn, .exam-result__actions .btn { flex: 1 1 auto; } }

/* 퀴즈 설정: 문제 수 · 난이도 */
.exam-setup { display: grid; gap: 16px; width: 100%; max-width: 520px; margin-top: 10px; }
.opt-group { min-width: 0; margin: 0; padding: 0; border: 0; text-align: left; }
.opt-group legend { padding: 0; margin-bottom: 8px; font-weight: 800; font-size: .9rem; color: var(--muted); }
.opt-group__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.opt { position: relative; display: block; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 48px; padding: 0 6px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--bg); font-weight: 800; color: var(--ink-2); text-align: center; transition: background-color .15s, border-color .15s;
}
.opt small { font-size: .75rem; font-weight: 700; color: var(--muted); }
.opt:hover span { border-color: var(--ink-2); }
.opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.opt input:checked + span small { color: rgb(255 255 255 / .75); }
.opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt input:disabled { cursor: not-allowed; }
.opt input:disabled + span { border-style: dashed; color: var(--muted); opacity: .6; }
.exam-setup__note { font-size: .9rem; color: var(--muted); text-align: center; }
.exam-setup .btn { justify-self: center; min-width: 200px; }

/* 난이도 배지 */
.lv { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: .75rem; font-weight: 800; line-height: 1.5; }
.lv::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lv--1 { color: color-mix(in srgb, var(--c-field) 68%, var(--ink)); background: color-mix(in srgb, var(--c-field) 13%, var(--surface)); }
.lv--2 { color: color-mix(in srgb, var(--c-pitch) 68%, var(--ink)); background: color-mix(in srgb, var(--c-pitch) 13%, var(--surface)); }
.lv--3 { color: color-mix(in srgb, var(--c-run) 68%, var(--ink)); background: color-mix(in srgb, var(--c-run) 13%, var(--surface)); }
.exam-result__levels { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.exam-result__levels:empty { display: none; }
.exam-result__levels li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; background: var(--surface-2); font-family: var(--font-display); color: var(--muted); }
.exam-result__levels b { color: var(--ink); font-size: 1.1rem; }

/* 답 확인 순간의 작은 움직임 */
.choice { transition: border-color .15s, background-color .15s, transform .15s; }
.choice:active { transform: scale(.99); }
.choice.is-answer { animation: pop .38s cubic-bezier(.3, 1.6, .6, 1); }
.choice.is-wrong { animation: shake .36s ease; }
.feedback { animation: rise .28s ease both; }
@keyframes pop { 50% { transform: scale(1.025); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 480px) {
  .quiz-tabs [role="tab"] { min-height: 48px; font-size: .98rem; }
  .opt span { font-size: .92rem; }
}

/* ---------- LIVE 상태 · 플로팅 방송국 칩 ---------- */
.live-dot { display: none; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #FF3B30; box-shadow: 0 0 0 0 rgb(255 59 48 / .6); animation: livepulse 1.6s ease-out infinite; }
.is-live > .live-dot, .hero__live .live-dot { display: inline-block; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgb(255 59 48 / .6); } 70% { box-shadow: 0 0 0 8px rgb(255 59 48 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 59 48 / 0); } }

/* 헤더 버튼은 방송 중이면 빨간 LIVE 버튼으로 */
.header-cta.is-live { color: #fff; border-color: rgb(255 255 255 / .12); background: linear-gradient(105deg, #C4202F 0%, #D7263D 55%, #E8474F 100%); }
.header-cta.is-live .live-dot { background: #fff; box-shadow: 0 0 0 0 rgb(255 255 255 / .7); }

.hero__live {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-bottom: 14px; padding: 8px 16px 8px 12px;
  border-radius: 999px; background: rgb(215 38 61 / .16); border: 1px solid rgb(255 99 99 / .45); color: #fff; text-decoration: none; font-size: .92rem;
}
.hero__live:hover { background: rgb(215 38 61 / .26); }
.hero__live b { color: #FF8A8A; font-weight: 800; }
.hero__live-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 28ch; color: rgb(255 255 255 / .85); }
.hero__live-title:empty { display: none; }

.station-chip {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 44;
  display: flex; align-items: center; gap: 12px; max-width: min(320px, calc(100vw - 32px)); padding: 7px 18px 7px 7px;
  border-radius: 999px; color: #fff; text-decoration: none;
  background: rgb(17 23 53 / .92); border: 1px solid rgb(255 255 255 / .14); box-shadow: 0 12px 30px rgb(0 0 0 / .3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, border-color .2s;
}
.is-past-hero .station-chip, .is-live .station-chip { visibility: visible; opacity: 1; transform: none; }
.station-chip:hover { border-color: rgb(233 190 120 / .6); }
.station-chip__avatar { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, #C99D41, #E1BF86); }
.station-chip__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #111735; }
.station-chip__badge {
  display: none; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 1px 6px; border-radius: 6px;
  background: #D7263D; color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .04em; line-height: 1.4; border: 2px solid #111735; white-space: nowrap;
}
.station-chip.is-live .station-chip__avatar { background: linear-gradient(135deg, #D7263D, #FF6B6B); animation: livering 2s ease-in-out infinite; }
.station-chip.is-live .station-chip__badge { display: block; }
@keyframes livering { 50% { box-shadow: 0 0 0 5px rgb(215 38 61 / .25); } }
.station-chip__text { display: grid; min-width: 0; line-height: 1.3; }
.station-chip__name { font-weight: 800; font-size: .95rem; }
.station-chip__status { font-size: .8rem; color: var(--honey); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.station-chip.is-live .station-chip__status { color: #FF8A8A; font-weight: 700; }
@media (max-width: 560px) {
  .station-chip { padding-right: 14px; gap: 10px; }
  .station-chip__avatar { width: 40px; height: 40px; }
}

/* ---------- motion & forced colors ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (forced-colors: active) {
  .day, .chip span, .btn, .pin, .tabs__list [role="tab"] { border: 1px solid CanvasText; }
  .day[aria-pressed="true"], .pin[aria-pressed="true"], [role="tab"][aria-selected="true"] { outline: 3px solid Highlight; }
  .day__bars i, .legend i, .share-bar span, .share-legend i, .chip i { forced-color-adjust: none; }
}

/* ==========================================================================
   관리자 페이지 (/admin/)
   ========================================================================== */
.admin-header__title { margin-right: 14px; font-weight: 800; color: var(--honey); }
.admin-header .btn { margin-left: 6px; }
.admin-main { min-height: 86vh; padding: calc(var(--header-h) + 44px) 0 72px; background: var(--bg-tint); }
.admin-loading { padding: 80px 16px; text-align: center; color: var(--muted); }
.admin-card { padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.admin-login { display: grid; place-items: center; }
.admin-login .admin-card { display: grid; gap: 14px; width: min(420px, 100%); text-align: center; }
.admin-login .field { text-align: left; }
.admin-login__face { justify-self: center; width: 88px; height: 88px; border-radius: 50%; }
.admin-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.25; }
.admin-title--sm { font-size: 1.3rem; }
.admin-lead { color: var(--muted); }
.admin-count { font-size: .95rem; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-list { grid-column: 1 / -1; }
.admin-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.admin-kind { min-width: 0; margin: 0; padding: 0; border: 0; }
.admin-kind legend { padding: 0; margin-bottom: 6px; font-weight: 700; font-size: .92rem; }
.admin-kind__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-sessions { display: grid; gap: 10px; min-width: 0; margin: 20px 0; padding: 0; border: 0; }
.admin-sessions > legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.admin-sessions > .btn { justify-self: start; }
.session-row { display: grid; gap: 6px; padding: 16px; border-radius: 16px; background: var(--surface-2); }
.session-row__remove { justify-self: end; color: var(--danger); }
.admin-actions { display: flex; justify-content: flex-end; margin-top: 6px; }
.admin-side { position: sticky; top: calc(var(--header-h) + 28px); }
.admin-side .tools { margin: 0; }
.admin-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.log-list { display: grid; gap: 10px; margin-top: 14px; }
.log-list__item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.log-list__body { display: grid; gap: 4px; flex: 1 1 280px; min-width: 0; }
.log-list__date { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.log-list__sum { font-size: .95rem; color: var(--ink-2); }
.log-list__min { margin-left: 4px; font-weight: 700; color: var(--muted); }
.log-list__memo { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-family: var(--font-hand); font-size: 1.15rem; }
.log-list__btns { display: flex; align-items: center; gap: 6px; }
.log-list__del { color: var(--danger); }
.log-list__empty { padding: 20px; text-align: center; color: var(--muted); }
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-side { position: static; }
}
@media (max-width: 560px) {
  .admin-header__site, .admin-header__title { display: none; }
  .admin-tools { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   SBO 한눈에 보기 (/sbo/)
   ========================================================================== */
.sbo-eyebrow { margin-bottom: 8px; font-size: .85rem; font-weight: 800; letter-spacing: .02em; color: var(--sbo-ink); }
.toc ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.toc a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: .9rem; text-decoration: none; }
.toc a:hover { border-color: var(--ink-2); color: var(--ink); }
#main > section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts > div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.facts dt { font-size: .84rem; font-weight: 700; color: var(--muted); }
.facts dd { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.facts dd small { margin-left: 6px; font-family: var(--font-sans); font-size: .85rem; font-weight: 600; color: var(--muted); }
.matchups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.matchups li { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.matchups li.is-final { background: var(--sbo-soft); border-color: color-mix(in srgb, var(--sbo) 40%, transparent); }
.matchups__date { font-weight: 800; }
.matchups__games { display: grid; gap: 4px; }
.matchups__games span { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.rule__src { margin-top: auto; font-size: .88rem; font-weight: 700; }
.recruit { display: grid; gap: 10px; padding: clamp(20px, 3vw, 28px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.recruit__date { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.2rem); color: var(--sbo-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cta-band .btn-row { flex: 0 1 auto; }
.sbo-source { margin-top: 18px; font-size: .85rem; color: var(--muted); }
.sbo-more { margin-top: 20px; }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matchups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .facts dd { font-size: 1.1rem; }
}
