:root {
  --ink: #17151e;
  --paper: #f8f4e8;
  --paper-deep: #e9e1cd;
  --screen: #fffdf7;
  --muted: #686272;
  --line: rgba(23, 21, 30, 0.18);
  --yellow: #ffc857;
  --green: #2f9e67;
  --guide-accent: #8995ff;
  --guide-deep: #34368f;
  --shadow: 0 22px 55px rgba(33, 26, 20, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 23px, rgba(23, 21, 30, .055) 24px, transparent 25px) 0 0 / 48px 48px,
    linear-gradient(transparent 0 23px, rgba(23, 21, 30, .055) 24px, transparent 25px) 0 0 / 48px 48px,
    var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 8px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.guide-topbar {
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: white;
  background: var(--ink);
  border-bottom: 6px solid var(--guide-accent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: -.02em; }
.brand b { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: var(--yellow); border-radius: 9px 9px 3px 3px; box-shadow: inset 0 -5px rgba(0,0,0,.15); }
.guide-topbar nav { display: flex; align-items: center; gap: 10px; }
.guide-topbar nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 7px; font-weight: 800; text-decoration: none; }
.guide-topbar nav a:hover { background: rgba(255,255,255,.09); }
.guide-topbar .play-small { background: var(--guide-accent); color: #12111a; }

main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; overflow: hidden; padding: 24px 0 18px; color: var(--muted); font-size: .86rem; font-weight: 800; white-space: nowrap; }
.breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }

article { width: min(920px, 100%); margin: 0 auto; }
.article-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 72px);
  background: var(--screen);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--guide-deep), var(--shadow);
}
.article-hero::after {
  content: "";
  position: absolute;
  right: -84px;
  bottom: -106px;
  width: 260px;
  height: 320px;
  border: 28px solid color-mix(in srgb, var(--guide-accent) 28%, transparent);
  border-radius: 38% 38% 14% 14%;
  pointer-events: none;
}
.ticket-label {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px 16px 10px 24px;
  background: var(--ink);
  color: white;
  clip-path: polygon(12px 0,100% 0,100% 100%,12px 100%,0 50%);
  font: 800 .72rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow, .section-kicker {
  margin: 0 0 7px;
  color: var(--guide-deep);
  font: 900 .76rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2 { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; text-wrap: balance; }
h1 { max-width: 780px; margin: 0; font-size: clamp(2.8rem, 8vw, 6rem); line-height: .93; letter-spacing: .005em; text-transform: uppercase; }
h1 em { display: block; color: var(--guide-deep); font-style: normal; }
h2 { margin: 0 0 18px; font-size: clamp(1.9rem, 5vw, 3.3rem); line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.lede { max-width: 760px; margin: 24px 0 0; color: #423d49; font-size: clamp(1.05rem, 2vw, 1.28rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.play-button, .quiet-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
}
.play-button { background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); }
.quiet-button { background: white; }
.play-button:hover, .quiet-button:hover { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--ink); }

.quick-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 32px 0 0; border: 2px solid var(--ink); background: var(--ink); }
.quick-facts div { padding: 13px; background: var(--paper); }
.quick-facts dt { color: var(--muted); font: 800 .68rem ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.quick-facts dd { margin: 5px 0 0; font-weight: 850; }

article > section { margin: clamp(54px, 8vw, 88px) 0; }
.start-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; padding: clamp(22px,4vw,38px); border: 3px solid var(--ink); background: var(--guide-accent); box-shadow: 8px 8px 0 var(--ink); }
.start-card ol { margin: 0; padding-left: 1.4rem; }
.start-card li + li { margin-top: 9px; }

.shots { display: grid; gap: 18px; }
.shot { margin: 0; padding: 10px; background: var(--ink); box-shadow: var(--shadow); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #08070e; }
.shot figcaption { padding: 10px 5px 2px; color: white; font-size: .84rem; }
.shot-secondary { width: min(72%, 680px); }

.steps { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; counter-reset: steps; }
.steps li { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 16px; padding: 15px 18px; border: 2px solid var(--ink); background: var(--screen); }
.steps span { width: 46px; height: 46px; display: grid; place-items: center; background: var(--guide-accent); border: 2px solid var(--ink); border-radius: 50%; font: 900 1.1rem ui-monospace, monospace; }
.steps p { margin: 0; font-weight: 700; }

.table-shell { overflow-x: auto; border: 2px solid var(--ink); background: var(--screen); }
table { width: 100%; border-collapse: collapse; }
caption { padding: 12px; text-align: left; color: var(--muted); font-weight: 800; }
th, td { padding: 14px; border-top: 1px solid var(--line); text-align: left; }
th { width: 62px; color: var(--guide-deep); font: 900 1rem ui-monospace, monospace; }
.note { color: var(--muted); font-size: .9rem; }

.two-column { display: grid; grid-template-columns: 1.08fr .92fr; gap: 22px; align-items: start; }
.tips, .cheat-card ul { padding-left: 1.25rem; }
.tips li, .cheat-card li { margin: 0 0 12px; }
.cheat-card { padding: 24px; border: 3px solid var(--ink); background: var(--yellow); box-shadow: 7px 7px 0 var(--guide-deep); }
.cheat-card h2 { font-size: clamp(1.55rem,4vw,2.4rem); }

.recovery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.recovery-grid p { margin: 0; padding: 18px; border: 2px solid var(--ink); background: var(--screen); }

.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.related-card { display: flex; min-width: 0; flex-direction: column; border: 2px solid var(--ink); background: var(--screen); color: inherit; text-decoration: none; }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 2px solid var(--ink); }
.related-card span { padding: 10px 10px 2px; font-weight: 900; }
.related-card small { padding: 0 10px 10px; color: var(--muted); }

.article-footer { margin: 76px 0 50px; padding: 24px; border-top: 3px solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.article-footer p { max-width: 520px; color: var(--muted); font-size: .78rem; }

.site-footer { padding: 26px max(16px, calc((100% - 1120px)/2)); display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; color: white; background: var(--ink); font-size: .85rem; }

.index-hero { display: grid; grid-template-columns: 1fr 250px; gap: 34px; align-items: end; padding: clamp(42px,7vw,86px) 0 36px; }
.index-hero h1 { max-width: 800px; }
.index-hero > div > p:last-child { max-width: 700px; font-size: 1.2rem; color: var(--muted); }
.index-stamp { min-height: 230px; display: grid; place-content: center; padding: 20px; text-align: center; border: 4px solid var(--ink); border-radius: 46% 46% 14% 14%; background: var(--yellow); box-shadow: 9px 9px 0 var(--ink); }
.index-stamp strong { font: 900 5rem/.9 Impact, sans-serif; }
.index-stamp span { font-weight: 900; text-transform: uppercase; }
.index-stamp small { margin-top: 8px; font-family: ui-monospace, monospace; }

.guide-search { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr minmax(190px,.35fr) auto; gap: 12px; align-items: end; padding: 16px; border: 3px solid var(--ink); background: var(--screen); box-shadow: 0 8px 0 rgba(23,21,30,.13); }
.guide-search label { display: grid; gap: 5px; color: var(--muted); font: 800 .72rem ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.guide-search input, .guide-search select { width: 100%; min-height: 46px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 0; background: white; color: var(--ink); }
#guideCount { min-height: 46px; display: grid; place-items: center; margin: 0; padding: 0 12px; background: var(--ink); color: white; font-weight: 900; white-space: nowrap; }
.guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; padding: 34px 0 72px; }
.guide-card { min-width: 0; }
.guide-card[hidden] { display: none; }
.guide-card > a { height: 100%; display: block; padding: 9px 9px 17px; border: 2px solid var(--ink); background: var(--screen); color: inherit; text-decoration: none; box-shadow: 5px 5px 0 rgba(23,21,30,.16); }
.cabinet-shot { overflow: hidden; border: 2px solid var(--ink); border-radius: 18px 18px 5px 5px; background: var(--ink); }
.cabinet-shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .2s ease; }
.guide-card a:hover img { transform: scale(1.025); }
.guide-card p { margin: 12px 5px 3px; color: var(--guide-deep); font: 800 .68rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .07em; }
.guide-card h2 { margin: 0 5px 7px; font-size: 1.45rem; text-transform: none; }
.guide-card span { margin: 0 5px; color: var(--muted); font-size: .84rem; font-weight: 750; }
.no-guides { margin: 30px 0 80px; padding: 30px; border: 3px dashed var(--ink); text-align: center; font-weight: 900; }

:focus-visible { outline: 4px solid #0a7ea2; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation: none!important; transition: none!important; } }

@media (max-width: 760px) {
  .guide-topbar { min-height: 64px; padding: 10px 14px; }
  .brand span { display: none; }
  .guide-topbar nav { gap: 2px; font-size: .88rem; }
  main { width: min(100% - 24px,1120px); }
  .ticket-label { position: static; display: inline-block; margin: -28px -28px 28px auto; float: right; max-width: calc(100% + 56px); }
  .article-hero { padding: 28px; box-shadow: 6px 6px 0 var(--guide-deep); }
  .quick-facts, .start-card, .two-column, .recovery-grid, .index-hero { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: 1fr; }
  .start-card { gap: 6px; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
  .article-footer { align-items: stretch; flex-direction: column; }
  .shot-secondary { width: 100%; }
  .index-stamp { min-height: 170px; width: 170px; justify-self: center; }
  .index-stamp strong { font-size: 3.8rem; }
  .guide-search { position: static; grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .guide-card > a { padding: 6px 6px 13px; }
  .guide-card h2 { font-size: 1.12rem; }
  .guide-card span { font-size: .76rem; }
}

@media (max-width: 390px) {
  .guide-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .hero-actions a { width: 100%; }
}
