/* renderui-20261108 -- PREVIEW (test store only). Travis: "the chatgpt render looks so much better. what can
   you do to make the UI look more like it?" (CrownHub reference, 11-08). Builds on nl-heroui.css.
   Rulings that bind this file: store colours only (lime is the brand; gold only inside 3D art), NO outer glow --
   light lives INSIDE (fills, sheens, gradients), crisp 2px store-colour borders, keep the section separation.
   Visual only: no markup the scripts depend on is changed; nl-renderui.js only ADDS decorative nodes. */
:root {
  --ru-edge: var(--sc-lime, #B6FF00);
  --ru-edge-soft: color-mix(in srgb, var(--ru-edge) 55%, transparent);
  --ru-panel-top: #101c15;
  --ru-panel-bot: #060b08;
  --ru-sheen: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.025) 34%, rgba(255,255,255,0) 58%);
  --ru-corner: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--ru-edge) 13%, transparent) 0%, transparent 55%);
  --ru-inset: inset 0 1px 0 rgba(255,255,255,0.30), inset 0 0 0 1px rgba(0,0,0,0.55), inset 0 -14px 22px rgba(0,0,0,0.35);
}

/* ---------- 1. atmosphere: deep green-black with lime light rays + bokeh, fixed behind everything ---------- */
body { background: #030604; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; transform: scaleX(-1); /* rays from the top RIGHT: the desktop sidebar covers the top left */
  background:
    radial-gradient(90% 60% at 100% 100%, rgba(0,0,0,0.65) 0%, transparent 70%),
    url("../img/ru/ru-bg.webp") left top / cover no-repeat,
    linear-gradient(180deg, #07110b 0%, #030604 60%);
}
@media (max-width: 768px) {
  body::before {
    background:
      linear-gradient(180deg, rgba(3,6,4,0) 0%, rgba(3,6,4,0.55) 100%),
      url("../img/ru/ru-bg-phone.webp") left top / cover no-repeat,
      linear-gradient(180deg, #07110b 0%, #030604 60%);
  }
}
.main-content, .portal-content { background: transparent; }

/* ---------- side menu: brushed-dark panel, active item = glossy lime pill ---------- */
.sidebar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0) 30%),
    linear-gradient(180deg, #0c1711 0%, #050907 100%);
  border-right: 2px solid var(--ru-edge-soft);
}
.sidebar-nav .sidebar-nav-item { border-radius: 12px; border-width: 2px; }
.sidebar-nav .sidebar-nav-item.active {
  color: var(--ru-edge);
  border: 2px solid var(--ru-edge);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.03) 45%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--ru-edge) 26%, #08100b) 0%, color-mix(in srgb, var(--ru-edge) 8%, #050907) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -8px 14px rgba(0,0,0,0.35);
  font-weight: 700;
}

/* ---------- 2. depth on every panel ---------- */
.card, .wallet-hero-card, .platform-card, .featured-promo-card, .modal-box, .login-modal, .plat-skel, .quick-actions-bar {
  border: 2px solid var(--ru-edge) !important;
  background: var(--ru-sheen), var(--ru-corner), linear-gradient(180deg, var(--ru-panel-top) 0%, var(--ru-panel-bot) 100%) !important;
  box-shadow: var(--ru-inset) !important;
}
.platform-card { border-radius: 16px; }
.platform-card .platform-card-image { border-bottom: 2px solid var(--ru-edge-soft); }
.platform-card:hover { transform: translateY(-2px); filter: brightness(1.06); }
.platforms-track.platforms-track > .platform-card.dash-tile.is-open,
.platform-grid.platform-grid > .platform-card.dash-tile.is-open { box-shadow: var(--ru-inset) !important; }
.platform-card.platform-unavailable { border-color: rgba(255,255,255,0.18) !important; }

/* header credit chips -> small framed panels */
.tbc-chip {
  border: 1.5px solid var(--ru-edge-soft);
  background: var(--ru-sheen), linear-gradient(180deg, var(--ru-panel-top), var(--ru-panel-bot));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
@media (min-width: 561px) {
  .tbc-chip { align-items: center; padding-left: 6px; }
  .tbc-chip::before {
    content: ""; width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
    background: #000 center / 120% no-repeat; border: 1px solid var(--ru-edge-soft);
  }
  .tbc-chip[title="Credits"]::before { background-image: url("../img/ru/ru-coins.webp"); }
  .tbc-chip[title^="Bonus"]::before { background-image: url("../img/ui/hero-bonus.webp"); }
}

/* ---------- 4. glossy pill buttons (primary lime, secondary outlined) ---------- */
.btn-primary, .btn-lime, .platforms-viewall-btn, .ru-cta {
  border-radius: 999px !important;
  color: #071003 !important; font-weight: 800; letter-spacing: .02em;
  border: 1.5px solid color-mix(in srgb, var(--ru-edge) 70%, #000) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.12) 46%, rgba(255,255,255,0) 52%),
    linear-gradient(180deg, color-mix(in srgb, var(--ru-edge) 85%, #fff) 0%, var(--ru-edge) 50%, color-mix(in srgb, var(--ru-edge) 62%, #000) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -3px 0 rgba(0,0,0,0.25) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover, .btn-lime:hover, .platforms-viewall-btn:hover, .ru-cta:hover { filter: brightness(1.08); }
.btn-primary:active, .btn-lime:active, .platforms-viewall-btn:active, .ru-cta:active { transform: translateY(1px); }
.btn-outline, .btn-secondary {
  border-radius: 999px !important;
  border: 1.5px solid var(--ru-edge) !important; color: var(--ru-edge) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 55%), rgba(0,0,0,0.35) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22) !important;
}
.btn-outline:hover, .btn-secondary:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 55%), color-mix(in srgb, var(--ru-edge) 14%, transparent) !important;
}
.btn[disabled] { filter: grayscale(1); }

/* ---------- 3. hero as a composed banner (stock hero only; nl-renderui.js adds .ru-hero-copy) ---------- */
.hero-panel { border: 2px solid var(--ru-edge); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
.hero-main .ru-hero-copy {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; gap: 6px; padding: 0 4% 0 4.5%; pointer-events: none; text-shadow: none;
  background: linear-gradient(90deg, rgba(3,6,4,0.82) 0%, rgba(3,6,4,0.55) 30%, rgba(3,6,4,0) 52%);
}
.ru-hero-copy > * { pointer-events: auto; }
.ru-hero-title {
  margin: 0; font-family: "Kanit", Inter, sans-serif; font-style: italic; font-weight: 900;
  font-size: clamp(30px, 3.6vw, 56px); line-height: .95; letter-spacing: .5px; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #f3ffd0 30%, var(--ru-edge) 58%, color-mix(in srgb, var(--ru-edge) 55%, #000) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.85));
}
.ru-hero-sub {
  font-family: "Kanit", Inter, sans-serif; font-style: italic; font-weight: 700; color: #fff;
  font-size: clamp(14px, 1.45vw, 22px); text-transform: uppercase; letter-spacing: .5px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9); max-width: 34ch;
}
.ru-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 26px;
  font-family: "Kanit", Inter, sans-serif; font-style: italic; font-size: clamp(14px, 1.3vw, 19px);
  text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.ru-cta svg { width: 1em; height: 1em; }
@media (max-width: 768px) {
  .hero-main .ru-hero-copy {
    justify-content: flex-end; align-items: center; text-align: center; padding: 0 16px 18px; gap: 4px;
    background: linear-gradient(0deg, rgba(3,6,4,0.88) 0%, rgba(3,6,4,0.55) 30%, rgba(3,6,4,0) 55%);
  }
  .ru-hero-title { font-size: 34px; }
  .ru-hero-sub { font-size: 14px; }
  .ru-cta { font-size: 15px; padding: 9px 24px; }
}

/* ---------- 5. game tiles: PLAY NOW pill over the art (desktop; phones keep tap-to-view, styled as a pill) ---------- */
.platform-card-image { position: relative; }
.ru-play-pill {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; white-space: nowrap;
  font: italic 800 14px/1 "Kanit", Inter, sans-serif; letter-spacing: .03em; text-transform: uppercase; cursor: pointer;
  color: #071003; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--ru-edge) 70%, #000);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.12) 46%, rgba(255,255,255,0) 52%),
    linear-gradient(180deg, color-mix(in srgb, var(--ru-edge) 85%, #fff) 0%, var(--ru-edge) 50%, color-mix(in srgb, var(--ru-edge) 62%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -3px 0 rgba(0,0,0,0.25);
}
.ru-play-pill svg { width: 11px; height: 11px; fill: currentColor; }
.ru-play-pill:hover { filter: brightness(1.08); }
.ru-play-pill:active { transform: translateX(-50%) translateY(1px); }
@media (max-width: 640px) {
  .ru-play-pill { display: none; }
  .platforms-track .dash-tile-hint {
    left: 50%; right: auto; bottom: 8px; transform: translateX(-50%); white-space: nowrap;
    padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 11px;
    color: #071003; text-shadow: none; border: 1px solid color-mix(in srgb, var(--ru-edge) 70%, #000);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.12) 46%, rgba(255,255,255,0) 52%),
      linear-gradient(180deg, color-mix(in srgb, var(--ru-edge) 85%, #fff) 0%, var(--ru-edge) 50%, color-mix(in srgb, var(--ru-edge) 62%, #000) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  }
}

/* ---------- 6. section headers: uppercase, heavier, small 3D icon ---------- */
.section-title {
  font-size: 18px; font-weight: 800; letter-spacing: .06em; gap: 10px;
}
.section-title::before {
  width: 28px; height: 28px; border-radius: 0; flex: 0 0 auto;
  background: url("../img/ru/ru-crown.webp") center / contain no-repeat; mix-blend-mode: screen;
}
.promos-section .section-title::before, body.ru-page-promotions .section-title::before {
  background-image: url("../img/ru/ru-flame.webp");
}

/* ---------- 7. wallet balance cards: 3D icon in its own framed square (wallet.html) ---------- */
.wallet-hero-card-icon:has(path[d^="M16 8h-6"]), .wallet-hero-card-icon:has(path[d^="M20 12v10"]), .wallet-hero-card-icon:has(path[d^="M17 21v-2"]) {
  width: 52px !important; height: 52px !important; border-radius: 12px !important;
  border: 1.5px solid var(--ru-edge-soft); background: #000 center / 112% no-repeat !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 0 12px rgba(0,0,0,0.6);
}
.wallet-hero-card-icon:has(path[d^="M16 8h-6"]) { background-image: url("../img/ru/ru-coins.webp") !important; }
.wallet-hero-card-icon:has(path[d^="M20 12v10"]) { background-image: url("../img/ui/hero-bonus.webp") !important; }
.wallet-hero-card-icon:has(path[d^="M17 21v-2"]) { background-image: url("../img/ui/hero-referral.webp") !important; }
.wallet-hero-card-icon:has(path[d^="M16 8h-6"]) svg, .wallet-hero-card-icon:has(path[d^="M20 12v10"]) svg, .wallet-hero-card-icon:has(path[d^="M17 21v-2"]) svg { display: none; }
