/* ─── REPLACED: see full rewrite below ─── */
:root {
  color-scheme: dark;
  --bg: #08090d;
  --card-bg: #111827;
  --card-border: rgba(255, 255, 255, 0.14);
  --text: #f5f8fd;
  --muted: #d1d9e1;
  --accent: #f5a623;
  --accent2: #e07c00;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

/* ─── Page layout ────────────────────────────────────────── */

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 16px 52px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── Hero card ──────────────────────────────────────────── */

.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.hero-cover {
  width: 100%;
  height: 155px;
  overflow: hidden;
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.game-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
}

h1 {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lead {
  margin: 0;
  font-size: 0.85rem;
  color: #ecf0f3;
  line-height: 1.45;
}

/* ─── CTA ────────────────────────────────────────────────── */

.cta-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.claim-button {
  width: 100%;
  padding: 17px 20px;
  border: none;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #07111e;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  cursor: pointer;
  transition: opacity 140ms, transform 140ms;
  -webkit-tap-highlight-color: transparent;
}

.claim-button:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.claim-button:active:not(:disabled) {
  transform: none;
}

.claim-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.quota {
  margin: 0;
  font-size: 0.8rem;
  color: #c0d0e0;
  text-align: center;
  min-height: 1.1em;
}

/* ─── Result card ────────────────────────────────────────── */

.result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.result-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.redeem-link {
  display: block;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 166, 35, 0.28);
  font-size: 0.8rem;
  font-family: 'SFMono-Regular', 'Consolas', 'Menlo', monospace;
  color: var(--accent);
  word-break: break-all;
  text-decoration: none;
  line-height: 1.45;
}

.redeem-link:hover {
  border-color: rgba(245, 166, 35, 0.55);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 130ms;
  -webkit-tap-highlight-color: transparent;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.result-note {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Share block ────────────────────────────────────────── */

.share-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
}

.share-label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.share-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.share-tg {
  border-color: rgba(40, 167, 234, 0.4);
  color: #62c8f5;
}

.share-tg:hover {
  background: rgba(40, 167, 234, 0.12);
}

.share-wa {
  border-color: rgba(37, 211, 102, 0.4);
  color: #4ade80;
}

.share-wa:hover {
  background: rgba(37, 211, 102, 0.12);
}

.share-feedback {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--green);
}

/* ─── Status message ─────────────────────────────────────── */

.status-msg {
  padding: 11px 13px;
  border-radius: var(--r-sm);
  font-size: 0.83rem;
  line-height: 1.45;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  margin-top: 4px;
}

.status-msg.success { border-color: rgba(74, 222, 128, 0.3); color: var(--green); }
.status-msg.warning { border-color: rgba(251, 191, 36, 0.3); color: var(--amber); }
.status-msg.error   { border-color: rgba(248, 113, 113, 0.3); color: var(--red); }

/* ─── Info section ───────────────────────────────────────── */

.info-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  padding: 16px;
}

.info-block h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #eaf1f9;
}

.heading-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.info-block p {
  margin: 0;
  font-size: 0.85rem;
  color: #e2e9f1;
  line-height: 1.5;
}

.info-block strong {
  color: var(--text);
  font-weight: 600;
}

.info-warn {
  border-color: rgba(251, 191, 36, 0.18);
}

/* Store chips */

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 130ms;
  -webkit-tap-highlight-color: transparent;
}

.store-chip:hover {
  background: rgba(255, 255, 255, 0.15);
}

.store-chip-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Apple redeem */

.apple-redeem {
  display: block;
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.76rem;
  font-family: 'SFMono-Regular', 'Consolas', 'Menlo', monospace;
  color: #b0c4d8;
  word-break: break-all;
  text-decoration: none;
  line-height: 1.45;
}

.apple-redeem:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

/* ─── Utility ────────────────────────────────────────────── */

.hidden {
  display: none !important;
}

/* ─── Desktop accent background ─────────────────────────── */

/* ─── Footer ────────────────────────────────────────────── */

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 28px 0 20px;
}

.footer-by {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.65;
  white-space: nowrap;
}

.footer-logo-link {
  display: inline-block;
  opacity: 0.45;
  transition: opacity 150ms;
  border-radius: 4px;
  line-height: 0;
}

.footer-logo-link:hover {
  opacity: 0.75;
}

/* ─── Desktop accent background ─────────────────────────── */

@media (min-width: 600px) {
  body {
    background:
      radial-gradient(ellipse at 20% 0%, rgba(245, 166, 35, 0.07), transparent 45%),
      radial-gradient(ellipse at 80% 100%, rgba(84, 184, 255, 0.06), transparent 45%),
      var(--bg);
  }

  .page {
    padding-top: 44px;
    padding-bottom: 64px;
  }
}
