/* ============================================================
   fungames.homes - native layers stylesheet
   Mobile-first phone canvas (320-430px), stroke-led surfaces,
   humanist serif headings + clear sans body.
   All classes and variables use the view227eb- prefix.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --view227eb-ink: #1B263B;            /* base navy canvas */
  --view227eb-ink-deep: #151E31;       /* raised panels */
  --view227eb-ink-floor: #0E1524;      /* surround + wells */
  --view227eb-blush: #FFB6C1;          /* primary light text */
  --view227eb-blush-soft: #F6D7DD;     /* long-form text */
  --view227eb-sand: #BDB76B;           /* secondary labels */
  --view227eb-gold: #D4AF37;           /* accents, strokes, active */
  --view227eb-pink: #FF69B4;           /* primary CTA */
  --view227eb-line: rgba(189, 183, 107, 0.30);
  --view227eb-line-soft: rgba(189, 183, 107, 0.15);
  --view227eb-line-gold: rgba(212, 175, 55, 0.55);
  --view227eb-glow-gold: rgba(212, 175, 55, 0.30);
  --view227eb-glow-pink: rgba(255, 105, 180, 0.40);
  --view227eb-radius: 8px;
  --view227eb-radius-lg: 12px;
  --view227eb-font-head: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
  --view227eb-font-body: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --view227eb-header-h: 106px;
  --view227eb-tabbar-h: 64px;
  --view227eb-ease: 0.22s cubic-bezier(0.25, 0.6, 0.35, 1);
}

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

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

body {
  font-family: var(--view227eb-font-body);
  background: var(--view227eb-ink-floor);
  color: var(--view227eb-blush-soft);
  font-size: 14px;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

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

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

a { color: var(--view227eb-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

[id] { scroll-margin-top: calc(var(--view227eb-header-h) + 10px); }

::selection { background: rgba(212, 175, 55, 0.35); color: #FFFFFF; }

:focus { outline: none; }

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

.view227eb-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.view227eb-skip {
  position: fixed;
  top: 8px; left: 50%;
  transform: translateX(-50%) translateY(-160%);
  z-index: 120;
  padding: 10px 18px;
  background: var(--view227eb-gold);
  color: #1B263B;
  font-weight: 700;
  border-radius: var(--view227eb-radius);
  transition: transform var(--view227eb-ease);
}

.view227eb-skip:focus-visible { transform: translateX(-50%) translateY(0); text-decoration: none; }

/* ---------- 3. Phone canvas shell ---------- */
.view227eb-shell {
  position: relative;
  width: 100%;
  max-width: 430px;              /* phone canvas: 430px ceiling */
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 220px at 50% -60px, rgba(212, 175, 55, 0.10), transparent 70%),
    var(--view227eb-ink);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.60);
}

/* ---------- 4. Fixed top bar: two-layer brand + actions ---------- */
.view227eb-topbar {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, rgba(21, 30, 49, 0.97) 0%, rgba(21, 30, 49, 0.92) 100%);
  border-bottom: 1px solid var(--view227eb-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow var(--view227eb-ease), border-color var(--view227eb-ease);
}

.view227eb-topbar.view227eb-scrolled {
  border-bottom-color: var(--view227eb-line-gold);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* brand layer: logo + name only */
.view227eb-brandrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 6px;
}

.view227eb-brandlogo {
  width: 36px; height: 36px;
  border: 1px solid var(--view227eb-line-gold);
  border-radius: var(--view227eb-radius);
  object-fit: cover;
  box-shadow: 0 0 10px var(--view227eb-glow-gold);
  flex: 0 0 auto;
}

.view227eb-brandname {
  font-family: var(--view227eb-font-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #F9EDC8;
  line-height: 1.1;
}

.view227eb-brandname::after {
  content: "";
  display: block;
  width: 34px; height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--view227eb-gold), rgba(212, 175, 55, 0));
}

/* action layer */
.view227eb-actionrow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 4px 12px 10px;
}

.view227eb-cta {
  flex: 1 1 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--view227eb-font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--view227eb-radius);
  border: 1px solid transparent;
  transition: transform var(--view227eb-ease), box-shadow var(--view227eb-ease), filter var(--view227eb-ease);
}

.view227eb-cta-solid {
  background: linear-gradient(160deg, #FF8AC2 0%, var(--view227eb-pink) 55%, #E5569B 100%);
  color: #2A1524;
  box-shadow: 0 4px 14px var(--view227eb-glow-pink);
}

.view227eb-cta-ghost {
  background: rgba(212, 175, 55, 0.06);
  border-color: var(--view227eb-line-gold);
  color: var(--view227eb-gold);
}

.view227eb-cta:active {
  transform: translateY(1px);
  box-shadow: 0 0 14px var(--view227eb-glow-gold);
}

.view227eb-menubtn {
  flex: 0 0 46px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--view227eb-line);
  border-radius: var(--view227eb-radius);
  color: var(--view227eb-sand);
  background: rgba(189, 183, 107, 0.05);
  transition: border-color var(--view227eb-ease), color var(--view227eb-ease);
}

.view227eb-menubtn svg { width: 20px; height: 20px; }

.view227eb-menubtn[aria-expanded="true"] {
  border-color: var(--view227eb-line-gold);
  color: var(--view227eb-gold);
}

/* ---------- 5. Full-height menu layer ---------- */
.view227eb-menulayer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  visibility: hidden;
}

.view227eb-menulayer.view227eb-open { pointer-events: auto; visibility: visible; }

.view227eb-menubackdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 26, 0.66);
  opacity: 0;
  transition: opacity var(--view227eb-ease);
}

.view227eb-menulayer.view227eb-open .view227eb-menubackdrop { opacity: 1; }

.view227eb-menupanel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(84%, 324px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--view227eb-ink-deep) 0%, var(--view227eb-ink-floor) 100%);
  border-left: 1px solid var(--view227eb-line-gold);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(102%);
  transition: transform 0.26s cubic-bezier(0.3, 0.7, 0.3, 1);
  overflow-y: auto;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.view227eb-menulayer.view227eb-open .view227eb-menupanel { transform: translateX(0); }

.view227eb-menuhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--view227eb-line-soft);
}

.view227eb-menutitle {
  font-family: var(--view227eb-font-head);
  font-size: 17px;
  color: #F9EDC8;
  letter-spacing: 0.04em;
}

.view227eb-menuclose {
  min-width: 44px; min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--view227eb-line);
  border-radius: var(--view227eb-radius);
  color: var(--view227eb-sand);
}

.view227eb-menuclose svg { width: 18px; height: 18px; }

.view227eb-menugroup { padding: 12px 16px 2px; }

.view227eb-menulabel {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--view227eb-sand);
  opacity: 0.85;
  margin-bottom: 4px;
}

.view227eb-menulink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--view227eb-line-soft);
  border-radius: var(--view227eb-radius) var(--view227eb-radius) 0 0;
  color: var(--view227eb-blush-soft);
  font-size: 14.5px;
  transition: color var(--view227eb-ease), padding-left var(--view227eb-ease);
}

.view227eb-menulink::after {
  content: "\203A";
  color: var(--view227eb-gold);
  font-size: 16px;
}

.view227eb-menulink:hover,
.view227eb-menulink:focus-visible {
  color: var(--view227eb-gold);
  text-decoration: none;
  padding-left: 14px;
}

.view227eb-menulink[aria-current="page"] {
  color: var(--view227eb-gold);
  border-color: var(--view227eb-line-gold);
  background: rgba(212, 175, 55, 0.07);
}

.view227eb-menupromo {
  margin: auto 16px 0;
}

.view227eb-menupromo .view227eb-cta { width: 100%; }

/* ---------- 6. Main scaffold ---------- */
.view227eb-main {
  padding: calc(var(--view227eb-header-h) + 14px) 13px calc(var(--view227eb-tabbar-h) + 30px + env(safe-area-inset-bottom));
}

.view227eb-zone {
  margin-top: 26px;
  animation: view227ebrise 0.26s var(--view227eb-ease) both;
}

.view227eb-zone:nth-of-type(n + 3) { animation-delay: 0.04s; }

@keyframes view227ebrise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 7. Hero / H1 ---------- */
.view227eb-herokicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--view227eb-line);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--view227eb-sand);
}

.view227eb-herokicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--view227eb-gold);
  box-shadow: 0 0 8px var(--view227eb-glow-gold);
}

.view227eb-h1 {
  font-family: var(--view227eb-font-head);
  font-size: 23px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #F9EDC8;
  margin: 10px 0 8px;
  text-wrap: balance;
}

.view227eb-lede {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--view227eb-blush-soft);
}

.view227eb-lede strong { color: var(--view227eb-blush); font-weight: 600; }

.view227eb-trustrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.view227eb-trustchip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 5px 4px;
  border: 1px solid var(--view227eb-line-soft);
  border-radius: var(--view227eb-radius);
  background: rgba(21, 30, 49, 0.55);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--view227eb-sand);
  text-align: center;
}

.view227eb-trustchip svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--view227eb-gold); }

/* ---------- 8. Carousel ---------- */
.view227eb-carousel {
  position: relative;
  margin-top: 18px;
  border: 1px solid var(--view227eb-line);
  border-radius: var(--view227eb-radius-lg);
  overflow: hidden;
  background: var(--view227eb-ink-deep);
}

.view227eb-track {
  display: flex;
  transition: transform 0.32s cubic-bezier(0.3, 0.7, 0.3, 1);
  touch-action: pan-y;
}

.view227eb-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  width: 100%;
  text-align: left;
}

.view227eb-slide img {
  width: 100%;
  height: 172px;
  object-fit: cover;
  object-position: center;
}

.view227eb-slidecaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, rgba(14, 21, 36, 0) 0%, rgba(14, 21, 36, 0.92) 78%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.view227eb-slidetitle {
  font-family: var(--view227eb-font-head);
  font-size: 15.5px;
  font-weight: 700;
  color: #F9EDC8;
}

.view227eb-slidesub {
  font-size: 11px;
  color: var(--view227eb-blush);
}

.view227eb-dots {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.view227eb-dot {
  width: 10px; height: 10px;
  min-width: 10px;
  border-radius: 999px;
  border: 1px solid var(--view227eb-gold);
  background: transparent;
  transition: width var(--view227eb-ease), background-color var(--view227eb-ease);
}

.view227eb-dot.view227eb-dot-on {
  width: 24px;
  background: var(--view227eb-gold);
  box-shadow: 0 0 8px var(--view227eb-glow-gold);
}

/* ---------- 9. Section headings ---------- */
.view227eb-h2 {
  font-family: var(--view227eb-font-head);
  font-size: 17.5px;
  line-height: 1.35;
  font-weight: 700;
  color: #F9EDC8;
  margin-bottom: 6px;
  text-wrap: balance;
}

.view227eb-h2::after {
  content: "";
  display: block;
  width: 42px; height: 2px;
  margin-top: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--view227eb-pink), rgba(255, 105, 180, 0));
}

.view227eb-h3 {
  font-family: var(--view227eb-font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--view227eb-blush);
  letter-spacing: 0.02em;
}

.view227eb-sectionintro {
  font-size: 13px;
  color: var(--view227eb-blush-soft);
  margin: 6px 0 10px;
}

/* ---------- 10. Game shelves ---------- */
.view227eb-shelf { margin-top: 20px; }

.view227eb-shelfhead {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--view227eb-line-soft);
  border-left: 3px solid var(--view227eb-gold);
  border-radius: var(--view227eb-radius);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), rgba(21, 30, 49, 0.2) 60%);
  margin-bottom: 10px;
}

.view227eb-shelfhead .view227eb-h3 { flex: 1 1 auto; }

.view227eb-shelfcount {
  flex: 0 0 auto;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--view227eb-sand);
  border: 1px solid var(--view227eb-line-soft);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.view227eb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* 4 columns at 320px */
  gap: 8px 7px;
}

.view227eb-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: var(--view227eb-radius);
  transition: border-color var(--view227eb-ease), transform var(--view227eb-ease), background-color var(--view227eb-ease);
}

.view227eb-tile:active {
  border-color: var(--view227eb-line-gold);
  background: rgba(212, 175, 55, 0.06);
  transform: translateY(-2px);
}

.view227eb-tilethumb {
  display: block;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--view227eb-line-soft);
  border-radius: var(--view227eb-radius);
  overflow: hidden;
  background: var(--view227eb-ink-deep);
}

.view227eb-tilethumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.view227eb-tilename {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 27px;
  font-size: 10.5px;
  line-height: 1.28;
  text-align: center;
  color: var(--view227eb-blush);
  overflow-wrap: anywhere;
}

/* ---------- 11. Horizontal icon-name bars (quick seats) ---------- */
.view227eb-bars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.view227eb-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 60px;
  padding: 8px 10px;
  border: 1px solid var(--view227eb-line-soft);
  border-radius: 10px;
  background: var(--view227eb-ink-deep);
  text-align: left;
  transition: border-color var(--view227eb-ease), transform var(--view227eb-ease);
}

.view227eb-bar:active {
  border-color: var(--view227eb-line-gold);
  transform: translateX(2px);
}

.view227eb-barthumb {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border: 1px solid var(--view227eb-line);
  border-radius: var(--view227eb-radius);
  overflow: hidden;
  background: var(--view227eb-ink-floor);
}

.view227eb-barthumb img { width: 100%; height: 100%; object-fit: cover; }

.view227eb-barbody { flex: 1 1 auto; min-width: 0; }

.view227eb-barname {
  display: block;
  font-family: var(--view227eb-font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--view227eb-blush);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.view227eb-barmeta {
  display: block;
  font-size: 11px;
  color: var(--view227eb-sand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.view227eb-barrow::after {
  content: "\203A";
  flex: 0 0 auto;
  color: var(--view227eb-gold);
  font-size: 18px;
  line-height: 1;
}

/* ---------- 12. Prose modules ---------- */
.view227eb-prose { font-size: 13px; line-height: 1.68; }

.view227eb-prose p + p { margin-top: 9px; }

.view227eb-prose strong { color: var(--view227eb-blush); font-weight: 600; }

.view227eb-prose a { border-bottom: 1px dashed var(--view227eb-line-gold); }

/* steps */
.view227eb-steps {
  margin-top: 10px;
  border: 1px solid var(--view227eb-line-soft);
  border-radius: var(--view227eb-radius-lg);
  background: rgba(21, 30, 49, 0.45);
  overflow: hidden;
}

.view227eb-step {
  display: flex;
  gap: 11px;
  padding: 11px 12px;
  border-bottom: 1px dashed var(--view227eb-line-soft);
}

.view227eb-step:last-child { border-bottom: 0; }

.view227eb-stepnum {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--view227eb-line-gold);
  border-radius: 50%;
  font-family: var(--view227eb-font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--view227eb-gold);
}

.view227eb-stepbody { flex: 1 1 auto; min-width: 0; }

.view227eb-steptitle {
  display: block;
  font-family: var(--view227eb-font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--view227eb-blush);
}

.view227eb-steptext {
  display: block;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--view227eb-blush-soft);
  margin-top: 2px;
}

/* category notes */
.view227eb-catnotes {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.view227eb-catnote {
  display: flex;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--view227eb-line-soft);
  border-left: 3px solid var(--view227eb-pink);
  border-radius: var(--view227eb-radius);
  background: rgba(21, 30, 49, 0.42);
}

.view227eb-catnote:nth-child(even) { border-left-color: var(--view227eb-gold); }

.view227eb-catglyph {
  flex: 0 0 34px;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--view227eb-line);
  border-radius: 50%;
  color: var(--view227eb-gold);
}

.view227eb-catglyph svg { width: 17px; height: 17px; }

.view227eb-catbody { flex: 1 1 auto; min-width: 0; font-size: 12.5px; line-height: 1.6; }

.view227eb-catbody strong {
  display: block;
  font-family: var(--view227eb-font-head);
  font-size: 13.5px;
  color: var(--view227eb-blush);
}

/* fact sheet */
.view227eb-facts {
  margin-top: 10px;
  border: 1px solid var(--view227eb-line);
  border-radius: var(--view227eb-radius-lg);
  overflow: hidden;
}

.view227eb-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px dashed var(--view227eb-line-soft);
  font-size: 12.5px;
  line-height: 1.55;
}

.view227eb-fact:last-child { border-bottom: 0; }

.view227eb-fact dt {
  flex: 0 0 auto;
  color: var(--view227eb-sand);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
}

.view227eb-fact dd {
  flex: 1 1 auto;
  text-align: right;
  color: var(--view227eb-blush-soft);
}

/* relationship relays */
.view227eb-relays {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.view227eb-relay {
  padding: 10px 12px;
  border: 1px solid var(--view227eb-line-soft);
  border-radius: var(--view227eb-radius);
  background: linear-gradient(180deg, rgba(21, 30, 49, 0.55), rgba(14, 21, 36, 0.35));
  font-size: 12.5px;
  line-height: 1.6;
}

.view227eb-relay strong {
  display: block;
  font-family: var(--view227eb-font-head);
  font-size: 13px;
  color: var(--view227eb-blush);
  margin-bottom: 2px;
}

.view227eb-relay strong::before {
  content: "\21B3 ";
  color: var(--view227eb-pink);
  font-size: 13px;
}

/* ---------- 13. Extended site footer ---------- */
.view227eb-xfoot {
  margin-top: 30px;
  padding: 18px 13px 16px;
  border-top: 1px solid var(--view227eb-line);
  background: linear-gradient(180deg, rgba(14, 21, 36, 0.35), rgba(14, 21, 36, 0.85));
}

.view227eb-xfbrand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view227eb-xfbrand img {
  width: 30px; height: 30px;
  border: 1px solid var(--view227eb-line-gold);
  border-radius: var(--view227eb-radius);
  object-fit: cover;
}

.view227eb-xfname {
  font-family: var(--view227eb-font-head);
  font-size: 16px;
  font-weight: 700;
  color: #F9EDC8;
}

.view227eb-xfblurb {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--view227eb-blush-soft);
}

.view227eb-xfoverline {
  margin: 18px 0 8px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--view227eb-sand);
  display: flex;
  align-items: center;
  gap: 8px;
}

.view227eb-xfoverline::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--view227eb-line), rgba(189, 183, 107, 0));
}

.view227eb-dirgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.view227eb-dirlink {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--view227eb-line-soft);
  border-radius: var(--view227eb-radius);
  color: var(--view227eb-blush-soft);
  font-size: 12px;
  line-height: 1.3;
  transition: border-color var(--view227eb-ease), color var(--view227eb-ease);
}

.view227eb-dirlink::before {
  content: "";
  flex: 0 0 5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--view227eb-sand);
}

.view227eb-dirlink:hover,
.view227eb-dirlink:focus-visible {
  border-color: var(--view227eb-line-gold);
  color: var(--view227eb-gold);
  text-decoration: none;
}

.view227eb-promolist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.view227eb-promoitem {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--view227eb-line-gold);
  border-radius: var(--view227eb-radius);
  background: rgba(212, 175, 55, 0.07);
  color: var(--view227eb-blush);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: transform var(--view227eb-ease), box-shadow var(--view227eb-ease), background-color var(--view227eb-ease);
}

.view227eb-promoitem::after {
  content: "\2192";
  color: var(--view227eb-gold);
  font-size: 15px;
}

.view227eb-promoitem:first-child {
  background: linear-gradient(160deg, #FF8AC2 0%, var(--view227eb-pink) 60%);
  border-color: transparent;
  color: #2A1524;
  box-shadow: 0 4px 14px var(--view227eb-glow-pink);
}

.view227eb-promoitem:first-child::after { color: #2A1524; }

.view227eb-promoitem:active {
  transform: translateY(1px);
  box-shadow: 0 0 12px var(--view227eb-glow-gold);
}

.view227eb-xfdisclaimer {
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px dashed var(--view227eb-line);
  border-radius: var(--view227eb-radius);
  font-size: 11px;
  line-height: 1.6;
  color: var(--view227eb-sand);
}

/* ---------- 14. Common footer + layered bottom tab bar ---------- */
.view227eb-foot {
  padding: 14px 13px 10px;
  border-top: 1px solid var(--view227eb-line-soft);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--view227eb-sand);
}

.view227eb-foot .view227eb-footbrand { color: var(--view227eb-blush); }

.view227eb-tabbar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;               /* stays inside the 430px canvas */
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 2px;
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.94) 0%, #101827 100%);
  border-top: 1px solid var(--view227eb-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.view227eb-tabbar::before {
  content: "";
  position: absolute;
  top: -1px; left: 16%; right: 16%;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0) 0%, var(--view227eb-gold) 50%, rgba(212, 175, 55, 0) 100%);
}

.view227eb-tablink {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-height: 50px;
  padding: 4px 2px 2px;
  color: var(--view227eb-sand);
  font-size: 10px;
  letter-spacing: 0.03em;
  border-radius: var(--view227eb-radius);
  transition: color var(--view227eb-ease), transform var(--view227eb-ease);
}

.view227eb-tablink svg { width: 21px; height: 21px; }

.view227eb-tablink:active { transform: translateY(-1px); }

.view227eb-tablink[aria-current="page"] {
  color: var(--view227eb-gold);
  transform: translateY(-2px);
  text-shadow: 0 0 10px var(--view227eb-glow-gold);
}

.view227eb-tablink[aria-current="page"]::after {
  content: "";
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--view227eb-gold);
  box-shadow: 0 0 8px var(--view227eb-glow-gold);
  margin-top: 2px;
}

.view227eb-tablink:hover { color: var(--view227eb-gold); text-decoration: none; }

/* raised center play button creates the layered strip */
.view227eb-tabcenter {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.view227eb-tabplay {
  width: 54px; height: 54px;
  margin-top: -20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--view227eb-gold);
  background: radial-gradient(circle at 32% 28%, #FF9CC8 0%, var(--view227eb-pink) 58%, #E0569C 100%);
  color: #2A1524;
  box-shadow:
    0 6px 18px var(--view227eb-glow-pink),
    0 0 0 5px rgba(16, 24, 39, 0.95);
  transition: transform var(--view227eb-ease), box-shadow var(--view227eb-ease);
}

.view227eb-tabplay svg { width: 24px; height: 24px; }

.view227eb-tabplay:active {
  transform: scale(0.94);
  box-shadow: 0 0 20px var(--view227eb-glow-gold), 0 0 0 5px rgba(16, 24, 39, 0.95);
}

.view227eb-tablabel { display: block; text-align: center; }

.view227eb-tabcenter .view227eb-tablabel {
  margin-top: 3px;
  color: var(--view227eb-sand);
  font-size: 10px;
  letter-spacing: 0.03em;
}

/* ---------- 15. Utilities & motion ---------- */
.view227eb-hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 16. Breakpoints inside the phone canvas ---------- */
/* 375px and up: denser 5-column game grid, taller banner */
@media (min-width: 375px) {
  .view227eb-grid { grid-template-columns: repeat(5, 1fr); }
  .view227eb-slide img { height: 188px; }
  .view227eb-h1 { font-size: 24px; }
  .view227eb-main { padding-left: 15px; padding-right: 15px; }
  .view227eb-xfoot { padding-left: 15px; padding-right: 15px; }
}

/* 430px ceiling: keep the canvas edge crisp on wider phones */
@media (min-width: 431px) {
  .view227eb-shell { border-left: 1px solid rgba(189, 183, 107, 0.12); border-right: 1px solid rgba(189, 183, 107, 0.12); }
  .view227eb-slide img { height: 196px; }
}

/* short landscape phones: shrink the fixed header chrome */
@media (max-height: 620px) {
  .view227eb-brandrow { padding-top: 6px; padding-bottom: 4px; }
  .view227eb-brandlogo { width: 30px; height: 30px; }
  .view227eb-brandname { font-size: 18px; }
  .view227eb-actionrow { padding-bottom: 7px; }
  :root { --view227eb-header-h: 92px; }
}

/* ---------- 17. Help-page reading tools ---------- */
.view227eb-helpintro {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--view227eb-line-gold);
  border-left: 4px solid var(--view227eb-pink);
  border-radius: var(--view227eb-radius-lg);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.10), rgba(21, 30, 49, 0.62));
}

.view227eb-helpintro p { font-size: 13px; line-height: 1.67; }
.view227eb-helpintro strong { color: var(--view227eb-blush); }

.view227eb-route {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.view227eb-routeitem {
  min-width: 0;
  padding: 9px 7px;
  border-top: 2px solid var(--view227eb-gold);
  border-bottom: 1px solid var(--view227eb-line-soft);
  background: rgba(21, 30, 49, 0.48);
  text-align: center;
}

.view227eb-routenumber {
  display: block;
  font-family: var(--view227eb-font-head);
  font-size: 18px;
  color: var(--view227eb-pink);
}

.view227eb-routelabel {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--view227eb-sand);
}

.view227eb-checklist {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.view227eb-check {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--view227eb-line-soft);
  border-radius: var(--view227eb-radius);
  background: rgba(21, 30, 49, 0.55);
}

.view227eb-checkmark {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--view227eb-line-gold);
  border-radius: 50%;
  color: var(--view227eb-gold);
  font-family: var(--view227eb-font-head);
  font-weight: 700;
}

.view227eb-checkbody { min-width: 0; font-size: 12.5px; line-height: 1.58; }
.view227eb-checkbody strong { display: block; color: var(--view227eb-blush); font-family: var(--view227eb-font-head); font-size: 13.5px; }

.view227eb-answerlist { margin-top: 10px; border-top: 1px solid var(--view227eb-line); }
.view227eb-answerlist details { border-bottom: 1px dashed var(--view227eb-line-soft); }
.view227eb-answerlist summary { min-height: 48px; padding: 13px 28px 11px 2px; position: relative; cursor: pointer; color: var(--view227eb-blush); font-family: var(--view227eb-font-head); font-size: 13.5px; font-weight: 700; list-style: none; }
.view227eb-answerlist summary::-webkit-details-marker { display: none; }
.view227eb-answerlist summary::after { content: "+"; position: absolute; right: 4px; top: 10px; color: var(--view227eb-gold); font-size: 20px; font-family: var(--view227eb-font-body); font-weight: 400; }
.view227eb-answerlist details[open] summary::after { content: "-"; }
.view227eb-answerlist details p { padding: 0 25px 13px 2px; font-size: 12.5px; line-height: 1.63; color: var(--view227eb-blush-soft); }

.view227eb-termgrid { display: grid; gap: 8px; margin-top: 10px; }
.view227eb-term { padding: 10px 11px; border-left: 3px solid var(--view227eb-gold); background: rgba(21, 30, 49, 0.44); }
.view227eb-term:nth-child(odd) { border-left-color: var(--view227eb-pink); }
.view227eb-term dt { color: var(--view227eb-sand); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.view227eb-term dd { margin-top: 3px; font-size: 12.5px; line-height: 1.62; }

.view227eb-helpactions { display: grid; gap: 8px; margin-top: 12px; }
.view227eb-helpaction { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border: 1px solid var(--view227eb-line-gold); border-radius: var(--view227eb-radius); background: rgba(212, 175, 55, 0.08); color: var(--view227eb-blush); text-align: left; font-size: 13px; font-weight: 600; transition: transform var(--view227eb-ease), background-color var(--view227eb-ease), box-shadow var(--view227eb-ease); }
.view227eb-helpaction::after { content: "->"; color: var(--view227eb-gold); }
.view227eb-helpaction:nth-child(1) { background: linear-gradient(160deg, #FF8AC2 0%, var(--view227eb-pink) 70%); border-color: transparent; color: #2A1524; }
.view227eb-helpaction:nth-child(1)::after { color: #2A1524; }
.view227eb-helpaction:active { transform: translateY(1px); box-shadow: 0 0 14px var(--view227eb-glow-gold); }

/* Safety pages use a signal-led incident layout rather than a step list. */
.view227eb-signalstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.view227eb-signal { padding: 9px 6px; border: 1px solid var(--view227eb-line-soft); border-radius: var(--view227eb-radius); text-align: center; background: rgba(21, 30, 49, 0.5); }
.view227eb-signal strong { display: block; color: var(--view227eb-gold); font-family: var(--view227eb-font-head); font-size: 14px; }
.view227eb-signal span { display: block; margin-top: 2px; color: var(--view227eb-sand); font-size: 10px; line-height: 1.35; }

.view227eb-scenarios { display: grid; gap: 9px; margin-top: 11px; }
.view227eb-scenario { padding: 11px 12px; border: 1px solid var(--view227eb-line-soft); border-radius: var(--view227eb-radius-lg); background: linear-gradient(180deg, rgba(21, 30, 49, 0.62), rgba(14, 21, 36, 0.4)); }
.view227eb-scenario h3 { margin-bottom: 4px; }
.view227eb-scenario p { font-size: 12.5px; line-height: 1.62; }
.view227eb-scenario p + p { margin-top: 7px; }
.view227eb-scenario .view227eb-signalword { color: var(--view227eb-pink); font-weight: 700; }

.view227eb-supportsheet { margin-top: 10px; padding: 12px; border: 1px dashed var(--view227eb-line-gold); border-radius: var(--view227eb-radius-lg); background: rgba(212, 175, 55, 0.06); }
.view227eb-supportsheet ul { list-style: disc; padding-left: 18px; }
.view227eb-supportsheet li { margin: 5px 0; font-size: 12.5px; line-height: 1.55; }

.view227eb-factstack { display: grid; gap: 7px; margin-top: 10px; }
.view227eb-factstack .view227eb-fact { display: block; border: 1px solid var(--view227eb-line-soft); border-radius: var(--view227eb-radius); background: rgba(21, 30, 49, 0.45); }
.view227eb-factstack .view227eb-fact dt { white-space: normal; }
.view227eb-factstack .view227eb-fact dd { margin-top: 3px; text-align: left; }

@media (min-width: 375px) {
  .view227eb-helpintro { padding: 14px; }
  .view227eb-route { gap: 9px; }
  .view227eb-check { padding: 11px; }
}
