* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #050508;
  color: #f8f2d8;
  font-family: "Courier New", Courier, monospace;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(128, 36, 255, 0.18), transparent 42%),
    linear-gradient(245deg, rgba(0, 132, 255, 0.16), transparent 42%),
    repeating-linear-gradient(0deg, rgba(40, 70, 255, 0.18) 0 2px, transparent 2px 38px),
    repeating-linear-gradient(90deg, rgba(170, 28, 255, 0.16) 0 2px, transparent 2px 38px),
    #050508;
}

button,
input,
a {
  font: inherit;
}

button,
.button-link {
  min-height: 44px;
  border: 2px solid #f8d21d;
  border-radius: 4px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #fff13b 0%, #ffb000 56%, #ff5a10 100%);
  color: #160b00;
  box-shadow: 4px 4px 0 #0b63ff, -3px -3px 0 #d82dff;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

button:hover,
.button-link:hover {
  background: #22d7ff;
  border-color: #22d7ff;
  box-shadow: 4px 4px 0 #d82dff, -3px -3px 0 #f8d21d;
}

.home-screen {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.hero-band,
.content-band,
.token-band {
  width: 100%;
  padding: 32px clamp(16px, 5vw, 72px);
}

.hero-band {
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.58fr) minmax(0, 1.42fr);
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  border-bottom: 3px solid #7a2dff;
  background:
    linear-gradient(180deg, rgba(255, 92, 16, 0.08), transparent 32%),
    rgba(0, 0, 0, 0.48);
}

.kicker {
  margin: 0 0 12px;
  color: #f02dff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: #f8b22d;
  font-size: clamp(58px, 14vw, 132px);
  line-height: 0.92;
  text-shadow: 6px 6px 0 #702df8, 10px 10px 0 #050508;
}

.brand-logo {
  display: block;
  width: min(100%, 430px);
  margin: -18px 0 8px;
  filter: drop-shadow(0 0 18px rgba(216, 45, 255, 0.65)) drop-shadow(0 0 18px rgba(0, 120, 255, 0.55));
}

h2 {
  color: #f8b22d;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.05;
}

.tagline {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(18px, 2.3vw, 28px);
  font-weight: 700;
  text-shadow: 3px 3px 0 #000000;
}

.description {
  max-width: 760px;
  color: #f1f1ff;
  font-size: 18px;
  line-height: 1.55;
}

.play-form {
  max-width: 680px;
  margin-top: 28px;
}

.play-form label {
  display: block;
  margin-bottom: 8px;
  color: #f8d21d;
  font-weight: 700;
  text-transform: uppercase;
}

.play-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.play-row input {
  min-width: 0;
  min-height: 48px;
  border: 2px solid #2aa8ff;
  border-radius: 4px;
  padding: 10px 14px;
  background: rgba(5, 5, 8, 0.92);
  color: #ffffff;
  outline: none;
  box-shadow: inset 0 0 0 2px #101046, 0 0 18px rgba(42, 168, 255, 0.22);
}

.play-row input:focus {
  border-color: #f8d21d;
}

.form-error {
  min-height: 22px;
  margin: 8px 0 0;
  color: #ff6c21;
  font-weight: 700;
}

.hero-actions,
.section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.brand-banner-frame {
  justify-self: center;
  width: min(100%, 1120px);
  border: 3px solid #2aa8ff;
  border-radius: 6px;
  padding: 8px;
  background: #020205;
  box-shadow:
    0 0 0 3px #d82dff,
    12px 12px 0 rgba(248, 210, 29, 0.85),
    0 0 38px rgba(216, 45, 255, 0.42);
}

.brand-banner-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  image-rendering: auto;
}

.content-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 28px;
  background:
    linear-gradient(90deg, rgba(216, 45, 255, 0.14), transparent 32%, rgba(42, 168, 255, 0.14)),
    #07070d;
}

.how-to,
.leaderboard-panel,
.token-band {
  border-top: 3px solid #d82dff;
  padding-top: 18px;
}

.how-to ol {
  margin: 0;
  padding-left: 22px;
  color: #ffffff;
  line-height: 1.8;
  font-size: 18px;
}

.leaderboard-panel table {
  width: 100%;
  border-collapse: collapse;
  color: #ffffff;
}

.leaderboard-panel th,
.leaderboard-panel td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 8px;
  text-align: left;
}

.leaderboard-panel th {
  color: #2aa8ff;
  text-transform: uppercase;
}

.token-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(248, 210, 29, 0.1), transparent 40%),
    #050508;
}

.token-band p {
  max-width: 920px;
  color: #d8d8e8;
  line-height: 1.55;
}

.disclaimer {
  color: #ffd84d;
  font-weight: 700;
}

#game-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  background:
    repeating-linear-gradient(0deg, rgba(42, 168, 255, 0.12) 0 2px, transparent 2px 38px),
    repeating-linear-gradient(90deg, rgba(216, 45, 255, 0.12) 0 2px, transparent 2px 38px),
    #050508;
}

#game-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
}

body.is-playing {
  overflow: hidden;
}

body.is-playing .home-screen {
  display: none;
}

body.is-playing #game-wrapper {
  display: flex;
}

canvas {
  width: 980px !important;
  height: auto !important;
  max-width: min(100vw, calc(100vh * 1.5556));
  max-height: 100vh;
  image-rendering: pixelated;
}

@media (max-width: 860px) {
  .hero-band,
  .content-band,
  .token-band {
    grid-template-columns: 1fr;
  }

  .hero-band {
    align-items: start;
    padding-top: 24px;
  }

  .brand-logo {
    width: min(78vw, 280px);
    margin: -8px auto 10px;
  }

  .token-band {
    align-items: start;
  }
}

@media (max-width: 560px) {
  .play-row {
    grid-template-columns: 1fr;
  }

  button,
  .button-link {
    width: 100%;
    text-align: center;
  }

  .leaderboard-panel {
    overflow-x: auto;
  }
}
