@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg: #080c16;
  --surface: #101626;
  --surface-2: #161e33;
  --border: #25304d;
  --text: #f1f5ff;
  --muted: #9aa7c7;
  --primary: #d91e48;
  --primary-dark: #a61436;
  --accent: #00e5ff;
  --gold: #fbbf24;
  --violet: #a855f7;
  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 85% 45% at 50% -5%, rgba(217, 30, 72, 0.2), transparent 65%),
    linear-gradient(rgba(37, 48, 77, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 48, 77, 0.16) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow-prose { max-width: 820px; }
.mono-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 12, 22, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  object-fit: cover;
  box-shadow: 0 0 16px rgba(217, 30, 72, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.4px; text-transform: uppercase; }
.brand-text small { font-size: 12px; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; font-weight: 600; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* Hero & Arcade Cabinet */
.hero-arcade { padding: 22px 0 18px; }
.hero-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-title-block { max-width: 680px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 8px;
}
.hero-title-block h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.hero-sub { margin: 0; color: var(--muted); font-size: 15px; }

.hero-metrics { display: flex; gap: 10px; flex-wrap: wrap; }
.metric-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.metric-chip strong { font-family: var(--font-mono); font-size: 16px; color: var(--gold); }
.metric-chip span { font-size: 12px; color: var(--muted); }

.arcade-cabinet {
  background: linear-gradient(180deg, rgba(22, 30, 51, 0.92), rgba(16, 22, 38, 0.98));
  border: 1px solid #324166;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.65), 0 0 50px rgba(217, 30, 72, 0.14);
}
.stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  background: #060911;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.stage-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.stage-cover { position: absolute; inset: 0; z-index: 3; }
.stage-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,12,22,0.18) 0%, rgba(8,12,22,0.52) 55%, rgba(8,12,22,0.88) 100%);
  display: grid;
  place-items: center;
  padding: 20px;
}
.cover-cta-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 22px 30px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
}
.cta-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--gold);
}
.play-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(217, 30, 72, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.play-cta:hover { transform: scale(1.04); box-shadow: 0 14px 36px rgba(217, 30, 72, 0.75); }
.cta-sub { font-size: 13px; color: var(--muted); }

.stage-loader {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}
.stage-frame[data-gf-state="loading"] .stage-loader { display: flex; }
.loader-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 4px solid var(--surface-2);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cabinet-dock {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
}
.engage-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.dock-btn:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.dock-btn[data-gf-liked] { border-color: var(--primary); background: var(--primary); color: #ffffff; }
.dock-accent { border-color: rgba(0, 229, 255, 0.45); color: var(--accent); }

/* Featured Cards Showcase */
.showcase-band { padding: 26px 0 12px; }
.section-head { margin-bottom: 16px; }
.section-head h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
}
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

.slab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 860px) { .slab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .slab-grid { grid-template-columns: 1fr; } }

.slab-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.slab-card:hover { transform: translateY(-3px); }
.slab-card.tier-mythic { border-color: rgba(217, 30, 72, 0.65); background: linear-gradient(160deg, #241022, var(--surface)); }
.slab-card.tier-legendary { border-color: rgba(251, 191, 36, 0.6); background: linear-gradient(160deg, #231d10, var(--surface)); }
.slab-card.tier-epic { border-color: rgba(168, 85, 247, 0.55); background: linear-gradient(160deg, #1d142f, var(--surface)); }
.slab-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.slab-tier { font-family: var(--font-display); text-transform: uppercase; color: var(--gold); }
.slab-card.tier-mythic .slab-tier { color: #ff7a98; }
.slab-card.tier-epic .slab-tier { color: #d8b4fe; }
.slab-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.slab-sub { font-size: 13px; color: var(--muted); }
.slab-foot {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.slab-foot strong { color: var(--accent); }

/* Bento & Content */
.bento-section, .lower-section { padding: 18px 0; }
.lower-section { padding-bottom: 46px; }
.bento-grid, .lower-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}
@media (max-width: 860px) { .bento-grid, .lower-grid { grid-template-columns: 1fr; } }

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.panel-card h2, .panel-card h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
}
.panel-lead { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }
.step-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.step-num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent); }
.step-box h3 { margin: 4px 0; font-family: var(--font-display); font-size: 16px; }
.step-box p { margin: 0; font-size: 13px; color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 10px; border-bottom: 1px solid var(--border); text-align: left; }
th { font-family: var(--font-display); color: var(--accent); background: var(--surface-2); text-transform: uppercase; font-size: 12px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.dot-mythic { background: var(--primary); }
.dot-legendary { background: var(--gold); }
.dot-epic { background: var(--violet); }
.dot-rare { background: var(--accent); }
.dot-common { background: var(--muted); }

.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.faq-list details { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 15px; }
.faq-list summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.faq-list p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

.comment-form { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 16px; }
.comment-form input, .comment-form textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
}
.comments-list { display: flex; flex-direction: column; gap: 10px; }
.comments-list[data-gf-empty]::before {
  content: "No pulls shared yet — be the first to post your best card!";
  color: var(--muted);
  font-size: 14px;
}
.comment-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.comment-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.comment-meta strong { color: var(--accent); }
.comment-item p { margin: 0; font-size: 14px; }

.prose-body h1 { font-size: 30px; margin-bottom: 14px; }
.prose-body h2 { font-size: 20px; margin-top: 22px; }
.prose-body p, .prose-body li { color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 6px; border: 1px solid var(--border); }
.footer-brand strong { font-family: var(--font-display); color: var(--text); }
.footer-brand p { margin: 2px 0 0; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); }

@media (max-width: 767px) {
  .stage-frame { min-height: 230px; aspect-ratio: 16 / 10; }
  html[data-gf-playing] .stage-frame { min-height: 600px; aspect-ratio: auto; }
  .cover-scrim { padding: 12px; }
  .cover-cta-panel { padding: 10px 16px; gap: 6px; border-radius: 12px; }
  .cta-kicker { font-size: 10px; }
  .play-cta { font-size: 14px; padding: 10px 16px; border-radius: 9px; }
  .cta-sub { display: none; }
}
