/* dynoracer.com - raw, typographic, one red. One big line in the middle, what is in the game under it, the stores' badges. */
@font-face { font-family: "BC"; src: url("/fonts/BarlowCondensed-BoldItalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "BCS"; src: url("/fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Mono"; src: url("/fonts/JetBrainsMono.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #09090b;
  --ink: #f2f2f4;
  --soft: #c4c4cc;
  --dim: #85858f;
  --line: rgba(255, 255, 255, 0.09);
  --red: #eb1c24;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 500 17px/1.55 "Barlow", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* A film of grain, a red glow under the line and a faint floor of light at the bottom: the raw surface under the type. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(60% 45% at 50% 48%, rgba(235, 28, 36, 0.10), transparent 70%),
    radial-gradient(90% 40% at 50% 115%, rgba(255, 255, 255, 0.05), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.055 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

/* --- Top: the mark, the language ------------------------------------------------------------------------------------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter); border-bottom: 1px solid var(--line);
}
.mark img { display: block; height: clamp(22px, 3.2vw, 30px); width: auto; }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  font: 600 13px/1 "Mono", ui-monospace, monospace; letter-spacing: 0.14em; color: var(--soft);
  border: 1px solid var(--line); border-radius: 2px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); border-color: rgba(255, 255, 255, 0.24); }
.lang .chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.lang[open] .chev { transform: translateY(2px) rotate(225deg); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; margin: 0; padding: 6px 0; list-style: none; min-width: 180px;
  background: #111114; border: 1px solid rgba(255, 255, 255, 0.14); border-top: 2px solid var(--red);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.lang li a {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; min-height: 44px;
  text-decoration: none; color: var(--soft); font-size: 16px;
}
.lang li a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.lang li a[aria-current]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.lang li a[aria-current] { color: var(--ink); }

/* --- The middle: the line, what is in the game, the stores ------------------------------------------------------------ */
.hero {
  flex: 1; width: 100%; max-width: 1240px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(56px, 10vh, 128px) var(--gutter);
}
.hero > * { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero > :nth-child(2) { animation-delay: 0.08s; }
.hero > :nth-child(3) { animation-delay: 0.2s; }
.hero > :nth-child(4) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.kicker {
  margin: 0 0 26px; display: flex; align-items: center; gap: 14px; white-space: nowrap;
  font: 500 13px/1.4 "Mono", ui-monospace, monospace; letter-spacing: 0.08em; color: var(--dim);
}
.kicker::before, .kicker::after { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }

h1 {
  margin: 0; max-width: 15ch;
  font: italic 700 clamp(46px, 8.6vw, 136px)/0.96 "BC", "Arial Narrow", sans-serif; letter-spacing: -0.005em; text-transform: uppercase;
  text-wrap: balance;
}
h1 em { font-style: inherit; color: var(--red); }
:lang(pl) h1 { line-height: 1.04; }    /* the Ę's tail clear of the line under it */

/* What is in the game: one row, red slashes between, "and more" quieter. */
.modes {
  margin: 34px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0;
  font: 600 clamp(17px, 1.7vw, 22px)/1.2 "BCS", "Arial Narrow", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.modes li { display: flex; align-items: center; }
.modes li + li::before { content: "/"; margin: 0 16px; color: var(--red); font-weight: 600; }
.modes .more { color: var(--dim); }

/* Coming soon: the label between two hairlines, the stores' own badges at one height. */
.soon { margin-top: clamp(44px, 7vh, 72px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.soon .label {
  margin: 0; display: flex; align-items: center; gap: 14px; white-space: nowrap;
  font: 600 12.5px/1 "Mono", ui-monospace, monospace; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red);
}
.soon .label::before, .soon .label::after { content: ""; width: 40px; height: 1px; background: rgba(235, 28, 36, 0.5); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.badges img { display: block; height: 56px; width: auto; }

@media (prefers-reduced-motion: reduce) {
  .hero > * { animation: none; }
}

/* --- The bottom: contact, the documents ------------------------------------------------------------------------------- */
.bottom {
  border-top: 1px solid var(--line); padding: 24px var(--gutter) 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 48px; font-size: 14.5px; color: var(--dim);
}
.bottom .links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.bottom .links a { text-decoration: none; color: var(--soft); min-height: 24px; }
.bottom .links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.bottom .dim { color: var(--dim); margin-right: 6px; }
.copyright { margin: 0; font: 500 12px/1.4 "Mono", ui-monospace, monospace; letter-spacing: 0.06em; }

@media (max-width: 520px) {
  .top { padding-top: 16px; padding-bottom: 16px; }
  .kicker { margin-bottom: 20px; gap: 10px; font-size: 12px; letter-spacing: 0.02em; }
  .kicker::before, .kicker::after { width: 16px; }
  .modes { margin-top: 26px; font-size: 16px; letter-spacing: 0.06em; }
  .modes li + li::before { margin: 0 10px; }
  .modes .more { flex-basis: 100%; justify-content: center; margin-top: 4px; }    /* "and more" its own line, no slash to lead it */
  .modes .more::before { content: none; }
  .soon .label { gap: 10px; letter-spacing: 0.16em; }
  .soon .label::before, .soon .label::after { width: 24px; }
  .badges { gap: 11px; }
  .badges img { height: 44px; }    /* Apple's least is 40 px; the gap a quarter of the height */
  .bottom { flex-direction: column; align-items: flex-start; }
  .bottom .links { flex-direction: column; gap: 10px; }
}
