/* ==========================================================================
   888 Casino Malaysia — guide & review site
   Table of contents:
   1. CSS Variables
   2. Reset & Base
   3. Layout helpers
   4. Header & Navigation
   5. Buttons
   6. Decorative 888 ring mark
   7. Footer
   8. Reveal / scroll animations
   9. Responsive media queries
   10. Content / guide pages (article layout, tables, TOC, callouts)
   11. Reduced motion
   ========================================================================== */

/* 1. CSS Variables
   ========================================================================== */
:root {
  --color-bg: #0d0d10;
  --color-green: #00f52a;
  --color-green-bright: #20ff3f;
  --color-green-dark: #00a91d;
  --color-text: #ffffff;
  --color-text-secondary: #9f9f9f;
  --color-card-bg: #17171a;
  --color-border: rgba(0, 245, 42, 0.25);

  --font-main: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;

  --header-height: 76px;
  --max-width: 1280px;
  --section-padding-y: clamp(72px, 11vw, 140px);
  --radius-md: 16px;
  --radius-lg: 28px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p {
  color: var(--color-text-secondary);
}

/* Visible focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 4px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-green);
  color: #000;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

/* 3. Layout helpers
   ========================================================================== */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

section[id] {
  scroll-margin-top: var(--header-height);
}

/* 4. Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 245, 42, 0.12);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.88);
  border-bottom-color: rgba(0, 245, 42, 0.22);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Small logo mark made of three 8 rings, reused in header & footer */
.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  flex-shrink: 0;
}

.logo-8 {
  position: relative;
  width: 18px;
  height: 28px;
  display: block;
}

.logo-8::before,
.logo-8::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 3px solid var(--color-green);
  mix-blend-mode: screen;
}

.logo-8::before {
  top: 0;
}

.logo-8::after {
  bottom: 0;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 2px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-green-bright);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--color-green-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out), background 0.3s ease;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--color-green);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--color-green);
}

/* Mobile menu panel */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}

.mobile-menu.open {
  max-height: 420px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  padding: 12px clamp(20px, 5vw, 48px) 28px;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--color-green-bright);
  padding-left: 6px;
}

.mobile-cta {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

/* 5. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--color-green);
  color: #001a04;
  box-shadow: 0 0 0 rgba(0, 245, 42, 0);
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--color-green-bright);
  box-shadow: 0 8px 30px rgba(0, 245, 42, 0.35);
}

.btn-outline {
  border: 1px solid var(--color-green);
  color: var(--color-green-bright);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(0, 245, 42, 0.1);
  box-shadow: 0 0 20px rgba(0, 245, 42, 0.25);
}

.btn-small {
  min-height: 40px;
  padding: 0 20px;
  font-size: 14px;
}

.btn-large {
  min-height: 56px;
  padding: 0 40px;
  font-size: 16px;
}

/* 6. Decorative 888 ring mark (reused at small sizes across pages)
   ========================================================================== */
.mini-888 {
  --ring-d: clamp(30px, 6vw, 64px);
  --ring-thickness: clamp(7px, 1.4vw, 13px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 18px rgba(0, 245, 42, 0.2));
}

.eight-shape {
  position: relative;
  width: var(--ring-d);
  height: calc(var(--ring-d) * 1.72);
  flex-shrink: 0;
}

.eight-shape + .eight-shape {
  margin-left: calc(var(--ring-d) * -0.16);
}

.ring {
  position: absolute;
  left: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: var(--ring-thickness) solid var(--color-green);
  background: rgba(0, 245, 42, 0.04);
  mix-blend-mode: screen;
  animation: pulse-glow 4.5s ease-in-out infinite;
}

.ring-top {
  top: 0;
}

.ring-bottom {
  bottom: 0;
  animation-delay: 0.4s;
}

/* Slight colour variance per position so overlaps read as layered */
.eight-shape:nth-child(2) .ring {
  border-color: var(--color-green-bright);
}

.eight-shape:nth-child(3) .ring {
  border-color: var(--color-green-dark);
}

/* Wrapper used to place the mark at the top of the guide hero, with a
   slow float so it reads as a living brand mark rather than a static logo */
.hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.hero-mark .mini-888 {
  --ring-d: clamp(38px, 8vw, 72px);
  --ring-thickness: clamp(9px, 1.8vw, 16px);
  animation: float 7s ease-in-out infinite;
}

/* 7. Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
  margin-top: 4px;
}

.footer-logo {
  height: 24px;
}

.footer-logo .logo-8 {
  width: 15px;
  height: 24px;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav-list a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.footer-nav-list a:hover,
.footer-nav-list a:focus-visible {
  color: var(--color-green-bright);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.footer-tag {
  color: var(--color-green-dark);
  font-weight: 500;
}

/* 8. Reveal / scroll animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor-following glow (desktop only, injected by JS) */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 42, 0.08) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  will-change: transform;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(0, 245, 42, 0);
  }
  50% {
    box-shadow: 0 0 22px rgba(0, 245, 42, 0.35);
  }
}

/* 9. Responsive media queries
   ========================================================================== */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .founder-card {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .inline-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 68px;
  }

  .btn-large {
    width: 100%;
  }

  .header-actions .btn-outline.btn-small {
    display: none;
  }

  .eight-shape + .eight-shape {
    margin-left: calc(var(--ring-d) * -0.2);
  }
}

@media (max-width: 430px) {
  .hero-mark .mini-888 {
    --ring-d: clamp(30px, 16vw, 52px);
    --ring-thickness: clamp(7px, 3.6vw, 12px);
  }

  .section-inner {
    padding: 0 20px;
  }
}

/* 10. Content / guide pages (article layout, tables, TOC, callouts)
   ========================================================================== */
.page-hero {
  padding: calc(var(--header-height) + 56px) clamp(20px, 5vw, 48px) 48px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green-bright);
  background: rgba(0, 245, 42, 0.08);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 20px;
}

.page-title {
  font-size: clamp(28px, 4.6vw, 48px);
  max-width: 900px;
  margin: 0 auto 16px;
}

.updated-meta {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.updated-meta strong {
  color: var(--color-text);
  font-weight: 500;
}

/* Table of contents chip list */
.toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 28px auto 0;
}

.toc a {
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-secondary);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--color-green-bright);
  border-color: var(--color-green);
  background: rgba(0, 245, 42, 0.06);
}

/* Highlighted TOC entry for the prioritised Games Library link */
.toc a.toc-featured {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #001a04;
  font-weight: 600;
}

.toc a.toc-featured:hover,
.toc a.toc-featured:focus-visible {
  background: var(--color-green-bright);
  border-color: var(--color-green-bright);
  color: #001a04;
}

/* Trust-signal chip row, shown under the hero meta line */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 20px auto 0;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 245, 42, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.trust-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 6px rgba(0, 245, 42, 0.7);
  flex-shrink: 0;
}

/* Callout / AI summary box */
.callout {
  max-width: 900px;
  margin: 0 auto 8px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-green);
  border-radius: var(--radius-md);
  padding: 28px clamp(20px, 4vw, 36px);
  text-align: left;
}

.callout-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green-bright);
  margin-bottom: 12px;
}

.callout p {
  color: var(--color-text-secondary);
  font-size: 15px;
}

/* Long-form article body */
.article {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--section-padding-y) clamp(20px, 5vw, 48px);
}

.article-narrow {
  max-width: 760px;
}

.article h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  color: var(--color-text);
  margin: 56px 0 18px;
  padding-top: 8px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.article > h2:first-child,
.article > *:first-child.h2-flush {
  margin-top: 0;
}

.article h3 {
  font-size: 20px;
  color: var(--color-green-bright);
  margin: 32px 0 12px;
}

.article h4 {
  font-size: 16px;
  color: var(--color-text);
  margin: 22px 0 8px;
}

.article p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.article ul,
.article ol {
  margin: 0 0 20px 22px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.article li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.article li::marker {
  color: var(--color-green);
}

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

.article a:not(.btn) {
  color: var(--color-green-bright);
  border-bottom: 1px solid rgba(0, 245, 42, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.article a:not(.btn):hover,
.article a:not(.btn):focus-visible {
  color: var(--color-green);
  border-color: var(--color-green);
}

.article hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 48px 0;
}

/* Data tables used throughout the guide */
.table-wrap {
  overflow-x: auto;
  margin: 8px 0 28px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.info-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}

.info-table caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--color-text-secondary);
  padding: 12px 16px 0;
}

.info-table th {
  background: rgba(0, 245, 42, 0.07);
  color: var(--color-green-bright);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.info-table td {
  padding: 14px 16px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table td:first-child {
  color: var(--color-text);
  font-weight: 500;
}

/* Simple two-column definition cards, used for e.g. contact info */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 8px 0 28px;
}

.info-grid-item {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.info-grid-item h4 {
  color: var(--color-text);
  font-size: 15px;
  margin: 0 0 6px;
}

.info-grid-item p {
  font-size: 14px;
  margin: 0;
}

/* Two-panel app download cards (Android / iOS) */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 8px 0 28px;
}

.download-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 42, 0.5);
}

.download-banner {
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-card-bg);
}

.download-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 245, 42, 0.08);
  border: 1px solid var(--color-border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-green-bright);
}

.download-card-body {
  padding: 20px 24px 26px;
}

.download-card h4 {
  color: var(--color-text);
  font-size: 16px;
  margin: 0 0 8px;
}

.download-card p {
  font-size: 14px;
  margin: 0 0 18px;
}

/* Game banner grid: each game gets a generated geometric banner (no photos/
   external assets are used, since we don't hold licensed game art) plus a
   title and short tag. Pattern varies on a 5-step cycle so a long grid of
   banners still reads as distinct tiles. */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}

.game-card {
  position: relative;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 42, 0.5);
  box-shadow: 0 14px 34px rgba(0, 245, 42, 0.14);
}

/* Small standout tag for featured titles, e.g. "Popular" or "Hot" */
.game-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--color-green);
  color: var(--color-green-bright);
  animation: pulse-glow 2.4s ease-in-out infinite;
}

.game-banner {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-card-bg);
}

.game-banner a,
.download-banner a {
  display: block;
  width: 100%;
  height: 100%;
}

.game-banner-glyph {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-green-bright);
  text-shadow: 0 0 18px rgba(0, 245, 42, 0.4);
}

.game-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card-body {
  padding: 10px 12px 14px;
}

.game-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0 0 2px;
}

.game-card-tag {
  display: block;
  font-size: 11px;
  color: var(--color-text-secondary);
}

/* Blank logo placeholder used for partner cards until real assets are added */
.game-banner-placeholder {
  width: 34%;
  height: 34%;
  color: var(--color-text-secondary);
  opacity: 0.5;
}

.partner-card .game-banner {
  aspect-ratio: 5 / 4;
}

.feature-card .game-banner {
  aspect-ratio: 1 / 1;
}

/* Five-step decorative pattern cycle for banner backgrounds */
.game-card:nth-of-type(5n + 1) .game-banner {
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 245, 42, 0.38), transparent 60%),
    var(--color-card-bg);
}

.game-card:nth-of-type(5n + 2) .game-banner {
  background:
    repeating-linear-gradient(45deg, rgba(0, 245, 42, 0.18) 0 2px, transparent 2px 14px),
    var(--color-card-bg);
}

.game-card:nth-of-type(5n + 3) .game-banner {
  background:
    radial-gradient(rgba(0, 245, 42, 0.3) 1.5px, transparent 1.5px) 0 0 / 14px 14px,
    var(--color-card-bg);
}

.game-card:nth-of-type(5n + 4) .game-banner {
  background:
    linear-gradient(135deg, rgba(0, 245, 42, 0.26) 0%, transparent 55%),
    var(--color-card-bg);
}

.game-card:nth-of-type(5n + 5) .game-banner {
  background:
    repeating-radial-gradient(circle, rgba(0, 245, 42, 0.2) 0 2px, transparent 2px 10px),
    var(--color-card-bg);
}

/* Guide CTA banner, used mid-article to break up long text */
.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 12px 0 36px;
}

.inline-cta p {
  margin: 0;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
}

/* Legal page shell */
.legal-page .article {
  padding-top: 48px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--color-green-bright);
}

/* Founder / about card */
.founder-card {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 12px 0 32px;
}

.founder-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 245, 42, 0.08);
  border: 1px solid var(--color-border);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-green-bright);
}

.founder-copy h3 {
  margin: 0 0 4px;
  color: var(--color-text);
}

.founder-role {
  display: block;
  font-size: 13px;
  color: var(--color-green-bright);
  margin-bottom: 10px;
}

.founder-copy p {
  margin: 0;
}

/* External / outbound affiliate CTA note */
.outbound-note {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 10px;
}

/* FAQ accordion, built on native <details>/<summary> (no JS required) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 28px;
}

.faq-item {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  min-height: 44px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--color-green-bright);
  transition: transform 0.2s var(--ease-out);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
  color: var(--color-green-bright);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Footer: site nav + legal nav stacked, each row wrapping independently */
.footer-columns {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.footer-legal .footer-nav-list {
  row-gap: 10px;
}

/* 11. Reduced motion accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-mark .mini-888,
  .ring {
    animation: none !important;
  }
}
