@font-face {
  font-family: "DM Sans";
  src: url("/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "DM Sans", Inter, system-ui, sans-serif;
  color: #f8f4f9;
  background: #181425;
  --muted: #c6becd;
  --accent: #ff99b7;
  --accent-soft: #362039;
  --teal: #7ee8d8;
  --warn: #ffd27d;
  --line: #403548;
  --surface: #211a2e;
  --surface-raised: #2a213b;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-x: clip; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: #ffd6e2; }
:focus-visible { outline: 2px solid #ffafc6; outline-offset: 4px; }
img { display: block; max-inline-size: 100%; }
p { line-height: 1.65; }
h1, h2, h3, p, figure { margin-block: 0; }
figure { margin-inline: 0; }
section, :target { scroll-margin-top: 1.5rem; }
button, input, select { font: inherit; color: inherit; }

.shell { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; top: -4rem; left: 1rem; background: #211a2e; padding: .65rem 1rem; z-index: 20; }
.skip:focus { top: 1rem; }

/* Header & Navigation */
.site-header { border-bottom: 1px solid var(--line); background: #181425f2; position: sticky; top: 0; z-index: 15; backdrop-filter: blur(8px); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff6fa; font-size: 1.25rem; font-weight: 800; letter-spacing: -.045em; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 1.38rem; aspect-ratio: 1; border: 1px solid #ffbed1; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.brand-mark::before { content: ""; width: .62rem; aspect-ratio: 1; background: var(--accent); transform: rotate(45deg); border-radius: 60% 0 60% 0; }

.top-nav { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-link { padding: .48rem .85rem; border-radius: 999px; color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; transition: color .15s, background .15s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff6fa; background: var(--surface-raised); }

.game-menu { position: relative; }
.game-menu summary { display: flex; align-items: center; gap: .6rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); font-size: .9rem; font-weight: 650; cursor: pointer; list-style: none; white-space: nowrap; }
.game-menu summary::-webkit-details-marker { display: none; }
.game-menu summary::after { content: ""; width: .45em; height: .45em; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-.12em) rotate(45deg); }
.game-menu[open] summary::after { transform: translateY(.12em) rotate(225deg); }
.game-menu summary:hover, .game-menu[open] summary { border-color: var(--accent); }
.game-menu ul { position: absolute; z-index: 20; inset: calc(100% + .45rem) 0 auto auto; min-width: 14.5rem; margin: 0; padding: .35rem; list-style: none; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); box-shadow: 0 .75rem 1.8rem #0d0a16cc; }
.game-menu li.menu-divider { margin: .3rem .4rem; border-top: 1px solid var(--line); }
.game-menu a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .58rem .75rem; border-radius: .5rem; color: #fff6fa; font-size: .92rem; text-decoration: none; }
.game-menu a:hover, .game-menu a:focus-visible, .game-menu a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.menu-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); font-weight: 700; }

/* Breadcrumbs */
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-top: 1.4rem; color: var(--muted); font-size: .875rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-hidden="true"] { opacity: .55; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.12fr; margin-block: 1.4rem 3.1rem; border: 1px solid var(--line); border-radius: 1.15rem; overflow: hidden; background: #23192e; }
.hero-single { grid-template-columns: 1fr; }
.hero-copy { padding: clamp(1.4rem, 4vw, 3.1rem); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { color: var(--accent); font-size: .84rem; font-weight: 750; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow span { margin-inline: .2rem; }
.hero h1 { font-size: clamp(2.45rem, 5.4vw, 4.75rem); font-weight: 900; line-height: .98; letter-spacing: -.065em; margin-block: .95rem 1.15rem; }
.hero h1 span { color: var(--accent); }
.hero-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.04rem; max-width: 44rem; }
.hero-copy > p strong { color: #fff6fa; }

.answer { margin-top: 1.4rem; padding: .95rem 1.1rem; border-left: 3px solid var(--accent); border-radius: 0 .6rem .6rem 0; background: var(--accent-soft); max-width: 44rem; }
.answer > strong { display: block; margin-bottom: .25rem; color: #ffd5e4; font-size: 1.08rem; }
.answer p { font-size: .95rem; color: #f1e8f5; }
.answer a { font-weight: 750; }
.answer-teal { border-left-color: var(--teal); background: #193136; }
.answer-teal > strong { color: #bff8ee; }

.hero-art { position: relative; min-height: 100%; isolation: isolate; }
.hero-art img { position: absolute; height: 100%; width: 100%; object-fit: cover; object-position: 55% center; }
.hero-art figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem .75rem; padding: 2rem 1.25rem 1rem; background: linear-gradient(transparent, #110e1c); font-weight: 700; }
.hero-art figcaption span { color: #e4dae6; font-size: .875rem; font-weight: 500; }

/* Guide Layout */
.guide-layout { display: grid; grid-template-columns: minmax(11rem, 1fr) minmax(0, 4fr); gap: clamp(1.2rem, 4.5vw, 4.2rem); margin-bottom: 3.5rem; }
.guide-sidebar { align-self: start; position: sticky; top: 5.5rem; border-top: 2px solid var(--accent); padding-top: 1rem; }
.guide-sidebar h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.guide-sidebar a { display: block; padding-block: .38rem; color: var(--muted); font-size: .93rem; text-decoration: none; }
.guide-sidebar a:hover { color: var(--accent); }
.guide-sidebar p { border-top: 1px solid var(--line); margin-top: .85rem; padding-top: .85rem; color: var(--muted); font-size: .85rem; }
.guide-sidebar time { color: #fff6fa; }

.guide-body { min-width: 0; max-width: 54rem; }
.guide-body section + section { margin-top: 2.75rem; }
.guide-body h2 { font-size: clamp(1.75rem, 3.6vw, 2.45rem); line-height: 1.08; letter-spacing: -.045em; margin-bottom: .8rem; }
.guide-body h3 { font-size: 1.2rem; line-height: 1.3; margin-top: 1.3rem; margin-bottom: .45rem; color: #fff6fa; }
.guide-body section > p:not(.source-note) { color: var(--muted); }
.guide-body section > p + p { margin-top: .85rem; }
.guide-body ul.bullets { color: var(--muted); padding-inline-start: 1.3rem; line-height: 1.65; margin-top: .75rem; }
.guide-body ul.bullets li { margin-bottom: .45rem; }
.guide-body ul.bullets strong { color: #fff6fa; }

/* Tables */
.table-frame { margin-top: 1.2rem; border: 1px solid var(--line); border-radius: .85rem; overflow-x: auto; background: var(--surface); }
table { width: 100%; border-collapse: collapse; background: var(--surface); line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: .92rem 1rem; }
thead th { color: #f0dce7; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; background: #33243e; }
tbody th { color: #ffc4d7; font-weight: 700; }
tbody > tr + tr { border-top: 1px solid var(--line); }
tbody tr:target { background: var(--accent-soft); }
.source-note { margin-top: .75rem; color: var(--muted); font-size: .87rem; }

/* Steps & Spoilers */
.steps { color: var(--muted); padding-inline-start: 1.4rem; line-height: 1.65; margin-top: .9rem; }
.steps li { padding-inline-start: .35rem; margin-bottom: .65rem; }
.steps li::marker { color: var(--accent); font-weight: 750; }
.steps strong { color: #fff6fa; }

.guide-body details { margin-top: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); }
.guide-body summary { padding: .95rem 1.1rem; border-radius: inherit; font-weight: 700; cursor: pointer; color: #fff6fa; }
.guide-body summary::marker { color: var(--accent); }
.spoiler-content { padding: 0 1.1rem 1.05rem; color: var(--muted); }
.spoiler-content p + p { margin-top: .7rem; }

/* Badges & Callouts */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .58rem; border-radius: 999px; font-size: .75rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.badge-pink { background: var(--accent-soft); color: #ffc4d7; border: 1px solid #6b3b67; }
.badge-teal { background: #193136; color: var(--teal); border: 1px solid #2b5a61; }
.badge-warn { background: #3b2d18; color: var(--warn); border: 1px solid #6e5225; }
.badge-muted { background: #2c243a; color: var(--muted); border: 1px solid var(--line); }

.callout { margin-top: 1.15rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface-raised); color: var(--muted); }
.callout strong { color: #fff6fa; }
.callout-warn { border-color: #6e5225; background: #2d2217; color: #f6e4c1; }
.callout-warn strong { color: var(--warn); }

/* Cards & Grids */
.section-block { margin-block: 2.4rem 3.4rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); letter-spacing: -.045em; line-height: 1.1; }
.section-head p { color: var(--muted); max-width: 40rem; margin-top: .4rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1rem; }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-card { display: flex; flex-direction: column; gap: .65rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: .95rem; background: var(--surface); color: #fff6fa; text-decoration: none; transition: border-color .15s, transform .15s, background .15s; }
.guide-card:hover { border-color: var(--accent); background: var(--surface-raised); transform: translateY(-2px); color: #fff6fa; }
.guide-card h3 { font-size: 1.18rem; letter-spacing: -.025em; line-height: 1.25; margin: 0; }
.guide-card p { color: var(--muted); font-size: .93rem; line-height: 1.55; flex: 1; }
.guide-card .card-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.guide-card .card-cta { color: var(--accent); font-size: .88rem; font-weight: 700; margin-top: .25rem; }

/* Related Guides */
.related { margin-block: 2.75rem 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.related-grid a { display: grid; align-content: start; gap: .35rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; color: #fff6fa; text-decoration: none; transition: border-color .15s, background .15s; }
.related-grid a:hover { border-color: var(--accent); background: var(--surface-raised); color: var(--accent); }
.related-grid span { color: var(--muted); font-size: .84rem; }

/* Interactive Tools */
.tool-panel { margin-top: 1.25rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: .95rem; background: var(--surface); }
.tool-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.search-input { flex: 1 1 14rem; min-width: 0; padding: .62rem .9rem; border: 1px solid var(--line); border-radius: .65rem; background: #181425; color: #fff6fa; }
.search-input::placeholder { color: #9c91a8; }
.search-input:focus { border-color: var(--accent); outline: none; }

.pill-group { display: flex; flex-wrap: wrap; gap: .45rem; }
.pill-btn { padding: .48rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: #181425; color: var(--muted); font-size: .86rem; font-weight: 650; cursor: pointer; transition: all .15s; }
.pill-btn:hover { border-color: var(--accent); color: #fff6fa; }
.pill-btn[aria-pressed="true"], .pill-btn.active { background: var(--accent-soft); border-color: var(--accent); color: #ffd5e4; }

.toggle-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .48rem .9rem; border: 1px solid #6b3b67; border-radius: 999px; background: var(--accent-soft); color: #ffd5e4; font-size: .86rem; font-weight: 700; cursor: pointer; }
.toggle-btn[aria-pressed="true"] { background: #4a2346; border-color: var(--accent); color: #fff; }

.spoiler-mask { filter: blur(5px); user-select: none; transition: filter .15s; cursor: pointer; }
.spoilers-revealed .spoiler-mask, .spoiler-mask.revealed { filter: none; user-select: auto; cursor: auto; }
.empty-state { padding: 1.5rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: .75rem; }
.hidden { display: none !important; }

/* Interactive Checklists */
.checklist { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .65rem; }
.check-item { display: flex; align-items: flex-start; gap: .8rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #1b1629; cursor: pointer; transition: border-color .15s, background .15s; }
.check-item:hover { border-color: #6b5678; }
.check-item input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.check-item.is-done { border-color: #2b5a61; background: #18272c; }
.check-item.is-done strong { color: var(--teal); text-decoration: line-through; }
.check-item span { display: block; color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; font-size: .9rem; color: var(--muted); }
.progress-row strong { color: #fff6fa; }
.progress-track { height: .55rem; border-radius: 999px; background: #141020; overflow: hidden; border: 1px solid var(--line); }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--teal)); transition: width .25s ease; }

/* Ending Readiness Tracker */
.pillar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1rem; }
.pillar-card { padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: #1b1629; display: flex; flex-direction: column; gap: .6rem; }
.pillar-card label { font-weight: 700; color: #fff6fa; font-size: .95rem; }
.pillar-card select, .pillar-card input[type="range"] { width: 100%; }
.pillar-card select { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: .55rem; background: #141020; color: #fff6fa; }
.pillar-card input[type="range"] { accent-color: var(--accent); }
.pillar-hint { font-size: .84rem; color: var(--muted); }
.outcome-banner { margin-top: 1.15rem; padding: 1.1rem 1.2rem; border-radius: .85rem; border: 1px solid #2b5a61; background: #172a2f; }
.outcome-banner.is-warn { border-color: #6e5225; background: #2c2117; }
.outcome-banner.is-risk { border-color: #6b3b67; background: #311d34; }
.outcome-banner h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.outcome-banner p { margin: 0; color: #e8e2ec; font-size: .94rem; }

/* Cheat Code Keycaps */
.kbd-seq { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.kbd { display: inline-grid; place-items: center; min-width: 1.75rem; height: 1.75rem; padding-inline: .38rem; border: 1px solid #594a66; border-bottom-width: 2px; border-radius: .4rem; background: #181425; color: #fff6fa; font-weight: 800; font-size: .88rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-btn { padding: .35rem .68rem; border: 1px solid var(--line); border-radius: .5rem; background: #181425; color: var(--accent); font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.copy-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.platform-banner { padding: .85rem 1rem; border-radius: .75rem; background: #1b1629; border: 1px solid var(--line); margin-bottom: 1rem; color: var(--muted); font-size: .94rem; }
.platform-banner strong { color: #fff6fa; }

/* Home Specific */
.home-intro { padding-block: clamp(2rem, 6vw, 4.4rem) clamp(1.4rem, 4vw, 2.4rem); max-width: 54rem; }
.home-intro h1 { font-size: clamp(2.6rem, 7.5vw, 5.6rem); line-height: .98; letter-spacing: -.072em; margin-block: .6rem .95rem; }
.home-intro > p:last-of-type { max-width: 43rem; color: var(--muted); font-size: 1.06rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; gap: .45rem; padding: .72rem 1.2rem; border-radius: 999px; font-weight: 750; font-size: .95rem; text-decoration: none; }
.btn-primary { background: var(--accent); color: #181425; }
.btn-primary:hover { background: #ffc0d3; color: #181425; }
.btn-secondary { border: 1px solid var(--line); background: var(--surface); color: #fff6fa; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.home-feature { margin-block: .9rem 2.8rem; }
.home-feature h3 { font-size: clamp(1.85rem, 3.8vw, 3.1rem); line-height: 1.06; letter-spacing: -.055em; margin-block: .55rem .75rem; }
.home-feature h3 a { color: #fff6fa; }
.home-feature h3 a:hover { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; }
.footer-inner { padding-block: 1.6rem; flex-wrap: wrap; }
.footer-inner p { color: var(--muted); font-size: .875rem; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--muted); font-size: .875rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 58rem) {
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 52rem) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .guide-sidebar { position: static; }
  .guide-sidebar nav { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem 1rem; }
  .guide-sidebar h2 { flex-basis: 100%; margin-bottom: 0; }
  .guide-sidebar p { margin-top: .55rem; padding-top: .5rem; }
  .guide-sidebar br { display: none; }
  .guide-sidebar time { margin-inline-start: .35rem; }
  .pillar-grid { grid-template-columns: 1fr; }
}

@media (max-width: 39rem) {
  .shell { width: calc(100% - 2rem); }
  .hero { grid-template-columns: minmax(0, 1fr); margin-block: 1rem 1.8rem; }
  .hero h1 br { display: none; }
  .hero-art { min-height: 0; height: clamp(12rem, 55vw, 19rem); }
  .hero-art figcaption { padding: 1.4rem .85rem .65rem; }
  th, td { padding: .72rem .55rem; font-size: .88rem; }
  .related-grid, .card-grid-3 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .nav-link.hide-xs { display: none; }
}
