/* rs9 brand-app profile — soft-green commerce + amber action + geometric-sport display type */

:root {
  --bg-base: #f6f7f2;
  --bg-soft: #eef2e6;
  --bg-band: #e7ecd9;
  --bg-card: #ffffff;
  --bg-deep: #0f1f17;
  --ink: #11241a;
  --ink-soft: #3b4a42;
  --ink-mute: #6f7c72;
  --line: #d6dccd;
  --line-strong: #b9c1ac;
  --green: #2c8f5b;
  --green-deep: #1f6a44;
  --amber: #e89a1c;
  --amber-deep: #b87612;
  --amber-soft: #f7d488;
  --alert: #b13e2f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(15,31,23,.06), 0 8px 24px rgba(15,31,23,.06);
  --shadow-2: 0 2px 6px rgba(15,31,23,.10), 0 16px 40px rgba(15,31,23,.10);
  --maxw: 1200px;
  --gap: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 2.8vw, 32px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 17px; }

p { margin: 0 0 1em; }
small, .small { font-size: 13px; color: var(--ink-mute); }

/* layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.band { background: var(--bg-soft); }
.band-2 { background: var(--bg-band); }
.surface { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-1); }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,247,242,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand small { display: block; font-weight: 500; color: var(--ink-mute); font-size: 12px; margin-top: -2px; }
.main-nav { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.main-nav a {
  display: inline-block; padding: 10px 14px; border-radius: 999px; color: var(--ink);
  font-weight: 500; font-size: 15px;
}
.main-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.main-nav a.cta {
  background: var(--amber); color: #1c1206;
  font-weight: 700; padding: 10px 18px;
}
.main-nav a.cta:hover { background: var(--amber-deep); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-signin { color: var(--ink-soft); font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.header-signin:hover { background: var(--bg-soft); text-decoration: none; }
.header-cta { background: var(--amber); color: #1c1206; font-weight: 700; padding: 10px 18px; border-radius: 999px; }
.header-cta:hover { background: var(--amber-deep); color: #fff; text-decoration: none; }
.hamburger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--bg-card);
  border-radius: 10px; cursor: pointer; position: relative; margin-left: auto;
}
.hamburger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .15s ease;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-actions { display: none; }
  .hamburger { display: inline-block; }
}

.mobile-drawer {
  position: fixed; inset: 64px 0 0 0;
  background: var(--bg-card);
  z-index: 50;
  padding: 24px 22px 80px;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.mobile-drawer[data-open="true"] {
  opacity: 1; transform: none; pointer-events: auto;
  visibility: visible;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
}
.mobile-drawer a {
  display: block; padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: 17px;
}
.mobile-drawer a.cta {
  margin-top: 14px;
  background: var(--amber); color: #1c1206;
  text-align: center; border-radius: 12px;
  border-bottom: 0;
}
.mobile-drawer .legal-mini { font-size: 13px; color: var(--ink-mute); margin-top: 20px; line-height: 1.5; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding: 56px 0 28px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; padding: 32px 0 16px; } }
.hero h1 { margin: 0 0 14px; }
.hero-lede { font-size: 18px; color: var(--ink-soft); margin-bottom: 22px; max-width: 56ch; }
.hero-fact-strip {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px;
}
.hero-fact-strip span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
}
.hero-fact-strip span.amber { background: var(--amber-soft); border-color: var(--amber); color: #5c3f08; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-block; padding: 14px 22px; border-radius: 12px; font-weight: 700;
  border: 0; cursor: pointer; font-family: inherit; font-size: 15px;
}
.btn-amber { background: var(--amber); color: #1c1206; }
.btn-amber:hover { background: var(--amber-deep); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }
.btn-deep { background: var(--green-deep); color: #fff; }
.btn-deep:hover { background: var(--green); color: #fff; text-decoration: none; }
.hero-img {
  border-radius: 18px; overflow: hidden; aspect-ratio: 16/9;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-meta { font-size: 13px; color: var(--ink-mute); margin-top: 14px; line-height: 1.55; }

/* fact strip band */
.fact-strip-band {
  background: linear-gradient(90deg, var(--green-deep) 0%, var(--green) 100%);
  color: #fff; padding: 18px 0;
}
.fact-strip-band .wrap {
  display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between;
  font-size: 14px;
}
.fact-strip-band .num {
  font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-weight: 700; color: var(--amber-soft); margin-right: 8px;
}

/* ticker / story rail */
.ticker-rail {
  overflow-x: auto; overflow-y: hidden;
  display: flex; gap: 14px;
  scroll-snap-type: x mandatory;
  padding: 6px 22px 18px;
  margin: 0 -22px;
  scrollbar-width: thin;
}
.ticker-rail::-webkit-scrollbar { height: 6px; }
.ticker-rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.ticker-card {
  flex: 0 0 220px; scroll-snap-align: start;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.ticker-card .meta { font-size: 12px; color: var(--ink-mute); }
.ticker-card .num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; color: var(--green-deep); }
.ticker-card .thumb {
  aspect-ratio: 1/1; border-radius: 10px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ticker-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* screenshot rail */
.media-rail {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 900px) { .media-rail { grid-template-columns: 1fr; } }
.media-frame {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.media-frame .frame-img {
  aspect-ratio: 16/9; border-radius: 10px; background: var(--bg-soft); overflow: hidden;
  border: 1px solid var(--line);
}
.media-frame .frame-img img { width: 100%; height: 100%; object-fit: cover; }
.media-frame .label { font-size: 13px; color: var(--ink-mute); }
.media-frame .label strong { color: var(--ink); }

/* hub cards */
.hub-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); text-decoration: none; }
.hub-card .eyebrow { font-size: 12px; color: var(--amber-deep); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.hub-card h3 { margin: 0; color: var(--ink); font-size: 18px; }
.hub-card p { color: var(--ink-soft); font-size: 14px; margin: 0; }
.hub-card .arrow { color: var(--green-deep); font-weight: 700; font-size: 14px; margin-top: auto; }

/* news card */
.news-card {
  display: grid; grid-template-columns: 110px 1fr; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; align-items: center; min-width: 0; max-width: 100%;
}
.news-card .thumb { aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: var(--bg-soft); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card h4 { margin: 0 0 4px; font-size: 16px; overflow-wrap: anywhere; }
.news-card .meta { font-size: 12px; color: var(--ink-mute); overflow-wrap: anywhere; }
.news-card p { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 700px) { .news-card { grid-template-columns: 80px 1fr; } }

/* game pool mini */
.pool-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; display: flex; gap: 12px; align-items: center;
  min-width: 0; max-width: 100%;
}
.pool-card .logo {
  width: 64px; height: 64px; border-radius: 10px; background: var(--bg-soft); flex-shrink: 0; overflow: hidden;
}
.pool-card .logo img { width: 100%; height: 100%; object-fit: cover; }
.pool-card .body { min-width: 0; flex: 1 1 auto; }
.pool-card h4 { margin: 0 0 2px; font-size: 14px; overflow-wrap: anywhere; }
.pool-card .meta { font-size: 12px; color: var(--ink-mute); overflow-wrap: anywhere; }
.pool-card .badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; background: var(--amber-soft); color: #5c3f08;
  flex-shrink: 0; max-width: 100%;
}

/* provider shelf */
.provider-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .provider-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.provider-tile {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; display: flex; gap: 12px; align-items: center; min-width: 0; max-width: 100%;
}
.provider-tile > div { min-width: 0; }
.provider-tile .name { font-weight: 700; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.provider-tile .count { font-family: 'JetBrains Mono', monospace; color: var(--green-deep); font-weight: 700; font-size: 16px; }
.provider-tile .label { font-size: 12px; color: var(--ink-mute); overflow-wrap: anywhere; }

/* FAQ */
.faq-item {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 16px 18px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--amber-deep); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .answer { padding: 0 18px 16px; color: var(--ink-soft); }

/* callout */
.callout {
  border-left: 4px solid var(--amber);
  background: var(--bg-card); padding: 16px 18px; border-radius: 10px;
  font-size: 14px; color: var(--ink-soft);
}
.callout strong { color: var(--ink); }
.callout.amber { background: #fff5dd; border-left-color: var(--amber-deep); }
.callout.green { background: #e6f1ea; border-left-color: var(--green-deep); }
.callout.warn { background: #fcebe8; border-left-color: var(--alert); }

/* table */
.tbl-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: auto; word-break: normal; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.tbl th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { font-family: 'JetBrains Mono', monospace; font-weight: 700; }

/* breadcrumbs */
.crumbs { font-size: 13px; color: var(--ink-mute); margin: 18px 0 0; }
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 6px; }

/* footer */
.site-footer {
  background: var(--bg-deep); color: #d6e2d8;
  padding: 48px 0 24px; margin-top: 56px;
}
.site-footer .footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #c5d4c8; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1f3a2c; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  font-size: 13px; color: #9eb1a5;
}

/* sticky action rail (mobile) */
.sticky-rail {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: var(--bg-card); border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(15,31,23,.08);
  transform: translateY(100%); transition: transform .25s ease;
}
.sticky-rail[data-visible="true"] { transform: none; }
.sticky-rail .btn { width: 100%; text-align: center; }
.sticky-rail[data-page="legal"], .sticky-rail[data-page="contact"] { display: none !important; }
@media (max-width: 700px) {
  .sticky-rail { display: block; }
  body.has-sticky { padding-bottom: 76px; }
  body:not(.has-sticky) { padding-bottom: 76px; }
}
@media (min-width: 701px) { .sticky-rail { display: none !important; } }

/* utility */
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spacer { height: 24px; }
.center { text-align: center; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 8px; display: block; }
.lede { font-size: 18px; color: var(--ink-soft); }
.muted { color: var(--ink-mute); }
.bullet-list { padding-left: 18px; color: var(--ink-soft); }
.bullet-list li { margin: 4px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--ink-soft); margin: 8px 0 0; max-width: 60ch; }

/* image panels */
.editorial {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
}
.editorial .img { aspect-ratio: 16/9; background: var(--bg-soft); overflow: hidden; }
.editorial .img img { width: 100%; height: 100%; object-fit: cover; }
.editorial .body { padding: 18px; }
.editorial .body h3 { margin: 0 0 8px; }
.editorial .body p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* split layout */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .split-2 { grid-template-columns: 1fr; } }

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; max-width: 90vw; }
.skip:focus { left: 12px; top: 12px; background: var(--amber); color: #1c1206; padding: 8px 12px; border-radius: 8px; z-index: 200; }

/* print */
@media print { .site-header, .site-footer, .sticky-rail, .mobile-drawer { display: none; } }

/* game rail (HOT row) */
.game-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.game-rail .pool-card { flex: 0 0 200px; scroll-snap-align: start; flex-direction: column; align-items: stretch; text-align: left; }
.game-rail .pool-card .logo { width: 100%; height: 90px; border-radius: 8px; }

/* tag chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-soft); font-weight: 600;
}

/* nav variant for subpages (when no main-nav used) */
.nav-strip {
  background: var(--bg-card); border-bottom: 1px solid var(--line);
  padding: 10px 0; font-size: 13px; color: var(--ink-mute);
}
.nav-strip .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.nav-strip strong { color: var(--ink); }

/* signal marker */
.signal {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--green-deep);
  font-weight: 700;
}
.signal::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(44,143,91,.18); }
/* accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* screen-reader-only alias */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* footer variants - legal hub uses .foot-* names rather than .footer-* */
.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
  padding: 32px 0 24px;
}
.site-footer .foot-grid > div > strong {
  display: block;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 12px;
}
.site-footer .foot-grid ul { list-style: none; margin: 0; padding: 0; }
.site-footer .foot-grid li { margin: 6px 0; }
.site-footer .foot-grid a { color: #c5d4c8; font-size: 14px; }
.site-footer .foot-grid a:hover { color: #fff; }
.foot-brand { font-size: 22px; color: #fff; letter-spacing: 0; text-transform: none; margin-bottom: 8px; }
.foot-tag { color: #c5d4c8; font-size: 14px; margin: 4px 0 10px; }
.foot-mini { color: #9eb1a5; font-size: 12px; margin: 4px 0 0; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 18px 0;
  color: #9eb1a5;
  font-size: 12px;
  text-align: center;
  margin: 0;
}
@media (max-width: 900px) {
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-footer .foot-grid { grid-template-columns: 1fr; }
}
