:root {
  --bg: #0f1111;
  --bg-soft: #151917;
  --panel: rgba(21, 28, 25, 0.88);
  --panel-strong: rgba(10, 14, 12, 0.92);
  --line: rgba(214, 193, 117, 0.18);
  --text: #f3f0e2;
  --muted: #bdb8a5;
  --gold: #d9b75f;
  --gold-strong: #f0c96c;
  --green: #7fd69a;
  --danger: #ff8d77;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(217, 183, 95, 0.16), transparent 28%),
    radial-gradient(circle at top left, rgba(127, 214, 154, 0.14), transparent 24%),
    linear-gradient(180deg, #101312 0%, #0b0d0d 100%);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

body {
  padding: 20px 16px 28px;
}

.shell {
  max-width: 1240px;
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(24, 30, 27, 0.94), rgba(10, 12, 11, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero__badge,
.panel__eyebrow {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(217, 183, 95, 0.12);
  border: 1px solid rgba(217, 183, 95, 0.2);
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.panel h2 {
  margin: 0;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 0.95;
}

.hero__lead,
.hero__meta,
.hint,
.summary-meta,
.payment-note {
  color: var(--muted);
}

.hero__lead {
  max-width: 720px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.layout {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.9fr;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow);
}

.panel__header {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.panel__header h2 {
  font-size: 28px;
}

.game-grid,
.pack-grid,
.payment-grid {
  display: grid;
  gap: 12px;
}

.game-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.game-card,
.pack-card,
.payment-card,
.choice-chip {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.game-card,
.pack-card,
.payment-card {
  padding: 16px;
  border-radius: var(--radius-lg);
}

.game-card:hover,
.pack-card:hover,
.payment-card:hover,
.choice-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 183, 95, 0.4);
}

.is-active {
  border-color: rgba(217, 183, 95, 0.7) !important;
  background: linear-gradient(180deg, rgba(217, 183, 95, 0.18), rgba(255, 255, 255, 0.04)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-card__emoji {
  font-size: 28px;
}

.game-card__title,
.pack-card__title,
.payment-card__title,
.summary-title {
  margin: 12px 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.game-card__meta,
.pack-card__meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-chip {
  padding: 12px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.flow {
  display: grid;
  gap: 18px;
}

.flow__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.flow__block h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.input-shell {
  display: grid;
  gap: 8px;
}

.input-shell span {
  color: var(--muted);
  font-size: 14px;
}

.input-shell input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.input-shell input:focus {
  border-color: rgba(127, 214, 154, 0.55);
}

.pack-card__price,
.payment-card__title span,
.summary-price {
  color: var(--gold-strong);
}

.payment-card__title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.summary-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  border: 1px solid rgba(217, 183, 95, 0.16);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.summary-line strong {
  color: var(--text);
  text-align: right;
}

.cta {
  width: 100%;
  margin-top: 14px;
  padding: 16px 18px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #d9b75f, #f0cf7a);
  color: #111;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.cta:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.hint {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.empty-state {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.error {
  color: var(--danger);
}

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

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

@media (max-width: 640px) {
  body {
    padding: 12px 12px 24px;
  }

  .panel,
  .hero {
    padding: 16px;
    border-radius: 22px;
  }

  .panel__header h2 {
    font-size: 24px;
  }
}
