/* ============================================================
   90ph.click - base stylesheet
   File   : css/90ph-visuals-d40da3.css
   Prefix : view40da3-
   Canvas : 320-430px mobile-first, centered phone canvas on
            wide screens (max-width locked at 430px)
   Palette: #FFEB3B / #2D2D2D / #FF9500 / #0000CD / #E65100
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --view40da3-yellow: #FFEB3B;
  --view40da3-ink-card: #2D2D2D;
  --view40da3-orange: #FF9500;
  --view40da3-blue: #0000CD;
  --view40da3-blaze: #E65100;

  /* derived shades for depth (same hue family) */
  --view40da3-bg: #141518;
  --view40da3-bg-deep: #0D0E10;
  --view40da3-panel: #1B1C20;
  --view40da3-panel-2: #232429;
  --view40da3-line: #33353b;
  --view40da3-text: #F4F5F1;
  --view40da3-text-dim: #B9BCC4;
  --view40da3-blue-soft: #2a2af0;
  --view40da3-blue-deep: #0000a8;
  --view40da3-yellow-soft: #ffe95c;
  --view40da3-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);

  /* type */
  --view40da3-font-poster: "Segoe UI Black", "Avenir Next Heavy",
    "Arial Black", system-ui, -apple-system, Roboto, sans-serif;
  --view40da3-font-head: "Segoe UI", system-ui, -apple-system, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --view40da3-font-narrow: "Roboto Condensed", "Arial Narrow",
    "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* shape + rhythm */
  --view40da3-r-card: 12px;
  --view40da3-r-soft: 10px;
  --view40da3-r-cta: 9px;
  --view40da3-gap: 10px;

  /* layout */
  --view40da3-canvas: 430px;
  --view40da3-topbar-h: 96px;
  --view40da3-bottombar-h: 66px;
  --view40da3-tap: 44px;

  --view40da3-focus: 3px solid var(--view40da3-yellow);
}

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

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

body {
  margin: 0;
  background: var(--view40da3-bg-deep);
  color: var(--view40da3-text);
  font-family: var(--view40da3-font-narrow);
  font-size: 15px;
  line-height: 1.52;
  min-height: 100vh;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }

ul, ol { padding: 0; list-style: none; }

a {
  color: var(--view40da3-yellow-soft);
  text-decoration: none;
}
a:hover { color: #fff7c2; }

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

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

.view40da3-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--view40da3-yellow);
  color: #17181c;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 var(--view40da3-r-soft) 0;
}
.view40da3-skip:focus { left: 0; }

/* ---------- 3. Phone canvas ---------- */
.view40da3-canvas {
  position: relative;
  max-width: var(--view40da3-canvas);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 46% at 50% -4%, #1d2233 0%, rgba(20, 21, 24, 0) 60%),
    var(--view40da3-bg);
  box-shadow: 0 0 0 1px rgba(255, 235, 59, 0.05), 0 0 44px rgba(0, 0, 0, 0.6);
}

.view40da3-page {
  padding-bottom: calc(var(--view40da3-bottombar-h) + env(safe-area-inset-bottom, 0px) + 22px);
}

main { display: block; padding: 0 12px; }

section { scroll-margin-top: calc(var(--view40da3-topbar-h) + 12px); }

/* ---------- 4. Header: two-layer brand + action shell ---------- */
.view40da3-topshell {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #05060700 0%, rgba(13, 14, 16, 0.0) 100%),
    linear-gradient(180deg, #101114 0%, #141519 100%);
  border-bottom: 1px solid var(--view40da3-line);
}

/* layer 1 - brand only (real logo image + name) */
.view40da3-brandrow {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 8px 12px 2px;
  gap: 10px;
}

.view40da3-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: var(--view40da3-tap);
}

.view40da3-brandimg {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 2px rgba(255, 235, 59, 0.75), 0 3px 10px rgba(0, 0, 0, 0.5);
}

.view40da3-brandname {
  font-family: var(--view40da3-font-poster);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--view40da3-yellow);
  text-shadow: 0 2px 0 rgba(230, 81, 0, 0.55);
}

/* layer 2 - actions */
.view40da3-actionrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 10px;
}

.view40da3-burger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: var(--view40da3-tap);
  padding: 8px 12px;
  border: 1px solid var(--view40da3-line);
  border-radius: var(--view40da3-r-cta);
  background: var(--view40da3-panel-2);
  color: var(--view40da3-text);
  font-family: var(--view40da3-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.view40da3-burger:hover { background: #2c2d33; border-color: #4a4c55; }
.view40da3-burger[aria-expanded="true"] {
  border-color: var(--view40da3-orange);
  color: var(--view40da3-yellow);
}

.view40da3-burgerbars {
  width: 18px;
  height: 12px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}
.view40da3-burgerbars i {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.view40da3-burger[aria-expanded="true"] .view40da3-burgerbars i:first-child { transform: translateY(4.5px) rotate(45deg); }
.view40da3-burger[aria-expanded="true"] .view40da3-burgerbars i:nth-child(2) { opacity: 0; }
.view40da3-burger[aria-expanded="true"] .view40da3-burgerbars i:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* light-round text CTA group */
.view40da3-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--view40da3-tap);
  padding: 10px 16px;
  border-radius: var(--view40da3-r-cta);
  font-family: var(--view40da3-font-head);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: filter 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.view40da3-cta:active { transform: scale(0.97); }

.view40da3-cta--ghost {
  border: 1.5px solid var(--view40da3-yellow);
  color: var(--view40da3-yellow);
  background: rgba(255, 235, 59, 0.06);
}
.view40da3-cta--ghost:hover { background: rgba(255, 235, 59, 0.16); }

.view40da3-cta--gold {
  background: linear-gradient(135deg, var(--view40da3-orange) 0%, var(--view40da3-blaze) 100%);
  color: #16130a;
  box-shadow: 0 4px 14px rgba(255, 149, 0, 0.35);
}
.view40da3-cta--gold:hover { filter: brightness(1.1); }

.view40da3-cta--blue {
  background: linear-gradient(135deg, var(--view40da3-blue) 0%, #4a4dff 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 205, 0.4);
}
.view40da3-cta--blue:hover { filter: brightness(1.12); }

.view40da3-actionspring { flex: 1 1 auto; }

/* ---------- 5. Expandable drawer nav ---------- */
.view40da3-drawer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s ease;
  background: var(--view40da3-panel);
  border-top: 1px solid transparent;
}
.view40da3-drawer[data-open="true"] {
  max-height: 640px;
  border-top-color: var(--view40da3-line);
}

.view40da3-drawergroups {
  padding: 6px 12px 14px;
  display: grid;
  gap: 10px;
}

.view40da3-drawergroup {
  border: 1px solid var(--view40da3-line);
  border-radius: var(--view40da3-r-card);
  background: var(--view40da3-panel-2);
  padding: 8px 10px 10px;
}

.view40da3-drawerlabel {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--view40da3-orange);
  font-weight: 800;
  padding: 6px 4px 4px;
}

.view40da3-drawerlinks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.view40da3-drawerlink {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--view40da3-tap);
  padding: 10px 10px 10px 14px;
  border-radius: var(--view40da3-r-soft);
  color: var(--view40da3-text);
  font-size: 13.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.view40da3-drawerlink::before {
  /* sliding focus marker */
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--view40da3-yellow);
  transform: translateY(-50%);
  transition: height 0.25s ease;
}
.view40da3-drawerlink:hover { background: rgba(255, 235, 59, 0.08); border-color: var(--view40da3-line); }
.view40da3-drawerlink[aria-current="page"]::before { height: 20px; }
.view40da3-drawerlink[aria-current="page"] {
  color: var(--view40da3-yellow);
  background: rgba(255, 235, 59, 0.07);
}

/* ---------- 6. Hero ---------- */
.view40da3-hero {
  padding: 14px 0 4px;
}

.view40da3-hero h1 {
  font-family: var(--view40da3-font-poster);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--view40da3-text);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}
.view40da3-hero h1 .view40da3-hilite {
  color: var(--view40da3-yellow);
}

.view40da3-heroline {
  position: relative;
  margin-top: 6px;
  height: 5px;
  width: 132px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--view40da3-yellow), var(--view40da3-orange) 60%, var(--view40da3-blaze));
}
.view40da3-heroline::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 1px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--view40da3-blue);
  box-shadow: 0 0 0 2px var(--view40da3-yellow);
  transform: rotate(45deg);
}

.view40da3-herointro {
  margin-top: 12px;
  color: var(--view40da3-text-dim);
  font-size: 14.5px;
}
.view40da3-herointro strong { color: var(--view40da3-text); }

.view40da3-ctagroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.view40da3-ctagroup .view40da3-cta { flex: 1 1 130px; }

.view40da3-truststrip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.view40da3-trustcell {
  border: 1px solid var(--view40da3-line);
  border-radius: var(--view40da3-r-soft);
  background: linear-gradient(180deg, rgba(0, 0, 205, 0.16), rgba(29, 30, 34, 0.4));
  padding: 8px 8px 9px;
  text-align: center;
}
.view40da3-trustcell b {
  display: block;
  color: var(--view40da3-yellow);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.view40da3-trustcell span {
  display: block;
  font-size: 11.5px;
  color: var(--view40da3-text-dim);
  margin-top: 2px;
  line-height: 1.35;
}

/* ---------- 7. Carousel ---------- */
.view40da3-carousel {
  position: relative;
  margin-top: 16px;
}

.view40da3-caroviewport {
  position: relative;
  border-radius: var(--view40da3-r-card);
  overflow: hidden;
  box-shadow: var(--view40da3-shadow);
  border: 1px solid var(--view40da3-line);
}

.view40da3-carotrack {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.33, 0.9, 0.3, 1);
}

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

.view40da3-slidepic {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.view40da3-slidecap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px) * 0);
  background: linear-gradient(180deg, rgba(10, 11, 13, 0) 0%, rgba(10, 11, 13, 0.88) 42%);
}
.view40da3-slidecap b {
  font-family: var(--view40da3-font-head);
  font-size: 13.5px;
  color: var(--view40da3-yellow);
  line-height: 1.3;
}
.view40da3-slidecap small {
  display: block;
  font-size: 11px;
  color: #cfd2d8;
  margin-top: 1px;
}

.view40da3-slidego {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--view40da3-r-cta);
  background: linear-gradient(135deg, var(--view40da3-orange), var(--view40da3-blaze));
  color: #16130a;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  pointer-events: none; /* whole slide is one hit area */
}

.view40da3-caroctl {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}

.view40da3-carodots {
  position: relative;
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--view40da3-line);
  background: var(--view40da3-panel);
}

.view40da3-carodot {
  width: 26px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--view40da3-text-dim);
  font-size: 11px;
  font-weight: 700;
  transition: color 0.25s ease;
}
.view40da3-carodot[aria-current="true"] { color: #16130a; }

.view40da3-caropill {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--view40da3-yellow), var(--view40da3-orange));
  transition: transform 0.3s cubic-bezier(0.33, 0.9, 0.3, 1);
  will-change: transform;
}

.view40da3-carohint {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--view40da3-text-dim);
  letter-spacing: 0.03em;
}

/* ---------- 8. Shelf quick jump chips ---------- */
.view40da3-quicknav {
  position: relative;
  margin-top: 16px;
}

.view40da3-chiprail {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 3px 1px 9px;
  scrollbar-width: none;
}
.view40da3-chiprail::-webkit-scrollbar { display: none; }

.view40da3-chip {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--view40da3-line);
  background: var(--view40da3-panel);
  color: var(--view40da3-text-dim);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.view40da3-chip i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  display: inline-block;
}
.view40da3-chip:hover { color: var(--view40da3-text); border-color: #4a4c55; }
.view40da3-chip[data-chip-on="true"] {
  color: var(--view40da3-yellow);
  border-color: rgba(255, 235, 59, 0.55);
}

/* ---------- 9. Game shelves (grouped cover cards) ---------- */
.view40da3-shelf {
  margin-top: 20px;
}

.view40da3-shelfpanel {
  position: relative;
  border: 1px solid var(--view40da3-line);
  border-radius: var(--view40da3-r-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 120px),
    var(--view40da3-panel);
  padding: 12px 10px 12px;
  overflow: hidden;
}

/* two-tone shelf edge + corner tab */
.view40da3-shelfpanel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--view40da3-tone-a, var(--view40da3-orange)) 0%,
    var(--view40da3-tone-b, var(--view40da3-blaze)) 55%,
    rgba(255, 255, 255, 0.06) 100%);
}
.view40da3-shelfpanel::after {
  content: "";
  position: absolute;
  top: -22px;
  right: -22px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 12px solid var(--view40da3-tone-a, var(--view40da3-orange));
  opacity: 0.14;
  pointer-events: none;
}

.view40da3-shelf--fishing { --view40da3-tone-a: var(--view40da3-blue-soft); --view40da3-tone-b: #7d7dff; }
.view40da3-shelf--cards { --view40da3-tone-a: var(--view40da3-yellow); --view40da3-tone-b: var(--view40da3-orange); }
.view40da3-shelf--live { --view40da3-tone-a: var(--view40da3-blaze); --view40da3-tone-b: #ff5a3c; }
.view40da3-shelf--hot { --view40da3-tone-a: var(--view40da3-orange); --view40da3-tone-b: #ffd23c; }
.view40da3-shelf--slot { --view40da3-tone-a: #ffd23c; --view40da3-tone-b: var(--view40da3-blue-soft); }

.view40da3-shelfhead {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 2px 4px 0;
}

.view40da3-shelfcount {
  flex: 0 0 auto;
  margin-top: 3px;
  font-family: var(--view40da3-font-head);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #16130a;
  background: var(--view40da3-yellow);
  border-radius: 6px;
  padding: 3px 7px;
}

.view40da3-shelf h2 {
  font-family: var(--view40da3-font-poster);
  font-weight: 900;
  font-size: 18.5px;
  line-height: 1.18;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--view40da3-text);
}

.view40da3-shelfnote {
  margin: 7px 4px 0;
  font-size: 13px;
  color: var(--view40da3-text-dim);
}

.view40da3-guidechips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 4px 2px;
}

.view40da3-guidechip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: var(--view40da3-r-cta);
  border: 1px dashed rgba(255, 235, 59, 0.4);
  background: rgba(0, 0, 205, 0.12);
  color: var(--view40da3-yellow-soft);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease;
}
.view40da3-guidechip:hover { background: rgba(0, 0, 205, 0.3); color: #fff; }

/* game grid: 4 cols at 320px, 5 cols from 375px */
.view40da3-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--view40da3-gap);
  margin-top: 12px;
}

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

/* cover-style game tile */
.view40da3-tile {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--view40da3-r-soft);
  overflow: hidden;
  background: var(--view40da3-ink-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
  text-align: center;
}
.view40da3-tile:hover,
.view40da3-tile:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 235, 59, 0.65);
}

.view40da3-tilepic {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #1f2024;
}

.view40da3-tilename {
  display: block;
  padding: 5px 4px 6px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--view40da3-text);
  background: linear-gradient(180deg, #2d2d2d, #232327);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow-wrap: anywhere; /* controlled wrap for long names */
}

.view40da3-tiletag {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #16130a;
  background: var(--view40da3-yellow);
  border-radius: 5px;
  padding: 2px 5px;
  pointer-events: none;
}
.view40da3-tiletag--hot { background: #ff5a3c; color: #fff; }
.view40da3-tiletag--live { background: var(--view40da3-blue-soft); color: #fff; }
.view40da3-tiletag--jackpot { background: linear-gradient(135deg, var(--view40da3-orange), var(--view40da3-blaze)); color: #fff; }

.view40da3-shelfcta {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/* ---------- 10. Content modules ---------- */
.view40da3-module {
  margin-top: 24px;
  border: 1px solid var(--view40da3-line);
  border-left: 4px solid var(--view40da3-orange);
  border-radius: var(--view40da3-r-card);
  background: var(--view40da3-panel);
  padding: 14px 13px 16px;
}

.view40da3-module--blue { border-left-color: var(--view40da3-blue-soft); }
.view40da3-module--gold { border-left-color: var(--view40da3-yellow); }

.view40da3-module h2 {
  font-family: var(--view40da3-font-poster);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--view40da3-yellow);
}

.view40da3-lead {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--view40da3-text);
}
.view40da3-lead strong { color: var(--view40da3-yellow-soft); }

.view40da3-module p { margin-top: 9px; font-size: 13.5px; color: var(--view40da3-text-dim); }

.view40da3-h3 {
  margin-top: 14px;
  font-family: var(--view40da3-font-head);
  font-size: 14px;
  font-weight: 800;
  color: var(--view40da3-text);
  letter-spacing: 0.02em;
}

/* numbered step rail */
.view40da3-steps { margin-top: 10px; display: grid; gap: 8px; }

.view40da3-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--view40da3-line);
  border-radius: var(--view40da3-r-soft);
  background: var(--view40da3-panel-2);
  padding: 10px 10px 10px 8px;
}

.view40da3-stepnum {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--view40da3-font-poster);
  font-size: 15px;
  color: #16130a;
  background: linear-gradient(135deg, var(--view40da3-yellow), var(--view40da3-orange));
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.35);
}

.view40da3-step b {
  display: block;
  font-size: 13.5px;
  color: var(--view40da3-text);
}
.view40da3-step span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--view40da3-text-dim);
  line-height: 1.45;
}

/* comparison rows */
.view40da3-versus { margin-top: 10px; display: grid; gap: 8px; }

.view40da3-versusrow {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  border: 1px solid var(--view40da3-line);
  border-radius: var(--view40da3-r-soft);
  background: var(--view40da3-panel-2);
  padding: 9px 10px;
}

.view40da3-versusname {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border-right: 1px dashed var(--view40da3-line);
  padding-right: 8px;
}
.view40da3-versusname b {
  font-family: var(--view40da3-font-head);
  font-size: 13px;
  color: var(--view40da3-yellow);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.view40da3-versusname small { font-size: 10.5px; color: var(--view40da3-text-dim); }

.view40da3-versusbody { font-size: 12.5px; color: var(--view40da3-text-dim); align-self: center; }
.view40da3-versusbody b { color: var(--view40da3-text); }

/* inline link inside body copy */
.view40da3-inlinelink {
  color: var(--view40da3-yellow-soft);
  border-bottom: 1.5px solid rgba(255, 235, 59, 0.5);
  font-weight: 700;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.view40da3-inlinelink:hover { color: #fff7c2; border-color: var(--view40da3-yellow); }

/* FAQ mini blocks */
.view40da3-qa { margin-top: 10px; border: 1px solid var(--view40da3-line); border-radius: var(--view40da3-r-soft); background: var(--view40da3-panel-2); overflow: hidden; }
.view40da3-qa h3 {
  font-family: var(--view40da3-font-head);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--view40da3-text);
  padding: 11px 12px;
}
.view40da3-qa p { margin: 0; padding: 0 12px 12px; font-size: 13px; color: var(--view40da3-text-dim); border-top: 1px dashed var(--view40da3-line); padding-top: 9px; }

/* payment rail */
.view40da3-payrail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding: 3px 1px 9px;
  scrollbar-width: none;
}
.view40da3-payrail::-webkit-scrollbar { display: none; }

.view40da3-paycell {
  flex: 0 0 auto;
  width: 108px;
  border: 1px solid var(--view40da3-line);
  border-radius: var(--view40da3-r-soft);
  background: #101114;
  padding: 7px;
  text-align: center;
}
.view40da3-paycell img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}
.view40da3-paycell figcaption {
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--view40da3-text-dim);
  letter-spacing: 0.03em;
}

.view40da3-paygrid { margin-top: 10px; display: grid; gap: 7px; }

.view40da3-payrow {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  border-bottom: 1px dashed var(--view40da3-line);
  padding: 7px 2px;
}
.view40da3-payrow:last-child { border-bottom: 0; }
.view40da3-payrow b { color: var(--view40da3-yellow-soft); font-weight: 800; }
.view40da3-payrow span { color: var(--view40da3-text-dim); }

/* checklist */
.view40da3-checks { margin-top: 10px; display: grid; gap: 7px; }

.view40da3-check {
  position: relative;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--view40da3-text-dim);
  background: var(--view40da3-panel-2);
  border: 1px solid var(--view40da3-line);
  border-radius: var(--view40da3-r-soft);
  padding: 9px 10px;
}
.view40da3-check::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 5px;
  background:
    linear-gradient(135deg, var(--view40da3-blue-soft), var(--view40da3-blue-deep))
    center / 16px 16px no-repeat;
  box-shadow: 0 0 0 2px rgba(255, 235, 59, 0.35);
}
.view40da3-check b { color: var(--view40da3-text); }

/* ---------- 11. Extended footer (index only) ---------- */
.view40da3-xfooter {
  margin-top: 26px;
  border-top: 3px solid var(--view40da3-orange);
  background: var(--view40da3-bg-deep);
  padding: 16px 12px 18px;
}

.view40da3-xbrand {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.view40da3-xbrand img { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 235, 59, 0.6); }
.view40da3-xbrand h2 {
  font-family: var(--view40da3-font-poster);
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--view40da3-yellow);
}
.view40da3-xbrand p { margin-top: 5px; font-size: 12.5px; color: var(--view40da3-text-dim); line-height: 1.5; }

.view40da3-xlabel {
  margin-top: 18px;
  font-family: var(--view40da3-font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--view40da3-orange);
}

/* horizontal promo shortcuts */
.view40da3-shortcuts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 8px;
  padding: 2px 1px 8px;
  scrollbar-width: none;
}
.view40da3-shortcuts::-webkit-scrollbar { display: none; }

.view40da3-shortcut {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: var(--view40da3-tap);
  padding: 10px 14px;
  border-radius: var(--view40da3-r-cta);
  border: 1px solid rgba(255, 149, 0, 0.55);
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.16), rgba(230, 81, 0, 0.10));
  color: var(--view40da3-yellow-soft);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.view40da3-shortcut:hover {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.34), rgba(230, 81, 0, 0.22));
  border-color: var(--view40da3-orange);
  color: #fff;
}
.view40da3-shortcut i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--view40da3-yellow);
  box-shadow: 0 0 6px rgba(255, 235, 59, 0.8);
}

/* page directory */
.view40da3-dir {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.view40da3-dir a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 8px 9px;
  border: 1px solid var(--view40da3-line);
  border-radius: var(--view40da3-r-soft);
  background: var(--view40da3-panel);
  color: var(--view40da3-text);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.view40da3-dir a small { display: block; font-weight: 500; color: var(--view40da3-text-dim); font-size: 10px; margin-top: 1px; }
.view40da3-dir a:hover { border-color: var(--view40da3-yellow); color: var(--view40da3-yellow-soft); }

.view40da3-xdisclaimer {
  margin-top: 14px;
  border: 1px dashed rgba(255, 149, 0, 0.45);
  border-radius: var(--view40da3-r-soft);
  background: rgba(230, 81, 0, 0.07);
  padding: 10px 11px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--view40da3-text-dim);
}

/* ---------- 12. Common footer ---------- */
.view40da3-footbar {
  padding: 14px 12px 10px;
  text-align: center;
  border-top: 1px solid var(--view40da3-line);
}
.view40da3-footbar p {
  font-size: 11.5px;
  color: #8d9098;
  letter-spacing: 0.02em;
}

/* ---------- 13. Mobile bottom nav (5 roles) ---------- */
.view40da3-bottombar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--view40da3-canvas);
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: calc(var(--view40da3-bottombar-h) + env(safe-area-inset-bottom, 0px));
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
  gap: 2px;
  background: linear-gradient(180deg, rgba(13, 14, 16, 0.92), #0b0c0e);
  border-top: 1px solid var(--view40da3-line);
  backdrop-filter: blur(8px);
}

.view40da3-role {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  min-width: var(--view40da3-tap);
  border-radius: var(--view40da3-r-soft);
  color: var(--view40da3-text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  transition: color 0.25s ease, background 0.25s ease;
}
.view40da3-role:hover { color: var(--view40da3-text); }

/* layered accent behind the icon */
.view40da3-role svg {
  position: relative;
  z-index: 1;
}
.view40da3-role::before {
  content: "";
  position: absolute;
  top: 5px;
  width: 34px;
  height: 26px;
  border-radius: 12px 12px 10px 10px;
  background: rgba(255, 255, 255, 0.045);
  transition: background 0.25s ease;
}
.view40da3-role:hover::before { background: rgba(255, 255, 255, 0.09); }

/* sliding underline marker for the current role */
.view40da3-role::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--view40da3-yellow), var(--view40da3-orange));
  transform: translateX(-50%);
  transition: width 0.28s ease;
}
.view40da3-role[aria-current="page"]::after,
.view40da3-role[data-role-active="true"]::after { width: 26px; }
.view40da3-role[aria-current="page"],
.view40da3-role[data-role-active="true"] { color: var(--view40da3-yellow); }

/* promo roles carry a permanent glow accent */
.view40da3-role--promo::before {
  background: linear-gradient(180deg, rgba(255, 149, 0, 0.28), rgba(230, 81, 0, 0.10));
}
.view40da3-role--promo { color: var(--view40da3-yellow-soft); }

/* ---------- 14. Utility ---------- */
.view40da3-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 15. Help-page information language ---------- */
.view40da3-helpintro {
  position: relative;
  margin-top: 14px;
  padding: 16px 14px 17px;
  border: 1px solid rgba(255, 235, 59, 0.34);
  border-radius: 15px 15px 8px 15px;
  background:
    linear-gradient(135deg, rgba(0, 0, 205, 0.24), rgba(230, 81, 0, 0.08)),
    var(--view40da3-panel);
  box-shadow: var(--view40da3-shadow);
}
.view40da3-helpintro::before {
  content: "FIELD NOTE";
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--view40da3-yellow);
  color: #17181c;
  font-family: var(--view40da3-font-head);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.view40da3-helpintro h1 {
  margin-top: 10px;
  font-family: var(--view40da3-font-poster);
  font-size: 24px;
  line-height: 1.16;
  color: var(--view40da3-text);
}
.view40da3-helpintro p { margin-top: 9px; color: var(--view40da3-text-dim); font-size: 14px; }
.view40da3-helpintro p strong { color: var(--view40da3-yellow-soft); }
.view40da3-helpactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.view40da3-helpactions .view40da3-cta { flex: 1 1 128px; }

.view40da3-signalrail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}
.view40da3-signal {
  min-height: 78px;
  padding: 9px 8px;
  border-top: 3px solid var(--view40da3-orange);
  border-radius: 8px;
  background: var(--view40da3-panel-2);
}
.view40da3-signal:nth-child(2) { border-top-color: var(--view40da3-blue-soft); }
.view40da3-signal:nth-child(3) { border-top-color: var(--view40da3-yellow); }
.view40da3-signal b { display: block; font-family: var(--view40da3-font-head); font-size: 12px; color: var(--view40da3-text); }
.view40da3-signal span { display: block; margin-top: 5px; font-size: 11.5px; line-height: 1.35; color: var(--view40da3-text-dim); }

.view40da3-timeline { display: grid; gap: 8px; margin-top: 12px; counter-reset: view40da3-step; }
.view40da3-timelineitem {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 10px 11px 8px;
  border: 1px solid var(--view40da3-line);
  border-radius: 9px 9px 9px 3px;
  background: linear-gradient(90deg, rgba(0, 0, 205, 0.14), var(--view40da3-panel-2));
}
.view40da3-timelineitem::before {
  counter-increment: view40da3-step;
  content: counter(view40da3-step);
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--view40da3-blue-soft);
  color: #fff;
  font-family: var(--view40da3-font-poster);
  font-size: 15px;
}
.view40da3-timelineitem b { display: block; color: var(--view40da3-yellow); font-size: 13.5px; }
.view40da3-timelineitem span { display: block; margin-top: 3px; color: var(--view40da3-text-dim); font-size: 12.5px; line-height: 1.45; }

.view40da3-checkboard { display: grid; gap: 7px; margin-top: 12px; }
.view40da3-checkline {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  border: 1px dashed rgba(255, 149, 0, 0.5);
  border-radius: 7px;
  background: rgba(230, 81, 0, 0.08);
  color: var(--view40da3-text-dim);
  font-size: 13px;
}
.view40da3-checkline::before { content: "✓"; color: var(--view40da3-yellow); font-family: var(--view40da3-font-head); font-weight: 900; }
.view40da3-checkline b { color: var(--view40da3-text); }

.view40da3-termstack { display: grid; gap: 8px; margin-top: 12px; }
.view40da3-term {
  padding: 11px 12px;
  border-left: 3px solid var(--view40da3-blue-soft);
  border-radius: 0 9px 9px 0;
  background: var(--view40da3-panel-2);
}
.view40da3-term:nth-child(2n) { border-left-color: var(--view40da3-orange); }
.view40da3-term dt { color: var(--view40da3-yellow); font-family: var(--view40da3-font-head); font-size: 13px; font-weight: 800; }
.view40da3-term dd { margin-top: 4px; color: var(--view40da3-text-dim); font-size: 12.5px; line-height: 1.45; }

.view40da3-answerstack { display: grid; gap: 7px; margin-top: 12px; }
.view40da3-answer {
  border: 1px solid var(--view40da3-line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--view40da3-panel-2);
}
.view40da3-answer summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  cursor: pointer;
  color: var(--view40da3-text);
  font-family: var(--view40da3-font-head);
  font-size: 13px;
  font-weight: 800;
}
.view40da3-answer summary::marker { color: var(--view40da3-orange); }
.view40da3-answer p { margin: 0; padding: 0 12px 12px; border-top: 1px dashed var(--view40da3-line); color: var(--view40da3-text-dim); font-size: 12.75px; line-height: 1.48; }
.view40da3-answer p:first-letter { color: var(--view40da3-yellow-soft); }

.view40da3-supportslip {
  margin-top: 12px;
  padding: 13px 12px;
  border: 1px solid rgba(74, 77, 255, 0.62);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(0, 0, 205, 0.18), var(--view40da3-panel-2));
}
.view40da3-supportslip ol { display: grid; gap: 7px; list-style: decimal; padding-left: 21px; }
.view40da3-supportslip li { padding-left: 3px; color: var(--view40da3-text-dim); font-size: 13px; }
.view40da3-supportslip li::marker { color: var(--view40da3-yellow); font-weight: 900; }
.view40da3-supportslip b { color: var(--view40da3-text); }

.view40da3-factgrid { display: grid; gap: 6px; margin-top: 12px; }
.view40da3-factrow {
  display: grid;
  grid-template-columns: minmax(78px, 0.38fr) minmax(0, 1fr);
  gap: 9px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--view40da3-line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12.5px;
}
.view40da3-factrow b { color: var(--view40da3-yellow-soft); }
.view40da3-factrow span { color: var(--view40da3-text-dim); }
.view40da3-factrow:last-child { border-bottom: 0; }

.view40da3-featuremap { display: grid; gap: 9px; margin-top: 12px; }
.view40da3-featureitem {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--view40da3-line);
  border-radius: 12px 5px 12px 12px;
  background: var(--view40da3-panel-2);
}
.view40da3-featuremark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--view40da3-orange), var(--view40da3-blaze));
  color: #17181c;
  font-family: var(--view40da3-font-poster);
  font-size: 17px;
}
.view40da3-featureitem:nth-child(2) .view40da3-featuremark { background: linear-gradient(145deg, var(--view40da3-yellow), #d99800); }
.view40da3-featureitem:nth-child(3) .view40da3-featuremark { background: linear-gradient(145deg, var(--view40da3-blue-soft), var(--view40da3-blue)); color: #fff; }
.view40da3-featureitem:nth-child(4) .view40da3-featuremark { background: linear-gradient(145deg, #ff5a3c, var(--view40da3-blaze)); color: #fff; }
.view40da3-featureitem b { color: var(--view40da3-text); font-size: 13.5px; }
.view40da3-featureitem p { margin-top: 3px; color: var(--view40da3-text-dim); font-size: 12.5px; line-height: 1.42; }

.view40da3-decision { display: grid; gap: 7px; margin-top: 12px; }
.view40da3-decisionrow {
  display: grid;
  grid-template-columns: minmax(92px, 0.62fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 235, 59, 0.1), var(--view40da3-panel-2));
  border: 1px solid var(--view40da3-line);
  font-size: 12.5px;
}
.view40da3-decisionrow b { color: var(--view40da3-yellow); }
.view40da3-decisionrow span { color: var(--view40da3-text-dim); }

.view40da3-devicegrid { display: grid; gap: 8px; margin-top: 12px; }
.view40da3-device {
  padding: 11px 12px;
  border-top: 2px solid var(--view40da3-blue-soft);
  border-radius: 8px;
  background: var(--view40da3-panel-2);
}
.view40da3-device:nth-child(2) { border-top-color: var(--view40da3-orange); }
.view40da3-device:nth-child(3) { border-top-color: var(--view40da3-yellow); }
.view40da3-device b { display: block; color: var(--view40da3-text); font-size: 13px; }
.view40da3-device p { margin-top: 4px; color: var(--view40da3-text-dim); font-size: 12.5px; line-height: 1.45; }

/* ---------- 16. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- 16. Wide-screen note ----------
   The layout intentionally stays a centered 430px phone canvas
   (per mobile-first product direction); only the outer backdrop
   gets a subtle brand glow on large displays. */
@media (min-width: 700px) {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
      radial-gradient(50% 30% at 50% 0%, rgba(255, 149, 0, 0.08), rgba(0, 0, 0, 0) 70%),
      radial-gradient(40% 26% at 50% 100%, rgba(0, 0, 205, 0.12), rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
  }
}
