/* =====================================================================
   Arena Plus App - adaptive frame stylesheet
   File: css/adaptive-e4715c-frame.css
   Class prefix contract: every class uses ce4715-
   Canvas: 320-430px mobile-first, centered phone canvas on wide screens
   Palette: #DEE2E6 / #ECF0F1 (light text) - #0F0F23 (deep background)
            #CD853F (gold accent)
   ===================================================================== */

/* ----------------------------- Tokens ------------------------------ */
:root {
  --ce4715-ink: #0F0F23;
  --ce4715-mist: #DEE2E6;
  --ce4715-paper: #ECF0F1;
  --ce4715-gold: #CD853F;

  /* Derived tints built only from the four palette colors */
  --ce4715-surface: rgba(222, 226, 230, 0.045);
  --ce4715-surface-2: rgba(222, 226, 230, 0.085);
  --ce4715-line: rgba(222, 226, 230, 0.14);
  --ce4715-line-soft: rgba(222, 226, 230, 0.09);
  --ce4715-text-dim: rgba(222, 226, 230, 0.72);
  --ce4715-text-faint: rgba(222, 226, 230, 0.55);
  --ce4715-gold-veil: rgba(205, 133, 63, 0.16);
  --ce4715-gold-line: rgba(205, 133, 63, 0.42);
  --ce4715-gold-glow: rgba(205, 133, 63, 0.32);

  --ce4715-font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --ce4715-font-body: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;

  --ce4715-radius-card: 8px;   /* cards stay square-ish */
  --ce4715-radius-btn: 999px;  /* buttons stay round */
  --ce4715-tabbar-h: 64px;
  --ce4715-gutter: 14px;
}

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

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

body {
  background: var(--ce4715-ink);
  color: var(--ce4715-paper);
  font-family: var(--ce4715-font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: var(--ce4715-gold);
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

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

::selection {
  background: var(--ce4715-gold);
  color: var(--ce4715-ink);
}

/* ------------------------ Phone canvas shell ----------------------- */
.ce4715-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 52% at 50% 0%, rgba(205, 133, 63, 0.07), transparent 62%),
    var(--ce4715-ink);
  overflow-x: clip;
}

/* Wide screens: keep the same centered phone canvas, framed by hairlines */
@media (min-width: 430px) {
  .ce4715-shell {
    border-left: 1px solid var(--ce4715-line-soft);
    border-right: 1px solid var(--ce4715-line-soft);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.55);
  }
}

.ce4715-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--ce4715-gold);
  color: var(--ce4715-ink);
  padding: 10px 18px;
  border-radius: 0 0 var(--ce4715-radius-card) 0;
  font-weight: 600;
}

.ce4715-skip:focus {
  left: 0;
}

/* ------------------------- Fixed top bar --------------------------- */
.ce4715-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 15, 35, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ce4715-line);
}

/* Asymmetric brand row: logo block left, menu trigger far right */
.ce4715-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px var(--ce4715-gutter) 8px;
}

.ce4715-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ce4715-paper);
}

.ce4715-brand:hover,
.ce4715-brand:focus-visible {
  text-decoration: none;
}

.ce4715-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--ce4715-gold-line);
  box-shadow: 0 0 0 3px var(--ce4715-gold-veil);
  object-fit: cover;
  flex: 0 0 auto;
}

.ce4715-brandname {
  font-family: var(--ce4715-font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ce4715-paper);
}

.ce4715-brandsub {
  display: block;
  font-family: var(--ce4715-font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ce4715-gold);
  margin-top: 3px;
}

/* Menu trigger - outlined square button, 44px touch target */
.ce4715-burger {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ce4715-line);
  border-radius: 12px;
  color: var(--ce4715-mist);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  flex: 0 0 auto;
}

.ce4715-burger:hover {
  border-color: var(--ce4715-gold-line);
}

.ce4715-burger:active {
  box-shadow: 0 0 14px var(--ce4715-gold-glow);
}

.ce4715-burger svg {
  width: 22px;
  height: 22px;
}

.ce4715-burger .ce4715-icox {
  display: none;
}

.ce4715-topbar.ce4715-open .ce4715-burger .ce4715-icoh {
  display: none;
}

.ce4715-topbar.ce4715-open .ce4715-burger .ce4715-icox {
  display: block;
}

/* Action row: rounded text button pair sits outside the brand block */
.ce4715-actionrow {
  display: flex;
  gap: 8px;
  padding: 0 var(--ce4715-gutter) 10px;
}

.ce4715-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--ce4715-radius-btn);
  font-family: var(--ce4715-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease,
    border-color 0.2s ease;
}

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

.ce4715-actionrow .ce4715-btn {
  flex: 1 1 50%;
}

.ce4715-btn-gold {
  background: var(--ce4715-gold);
  color: var(--ce4715-ink);
}

.ce4715-btn-gold:hover,
.ce4715-btn-gold:focus-visible {
  box-shadow: 0 0 18px var(--ce4715-gold-glow);
  text-decoration: none;
}

.ce4715-btn-ghost {
  background: transparent;
  color: var(--ce4715-paper);
  border-color: var(--ce4715-gold-line);
}

.ce4715-btn-ghost:hover,
.ce4715-btn-ghost:focus-visible {
  background: var(--ce4715-gold-veil);
  text-decoration: none;
}

/* Expandable route drawer */
.ce4715-drawer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--ce4715-gutter);
  transition: max-height 0.32s ease, padding 0.32s ease;
}

.ce4715-topbar.ce4715-open .ce4715-drawer {
  max-height: 400px;
  padding: 4px var(--ce4715-gutter) 12px;
}

.ce4715-drawer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ce4715-line-soft);
  border-radius: var(--ce4715-radius-card);
  background: var(--ce4715-surface);
  color: var(--ce4715-mist);
  font-size: 13px;
  font-weight: 500;
}

.ce4715-drawer a:hover,
.ce4715-drawer a:focus-visible {
  border-color: var(--ce4715-gold-line);
  color: var(--ce4715-paper);
  text-decoration: none;
}

.ce4715-drawer a.ce4715-cur {
  border-color: var(--ce4715-gold);
  color: var(--ce4715-gold);
  background: var(--ce4715-gold-veil);
}

/* ------------------------------ Main ------------------------------- */
.ce4715-main {
  padding-bottom: calc(var(--ce4715-tabbar-h) + 34px + env(safe-area-inset-bottom, 0px));
}

.ce4715-section {
  padding: 26px var(--ce4715-gutter) 6px;
}

/* ------------------------------- Hero ------------------------------ */
.ce4715-hero {
  padding: 26px var(--ce4715-gutter) 8px;
  position: relative;
}

.ce4715-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ce4715-gold);
  margin-bottom: 12px;
}

.ce4715-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--ce4715-gold);
}

.ce4715-hero h1 {
  font-family: var(--ce4715-font-display);
  font-size: clamp(27px, 7.6vw, 36px);
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ce4715-paper);
}

.ce4715-hero h1 .ce4715-tint {
  color: var(--ce4715-gold);
}

.ce4715-lede {
  margin-top: 12px;
  color: var(--ce4715-text-dim);
  font-size: 14.5px;
}

.ce4715-ctagroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ce4715-hero-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ce4715-text-faint);
}

/* ----------------------------- Carousel ---------------------------- */
.ce4715-carousel {
  position: relative;
  margin: 18px var(--ce4715-gutter) 0;
}

.ce4715-ctrack {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--ce4715-radius-card);
  overflow: hidden;
  border: 1px solid var(--ce4715-line);
  background: var(--ce4715-surface);
}

.ce4715-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.ce4715-slide.ce4715-slide-on {
  opacity: 1;
  pointer-events: auto;
}

.ce4715-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ce4715-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.ce4715-dot {
  width: 26px;
  height: 8px;
  min-height: 8px;
  border-radius: 999px;
  border: 1px solid var(--ce4715-gold-line);
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.ce4715-dot.ce4715-dot-on {
  background: var(--ce4715-gold);
  box-shadow: 0 0 10px var(--ce4715-gold-glow);
}

/* ------------------------- Scenario path strip --------------------- */
.ce4715-paths {
  padding: 26px 0 4px;
}

.ce4715-paths-title {
  padding: 0 var(--ce4715-gutter);
}

.ce4715-paths-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 14px var(--ce4715-gutter) 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ce4715-paths-row::-webkit-scrollbar {
  display: none;
}

.ce4715-pathcard {
  scroll-snap-align: start;
  flex: 0 0 78%;
  border: 1px solid var(--ce4715-line);
  border-left: 3px solid var(--ce4715-gold);
  border-radius: var(--ce4715-radius-card);
  background: var(--ce4715-surface);
  padding: 14px;
}

.ce4715-pathcard h3 {
  font-family: var(--ce4715-font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ce4715-paper);
}

.ce4715-pathcard p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ce4715-text-dim);
}

.ce4715-pathcard .ce4715-btn {
  margin-top: 12px;
  width: 100%;
  padding: 9px 14px;
  font-size: 13px;
}

/* --------------------------- Game sections ------------------------- */
.ce4715-gsec {
  padding: 30px var(--ce4715-gutter) 4px;
}

.ce4715-gsec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.ce4715-kick {
  flex: 1 0 100%;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ce4715-gold);
}

.ce4715-gsec-title {
  font-family: var(--ce4715-font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ce4715-paper);
}

.ce4715-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--ce4715-text-faint);
  border: 1px solid var(--ce4715-line);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.ce4715-gsec-lead {
  margin: 8px 0 14px;
  font-size: 13.5px;
  color: var(--ce4715-text-dim);
  max-width: 42ch;
}

/* Compact game grid: 4 tracks on 320px, 5 from 400px up */
.ce4715-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 400px) {
  .ce4715-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }
}

.ce4715-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border-radius: var(--ce4715-radius-card);
  text-align: center;
  transition: transform 0.15s ease;
}

.ce4715-tile:active {
  transform: scale(0.96);
}

.ce4715-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--ce4715-radius-card);
  border: 1px solid var(--ce4715-line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ce4715-tile:hover img,
.ce4715-tile:focus-visible img {
  border-color: var(--ce4715-gold-line);
  box-shadow: 0 0 14px var(--ce4715-gold-glow);
}

.ce4715-tile-name {
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ce4715-mist);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* One wide tile per section: large/small card mixing */
.ce4715-tile-wide {
  grid-column: span 2;
}

.ce4715-tile-wide .ce4715-tile-name {
  font-size: 12px;
}

/* ------------------------- Content modules ------------------------- */
.ce4715-mod {
  margin: 30px var(--ce4715-gutter) 0;
  padding: 18px 16px;
  background: var(--ce4715-surface);
  border: 1px solid var(--ce4715-line-soft);
  border-radius: var(--ce4715-radius-card);
}

.ce4715-mod-head {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--ce4715-line);
}

.ce4715-mod-head h2,
.ce4715-plain-head h2 {
  font-family: var(--ce4715-font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ce4715-paper);
}

.ce4715-mod-head .ce4715-kick {
  margin-bottom: 4px;
  display: block;
}

.ce4715-mod p {
  color: var(--ce4715-text-dim);
  font-size: 13.5px;
}

.ce4715-mod p + p {
  margin-top: 10px;
}

.ce4715-mod strong {
  color: var(--ce4715-paper);
  font-weight: 600;
}

/* Security checklist: square gold markers */
.ce4715-checklist {
  margin: 14px 0 4px;
  display: grid;
  gap: 10px;
}

.ce4715-checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 13px;
  color: var(--ce4715-text-dim);
}

.ce4715-checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ce4715-gold);
  border-radius: 2px;
}

/* Install steps: numbered discs */
.ce4715-steps {
  margin: 14px 0 4px;
  display: grid;
  gap: 12px;
  counter-reset: ce4715step;
}

.ce4715-steps li {
  position: relative;
  counter-increment: ce4715step;
  padding-left: 40px;
  font-size: 13px;
  color: var(--ce4715-text-dim);
}

.ce4715-steps li::before {
  content: counter(ce4715step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ce4715-gold-line);
  border-radius: 50%;
  font-family: var(--ce4715-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ce4715-gold);
}

/* Offer rows */
.ce4715-offers {
  margin: 14px 0 6px;
  display: grid;
  gap: 8px;
}

.ce4715-offer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ce4715-line-soft);
  border-radius: var(--ce4715-radius-card);
  background: rgba(15, 15, 35, 0.5);
}

.ce4715-offer-name {
  font-family: var(--ce4715-font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ce4715-gold);
  white-space: nowrap;
}

.ce4715-offer p {
  font-size: 12.5px;
  color: var(--ce4715-text-dim);
}

/* Scenario branches: left gold spine */
.ce4715-branches {
  margin: 14px 0 6px;
  display: grid;
  gap: 12px;
}

.ce4715-branch {
  border-left: 2px solid var(--ce4715-gold);
  padding: 2px 0 2px 14px;
}

.ce4715-branch h3 {
  font-family: var(--ce4715-font-display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ce4715-paper);
}

.ce4715-branch p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ce4715-text-dim);
}

/* Module CTA strip */
.ce4715-modcta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ce4715-modcta .ce4715-btn {
  padding: 9px 16px;
  font-size: 13px;
}

/* -------------------------- Feature map ----------------------------- */
.ce4715-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 14px 0 4px;
}

.ce4715-feature-card {
  position: relative;
  padding: 14px 14px 14px 48px;
  border: 1px solid var(--ce4715-line-soft);
  border-radius: var(--ce4715-radius-card);
  background: rgba(15, 15, 35, 0.48);
}

.ce4715-feature-card h3 {
  font-family: var(--ce4715-font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ce4715-paper);
}

.ce4715-feature-card p {
  margin-top: 5px;
  font-size: 13px;
  color: var(--ce4715-text-dim);
}

.ce4715-feature-mark {
  position: absolute;
  left: 14px;
  top: 15px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ce4715-gold);
  border-radius: 50%;
  color: var(--ce4715-gold);
  font-family: var(--ce4715-font-display);
  font-size: 12px;
}

.ce4715-compare {
  overflow-x: auto;
  margin: 14px 0 4px;
  border: 1px solid var(--ce4715-line-soft);
  border-radius: var(--ce4715-radius-card);
  background: rgba(15, 15, 35, 0.48);
}

.ce4715-compare table {
  width: 100%;
  min-width: 390px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.ce4715-compare th,
.ce4715-compare td {
  padding: 10px;
  border-bottom: 1px solid var(--ce4715-line-soft);
  text-align: left;
  vertical-align: top;
}

.ce4715-compare tr:last-child td {
  border-bottom: 0;
}

.ce4715-compare th {
  color: var(--ce4715-gold);
  font-family: var(--ce4715-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ce4715-compare td {
  color: var(--ce4715-text-dim);
}

.ce4715-compare td:first-child {
  color: var(--ce4715-paper);
  font-weight: 600;
}

/* ------------------------- Quick answers --------------------------- */
.ce4715-qa {
  margin: 14px 0 4px;
  display: grid;
  gap: 8px;
}

.ce4715-qa details {
  border: 1px solid var(--ce4715-line-soft);
  border-radius: var(--ce4715-radius-card);
  background: rgba(15, 15, 35, 0.5);
  overflow: hidden;
}

.ce4715-qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ce4715-paper);
}

.ce4715-qa summary::-webkit-details-marker {
  display: none;
}

.ce4715-qa summary::after {
  content: "+";
  font-family: var(--ce4715-font-display);
  font-size: 18px;
  color: var(--ce4715-gold);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}

.ce4715-qa details[open] summary::after {
  transform: rotate(45deg);
}

.ce4715-qa details p {
  padding: 0 14px 13px;
  font-size: 13px;
  color: var(--ce4715-text-dim);
}

/* ------------------------ Extended footer -------------------------- */
.ce4715-xfooter {
  margin: 34px var(--ce4715-gutter) 0;
  border: 1px solid var(--ce4715-line-soft);
  border-radius: var(--ce4715-radius-card);
  background: rgba(15, 15, 35, 0.55);
  overflow: hidden;
}

.ce4715-xf-block {
  padding: 16px;
  border-bottom: 1px solid var(--ce4715-line-soft);
}

.ce4715-xf-block:last-child {
  border-bottom: 0;
}

.ce4715-xf-block h3 {
  font-family: var(--ce4715-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ce4715-gold);
  margin-bottom: 10px;
}

.ce4715-xf-brand p {
  font-size: 12.5px;
  color: var(--ce4715-text-dim);
}

.ce4715-xf-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

.ce4715-xf-dir a {
  font-size: 12.5px;
  color: var(--ce4715-mist);
  padding: 7px 0 7px 12px;
  border-left: 2px solid var(--ce4715-gold-line);
  line-height: 1.35;
}

.ce4715-xf-dir a:hover,
.ce4715-xf-dir a:focus-visible {
  color: var(--ce4715-paper);
  border-left-color: var(--ce4715-gold);
}

.ce4715-xf-promos {
  display: grid;
  gap: 8px;
}

.ce4715-xf-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--ce4715-gold-line);
  border-radius: var(--ce4715-radius-btn);
  font-size: 13px;
  font-weight: 600;
  color: var(--ce4715-paper);
  background: var(--ce4715-gold-veil);
  transition: box-shadow 0.2s ease;
  text-align: left;
}

.ce4715-xf-promo:hover,
.ce4715-xf-promo:focus-visible {
  box-shadow: 0 0 16px var(--ce4715-gold-glow);
  text-decoration: none;
}

.ce4715-xf-promo::after {
  content: "\2192";
  color: var(--ce4715-gold);
  font-size: 16px;
  flex: 0 0 auto;
}

.ce4715-xf-disc p {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ce4715-text-faint);
}

/* --------------------------- Universal footer ---------------------- */
.ce4715-footer {
  margin-top: 30px;
  padding: 18px var(--ce4715-gutter) calc(var(--ce4715-tabbar-h) + 26px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--ce4715-line-soft);
  text-align: center;
}

.ce4715-footer p {
  font-size: 12px;
  color: var(--ce4715-text-faint);
  letter-spacing: 0.04em;
}

/* --------------------------- Bottom tab bar ------------------------ */
.ce4715-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  min-height: var(--ce4715-tabbar-h);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 15, 35, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--ce4715-gold-line);
}

/* Outlined function items */
.ce4715-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  padding: 4px 2px;
  border: 1px solid transparent;
  border-radius: var(--ce4715-radius-card);
  color: var(--ce4715-text-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ce4715-tab svg {
  width: 22px;
  height: 22px;
}

.ce4715-tab:hover,
.ce4715-tab:focus-visible {
  color: var(--ce4715-mist);
  text-decoration: none;
}

.ce4715-tab:active {
  box-shadow: 0 0 12px var(--ce4715-gold-glow);
}

/* Active state: color switch plus restrained gold glow */
.ce4715-tab.ce4715-is-active {
  color: var(--ce4715-gold);
  border-color: var(--ce4715-gold-line);
  background: var(--ce4715-gold-veil);
  box-shadow: 0 0 14px var(--ce4715-gold-glow);
}

/* --------------------- Restrained reveal motion --------------------- */
.ce4715-js .ce4715-rv {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ce4715-js .ce4715-rv.ce4715-rv-on {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ce4715-js .ce4715-rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ce4715-slide {
    transition: none;
  }

  .ce4715-drawer {
    transition: none;
  }
}
