/*
 * Lucky Flare Hub — visual identity skin
 * Loaded after luckyvertex.css. Body class .rfc-skin scopes overrides.
 * Direction: synthwave reactor core — kinetic, magenta/violet/cyan.
 */

/* ---------- Tokens ---------- */
body.rfc-skin {
  --rfc-ink: #07050f;
  --rfc-ink-2: #0d0820;
  --rfc-surface: #14102b;
  --rfc-surface-2: #1c1641;
  --rfc-line: rgba(255, 78, 184, 0.22);
  --rfc-line-2: rgba(124, 89, 255, 0.3);
  --rfc-line-3: rgba(92, 224, 255, 0.28);
  --rfc-line-soft: rgba(255, 255, 255, 0.08);
  --rfc-hot: #ff3aa0;
  --rfc-hot-2: #ff6bbe;
  --rfc-plasma: #7b3cff;
  --rfc-plasma-2: #9b6cff;
  --rfc-pulse: #5ce0ff;
  --rfc-pulse-2: #82eaff;
  --rfc-paper: #f4ecd8;
  --rfc-paper-2: #c8c0db;
  --rfc-muted: #8d83ad;
  --rfc-success: #4dffa6;
  --rfc-error: #ff5b73;
  --rfc-radius: 4px;
  --rfc-radius-l: 10px;
  --rfc-shadow:
    0 28px 80px -24px rgba(255, 58, 160, 0.4),
    0 8px 24px -10px rgba(7, 5, 15, 0.7);
  --rfc-glow-hot:
    0 0 0 1px rgba(255, 58, 160, 0.45), 0 0 24px -2px rgba(255, 58, 160, 0.55);
  --rfc-font-display:
    "Big Shoulders Display", "Bebas Neue", "Arial Narrow", system-ui, sans-serif;
  --rfc-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Type baseline ---------- */
body.rfc-skin {
  font-family: var(--rfc-font-body);
  background: var(--rfc-ink);
  color: var(--rfc-paper);
  font-feature-settings: "ss01", "cv11";
  letter-spacing: 0;
}

body.rfc-skin h1,
body.rfc-skin h2,
body.rfc-skin h3,
body.rfc-skin .brand-name,
body.rfc-skin .panel-label,
body.rfc-skin .kicker {
  font-family: var(--rfc-font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rfc-paper);
}

body.rfc-skin h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  line-height: 0.92;
  font-weight: 900;
}
body.rfc-skin h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
}
body.rfc-skin h3 {
  font-size: 1.15rem;
  line-height: 1.15;
}

body.rfc-skin .kicker {
  font-family: var(--rfc-font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--rfc-hot);
  text-transform: uppercase;
}

body.rfc-skin a {
  color: var(--rfc-pulse);
  transition: color 160ms ease;
}
body.rfc-skin a:hover {
  color: var(--rfc-paper);
}

/* ---------- Backdrop ---------- */
body.rfc-skin {
  background-image:
    radial-gradient(
      1100px 700px at 88% -10%,
      rgba(255, 58, 160, 0.2),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at -8% 110%,
      rgba(92, 224, 255, 0.16),
      transparent 65%
    ),
    radial-gradient(
      700px 500px at 50% 50%,
      rgba(123, 60, 255, 0.12),
      transparent 70%
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.02) 0 1px,
      transparent 1px 4px
    ),
    linear-gradient(180deg, var(--rfc-ink) 0%, var(--rfc-ink-2) 100%);
  background-attachment: fixed, fixed, fixed, fixed, fixed;
}

/* ---------- Header ---------- */
body.rfc-skin .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 5, 15, 0.78);
  border-bottom: 1px solid var(--rfc-line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
body.rfc-skin .site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--rfc-hot) 35%,
    var(--rfc-plasma) 65%,
    transparent
  );
  opacity: 0.7;
}
body.rfc-skin .header-inner {
  padding-block: 0.85rem;
}
body.rfc-skin .brand-lockup {
  gap: 0.7rem;
}

/* Brand mark — hexagonal clip + gradient fill, no sweep animation */
body.rfc-skin .brand-mark,
body.rfc-skin .brand-mark.large {
  animation: none !important;
  border-radius: 0;
  clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
  background: linear-gradient(
    135deg,
    var(--rfc-hot) 0%,
    var(--rfc-plasma) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--rfc-paper);
  font-family: var(--rfc-font-display);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 22px -8px rgba(255, 58, 160, 0.55);
}
body.rfc-skin .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}
body.rfc-skin .brand-mark.large {
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}

body.rfc-skin .brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.rfc-skin .main-nav {
  display: flex;
  gap: 0.25rem;
  font-family: var(--rfc-font-body);
}
body.rfc-skin .main-nav a {
  color: var(--rfc-paper-2);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}
body.rfc-skin .main-nav a:hover {
  color: var(--rfc-paper);
  background: rgba(255, 58, 160, 0.1);
  border-color: var(--rfc-line);
}

body.rfc-skin .nav-cta,
body.rfc-skin .btn {
  font-family: var(--rfc-font-display);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.92rem;
  padding: 0.75rem 1.3rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
body.rfc-skin .btn-primary,
body.rfc-skin .nav-cta {
  background: linear-gradient(
    135deg,
    var(--rfc-hot) 0%,
    var(--rfc-plasma) 100%
  );
  color: var(--rfc-paper);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 22px -4px rgba(255, 58, 160, 0.55);
}
body.rfc-skin .btn-primary:hover,
body.rfc-skin .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px -2px rgba(255, 58, 160, 0.85);
}
body.rfc-skin .btn-outline {
  background: rgba(124, 89, 255, 0.06);
  color: var(--rfc-paper);
  border: 1px solid var(--rfc-line-2);
}
body.rfc-skin .btn-outline:hover {
  background: rgba(255, 58, 160, 0.1);
  border-color: var(--rfc-hot);
  color: var(--rfc-paper);
}

/* ---------- Hero ---------- */
body.rfc-skin .hero {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 10vw, 8rem);
  background:
    radial-gradient(
      ellipse at 80% 0%,
      rgba(255, 58, 160, 0.25),
      transparent 60%
    ),
    linear-gradient(180deg, var(--rfc-ink-2), var(--rfc-ink));
  border-bottom: 1px solid var(--rfc-line);
}
body.rfc-skin .hero h1 span {
  color: var(--rfc-hot);
  background: none;
  -webkit-text-fill-color: var(--rfc-hot);
}
body.rfc-skin .hero p {
  margin: 0 0 1rem;
  max-width: 100%;
}
body.rfc-skin .hero .lvc-container {
  position: relative;
  z-index: 2;
}

body.rfc-skin .hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: conic-gradient(
    from 200deg at 78% 28%,
    transparent 0deg,
    rgba(255, 58, 160, 0.5) 45deg,
    rgba(123, 60, 255, 0.55) 120deg,
    rgba(92, 224, 255, 0.4) 220deg,
    transparent 360deg
  );
  filter: blur(50px) saturate(150%);
  opacity: 0.7;
  animation: rfcOrbDrift 42s linear infinite;
}

body.rfc-skin .hero::before {
  content: "RF.001";
  position: absolute;
  top: clamp(1.4rem, 3vw, 2.5rem);
  left: clamp(1rem, 4vw, 3rem);
  font-family: var(--rfc-font-display);
  font-weight: 700;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  color: var(--rfc-hot);
  z-index: 1;
}
body.rfc-skin .hero::after {
  content: "// CORE.STACK ONLINE";
  position: absolute;
  top: clamp(1.4rem, 3vw, 2.5rem);
  right: clamp(1rem, 4vw, 3rem);
  font-family: var(--rfc-font-body);
  font-weight: 500;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--rfc-pulse);
  text-transform: uppercase;
  z-index: 1;
}

body.rfc-skin .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}
body.rfc-skin .hero-copy {
  max-width: 52rem;
}
body.rfc-skin .hero-copy .kicker {
  display: block;
  margin-bottom: 1.2rem;
}
body.rfc-skin .hero-copy h1 {
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    var(--rfc-paper) 35%,
    var(--rfc-hot-2) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
body.rfc-skin .hero-lede {
  font-family: var(--rfc-font-body);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--rfc-paper-2);
  max-width: 36rem;
  margin: 0 0 2rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
body.rfc-skin .hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

body.rfc-skin .hero-panel {
  background: linear-gradient(
    180deg,
    rgba(124, 89, 255, 0.18),
    rgba(255, 58, 160, 0.05) 100%
  );
  border: 1px solid var(--rfc-line);
  border-radius: var(--rfc-radius);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--rfc-shadow);
  align-self: end;
  overflow: hidden;
}
body.rfc-skin .hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--rfc-hot),
    var(--rfc-plasma),
    var(--rfc-pulse)
  );
}
body.rfc-skin .hero-panel .panel-label {
  color: var(--rfc-pulse);
  font-weight: 700;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
}
body.rfc-skin .hero-panel strong {
  display: block;
  font-family: var(--rfc-font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 0.92;
  margin: 0.5rem 0 0.25rem;
  background: linear-gradient(135deg, var(--rfc-hot), var(--rfc-pulse));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}
body.rfc-skin .hero-panel span:last-child {
  font-family: var(--rfc-font-body);
  font-size: 0.85rem;
  color: var(--rfc-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ---------- Stats band ---------- */
body.rfc-skin .lvc-band {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(124, 89, 255, 0.08),
    transparent
  );
  border-top: 1px solid var(--rfc-line);
  border-bottom: 1px solid var(--rfc-line);
  padding: 1.2rem 0;
}
body.rfc-skin .stats-strip {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
  font-family: var(--rfc-font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--rfc-paper-2);
}
body.rfc-skin .stats-strip span {
  position: relative;
  padding-left: 1rem;
}
body.rfc-skin .stats-strip span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--rfc-hot);
  border-radius: 1px;
}
body.rfc-skin .stats-strip span:nth-child(2)::before {
  background: var(--rfc-plasma);
}
body.rfc-skin .stats-strip span:nth-child(3)::before {
  background: var(--rfc-pulse);
}
body.rfc-skin .stats-strip span:nth-child(4)::before {
  background: var(--rfc-hot-2);
}

/* ---------- Section heading ---------- */
body.rfc-skin .section-heading {
  margin-bottom: clamp(2rem, 3vw, 3rem);
  max-width: 48rem;
}
body.rfc-skin .section-heading .kicker {
  color: var(--rfc-pulse);
}
body.rfc-skin .section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.96;
  margin: 0.4rem 0 1rem;
  background: linear-gradient(180deg, var(--rfc-paper), var(--rfc-hot-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- Lobby ---------- */
body.rfc-skin .games-section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}
body.rfc-skin .games-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.4rem);
  counter-reset: rfc-cards;
}
body.rfc-skin .games-grid .game-card {
  grid-column: span 2;
}
body.rfc-skin .games-grid .game-card:nth-child(1) {
  grid-column: span 4;
}
body.rfc-skin .games-grid .game-card:nth-child(2) {
  grid-column: span 2;
}
body.rfc-skin .games-grid .game-card:nth-child(3) {
  grid-column: span 3;
}
body.rfc-skin .games-grid .game-card:nth-child(4) {
  grid-column: span 3;
}
body.rfc-skin .games-grid .game-card:nth-child(5) {
  grid-column: span 2;
}
body.rfc-skin .games-grid .game-card:nth-child(6) {
  grid-column: span 4;
}

body.rfc-skin .game-card {
  position: relative;
  background: var(--rfc-surface);
  border: 1px solid var(--rfc-line);
  border-radius: var(--rfc-radius);
  overflow: hidden;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
  counter-increment: rfc-cards;
}
body.rfc-skin .game-card::before {
  content: counter(rfc-cards, decimal-leading-zero);
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 3;
  font-family: var(--rfc-font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--rfc-paper);
  text-shadow: 0 0 14px rgba(7, 5, 15, 0.85);
  line-height: 1;
}
body.rfc-skin .game-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--rfc-hot), var(--rfc-plasma));
  z-index: 2;
}
body.rfc-skin .games-grid .game-card:nth-child(2)::after {
  background: linear-gradient(180deg, var(--rfc-plasma), var(--rfc-pulse));
}
body.rfc-skin .games-grid .game-card:nth-child(3)::after {
  background: linear-gradient(180deg, var(--rfc-pulse), var(--rfc-hot));
}
body.rfc-skin .games-grid .game-card:nth-child(4)::after {
  background: linear-gradient(180deg, var(--rfc-hot), var(--rfc-pulse));
}
body.rfc-skin .games-grid .game-card:nth-child(5)::after {
  background: linear-gradient(180deg, var(--rfc-plasma), var(--rfc-hot));
}
body.rfc-skin .games-grid .game-card:nth-child(6)::after {
  background: linear-gradient(180deg, var(--rfc-pulse), var(--rfc-plasma));
}

body.rfc-skin .game-card a {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
body.rfc-skin .game-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.05) brightness(0.78);
  transition:
    filter 240ms ease,
    transform 600ms ease;
}
body.rfc-skin .game-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 5, 15, 0.1) 0%, rgba(7, 5, 15, 0.85) 100%),
    linear-gradient(
      135deg,
      rgba(255, 58, 160, 0.32) 0%,
      rgba(123, 60, 255, 0.32) 50%,
      rgba(92, 224, 255, 0.18) 100%
    );
  pointer-events: none;
}
body.rfc-skin .game-card:hover {
  transform: translateY(-4px);
  border-color: var(--rfc-hot);
  box-shadow: 0 24px 50px -16px rgba(255, 58, 160, 0.45);
}
body.rfc-skin .game-card:hover img {
  filter: saturate(0.95) contrast(1.1) brightness(0.95);
  transform: scale(1.04);
}

body.rfc-skin .game-card-body {
  padding: 1.1rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
  background: linear-gradient(180deg, var(--rfc-surface), var(--rfc-ink-2));
}
body.rfc-skin .game-card-body .badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--rfc-font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  border: 1px solid var(--rfc-line);
  background: rgba(124, 89, 255, 0.1);
  color: var(--rfc-pulse);
  width: max-content;
}
body.rfc-skin .game-card-body .badge.badge-muted {
  color: var(--rfc-muted);
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent;
}
body.rfc-skin .game-card-body h2,
body.rfc-skin .game-card-body h3 {
  font-family: var(--rfc-font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--rfc-paper);
  text-transform: uppercase;
  line-height: 1.05;
}
body.rfc-skin .game-card-body p {
  font-family: var(--rfc-font-body);
  color: var(--rfc-paper-2);
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
body.rfc-skin .game-card-body .btn {
  margin-top: 0.55rem;
  align-self: flex-start;
  font-size: 0.78rem;
  padding: 0.55rem 1rem;
}

/* ---------- Responsible band ---------- */
body.rfc-skin .responsible-band {
  background: linear-gradient(
    135deg,
    rgba(123, 60, 255, 0.18),
    rgba(255, 58, 160, 0.1) 60%,
    transparent 100%
  );
  border-top: 1px solid var(--rfc-line);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
body.rfc-skin .responsible-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, auto);
  align-items: center;
}

/* ---------- Page hero / game header / static pages ---------- */
body.rfc-skin .page-hero {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rfc-line);
  background: linear-gradient(180deg, transparent, rgba(124, 89, 255, 0.08));
}
body.rfc-skin .page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0.4rem 0 0.6rem;
  background: linear-gradient(180deg, var(--rfc-paper), var(--rfc-hot-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
body.rfc-skin .page-hero p {
  font-family: var(--rfc-font-body);
  color: var(--rfc-paper-2);
}

body.rfc-skin .game-page-header {
  padding: clamp(2.2rem, 4vw, 3.6rem) 0 clamp(1.5rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--rfc-line);
  background: linear-gradient(
    135deg,
    rgba(255, 58, 160, 0.08),
    transparent 60%
  );
}
body.rfc-skin .game-header-grid {
  display: flex;
  gap: 2rem;
  align-items: end;
  flex-wrap: wrap;
}

body.rfc-skin .coin-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--rfc-line);
  background: rgba(123, 60, 255, 0.14);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-family: var(--rfc-font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rfc-pulse);
}
body.rfc-skin .coin-icon {
  width: 8px;
  height: 8px;
  background: var(--rfc-hot);
  border-radius: 1px;
  box-shadow: 0 0 10px var(--rfc-hot);
}

body.rfc-skin .game-stage {
  border: 1px solid var(--rfc-line);
  border-radius: var(--rfc-radius);
  background: var(--rfc-surface);
  overflow: hidden;
  margin: 0 auto;
}
body.rfc-skin .external-game-stage iframe {
  width: 100%;
  aspect-ratio: 16/10;
  min-height: clamp(380px, 60vh, 720px);
  border: 0;
  display: block;
}
body.rfc-skin .iframe-note {
  font-family: var(--rfc-font-body);
  color: var(--rfc-muted);
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}

/* ---------- Legal prose ---------- */
body.rfc-skin .legal-hero {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}
body.rfc-skin .legal-meta {
  color: var(--rfc-pulse);
}
body.rfc-skin .legal-prose {
  color: var(--rfc-paper);
}
body.rfc-skin .legal-prose h2 {
  font-family: var(--rfc-font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--rfc-line);
  color: var(--rfc-paper);
  text-transform: uppercase;
  font-size: 1.3rem;
}
body.rfc-skin .legal-prose h3 {
  font-family: var(--rfc-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rfc-paper);
}
body.rfc-skin .legal-prose p,
body.rfc-skin .legal-prose li {
  font-family: var(--rfc-font-body);
  color: var(--rfc-paper-2);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
body.rfc-skin .legal-prose a {
  color: var(--rfc-pulse);
}
body.rfc-skin .legal-prose a:hover {
  color: var(--rfc-hot);
}
body.rfc-skin .legal-prose strong {
  color: var(--rfc-paper);
}
body.rfc-skin .legal-prose li::marker {
  color: var(--rfc-hot);
}
body.rfc-skin .legal-prose code {
  background: rgba(255, 58, 160, 0.1);
  border-color: rgba(255, 58, 160, 0.25);
  color: var(--rfc-paper);
}

/* ---------- Modal + overlay ---------- */
body.rfc-skin .overlay {
  background: rgba(7, 5, 15, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.rfc-skin .overlay-card,
body.rfc-skin .modal-card {
  background: linear-gradient(
    180deg,
    var(--rfc-surface) 0%,
    var(--rfc-surface-2) 100%
  );
  border: 1px solid var(--rfc-line);
  border-radius: var(--rfc-radius-l);
  color: var(--rfc-paper);
  box-shadow: var(--rfc-shadow);
  position: relative;
  overflow: hidden;
}
body.rfc-skin .overlay-card::before,
body.rfc-skin .modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--rfc-hot),
    var(--rfc-plasma),
    var(--rfc-pulse)
  );
}
body.rfc-skin .overlay-card .kicker,
body.rfc-skin .modal-card .kicker {
  color: var(--rfc-pulse);
}
body.rfc-skin .overlay-card h1,
body.rfc-skin .overlay-card h2,
body.rfc-skin .modal-card h1,
body.rfc-skin .modal-card h2 {
  color: var(--rfc-paper);
}
body.rfc-skin .overlay-card p,
body.rfc-skin .modal-card p,
body.rfc-skin .modal-card .lead,
body.rfc-skin .overlay-card .muted {
  color: var(--rfc-paper-2);
}

body.rfc-skin .form-field label {
  font-family: var(--rfc-font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--rfc-paper-2);
}
body.rfc-skin .form-field input,
body.rfc-skin .form-field select,
body.rfc-skin .form-field textarea {
  background: rgba(7, 5, 15, 0.6);
  border: 1px solid var(--rfc-line-2);
  color: var(--rfc-paper);
  border-radius: var(--rfc-radius);
  font-family: var(--rfc-font-body);
}
body.rfc-skin .form-field input:focus,
body.rfc-skin .form-field select:focus,
body.rfc-skin .form-field textarea:focus {
  outline: 0;
  border-color: var(--rfc-hot);
  box-shadow: 0 0 0 3px rgba(255, 58, 160, 0.18);
}
body.rfc-skin .checkbox-field {
  color: var(--rfc-paper-2);
}
body.rfc-skin .checkbox-field a {
  color: var(--rfc-pulse);
}
body.rfc-skin .checkbox-field a:hover {
  color: var(--rfc-hot);
}
body.rfc-skin .modal-close,
body.rfc-skin .overlay-card .modal-close {
  color: var(--rfc-paper);
}
body.rfc-skin .success-message {
  color: var(--rfc-success);
}
body.rfc-skin .success-message.is-error {
  color: var(--rfc-error);
}
body.rfc-skin .error-msg {
  color: var(--rfc-error);
}

/* ---------- Cookie banner ---------- */
body.rfc-skin .cookie-banner {
  background: rgba(7, 5, 15, 0.94);
  border-top: 1px solid var(--rfc-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.rfc-skin .cookie-banner p {
  color: var(--rfc-paper-2);
  font-family: var(--rfc-font-body);
}
body.rfc-skin .cookie-banner a {
  color: var(--rfc-pulse);
}

/* ---------- Footer (redesigned for casino-floor neon) ---------- */
body.rfc-skin .site-footer {
  background: linear-gradient(180deg, var(--rfc-ink-2), var(--rfc-ink));
  border-top: 1px solid var(--rfc-line);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  margin-top: clamp(3rem, 5vw, 5rem);
  position: relative;
}
body.rfc-skin .site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--rfc-hot) 30%,
    var(--rfc-plasma) 70%,
    transparent
  );
  opacity: 0.7;
}
body.rfc-skin .footer-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
}
body.rfc-skin .legal-disclaimer {
  font-family: var(--rfc-font-body);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--rfc-muted);
  max-width: 38rem;
  margin: 1rem 0 0;
}
body.rfc-skin .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-family: var(--rfc-font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.86rem;
}
body.rfc-skin .footer-nav a {
  color: var(--rfc-paper-2);
  text-decoration: none;
  position: relative;
  padding-left: 0.9rem;
  width: max-content;
  transition: color 160ms ease;
}
body.rfc-skin .footer-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--rfc-hot);
  border-radius: 1px;
  opacity: 0.6;
  transition:
    opacity 160ms ease,
    background 160ms ease;
}
body.rfc-skin .footer-nav a:hover {
  color: var(--rfc-paper);
}
body.rfc-skin .footer-nav a:hover::before {
  opacity: 1;
  background: var(--rfc-pulse);
}

/* — Responsible play resources block (new chip-style treatment) — */
body.rfc-skin .footer-badges {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}
body.rfc-skin .footer-badges::before {
  content: "Responsible Play";
  font-family: var(--rfc-font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rfc-pulse);
  margin-bottom: 0.15rem;
}
body.rfc-skin .badge-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  border: 1px solid var(--rfc-hot);
  background: linear-gradient(
    135deg,
    rgba(255, 58, 160, 0.18),
    rgba(123, 60, 255, 0.18)
  );
  color: var(--rfc-paper);
  font-family: var(--rfc-font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
  box-shadow: 0 0 18px -4px rgba(255, 58, 160, 0.45);
}
/* Each help link as a chip-pill, with own neon border treatment */
body.rfc-skin .footer-help-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  background: rgba(124, 89, 255, 0.08);
  border: 1px solid var(--rfc-line-2);
  border-radius: 999px;
  font-family: var(--rfc-font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--rfc-paper-2);
  text-decoration: none;
  text-transform: none;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
  position: relative;
  width: max-content;
  max-width: 100%;
}
body.rfc-skin .footer-help-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rfc-hot);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 58, 160, 0.7);
}
body.rfc-skin .footer-help-link:nth-of-type(2)::before {
  background: var(--rfc-plasma);
  box-shadow: 0 0 8px rgba(123, 60, 255, 0.7);
}
body.rfc-skin .footer-help-link:nth-of-type(3)::before {
  background: var(--rfc-pulse);
  box-shadow: 0 0 8px rgba(92, 224, 255, 0.7);
}
body.rfc-skin .footer-help-link:nth-of-type(4)::before {
  background: var(--rfc-hot-2);
  box-shadow: 0 0 8px rgba(255, 107, 190, 0.7);
}
body.rfc-skin .footer-help-link:hover {
  color: var(--rfc-paper);
  background: rgba(255, 58, 160, 0.1);
  border-color: var(--rfc-hot);
  transform: translateY(-1px);
}

body.rfc-skin .footer-brand .brand-mark {
  width: 46px;
  height: 46px;
  font-size: 1.2rem;
}

/* ---------- Reveal motion ---------- */
@keyframes rfcOrbDrift {
  from {
    transform: rotate(0deg) scale(1.05);
  }
  to {
    transform: rotate(360deg) scale(1.05);
  }
}
@keyframes rfcFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rfcMarkPulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.18),
      0 0 18px -8px rgba(255, 58, 160, 0.55);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.32),
      0 0 32px -4px rgba(255, 58, 160, 0.85);
  }
}
body.rfc-skin .brand-mark {
  animation: rfcMarkPulse 4s ease-in-out infinite alternate !important;
}

body.rfc-skin .hero-copy > * {
  animation: rfcFadeUp 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
body.rfc-skin .hero-copy > *:nth-child(1) {
  animation-delay: 0.05s;
}
body.rfc-skin .hero-copy > *:nth-child(2) {
  animation-delay: 0.15s;
}
body.rfc-skin .hero-copy > *:nth-child(3) {
  animation-delay: 0.25s;
}
body.rfc-skin .hero-copy > *:nth-child(4) {
  animation-delay: 0.35s;
}
body.rfc-skin .hero-panel {
  animation: rfcFadeUp 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}
body.rfc-skin .games-grid .game-card {
  animation: rfcFadeUp 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
body.rfc-skin .games-grid .game-card:nth-child(1) {
  animation-delay: 0.1s;
}
body.rfc-skin .games-grid .game-card:nth-child(2) {
  animation-delay: 0.18s;
}
body.rfc-skin .games-grid .game-card:nth-child(3) {
  animation-delay: 0.26s;
}
body.rfc-skin .games-grid .game-card:nth-child(4) {
  animation-delay: 0.34s;
}
body.rfc-skin .games-grid .game-card:nth-child(5) {
  animation-delay: 0.42s;
}
body.rfc-skin .games-grid .game-card:nth-child(6) {
  animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  body.rfc-skin .hero-bg,
  body.rfc-skin .brand-mark,
  body.rfc-skin .hero-copy > *,
  body.rfc-skin .hero-panel,
  body.rfc-skin .games-grid .game-card {
    animation: none !important;
  }
  body.rfc-skin .game-card,
  body.rfc-skin .game-card img,
  body.rfc-skin .btn,
  body.rfc-skin .nav-cta,
  body.rfc-skin .footer-help-link {
    transition: none !important;
  }
}

/* ---------- Mobile responsiveness ---------- */
@media (max-width: 960px) {
  body.rfc-skin .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  body.rfc-skin .hero-panel {
    align-self: stretch;
    max-width: 28rem;
  }
  body.rfc-skin .header-inner {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  body.rfc-skin .responsible-grid {
    grid-template-columns: 1fr;
  }
  body.rfc-skin .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
  }
  body.rfc-skin .games-grid .game-card,
  body.rfc-skin .games-grid .game-card:nth-child(n) {
    grid-column: span 3;
  }
}

@media (max-width: 720px) {
  body.rfc-skin .site-header {
    display: none;
  }
  body.rfc-skin .main-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    margin: 0 -1rem;
    padding: 0 1rem;
  }
  body.rfc-skin .main-nav a {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  body.rfc-skin .games-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  body.rfc-skin .games-grid .game-card,
  body.rfc-skin .games-grid .game-card:nth-child(n) {
    grid-column: span 1;
  }
  body.rfc-skin .stats-strip {
    gap: 0.85rem 1.2rem;
    font-size: 0.78rem;
  }
  body.rfc-skin .footer-grid {
    grid-template-columns: 1fr;
  }
  body.rfc-skin .hero::before,
  body.rfc-skin .hero::after {
    font-size: 0.66rem;
    letter-spacing: 0.24em;
  }
  body.rfc-skin .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  body.rfc-skin .game-header-grid {
    gap: 1rem;
  }
  body.rfc-skin .game-tools {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 430px) {
  body.rfc-skin .hero {
    padding-top: clamp(2.5rem, 14vw, 4rem);
  }
  body.rfc-skin .hero::after {
    display: none;
  }
  /* body.rfc-skin .brand-name { display: none; } */
  body.rfc-skin .nav-cta {
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
  }
}
