:root {
  --ink: #121817;
  --ink-soft: #2b3432;
  --paper: #f4f0e8;
  --paper-deep: #e7e0d4;
  --white: #fffdf8;
  --coral: #ff6a4d;
  --coral-dark: #cf452c;
  --mint: #acd9c1;
  --cobalt: #4568ff;
  --sun: #f2cd5d;
  --line: rgba(18, 24, 23, .16);
  --shadow: 0 18px 50px rgba(18, 24, 23, .12);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -5%, rgba(255, 106, 77, .14), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, iframe { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--sun); color: var(--ink); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(18, 24, 23, .94);
  color: white;
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--ink);
  background: var(--coral);
  font-size: 15px;
  letter-spacing: -.08em;
}
.brand-copy { line-height: 1.05; }
.brand-copy small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .58);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.desktop-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,.76);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: white; background: rgba(255,255,255,.1); }
.header-play {
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: transparent;
  color: white;
}
.mobile-nav { display: none; }

.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-white { background: var(--white); }
.section-rule { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 5px; background: currentColor; }
.section-dark .eyebrow { color: var(--coral); }
h1, h2, h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.03;
  letter-spacing: -.045em;
}
h1 { font-size: clamp(2.7rem, 7vw, 6.9rem); }
h2 { font-size: clamp(2rem, 4vw, 4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1em; }
.lead { max-width: 760px; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.65; }
.section-dark .lead { color: rgba(244,240,232,.72); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 430px);
  gap: 36px;
  align-items: end;
  margin-bottom: 44px;
}
.section-heading p { margin: 0; color: var(--ink-soft); }
.section-dark .section-heading p { color: rgba(244,240,232,.66); }

.hero { padding: 68px 0 54px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 48px; align-items: end; }
.hero h1 span { display: block; color: var(--coral-dark); font-style: italic; }
.hero-copy .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18,24,23,.16); }
.button-accent { border-color: var(--coral); background: var(--coral); color: var(--ink); }
.button-ghost { background: transparent; color: var(--ink); }
.section-dark .button-ghost { border-color: rgba(255,255,255,.28); color: white; }
.hero-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card::after {
  content: "27";
  position: absolute;
  right: -15px;
  bottom: -48px;
  color: rgba(255,255,255,.05);
  font: 900 180px/1 Georgia, serif;
}
.hero-card-kicker { color: var(--mint); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero-card strong { display: block; max-width: 310px; margin: 18px 0 24px; font: 700 2.05rem/1.05 Georgia,serif; letter-spacing: -.04em; }
.metric-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.metric { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.17); }
.metric b { display: block; color: var(--coral); font-size: 1.25rem; }
.metric span { color: rgba(255,255,255,.6); font-size: 11px; }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border: 1px solid rgba(69,104,255,.24);
  border-radius: 14px;
  background: rgba(69,104,255,.07);
  color: var(--ink-soft);
  font-size: 13px;
}
.notice strong { color: var(--ink); }

.game-stage { padding: 24px 0 70px; }
.game-frame-wrap {
  padding: 10px;
  border-radius: 30px;
  background: var(--ink);
  box-shadow: 0 30px 70px rgba(18,24,23,.22);
}
.game-frame {
  display: block;
  width: 100%;
  height: 780px;
  border: 0;
  border-radius: 21px;
  background: #f7f2e8;
}
.frame-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--ink-soft); font-size: 12px; }
.frame-caption a { font-weight: 800; text-underline-offset: 3px; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-card, .guide-card, .tip-card, .profile-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.5);
}
.quick-card { padding: 23px; }
.quick-number { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 28px; border-radius: 50%; background: var(--ink); color: white; font-size: 13px; font-weight: 850; }
.quick-card p { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card { position: relative; min-height: 310px; padding: 28px; overflow: hidden; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.guide-card:nth-child(1) { background: var(--mint); }
.guide-card:nth-child(2) { background: var(--coral); }
.guide-card:nth-child(3) { background: var(--sun); }
.guide-card .card-index { font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.guide-card h3 { margin-top: 60px; max-width: 260px; font-size: 2.15rem; }
.guide-card p { margin-top: 14px; color: rgba(18,24,23,.72); font-size: 14px; }
.guide-card .arrow { position: absolute; right: 24px; bottom: 22px; font-size: 27px; }

.tips-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.sticky-copy { position: sticky; top: 110px; }
.tip-list { display: grid; gap: 1px; background: rgba(255,255,255,.15); }
.tip-row { display: grid; grid-template-columns: 48px 1fr; gap: 22px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.tip-row:last-child { border-bottom: 0; }
.tip-row span { color: var(--coral); font-weight: 850; }
.tip-row h3 { margin-bottom: 8px; font-family: inherit; font-size: 1.05rem; letter-spacing: -.02em; }
.tip-row p { margin: 0; color: rgba(244,240,232,.65); font-size: 14px; }

.candidate-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.candidate-mini { min-height: 250px; padding: 24px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.candidate-avatar { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 48px; border-radius: 19px; color: var(--ink); font: 800 1.25rem/1 Georgia,serif; }
.candidate-mini:nth-child(1) .candidate-avatar { background: var(--mint); }
.candidate-mini:nth-child(2) .candidate-avatar { background: var(--coral); }
.candidate-mini:nth-child(3) .candidate-avatar { background: var(--sun); }
.candidate-mini p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }

.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; list-style: none; font-weight: 800; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--coral-dark); font-size: 24px; }
details[open] summary::after { content: "−"; }
details p { max-width: 760px; padding: 0 0 24px; color: var(--ink-soft); }

.search-box { position: relative; max-width: 660px; }
.search-box label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 800; }
.search-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--white); box-shadow: 0 12px 30px rgba(18,24,23,.08); }
.search-control input { width: 100%; min-height: 56px; padding: 0 22px; border: 0; outline: 0; background: transparent; }
.search-control button { min-width: 100px; align-self: stretch; border: 0; border-radius: 999px; background: var(--ink); color: white; font-weight: 800; cursor: pointer; }
.search-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.search-results a { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.search-results a:hover { background: var(--paper); }
.search-empty { padding: 12px 14px; color: var(--ink-soft); font-size: 14px; }

.page-hero { padding: 72px 0 58px; border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 58px; align-items: end; }
.page-hero h1 { max-width: 920px; font-size: clamp(2.8rem, 6vw, 6rem); }
.page-hero .lead { margin-top: 26px; }
.page-meta { display: grid; gap: 12px; padding: 22px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); font-size: 13px; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.meta-row:last-child { padding-bottom: 0; border-bottom: 0; }
.meta-row span { color: var(--ink-soft); }
.meta-row b { text-align: right; }

.article-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: center; gap: 70px; align-items: start; }
.article-toc { position: sticky; top: 100px; }
.article-toc strong { display: block; margin-bottom: 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.article-toc a { display: block; padding: 8px 0; color: var(--ink-soft); font-size: 13px; text-decoration: none; }
.article-toc a:hover { color: var(--coral-dark); }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 { margin: 64px 0 20px; font-size: clamp(2rem, 4vw, 3rem); scroll-margin-top: 110px; }
.article-body h3 { margin: 34px 0 12px; font-family: inherit; font-size: 1.2rem; letter-spacing: -.02em; }
.article-body p, .article-body li { color: var(--ink-soft); }
.article-body a { color: var(--cobalt); text-underline-offset: 3px; }
.answer-box { padding: 24px; border-left: 5px solid var(--coral); border-radius: 0 16px 16px 0; background: var(--white); box-shadow: 0 10px 30px rgba(18,24,23,.06); }
.answer-box strong { display: block; margin-bottom: 8px; }
.answer-box p { margin: 0; }
.step-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 24px 0; }
.step-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.46); }
.step-card span { display: block; margin-bottom: 20px; color: var(--coral-dark); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.step-card p { margin: 8px 0 0; font-size: 14px; }
.table-wrap { margin: 26px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: rgba(18,24,23,.05); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.source-note { margin-top: 54px; padding: 20px; border: 1px dashed rgba(18,24,23,.3); border-radius: 15px; font-size: 13px; }
.source-note p:last-child { margin-bottom: 0; }

.tip-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.tip-card { padding: 24px; }
.tip-card .tip-index { display: inline-block; margin-bottom: 30px; color: var(--coral-dark); font-weight: 900; }
.tip-card p { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; }
.tip-card:nth-child(3n+2) { background: var(--white); }

.profiles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.profile-card { padding: 26px; background: var(--white); }
.profile-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 30px; border-radius: 16px; background: var(--mint); font-weight: 900; }
.profile-card:nth-child(2) .profile-icon { background: var(--coral); }
.profile-card:nth-child(3) .profile-icon { background: var(--sun); }
.profile-card p { color: var(--ink-soft); font-size: 14px; }
.tag { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--paper-deep); font-size: 11px; font-weight: 800; }

.cta-panel { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 34px; border-radius: 24px; background: var(--coral); }
.cta-panel h2 { max-width: 720px; font-size: clamp(2rem, 4vw, 3.4rem); }
.cta-panel p { max-width: 660px; margin: 12px 0 0; }

.site-footer { padding: 58px 0 28px; background: var(--ink); color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 60px; }
.footer-brand p { max-width: 460px; margin-top: 18px; color: rgba(244,240,232,.6); font-size: 13px; }
.footer-col strong { display: block; margin-bottom: 13px; color: var(--coral); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer-col a { display: block; padding: 5px 0; color: rgba(244,240,232,.68); font-size: 13px; text-decoration: none; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(244,240,232,.48); font-size: 11px; }

.not-found { min-height: 72vh; display: grid; place-items: center; text-align: center; }
.not-found strong { display: block; color: var(--coral-dark); font: 800 clamp(5rem,20vw,13rem)/.8 Georgia,serif; }
.not-found h1 { margin-top: 30px; font-size: clamp(2.4rem,5vw,4rem); }
.not-found p { max-width: 560px; margin: 20px auto 28px; color: var(--ink-soft); }

@media (max-width: 940px) {
  .desktop-nav, .header-play { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { padding: 0 16px 14px; }
  .mobile-nav.is-open { display: grid; }
  .mobile-nav a { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.78); font-weight: 700; text-decoration: none; }
  .hero-grid, .page-hero-grid, .section-heading, .tips-layout { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
  .quick-grid { grid-template-columns: repeat(2,1fr); }
  .guide-grid, .profiles-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 250px; }
  .candidate-strip { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .article-layout { grid-template-columns: minmax(0,760px); }
  .article-toc { position: static; display: grid; grid-template-columns: repeat(2,1fr); padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
  .article-toc strong { grid-column: 1/-1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 640px) {
  .header-inner { width: min(100% - 22px, var(--max)); min-height: 64px; }
  .brand-copy { font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 44px; }
  .hero-grid { gap: 32px; }
  .hero h1 { font-size: clamp(2.7rem, 15vw, 4.5rem); }
  .hero-card { padding: 22px; }
  .hero-card strong { font-size: 1.7rem; }
  .metric-row { grid-template-columns: repeat(3,1fr); }
  .game-stage { padding-top: 8px; }
  .game-frame-wrap { margin-inline: -8px; padding: 6px; border-radius: 22px; }
  .game-frame { height: 990px; border-radius: 17px; }
  .frame-caption { flex-direction: column; }
  .quick-grid, .tip-grid, .step-cards { grid-template-columns: 1fr; }
  .quick-card { min-height: 180px; }
  .section-heading { gap: 18px; }
  .tips-layout { gap: 36px; }
  .sticky-copy { position: static; }
  .page-hero { padding-top: 48px; }
  .page-meta { margin-top: 10px; }
  .article-toc { grid-template-columns: 1fr; }
  .article-body h2 { margin-top: 50px; }
  .cta-panel { grid-template-columns: 1fr; padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

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