:root {
  --ink: #172026;
  --muted: #5f6d76;
  --line: #d7e1e7;
  --panel: #ffffff;
  --green: #2c9f67;
  --teal: #0f8b8d;
  --blue: #3f6fd6;
  --gold: #d69620;
  --red: #d9534f;
  --shadow: 0 22px 60px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(15, 139, 141, 0.15), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(214, 150, 32, 0.14), transparent 22rem),
    linear-gradient(135deg, #f8fbfa 0%, #edf6f7 52%, #f8f2e6 100%);
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 46px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: 24px;
  align-items: stretch;
}

.hero-panel > div:first-child,
.hero-meter {
  min-height: 330px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 9vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.intro {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  line-height: 1.55;
}

.hero-meter {
  position: relative;
  overflow: hidden;
  border: 1px solid #20292f;
  background: #10181d;
}

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

.preview-readout {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  min-width: 138px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ecf7f2;
  background: rgba(16, 24, 29, 0.72);
  backdrop-filter: blur(10px);
}

.preview-readout span {
  color: rgba(236, 247, 242, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-readout strong {
  font-size: 1.2rem;
}

.catalog-section {
  margin-top: 34px;
}

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

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0;
}

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

.game-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  min-height: 298px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(23, 32, 38, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card:hover,
.game-card.active {
  transform: translateY(-4px);
  border-color: rgba(15, 139, 141, 0.45);
  box-shadow: 0 18px 40px rgba(15, 139, 141, 0.15);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: var(--teal);
}

.game-card:nth-child(2) .card-icon {
  background: var(--green);
}

.game-card:nth-child(3) .card-icon {
  background: var(--blue);
}

.game-card:nth-child(4) .card-icon {
  background: var(--red);
}

.game-card:nth-child(5) .card-icon {
  background: var(--gold);
}

.game-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.game-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.game-card span {
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  color: #24404a;
  font-size: 0.78rem;
  font-weight: 800;
  background: #e8f4f0;
}

@media (max-width: 980px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 0;
  }

  .hero-panel > div:first-child,
  .hero-meter {
    min-height: 300px;
  }

  .hero-panel > div:first-child {
    padding: 24px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 220px;
  }
}
