:root {
  --ink: #172033;
  --panel: rgba(255, 255, 255, 0.88);
  --pink: #ff3fa4;
  --blue: #1d7cff;
  --green: #27ffbf;
  --yellow: #ffd447;
  --orange: #ff7a2f;
  --line: rgba(23, 32, 51, 0.15);
  --shadow: 0 18px 48px rgba(23, 32, 51, 0.18);
  font-family: Inter, ui-rounded, "Trebuchet MS", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 212, 71, 0.55), transparent 18rem),
    radial-gradient(circle at 88% 18%, rgba(255, 63, 164, 0.34), transparent 16rem),
    linear-gradient(135deg, #72dbff 0%, #9cff91 48%, #ffe06a 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  font: inherit;
}

.portal-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 1000;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(23, 32, 51, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 32% 36%, var(--pink) 0 24%, transparent 25%),
    radial-gradient(circle at 64% 62%, var(--green) 0 27%, transparent 28%),
    var(--ink);
  box-shadow: inset 0 -5px 0 rgba(255, 255, 255, 0.18);
}

nav a {
  border: 2px solid rgba(23, 32, 51, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.account-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(23, 32, 51, 0.12);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.1);
}

.account-panel span {
  max-width: 220px;
  font-size: 0.82rem;
  font-weight: 900;
}

.auth-button {
  min-height: 38px;
  border: 2px solid rgba(23, 32, 51, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 1000;
}

.auth-button.disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.hidden {
  display: none !important;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
  min-height: calc(100vh - 116px);
  padding: 30px 0 48px;
}

.eyebrow,
.status {
  margin: 0 0 8px;
  color: #004e9c;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 9vw, 7rem);
  line-height: 0.9;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(23, 32, 51, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 1000;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.primary-link {
  background: linear-gradient(135deg, var(--yellow), var(--orange) 48%, var(--pink));
  box-shadow: 0 10px 0 #b83a63, 0 18px 34px rgba(184, 58, 99, 0.28);
}

.secondary-link {
  border: 2px solid rgba(23, 32, 51, 0.14);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.12);
}

.secondary-link:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.primary-link:hover,
.secondary-link:hover,
nav a:hover {
  transform: translateY(-2px);
}

.hero-scene {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(transparent 70%, rgba(77, 172, 70, 0.28) 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 18px, transparent 18px 36px),
    linear-gradient(160deg, #62d8ff, #ffe35f);
  box-shadow: var(--shadow);
}

.portal-splat,
.portal-target,
.portal-gun {
  position: absolute;
  display: block;
}

.portal-splat {
  border-radius: 42% 58% 53% 47%;
  opacity: 0.82;
}

.splat-one {
  left: 9%;
  top: 18%;
  width: 130px;
  height: 130px;
  background: var(--pink);
  transform: rotate(19deg);
}

.splat-two {
  right: 15%;
  bottom: 20%;
  width: 150px;
  height: 150px;
  background: var(--green);
  transform: rotate(-12deg);
}

.portal-target {
  border: 8px solid #ff3f3f;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 10px var(--yellow), inset 0 0 0 23px var(--blue);
  animation: bob 1.8s ease-in-out infinite;
}

.target-one {
  left: 34%;
  top: 24%;
  width: 82px;
  height: 82px;
}

.target-two {
  right: 12%;
  top: 13%;
  width: 58px;
  height: 58px;
  animation-duration: 1.1s;
}

.portal-gun {
  left: 50%;
  bottom: 26px;
  width: 170px;
  height: 48px;
  border-radius: 24px 8px 8px 24px;
  background: linear-gradient(90deg, #26364f 0 34%, var(--pink) 34% 64%, var(--yellow) 64%);
  transform: translateX(-50%);
}

.portal-gun::after {
  position: absolute;
  right: -64px;
  top: 15px;
  width: 80px;
  height: 16px;
  border-radius: 8px;
  background: var(--ink);
  content: "";
}

.games-section {
  padding: 16px 0 42px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

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

.game-card {
  display: grid;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.game-card.featured {
  grid-column: span 1;
}

.game-art {
  min-height: 190px;
  position: relative;
  background: linear-gradient(135deg, #1d7cff, #27ffbf);
}

.paintball-art span {
  position: absolute;
  border-radius: 50%;
}

.paintball-art span:nth-child(1) {
  left: 18%;
  top: 18%;
  width: 88px;
  height: 88px;
  background: var(--pink);
}

.paintball-art span:nth-child(2) {
  right: 16%;
  top: 30%;
  width: 104px;
  height: 104px;
  background: var(--yellow);
}

.paintball-art span:nth-child(3) {
  left: 38%;
  bottom: 12%;
  width: 72px;
  height: 72px;
  background: #fff;
  box-shadow: inset 0 0 0 12px var(--blue);
}

.maze-art {
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 24% 68%, rgba(255, 255, 255, 0.8) 0 2px, transparent 3px),
    linear-gradient(135deg, #172033, #4a3387 54%, #176d8b);
}

.maze-art span {
  position: absolute;
  display: block;
}

.maze-planet {
  right: 22px;
  bottom: -22px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: linear-gradient(135deg, #69d7ff, #63f2c6);
  box-shadow: inset -18px -18px 0 rgba(23, 32, 51, 0.22);
}

.maze-path {
  left: 24px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 18px, #ffcf4a 18px 32px, transparent 32px 48px),
    linear-gradient(#ffcf4a, #ffcf4a);
}

.path-a {
  top: 42px;
  width: 210px;
  height: 20px;
}

.path-b {
  top: 92px;
  width: 170px;
  height: 20px;
  transform: rotate(90deg);
  transform-origin: 22px 10px;
}

.maze-guy {
  left: 82px;
  bottom: 46px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 7px var(--ink);
}

.maze-guy::before,
.maze-guy::after {
  position: absolute;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.maze-guy::before {
  left: 8px;
}

.maze-guy::after {
  right: 8px;
}

.placeholder-art {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0 18px, transparent 18px 36px),
    linear-gradient(135deg, #ff7a2f, #ffd447);
}

.placeholder-art.alt {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0 18px, transparent 18px 36px),
    linear-gradient(135deg, #ff3fa4, #7c32ff);
}

.game-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.game-card h3 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.game-card p:not(.status) {
  color: rgba(23, 32, 51, 0.72);
  line-height: 1.45;
}

code {
  border-radius: 5px;
  padding: 2px 5px;
  background: rgba(23, 32, 51, 0.08);
}

@keyframes bob {
  50% {
    transform: translateY(-16px);
  }
}

@media (max-width: 900px) {
  .hero,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-scene {
    min-height: 340px;
  }
}

@media (max-width: 560px) {
  .portal-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 84px;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  nav,
  .account-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .account-panel span {
    grid-column: 1 / -1;
    max-width: none;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4rem);
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }
}
