/* Vespera Games — site styles */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/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: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/outfit-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/outfit-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;
}

:root {
  color-scheme: dark;
  --bg: #0B2226;
  --bg-2: #0F2D32;
  --chip: #173A3F;
  --line: #23464A;
  --border: #4A6A6C;
  --text: #F3E9D2;
  --text-2: #D9CFB8;
  --muted: #BFB59E;
  --accent: #E8B04B;
  --accent-hover: #F6D58A;
  --star: #F2C14E;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --gutter: 32px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--star); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--bg); font-weight: 600;
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--bg); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.page { position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1 0 auto; }

/* ---------- animations ---------- */
@keyframes tw { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.tw  { animation: tw 4s ease-in-out infinite; }
.tw2 { animation: tw 6s ease-in-out infinite 1.5s; }
@keyframes draw { from { stroke-dashoffset: 640; } to { stroke-dashoffset: 0; } }
.draw { stroke-dasharray: 640; animation: draw 2.6s ease-out forwards; }
@keyframes glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.glow { transform-box: fill-box; transform-origin: center; animation: glow 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.bob { animation: bob 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .tw, .tw2, .draw, .glow, .bob { animation: none; }
  .draw { stroke-dasharray: none; }
}

.sky {
  position: absolute; top: 0; left: 0; width: 100%; height: 900px;
  pointer-events: none;
}
.sky circle { fill: var(--text); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.band { background: var(--bg-2); }

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 28px; padding-top: 28px; padding-bottom: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: .5px; }
.brand-name small { font-size: 10px; letter-spacing: 4px; color: var(--muted); margin-top: 4px; }

.header-right { display: flex; align-items: center; gap: 28px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }
.main-nav a { color: var(--text); text-decoration: none; padding: 6px 0; }
.main-nav a:hover { color: var(--accent-hover); }

.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 1px;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent-hover); }

/* ---------- type ---------- */
.eyebrow { margin: 0; font-size: 13px; letter-spacing: 4px; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4.4vw, 44px); line-height: 1.15; letter-spacing: -.5px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 16px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); font-weight: 400; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-square { border-radius: 14px; min-height: 52px; padding: 0 22px; }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; color: var(--bg); }
.btn-soon { background: transparent; border: 1px dashed var(--border); color: var(--muted); cursor: default; font-weight: 500; }
.btn-soon svg { stroke: var(--muted); }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
  padding-top: 72px; padding-bottom: 120px;
}
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(42px, 6vw, 76px); line-height: 1.05; letter-spacing: -1px;
}
.hero h1 span { font-weight: 600; color: var(--star); }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 460px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 440px; height: auto; overflow: visible; }

/* ---------- games ---------- */
.games { padding-top: 110px; padding-bottom: 110px; display: flex; flex-direction: column; gap: 56px; }
.section-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; }
.sky-count { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }

.game-card {
  scroll-margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 28px; padding: 48px;
}
.game-info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.game-title { display: flex; align-items: center; gap: 18px; }
.game-title > div { display: flex; flex-direction: column; gap: 6px; }
.game-title h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1.1; }
.game-title span { font-size: 14px; color: var(--muted); }
.game-icon { width: 76px; height: 76px; border-radius: 20px; flex: none; }
.game-desc { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text-2); }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--chip); }
.game-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

.game-shots {
  flex: 1 1 380px; min-width: 0; position: relative;
  display: flex; gap: 16px; justify-content: center; padding-bottom: 24px;
}
.phone {
  width: clamp(118px, 36vw, 170px); margin: 0; flex: none;
  border: 6px solid var(--line); border-radius: 26px; overflow: hidden; background: var(--chip);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6);
}
.phone img { width: 100%; aspect-ratio: 1080 / 2254; object-fit: cover; }
.phone + .phone { margin-top: 36px; }
.mascot { position: absolute; left: 2%; bottom: -8px; width: 96px; height: 126px; pointer-events: none; }
.mascot svg { display: block; width: 96px; height: 126px; }

/* ---------- about ---------- */
.about { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 120px; padding-bottom: 120px; }
.about-head { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.about-body { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.about-body p { margin: 0; }
.about-body strong { color: var(--star); font-weight: 600; }

/* ---------- contact + footer ---------- */
.contact { padding-top: 100px; padding-bottom: 80px; }
.contact-main { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.contact-main p { margin: 0; font-size: 18px; color: var(--muted); max-width: 520px; line-height: 1.6; }
.contact-mail {
  font-family: var(--font-display); font-size: clamp(20px, 5vw, 26px); font-weight: 600;
  text-decoration: none; padding: 8px 0; overflow-wrap: anywhere;
}

.site-footer {
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 28px; font-size: 14px; color: var(--muted);
}
.legal-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.legal-nav a { color: var(--muted); }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--text); }
.footer-only { padding-top: 40px; padding-bottom: 48px; }
.footer-joined { padding-top: 0; }

/* ---------- legal / prose pages ---------- */
.doc { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 96px; }
.doc-inner { max-width: 760px; }
.doc-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.doc-head h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; letter-spacing: -.5px; }
.doc-meta { margin: 0; color: var(--muted); font-size: 14px; }
.prose { font-size: 17px; line-height: 1.75; color: var(--text-2); }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.3; color: var(--text); margin: 48px 0 12px; }
.prose h3 { font-size: 17px; font-weight: 600; color: var(--text); margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose .summary {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 24px; margin-bottom: 32px;
}
.prose .summary p:last-child, .prose .summary ul:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-weight: 600; background: var(--bg-2); }
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.table-wrap table { margin: 0; min-width: 520px; }

/* ---------- 404 ---------- */
.not-found { position: relative; z-index: 1; text-align: center; padding-top: 80px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.not-found h1 { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 7vw, 72px); line-height: 1.05; }
.not-found p { margin: 0; color: var(--muted); font-size: 18px; max-width: 480px; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .header-right { gap: 18px; }
  .main-nav { gap: 18px; font-size: 14px; }
  .hero { padding-top: 32px; padding-bottom: 72px; gap: 32px; }
  .hero-art svg { max-width: 300px; }
  .games { padding-top: 72px; padding-bottom: 72px; gap: 36px; }
  .game-card { padding: 24px; gap: 32px; border-radius: 22px; }
  .game-icon { width: 60px; height: 60px; border-radius: 16px; }
  .game-title h3 { font-size: 28px; }
  .about { padding-top: 72px; padding-bottom: 72px; gap: 24px; }
  .contact { padding-top: 72px; padding-bottom: 56px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .header-right { width: 100%; justify-content: space-between; }
  .btn { width: 100%; }
  .actions, .game-actions { flex-direction: column; }
  .mascot { left: -6px; bottom: -14px; transform: scale(.8); transform-origin: bottom left; }
  .phone { border-width: 5px; border-radius: 22px; }
  .phone + .phone { margin-top: 28px; }
  .prose { font-size: 16px; }
}
