/* ==========================================================================
   bd3333.cyou - mobile-first visual system
   Phone canvas: 320px up to 430px, centered as a framed canvas on wide screens
   Class + variable prefix: c706f3-
   Palette base: charcoal #333333 family, mint #98FB98, spring #00FF7F,
   sand #F4A460, leaf #90EE90, slate #6C757D
   ========================================================================== */

:root {
  --c706f3-bg: #2f2f2f;
  --c706f3-bg-deep: #232323;
  --c706f3-zone: #373737;
  --c706f3-panel: #3d3d3d;
  --c706f3-panel-hi: #464646;
  --c706f3-line: #4e4e4e;
  --c706f3-line-soft: #444444;
  --c706f3-text: #eef7ee;
  --c706f3-soft: #c3cfc0;
  --c706f3-mint: #98fb98;
  --c706f3-spring: #00ff7f;
  --c706f3-spring-dim: #0ec274;
  --c706f3-spring-ink: #062a18;
  --c706f3-leaf: #90ee90;
  --c706f3-sand: #f4a460;
  --c706f3-sand-deep: #c97f3d;
  --c706f3-slate: #6c757d;
  --c706f3-radius-xs: 3px;
  --c706f3-radius: 6px;
  --c706f3-radius-lg: 10px;
  --c706f3-head-font: 'Noto Serif Bengali', 'Noto Serif', Georgia, serif;
  --c706f3-body-font: 'Noto Sans Bengali', 'SolaimanLipi', 'Segoe UI', Arial, sans-serif;
  --c706f3-topbar-h: 106px;
  --c706f3-bottomnav-h: 66px;
  --c706f3-max-canvas: 480px;
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: #1a1a1a;
  background-image: linear-gradient(180deg, #202020 0%, #161616 100%);
  color: var(--c706f3-text);
  font-family: var(--c706f3-body-font);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

a { color: var(--c706f3-leaf); }

h1, h2, h3 {
  font-family: var(--c706f3-head-font);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

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

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

:focus-visible {
  outline: 2px solid var(--c706f3-spring);
  outline-offset: 2px;
  border-radius: var(--c706f3-radius-xs);
}

::selection { background: var(--c706f3-spring); color: #10240f; }

.c706f3-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- phone canvas shell ---------- */

.c706f3-shell {
  position: relative;
  max-width: var(--c706f3-max-canvas);
  margin: 0 auto;
  background: var(--c706f3-bg);
  min-height: 100vh;
  box-shadow: 0 0 46px rgba(0, 0, 0, .6);
  overflow-x: clip;
}

/* ---------- fixed top identity bar ---------- */

.c706f3-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 40;
  background: linear-gradient(180deg, #292929 0%, #2d2d2d 100%);
  border-bottom: 1px solid var(--c706f3-line);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .35);
}

.c706f3-idrow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 7px 10px;
}

.c706f3-menubtn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c706f3-line);
  border-radius: var(--c706f3-radius);
  background: var(--c706f3-zone);
  color: var(--c706f3-mint);
}

.c706f3-menubtn svg { width: 20px; height: 20px; }

.c706f3-menubtn:active { background: var(--c706f3-panel-hi); }

.c706f3-brand {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.c706f3-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--c706f3-line);
  background: #1f1f1f;
}

.c706f3-brand span {
  font-family: var(--c706f3-head-font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--c706f3-mint);
}

.c706f3-login {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--c706f3-spring-dim);
  border-radius: var(--c706f3-radius);
  color: var(--c706f3-spring);
  font-size: 13px;
  font-weight: 700;
  background: rgba(0, 255, 127, .06);
}

.c706f3-actionrow {
  display: flex;
  padding: 0 10px 9px;
}

.c706f3-register {
  flex: 1 1 auto;
  min-height: 44px;
  border-radius: var(--c706f3-radius);
  background: linear-gradient(135deg, var(--c706f3-spring) 0%, var(--c706f3-leaf) 100%);
  color: #0a2413;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 4px 12px rgba(0, 255, 127, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}

.c706f3-register:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 255, 127, .18);
}

/* ---------- in-flow category chip rail ---------- */

.c706f3-chiprail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 10px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.c706f3-chiprail::-webkit-scrollbar { display: none; }

.c706f3-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--c706f3-line);
  border-radius: var(--c706f3-radius-xs);
  background: var(--c706f3-zone);
  color: var(--c706f3-soft);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}

.c706f3-chip svg { width: 14px; height: 14px; color: var(--c706f3-sand); }

.c706f3-chip:active { border-color: var(--c706f3-spring-dim); color: var(--c706f3-mint); }

/* ---------- slide-up route sheet ---------- */

.c706f3-veil {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(12, 12, 12, .68);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.c706f3-veil.c706f3-is-open { opacity: 1; visibility: visible; }

.c706f3-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 102%);
  width: 100%;
  max-width: 480px;
  max-height: 78vh;
  overflow-y: auto;
  z-index: 60;
  background: var(--c706f3-bg-deep);
  border-top: 2px solid var(--c706f3-spring-dim);
  border-radius: 16px 16px 0 0;
  padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
  transition: transform .26s ease;
}

.c706f3-sheet.c706f3-is-open { transform: translate(-50%, 0); }

.c706f3-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.c706f3-sheet-head strong {
  font-family: var(--c706f3-head-font);
  font-size: 16px;
  color: var(--c706f3-mint);
}

.c706f3-sheet-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c706f3-line);
  border-radius: var(--c706f3-radius);
  color: var(--c706f3-soft);
}

.c706f3-sheet-close svg { width: 18px; height: 18px; }

.c706f3-sheet-group { margin: 12px 0 4px; }

.c706f3-sheet-group h3 {
  font-size: 12px;
  font-weight: 500;
  font-family: var(--c706f3-body-font);
  color: var(--c706f3-sand);
  text-transform: none;
  letter-spacing: .4px;
  margin: 0 0 6px;
}

.c706f3-sheet-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--c706f3-line-soft);
  border-radius: var(--c706f3-radius);
  background: var(--c706f3-zone);
  color: var(--c706f3-text);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 6px;
  transition: border-color .18s ease;
}

.c706f3-sheet-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--c706f3-spring-dim);
}

.c706f3-sheet-link:active { border-color: var(--c706f3-spring-dim); }

.c706f3-sheet-link[aria-current="page"] {
  border-color: var(--c706f3-spring-dim);
  color: var(--c706f3-mint);
  background: rgba(0, 255, 127, .05);
}

/* ---------- main column ---------- */

.c706f3-main {
  padding: calc(var(--c706f3-topbar-h) + 6px) 0 calc(var(--c706f3-bottomnav-h) + 34px);
}

.c706f3-lede {
  padding: 14px 14px 4px;
}

.c706f3-lede h1 {
  font-size: 21px;
  color: var(--c706f3-mint);
  margin-bottom: 8px;
}

.c706f3-lede p {
  color: var(--c706f3-soft);
  font-size: 13.5px;
}

/* ---------- hero banner carousel ---------- */

.c706f3-hero {
  position: relative;
  margin: 12px 10px 4px;
  border-radius: var(--c706f3-radius-lg);
  overflow: hidden;
  border: 1px solid var(--c706f3-line);
  background: var(--c706f3-bg-deep);
}

.c706f3-hero-frame {
  position: relative;
  aspect-ratio: 2 / 1;
  min-height: 158px;
}

.c706f3-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity .38s ease, transform .38s ease;
  pointer-events: none;
  display: block;
  width: 100%;
  height: 100%;
  text-align: left;
}

.c706f3-hero-slide.c706f3-is-on {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

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

.c706f3-hero-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 30px 12px 10px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(18, 18, 18, .92) 78%);
}

.c706f3-hero-cap span {
  flex: 1 1 auto;
  font-family: var(--c706f3-head-font);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c706f3-text);
  line-height: 1.45;
}

.c706f3-hero-cta {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--c706f3-radius-xs);
  background: var(--c706f3-sand);
  color: #33200c;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.c706f3-hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 9px;
  background: var(--c706f3-bg-deep);
}

.c706f3-hero-dot {
  width: 26px;
  height: 6px;
  border-radius: 3px;
  background: var(--c706f3-line);
  transition: background .2s ease;
}

.c706f3-hero-dot.c706f3-is-on { background: var(--c706f3-spring); }

/* ---------- content zones (sectioned layout, low radius) ---------- */

.c706f3-zone {
  margin: 18px 10px 0;
  padding: 14px 12px 16px;
  background: var(--c706f3-zone);
  border: 1px solid var(--c706f3-line-soft);
  border-left: 3px solid var(--c706f3-spring-dim);
  border-radius: var(--c706f3-radius);
}

.c706f3-zone-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--c706f3-line);
}

.c706f3-zone-head h2 {
  flex: 1 1 auto;
  font-size: 17px;
  color: var(--c706f3-mint);
}

.c706f3-zone-head em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .6px;
  color: var(--c706f3-sand);
  border: 1px solid var(--c706f3-sand-deep);
  border-radius: var(--c706f3-radius-xs);
  padding: 2px 7px;
  white-space: nowrap;
}

.c706f3-zone-note {
  color: var(--c706f3-soft);
  font-size: 13px;
  margin: 0 0 12px;
}

/* ---------- featured game card (large card in the mixed card system) ---------- */

.c706f3-feat {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--c706f3-panel) 0%, #353535 100%);
  border: 1px solid var(--c706f3-line);
  border-radius: var(--c706f3-radius);
  position: relative;
  overflow: hidden;
  transition: border-color .18s ease;
}

.c706f3-feat:active { border-color: var(--c706f3-spring-dim); }

.c706f3-feat::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 74px; height: 74px;
  background: radial-gradient(circle at top right, rgba(244, 164, 96, .22), rgba(244, 164, 96, 0) 70%);
  pointer-events: none;
}

.c706f3-feat img {
  flex: 0 0 auto;
  width: 86px;
  height: 86px;
  border-radius: var(--c706f3-radius);
  border: 1px solid var(--c706f3-line);
  background: #262626;
}

.c706f3-feat-body { flex: 1 1 auto; min-width: 0; }

.c706f3-feat-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .5px;
  color: var(--c706f3-sand);
  border: 1px solid var(--c706f3-sand-deep);
  border-radius: var(--c706f3-radius-xs);
  padding: 1px 6px;
  margin-bottom: 5px;
}

.c706f3-feat-body strong {
  display: block;
  font-family: var(--c706f3-head-font);
  font-size: 16.5px;
  color: var(--c706f3-text);
  margin-bottom: 4px;
  overflow-wrap: break-word;
}

.c706f3-feat-body small {
  display: block;
  font-size: 12px;
  color: var(--c706f3-soft);
  line-height: 1.55;
  margin-bottom: 8px;
}

.c706f3-feat-cta {
  display: inline-block;
  min-height: 38px;
  line-height: 38px;
  padding: 0 16px;
  border-radius: var(--c706f3-radius-xs);
  background: var(--c706f3-spring);
  color: var(--c706f3-spring-ink);
  font-size: 13px;
  font-weight: 700;
}

/* ---------- compact game grid (small cards, 4 cols on narrow canvas) ---------- */

.c706f3-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.c706f3-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 5px 7px;
  background: var(--c706f3-panel);
  border: 1px solid var(--c706f3-line-soft);
  border-radius: var(--c706f3-radius);
  text-align: center;
  min-width: 0;
  transition: border-color .16s ease, transform .16s ease;
}

.c706f3-cell:active {
  border-color: var(--c706f3-spring-dim);
  transform: translateY(-1px);
}

.c706f3-cell img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--c706f3-radius-xs);
  background: #262626;
}

.c706f3-cell span {
  font-size: 10.8px;
  line-height: 1.35;
  color: var(--c706f3-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  min-height: 29px;
}

/* ---------- related internal pages under each category ---------- */

.c706f3-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--c706f3-line);
}

.c706f3-related span {
  flex: 1 0 100%;
  font-size: 11px;
  color: var(--c706f3-slate);
  letter-spacing: .4px;
}

.c706f3-related a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--c706f3-line);
  border-radius: var(--c706f3-radius-xs);
  background: rgba(144, 238, 144, .05);
  color: var(--c706f3-leaf);
  text-decoration: none;
  font-size: 12px;
}

.c706f3-related a svg { width: 13px; height: 13px; color: var(--c706f3-sand); }

/* ---------- prose modules ---------- */

.c706f3-prose p {
  font-size: 13.5px;
  color: var(--c706f3-text);
}

.c706f3-prose h3 {
  font-size: 14.5px;
  color: var(--c706f3-leaf);
  margin: 14px 0 6px;
}

/* scene-branched step list with connector rail */
.c706f3-steps {
  list-style: none;
  counter-reset: c706f3step;
}

.c706f3-steps li {
  counter-increment: c706f3step;
  position: relative;
  padding: 0 0 14px 38px;
  font-size: 13.5px;
  color: var(--c706f3-text);
}

.c706f3-steps li::before {
  content: counter(c706f3step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  background: var(--c706f3-panel-hi);
  border: 1px solid var(--c706f3-spring-dim);
  color: var(--c706f3-spring);
  font-size: 12px;
  font-weight: 700;
}

.c706f3-steps li::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 1px;
  background: var(--c706f3-line);
}

.c706f3-steps li:last-child { padding-bottom: 2px; }
.c706f3-steps li:last-child::after { display: none; }

.c706f3-tips {
  list-style: none;
}

.c706f3-tips li {
  position: relative;
  padding: 9px 10px 9px 34px;
  margin-bottom: 8px;
  background: var(--c706f3-panel);
  border: 1px solid var(--c706f3-line-soft);
  border-radius: var(--c706f3-radius);
  font-size: 13px;
  color: var(--c706f3-text);
}

.c706f3-tips li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--c706f3-sand);
}

/* compact question / answer pairs */
.c706f3-qa {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--c706f3-panel);
  border: 1px solid var(--c706f3-line-soft);
  border-radius: var(--c706f3-radius);
}

.c706f3-qa h3 {
  font-size: 13.5px;
  color: var(--c706f3-sand);
  margin-bottom: 4px;
}

.c706f3-qa p {
  font-size: 13px;
  color: var(--c706f3-soft);
  margin: 0;
}

/* comparison table */
.c706f3-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 4px;
}

.c706f3-compare th,
.c706f3-compare td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid var(--c706f3-line-soft);
  vertical-align: top;
  overflow-wrap: break-word;
}

.c706f3-compare th {
  color: var(--c706f3-sand);
  font-weight: 700;
  font-size: 12px;
  border-bottom: 1px solid var(--c706f3-line);
}

.c706f3-compare td:first-child {
  color: var(--c706f3-mint);
  font-weight: 500;
  white-space: normal;
}

/* ---------- extended footer (homepage only) ---------- */

.c706f3-xfoot {
  margin: 18px 10px 0;
  border: 1px solid var(--c706f3-line);
  border-radius: var(--c706f3-radius);
  background: var(--c706f3-bg-deep);
  padding: 14px 12px;
}

.c706f3-xfoot h2 {
  font-size: 16px;
  color: var(--c706f3-mint);
  margin-bottom: 10px;
}

.c706f3-xfoot h3 {
  font-size: 13px;
  font-family: var(--c706f3-body-font);
  color: var(--c706f3-sand);
  margin: 14px 0 8px;
  letter-spacing: .3px;
}

.c706f3-xpromos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.c706f3-xpromo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 9px 10px;
  border-radius: var(--c706f3-radius);
  background: linear-gradient(135deg, rgba(0, 255, 127, .12), rgba(144, 238, 144, .05));
  border: 1px solid var(--c706f3-spring-dim);
  color: var(--c706f3-text);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
  transition: transform .16s ease;
}

.c706f3-xpromo:active { transform: translateY(1px); }

.c706f3-xpromo svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--c706f3-spring);
}

.c706f3-xbrand {
  font-size: 13px;
  color: var(--c706f3-soft);
  border-top: 1px dashed var(--c706f3-line);
  padding-top: 10px;
}

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

.c706f3-dir a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 10px;
  background: var(--c706f3-zone);
  border: 1px solid var(--c706f3-line-soft);
  border-radius: var(--c706f3-radius);
  text-decoration: none;
  color: var(--c706f3-text);
  font-size: 13px;
}

.c706f3-dir a svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--c706f3-spring-dim);
}

.c706f3-dir a small {
  display: block;
  color: var(--c706f3-slate);
  font-size: 11px;
  line-height: 1.4;
}

.c706f3-dir a b {
  font-weight: 500;
}

.c706f3-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--c706f3-sand);
  background: rgba(244, 164, 96, .07);
  border-radius: var(--c706f3-radius-xs);
  font-size: 12px;
  color: var(--c706f3-soft);
}

/* ---------- common page footer ---------- */

.c706f3-pagefoot {
  margin: 16px 10px 0;
  padding: 12px 0 4px;
  border-top: 1px solid var(--c706f3-line-soft);
  text-align: center;
  color: var(--c706f3-slate);
  font-size: 11.5px;
}

/* ---------- layered fixed bottom navigation ---------- */

.c706f3-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: linear-gradient(180deg, #2a2a2a 0%, #202020 100%);
  border-top: 1px solid var(--c706f3-line);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .4);
  padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
}

.c706f3-bottomnav::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 22%;
  right: 22%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 255, 127, 0), rgba(0, 255, 127, .5), rgba(0, 255, 127, 0));
}

.c706f3-bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 4px 2px;
  color: var(--c706f3-slate);
  text-decoration: none;
  border-radius: var(--c706f3-radius-xs);
  position: relative;
}

.c706f3-bn-item svg {
  width: 21px;
  height: 21px;
  transition: transform .18s ease;
}

.c706f3-bn-item span {
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

/* active state: color switch + icon lift + indicator dot */
.c706f3-bn-item[aria-current="page"] { color: var(--c706f3-spring); }

.c706f3-bn-item[aria-current="page"] svg { transform: translateY(-2px); }

.c706f3-bn-item[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c706f3-spring);
}

.c706f3-bn-item:active { color: var(--c706f3-leaf); }

/* ---------- responsive tuning inside the phone canvas ---------- */

/* 430px and up: wider canvas breathes, game grid gains a fifth column */
@media (min-width: 430px) {
  .c706f3-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .c706f3-lede h1 { font-size: 23px; }
  .c706f3-zone-head h2 { font-size: 18px; }
  .c706f3-hero-frame { aspect-ratio: 21 / 9; min-height: 178px; }
  .c706f3-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c706f3-cell span { font-size: 11.2px; }
}

/* slightly larger phones: featured art grows with the canvas */
@media (min-width: 375px) {
  .c706f3-feat img { width: 96px; height: 96px; }
  .c706f3-xpromos { gap: 10px; }
}

/* very narrow canvas: keep everything reachable, nothing may overlap */
@media (max-width: 359px) {
  .c706f3-grid { gap: 6px; }
  .c706f3-feat img { width: 76px; height: 76px; }
  .c706f3-brand span { font-size: 18px; }
  .c706f3-login { padding: 8px 10px; font-size: 12px; }
  .c706f3-lede h1 { font-size: 19px; }
}

/* ---------- motion preferences ---------- */

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