/* Glint Games — glint.gs. One stylesheet for every page; no external requests (the font is served from here). */
@font-face {
  font-family: "Glint Display";
  src: url("/assets/fonts/GlintDisplay.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --night-950: #070920;
  --night-900: #0b0f2e;
  --night-800: #111640;
  --night-700: #181e55;
  --night-600: #232b78;
  --ink: #f7f4ea;
  --soft: #d5d9f2;
  --muted: #a4abd3;
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.045);
  --gold: #ffc533;
  --gold-hi: #ffe38f;
  --gold-lo: #ff9d1e;
  --sea: #8fbcff;
  --display: "Glint Display", "Baloo 2", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.65 var(--text);
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(57, 72, 190, 0.55), transparent 62%),
    radial-gradient(760px 560px at 96% 4%, rgba(255, 173, 51, 0.13), transparent 60%),
    linear-gradient(180deg, var(--night-900), var(--night-950) 70%);
  background-color: var(--night-950);
  background-attachment: fixed;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: #c4dcff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--gold); color: #1a1300; padding: 8px 14px; border-radius: 10px; z-index: 20; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--card); color: var(--ink); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: 0.2px; }
h1 { font-size: clamp(42px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 23px; line-height: 1.2; }
.gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pearl { background: linear-gradient(100deg, #dadffb, #f8f0e3 28%, #fdf5d9 42%, #e0fae8 66%, #c5dafe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--soft); max-width: 34em; margin: 20px 0 0; }
.eyebrow { font-family: var(--display); font-size: 15px; letter-spacing: 3.4px; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 19px; text-decoration: none; padding: 13px 24px 12px; border-radius: 999px; border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: #221600; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo)); box-shadow: 0 10px 28px rgba(255, 171, 43, 0.28), inset 0 -3px 0 rgba(140, 70, 0, 0.25); }
.btn.primary:hover { color: #221600; box-shadow: 0 14px 34px rgba(255, 171, 43, 0.38), inset 0 -3px 0 rgba(140, 70, 0, 0.25); }
.btn.ghost { color: var(--ink); border-color: var(--line); background: var(--card); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.09); color: var(--ink); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 40px; padding: 44px 0 84px; position: relative; }
.hero-art { position: relative; height: 560px; }
.phone { position: absolute; width: 250px; aspect-ratio: 390 / 844; border-radius: 34px; overflow: hidden; background: #000; border: 7px solid #05071a; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 34px 70px rgba(0, 0, 0, 0.55); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .p1 { left: 6%; top: 34px; transform: rotate(-6deg); }
.hero-art .p2 { right: 4%; top: 0; transform: rotate(5deg); z-index: 2; }
.halo { position: absolute; inset: 8% 4% 4% 4%; background: radial-gradient(closest-side, rgba(255, 197, 51, 0.24), transparent 72%); filter: blur(6px); }
.spark { position: absolute; width: 34px; height: 34px; animation: twinkle 3.6s ease-in-out infinite; }
.spark.s1 { left: -2%; top: 8%; width: 46px; height: 46px; }
.spark.s2 { right: -1%; bottom: 18%; animation-delay: 1.2s; }
.spark.s3 { left: 44%; bottom: 2%; width: 22px; height: 22px; animation-delay: 2.1s; }
@keyframes twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.82) rotate(0deg); } 50% { opacity: 1; transform: scale(1.08) rotate(8deg); } }

/* ---------- sections ---------- */
section { padding: 76px 0; }
.sect-head { max-width: 40em; margin-bottom: 36px; }
.sect-head p { color: var(--soft); margin: 14px 0 0; }

.game { border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(160deg, rgba(47, 58, 160, 0.42), rgba(16, 21, 64, 0.5) 58%), var(--card); padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; overflow: hidden; }
.game-id { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.game-id img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4); }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.4px; color: #221600; background: var(--gold); padding: 4px 12px; border-radius: 999px; }
.chip.soft { color: var(--soft); background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; background: url("/assets/spark.svg") center / contain no-repeat; }
.shots { display: flex; gap: 18px; justify-content: center; }
.shots .phone { position: relative; width: 31%; max-width: 210px; border-radius: 26px; border-width: 5px; }
.shots .phone:nth-child(2) { margin-top: 34px; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); background: var(--card); border-radius: 24px; padding: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--soft); }
.card .num { font-family: var(--display); font-size: 15px; letter-spacing: 2px; color: var(--gold); margin-bottom: 12px; display: block; }

.support { text-align: center; border: 1px solid var(--line); border-radius: 32px; padding: 56px 24px; background: radial-gradient(600px 260px at 50% 0%, rgba(255, 197, 51, 0.16), transparent 70%), var(--card); }
.support p { color: var(--soft); max-width: 34em; margin: 16px auto 0; }
.mail { display: inline-block; margin-top: 26px; font-family: var(--display); font-size: clamp(24px, 4vw, 38px); color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--gold); padding-bottom: 2px; }
.mail:hover { color: var(--gold-hi); }

/* ---------- game page ---------- */
.g-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; padding: 36px 0 70px; }
.g-hero .shots { justify-content: flex-end; }
.g-hero .shots .phone { width: 46%; max-width: 250px; }
.g-title { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.g-title img { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.cities { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cities li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 16px; color: var(--soft); font-weight: 600; font-size: 15.5px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; border: 1px solid var(--line); background: var(--card); border-radius: 24px; padding: 26px; color: var(--soft); }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 30px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #221600; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); margin-bottom: 16px; }
.steps strong { display: block; font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }

/* ---------- documents (privacy) ---------- */
.doc { max-width: 780px; padding: 20px 0 80px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--soft); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.doc .date { color: var(--muted); font-size: 15px; margin-top: 12px; }
.note { border: 1px solid rgba(255, 197, 51, 0.4); background: rgba(255, 197, 51, 0.09); border-radius: 20px; padding: 20px 22px; margin: 28px 0 0; }
.note p { margin: 0; color: var(--ink); }
.langs { display: flex; gap: 8px; margin: 26px 0 0; flex-wrap: wrap; }
.langs a { text-decoration: none; font-weight: 700; font-size: 14.5px; color: var(--soft); border: 1px solid var(--line); background: var(--card); padding: 6px 14px; border-radius: 999px; }
.langs a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.09); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 60px 0 0; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 34px 0 46px; color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot img { height: 40px; width: auto; opacity: 0.92; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero, .game, .g-hero { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 20px 0 40px; gap: 26px; }
  .hero-art { height: 470px; max-width: 460px; width: 100%; margin: 0 auto; }
  .phone { width: 208px; border-radius: 30px; }
  .game { padding: 28px 22px; gap: 30px; border-radius: 26px; }
  .grid3, .steps { grid-template-columns: minmax(0, 1fr); }
  .g-hero .shots { justify-content: center; }
  section { padding: 54px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .top { padding: 16px 0; }
  .brand img { height: 46px; }
  .nav a { padding: 7px 10px; font-size: 14.5px; }
  .hero-art { height: 400px; }
  .phone { width: 172px; border-radius: 26px; border-width: 5px; }
  .hero-art .p1 { left: 0; }
  .hero-art .p2 { right: 0; }
  .btn { font-size: 17.5px; padding: 12px 20px 11px; }
  .support { padding: 40px 18px; border-radius: 26px; }
  .g-title img { width: 84px; height: 84px; border-radius: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spark { animation: none; opacity: 0.8; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
