/* ==========================================================================
   ph365 bet login - mobile-first site tokens
   File: css/ph365-bet-login-tokens-7b5407.css
   Class + variable prefix: surface7b540-
   Canvas: 320-430px phone frame, centered on wide screens (literal 430 breakpoint)
   Palette: #262626 / #FFAA00 / #808080 / #FA8072 / #CD853F / #8B0000
   Direction: high-contrast display + readable body, near-square utilitarian
   corners, grouped cover cards, intro-led sections, sliding focus indicators,
   compact dual-button CTA groups.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --surface7b540-ink: #262626;
  --surface7b540-ink-deep: #1b1b1b;
  --surface7b540-ink-raise: #303030;
  --surface7b540-ink-hover: #3a3a3a;
  --surface7b540-amber: #FFAA00;
  --surface7b540-amber-soft: rgba(255, 170, 0, 0.16);
  --surface7b540-amber-glow: rgba(255, 170, 0, 0.38);
  --surface7b540-salmon: #FA8072;
  --surface7b540-bronze: #CD853F;
  --surface7b540-blood: #8B0000;
  --surface7b540-blood-deep: #5f0000;
  --surface7b540-steel: #808080;
  --surface7b540-paper: #f5efe6;
  --surface7b540-paper-dim: #c9c2b6;
  --surface7b540-line: rgba(245, 239, 230, 0.14);
  --surface7b540-line-strong: rgba(245, 239, 230, 0.26);
  --surface7b540-edge: 3px;
  --surface7b540-edge-tight: 2px;
  --surface7b540-font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --surface7b540-font-body: 'Roboto', 'Segoe UI', Arial, sans-serif;
  --surface7b540-topbar-h: 57px;
  --surface7b540-bottomnav-h: 62px;
  --surface7b540-pace: 220ms;
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: #141414;
  color: var(--surface7b540-paper);
  font-family: var(--surface7b540-font-body);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; border: 0; }

button, a {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--surface7b540-amber); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { list-style-position: inside; }

/* Visible keyboard focus: sliding amber indicator */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--surface7b540-amber);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. Phone canvas shell (centered, capped at 430px)
   -------------------------------------------------------------------------- */
.surface7b540-page {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--surface7b540-ink);
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
  overflow-x: clip;
}

.surface7b540-main {
  padding-top: calc(var(--surface7b540-topbar-h) + 10px);
  /* reserve room so the fixed rack never covers copy */
  padding-bottom: calc(var(--surface7b540-bottomnav-h) + 26px);
}

/* --------------------------------------------------------------------------
   4. Topbar - edge-aligned functional header
   -------------------------------------------------------------------------- */
.surface7b540-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--surface7b540-topbar-h);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  background: rgba(30, 30, 30, 0.96);
  border-bottom: 1px solid var(--surface7b540-line-strong);
  backdrop-filter: blur(6px);
}

.surface7b540-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 2px 0;
}

.surface7b540-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border: 1px solid var(--surface7b540-bronze);
  border-radius: var(--surface7b540-edge-tight);
  background: var(--surface7b540-ink-deep);
  flex: 0 0 auto;
}

.surface7b540-brand-name {
  font-family: var(--surface7b540-font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.05;
  color: var(--surface7b540-paper);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.surface7b540-brand-name b { color: var(--surface7b540-amber); font-weight: 700; }

.surface7b540-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* Compact CTA pair in the header */
.surface7b540-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: var(--surface7b540-edge);
  border: 1px solid transparent;
  font-family: var(--surface7b540-font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--surface7b540-pace) ease,
              box-shadow var(--surface7b540-pace) ease,
              background var(--surface7b540-pace) ease,
              color var(--surface7b540-pace) ease;
}

.surface7b540-btn:active { transform: translateY(1px); }

.surface7b540-btn--register {
  background: linear-gradient(180deg, #ffc23d 0%, var(--surface7b540-amber) 55%, #e69500 100%);
  color: #241a00;
  border-color: #b87f00;
}

.surface7b540-btn--register:hover {
  box-shadow: 0 0 12px var(--surface7b540-amber-glow);
  text-decoration: none;
}

.surface7b540-btn--login {
  background: transparent;
  color: var(--surface7b540-amber);
  border-color: var(--surface7b540-amber);
}

.surface7b540-btn--login:hover {
  background: var(--surface7b540-amber-soft);
  text-decoration: none;
}

.surface7b540-btn--ghost {
  background: rgba(245, 239, 230, 0.05);
  color: var(--surface7b540-paper);
  border-color: var(--surface7b540-line-strong);
}

.surface7b540-menu-toggle {
  width: 42px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(245, 239, 230, 0.06);
  border: 1px solid var(--surface7b540-line-strong);
  border-radius: var(--surface7b540-edge);
  cursor: pointer;
}

.surface7b540-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--surface7b540-paper);
  transition: transform var(--surface7b540-pace) ease, opacity var(--surface7b540-pace) ease;
}

.surface7b540-menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.surface7b540-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.surface7b540-menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Full-height menu layer
   -------------------------------------------------------------------------- */
.surface7b540-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(85vw, 330px);
  z-index: 120;
  background: var(--surface7b540-ink-deep);
  border-left: 2px solid var(--surface7b540-bronze);
  transform: translateX(102%);
  transition: transform 260ms ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: 24px;
}

.surface7b540-menu.is-open { transform: translateX(0); }

.surface7b540-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--surface7b540-line);
}

.surface7b540-menu-head img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border: 1px solid var(--surface7b540-bronze);
  border-radius: var(--surface7b540-edge-tight);
}

.surface7b540-menu-title {
  font-family: var(--surface7b540-font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--surface7b540-paper);
}

.surface7b540-menu-close {
  width: 42px;
  height: 42px;
  font-size: 20px;
  line-height: 1;
  color: var(--surface7b540-paper);
  background: rgba(245, 239, 230, 0.06);
  border: 1px solid var(--surface7b540-line-strong);
  border-radius: var(--surface7b540-edge);
  cursor: pointer;
}

.surface7b540-menu-group { padding: 14px 14px 4px; }

.surface7b540-menu-group-label {
  font-family: var(--surface7b540-font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--surface7b540-bronze);
  margin-bottom: 6px;
  padding-left: 8px;
  border-left: 3px solid var(--surface7b540-blood);
}

.surface7b540-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 10px 10px 10px 12px;
  border-bottom: 1px solid var(--surface7b540-line);
  color: var(--surface7b540-paper);
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.surface7b540-menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--surface7b540-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--surface7b540-pace) ease;
}

.surface7b540-menu-link:hover,
.surface7b540-menu-link:focus-visible {
  background: var(--surface7b540-amber-soft);
  text-decoration: none;
}

.surface7b540-menu-link:hover::after,
.surface7b540-menu-link:focus-visible::after { transform: scaleX(1); }

.surface7b540-menu-link small {
  color: var(--surface7b540-steel);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.surface7b540-menu-cta {
  margin: 18px 14px 0;
  display: flex;
  gap: 8px;
}

.surface7b540-menu-cta .surface7b540-btn { flex: 1; }

.surface7b540-scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.surface7b540-scrim.is-open { opacity: 1; pointer-events: auto; }

body.surface7b540-lock { overflow: hidden; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.surface7b540-hero {
  padding: 16px 14px 6px;
  border-bottom: 1px solid var(--surface7b540-line);
  background:
    linear-gradient(180deg, rgba(139, 0, 0, 0.32) 0%, rgba(38, 38, 38, 0) 72%),
    var(--surface7b540-ink);
}

.surface7b540-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--surface7b540-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--surface7b540-salmon);
  border: 1px solid rgba(250, 128, 114, 0.4);
  padding: 4px 8px;
  border-radius: var(--surface7b540-edge-tight);
  margin-bottom: 10px;
}

.surface7b540-hero-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--surface7b540-salmon);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(250, 128, 114, 0.8);
}

.surface7b540-hero h1 {
  font-family: var(--surface7b540-font-display);
  font-size: 27px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--surface7b540-paper);
}

.surface7b540-hero h1 em {
  font-style: normal;
  color: var(--surface7b540-amber);
}

.surface7b540-hero-lead {
  margin: 10px 0 14px;
  color: var(--surface7b540-paper-dim);
  font-size: 14.5px;
}

.surface7b540-hero-lead strong { color: var(--surface7b540-paper); }

.surface7b540-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--surface7b540-line-strong);
  border-radius: var(--surface7b540-edge);
  overflow: hidden;
  margin-bottom: 14px;
}

.surface7b540-stat {
  padding: 8px 6px 7px;
  text-align: center;
  background: var(--surface7b540-ink-deep);
  border-right: 1px solid var(--surface7b540-line);
}

.surface7b540-stat:last-child { border-right: 0; }

.surface7b540-stat b {
  display: block;
  font-family: var(--surface7b540-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--surface7b540-amber);
  line-height: 1.1;
}

.surface7b540-stat span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--surface7b540-steel);
}

/* Dual CTA group */
.surface7b540-duo {
  display: flex;
  gap: 8px;
}

.surface7b540-duo .surface7b540-btn { flex: 1; min-height: 44px; }

/* --------------------------------------------------------------------------
   7. Promo carousel
   -------------------------------------------------------------------------- */
.surface7b540-carousel {
  position: relative;
  margin: 14px 0 4px;
  border: 1px solid var(--surface7b540-line-strong);
  border-radius: var(--surface7b540-edge);
  overflow: hidden;
  background: var(--surface7b540-ink-deep);
}

.surface7b540-slide {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--surface7b540-ink-deep);
}

.surface7b540-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.surface7b540-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27, 27, 27, 0.88) 0%, rgba(27, 27, 27, 0.35) 55%, rgba(27, 27, 27, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  text-align: left;
}

.surface7b540-slide-tag {
  font-family: var(--surface7b540-font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--surface7b540-bronze);
}

.surface7b540-slide-title {
  font-family: var(--surface7b540-font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.14;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.surface7b540-slide-sub {
  font-size: 12.5px;
  color: var(--surface7b540-paper-dim);
  max-width: 220px;
}

.surface7b540-slide-cta {
  align-self: flex-start;
  font-family: var(--surface7b540-font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #241a00;
  background: var(--surface7b540-amber);
  border-radius: var(--surface7b540-edge-tight);
  padding: 6px 10px;
  margin-top: 2px;
}

.surface7b540-carousel-nav {
  position: absolute;
  right: 10px;
  bottom: 9px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.surface7b540-dot {
  width: 24px;
  height: 5px;
  border: 0;
  border-radius: 2px;
  background: rgba(245, 239, 230, 0.32);
  cursor: pointer;
  transition: background var(--surface7b540-pace) ease, box-shadow var(--surface7b540-pace) ease;
}

.surface7b540-dot.is-on {
  background: var(--surface7b540-amber);
  box-shadow: 0 0 8px var(--surface7b540-amber-glow);
}

/* --------------------------------------------------------------------------
   8. Category rail
   -------------------------------------------------------------------------- */
.surface7b540-rail {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 12px 14px 10px;
  scrollbar-width: none;
}

.surface7b540-rail::-webkit-scrollbar { display: none; }

.surface7b540-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--surface7b540-line-strong);
  border-radius: var(--surface7b540-edge);
  background: var(--surface7b540-ink-raise);
  color: var(--surface7b540-paper);
  font-family: var(--surface7b540-font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.surface7b540-chip::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--surface7b540-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--surface7b540-pace) ease;
}

.surface7b540-chip.is-on {
  border-color: var(--surface7b540-amber);
  color: var(--surface7b540-amber);
  background: var(--surface7b540-amber-soft);
}

.surface7b540-chip.is-on::after { transform: scaleX(1); }

.surface7b540-chip i {
  font-style: normal;
  font-size: 11px;
  color: var(--surface7b540-steel);
}

.surface7b540-chip.is-on i { color: var(--surface7b540-bronze); }

/* --------------------------------------------------------------------------
   9. Section shell (intro-led sections)
   -------------------------------------------------------------------------- */
.surface7b540-section {
  padding: 18px 14px 6px;
}

.surface7b540-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-left: 4px solid var(--surface7b540-blood);
  padding-left: 9px;
  margin-bottom: 6px;
}

.surface7b540-section-head h2 {
  font-family: var(--surface7b540-font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--surface7b540-paper);
}

.surface7b540-count {
  flex: 0 0 auto;
  font-family: var(--surface7b540-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--surface7b540-bronze);
  text-transform: uppercase;
  border: 1px solid rgba(205, 133, 63, 0.45);
  padding: 2px 7px;
  border-radius: var(--surface7b540-edge-tight);
}

.surface7b540-intro {
  color: var(--surface7b540-paper-dim);
  font-size: 14px;
  margin-bottom: 12px;
}

.surface7b540-intro strong { color: var(--surface7b540-paper); }
.surface7b540-intro a { border-bottom: 1px solid rgba(255, 170, 0, 0.45); }
.surface7b540-intro a:hover { text-decoration: none; border-bottom-color: var(--surface7b540-amber); }

/* --------------------------------------------------------------------------
   10. Game grid - grouped cover cards
   -------------------------------------------------------------------------- */
.surface7b540-games {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 7px;
}

.surface7b540-game {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--surface7b540-line);
  border-radius: var(--surface7b540-edge);
  background: var(--surface7b540-ink-deep);
  padding: 4px 4px 6px;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  transition: border-color var(--surface7b540-pace) ease,
              background var(--surface7b540-pace) ease;
}

.surface7b540-game::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--surface7b540-amber), var(--surface7b540-salmon));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--surface7b540-pace) ease;
}

.surface7b540-game:hover,
.surface7b540-game:focus-visible {
  border-color: var(--surface7b540-bronze);
  background: var(--surface7b540-ink-raise);
  text-decoration: none;
}

.surface7b540-game:hover::after,
.surface7b540-game:focus-visible::after,
.surface7b540-game:active::after { transform: scaleX(1); }

.surface7b540-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--surface7b540-edge-tight);
  background: var(--surface7b540-ink-raise);
}

.surface7b540-game span {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.28;
  font-weight: 500;
  color: var(--surface7b540-paper-dim);
  /* controlled two-line clamp for long titles */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 27px;
}

/* --------------------------------------------------------------------------
   11. Copy modules (promotions, about, winners, criteria)
   -------------------------------------------------------------------------- */
.surface7b540-panel {
  border: 1px solid var(--surface7b540-line-strong);
  border-radius: var(--surface7b540-edge);
  background: linear-gradient(180deg, var(--surface7b540-ink-raise) 0%, var(--surface7b540-ink-deep) 100%);
  padding: 14px 13px;
  margin-bottom: 14px;
}

.surface7b540-panel h3 {
  font-family: var(--surface7b540-font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--surface7b540-salmon);
  margin: 14px 0 6px;
}

.surface7b540-panel h3:first-child { margin-top: 0; }

.surface7b540-panel p {
  color: var(--surface7b540-paper-dim);
  font-size: 14px;
  margin-bottom: 10px;
}

.surface7b540-panel p:last-child { margin-bottom: 0; }

.surface7b540-panel strong { color: var(--surface7b540-paper); }

.surface7b540-panel a { border-bottom: 1px solid rgba(255, 170, 0, 0.45); }
.surface7b540-panel a:hover { text-decoration: none; border-bottom-color: var(--surface7b540-amber); }

/* Promo rows */
.surface7b540-promo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 6px;
  border: 0;
  border-bottom: 1px solid var(--surface7b540-line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  min-height: 48px;
}

.surface7b540-promo-row:last-of-type { border-bottom: 0; }

.surface7b540-promo-row:hover { background: var(--surface7b540-amber-soft); }

.surface7b540-promo-badge {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--surface7b540-edge);
  font-family: var(--surface7b540-font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(160deg, var(--surface7b540-blood) 0%, var(--surface7b540-blood-deep) 100%);
  border: 1px solid rgba(205, 133, 63, 0.5);
}

.surface7b540-promo-row b {
  display: block;
  font-size: 14px;
  color: var(--surface7b540-paper);
  font-weight: 600;
}

.surface7b540-promo-row small {
  display: block;
  font-size: 12px;
  color: var(--surface7b540-steel);
  line-height: 1.4;
}

.surface7b540-promo-row em {
  margin-left: auto;
  flex: 0 0 auto;
  font-style: normal;
  font-family: var(--surface7b540-font-display);
  font-size: 14px;
  color: var(--surface7b540-amber);
}

/* Winners ledger */
.surface7b540-ledger {
  border: 1px solid var(--surface7b540-line-strong);
  border-radius: var(--surface7b540-edge);
  overflow: hidden;
}

.surface7b540-ledger-head,
.surface7b540-win-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.85fr;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
}

.surface7b540-ledger-head {
  background: var(--surface7b540-blood-deep);
  font-family: var(--surface7b540-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #f3d9c8;
}

.surface7b540-win-row {
  border-top: 1px solid var(--surface7b540-line);
  background: var(--surface7b540-ink-deep);
  font-size: 12.5px;
  color: var(--surface7b540-paper-dim);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.surface7b540-win-row.is-lit {
  background: var(--surface7b540-amber-soft);
  box-shadow: inset 3px 0 0 var(--surface7b540-amber);
}

.surface7b540-win-row b {
  color: var(--surface7b540-paper);
  font-weight: 600;
  font-size: 12.5px;
}

.surface7b540-win-row .surface7b540-payout {
  font-family: var(--surface7b540-font-display);
  font-weight: 600;
  color: var(--surface7b540-amber);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.surface7b540-ledger-note {
  padding: 8px 10px;
  font-size: 11.5px;
  color: var(--surface7b540-steel);
  border-top: 1px solid var(--surface7b540-line);
  background: var(--surface7b540-ink);
}

/* Criteria checklist */
.surface7b540-check {
  list-style: none;
  margin: 4px 0 12px;
}

.surface7b540-check li {
  position: relative;
  padding: 8px 8px 8px 30px;
  border-bottom: 1px dashed var(--surface7b540-line);
  color: var(--surface7b540-paper-dim);
  font-size: 13.5px;
}

.surface7b540-check li:last-child { border-bottom: 0; }

.surface7b540-check li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--surface7b540-bronze);
  border-radius: 2px;
}

.surface7b540-check li::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 15px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--surface7b540-amber);
  border-bottom: 2px solid var(--surface7b540-amber);
  transform: rotate(-45deg);
}

.surface7b540-check b { color: var(--surface7b540-paper); }

/* Inline note blocks */
.surface7b540-note {
  border-left: 3px solid var(--surface7b540-bronze);
  background: rgba(205, 133, 63, 0.09);
  padding: 9px 11px;
  font-size: 12.5px;
  color: var(--surface7b540-paper-dim);
  border-radius: 0 var(--surface7b540-edge) var(--surface7b540-edge) 0;
  margin: 10px 0;
}

.surface7b540-note b { color: var(--surface7b540-salmon); }

/* --------------------------------------------------------------------------
   12. Extended footer (promotions > brand > directory > disclaimer)
   -------------------------------------------------------------------------- */
.surface7b540-extend {
  margin-top: 22px;
  border-top: 3px solid var(--surface7b540-blood);
  background:
    linear-gradient(180deg, rgba(139, 0, 0, 0.14) 0%, rgba(27, 27, 27, 0) 40%),
    var(--surface7b540-ink-deep);
  padding: 16px 14px 8px;
}

.surface7b540-extend-label {
  font-family: var(--surface7b540-font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--surface7b540-bronze);
  margin: 0 0 8px;
}

.surface7b540-action-rack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 18px;
}

.surface7b540-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--surface7b540-line-strong);
  border-radius: var(--surface7b540-edge);
  background: var(--surface7b540-ink-raise);
  color: var(--surface7b540-paper);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: border-color var(--surface7b540-pace) ease, background var(--surface7b540-pace) ease;
}

.surface7b540-action::after {
  content: "\2192";
  flex: 0 0 auto;
  color: var(--surface7b540-amber);
  font-size: 15px;
  transition: transform var(--surface7b540-pace) ease;
}

.surface7b540-action:hover,
.surface7b540-action:focus-visible {
  border-color: var(--surface7b540-amber);
  background: var(--surface7b540-amber-soft);
}

.surface7b540-action:hover::after,
.surface7b540-action:focus-visible::after { transform: translateX(3px); }

.surface7b540-action.is-wide { grid-column: 1 / -1; }

.surface7b540-extend-brand {
  font-size: 13px;
  color: var(--surface7b540-paper-dim);
  border-top: 1px solid var(--surface7b540-line);
  padding: 12px 0 14px;
}

.surface7b540-extend-brand p { margin-bottom: 8px; }
.surface7b540-extend-brand p:last-child { margin-bottom: 0; }

.surface7b540-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  border-top: 1px solid var(--surface7b540-line);
  padding: 12px 0 14px;
}

.surface7b540-directory a {
  display: block;
  min-height: 40px;
  padding: 8px 4px 6px;
  border-bottom: 1px solid var(--surface7b540-line);
  color: var(--surface7b540-paper-dim);
  font-size: 12.5px;
  line-height: 1.35;
}

.surface7b540-directory a b {
  display: block;
  color: var(--surface7b540-paper);
  font-weight: 600;
  font-size: 12.5px;
}

.surface7b540-directory a:hover { color: var(--surface7b540-amber); text-decoration: none; }
.surface7b540-directory a:hover b { color: var(--surface7b540-amber); }

.surface7b540-disclaimer {
  border-top: 1px solid var(--surface7b540-line);
  padding-top: 11px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--surface7b540-steel);
}

.surface7b540-disclaimer b { color: var(--surface7b540-paper-dim); }

/* --------------------------------------------------------------------------
   13. Common footer
   -------------------------------------------------------------------------- */
.surface7b540-footer {
  text-align: center;
  padding: 16px 14px 8px;
  border-top: 1px solid var(--surface7b540-line);
  font-size: 12px;
  color: var(--surface7b540-steel);
}

.surface7b540-footer b { color: var(--surface7b540-paper-dim); }

/* --------------------------------------------------------------------------
   14. Bottom nav - compact icon rack
   -------------------------------------------------------------------------- */
.surface7b540-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--surface7b540-bottomnav-h) + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(24, 24, 24, 0.97);
  border-top: 2px solid var(--surface7b540-blood);
  backdrop-filter: blur(6px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.surface7b540-navitem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--surface7b540-steel);
  cursor: pointer;
  padding: 6px 2px 4px;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 500;
}

.surface7b540-navitem + .surface7b540-navitem::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--surface7b540-line);
}

.surface7b540-navitem svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill var(--surface7b540-pace) ease, stroke var(--surface7b540-pace) ease;
}

.surface7b540-navitem:hover { color: var(--surface7b540-paper-dim); text-decoration: none; }

/* Active: fill change + top indicator + restrained glow */
.surface7b540-navitem.is-on { color: var(--surface7b540-amber); }

.surface7b540-navitem.is-on svg {
  stroke: var(--surface7b540-amber);
  fill: rgba(255, 170, 0, 0.22);
  filter: drop-shadow(0 0 5px var(--surface7b540-amber-glow));
}

.surface7b540-navitem.is-on::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 22%;
  width: 56%;
  height: 3px;
  background: var(--surface7b540-amber);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 0 8px var(--surface7b540-amber-glow);
}

.surface7b540-navitem--push { color: var(--surface7b540-salmon); }

.surface7b540-navitem--push svg { stroke: var(--surface7b540-salmon); }

.surface7b540-navitem--push:active svg {
  fill: rgba(250, 128, 114, 0.25);
  filter: drop-shadow(0 0 6px rgba(250, 128, 114, 0.55));
}

/* --------------------------------------------------------------------------
   15. Utilities + breakpoints
   -------------------------------------------------------------------------- */
.surface7b540-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.surface7b540-divider {
  height: 1px;
  background: var(--surface7b540-line);
  margin: 16px 0;
  border: 0;
}

/* Wider phones: 5 game columns per row */
@media (min-width: 390px) {
  .surface7b540-games { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .surface7b540-hero h1 { font-size: 29px; }
  .surface7b540-slide-title { font-size: 22px; }
  .surface7b540-section-head h2 { font-size: 20px; }
}

/* Desktop keeps the centered 430px phone canvas; add breathing room */
@media (min-width: 430px) {
  .surface7b540-page { border-left: 1px solid var(--surface7b540-line); border-right: 1px solid var(--surface7b540-line); }
  .surface7b540-section, .surface7b540-hero, .surface7b540-rail, .surface7b540-extend { padding-left: 18px; padding-right: 18px; }
  .surface7b540-games { gap: 9px 8px; }
}

/* Reduced motion: skip the slide/glow choreography */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --------------------------------------------------------------------------
   16. Help page components (fact sheet, question ledger, step track,
   contrast columns, stop/keep lists). Additive only; same token system.
   -------------------------------------------------------------------------- */

/* Fact sheet rows */
.surface7b540-facts {
  border: 1px solid var(--surface7b540-line-strong);
  border-radius: var(--surface7b540-edge);
  overflow: hidden;
  margin-bottom: 12px;
}

.surface7b540-facts > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border-bottom: 1px solid var(--surface7b540-line);
  background: var(--surface7b540-ink-deep);
}

.surface7b540-facts > div:nth-child(even) { background: var(--surface7b540-ink); }
.surface7b540-facts > div:last-child { border-bottom: 0; }

.surface7b540-facts b {
  font-family: var(--surface7b540-font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--surface7b540-bronze);
  padding-top: 2px;
}

.surface7b540-facts span {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--surface7b540-paper-dim);
}

@media (min-width: 390px) {
  .surface7b540-facts > div { grid-template-columns: 118px minmax(0, 1fr); }
}

/* Question ledger */
.surface7b540-qa {
  border: 1px solid var(--surface7b540-line-strong);
  border-radius: var(--surface7b540-edge);
  overflow: hidden;
}

.surface7b540-qa details {
  border-bottom: 1px solid var(--surface7b540-line);
  background: var(--surface7b540-ink-deep);
}

.surface7b540-qa details:last-child { border-bottom: 0; }
.surface7b540-qa details[open] { background: var(--surface7b540-ink-raise); }

.surface7b540-qa summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--surface7b540-paper);
  transition: background var(--surface7b540-pace) ease;
}

.surface7b540-qa summary::-webkit-details-marker { display: none; }
.surface7b540-qa summary:hover { background: var(--surface7b540-amber-soft); }

.surface7b540-qa summary i {
  flex: 0 0 auto;
  font-style: normal;
  font-family: var(--surface7b540-font-display);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--surface7b540-amber);
  border: 1px solid rgba(255, 170, 0, 0.45);
  border-radius: var(--surface7b540-edge-tight);
  padding: 2px 6px;
}

.surface7b540-qa summary::after {
  content: "+";
  margin-left: auto;
  flex: 0 0 auto;
  font-family: var(--surface7b540-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--surface7b540-steel);
  transition: color var(--surface7b540-pace) ease;
}

.surface7b540-qa details[open] summary::after { content: "\2212"; color: var(--surface7b540-amber); }

.surface7b540-qa-a {
  padding: 0 14px 13px 41px;
  font-size: 13.5px;
  color: var(--surface7b540-paper-dim);
}

.surface7b540-qa-a a { border-bottom: 1px solid rgba(255, 170, 0, 0.45); }
.surface7b540-qa-a a:hover { text-decoration: none; border-bottom-color: var(--surface7b540-amber); }

/* Step track */
.surface7b540-track {
  list-style: none;
  position: relative;
  margin: 4px 0 14px;
  padding-left: 36px;
}

.surface7b540-track::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--surface7b540-blood) 0%, var(--surface7b540-bronze) 100%);
}

.surface7b540-track li { position: relative; padding: 0 0 15px; }
.surface7b540-track li:last-child { padding-bottom: 2px; }

.surface7b540-track li::before {
  content: attr(data-step);
  position: absolute;
  left: -36px;
  top: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--surface7b540-font-display);
  font-size: 13px;
  font-weight: 700;
  color: #241a00;
  background: var(--surface7b540-amber);
  border-radius: var(--surface7b540-edge-tight);
  box-shadow: 0 0 0 3px var(--surface7b540-ink);
}

.surface7b540-track b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--surface7b540-paper);
  margin-bottom: 2px;
}

.surface7b540-track p {
  font-size: 13.5px;
  color: var(--surface7b540-paper-dim);
}

.surface7b540-track a { border-bottom: 1px solid rgba(255, 170, 0, 0.45); }
.surface7b540-track a:hover { text-decoration: none; border-bottom-color: var(--surface7b540-amber); }

/* Contrast columns */
.surface7b540-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 370px) {
  .surface7b540-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.surface7b540-split-col {
  border: 1px solid var(--surface7b540-line-strong);
  border-radius: var(--surface7b540-edge);
  background: var(--surface7b540-ink-deep);
  padding: 11px 11px 6px;
}

.surface7b540-split-col--pro { border-top: 3px solid var(--surface7b540-bronze); }
.surface7b540-split-col--con { border-top: 3px solid var(--surface7b540-blood); }

.surface7b540-split-col h3 {
  font-family: var(--surface7b540-font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--surface7b540-salmon);
  margin-bottom: 6px;
}

.surface7b540-split-col ul { list-style: none; }

.surface7b540-split-col li {
  position: relative;
  padding: 6px 2px 6px 20px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--surface7b540-paper-dim);
  border-bottom: 1px dashed var(--surface7b540-line);
}

.surface7b540-split-col li:last-child { border-bottom: 0; }

.surface7b540-split-col--pro li::before {
  content: "\2713";
  position: absolute;
  left: 2px;
  top: 6px;
  color: var(--surface7b540-amber);
  font-weight: 700;
}

.surface7b540-split-col--con li::before {
  content: "\00d7";
  position: absolute;
  left: 3px;
  top: 5px;
  color: var(--surface7b540-salmon);
  font-weight: 700;
}

/* Stop / keep lists */
.surface7b540-stoplist {
  list-style: none;
  margin: 4px 0 12px;
}

.surface7b540-stoplist li {
  position: relative;
  padding: 8px 8px 8px 30px;
  border-bottom: 1px dashed var(--surface7b540-line);
  font-size: 13.5px;
  color: var(--surface7b540-paper-dim);
}

.surface7b540-stoplist li:last-child { border-bottom: 0; }

.surface7b540-stoplist li::before {
  content: "\00d7";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--surface7b540-blood);
  border-radius: 2px;
}

.surface7b540-stoplist b { color: var(--surface7b540-paper); }

.surface7b540-keeplist li::before {
  content: "\2713";
  background: var(--surface7b540-bronze);
}
