/* Rumi Slot — main stylesheet
   Palette derived from official banners: deep purple + gold metallic + crimson + black
   Premium casino aesthetic, dark-mode default */

:root {
  /* Surface */
  --void: #0a0510;
  --dusk: #150825;
  --dusk-up: #1f0f33;
  --dusk-glow: #2a1444;
  --velvet: #18092a;
  --velvet-soft: #1f0e36;

  /* Brand metallic */
  --bullion: #d4a847;
  --bullion-bright: #f4cf6a;
  --bullion-deep: #a87c2d;
  --bullion-rich: #c08e2a;

  /* Accent crimson */
  --garnet: #c8333d;
  --garnet-bright: #e0464f;
  --garnet-deep: #8e1d24;

  /* Text */
  --pearl: #f8f4ec;
  --pearl-dim: #d8cfb8;
  --pearl-faint: #9a8d76;
  --shadow-text: rgba(0, 0, 0, 0.6);

  /* Edges */
  --hairline: rgba(212, 168, 71, 0.18);
  --hairline-strong: rgba(212, 168, 71, 0.35);
  --hairline-soft: rgba(248, 244, 236, 0.08);

  /* Gradients */
  --grad-curtain: linear-gradient(160deg, #1f0f33 0%, #0a0510 100%);
  --grad-spotlight: radial-gradient(ellipse at top, #2a1444 0%, #0a0510 70%);
  --grad-bullion: linear-gradient(180deg, #f4cf6a 0%, #d4a847 50%, #a87c2d 100%);
  --grad-bullion-shine: linear-gradient(135deg, #f4cf6a 0%, #c08e2a 100%);
  --grad-garnet: linear-gradient(180deg, #e0464f 0%, #c8333d 50%, #8e1d24 100%);
  --grad-velvet: linear-gradient(135deg, #2a1444 0%, #18092a 100%);
  --grad-card: linear-gradient(170deg, rgba(42, 20, 68, 0.6) 0%, rgba(24, 9, 42, 0.4) 100%);

  /* Shadows */
  --halo-soft: 0 2px 10px rgba(0, 0, 0, 0.4);
  --halo-mid: 0 8px 28px rgba(0, 0, 0, 0.5);
  --halo-strong: 0 18px 50px rgba(0, 0, 0, 0.7);
  --halo-bullion: 0 6px 24px rgba(212, 168, 71, 0.4);
  --halo-bullion-strong: 0 10px 36px rgba(212, 168, 71, 0.55);
  --halo-garnet: 0 6px 24px rgba(200, 51, 61, 0.45);
  --halo-glow-purple: 0 0 40px rgba(101, 41, 175, 0.35);

  /* Radius */
  --bend-tiny: 4px;
  --bend-sm: 8px;
  --bend-md: 14px;
  --bend-lg: 22px;
  --bend-pill: 999px;

  /* Type */
  --serif-display: 'Cinzel', 'Playfair Display', Georgia, serif;
  --sans-body: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  --sans-rtl: 'Noto Nastaliq Urdu', serif;

  /* Layout */
  --hold: 1180px;
  --gutter: 16px;
  --marquee-h: 64px;
  --footdock: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--pearl);
  background: var(--void);
  background-image: var(--grad-spotlight);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: var(--footdock);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bullion-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--bullion); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--pearl);
}
h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  background: var(--grad-bullion);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 30px rgba(212, 168, 71, 0.2);
}
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.45rem); color: var(--bullion-bright); }
h4 { font-size: 1.05rem; color: var(--bullion-bright); }
p { margin: 0 0 1em; color: var(--pearl-dim); }
ul, ol { color: var(--pearl-dim); }
strong { color: var(--pearl); font-weight: 700; }

.hold { max-width: var(--hold); margin: 0 auto; padding: 0 var(--gutter); }
.gilded { color: var(--bullion-bright); }
.crimsoned { color: var(--garnet-bright); }
.text-grad-bullion {
  background: var(--grad-bullion);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   MARQUEE — top bar (5th distinct: marquee/curtainmenu/compass)
   ============================================ */
.marquee {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 5, 16, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  height: var(--marquee-h);
  box-shadow: var(--halo-soft);
}
.marquee .hold {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.crest {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.crest:hover { text-decoration: none; }
.crest img {
  height: 42px;
  width: 42px;
  border-radius: var(--bend-sm);
  box-shadow: var(--halo-bullion);
}
.crest-name {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--grad-bullion);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.curtainmenu {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--bend-sm);
  border: 1px solid var(--hairline);
  background: rgba(212, 168, 71, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.curtainmenu i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bullion);
  margin: 0 auto;
  transition: 0.3s;
  border-radius: 1px;
}
.curtainmenu.lit i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.curtainmenu.lit i:nth-child(2) { opacity: 0; }
.curtainmenu.lit i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.compass { display: none; }

/* Drape (overlay) and curtain (drawer) */
.curtain {
  position: fixed;
  top: var(--marquee-h);
  right: 0;
  width: 86%;
  max-width: 340px;
  height: calc(100vh - var(--marquee-h));
  background: var(--grad-velvet);
  border-left: 1px solid var(--hairline);
  padding: 22px 18px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 99;
  box-shadow: var(--halo-strong);
}
.curtain.parted { transform: translateX(0); }
.curtain ul { list-style: none; padding: 0; margin: 0; }
.curtain li { margin-bottom: 4px; }
.curtain a {
  display: block;
  padding: 13px 14px;
  border-radius: var(--bend-sm);
  color: var(--pearl-dim);
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
}
.curtain a:hover {
  background: rgba(212, 168, 71, 0.08);
  color: var(--bullion-bright);
  border-color: var(--hairline);
  text-decoration: none;
}
.curtain .play-cta {
  background: var(--grad-bullion);
  color: var(--void);
  text-align: center;
  margin-top: 16px;
  font-weight: 800;
  border: 0;
  box-shadow: var(--halo-bullion);
}
.curtain .play-cta:hover { color: var(--void); }
.curtain .lang-row {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-soft);
}
.curtain .lang-row a {
  flex: 1;
  text-align: center;
  border: 1px solid var(--hairline);
  padding: 10px;
  font-size: 0.9rem;
}
.curtain .lang-row a.live {
  background: rgba(212, 168, 71, 0.15);
  border-color: var(--bullion);
  color: var(--bullion-bright);
}

.drape {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drape.parted { opacity: 1; pointer-events: all; }

/* ============================================
   SPOTLIGHT — hero
   ============================================ */
.spotlight {
  padding: 26px 0 36px;
  position: relative;
  overflow: hidden;
}
.spotlight::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 71, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.spotlight > * { position: relative; }

.framepic {
  border-radius: var(--bend-lg);
  overflow: hidden;
  box-shadow: var(--halo-strong), 0 0 0 1px var(--hairline-strong);
  margin-bottom: 22px;
  background: var(--velvet);
  position: relative;
}
.framepic::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 168, 71, 0.2);
  border-radius: var(--bend-lg);
  pointer-events: none;
}
.framepic img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.framepic a { display: block; }
.framepic a:hover img { transform: scale(1.03); }
.framepic a:hover { text-decoration: none; }

.spotlight h1 { text-align: center; margin-bottom: 14px; }
.tagline {
  text-align: center;
  font-family: var(--serif-display);
  font-size: 1.1rem;
  color: var(--pearl-dim);
  margin-bottom: 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  letter-spacing: 0.02em;
}

.brassrow {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  font-size: 0.85rem;
}
.brassrow span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 168, 71, 0.08);
  padding: 6px 12px;
  border-radius: var(--bend-pill);
  border: 1px solid var(--hairline);
  color: var(--pearl-dim);
}
.brassrow b { color: var(--bullion-bright); font-weight: 700; }

.actbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

/* Buttons */
.knob {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--bend-pill);
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  font-family: var(--sans-body);
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 0;
  text-align: center;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}
.knob:hover { text-decoration: none; transform: translateY(-2px); }
.knob:active { transform: translateY(0); }
.knob-bullion {
  background: var(--grad-bullion);
  color: var(--void);
  box-shadow: var(--halo-bullion);
}
.knob-bullion:hover { box-shadow: var(--halo-bullion-strong); color: var(--void); filter: brightness(1.08); }
.knob-garnet {
  background: var(--grad-garnet);
  color: var(--pearl);
  box-shadow: var(--halo-garnet);
}
.knob-garnet:hover { color: var(--pearl); filter: brightness(1.08); }
.knob-ghost {
  background: transparent;
  color: var(--bullion-bright);
  border: 2px solid var(--bullion);
}
.knob-ghost:hover { background: rgba(212, 168, 71, 0.1); color: var(--bullion-bright); }
.knob-bigger {
  font-size: 1.1rem;
  padding: 18px 30px;
}
.knob-fill { width: 100%; }

/* ============================================
   PERKS — feature row
   ============================================ */
.perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.perk {
  background: var(--grad-card);
  border: 1px solid var(--hairline);
  border-radius: var(--bend-md);
  padding: 18px 14px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.perk:hover {
  transform: translateY(-3px);
  border-color: var(--bullion);
  box-shadow: var(--halo-mid);
}
.perk em {
  font-style: normal;
  font-size: 1.85rem;
  display: block;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 8px rgba(212, 168, 71, 0.3));
}
.perk strong {
  font-weight: 700;
  font-size: 0.92rem;
  display: block;
  line-height: 1.25;
  color: var(--bullion-bright);
}
.perk small {
  font-size: 0.78rem;
  color: var(--pearl-faint);
  display: block;
  margin-top: 4px;
}

/* ============================================
   ACT — content sections
   ============================================ */
.act {
  padding: 40px 0;
  position: relative;
}
.act + .act { border-top: 1px solid var(--hairline-soft); }
.act.gilded-bg { background: linear-gradient(180deg, rgba(42, 20, 68, 0.4), rgba(10, 5, 16, 0.7)); }
.act.shadowed { background: var(--velvet); }
.act.lit-bg {
  background: var(--grad-velvet);
  position: relative;
}
.act.lit-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 168, 71, 0.08), transparent 60%);
  pointer-events: none;
}
.act.lit-bg > * { position: relative; }

.banner-tag {
  display: inline-block;
  font-family: var(--sans-body);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bullion-bright);
  background: rgba(212, 168, 71, 0.1);
  padding: 5px 14px;
  border-radius: var(--bend-pill);
  border: 1px solid var(--hairline);
  margin-bottom: 14px;
}
.intro {
  font-size: 1.05rem;
  color: var(--pearl-dim);
  margin-bottom: 22px;
  font-family: var(--serif-display);
  font-style: italic;
  line-height: 1.5;
}

/* ============================================
   PROCESSION — install/login steps
   ============================================ */
.procession {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 22px;
}
.stage-card {
  background: var(--grad-card);
  border: 1px solid var(--hairline);
  border-radius: var(--bend-md);
  padding: 24px 20px;
  position: relative;
  box-shadow: var(--halo-soft);
  transition: border-color 0.2s, transform 0.2s;
}
.stage-card:hover { border-color: var(--bullion); transform: translateY(-2px); }
.tally {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--grad-bullion);
  color: var(--void);
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: var(--halo-bullion);
  font-family: var(--serif-display);
}
.stage-card h3 { margin-bottom: 6px; font-size: 1.1rem; color: var(--bullion-bright); }
.stage-card p { margin: 0; font-size: 0.95rem; }

/* ============================================
   GAMETRAY — game type tiles
   ============================================ */
.gametray {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.gametile {
  background: var(--grad-card);
  border: 1px solid var(--hairline);
  border-radius: var(--bend-md);
  padding: 20px 14px;
  text-align: center;
  transition: all 0.2s;
}
.gametile:hover {
  border-color: var(--bullion);
  transform: translateY(-3px);
  box-shadow: var(--halo-mid);
}
.gametile em {
  font-style: normal;
  font-size: 1.85rem;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 6px rgba(212, 168, 71, 0.3));
}
.gametile h4 {
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0 0 4px;
  color: var(--bullion-bright);
  font-family: var(--sans-body);
}
.gametile small {
  font-size: 0.78rem;
  color: var(--pearl-faint);
  line-height: 1.4;
  display: block;
}

/* ============================================
   LEDGER — file info
   ============================================ */
.ledger {
  background: var(--velvet-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--bend-md);
  padding: 0;
  overflow: hidden;
  margin: 22px 0;
  box-shadow: var(--halo-soft);
}
.ledger-rows {
  display: grid;
  grid-template-columns: 1fr;
}
.ledger-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline-soft);
  gap: 12px;
}
.ledger-line:last-child { border-bottom: 0; }
.ledger-line > span:first-child {
  color: var(--pearl-faint);
  font-size: 0.88rem;
  flex-shrink: 0;
}
.ledger-line > span:last-child {
  font-weight: 700;
  text-align: right;
  font-size: 0.95rem;
  color: var(--bullion-bright);
}

/* ============================================
   VAULT — login/register block
   ============================================ */
.vault {
  background: var(--grad-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--bend-lg);
  padding: 26px 22px;
  margin: 24px 0;
  box-shadow: var(--halo-mid);
  position: relative;
  overflow: hidden;
}
.vault::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-bullion);
}
.vault h3 { font-size: 1.25rem; margin-bottom: 12px; }
.numlist {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  counter-reset: numct;
}
.numlist li {
  counter-increment: numct;
  padding: 12px 0 12px 44px;
  position: relative;
  border-bottom: 1px dashed var(--hairline-soft);
  font-size: 0.95rem;
  color: var(--pearl-dim);
}
.numlist li:last-child { border-bottom: 0; }
.numlist li::before {
  content: counter(numct);
  position: absolute;
  left: 0;
  top: 8px;
  width: 30px;
  height: 30px;
  background: var(--grad-bullion);
  color: var(--void);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  font-family: var(--serif-display);
  box-shadow: var(--halo-bullion);
}

/* ============================================
   ASKINGS — FAQ
   ============================================ */
.askings { margin: 22px 0; }
.askings details {
  background: var(--velvet-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--bend-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.askings details[open] {
  border-color: var(--bullion);
  box-shadow: var(--halo-mid);
}
.askings summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--pearl);
}
.askings summary::-webkit-details-marker { display: none; }
.askings summary::after {
  content: '+';
  color: var(--bullion-bright);
  font-size: 1.7rem;
  font-weight: 300;
  transition: transform 0.2s;
  flex-shrink: 0;
  font-family: var(--serif-display);
}
.askings details[open] summary::after { transform: rotate(45deg); }
.askings details > div {
  padding: 0 18px 18px;
  color: var(--pearl-dim);
  font-size: 0.95rem;
}
.askings details > div p { margin: 0 0 0.7em; }
.askings details > div p:last-child { margin-bottom: 0; }

/* ============================================
   SCROLL — long-form SEO content
   ============================================ */
.scroll { position: relative; margin-top: 22px; }
.scroll-text {
  position: relative;
  max-height: 420px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.scroll-text.unfurled { max-height: 9000px; }
.scroll-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, var(--void) 95%);
  pointer-events: none;
  transition: opacity 0.4s;
}
.scroll-text.unfurled::after { opacity: 0; }
.scroll-text h3 { margin-top: 1.4em; font-size: 1.18rem; }
.scroll-text h3:first-child { margin-top: 0; }
.scroll-text p { font-size: 0.97rem; line-height: 1.75; }
.unfold {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 22px;
  background: var(--grad-bullion);
  color: var(--void);
  border-radius: var(--bend-pill);
  font-weight: 800;
  margin-top: 14px;
  font-family: var(--sans-body);
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: var(--halo-bullion);
  cursor: pointer;
  border: 0;
}
.unfold:hover { box-shadow: var(--halo-bullion-strong); filter: brightness(1.08); }

/* ============================================
   TROUMPET — full-width promo callout
   ============================================ */
.trumpet {
  background: var(--grad-bullion);
  color: var(--void);
  border-radius: var(--bend-lg);
  padding: 32px 24px;
  text-align: center;
  margin: 32px 0;
  box-shadow: var(--halo-bullion);
  position: relative;
  overflow: hidden;
}
.trumpet::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 60%);
}
.trumpet > * { position: relative; }
.trumpet h3 { color: var(--void); font-size: 1.45rem; margin-bottom: 8px; font-family: var(--serif-display); }
.trumpet p { color: rgba(10, 5, 16, 0.85); margin-bottom: 20px; font-size: 1rem; font-weight: 600; }
.trumpet .knob-garnet { color: var(--pearl); }

/* ============================================
   BASEMENT — footer
   ============================================ */
.basement {
  background: var(--void);
  color: var(--pearl-dim);
  border-top: 4px solid;
  border-image: var(--grad-bullion) 1;
  padding: 36px 0 26px;
  margin-top: 40px;
  font-size: 0.88rem;
}
.bm-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.bm-cols section h4 {
  color: var(--bullion-bright);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-family: var(--sans-body);
}
.bm-cols ul { list-style: none; padding: 0; margin: 0; color: var(--pearl-dim); }
.bm-cols li { margin-bottom: 7px; }
.bm-cols a { color: var(--pearl-dim); }
.bm-cols a:hover { color: var(--bullion-bright); }
.bm-cols p { color: var(--pearl-dim); }

.fineprint {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.78rem;
  color: var(--pearl-faint);
  line-height: 1.6;
}
.adultseal {
  display: inline-block;
  background: var(--garnet);
  color: var(--pearl);
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--bend-tiny);
  font-size: 0.78rem;
  margin-right: 8px;
  border: 1px solid var(--garnet-bright);
}

/* ============================================
   FOOTDOCK — sticky mobile bottom bar
   ============================================ */
.footdock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(10, 5, 16, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--hairline);
  padding: 10px var(--gutter);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}
.footdock .knob {
  padding: 12px 14px;
  font-size: 0.92rem;
  width: 100%;
}

/* ============================================
   RTL adjustments
   ============================================ */
[dir="rtl"] body { font-family: var(--sans-rtl); line-height: 1.95; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: var(--sans-rtl); }
[dir="rtl"] .crest-name { font-family: var(--sans-rtl); }
[dir="rtl"] .curtain { left: 0; right: auto; border-right: 1px solid var(--hairline); border-left: 0; transform: translateX(-100%); }
[dir="rtl"] .curtain.parted { transform: translateX(0); }
[dir="rtl"] .tally { font-family: var(--sans-rtl); }
[dir="rtl"] .numlist li { padding: 12px 44px 12px 0; }
[dir="rtl"] .numlist li::before { left: auto; right: 0; font-family: var(--sans-rtl); }
[dir="rtl"] .ledger-line > span:first-child { text-align: right; }
[dir="rtl"] .ledger-line > span:last-child { text-align: left; }

/* ============================================
   Tablet / Desktop
   ============================================ */
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .footdock { display: none; }
  :root { --gutter: 24px; }

  .perks { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .gametray { grid-template-columns: repeat(4, 1fr); }
  .procession { grid-template-columns: repeat(2, 1fr); }
  .actbar { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .actbar .knob { min-width: 220px; }
  .bm-cols { grid-template-columns: 2fr 1fr 1fr; }
  .ledger-rows { grid-template-columns: 1fr 1fr; }
  .ledger-line:nth-last-child(2) { border-bottom: 0; }
}

@media (min-width: 1024px) {
  :root { --gutter: 32px; --marquee-h: 78px; }
  .curtainmenu { display: none; }
  .curtain, .drape { display: none !important; }

  .compass {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .compass ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
  }
  .compass a {
    padding: 9px 14px;
    border-radius: var(--bend-sm);
    color: var(--pearl-dim);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
  }
  .compass a:hover { background: rgba(212, 168, 71, 0.08); color: var(--bullion-bright); text-decoration: none; }
  .compass .play-cta {
    background: var(--grad-bullion);
    color: var(--void);
    font-weight: 800;
    margin-left: 8px;
    box-shadow: var(--halo-bullion);
  }
  .compass .play-cta:hover { color: var(--void); }
  .compass .lang-tag {
    margin-left: 6px;
    padding: 7px 12px;
    border: 1px solid var(--hairline);
    border-radius: var(--bend-pill);
    font-size: 0.85rem;
    color: var(--bullion-bright);
    font-weight: 700;
  }

  .procession { grid-template-columns: repeat(4, 1fr); }
  .spotlight { padding: 56px 0 64px; }
  .perks { gap: 20px; }
  .perk { padding: 24px 18px; }
  .perk em { font-size: 2.4rem; }
  .perk strong { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
