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

:root {
  --bg: #090b12;
  --surface: #111522;
  --surface-2: #181e30;
  --border: #26304a;
  --text: #f3f6ff;
  --muted: #9ba6c4;
  --white: #ffffff;
  --t-mythic: #f43f5e;
  --primary-dark: #be123c;
  --t-legendary: #f59e0b;
  --gold: #fbbf24;
  --t-epic: #a855f7;
  --t-rare: #3b82f6;
  --t-uncommon: #22c55e;
  --t-common: #94a3b8;
  --accent: rgb(34, 211, 238);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
: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(244, 63, 94, 0.18), transparent 65%),
    linear-gradient(rgba(38, 48, 74, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 48, 74, 0.14) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  color: var(--text); font-family: var(--font-sans); line-height: 1.6;
  overflow-x: clip;
}

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(9, 11, 18, 0.9); 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: 62px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); object-fit: cover; box-shadow: 0 0 16px rgba(244, 63, 94, 0.32); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.brand-text small { font-size: 12px; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: var(--muted); flex-shrink: 0; }
.site-nav a:hover { color: var(--white); text-decoration: none; }

/* Hero & Arcade Cabinet */
.hero-arcade { padding: 18px 0 16px; }
.hero-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.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.06em; color: var(--accent);
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px; padding: 3px 12px; margin-bottom: 8px;
}
.hero-title-block h1 { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; line-height: 1.08; text-transform: uppercase; letter-spacing: -0.02em; }
.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 13px; display: flex; flex-direction: column; line-height: 1.2; }
.metric-chip strong { font-family: var(--font-mono); font-size: 15px; color: var(--gold); }
.metric-chip span { font-size: 12px; color: var(--muted); }

.arcade-cabinet {
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border: 1px solid var(--border); border-radius: 18px; padding: 12px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.65), 0 0 48px rgba(244, 63, 94, 0.14);
}
.stage-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 540px;
  background: var(--bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
}
html[data-gf-playing] .stage-frame { aspect-ratio: auto; min-height: 680px; }
.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(9,11,18,0.2) 0%, rgba(9,11,18,0.55) 55%, rgba(9,11,18,0.88) 100%);
  display: grid; place-items: center; padding: 18px;
}
.cover-cta-panel {
  display: flex; flex-direction: column; align-items: center; gap: 11px; text-align: center;
  background: rgba(9, 11, 18, 0.78); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 16px; padding: 20px 28px;
  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.06em; 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: 13px 26px;
  background-color: var(--primary-dark);
  background-image: linear-gradient(135deg, var(--primary-dark), var(--t-mythic));
  color: var(--white); font-family: var(--font-display); font-size: 18px; font-weight: 800;
  text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 30px rgba(244, 63, 94, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.play-cta:hover { transform: scale(1.04); box-shadow: 0 14px 36px rgba(244, 63, 94, 0.7); }
.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-weight: 700; }
.stage-frame[data-gf-state="loading"] .stage-loader { display: flex; }
.loader-ring { width: 48px; height: 48px; border-radius: 50%; border: 4px solid var(--surface-2); border-top-color: var(--t-mythic); 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; align-items: center; 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 13px; 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(--t-mythic); background: var(--primary-dark); color: var(--white); }
.dock-btn-discord:hover { border-color: #5865F2; color: #fff; background: rgba(88, 101, 242, 0.18); }
.dock-btn-ig:hover { border-color: #e1306c; color: #fff; background: rgba(225, 48, 108, 0.18); }
.dock-accent { border-color: rgba(34, 211, 238, 0.45); color: var(--accent); }
.share-feedback, .comment-feedback { font-size: 13px; color: var(--t-uncommon); font-weight: 600; margin: 0; }

/* Featured 5:7 Illustrated Cards */
.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; font-weight: 800; 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: 900px) { .slab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .slab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.foil-card {
  position: relative; display: flex; flex-direction: column; border-radius: 13px; padding: 3px; cursor: pointer;
  background: linear-gradient(160deg, color-mix(in srgb, var(--t-mythic) 38%, var(--surface)) 0%, var(--bg) 68%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(244, 63, 94, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.foil-card.tier-apex {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.65) 0%, var(--bg) 72%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(251, 191, 36, 0.25);
}
.foil-card.holo-card {
  background: linear-gradient(135deg, var(--t-epic), var(--accent), var(--gold), var(--t-mythic), var(--t-epic));
  background-size: 240% 240%; animation: card-prism 4s linear infinite;
}
@keyframes card-prism { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.foil-card:hover { transform: translateY(-4px); }
.foil-card-inner {
  flex: 1; height: 100%; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  display: flex; flex-direction: column;
}
.foil-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; }
.foil-rank { font-size: 18px; font-weight: 800; color: var(--white); }
.slab-tier { font-family: var(--font-display); font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--gold); padding: 2px 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); }
.foil-card.tier-apex .slab-tier { background: linear-gradient(90deg, var(--gold), var(--t-mythic)); color: var(--bg); }
.foil-thumb { position: relative; margin: 0 9px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.foil-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foil-tag-left, .foil-tag-right {
  position: absolute; bottom: 5px; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  background: rgba(9, 11, 18, 0.86); padding: 1px 6px; border-radius: 4px;
}
.foil-tag-left { left: 5px; color: var(--gold); }
.foil-tag-right { right: 5px; color: var(--accent); }
.foil-body { padding: 10px 10px 11px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.slab-title { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--white); line-height: 1.15; }
.slab-sub { font-size: 12px; color: var(--muted); }
.slab-foot {
  margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted);
}
.slab-foot strong { color: var(--accent); }
.holo-chip {
  background: linear-gradient(90deg, var(--t-epic), var(--accent), var(--gold)); color: var(--bg) !important;
  font-weight: 800; font-family: var(--font-mono); padding: 1px 6px; border-radius: 5px;
}

/* Bento & Content */
.bento-section, .lower-section { padding: 18px 0; }
.lower-section { padding-bottom: 42px; }
.bento-grid, .lower-grid { display: grid; grid-template-columns: 0.96fr 1.04fr; 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: 20px; }
.panel-card h2, .panel-card h1 { margin: 0 0 6px; font-family: var(--font-display); font-size: 21px; font-weight: 800; text-transform: uppercase; }
.panel-lead { margin: 0 0 14px; 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: 13px; }
.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: 15px; font-weight: 700; }
.step-box p { margin: 0; font-size: 13px; color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 8px; 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; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot-apex { background: var(--white); }
.dot-mythic { background: var(--t-mythic); }
.dot-legendary { background: var(--gold); }
.dot-epic { background: var(--t-epic); }
.dot-rare { background: var(--t-rare); }
.dot-uncommon { background: var(--t-uncommon); }
.dot-common { background: var(--t-common); }

.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 14px; }
.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 14px; }
.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-badge {
  display: inline-block; font-size: 13px; font-family: var(--font-mono); color: var(--accent);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 1px 8px; margin-left: 6px; vertical-align: middle;
}
.comments-list { display: flex; flex-direction: column; gap: 10px; }
.comments-list[data-gf-empty]::before { content: "No pulls shared yet — be the first to brag about your DemonDle or pack!"; 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; }
.comments-list[data-folded="true"] > .comment-item:nth-of-type(n+7) { display: none !important; }
.comments-list:not([data-folded="true"]) {
  max-height: 520px; overflow-y: auto; padding-right: 6px;
  scrollbar-width: thin; scrollbar-color: var(--accent) var(--surface-2);
}
.comments-list:not([data-folded="true"])::-webkit-scrollbar { width: 6px; }
.comments-list:not([data-folded="true"])::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 999px; }
.comments-list:not([data-folded="true"])::-webkit-scrollbar-thumb { background: rgba(34, 211, 238, 0.45); border-radius: 999px; }
.comments-toggle-wrap { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; text-align: center; }
.comments-toggle-btn, .comments-load-more-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: 1 1 180px; padding: 11px 16px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--accent); font-family: var(--font-display); font-size: 14px;
  font-weight: 700; cursor: pointer; transition: all 0.2s ease;
}
.comments-toggle-btn:hover, .comments-load-more-btn:hover { background: rgba(0, 229, 255, 0.08); border-color: var(--accent); color: var(--white); }
.comments-load-more-btn:disabled { opacity: 0.6; cursor: wait; }
.toggle-arrow { transition: transform 0.25s ease; }
.comments-list:not([data-folded="true"]) + .comments-toggle-wrap .toggle-arrow { transform: rotate(180deg); }

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

.more-games-section { padding: 0 0 42px; }
.more-games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 720px) { .more-games-grid { grid-template-columns: 1fr; } }
.game-rec-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 15px 16px; text-decoration: none; color: var(--text);
  transition: border-color 0.18s ease, transform 0.16s ease, background 0.18s ease;
}
.game-rec-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  background: rgba(34, 211, 238, 0.06); text-decoration: none;
}
.game-rec-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.game-rec-top h3 { margin: 0; font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--white); }
.game-rec-tag {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent);
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.game-rec-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.game-rec-cta { margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 700; color: var(--accent); }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.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: 16px; }
.footer-links a { color: var(--muted); }

@media (max-width: 767px) {
  .container { padding: 0 12px; }
  .header-inner { min-height: 50px; gap: 10px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 14px; }
  .site-nav { gap: 11px; font-size: 12px; }
  .hero-arcade { padding: 10px 0 12px; }
  .hero-header { margin-bottom: 10px; gap: 8px; }
  .hero-metrics { display: none; }
  .arcade-cabinet { padding: 8px; border-radius: 14px; }
  .stage-frame { min-height: 220px; aspect-ratio: 16 / 10; }
  html[data-gf-playing] .stage-frame { min-height: 560px; aspect-ratio: auto; }
  .cover-scrim { padding: 10px; }
  .cover-cta-panel { padding: 12px 16px; gap: 7px; border-radius: 12px; }
  .play-cta { font-size: 14px; padding: 10px 18px; border-radius: 10px; }
  .cta-sub { display: none; }
}

/* Supporter VIP Name & Badge + Ad-Free Override */
html[data-edg-vip="1"] ins.adsbygoogle { display: none !important; }
.vip-name {
  background: linear-gradient(90deg, #fde047, #22d3ee, #e879f9, #fde047);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: edgVipGlow 3.2s linear infinite;
  font-weight: 800;
}
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #140f02;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.35);
  vertical-align: middle;
}
@keyframes edgVipGlow {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}
.header-auth { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.auth-btn, .auth-out {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.auth-btn:hover, .auth-out:hover { border-color: var(--accent); color: var(--accent); }
.auth-supporter {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 800;
  border: 1px solid rgba(250, 204, 21, 0.7);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(245, 158, 11, 0.14));
  color: #fde047; cursor: pointer; white-space: nowrap;
}
.auth-supporter:hover { border-color: #fde047; filter: brightness(1.08); }
html[data-edg-vip="1"] .auth-supporter { display: none !important; }
.auth-user { font-size: 13px; font-weight: 700; color: var(--text); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) {
  .auth-btn, .auth-out, .auth-supporter { padding: 5px 9px; font-size: 12px; }
  .auth-user { max-width: 96px; font-size: 12px; }
}
