/* ============================================================
   BBC Online Casino - mobile canvas stylesheet
   Canvas strategy: dark backdrop page, centered 430px phone frame
   Palette: charcoal base / teal accents / blush text / magenta CTA
   Prefix contract: every class and variable starts with viewd80f9-
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --viewd80f9-ink: #171412;            /* page backdrop behind canvas */
  --viewd80f9-bg: #2c2c2c;             /* canvas base */
  --viewd80f9-raise: #36312f;          /* raised surface */
  --viewd80f9-raise2: #403a38;         /* hover / pressed surface */
  --viewd80f9-teal: #20b2aa;           /* primary accent */
  --viewd80f9-teal-deep: #008b8b;      /* secondary accent */
  --viewd80f9-blush: #ffb6c1;          /* soft light text */
  --viewd80f9-magenta: #c71585;        /* high contrast CTA */
  --viewd80f9-cream: #f8efe9;          /* main light text */
  --viewd80f9-muted: #c9bcb4;          /* secondary text */
  --viewd80f9-line: rgba(255, 182, 193, 0.16);
  --viewd80f9-line-strong: rgba(32, 178, 170, 0.42);
  --viewd80f9-head-font: 'Baloo 2', 'Trebuchet MS', sans-serif;
  --viewd80f9-body-font: 'Barlow Semi Condensed', 'Segoe UI', Arial, sans-serif;
  --viewd80f9-r-xl: 24px;              /* large soft radius */
  --viewd80f9-r-lg: 19px;              /* large component radius */
  --viewd80f9-r-md: 14px;              /* medium radius */
  --viewd80f9-r-sm: 8px;               /* small radius */
  --viewd80f9-r-cta: 3px;              /* near-square CTA radius */
  --viewd80f9-float: 0 10px 22px rgba(12, 8, 8, 0.38);
  --viewd80f9-float-soft: 0 4px 12px rgba(12, 8, 8, 0.28);
  --viewd80f9-rail-h: 60px;            /* bottom rail height */
  --viewd80f9-topbar-h: 104px;         /* fixed header height reserve */
  --viewd80f9-page-x: 12px;            /* canvas side padding */
  --viewd80f9-ease: cubic-bezier(0.33, 0.9, 0.4, 1);
}

/* ---------- 2. Base layer ---------- */
* { box-sizing: border-box; }

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

body.viewd80f9-body {
  margin: 0;
  padding: 0;
  background: var(--viewd80f9-ink);
  background-image:
    radial-gradient(circle at 18% -6%, rgba(32, 178, 170, 0.14), transparent 52%),
    radial-gradient(circle at 88% 12%, rgba(199, 21, 133, 0.10), transparent 46%);
  color: var(--viewd80f9-cream);
  font-family: var(--viewd80f9-body-font);
  font-size: 15px;
  line-height: 1.62;
  min-height: 100vh;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--viewd80f9-head-font);
  color: var(--viewd80f9-cream);
  margin: 0 0 0.5em;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0.2px;
}

p { margin: 0 0 0.9em; }

a { color: var(--viewd80f9-teal); text-decoration: none; transition: color 0.2s var(--viewd80f9-ease); }
a:hover { color: var(--viewd80f9-blush); }

button {
  font-family: var(--viewd80f9-body-font);
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

::selection { background: var(--viewd80f9-teal-deep); color: #fff; }

:focus-visible {
  outline: 2px solid var(--viewd80f9-teal);
  outline-offset: 2px;
  border-radius: var(--viewd80f9-r-sm);
}

/* ---------- 3. Phone canvas shell ---------- */
.viewd80f9-canvas {
  position: relative;
  width: 100%;
  max-width: 430px;                     /* phone canvas cap */
  margin-inline: auto;
  min-height: 100vh;
  background: var(--viewd80f9-bg);
  box-shadow: 0 0 0 1px rgba(255, 182, 193, 0.06), 0 0 44px rgba(0, 0, 0, 0.5);
  overflow-x: clip;
}

.viewd80f9-page {
  /* keeps clear of the fixed topbar and the fixed bottom rail */
  padding: calc(var(--viewd80f9-topbar-h) + 14px) var(--viewd80f9-page-x)
           calc(var(--viewd80f9-rail-h) + env(safe-area-inset-bottom, 0px) + 30px);
}

.viewd80f9-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 60;
  background: var(--viewd80f9-teal);
  color: #08100f;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: var(--viewd80f9-r-sm);
  transition: top 0.2s var(--viewd80f9-ease);
}
.viewd80f9-skip:focus { top: 8px; color: #08100f; }

/* ---------- 4. Fixed topbar (brand row over action row) ---------- */
.viewd80f9-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;                     /* stay inside the phone canvas */
  z-index: 40;
  background: linear-gradient(180deg, #332e2c 0%, var(--viewd80f9-bg) 100%);
  border-bottom: 1px solid var(--viewd80f9-line-strong);
  box-shadow: 0 6px 18px rgba(10, 6, 6, 0.45);
}

.viewd80f9-brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 7px var(--viewd80f9-page-x) 6px;
}

.viewd80f9-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;                     /* 44px touch target */
  min-width: 44px;
}

.viewd80f9-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--viewd80f9-line-strong);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.35);
  flex: none;
}

.viewd80f9-brand-name {
  font-family: var(--viewd80f9-head-font);
  font-size: 19px;
  font-weight: 800;
  color: var(--viewd80f9-cream);
  letter-spacing: 0.3px;
  line-height: 1.05;
}
.viewd80f9-brand-name b { color: var(--viewd80f9-teal); font-weight: 800; }

/* hamburger toggle */
.viewd80f9-menubtn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 44px;
  padding: 10px 11px;
  border-radius: var(--viewd80f9-r-sm);
  background: var(--viewd80f9-raise);
  border: 1px solid var(--viewd80f9-line);
  transition: background 0.2s var(--viewd80f9-ease), transform 0.15s var(--viewd80f9-ease);
}
.viewd80f9-menubtn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--viewd80f9-blush);
  transition: transform 0.25s var(--viewd80f9-ease), opacity 0.2s var(--viewd80f9-ease), width 0.25s var(--viewd80f9-ease);
}
.viewd80f9-menubtn span:nth-child(2) { width: 78%; }
.viewd80f9-menubtn:active { transform: scale(0.93); }
.viewd80f9-topbar.viewd80f9-open .viewd80f9-menubtn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.viewd80f9-topbar.viewd80f9-open .viewd80f9-menubtn span:nth-child(2) { opacity: 0; }
.viewd80f9-topbar.viewd80f9-open .viewd80f9-menubtn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* action row: register + login */
.viewd80f9-actrow {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 9px;
  padding: 0 var(--viewd80f9-page-x) 9px;
}

.viewd80f9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--viewd80f9-r-cta);      /* square-corner high contrast CTA */
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: transform 0.15s var(--viewd80f9-ease), filter 0.2s var(--viewd80f9-ease), background 0.2s var(--viewd80f9-ease);
}
.viewd80f9-btn:active { transform: scale(0.96); }

.viewd80f9-btn-register {
  background: linear-gradient(120deg, var(--viewd80f9-magenta), #a4116c);
  color: #fff;
  box-shadow: 0 4px 0 #7c0d52;
}
.viewd80f9-btn-register:hover { filter: brightness(1.08); color: #fff; }

.viewd80f9-btn-login {
  background: transparent;
  color: var(--viewd80f9-teal);
  border: 1.6px solid var(--viewd80f9-teal);
  box-shadow: 0 4px 0 rgba(0, 139, 139, 0.55);
}
.viewd80f9-btn-login:hover { background: rgba(32, 178, 170, 0.12); color: var(--viewd80f9-blush); }

.viewd80f9-btn-teal {
  background: linear-gradient(120deg, var(--viewd80f9-teal), var(--viewd80f9-teal-deep));
  color: #06110f;
  box-shadow: 0 4px 0 #005e5e;
}
.viewd80f9-btn-teal:hover { filter: brightness(1.07); color: #06110f; }

/* ---------- 5. Layered dropdown menu ---------- */
.viewd80f9-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(38, 34, 32, 0.985);
  border-bottom: 1px solid var(--viewd80f9-line-strong);
  box-shadow: 0 18px 28px rgba(8, 5, 5, 0.55);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.32s var(--viewd80f9-ease), visibility 0.32s;
}
.viewd80f9-topbar.viewd80f9-open .viewd80f9-menu {
  max-height: 560px;
  visibility: visible;
  overflow-y: auto;
}

.viewd80f9-menu-inner { padding: 8px var(--viewd80f9-page-x) 14px; }

.viewd80f9-menu-label {
  font-family: var(--viewd80f9-body-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--viewd80f9-teal);
  padding: 12px 4px 6px;
}

.viewd80f9-menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.viewd80f9-menu-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--viewd80f9-r-sm);
  background: var(--viewd80f9-raise);
  border: 1px solid var(--viewd80f9-line);
  color: var(--viewd80f9-cream);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  transition: background 0.18s var(--viewd80f9-ease), transform 0.15s var(--viewd80f9-ease);
}
.viewd80f9-menu-list a:hover {
  background: var(--viewd80f9-raise2);
  color: var(--viewd80f9-blush);
}
.viewd80f9-menu-list a:active { transform: scale(0.97); }

.viewd80f9-menu-list .viewd80f9-mi-ico {
  flex: none;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--viewd80f9-teal);
}

.viewd80f9-menu-current {
  background: rgba(32, 178, 170, 0.16) !important;
  border-color: var(--viewd80f9-teal) !important;
  box-shadow: inset 3px 0 0 var(--viewd80f9-teal);
}

/* ---------- 6. Hero / intro block ---------- */
.viewd80f9-hero {
  padding: 4px 2px 14px;
}

.viewd80f9-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--viewd80f9-blush);
  background: rgba(255, 182, 193, 0.1);
  border: 1px solid var(--viewd80f9-line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.viewd80f9-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--viewd80f9-teal);
  box-shadow: 0 0 8px var(--viewd80f9-teal);
}

.viewd80f9-hero h1 {
  font-size: 27px;
  line-height: 1.16;
  margin-bottom: 10px;
}
.viewd80f9-hero h1 em {
  font-style: normal;
  color: var(--viewd80f9-teal);
}

.viewd80f9-hero-lede {
  color: var(--viewd80f9-muted);
  font-size: 15px;
  margin-bottom: 12px;
}

.viewd80f9-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 4px;
  list-style: none;
  padding: 0;
}
.viewd80f9-hero-facts li {
  background: var(--viewd80f9-raise);
  border: 1px solid var(--viewd80f9-line);
  border-radius: var(--viewd80f9-r-md) var(--viewd80f9-r-md) var(--viewd80f9-r-sm) var(--viewd80f9-r-sm);
  padding: 9px 6px;
  text-align: center;
}
.viewd80f9-hero-facts b {
  display: block;
  font-family: var(--viewd80f9-head-font);
  font-size: 19px;
  color: var(--viewd80f9-teal);
  line-height: 1.1;
}
.viewd80f9-hero-facts span {
  font-size: 11.5px;
  color: var(--viewd80f9-muted);
  letter-spacing: 0.4px;
}

/* ---------- 7. Promo carousel ---------- */
.viewd80f9-carousel {
  position: relative;
  margin: 6px 0 6px;
  border-radius: var(--viewd80f9-r-xl) var(--viewd80f9-r-md) var(--viewd80f9-r-md) var(--viewd80f9-r-xl);
  overflow: hidden;
  box-shadow: var(--viewd80f9-float);
  border: 1px solid var(--viewd80f9-line);
  background: var(--viewd80f9-raise);
}

.viewd80f9-cviewport {
  position: relative;
  aspect-ratio: 2 / 1;
}

/* without JS the slides stack in normal flow so content stays reachable */
.viewd80f9-cslide {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--viewd80f9-raise);
}
html.viewd80f9-obs .viewd80f9-cslide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(14px) scale(0.985);
  transition: opacity 0.5s var(--viewd80f9-ease), transform 0.5s var(--viewd80f9-ease);
  pointer-events: none;
}
html.viewd80f9-obs .viewd80f9-cslide.viewd80f9-on {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.viewd80f9-cslide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viewd80f9-cslide-tap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent 42%, rgba(18, 12, 12, 0.82) 100%);
}
.viewd80f9-cslide-tap:active { transform: scale(0.99); }

.viewd80f9-cslide-tag {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #120b0e;
  background: var(--viewd80f9-blush);
  border-radius: var(--viewd80f9-r-sm);
  padding: 2px 8px;
  margin-bottom: 6px;
}
.viewd80f9-cslide-title {
  font-family: var(--viewd80f9-head-font);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.viewd80f9-cslide-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #06110f;
  background: var(--viewd80f9-teal);
  border-radius: var(--viewd80f9-r-cta);
  padding: 5px 12px;
}

.viewd80f9-cdots {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  gap: 7px;
}
html:not(.viewd80f9-obs) .viewd80f9-cdots { display: none; }

.viewd80f9-cdot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s var(--viewd80f9-ease), transform 0.2s var(--viewd80f9-ease);
}
.viewd80f9-cdot.viewd80f9-on {
  background: var(--viewd80f9-teal);
  border-color: var(--viewd80f9-teal);
  transform: scale(1.18);
}
.viewd80f9-cdot:active { transform: scale(0.85); }

/* ---------- 8. Section shells (intro-then-sections rhythm) ---------- */
.viewd80f9-sec {
  margin-top: 26px;
}

.viewd80f9-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.viewd80f9-sec-head h2 {
  font-size: 20px;
  margin: 0;
  padding-left: 11px;
  position: relative;
}
.viewd80f9-sec-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--viewd80f9-teal), var(--viewd80f9-magenta));
}

.viewd80f9-count {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--viewd80f9-blush);
  border: 1px solid var(--viewd80f9-line);
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(255, 182, 193, 0.07);
}

.viewd80f9-lede {
  color: var(--viewd80f9-muted);
  font-size: 14px;
  margin: 4px 0 12px;
}
.viewd80f9-lede a { color: var(--viewd80f9-teal); font-weight: 600; border-bottom: 1px dashed rgba(32, 178, 170, 0.5); }
.viewd80f9-lede a:hover { border-bottom-color: var(--viewd80f9-blush); }

.viewd80f9-h3 {
  font-size: 15.5px;
  color: var(--viewd80f9-blush);
  margin: 14px 0 6px;
}

/* ---------- 9. Game grid (light floating image cards) ---------- */
.viewd80f9-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px 8px;
}
@media (min-width: 396px) {
  .viewd80f9-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 9px; }
}

.viewd80f9-gtile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border-radius: var(--viewd80f9-r-md) var(--viewd80f9-r-md) var(--viewd80f9-r-sm) var(--viewd80f9-r-sm);
  background: linear-gradient(180deg, var(--viewd80f9-raise2), var(--viewd80f9-raise));
  border: 1px solid var(--viewd80f9-line);
  box-shadow: var(--viewd80f9-float-soft);
  transition: transform 0.16s var(--viewd80f9-ease), box-shadow 0.2s var(--viewd80f9-ease), border-color 0.2s var(--viewd80f9-ease);
}
.viewd80f9-gtile:hover {
  border-color: var(--viewd80f9-line-strong);
  box-shadow: 0 8px 18px rgba(10, 6, 6, 0.42);
}
.viewd80f9-gtile:active {
  transform: translateY(1px) scale(0.94);
  box-shadow: 0 3px 8px rgba(10, 6, 6, 0.4);
}

.viewd80f9-gtile-media {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--viewd80f9-r-md) - 2px) calc(var(--viewd80f9-r-md) - 2px) 0 0;
  background: #1e1b1a;
}
.viewd80f9-gtile-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.25s var(--viewd80f9-ease);
}
.viewd80f9-gtile:hover .viewd80f9-gtile-media img { transform: scale(1.06); }

.viewd80f9-gtile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 31px;
  padding: 4px 5px 6px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.24;
  color: var(--viewd80f9-cream);
  text-align: center;
}

/* ---------- 10. Promotions rail (horizontal shortcut cards) ---------- */
.viewd80f9-promorail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 76%;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin: 0 calc(-1 * var(--viewd80f9-page-x));
  padding-left: var(--viewd80f9-page-x);
  padding-right: var(--viewd80f9-page-x);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--viewd80f9-teal-deep) transparent;
}
.viewd80f9-promorail::-webkit-scrollbar { height: 5px; }
.viewd80f9-promorail::-webkit-scrollbar-thumb { background: var(--viewd80f9-teal-deep); border-radius: 4px; }

.viewd80f9-promocard {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(160deg, rgba(32, 178, 170, 0.14), rgba(199, 21, 133, 0.1)), var(--viewd80f9-raise);
  border: 1px solid var(--viewd80f9-line-strong);
  border-radius: var(--viewd80f9-r-lg) var(--viewd80f9-r-sm) var(--viewd80f9-r-sm) var(--viewd80f9-r-lg);
  padding: 14px 14px 12px;
  min-height: 120px;
}
.viewd80f9-promo-chip {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #120b0e;
  background: var(--viewd80f9-blush);
  border-radius: var(--viewd80f9-r-sm);
  padding: 3px 8px;
}
.viewd80f9-promocard h3 {
  font-size: 16.5px;
  margin: 0;
  color: var(--viewd80f9-cream);
}
.viewd80f9-promocard p {
  font-size: 12.5px;
  color: var(--viewd80f9-muted);
  margin: 0;
  flex: 1;
}
.viewd80f9-promo-cta {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #06110f;
  background: var(--viewd80f9-teal);
  border-radius: var(--viewd80f9-r-cta);
  padding: 8px 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s var(--viewd80f9-ease), filter 0.2s var(--viewd80f9-ease);
}
.viewd80f9-promo-cta:active { transform: scale(0.94); }
.viewd80f9-promo-cta:hover { filter: brightness(1.1); color: #06110f; }

/* ---------- 11. Play style duel rows ---------- */
.viewd80f9-stylelist {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.viewd80f9-stylecard {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  background: var(--viewd80f9-raise);
  border: 1px solid var(--viewd80f9-line);
  border-left: 4px solid var(--viewd80f9-teal);
  border-radius: var(--viewd80f9-r-sm) var(--viewd80f9-r-lg) var(--viewd80f9-r-lg) var(--viewd80f9-r-sm);
  padding: 11px 12px;
}
.viewd80f9-stylecard:nth-child(even) { border-left-color: var(--viewd80f9-magenta); }

.viewd80f9-style-ico {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(32, 178, 170, 0.14);
  color: var(--viewd80f9-teal);
}
.viewd80f9-stylecard h3 { font-size: 15px; margin: 0 0 3px; color: var(--viewd80f9-cream); }
.viewd80f9-style-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  font-size: 12.5px;
  color: var(--viewd80f9-muted);
}
.viewd80f9-style-meta b { color: var(--viewd80f9-blush); font-weight: 600; }

/* ---------- 12. Trick list (numbered, hanging digits) ---------- */
.viewd80f9-tricks {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: viewd80f9-trick;
}

.viewd80f9-trick {
  counter-increment: viewd80f9-trick;
  position: relative;
  padding: 0 0 4px 44px;
  margin-bottom: 13px;
}
.viewd80f9-trick:last-child { margin-bottom: 0; }
.viewd80f9-trick::before {
  content: counter(viewd80f9-trick, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--viewd80f9-head-font);
  font-size: 14px;
  font-weight: 800;
  color: #06110f;
  background: linear-gradient(140deg, var(--viewd80f9-teal), var(--viewd80f9-teal-deep));
  border-radius: 10px 4px 10px 4px;
}
.viewd80f9-trick h3 { font-size: 14.5px; margin: 2px 0 3px; color: var(--viewd80f9-blush); }
.viewd80f9-trick p { font-size: 13.5px; color: var(--viewd80f9-muted); margin: 0; }

/* ---------- 13. Mobile steps timeline ---------- */
.viewd80f9-steps {
  margin: 0;
  padding: 2px 0 0;
  list-style: none;
  position: relative;
}
.viewd80f9-steps::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 14px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, var(--viewd80f9-teal), var(--viewd80f9-magenta));
  opacity: 0.5;
}

.viewd80f9-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 16px;
}
.viewd80f9-step:last-child { padding-bottom: 0; }
.viewd80f9-step b {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--viewd80f9-bg);
  border: 2px solid var(--viewd80f9-teal);
  color: var(--viewd80f9-teal);
  font-family: var(--viewd80f9-head-font);
  font-size: 15px;
  font-weight: 800;
}
.viewd80f9-step:nth-child(even) b { border-color: var(--viewd80f9-magenta); color: var(--viewd80f9-blush); }
.viewd80f9-step h3 { font-size: 14.5px; margin: 3px 0 3px; }
.viewd80f9-step p { font-size: 13.5px; color: var(--viewd80f9-muted); margin: 0; }

/* ---------- 14. Testimonial quotes ---------- */
.viewd80f9-quotes {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.viewd80f9-quote {
  position: relative;
  background: var(--viewd80f9-raise);
  border: 1px solid var(--viewd80f9-line);
  border-radius: var(--viewd80f9-r-md);
  padding: 13px 13px 11px 15px;
}
.viewd80f9-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 4px;
  height: 46px;
  border-radius: 3px;
  background: var(--viewd80f9-blush);
}
.viewd80f9-quote:nth-child(2)::before { background: var(--viewd80f9-teal); }
.viewd80f9-quote:nth-child(3)::before { background: var(--viewd80f9-magenta); }

.viewd80f9-quote p {
  margin: 0 0 9px;
  font-size: 13.5px;
  color: var(--viewd80f9-cream);
}
.viewd80f9-quote p::before { content: "\201C"; color: var(--viewd80f9-teal); font-weight: 800; }
.viewd80f9-quote p::after { content: "\201D"; color: var(--viewd80f9-teal); font-weight: 800; }

.viewd80f9-quote-who {
  display: flex;
  align-items: center;
  gap: 9px;
}
.viewd80f9-quote-ava {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(199, 21, 133, 0.22);
  color: var(--viewd80f9-blush);
  font-weight: 800;
  font-size: 12.5px;
}
.viewd80f9-quote-who cite {
  font-style: normal;
  font-size: 12.5px;
  color: var(--viewd80f9-muted);
}
.viewd80f9-quote-who cite b { color: var(--viewd80f9-blush); font-weight: 700; display: block; font-size: 13px; }

/* ---------- 15. Checklist (selection criteria) ---------- */
.viewd80f9-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.viewd80f9-check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px dashed var(--viewd80f9-line);
}
.viewd80f9-check:last-child { border-bottom: 0; }

.viewd80f9-check-box {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1.6px solid var(--viewd80f9-teal);
  color: var(--viewd80f9-teal);
  background: rgba(32, 178, 170, 0.1);
}
.viewd80f9-check:nth-child(even) .viewd80f9-check-box {
  border-color: var(--viewd80f9-magenta);
  color: var(--viewd80f9-magenta);
  background: rgba(199, 21, 133, 0.1);
}
.viewd80f9-check h3 { font-size: 14px; margin: 0 0 2px; color: var(--viewd80f9-cream); }
.viewd80f9-check p { font-size: 13px; color: var(--viewd80f9-muted); margin: 0; }

/* ---------- 16. Extended footer zone ---------- */
.viewd80f9-xfooter {
  margin-top: 30px;
  border-top: 1px solid var(--viewd80f9-line-strong);
  padding-top: 20px;
}

.viewd80f9-xfooter-brand {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 18px;
}
.viewd80f9-xfooter-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--viewd80f9-line-strong);
  flex: none;
}
.viewd80f9-xfooter-brand h2 {
  font-size: 17px;
  margin: 0 0 4px;
}
.viewd80f9-xfooter-brand p {
  font-size: 13px;
  color: var(--viewd80f9-muted);
  margin: 0;
}

.viewd80f9-dir-title {
  font-family: var(--viewd80f9-body-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--viewd80f9-teal);
  margin: 16px 0 8px;
}

.viewd80f9-directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.viewd80f9-directory a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--viewd80f9-cream);
  background: var(--viewd80f9-raise);
  border: 1px solid var(--viewd80f9-line);
  border-radius: var(--viewd80f9-r-sm);
  line-height: 1.25;
  transition: background 0.18s var(--viewd80f9-ease), transform 0.15s var(--viewd80f9-ease);
}
.viewd80f9-directory a:hover { background: var(--viewd80f9-raise2); color: var(--viewd80f9-blush); }
.viewd80f9-directory a:active { transform: scale(0.97); }
.viewd80f9-directory .viewd80f9-dir-ico {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--viewd80f9-teal);
  display: inline-flex;
}

/* four horizontal promo shortcuts */
.viewd80f9-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.viewd80f9-quick a,
.viewd80f9-quick button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-height: 54px;
  padding: 9px 11px;
  border-radius: var(--viewd80f9-r-cta);       /* square-corner shortcut */
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(130deg, var(--viewd80f9-teal-deep), var(--viewd80f9-teal));
  box-shadow: 0 3px 0 rgba(0, 60, 58, 0.9);
  transition: transform 0.15s var(--viewd80f9-ease), filter 0.2s var(--viewd80f9-ease);
}
.viewd80f9-quick a:nth-child(even),
.viewd80f9-quick button:nth-child(even) {
  background: linear-gradient(130deg, #a4116c, var(--viewd80f9-magenta));
  box-shadow: 0 3px 0 rgba(96, 10, 62, 0.9);
}
.viewd80f9-quick a:hover, .viewd80f9-quick button:hover { filter: brightness(1.1); color: #fff; }
.viewd80f9-quick a:active, .viewd80f9-quick button:active { transform: scale(0.95); }
.viewd80f9-quick .viewd80f9-quick-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.82);
  text-transform: none;
}

.viewd80f9-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--viewd80f9-muted);
  background: rgba(255, 182, 193, 0.06);
  border: 1px solid var(--viewd80f9-line);
  border-radius: var(--viewd80f9-r-sm);
  padding: 10px 12px;
}

/* ---------- 17. Common footer ---------- */
.viewd80f9-foot {
  margin-top: 22px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--viewd80f9-line);
  text-align: center;
}
.viewd80f9-foot p {
  margin: 0;
  font-size: 12px;
  color: var(--viewd80f9-muted);
  letter-spacing: 0.3px;
}
.viewd80f9-foot b { color: var(--viewd80f9-blush); font-weight: 600; }

/* ---------- 18. Bottom navigation rail ---------- */
.viewd80f9-rail {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;                      /* rail never leaves the canvas */
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(30, 27, 26, 0.97);
  border-top: 1px solid var(--viewd80f9-line-strong);
  box-shadow: 0 -8px 20px rgba(10, 6, 6, 0.45);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.viewd80f9-rail a,
.viewd80f9-rail button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--viewd80f9-rail-h);
  padding: 8px 2px 7px;
  color: var(--viewd80f9-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: color 0.2s var(--viewd80f9-ease), transform 0.15s var(--viewd80f9-ease);
}
.viewd80f9-rail a:active, .viewd80f9-rail button:active { transform: translateY(1px); }

.viewd80f9-rail svg { width: 21px; height: 21px; }

/* active page: teal indicator line across the top edge */
.viewd80f9-rail .viewd80f9-on {
  color: var(--viewd80f9-teal);
}
.viewd80f9-rail .viewd80f9-on::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--viewd80f9-teal);
  box-shadow: 0 0 10px rgba(32, 178, 170, 0.8);
}
.viewd80f9-rail .viewd80f9-hot { color: var(--viewd80f9-blush); }
.viewd80f9-rail .viewd80f9-hot svg { filter: drop-shadow(0 0 6px rgba(199, 21, 133, 0.55)); }

/* ---------- 19. Reveal-on-scroll (progressive enhancement) ---------- */
html.viewd80f9-obs .viewd80f9-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--viewd80f9-ease), transform 0.55s var(--viewd80f9-ease);
}
html.viewd80f9-obs .viewd80f9-reveal.viewd80f9-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 20. Motion + print safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.viewd80f9-obs .viewd80f9-reveal { opacity: 1; transform: none; }
}

@media print {
  .viewd80f9-topbar, .viewd80f9-rail, .viewd80f9-carousel { display: none; }
  body.viewd80f9-body { background: #fff; color: #111; }
  .viewd80f9-canvas { max-width: none; box-shadow: none; }
}
