/* ============================================================
   29999 — mobile-first canvas stylesheet
   File: css/canvas-mobile-5a35c5.css
   Class / custom-property contract: everything uses view5c51e-
   Palette anchors: #D4AF37 #EEE8AA #273746 #DEE2E6 #FFD700 #B8860B
   Visual direction: geometric headings + neutral body text,
   small-medium radii with comfortable spacing, mixed large/small
   game cards, question-driven rhythm, short-distance transitions,
   staggered primary/secondary CTA sizes.
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  --view5c51e-ink: #273746;              /* deep canvas background */
  --view5c51e-mist: #DEE2E6;             /* neutral body text */
  --view5c51e-pale: #EEE8AA;             /* soft-gold secondary text */
  --view5c51e-gold: #D4AF37;             /* brand gold */
  --view5c51e-sun: #FFD700;              /* bright gold accent */
  --view5c51e-bronze: #B8860B;           /* deep gold for borders */
  --view5c51e-panel: rgba(222, 226, 230, 0.055);
  --view5c51e-panel-2: rgba(222, 226, 230, 0.10);
  --view5c51e-line: rgba(238, 232, 170, 0.16);
  --view5c51e-line-strong: rgba(212, 175, 55, 0.42);
  --view5c51e-shadow: rgba(0, 0, 0, 0.38);
  --view5c51e-radius-s: 8px;
  --view5c51e-radius-m: 12px;
  --view5c51e-radius-l: 18px;
  --view5c51e-shell: 430px;              /* phone canvas keeps this width */
  --view5c51e-top-h: 58px;
  --view5c51e-dock-h: 62px;
  --view5c51e-gap: 14px;
  --view5c51e-font-head: 'Baloo Da 2', 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  --view5c51e-font-body: 'Hind Siliguri', 'Noto Sans Bengali', -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.30)), #273746;
  color: var(--view5c51e-mist);
  font-family: var(--view5c51e-font-body);
  font-size: 14px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

html.view5c51e-lock,
html.view5c51e-lock body { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: var(--view5c51e-pale); text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

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

::selection { background: rgba(212, 175, 55, 0.55); color: #273746; }

/* ---------- phone canvas ---------- */
.view5c51e-app {
  position: relative;
  width: 100%;
  max-width: var(--view5c51e-shell);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 46% at 50% 0%, rgba(212, 175, 55, 0.10), transparent 60%),
    #273746;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12), 0 0 42px var(--view5c51e-shadow);
  overflow: hidden;
}

/* ---------- fixed top action bar ---------- */
.view5c51e-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--view5c51e-shell);
  height: var(--view5c51e-top-h);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(39, 55, 70, 0.98), rgba(39, 55, 70, 0.92));
  border-bottom: 1px solid var(--view5c51e-line);
  transition: box-shadow 0.25s ease;
}

.view5c51e-topbar.is-scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.view5c51e-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 44px;
}

.view5c51e-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid var(--view5c51e-line-strong);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  flex: 0 0 auto;
}

.view5c51e-brandName {
  font-family: var(--view5c51e-font-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(100deg, #FFD700 10%, #EEE8AA 45%, #D4AF37 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.view5c51e-topActs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

/* staggered CTA sizes: register leads, login follows smaller */
.view5c51e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--view5c51e-radius-s);
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.view5c51e-btnReg {
  padding: 0 15px;
  background: linear-gradient(135deg, #FFD700, #D4AF37 70%);
  color: #273746;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.35);
}

.view5c51e-btnReg:active { transform: translateY(1px) scale(0.98); }

.view5c51e-btnLog {
  padding: 0 12px;
  border: 1px solid var(--view5c51e-line-strong);
  color: var(--view5c51e-pale);
  background: rgba(222, 226, 230, 0.05);
}

.view5c51e-btnLog:active { transform: translateY(1px); }

.view5c51e-burger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--view5c51e-radius-s);
  border: 1px solid var(--view5c51e-line);
  background: var(--view5c51e-panel);
}

.view5c51e-burger svg { display: block; }

/* ---------- side drawer menu ---------- */
.view5c51e-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10, 16, 22, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.view5c51e-scrim.is-open { opacity: 1; visibility: visible; }

.view5c51e-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: 82%;
  max-width: 330px;
  background: linear-gradient(180deg, #2c3c4b 0%, #273746 40%);
  border-left: 1px solid var(--view5c51e-line-strong);
  box-shadow: -14px 0 34px rgba(0, 0, 0, 0.5);
  transform: translateX(102%);
  transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.view5c51e-drawer.is-open { transform: translateX(0); }

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

.view5c51e-drawerTitle {
  font-family: var(--view5c51e-font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--view5c51e-sun);
}

.view5c51e-drawerClose {
  width: 44px;
  height: 44px;
  border-radius: var(--view5c51e-radius-s);
  background: var(--view5c51e-panel);
  border: 1px solid var(--view5c51e-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.view5c51e-drawerNav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 12px;
}

.view5c51e-drawerLink {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  margin-bottom: 4px;
  border-radius: var(--view5c51e-radius-s);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--view5c51e-mist);
  transition: background 0.16s ease, color 0.16s ease;
}

.view5c51e-drawerLink::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--view5c51e-line-strong);
  flex: 0 0 auto;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.view5c51e-drawerLink:active { background: var(--view5c51e-panel-2); }

.view5c51e-drawerLink.is-here {
  background: rgba(212, 175, 55, 0.14);
  color: var(--view5c51e-sun);
}

.view5c51e-drawerLink.is-here::before {
  background: var(--view5c51e-sun);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.7);
}

.view5c51e-drawerFoot {
  padding: 12px 14px 4px;
  border-top: 1px solid var(--view5c51e-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.view5c51e-drawerFoot .view5c51e-btn { width: 100%; }

/* ---------- main flow ---------- */
.view5c51e-main {
  padding: calc(var(--view5c51e-top-h) + 8px) 12px
           calc(var(--view5c51e-dock-h) + 26px + env(safe-area-inset-bottom));
}

.view5c51e-sec { margin-bottom: 26px; }

/* ---------- hero carousel ---------- */
.view5c51e-hero {
  position: relative;
  border-radius: var(--view5c51e-radius-l);
  overflow: hidden;
  border: 1px solid var(--view5c51e-line);
  box-shadow: 0 10px 26px var(--view5c51e-shadow);
  margin-bottom: 18px;
}

.view5c51e-heroTrack {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.3, 1);
}

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

.view5c51e-slideImg {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.view5c51e-slideCap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 31, 0.92));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.view5c51e-slideTxt { min-width: 0; }

.view5c51e-slideTag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #273746;
  background: linear-gradient(135deg, #FFD700, #EEE8AA);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 4px;
}

.view5c51e-slideTxt strong {
  display: block;
  font-family: var(--view5c51e-font-head);
  font-size: 16px;
  line-height: 1.3;
  color: #DEE2E6;
}

.view5c51e-slideBtn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #273746;
  background: linear-gradient(135deg, #FFD700, #D4AF37);
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
}

.view5c51e-heroDots {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.view5c51e-dot {
  width: 22px;
  height: 10px;
  border-radius: 999px;
  background: rgba(222, 226, 230, 0.34);
  transition: background 0.2s ease, width 0.2s ease;
}

.view5c51e-dot.is-on {
  background: var(--view5c51e-sun);
  width: 30px;
}

.view5c51e-heroArrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(39, 55, 70, 0.55);
  border: 1px solid var(--view5c51e-line);
  backdrop-filter: blur(2px);
}

.view5c51e-heroArrow.prev { left: 4px; }
.view5c51e-heroArrow.next { right: 4px; }

.view5c51e-heroArrow svg { display: block; }

/* ---------- intro / H1 ---------- */
.view5c51e-intro {
  padding: 4px 2px 2px;
  margin-bottom: 18px;
}

.view5c51e-h1 {
  font-family: var(--view5c51e-font-head);
  font-size: 23px;
  line-height: 1.32;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 10px;
  text-wrap: balance;
}

.view5c51e-lead {
  font-size: 14px;
  color: var(--view5c51e-mist);
  margin-bottom: 8px;
}

.view5c51e-lead a,
.view5c51e-secSub a,
.view5c51e-caseTxt a,
.view5c51e-faqA a {
  color: var(--view5c51e-sun);
  border-bottom: 1px dashed rgba(255, 215, 0, 0.45);
  padding-bottom: 1px;
}

.view5c51e-leadNote {
  font-size: 12.5px;
  color: var(--view5c51e-pale);
  background: var(--view5c51e-panel);
  border-left: 3px solid var(--view5c51e-gold);
  border-radius: 0 var(--view5c51e-radius-s) var(--view5c51e-radius-s) 0;
  padding: 8px 11px;
}

/* ---------- category chips ---------- */
.view5c51e-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.view5c51e-chips::-webkit-scrollbar { display: none; }

.view5c51e-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--view5c51e-line-strong);
  background: var(--view5c51e-panel);
  color: var(--view5c51e-pale);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}

.view5c51e-chip:active {
  background: rgba(212, 175, 55, 0.2);
  color: var(--view5c51e-sun);
}

/* ---------- section headings (question rhythm) ---------- */
.view5c51e-secHead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.view5c51e-secNum {
  flex: 0 0 auto;
  font-family: var(--view5c51e-font-head);
  font-size: 12px;
  font-weight: 700;
  color: #273746;
  background: linear-gradient(135deg, #FFD700, #B8860B);
  border-radius: 7px;
  padding: 2px 8px;
  transform: translateY(-2px);
}

.view5c51e-secTitle {
  font-family: var(--view5c51e-font-head);
  font-size: 18.5px;
  line-height: 1.38;
  font-weight: 700;
  color: var(--view5c51e-pale);
  text-wrap: balance;
}

.view5c51e-secSub {
  font-size: 13.5px;
  color: var(--view5c51e-mist);
  margin-bottom: 12px;
}

.view5c51e-secSub strong { color: var(--view5c51e-pale); font-weight: 600; }

.view5c51e-secFoot {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--view5c51e-line-strong);
  border-radius: var(--view5c51e-radius-m);
  background: var(--view5c51e-panel);
  font-size: 12.5px;
  color: var(--view5c51e-pale);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.view5c51e-secFoot a { color: var(--view5c51e-sun); font-weight: 600; }

/* ---------- game grids: stable tracks, mixed card sizes ---------- */
.view5c51e-grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px 8px;
}

.view5c51e-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px 9px;
}

/* large lead cards span two tracks (big-card half of the mix) */
.view5c51e-gameBig { grid-column: span 2; }

.view5c51e-game {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--view5c51e-radius-m);
  text-align: center;
  transition: transform 0.16s ease;
}

.view5c51e-game:active { transform: scale(0.965); }

.view5c51e-gameImg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--view5c51e-radius-m);
  border: 1px solid var(--view5c51e-line);
  background: #1f2b36;
}

.view5c51e-gameName {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--view5c51e-mist);
  overflow-wrap: anywhere;
}

.view5c51e-gameBig .view5c51e-gameImg {
  aspect-ratio: 1 / 1.04;
  border-color: var(--view5c51e-line-strong);
  box-shadow: 0 8px 20px var(--view5c51e-shadow);
}

.view5c51e-gameBig .view5c51e-gameName {
  font-family: var(--view5c51e-font-head);
  font-size: 13.5px;
  color: var(--view5c51e-pale);
  font-weight: 700;
}

.view5c51e-gameBadge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #273746;
  background: linear-gradient(135deg, #FFD700, #EEE8AA);
  border-radius: 999px;
  padding: 2px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.view5c51e-gameBig .view5c51e-gameBadge { top: 8px; left: 8px; font-size: 10.5px; }

/* ---------- live-casino horizontal rail ---------- */
.view5c51e-rowScroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 30.5%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.view5c51e-rowScroll::-webkit-scrollbar { display: none; }

.view5c51e-rowScroll .view5c51e-game { scroll-snap-align: start; }

.view5c51e-rowScroll .view5c51e-gameImg { aspect-ratio: 3 / 4; }

.view5c51e-liveDot {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.22), 0 0 8px rgba(255, 215, 0, 0.8);
}

/* ---------- winners feed ---------- */
.view5c51e-winList {
  border: 1px solid var(--view5c51e-line);
  border-radius: var(--view5c51e-radius-m);
  background: var(--view5c51e-panel);
  overflow: hidden;
}

.view5c51e-winRow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(238, 232, 170, 0.08);
}

.view5c51e-winRow:last-child { border-bottom: 0; }

.view5c51e-winWho {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--view5c51e-font-head);
  font-size: 13px;
  font-weight: 700;
  color: #273746;
  background: linear-gradient(135deg, #EEE8AA, #D4AF37);
}

.view5c51e-winGame {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.4;
}

.view5c51e-winGame strong {
  display: block;
  color: var(--view5c51e-pale);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.view5c51e-winGame span { color: rgba(222, 226, 230, 0.66); font-size: 11.5px; }

.view5c51e-winAmt {
  flex: 0 0 auto;
  text-align: right;
  font-family: var(--view5c51e-font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--view5c51e-sun);
}

.view5c51e-winAmt small {
  display: block;
  font-family: var(--view5c51e-font-body);
  font-size: 10px;
  font-weight: 400;
  color: rgba(222, 226, 230, 0.55);
}

/* ---------- how-to steps ---------- */
.view5c51e-steps {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.view5c51e-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--view5c51e-radius-m);
  background: var(--view5c51e-panel);
  border: 1px solid var(--view5c51e-line);
}

.view5c51e-stepNum {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--view5c51e-font-head);
  font-size: 15px;
  font-weight: 700;
  color: #273746;
  background: linear-gradient(135deg, #FFD700, #B8860B);
}

.view5c51e-stepTitle {
  font-family: var(--view5c51e-font-head);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--view5c51e-pale);
  margin-bottom: 2px;
}

.view5c51e-stepBody { font-size: 12.8px; line-height: 1.6; }

.view5c51e-ctaRow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.view5c51e-ctaMain {
  min-height: 50px;
  border-radius: var(--view5c51e-radius-m);
  font-size: 15px;
  font-weight: 700;
  color: #273746;
  background: linear-gradient(135deg, #FFD700, #D4AF37 75%);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.view5c51e-ctaSide {
  min-height: 44px;
  border-radius: var(--view5c51e-radius-s);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--view5c51e-pale);
  border: 1px solid var(--view5c51e-line-strong);
  background: var(--view5c51e-panel);
}

/* ---------- FAQ accordion ---------- */
.view5c51e-faq {
  border: 1px solid var(--view5c51e-line);
  border-radius: var(--view5c51e-radius-m);
  background: var(--view5c51e-panel);
  margin-bottom: 9px;
  overflow: hidden;
}

.view5c51e-faqQ {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
  font-size: 13.8px;
  font-weight: 600;
  color: var(--view5c51e-pale);
}

.view5c51e-faqQ::-webkit-details-marker { display: none; }

.view5c51e-faqQ::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--view5c51e-sun);
  border-bottom: 2px solid var(--view5c51e-sun);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.view5c51e-faq[open] .view5c51e-faqQ::after { transform: rotate(225deg); margin-top: 4px; }

.view5c51e-faqA {
  padding: 0 13px 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--view5c51e-mist);
}

/* ---------- use-case cards ---------- */
.view5c51e-cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.view5c51e-case {
  padding: 12px 13px;
  border-radius: var(--view5c51e-radius-m);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.10), rgba(222, 226, 230, 0.04));
  border: 1px solid var(--view5c51e-line);
}

.view5c51e-caseTag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #273746;
  background: linear-gradient(135deg, #FFD700, #EEE8AA);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 6px;
}

.view5c51e-caseTitle {
  font-family: var(--view5c51e-font-head);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--view5c51e-pale);
  margin-bottom: 4px;
}

.view5c51e-caseTxt { font-size: 12.8px; line-height: 1.65; }

/* ---------- extended site footer (home only) ---------- */
.view5c51e-xfoot {
  margin-top: 30px;
  padding: 18px 14px 16px;
  border-radius: var(--view5c51e-radius-l) var(--view5c51e-radius-l) 0 0;
  border: 1px solid var(--view5c51e-line);
  border-bottom: 0;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(212, 175, 55, 0.09), transparent 70%),
    rgba(21, 31, 40, 0.55);
}

.view5c51e-xTitle {
  font-family: var(--view5c51e-font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--view5c51e-sun);
  margin-bottom: 10px;
}

.view5c51e-xBrand {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.view5c51e-xLogo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--view5c51e-line-strong);
  flex: 0 0 auto;
}

.view5c51e-xBrandTxt {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--view5c51e-mist);
}

/* promo entries: two wide leads + compact chips (staggered sizes) */
.view5c51e-xPromos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.view5c51e-xpBig {
  grid-column: span 1;
  min-height: 48px;
  border-radius: var(--view5c51e-radius-m);
  font-size: 14px;
  font-weight: 700;
  color: #273746;
  background: linear-gradient(135deg, #FFD700, #D4AF37 75%);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.view5c51e-xp {
  min-height: 44px;
  border-radius: var(--view5c51e-radius-s);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--view5c51e-pale);
  border: 1px solid var(--view5c51e-line-strong);
  background: var(--view5c51e-panel);
}

.view5c51e-xp:active, .view5c51e-xpBig:active { transform: translateY(1px); }

/* two-column page directory */
.view5c51e-xDir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
  margin-bottom: 16px;
}

.view5c51e-xDirT {
  grid-column: 1 / -1;
  font-family: var(--view5c51e-font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--view5c51e-pale);
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.view5c51e-xLink {
  display: block;
  min-height: 24px;
  font-size: 12.8px;
  color: var(--view5c51e-mist);
  border-bottom: 1px dotted rgba(238, 232, 170, 0.22);
  padding: 3px 0;
}

.view5c51e-xLink:active { color: var(--view5c51e-sun); }

.view5c51e-xNote {
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(222, 226, 230, 0.62);
  border-top: 1px solid var(--view5c51e-line);
  padding-top: 11px;
}

/* ---------- common footer ---------- */
.view5c51e-foot {
  text-align: center;
  padding: 14px 12px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--view5c51e-line);
  background: rgba(15, 23, 31, 0.5);
}

.view5c51e-footLine {
  font-size: 12px;
  color: var(--view5c51e-pale);
}

.view5c51e-footLine strong { color: var(--view5c51e-sun); font-weight: 700; }

/* ---------- floating bottom dock (5 roles) ---------- */
.view5c51e-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--view5c51e-shell);
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--view5c51e-dock-h) + env(safe-area-inset-bottom));
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  gap: 2px;
  background: linear-gradient(180deg, rgba(31, 45, 58, 0.97), rgba(21, 31, 40, 0.99));
  border-top: 1px solid var(--view5c51e-line-strong);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}

.view5c51e-dockBtn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  border-radius: var(--view5c51e-radius-s);
  color: rgba(238, 232, 170, 0.72);
  transition: color 0.18s ease, transform 0.18s ease;
}

.view5c51e-dockBtn:active { transform: translateY(1px); }

.view5c51e-dockIco {
  width: 24px;
  height: 24px;
  display: block;
}

.view5c51e-icoLine {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.18s ease;
}

.view5c51e-icoFill {
  fill: currentColor;
  opacity: 0;
  transition: opacity 0.18s ease;
}

/* active state swaps to the filled glyph (fill change micro-interaction) */
.view5c51e-dockBtn.is-on {
  color: var(--view5c51e-sun);
}

.view5c51e-dockBtn.is-on .view5c51e-icoFill { opacity: 1; }
.view5c51e-dockBtn.is-on .view5c51e-icoLine { opacity: 0.14; }

/* label reveal: inactive labels stay dim, active label lifts and brightens */
.view5c51e-dockLbl {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0.62;
  transform: translateY(1px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.view5c51e-dockBtn.is-on .view5c51e-dockLbl {
  opacity: 1;
  transform: translateY(0);
}

.view5c51e-dockBtn.is-on::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFD700, #B8860B);
}

/* ---------- short-distance reveal transitions ---------- */
html.view5c51e-js .view5c51e-rise {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.view5c51e-js .view5c51e-rise.is-in {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================================
   Responsive tuning inside the 320-430px phone band
   ============================================================ */

/* 320px base keeps 4 columns; >=375px gains a fifth track */
@media (min-width: 375px) {
  .view5c51e-grid4 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 9px; }
  .view5c51e-grid3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .view5c51e-cases { grid-template-columns: 1fr 1fr; }
  .view5c51e-rowScroll { grid-auto-columns: 28%; }
  .view5c51e-h1 { font-size: 24px; }
  .view5c51e-secTitle { font-size: 19.5px; }
  .view5c51e-ctaRow { grid-template-columns: 1.6fr 1fr; }
  .view5c51e-main { padding-left: 14px; padding-right: 14px; }
}

/* at 430px the canvas reaches its widest phone form */
@media (min-width: 430px) {
  .view5c51e-h1 { font-size: 26px; }
  .view5c51e-secTitle { font-size: 20.5px; }
  .view5c51e-gameName { font-size: 11.5px; }
  .view5c51e-slideTxt strong { font-size: 17.5px; }
  .view5c51e-xpBig { font-size: 14.5px; }
}

/* narrow 320px: tighten extended-footer columns to one */
@media (max-width: 360px) {
  .view5c51e-xDir { grid-template-columns: 1fr; }
  .view5c51e-xPromos { grid-template-columns: 1fr; }
  .view5c51e-grid4 { gap: 8px 6px; }
  .view5c51e-brandName { font-size: 19px; }
}

/* respect users who prefer calmer motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  html.view5c51e-js .view5c51e-rise { opacity: 1; transform: none; }
  .view5c51e-heroTrack { transition: none; }
}

/* larger-than-phone screens frame the centered canvas */
@media (min-width: 500px) {
  body { background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)), #273746; }
  .view5c51e-app { border-radius: 0 0 18px 18px; }
}
