/* Openo's website: the player's look (Engine/src/ui/Theme.h) - white over the darkened pixel dusk. */
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #090b14;
  --panel: rgba(9, 11, 20, 0.82);
  --panel-solid: #0c0f1c;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.5);
  --surface: rgba(255, 255, 255, 0.14);
  --surface-hover: rgba(255, 255, 255, 0.2);
  --green: #3fc48a;
  --error: #ff7882;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }
img.pixel { image-rendering: pixelated; }

/* The dusk behind everything, darker towards the bottom. */
.backdrop {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9, 11, 20, 0.35) 0%, rgba(9, 11, 20, 0.7) 55%, var(--bg) 100%), url("img/dusk.png") center 30% / cover no-repeat;
  image-rendering: pixelated;
}

header.top {
  display: flex; align-items: center; gap: 28px;
  max-width: 1180px; margin: 0 auto; padding: 22px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 22px; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
nav.links { display: flex; gap: 22px; flex: 1; }
nav.links a { text-decoration: none; color: var(--muted); font-weight: 500; }
nav.links a:hover, nav.links a.here { color: var(--text); }

main { max-width: 1180px; margin: 0 auto; padding: 0 24px 80px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--surface); color: var(--text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.button:hover { background: var(--surface-hover); }
.button:active { transform: scale(0.98); }
.button.primary { background: #fff; color: #000; }
.button.primary:hover { background: #e9ecf2; }
.button.big { min-height: 64px; padding: 0 34px; font-size: 19px; }
.button.small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.button[disabled] { opacity: .5; cursor: default; }

.hero { padding: 13vh 0 9vh; max-width: 720px; }
.hero h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1.02; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 21px; color: var(--muted); margin: 0 0 34px; max-width: 600px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .note { margin-top: 14px; color: var(--faint); font-size: 15px; }

.section-title { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 64px 0 18px; font-weight: 700; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; backdrop-filter: blur(6px); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

/* Games */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.game { display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .15s, border-color .15s; }
.game:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.2); }
.game .title { font-size: 20px; font-weight: 700; }
.game .by { color: var(--faint); font-size: 14px; }
.game .desc { color: var(--muted); font-size: 15px; flex: 1; }
.game .stats { display: flex; gap: 14px; font-size: 14px; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: 1px; }
.empty { color: var(--muted); padding: 40px 0; }

.game-page { padding-top: 8vh; max-width: 760px; }
.game-page h1 { font-size: clamp(36px, 6vw, 60px); margin: 0 0 6px; }
.game-page .by { color: var(--faint); margin-bottom: 22px; }
.game-page .desc { color: var(--muted); font-size: 19px; white-space: pre-line; margin-bottom: 30px; }
.game-page .stats { display: flex; gap: 22px; color: var(--muted); margin-bottom: 30px; }

/* Forms */
.form-page { display: grid; place-items: start center; padding-top: 7vh; }
.form-card { width: min(460px, 100%); padding: 32px 30px; }
.form-card h1 { margin: 0 0 6px; font-size: 32px; }
.form-card .sub { color: var(--muted); margin: 0 0 24px; }
label.field { display: grid; gap: 6px; margin: 0 0 16px; color: var(--muted); font-weight: 500; font-size: 15px; }
label.field input {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07); color: var(--text); font: inherit; font-size: 17px;
}
label.field input:focus { outline: 2px solid #fff; outline-offset: 2px; }
label.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 20px; color: var(--muted); font-size: 15px; }
label.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #fff; }
.form-card .button { width: 100%; }
.hint { color: var(--faint); font-size: 13px; margin: -8px 0 20px; }
.problem { color: var(--error); margin: 14px 0 0; }
.success { color: var(--green); }
.steps { color: var(--muted); padding-left: 20px; }
.steps li { margin: 6px 0; }

footer { max-width: 1180px; margin: 0 auto; padding: 30px 24px 40px; color: var(--faint); font-size: 14px; display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); }
footer a { color: var(--faint); }

@media (max-width: 640px) {
  header.top { flex-wrap: wrap; gap: 12px 20px; padding: 16px; }
  nav.links { order: 3; width: 100%; }
  main { padding: 0 16px 60px; }
  .hero { padding-top: 7vh; }
  .hero p.lead { font-size: 18px; }
  .form-card { padding: 24px 18px; }
}

/* The account page's password and deletion, apart from the rest. */
.danger-zone, .settings-block { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.danger-zone h2, .settings-block h2 { margin: 0 0 6px; font-size: 1.2rem; }

/* The terms and the privacy policy. */
.legal { max-width: 860px; text-align: left; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { margin: 28px 0 8px; font-size: 1.2rem; }
.legal p, .legal li { line-height: 1.6; }
.legal ol, .legal ul { padding-left: 1.4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.legal .version { opacity: 0.7; }
@media (max-width: 640px) { .legal table { display: block; overflow-x: auto; } }

/* The home page's invite code for the closed beta's downloads. */
.code-form { max-width: 360px; margin: 14px 0 0; display: grid; gap: 10px; }
