﻿:root {
  color-scheme: light;

  --page-bg: #f6f7f9;
  --surface: #ffffff;
  --surface-muted: #eef1f4;

  --text: #17191c;
  --muted: #70757d;

  --border: #e4e7eb;

  --accent: #17191c;
  --accent-text: #ffffff;

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;

  --shadow-card:
    0 14px 40px rgba(24, 28, 33, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;

  background: var(--page-bg);
  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

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

button {
  border: 0;
}

button:disabled {
  cursor: default;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* =========================================
   Top bar
========================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;

  background:
    rgba(246, 247, 249, 0.92);

  border-bottom:
    1px solid rgba(228, 231, 235, 0.9);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topbar-inner {
  width: min(
    calc(100% - 32px),
    1180px
  );

  min-height: 72px;
  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.brand {
  min-width: 0;

  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 40px;
  height: 40px;

  flex: 0 0 40px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  background: var(--accent);
  color: var(--accent-text);

  font-size: 17px;
  font-weight: 800;
}

.brand-copy {
  min-width: 0;

  display: flex;
  flex-direction: column;

  line-height: 1.06;
}

.brand-copy strong {
  font-size: 14px;
  font-weight: 800;
}

.brand-copy span {
  margin-top: 3px;

  color: var(--muted);

  font-size: 12px;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency-pill {
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 0 13px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: var(--surface);
  color: var(--text);

  box-shadow:
    0 4px 14px rgba(24, 28, 33, 0.04);
}

.currency-pill span {
  font-size: 16px;
}

.currency-pill strong {
  font-size: 14px;
  font-weight: 800;
}

.icon-button {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: var(--surface);
  color: var(--muted);

  font-size: 17px;

  opacity: 0.65;
}


/* =========================================
   Main
========================================= */

.main-content {
  width: min(
    calc(100% - 32px),
    1180px
  );

  margin-inline: auto;

  flex: 1;

  padding:
    clamp(38px, 7vw, 82px)
    0
    64px;
}


/* =========================================
   Hero
========================================= */

.hero {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;

  color: var(--muted);

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 0;

  font-size:
    clamp(38px, 8vw, 72px);

  line-height: 0.98;

  letter-spacing: -0.055em;
}

.hero-copy {
  margin:
    18px
    0
    0;

  color: var(--muted);

  font-size:
    clamp(16px, 2vw, 19px);

  line-height: 1.5;
}


/* =========================================
   Games
========================================= */

.games-section {
  margin-top:
    clamp(44px, 7vw, 72px);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  gap: 16px;

  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;

  font-size: 20px;
  letter-spacing: -0.02em;
}

.section-heading span {
  color: var(--muted);

  font-size: 13px;
  font-weight: 600;
}

.games-grid {
  display: grid;

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

  gap: 20px;
}

.game-card {
  min-width: 0;

  overflow: hidden;

  border:
    1px solid var(--border);

  border-radius: var(--radius-lg);

  background: var(--surface);

  box-shadow: var(--shadow-card);
}

.game-card--active {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .game-card--active:hover {
    transform: translateY(-4px);

    border-color: #cfd4da;

    box-shadow:
      0 18px 48px rgba(24, 28, 33, 0.12);
  }
}

.game-card--active:focus-visible {
  outline:
    3px solid rgba(23, 25, 28, 0.22);

  outline-offset: 4px;
}

.game-art {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;
}

.game-art--flying {
  background:
    linear-gradient(
      180deg,
      #73c9ee 0%,
      #bcecff 76%,
      #e5f8ff 100%
    );
}

.sky-cloud {
  position: absolute;

  width: 70px;
  height: 24px;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.72);
}

.sky-cloud::before,
.sky-cloud::after {
  content: "";

  position: absolute;

  border-radius: 50%;

  background: inherit;
}

.sky-cloud::before {
  width: 32px;
  height: 32px;

  left: 12px;
  top: -15px;
}

.sky-cloud::after {
  width: 26px;
  height: 26px;

  right: 10px;
  top: -10px;
}

.sky-cloud--one {
  top: 28%;
  left: 11%;
}

.sky-cloud--two {
  top: 15%;
  right: 13%;

  transform: scale(0.75);
}

.bird {
  position: absolute;

  left: 31%;
  top: 46%;

  width: 66px;
  height: 48px;

  transform:
    translate(-50%, -50%)
    rotate(-7deg);

  border-radius: 18px;

  background: #ffd54a;

  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.08);
}

.bird-eye {
  position: absolute;

  width: 17px;
  height: 17px;

  right: 11px;
  top: 9px;

  border: 5px solid #fff;
  border-radius: 50%;

  background: #161616;
}

.bird-beak {
  position: absolute;

  right: -17px;
  top: 19px;

  width: 0;
  height: 0;

  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 19px solid #ff8a00;
}

.pipe {
  position: absolute;

  right: 16%;

  width: 64px;

  background: #2e9f45;

  box-shadow:
    inset 7px 0 0 rgba(255, 255, 255, 0.12),
    inset -7px 0 0 rgba(0, 0, 0, 0.08);
}

.pipe::after {
  content: "";

  position: absolute;

  left: -6px;

  width: 76px;
  height: 24px;

  border-radius: 5px;

  background: #2e9f45;
}

.pipe--top {
  top: 0;
  height: 29%;
}

.pipe--top::after {
  bottom: -3px;
}

.pipe--bottom {
  bottom: 0;
  height: 31%;
}

.pipe--bottom::after {
  top: -3px;
}

.game-art--coming {
  display: grid;
  place-items: center;

  background:
    linear-gradient(
      135deg,
      #eceff2,
      #f6f7f9
    );
}

.game-art--coming span {
  width: 72px;
  height: 72px;

  display: grid;
  place-items: center;

  border:
    2px dashed #c8cdd3;

  border-radius: 24px;

  color: #a1a7ae;

  font-size: 40px;
  font-weight: 300;
}

.game-card-body {
  min-width: 0;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 18px;

  padding: 20px;
}

.game-card-copy {
  min-width: 0;
}

.game-status {
  display: inline-block;

  margin-bottom: 7px;

  color: var(--muted);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.game-card-copy h3 {
  margin: 0;

  font-size: 21px;
  letter-spacing: -0.025em;
}

.game-card-copy p {
  max-width: 420px;

  margin:
    8px
    0
    0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.5;
}

.play-cta {
  min-height: 42px;

  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 0 15px;

  border-radius: 999px;

  background: var(--accent);
  color: var(--accent-text);

  font-size: 14px;
  font-weight: 800;
}


/* =========================================
   Footer
========================================= */

.site-footer {
  width: min(
    calc(100% - 32px),
    1180px
  );

  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  padding:
    22px
    0
    calc(
      22px +
      env(safe-area-inset-bottom)
    );

  border-top:
    1px solid var(--border);

  color: var(--muted);

  font-size: 12px;
}

.footer-dot {
  opacity: 0.55;
}


/* =========================================
   Tablet / narrow desktop
========================================= */

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

  .game-art {
    aspect-ratio: 2 / 1;
  }
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 639px) {
  .topbar-inner,
  .main-content,
  .site-footer {
    width:
      calc(100% - 24px);
  }

  .topbar-inner {
    min-height:
      calc(
        62px +
        env(safe-area-inset-top)
      );

    padding-top:
      env(safe-area-inset-top);
  }

  .brand-mark {
    width: 36px;
    height: 36px;

    flex-basis: 36px;

    border-radius: 12px;

    font-size: 15px;
  }

  .brand-copy span {
    display: none;
  }

  .currency-pill {
    min-height: 40px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .main-content {
    padding:
      34px
      0
      48px;
  }

  .hero h1 {
    font-size:
      clamp(40px, 14vw, 58px);
  }

  .hero-copy {
    margin-top: 14px;
  }

  .games-section {
    margin-top: 42px;
  }

  .game-art {
    aspect-ratio: 16 / 10;
  }

  .game-card {
    border-radius: 22px;
  }

  .game-card-body {
    align-items: center;

    padding: 17px;

    gap: 14px;
  }

  .game-card-copy h3 {
    font-size: 19px;
  }

  .game-card-copy p {
    font-size: 13px;
  }

  .play-cta {
    min-width: 74px;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}


/* =========================================
   Micro
========================================= */

@media (max-width: 359px) {
  .topbar-inner,
  .main-content,
  .site-footer {
    width:
      calc(100% - 18px);
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .game-card-body {
    align-items: flex-start;
    flex-direction: column;
  }

  .play-cta {
    width: 100%;
  }
}
