:root {
  --bg: #10131b;
  --bg-soft: #171c28;
  --ink: #f7f3ea;
  --muted: #c9c1b4;
  --gold: #d6a94a;
  --gold-dark: #9f7525;
  --red: #d84b45;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --arena-card-width: clamp(36px, 4.5vw, 54px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(16, 19, 27, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.brand-logo {
  width: 66px;
  height: 44px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(214, 169, 74, 0.45);
  border-radius: 8px;
}

.brand strong {
  display: block;
  letter-spacing: 0.04em;
}

.brand small {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.main-nav a {
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.main-nav .nav-play {
  color: #15140f;
  font-weight: 900;
  background: linear-gradient(145deg, #f6d37b, var(--gold));
}

.main-nav .nav-play:hover,
.main-nav .nav-play:focus-visible {
  color: #15140f;
  background: linear-gradient(145deg, #ffe29a, var(--gold));
}

.section-band {
  background:
    radial-gradient(circle at top left, rgba(216, 75, 69, 0.18), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(214, 169, 74, 0.20), transparent 28%),
    var(--bg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  min-height: 680px;
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.04;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
}

.lead {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 22px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 8px;
}

.button.primary {
  color: #15140f;
  background: linear-gradient(145deg, #f6d37b, var(--gold));
  box-shadow: 0 12px 30px rgba(214, 169, 74, 0.22);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.signature {
  color: var(--gold);
  font-weight: 700;
}

.hero-table {
  position: relative;
  align-self: stretch;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    #12151d;
  border: 1px solid rgba(246, 211, 123, 0.30);
  border-radius: 10px;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hero-table::before {
  position: absolute;
  inset: 12px;
  z-index: 2;
  content: "";
  border: 1px solid rgba(246, 211, 123, 0.42);
  border-radius: 8px;
  pointer-events: none;
}

.hero-table::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 30%),
    radial-gradient(circle at center, transparent 50%, rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

.arena-label {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 4;
  display: inline-flex;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 8px;
}

.arena-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1448 / 1086;
  object-fit: cover;
  object-position: center;
  min-height: clamp(420px, 48vw, 620px);
}

.arena-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 14px;
  background: rgba(11, 13, 19, 0.72);
  border: 1px solid rgba(246, 211, 123, 0.26);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.arena-caption strong {
  color: var(--gold);
}

.arena-caption span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.hero-cards {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2.4vw, 22px);
  margin-top: 34px;
}

.hero-card {
  display: block;
  width: min(30%, 150px);
  max-height: 250px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.hero-card.side-card {
  transform: rotate(-8deg);
}

.hero-card.side-card:last-child {
  transform: rotate(8deg);
}

.hero-card.back-card {
  width: min(34%, 166px);
  transform: translateY(-12px);
}

.playing-card {
  display: grid;
  width: 118px;
  height: 164px;
  padding: 14px;
  color: #11131a;
  background: var(--white);
  border: 5px solid #ece6d8;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  transform: rotate(-7deg);
}

.playing-card span {
  font-size: 22px;
  font-weight: 900;
}

.playing-card strong {
  align-self: center;
  font-size: 16px;
  text-align: center;
}

.playing-card em {
  align-self: end;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.playing-card.heart {
  color: #b72726;
  transform: rotate(6deg) translateY(-10px);
}

.playing-card.hidden {
  color: var(--gold);
  background:
    linear-gradient(45deg, rgba(214, 169, 74, 0.16) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(214, 169, 74, 0.16) 25%, transparent 25%),
    #121722;
  background-size: 22px 22px;
  border-color: var(--gold);
  transform: rotate(1deg);
}

.playing-card.hidden strong {
  font-size: 56px;
}

.winner {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

.content-section,
.rules,
.cards-section,
.app-section,
.cta {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 780px;
}

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

.feature,
.rule-card,
.app-panel {
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-number {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.feature p,
.rule-card li,
.cards-section .section-heading p,
.app-section p,
.app-panel span,
.cta p {
  color: var(--muted);
  line-height: 1.6;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.rules-objective {
  display: inline-block;
  margin: 0;
  padding: 14px 16px;
  color: #161922;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
  line-height: 1.45;
  background: linear-gradient(145deg, #ffe6a1, #f6d37b);
  border: 2px solid rgba(159, 117, 37, 0.42);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(159, 117, 37, 0.18);
}

.rules-card-order {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin: 12px 0 0;
  padding: 12px 16px;
  color: #2b210f;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(159, 117, 37, 0.24);
  border-radius: 8px;
}

.rules-card-order strong {
  color: #11141b;
  font-weight: 900;
  letter-spacing: 0;
}

.showcase-card {
  margin: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.showcase-card img {
  display: block;
  width: 100%;
  aspect-ratio: 746 / 1050;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
}

.showcase-card figcaption {
  margin-top: 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.light {
  color: #161922;
  background:
    linear-gradient(135deg, rgba(214, 169, 74, 0.20), transparent),
    #f4efe4;
}

.light .eyebrow,
.light .feature-number {
  color: var(--gold-dark);
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  min-height: 82px;
  padding: 18px 18px 18px 76px;
  color: #2a2b31;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(16, 19, 27, 0.12);
  border-radius: 8px;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  content: counter(steps);
  color: var(--bg);
  font-weight: 900;
  background: var(--gold);
  border-radius: 8px;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
}

.rule-card {
  color: var(--ink);
  background: var(--bg);
}

.rule-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

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

.cardyland-logo {
  display: block;
  width: min(100%, 360px);
  margin-top: 22px;
  border: 1px solid rgba(214, 169, 74, 0.30);
  border-radius: 8px;
}

.collection-card {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #11131a;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(145deg, #ffffff, #efe5cf);
  border: 5px solid #e8d39b;
  border-radius: 8px;
}

.app-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 32px;
}

.app-panel {
  display: grid;
  gap: 12px;
}

.status-dot {
  width: 16px;
  height: 16px;
  background: var(--red);
  border: 4px solid rgba(255, 255, 255, 0.80);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(216, 75, 69, 0.22);
}

.cta {
  max-width: 980px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #0b0d13;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero,
  .rules-layout,
  .app-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-table {
    max-width: 760px;
    justify-self: center;
    width: 100%;
  }

  .feature-grid,
  .collection-strip,
  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  :root {
    --arena-card-width: 32px;
  }

  h1 {
    font-size: 44px;
  }

  .main-nav a {
    padding: 8px 9px;
  }

  .feature-grid,
  .collection-strip,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .hero-cards {
    gap: 8px;
    margin-top: 52px;
  }

  .hero-table::before {
    inset: 8px;
  }

  .arena-label {
    left: 12px;
    top: 12px;
    font-size: 11px;
  }

  .arena-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
  }

  .arena-photo {
    min-height: 340px;
  }

  .hero-card {
    width: 30%;
  }

  .hero-card.back-card {
    width: 34%;
  }

  .playing-card {
    width: 86px;
    height: 124px;
    padding: 10px;
    border-width: 4px;
  }

  .playing-card.hidden strong {
    font-size: 38px;
  }

}
