:root {
  color-scheme: dark;
  --bg: #030816;
  --bg-2: #07122a;
  --panel: rgba(8, 19, 44, 0.86);
  --panel-strong: rgba(10, 25, 56, 0.96);
  --line: rgba(102, 210, 255, 0.24);
  --text: #f4f8ff;
  --muted: #b5c5d8;
  --blue: #23c7ff;
  --blue-2: #126bff;
  --gold: #ffd76a;
  --gold-2: #c88323;
  --good: #5cf3c6;
  --warn: #ffcf6a;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(35, 199, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(255, 215, 106, 0.14), transparent 24rem),
    linear-gradient(180deg, var(--bg) 0%, #050b1e 44%, #02050e 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(35, 199, 255, 0.55) 0 1px, transparent 1.4px);
  background-position: 0 0, 42px 58px;
  background-size: 120px 120px, 180px 180px;
  opacity: 0.28;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 41%, rgba(35, 199, 255, 0.2) 41.2%, transparent 42.4%),
    linear-gradient(62deg, transparent 0 69%, rgba(255, 215, 106, 0.12) 69.2%, transparent 70.2%);
  opacity: 0.7;
}

img,
canvas {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
  padding: 0.55rem clamp(1rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 8, 22, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 154px;
  text-decoration: none;
  overflow: visible;
}

.brand img {
  display: block;
  width: min(180px, 34vw);
  height: 70px;
  object-fit: contain;
  object-position: center;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a,
.footer-links a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 760;
  padding: 0.45rem 0.68rem;
  text-decoration: none;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--text);
  background: rgba(35, 199, 255, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
  width: min(1180px, calc(100% - 2rem));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem) 0 2rem;
}

.hero-copy {
  min-width: 0;
}

.hero-logo {
  width: min(430px, 100%);
  height: auto;
  max-height: 430px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 1rem;
  opacity: 0.96;
  filter: drop-shadow(0 0 24px rgba(35, 199, 255, 0.35));
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 860;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5.4rem);
  line-height: 0.95;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.08;
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  line-height: 1.22;
}

p {
  margin: 0;
}

.lead {
  max-width: 64ch;
  margin: 1rem 0 1.25rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.button,
button.button {
  min-height: 44px;
  border: 1px solid rgba(255, 215, 106, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe28b, #d59527);
  color: #1d1303;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1rem;
  font-weight: 860;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(216, 149, 39, 0.22);
}

.button.secondary,
button.button.secondary {
  border-color: rgba(35, 199, 255, 0.46);
  background: rgba(9, 24, 56, 0.82);
  color: var(--text);
  box-shadow: none;
}

.button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.4);
  opacity: 0.6;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.quick-facts div,
.content-card,
.feature-card,
.notice,
.game-panel,
.faq-item,
.review-box,
.form-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.quick-facts div {
  padding: 0.85rem;
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts span {
  color: var(--muted);
  font-size: 0.9rem;
}

.game-panel {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 25, 56, 0.96), rgba(4, 10, 26, 0.98)),
    url("assets/coin-strike-hero.jpg") center / cover;
}

.game-top {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.score-grid div {
  min-width: 0;
  padding: 0.6rem;
  border: 1px solid rgba(102, 210, 255, 0.22);
  border-radius: 8px;
  background: rgba(1, 8, 25, 0.72);
  text-align: center;
}

.score-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.score-grid strong {
  display: block;
  margin-top: 0.08rem;
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
}

.canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 300px;
  max-height: min(68vh, 620px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #030816;
  touch-action: none;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.game-message {
  position: absolute;
  inset: auto 1rem 1rem;
  display: none;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 215, 106, 0.45);
  border-radius: 8px;
  background: rgba(2, 7, 20, 0.86);
  color: var(--text);
}

.game-message.is-visible {
  display: block;
}

.game-message strong,
.game-message span {
  display: block;
}

.game-message span {
  color: var(--muted);
}

.game-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem;
}

.control-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.touch-controls {
  display: flex;
  gap: 0.55rem;
}

.touch-controls button,
.icon-button {
  width: 46px;
  min-width: 46px;
  height: 46px;
  border: 1px solid rgba(35, 199, 255, 0.34);
  border-radius: 8px;
  background: rgba(7, 20, 48, 0.86);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
}

.notice {
  margin: 1rem;
  padding: 0.9rem 1rem;
  border-color: rgba(255, 215, 106, 0.42);
  background: rgba(67, 45, 5, 0.42);
  color: #fff2bf;
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 4.8rem) 0;
}

.section.narrow {
  width: min(880px, calc(100% - 2rem));
}

.section-kicker {
  margin-bottom: 0.4rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 840;
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.content-card,
.feature-card,
.review-box,
.form-shell {
  padding: 1.1rem;
}

.content-card p,
.feature-card p,
.review-box p,
.faq-item p,
.legal-content p,
.legal-content li {
  color: var(--muted);
}

.feature-card strong {
  color: var(--gold);
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 19, 44, 0.7);
}

.steps li::before {
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #1d1303;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  padding: 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 820;
}

.faq-item p {
  margin-top: 0.65rem;
}

.page-hero {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.8rem, 8vw, 5.8rem) 0 clamp(1.6rem, 4vw, 2.6rem);
}

.page-hero h1 {
  max-width: 14ch;
}

.legal-content {
  display: grid;
  gap: 1rem;
}

.legal-content ul {
  margin: 0;
  padding-left: 1.2rem;
}

.form-shell {
  display: grid;
  gap: 0.85rem;
}

.form-shell label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.form-shell input,
.form-shell textarea {
  width: 100%;
  border: 1px solid rgba(102, 210, 255, 0.28);
  border-radius: 8px;
  background: rgba(2, 7, 20, 0.8);
  color: var(--text);
  padding: 0.72rem 0.8rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 7, 20, 0.92);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0;
}

.footer-brand {
  display: grid;
  gap: 0.25rem;
}

.footer-brand strong {
  color: var(--gold);
}

.footer-brand span {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

@media (max-width: 900px) {
  .site-header,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav,
  .footer-links {
    justify-content: flex-start;
  }

  .hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    position: relative;
  }

  .brand img {
    width: min(150px, 44vw);
    height: 60px;
    object-fit: contain;
  }

  .main-nav a,
  .footer-links a {
    padding: 0.42rem 0.5rem;
  }

  .hero,
  .section,
  .page-hero,
  .section.narrow {
    width: min(100% - 1rem, 1120px);
  }

  .quick-facts,
  .grid,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .canvas-wrap {
    min-height: 260px;
    aspect-ratio: 10 / 13;
  }

  .game-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .control-buttons,
  .touch-controls {
    width: 100%;
  }

  .control-buttons .button {
    flex: 1 1 auto;
  }

  .touch-controls button {
    flex: 1 1 0;
  }
}
