/* ==========================================================================
   DiceStake — shared theme (landing + auth)
   Web root asset: templates/landing/assets/css/dicestake.css
   Linked from Blade via: {{ asset('templates/landing/assets/css/dicestake.css') }}
   ========================================================================== */

:root {
  /* Palette */
  --bg:        #0A1018;
  --panel:     #111A26;
  --panel-2:   #16212F;
  --panel-3:   #1B2838;

  /* Aliases for the auth pages (login/register use --surface / --surface-2
     for their card + field backgrounds). Kept as aliases so the panels stay
     the single source of truth. */
  --surface:   var(--panel);
  --surface-2: var(--panel-2);

  --border:    #23303f;
  --border-2:  #2c3b4d;

  --accent:    #FFC93D;   /* neon amber-gold */
  --accent-ink:#1a1200;   /* dark text on amber */
  --accent-soft: rgba(255,201,61,0.14);

  --danger:    #FF4D4D;   /* live badges, errors */
  --danger-soft: rgba(255,77,77,0.14);

  --text:      #FFFFFF;
  --text-muted:#9AA7B8;
  --text-dim:  #6B7A8D;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 16px;

  --sidebar-w: 264px;
  --nav-h:     64px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---- base ---- */
* { box-sizing: border-box; }

html, body.dsk-body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.dsk-body a { color: var(--text); text-decoration: none; }
body.dsk-body a:hover { color: var(--accent); }

img { max-width: 100%; }
button { font-family: inherit; }

.dsk-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ==========================================================================
   Layout shell
   ========================================================================== */
.dsk-layout { min-height: 100vh; }

.dsk-main {
  margin-left: var(--sidebar-w);
  padding: calc(var(--nav-h) + 24px) 24px 40px;
  min-height: 100vh;
  transition: margin-left .3s ease;
}

.dsk-shell.sidebar-collapsed .dsk-main { margin-left: 0; }

@media (max-width: 991px) {
  /* 56px bar + 17px top gap. The strip is only shown <= 767px (see the
     navbar block below) and its extra height is added in that narrower
     media query so 768-991px (bar only) keeps the tighter offset. */
  .dsk-main { margin-left: 0 !important; padding-top: calc(56px + 16px); }
}

/* 768-991px: bar only (no pills strip) — offset already correct above. */

/* <= 767px: bar (44px) + pills strip (52px, its explicit height) + gaps, all
   safe-area aware, so content can never sit hidden underneath the two fixed
   layers. The 52px mirrors .dsk-nav-scroll's fixed height — change together. */
@media (max-width: 767px) {
  .dsk-main {
    padding-top: calc(44px + 52px + 16px + env(safe-area-inset-top, 0px)) !important;
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
  }
}

/* ==========================================================================
   Top navbar
   ========================================================================== */
.dsk-topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  background: rgba(17, 26, 38, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.dsk-topnav-left,
.dsk-topnav-right { display: flex; align-items: center; gap: 10px; }

/* Brand wordmark + lightning spark */
.dsk-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text) !important;
}
.dsk-brand:hover { color: var(--text) !important; }
.dsk-brand-spark { color: var(--accent); display: inline-flex; }
.dsk-brand-spark svg { width: 20px; height: 20px; display: block; }
.dsk-brand-word em { font-style: normal; color: var(--accent); }

/* Hamburger */
.dsk-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.dsk-burger:hover { background: var(--panel-2); border-color: var(--border-2); }

/* Center pills */
.dsk-nav-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dsk-nav-pills::-webkit-scrollbar { display: none; }
.dsk-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-muted) !important;
  font-size: .875rem;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.dsk-pill i { font-size: 1rem; }
.dsk-pill:hover { color: var(--text) !important; background: var(--panel-2); }
.dsk-pill.is-active {
  color: var(--accent-ink) !important;
  background: var(--accent);
}
.dsk-pill.is-active:hover { color: var(--accent-ink) !important; }

/* Right-side auth buttons */
.dsk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.dsk-btn:active { transform: translateY(1px); }

.dsk-btn-ghost {
  background: var(--panel-2);
  color: var(--text) !important;
  border-color: var(--border);
}
.dsk-btn-ghost:hover { background: var(--panel-3); border-color: var(--border-2); }

.dsk-btn-accent {
  background: var(--accent);
  color: var(--accent-ink) !important;
  border-color: var(--accent);
}
.dsk-btn-accent:hover { filter: brightness(1.06); }

.dsk-btn-block { width: 100%; }

/* ==========================================================================
   Top navbar — MOBILE ONLY (<= 767px)
   Bar keeps: hamburger, logo, Login, Sign Up. The section pills move into a
   horizontally scrollable strip directly beneath the bar (.dsk-nav-scroll).
   Desktop (> 767px) is untouched: pills stay in the bar and the strip is off.
   ========================================================================== */
.dsk-nav-scroll { display: none; }

@media (max-width: 767px) {
  /* Fixed bar: 44px of content + the iOS notch/status-bar inset on top, so
     the strip and the main content offset track the real inset (0px on
     non-notched devices). */
  .dsk-topnav {
    height: calc(44px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 12px 0;
    gap: 8px;
    flex-wrap: nowrap;
  }

  /* Left cluster: burger + brand, never wrap; brand can shrink but not clip */
  .dsk-topnav-left { gap: 8px; min-width: 0; }
  .dsk-burger { width: 36px; height: 36px; flex: 0 0 auto; }
  .dsk-brand { font-size: 1.05rem; gap: 6px; white-space: nowrap; min-width: 0; }
  .dsk-brand-spark svg { width: 17px; height: 17px; }

  /* Right cluster: Login + Sign Up on ONE line at 320px */
  .dsk-topnav-right {
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
    margin-left: auto;
  }
  .dsk-topnav-right .dsk-btn {
    white-space: nowrap;
    padding: 0 10px;
    height: 34px;
    font-size: .78rem;
    flex: 0 0 auto;
  }
  .dsk-topnav-right .dsk-btn i { font-size: .85rem; }

  /* The in-bar pills are hidden on mobile (moved to .dsk-nav-scroll) */
  .dsk-nav-pills { display: none; }

  /* Scrollable pills strip docked directly under the fixed navbar
     (44px content + safe-area inset, so it never hides behind the notch) */
  .dsk-nav-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: fixed;
    top: calc(44px + env(safe-area-inset-top, 0px));
    left: 0; right: 0;
    z-index: 1039;
    /* Fixed height (padding/border included) — keep in sync with the 52px
       used by .dsk-main's mobile padding-top below. */
    height: 52px;
    box-sizing: border-box;
    padding: 8px calc(12px + env(safe-area-inset-right, 0px)) 8px calc(12px + env(safe-area-inset-left, 0px));
    background: rgba(17, 26, 38, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
  }
  .dsk-nav-scroll::-webkit-scrollbar { display: none; }

  /* Right-edge fade so a partially visible pill reads as "scrollable" */
  .dsk-nav-scroll::after {
    content: "";
    position: sticky;
    right: 0;
    flex: 0 0 auto;
    width: 28px;
    align-self: stretch;
    margin-left: -28px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(17, 26, 38, 0.96));
  }

  /* Every pill is a fixed-width item: never shrinks, never clips */
  .dsk-nav-scroll .dsk-pill {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 14px;
  }

  /* Active pill scrolled into view on load (targets the active pill) */
  .dsk-nav-scroll .dsk-pill.is-active { scroll-margin-left: 12px; }
}

/* ==========================================================================
   Sidebar (fixed, collapsible)
   ========================================================================== */
.dsk-sidebar {
  position: fixed;
  top: var(--nav-h); bottom: 0; left: 0;
  width: var(--sidebar-w);
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 16px 12px 24px;
  overflow-y: auto;
  z-index: 1030;
  transition: transform .3s ease, margin-left .3s ease;
}
.dsk-sidebar::-webkit-scrollbar { width: 6px; }
.dsk-sidebar::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

/* Collapse toggle riding the edge */
.dsk-side-toggle {
  position: absolute;
  top: 18px; right: -14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background .15s ease, color .15s ease, transform .3s ease;
}
.dsk-side-toggle:hover { color: var(--accent); background: var(--panel-3); }
.dsk-side-toggle i { font-size: .8rem; }

/* Desktop collapsed state: hide sidebar entirely */
@media (min-width: 992px) {
  .dsk-shell.sidebar-collapsed .dsk-sidebar { margin-left: calc(var(--sidebar-w) * -1); }
}
/* Mobile: off-canvas drawer */
@media (max-width: 991px) {
  .dsk-sidebar {
    top: 0;
    transform: translateX(-100%);
    box-shadow: 8px 0 32px rgba(0,0,0,.5);
    padding-top: 20px;
  }
  .dsk-shell.sidebar-open .dsk-sidebar { transform: translateX(0); }
  .dsk-side-toggle { display: none; }
}

/* Scrim for mobile drawer */
.dsk-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1025;
  display: none;
}
.dsk-shell.sidebar-open .dsk-scrim { display: block; }
@media (min-width: 992px) { .dsk-scrim { display: none !important; } }

/* Sidebar login row */
.dsk-side-login {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: .9rem;
}
.dsk-side-login:hover { border-color: var(--border-2); }
.dsk-side-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--panel-3);
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.dsk-side-login .dsk-side-chev { margin-left: auto; color: var(--text-dim); font-size: .9rem; }

/* Free money promo tile */
.dsk-side-promo {
  position: relative;
  display: block;
  border-radius: var(--radius);
  padding: 16px 14px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,201,61,.25);
  background:
    radial-gradient(120% 120% at 85% 10%, rgba(255,201,61,.35), transparent 55%),
    linear-gradient(135deg, #6b4cff 0%, #2a1f5c 100%);
  color: #fff !important;
}
.dsk-side-promo:hover { filter: brightness(1.05); }
.dsk-side-promo .t { font-weight: 800; font-size: .95rem; }
.dsk-side-promo .s { font-size: .75rem; color: rgba(255,255,255,.85); }
.dsk-side-promo .coin {
  position: absolute; right: 10px; bottom: -6px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-ink); font-size: 1.2rem;
}

/* Nav groups */
.dsk-side-nav { list-style: none; margin: 0; padding: 0; }
.dsk-side-nav li { margin-bottom: 3px; }
.dsk-side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted) !important;
  font-size: .875rem;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.dsk-side-link i { width: 20px; text-align: center; font-size: 1.05rem; color: var(--text-dim); }
.dsk-side-link:hover { color: var(--text) !important; background: var(--panel-2); }
.dsk-side-link:hover i { color: var(--accent); }
.dsk-side-link .chev { margin-left: auto; color: var(--text-dim); font-size: .8rem; }
.dsk-side-link.is-active { color: var(--accent) !important; background: var(--accent-soft); }
.dsk-side-link.is-active i { color: var(--accent); }

/* Red count badge */
.dsk-count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dsk-side-divider { height: 1px; background: var(--border); margin: 12px 6px; }

/* Sidebar bottom */
.dsk-side-bottom { margin-top: 18px; }
.dsk-install {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--panel-2), var(--panel-3));
  margin-bottom: 14px;
  color: var(--text) !important;
}
.dsk-install:hover { border-color: var(--border-2); }
.dsk-install .ic {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.dsk-install .t { font-weight: 700; font-size: .85rem; }
.dsk-install .s { font-size: .72rem; color: var(--text-dim); }

.dsk-socials { display: flex; gap: 8px; margin: 12px 6px; }
.dsk-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted) !important; font-size: 1rem;
}
.dsk-socials a:hover { color: var(--accent) !important; border-color: var(--accent); }

.dsk-lang { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--text-muted); font-size: .85rem; }
.dsk-lang select {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 4px 8px; font-size: .8rem;
}
.dsk-support { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--text-muted); font-size: .85rem; }
.dsk-support .chat-btn {
  margin-left: auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink) !important;
  display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer;
}

/* ==========================================================================
   Content primitives
   ========================================================================== */
.dsk-section { margin-bottom: 28px; }
.dsk-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.dsk-section-title { font-size: 1.2rem; font-weight: 700; margin: 0; }
.dsk-section-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.dsk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-muted) !important;
  font-size: .8rem;
  font-weight: 600;
}
.dsk-chip:hover { color: var(--text) !important; border-color: var(--border-2); }

.dsk-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem;
  transition: background .15s ease, color .15s ease;
}
.dsk-arrow:hover { background: var(--panel-2); color: var(--accent); }

/* Horizontal scroller */
.dsk-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.dsk-row::-webkit-scrollbar { height: 8px; }
.dsk-row::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
.dsk-row > * { flex: 0 0 auto; }

/* ==========================================================================
   Landing — hero
   ========================================================================== */
.dsk-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 991px) { .dsk-hero { grid-template-columns: 1fr; } }

.dsk-hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(255,201,61,.30), transparent 55%),
    linear-gradient(120deg, #101a2b 0%, #1a2540 60%, #24315a 100%);
  border: 1px solid var(--border-2);
}
.dsk-hero-banner h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  max-width: 60%;
}
.dsk-hero-banner p { color: var(--text-muted); margin: 0 0 20px; max-width: 55%; }
.dsk-hero-banner .dsk-btn { align-self: flex-start; }
.dsk-hero-art {
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  width: 200px; height: 200px;
  opacity: .95;
  pointer-events: none;
}
@media (max-width: 575px) { .dsk-hero-art { display: none; } .dsk-hero-banner h2, .dsk-hero-banner p { max-width: 100%; } }

.dsk-hero-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.dsk-promo-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border-2);
  color: #fff !important;
  min-height: 112px;
}
.dsk-promo-card:hover { filter: brightness(1.05); }
.dsk-promo-card .t { font-weight: 800; font-size: 1.1rem; }
.dsk-promo-card .s { font-size: .82rem; color: rgba(255,255,255,.85); }
.dsk-promo-card .art { position: absolute; right: 14px; bottom: 8px; font-size: 2.2rem; opacity: .9; }
.dsk-promo-free { background: linear-gradient(135deg, #7b4bff 0%, #4a2b9e 100%); }
.dsk-promo-gift { background: linear-gradient(135deg, #3a4a63 0%, #2a3444 100%); }

/* ==========================================================================
   Match cards
   ========================================================================== */
.dsk-match {
  width: 290px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.dsk-match-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dsk-match-league { font-size: .78rem; color: var(--text-muted); }
.dsk-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--danger);
  color: #fff;
  font-size: .65rem; font-weight: 800; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 6px;
}
.dsk-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: dsk-pulse 1.2s infinite; }
@keyframes dsk-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.dsk-match-team { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-weight: 600; font-size: .9rem; }
.dsk-match-team .sc { color: var(--accent); font-weight: 800; }
.dsk-match-label { font-size: .72rem; color: var(--text-dim); margin: 10px 0 8px; }
.dsk-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* --------------------------------------------------------------------------
   Landing NETWORK STATS row — MOBILE ONLY (<= 767px)
   The row shares .dsk-row (a horizontal scroller: overflow-x:auto +
   non-shrinking children .dsk-row > * { flex:0 0 auto }) and each stat card
   carries an inline width:200px, so on phones the cards overflow and the 2nd
   one is clipped at the right edge. Here we switch the stats row to a static
   2x2 grid and neutralise all of that scroller behaviour. Desktop is
   untouched (this lives entirely inside the breakpoint).
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .dsk-stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    /* Stop the shared .dsk-row from scrolling/clipping */
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 0;
    scroll-behavior: auto;
  }

  /* Re-enable shrinking inside the grid (kills .dsk-row > * { flex:0 0 auto })
     and drop the inline width:200px that forced the overflow. */
  .dsk-stats-row > .dsk-match {
    flex: initial;
    width: auto !important;
    min-width: 0;
    max-width: 100%;
    padding: 12px 10px;
  }

  /* Numbers + labels must never wrap or overflow, even at 320px */
  .dsk-stats-row .dsk-match-label {
    margin: 0 0 6px;
    line-height: 1.25;
    overflow-wrap: break-word;
  }
  .dsk-stats-row .dsk-match > div:last-child {
    font-size: 1.35rem !important;   /* beats the inline font-size:1.6rem */
    line-height: 1.15;
    word-break: keep-all;
    overflow-wrap: normal;
  }
}

@media (max-width: 359px) {
  /* Extra-narrow phones: shrink the number + padding a touch more so the
     2x2 grid still fits without horizontal overflow. */
  .dsk-stats-row { gap: 10px; }
  .dsk-stats-row > .dsk-match { padding: 10px 8px; }
  .dsk-stats-row .dsk-match > div:last-child { font-size: 1.15rem !important; }
  .dsk-stats-row .dsk-match-label { font-size: .68rem; }
}

/* --------------------------------------------------------------------------
   Landing FEATURES / "Why Choose Us" — MOBILE ONLY (<= 767px)
   On phones the auto-fit 3-up grid is dropped to one column and each card
   becomes a compact HORIZONTAL card: [ 88px illustration | title + text ].
   The illustration column is object-fit:contain over a soft dark tile so any
   aspect ratio reads cleanly; the amber fallback tile (already in the Blade,
   unchanged) is stretched to the same 88px slot. Desktop is untouched — all
   of this lives inside the breakpoint.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* One column, uniform 12px gaps between cards */
  .dsk-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Compact horizontal card */
  .dsk-feature-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;                 /* matches .dsk-match radius tokens */
    border: 1px solid var(--border);
    background: var(--panel);
    min-width: 0;
  }

  /* Illustration slot (both the uploaded <img> and the amber fallback tile).
     Overrides the inline 48x48 on the tile and any inline sizing on the img. */
  .dsk-feature-card .dsk-feature-media {
    width: 88px !important;
    height: 88px !important;
    min-width: 88px;
    margin: 0 !important;                /* kill inline margin-bottom:12px */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--panel-2);          /* soft dark tile behind the art */
  }
  /* Uploaded image: fill the tile, never distort */
  .dsk-feature-card img.dsk-feature-media {
    object-fit: contain;
    object-position: center;
  }
  /* Amber fallback tile keeps its amber look but fills the 88px slot */
  .dsk-feature-card div.dsk-feature-media {
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.6rem;
  }

  /* Title + description stack in the right column */
  .dsk-feature-card .dsk-feature-title {
    font-size: 1rem;                     /* 16px */
    line-height: 1.3;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
    min-width: 0;
    overflow-wrap: break-word;
  }
  .dsk-feature-card .dsk-feature-text {
    font-size: .85rem;                   /* ~13.6px */
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
    min-width: 0;
    /* Clamp description to 3 lines */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }

  /* Section heading: amber eyebrow, left-aligned title, tight spacing */
  .dsk-section-eyebrow {
    font-size: .8rem;                    /* ~13px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);                /* amber eyebrow */
  }
  .dsk-section-eyebrow + .dsk-section-title {
    margin-top: 2px;
    text-align: left;
  }
  /* Intro paragraph: 14px, 1.5 line-height, clamped to 3 lines */
  .dsk-features-intro {
    font-size: .875rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }
}
.dsk-odd {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  padding: 8px 4px;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.dsk-odd:hover { background: var(--panel-3); border-color: var(--accent); }
.dsk-odd .k { display: block; font-size: .7rem; color: var(--text-dim); }
.dsk-odd .v { display: block; font-weight: 700; font-size: .9rem; }

/* ==========================================================================
   Game tiles
   ========================================================================== */
.dsk-game {
  width: 150px;
  height: 150px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  background: var(--panel-2);
}
.dsk-game .art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; opacity: .9;
}
.dsk-game .name { position: relative; font-weight: 700; font-size: .9rem; z-index: 1; }
.dsk-game::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55) 100%);
}
.dsk-game:hover { border-color: var(--accent); }
.dsk-game-tag {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--panel); border: 1px solid var(--border-2);
  color: var(--text-muted);
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 6px;
}
.dsk-game.is-soon { cursor: default; opacity: .82; }
.dsk-game.is-soon:hover { border-color: var(--border); }

/* ==========================================================================
   Footer
   ========================================================================== */
.dsk-footer {
  margin-left: var(--sidebar-w);
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding: 28px 24px;
  transition: margin-left .3s ease;
}
.dsk-shell.sidebar-collapsed .dsk-footer { margin-left: 0; }
@media (max-width: 991px) { .dsk-footer { margin-left: 0; } }
.dsk-footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.dsk-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.dsk-footer-links a { color: var(--text-muted) !important; font-size: .85rem; }
.dsk-footer-links a:hover { color: var(--accent) !important; }
.dsk-footer-meta { color: var(--text-dim); font-size: .78rem; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.dsk-18 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(255,77,77,.4);
  font-size: .7rem; font-weight: 800;
}

/* ==========================================================================
   Auth pages (login / register)
   ========================================================================== */
.dsk-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg);
}
.dsk-auth-shell {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}
@media (max-width: 860px) {
  .dsk-auth-shell { grid-template-columns: 1fr; max-width: 460px; }
  .dsk-auth-promo { display: none; }
}

.dsk-auth-promo {
  position: relative;
  padding: 48px 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(90% 120% at 90% 10%, rgba(255,201,61,.32), transparent 55%),
    linear-gradient(140deg, #131f33 0%, #241a52 100%);
}
.dsk-auth-promo h2 { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
.dsk-auth-promo p { color: var(--text-muted); margin: 0; }
.dsk-auth-promo .art { margin-top: 28px; font-size: 3.4rem; }
.dsk-auth-promo .stake-logo { margin-bottom: 28px; }

.dsk-auth-form { padding: 44px 40px; }
@media (max-width: 575px) { .dsk-auth-form { padding: 32px 22px; } }

.dsk-auth-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 4px; }
.dsk-auth-sub { color: var(--text-muted); font-size: .88rem; margin: 0 0 26px; }

/* Fields */
.dsk-field { margin-bottom: 16px; }
.dsk-field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.dsk-field-ctrl { position: relative; display: flex; align-items: center; }
.dsk-input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.dsk-input::placeholder { color: var(--text-dim); }
.dsk-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--panel-3);
}
.dsk-input.is-invalid { border-color: var(--danger); }
.dsk-input.is-invalid:focus { box-shadow: 0 0 0 3px var(--danger-soft); }

.dsk-eye {
  position: absolute;
  right: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-dim);
}
.dsk-eye:hover { color: var(--accent); }

.dsk-field-error { display: block; color: var(--danger); font-size: .78rem; margin-top: 6px; }

/* Row: remember / forgot */
.dsk-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 22px; }
.dsk-check { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); cursor: pointer; }
.dsk-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.dsk-link { color: var(--accent) !important; font-weight: 600; font-size: .85rem; }

/* Submit + spinner */
.dsk-btn-submit { position: relative; padding: 14px; font-size: .95rem; margin-top: 4px; }
.dsk-btn-submit[data-loading="true"] { pointer-events: none; opacity: .9; }
.dsk-btn-submit .spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.3);
  border-top-color: var(--accent-ink);
  border-radius: 50%;
  animation: dsk-spin .7s linear infinite;
}
.dsk-btn-submit[data-loading="true"] .spinner { display: inline-block; }
@keyframes dsk-spin { to { transform: rotate(360deg); } }

.dsk-auth-alt { text-align: center; margin-top: 22px; color: var(--text-muted); font-size: .88rem; }
.dsk-auth-alt a { color: var(--accent) !important; font-weight: 700; }
.dsk-auth-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--text-muted) !important; font-size: .82rem; }
.dsk-auth-back:hover { color: var(--accent) !important; }

/* Top alert (session / validation summary) */
.dsk-alert {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: .85rem;
  border: 1px solid transparent;
}
.dsk-alert-danger { background: var(--danger-soft); border-color: rgba(255,77,77,.4); color: #ffb3b3; }
.dsk-alert-danger ul { margin: 0; padding-left: 18px; }
.dsk-alert-info { background: var(--accent-soft); border-color: rgba(255,201,61,.4); color: #ffe0a3; }

/* Bootstrap alert overrides so @include('includes.errors') matches the theme */
.dsk-main .alert {
  border-radius: var(--radius-sm);
  font-size: .85rem;
  border: 1px solid transparent;
}
.dsk-main .alert ul { margin: 0; padding-left: 18px; }
.dsk-main .alert-warning { background: var(--danger-soft); border-color: rgba(255,77,77,.4); color: #ffb3b3; }
.dsk-main .alert-primary { background: var(--accent-soft); border-color: rgba(255,201,61,.4); color: #ffe0a3; }
.dsk-main .text-center { text-align: center; }
.dsk-main .alert:empty { display: none; }

/* ==========================================================================
   Legacy-colour neutralisers (scoped to the DiceStake shell ONLY)
   --------------------------------------------------------------------------
   The legacy landing template CSS (main.css / custom.css) is still loaded
   after this file, but BEFORE it in source order — so these equal-or-higher
   specificity rules win WITHOUT editing or removing the legacy files.
   This keeps blog/article/page views (which still use layouts.app + the
   legacy CSS) completely unaffected.

   Legacy offenders being neutralised:
     main.css:134-144  h1..h6 { color:#24126A }  (dark purple)
     main.css:36-43    body   { color:#727272 }  (grey body text)
     main.css:79-110   select { color:#24126A }  (dark purple selects)
     custom.css:9-11   .text-black { color:#000 !important }  (harmless but
                       re-pinned to the theme's text colour here for consistency)
   ========================================================================== */

/* Headings rendered via raw tags (legacy rules use bare h1..h6) */
.dsk-shell h1,
.dsk-shell h2,
.dsk-shell h3,
.dsk-shell h4,
.dsk-shell h5,
.dsk-shell h6 {
  color: var(--text);
}

/* Headings that carry a bootstrap/utility class keep the theme colour too */
.dsk-shell .dsk-section-title,
.dsk-shell .dsk-auth-title { color: var(--text); }

/* Body + default paragraph text (legacy body{color:#727272} leaks in) */
body.dsk-body,
.dsk-shell p {
  color: var(--text-muted);
}

/* Muted / dim helpers used as section subtitles and captions */
.dsk-shell .dsk-footer-meta,
.dsk-shell .dsk-auth-sub,
.dsk-shell .dsk-match-label,
.dsk-shell .dsk-match-league { color: var(--text-muted); }

/* Links: legacy CSS left `a` mostly colourless, but be explicit for any
   anchor the theme hasn't already styled (keeps accent hover behaviour).
   Components with their own colour rules are excluded so their look is kept. */
.dsk-shell a:not(.dsk-btn):not(.dsk-pill):not(.dsk-chip):not(.dsk-side-link):not(.dsk-link):not(.dsk-auth-back):not(.dsk-brand) {
  color: var(--text);
}
.dsk-shell a:not(.dsk-btn):not(.dsk-pill):not(.dsk-chip):not(.dsk-side-link):hover {
  color: var(--accent);
}
/* Footer links keep their muted -> accent treatment (excluded above, re-pinned here) */
.dsk-shell .dsk-footer-links a { color: var(--text-muted); }
.dsk-shell .dsk-footer-links a:hover { color: var(--accent); }

/* Form controls: legacy select{color:#24126A} + custom.css .text-black */
.dsk-shell select,
.dsk-shell .form-control,
.dsk-shell .form-select { color: var(--text); }
.dsk-shell select option { color: var(--text); background: var(--panel-2); }

/* utilities the legacy template leaves uncoloured */
.dsk-shell .text-black { color: var(--text) !important; }
.dsk-shell .text-muted { color: var(--text-muted) !important; }
