/* Layout: a single-column game site on the game's own royal blue; gold for anything you can press. */
:root {
  --night: #071433;      /* page ground */
  --navy: #0d2349;       /* panels */
  --royal: #1f529b;      /* lighter blue, the game's sky */
  --line: rgba(160, 190, 240, .18);
  --text: #f4f7ff;
  --muted: #a9bde3;
  --gold: #ffc93c;
  --gold-deep: #e8961c;
  --ink: #1a1405;        /* text on gold */
  --green: #3ccb6b;
  --display: "Lilita One", "Arial Black", Impact, system-ui, sans-serif;
  --body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--night);
  background-image:
    radial-gradient(1200px 600px at 75% -10%, rgba(47, 128, 237, .35), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(31, 82, 155, .45), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 400 17px/1.6 var(--body);
}
a { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
img { max-width: 100%; height: auto; display: block; }
.wrap {
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(7, 20, 51, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--night); }
.top .wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font: 400 24px/1 var(--display); letter-spacing: .5px; }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.top nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.07); }

/* ---------- Buttons (chunky, like the game's) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 400 22px/1 var(--display); letter-spacing: .5px; text-decoration: none; text-transform: uppercase;
  padding: 18px 28px 20px; border-radius: 18px; border: 0; cursor: pointer;
  color: var(--ink); background: linear-gradient(var(--gold) 55%, var(--gold-deep) 55%);
  box-shadow: 0 6px 0 #b8670c, 0 12px 24px rgba(0,0,0,.35); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #b8670c, 0 6px 12px rgba(0,0,0,.35); }
.btn.blue { color: var(--text); background: linear-gradient(#3e8ef0 55%, #2a6fd0 55%); box-shadow: 0 6px 0 #1a4c97, 0 12px 24px rgba(0,0,0,.35); }
.btn[aria-disabled="true"] { cursor: default; }
.btn small { font: 800 12px/1 var(--body); letter-spacing: 1px; opacity: .8; display: block; }

/* ---------- Hero */
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 72px 56px; }
.eyebrow { font: 800 13px/1 var(--body); letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .5px; text-wrap: balance; margin: 0; }
.hero h1 { font-size: clamp(54px, 9vw, 104px); line-height: .92; margin: 14px 0 18px; text-shadow: 0 6px 0 rgba(0,0,0,.25); }
.hero h1 span { color: var(--gold); display: block; }
.hero p.lede { font-size: 20px; color: var(--muted); max-width: 30em; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.icon-stage { position: relative; display: grid; place-items: center; }
.icon-stage::before { content: ""; position: absolute; width: 100%; aspect-ratio: 1; max-width: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 60, .35), transparent 62%); }
.icon-stage img { position: relative; width: min(380px, 80%); border-radius: 22.4%; transform: rotate(-4deg); box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 6px rgba(255,255,255,.06); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(-2deg) translateY(-8px); } }
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 34px; color: var(--muted); font-weight: 700; font-size: 15px; }
.stats b { display: block; color: var(--text); font: 400 30px/1.1 var(--display); }

/* ---------- Web game slot */
.web { padding-block: 24px 72px; }
.slot {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 28px; overflow: hidden;
  border: 2px solid rgba(255, 201, 60, .45); background: #0a1a3c;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 8px rgba(255,255,255,.03);
}
.slot .board {
  position: absolute; inset: -20%; transform: perspective(900px) rotateX(55deg) translateY(8%);
  background:
    conic-gradient(#d8b48a 25%, #6b3f22 0 50%, #d8b48a 0 75%, #6b3f22 0) 0 0 / 25% 25%;
  filter: blur(3px) saturate(.9); opacity: .55;
}
.slot .shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(7,20,51,.35), rgba(7,20,51,.92) 75%); }
.slot .msg { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 14px; padding: 24px; }
.slot .msg .tag { justify-self: center; font: 800 13px/1 var(--body); letter-spacing: 2.4px; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 8px 14px; border-radius: 999px; }
.slot .msg h2 { font-size: clamp(34px, 6.4vw, 76px); line-height: .95; text-shadow: 0 6px 0 rgba(0,0,0,.35); }
.slot .msg h2 span { color: var(--gold); }
.slot .msg p { margin: 0 auto; max-width: 34em; color: var(--muted); }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 8px; box-shadow: 0 0 0 0 rgba(60,203,107,.6); animation: pulse 2s infinite; vertical-align: 1px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(60,203,107,0); } 100% { box-shadow: 0 0 0 0 rgba(60,203,107,0); } }

/* ---------- Features */
section h2.sec { font-size: clamp(34px, 5vw, 52px); margin-bottom: 10px; }
section p.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.features { padding-block: 24px 72px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-block: 28px; }
.feature:nth-of-type(even) .pic { order: 2; }
.feature .pic img { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.feature h3 { font-size: 34px; margin: 6px 0 10px; }
.feature p { color: var(--muted); margin: 0 0 12px; }
.feature ul { margin: 0; padding-left: 20px; color: var(--text); }
.feature li { margin: 4px 0; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.card { background: var(--navy); border: 1px solid var(--line); border-radius: 20px; padding: 24px; min-width: 0; }
.card h3 { font-size: 24px; margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .k { font: 400 40px/1 var(--display); color: var(--gold); margin-bottom: 8px; }

/* ---------- Support */
.support { padding-block: 24px 80px; }
.support .grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.mail { display: flex; flex-direction: column; gap: 14px; background: var(--navy); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.mail .addr { font: 400 26px/1.2 var(--display); color: var(--text); user-select: all; word-break: break-all; }
.mail .row { display: flex; gap: 12px; flex-wrap: wrap; }
.copy { font: 800 15px/1 var(--body); color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--line); padding: 12px 16px; border-radius: 12px; cursor: pointer; }
details { background: var(--navy); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font: 400 24px/1 var(--display); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 0 0 16px; }

/* ---------- Legal pages */
.legal { padding-block: 56px 80px; }
.legal .doc { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); margin: 10px 0 6px; }
.legal .meta { color: var(--muted); margin: 0 0 32px; font-weight: 700; }
.legal h2 { font-size: 26px; margin: 40px 0 10px; color: var(--gold); }
.legal p, .legal li { color: #dbe5fb; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .note { background: var(--navy); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 16px 18px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: var(--gold); font-weight: 800; }
tr:last-child td { border-bottom: 0; }

/* ---------- Footer */
footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero .wrap, .feature, .support .grid { grid-template-columns: 1fr; }
  .hero .wrap { padding-block: 40px 32px; gap: 28px; }
  .icon-stage { order: -1; }
  .icon-stage img { width: min(240px, 60%); }
  .feature:nth-of-type(even) .pic { order: 0; }
  .trio { grid-template-columns: 1fr; }
  .top nav { margin-left: 0; width: 100%; gap: 0; }
  .top nav a { padding: 6px 9px; font-size: 14px; }
  .brand { font-size: 20px; }
  .brand img { width: 36px; height: 36px; }
}
