/* SesVi Games — site stylesheet. Light theme only. No framework, no third-party requests. */

/* ---------- Fonts (self-hosted, SIL OFL 1.1: see /fonts/*-OFL.txt) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Silkscreen";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/silkscreen-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Silkscreen";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/silkscreen-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Silkscreen";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/silkscreen-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Silkscreen";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/silkscreen-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens (brand standard v4, light theme) ---------- */
:root {
  color-scheme: light;
  --ink: #0A0E27;
  --muted: #5A6185;
  --line: #E3E7F3;
  --paper: #FFFFFF;
  --accent: #5B4BF0;
  --gold: #E09A00;
  --pink: #DD2A7E;
  --sky: #0093D1;
  --teal: #00A9BD;
  --orange: #EE7200;
  --game-blue: #2F4FD6;
  --game-navy: #1B2559;
  --game-shadow: #142057;
  --game-cream: #FFE590;
  --game-text: #EAF1FF;
  --game-caption: #C9D6FF;
  --game-purple: #8A4BFF;
  --game-green: #3DDC84;
  --game-yellow: #FFC93D;
  --card-dark: #0A0E27;
  --card-text: #F5F7FF;
  --card-muted: #AEB5D9;
  --yellow: #FFD23F;
  --pixel-font: "Silkscreen", ui-monospace, monospace;
  --gutter: 32px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--paper); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .brand { display: block; }
.site-header .brand img { display: block; height: 44px; width: auto; }

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}
.main-nav a { display: inline-block; padding: 6px 0; }
.main-nav a[aria-current="page"] { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: var(--paper); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); font-weight: 600; }
.btn-outline:hover { border-color: var(--accent); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--paper); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px var(--gutter) 88px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.hero-text {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pixel-row { display: flex; gap: 6px; }
.pixel-row span { width: 14px; height: 14px; }
.px-gold { background: var(--gold); }
.px-pink { background: var(--pink); }
.px-violet { background: var(--accent); }
.px-sky { background: var(--sky); }
.px-teal { background: var(--teal); }

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw + 12px, 68px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-lead {
  margin: 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}
.hero-art { flex: 1 1 360px; display: flex; justify-content: center; }
.hero-art img { display: block; width: 100%; max-width: 440px; height: auto; }

/* ---------- Games (Pixelimum) ---------- */
.games {
  background: var(--game-blue);
  color: #FFFFFF;
  overflow: hidden;
  border-top: 6px solid var(--game-navy);
  border-bottom: 6px solid var(--game-navy);
}
.games :focus-visible { outline-color: var(--yellow); }
.games-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.games-text {
  flex: 999 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--game-cream);
}
.game-title {
  margin: 0;
  font-family: var(--pixel-font);
  font-size: clamp(36px, 5vw + 16px, 64px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  text-shadow: 5px 5px 0 var(--game-navy);
}
.game-tagline {
  margin: 0;
  font-family: var(--pixel-font);
  font-size: 20px;
  color: var(--game-cream);
  text-shadow: 3px 3px 0 var(--game-navy);
}
.game-lead {
  margin: 0;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--game-text);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  border: 3px solid var(--game-navy);
  box-shadow: 0 4px 0 var(--game-navy);
}
.chip-white { color: var(--game-navy); background: #FFFFFF; }
.chip-purple { color: #FFFFFF; background: var(--game-purple); }
.chip-green { color: var(--game-navy); background: var(--game-green); }

.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 12px 0 0; }
.badge-soon {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  font-family: var(--pixel-font);
  font-size: 18px;
  color: var(--game-navy);
  background: var(--game-yellow);
  border: 3px solid var(--game-navy);
  box-shadow: 0 6px 0 var(--game-navy);
}
.store-note { font-size: 15px; font-weight: 600; color: var(--game-text); }

/* Phone frames with a designed "Screens coming soon" placeholder */
.phones-col {
  flex: 1 1 480px;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.phones {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 520 / 560;
}
.phone {
  position: absolute;
  overflow: hidden;
  background: var(--game-navy);
  container-type: inline-size;
}
.phone-left,
.phone-right {
  top: 12.5%;
  width: 40%;
  border: 7px solid var(--game-navy);
  border-radius: 30px;
  box-shadow: 0 10px 0 var(--game-shadow);
}
.phone-left { left: 0; transform: rotate(-8deg); }
.phone-right { right: 0; transform: rotate(8deg); }
.phone-center {
  left: 28%;
  top: 0;
  width: 44%;
  z-index: 2;
  border: 8px solid var(--game-navy);
  border-radius: 34px;
  box-shadow: 0 12px 0 var(--game-shadow);
}
.screen {
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10cqi;
  padding: 12cqi 8cqi;
  border-radius: 22px;
  background-color: #F4F6FF;
  background-image:
    linear-gradient(rgba(27, 37, 89, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 37, 89, 0.07) 1px, transparent 1px);
  background-size: 10cqi 10cqi;
  text-align: center;
}
.phone-center .screen { border-radius: 26px; }
.shrink {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4cqi;
}
.shrink span { display: block; box-shadow: 1.5cqi 1.5cqi 0 var(--game-navy); }
.shrink span:nth-child(1) { width: 20cqi; height: 20cqi; background: var(--gold); }
.shrink span:nth-child(2) { width: 14cqi; height: 14cqi; background: var(--pink); }
.shrink span:nth-child(3) { width: 10cqi; height: 10cqi; background: var(--accent); }
.shrink span:nth-child(4) { width: 7cqi; height: 7cqi; background: var(--sky); }
.shrink span:nth-child(5) { width: 5cqi; height: 5cqi; background: var(--teal); }
.screen-text {
  margin: 0;
  font-family: var(--pixel-font);
  font-size: 11cqi;
  line-height: 1.15;
  color: var(--game-navy);
}
.screen-text span { display: block; font-size: 8cqi; color: var(--muted); margin-top: 3cqi; }
/* Side phones sit partly behind the centre one: keep their content on the visible outer side. */
.phone-left .screen { align-items: flex-start; text-align: left; padding-left: 9cqi; }
.phone-right .screen { align-items: flex-end; text-align: right; padding-right: 9cqi; }
.phone-left .screen-text,
.phone-right .screen-text { max-width: 56cqi; font-size: 7.5cqi; }
.phone-left .shrink { scale: 0.8; transform-origin: left center; }
.phone-right .shrink { scale: 0.8; transform-origin: right center; }
.phones-caption { font-size: 13px; color: var(--game-caption); text-align: center; }

/* ---------- About ---------- */
.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.about-head { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; }
.about h2 { margin: 0; font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.name-scale { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 0; font-size: 24px; }
.name-scale .ses { font-weight: 300; }
.name-scale .vi { font-weight: 700; }
.name-scale small { font-size: 14px; color: var(--muted); }
.name-scale sup { font-size: 0.75em; line-height: 0; }
.name-scale .arrow { color: var(--orange); }
.about-body {
  flex: 999 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}
.about-body p { margin: 0; }

/* ---------- Support card ---------- */
.support-band { max-width: 1200px; margin: 0 auto 96px; padding: 0 var(--gutter); }
.support-card {
  background: var(--card-dark);
  color: var(--card-text);
  border-radius: 28px;
  padding: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.support-card :focus-visible { outline-color: var(--yellow); }
.support-card-text { display: flex; flex-direction: column; gap: 12px; }
.support-card h2 { margin: 0; font-size: 36px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.support-card p { margin: 0; font-size: 17px; color: var(--card-muted); }
.support-card .btn { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; font-size: 14px; color: var(--muted); }
.footer-brand img { display: block; height: 36px; width: auto; }
.footer-brand p { margin: 0; }
.footer-brand a { color: var(--ink); font-weight: 600; }
.footer-brand a:hover { color: var(--accent); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 15px; }
.footer-col h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer-col a[aria-current="page"] { color: var(--accent); }

/* ---------- Text pages (legal, support, 404) ---------- */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px var(--gutter) 96px;
}
.doc { max-width: 760px; }
.doc > .pixel-row { margin-bottom: 24px; }
.doc h1 {
  margin: 0;
  font-size: clamp(36px, 4vw + 16px, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.doc .updated { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.doc .intro { margin: 24px 0 0; font-size: 19px; line-height: 1.6; color: var(--muted); }
.doc h2 {
  margin: 56px 0 0;
  padding-top: 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  scroll-margin-top: 16px;
}
.doc h3 { margin: 32px 0 0; font-size: 19px; line-height: 1.3; font-weight: 700; }
.doc p,
.doc li,
.doc dd { font-size: 17px; line-height: 1.7; color: #343A5C; }
.doc p { margin: 14px 0 0; }
.doc ul,
.doc ol { margin: 14px 0 0; padding-left: 24px; }
.doc li { margin-top: 8px; }
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--ink); }
.doc a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.doc a:not(.btn):hover { color: var(--ink); }
.doc dl { margin: 14px 0 0; }
.doc dt { margin-top: 18px; font-weight: 700; font-size: 17px; }
.doc dd { margin: 4px 0 0; }

.toc {
  margin: 32px 0 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #F7F8FC;
}
.toc h2 { margin: 0; padding: 0; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.toc ol { columns: 2 240px; column-gap: 32px; margin: 12px 0 0; }
.toc li { margin-top: 6px; font-size: 15px; break-inside: avoid; }

.summary {
  margin: 32px 0 0;
  padding: 28px;
  border-radius: 20px;
  background: #F7F8FC;
  border-left: 6px solid var(--accent);
}
.summary h2 { margin: 0; padding: 0; font-size: 20px; }
.summary ul { margin-top: 8px; }

.callout {
  margin: 24px 0 0;
  padding: 20px 24px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  background: #FFFFFF;
}
.callout p:first-child { margin-top: 0; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-top: 16px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--pixel-font);
  font-size: 14px;
}

.doc .btn-row { margin-top: 24px; }

.notfound { padding-top: 56px; }
.notfound .code {
  margin: 0;
  font-family: var(--pixel-font);
  font-size: clamp(64px, 12vw, 120px);
  line-height: 1;
  color: var(--game-blue);
  text-shadow: 6px 6px 0 var(--game-navy);
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .site-header .brand img { height: 38px; }
  .main-nav ul { gap: 24px; }
  .hero { padding-top: 32px; padding-bottom: 64px; gap: 40px; }
  .hero-lead { font-size: 18px; }
  .games-inner { padding-top: 64px; padding-bottom: 64px; }
  .about { padding-top: 72px; padding-bottom: 72px; }
  .about h2 { font-size: 32px; }
  .support-band { margin-bottom: 72px; }
  .support-card { padding: 36px 24px; border-radius: 22px; }
  .support-card h2 { font-size: 30px; }
  .support-card .btn { padding: 0 20px; }
  .footer-cols { gap: 40px; }
  .doc h2 { margin-top: 44px; font-size: 24px; }
  .screen { border-radius: 16px; }
  .phone-left,
  .phone-right { border-width: 5px; border-radius: 22px; }
  .phone-center { border-width: 6px; border-radius: 26px; }
  .phone-center .screen { border-radius: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
