/* ==========================================================================
   s5 casino app - shell compact stylesheet
   Mobile-first canvas: 320-430px phone layout, centered on wide screens.
   Class prefix: viewb6338-   (CSS variables use the same prefix)
   Palette: #6F4E37 / #FF1493 / #212F3D / #CCCCCC / #FFB6C1 / #F4A460
   Direction: mono accents over regular body text, pill buttons with
   square cards, compact square game catalogue, scenario-branch rhythm,
   short-distance section transitions, full-width primary CTA.
   ========================================================================== */

:root {
  --viewb6338-ink: #212F3D;
  --viewb6338-ink-2: #182430;
  --viewb6338-ink-3: #2A3B4C;
  --viewb6338-ink-4: #0F1720;
  --viewb6338-brown: #6F4E37;
  --viewb6338-pink: #FF1493;
  --viewb6338-pink-soft: #FFB6C1;
  --viewb6338-sand: #F4A460;
  --viewb6338-mist: #CCCCCC;
  --viewb6338-mist-dim: rgba(204, 204, 204, 0.66);
  --viewb6338-line: rgba(204, 204, 204, 0.16);
  --viewb6338-line-soft: rgba(204, 204, 204, 0.08);
  --viewb6338-radius-pill: 999px;
  --viewb6338-radius-card: 6px;
  --viewb6338-font-mono: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --viewb6338-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --viewb6338-topbar-h: 62px;
  --viewb6338-dock-h: 64px;
}

/* --------------------------------------------------------------------------
   Reset + base canvas
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--viewb6338-ink-4);
  color: var(--viewb6338-mist);
  font: 400 15px/1.68 var(--viewb6338-font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.viewb6338-lock {
  overflow: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: var(--viewb6338-pink-soft);
}

:focus-visible {
  outline: 2px solid var(--viewb6338-sand);
  outline-offset: 2px;
  border-radius: 2px;
}

.viewb6338-shell {
  max-width: 430px;
  margin: 0 auto;
  background: var(--viewb6338-ink);
  min-height: 100vh;
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
  position: relative;
}

.viewb6338-skip {
  position: absolute;
  left: 12px;
  top: -52px;
  z-index: 100;
  background: var(--viewb6338-pink);
  color: #fff;
  font: 700 12px/1 var(--viewb6338-font-mono);
  padding: 12px 16px;
  border-radius: var(--viewb6338-radius-card);
  text-decoration: none;
  transition: top 0.2s ease;
}

.viewb6338-skip:focus {
  top: 8px;
}

/* --------------------------------------------------------------------------
   Fixed top bar - asymmetric brand header
   -------------------------------------------------------------------------- */

.viewb6338-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--viewb6338-topbar-h);
  padding: 9px 10px;
  background: rgba(24, 36, 48, 0.97);
  border-bottom: 1px solid var(--viewb6338-line);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

/* Asymmetric accent: pink segment bleeding off the bottom edge */
.viewb6338-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, var(--viewb6338-pink), rgba(255, 20, 147, 0));
  pointer-events: none;
}

.viewb6338-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.viewb6338-logo-frame {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--viewb6338-sand), var(--viewb6338-brown));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: transform 0.2s ease;
}

.viewb6338-brand:active .viewb6338-logo-frame {
  transform: translateY(-1px);
}

.viewb6338-logo-frame img {
  width: 31px;
  height: 31px;
  object-fit: cover;
  border-radius: 4px;
}

.viewb6338-wordmark {
  font: 700 13px/1.15 var(--viewb6338-font-mono);
  letter-spacing: 0.04em;
  color: #fff;
  white-space: nowrap;
}

.viewb6338-wordmark em {
  font-style: normal;
  color: var(--viewb6338-pink-soft);
}

.viewb6338-topacts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.viewb6338-act {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 12px/1 var(--viewb6338-font-mono);
  letter-spacing: 0.03em;
  border-radius: var(--viewb6338-radius-pill);
  padding: 0 14px;
  border: 1px solid transparent;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.viewb6338-act:active {
  transform: translateY(-1px);
}

.viewb6338-act-register {
  background: var(--viewb6338-pink);
  color: #fff;
}

.viewb6338-act-register:hover {
  background: #ff3da6;
}

.viewb6338-act-login {
  background: transparent;
  color: var(--viewb6338-mist);
  border-color: rgba(204, 204, 204, 0.4);
}

.viewb6338-act-login:hover {
  color: #fff;
  border-color: var(--viewb6338-pink-soft);
}

.viewb6338-burger {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--viewb6338-ink-3);
  border: 1px solid var(--viewb6338-line);
  border-radius: var(--viewb6338-radius-card);
  color: var(--viewb6338-mist);
  transition: border-color 0.22s ease, color 0.22s ease;
}

.viewb6338-burger:hover {
  color: #fff;
  border-color: var(--viewb6338-pink-soft);
}

.viewb6338-burger svg {
  width: 18px;
  height: 14px;
  fill: currentColor;
}

/* Tighter chrome on the narrowest canvas */
@media (max-width: 355px) {
  .viewb6338-act {
    font-size: 11px;
    padding: 0 10px;
  }

  .viewb6338-wordmark {
    font-size: 11.5px;
  }

  .viewb6338-topacts {
    gap: 5px;
  }
}

/* --------------------------------------------------------------------------
   Stacked full-screen menu overlay
   -------------------------------------------------------------------------- */

.viewb6338-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 32, 0.985);
  display: flex;
  flex-direction: column;
  padding: 12px 14px calc(18px + env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transform: translateX(6%);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
  overflow-y: auto;
}

.viewb6338-menu.viewb6338-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.viewb6338-menu-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--viewb6338-line);
}

.viewb6338-menu-title {
  font: 700 12px/1 var(--viewb6338-font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--viewb6338-sand);
}

.viewb6338-menu-close {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--viewb6338-ink-3);
  border: 1px solid var(--viewb6338-line);
  border-radius: var(--viewb6338-radius-card);
  color: var(--viewb6338-mist);
}

.viewb6338-menu-close svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.viewb6338-menu-group {
  margin-top: 16px;
}

.viewb6338-menu-label {
  font: 700 10.5px/1 var(--viewb6338-font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--viewb6338-pink-soft);
  margin: 0 0 8px 2px;
}

.viewb6338-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.viewb6338-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  background: var(--viewb6338-ink-3);
  border: 1px solid var(--viewb6338-line-soft);
  border-left: 3px solid var(--viewb6338-line);
  border-radius: var(--viewb6338-radius-card);
  color: var(--viewb6338-mist);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.viewb6338-menu-link:hover {
  color: #fff;
  border-left-color: var(--viewb6338-pink);
  transform: translateX(2px);
}

.viewb6338-menu-idx {
  font: 700 10px/1 var(--viewb6338-font-mono);
  color: var(--viewb6338-sand);
  letter-spacing: 0.08em;
}

.viewb6338-menu-cta {
  margin-top: 20px;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: var(--viewb6338-radius-pill);
  background: var(--viewb6338-pink);
  color: #fff;
  font: 700 14px/1 var(--viewb6338-font-mono);
  letter-spacing: 0.06em;
  transition: background-color 0.22s ease, transform 0.22s ease;
}

.viewb6338-menu-cta:active {
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Main column + hero
   -------------------------------------------------------------------------- */

.viewb6338-main {
  display: block;
  padding: calc(var(--viewb6338-topbar-h) + 14px) 14px calc(var(--viewb6338-dock-h) + 34px);
}

.viewb6338-hero {
  padding-top: 4px;
}

.viewb6338-kicker {
  font: 700 10.5px/1 var(--viewb6338-font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--viewb6338-sand);
  margin: 0 0 10px;
}

.viewb6338-h1 {
  font-size: clamp(21px, 6.4vw, 26px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 10px;
}

.viewb6338-h1 em {
  font-style: normal;
  color: var(--viewb6338-pink-soft);
}

.viewb6338-lede {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--viewb6338-mist);
}

.viewb6338-facts {
  list-style: none;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--viewb6338-ink-2);
  border: 1px solid var(--viewb6338-line-soft);
  border-radius: var(--viewb6338-radius-card);
  display: grid;
  gap: 6px;
}

.viewb6338-fact {
  font: 600 11px/1.5 var(--viewb6338-font-mono);
  letter-spacing: 0.02em;
  color: var(--viewb6338-mist-dim);
  padding-left: 14px;
  position: relative;
}

.viewb6338-fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  background: var(--viewb6338-pink);
}

/* --------------------------------------------------------------------------
   Banner carousel
   -------------------------------------------------------------------------- */

.viewb6338-carousel {
  position: relative;
  aspect-ratio: 5 / 3;
  border-radius: var(--viewb6338-radius-card);
  overflow: hidden;
  border: 1px solid var(--viewb6338-line);
  background: var(--viewb6338-ink-2);
}

.viewb6338-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--viewb6338-ink-2);
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  overflow: hidden;
}

.viewb6338-slide.viewb6338-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

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

.viewb6338-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(15, 23, 32, 0), rgba(15, 23, 32, 0.92));
  text-align: left;
}

.viewb6338-slide-cap span {
  font: 700 11px/1.4 var(--viewb6338-font-mono);
  letter-spacing: 0.04em;
  color: #fff;
  display: inline-block;
  padding: 4px 9px;
  background: rgba(255, 20, 147, 0.28);
  border-left: 3px solid var(--viewb6338-pink);
}

.viewb6338-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 9px;
}

.viewb6338-dot {
  min-width: 34px;
  min-height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
}

.viewb6338-dot::before {
  content: "";
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: var(--viewb6338-line);
  transition: background-color 0.25s ease, width 0.25s ease;
}

.viewb6338-dot.viewb6338-dot-on::before {
  width: 26px;
  background: var(--viewb6338-pink);
}

/* --------------------------------------------------------------------------
   Category jump chips
   -------------------------------------------------------------------------- */

.viewb6338-jump {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 14px 0 4px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.viewb6338-jump::-webkit-scrollbar {
  display: none;
}

.viewb6338-chip {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  font: 600 11px/1 var(--viewb6338-font-mono);
  letter-spacing: 0.05em;
  color: var(--viewb6338-mist);
  text-decoration: none;
  background: var(--viewb6338-ink-3);
  border: 1px solid var(--viewb6338-line-soft);
  border-radius: var(--viewb6338-radius-pill);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.viewb6338-chip:hover {
  color: #fff;
  border-color: var(--viewb6338-pink-soft);
}

.viewb6338-chip b {
  font-weight: 700;
  color: var(--viewb6338-sand);
}

/* --------------------------------------------------------------------------
   Game shelves - compact square catalogue
   -------------------------------------------------------------------------- */

.viewb6338-shelf {
  margin-top: 28px;
  scroll-margin-top: calc(var(--viewb6338-topbar-h) + 10px);
}

.viewb6338-shelf-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 2px solid var(--viewb6338-line);
  padding-bottom: 7px;
}

.viewb6338-shelf-no {
  font: 700 11px/1 var(--viewb6338-font-mono);
  letter-spacing: 0.1em;
  color: var(--viewb6338-sand);
}

.viewb6338-shelf-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.viewb6338-count {
  margin-left: auto;
  font: 700 10px/1 var(--viewb6338-font-mono);
  color: var(--viewb6338-pink-soft);
  background: rgba(255, 20, 147, 0.1);
  border: 1px solid rgba(255, 20, 147, 0.32);
  border-radius: 3px;
  padding: 3px 6px;
  white-space: nowrap;
}

.viewb6338-note {
  margin: 9px 0 11px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--viewb6338-mist-dim);
}

.viewb6338-note a,
.viewb6338-body-link {
  color: var(--viewb6338-pink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.viewb6338-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (min-width: 400px) {
  .viewb6338-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
}

.viewb6338-tile {
  min-width: 0;
}

.viewb6338-tile-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 5px 7px;
  background: var(--viewb6338-ink-3);
  border: 1px solid var(--viewb6338-line-soft);
  border-radius: var(--viewb6338-radius-card);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.viewb6338-tile-btn:hover {
  border-color: rgba(255, 182, 193, 0.55);
}

.viewb6338-tile-btn:active {
  transform: translateY(-2px);
  border-color: var(--viewb6338-pink);
}

.viewb6338-tile-frame {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--viewb6338-ink-4);
}

.viewb6338-tile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viewb6338-tile-name {
  font: 500 10.5px/1.3 var(--viewb6338-font-body);
  color: var(--viewb6338-mist);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 27px;
}

.viewb6338-shelf-more {
  margin: 11px 0 0;
  font: 600 11.5px/1.5 var(--viewb6338-font-mono);
  color: var(--viewb6338-mist-dim);
}

.viewb6338-shelf-more a {
  color: var(--viewb6338-pink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Content panels (scenario modules after the shelves)
   -------------------------------------------------------------------------- */

.viewb6338-panel {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px dashed var(--viewb6338-line);
}

.viewb6338-panel-title {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 4px;
}

.viewb6338-panel-tag {
  font: 700 10px/1 var(--viewb6338-font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--viewb6338-pink-soft);
  display: block;
  margin-bottom: 8px;
}

.viewb6338-panel-lede {
  margin: 8px 0 14px;
  font-size: 13.5px;
  color: var(--viewb6338-mist);
}

.viewb6338-panel p {
  font-size: 13.5px;
  margin: 0 0 12px;
}

/* Scenario rows: mono index + branch body */
.viewb6338-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.viewb6338-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 11px 12px;
  background: var(--viewb6338-ink-2);
  border: 1px solid var(--viewb6338-line-soft);
  border-left: 3px solid var(--viewb6338-sand);
  border-radius: var(--viewb6338-radius-card);
}

.viewb6338-row-idx {
  font: 700 13px/1 var(--viewb6338-font-mono);
  color: var(--viewb6338-sand);
  padding-top: 2px;
}

.viewb6338-row-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.viewb6338-row-body {
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--viewb6338-mist-dim);
  margin: 0;
}

.viewb6338-row-body a {
  color: var(--viewb6338-pink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Decision branches: IF-tagged blocks */
.viewb6338-branch {
  margin: 0 0 10px;
  padding: 11px 12px;
  background: var(--viewb6338-ink-2);
  border: 1px solid var(--viewb6338-line-soft);
  border-radius: var(--viewb6338-radius-card);
}

.viewb6338-branch-tag {
  display: inline-block;
  font: 700 10px/1 var(--viewb6338-font-mono);
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--viewb6338-pink);
  border-radius: 3px;
  padding: 4px 7px;
  margin-bottom: 7px;
}

.viewb6338-branch p {
  margin: 0;
}

/* Quotes */
.viewb6338-quote {
  margin: 0 0 12px;
  padding: 12px 13px 11px 16px;
  background: var(--viewb6338-ink-2);
  border: 1px solid var(--viewb6338-line-soft);
  border-radius: var(--viewb6338-radius-card);
  position: relative;
}

.viewb6338-quote::before {
  content: "\201C";
  position: absolute;
  left: 6px;
  top: 2px;
  font: 700 26px/1 var(--viewb6338-font-mono);
  color: var(--viewb6338-pink);
}

.viewb6338-quote-text {
  margin: 0 0 7px;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--viewb6338-mist);
}

.viewb6338-quote-who {
  font: 700 10.5px/1.4 var(--viewb6338-font-mono);
  letter-spacing: 0.06em;
  color: var(--viewb6338-sand);
}

/* Offers */
.viewb6338-offer {
  margin: 0 0 10px;
  padding: 12px;
  background: var(--viewb6338-ink-2);
  border: 1px solid var(--viewb6338-line-soft);
  border-radius: var(--viewb6338-radius-card);
  position: relative;
  overflow: hidden;
}

.viewb6338-offer-tag {
  position: absolute;
  top: 0;
  right: 0;
  font: 700 9.5px/1 var(--viewb6338-font-mono);
  letter-spacing: 0.16em;
  color: var(--viewb6338-ink);
  background: var(--viewb6338-sand);
  padding: 5px 8px;
  border-bottom-left-radius: var(--viewb6338-radius-card);
}

.viewb6338-offer-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 5px;
  padding-right: 66px;
}

.viewb6338-offer p {
  margin: 0;
}

/* Checklist */
.viewb6338-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.viewb6338-check-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  padding: 10px 12px;
  background: var(--viewb6338-ink-2);
  border: 1px solid var(--viewb6338-line-soft);
  border-radius: var(--viewb6338-radius-card);
}

.viewb6338-check-item::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-top: 3px;
  border: 2px solid var(--viewb6338-sand);
  border-radius: 3px;
  position: relative;
}

.viewb6338-check-item b {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 3px;
}

.viewb6338-check-item span {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--viewb6338-mist-dim);
}

.viewb6338-check-item span a {
  color: var(--viewb6338-pink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Full-width primary CTA */
.viewb6338-cta {
  display: block;
  width: 100%;
  min-height: 50px;
  margin: 4px 0 0;
  border: 0;
  border-radius: var(--viewb6338-radius-pill);
  background: linear-gradient(92deg, var(--viewb6338-pink), #ff5bb0);
  color: #fff;
  font: 700 14px/1 var(--viewb6338-font-mono);
  letter-spacing: 0.06em;
  box-shadow: 0 6px 18px rgba(255, 20, 147, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.viewb6338-cta:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 20, 147, 0.3);
}

.viewb6338-cta-note {
  margin: 8px 0 0;
  text-align: center;
  font: 500 11px/1.5 var(--viewb6338-font-mono);
  color: var(--viewb6338-mist-dim);
}

/* --------------------------------------------------------------------------
   Extended footer (home-only directory block)
   -------------------------------------------------------------------------- */

.viewb6338-xfoot {
  margin-top: 36px;
  border-top: 3px solid var(--viewb6338-brown);
  padding-top: 16px;
  display: grid;
  gap: 18px;
}

.viewb6338-xf-label {
  font: 700 10.5px/1 var(--viewb6338-font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--viewb6338-sand);
  margin: 0 0 9px;
}

.viewb6338-xf-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.viewb6338-xf-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: var(--viewb6338-radius-pill);
  font: 700 11.5px/1.2 var(--viewb6338-font-mono);
  letter-spacing: 0.02em;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.viewb6338-xf-action:active {
  transform: translateY(-1px);
}

.viewb6338-xf-a1 { background: var(--viewb6338-pink); color: #fff; }
.viewb6338-xf-a2 { background: transparent; color: var(--viewb6338-pink-soft); border-color: rgba(255, 20, 147, 0.55); }
.viewb6338-xf-a3 { background: var(--viewb6338-sand); color: var(--viewb6338-ink); }
.viewb6338-xf-a4 { background: var(--viewb6338-ink-3); color: #fff; border-color: rgba(244, 164, 96, 0.6); }
.viewb6338-xf-a5 { background: var(--viewb6338-ink-3); color: var(--viewb6338-pink-soft); border-color: var(--viewb6338-line); }
.viewb6338-xf-a6 { background: linear-gradient(92deg, var(--viewb6338-brown), #8a6349); color: #fff; }

.viewb6338-xf-brand {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.66;
  color: var(--viewb6338-mist-dim);
}

.viewb6338-xf-dir {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.viewb6338-xf-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 11px;
  background: var(--viewb6338-ink-2);
  border: 1px solid var(--viewb6338-line-soft);
  border-radius: var(--viewb6338-radius-card);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.viewb6338-xf-link:hover {
  border-color: rgba(255, 182, 193, 0.5);
  transform: translateX(2px);
}

.viewb6338-xf-link b {
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
}

.viewb6338-xf-link span {
  font-size: 11px;
  line-height: 1.4;
  color: var(--viewb6338-mist-dim);
  text-align: right;
  margin-left: auto;
}

.viewb6338-xf-link::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--viewb6338-pink);
  border-right: 2px solid var(--viewb6338-pink);
  transform: rotate(45deg);
}

.viewb6338-xf-disc {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(204, 204, 204, 0.72);
  border-left: 3px solid var(--viewb6338-sand);
  padding-left: 10px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Common footer + fixed bottom dock (segmented action bar)
   -------------------------------------------------------------------------- */

.viewb6338-footer {
  padding: 14px 16px 10px;
  border-top: 1px solid var(--viewb6338-line-soft);
  text-align: center;
}

.viewb6338-copy {
  margin: 0;
  font: 600 10.5px/1.6 var(--viewb6338-font-mono);
  letter-spacing: 0.03em;
  color: var(--viewb6338-mist-dim);
}

.viewb6338-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(15, 23, 32, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--viewb6338-line);
  padding: 5px 2px calc(5px + env(safe-area-inset-bottom));
}

.viewb6338-dock-item {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  background: none;
  border: 0;
  border-left: 1px solid var(--viewb6338-line-soft);
  color: rgba(204, 204, 204, 0.6);
  text-decoration: none;
  position: relative;
  transition: color 0.22s ease, transform 0.22s ease;
}

.viewb6338-dock-item:first-child {
  border-left: 0;
}

.viewb6338-dock-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.viewb6338-dock-label {
  font: 600 9.5px/1 var(--viewb6338-font-mono);
  letter-spacing: 0.05em;
}

.viewb6338-dock-item:hover {
  color: var(--viewb6338-mist);
}

.viewb6338-dock-item.viewb6338-dock-on {
  color: var(--viewb6338-pink-soft);
  transform: translateY(-2px);
}

.viewb6338-dock-item.viewb6338-dock-on::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--viewb6338-pink);
}

/* --------------------------------------------------------------------------
   Short-distance section reveal (progressive enhancement)
   -------------------------------------------------------------------------- */

.viewb6338-js .viewb6338-rise {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.viewb6338-js .viewb6338-rise.viewb6338-in {
  opacity: 1;
  transform: none;
}

/* Compatible content and accessibility refinements. */
.viewb6338-skip { min-height: 44px; display: inline-flex; align-items: center; }
.viewb6338-shell { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.viewb6338-main { padding-bottom: 28px; }
.viewb6338-menu { max-width: 430px; left: 50%; right: auto; width: 100%; transform: translateX(-44%); }
.viewb6338-menu.viewb6338-open { transform: translateX(-50%); transition: opacity 0.24s ease, transform 0.24s ease; }
.viewb6338-brand { flex-shrink: 1; }
.viewb6338-wordmark { white-space: normal; max-width: 86px; }
.viewb6338-topbar { gap: 5px; }
.viewb6338-act { padding-inline: 11px; }
.viewb6338-act-register, .viewb6338-menu-cta, .viewb6338-xf-a1, .viewb6338-cta { color: #101820; }
.viewb6338-fact, .viewb6338-note, .viewb6338-row-body, .viewb6338-check-item span,
.viewb6338-xf-brand, .viewb6338-copy, .viewb6338-dock-item { color: #CCCCCC; }
.viewb6338-tile-name { display: block; overflow: visible; overflow-wrap: anywhere; min-height: 28px; }
.viewb6338-tile-btn { min-height: 100%; }
.viewb6338-grid { align-items: stretch; }
.viewb6338-carousel { aspect-ratio: 2 / 1; overflow: visible; margin-bottom: 54px; }
.viewb6338-slide { border-radius: 6px; visibility: hidden; transform: none; }
.viewb6338-slide.viewb6338-on { visibility: visible; }
.viewb6338-slide img { object-fit: contain; }
.viewb6338-dots { position: absolute; top: 100%; left: 0; right: 0; margin: 3px 0 0; align-items: center; gap: 2px; }
.viewb6338-dot { min-width: 44px; min-height: 44px; }
.viewb6338-pause { min-height: 44px; border: 1px solid #CCCCCC; border-radius: 22px; background: #182430; color: #FFB6C1; font-size: 11px; padding: 0 10px; }
.viewb6338-jump { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
.viewb6338-chip { min-height: 44px; padding: 0 8px; justify-content: center; }
.viewb6338-shelf-head { flex-wrap: wrap; align-items: center; }
.viewb6338-shelf-title { flex: 1; min-width: 0; }
.viewb6338-panel-title { overflow-wrap: anywhere; }
.viewb6338-article h3 { color: #fff; font-size: 15px; line-height: 1.45; margin: 20px 0 7px; }
.viewb6338-article p, .viewb6338-article li { font-size: 14px; }
.viewb6338-article li { margin-bottom: 10px; }
.viewb6338-article p a, .viewb6338-panel p a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; text-underline-offset: 4px; overflow-wrap: anywhere; }
.viewb6338-article ol { padding-left: 22px; }
.viewb6338-breadcrumb { font: 12px/1.5 var(--viewb6338-font-mono); margin: 0 0 15px; }
.viewb6338-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.viewb6338-alert { border-left: 3px solid #F4A460; background: #182430; padding: 12px; }
.viewb6338-ledger { margin: 18px 0; }
.viewb6338-ledger dt { color: #F4A460; font: 700 12px/1.5 var(--viewb6338-font-mono); border-top: 1px solid var(--viewb6338-line); padding-top: 13px; }
.viewb6338-ledger dd { margin: 6px 0 16px; font-size: 14px; }
.viewb6338-inline-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.viewb6338-inline-actions button { margin: 0; font-size: 12px; padding: 8px; }
.viewb6338-xf-link { flex-wrap: wrap; gap: 4px; }
.viewb6338-xf-link b { white-space: normal; }
.viewb6338-xf-link span { text-align: left; flex: 1 1 100%; margin: 0; color: #CCCCCC; }
.viewb6338-xf-link::after { display: none; }
.viewb6338-js .viewb6338-rise { opacity: 1; }
section[id] { scroll-margin-top: 82px; }
@media (max-width: 355px) {
  .viewb6338-wordmark { font-size: 11px; max-width: 70px; }
  .viewb6338-brand { gap: 5px; }
  .viewb6338-act { padding-inline: 8px; }
  .viewb6338-topacts { gap: 4px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .viewb6338-js .viewb6338-rise {
    opacity: 1;
    transform: none;
  }

  .viewb6338-slide {
    transform: none;
  }
}
