/* ==========================================================================
   Slot Casino - dynamic-bcc4e9-shell.css
   Mobile-first shell tuned for a 320-430px phone canvas.
   Wide screens keep the same centered phone rail (no desktop redesign).
   Class prefix .... uic4e9b-
   Variable prefix . --uic4e9b-
   Palette reference: #E6E6FA / #34495E / #F5DEB3 / #A0522D / #FFDEAD
   Design tone: geometric headings + neutral body, near-square tool edges,
   image tiles with bottom name bars, step-driven rhythm, square high
   contrast CTAs, restrained glow feedback only.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --uic4e9b-slate: #34495e;                 /* page background */
  --uic4e9b-lavender: #e6e6fa;              /* primary text */
  --uic4e9b-wheat: #f5deb3;                 /* accents, key lines */
  --uic4e9b-sienna: #a0522d;                /* CTA fill */
  --uic4e9b-navajo: #ffdead;                /* warm highlight text */
  --uic4e9b-deep: #2a3a49;                  /* pressed panel slate */
  --uic4e9b-void: #23303c;                  /* canvas rails */
  --uic4e9b-edge: rgba(230, 230, 250, 0.16);
  --uic4e9b-hairline: rgba(245, 222, 179, 0.34);
  --uic4e9b-soft: rgba(230, 230, 250, 0.66);
  --uic4e9b-faint: rgba(230, 230, 250, 0.4);
  --uic4e9b-canvas: 430px;
  --uic4e9b-head-h: 58px;
  --uic4e9b-tab-h: 60px;
  --uic4e9b-font-head: "Chakra Petch", "Trebuchet MS", "Segoe UI", sans-serif;
  --uic4e9b-font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--uic4e9b-void);
  color: var(--uic4e9b-lavender);
  font-family: var(--uic4e9b-font-body);
  font-size: 14px;
  line-height: 1.62;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--uic4e9b-font-head);
  color: var(--uic4e9b-navajo);
  margin: 0 0 8px;
  line-height: 1.28;
}

h1 { font-size: 21px; font-weight: 700; letter-spacing: 0.02em; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: 0.04em; text-transform: none; }
h3 { font-size: 14.5px; font-weight: 600; color: var(--uic4e9b-wheat); margin-top: 16px; }

p { margin: 0 0 10px; }

a { color: var(--uic4e9b-wheat); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

:focus-visible {
  outline: 2px solid var(--uic4e9b-wheat);
  outline-offset: 2px;
}

/* ==========================================================================
   Top band: minimal title + action strip (fixed at canvas top)
   ========================================================================== */
.uic4e9b-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--uic4e9b-canvas);
  height: calc(var(--uic4e9b-head-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(42, 58, 73, 0.94);
  border-bottom: 1px solid var(--uic4e9b-hairline);
  z-index: 50;
}

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

.uic4e9b-logo {
  width: 32px;
  height: 32px;
  border: 1px solid var(--uic4e9b-hairline);
  border-radius: 2px;
  flex: 0 0 auto;
  background: var(--uic4e9b-deep);
}

.uic4e9b-brandname {
  font-family: var(--uic4e9b-font-head);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: 0.09em;
  color: var(--uic4e9b-lavender);
  text-transform: uppercase;
  white-space: nowrap;
}

.uic4e9b-topacts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* Square, high contrast action buttons */
.uic4e9b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--uic4e9b-font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

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

.uic4e9b-btn-wheat {
  background: var(--uic4e9b-wheat);
  color: var(--uic4e9b-slate);
}

.uic4e9b-btn-wheat:active {
  box-shadow: 0 0 0 2px rgba(245, 222, 179, 0.35);
}

.uic4e9b-btn-line {
  border: 1px solid var(--uic4e9b-hairline);
  color: var(--uic4e9b-wheat);
  background: rgba(36, 48, 61, 0.4);
}

.uic4e9b-btn-line:active {
  box-shadow: 0 0 0 2px rgba(230, 230, 250, 0.18);
}

.uic4e9b-btn-sienna {
  background: var(--uic4e9b-sienna);
  color: var(--uic4e9b-navajo);
}

.uic4e9b-btn-sienna:active {
  box-shadow: 0 0 0 2px rgba(255, 222, 173, 0.3);
}

/* Hamburger trigger for the slide-up route panel */
.uic4e9b-burger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--uic4e9b-edge);
  border-radius: 2px;
  color: var(--uic4e9b-wheat);
}

.uic4e9b-burger svg { display: block; }

.uic4e9b-burger:active {
  box-shadow: 0 0 0 2px rgba(245, 222, 179, 0.25);
}

/* ==========================================================================
   Slide-up route panel (menu)
   ========================================================================== */
.uic4e9b-scrim {
  position: fixed;
  inset: 0;
  background: rgba(23, 31, 40, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 60;
}

.uic4e9b-scrim.uic4e9b-on { opacity: 1; pointer-events: auto; }

.uic4e9b-drawer {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 105%);
  width: 100%;
  max-width: var(--uic4e9b-canvas);
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  background: var(--uic4e9b-deep);
  border-top: 2px solid var(--uic4e9b-wheat);
  border-left: 1px solid var(--uic4e9b-edge);
  border-right: 1px solid var(--uic4e9b-edge);
  border-radius: 4px 4px 0 0;
  padding: 12px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 61;
}

.uic4e9b-drawer.uic4e9b-open { transform: translate(-50%, 0); }

.uic4e9b-drawerhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--uic4e9b-edge);
  margin-bottom: 10px;
}

.uic4e9b-drawerhead span {
  font-family: var(--uic4e9b-font-head);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--uic4e9b-wheat);
}

.uic4e9b-drawerclose {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--uic4e9b-edge);
  border-radius: 2px;
  color: var(--uic4e9b-lavender);
  margin: -8px -8px -8px 0;
}

.uic4e9b-drawerlabel {
  font-family: var(--uic4e9b-font-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--uic4e9b-faint);
  margin: 12px 0 4px;
}

.uic4e9b-drawerlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(230, 230, 250, 0.08);
  color: var(--uic4e9b-lavender);
  font-size: 14px;
}

.uic4e9b-drawerlink:visited { color: var(--uic4e9b-lavender); }

.uic4e9b-drawerlink em {
  font-style: normal;
  font-size: 11px;
  color: var(--uic4e9b-faint);
  text-align: right;
}

.uic4e9b-drawerlink:hover { color: var(--uic4e9b-wheat); text-decoration: none; }

.uic4e9b-drawerlink.uic4e9b-here {
  color: var(--uic4e9b-slate);
  background: var(--uic4e9b-wheat);
  padding: 0 8px;
  border-radius: 2px;
}

.uic4e9b-drawerfoot {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.uic4e9b-drawerfoot .uic4e9b-btn { flex: 1 1 50%; }

/* ==========================================================================
   Main column
   ========================================================================== */
.uic4e9b-main {
  max-width: var(--uic4e9b-canvas);
  margin: 0 auto;
  padding: calc(var(--uic4e9b-head-h) + env(safe-area-inset-top, 0px) + 10px)
           12px
           calc(var(--uic4e9b-tab-h) + env(safe-area-inset-bottom, 0px) + 28px);
}

.uic4e9b-section { margin: 22px 0; }

.uic4e9b-section > p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Hero carousel
   ========================================================================== */
.uic4e9b-hero {
  position: relative;
  border: 1px solid var(--uic4e9b-edge);
  border-radius: 3px;
  overflow: hidden;
  background: var(--uic4e9b-deep);
}

.uic4e9b-track {
  display: flex;
  width: 100%;
  transition: transform 0.32s ease;
}

.uic4e9b-slide {
  position: relative;
  flex: 0 0 100%;
  cursor: pointer;
}

.uic4e9b-slide img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.uic4e9b-slidecap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 9px;
  background: linear-gradient(180deg, rgba(35, 48, 60, 0) 0%, rgba(30, 41, 52, 0.92) 78%);
  font-family: var(--uic4e9b-font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--uic4e9b-navajo);
}

.uic4e9b-heroarrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--uic4e9b-lavender);
  background: rgba(35, 48, 60, 0.62);
  border: 1px solid var(--uic4e9b-edge);
  border-radius: 2px;
  z-index: 3;
}

.uic4e9b-arrowprev { left: 4px; }
.uic4e9b-arrownext { right: 4px; }

.uic4e9b-heroarrow:active {
  box-shadow: 0 0 0 2px rgba(245, 222, 179, 0.3);
}

.uic4e9b-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.uic4e9b-dot {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.uic4e9b-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  background: rgba(230, 230, 250, 0.45);
  border-radius: 1px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.uic4e9b-dot.uic4e9b-on::after {
  background: var(--uic4e9b-wheat);
  transform: scale(1.25);
}

/* ==========================================================================
   Identity strip (H1 block)
   ========================================================================== */
.uic4e9b-identity {
  border-left: 3px solid var(--uic4e9b-sienna);
  padding: 2px 0 2px 12px;
  margin: 18px 0 6px;
}

.uic4e9b-lede {
  color: var(--uic4e9b-soft);
  font-size: 13.5px;
}

/* ==========================================================================
   Category blocks and game grid
   ========================================================================== */
.uic4e9b-cathead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--uic4e9b-hairline);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.uic4e9b-cathead h2 { margin: 0; }

.uic4e9b-catchip {
  flex: 0 0 auto;
  font-family: var(--uic4e9b-font-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--uic4e9b-navajo);
  border: 1px solid var(--uic4e9b-hairline);
  padding: 3px 7px;
  border-radius: 2px;
  white-space: nowrap;
}

.uic4e9b-catnote {
  font-size: 12.5px;
  color: var(--uic4e9b-soft);
  margin: 6px 0 10px;
}

.uic4e9b-catlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 10px 0 0;
  font-size: 12.5px;
}

.uic4e9b-catlink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--uic4e9b-wheat);
  min-height: 30px;
}

.uic4e9b-catlink::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid var(--uic4e9b-sienna);
  background: transparent;
  flex: 0 0 auto;
}

/* Game tiles: square icon on top, name bar underneath */
.uic4e9b-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 6px;
}

.uic4e9b-gtile {
  border: 1px solid var(--uic4e9b-edge);
  border-radius: 2px;
  background: var(--uic4e9b-deep);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.16s ease;
}

.uic4e9b-gtile:hover,
.uic4e9b-gtile:focus-visible {
  border-color: var(--uic4e9b-hairline);
}

.uic4e9b-gtile:active {
  border-color: var(--uic4e9b-wheat);
  box-shadow: 0 0 0 1px rgba(245, 222, 179, 0.28);
}

.uic4e9b-gtile:active .uic4e9b-gimg {
  filter: brightness(1.12);
}

.uic4e9b-gimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(35, 48, 60, 0.6);
}

.uic4e9b-gname {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 3px 4px;
  font-size: 10.5px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--uic4e9b-lavender);
  background: rgba(23, 31, 40, 0.55);
  border-top: 1px solid rgba(230, 230, 250, 0.08);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ==========================================================================
   Content modules
   ========================================================================== */
.uic4e9b-module {
  border: 1px solid var(--uic4e9b-edge);
  border-radius: 3px;
  background: rgba(42, 58, 73, 0.5);
  padding: 14px 13px 12px;
  margin: 20px 0;
}

.uic4e9b-module h2 {
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(245, 222, 179, 0.3);
  margin-bottom: 10px;
}

.uic4e9b-module p { color: var(--uic4e9b-soft); }

.uic4e9b-module strong { color: var(--uic4e9b-navajo); font-weight: 600; }

/* Step-driven lists (numbered square markers) */
.uic4e9b-steps { counter-reset: uic4e9bstep; margin: 12px 0 4px; }

.uic4e9b-step {
  position: relative;
  counter-increment: uic4e9bstep;
  padding: 0 0 12px 34px;
  font-size: 13px;
  color: var(--uic4e9b-soft);
}

.uic4e9b-step:last-child { padding-bottom: 2px; }

.uic4e9b-step::before {
  content: counter(uic4e9bstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--uic4e9b-font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--uic4e9b-slate);
  background: var(--uic4e9b-wheat);
  border-radius: 2px;
}

.uic4e9b-step b {
  display: block;
  font-family: var(--uic4e9b-font-head);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--uic4e9b-navajo);
  margin-bottom: 2px;
}

/* Player voice cards */
.uic4e9b-voice {
  border-left: 3px solid var(--uic4e9b-sienna);
  background: rgba(35, 48, 60, 0.55);
  padding: 10px 12px;
  margin: 10px 0;
  border-radius: 0 2px 2px 0;
}

.uic4e9b-voicehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.uic4e9b-voicehead b {
  font-family: var(--uic4e9b-font-head);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--uic4e9b-lavender);
}

.uic4e9b-voicetag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--uic4e9b-navajo);
  border: 1px solid rgba(160, 82, 45, 0.7);
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
}

.uic4e9b-voice p {
  margin: 0;
  font-size: 12.8px;
  color: var(--uic4e9b-soft);
}

/* CTA band */
.uic4e9b-ctaband {
  border: 1px solid var(--uic4e9b-hairline);
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(160, 82, 45, 0.32) 0%, rgba(42, 58, 73, 0.75) 62%);
  padding: 16px 14px 14px;
  margin: 22px 0;
}

.uic4e9b-ctaband p { color: var(--uic4e9b-soft); }

.uic4e9b-ctabtns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.uic4e9b-ctabtns .uic4e9b-btn { flex: 1 1 150px; }

/* Relationship lines */
.uic4e9b-rel { margin: 8px 0 0; }

.uic4e9b-relline {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 13px;
  color: var(--uic4e9b-soft);
  border-bottom: 1px solid rgba(230, 230, 250, 0.07);
}

.uic4e9b-relline:last-child { border-bottom: 0; }

.uic4e9b-relline::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 10px;
  height: 1px;
  background: var(--uic4e9b-wheat);
}

.uic4e9b-relline::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--uic4e9b-wheat);
  border-right: 1px solid var(--uic4e9b-wheat);
  transform: rotate(45deg);
}

/* Checklist */
.uic4e9b-checks { margin-top: 8px; }

.uic4e9b-check {
  position: relative;
  padding: 8px 0 8px 30px;
  font-size: 13px;
  color: var(--uic4e9b-soft);
  border-bottom: 1px solid rgba(230, 230, 250, 0.07);
}

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

.uic4e9b-check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--uic4e9b-wheat);
  border-radius: 2px;
  background: rgba(245, 222, 179, 0.06);
}

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

/* ==========================================================================
   Extended footer (promotions > brand > directory > disclaimer)
   ========================================================================== */
.uic4e9b-xfoot {
  margin: 26px 0 14px;
  border-top: 2px solid var(--uic4e9b-wheat);
  padding-top: 14px;
}

.uic4e9b-promos { margin: 10px 0 4px; }

.uic4e9b-promorow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 6px 10px;
  margin: 6px 0;
  text-align: left;
  border: 1px solid rgba(160, 82, 45, 0.75);
  border-radius: 2px;
  background: rgba(160, 82, 45, 0.16);
  color: var(--uic4e9b-lavender);
  transition: box-shadow 0.15s ease;
}

.uic4e9b-promorow:active {
  box-shadow: 0 0 0 2px rgba(255, 222, 173, 0.28);
}

.uic4e9b-promorow b {
  display: block;
  font-family: var(--uic4e9b-font-head);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--uic4e9b-navajo);
}

.uic4e9b-promorow small {
  display: block;
  font-size: 11.5px;
  color: var(--uic4e9b-soft);
  line-height: 1.4;
}

.uic4e9b-promorow svg { flex: 0 0 auto; color: var(--uic4e9b-wheat); }

.uic4e9b-xfbrand {
  border-top: 1px solid var(--uic4e9b-edge);
  margin-top: 14px;
  padding-top: 12px;
  font-size: 12.8px;
  color: var(--uic4e9b-soft);
}

.uic4e9b-xfdir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 14px;
  border-top: 1px solid var(--uic4e9b-edge);
  margin-top: 12px;
  padding-top: 12px;
}

.uic4e9b-dirlink {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(230, 230, 250, 0.07);
  color: var(--uic4e9b-lavender);
}

.uic4e9b-dirlink b {
  font-size: 12.5px;
  color: var(--uic4e9b-wheat);
  font-weight: 600;
}

.uic4e9b-dirlink small {
  font-size: 11px;
  color: var(--uic4e9b-faint);
  line-height: 1.35;
}

.uic4e9b-xfnote {
  border-top: 1px solid var(--uic4e9b-edge);
  margin-top: 12px;
  padding-top: 10px;
  font-size: 11.5px;
  color: var(--uic4e9b-faint);
  line-height: 1.55;
}

/* ==========================================================================
   Common footer (copyright only)
   ========================================================================== */
.uic4e9b-copy {
  max-width: var(--uic4e9b-canvas);
  margin: 0 auto;
  padding: 0 14px 10px;
  text-align: center;
  font-size: 11px;
  color: var(--uic4e9b-faint);
  letter-spacing: 0.04em;
}

.uic4e9b-copy b {
  display: block;
  color: var(--uic4e9b-soft);
  font-weight: 500;
}

/* ==========================================================================
   Bottom tab bar: brand-accent band, monochrome icons + accent indicator,
   active role rendered by contrast inversion.
   ========================================================================== */
.uic4e9b-tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--uic4e9b-canvas);
  height: calc(var(--uic4e9b-tab-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(38, 52, 66, 0.97);
  border-top: 2px solid var(--uic4e9b-sienna);
  z-index: 40;
}

.uic4e9b-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  color: var(--uic4e9b-soft);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--uic4e9b-font-head);
}

.uic4e9b-tab svg {
  color: currentColor;
  transition: transform 0.16s ease;
}

.uic4e9b-tab:active svg { transform: translateY(-1px) scale(1.06); }

.uic4e9b-tab.uic4e9b-tab-on {
  color: var(--uic4e9b-slate);
  background: var(--uic4e9b-wheat);
}

.uic4e9b-tab.uic4e9b-tab-on::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  background: var(--uic4e9b-sienna);
}

.uic4e9b-tab.uic4e9b-tab-on svg { color: var(--uic4e9b-slate); }

/* ===========================================================================
   Help-page instruments: evidence strips, routes, and answer rows
   =========================================================================== */
.uic4e9b-helpintro {
  border-top: 3px solid var(--uic4e9b-sienna);
  border-bottom: 1px solid var(--uic4e9b-hairline);
  padding: 13px 0 11px;
  margin: 18px 0 20px;
}

.uic4e9b-helpintro p { color: var(--uic4e9b-soft); }

.uic4e9b-signal {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(230, 230, 250, 0.1);
}

.uic4e9b-signal:last-child { border-bottom: 0; }

.uic4e9b-signal b {
  font-family: var(--uic4e9b-font-head);
  color: var(--uic4e9b-wheat);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uic4e9b-signal span { color: var(--uic4e9b-soft); font-size: 13px; }

.uic4e9b-answer {
  border-left: 2px solid var(--uic4e9b-wheat);
  padding: 8px 0 8px 11px;
  margin: 9px 0;
}

.uic4e9b-answer b {
  display: block;
  color: var(--uic4e9b-navajo);
  font-family: var(--uic4e9b-font-head);
  font-size: 12.5px;
  margin-bottom: 2px;
}

.uic4e9b-answer p { margin: 0; font-size: 13px; color: var(--uic4e9b-soft); }

.uic4e9b-promptrail {
  display: grid;
  gap: 8px;
  margin: 12px 0 2px;
}

.uic4e9b-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid rgba(245, 222, 179, 0.42);
  border-left: 4px solid var(--uic4e9b-sienna);
  background: rgba(35, 48, 60, 0.62);
  color: var(--uic4e9b-lavender);
  text-align: left;
}

.uic4e9b-prompt span { font-size: 12.5px; line-height: 1.35; }
.uic4e9b-prompt svg { flex: 0 0 auto; color: var(--uic4e9b-wheat); }
.uic4e9b-prompt:hover { text-decoration: none; border-color: var(--uic4e9b-wheat); }

.uic4e9b-facttable { margin: 10px 0 2px; border-top: 1px solid var(--uic4e9b-edge); }

.uic4e9b-factrow {
  display: grid;
  grid-template-columns: 38% 62%;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(230, 230, 250, 0.1);
  font-size: 12.5px;
}

.uic4e9b-factrow b { color: var(--uic4e9b-wheat); font-weight: 600; }
.uic4e9b-factrow span { color: var(--uic4e9b-soft); }

.uic4e9b-routebox {
  border: 1px solid var(--uic4e9b-edge);
  padding: 12px 11px;
  background: linear-gradient(90deg, rgba(160, 82, 45, 0.2), rgba(42, 58, 73, 0.38));
}

.uic4e9b-routebox ol { margin: 0; padding-left: 22px; color: var(--uic4e9b-soft); }
.uic4e9b-routebox li { padding: 4px 0 4px 3px; }

/* ==========================================================================
   Utilities and responsive tuning
   ========================================================================== */
.uic4e9b-skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.uic4e9b-skip:focus {
  left: 8px;
  top: 8px;
  z-index: 70;
  background: var(--uic4e9b-wheat);
  color: var(--uic4e9b-slate);
  padding: 8px 12px;
  border-radius: 2px;
  font-size: 12px;
}

/* 375px and up: keep the phone rail, widen the game grid to 5 columns */
@media (min-width: 375px) {
  .uic4e9b-grid { grid-template-columns: repeat(5, 1fr); gap: 10px 8px; }
  .uic4e9b-gname { font-size: 11px; }
}

/* 430px phone rail: same experience, slightly roomier gutters */
@media (min-width: 430px) {
  .uic4e9b-main { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 22px; }
  .uic4e9b-gname { min-height: 32px; }
}

/* Reduced motion: drop carousel autorotation visuals and transitions */
@media (prefers-reduced-motion: reduce) {
  .uic4e9b-track { transition: none; }
  .uic4e9b-drawer { transition: none; }
  .uic4e9b-tab svg { transition: none; }
}
