:root {
  color-scheme: light;
  --bg: #f9f9f3;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --ink: #2e3652;
  --muted: #61708e;
  --mint: #56cdbd;
  --mint-deep: #20a597;
  --sky: #8ecbff;
  --peach: #ffd0bf;
  --coral: #ff7f83;
  --butter: #ffd96b;
  --line: rgba(102, 122, 154, 0.16);
  --shadow: 0 24px 70px rgba(84, 123, 130, 0.14);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font-display: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
  --font-body: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(142, 203, 255, 0.55), transparent 28%),
    radial-gradient(circle at right 20% top 28%, rgba(255, 208, 191, 0.68), transparent 24%),
    radial-gradient(circle at left bottom, rgba(86, 205, 189, 0.22), transparent 30%),
    linear-gradient(180deg, #fbfbf7 0%, #f7faf8 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(10px);
}

body::before {
  inset: auto auto 6% -5%;
  width: 28rem;
  height: 28rem;
  background: rgba(142, 203, 255, 0.15);
}

body::after {
  inset: 10% -6% auto auto;
  width: 30rem;
  height: 30rem;
  background: rgba(255, 208, 191, 0.14);
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #def8f4);
  box-shadow: inset 0 -6px 12px rgba(86, 205, 189, 0.16);
}

.brand-text {
  background: linear-gradient(90deg, var(--mint-deep), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--sky));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero,
.featured,
.coming-soon {
  margin-top: 26px;
  padding: 32px;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.76));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint-deep);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.section-heading h2,
.game-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.04;
}

.hero h1 {
  font-size: 46px;
  max-width: 14ch;
}

.hero-text {
  max-width: 34rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

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

.hero-pills span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(125, 150, 184, 0.14);
  box-shadow: 0 8px 24px rgba(90, 116, 148, 0.08);
  font-weight: 700;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  z-index: 0;
}

.hero-visual::before {
  width: 84%;
  height: 84%;
  background: radial-gradient(circle at top, rgba(142, 203, 255, 0.7), rgba(142, 203, 255, 0));
}

.hero-visual::after {
  width: 74%;
  height: 74%;
  background: radial-gradient(circle at bottom, rgba(255, 208, 191, 0.8), rgba(255, 208, 191, 0));
}

.console-card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  padding: 18px 18px 22px;
  border-radius: 34px;
  background: linear-gradient(180deg, #ebfff9, #daf1ff);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 52px rgba(88, 134, 150, 0.2);
  transform: rotate(-4deg);
}

.console-screen {
  padding: 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, #fefcf7, #f7fbff);
  border: 4px solid rgba(32, 165, 151, 0.35);
}

.preview-grid,
.mini-board {
  display: grid;
  gap: 8px;
}

.preview-grid {
  grid-template-columns: repeat(3, 1fr);
}

.preview-grid span,
.mini-board span {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  font-weight: 900;
  background: linear-gradient(180deg, #ffffff, #edf4fb);
  box-shadow: inset 0 0 0 1px rgba(112, 133, 167, 0.14);
}

.console-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.console-controls span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

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

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.game-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  gap: 26px;
  padding: 18px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 255, 0.94));
  border: 1px solid rgba(106, 128, 159, 0.12);
}

.game-preview {
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at bottom left, rgba(182, 236, 196, 0.92), transparent 36%),
    radial-gradient(circle at top right, rgba(196, 231, 255, 0.95), transparent 38%),
    linear-gradient(180deg, #eefcff 0%, #f8fff2 100%);
}

.mini-board {
  grid-template-columns: repeat(5, 1fr);
}

.mini-board .hidden {
  background: linear-gradient(180deg, #ecf5ff, #dcecff);
}

.mini-board .revealed {
  background: linear-gradient(180deg, #fffefc, #fff7ec);
}

.mini-board .flagged,
.flag {
  color: #ff5d6a;
}

.mini-board .mine {
  color: #374066;
  background: linear-gradient(180deg, #ffd6d8, #ffc0c5);
}

.game-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.game-icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 22px;
  background: linear-gradient(145deg, #dff9f0, #fff1eb);
  font-size: 1.75rem;
}

.tag.alt {
  background: rgba(255, 243, 220, 0.92);
}

.game-copy h3 {
  font-size: clamp(2.1rem, 3vw, 3.6rem);
}

.game-copy p,
.how-to li,
.soon-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.how-to {
  margin: 16px 0 20px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(248, 252, 255, 0.86);
  border: 1px solid rgba(124, 149, 182, 0.14);
}

.how-to h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.how-to ul {
  margin: 0;
  padding-left: 1.15rem;
}

.play-button {
  align-self: flex-start;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), #ff9a8c);
  color: white;
  font-weight: 800;
  line-height: 54px;
  box-shadow: 0 18px 30px rgba(255, 127, 131, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.play-button:hover,
.play-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 34px rgba(255, 127, 131, 0.3);
}

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

.soon-grid article {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(111, 133, 165, 0.12);
  box-shadow: 0 12px 30px rgba(84, 109, 126, 0.08);
}

.soon-grid span {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 22px;
  background: linear-gradient(145deg, #f8fffb, #fff2e6);
  font-size: 1.8rem;
}

.soon-grid h3 {
  margin: 18px 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.n1 { color: #2d85ec; }
.n2 { color: #2aa059; }
.n3 { color: #ed5d5d; }
.n4 { color: #6a4fd5; }

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

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    margin-top: 12px;
  }

  .site-header,
  .hero,
  .featured,
  .coming-soon {
    padding: 22px;
    border-radius: 28px;
  }

  .brand {
    font-size: 1.7rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
  }

  .hero h1 {
    max-width: none;
  }

  .game-copy h3 {
    font-size: 2.4rem;
  }

  .mini-board {
    gap: 6px;
  }
}
