@charset "UTF-8";
/* OneTap website · Hairline Pro style sheet
   The same look as the game's menus and launcher: near-black, thin lines, one cool accent,
   condensed uppercase labels. Dark only. The font is self-hosted: see fonts.css.
*/

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #0A0D0F;            /* page */
  --bg-deep: #050708;       /* panels, header, footer */
  --bg-raised: #111518;     /* cards on panels */
  --line: #F4F6F71F;        /* hairlines, 12% white */
  --line-strong: #F4F6F74D; /* control borders, 30% white */

  /* Text */
  --text: #F4F6F7;          /* headings, body on dark */
  --text-2: #C8CFD2;        /* body copy, descriptions */
  --text-3: #A9B2B6;        /* labels, meta (still 7:1 on --bg) */

  /* Colour, by meaning */
  --accent: #5CC8FF;        /* primary action, links, focus */
  --accent-hover: #7DD5FF;
  --warn: #FF8A4C;          /* attention, T side */
  --danger: #FF4D4D;        /* errors, destructive */
  --ok: #6FDC8C;            /* success, online */
  --gold: #FFD166;          /* beta / limited / 1st place */
  --diamond: #B8A4FF;       /* Diamond rank only */
  --pro: #FF8FCF;           /* Pro rank only */

  /* Type */
  --font: 'Saira Semi Condensed', system-ui, sans-serif;
  --mono: ui-monospace, Consolas, monospace;
  --fs-display: clamp(48px, 8vw, 96px);
  --fs-h1: clamp(36px, 5vw, 56px);
  --fs-h2: clamp(28px, 3.4vw, 40px);
  --fs-h3: 22px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-label: 12px;

  /* Space, size */
  --gap: 24px;
  --section: clamp(72px, 10vw, 140px);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 0;              /* square corners everywhere */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 300; line-height: 1.08; letter-spacing: 0.02em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: 0.04em; }
p { margin: 0; max-width: 62ch; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg-deep); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-2 { display: grid; gap: calc(var(--gap) * 2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }

/* ---------- Labels, chips, wordmark ---------- */
.label {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
}
.label.accent { color: var(--accent); }
.wordmark { font-size: 20px; font-weight: 600; letter-spacing: 0.38em; color: var(--text); text-decoration: none; }
/* Logo: always the SVG files in /logo, never retyped as text */
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 26px; width: auto; }
.logo-hero img { width: min(100%, 640px); height: auto; }
.site-footer .logo img { height: 22px; }
.site-footer .studio { height: 48px; width: auto; opacity: .8; }
.chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border: 1px solid currentColor; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3); white-space: nowrap;
}
.chip.beta { color: var(--gold); }
.chip.ok { color: var(--ok); }
.chip.warn { color: var(--warn); }
.chip.accent { color: var(--accent); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font: 600 14px/1 var(--font); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--text); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--bg-deep); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg-deep); }
.btn-lg { min-height: 60px; padding: 0 40px; font-size: 16px; letter-spacing: 0.24em; }
.btn-text { min-height: 0; padding: 0; border: 0; color: var(--accent); letter-spacing: 0.16em; font-size: 13px; text-decoration: underline; text-underline-offset: 6px; }
.btn-text:hover { border: 0; color: var(--accent-hover); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* Corner brackets: the game's focus mark. Put on a wrapper around the one main action. */
.brackets { position: relative; display: inline-block; padding: 8px; }
.brackets::before, .brackets::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: 1px solid var(--text);
}
.brackets::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.brackets::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }

/* ---------- Header and footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg-deep) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.nav { display: flex; gap: 28px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 22px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 48px 0; font-size: var(--fs-small); color: var(--text-3); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(86vh, 820px); display: flex; align-items: flex-end; padding: 120px 0 72px; }
.hero-art { position: absolute; inset: 0; z-index: 0; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, var(--bg) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: var(--fs-display); letter-spacing: 0.14em; font-weight: 300; }
.hero p { font-size: 19px; color: var(--text-2); }

/* ---------- Panels and cards ---------- */
.panel { background: var(--bg-deep); border: 1px solid var(--line); padding: 28px; }
.card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-deep); border: 1px solid var(--line); border-top: 2px solid var(--accent); padding: 28px;
}
.card.warn { border-top-color: var(--warn); }
.card.ok { border-top-color: var(--ok); }
.card.gold { border-top-color: var(--gold); }
.card .num { font-size: 32px; font-weight: 300; color: var(--accent); line-height: 1; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s; }
a.card:hover { border-color: var(--line-strong); border-top-color: var(--accent); }

/* Map card: a plan image (SVG) on top, name and mode underneath */
.map-card { background: var(--bg-deep); border: 1px solid var(--line); }
.map-card .plan { aspect-ratio: 5 / 3; background: #0B1013; border-bottom: 1px solid var(--line); }
.map-card .body { padding: 16px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.map-card h3 { font-size: 18px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }

/* News row */
.news { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.news:hover h3 { color: var(--accent); }
@media (max-width: 560px) { .news { grid-template-columns: 1fr; gap: 8px; } }

/* Stat row: big thin numbers */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.stats { gap: 1px; background: var(--line); }
.stat { background: var(--bg); }
.stat b { font-size: 44px; font-weight: 300; color: var(--text); line-height: 1; }
@media (max-width: 720px) {
  .site-header .container { flex-wrap: nowrap; }
  .nav { overflow-x: auto; flex-wrap: nowrap; gap: 20px; scrollbar-width: none; }
  .nav a { padding: 16px 0; white-space: nowrap; }
  .site-header .chip { display: none; }
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.input {
  min-height: 48px; width: 100%; padding: 0 16px;
  background: var(--bg-deep); border: 1px solid var(--line-strong); color: var(--text);
  font: 400 16px var(--font); border-radius: 0;
}
.input:focus { outline: none; border-color: var(--accent); }
.input.key { font-family: var(--mono); font-size: 20px; letter-spacing: 0.18em; text-transform: uppercase; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.help { font-size: var(--fs-small); color: var(--text-3); }
.help.error { color: var(--danger); }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; background: var(--bg-deep); border-left: 3px solid var(--accent); font-size: 15px; }
.notice.warn { border-left-color: var(--warn); }
.notice.danger { border-left-color: var(--danger); }
.notice.ok { border-left-color: var(--ok); }
.notice strong { color: var(--text); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
