/* ============================================================
   Game Zone GCash - interface-compact-df5219.css
   Mobile-first (320-430px) canvas stylesheet.
   Prefix contract: every class and variable uses viewdf521-
   Palette anchors: #2C3E50 base / #8B4513 accent / #AFEEEE ink
   ============================================================ */

:root {
  --viewdf521-shell: #141e2a;
  --viewdf521-base: #2C3E50;
  --viewdf521-base-deep: #243344;
  --viewdf521-panel: #22303f;
  --viewdf521-panel-2: #2a3a4d;
  --viewdf521-brown: #8B4513;
  --viewdf521-brown-hi: #a5581d;
  --viewdf521-brown-lo: #6d3610;
  --viewdf521-ice: #AFEEEE;
  --viewdf521-ice-dim: rgba(175, 238, 238, 0.74);
  --viewdf521-ice-faint: rgba(175, 238, 238, 0.14);
  --viewdf521-ink: #e9f6f6;
  --viewdf521-line: rgba(175, 238, 238, 0.18);
  --viewdf521-radius: 6px;
  --viewdf521-radius-sm: 4px;
  --viewdf521-font-head: "Poppins", "Trebuchet MS", "Segoe UI", sans-serif;
  --viewdf521-font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --viewdf521-tap: 44px;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--viewdf521-shell);
  color: var(--viewdf521-ink);
  font-family: var(--viewdf521-font-body);
  font-size: 14px;
  line-height: 1.55;
}

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

a { color: var(--viewdf521-ice); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: var(--viewdf521-font-head);
  color: var(--viewdf521-ice);
  margin: 0;
  line-height: 1.28;
}

p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }

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

:focus-visible {
  outline: 2px solid var(--viewdf521-ice);
  outline-offset: 2px;
  border-radius: var(--viewdf521-radius-sm);
}

::selection { background: var(--viewdf521-brown); color: #fff; }

/* ---------- Phone canvas ---------- */
.viewdf521-canvas {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--viewdf521-base) 0%, var(--viewdf521-base-deep) 42%, #1d2a38 100%);
  box-shadow: 0 0 42px rgba(0, 0, 0, 0.55);
  overflow-x: hidden;
}

/* ---------- Top bar (tab style) ---------- */
.viewdf521-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: rgba(30, 42, 55, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--viewdf521-line);
}

.viewdf521-brandrow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 10px 6px;
}

.viewdf521-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--viewdf521-radius);
  border: 1px solid var(--viewdf521-ice-faint);
  flex: 0 0 auto;
}

.viewdf521-brandname {
  font-family: var(--viewdf521-font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.4px;
  color: var(--viewdf521-ice);
  text-transform: lowercase;
  line-height: 1.1;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewdf521-topacts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.viewdf521-loginbtn {
  min-height: var(--viewdf521-tap);
  padding: 0 12px;
  border: 1px solid var(--viewdf521-ice-dim);
  border-radius: var(--viewdf521-radius);
  color: var(--viewdf521-ice);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  background: transparent;
  transition: background 0.2s ease, transform 0.15s ease;
}

.viewdf521-loginbtn:active { transform: scale(0.95); background: var(--viewdf521-ice-faint); }

.viewdf521-regbtn {
  min-height: var(--viewdf521-tap);
  padding: 0 14px;
  border-radius: var(--viewdf521-radius);
  background: linear-gradient(160deg, var(--viewdf521-brown-hi), var(--viewdf521-brown-lo));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(139, 69, 19, 0.45);
  transition: transform 0.15s ease, filter 0.2s ease;
}

.viewdf521-regbtn:active { transform: scale(0.95); filter: brightness(1.12); }

.viewdf521-menubtn {
  width: var(--viewdf521-tap);
  height: var(--viewdf521-tap);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--viewdf521-radius);
  border: 1px solid var(--viewdf521-line);
}

.viewdf521-menubtn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--viewdf521-ice);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.viewdf521-menubtn.viewdf521-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.viewdf521-menubtn.viewdf521-open span:nth-child(2) { opacity: 0; }
.viewdf521-menubtn.viewdf521-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Tab strip under the brand row */
.viewdf521-tabs {
  display: flex;
  gap: 6px;
  padding: 0 10px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}

.viewdf521-tabs::-webkit-scrollbar { display: none; }

.viewdf521-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--viewdf521-line);
  background: var(--viewdf521-panel);
  color: var(--viewdf521-ice-dim);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.viewdf521-tab:hover { text-decoration: none; color: var(--viewdf521-ice); }

.viewdf521-tab.viewdf521-on {
  background: var(--viewdf521-brown);
  border-color: var(--viewdf521-brown-hi);
  color: #fff;
}

/* ---------- Full-height menu layer ---------- */
.viewdf521-menulayer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(84vw, 340px);
  max-width: 430px;
  z-index: 90;
  background: var(--viewdf521-panel);
  border-left: 1px solid var(--viewdf521-line);
  transform: translateX(102%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 14px 14px calc(76px + env(safe-area-inset-bottom));
}

.viewdf521-menulayer.viewdf521-open { transform: translateX(0); }

.viewdf521-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 16, 23, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.viewdf521-scrim.viewdf521-open { opacity: 1; pointer-events: auto; }

.viewdf521-menuhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.viewdf521-menutitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--viewdf521-ice-dim);
}

.viewdf521-menuclose {
  width: var(--viewdf521-tap);
  height: var(--viewdf521-tap);
  border-radius: var(--viewdf521-radius);
  border: 1px solid var(--viewdf521-line);
  color: var(--viewdf521-ice);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.viewdf521-menugroup { margin-bottom: 16px; }

.viewdf521-grouplabel {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(175, 238, 238, 0.5);
  padding: 0 4px 6px;
}

.viewdf521-menulink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--viewdf521-radius);
  border: 1px solid transparent;
  background: var(--viewdf521-panel-2);
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--viewdf521-ink);
  transition: background 0.18s ease, transform 0.15s ease;
}

.viewdf521-menulink:hover { text-decoration: none; background: #32455a; }

.viewdf521-menulink:active { transform: scale(0.98); }

.viewdf521-menulink em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--viewdf521-ice-dim);
  border: 1px solid var(--viewdf521-line);
  border-radius: 999px;
  padding: 2px 8px;
}

.viewdf521-menupromo {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border-radius: var(--viewdf521-radius);
  background: linear-gradient(160deg, var(--viewdf521-brown-hi), var(--viewdf521-brown-lo));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(139, 69, 19, 0.4);
}

/* ---------- Main column ---------- */
.viewdf521-main {
  padding: 104px 12px 18px;
}

.viewdf521-sec {
  margin: 0 0 26px;
  scroll-margin-top: 112px;
}

.viewdf521-sechead {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 10px;
}

.viewdf521-secnum {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 0 6px;
  border-radius: var(--viewdf521-radius-sm);
  background: var(--viewdf521-brown);
  color: #fff;
  font-family: var(--viewdf521-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.viewdf521-h2 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.15px;
}

.viewdf521-kick {
  display: block;
  font-family: var(--viewdf521-font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(175, 238, 238, 0.55);
  margin-bottom: 3px;
}

.viewdf521-secintro {
  font-size: 13px;
  color: rgba(233, 246, 246, 0.82);
  margin: 0 0 12px;
}

.viewdf521-secintro a { border-bottom: 1px dotted var(--viewdf521-ice-dim); }

/* ---------- Hero ---------- */
.viewdf521-hero {
  margin: 0 0 18px;
  animation: viewdf521-rise 0.5s ease both;
}

.viewdf521-h1 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 2px 0 8px;
  text-transform: lowercase;
}

.viewdf521-heroline {
  font-size: 13px;
  color: rgba(233, 246, 246, 0.85);
  max-width: 34ch;
  margin-bottom: 12px;
}

.viewdf521-heroline strong { color: var(--viewdf521-ice); font-weight: 600; }

/* Carousel */
.viewdf521-carousel {
  position: relative;
  border-radius: var(--viewdf521-radius);
  overflow: hidden;
  border: 1px solid var(--viewdf521-line);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.viewdf521-slidewrap {
  display: flex;
  transition: transform 0.32s ease;
  touch-action: pan-y;
}

.viewdf521-slide {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  padding: 0;
}

.viewdf521-slide img {
  width: 100%;
  aspect-ratio: 430 / 172;
  object-fit: cover;
}

.viewdf521-slidedots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.viewdf521-dot {
  width: 22px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(233, 246, 246, 0.34);
  transition: background 0.2s ease, transform 0.2s ease;
}

.viewdf521-dot.viewdf521-on {
  background: var(--viewdf521-ice);
  transform: scaleY(1.25);
}

/* ---------- CTA (full-width primary) ---------- */
.viewdf521-cta {
  display: block;
  width: 100%;
  min-height: 50px;
  margin: 14px 0 4px;
  border-radius: var(--viewdf521-radius);
  background: linear-gradient(160deg, var(--viewdf521-brown-hi) 0%, var(--viewdf521-brown) 55%, var(--viewdf521-brown-lo) 100%);
  color: #fff;
  font-family: var(--viewdf521-font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 5px 16px rgba(139, 69, 19, 0.42);
  transition: transform 0.16s ease, filter 0.2s ease;
}

.viewdf521-cta:hover { filter: brightness(1.08); }
.viewdf521-cta:active { transform: scale(0.98); }

.viewdf521-ctasub {
  text-align: center;
  font-size: 11px;
  color: rgba(233, 246, 246, 0.6);
  letter-spacing: 0.4px;
}

/* ---------- Trust chips ---------- */
.viewdf521-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0 4px;
}

.viewdf521-chip {
  background: var(--viewdf521-panel);
  border: 1px solid var(--viewdf521-line);
  border-radius: var(--viewdf521-radius);
  padding: 8px 6px;
  text-align: center;
}

.viewdf521-chip b {
  display: block;
  font-family: var(--viewdf521-font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--viewdf521-ice);
}

.viewdf521-chip small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: rgba(233, 246, 246, 0.6);
  margin-top: 2px;
}

/* ---------- Game grid (pure image card + short name) ---------- */
.viewdf521-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 7px;
}

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

.viewdf521-gcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: var(--viewdf521-tap);
  padding: 0;
  border-radius: var(--viewdf521-radius);
  text-align: center;
  transition: transform 0.16s ease;
}

.viewdf521-gcard:active { transform: scale(0.93); }

.viewdf521-gcard img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--viewdf521-radius);
  border: 1px solid var(--viewdf521-line);
  background: var(--viewdf521-panel);
  margin-bottom: 5px;
}

.viewdf521-gname {
  font-size: 10.5px;
  line-height: 1.25;
  color: rgba(233, 246, 246, 0.86);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.viewdf521-gcard:hover .viewdf521-gname { color: var(--viewdf521-ice); }

/* ---------- Editorial blocks (short paragraphs + lists) ---------- */
.viewdf521-note {
  background: var(--viewdf521-panel);
  border: 1px solid var(--viewdf521-line);
  border-left: 3px solid var(--viewdf521-brown);
  border-radius: var(--viewdf521-radius);
  padding: 12px;
  margin: 0 0 12px;
}

.viewdf521-note p { font-size: 13px; }

.viewdf521-points li {
  position: relative;
  padding: 0 0 8px 20px;
  font-size: 13px;
  color: rgba(233, 246, 246, 0.86);
}

.viewdf521-points li:last-child { padding-bottom: 0; }

.viewdf521-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--viewdf521-ice);
  transform: rotate(45deg);
}

.viewdf521-points strong, .viewdf521-note strong { color: var(--viewdf521-ice); font-weight: 600; }

/* Steps */
.viewdf521-steps { counter-reset: viewdf521-step; }

.viewdf521-steps li {
  counter-increment: viewdf521-step;
  position: relative;
  padding: 0 0 10px 38px;
  font-size: 13px;
  color: rgba(233, 246, 246, 0.86);
}

.viewdf521-steps li:last-child { padding-bottom: 0; }

.viewdf521-steps li::before {
  content: counter(viewdf521-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--viewdf521-radius-sm);
  background: var(--viewdf521-brown);
  color: #fff;
  font-family: var(--viewdf521-font-head);
  font-size: 11px;
  font-weight: 700;
}

/* Checklist */
.viewdf521-checks li {
  position: relative;
  padding: 9px 10px 9px 38px;
  margin-bottom: 7px;
  background: var(--viewdf521-panel);
  border: 1px solid var(--viewdf521-line);
  border-radius: var(--viewdf521-radius);
  font-size: 13px;
  color: rgba(233, 246, 246, 0.88);
}

.viewdf521-checks li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  border: 2px solid var(--viewdf521-ice-dim);
  border-radius: 4px;
}

.viewdf521-checks strong { color: var(--viewdf521-ice); font-weight: 600; }

/* FAQ (native details) */
.viewdf521-faq { border: 1px solid var(--viewdf521-line); border-radius: var(--viewdf521-radius); overflow: hidden; }

.viewdf521-faq details { border-bottom: 1px solid var(--viewdf521-line); background: var(--viewdf521-panel); }
.viewdf521-faq details:last-child { border-bottom: 0; }

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

.viewdf521-faq summary::-webkit-details-marker { display: none; }

.viewdf521-faq summary::after {
  content: "+";
  font-family: var(--viewdf521-font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--viewdf521-brown-hi);
  transition: transform 0.2s ease;
}

.viewdf521-faq details[open] summary::after { transform: rotate(45deg); }

.viewdf521-faq .viewdf521-ans {
  padding: 0 12px 12px;
  font-size: 12.5px;
  color: rgba(233, 246, 246, 0.8);
}

.viewdf521-ans a { border-bottom: 1px dotted var(--viewdf521-ice-dim); }

/* Inline promo link in body copy */
.viewdf521-inlink {
  color: #ffd9a8;
  font-weight: 600;
  border-bottom: 1px dashed rgba(255, 217, 168, 0.6);
  cursor: pointer;
}

.viewdf521-inlink:hover { color: #ffe9c9; }

/* ---------- Extended footer (two-column directory) ---------- */
.viewdf521-xfoot {
  margin: 26px -12px 0;
  padding: 20px 14px 14px;
  border-top: 1px solid var(--viewdf521-line);
  background: var(--viewdf521-panel);
}

.viewdf521-xfoot-label {
  font-family: var(--viewdf521-font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(175, 238, 238, 0.55);
  margin: 0 0 8px;
}

.viewdf521-xfoot-brand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.viewdf521-xfoot-brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--viewdf521-radius);
  border: 1px solid var(--viewdf521-ice-faint);
}

.viewdf521-xfoot-brand p {
  font-size: 12px;
  color: rgba(233, 246, 246, 0.78);
  margin: 0;
}

.viewdf521-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px;
}

.viewdf521-dir a {
  display: block;
  min-height: 44px;
  padding: 8px 9px;
  border: 1px solid var(--viewdf521-line);
  border-radius: var(--viewdf521-radius);
  background: var(--viewdf521-panel-2);
  font-size: 11.5px;
  line-height: 1.3;
  color: rgba(233, 246, 246, 0.88);
}

.viewdf521-dir a:hover { text-decoration: none; border-color: var(--viewdf521-ice-dim); color: var(--viewdf521-ice); }

.viewdf521-dir b {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(175, 238, 238, 0.55);
  margin-bottom: 2px;
}

/* Five descriptive promo actions */
.viewdf521-promos {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.viewdf521-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border-radius: var(--viewdf521-radius);
  background: linear-gradient(150deg, rgba(139, 69, 19, 0.85), rgba(109, 54, 16, 0.92));
  border: 1px solid rgba(175, 238, 238, 0.22);
  color: #fff;
  text-align: left;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.viewdf521-promo:active { transform: scale(0.98); }
.viewdf521-promo:hover { filter: brightness(1.08); }

.viewdf521-promo b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.viewdf521-promo small {
  display: block;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.78);
}

.viewdf521-promo i {
  font-style: normal;
  font-family: var(--viewdf521-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffd9a8;
  white-space: nowrap;
}

.viewdf521-disclaim {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(233, 246, 246, 0.58);
  border-top: 1px dashed var(--viewdf521-line);
  padding-top: 12px;
}

/* ---------- Common footer ---------- */
.viewdf521-foot {
  padding: 14px 12px 90px;
  text-align: center;
  border-top: 1px solid var(--viewdf521-line);
}

.viewdf521-foot p {
  font-size: 11px;
  color: rgba(233, 246, 246, 0.55);
  margin: 0;
  letter-spacing: 0.3px;
}

/* ---------- Bottom action bar (5 roles) ---------- */
.viewdf521-bnav {
  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(26, 37, 49, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--viewdf521-line);
  padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
}

.viewdf521-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 4px 2px;
  border-radius: var(--viewdf521-radius);
  color: rgba(233, 246, 246, 0.62);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.2s ease, transform 0.18s ease, background 0.2s ease;
}

.viewdf521-bnav-item:hover { text-decoration: none; color: var(--viewdf521-ice); }

.viewdf521-bnav-item:active { transform: translateY(1px) scale(0.94); }

.viewdf521-bnav-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill 0.2s ease, transform 0.2s ease, stroke 0.2s ease;
}

.viewdf521-bnav-item.viewdf521-active {
  color: var(--viewdf521-ice);
  background: linear-gradient(180deg, rgba(175, 238, 238, 0.10), rgba(175, 238, 238, 0.02));
}

.viewdf521-bnav-item.viewdf521-active svg {
  fill: var(--viewdf521-ice);
  stroke: var(--viewdf521-ice);
  transform: translateY(-1.5px);
}

/* ---------- Motion ---------- */
@keyframes viewdf521-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.viewdf521-sec { animation: viewdf521-rise 0.4s ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viewdf521-sec, .viewdf521-hero { animation: none; }
  .viewdf521-slidewrap, .viewdf521-bnav-item svg { transition: none; }
}

/* ---------- Wide-screen note ---------- */
@media (min-width: 431px) {
  body::before {
    content: "";
    position: fixed;
    top: 8px;
    left: 12px;
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(175, 238, 238, 0.35);
    z-index: 1;
  }
}

/* ---------- Small phone hardening ---------- */
@media (max-width: 339px) {
  .viewdf521-brandname { font-size: 13.5px; }
  .viewdf521-h1 { font-size: 21px; }
  .viewdf521-grid { gap: 6px 5px; }
  .viewdf521-gname { font-size: 10px; }
  .viewdf521-chips { grid-template-columns: 1fr 1fr; }
}
