/* dynamic-002d50-tokens.css
 * Mobile-first stylesheet for sunwincaadda.click
 * Canvas: 320-430px phone frame, centered on wide screens.
 * Palette: #F5DEB3 (wheat text) / #333333 (base bg) / #A9A9A9 (muted)
 *          #5F9EA0 (teal info) / #D2691E (rust CTA)
 * All classes and custom properties use the mobile002d5- prefix.
 */

:root {
  --mobile002d5-bg: #333333;
  --mobile002d5-bg-deep: #2b2b2b;
  --mobile002d5-panel: #3c3c3c;
  --mobile002d5-panel-edge: #4a4a4a;
  --mobile002d5-wheat: #F5DEB3;
  --mobile002d5-wheat-soft: rgba(245, 222, 179, 0.14);
  --mobile002d5-muted: #A9A9A9;
  --mobile002d5-teal: #5F9EA0;
  --mobile002d5-teal-deep: #4c8386;
  --mobile002d5-rust: #D2691E;
  --mobile002d5-rust-deep: #b45818;
  --mobile002d5-ink: #241d12;
  --mobile002d5-radius-card: 10px;
  --mobile002d5-radius-btn: 8px;
  --mobile002d5-head-font: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  --mobile002d5-body-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mobile002d5-header-h: 132px;
  --mobile002d5-rail-h: 66px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0 auto;
  max-width: 430px;
  min-height: 100vh;
  background: var(--mobile002d5-bg);
  background-image: linear-gradient(180deg, #383838 0%, #333333 42%, #2f2f2f 100%);
  color: var(--mobile002d5-wheat);
  font-family: var(--mobile002d5-body-font);
  font-size: 15px;
  line-height: 1.62;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--mobile002d5-teal); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--mobile002d5-wheat);
  outline-offset: 2px;
  border-radius: 4px;
}

.mobile002d5-wrap { padding: 0 14px; }

/* ============ Top identity bar + action area ============ */
.mobile002d5-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 60;
  background: linear-gradient(180deg, #3a3a3a 0%, #333333 100%);
  border-bottom: 1px solid var(--mobile002d5-panel-edge);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

/* Centered identity: real logo image + site name only */
.mobile002d5-brandrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 14px 7px;
}

.mobile002d5-logo {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--mobile002d5-rust);
  background: #1f1f1f;
  padding: 2px;
  flex: 0 0 auto;
}

.mobile002d5-sitename {
  font-family: var(--mobile002d5-head-font);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--mobile002d5-wheat);
  text-transform: none;
}
.mobile002d5-sitename em {
  font-style: normal;
  color: var(--mobile002d5-rust);
}

/* Action area: register / login / menu */
.mobile002d5-actrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 9px;
}

.mobile002d5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--mobile002d5-radius-btn);
  font-family: var(--mobile002d5-head-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.mobile002d5-btn:active { transform: scale(0.97); }
.mobile002d5-btn:hover { text-decoration: none; }

.mobile002d5-btn-solid {
  background: linear-gradient(180deg, var(--mobile002d5-rust) 0%, var(--mobile002d5-rust-deep) 100%);
  color: #fff4e0;
}

.mobile002d5-btn-outline {
  background: rgba(0, 0, 0, 0.16);
  border-color: var(--mobile002d5-wheat);
  color: var(--mobile002d5-wheat);
}

.mobile002d5-btn-teal {
  background: linear-gradient(180deg, var(--mobile002d5-teal) 0%, var(--mobile002d5-teal-deep) 100%);
  color: #10201f;
}

.mobile002d5-register { flex: 1 1 auto; }
.mobile002d5-login { flex: 1 1 auto; }

.mobile002d5-menubtn {
  flex: 0 0 46px;
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--mobile002d5-panel-edge);
  border-radius: var(--mobile002d5-radius-btn);
  color: var(--mobile002d5-wheat);
  cursor: pointer;
  font-size: 9px;
  font-family: var(--mobile002d5-body-font);
}
.mobile002d5-menubtn span.mobile002d5-burger {
  display: block;
  width: 18px; height: 2px;
  background: var(--mobile002d5-wheat);
  box-shadow: 0 -5px 0 var(--mobile002d5-wheat), 0 5px 0 var(--mobile002d5-wheat);
  border-radius: 2px;
}

/* ============ Compact route panel ============ */
.mobile002d5-route {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  background: #2f2f2f;
  border-top: 0 solid transparent;
}
.mobile002d5-route-open { max-height: 480px; border-top-width: 1px; border-top-color: var(--mobile002d5-panel-edge); }

.mobile002d5-route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 12px 14px 14px;
}

.mobile002d5-route a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  background: var(--mobile002d5-panel);
  border: 1px solid var(--mobile002d5-panel-edge);
  border-radius: var(--mobile002d5-radius-btn);
  color: var(--mobile002d5-wheat);
  font-size: 13px;
  font-weight: 600;
}
.mobile002d5-route a::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mobile002d5-rust);
  flex: 0 0 auto;
}
.mobile002d5-route a:hover { border-color: var(--mobile002d5-rust); text-decoration: none; }

/* ============ Main canvas spacing ============ */
.mobile002d5-main {
  padding-top: var(--mobile002d5-header-h);
  /* clearance for the fixed bottom rail */
  padding-bottom: calc(var(--mobile002d5-rail-h) + 26px);
}

/* ============ Hero ============ */
.mobile002d5-hero {
  padding: 16px 14px 6px;
}

.mobile002d5-hero h1 {
  font-family: var(--mobile002d5-head-font);
  font-size: 24px;
  line-height: 1.28;
  margin: 0 0 10px;
  color: #fff3da;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.mobile002d5-hero p {
  margin: 0 0 12px;
  color: var(--mobile002d5-wheat);
  font-size: 14.5px;
}

.mobile002d5-heropills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
}
.mobile002d5-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--mobile002d5-wheat-soft);
  border: 1px solid rgba(245, 222, 179, 0.28);
  color: var(--mobile002d5-wheat);
  font-size: 12px;
  font-weight: 600;
}
.mobile002d5-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mobile002d5-teal);
}

/* ============ Banner carousel ============ */
.mobile002d5-carousel {
  position: relative;
  margin: 6px 14px 4px;
  border-radius: var(--mobile002d5-radius-card);
  overflow: hidden;
  border: 1px solid var(--mobile002d5-panel-edge);
  background: #242424;
}

.mobile002d5-banner {
  position: relative;
  aspect-ratio: 16 / 9;
}

.mobile002d5-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: none;
}
.mobile002d5-banner-on { opacity: 1; display: block; }

.mobile002d5-banner-slide button {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.mobile002d5-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile002d5-banner-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 12px 9px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(24, 24, 24, 0.88) 70%);
  color: #fff3da;
  font-family: var(--mobile002d5-head-font);
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  pointer-events: none;
}

.mobile002d5-banner-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.mobile002d5-banner-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid var(--mobile002d5-wheat);
  background: rgba(36, 36, 36, 0.6);
  padding: 0;
  cursor: pointer;
}
.mobile002d5-banner-dot-on { background: var(--mobile002d5-rust); border-color: var(--mobile002d5-rust); }

/* ============ Sections ============ */
.mobile002d5-section {
  margin: 22px 14px 0;
  scroll-margin-top: calc(var(--mobile002d5-header-h) + 8px);
}

.mobile002d5-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}

.mobile002d5-sec-head h2 {
  font-family: var(--mobile002d5-head-font);
  font-size: 18.5px;
  line-height: 1.32;
  margin: 0;
  color: #fff3da;
  flex: 1 1 auto;
}

.mobile002d5-sec-chip {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mobile002d5-rust);
  color: #fff4e0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.mobile002d5-sec-chip-teal { background: var(--mobile002d5-teal); color: #10201f; }

.mobile002d5-rule {
  height: 2px;
  border: 0;
  margin: 8px 0 10px;
  background: linear-gradient(90deg, var(--mobile002d5-rust) 0%, var(--mobile002d5-teal) 55%, rgba(169, 169, 169, 0.25) 100%);
  border-radius: 2px;
}

.mobile002d5-lede {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--mobile002d5-wheat);
}
.mobile002d5-lede strong { color: #fff3da; }

/* ============ Game grid: icon tile + name bar ============ */
.mobile002d5-games {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mobile002d5-gtile {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--mobile002d5-panel-edge);
  border-radius: var(--mobile002d5-radius-card);
  background: var(--mobile002d5-panel);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
  min-width: 0;
}
.mobile002d5-gtile:hover { border-color: var(--mobile002d5-rust); text-decoration: none; }
.mobile002d5-gtile:active { transform: translateY(1px); }

.mobile002d5-gtile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #222;
}

/* horizontal name strip under the icon */
.mobile002d5-gname {
  display: block;
  min-height: 44px;
  padding: 4px 5px 6px;
  background: linear-gradient(180deg, rgba(36, 36, 36, 0.35) 0%, rgba(22, 22, 22, 0.85) 100%);
  color: var(--mobile002d5-wheat);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============ Cards / list blocks ============ */
.mobile002d5-card {
  background: var(--mobile002d5-panel);
  border: 1px solid var(--mobile002d5-panel-edge);
  border-radius: var(--mobile002d5-radius-card);
  padding: 13px 14px;
  margin: 0 0 10px;
}

.mobile002d5-card h3 {
  font-family: var(--mobile002d5-head-font);
  font-size: 15.5px;
  margin: 0 0 7px;
  color: #fff3da;
}
.mobile002d5-card h3 .mobile002d5-tick { color: var(--mobile002d5-teal); margin-right: 6px; }

.mobile002d5-card p { margin: 0 0 8px; font-size: 13.5px; color: var(--mobile002d5-wheat); }
.mobile002d5-card p:last-child { margin-bottom: 0; }

.mobile002d5-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile002d5-list li {
  position: relative;
  padding: 5px 0 5px 24px;
  font-size: 13.5px;
  color: var(--mobile002d5-wheat);
}
.mobile002d5-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--mobile002d5-rust);
}
.mobile002d5-list-teal li::before { background: var(--mobile002d5-teal); border-radius: 50%; }

.mobile002d5-steps { counter-reset: mobile002d5step; margin: 0; padding: 0; list-style: none; }
.mobile002d5-steps li {
  counter-increment: mobile002d5step;
  position: relative;
  padding: 0 0 10px 34px;
  font-size: 13.5px;
  color: var(--mobile002d5-wheat);
}
.mobile002d5-steps li::before {
  content: counter(mobile002d5step);
  position: absolute;
  left: 0; top: 1px;
  width: 23px; height: 23px;
  border-radius: 50%;
  background: var(--mobile002d5-teal);
  color: #10201f;
  font-family: var(--mobile002d5-head-font);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile002d5-kv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile002d5-kv li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  background: rgba(36, 36, 36, 0.5);
  border: 1px solid var(--mobile002d5-panel-edge);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 13px;
}
.mobile002d5-kv b {
  flex: 0 0 96px;
  color: var(--mobile002d5-teal);
  font-family: var(--mobile002d5-head-font);
  font-size: 12.5px;
  letter-spacing: 0.2px;
}
.mobile002d5-kv span { color: var(--mobile002d5-wheat); }

/* inline promo text link */
.mobile002d5-tlink {
  color: #ffd9a8;
  font-weight: 700;
  border-bottom: 1px dashed var(--mobile002d5-rust);
}
.mobile002d5-tlink:hover { color: #fff3da; text-decoration: none; border-bottom-style: solid; }

/* ============ CTA strip ============ */
.mobile002d5-ctastrip {
  display: flex;
  gap: 9px;
  margin: 12px 0 4px;
}
.mobile002d5-ctastrip .mobile002d5-btn { flex: 1 1 auto; }

/* ============ Extended footer ============ */
.mobile002d5-extfoot {
  margin: 26px 14px 0;
  border: 1px solid var(--mobile002d5-panel-edge);
  border-radius: var(--mobile002d5-radius-card);
  background: #303030;
  overflow: hidden;
}
.mobile002d5-extfoot-title {
  font-family: var(--mobile002d5-head-font);
  font-size: 16px;
  font-weight: 700;
  color: #fff3da;
  margin: 0;
  padding: 11px 13px 9px;
  border-bottom: 1px solid var(--mobile002d5-panel-edge);
  background: linear-gradient(180deg, rgba(210, 105, 30, 0.18) 0%, rgba(0, 0, 0, 0) 100%);
}
.mobile002d5-extfoot-body { padding: 12px 13px 14px; }

.mobile002d5-promo5 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
}
.mobile002d5-promo5 .mobile002d5-btn { min-height: 46px; font-size: 13px; padding: 9px 8px; }
.mobile002d5-promo5 .mobile002d5-wide { grid-column: 1 / -1; }

.mobile002d5-brandnote {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--mobile002d5-muted);
  border-left: 3px solid var(--mobile002d5-teal);
  padding-left: 10px;
}

.mobile002d5-dir2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile002d5-dir2 li { min-width: 0; }
.mobile002d5-dir2 a {
  display: block;
  min-height: 42px;
  padding: 8px 9px;
  background: rgba(36, 36, 36, 0.55);
  border: 1px solid var(--mobile002d5-panel-edge);
  border-radius: 8px;
  color: var(--mobile002d5-wheat);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}
.mobile002d5-dir2 a:hover { border-color: var(--mobile002d5-teal); text-decoration: none; }
.mobile002d5-dir2 a small { display: block; color: var(--mobile002d5-muted); font-weight: 400; font-size: 10.5px; }

.mobile002d5-disclaimer {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--mobile002d5-panel-edge);
  font-size: 11.5px;
  color: var(--mobile002d5-muted);
}

/* ============ Common footer ============ */
.mobile002d5-footer {
  margin-top: 20px;
  padding: 14px 16px calc(var(--mobile002d5-rail-h) + 22px);
  text-align: center;
  border-top: 1px solid var(--mobile002d5-panel-edge);
  background: #2b2b2b;
}
.mobile002d5-footer p {
  margin: 0;
  font-size: 12px;
  color: var(--mobile002d5-muted);
}

/* ============ Bottom rail: 5-role nav ============ */
.mobile002d5-rail {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--mobile002d5-rail-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, #3a3a3a 0%, #2c2c2c 100%);
  border-top: 1px solid var(--mobile002d5-panel-edge);
  z-index: 70;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile002d5-rail::after { content: none; }

#mobile002d5-rail-ind {
  position: absolute;
  top: -1px; left: 0;
  width: 36px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--mobile002d5-rust);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

.mobile002d5-rail a,
.mobile002d5-rail button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  height: 100%;
  background: none;
  border: 0;
  color: var(--mobile002d5-muted);
  font-size: 10.5px;
  font-weight: 600;
  font-family: var(--mobile002d5-body-font);
  cursor: pointer;
  padding: 6px 2px 4px;
}
.mobile002d5-rail a:hover,
.mobile002d5-rail button:hover { text-decoration: none; color: var(--mobile002d5-wheat); }

.mobile002d5-rail svg {
  width: 21px; height: 21px;
  transition: transform 0.18s ease;
}
.mobile002d5-rail a:active svg,
.mobile002d5-rail button:active svg { transform: scale(0.88); }

.mobile002d5-rail-active { color: var(--mobile002d5-wheat); }
.mobile002d5-rail-active svg { color: var(--mobile002d5-rust); }

.mobile002d5-rail-hot { color: #ffd9a8; }
.mobile002d5-rail-hot svg { color: var(--mobile002d5-rust); }

/* ============ Wide-screen framing (phone canvas stays centered) ============ */
@media (min-width: 431px) {
  body {
    box-shadow: 0 0 0 1px #242424, 0 0 40px rgba(0, 0, 0, 0.55);
    min-height: 100vh;
  }
}

/* ============ 430px canvas refinement: 5 game columns ============ */
@media (min-width: 430px) {
  :root {
    --mobile002d5-header-h: 136px;
  }
  .mobile002d5-games { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mobile002d5-hero h1 { font-size: 26px; }
  .mobile002d5-sec-head h2 { font-size: 20px; }
}

/* ============ Small phone squeeze ============ */
@media (max-width: 359px) {
  .mobile002d5-actrow { flex-wrap: wrap; }
  .mobile002d5-register, .mobile002d5-login { flex: 1 1 40%; }
  .mobile002d5-menubtn { flex: 1 1 100%; flex-direction: row; }
  .mobile002d5-promo5 { grid-template-columns: 1fr; }
  .mobile002d5-dir2 { grid-template-columns: 1fr; }
  .mobile002d5-gname { font-size: 10.5px; }
}

/* ============ Motion preference ============ */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .mobile002d5-banner-slide { transition: none; }
}
