:root {
  --bg: #0c1110;
  --text: #eff3eb;
  --muted: #a2ada5;
  --accent: #b4ddbd;
  --line: #29352f;
  color-scheme: dark;
  font-family:
    'Segoe UI',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  overflow-anchor: none;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
html[data-language='fi'] [lang='en']:not([data-language-link]),
html[data-language='en'] [lang='fi']:not([data-language-link]) {
  display: none;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
}
h1,
.chapter-copy h2 {
  font-size: clamp(2.3rem, 4.3vw, 3.8rem);
  letter-spacing: -0.055em;
  font-weight: 750;
  text-wrap: balance;
}
em {
  font-style: normal;
  color: var(--accent);
}
.guide-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
  padding-inline: max(24px, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand img {
  border-radius: 10px;
}
.languages {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 12px;
}
.languages a {
  display: block;
  padding: 6px 12px;
  text-decoration: none;
  font-size: 0.86rem;
  border-radius: 8px;
  color: var(--muted);
}
.languages a[aria-current='true'] {
  color: var(--text);
  background: #24302a;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: -120px;
  left: 16px;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 20px;
}
.skip-link:focus {
  top: 10px;
}
.chapter {
  --accent: #b4ddbd;
  max-width: 1080px;
  margin: auto;
  min-height: calc(100svh - 72px);
  padding: 56px 24px 150px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 72px;
  border-bottom: 1px solid var(--line);
  scroll-snap-align: start;
}
.chapter-copy {
  min-width: 0;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}
.chapter-copy h1,
.chapter-copy h2 {
  margin-bottom: 24px;
}
.chapter-copy > p + p {
  margin-top: 18px;
}
.chapter-copy > p:not(.eyebrow):not(.aside),
.rule-list {
  font-size: 1.06rem;
}
.lead {
  color: var(--text);
}
.aside {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}
.chapter-copy .aside {
  margin-top: 24px;
}
.reading-time {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reading-time svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.rule-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rule-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.rule-list li:first-child {
  padding-top: 0;
}
.rule-list li:last-child {
  border-bottom: 0;
}
.map-key li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.map-key strong {
  display: block;
  color: var(--accent);
  margin-bottom: 3px;
}
.map-key-number {
  color: var(--muted);
  font-size: 0.8em;
  margin-right: 4px;
}
.map-key-marker,
.map-key-boundary,
.map-key-alert {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 3px;
}
.map-key-marker {
  background: #6ee7b7;
  border: 3px solid #d8dce3;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #38bdf880;
}
.map-key-boundary {
  border: 2px dashed #6ee7b7;
  border-radius: 50%;
  background: #38bdf81f;
}
.map-key-alert {
  color: #e8c37e;
}
.numbered {
  counter-reset: steps;
  margin-top: 20px;
}
.numbered li {
  counter-increment: steps;
  position: relative;
  padding-left: 36px;
}
.numbered li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  padding-top: 2px;
}
.callout {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 16px;
  margin-top: 18px;
  color: var(--accent);
}
.team-cards {
  display: grid;
  gap: 14px;
}
.team-card {
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #131d17;
}
.team-card h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.team-card p {
  color: #c7d0c8;
  font-size: 0.95rem;
}
.team-symbol {
  display: block;
  color: var(--accent);
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}
.seeker-card {
  background: #211718;
  --accent: #f1a6aa;
}
.seeker-chapter {
  --accent: #f1a6aa;
}
.freeze-chapter {
  --accent: #91cddd;
}
.mission-chapter {
  --accent: #e8c37e;
}
.game-image {
  text-align: center;
  min-width: 0;
  width: 100%;
  max-width: 400px;
  justify-self: center;
}
.screenshot-link {
  display: block;
  position: relative;
  border-radius: 18px;
  background: #19231d;
  box-shadow: 0 12px 40px #0005;
  cursor: zoom-in;
}
.game-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
.screenshot-annotations {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.screenshot-annotations path,
.screenshot-annotations circle {
  stroke: #0c1110;
  stroke-width: 3;
}
.screenshot-annotations circle {
  fill: #eff3eb;
}
.screenshot-annotations text {
  fill: #0c1110;
  font-size: 24px;
  font-weight: 750;
  text-anchor: middle;
  dominant-baseline: central;
}
.game-image figcaption {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.image-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}
.map-credit {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.62rem;
}
.map-credit a {
  text-underline-offset: 2px;
}
.ready-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #15211a;
  padding: 32px;
}
.ready-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  font-size: 1.7rem;
  margin-bottom: 24px;
}
.ready-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.packing-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding-left: 22px;
  font-size: 1.1rem;
  font-weight: 600;
}
.packing-list li::marker {
  color: var(--accent);
}
.home-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block: 26px;
  padding-bottom: 12px;
  text-decoration: none;
  border-bottom: 1px solid #4c6454;
  font-weight: 650;
}
.guide-progress {
  position: fixed;
  bottom: 0;
  z-index: 6;
  width: 100%;
  background: #0c1110f5;
  border-top: 1px solid var(--line);
  padding: 8px max(24px, calc((100vw - 860px) / 2)) max(10px, env(safe-area-inset-bottom));
}
.progress-track {
  display: flex;
  gap: 5px;
}
.progress-track button {
  flex: 1;
  height: 26px;
  padding: 10px 0;
  cursor: pointer;
  border: 0;
  background: transparent;
}
.progress-track button::after {
  content: '';
  display: block;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}
.progress-track button.complete::after {
  background: #637e6c;
}
.progress-track button[aria-current='step']::after {
  background: var(--accent);
}
.progress-controls {
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  align-items: center;
  gap: 12px;
}
.progress-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 650;
}
.progress-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}
.progress-controls .next {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.progress-label {
  display: grid;
  text-align: center;
  font-size: 0.79rem;
  line-height: 1.4;
}
.current-count {
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 64px;
  }
  .guide-header {
    height: 64px;
    padding-inline: 18px;
  }
  .brand {
    font-size: 1.08rem;
    gap: 7px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .languages a {
    padding: 7px 10px;
    font-size: 0.8rem;
  }
  .chapter {
    min-height: calc(100svh - 64px);
    padding: 30px 24px 120px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
  }
  h1,
  .chapter-copy h2 {
    font-size: clamp(2rem, 7.6vw, 2.9rem);
  }
  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.67rem;
  }
  .chapter-copy h1,
  .chapter-copy h2 {
    margin-bottom: 18px;
  }
  .chapter-copy > p:not(.eyebrow):not(.aside),
  .rule-list {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .rule-list li {
    padding-block: 10px;
  }
  .chapter-copy .aside {
    margin-top: 16px;
  }
  .game-image figcaption {
    font-size: 0.8rem;
  }
  .team-card {
    padding: 18px 20px;
  }
  .team-card h2 {
    font-size: 1.2rem;
  }
  .team-card p {
    font-size: 0.9rem;
  }
  .team-symbol {
    float: right;
    margin: 0 0 8px 12px;
  }
  .ready-card {
    padding: 24px;
  }
  .ready-mark {
    margin-bottom: 18px;
  }
  .guide-progress {
    padding-inline: 16px;
  }
  .progress-controls {
    grid-template-columns: 95px 1fr 95px;
    gap: 5px;
  }
  .progress-controls button {
    font-size: 0.78rem;
    gap: 6px;
  }
  .progress-label {
    font-size: 0.72rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
}
@media print {
  html {
    scroll-snap-type: none;
  }
  .guide-header,
  .guide-progress,
  .skip-link {
    display: none !important;
  }
  .chapter {
    min-height: 0;
    padding: 30px;
    break-inside: avoid;
  }
  .screenshot-link {
    box-shadow: none;
  }
  .image-hint {
    display: none;
  }
}
