/* Guia do Grok Bot Workshop São Paulo
   Visual: oficina de tecnologia do Fazedor de Código.
   Tokens oficiais em css/tokens.css. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: var(--scroll-offset);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.12;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  margin: 16px 0 8px;
  line-height: 1.35;
  letter-spacing: 0;
}

p,
ul,
ol,
dl {
  margin: 0 0 16px;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 10px;
}

a {
  color: var(--fg);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-ink);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 14px;
  min-height: var(--target-min);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding: clamp(68px, 7.5vw, 96px) 0;
  border-top: 1px solid var(--border);
}

.kicker,
.meta {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-meta);
  letter-spacing: 0.01em;
  color: var(--muted);
  margin: 0 0 12px;
}

.lead {
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.6;
  max-width: 66ch;
}

.section-head {
  display: grid;
  gap: 14px;
  margin: 0 0 36px;
  max-width: 66ch;
}

.section-head > * {
  margin: 0;
}

main p,
.noscript-note p,
.konami-badge p,
.footer-grid p,
.diagram figcaption {
  max-width: 66ch;
}

.card > ul:not(.chips),
.card > ol:not(.ladder),
.placeholder > ul,
.placeholder > ol,
.checks,
.callout {
  max-width: 68ch;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  min-height: 72px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.logo-plate {
  display: inline-flex;
  align-items: center;
  background: var(--partner-plate);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  line-height: 0;
}

.logo-plate img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding: 0 10px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--fg);
  border-radius: var(--radius-sm);
}

.nav a:hover {
  background: var(--accent-tint);
  color: var(--fg);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.matrix-chip {
  display: none;
  align-items: center;
  min-height: var(--target-min);
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  background: var(--surface);
}

html[data-matrix="true"] .matrix-chip {
  display: inline-flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--target-min);
  min-width: var(--target-min);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-small);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-tint);
  color: var(--fg);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-ghost {
  border-color: var(--border);
  background: var(--surface);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--fg) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--fg) 6%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.hero-copy > * {
  margin: 0;
}

.status {
  margin: 0;
  padding: 2px 0 2px 12px;
  border-left: 3px solid var(--pink);
  max-width: 62ch;
}

.hero-grid > *,
.stack > *,
.grid-2 > *,
.grid-3 > *,
.compare > *,
.card,
.diagram,
.prompt {
  min-width: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  max-width: 920px;
  margin: 0;
}

.facts div {
  min-width: 0;
}

.facts dt {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--muted);
  margin: 0 0 2px;
}

.facts dd {
  margin: 0;
}

.mascot-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.orbit {
  position: absolute;
  border: 1px dashed color-mix(in oklab, var(--fg) 35%, transparent);
  border-radius: 50%;
  pointer-events: none;
  animation: spin 42s linear infinite;
}

.orbit-a {
  width: min(92%, 460px);
  height: 68%;
}

.orbit-b {
  width: 68%;
  height: min(92%, 460px);
  animation-duration: 64s;
  animation-direction: reverse;
}

.orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--accent);
  top: -4px;
  left: calc(50% - 4px);
}

.capivara-hit {
  position: relative;
  z-index: 1;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-md);
  line-height: 0;
}

.capivara-hit img {
  width: min(100%, 440px);
  filter: var(--glow-mascot);
  animation: float 7s var(--ease-out) infinite;
}

.capivara-hit:hover img {
  filter: var(--glow-mascot-hover);
}

.capivara-hit:focus-visible {
  outline-offset: 6px;
}

.secret {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  max-width: 42ch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.secret p {
  margin: 0 0 10px;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: var(--gap-md);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.slot,
.prompt,
.compare article,
.checkpoint {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.card,
.checkpoint {
  padding: 24px 26px;
}

.card:not(:has(.grid-2)):not(:has(.grid-3)):not(.case),
.placeholder,
.steps > li,
.checkpoint,
fieldset.vote {
  max-width: 760px;
}

.card.is-key {
  box-shadow: inset 3px 0 0 var(--accent);
}

.stack {
  display: grid;
  gap: 28px;
  max-width: 1120px;
}

.stack > .block-title {
  margin: 0;
}

.u-mt {
  margin-top: var(--gap-md);
}

.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--pink);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 0;
  max-width: calc(66ch + 28px);
}

.flag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 8px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bege-tint);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
}

.placeholder {
  background: var(--bege-tint);
  border: 1px solid var(--border);
  border-left: 4px solid var(--marrom);
  border-radius: var(--radius-md);
  padding: var(--gap-md);
}

.placeholder.is-filled {
  background: var(--surface);
  border-left-color: var(--accent);
}

.placeholder.is-filled .flag {
  display: none;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  overflow-wrap: anywhere;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  max-width: 1120px;
}

.slot {
  padding: 22px 22px 14px;
}

.slot.is-window {
  border-left: 4px solid var(--pink);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  margin: 0 0 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
}

.chips li {
  margin: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
}

.ladder {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.ladder li {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.ladder li p:last-child {
  margin-bottom: 0;
}

.ladder .step-no {
  font-family: var(--font-mono);
  min-width: 2ch;
  color: var(--fg);
}

.diagram {
  width: min(100%, 520px);
  max-width: 100%;
  margin: 4px 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.card > :last-child,
.checkpoint > :last-child,
.slot > :last-child,
.steps > li > :last-child,
.placeholder > :last-child,
.compare article > :last-child {
  margin-bottom: 0;
}

.grid-2 > div > h4:first-child,
.card > h4:first-child {
  margin-top: 0;
}

.diagram-canvas:not([hidden]) {
  display: block;
}

.diagram-src:not([hidden]) {
  display: block;
  margin: 0;
  max-width: 68ch;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.diagram-canvas[hidden],
.diagram-src[hidden] {
  display: none !important;
}

.diagram-canvas svg {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.diagram-canvas svg > rect {
  fill: transparent !important;
}

.diagram-canvas svg .node .label-container,
.diagram-canvas svg .node rect,
.diagram-canvas svg .node polygon,
.diagram-canvas svg .node circle,
.diagram-canvas svg .node path {
  fill: var(--surface) !important;
  stroke: var(--accent) !important;
  stroke-width: 1.5px !important;
}

.diagram-canvas svg .node.foco .label-container,
.diagram-canvas svg .node.foco rect,
.diagram-canvas svg .node.foco polygon,
.diagram-canvas svg .node.foco circle,
.diagram-canvas svg .node.foco path {
  fill: var(--accent) !important;
  stroke: var(--fg) !important;
}

.diagram-canvas svg foreignObject p {
  margin: 0 !important;
  max-width: none !important;
  line-height: 1.35;
  font-size: 16px;
  font-family: var(--font-display);
  text-wrap: balance;
}

.diagram-canvas svg .node text,
.diagram-canvas svg .node .nodeLabel,
.diagram-canvas svg .node span,
.diagram-canvas svg .edgeLabel text,
.diagram-canvas svg .edgeLabel span {
  fill: var(--fg) !important;
  color: var(--fg) !important;
}

.diagram-canvas svg .node.foco text,
.diagram-canvas svg .node.foco .nodeLabel,
.diagram-canvas svg .node.foco span {
  fill: var(--on-accent) !important;
  color: var(--on-accent) !important;
}

.diagram-canvas svg .flowchart-link,
.diagram-canvas svg .edgePath path {
  stroke: var(--accent) !important;
}

.diagram-canvas svg marker path {
  fill: var(--accent) !important;
  stroke: var(--accent) !important;
}

.diagram figcaption {
  margin: 10px 0 0;
}

.journey {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  grid-template-areas:
    "head diagram"
    "path diagram";
  gap: 12px 40px;
  align-items: start;
  max-width: 1120px;
  margin: 0 0 8px;
}

.journey .section-head {
  grid-area: head;
  margin-bottom: 8px;
}

.journey .diagram {
  grid-area: diagram;
  width: 100%;
  margin: 0;
}

.journey .path {
  grid-area: path;
}

.path {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.path li {
  margin: 0;
}

.path a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: var(--target-min);
  padding: 12px 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.path a:hover {
  background: var(--accent-tint);
  color: var(--fg);
}

.path strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h4);
}

.path span {
  color: var(--muted);
  max-width: 62ch;
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-md);
  margin: 0 0 12px;
}

.compare article {
  padding: var(--gap-md);
}

.compare .is-good {
  border-left: 4px solid var(--accent);
}

.compare .is-vague {
  border-left: 4px solid var(--border);
}

.prompt {
  margin: 0 0 16px;
  max-width: 68ch;
}

.prompt-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

p:has(> .btn) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.prompt-bar p {
  margin: 0;
}

.prompt pre {
  margin: 0;
  padding: 14px 16px 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.steps > li,
.checkpoint {
  margin: 0;
}

.steps > li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.step-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  margin: 0 0 6px;
}

.track-switch {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

html.js .track-switch {
  display: flex;
}

.track-switch button {
  min-height: var(--target-min);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}

.track-switch button[aria-selected="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

html.js[data-track="geral"] .for-tecnica,
html.js[data-track="tecnica"] .for-geral,
html.js[data-track="geral"] #panel-tecnica,
html.js[data-track="tecnica"] #panel-geral {
  display: none;
}

.only-no-js {
  display: block;
}

html.js .only-no-js {
  display: none;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.checks label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: var(--target-min);
  padding: 8px 0;
  cursor: pointer;
}

.checks input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.check-progress {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  margin: 0 0 8px;
}

.checkpoint.is-now {
  border-color: var(--fg);
  box-shadow: inset 4px 0 0 var(--accent);
}

.now-flag {
  display: none;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.checkpoint.is-now .now-flag {
  display: inline;
}

.timer {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.timer-clock {
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1;
}

.timer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vote label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: var(--target-min);
  cursor: pointer;
}

.checkpoints {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

fieldset.vote {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 0;
  padding: 12px 16px 4px;
  background: var(--surface);
}

fieldset.vote legend {
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0 6px;
}

.qr-plate {
  background: #f3f5ed;
  padding: 10px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.qr-plate img {
  width: 168px;
  height: 168px;
}

.pointing {
  width: min(100%, 240px);
  margin: 0 auto;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--gap-lg) 0 var(--gap-xl);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: start;
  justify-content: space-between;
}

.toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  max-width: min(440px, calc(100% - 32px));
  background: var(--fg);
  color: var(--bg);
  padding: 12px 16px;
  min-height: var(--target-min);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-toast);
}

.toast[hidden] {
  display: none;
}

.konami-badge {
  display: none;
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin: 16px auto 0;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--fg);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

html[data-konami="on"] .konami-badge {
  display: block;
}

html[data-konami="on"] .site-header {
  box-shadow: inset 0 -3px 0 var(--accent);
}

dialog {
  width: min(680px, calc(100vw - 24px));
  max-height: min(78vh, 720px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-terminal);
}

dialog::backdrop {
  background: var(--terminal-backdrop);
}

.terminal-head,
.terminal-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.terminal-form {
  border-bottom: 0;
  border-top: 1px solid var(--border);
}

.terminal-head h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.matrix-strip {
  display: none;
  height: 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #0a0c0b;
}

html[data-matrix="true"] .matrix-strip {
  display: block;
}

.matrix-strip canvas {
  width: 100%;
  height: 56px;
  display: block;
}

.terminal-log {
  margin: 0;
  min-height: 220px;
  max-height: 42vh;
  overflow: auto;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  line-height: 1.45;
  white-space: pre-wrap;
  background: var(--bg);
}

.terminal-line + .terminal-line {
  margin-top: 8px;
}

.terminal-form input {
  flex: 1;
  min-height: var(--target-min);
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  padding: 8px 10px;
}

.noscript-note {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 800px) {
  :root {
    --scroll-offset: 320px;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .compare,
  .facts {
    grid-template-columns: 1fr;
  }

  .nav {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .nav a {
    white-space: normal;
  }

  .header-actions {
    order: 2;
    width: 100%;
    margin-left: 0;
  }

  .mascot-stage {
    min-height: 280px;
  }

  .journey {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "diagram"
      "path";
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .matrix-strip {
    display: none !important;
  }
}

html[data-motion="paused"] {
  scroll-behavior: auto;
}

html[data-motion="paused"] *,
html[data-motion="paused"] *::before,
html[data-motion="paused"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}

html[data-motion="paused"] .matrix-strip {
  display: none !important;
}

@media print {
  .site-header,
  .toast,
  .konami-badge,
  .orbit,
  .header-actions,
  .hero-actions,
  .timer-actions {
    display: none !important;
  }

  .secret[hidden] {
    display: none !important;
  }

  body {
    background: #fff;
    color: #172019;
  }

  .section {
    break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }
}
