/* ==========================================================================
   n33.click — surface stylesheet (mobile ledger theme)
   Canvas: 320-430px phone frame, centered on wide screens.
   Palette: #2C2C2C base / #BDB76B accent.
   Class + variable prefix: mobileeb1ef-
   Voice: humanist headings + clear body type; pill buttons, square cards;
   conclusion-first sections with short-distance transitions.
   ========================================================================== */

:root{
  --mobileeb1ef-canvas-w: 430px;
  --mobileeb1ef-ink-bg: #232320;
  --mobileeb1ef-bg: #2c2c2c;
  --mobileeb1ef-raise: #34342d;
  --mobileeb1ef-raise-2: #3a3a31;
  --mobileeb1ef-edge: #42423a;
  --mobileeb1ef-accent: #bdb76b;
  --mobileeb1ef-accent-hi: #d9d390;
  --mobileeb1ef-accent-lo: #8f8a58;
  --mobileeb1ef-text: #e7e3cd;
  --mobileeb1ef-text-dim: #aca692;
  --mobileeb1ef-on-accent: #1f1f18;
  --mobileeb1ef-rule: rgba(189, 183, 107, .3);
  --mobileeb1ef-rule-soft: rgba(189, 183, 107, .14);
  --mobileeb1ef-head-font: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --mobileeb1ef-body-font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mobileeb1ef-radius-card: 3px;
  --mobileeb1ef-radius-btn: 999px;
  --mobileeb1ef-header-h: 102px;
  --mobileeb1ef-dock-h: 64px;
  --mobileeb1ef-tap: 44px;
  --mobileeb1ef-pace: 240ms;
}

/* ------------------------------------------------ base shell ------------ */

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

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

body.mobileeb1ef-page{
  margin: 0;
  background: var(--mobileeb1ef-ink-bg);
  color: var(--mobileeb1ef-text);
  font-family: var(--mobileeb1ef-body-font);
  font-size: 14px;
  line-height: 1.62;
}

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

a{ color: var(--mobileeb1ef-accent); text-decoration: none; }
a:hover{ color: var(--mobileeb1ef-accent-hi); }

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

a:focus-visible,
button:focus-visible{
  outline: 2px solid var(--mobileeb1ef-accent-hi);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3{
  font-family: var(--mobileeb1ef-head-font);
  color: var(--mobileeb1ef-text);
  margin: 0;
  line-height: 1.25;
  text-wrap: balance;
}

p{ margin: 0 0 12px; }
p:last-child{ margin-bottom: 0; }

.mobileeb1ef-page ul,
.mobileeb1ef-page ol{
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Phone canvas: the whole site lives inside a 430px rail on any screen. */
.mobileeb1ef-canvas{
  position: relative;
  max-width: var(--mobileeb1ef-canvas-w);
  width: 100%;
  margin: 0 auto;
  background: var(--mobileeb1ef-bg);
  min-height: 100vh;
  min-height: 100dvh;
  box-shadow: 0 0 0 1px var(--mobileeb1ef-rule-soft);
  overflow-x: clip;
}

@media (min-width: 480px){
  body.mobileeb1ef-page{ padding: 0 14px; }
  .mobileeb1ef-canvas{
    box-shadow: 0 0 0 1px var(--mobileeb1ef-rule), 0 22px 64px rgba(0, 0, 0, .6);
  }
}

/* Skip link stays reachable for keyboard users. */
.mobileeb1ef-skip{
  position: absolute;
  left: 10px;
  top: -56px;
  z-index: 200;
  background: var(--mobileeb1ef-accent);
  color: var(--mobileeb1ef-on-accent);
  font-weight: 700;
  font-size: 12px;
  padding: 10px 16px;
  border-radius: var(--mobileeb1ef-radius-btn);
  transition: top var(--mobileeb1ef-pace) ease;
}
.mobileeb1ef-skip:focus{ top: 10px; }

body.mobileeb1ef-lock{ overflow: hidden; }

/* Short-distance section reveal, enabled only after JS tags the page. */
.mobileeb1ef-js [data-routeef0eb-reveal]{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--mobileeb1ef-pace) ease, transform var(--mobileeb1ef-pace) ease;
}
.mobileeb1ef-js [data-routeef0eb-reveal].mobileeb1ef-in{
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------ top identity bar ------- */

/* Fixed chrome is clamped to the canvas width so wide screens keep the
   phone-frame illusion instead of a full-bleed desktop bar. */
.mobileeb1ef-topbar{
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--mobileeb1ef-canvas-w);
  z-index: 90;
  background: linear-gradient(180deg, #2e2e28 0%, #2a2a25 100%);
  border-bottom: 1px solid var(--mobileeb1ef-rule);
}

/* Row 1: centered identity strip — logo plus name, nothing else. */
.mobileeb1ef-idbar{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 7px 14px 5px;
}

.mobileeb1ef-logo{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--mobileeb1ef-rule);
  object-fit: cover;
  background: var(--mobileeb1ef-raise);
}

.mobileeb1ef-wordmark{
  font-family: var(--mobileeb1ef-head-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--mobileeb1ef-accent);
}

/* Row 2: action strip — registration, login and the route sheet trigger. */
.mobileeb1ef-actbar{
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 0 12px 10px;
}

.mobileeb1ef-btn-solid,
.mobileeb1ef-btn-ghost{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--mobileeb1ef-tap);
  border-radius: var(--mobileeb1ef-radius-btn);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
}

.mobileeb1ef-btn-solid{
  background: var(--mobileeb1ef-accent);
  color: var(--mobileeb1ef-on-accent);
}
.mobileeb1ef-btn-solid:active{ transform: scale(.97); background: var(--mobileeb1ef-accent-hi); }

.mobileeb1ef-btn-ghost{
  border: 1px solid var(--mobileeb1ef-accent);
  color: var(--mobileeb1ef-accent);
  background: transparent;
}
.mobileeb1ef-btn-ghost:active{ transform: scale(.97); background: rgba(189, 183, 107, .12); }

.mobileeb1ef-sheetbtn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--mobileeb1ef-tap);
  padding: 0 14px;
  border: 1px solid var(--mobileeb1ef-rule);
  border-radius: var(--mobileeb1ef-radius-btn);
  color: var(--mobileeb1ef-text-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color 140ms ease, border-color 140ms ease;
}
.mobileeb1ef-sheetbtn:active{ color: var(--mobileeb1ef-accent); border-color: var(--mobileeb1ef-accent); }

.mobileeb1ef-burger{
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}
.mobileeb1ef-burger span{
  width: 15px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ------------------------------------------------ slide-up route sheet --- */

.mobileeb1ef-veil{
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(16, 16, 12, .68);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--mobileeb1ef-pace) ease, visibility var(--mobileeb1ef-pace) ease;
}
.mobileeb1ef-veil[data-open="true"]{
  opacity: 1;
  visibility: visible;
}

.mobileeb1ef-routesheet{
  position: fixed;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: var(--mobileeb1ef-canvas-w);
  z-index: 120;
  background: #302f29;
  border-top: 2px solid var(--mobileeb1ef-accent);
  border-radius: 18px 18px 0 0;
  transform: translate(-50%, 103%);
  transition: transform 300ms cubic-bezier(.22, .8, .3, 1);
  max-height: 78vh;
  max-height: 78dvh;
  display: flex;
  flex-direction: column;
}
.mobileeb1ef-routesheet[data-open="true"]{ transform: translate(-50%, 0); }

.mobileeb1ef-sheetgrip{
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: var(--mobileeb1ef-rule);
  margin: 10px auto 2px;
  flex: none;
}

.mobileeb1ef-sheethead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 10px;
  border-bottom: 1px solid var(--mobileeb1ef-rule-soft);
  flex: none;
}

.mobileeb1ef-sheettitle{
  font-family: var(--mobileeb1ef-head-font);
  font-size: 16px;
  color: var(--mobileeb1ef-accent);
  letter-spacing: .03em;
}

.mobileeb1ef-sheetclose{
  min-width: var(--mobileeb1ef-tap);
  min-height: var(--mobileeb1ef-tap);
  margin: -6px -10px -6px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--mobileeb1ef-radius-btn);
  color: var(--mobileeb1ef-text-dim);
  font-size: 18px;
  line-height: 1;
}
.mobileeb1ef-sheetclose:active{ color: var(--mobileeb1ef-accent); }

.mobileeb1ef-sheetbody{
  overflow-y: auto;
  padding: 6px 16px calc(20px + env(safe-area-inset-bottom));
}

.mobileeb1ef-routegroup{ padding: 10px 0 4px; }

.mobileeb1ef-routegroup h3{
  font-size: 11px;
  font-family: var(--mobileeb1ef-body-font);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mobileeb1ef-accent-lo);
  margin-bottom: 6px;
}

.mobileeb1ef-routelink{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--mobileeb1ef-rule-soft);
  color: var(--mobileeb1ef-text);
  font-size: 15px;
  transition: color 140ms ease, padding-left 140ms ease;
}
.mobileeb1ef-routelink:last-child{ border-bottom: 0; }
.mobileeb1ef-routelink:hover{ color: var(--mobileeb1ef-accent-hi); padding-left: 8px; }
.mobileeb1ef-routelink[aria-current="page"]{ color: var(--mobileeb1ef-accent); font-weight: 700; }

.mobileeb1ef-routearrow{
  color: var(--mobileeb1ef-accent-lo);
  font-size: 12px;
  flex: none;
}

/* ------------------------------------------------ main column ----------- */

.mobileeb1ef-main{
  padding-top: calc(var(--mobileeb1ef-header-h) + 10px);
  padding-bottom: calc(var(--mobileeb1ef-dock-h) + 30px);
}

.mobileeb1ef-block{
  padding: 18px 14px 6px;
}

.mobileeb1ef-pagehead{
  padding: 6px 14px 0;
}

/* H1 ledger rule: double hairline under the page verdict. */
.mobileeb1ef-h1{
  font-size: 24px;
  letter-spacing: .01em;
  padding-bottom: 10px;
  border-bottom: 3px double var(--mobileeb1ef-rule);
  margin-bottom: 10px;
}

.mobileeb1ef-lede{
  font-size: 14.5px;
  color: var(--mobileeb1ef-text);
}

.mobileeb1ef-lede strong{ color: var(--mobileeb1ef-accent-hi); }

/* ------------------------------------------------ hero carousel --------- */

.mobileeb1ef-hero{
  position: relative;
  margin: 12px 14px 0;
  border: 1px solid var(--mobileeb1ef-rule-soft);
  border-radius: 10px;
  overflow: hidden;
  background: var(--mobileeb1ef-raise);
}

.mobileeb1ef-slides{
  position: relative;
  aspect-ratio: 43 / 21;
}

.mobileeb1ef-slide{
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 420ms ease;
}
.mobileeb1ef-slide[data-active="true"]{ opacity: 1; }

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

.mobileeb1ef-slidecap{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 26px 14px 12px;
  text-align: left;
  background: linear-gradient(180deg, rgba(20, 20, 16, 0) 0%, rgba(20, 20, 16, .88) 78%);
}

.mobileeb1ef-slidecap b{
  font-family: var(--mobileeb1ef-head-font);
  font-size: 17px;
  color: #f2eed8;
  line-height: 1.2;
}

.mobileeb1ef-slidecap i{
  font-style: normal;
  font-size: 11.5px;
  color: var(--mobileeb1ef-accent);
  letter-spacing: .06em;
}

.mobileeb1ef-slidenav{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
  background: rgba(24, 24, 19, .55);
  border-radius: var(--mobileeb1ef-radius-btn);
  padding: 5px 8px;
  backdrop-filter: blur(3px);
}

.mobileeb1ef-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(231, 227, 205, .4);
  transition: background-color 160ms ease, transform 160ms ease;
  min-width: 8px;
  min-height: 8px;
}
.mobileeb1ef-dot[data-active="true"]{
  background: var(--mobileeb1ef-accent);
  transform: scale(1.25);
}

/* Quick-figure rail under the hero. */
.mobileeb1ef-figrail{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 14px 4px;
}

.mobileeb1ef-fig{
  background: var(--mobileeb1ef-raise);
  border: 1px solid var(--mobileeb1ef-rule-soft);
  border-radius: var(--mobileeb1ef-radius-card);
  padding: 9px 8px;
  text-align: center;
}

.mobileeb1ef-fig b{
  display: block;
  font-family: var(--mobileeb1ef-head-font);
  font-size: 17px;
  color: var(--mobileeb1ef-accent);
  line-height: 1.15;
}

.mobileeb1ef-fig span{
  display: block;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mobileeb1ef-text-dim);
  margin-top: 3px;
}

/* ------------------------------------------------ game shelves ---------- */

.mobileeb1ef-shelf{
  padding: 22px 14px 4px;
}

.mobileeb1ef-shelfhead{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--mobileeb1ef-rule);
  margin-bottom: 11px;
}

.mobileeb1ef-shelfhead h2{
  font-size: 18.5px;
  letter-spacing: .01em;
}

.mobileeb1ef-tally{
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--mobileeb1ef-on-accent);
  background: var(--mobileeb1ef-accent);
  border-radius: var(--mobileeb1ef-radius-btn);
  padding: 3px 10px;
}

.mobileeb1ef-shelfnote{
  font-size: 12.5px;
  color: var(--mobileeb1ef-text-dim);
  margin: 0 0 11px;
}

/* Pure-image tiles: 4 tracks on small phones, 5 once width allows. */
.mobileeb1ef-ggrid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
}

@media (min-width: 396px){
  .mobileeb1ef-ggrid{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.mobileeb1ef-tile{
  display: block;
  width: 100%;
  background: var(--mobileeb1ef-raise);
  border: 1px solid var(--mobileeb1ef-rule-soft);
  border-radius: var(--mobileeb1ef-radius-card);
  overflow: hidden;
  text-align: center;
  transition: border-color 150ms ease, transform 150ms ease;
}
.mobileeb1ef-tile:active{
  border-color: var(--mobileeb1ef-accent);
  transform: translateY(-2px);
}

.mobileeb1ef-tile img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--mobileeb1ef-raise-2);
}

.mobileeb1ef-tilename{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--mobileeb1ef-text-dim);
  padding: 5px 4px 6px;
  min-height: 33px;
}
.mobileeb1ef-tile:hover .mobileeb1ef-tilename{ color: var(--mobileeb1ef-accent-hi); }

/* ------------------------------------------------ editorial modules ----- */

.mobileeb1ef-module{
  margin: 14px;
  padding: 16px 14px 14px;
  background: var(--mobileeb1ef-raise);
  border: 1px solid var(--mobileeb1ef-rule-soft);
  border-left: 3px solid var(--mobileeb1ef-accent);
  border-radius: var(--mobileeb1ef-radius-card);
}

.mobileeb1ef-module > h2{
  font-size: 18.5px;
  margin-bottom: 9px;
}

.mobileeb1ef-kicker{
  display: block;
  font-family: var(--mobileeb1ef-body-font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mobileeb1ef-accent-lo);
  margin-bottom: 5px;
}

.mobileeb1ef-module p{
  font-size: 13.5px;
  color: var(--mobileeb1ef-text);
}

.mobileeb1ef-module p strong{ color: var(--mobileeb1ef-accent-hi); }

.mobileeb1ef-module a{ text-decoration: underline; text-underline-offset: 3px; }

/* Numbered setup ladder. */
.mobileeb1ef-ladder{
  counter-reset: mobileeb1ef-step;
  margin-top: 4px;
}

.mobileeb1ef-ladder li{
  counter-increment: mobileeb1ef-step;
  position: relative;
  padding: 0 0 12px 40px;
  font-size: 13.5px;
}
.mobileeb1ef-ladder li:last-child{ padding-bottom: 2px; }

.mobileeb1ef-ladder li::before{
  content: counter(mobileeb1ef-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mobileeb1ef-head-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--mobileeb1ef-accent);
  border: 1px solid var(--mobileeb1ef-rule);
  border-radius: 50%;
}

.mobileeb1ef-ladder b{ color: var(--mobileeb1ef-accent-hi); }

/* Comparison ledger rows for payments. */
.mobileeb1ef-ledger{
  margin-top: 12px;
  border-top: 1px solid var(--mobileeb1ef-rule);
}

.mobileeb1ef-ledgerrow{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--mobileeb1ef-rule-soft);
}

.mobileeb1ef-ledgerrow dt{
  font-family: var(--mobileeb1ef-head-font);
  font-weight: 700;
  color: var(--mobileeb1ef-accent);
  font-size: 13.5px;
  line-height: 1.35;
}

.mobileeb1ef-ledgerrow dd{
  margin: 0;
  font-size: 12.5px;
  color: var(--mobileeb1ef-text-dim);
}

/* Fact sheet. */
.mobileeb1ef-facts{
  display: grid;
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid var(--mobileeb1ef-rule);
}

.mobileeb1ef-fact{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 9px 0;
  border-bottom: 1px solid var(--mobileeb1ef-rule-soft);
}

.mobileeb1ef-fact dt{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mobileeb1ef-accent-lo);
}

.mobileeb1ef-fact dd{
  margin: 0;
  font-size: 13px;
  color: var(--mobileeb1ef-text);
}

/* Safety notice card. */
.mobileeb1ef-notice{
  margin-top: 12px;
  padding: 11px 12px;
  background: rgba(189, 183, 107, .08);
  border: 1px dashed var(--mobileeb1ef-rule);
  border-radius: var(--mobileeb1ef-radius-card);
  font-size: 12.5px;
  color: var(--mobileeb1ef-text-dim);
}
.mobileeb1ef-notice b{ color: var(--mobileeb1ef-accent-hi); }

/* ------------------------------------------------ CTA band -------------- */

.mobileeb1ef-cta{
  margin: 16px 14px 6px;
  padding: 18px 15px;
  text-align: center;
  background: linear-gradient(160deg, #37362e 0%, #2c2c26 100%);
  border: 1px solid var(--mobileeb1ef-rule);
  border-radius: 10px;
}

.mobileeb1ef-cta h2{
  font-size: 19px;
  margin-bottom: 7px;
}

.mobileeb1ef-cta p{
  font-size: 12.5px;
  color: var(--mobileeb1ef-text-dim);
  margin-bottom: 14px;
}

.mobileeb1ef-ctarow{
  display: flex;
  flex-direction: column;
  gap: 9px;
}

@media (min-width: 360px){
  .mobileeb1ef-ctarow{ flex-direction: row; justify-content: center; }
  .mobileeb1ef-ctarow .mobileeb1ef-btn-solid,
  .mobileeb1ef-ctarow .mobileeb1ef-btn-ghost{ flex: 1 1 0; }
}

/* ------------------------------------------------ extended footer ------- */

.mobileeb1ef-xfoot{
  margin: 22px 14px 0;
  border-top: 3px double var(--mobileeb1ef-rule);
  padding-top: 16px;
}

.mobileeb1ef-xgroup{ padding: 4px 0 14px; }

.mobileeb1ef-xgrouph{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mobileeb1ef-accent-lo);
  margin-bottom: 8px;
}

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

.mobileeb1ef-xpromo{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 360px){
  .mobileeb1ef-xpromo{ grid-template-columns: 1fr 1fr; }
  .mobileeb1ef-xpromo .mobileeb1ef-btn-solid{ grid-column: 1 / -1; }
}

.mobileeb1ef-chiplink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--mobileeb1ef-rule);
  border-radius: var(--mobileeb1ef-radius-btn);
  font-size: 12px;
  font-weight: 600;
  color: var(--mobileeb1ef-text);
  transition: color 140ms ease, border-color 140ms ease;
}
.mobileeb1ef-chiplink:active{
  color: var(--mobileeb1ef-accent);
  border-color: var(--mobileeb1ef-accent);
}

.mobileeb1ef-xdir{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

.mobileeb1ef-xdir a{
  font-size: 12.5px;
  color: var(--mobileeb1ef-text-dim);
  padding: 6px 0;
  border-bottom: 1px dotted var(--mobileeb1ef-rule-soft);
}
.mobileeb1ef-xdir a:hover{ color: var(--mobileeb1ef-accent-hi); }

.mobileeb1ef-xdisc{
  font-size: 11.5px;
  color: #8d8875;
  line-height: 1.6;
}

/* ------------------------------------------------ common footer --------- */

.mobileeb1ef-footer{
  padding: 18px 14px 14px;
  text-align: center;
}

.mobileeb1ef-copy{
  font-size: 11.5px;
  color: #8d8875;
  letter-spacing: .04em;
}

.mobileeb1ef-copy b{
  color: var(--mobileeb1ef-accent-lo);
  font-family: var(--mobileeb1ef-head-font);
}

/* ------------------------------------------------ bottom dock ----------- */

.mobileeb1ef-dock{
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--mobileeb1ef-canvas-w);
  z-index: 95;
  background: #302f29;
  border-top: 2px solid var(--mobileeb1ef-accent);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobileeb1ef-dockrow{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--mobileeb1ef-dock-h);
}

.mobileeb1ef-dockitem{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--mobileeb1ef-tap);
  color: var(--mobileeb1ef-text-dim);
  font-size: 10px;
  letter-spacing: .05em;
  transition: color 150ms ease;
}

/* Active state: top indicator line over the gold band. */
.mobileeb1ef-dockitem::before{
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 30px;
  height: 3px;
  background: var(--mobileeb1ef-accent-hi);
  border-radius: 0 0 3px 3px;
  transition: transform 180ms ease;
}

.mobileeb1ef-dockitem[aria-current="page"]{
  color: var(--mobileeb1ef-accent);
  font-weight: 700;
}
.mobileeb1ef-dockitem[aria-current="page"]::before{
  transform: translateX(-50%) scaleX(1);
}

.mobileeb1ef-dockic{
  width: 23px;
  height: 23px;
  transition: transform 160ms ease;
}

/* Line icons carry a hidden fill layer that surfaces on activation,
   so the glyph visibly morphs from outline to solid. */
.mobileeb1ef-dockic .mobileeb1ef-icfill{
  opacity: 0;
  transition: opacity 160ms ease;
}

.mobileeb1ef-dockitem[aria-current="page"] .mobileeb1ef-icfill{ opacity: 1; }

.mobileeb1ef-dockitem:active .mobileeb1ef-dockic{
  transform: translateY(-2px) scale(1.12);
}

/* ------------------------------------------------ motion & print -------- */

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation: none !important;
    transition-duration: 1ms !important;
  }
  .mobileeb1ef-js [data-routeef0eb-reveal]{
    opacity: 1;
    transform: none;
  }
}

/* Landscape phones just get slightly taller modules; layout stays put. */
@media (max-width: 359px){
  .mobileeb1ef-h1{ font-size: 21px; }
  .mobileeb1ef-module > h2,
  .mobileeb1ef-shelfhead h2{ font-size: 16.5px; }
  .mobileeb1ef-fig b{ font-size: 15px; }
}
