:root {
  color-scheme: dark;
  --background: var(--dynamo-background);
  --surface: var(--dynamo-surface);
  --surface-raised: var(--dynamo-surface-raised);
  --ink: var(--dynamo-ink);
  --muted: var(--dynamo-muted);
  --accent: var(--dynamo-accent);
  --cyan: var(--dynamo-focus);
  --line: var(--dynamo-line);
  --radius: 1rem;
  --space: 1.5rem;
  font-family: var(--dynamo-font);
  background: var(--background);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height, 7rem) + 1rem);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, a, input { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button, input { border-radius: .5rem; }
:focus-visible { outline: .1875rem solid var(--cyan); outline-offset: .3rem; }
[hidden] { display: none !important; }
p { line-height: 1.6; }
h1, h2, h3, p { margin-top: 0; }
.wrap { max-width: 76rem; margin-inline: auto; padding-inline: 2.5rem; }
.site-header { position: sticky; top: 0; z-index: 4; background: var(--background); min-height: 7rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.wordmark { display: flex; align-items: center; font-size: 1.7rem; font-weight: 900; letter-spacing: .04em; line-height: 1; }
.wordmark img { width: 1.5rem; height: 1.7rem; margin-inline: .04rem; }
.brand-a { position: relative; display: flex; }
.brand-thrust { display: none; position: absolute; top: 92%; left: 28%; width: 44%; height: .55rem; fill: none; stroke: white; stroke-width: 3; stroke-linecap: square; transform-origin: center top; }
@media (hover: hover) and (pointer: fine) {
  .brand .brand-caption { margin-top: .7rem; }
  .brand:hover .brand-thrust, .brand:focus-visible .brand-thrust { display: block; animation: thrust-flicker .32s steps(2, end) infinite; }
}
@keyframes thrust-flicker {
  0%, 100% { transform: scaleY(.65); opacity: .7; }
  35% { transform: scaleY(1); opacity: 1; }
  65% { transform: scaleY(.45); opacity: .8; }
  85% { transform: scaleY(.85); opacity: 1; }
}
.brand-caption { font-size: .56rem; letter-spacing: .4em; margin-top: .4rem; padding-left: .35em; }
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1.75rem; font-size: .875rem; }
nav > a { padding-block: .85rem; }
nav > a:hover, .text-link:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding-block: 4.3rem 4rem; overflow: hidden; }
.eyebrow { font-size: .68rem; font-weight: bold; letter-spacing: .16em; color: var(--muted); margin-bottom: 1.35rem; }
.energy-dot { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); margin-right: .45rem; }
h1 { font-size: clamp(3.2rem, 6vw, 5.7rem); line-height: .99; letter-spacing: -.06em; font-weight: 800; margin-bottom: 1.5rem; }
h1 em { color: var(--accent); font-style: normal; }
.hero-description { font-size: 1.12rem; color: var(--muted); margin-bottom: 1.7rem; }
.text-link { display: inline-flex; align-items: center; gap: 1rem; font-size: .9rem; font-weight: bold; min-height: 2.75rem; }
.text-link span { color: var(--accent); font-size: 1.5rem; }
.hero-art { position: relative; width: 100%; aspect-ratio: 1.3; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-outer { width: 84%; aspect-ratio: 1; }
.orbit-inner { width: 63%; aspect-ratio: 1; border-style: dashed; opacity: .7; }
.hero-mark { width: 46%; transform: rotate(90deg); filter: drop-shadow(0 0 2.8rem #ff791f25); }
.energy-line { position: absolute; height: .0625rem; width: 93%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .35; }
.orbit-point { position: absolute; right: 13%; top: 25%; width: .5rem; height: .5rem; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 1rem #8ee7e340; }
.art-coordinate { position: absolute; bottom: 0; right: 10%; font-family: monospace; font-size: .62rem; letter-spacing: .13em; color: var(--muted); }
.games-section, .how-section { scroll-margin-top: 2rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: var(--space); margin-bottom: 1.75rem; }
.section-heading .eyebrow { margin-bottom: .6rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 0; }
.section-note { color: var(--muted); font-size: .8rem; margin: 0 0 .15rem; }
.game-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space); }
.game-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.game-art { position: relative; aspect-ratio: 1.9; overflow: hidden; background: #090d16; border-bottom: 1px solid var(--line); }
.game-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.miner .game-art img { object-position: 50% 75%; }
.game-art::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #101011ed); pointer-events: none; }
.art-label { position: absolute; bottom: 1rem; left: 1.5rem; right: 1rem; font-size: .6rem; letter-spacing: .15em; font-weight: bold; z-index: 1; }
.game-content { padding: 1.7rem; flex: 1; display: flex; flex-direction: column; }
.game-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; font-size: .57rem; letter-spacing: .1em; color: var(--muted); margin-bottom: 1.1rem; }
.game-status { font-size: .7rem; letter-spacing: 0; color: var(--cyan); }
.game-status span { font-size: .55rem; padding-right: .25rem; }
.experimental { color: #f4c984; border: 1px solid #80663d; padding: .25rem .5rem; border-radius: .3rem; }
.game-content h3 { font-size: 2.5rem; letter-spacing: -.055em; margin: 0 0 .8rem; }
.game-content h3 span { font-weight: normal; font-size: .85rem; display: block; letter-spacing: .06em; margin-bottom: .25rem; text-transform: uppercase; color: var(--muted); }
.game-content > p { font-size: .95rem; color: #c4c1bc; margin-bottom: 1.25rem; max-width: 29rem; }
.game-content > .experiment-note { font-size: .76rem; color: var(--muted); margin-top: -.5rem; }
.button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.2rem; padding: .9rem 1.2rem; font-size: .9rem; font-weight: bold; border-radius: .5rem; border: 1px solid transparent; }
.game-content .button { margin-top: auto; }
.primary { color: #17100b; background: var(--accent); }
.primary:hover { background: #ff923f; }
.secondary { color: var(--ink); background: var(--surface-raised); border-color: #525154; }
.secondary:hover { background: #303033; border-color: var(--muted); }
.button span { font-size: 1.2rem; }
.how-section { padding-top: 4.5rem; padding-bottom: 4rem; }
.steps { padding: 0; margin: 2rem 0 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
.steps li { display: flex; gap: .9rem; border-top: 1px solid var(--line); padding-top: 1.3rem; }
.step-number { color: var(--accent); font-size: .75rem; line-height: 1.6; font-family: monospace; }
.steps h3 { font-size: 1rem; margin-bottom: .6rem; }
.steps p { font-size: .84rem; color: var(--muted); margin: 0; }
.site-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.8rem; color: var(--muted); font-size: .68rem; }
.site-footer > span:first-child { letter-spacing: .12em; font-weight: bold; }
.site-footer p { margin: 0; font-size: .85rem; }
.preview-label { border: 1px solid var(--line); border-radius: 2rem; padding: .4rem .7rem; }
dialog { color: var(--ink); background: var(--surface); border: 1px solid #525154; border-radius: var(--radius); padding: 1.8rem; max-width: 29rem; width: calc(100% - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; overflow-wrap: anywhere; }
dialog::backdrop { background: #000b; backdrop-filter: blur(.3rem); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dialog-top .eyebrow { margin: 0; }
.close-button { min-width: 2.75rem; min-height: 2.75rem; font-size: 1.6rem; background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); }
dialog h2 { margin-bottom: 1rem; }
dialog p { font-size: .9rem; color: var(--muted); }
form label { display: block; margin-bottom: .6rem; font-weight: bold; font-size: .9rem; }
form input { width: 100%; min-height: 3rem; padding: .75rem; background: var(--background); color: var(--ink); border: 1px solid #68676a; }
form .input-note { font-size: .75rem; margin-top: .75rem; }
form .button { width: 100%; }
.notice { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 5; max-width: 32rem; width: calc(100% - 2rem); border: 1px solid var(--line); background: var(--surface-raised); color: var(--ink); border-radius: .5rem; padding: 1rem; margin: 0; font-size: .85rem; pointer-events: none; }
.skip-link { position: fixed; left: 1rem; top: -8rem; padding: 1rem; background: var(--ink); color: var(--background); z-index: 10; }
.skip-link:focus { top: 1rem; }
@media (max-width: 760px) {
  .wrap { padding-inline: 1.25rem; }
  .site-header { min-height: 5.5rem; gap: .8rem; }
  nav { gap: .9rem; font-size: .8rem; }
  .how-link { display: none; }
  .wordmark { font-size: 1.35rem; }
  .wordmark img { width: 1.2rem; height: 1.35rem; }
  .brand-caption { font-size: .45rem; }
  .hero { padding-block: 3rem; grid-template-columns: 1fr .65fr; }
  h1 { font-size: 3.8rem; }
  .hero-art { width: 140%; margin-left: -15%; }
  .art-coordinate { display: none; }
  .hero-description { font-size: 1rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .65rem; }
  .game-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .game-content { padding: 1.2rem; }
  .game-art { aspect-ratio: 1.5; }
  .art-label { left: 1.2rem; font-size: .5rem; }
  .game-meta { flex-direction: column; align-items: start; min-height: 3rem; }
  .how-section { padding-top: 3rem; }
  .steps { gap: 1rem; }
}
@media (max-width: 540px) {
  .site-header { flex-wrap: wrap; padding-block: 1rem; }
  .site-header nav { flex: 1; justify-content: end; }
  .hero { position: relative; display: block; }
  .hero-copy { position: relative; z-index: 1; }
  h1 { font-size: clamp(3rem, 13vw, 4.4rem); }
  .hero-art { position: absolute; width: 11rem; right: -5rem; top: 3rem; opacity: .25; z-index: 0; }
  .hero-mark { opacity: .55; }
  .hero-description { max-width: 20rem; }
  .game-grid { grid-template-columns: 1fr; }
  .game-art { aspect-ratio: 1.8; }
  .game-meta { min-height: auto; flex-direction: row; align-items: center; }
  .game-content { padding: 1.5rem; }
  .game-content h3 { font-size: 2.3rem; }
  .art-label { font-size: .55rem; left: 1.5rem; }
  .steps { grid-template-columns: 1fr; gap: var(--space); }
  .site-footer { justify-content: start; column-gap: 1.5rem; }
  dialog { padding: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .brand:hover .brand-thrust, .brand:focus-visible .brand-thrust { animation: none; }
}
