/* ==========================================================================
   Nustar Casino App - canvas adaptive styles
   Mobile-first casino lobby for the 320-430px phone canvas. All custom
   classes and CSS variables use the surface8ec36- prefix.
   Palette: #FF6347 / #FF4500 / #999999 / #FFBF00 / #2C2C2C
   ========================================================================== */

:root {
  --surface8ec36-ink: #2C2C2C;
  --surface8ec36-ink-2: #1f1f1f;
  --surface8ec36-ink-3: #3a3a3a;
  --surface8ec36-cream: #fff6ee;
  --surface8ec36-cream-2: #ffe9d6;
  --surface8ec36-tomato: #FF6347;
  --surface8ec36-orange: #FF4500;
  --surface8ec36-amber: #FFBF00;
  --surface8ec36-ash: #999999;
  --surface8ec36-line: rgba(255, 255, 255, 0.14);
  --surface8ec36-line-strong: rgba(255, 191, 0, 0.42);
  --surface8ec36-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
  --surface8ec36-shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.28);
  --surface8ec36-radius: 14px;
  --surface8ec36-radius-lg: 22px;
  --surface8ec36-radius-pill: 999px;
  --surface8ec36-header-h: 60px;
  --surface8ec36-nav-h: 70px;
  --surface8ec36-maxw: 430px;
  --surface8ec36-font: 'Segoe UI', 'Helvetica Neue', system-ui, -apple-system, Arial, sans-serif;
}

/* ----- Reset ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--surface8ec36-font);
  color: var(--surface8ec36-cream);
  background: #161616;
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--surface8ec36-amber);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--surface8ec36-amber);
  outline-offset: 2px;
}

/* ----- Phone canvas: keeps the 320-430px layout on wide screens ----- */
.surface8ec36-canvas {
  max-width: var(--surface8ec36-maxw);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 99, 71, 0.22), transparent 42%),
    radial-gradient(circle at 95% 12%, rgba(255, 191, 0, 0.16), transparent 38%),
    linear-gradient(180deg, #241a16 0%, #1c1410 55%, #161010 100%);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.surface8ec36-canvas-locked {
  overflow: hidden;
}

/* ----- Read progress bar (top accent) ----- */
.surface8ec36-readProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--surface8ec36-tomato), var(--surface8ec36-amber));
  z-index: 60;
  transition: width 0.1s linear;
}

/* ==========================================================================
   Header - minimal title action band
   ========================================================================== */
.surface8ec36-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--surface8ec36-header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(90deg, rgba(44, 28, 24, 0.96), rgba(30, 18, 16, 0.96));
  border-bottom: 1px solid var(--surface8ec36-line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.surface8ec36-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.surface8ec36-brandLogo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--surface8ec36-amber);
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 191, 0, 0.18);
}

.surface8ec36-brandText {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.surface8ec36-brandName {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--surface8ec36-cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.surface8ec36-brandTag {
  font-size: 10px;
  color: var(--surface8ec36-amber);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
}

.surface8ec36-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.surface8ec36-btnLogin {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--surface8ec36-cream);
  padding: 8px 12px;
  border-radius: var(--surface8ec36-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 36px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.surface8ec36-btnLogin:hover,
.surface8ec36-btnLogin:focus-visible {
  background: rgba(255, 191, 0, 0.14);
  border-color: var(--surface8ec36-amber);
  text-decoration: none;
}

.surface8ec36-btnRegister {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #2C2C2C;
  padding: 8px 14px;
  border-radius: var(--surface8ec36-radius-pill);
  background: linear-gradient(135deg, var(--surface8ec36-amber), var(--surface8ec36-orange));
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.32);
  min-height: 36px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.surface8ec36-btnRegister:hover,
.surface8ec36-btnRegister:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 69, 0, 0.42);
  text-decoration: none;
}

.surface8ec36-menuTrigger {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.surface8ec36-menuTriggerBars,
.surface8ec36-menuTriggerBars::before,
.surface8ec36-menuTriggerBars::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--surface8ec36-cream);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.surface8ec36-menuTriggerBars {
  position: relative;
}

.surface8ec36-menuTriggerBars::before {
  position: absolute;
  top: -6px;
}

.surface8ec36-menuTriggerBars::after {
  position: absolute;
  top: 6px;
  width: 12px;
}

.surface8ec36-menuTrigger[aria-expanded='true'] .surface8ec36-menuTriggerBars {
  background: transparent;
}

.surface8ec36-menuTrigger[aria-expanded='true'] .surface8ec36-menuTriggerBars::before {
  transform: translateY(6px) rotate(45deg);
  width: 18px;
}

.surface8ec36-menuTrigger[aria-expanded='true'] .surface8ec36-menuTriggerBars::after {
  transform: translateY(-6px) rotate(-45deg);
  width: 18px;
}

/* ==========================================================================
   Slide-up route panel (menu)
   ========================================================================== */
.surface8ec36-scrim {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 6, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 70;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.surface8ec36-scrim--visible {
  opacity: 1;
  visibility: visible;
}

.surface8ec36-routePanel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--surface8ec36-maxw);
  margin: 0 auto;
  background: linear-gradient(180deg, #2a1c17 0%, #1a1210 100%);
  border-top: 1px solid var(--surface8ec36-line-strong);
  border-radius: 24px 24px 0 0;
  padding: 14px 18px calc(var(--surface8ec36-nav-h) + 18px);
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 80;
  max-height: 78vh;
  overflow-y: auto;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.5);
}

.surface8ec36-routePanel--open {
  transform: translateY(0);
}

.surface8ec36-routeHandle {
  width: 44px;
  height: 4px;
  border-radius: var(--surface8ec36-radius-pill);
  background: rgba(255, 255, 255, 0.22);
  margin: 0 auto 12px;
}

.surface8ec36-routeHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.surface8ec36-routeTitle {
  font-size: 16px;
  font-weight: 800;
  color: var(--surface8ec36-cream);
}

.surface8ec36-routeClose {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 99, 71, 0.16);
  color: var(--surface8ec36-tomato);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.surface8ec36-routeGroup {
  margin-bottom: 14px;
}

.surface8ec36-routeGroupLabel {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--surface8ec36-amber);
  margin: 0 0 8px 4px;
  font-weight: 700;
}

.surface8ec36-routeList {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.surface8ec36-routeLink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--surface8ec36-cream);
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
}

.surface8ec36-routeLink:hover,
.surface8ec36-routeLink:focus-visible {
  background: rgba(255, 191, 0, 0.12);
  border-color: rgba(255, 191, 0, 0.4);
  text-decoration: none;
}

.surface8ec36-routeDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface8ec36-tomato);
  flex-shrink: 0;
}

.surface8ec36-routeCtaRow {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.surface8ec36-routeCta {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  padding: 12px;
  border-radius: 12px;
  min-height: 44px;
}

.surface8ec36-routeCta--primary {
  background: linear-gradient(135deg, var(--surface8ec36-amber), var(--surface8ec36-orange));
  color: #2C2C2C;
}

.surface8ec36-routeCta--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--surface8ec36-cream);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   Main / sections
   ========================================================================== */
.surface8ec36-main {
  padding: 14px 12px calc(var(--surface8ec36-nav-h) + 28px);
}

.surface8ec36-section {
  margin-bottom: 22px;
}

.surface8ec36-sectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}

.surface8ec36-sectionTitle {
  font-size: 17px;
  font-weight: 800;
  color: var(--surface8ec36-cream);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.surface8ec36-sectionTitle::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--surface8ec36-amber), var(--surface8ec36-tomato));
}

.surface8ec36-sectionLink {
  font-size: 12px;
  font-weight: 700;
  color: var(--surface8ec36-amber);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Hero carousel
   ========================================================================== */
.surface8ec36-heroStage {
  position: relative;
  border-radius: var(--surface8ec36-radius-lg);
  overflow: hidden;
  box-shadow: var(--surface8ec36-shadow);
  margin-bottom: 22px;
  border: 1px solid var(--surface8ec36-line-strong);
}

.surface8ec36-heroViewport {
  overflow: hidden;
}

.surface8ec36-heroTrack {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.surface8ec36-heroSlide {
  flex: 0 0 100%;
  position: relative;
}

.surface8ec36-heroSlide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.surface8ec36-heroOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.surface8ec36-heroEyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--surface8ec36-amber);
  margin: 0 0 4px;
}

.surface8ec36-heroCaption {
  font-size: 14px;
  font-weight: 700;
  color: var(--surface8ec36-cream);
  margin: 0 0 8px;
  line-height: 1.3;
}

.surface8ec36-heroCta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #2C2C2C;
  background: linear-gradient(135deg, var(--surface8ec36-amber), var(--surface8ec36-orange));
  padding: 8px 14px;
  border-radius: var(--surface8ec36-radius-pill);
  align-self: flex-start;
  min-height: 36px;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.32);
}

.surface8ec36-heroCta:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.surface8ec36-heroNav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  transform: translateY(-50%);
  pointer-events: none;
}

.surface8ec36-heroArrow {
  pointer-events: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: var(--surface8ec36-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.surface8ec36-heroDots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.surface8ec36-heroDot {
  pointer-events: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.surface8ec36-heroDot--active {
  background: var(--surface8ec36-amber);
  width: 18px;
  border-radius: var(--surface8ec36-radius-pill);
}

/* ==========================================================================
   Quick action strip (promo tiles)
   ========================================================================== */
.surface8ec36-quickStrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.surface8ec36-quickTile {
  position: relative;
  border-radius: var(--surface8ec36-radius);
  padding: 12px 10px;
  text-align: left;
  background: linear-gradient(135deg, rgba(255, 99, 71, 0.18), rgba(255, 69, 0, 0.1));
  border: 1px solid rgba(255, 191, 0, 0.28);
  min-height: 64px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.surface8ec36-quickTile--alt {
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.18), rgba(255, 99, 71, 0.1));
}

.surface8ec36-quickTile--ghost {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.16);
}

.surface8ec36-quickTileLabel {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--surface8ec36-amber);
  font-weight: 700;
}

.surface8ec36-quickTileTitle {
  font-size: 13px;
  font-weight: 800;
  color: var(--surface8ec36-cream);
  line-height: 1.2;
}

.surface8ec36-quickTileArrow {
  margin-top: auto;
  font-size: 12px;
  color: var(--surface8ec36-tomato);
  font-weight: 800;
}

/* ==========================================================================
   Game grid
   ========================================================================== */
.surface8ec36-gameGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.surface8ec36-gameTile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border-radius: var(--surface8ec36-radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.surface8ec36-gameTile:hover,
.surface8ec36-gameTile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--surface8ec36-amber);
  box-shadow: 0 6px 14px rgba(255, 99, 71, 0.22);
  text-decoration: none;
}

.surface8ec36-gameTile--pulse {
  animation: surface8ec36Pulse 0.32s ease;
}

@keyframes surface8ec36Pulse {
  0% { transform: scale(1); }
  45% { transform: scale(0.96); box-shadow: 0 0 0 4px rgba(255, 191, 0, 0.22); }
  100% { transform: scale(1); }
}

.surface8ec36-gameTileImg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #1a1a1a;
}

.surface8ec36-gameTileName {
  font-size: 11px;
  font-weight: 600;
  color: var(--surface8ec36-cream);
  line-height: 1.2;
  min-height: 26px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Category banner inside game sections
   ========================================================================== */
.surface8ec36-catMeta {
  font-size: 11px;
  color: var(--surface8ec36-ash);
  margin: -4px 0 10px 4px;
}

.surface8ec36-catBanner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--surface8ec36-radius);
  background: linear-gradient(135deg, rgba(255, 99, 71, 0.16), rgba(255, 69, 0, 0.06));
  border: 1px solid rgba(255, 191, 0, 0.24);
  margin-bottom: 10px;
}

.surface8ec36-catBannerIcon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--surface8ec36-amber), var(--surface8ec36-orange));
  color: #2C2C2C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.surface8ec36-catBannerText {
  font-size: 12px;
  color: var(--surface8ec36-cream-2);
  line-height: 1.35;
}

/* ==========================================================================
   Content modules (highlights, terms, pros)
   ========================================================================== */
.surface8ec36-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--surface8ec36-radius-lg);
  padding: 16px;
  box-shadow: var(--surface8ec36-shadow-soft);
}

.surface8ec36-card p {
  margin: 0 0 10px;
  color: var(--surface8ec36-cream-2);
  font-size: 14px;
}

.surface8ec36-card p:last-child {
  margin-bottom: 0;
}

.surface8ec36-cardLead {
  font-size: 12px;
  color: var(--surface8ec36-amber);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin: 0 0 6px;
}

.surface8ec36-prose {
  font-size: 14px;
  color: var(--surface8ec36-cream-2);
  line-height: 1.62;
}

.surface8ec36-prose h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--surface8ec36-cream);
  margin: 14px 0 6px;
}

.surface8ec36-prose ul {
  margin: 8px 0;
  padding-left: 18px;
}

.surface8ec36-prose li {
  margin-bottom: 6px;
}

.surface8ec36-prose strong {
  color: var(--surface8ec36-amber);
}

/* Highlight grid (category highlights module) */
.surface8ec36-highlightGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.surface8ec36-highlightCard {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--surface8ec36-radius);
  padding: 12px;
}

.surface8ec36-highlightIcon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 191, 0, 0.18);
  color: var(--surface8ec36-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}

.surface8ec36-highlightTitle {
  font-size: 13px;
  font-weight: 800;
  color: var(--surface8ec36-cream);
  margin: 0 0 4px;
}

.surface8ec36-highlightBody {
  font-size: 12px;
  color: var(--surface8ec36-cream-2);
  line-height: 1.4;
  margin: 0;
}

/* Pros and limitations two-column compare */
.surface8ec36-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.surface8ec36-compareCol {
  border-radius: var(--surface8ec36-radius);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.surface8ec36-compareCol--pro {
  background: linear-gradient(180deg, rgba(255, 191, 0, 0.12), rgba(255, 191, 0, 0.03));
  border-color: rgba(255, 191, 0, 0.32);
}

.surface8ec36-compareCol--limit {
  background: linear-gradient(180deg, rgba(153, 153, 153, 0.16), rgba(153, 153, 153, 0.04));
  border-color: rgba(153, 153, 153, 0.34);
}

.surface8ec36-compareTitle {
  font-size: 13px;
  font-weight: 800;
  color: var(--surface8ec36-cream);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.surface8ec36-compareList {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: var(--surface8ec36-cream-2);
  line-height: 1.45;
}

.surface8ec36-compareList li {
  margin-bottom: 4px;
}

/* Term explanation chips */
.surface8ec36-termList {
  display: grid;
  gap: 8px;
}

.surface8ec36-term {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--surface8ec36-radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.surface8ec36-termKey {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: #2C2C2C;
  background: linear-gradient(135deg, var(--surface8ec36-amber), var(--surface8ec36-tomato));
  padding: 4px 8px;
  border-radius: 8px;
  height: fit-content;
  min-width: 56px;
  text-align: center;
}

.surface8ec36-termBody {
  font-size: 12px;
  color: var(--surface8ec36-cream-2);
  line-height: 1.45;
}

.surface8ec36-termBody strong {
  color: var(--surface8ec36-cream);
  display: block;
  margin-bottom: 2px;
}

/* Play-now CTA banner */
.surface8ec36-ctaBanner {
  position: relative;
  border-radius: var(--surface8ec36-radius-lg);
  padding: 18px 16px;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 191, 0, 0.35), transparent 55%),
    linear-gradient(135deg, var(--surface8ec36-orange), #c4360a);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--surface8ec36-shadow);
  text-align: center;
}

.surface8ec36-ctaBanner h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
}

.surface8ec36-ctaBanner p {
  font-size: 13px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.92);
}

.surface8ec36-ctaMain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #2C2C2C;
  background: var(--surface8ec36-amber);
  padding: 11px 22px;
  border-radius: var(--surface8ec36-radius-pill);
  min-height: 44px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.surface8ec36-ctaMain:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.surface8ec36-ctaGhost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-left: 8px;
  text-decoration: underline;
}

/* Inline promo link inside prose */
.surface8ec36-inlinePromo {
  color: var(--surface8ec36-amber);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Extended footer (two-column directory)
   ========================================================================== */
.surface8ec36-extFooter {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
  border-top: 1px solid var(--surface8ec36-line-strong);
  border-radius: var(--surface8ec36-radius-lg) var(--surface8ec36-radius-lg) 0 0;
  padding: 18px 14px 16px;
  margin-top: 6px;
}

.surface8ec36-extFooterBrand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.surface8ec36-extFooterLogo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--surface8ec36-amber);
  background: #fff;
  flex-shrink: 0;
}

.surface8ec36-extFooterAbout {
  font-size: 12px;
  color: var(--surface8ec36-cream-2);
  line-height: 1.5;
}

.surface8ec36-extFooterAbout strong {
  display: block;
  font-size: 14px;
  color: var(--surface8ec36-cream);
  margin-bottom: 4px;
  font-weight: 800;
}

.surface8ec36-promoDirectory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.surface8ec36-promoCard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: var(--surface8ec36-radius);
  background: linear-gradient(135deg, rgba(255, 99, 71, 0.16), rgba(255, 69, 0, 0.06));
  border: 1px solid rgba(255, 191, 0, 0.28);
  min-height: 64px;
}

.surface8ec36-promoCard--gold {
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.18), rgba(255, 99, 71, 0.06));
}

.surface8ec36-promoCardLabel {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--surface8ec36-amber);
  font-weight: 700;
}

.surface8ec36-promoCardTitle {
  font-size: 13px;
  font-weight: 800;
  color: var(--surface8ec36-cream);
  line-height: 1.2;
}

.surface8ec36-pageDirectory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin-bottom: 14px;
}

.surface8ec36-directoryCol h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--surface8ec36-amber);
  margin: 0 0 6px;
  font-weight: 700;
}

.surface8ec36-directoryCol ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.surface8ec36-directoryCol li {
  margin-bottom: 5px;
}

.surface8ec36-directoryCol a {
  font-size: 12px;
  color: var(--surface8ec36-cream-2);
}

.surface8ec36-directoryCol a:hover {
  color: var(--surface8ec36-amber);
  text-decoration: underline;
}

.surface8ec36-disclaimer {
  font-size: 11px;
  color: var(--surface8ec36-ash);
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(153, 153, 153, 0.3);
}

/* ==========================================================================
   Common footer (copyright)
   ========================================================================== */
.surface8ec36-footerCopy {
  text-align: center;
  font-size: 11px;
  color: var(--surface8ec36-ash);
  padding: 10px 14px calc(var(--surface8ec36-nav-h) + 14px);
}

.surface8ec36-footerCopy span {
  display: block;
  margin-bottom: 2px;
}

/* ==========================================================================
   Bottom navigation - outlined function bar (5 roles)
   ========================================================================== */
.surface8ec36-bottomNav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--surface8ec36-maxw);
  height: var(--surface8ec36-nav-h);
  background: linear-gradient(180deg, rgba(28, 18, 16, 0.98), rgba(18, 12, 10, 0.99));
  border-top: 1px solid var(--surface8ec36-line-strong);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 4px;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.surface8ec36-navBtn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--surface8ec36-ash);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  position: relative;
  border-top: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  min-height: 44px;
}

.surface8ec36-navBtnIcon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease;
}

.surface8ec36-navBtnIcon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.surface8ec36-navBtnLabel {
  font-size: 10px;
  line-height: 1;
}

.surface8ec36-navBtn:hover,
.surface8ec36-navBtn:focus-visible {
  color: var(--surface8ec36-cream);
  text-decoration: none;
}

/* Active state: label emphasis + accent indicator (monochrome icon gains amber) */
.surface8ec36-navBtn--active {
  color: var(--surface8ec36-amber);
  border-top-color: var(--surface8ec36-amber);
  background: linear-gradient(180deg, rgba(255, 191, 0, 0.12), transparent);
}

.surface8ec36-navBtn--active .surface8ec36-navBtnIcon {
  transform: translateY(-1px) scale(1.08);
}

.surface8ec36-navBtn--active .surface8ec36-navBtnLabel {
  font-weight: 800;
}

/* Promo buttons get a subtle accent dot */
.surface8ec36-navBtn--promo .surface8ec36-navBtnIcon {
  position: relative;
}

.surface8ec36-navBtn--promo .surface8ec36-navBtnIcon::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--surface8ec36-tomato);
  box-shadow: 0 0 0 2px rgba(28, 18, 16, 0.99);
}

/* Center promo button gets elevated emphasis */
.surface8ec36-navBtn--featured {
  color: var(--surface8ec36-amber);
}

.surface8ec36-navBtn--featured .surface8ec36-navBtnIcon {
  background: linear-gradient(135deg, var(--surface8ec36-amber), var(--surface8ec36-orange));
  color: #2C2C2C;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  margin-top: -14px;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.42);
  border: 3px solid rgba(28, 18, 16, 0.99);
}

.surface8ec36-navBtn--featured .surface8ec36-navBtnIcon svg {
  width: 18px;
  height: 18px;
  stroke: #2C2C2C;
  stroke-width: 2;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.surface8ec36-visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Responsive refinements inside the phone canvas
   ========================================================================== */
@media (min-width: 360px) {
  .surface8ec36-heroSlide img {
    height: 220px;
  }
  .surface8ec36-sectionTitle {
    font-size: 18px;
  }
}

@media (min-width: 393px) {
  .surface8ec36-gameGrid {
    grid-template-columns: repeat(5, 1fr);
  }
  .surface8ec36-quickStrip {
    gap: 10px;
  }
  .surface8ec36-heroSlide img {
    height: 240px;
  }
  .surface8ec36-promoDirectory {
    gap: 10px;
  }
}

@media (min-width: 414px) {
  body {
    font-size: 16px;
  }
  .surface8ec36-heroCaption {
    font-size: 16px;
  }
}

/* Honour reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
