/* ==========================================================================
   visual-5d70.css
   Scatter Slots mobile-first shell styles.
   All custom classes and CSS variables use the s5d7- prefix.
   Palette: #CD853F (gold) | #1A1A2E (deep navy) | #DDA0DD (plum) | #FFE4B5 (moccasin)
   ========================================================================== */

:root {
  --s5d7-bg: #1A1A2E;
  --s5d7-bg-soft: #232342;
  --s5d7-bg-card: #21213b;
  --s5d7-gold: #CD853F;
  --s5d7-gold-bright: #e09b4f;
  --s5d7-plum: #DDA0DD;
  --s5d7-moccasin: #FFE4B5;
  --s5d7-text: #FFE4B5;
  --s5d7-text-muted: #b7a7c4;
  --s5d7-text-soft: #d8c7e6;
  --s5d7-border: rgba(205, 133, 63, 0.28);
  --s5d7-border-soft: rgba(221, 160, 221, 0.18);
  --s5d7-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --s5d7-radius: 14px;
  --s5d7-radius-sm: 9px;
  --s5d7-header-h: 58px;
  --s5d7-bottomnav-h: 64px;
  --s5d7-max-w: 440px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--s5d7-bg);
  color: var(--s5d7-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(1100px 480px at 50% -120px, rgba(205, 133, 63, 0.18), transparent 60%),
    radial-gradient(820px 460px at 100% 0%, rgba(221, 160, 221, 0.10), transparent 55%),
    var(--s5d7-bg);
  min-height: 100vh;
  line-height: 1.55;
  font-size: 15px;
  padding-bottom: calc(var(--s5d7-bottomnav-h) + 14px);
}

a { color: var(--s5d7-gold-bright); text-decoration: none; }
a:hover, a:focus { color: var(--s5d7-moccasin); }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 { color: var(--s5d7-moccasin); margin: 0 0 10px; line-height: 1.28; font-weight: 700; }
h1 { font-size: 24px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; color: var(--s5d7-text-soft); }

.s5d7-wrap {
  width: 100%;
  max-width: var(--s5d7-max-w);
  margin: 0 auto;
  padding: 0 12px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.s5d7-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #1c1c36 0%, #16162b 100%);
  border-bottom: 1px solid var(--s5d7-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.s5d7-header-inner {
  max-width: var(--s5d7-max-w);
  margin: 0 auto;
  height: var(--s5d7-header-h);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.s5d7-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.s5d7-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--s5d7-gold);
  box-shadow: 0 0 0 2px rgba(255, 228, 181, 0.12);
  flex-shrink: 0;
  background: #0e0e1d;
}
.s5d7-brand-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--s5d7-moccasin);
  letter-spacing: 0.2px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s5d7-brand-name span { color: var(--s5d7-gold-bright); }
.s5d7-brand-tag {
  display: block;
  font-size: 10px;
  color: var(--s5d7-text-muted);
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.s5d7-header-actions { display: flex; align-items: center; gap: 6px; }
.s5d7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.s5d7-btn:active { transform: translateY(1px); }
.s5d7-btn-register {
  background: linear-gradient(135deg, #e09b4f 0%, #CD853F 100%);
  color: #1A1A2E;
  box-shadow: 0 4px 12px rgba(205, 133, 63, 0.35);
}
.s5d7-btn-register:hover { color: #1A1A2E; box-shadow: 0 6px 16px rgba(224, 155, 79, 0.55); }
.s5d7-btn-login {
  background: transparent;
  color: var(--s5d7-moccasin);
  border: 1px solid var(--s5d7-gold);
}
.s5d7-btn-login:hover { color: var(--s5d7-moccasin); background: rgba(205, 133, 63, 0.14); }

.s5d7-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid var(--s5d7-border);
  color: var(--s5d7-moccasin);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.s5d7-menu-btn:hover { background: rgba(205, 133, 63, 0.12); }
.s5d7-menu-icon { display: block; width: 18px; height: 14px; position: relative; }
.s5d7-menu-icon span {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  border-radius: 2px;
}
.s5d7-menu-icon span:nth-child(1) { top: 0; }
.s5d7-menu-icon span:nth-child(2) { top: 6px; }
.s5d7-menu-icon span:nth-child(3) { top: 12px; }

/* Expandable menu panel */
.s5d7-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #16162b;
  border-bottom: 1px solid var(--s5d7-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  z-index: 59;
}
.s5d7-menu-open { max-height: 540px; box-shadow: 0 14px 28px rgba(0,0,0,0.4); }
.s5d7-menu-inner {
  max-width: var(--s5d7-max-w);
  margin: 0 auto;
  padding: 10px 12px 14px;
}
.s5d7-menu-section { margin-top: 8px; }
.s5d7-menu-heading {
  font-size: 10px;
  color: var(--s5d7-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 4px 4px;
}
.s5d7-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.s5d7-menu-link {
  display: block;
  padding: 9px 10px;
  font-size: 13px;
  color: var(--s5d7-text);
  background: rgba(255, 228, 181, 0.04);
  border: 1px solid var(--s5d7-border-soft);
  border-radius: 8px;
}
.s5d7-menu-link:hover { color: var(--s5d7-moccasin); background: rgba(205, 133, 63, 0.16); border-color: var(--s5d7-gold); }

/* ==========================================================================
   Hero / Carousel
   ========================================================================== */
.s5d7-hero { padding: 14px 0 4px; }
.s5d7-carousel {
  position: relative;
  border-radius: var(--s5d7-radius);
  overflow: hidden;
  box-shadow: var(--s5d7-shadow);
  border: 1px solid var(--s5d7-border);
  background: #0e0e1d;
}
.s5d7-carousel-viewport { overflow: hidden; }
.s5d7-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.s5d7-carousel-slide {
  flex: 0 0 100%;
  position: relative;
}
.s5d7-carousel-slide img {
  width: 100%;
  height: 178px;
  object-fit: cover;
  display: block;
}
.s5d7-carousel-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px 14px;
  background: linear-gradient(0deg, rgba(10,10,20,0.92) 0%, rgba(10,10,20,0.0) 100%);
}
.s5d7-carousel-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--s5d7-moccasin);
  margin: 0 0 4px;
}
.s5d7-carousel-sub {
  font-size: 12px;
  color: var(--s5d7-text-muted);
  margin: 0 0 8px;
}
.s5d7-carousel-cta {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 7px;
  background: linear-gradient(135deg, #e09b4f, #CD853F);
  color: #1A1A2E;
}
.s5d7-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 10px;
  display: flex;
  gap: 5px;
}
.s5d7-carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 228, 181, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
}
.s5d7-carousel-dot-active { background: var(--s5d7-gold-bright); transform: scale(1.25); }

/* Hero intro strip */
.s5d7-hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.s5d7-strip-item {
  background: var(--s5d7-bg-card);
  border: 1px solid var(--s5d7-border-soft);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.s5d7-strip-num {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--s5d7-gold-bright);
  line-height: 1.1;
}
.s5d7-strip-label {
  display: block;
  font-size: 10.5px;
  color: var(--s5d7-text-muted);
  margin-top: 3px;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Section / Heading
   ========================================================================== */
.s5d7-section { margin: 22px 0 6px; }
.s5d7-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--s5d7-border-soft);
}
.s5d7-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--s5d7-moccasin);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.s5d7-section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, var(--s5d7-gold-bright), var(--s5d7-plum));
  border-radius: 2px;
  display: inline-block;
}
.s5d7-section-link {
  font-size: 12px;
  color: var(--s5d7-gold-bright);
  font-weight: 600;
}

/* ==========================================================================
   Game grid
   ========================================================================== */
.s5d7-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
@media (min-width: 360px) { .s5d7-game-grid { gap: 8px; } }
@media (min-width: 400px) { .s5d7-game-grid { grid-template-columns: repeat(5, 1fr); } }

.s5d7-game-card {
  background: var(--s5d7-bg-card);
  border: 1px solid var(--s5d7-border-soft);
  border-radius: var(--s5d7-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  display: flex;
  flex-direction: column;
}
.s5d7-game-card:hover, .s5d7-game-card:focus {
  border-color: var(--s5d7-gold);
  box-shadow: 0 0 0 1px rgba(205,133,63,0.35), 0 6px 14px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}
.s5d7-game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0e0e1d;
  overflow: hidden;
}
.s5d7-game-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.s5d7-game-badge {
  position: absolute;
  top: 4px; left: 4px;
  background: rgba(205, 133, 63, 0.92);
  color: #1A1A2E;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}
.s5d7-game-name {
  font-size: 10.5px;
  color: var(--s5d7-text);
  text-align: center;
  padding: 5px 4px 6px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Content / SEO blocks
   ========================================================================== */
.s5d7-content-block {
  background: var(--s5d7-bg-card);
  border: 1px solid var(--s5d7-border-soft);
  border-radius: var(--s5d7-radius);
  padding: 16px 14px;
  margin: 14px 0;
}
.s5d7-content-block h2 { margin-top: 4px; }
.s5d7-content-block p { font-size: 14px; }
.s5d7-content-block ul { margin: 0 0 12px; padding-left: 20px; }
.s5d7-content-block li { margin-bottom: 6px; color: var(--s5d7-text-soft); font-size: 14px; }

.s5d7-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.s5d7-feature {
  background: rgba(221, 160, 221, 0.06);
  border: 1px solid var(--s5d7-border-soft);
  border-radius: 10px;
  padding: 10px 11px;
}
.s5d7-feature-title {
  font-size: 13px;
  color: var(--s5d7-moccasin);
  font-weight: 700;
  margin: 0 0 4px;
}
.s5d7-feature-text {
  font-size: 12px;
  color: var(--s5d7-text-muted);
  margin: 0;
  line-height: 1.45;
}

/* CTA banner */
.s5d7-cta-banner {
  background:
    radial-gradient(420px 200px at 90% -40px, rgba(221, 160, 221, 0.22), transparent 60%),
    linear-gradient(135deg, #2a2140 0%, #1c1830 100%);
  border: 1px solid var(--s5d7-gold);
  border-radius: var(--s5d7-radius);
  padding: 16px 14px;
  text-align: center;
  margin: 14px 0;
  box-shadow: var(--s5d7-shadow);
}
.s5d7-cta-banner h2 { color: var(--s5d7-moccasin); margin-bottom: 6px; }
.s5d7-cta-banner p { color: var(--s5d7-text-soft); font-size: 13px; margin-bottom: 10px; }
.s5d7-cta-btn {
  display: inline-block;
  padding: 10px 22px;
  font-weight: 800;
  font-size: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e09b4f, #CD853F);
  color: #1A1A2E;
  min-height: 44px;
  line-height: 24px;
  cursor: pointer;
  border: none;
}
.s5d7-cta-btn:hover { color: #1A1A2E; box-shadow: 0 8px 20px rgba(224, 155, 79, 0.45); }

/* Compact checklist */
.s5d7-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 10px 0;
}
.s5d7-check-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  color: var(--s5d7-text-soft);
  background: rgba(205, 133, 63, 0.06);
  border: 1px solid var(--s5d7-border-soft);
  padding: 8px 9px;
  border-radius: 8px;
}
.s5d7-check-item::before {
  content: "✓";
  color: var(--s5d7-gold-bright);
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   Extended footer (homepage only)
   ========================================================================== */
.s5d7-extended-footer {
  margin: 22px 0 6px;
  background: var(--s5d7-bg-card);
  border: 1px solid var(--s5d7-border-soft);
  border-radius: var(--s5d7-radius);
  padding: 16px 14px;
}
.s5d7-ef-section { margin-bottom: 14px; }
.s5d7-ef-section:last-child { margin-bottom: 0; }
.s5d7-ef-title {
  font-size: 13px;
  color: var(--s5d7-gold-bright);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--s5d7-border-soft);
}
.s5d7-ef-text { font-size: 13px; color: var(--s5d7-text-muted); margin: 0; }
.s5d7-ef-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.s5d7-ef-list li a {
  display: block;
  font-size: 12.5px;
  color: var(--s5d7-text-soft);
  padding: 7px 9px;
  background: rgba(221, 160, 221, 0.05);
  border: 1px solid var(--s5d7-border-soft);
  border-radius: 7px;
}
.s5d7-ef-list li a:hover { color: var(--s5d7-moccasin); border-color: var(--s5d7-gold); }
.s5d7-ef-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.s5d7-ef-promo {
  display: block;
  text-align: center;
  padding: 11px 8px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #1A1A2E;
  background: linear-gradient(135deg, #e09b4f, #CD853F);
  cursor: pointer;
  min-height: 44px;
  line-height: 22px;
}
.s5d7-ef-disclaimer {
  font-size: 11.5px;
  color: var(--s5d7-text-muted);
  border-top: 1px solid var(--s5d7-border-soft);
  padding-top: 10px;
  margin-top: 10px;
  line-height: 1.5;
}

/* ==========================================================================
   Base footer (copyright)
   ========================================================================== */
.s5d7-footer {
  margin-top: 14px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--s5d7-border-soft);
  text-align: center;
}
.s5d7-footer-copy {
  font-size: 11.5px;
  color: var(--s5d7-text-muted);
  margin: 0;
}

/* ==========================================================================
   Bottom navigation (mobile)
   ========================================================================== */
.s5d7-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--s5d7-bottomnav-h);
  background: linear-gradient(180deg, #1c1c36 0%, #12121f 100%);
  border-top: 1px solid var(--s5d7-border);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 70;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45);
}
.s5d7-bottomnav-inner {
  max-width: var(--s5d7-max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.s5d7-bottomnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--s5d7-text-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 6px 2px 4px;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  position: relative;
  transition: color 0.15s ease;
}
.s5d7-bottomnav-btn:visited { color: var(--s5d7-text-muted); }
.s5d7-bottomnav-btn:hover { color: var(--s5d7-moccasin); }
.s5d7-bottomnav-icon {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.s5d7-bottomnav-label { font-size: 10px; letter-spacing: 0.2px; }
.s5d7-bottomnav-btn.s5d7-bottomnav-active {
  color: var(--s5d7-gold-bright);
}
.s5d7-bottomnav-btn.s5d7-bottomnav-active .s5d7-bottomnav-icon {
  fill: rgba(205, 133, 63, 0.22);
  stroke: var(--s5d7-gold-bright);
  filter: drop-shadow(0 0 4px rgba(224, 155, 79, 0.55));
}
.s5d7-bottomnav-btn.s5d7-bottomnav-active .s5d7-bottomnav-label {
  font-weight: 800;
  color: var(--s5d7-moccasin);
}
.s5d7-bottomnav-promo {
  color: var(--s5d7-plum);
}

/* Mobile canvas cap: hard-limit the mobile-first layout to ~430px viewport */
.s5d7-wrap,
.s5d7-header-inner,
.s5d7-menu-inner,
.s5d7-bottomnav-inner {
  max-width: 430px;
}

/* Small-screen tuning within the 320-430px mobile range */
@media (max-width: 430px) {
  body { font-size: 14.5px; }
  .s5d7-wrap { padding: 0 11px; }
  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
  .s5d7-hero { padding: 12px 0 4px; }
  .s5d7-carousel-slide img { height: 164px; }
  .s5d7-carousel-title { font-size: 15px; }
  .s5d7-section-title { font-size: 16px; }
  .s5d7-cta-banner { padding: 14px 12px; }
  .s5d7-content-block { padding: 14px 12px; }
  .s5d7-extended-footer { padding: 14px 12px; }
}

/* Desktop fallback: keep mobile canvas centered */
@media (min-width: 480px) {
  .s5d7-bottomnav-inner, .s5d7-header-inner, .s5d7-menu-inner, .s5d7-wrap { max-width: var(--s5d7-max-w); }
  body { background-position: top center; }
}

/* Focus visibility for accessibility */
.s5d7-btn:focus-visible,
.s5d7-bottomnav-btn:focus-visible,
.s5d7-menu-btn:focus-visible,
.s5d7-game-card:focus-visible,
.s5d7-carousel-dot:focus-visible {
  outline: 2px solid var(--s5d7-moccasin);
  outline-offset: 2px;
}
