/* ===========================================================
   BASILREACH — Holographic Chrome social-casino site
   INTL-social / _core/social-v2 track. Mobile-first: base rules
   are the small-viewport rules; every @media query below is
   min-width only (root CLAUDE.md Rule #1).
   =========================================================== */

:root {
  --rly-bg:          #0a0a12;
  --rly-bg-2:        #14121f;
  --rly-bg-3:         #1d1a30;
  --rly-holo-1:      #9be7ff;   /* icy cyan-silver */
  --rly-holo-2:      #d9b8ff;   /* lilac */
  --rly-holo-3:      #ffd2f2;   /* soft pink chrome */
  --rly-accent:      #c9a6ff;   /* primary lilac-violet accent */
  --rly-accent-deep: #6fd2ff;   /* icy cyan accent */
  --rly-white:       #f5f3ff;
  --rly-ink:         #0a0a12;
  --rly-text-dim:    #aba3c4;
  --rly-card-bg:     rgba(255, 255, 255, 0.05);
  --rly-card-border: rgba(255, 255, 255, 0.14);
  --rly-holo-grad: linear-gradient(120deg, var(--rly-holo-1), var(--rly-holo-2) 55%, var(--rly-holo-3));
}

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  background:
    radial-gradient(circle at 15% -10%, rgba(155, 231, 255, 0.14), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(217, 184, 255, 0.16), transparent 40%),
    radial-gradient(circle at 50% 120%, rgba(255, 210, 242, 0.10), transparent 55%),
    linear-gradient(170deg, var(--rly-bg) 0%, var(--rly-bg-2) 55%, var(--rly-bg-3) 100%);
  background-attachment: fixed;
  color: var(--rly-white);
  line-height: 1.55;
  overflow-x: hidden;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }
input, textarea { font-family: inherit; font-size: 16px; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 760px) {
  .container { padding: 0 32px; }
}
@media (min-width: 1180px) {
  .container { padding: 0 48px; }
}

.rly-section { padding: 48px 0; position: relative; z-index: 1; }
@media (min-width: 760px) { .rly-section { padding: 72px 0; } }

/* ---------- Typography: headings solid-color, angled shard accent,
   never gradient-clip-text (retired look) ---------- */
h1, h2, h3 { font-family: 'Chakra Petch', 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
.rly-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rly-holo-1);
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--rly-card-border);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  background: rgba(155, 231, 255, 0.06);
  margin-bottom: 14px;
}
.rly-eyebrow::before { content: "\25C6"; font-size: 10px; color: var(--rly-holo-2); }

.rly-h1, .rly-h2 { position: relative; padding-bottom: 16px; font-size: 30px; line-height: 1.15; }
.rly-h2 { font-size: 26px; }
@media (min-width: 760px) { .rly-h1 { font-size: 44px; } .rly-h2 { font-size: 32px; } }
.rly-h1::after, .rly-h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 58px; height: 5px;
  background: var(--rly-holo-grad);
  clip-path: polygon(0 0, 88% 0, 100% 100%, 12% 100%);
}
.rly-lead { color: var(--rly-text-dim); font-size: 16px; max-width: 60ch; }
@media (min-width: 760px) { .rly-lead { font-size: 18px; } }

.rly-section-head { margin-bottom: 32px; }
.rly-section-head.is-center { text-align: center; }
.rly-section-head.is-center .rly-h1::after,
.rly-section-head.is-center .rly-h2::after { left: 50%; transform: translateX(-50%); }
.rly-section-head.is-center .rly-lead { margin: 12px auto 0; }

/* ---------- Buttons (angular clipped corners = brand device) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .15s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--rly-holo-grad); color: var(--rly-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: rgba(255,255,255,0.06); color: var(--rly-white); border: 1px solid var(--rly-card-border); }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* =========================================================
   NAV — "scroll-ticker-navbar" (bespoke, new archetype)
   Slim persistent top strip; primary links render as a
   horizontally scroll-snapping ticker, not a static list.
   ========================================================= */
.rly-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 18, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rly-card-border);
}
.rly-nav__strip {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.rly-nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.rly-nav__mark { width: 26px; height: 26px; color: var(--rly-holo-2); flex: none; }
.rly-nav__mark svg { width: 100%; height: 100%; }
.rly-nav__wordmark { display: none; }
@media (min-width: 480px) { .rly-nav__wordmark { display: inline; } }

.rly-nav__ticker-wrap {
  display: none;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
@media (min-width: 900px) { .rly-nav__ticker-wrap { display: flex; } }
.rly-nav__ticker-nub {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--rly-card-border);
  background: rgba(255,255,255,0.05);
  color: var(--rly-white);
  cursor: pointer;
}
.rly-nav__ticker {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  min-width: 0;
}
.rly-nav__ticker::-webkit-scrollbar { display: none; }
.rly-nav__ticker a {
  scroll-snap-align: start;
  flex: none;
  padding: 8px 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--rly-text-dim);
  border-radius: 999px;
  white-space: nowrap;
}
.rly-nav__ticker a:hover, .rly-nav__ticker a.is-current { color: var(--rly-ink); background: var(--rly-holo-grad); }

.rly-nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.rly-nav__balance {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  min-height: 36px;
  border: 1px solid var(--rly-card-border);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  background: rgba(255,255,255,0.05);
  font-size: 13px;
  font-weight: 700;
}
.rly-nav__balance-age {
  background: var(--rly-holo-3);
  color: var(--rly-ink);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1.4;
}
.rly-nav__balance-label { display: none; color: var(--rly-text-dim); }
@media (min-width: 560px) { .rly-nav__balance-label { display: inline; } }
.rly-nav__balance-amt { color: var(--rly-holo-1); }

.rly-nav__guest { display: none; align-items: center; gap: 8px; }
@media (min-width: 640px) { .rly-nav__guest { display: flex; } }
.rly-nav__user { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rly-nav__user span[data-auth-user-email] { display: none; color: var(--rly-text-dim); }
@media (min-width: 640px) { .rly-nav__user span[data-auth-user-email] { display: inline; } }

.rly-nav__curtain-toggle {
  width: 44px; height: 44px;
  border: 1px solid var(--rly-card-border);
  background: rgba(255,255,255,0.05);
  color: var(--rly-white);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
@media (min-width: 900px) { .rly-nav__curtain-toggle { display: none; } }

[data-auth-when] { display: flex; }
[data-auth-when][hidden] { display: none !important; }

/* Mobile top-down curtain overlay (distinct from hamburger dropdown,
   slide-out drawer, bottom tabs, or radial fan used by every prior nav). */
.rly-nav-curtain {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 10, 18, 0.98);
  transform: translateY(-100%);
  transition: transform .28s ease;
  padding: 24px 20px;
  overflow-y: auto;
}
.rly-nav-curtain:not([hidden]) { transform: translateY(0); }
.rly-nav-curtain[hidden] { display: block; }
.rly-nav-curtain__close {
  width: 44px; height: 44px;
  border: 1px solid var(--rly-card-border);
  background: transparent;
  color: var(--rly-white);
  font-size: 18px;
  margin-left: auto;
  display: block;
  cursor: pointer;
}
.rly-nav-curtain nav { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.rly-nav-curtain nav a { min-height: 48px; display: flex; align-items: center; font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--rly-card-border); }
.rly-nav-curtain__age { margin-top: 20px; font-size: 13px; color: var(--rly-text-dim); }

/* ========================================================= */
/* Hero — hero-split-copy-visual (contained visual, no scrim) */
/* ========================================================= */
/* =========================================================
   HERO — "vault-teaser split" (redesign, replaces the old
   photo-hero). Copy sits left; the right panel is a live
   preview of the flagship Cyber Vault symbols instead of a
   static illustration, linking straight down to #slot.
   ========================================================= */
.rly-hero { padding: 48px 0 40px; overflow: hidden; }
@media (min-width: 760px) { .rly-hero { padding: 84px 0 64px; } }
.rly-hero-layout { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 960px) { .rly-hero-layout { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }

.rly-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--rly-card-border);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  background: rgba(111, 210, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rly-accent-deep);
  margin-bottom: 18px;
}
.rly-hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rly-accent-deep); box-shadow: 0 0 8px var(--rly-accent-deep); flex: none; }

.rly-hero-copy .rly-lead { margin-top: 16px; }

.rly-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.rly-hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding: 0; }
.rly-hero-trust li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--rly-text-dim); }
.rly-hero-trust li::before { content: "\2713"; color: var(--rly-holo-1); font-weight: 700; }

.rly-hero-showcase {
  display: block;
  position: relative;
  padding: 22px 22px 24px;
  border: 1px solid var(--rly-card-border);
  background: linear-gradient(160deg, rgba(155, 231, 255, 0.08), rgba(217, 184, 255, 0.05));
  clip-path: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);
  transition: transform .18s ease, background .18s ease;
}
.rly-hero-showcase:hover { transform: translateY(-3px); background: linear-gradient(160deg, rgba(155, 231, 255, 0.13), rgba(217, 184, 255, 0.08)); }
.rly-hero-showcase__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rly-holo-2);
}
.rly-hero-showcase__label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rly-holo-3);
  box-shadow: 0 0 0 0 rgba(255, 210, 242, .6);
  animation: rly-live-pulse 1.8s ease-out infinite;
  flex: none;
}
@keyframes rly-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 210, 242, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 210, 242, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 210, 242, 0); }
}
.rly-hero-showcase__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 18px; }
.rly-hero-showcase__tile {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--rly-card-border);
  background: var(--rly-bg-2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rly-hero-showcase:hover .rly-hero-showcase__tile { box-shadow: 0 8px 20px rgba(155, 231, 255, .14); }
.rly-hero-showcase__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rly-hero-showcase__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--rly-holo-1); }

/* stats-strip block */
.rly-stats-strip { padding: 28px 0; border-top: 1px solid var(--rly-card-border); border-bottom: 1px solid var(--rly-card-border); }
.rly-stats-strip__row { display: grid; grid-template-columns: 1fr; gap: 20px; text-align: center; }
@media (min-width: 480px) { .rly-stats-strip__row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .rly-stats-strip__row { grid-template-columns: repeat(4, 1fr); } }
.rly-stats-strip__item strong { display: block; font-family: 'Chakra Petch', sans-serif; font-size: 22px; color: var(--rly-holo-1); }
.rly-stats-strip__item span { font-size: 13px; color: var(--rly-text-dim); }

/* how-it-works-steps */
.rly-steps { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .rly-steps { grid-template-columns: repeat(4, 1fr); } }
.rly-step { background: var(--rly-card-bg); border: 1px solid var(--rly-card-border); padding: 22px 18px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.rly-step__num { font-family: 'Chakra Petch', sans-serif; font-size: 26px; color: var(--rly-holo-2); }
.rly-step h3 { font-size: 16px; margin: 8px 0 6px; }
.rly-step p { font-size: 14px; color: var(--rly-text-dim); }

/* promo-band */
.rly-promo-band { background: linear-gradient(120deg, rgba(155,231,255,0.10), rgba(217,184,255,0.10)); border: 1px solid var(--rly-card-border); padding: 28px 20px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; clip-path: polygon(0 0, 100% 0, 100% 100%, 3% 100%, 0 88%); }
@media (min-width: 760px) { .rly-promo-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 40px; } }
.rly-promo-band h3 { font-size: 20px; }
.rly-promo-band p { color: var(--rly-text-dim); font-size: 14px; margin-top: 6px; max-width: 46ch; }

/* ========================================================= */
/* Game cards — "faceted-scrim-shard" (bespoke): angular clip- */
/* path tile, bottom scrim caption, whole-tile click target.   */
/* ========================================================= */
.rly-game-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 420px) { .rly-game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .rly-game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .rly-game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1180px) { .rly-game-grid { grid-template-columns: repeat(5, 1fr); } }

.rly-game-carousels { display: flex; flex-direction: column; gap: 18px; }

.rly-game-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.rly-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  clip-path: polygon(0 0, 92% 0, 100% 14%, 100% 100%, 8% 100%, 0 86%);
  border: 1px solid var(--rly-card-border);
  display: block;
  cursor: pointer;
}
.rly-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.rly-card:hover .rly-card__img { transform: scale(1.06); }
.rly-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,18,0.95) 0%, rgba(10,10,18,0.55) 42%, transparent 70%);
}
.rly-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; }
.rly-card__tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rly-holo-1); margin-bottom: 4px; }
.rly-card__title { font-size: 14px; font-weight: 700; font-family: 'Chakra Petch', sans-serif; }
.rly-card__meta { font-size: 11px; color: var(--rly-text-dim); margin-top: 2px; display: flex; gap: 8px; }
.rly-card__cta {
  position: absolute; top: 10px; right: 10px;
  min-width: 44px; min-height: 28px;
  padding: 4px 10px;
  background: var(--rly-holo-grad);
  color: var(--rly-ink);
  font-size: 11px;
  font-weight: 800;
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}

.rly-page-footnote { margin-top: 24px; font-size: 13px; color: var(--rly-text-dim); }

/* ========================================================= */
/* GAME GUIDE PAGES (game-*.php)                              */
/* ========================================================= */
.rly-breadcrumb { font-size: 13px; color: var(--rly-text-dim); padding: 18px 0 0; }
.rly-breadcrumb a { color: var(--rly-holo-1); }

.rly-game-hero { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 22px 0 36px; align-items: center; }
@media (min-width: 860px) { .rly-game-hero { grid-template-columns: 0.9fr 1.1fr; gap: 44px; } }
.rly-game-hero__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  clip-path: polygon(0 0, 92% 0, 100% 14%, 100% 100%, 8% 100%, 0 86%);
  border: 1px solid var(--rly-card-border);
}
.rly-game-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rly-game-hero__body .rly-lead { margin: 14px 0 22px; }

.rly-prose { max-width: 760px; }
.rly-prose h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 24px;
  color: var(--rly-white);
  margin: 34px 0 14px;
  position: relative;
  padding-bottom: 12px;
}
.rly-prose h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 46px; height: 4px;
  background: var(--rly-holo-grad);
  clip-path: polygon(0 0, 88% 0, 100% 100%, 12% 100%);
}
.rly-prose h2:first-child { margin-top: 0; }
.rly-prose h3 { font-family: 'Chakra Petch', sans-serif; font-size: 18px; color: var(--rly-holo-2); margin: 22px 0 10px; }
.rly-prose p { color: var(--rly-text-dim); font-size: 15px; line-height: 1.75; margin: 0 0 14px; }
.rly-prose ul, .rly-prose ol { margin: 0 0 16px; padding-left: 20px; color: var(--rly-text-dim); font-size: 15px; line-height: 1.7; }
.rly-prose li { margin-bottom: 6px; }
.rly-prose li::marker { color: var(--rly-holo-1); }
.rly-prose a { color: var(--rly-holo-1); }
.rly-prose strong { color: var(--rly-white); }

.rly-recs { margin-top: 44px; }

/* Author byline: faceted avatar frame + short thesis-style bio,
   sits directly under the article body, above the responsible-play
   footnote. */
.rly-author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 40px;
  padding: 18px;
  border: 1px solid var(--rly-card-border);
  background: rgba(255,255,255,0.04);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  max-width: 760px;
}
.rly-author-card__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--rly-card-border);
}
.rly-author-card__avatar img { width: 100%; height: 100%; display: block; }
.rly-author-card__body { min-width: 0; }
.rly-author-card__label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rly-holo-1); margin-bottom: 4px; }
.rly-author-card__name { font-family: 'Chakra Petch', sans-serif; font-size: 16px; color: var(--rly-white); }
.rly-author-card__role { font-size: 12px; color: var(--rly-text-dim); margin-bottom: 8px; }
.rly-author-card__bio { margin: 0; padding-left: 18px; font-size: 13px; color: var(--rly-text-dim); line-height: 1.6; }
.rly-author-card__bio li { margin-bottom: 3px; }
.rly-author-card__bio li::marker { color: var(--rly-holo-2); }

/* "Full Guide" link sits next to each game tile, as a sibling of the
   signup-trigger .rly-card anchor (never nested inside it — nested
   <a> is invalid and the signup anchor has no href guard). The wrap
   div is the actual flex/grid item now; .rly-card keeps sizing the
   box via aspect-ratio and the guide link overlays its corner. */
.rly-card-wrap { position: relative; }
.rly-game-carousel .rly-card-wrap { flex: none; width: 62vw; scroll-snap-align: start; }
@media (min-width: 640px) { .rly-game-carousel .rly-card-wrap { width: 260px; } }
.rly-card__guide-link {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  color: var(--rly-ink);
  background: rgba(245, 243, 255, 0.92);
  padding: 4px 10px;
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}
.rly-card__guide-link:hover { background: var(--rly-white); }

/* ========================================================= */
/* Slot machine — "faceted-prism-bay" (bespoke UI chrome)      */
/* ========================================================= */
.rly-slot { position: relative; }
.rly-slot__stage {
  position: relative;
  padding: 24px 16px 32px;
  border: 1px solid var(--rly-card-border);
  clip-path: polygon(0 0, 96% 0, 100% 6%, 100% 100%, 4% 100%, 0 94%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.rly-slot__stage::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,18,0.55), rgba(10,10,18,0.9));
}
.rly-slot__stage.is-flash::before { animation: rly-flash .5s ease; }
@keyframes rly-flash { 0% { background: rgba(217,184,255,0.35); } 100% { background: linear-gradient(180deg, rgba(10,10,18,0.55), rgba(10,10,18,0.9)); } }
.rly-slot__inner { position: relative; z-index: 1; }

.rly-slot__stats { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.rly-slot__stat { background: rgba(255,255,255,0.06); border: 1px solid var(--rly-card-border); padding: 8px 14px; clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px); }
.rly-slot__stat.is-pulsing { animation: rly-pulse .9s ease; }
@keyframes rly-pulse { 0% { transform: scale(1); } 30% { transform: scale(1.06); } 100% { transform: scale(1); } }
.rly-slot__stat span { display: block; font-size: 11px; color: var(--rly-text-dim); }
.rly-slot__stat strong { font-family: 'Chakra Petch', sans-serif; font-size: 18px; color: var(--rly-holo-1); }

/* faceted panel bay: reels sit inside angular glass facets, divided by
   thin light-ray gradient rules instead of a traditional cabinet frame */
.rly-slot__bay {
  padding: 14px;
  background: rgba(10,10,18,0.55);
  border: 1px solid var(--rly-card-border);
  clip-path: polygon(0 6%, 4% 0, 96% 0, 100% 6%, 100% 94%, 96% 100%, 4% 100%, 0 94%);
}
/* game-ui */
.rly-slot__reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
}
.rly-slot__reels.is-spinning .rly-slot__cell img { filter: blur(2px); }
.rly-slot__cell {
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.04);
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}
.rly-slot__cell img { width: 100%; height: 100%; object-fit: cover; }
.rly-slot__cell.is-win { outline: 2px solid var(--rly-holo-2); }
.rly-slot__cell.is-win::after { content: ""; position: absolute; inset: 0; background: rgba(217,184,255,0.28); }

.rly-slot__controls { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.rly-slot__bet { display: flex; align-items: center; gap: 8px; }
.rly-slot__bet button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rly-card-border); background: rgba(255,255,255,0.06); color: var(--rly-white); font-size: 18px; cursor: pointer; }
.rly-slot__bet button:disabled { opacity: .4; cursor: not-allowed; }
.rly-slot__bet-val { min-width: 64px; text-align: center; font-family: 'Chakra Petch', sans-serif; }
.rly-slot__spin {
  margin-left: auto;
  min-width: 96px;
  min-height: 56px;
  background: var(--rly-holo-grad);
  color: var(--rly-ink);
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}
.rly-slot__spin.is-spinning { opacity: .7; }
.rly-slot__auto, .rly-slot__info { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rly-card-border); background: rgba(255,255,255,0.06); color: var(--rly-white); cursor: pointer; }
.rly-slot__auto.is-active { background: var(--rly-holo-grad); color: var(--rly-ink); }

.rly-slot__win {
  position: absolute;
  top: 14px; left: 50%;
  transform: translate(-50%, -12px);
  padding: 10px 20px;
  background: var(--rly-holo-grad);
  color: var(--rly-ink);
  font-weight: 800;
  font-size: 14px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity .2s ease, transform .2s ease;
}
.rly-slot__win.is-visible { opacity: 1; transform: translate(-50%, 0); }

.rly-slot__note--legal { margin-top: 14px; font-size: 12px; color: var(--rly-text-dim); }

/* Win animation — "spectrum-sweep-flare": a diagonal beam of light
   sweeps the stage with a soft flare trail; no discrete burst particles. */
.rly-beam-sweep {
  position: absolute;
  top: -20%; left: -30%;
  width: 60%; height: 140%;
  background: linear-gradient(100deg, transparent, rgba(155,231,255,0.0) 30%, rgba(217,184,255,0.55) 48%, rgba(255,210,242,0.55) 52%, rgba(155,231,255,0.0) 70%, transparent);
  transform: rotate(12deg) translateX(-40%);
  pointer-events: none;
  z-index: 4;
  animation: rly-beam-move 1.1s ease forwards;
}
@keyframes rly-beam-move {
  0% { transform: rotate(12deg) translateX(-60%); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: rotate(12deg) translateX(220%); opacity: 0; }
}
.rly-flare {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--rly-holo-2) 60%, transparent 72%);
  pointer-events: none;
  z-index: 4;
  animation: rly-flare-fade var(--rly-flare-dur, 900ms) ease-out forwards;
}
@keyframes rly-flare-fade {
  0% { opacity: 0; transform: scale(.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.6); }
}
@media (prefers-reduced-motion: reduce) {
  .rly-beam-sweep, .rly-flare { animation: none; display: none; }
}

/* Paytable dialog (mobile bottom-sheet, shared behaviour) */
.rly-paytable { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; }
.rly-paytable[hidden] { display: none; }
.rly-paytable__backdrop { position: absolute; inset: 0; background: rgba(10,10,18,0.7); }
.rly-paytable__sheet { position: relative; z-index: 1; width: 100%; max-height: 82vh; overflow-y: auto; background: var(--rly-bg-2); border: 1px solid var(--rly-card-border); padding: 20px; }
@media (min-width: 640px) { .rly-paytable { align-items: center; justify-content: center; } .rly-paytable__sheet { max-width: 480px; } }
.rly-paytable__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
/* game-ui */
.rly-paytable__row { display: grid; grid-template-columns: 32px 1fr 44px 44px 44px; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--rly-card-border); }
.rly-paytable__row img { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; }
.rly-paytable__row .val { text-align: right; color: var(--rly-holo-1); }
.rly-paytable__line { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 12px; }
/* game-ui */
.rly-paytable__line-grid { display: grid; grid-template-columns: repeat(5, 6px); grid-template-rows: repeat(3, 6px); gap: 2px; }
.rly-paytable__line-dot { width: 6px; height: 6px; border-radius: 1px; background: rgba(255,255,255,0.14); }
.rly-paytable__line-dot.is-on { background: var(--rly-holo-2); }

/* ========================================================= */
/* Auth modal — "numbered-fold-stack" (bespoke): centered card,
   two accordion fold headers stacked above a single shared body
   region — not tabs, not a slide panel, not a flip, not a sheet. */
/* ========================================================= */
.rly-auth { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rly-auth[hidden] { display: none; }
.rly-auth__catcher { position: absolute; inset: 0; background: rgba(10,10,18,0.78); border: none; cursor: pointer; }
.rly-auth__card { position: relative; z-index: 1; width: 100%; max-width: 420px; max-height: 92vh; overflow-y: auto; background: var(--rly-bg-2); border: 1px solid var(--rly-card-border); clip-path: polygon(0 0, 96% 0, 100% 4%, 100% 100%, 4% 100%, 0 96%); padding: 24px; }
.rly-auth__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.rly-auth__title { font-size: 20px; }
.rly-auth__close { width: 40px; height: 40px; border: 1px solid var(--rly-card-border); background: transparent; color: var(--rly-white); cursor: pointer; }

.rly-auth__accordion { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.rly-auth__fold-head {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--rly-card-border);
  color: var(--rly-white);
  font-weight: 700;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}
.rly-auth__fold-head.is-open { background: var(--rly-holo-grad); color: var(--rly-ink); }
.rly-auth__fold-num { font-family: 'Chakra Petch', sans-serif; opacity: .7; }
.rly-auth__fold-chevron { margin-left: auto; transition: transform .2s ease; }
.rly-auth__fold-head.is-open .rly-auth__fold-chevron { transform: rotate(180deg); }

.rly-auth__lead { font-size: 14px; color: var(--rly-text-dim); margin-bottom: 14px; }

.rly-auth__fine { font-size: 11px; color: var(--rly-text-dim); margin-top: 4px; }
.rly-auth__field { display: block; margin-bottom: 12px; }
.rly-auth__field span { display: block; font-size: 13px; color: var(--rly-text-dim); margin-bottom: 6px; }
.rly-auth__field input { width: 100%; min-height: 48px; padding: 10px 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--rly-card-border); color: var(--rly-white); }
.rly-auth__error { color: #ff9a9a; font-size: 13px; min-height: 0; margin-bottom: 4px; }
.rly-auth__error:empty { display: none; }
.rly-auth__submit { width: 100%; margin-top: 4px; }

/* ========================================================= */
/* Cookie consent banner (Consent Mode v2) — shared behaviour */
/* ========================================================= */
.rly-cookie { position: fixed; inset: auto 0 0 0; z-index: 90; }
.rly-cookie[hidden] { display: none; }
.rly-cookie__panel { background: var(--rly-bg-2); border-top: 1px solid var(--rly-card-border); padding: 20px; max-height: 70vh; overflow-y: auto; }
.rly-cookie__panel[hidden] { display: none; }
.rly-cookie__panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rly-cookie__panel-intro { font-size: 13px; color: var(--rly-text-dim); margin-bottom: 14px; }
.rly-cookie__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rly-card-border); }
.rly-cookie__row-copy strong { display: block; font-size: 14px; }
.rly-cookie__row-copy span { font-size: 12px; color: var(--rly-text-dim); }
.rly-cookie__locked-badge { font-size: 11px; color: var(--rly-text-dim); }
.rly-cookie__toggle { width: 44px; height: 26px; border-radius: 13px; border: 1px solid var(--rly-card-border); background: rgba(255,255,255,0.08); position: relative; cursor: pointer; flex: none; }
.rly-cookie__toggle-dot { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--rly-white); transition: transform .2s ease; }
.rly-cookie__toggle.is-on { background: var(--rly-holo-2); }
.rly-cookie__toggle.is-on .rly-cookie__toggle-dot { transform: translateX(18px); }
.rly-cookie__panel-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.rly-cookie__bar { background: rgba(10,10,18,0.97); border-top: 1px solid var(--rly-card-border); padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 760px) { .rly-cookie__bar { flex-direction: row; align-items: center; justify-content: space-between; } }
.rly-cookie__text { font-size: 13px; color: var(--rly-text-dim); max-width: 60ch; }
.rly-cookie__text a { color: var(--rly-holo-1); text-decoration: underline; }
.rly-cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ========================================================= */
/* Footer — "weighted-zone-band" (bespoke): three unequal-width
   zones in ONE band (not columns-first, not stacked-centered,
   not a single dense row, not quad-grid, not split-column-stack).
   ========================================================= */
.rly-footer { border-top: 1px solid var(--rly-card-border); padding-top: 40px; margin-top: 40px; }
.rly-footer__band { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 28px; }
@media (min-width: 900px) { .rly-footer__band { grid-template-columns: 1.4fr 0.9fr 1fr; } }
.rly-footer__brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.rly-footer__mark { width: 24px; height: 24px; color: var(--rly-holo-2); }
.rly-footer__mark svg { width: 100%; height: 100%; }
.rly-footer__disclaimer { font-size: 13px; color: var(--rly-text-dim); max-width: 44ch; }
.rly-footer__zone--rg h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--rly-text-dim); margin-bottom: 12px; }
.rly-footer__orgs { display: flex; flex-wrap: wrap; gap: 10px; }
.rly-footer__org { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 12px; background: rgba(10,10,18,0.5); border: 1px solid var(--rly-card-border); }
.rly-footer__org img { max-height: 22px; width: auto; }
.rly-footer__org--text { font-size: 12px; font-weight: 700; color: var(--rly-holo-1); }
.rly-footer__icon-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 420px) { .rly-footer__icon-grid { grid-template-columns: repeat(2, 1fr); } }
.rly-footer__icon-grid a { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: var(--rly-text-dim); }
.rly-footer__icon-grid a .ic { flex: none; }
.rly-footer__bottombar {
  border-top: 1px solid var(--rly-card-border);
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--rly-text-dim);
  position: relative;
}
.rly-footer__bottombar::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 120px; height: 3px;
  background: var(--rly-holo-grad);
  transform: skewX(-20deg);
}
@media (min-width: 760px) { .rly-footer__bottombar { flex-direction: row; justify-content: space-between; } }

/* ---------- Prose / legal pages — sticky ToC anchor-jump layout,
   genuinely different from the linear centered-header + h2-stack
   pattern every prior INTL-social site shipped ---------- */
.rly-legal { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 900px) { .rly-legal { flex-direction: row; align-items: flex-start; gap: 40px; } }
.rly-legal__toc { flex: 0 0 220px; position: static; border: 1px solid var(--rly-card-border); padding: 16px; }
@media (min-width: 900px) { .rly-legal__toc { position: sticky; top: 80px; } }
.rly-legal__toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--rly-text-dim); margin-bottom: 10px; }
.rly-legal__toc a { display: block; min-height: 36px; display: flex; align-items: center; font-size: 13px; color: var(--rly-text-dim); border-left: 2px solid transparent; padding-left: 10px; }
.rly-legal__toc a:hover { color: var(--rly-holo-1); border-left-color: var(--rly-holo-2); }
.rly-legal__body { flex: 1 1 auto; min-width: 0; }
.rly-legal__body section { margin-bottom: 28px; scroll-margin-top: 76px; }
.rly-legal__body h2 { font-size: 18px; margin-bottom: 8px; font-family: 'Chakra Petch', sans-serif; }
.rly-legal__body p, .rly-legal__body li { font-size: 14px; color: var(--rly-text-dim); margin-bottom: 8px; }
.rly-legal__body ul { padding-left: 18px; list-style: disc; }

/* ---------- FAQ accordion ---------- */
.rly-faq { display: flex; flex-direction: column; gap: 8px; }
.rly-faq__item { border: 1px solid var(--rly-card-border); }
.rly-faq__q { width: 100%; text-align: left; min-height: 52px; padding: 14px 16px; background: rgba(255,255,255,0.03); border: none; color: var(--rly-white); font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.rly-faq__a { padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; font-size: 13px; color: var(--rly-text-dim); }
.rly-faq__item.is-open .rly-faq__a { padding: 0 16px 16px; max-height: 400px; }

/* ---------- Generic content grid (promotions/tournaments/leaderboard/help-center) ---------- */
.rly-tile-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .rly-tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .rly-tile-grid { grid-template-columns: repeat(3, 1fr); } }
.rly-tile { background: var(--rly-card-bg); border: 1px solid var(--rly-card-border); padding: 20px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.rly-tile h3 { font-size: 16px; margin-bottom: 8px; }
.rly-tile p { font-size: 13px; color: var(--rly-text-dim); }
.rly-tile__rank { font-family: 'Chakra Petch', sans-serif; font-size: 22px; color: var(--rly-holo-1); margin-bottom: 6px; }

.rly-contact-form { max-width: 520px; display: flex; flex-direction: column; gap: 14px; }
.rly-contact-form label { display: block; }
.rly-contact-form label span { display: block; font-size: 13px; color: var(--rly-text-dim); margin-bottom: 6px; }
.rly-contact-form input, .rly-contact-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--rly-card-border); color: var(--rly-white); }
.rly-contact-form textarea { min-height: 120px; resize: vertical; }
