@font-face {
  font-family: 'Escoredream';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-1Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Escoredream';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-4Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Escoredream';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-6Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =====================================================
  BEGINNER'S GUIDE — v0.3 / "ZERO ORANGE"
  Clean black canvas · hard white contrast · signal orange
   ===================================================== */

:root {
  --bg: #070708;
  --bg-2: #101012;
  --surface: #151518;
  --surface-2: #1d1d21;
  --line: #2a2a2e;
  --line-strong: #47474d;
  --ink: #f7f7f4;
  --ink-2: #d9d9d4;
  --ink-3: #8d8d92;
  --accent: #ff4b16;
  --accent-ink: #ffffff;
  --hot: #ff4b16;
  --good: #6ee7a7;
  --warn: #ffb648;
  --radius: 4px;
  --maxw: 1280px;

  --display: 'Escoredream', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --sans: 'Escoredream', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --mono: 'Escoredream', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: var(--sans); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  z-index: 1;
  transition: filter 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

body.has-combo-consent-modal {
  overflow: hidden;
}

body.has-combo-consent-modal .page-shell {
  filter: blur(18px);
  transform: scale(1.01);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* subtle film grain — just enough to kill the "AI flat" vibe */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(255,75,22,0.18);
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.ink-accent { color: var(--accent); }

/* =====================================================
   HOME
   ===================================================== */
.page-home { min-height: 100vh; display: flex; flex-direction: column; }

.home__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.mark { display: inline-flex; align-items: center; gap: 8px; }
.mark--mute { color: var(--ink-3); }

.home {
  flex: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 80px 36px 48px;
  display: grid;
  grid-template-columns: 1.28fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.home__hero { position: relative; }

.home__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  margin: 0 0 28px;
  text-transform: uppercase;
}

.home__title {
  font-family: var(--display);
  font-weight: 800;
  font-style: normal;
  font-size: clamp(56px, 8.4vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 36px;
  color: var(--ink);
}

.home__title .word { display: inline-block; margin-right: 0.18em; }
.home__title .word--accent {
  color: var(--accent);
  font-style: italic;
  transform: rotate(-2deg);
}
.home__title .word--outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.home__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 0 36px;
}

.home__cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 0 rgba(255,75,22,0);
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 0 -6px rgba(255,75,22,0.36);
}
.cta__arrow {
  font-family: var(--mono);
  font-weight: 600;
  transition: transform 0.2s ease;
}
.cta:hover .cta__arrow { transform: translateX(4px); }
.home__note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* Menu — stacked, oversized, off-grid */
.home__menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1.2),
              background 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease;
  overflow: hidden;
}
.menu-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(.7,.05,.2,1);
  z-index: 0;
}
.menu-item > * { position: relative; z-index: 1; }
.menu-item:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateX(8px) rotate(-0.4deg);
}
.menu-item:hover::before { transform: translateX(0); }
.menu-item:hover .menu-item__index,
.menu-item:hover .menu-item__desc,
.menu-item:hover .menu-item__tag { color: var(--accent-ink); border-color: var(--accent-ink); }

.menu-item--disabled {
  opacity: 0.42;
  pointer-events: none;
}
.menu-item--disabled::before {
  display: none;
}

.menu-item__index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.menu-item__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.menu-item__desc {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 6px;
  letter-spacing: -0.005em;
}

/* group label/desc: we use grid-column tricks instead */
.menu-item__label, .menu-item__desc { grid-column: 2; }
.menu-item__label { align-self: end; }
.menu-item__desc { align-self: start; }

.menu-item__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  padding: 5px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* marquee strip */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 14px 0;
}
.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: scroll 28s linear infinite;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-right: 28px;
  color: var(--ink);
  transition: color 0.16s ease, transform 0.16s ease;
}

.marquee__item:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.marquee__item--disabled {
  opacity: 0.42;
  pointer-events: none;
}

.marquee__name {
  white-space: nowrap;
}

.marquee__sep {
  font-size: 16px;
  color: var(--accent);
}

.marquee__item:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
}
@keyframes scroll {
  to { transform: translateX(-25%); }
}

.home__footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 36px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .home { grid-template-columns: 1fr; gap: 56px; padding: 56px 16px; }
}
@media (max-width: 600px) {
  .home__top { padding: 16px 20px; }
  .home { padding: 40px 20px; }
  .home__title {
    line-height: 0.95;
    text-wrap: balance;
    word-break: keep-all;
  }
  .home__title .word {
    display: inline;
    margin-right: 0.14em;
  }
  .home__title .word--accent {
    display: inline-block;
  }
  .menu-item { padding: 20px; gap: 14px; }
  .menu-item__index, .menu-item__tag { display: none; }
  .menu-item__label, .menu-item__desc { grid-column: 1; }
  .home__footer { padding: 18px 20px; }
}

/* =====================================================
   SUBPAGE — top bar / layout
   ===================================================== */
.topbar-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 0;
}

.topbar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 8, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 0;
}

.topbar-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transform: translateY(calc(-100% + 18px));
  transition: transform 0.22s ease;
}

.topbar-shell:hover .topbar,
.topbar-shell:focus-within .topbar,
.topbar-shell.is-open .topbar,
.topbar:hover,
.topbar:focus-within {
  transform: translateY(0);
}

.topbar-shell:hover .topbar-backdrop,
.topbar-shell:focus-within .topbar-backdrop,
.topbar-shell.is-open .topbar-backdrop {
  opacity: 1;
}

.topbar__brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar__mark { color: var(--accent); }

.topbar__toggle {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: 52px;
  height: 18px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: var(--bg);
  color: var(--ink);
  padding: 0;
}

.topbar__toggle span {
  width: 14px;
  height: 1px;
  background: currentColor;
  display: block;
}

.topbar__nav { display: flex; gap: 6px; }
.topbar__nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.topbar__nav a i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
}
.topbar__nav a:hover { color: var(--ink); background: var(--surface); }
.topbar__nav a[aria-disabled="true"] {
  color: var(--ink-3);
  opacity: 0.42;
  pointer-events: none;
}
.topbar__nav a.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.topbar__nav a.is-active i { color: var(--accent-ink); }

.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 36px 96px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.section { max-width: 840px; }
.section--hero { padding-top: 16px; }

.section__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  margin: 0 0 22px;
  text-transform: uppercase;
}

.section__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 6.6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}

.section__lead {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0;
  line-height: 1.65;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 36px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer a:hover { color: var(--accent); }

/* =====================================================
   GUIDE CONTENT — choices / FAQ / sites
   ===================================================== */
.choice-board,
.faq-list,
.resource-strip,
.site-grid {
  width: 100%;
}

.choice-board {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.choice-board--compact {
  max-width: 840px;
}

.choice-board__head {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  max-width: 760px;
}

.choice-board__head h2,
.resource-strip h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.choice-board__head p:not(.kicker) {
  margin: 0;
  color: var(--ink-2);
}

.flowchart {
  min-height: 320px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    var(--bg-2);
  background-size: 32px 32px;
  overflow-x: hidden;
  box-shadow: inset 0 8px 32px rgba(0,0,0,0.4);
  padding: 36px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.flowchart::-webkit-scrollbar { height: 6px; }
.flowchart::-webkit-scrollbar-thumb { background-color: var(--line-strong); border-radius: 4px; }

.flowchart svg {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.flowchart__link {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.86;
  transition: opacity 0.16s ease;
}

.flowchart__link.is-muted,
.flowchart__link-label.is-muted {
  opacity: 0.18;
}

.flowchart__link-label {
  fill: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.flowchart__node {
  cursor: pointer;
  outline: none;
}

.flowchart__node rect {
  fill: var(--surface);
  stroke: var(--line-strong);
  stroke-width: 1;
  transition: fill 0.16s ease, stroke 0.16s ease, filter 0.16s ease;
}

.flowchart__node--result rect {
  fill: #24140f;
  stroke: rgba(255,75,22,0.58);
}

.flowchart__node text {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

.flowchart__node:hover rect,
.flowchart__node:focus rect,
.flowchart__node.is-selected rect {
  fill: var(--accent);
  stroke: var(--accent);
  filter: drop-shadow(0 10px 0 rgba(255,75,22,0.2));
}

.flowchart__node:hover text,
.flowchart__node:focus text,
.flowchart__node.is-selected text {
  fill: var(--accent-ink);
}

.flowchart__fallback {
  margin: 0;
  padding: 24px 24px 24px 48px;
}

.recommend-grid,
.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.recommend-card,
.site-card,
.faq-item {
  border: 1px solid var(--line);
  background: var(--surface);
}

.recommend-card,
.site-card {
  padding: 22px;
  min-height: 150px;
}

.recommend-card span,
.site-card span {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
}

.recommend-card strong,
.site-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.recommend-card p,
.site-card p {
  margin: 0;
  color: var(--ink-2);
}

.site-card {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.site-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--surface-2);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 940px;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--mono);
}
.faq-item[open] summary::after { content: "-"; }

.faq-item p,
.faq-item ul,
.faq-table-wrap {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--ink-2);
}

.faq-item p + p { padding-top: 0; }
.faq-item ul { padding-left: 42px; }
.faq-item li + li { margin-top: 6px; }

.faq-table-wrap {
  overflow-x: auto;
}

.faq-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.faq-table td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.faq-table tr:last-child td {
  border-bottom: 0;
}

.faq-table td.faq-table__key {
  width: 28%;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
}

.faq-table td.faq-table__key--accent,
.faq-table td.faq-table__accent {
  color: var(--accent);
}

.faq-table__accent strong {
  color: var(--accent);
}

.resource-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 940px;
  padding: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 720px) {
  .topbar-shell {
    top: 0;
    height: auto;
    padding: 10px 14px 0;
  }
  .topbar {
    position: relative;
    display: block;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10, 10, 12, 0.94);
    transform: none;
    overflow: hidden;
    max-height: 60px;
    transition: max-height 0.22s ease, border-color 0.18s ease, background 0.18s ease;
  }
  .topbar__brand {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding-right: 56px;
    font-size: 16px;
  }
  .topbar__nav {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .topbar__nav a {
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 12px;
    background: var(--surface);
  }
  .topbar__nav a i { display: none; }
  .topbar__toggle {
    top: 9px;
    right: 9px;
    left: auto;
    bottom: auto;
    transform: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .topbar__toggle span { width: 16px; }
  .topbar-shell:hover .topbar,
  .topbar-shell:focus-within .topbar,
  .topbar-shell.is-open .topbar,
  .topbar:hover,
  .topbar:focus-within {
    transform: none;
  }
  .topbar-shell:hover .topbar-backdrop,
  .topbar-shell:focus-within .topbar-backdrop {
    opacity: 0;
  }
  .topbar-shell.is-open .topbar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .topbar-shell.is-open .topbar {
    max-height: 320px;
  }
  .topbar-shell.is-open .topbar__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .layout { padding: 40px 18px 64px; gap: 48px; }
  .footer { padding: 20px 18px; }
  .flowchart {
    min-height: 260px;
    padding: 22px 0 16px;
  }
  .flowchart svg { min-width: 0; }
  .resource-strip { align-items: flex-start; flex-direction: column; }
  .faq-item summary { font-size: 19px; padding: 18px; }
  .faq-item p,
  .faq-item ul,
  .faq-table-wrap { padding: 0 18px 18px; }
  .faq-item ul { padding-left: 36px; }
  .faq-table { min-width: 0; }
  .faq-table td { padding: 12px 10px; }
  .faq-table td.faq-table__key { width: 40%; font-size: 11px; }
}

/* =====================================================
   PICKER
   ===================================================== */
.picker__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.picker__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0;
}

.picker__controls {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.filter {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.filter__btn {
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.filter__btn:hover { color: var(--ink); background: var(--surface-2); }
.filter__btn.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}

.picker__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.picker__count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-right: 6px;
}

.btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--ghost { background: transparent; }
.btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.combo-consent {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
}

.combo-consent[hidden] {
  display: none;
}

.combo-consent__scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 8, 0.56);
}

.combo-consent__panel {
  position: relative;
  width: min(100%, 560px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 75, 22, 0.16), rgba(255, 75, 22, 0) 28%),
    rgba(16, 16, 18, 0.94);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.combo-consent__eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.combo-consent__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.combo-consent__body {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
  color: var(--ink-2);
}

.combo-consent__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.combo-consent__check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.combo-consent__check:hover {
  border-color: var(--ink-3);
  background: rgba(255, 255, 255, 0.06);
}

/* Hide native checkbox; replace with custom mark */
.combo-consent__check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.combo-consent__check-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.combo-consent__check-mark::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  border: 2px solid var(--accent-ink);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.1s ease;
}

.combo-consent__check input:checked ~ .combo-consent__check-mark {
  background: var(--accent);
  border-color: var(--accent);
}

.combo-consent__check input:checked ~ .combo-consent__check-mark::after {
  opacity: 1;
}

.combo-consent__check input:checked ~ span:last-child {
  color: var(--ink);
}

.combo-consent__check span:last-child {
  color: var(--ink-2);
  transition: color 0.15s ease;
}

.combo-consent__confirm {
  width: 100%;
  margin-top: 14px;
  padding-block: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.combo-consent__confirm:not(:disabled) {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.combo-consent__confirm:not(:disabled):hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.combo-consent__confirm:disabled {
  cursor: not-allowed;
  color: var(--ink-3);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.7;
}

/* Character grid */
.char-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.char-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
}
.char-card:hover {
  border-color: var(--ink-2);
  transform: translateY(-3px);
  background: var(--surface-2);
}
.char-card.is-selected {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 8px 0 -4px rgba(255,75,22,0.28);
}

.char-card__thumb {
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 44px;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.char-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.char-card__check {
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.char-card.is-selected .char-card__check { display: flex; }

.char-card__body {
  padding: 9px 11px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.char-card__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.char-card__pos {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.2;
}

.char-card--link:hover .char-card__name {
  color: var(--accent);
}

.pos-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.pos-main   { background: var(--hot); }
.pos-sub    { background: #ff5ba8; }
.pos-tank   { background: #4d8dff; }
.pos-healer { background: var(--good); }
.pos-util   { background: #ffd84d; }

/* =====================================================
   RESULTS
   ===================================================== */
.results__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.results__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0;
}
.results__hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.results__empty {
  font-size: 14px;
  color: var(--ink-3);
  padding: 64px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
}
.results__empty b { color: var(--accent); font-weight: 700; }

.team-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.team-card {
  position: relative;
  z-index: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.team-card:hover,
.team-card:focus-within {
  border-color: var(--ink-3);
  transform: translateY(-2px);
  z-index: 6;
}
.team-list > li:first-child .team-card {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255,75,22,0.45);
}
.team-list > li:first-child .team-card::after {
  content: "BEST";
  position: absolute;
  top: -10px; right: 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border-radius: 999px;
}

.team-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.team-card__rank {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.team-card__score {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.team-card__score b {
  color: var(--accent);
  font-weight: 700;
  margin-left: 6px;
  font-size: 13px;
}

.team-members {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 10px;
}
.team-members li {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.team-members__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  overflow: hidden;
  border: 1px solid var(--line);
}
.team-members__thumb img { width: 100%; height: 100%; object-fit: cover; }
.team-members__name { font-size: 13px; font-weight: 700; }
.team-members__pos {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.team-card__note {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

.team-list--curated {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.team-list--memory {
  margin-bottom: 14px;
}

.team-list--memory .team-members li {
  flex: 0 0 auto;
  width: 90px;
}

.team-list--memory .team-members__thumb {
  width: 84px;
  height: 84px;
  aspect-ratio: unset;
  padding: 6px;
}

.team-list--memory .team-members__thumb img {
  object-fit: contain;
  object-position: center;
}

.team-list--memory .team-members {
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.team-list--memory .team-members__name {
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  text-align: center;
}

.team-card--curated {
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255,75,22,0.08), transparent 42%),
    var(--surface);
}

.team-card--curated .team-card__head {
  align-items: center;
  padding-bottom: 12px;
}

.team-card--curated .team-card__head > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.team-card__category {
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-card--mainAuthor {
  border-color: rgba(255,75,22,0.72);
  box-shadow: inset 0 0 0 1px rgba(255,75,22,0.22), 0 14px 34px rgba(0,0,0,0.2);
}

.team-card--mainAuthor .team-card__score {
  color: var(--accent);
  border-color: rgba(255,75,22,0.72);
}

.team-card--mainGeneral .team-card__score {
  color: var(--warn);
  border-color: rgba(255,182,72,0.72);
}

.team-card--recommended .team-card__score {
  color: var(--good);
  border-color: rgba(110,231,167,0.72);
}

.team-card--curated .team-card__score {
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-size: 10px;
}

.team-members--portraits {
  gap: 12px;
}

.team-members--portraits li {
  gap: 7px;
}

.team-members__thumb--portrait {
  border-color: var(--line-strong);
  box-shadow: 0 10px 22px rgba(0,0,0,0.26);
}

.team-members__thumb--portrait img {
  object-position: center top;
}

.equipment-member {
  
  word-break: keep-all;
  position: relative;
}

.equipment-member:not(.memory-member) .team-members__name {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: calc(1.35em * 2);
  max-height: calc(1.35em * 2);
  line-height: 1.35;
  overflow: hidden;
  text-align: center;
  overflow-wrap: break-word;
}

.equipment-member__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translate(-50%, 6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 5;
  width: max-content;
  max-width: min(240px, calc(100vw - 40px));
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
  color: var(--paper);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  white-space: pre-line;
}

.equipment-member__tooltip-kicker {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.equipment-member__tooltip-accent {
  color: #ffe45c;
  font-weight: 700;
}

.equipment-member__tooltip-keyword {
  color: #8de7ff;
  font-weight: 700;
}

.equipment-member:hover .equipment-member__tooltip,
.equipment-member:focus-within .equipment-member__tooltip,
.equipment-member:focus .equipment-member__tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.team-members--portraits .team-members__name {
  font-size: 14px;
}

.team-members--portraits .team-members__pos {
  width: 100%;
  min-height: 30px;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.memory-bonus-list {
  margin-top: 2px;
}

.tag--memory {
  color: var(--paper);
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.04);
}

.memory-panel__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.memory-panel__options p {
  margin: 0;
  font-size: 12px;
}

.memory-panel__options strong {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.memory-panel__options .detail-list {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
}

.team-more {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.015);
}

.team-more summary {
  padding: 16px 18px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}

.team-more summary:hover {
  color: var(--accent);
}

.team-list--collapsed {
  padding: 0 18px 18px;
}

.source-row {
  display: block;
  margin-top: 22px;
}

.source-link {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 22px 24px;
  border: 1px solid rgba(255,75,22,0.42);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,75,22,0.14), rgba(255,75,22,0.03) 42%, rgba(255,255,255,0.02)),
    var(--surface);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
  color: var(--ink);
}

.source-link:hover {
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.source-link--empty {
  margin-top: 14px;
  justify-content: center;
}

.source-link__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.source-link__title {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.source-link__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  background: transparent;
}
.tag--good { border-color: var(--good); color: var(--good); }
.tag--warn { border-color: var(--warn); color: var(--warn); }

/* =====================================================
   COMBATANTS
   ===================================================== */
.combatant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.combatant-card {
  position: relative;
}

.combatant-card__index {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: rgba(7, 7, 8, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 7px;
  text-transform: uppercase;
}

.combatant-detail {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.combatant-portrait {
  position: sticky;
  top: 112px;
}

.combatant-portrait__image {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.combatant-portrait__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.combatant-portrait__image span {
  font-family: var(--display);
  font-size: clamp(96px, 15vw, 180px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.combatant-portrait__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.combatant-copy {
  min-width: 0;
}

.detail-cta {
  margin-top: 28px;
}

.detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  margin-top: 22px;
}

.detail-panel p:last-child {
  margin-bottom: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
}

.detail-list li + li {
  margin-top: 8px;
}

.partner-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.partner-card {
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--bg-2);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.partner-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.partner-card__score,
.partner-card__role {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.partner-card__name {
  display: block;
  margin: 8px 0 4px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (max-width: 860px) {
  .combatant-list {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  }
  .combatant-detail {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .combatant-portrait {
    position: static;
  }
  .combatant-portrait__image {
    aspect-ratio: 4 / 3;
  }
  .combatant-portrait__image img {
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
