:root {
  --navy: #081026;
  --navy-2: #0f1d44;
  --card: #13245a;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f7ff;
  --muted: #b9c6e8;
  --cyan: #19d3ff;
  --orange: #ff8a1f;
  --gold: #ffcf3f;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #1b3a8f 0%, transparent 60%), var(--navy);
  color: var(--text);
  font: 17px/1.6 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
a { color: var(--cyan); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 16, 38, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.top .brand img { height: 38px; width: auto; }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; margin: 0 0 16px; font-weight: 900; letter-spacing: -0.01em; }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 19px; }
.accent { background: linear-gradient(90deg, var(--cyan), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }

section { padding: 40px 0; }
h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 20px; font-weight: 800; }

/* Game cards */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.game-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center;
  background: linear-gradient(180deg, var(--card), var(--navy-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  text-decoration: none; color: inherit; transition: transform .15s ease, border-color .15s ease;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.game-card img { width: 120px; height: 120px; border-radius: 26px; }
.game-card h3 { margin: 0 0 6px; font-size: 22px; }
.game-card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255, 207, 63, 0.15); color: var(--gold); }
.game-card.soon { opacity: .6; pointer-events: none; }
.game-card.soon .icon-ph { width: 120px; height: 120px; border-radius: 26px; background: var(--navy-2); border: 1px dashed var(--line); display: grid; place-items: center; font-size: 40px; color: var(--muted); }

/* Game page */
.game-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 48px 0 24px; }
.game-hero .art { border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); width: 100%; max-width: 380px; justify-self: center; }
.game-hero h1 { font-size: clamp(34px, 5.5vw, 56px); line-height: 1.05; margin: 0 0 14px; font-weight: 900; }
.game-hero p { color: var(--muted); font-size: 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 12px;
  background: #000; border: 1px solid #555; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
}
.badge small { display: block; font-size: 11px; font-weight: 500; color: #ccc; line-height: 1.1; }
.badge.disabled { opacity: .55; cursor: default; }
.note { color: var(--muted); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.shots img { border-radius: 22px; border: 1px solid var(--line); scroll-snap-align: start; }

/* Documents (privacy, terms) */
.doc { max-width: 780px; margin: 0 auto; padding: 48px 0 24px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc p, .doc li { color: #dfe6fb; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--navy-2); }
.doc .meta { color: var(--muted); }

/* Support form */
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 48px 0 24px; }
form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
label { font-weight: 700; font-size: 14px; display: grid; gap: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--navy);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
button {
  font: inherit; font-weight: 800; font-size: 17px; border: 0; border-radius: 999px; padding: 14px 22px; cursor: pointer;
  color: #fff; background: linear-gradient(180deg, #ff9a35, #e86a00); box-shadow: 0 8px 24px rgba(255, 138, 31, .35);
}
button[disabled] { opacity: .6; cursor: progress; }
.status { font-weight: 700; min-height: 1.4em; margin: 0; }
.status.ok { color: #5df0a0; }
.status.err { color: #ff8d8d; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }

footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); }

@media (max-width: 760px) {
  .top .brand img { height: 30px; }
  .top nav { gap: 14px; }
  .game-hero, .support { grid-template-columns: 1fr; }
  .game-hero .art { max-width: 300px; order: -1; }
  .game-card { grid-template-columns: 88px 1fr; }
  .game-card img, .game-card.soon .icon-ph { width: 88px; height: 88px; border-radius: 20px; }
}
