/* ==========================================================================
   bets088.click -- css/viewport-dynamic-4ec977.css
   Mobile-first "signal console" theme for a 320-430px phone canvas.
   Wide screens keep the same centered canvas (no desktop redesign).
   Class prefix .viewec977-  |  custom properties --viewec977-*
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
  --viewec977-bg-page: #0d141c;
  --viewec977-bg-canvas: #1C2833;
  --viewec977-bg-sunken: #16202b;
  --viewec977-bg-raised: #223243;
  --viewec977-bg-hover: #2a3d52;
  --viewec977-line: #31465e;
  --viewec977-line-soft: #283b4f;
  --viewec977-violet: #6A5ACD;
  --viewec977-violet-deep: #5347a8;
  --viewec977-thistle: #D8BFD8;
  --viewec977-thistle-dim: #a89ec4;
  --viewec977-pink: #FF1493;
  --viewec977-pink-deep: #d10d78;
  --viewec977-crimson: #DC143C;
  --viewec977-white: #ffffff;
  --viewec977-ink: #0e151d;
  --viewec977-head-font: "Bahnschrift", "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  --viewec977-body-font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --viewec977-mono-font: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --viewec977-canvas-max: 430px;
  --viewec977-head-h: 104px;
  --viewec977-bottomnav-h: 62px;
}

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

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

body {
  margin: 0;
  background: var(--viewec977-bg-page);
  color: var(--viewec977-thistle);
  font-family: var(--viewec977-body-font);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

h1 { font-size: 25px; letter-spacing: 0.2px; }
h2 { font-size: 19px; letter-spacing: 0.3px; }
h3 { font-size: 15.5px; }

p { margin: 0 0 12px; }

a {
  color: #9f8ff0;
  text-decoration: none;
}
a:hover { color: var(--viewec977-pink); }

ul, ol { margin: 0; padding: 0; }

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

:focus-visible {
  outline: 2px solid var(--viewec977-pink);
  outline-offset: 2px;
}

/* skip link */
.viewec977-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--viewec977-pink);
  color: var(--viewec977-white);
  padding: 10px 14px;
  z-index: 200;
  font-weight: 700;
}
.viewec977-skip:focus { left: 8px; top: 8px; }

/* ---------- phone canvas ---------- */
.viewec977-shell {
  max-width: var(--viewec977-canvas-max);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--viewec977-bg-canvas);
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.65);
  position: relative;
}

/* ---------- fixed header: brand row + action row ---------- */
.viewec977-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--viewec977-canvas-max);
  z-index: 120;
  background: linear-gradient(180deg, #1a2530 0%, #1C2833 100%);
  border-bottom: 1px solid var(--viewec977-line);
}

.viewec977-brandrow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 12px 4px;
  border-bottom: 1px dashed var(--viewec977-line-soft);
}

.viewec977-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--viewec977-line);
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--viewec977-bg-sunken);
}

.viewec977-brandname {
  font-family: var(--viewec977-head-font);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--viewec977-white);
  text-transform: lowercase;
}
.viewec977-brandname::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  background: var(--viewec977-pink);
  transform: translateY(-1px);
}

.viewec977-actionrow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
}

.viewec977-btnregister,
.viewec977-btnlogin {
  flex: 1 1 0;
  min-height: 44px;
  border-radius: 999px; /* round buttons ... */
  font-family: var(--viewec977-head-font);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.6px;
  text-align: center;
}

.viewec977-btnregister {
  background: linear-gradient(135deg, var(--viewec977-pink) 0%, var(--viewec977-crimson) 100%);
  color: var(--viewec977-white);
  box-shadow: 0 4px 14px rgba(255, 20, 147, 0.35);
}
.viewec977-btnregister:active { transform: scale(0.97); }

.viewec977-btnlogin {
  border: 1px solid var(--viewec977-violet);
  color: var(--viewec977-thistle);
  background: rgba(106, 90, 205, 0.12);
}
.viewec977-btnlogin:active { background: rgba(106, 90, 205, 0.28); }

.viewec977-menutoggle {
  flex: 0 0 44px;
  height: 44px;
  width: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--viewec977-line);
  border-radius: 10px;
  background: var(--viewec977-bg-sunken);
}
.viewec977-menutoggle svg { display: block; }
.viewec977-menutoggle .viewec977-bar {
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.viewec977-menutoggle[aria-expanded="true"] .viewec977-bar1 { transform: translateY(6px) rotate(45deg); }
.viewec977-menutoggle[aria-expanded="true"] .viewec977-bar2 { opacity: 0; }
.viewec977-menutoggle[aria-expanded="true"] .viewec977-bar3 { transform: translateY(-6px) rotate(-45deg); }

/* ---------- layered dropdown menu ---------- */
.viewec977-layermenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a2530;
  border-bottom: 2px solid var(--viewec977-pink);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.55);
  padding: 6px 12px 14px;
  display: none;
}
.viewec977-layermenu.is-open { display: block; }

.viewec977-lmgroup { padding: 8px 0 2px; }
.viewec977-lmgroup + .viewec977-lmgroup { border-top: 1px solid var(--viewec977-line-soft); }

.viewec977-lmlabel {
  font-family: var(--viewec977-mono-font);
  font-size: 10.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--viewec977-pink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.viewec977-lmlabel::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--viewec977-line-soft);
}

.viewec977-lmgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}

.viewec977-lmlink {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--viewec977-line-soft);
  background: var(--viewec977-bg-canvas);
  color: var(--viewec977-thistle);
  font-size: 13.5px;
  border-radius: 4px; /* ...square-leaning cards */
}
.viewec977-lmlink:hover {
  border-color: var(--viewec977-violet);
  color: var(--viewec977-white);
}
.viewec977-lmlink .viewec977-lmdot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: var(--viewec977-violet);
}
.viewec977-lmlink:hover .viewec977-lmdot { background: var(--viewec977-pink); }
.viewec977-lmlink.is-current {
  border-color: var(--viewec977-pink);
  color: var(--viewec977-white);
  box-shadow: inset 3px 0 0 var(--viewec977-pink);
}

/* ---------- main column ---------- */
.viewec977-content {
  padding: calc(var(--viewec977-head-h) + 10px) 12px calc(var(--viewec977-bottomnav-h) + 34px + env(safe-area-inset-bottom, 0px));
}

section { scroll-margin-top: calc(var(--viewec977-head-h) + 8px); }

.viewec977-block { margin: 0 0 26px; }

/* mono kicker used above headings */
.viewec977-kicker {
  font-family: var(--viewec977-mono-font);
  font-size: 10.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--viewec977-pink);
  margin: 0 0 6px;
}
.viewec977-kicker::before { content: "// "; color: var(--viewec977-violet); }

/* ---------- hero ---------- */
.viewec977-hero {
  padding: 16px 0 4px;
}

.viewec977-herolead {
  font-size: 14.5px;
  color: var(--viewec977-thistle-dim);
}

.viewec977-ctarow {
  display: flex;
  gap: 10px;
  margin: 14px 0 4px;
}

.viewec977-ctamain {
  flex: 1.4 1 0;
  min-height: 50px;
  background: var(--viewec977-pink);
  color: var(--viewec977-white);
  border-radius: 0; /* square high-contrast CTA */
  font-family: var(--viewec977-head-font);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 0 var(--viewec977-pink-deep);
}
.viewec977-ctamain:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 var(--viewec977-pink-deep); }

.viewec977-ctaalt {
  flex: 1 1 0;
  min-height: 50px;
  border-radius: 0;
  border: 1px solid var(--viewec977-thistle);
  color: var(--viewec977-thistle);
  font-family: var(--viewec977-head-font);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(216, 191, 216, 0.06);
  display: grid;
  place-items: center;
}
.viewec977-ctaalt:hover { border-color: var(--viewec977-pink); color: var(--viewec977-white); }

/* ---------- carousel ---------- */
.viewec977-carousel {
  position: relative;
  margin: 18px 0 22px;
  border: 1px solid var(--viewec977-line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--viewec977-bg-sunken);
}

.viewec977-cartrack {
  display: flex;
  transition: transform 0.45s ease;
  touch-action: pan-y;
}

.viewec977-cslide {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  padding: 0;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}
.viewec977-cslide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.viewec977-cardots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.viewec977-cardot {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: rgba(216, 191, 216, 0.35);
  transition: background 0.25s ease, width 0.25s ease;
}
.viewec977-cardot.is-on {
  width: 34px;
  background: var(--viewec977-pink);
}

.viewec977-cartag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--viewec977-mono-font);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--viewec977-white);
  background: rgba(220, 20, 60, 0.85);
  padding: 4px 9px;
  border-radius: 3px;
  pointer-events: none;
}

/* ---------- category chip strip ---------- */
.viewec977-catstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
  margin: 0 0 8px;
}
.viewec977-catstrip::-webkit-scrollbar { display: none; }

.viewec977-chip {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border: 1px solid var(--viewec977-line);
  border-radius: 4px;
  background: var(--viewec977-bg-sunken);
  color: var(--viewec977-thistle);
  font-family: var(--viewec977-mono-font);
  font-size: 11.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.viewec977-chip b { color: var(--viewec977-pink); font-weight: 700; }
.viewec977-chip:hover { border-color: var(--viewec977-pink); color: var(--viewec977-white); }

/* ---------- game sections (step rhythm) ---------- */
.viewec977-gsec { margin: 0 0 30px; }

.viewec977-gsechead {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.viewec977-stepnum {
  font-family: var(--viewec977-mono-font);
  font-size: 12px;
  font-weight: 700;
  color: var(--viewec977-pink);
  border: 1px solid var(--viewec977-pink);
  padding: 4px 7px;
  border-radius: 3px;
  flex: 0 0 auto;
  margin-top: 2px;
  background: rgba(255, 20, 147, 0.08);
}

.viewec977-gsecsub {
  font-size: 13px;
  color: var(--viewec977-thistle-dim);
  margin: 0 0 12px;
}

/* square grouped cover-card grid: 4 cols at 320px, 5 cols from 380px */
.viewec977-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
}

.viewec977-tile {
  border-radius: 4px;
  border: 1px solid var(--viewec977-line-soft);
  background: var(--viewec977-bg-raised);
  padding: 5px 5px 7px;
  text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease;
  min-width: 0;
}
.viewec977-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  background: var(--viewec977-bg-sunken);
}
.viewec977-tile span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.3;
  color: var(--viewec977-thistle);
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.viewec977-tile:hover,
.viewec977-tile:focus-visible {
  border-color: var(--viewec977-pink);
}
.viewec977-tile:hover span { color: var(--viewec977-white); }
.viewec977-tile:active { transform: scale(0.94); }

/* compact related-links rail under each game family */
.viewec977-related {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  padding: 9px 11px;
  border-left: 3px solid var(--viewec977-violet);
  background: var(--viewec977-bg-sunken);
  font-size: 12.5px;
}
.viewec977-related em {
  font-style: normal;
  font-family: var(--viewec977-mono-font);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--viewec977-thistle-dim);
}

/* ---------- FAQ accordion ---------- */
.viewec977-faq {
  border: 1px solid var(--viewec977-line);
  border-radius: 4px;
  background: var(--viewec977-bg-sunken);
  overflow: hidden;
}

.viewec977-faqitem { border-bottom: 1px solid var(--viewec977-line-soft); }
.viewec977-faqitem:last-child { border-bottom: 0; }

.viewec977-faqitem summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  font-family: var(--viewec977-head-font);
  font-weight: 700;
  font-size: 14px;
  color: var(--viewec977-white);
  cursor: pointer;
}
.viewec977-faqitem summary::-webkit-details-marker { display: none; }
.viewec977-faqitem summary::before {
  content: "+";
  font-family: var(--viewec977-mono-font);
  color: var(--viewec977-pink);
  font-size: 16px;
  flex: 0 0 16px;
}
.viewec977-faqitem[open] summary::before { content: "\2013"; }
.viewec977-faqitem summary:hover { color: var(--viewec977-pink); }

.viewec977-faqanswer {
  padding: 0 12px 13px 38px;
  font-size: 13.5px;
  color: var(--viewec977-thistle-dim);
}

/* ---------- step list (how to play) ---------- */
.viewec977-steps {
  list-style: none;
  counter-reset: viewec977-step;
  border: 1px solid var(--viewec977-line);
  border-radius: 4px;
  overflow: hidden;
}

.viewec977-step {
  counter-increment: viewec977-step;
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--viewec977-bg-sunken);
}
.viewec977-step + .viewec977-step { border-top: 1px solid var(--viewec977-line-soft); }

.viewec977-step::before {
  content: counter(viewec977-step, decimal-leading-zero);
  font-family: var(--viewec977-mono-font);
  font-weight: 700;
  font-size: 13px;
  color: var(--viewec977-ink);
  background: var(--viewec977-thistle);
  align-self: flex-start;
  padding: 4px 6px;
  border-radius: 2px;
  flex: 0 0 auto;
}
.viewec977-step:hover::before { background: var(--viewec977-pink); color: var(--viewec977-white); }

.viewec977-step h3 { margin: 0 0 3px; font-size: 14px; }
.viewec977-step p { margin: 0; font-size: 13px; color: var(--viewec977-thistle-dim); }

/* ---------- tricks list ---------- */
.viewec977-tricks {
  list-style: none;
  display: grid;
  gap: 8px;
}

.viewec977-trick {
  position: relative;
  padding: 10px 12px 10px 40px;
  border: 1px dashed var(--viewec977-line);
  border-radius: 4px;
  background: rgba(106, 90, 205, 0.07);
  font-size: 13.5px;
}
.viewec977-trick::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 14px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--viewec977-violet);
  border-radius: 2px;
}
.viewec977-trick:hover::before {
  border-color: var(--viewec977-pink);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.viewec977-trick b { color: var(--viewec977-white); }

/* ---------- fact summary board ---------- */
.viewec977-facts {
  border: 1px solid var(--viewec977-line);
  border-radius: 4px;
  overflow: hidden;
  font-size: 13px;
}

.viewec977-factrow {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: var(--viewec977-bg-sunken);
}
.viewec977-factrow + .viewec977-factrow { border-top: 1px solid var(--viewec977-line-soft); }

.viewec977-factk {
  flex: 0 0 34%;
  font-family: var(--viewec977-mono-font);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--viewec977-pink);
  padding-top: 2px;
}
.viewec977-factv { flex: 1; color: var(--viewec977-thistle); }

/* ---------- extended footer (index only) ---------- */
.viewec977-xfoot {
  margin-top: 34px;
  border-top: 2px solid var(--viewec977-violet);
  background: var(--viewec977-bg-sunken);
  padding: 18px 0 6px;
}

.viewec977-xfoot .viewec977-inner { padding: 0 12px; }

.viewec977-xfbrand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.viewec977-xfbrand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--viewec977-line);
  flex: 0 0 auto;
}
.viewec977-xfbrand p { font-size: 12.5px; color: var(--viewec977-thistle-dim); margin: 0; }

.viewec977-xfsection { margin-bottom: 20px; }
.viewec977-xfsection h2 { font-size: 15.5px; margin-bottom: 8px; }

.viewec977-promolist { list-style: none; display: grid; gap: 6px; }

.viewec977-promoitem button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--viewec977-line);
  border-radius: 4px;
  background: var(--viewec977-bg-canvas);
  color: var(--viewec977-thistle);
  font-size: 13.5px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.viewec977-promoitem button:hover,
.viewec977-promoitem button:focus-visible {
  border-color: var(--viewec977-pink);
  color: var(--viewec977-white);
  background: rgba(255, 20, 147, 0.09);
}
.viewec977-promoitem .viewec977-arrow {
  font-family: var(--viewec977-mono-font);
  color: var(--viewec977-pink);
  flex: 0 0 auto;
}

.viewec977-dirgroup { margin-bottom: 12px; }
.viewec977-dirgroup h3 {
  font-family: var(--viewec977-mono-font);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--viewec977-thistle-dim);
  margin: 0 0 6px;
}

.viewec977-dirlist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.viewec977-dirlink {
  display: block;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--viewec977-line-soft);
  border-radius: 4px;
  background: var(--viewec977-bg-canvas);
  font-size: 12.5px;
  color: var(--viewec977-thistle);
  line-height: 1.35;
}
.viewec977-dirlink:hover { border-color: var(--viewec977-violet); color: var(--viewec977-white); }

.viewec977-xfnote {
  font-size: 11.5px;
  color: #8d84a8;
  border-top: 1px solid var(--viewec977-line-soft);
  padding: 12px 12px 14px;
  margin-top: 6px;
}

/* ---------- common copyright bar ---------- */
.viewec977-footer {
  text-align: center;
  padding: 14px 12px 8px;
  border-top: 1px solid var(--viewec977-line-soft);
  font-family: var(--viewec977-mono-font);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--viewec977-thistle-dim);
}

/* ---------- fixed bottom navigation rail ---------- */
.viewec977-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--viewec977-canvas-max);
  z-index: 130;
  display: flex;
  align-items: stretch;
  background: #1a2530;
  border-top: 1px solid var(--viewec977-line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.viewec977-bnitem {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 2px 6px;
  position: relative;
  color: var(--viewec977-thistle-dim);
  min-height: var(--viewec977-bottomnav-h);
}
.viewec977-bnitem::before {
  /* top indicator line = active state signal */
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 3px;
  background: transparent;
  border-radius: 0 0 2px 2px;
}
.viewec977-bnitem.is-active::before { background: var(--viewec977-pink); }

.viewec977-bnitem .viewec977-bntile {
  width: 40px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--viewec977-line-soft);
  background: var(--viewec977-bg-sunken);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.viewec977-bnitem svg { display: block; }

.viewec977-bnitem .viewec977-bnlabel {
  font-size: 10px;
  letter-spacing: 0.4px;
  line-height: 1;
  opacity: 0.62; /* label reveal: dim at rest, full when active/hover */
  transition: opacity 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.viewec977-bnitem:hover .viewec977-bnlabel,
.viewec977-bnitem:focus-visible .viewec977-bnlabel { opacity: 1; color: var(--viewec977-white); }

.viewec977-bnitem.is-active .viewec977-bntile {
  background: rgba(255, 20, 147, 0.14);
  border-color: var(--viewec977-pink);
}
.viewec977-bnitem.is-active .viewec977-bnlabel {
  opacity: 1;
  color: var(--viewec977-white);
  font-weight: 700;
}
.viewec977-bnitem:active .viewec977-bntile { transform: translateY(1px); }

/* promo tiles get the crimson-pink identity, page links stay violet */
.viewec977-bnitem.viewec977-bnpromo .viewec977-bntile { border-color: var(--viewec977-crimson); }
.viewec977-bnitem.viewec977-bnpromo:hover .viewec977-bntile { background: rgba(220, 20, 60, 0.18); }

/* ---------- wide screens: keep the phone canvas, calm the sides ---------- */
@media (min-width: 431px) {
  body { background: radial-gradient(circle at 50% 0%, #14202c 0%, var(--viewec977-bg-page) 62%); }
}

/* ---------- 5-column game grid on wider phones ---------- */
@media (min-width: 380px) {
  .viewec977-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .viewec977-tile span { font-size: 11.5px; }
}

/* ---------- very small phones: protect the canvas ---------- */
@media (max-width: 339px) {
  .viewec977-brandname { font-size: 17px; }
  .viewec977-dirlist { grid-template-columns: 1fr; }
  .viewec977-ctarow { flex-direction: column; }
  .viewec977-lmgrid { grid-template-columns: 1fr; }
}

/* ---------- compatible completion: readable content and bounded controls ---------- */
.viewec977-layermenu { max-height: calc(100dvh - var(--viewec977-head-h) - var(--viewec977-bottomnav-h) - 10px); overflow-y: auto; overscroll-behavior: contain; }
.viewec977-grid { list-style: none; }
.viewec977-grid li { min-width: 0; }
.viewec977-tile { width: 100%; min-height: 44px; height: 100%; }
.viewec977-tile img { height: auto; }
.viewec977-trick a { display: inline-flex; align-items: center; min-height: 44px; }
.viewec977-tile span { display: block; overflow: visible; min-height: 2.6em; }
.viewec977-chip, .viewec977-dirlink { min-height: 44px; }
.viewec977-cardots { position: static; min-height: 44px; align-items: center; gap: 0; }
.viewec977-cardot, .viewec977-cardot.is-on { width: 44px; height: 44px; border-radius: 0; background: transparent; position: relative; }
.viewec977-cardot::after { content: ''; position: absolute; left: 11px; right: 11px; top: 19px; height: 6px; border-radius: 3px; background: var(--viewec977-thistle); }
.viewec977-cardot.is-on::after { background: var(--viewec977-pink); }
.viewec977-carpause { display: block; margin: 0 auto 8px; min-height: 44px; padding: 6px 15px; border: 1px solid var(--viewec977-thistle); border-radius: 3px; color: white; }
.viewec977-carnote { padding: 8px 12px; font-size: 12px; margin: 0; border-top: 1px solid var(--viewec977-line); }
.viewec977-cartag { background: #91102e; }
.viewec977-kicker, .viewec977-lmlabel, .viewec977-factk { color: #ff92ce; }
.viewec977-herolead, .viewec977-gsecsub, .viewec977-step p, .viewec977-faqanswer, .viewec977-xfbrand p, .viewec977-xfnote { color: var(--viewec977-thistle); }
.viewec977-btnregister { background: #a10d60; }
.viewec977-ctamain { background: #a10d60; padding: 10px; }
.viewec977-bnitem { color: var(--viewec977-thistle); }
.viewec977-bnitem .viewec977-bnlabel { opacity: 1; }
.viewec977-content a:not(.viewec977-chip):not(.viewec977-ctaalt):not(.viewec977-dirlink) { text-decoration: underline; text-underline-offset: 3px; }
.viewec977-content p a { display: inline-flex; align-items: center; min-height: 44px; }
.viewec977-content { overflow-wrap: anywhere; }
.viewec977-content h2 { scroll-margin-top: calc(var(--viewec977-head-h) + 10px); }
.viewec977-footer { margin-bottom: calc(var(--viewec977-bottomnav-h) + 20px + env(safe-area-inset-bottom, 0px)); }
.viewec977-contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.viewec977-contrast article { padding: 12px; border: 1px solid var(--viewec977-line); background: var(--viewec977-bg-sunken); }
.viewec977-contrast article:last-child { border-top: 3px solid var(--viewec977-crimson); }
.viewec977-contrast article:first-child { border-top: 3px solid var(--viewec977-violet); }
.viewec977-contrast p { font-size: 13px; }
.viewec977-notebook { padding: 14px; border-left: 3px solid var(--viewec977-thistle); background: var(--viewec977-bg-sunken); margin: 14px 0; }
.viewec977-notebook ul, .viewec977-audit { list-style: none; display: grid; gap: 12px; }
.viewec977-audit li { border-bottom: 1px dashed var(--viewec977-line); padding: 10px 0; }
.viewec977-terms { margin: 12px 0; }
.viewec977-terms dt { color: white; font-weight: 700; border-top: 1px solid var(--viewec977-line); padding-top: 12px; }
.viewec977-terms dd { margin: 6px 0 18px; }
.viewec977-dialogue { border-bottom: 1px solid var(--viewec977-line); padding: 16px 0; }
.viewec977-dialogue h3 { border-left: 3px solid var(--viewec977-pink); padding-left: 10px; margin-bottom: 12px; }
.viewec977-dialogue p { margin-left: 13px; }
.viewec977-route { display: block; border-left: 3px solid var(--viewec977-violet); padding: 12px; background: var(--viewec977-bg-sunken); margin: 12px 0; }
.viewec977-task { width: 100%; min-height: 48px; border: 1px solid var(--viewec977-thistle); border-radius: 0; padding: 10px 12px; text-align: left; color: white; background: #43356f; margin: 8px 0 14px; font-weight: 700; }
@media (max-width: 339px) { .viewec977-contrast { grid-template-columns: 1fr; } }

/* ---------- motion budget: micro state changes only ---------- */
@media (prefers-reduced-motion: reduce) {
  .viewec977-cartrack { transition: none; }
  .viewec977-tile,
  .viewec977-ctamain,
  .viewec977-promoitem button,
  .viewec977-trick::before { transition: none; }
}
