/* Hallmark · shape: app screen · genre: editorial · theme: Almanac (deal 1/3, seed korean-game-news-aggregator-c96e·9d090f69·2026-10-27·r0) · redesign: restyle
 * nav: kept (category tabs) · signature: kept (the per-source sheet: lead story, popular five, latest list) · states: stale, error, warning, empty, busy
 * axes: mid/grotesk-sans/chromatic-magenta · posture: restrained · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S3 R5 V3 · weakest: S, the kept card grid could hold any aggregator; the sheet head rule, mono timestamps and ranks make it read as a printed index of sources */
/* Hallmark · waive 24b · card paddings 10px 14px, 5px 0 rows, 6px 16px controls · the kept layout's measure, locked by layout tests, stays as found */
/* Hallmark · waive 49b · popular and latest headlines wrap at 320px · a news headline is the content and cannot be shortened */
/* Hallmark · dropped "📺", "🎮" from the media and engine headings · 30a names emoji as icons */
/* Hallmark · body face: Nanum Barun Gothic in place of the theme's serif (Newsreader) · the owner chose a sans for dense Korean headline lists after comparing four faces on the real card */
/* Hallmark · reworded "수집 대기 중..." to "수집 대기 중…" · F2 names the three-period ellipsis */
/* Hallmark · dismissed 41 · sheets inherit body ink, re-derived with the paper in both modes, so text on a dark sheet is already light */
/* Hallmark · dismissed kept · article links, images and figures change because the crawler refreshes every source between records, not because of the restyle */

/* ─── Fonts (NAVER, SIL OFL 1.1, subset to KS X 1001 Hangul + ASCII) ─── */
@font-face { font-family: "NanumBarunGothic"; font-weight: 400; font-style: normal; font-display: swap; src: url("/resource/fonts/nanumbarungothic-400.woff2") format("woff2"); }
@font-face { font-family: "NanumBarunGothic"; font-weight: 700; font-style: normal; font-display: swap; src: url("/resource/fonts/nanumbarungothic-700.woff2") format("woff2"); }
@font-face { font-family: "NanumSquareNeo"; font-weight: 700; font-style: normal; font-display: swap; src: url("/resource/fonts/nanumsquareneo-700.woff2") format("woff2"); }
@font-face { font-family: "D2Coding"; font-weight: 400; font-style: normal; font-display: swap; src: url("/resource/fonts/d2coding-400.woff2") format("woff2"); }

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  color-scheme: light;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms; --dur-short: 220ms;

  --color-paper: oklch(84% 0.012 245); --color-paper-2: oklch(81% 0.012 245); --color-paper-3: oklch(77% 0.012 245);
  --color-sheet: oklch(93.5% 0.008 245); --color-sheet-2: oklch(89.5% 0.010 245);
  --color-ink: oklch(16% 0.020 245); --color-ink-2: oklch(24% 0.018 245); --color-muted: oklch(38% 0.016 245);
  --color-rule: oklch(73% 0.013 240); --color-rule-2: oklch(32% 0.018 240);
  --color-accent: oklch(45% 0.180 350); --color-accent-2: oklch(37% 0.160 350); --color-accent-ink: oklch(97% 0.006 245); --color-focus: oklch(46% 0.190 350);
  --color-error: oklch(50% 0.19 27); --color-warning: oklch(50% 0.12 70); --color-success: oklch(48% 0.12 150);
  --color-on-photo: oklch(97% 0.005 245); --color-scrim: oklch(12% 0.020 245); --color-plate: oklch(97% 0.004 245);

  --font-display: "NanumSquareNeo", "Apple SD Gothic Neo", "Malgun Gothic", ui-sans-serif, system-ui, sans-serif;
  --font-body: "NanumBarunGothic", "Apple SD Gothic Neo", "Malgun Gothic", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "D2Coding", ui-monospace, Consolas, monospace;
  --radius-card: 0; --radius-pill: 2px; --rule-hair: 1px; --rule-bar: 2px;
  --tracking-display: -0.02em; --display-weight: 700;

  /* the project's own token names, mapped onto the Almanac roles */
  --bg: var(--color-paper);
  --bg2: var(--color-sheet);
  --bg3: var(--color-sheet-2);
  --card: var(--color-sheet);
  --border: var(--color-rule);
  --accent: var(--color-accent);
  --accent2: var(--color-accent-2);
  --text: var(--color-ink);
  --text-muted: var(--color-muted);
  --error: var(--color-error);
  --warning: var(--color-warning);
  --success: var(--color-success);
  --radius: var(--radius-card);
  --shadow: none;
}

/* 다크: 같은 토큰 체계를 다시 유도한다 (반전이 아니라 재설계) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --color-paper: oklch(16% 0.012 245); --color-paper-2: oklch(19% 0.012 245); --color-paper-3: oklch(22% 0.012 245);
    --color-sheet: oklch(20.5% 0.012 245); --color-sheet-2: oklch(24% 0.012 245);
    --color-ink: oklch(94% 0.008 245); --color-ink-2: oklch(86% 0.010 245); --color-muted: oklch(71% 0.014 245);
    --color-rule: oklch(33% 0.014 240); --color-rule-2: oklch(80% 0.012 240);
    --color-accent: oklch(72% 0.150 350); --color-accent-2: oklch(78% 0.120 350); --color-accent-ink: oklch(16% 0.012 245); --color-focus: oklch(74% 0.150 350);
    --color-error: oklch(70% 0.16 27); --color-warning: oklch(78% 0.12 75); --color-success: oklch(72% 0.12 150);
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --color-paper: oklch(16% 0.012 245); --color-paper-2: oklch(19% 0.012 245); --color-paper-3: oklch(22% 0.012 245);
  --color-sheet: oklch(20.5% 0.012 245); --color-sheet-2: oklch(24% 0.012 245);
  --color-ink: oklch(94% 0.008 245); --color-ink-2: oklch(86% 0.010 245); --color-muted: oklch(71% 0.014 245);
  --color-rule: oklch(33% 0.014 240); --color-rule-2: oklch(80% 0.012 240);
  --color-accent: oklch(72% 0.150 350); --color-accent-2: oklch(78% 0.120 350); --color-accent-ink: oklch(16% 0.012 245); --color-focus: oklch(74% 0.150 350);
  --color-error: oklch(70% 0.16 27); --color-warning: oklch(78% 0.12 75); --color-success: oklch(72% 0.12 150);
}

/* ─── Reset / Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); }

body {
  background: var(--bg);
  color: var(--color-ink-2);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

:root[data-theme="dark"] body { font-weight: 400; }

::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

a { color: inherit; text-decoration: none; text-underline-offset: 0.15em; }
a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; }
a:active { color: var(--color-accent); }

h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-synthesis: none; letter-spacing: var(--tracking-display); overflow-wrap: break-word; min-width: 0; text-wrap: balance; color: var(--color-ink); }

button { font: inherit; }

/* ─── Page Header ───────────────────────────────────── */
.page-header {
  background: var(--color-paper);
  border-bottom: var(--rule-bar) solid var(--color-rule-2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-header__inner {
  max-width: 85rem;
  margin: 0 auto;
  padding: 0 8px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header__inner--home {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 12px;
}

@media (min-width: 640px) {
  .page-header__inner { padding: 0 16px; height: 72px; }
}

.page-header__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  white-space: nowrap;
}
.page-header__title:hover { text-decoration: none; }

.page-header__logo {
  width: 34px;
  height: 34px;
}

.interval-bar__btn {
  background: transparent;
  color: var(--text-muted);
  border: var(--rule-hair) solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 15px;
  cursor: pointer;
  transition: color var(--dur-micro), border-color var(--dur-micro), background-color var(--dur-micro);
  white-space: nowrap;
}
.interval-bar__btn:hover { color: var(--text); border-color: var(--color-ink); background: var(--color-paper-2); }
.interval-bar__btn:active { background: var(--color-paper-3); }
.interval-bar__btn:disabled { opacity: .4; cursor: default; }

.interval-bar__btn--theme {
  align-self: center;
  justify-self: end;
  display: grid;
  width: 48px;
  height: 40px;
  margin-left: 8px;
  background: transparent;
  color: var(--color-ink);
  border: 0;
  place-items: center;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}
.interval-bar__btn--theme:hover { color: var(--text); background: var(--color-paper-2); }
.interval-bar__btn--theme:active { background: var(--color-paper-3); }
.interval-bar__btn--theme:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ─── Page Wrap (max-width 중앙 정렬) ──────────────────── */
.page-wrap {
  max-width: 80rem; /* 1280px = Tailwind max-w-7xl */
  margin: 0 auto;
  padding: 0 16px;
}

/* ─── Header Event Carousel ─────────────────────────── */
.event-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-self: end;
  gap: 10px;
  min-width: 0;
  width: max-content;
  max-width: min(560px, 100%);
}

.event-banner__track { position: relative; min-width: 0; }
.event-banner__slide { display: none; }
.event-banner__slide--active { display: block; }
.event-banner__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
}
.event-banner__link:hover { color: var(--text); }
.event-banner__media {
  display: block;
  width: 96px;
  aspect-ratio: 192 / 90;
  overflow: hidden;
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-card);
  background: var(--color-paper-3);
}
.event-banner__image,
.event-banner__fallback { display: block; width: 100%; height: 100%; }
.event-banner__image { object-fit: cover; }
.event-banner__fallback { background: var(--color-paper-3); }
.event-banner__content { min-width: 0; }
.event-banner__title {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-banner__title--compact {
  font-size: 12px;
  letter-spacing: -.2px;
}
.event-banner__date {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-family: var(--font-outlier);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  white-space: nowrap;
}
.event-banner__position {
  display: grid;
  width: 28px;
  min-width: 28px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  grid-template-rows: repeat(4, 4px);
  grid-auto-flow: column;
  place-content: center;
  gap: 2px 3px;
}
.event-banner__position:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}
.event-banner__position:active { opacity: .7; }
.event-banner__indicator {
  width: 4px;
  height: 4px;
  border-radius: 0;
  background: var(--border);
  transition: background-color var(--dur-micro), transform var(--dur-micro);
}
.event-banner__indicator--active {
  background: var(--accent);
  transform: scale(1.25);
}

@media (max-width: 700px) {
  .page-header__inner--home {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 6px;
    height: 64px;
    min-height: 64px;
  }
  .page-header__inner--home .page-header__name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .page-header__inner--home .page-header__title { gap: 0; }
  .page-header__inner--home .event-banner { grid-column: 2; grid-row: 1; }
  .page-header__inner--home > .interval-bar__btn--theme { grid-column: 3; grid-row: 1; margin-left: 0; }
}

@media (max-width: 420px) {
  .page-header__title { font-size: 1.1rem; }
  .page-header__logo { width: 30px; height: 30px; }
  .event-banner { gap: 6px; }
  .event-banner__link { grid-template-columns: minmax(0, 1fr) 88px; gap: 8px; }
  .event-banner__media { width: 88px; }
  .event-banner__title { font-size: 13px; }
  .event-banner__title--compact { font-size: 11px; }
  .event-banner__position { grid-template-rows: repeat(4, 4px); gap: 2px 3px; }
}

/* ─── AI Briefing ───────────────────────────────────── */
.ai-briefing {
  margin-top: 16px;
  border-top: var(--rule-bar) solid var(--color-ink);
  border-radius: var(--radius-card);
  background: var(--color-sheet);
  overflow: hidden;
  overflow-wrap: anywhere;
}

.ai-briefing__header {
  padding: 10px 14px 11px;
  border-bottom: var(--rule-hair) solid var(--border);
  background: var(--color-sheet);
}
.ai-briefing__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ai-briefing__title {
  margin: 0;
  color: var(--color-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.ai-briefing__badge {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 700;
}
.ai-briefing__content { padding: 16px; }
.ai-briefing__schedule { margin-top: 6px; color: var(--text-muted); font-size: 12px; }
.ai-briefing__sections {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 2px;
}
.ai-briefing__section { min-width: 0; padding: 14px 0; border-bottom: var(--rule-hair) solid var(--border); }
.ai-briefing__section:last-child { border-bottom: 0; padding-bottom: 0; }
.ai-briefing__section-heading { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.ai-briefing__section-index { color: var(--accent); font-family: var(--font-outlier); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.ai-briefing__section h3 { margin: 0; color: var(--text); font-size: 16px; line-height: 1.4; }
.ai-briefing__section > p { margin: 0; color: var(--color-ink-2); font-size: 15px; line-height: 1.7; white-space: pre-line; }
.ai-briefing__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 11px; font-size: 12px; }
.ai-briefing__links a {
  max-width: 100%;
  padding: 3px 7px;
  overflow: hidden;
  border: var(--rule-hair) solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--color-sheet-2);
  color: var(--color-ink-2);
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--dur-micro), border-color var(--dur-micro), background-color var(--dur-micro);
}
.ai-briefing__links a:hover {
  border-color: var(--color-ink);
  background: var(--color-sheet);
  color: var(--color-ink);
  text-decoration: none;
}
.ai-briefing__links a:active { background: var(--color-paper-2); }
.ai-briefing__notice { margin-top: 14px; color: var(--text-muted); font-size: 12px; }
.ai-briefing__empty { margin: 5px 0 0; font-size: 15px; }

@media (min-width: 720px) {
  .ai-briefing__header { padding: 11px 20px 13px; }
  .ai-briefing__content { padding: 18px 20px 20px; }
  .ai-briefing__sections {
    gap: 1px;
    margin-top: 2px;
    background: var(--border);
  }
  .ai-briefing__sections--1 { grid-template-columns: minmax(0, 1fr); }
  .ai-briefing__sections--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-briefing__sections--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-briefing__section,
  .ai-briefing__section:last-child { padding: 14px; border-bottom: 0; background: var(--color-sheet); }
  .ai-briefing__section:first-child { padding-left: 0; }
  .ai-briefing__section:last-child { padding-right: 0; }
}

@media (max-width: 560px) {
  .ai-briefing__content { padding: 14px; }
}

/* ─── Category Navigation ────────────────────────────── */
.category-nav {
  margin-top: 16px;
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
}

.category-nav__scroller {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav__scroller::-webkit-scrollbar { display: none; }

.category-nav__link {
  position: relative;
  flex: 0 0 auto;
  padding: 11px 14px 12px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--dur-micro), background-color var(--dur-micro);
}

.category-nav__link:hover {
  background: var(--color-paper-2);
  color: var(--text);
  text-decoration: none;
}

.category-nav__link:active { background: var(--color-paper-3); }

.category-nav__link--active {
  color: var(--color-ink);
}

.category-nav__link--active::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  border-radius: 0;
  background: var(--accent);
  content: '';
}

.category-content[aria-busy="true"] {
  opacity: .55;
  transition: opacity var(--dur-micro);
}

.category-content:not([data-category="all"]) > .persons-section {
  padding-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .event-banner *, .main-carousel * { scroll-behavior: auto; transition: none !important; }
}

/* ─── Sites Grid (최대 2열 반응형) ──────────────────────── */
.sites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px 0;
}

@media (min-width: 640px) { .sites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ─── Site Card (the sheet) ─────────────────────────── */
.site-card {
  background: var(--color-sheet);
  border-top: var(--rule-bar) solid var(--color-ink);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.site-card--warning { border-top-color: var(--warning); }
.site-card--stale { border-top-color: var(--warning); }
.site-card--error { border-top-color: var(--error); }

.site-card__header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 8px;
  background: var(--color-sheet);
  border-bottom: var(--rule-hair) solid var(--border);
}

.site-card__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
}
.site-card__name:hover { color: var(--color-ink); }

.crawl-status-badge {
  font-size: 12px;
  border-radius: var(--radius-pill);
  padding: 1px 6px;
  cursor: help;
  white-space: nowrap;
  flex-shrink: 0;
}

.crawl-status-badge--warning {
  color: var(--text-muted);
  border: var(--rule-hair) solid var(--border);
}

.crawl-status-badge--stale {
  color: var(--warning);
  background: color-mix(in oklab, var(--warning) 10%, transparent);
  border: var(--rule-hair) solid color-mix(in oklab, var(--warning) 45%, transparent);
}

.crawl-status-badge--error {
  color: var(--error);
  background: color-mix(in oklab, var(--error) 10%, transparent);
  border: var(--rule-hair) solid color-mix(in oklab, var(--error) 45%, transparent);
}

.site-card__unavailable {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}

/* site-card__meta 제거됨 (헤더 중앙 표시로 이동) */

/* ─── Main Banner Carousel ──────────────────────────── */
.main-carousel {
  position: relative;
}

.main-carousel--empty {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 12px;
}

.main-carousel__track {
  position: relative;
  overflow: hidden;
}

.main-slide {
  display: none;
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--color-paper-3);
  text-decoration: none;
}

.main-slide.main-slide--active { display: block; }

.main-slide__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.main-slide__thumb--fallback {
  object-fit: cover;
}

.main-slide__no-thumb {
  width: 100%;
  height: 100%;
  background: var(--color-paper-3);
}

.main-slide__title {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 12px 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: 1.45;
  color: var(--color-on-photo);
  background: linear-gradient(transparent, color-mix(in oklab, var(--color-scrim) 92%, transparent) 55%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.main-slide:hover { text-decoration: none; }
.main-slide:hover .main-slide__title { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }

/* 내비게이션 바 */
.main-carousel__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: var(--color-sheet-2);
  border-top: var(--rule-hair) solid var(--border);
}

.main-carousel__arrow {
  flex-shrink: 0;
  width: 33px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: var(--rule-hair) solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--dur-micro), border-color var(--dur-micro);
}
.main-carousel__arrow svg { width: 16px; height: 16px; }
.main-carousel__arrow:hover { background: var(--color-sheet); border-color: var(--color-ink); }
.main-carousel__arrow:active { background: var(--color-paper-2); }

.main-carousel__dots {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.main-carousel__dot {
  width: 11px;
  height: 11px;
  border-radius: 0;
  border: none;
  background: var(--color-rule);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--dur-micro);
}
.main-carousel__dot:hover { background: var(--color-muted); }
.main-carousel__dot.main-carousel__dot--active {
  background: var(--accent);
}

/* ─── Popular News List ──────────────────────────────── */
.popular-section {
  padding: 10px 14px 6px;
  border-bottom: var(--rule-hair) solid var(--border);
  background: var(--color-sheet-2);
}

.popular-section__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.popular-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.popular-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 0;
  border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--border) 60%, transparent);
}
.popular-item:last-child { border-bottom: none; }

.popular-item__rank {
  min-width: 20px;
  font-family: var(--font-outlier);
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  text-align: right;
  flex-shrink: 0;
}

.popular-item__link {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Latest News List ───────────────────────────────── */
.latest-section {
  padding: 10px 14px 14px;
  flex: 1;
}

.latest-section__details {
  width: 100%;
}

.latest-section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.latest-section__title:hover { color: var(--color-ink); }

.latest-section__title::-webkit-details-marker {
  display: none;
}

.latest-section__title::after {
  content: '\2190';
  display: inline-block;
  font-size: 18px;
  line-height: 1;
}

.latest-section__details[open] .latest-section__title {
  margin-bottom: 8px;
}

.latest-section__details[open] .latest-section__title::after {
  content: '\2193';
}

.latest-section__empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 0;
}

.latest-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.latest-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0;
  border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--border) 60%, transparent);
}
.latest-item:last-child { border-bottom: none; }

.latest-item__rank {
  min-width: 20px;
  font-family: var(--font-outlier);
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  text-align: right;
}

.latest-item__link {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-item__time {
  font-family: var(--font-outlier);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--color-muted); border-radius: 0; }

/* ─── Persons Section ───────────────────────────────── */
.persons-section {
  padding: 24px 0 16px;
}

.persons-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
}

.persons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) { .persons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ─── Game Companies ───────────────────────────────── */
.company-section {
  padding-bottom: 8px;
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.company-card {
  min-width: 0;
  overflow: hidden;
  border-top: var(--rule-bar) solid var(--color-ink);
  border-radius: var(--radius-card);
  background: var(--color-sheet);
  transition: border-color var(--dur-micro);
}

.company-card:hover {
  border-top-color: var(--accent);
}

.company-card__header {
  padding: 13px 14px;
  border-bottom: var(--rule-hair) solid var(--border);
  background: var(--color-sheet);
}

.company-card__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.company-card__identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.company-card__logo {
  display: grid;
  flex: 0 0 26px;
  place-items: center;
  width: 26px;
  height: 26px;
  overflow: hidden;
  border: var(--rule-hair) solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--color-plate);
}

.company-card__logo img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.company-card__links {
  margin: 0;
}

.company-card__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  min-height: 43px;
  padding: 8px 12px;
  border-top: var(--rule-hair) solid color-mix(in oklab, var(--border) 70%, transparent);
}

.company-card__row:first-child {
  border-top: 0;
}

.company-card__row dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.company-card__row dt::before {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1;
}

.company-card__row--tech dt::before { content: '</>'; font-family: var(--font-outlier); font-size: 9px; }
.company-card__row--careers dt::before { content: '▣'; }
.company-card__row--youtube dt::before { content: '▶'; font-size: 9px; }

.company-card__row dd {
  min-width: 0;
  margin: 0;
}

.company-card__row dd > a,
.company-card__youtube-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.company-card__row dd > a > span:first-child,
.company-card__youtube-link > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-card__row dd > a:hover,
.company-card__youtube-link:hover {
  color: var(--color-ink);
}

.company-link__external {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 11px;
  transition: color var(--dur-micro), transform var(--dur-micro);
}

a:hover > .company-link__external,
a:focus-visible > .company-link__external {
  color: var(--accent);
  transform: translate(1px, -1px);
}

.company-card__youtube-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.company-card__youtube-link {
  width: auto;
  padding: 3px 7px;
  border: var(--rule-hair) solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--color-sheet-2);
  white-space: nowrap;
}
.company-card__youtube-link:hover { border-color: var(--color-ink); text-decoration: none; }
.company-card__youtube-link:active { background: var(--color-paper-2); }

@media (min-width: 560px) {
  .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .company-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ─── Footer ─────────────────────────────────────────── */
.page-footer {
  position: relative;
  margin-top: 32px;
  padding: 20px 0;
  border-top: var(--rule-bar) solid var(--color-rule-2);
  text-align: center;
}

.page-footer__text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.page-footer__stats {
  position: absolute;
  left: 0;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.page-footer__visitors,
.page-footer__fetch-time {
  color: var(--text-muted);
  font-size: 13px;
}

.page-footer__visitors strong,
.page-footer__fetch-time strong {
  color: var(--text);
  font-family: var(--font-outlier);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.page-footer__link {
  position: absolute;
  right: 0;
  top: 20px;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color var(--dur-micro), text-decoration-color var(--dur-micro);
}

.page-footer__link:hover {
  color: var(--color-ink);
  text-decoration-color: var(--accent);
}

@media (max-width: 700px) {
  .page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
  }

  .page-footer__link { position: static; flex-shrink: 0; }
  .page-footer__stats { position: static; gap: 8px; }
  .page-footer__text { display: none; }
}

@media (max-width: 420px) {
  .page-footer { flex-wrap: wrap; row-gap: 8px; }
  .page-footer__stats { flex: 1 1 100%; }
  .page-footer__link { margin-left: auto; }
}

/* ─── Terms ─────────────────────────────────────────────────────────────── */
.terms-page {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.terms-card {
  overflow: hidden;
  border-top: var(--rule-bar) solid var(--color-ink);
  border-radius: var(--radius-card);
  background: var(--color-sheet);
}

.terms-card__header {
  padding: 36px 40px 32px;
  border-bottom: var(--rule-hair) solid var(--border);
  background: var(--color-sheet);
}

.terms-card__back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

.terms-card__header h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -.03em;
}

.terms-card__header p {
  max-width: 580px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.terms-card__content { padding: 8px 40px 36px; }

.terms-card__content section {
  padding: 28px 0;
  border-bottom: var(--rule-hair) solid var(--border);
}

.terms-card__content h2 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.45;
}

.terms-card__content h2 span {
  margin-right: 4px;
  color: inherit;
}

.terms-card__content section p {
  color: var(--color-ink-2);
  font-size: 15px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.terms-card__content section a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.terms-card__effective-date {
  margin-top: 28px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .terms-page { padding: 24px 0 48px; }
  .terms-card__header { padding: 28px 24px 24px; }
  .terms-card__back { margin-bottom: 20px; }
  .terms-card__content { padding: 4px 24px 28px; }
  .terms-card__content section { padding: 24px 0; }
}



/* ─── Person Card ───────────────────────────────────── */
.person-card {
  background: var(--card);
  border-top: var(--rule-bar) solid var(--color-ink);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.person-card--error {
  border-top-color: var(--error);
}

.person-card--warning { border-top-color: var(--warning); }
.person-card--stale { border-top-color: var(--warning); }

.person-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: var(--rule-hair) solid var(--border);
  gap: 8px;
}

.person-card__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person-card__name:hover { color: var(--color-ink); }

/* ─── Person Featured Item ──────────────────────────── */
.person-featured {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.person-featured:hover { text-decoration: none; }

.person-featured--empty {
  min-height: 120px;
  align-items: center;
  justify-content: center;
  background: var(--color-sheet-2);
  color: var(--text-muted);
  font-size: 13px;
  padding: 20px;
  text-align: center;
}

/* 이미지 없는 기사 전용 featured (서정근 기자 등) */
.person-featured--text-only {
  background: var(--color-sheet-2);
  min-height: 0;
  padding: 12px 14px 10px;
  gap: 4px;
}
.person-featured--text-only .person-featured__title {
  position: static;
  font-size: 15px;
  padding: 0;
  background: none;
  color: var(--text);
  -webkit-line-clamp: 3;
}
.person-featured--text-only .person-featured__date {
  position: static;
  padding: 0;
  color: var(--text-muted);
  text-align: left;
}

.person-featured__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--color-paper-3);
}

/* Unity fallback/source images can include a fine edge; crop it inside the shared frame. */
.person-featured__thumb--edge-cropped { transform: scale(1.01); }

.person-featured__no-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-paper-3);
}

.person-featured__title {
  position: absolute;
  inset: 0 0 auto 0;
  padding: 10px 12px 40px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: 1.4;
  color: var(--color-on-photo);
  background: linear-gradient(color-mix(in oklab, var(--color-scrim) 92%, transparent) 45%, transparent);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.person-featured:hover .person-featured__title { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }

.person-featured__date {
  position: absolute;
  inset: auto 0 0 0;
  padding: 4px 12px 6px;
  font-family: var(--font-outlier);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--color-on-photo);
  background: linear-gradient(transparent, color-mix(in oklab, var(--color-scrim) 80%, transparent));
  text-align: right;
}

/* ─── Person List ───────────────────────────────────── */
.person-list {
  list-style: none;
  margin: 0;
  padding: 6px 0 4px;
  border-top: var(--rule-hair) solid var(--border);
}

.person-list-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 12px;
  line-height: 1.35;
}

.person-list-item__rank {
  font-family: var(--font-outlier);
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  min-width: 16px;
  flex-shrink: 0;
}

.person-list-item__link {
  font-size: 14px;
  color: var(--color-ink-2);
  text-decoration: none;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.person-list-item__date {
  font-family: var(--font-outlier);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
