:root {
  color-scheme: dark;
  --bg: #101416;
  --panel: #171d20;
  --panel-hover: #20282b;
  --stroke: #303a3d;
  --text: #f5f3eb;
  --muted: #b6c0c1;
  --accent: #f1cd81;
  --teal: #9dd3c7;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--sticky-header-height, 77px) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--body); }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; }
h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.55rem; }
.shell { width: min(1216px, calc(100% - 64px)); margin-inline: auto; }
.sr-only, .copy-field { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; z-index: 5; top: .75rem; left: .75rem; padding: .55rem .9rem; transform: translateY(-170%); background: var(--accent); color: var(--bg); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid var(--stroke); background: var(--panel); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: clamp(22px, 5vw, 72px); }
.wordmark { display: inline-flex; flex: none; align-items: center; gap: 10px; text-decoration: none; font: 800 1.65rem/1 var(--display); letter-spacing: .03em; }
.wordmark small { margin-left: 7px; color: var(--accent); font: 600 .65rem var(--mono); letter-spacing: .11em; }
.gf-site-icon { flex: none; width: 30px; height: 30px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.site-nav a { color: var(--muted); font-size: .93rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav [aria-current='page'] { color: var(--accent); }
.launch-link { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-size: .87rem; font-weight: 700; text-decoration: none; }
.launch-link span { color: var(--accent); }
.launch-link:hover { color: var(--accent); }

.sticky-ad:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr);
  align-items: center;
  padding-block: 4px;
  border-top: 1px solid var(--stroke);
  background: var(--bg);
}
.sticky-ad iframe { grid-area: 1 / 2; display: block; width: 320px; height: 50px; border: 0; }
.sticky-ad-label { grid-area: 1 / 1; justify-self: end; margin-right: 8px; color: var(--muted); font: 500 .68rem/1 var(--mono); }
.sticky-ad-close {
  grid-area: 1 / 3;
  justify-self: start;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font: 1.35rem/1 var(--body);
  cursor: pointer;
}
.sticky-ad-close:hover, .sticky-ad-close:focus-visible { background: var(--panel-hover); color: var(--text); }

.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: end; min-height: 394px; margin-top: 25px; border: 1px solid var(--stroke); border-radius: 8px; background: var(--panel-hover); }
.hero-photo { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 74%; height: 100%; object-fit: cover; object-position: 50% 57%; filter: saturate(.66) brightness(.79); }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(90deg, var(--panel) 8%, color-mix(in srgb, var(--panel) 95%, transparent) 29%, color-mix(in srgb, var(--panel) 55%, transparent) 61%, transparent), linear-gradient(0deg, var(--bg), transparent 44%); }
.hero-copy { padding: 42px clamp(24px, 5vw, 64px) 34px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--teal); font: 600 .72rem/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px color-mix(in srgb, var(--teal) 40%, transparent); }
.hero h1 { margin: 12px 0 14px; font-size: clamp(4.25rem, 9vw, 7.4rem); font-weight: 800; letter-spacing: -.025em; line-height: .92; text-transform: uppercase; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-dek { max-width: 34rem; color: var(--text); font-size: clamp(.99rem, 1.7vw, 1.14rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: .7em; padding: 9px 17px; border: 1px solid transparent; border-radius: 5px; font-size: .88rem; font-weight: 700; text-decoration: none; }
.button-primary { background: var(--accent); color: var(--bg); }
.button-primary:hover { background: color-mix(in srgb, var(--accent) 70%, var(--text)); }
.button-secondary { border-color: var(--muted); background: color-mix(in srgb, var(--panel) 70%, transparent); }
.button-secondary:hover { background: var(--panel-hover); }
.hero-footer { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; margin-inline: clamp(24px, 5vw, 64px); padding: 11px 0 14px; border-top: 1px solid var(--stroke); color: var(--muted); font: 500 .72rem/1.5 var(--mono); }
.hero-footer time { margin-left: .3em; color: var(--text); }
.hero-footer a { color: var(--teal); }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(236px, .36fr); gap: clamp(24px, 4vw, 54px); padding-block: 46px 80px; }
.main-column { min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-intro, .source-note { color: var(--muted); }
.section-intro { margin: .65rem 0 1.2rem; }
.pill { flex: none; padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--teal) 45%, var(--panel)); border-radius: 4px; color: var(--teal); font: 600 .73rem/1.4 var(--mono); }
.code-table-wrap { border: 1px solid var(--stroke); border-radius: 7px; overflow: hidden; }
.code-table { width: 100%; border-collapse: collapse; background: var(--panel); text-align: left; }
.code-table th, .code-table td { padding: 11px clamp(10px, 2vw, 22px); }
.code-table th { background: var(--panel-hover); color: var(--muted); font: 600 .72rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.code-table td { border-top: 1px solid var(--stroke); }
.code-table tbody tr:hover { background: var(--panel-hover); }
.code-table td:last-child { text-align: right; }
.code-table code { color: var(--accent); font: 600 clamp(.76rem, 1.4vw, 1rem)/1.5 var(--mono); overflow-wrap: anywhere; }
.reward { color: var(--text); font-size: .92rem; }
.copy-button { min-width: 68px; min-height: 40px; padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--teal) 45%, var(--panel)); border-radius: 4px; background: var(--panel); color: var(--teal); cursor: pointer; font-size: .78rem; font-weight: 700; }
.copy-button:hover { border-color: var(--teal); background: var(--panel-hover); }
.copy-button[data-state='copied'] { border-color: var(--teal); background: var(--teal); color: var(--bg); }
.source-note { margin: .75rem 0 0; font-size: .84rem; }
.source-note a, .prose a { color: var(--teal); }
.sidebar { display: grid; align-content: start; gap: 15px; }
.side-panel { padding: 19px; border: 1px solid var(--stroke); border-radius: 7px; background: var(--panel); }
.side-panel h2 { margin-bottom: 12px; font-size: 1.45rem; }
.menu-path { color: var(--muted); font-size: .87rem; }
.menu-path span { color: var(--teal); }
kbd { display: inline-block; padding: 0 .37em; border: 1px solid color-mix(in srgb, var(--teal) 45%, var(--panel)); border-radius: 4px; background: var(--panel-hover); color: var(--text); font: 600 .87em/1.65 var(--mono); }
.side-link { display: inline-block; margin-top: .8rem; color: var(--accent); font-size: .83rem; }
.related a { display: grid; gap: 1px; padding: .65rem 0; text-decoration: none; border-top: 1px solid var(--stroke); }
.related a:hover strong { color: var(--accent); }
.related a span { font-size: .83rem; color: var(--muted); }
.related a:last-child { padding-bottom: 0; }

.redeem-section, .home-article, .faq { margin-top: 44px; }
.steps { margin: 1rem 0 0; padding-left: 1.65rem; }
.steps li { padding: .25rem 0 .45rem .25rem; color: var(--muted); }
.steps li::marker { color: var(--accent); font: 600 .9rem var(--mono); }
.steps strong { color: var(--text); }
.faq details { border-bottom: 1px solid var(--stroke); }
.faq h2 { margin-bottom: .65rem; }
.faq summary { color: var(--text); cursor: pointer; padding: .85rem .15rem; font-weight: 600; }
.faq summary::marker { color: var(--accent); }
.faq details p { padding: 0 .15rem 1rem; color: var(--muted); }

.article-page { padding-block: 36px 76px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .55rem; color: var(--muted); font-size: .85rem; }
.breadcrumb a { color: var(--teal); }
.article-header { margin: 1.5rem 0 2rem; padding: clamp(20px, 6vw, 52px); border: 1px solid var(--stroke); border-radius: 7px; background: linear-gradient(125deg, var(--panel), var(--panel-hover)); }
.article-header h1 { max-width: 15ch; margin-bottom: .75rem; font-size: clamp(2.6rem, 7vw, 5.3rem); font-weight: 800; line-height: .97; }
.article-header p { max-width: 62ch; color: var(--muted); }
.article-body { max-width: 75ch; margin-inline: auto; }
.prose { color: var(--text); }
.prose h2, .prose h3 { margin: 1.2em 0 .45em; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05rem; }
.prose li { margin-bottom: .35rem; }
.site-footer { padding-block: 24px 33px; border-top: 1px solid var(--stroke); background: var(--panel); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 26px; }
.footer-inner p { color: var(--muted); font-size: .84rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .45rem 1rem; color: var(--muted); font-size: .84rem; }
.back-to-top:not([hidden]) { position: fixed; z-index: 9; inset: auto max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) auto; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--accent); border-radius: 6px; background: var(--panel); color: var(--accent); font-size: 1.35rem; line-height: 1; text-decoration: none; }
.back-to-top:hover { background: var(--accent); color: var(--bg); }
.skip-link:focus { z-index: 11; }

@media (max-width: 800px) {
  .home-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-photo { width: 88%; }
}

@media (max-width: 600px) {
  html { --sticky-header-height: 91px; }
  .shell { width: calc(100% - 32px); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-block: 13px 11px; }
  .site-nav { order: 3; grid-column: 1 / -1; gap: 20px; }
  .site-nav a { font-size: .85rem; }
  .launch-link { font-size: .8rem; }
  .hero { margin-top: 16px; min-height: 334px; }
  .hero-photo { width: 100%; object-position: 55% 50%; }
  .hero::before { background: linear-gradient(90deg, color-mix(in srgb, var(--panel) 91%, transparent), color-mix(in srgb, var(--panel) 43%, transparent)), linear-gradient(0deg, var(--bg), transparent 70%); }
  .hero-copy { padding: 28px 20px 24px; }
  .hero h1 { font-size: clamp(3.1rem, 11.2vw, 4.65rem); }
  .hero-footer { margin-inline: 20px; }
  .home-grid { padding-block: 31px 54px; }
  .sidebar { grid-template-columns: 1fr; }
  .reward { font-size: .79rem; }
  .copy-button { min-width: 52px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 387px) {
  .sticky-ad:not([hidden]) { grid-template-columns: 1fr; justify-items: center; row-gap: 2px; }
  .sticky-ad iframe { grid-area: 2 / 1; }
  .sticky-ad-label { grid-area: 1 / 1; justify-self: start; margin-left: 8px; }
  .sticky-ad-close { grid-area: 1 / 1; justify-self: end; height: 24px; margin: 0 4px 0 0; }
}
