/* ==========================================================================
   kirkira.sbs - tokens-adaptive-9581b2.css
   Mobile-first stylesheet tuned for a 320-430px phone canvas.
   Palette: #0D1117 base / #00FF00 acid / #006400 forest / #808080 slate
            #800080 violet / #DA70D6 orchid
   All classes and custom properties use the surface581b2- prefix.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --surface581b2-bg: #0d1117;
  --surface581b2-bg-deep: #080b10;
  --surface581b2-page: #05070b;
  --surface581b2-panel: #10161d;
  --surface581b2-panel-2: #151d26;
  --surface581b2-line: #223041;
  --surface581b2-line-soft: #1a2531;
  --surface581b2-acid: #00ff00;
  --surface581b2-acid-dim: #15c515;
  --surface581b2-forest: #006400;
  --surface581b2-forest-glow: rgba(0, 100, 0, 0.38);
  --surface581b2-slate: #808080;
  --surface581b2-mist: #b9c4cf;
  --surface581b2-violet: #800080;
  --surface581b2-orchid: #da70d6;
  --surface581b2-ink-on-acid: #06210a;
  --surface581b2-text: #e8eef4;

  --surface581b2-font-head: "Avenir Next", "Seravek", "Trebuchet MS",
    "Noto Sans Bengali", "Hind Siliguri", sans-serif;
  --surface581b2-font-body: "Noto Sans Bengali", "Hind Siliguri", "Segoe UI",
    system-ui, -apple-system, sans-serif;

  --surface581b2-r-xs: 6px;
  --surface581b2-r-sm: 9px;
  --surface581b2-r-md: 12px;
  --surface581b2-r-lg: 16px;

  --surface581b2-top-h: 58px;
  --surface581b2-dock-h: 88px;
  --surface581b2-pad: 12px;
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(520px 340px at 12% -6%, rgba(128, 0, 128, 0.16), transparent 62%),
    radial-gradient(560px 380px at 96% 12%, rgba(0, 100, 0, 0.14), transparent 60%),
    var(--surface581b2-page);
  color: var(--surface581b2-text);
  font-family: var(--surface581b2-font-body);
  font-size: 15px;
  line-height: 1.72;
  overflow-x: hidden;
}

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

a {
  color: var(--surface581b2-orchid);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1, h2, h3 {
  font-family: var(--surface581b2-font-head);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--surface581b2-text);
}

p {
  margin: 0 0 10px;
}

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

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

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

/* --------------------------------------------------------------------------
   3. Phone canvas
   -------------------------------------------------------------------------- */
.surface581b2-shell {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--surface581b2-bg);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.65);
}

.surface581b2-main {
  padding-top: calc(var(--surface581b2-top-h) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--surface581b2-dock-h) + 22px + env(safe-area-inset-bottom, 0px));
}

/* --------------------------------------------------------------------------
   4. Top compact brand bar
   -------------------------------------------------------------------------- */
.surface581b2-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--surface581b2-top-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: var(--surface581b2-pad);
  padding-right: var(--surface581b2-pad);
  background: rgba(8, 11, 16, 0.97);
  border-bottom: 1px solid var(--surface581b2-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 80;
}

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

.surface581b2-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--surface581b2-r-sm);
  border: 1px solid var(--surface581b2-forest-glow);
  object-fit: cover;
  flex: 0 0 auto;
}

.surface581b2-brandname {
  font-family: var(--surface581b2-font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--surface581b2-text);
  white-space: nowrap;
}

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

/* Primary register: larger, acid fill. Secondary login: outlined, smaller. */
.surface581b2-register {
  min-height: 44px;
  padding: 9px 15px;
  border-radius: var(--surface581b2-r-md);
  background: linear-gradient(135deg, var(--surface581b2-acid) 0%, #22c322 100%);
  color: var(--surface581b2-ink-on-acid);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.surface581b2-register:hover {
  text-decoration: none;
  box-shadow: 0 0 14px rgba(0, 255, 0, 0.35);
}

.surface581b2-register:active {
  transform: scale(0.97);
  box-shadow: 0 0 18px rgba(0, 255, 0, 0.5);
}

.surface581b2-login {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--surface581b2-r-sm);
  border: 1px solid var(--surface581b2-line);
  color: var(--surface581b2-mist);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.surface581b2-login:hover {
  text-decoration: none;
  border-color: var(--surface581b2-orchid);
  color: var(--surface581b2-orchid);
}

.surface581b2-menubtn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--surface581b2-r-sm);
  border: 1px solid var(--surface581b2-line);
  color: var(--surface581b2-mist);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.surface581b2-menubtn:hover,
.surface581b2-menuOpen {
  border-color: var(--surface581b2-acid);
  color: var(--surface581b2-acid);
}

.surface581b2-menuOpen .surface581b2-icoMenu {
  transform: rotate(90deg);
}

.surface581b2-icoMenu {
  transition: transform 0.25s ease;
}

/* --------------------------------------------------------------------------
   5. Layered dropdown menu
   -------------------------------------------------------------------------- */
.surface581b2-dropmenu {
  position: fixed;
  top: calc(var(--surface581b2-top-h) + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  max-height: calc(100vh - var(--surface581b2-top-h));
  overflow-y: auto;
  padding: 14px var(--surface581b2-pad) 20px;
  background: linear-gradient(180deg, #0b1016 0%, #090d13 100%);
  border-bottom: 1px solid var(--surface581b2-line);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.55);
  z-index: 90;
  animation: surface581b2-dropIn 0.28s ease both;
}

@keyframes surface581b2-dropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.surface581b2-menulayer {
  margin-bottom: 16px;
}

.surface581b2-menulayertag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(218, 112, 214, 0.4);
  color: var(--surface581b2-orchid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

.surface581b2-menulink {
  display: block;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--surface581b2-line-soft);
  border-left: 3px solid var(--surface581b2-forest);
  border-radius: var(--surface581b2-r-sm);
  background: var(--surface581b2-panel);
  color: var(--surface581b2-mist);
  font-size: 12.5px;
  line-height: 1.45;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.surface581b2-menulink:hover {
  text-decoration: none;
  border-left-color: var(--surface581b2-acid);
  color: var(--surface581b2-text);
  background: var(--surface581b2-panel-2);
}

.surface581b2-menulink span {
  display: block;
  font-size: 10.5px;
  color: var(--surface581b2-slate);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.surface581b2-hero {
  position: relative;
  padding: 18px var(--surface581b2-pad) 14px;
  background:
    radial-gradient(300px 190px at 88% 0%, rgba(218, 112, 214, 0.16), transparent 68%),
    radial-gradient(280px 170px at 4% 12%, rgba(0, 255, 0, 0.09), transparent 66%),
    linear-gradient(180deg, #0c1219 0%, var(--surface581b2-bg) 100%);
  border-bottom: 1px solid var(--surface581b2-line-soft);
}

.surface581b2-eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--surface581b2-forest-glow);
  border: 1px solid rgba(0, 255, 0, 0.22);
  color: var(--surface581b2-acid);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.surface581b2-hero h1 {
  font-size: 23px;
  line-height: 1.45;
  margin-bottom: 9px;
}

.surface581b2-heroMark {
  color: var(--surface581b2-acid);
}

.surface581b2-lede {
  color: var(--surface581b2-mist);
  font-size: 13.8px;
  line-height: 1.78;
}

.surface581b2-ctarow {
  display: flex;
  gap: 9px;
  margin: 14px 0 12px;
}

/* Staggered CTA sizes: wide primary, narrower secondary. */
.surface581b2-ctaprime {
  flex: 1.5;
  min-height: 52px;
  border-radius: var(--surface581b2-r-md);
  background: linear-gradient(135deg, var(--surface581b2-acid) 0%, #17a817 100%);
  color: var(--surface581b2-ink-on-acid);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 18px rgba(0, 255, 0, 0.16);
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.surface581b2-ctaprime:hover {
  text-decoration: none;
  box-shadow: 0 0 18px rgba(0, 255, 0, 0.4);
}

.surface581b2-ctaprime:active {
  transform: scale(0.98);
}

.surface581b2-ctasecond {
  flex: 1;
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: var(--surface581b2-r-md);
  border: 1px solid rgba(218, 112, 214, 0.55);
  color: var(--surface581b2-orchid);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.surface581b2-ctasecond:hover {
  text-decoration: none;
  background: rgba(218, 112, 214, 0.1);
  box-shadow: 0 0 12px rgba(218, 112, 214, 0.25);
}

.surface581b2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.surface581b2-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--surface581b2-line-soft);
  background: rgba(16, 22, 29, 0.8);
  color: var(--surface581b2-mist);
  font-size: 11px;
  font-weight: 600;
}

.surface581b2-chip b {
  color: var(--surface581b2-acid);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   7. Promo carousel
   -------------------------------------------------------------------------- */
.surface581b2-carousel {
  position: relative;
  margin: 14px var(--surface581b2-pad) 4px;
  border-radius: var(--surface581b2-r-lg);
  border: 1px solid var(--surface581b2-line);
  overflow: hidden;
  background: var(--surface581b2-panel);
}

.surface581b2-caroViewport {
  overflow: hidden;
  touch-action: pan-y;
}

.surface581b2-caroTrack {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.33, 0.9, 0.35, 1);
}

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

.surface581b2-caroSlide img {
  width: 100%;
  aspect-ratio: 2.12 / 1;
  object-fit: cover;
}

.surface581b2-caroCap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 7, 11, 0.9) 78%);
}

.surface581b2-caroCap strong {
  font-family: var(--surface581b2-font-head);
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}

.surface581b2-caroCap small {
  font-size: 11px;
  color: var(--surface581b2-acid);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.surface581b2-caroDots {
  position: absolute;
  right: 10px;
  bottom: 9px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.surface581b2-caroDot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.surface581b2-caroDot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  transition: background 0.25s ease, transform 0.25s ease;
}

.surface581b2-dotOn::after {
  background: var(--surface581b2-acid);
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

/* --------------------------------------------------------------------------
   8. Game areas - outlined tile cards
   -------------------------------------------------------------------------- */
.surface581b2-games {
  padding: 14px var(--surface581b2-pad) 6px;
  scroll-margin-top: calc(var(--surface581b2-top-h) + 10px);
}

.surface581b2-secHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.surface581b2-games h2 {
  position: relative;
  padding-left: 11px;
  font-size: 17px;
  line-height: 1.45;
  margin: 0;
}

.surface581b2-games h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--surface581b2-acid) 0%, var(--surface581b2-orchid) 100%);
}

.surface581b2-count {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(128, 0, 128, 0.22);
  border: 1px solid rgba(218, 112, 214, 0.35);
  color: var(--surface581b2-orchid);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.surface581b2-secIntro {
  color: var(--surface581b2-slate);
  font-size: 12.8px;
  line-height: 1.72;
  margin: 0 0 11px;
}

.surface581b2-secIntro a {
  color: var(--surface581b2-orchid);
  font-weight: 700;
}

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

.surface581b2-gtile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 4px 7px;
  border: 1px solid var(--surface581b2-line);
  border-radius: var(--surface581b2-r-sm);
  background: var(--surface581b2-panel);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.15s ease;
}

.surface581b2-gtile:hover {
  border-color: rgba(0, 255, 0, 0.55);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.14);
  text-decoration: none;
}

.surface581b2-gtile:active {
  transform: scale(0.96);
}

.surface581b2-gtile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--surface581b2-r-xs);
  border: 1px solid var(--surface581b2-forest-glow);
  background: #0a0f15;
}

.surface581b2-gname {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  text-align: center;
  font-size: 10.8px;
  line-height: 1.38;
  min-height: 2.76em;
  color: var(--surface581b2-mist);
  font-weight: 600;
  word-break: break-word;
}

/* Quick category jump chips */
.surface581b2-jump {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px var(--surface581b2-pad) 2px;
  scrollbar-width: none;
}

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

.surface581b2-jumpchip {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--surface581b2-line);
  background: var(--surface581b2-panel);
  color: var(--surface581b2-mist);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.surface581b2-jumpchip:hover {
  text-decoration: none;
  border-color: var(--surface581b2-acid);
  color: var(--surface581b2-acid);
}

.surface581b2-jumpdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   9. Content modules - varied shapes
   -------------------------------------------------------------------------- */
.surface581b2-module {
  padding: 18px var(--surface581b2-pad) 8px;
}

.surface581b2-module h2 {
  font-size: 16.5px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.surface581b2-modIntro {
  color: var(--surface581b2-mist);
  font-size: 13.2px;
  line-height: 1.75;
  margin-bottom: 13px;
}

.surface581b2-modIntro a,
.surface581b2-modbody a {
  color: var(--surface581b2-orchid);
  font-weight: 700;
}

/* 9a. Scenario branch rows (category highlights / selection guide) */
.surface581b2-branch {
  border-left: 3px solid var(--surface581b2-violet);
  border-radius: 0 var(--surface581b2-r-sm) var(--surface581b2-r-sm) 0;
  background: linear-gradient(90deg, rgba(128, 0, 128, 0.12) 0%, transparent 72%);
  padding: 10px 11px;
  margin-bottom: 9px;
}

.surface581b2-branchForest {
  border-left-color: var(--surface581b2-forest);
  background: linear-gradient(90deg, rgba(0, 100, 0, 0.18) 0%, transparent 72%);
}

.surface581b2-branchAcid {
  border-left-color: var(--surface581b2-acid-dim);
  background: linear-gradient(90deg, rgba(0, 255, 0, 0.08) 0%, transparent 72%);
}

.surface581b2-branchOrchid {
  border-left-color: var(--surface581b2-orchid);
  background: linear-gradient(90deg, rgba(218, 112, 214, 0.12) 0%, transparent 72%);
}

.surface581b2-branchIf {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--surface581b2-orchid);
  margin-bottom: 3px;
}

.surface581b2-branchForest .surface581b2-branchIf {
  color: #4cc94c;
}

.surface581b2-branchAcid .surface581b2-branchIf {
  color: var(--surface581b2-acid);
}

.surface581b2-branch p {
  margin: 0;
  color: var(--surface581b2-mist);
  font-size: 12.6px;
  line-height: 1.68;
}

.surface581b2-branch b {
  color: var(--surface581b2-text);
}

/* 9b. Numbered steps (mobile access) */
.surface581b2-steps {
  position: relative;
  counter-reset: surface581b2-step;
}

.surface581b2-steps li {
  position: relative;
  counter-increment: surface581b2-step;
  padding: 0 0 16px 44px;
}

.surface581b2-steps li::before {
  content: counter(surface581b2-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--surface581b2-acid-dim);
  background: var(--surface581b2-forest-glow);
  color: var(--surface581b2-acid);
  font-family: var(--surface581b2-font-head);
  font-size: 13px;
  font-weight: 800;
}

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

.surface581b2-steps li:last-child::after {
  display: none;
}

.surface581b2-steps b {
  display: block;
  font-size: 13px;
  color: var(--surface581b2-text);
}

.surface581b2-steps p {
  margin: 2px 0 0;
  color: var(--surface581b2-slate);
  font-size: 12.4px;
  line-height: 1.66;
}

/* 9c. Condition rows (payments) */
.surface581b2-cond {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--surface581b2-line-soft);
  border-radius: var(--surface581b2-r-md);
  background: var(--surface581b2-panel);
  margin-bottom: 9px;
}

.surface581b2-condIco {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(218, 112, 214, 0.4);
  color: var(--surface581b2-orchid);
  background: rgba(128, 0, 128, 0.14);
}

.surface581b2-cond b {
  display: block;
  font-size: 13px;
  color: var(--surface581b2-text);
  margin-bottom: 2px;
}

.surface581b2-cond p {
  margin: 0;
  color: var(--surface581b2-slate);
  font-size: 12.3px;
  line-height: 1.64;
}

/* 9d. Checklist */
.surface581b2-check {
  padding: 0 2px;
}

.surface581b2-check li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--surface581b2-line-soft);
  color: var(--surface581b2-mist);
  font-size: 12.8px;
  line-height: 1.66;
}

.surface581b2-check li:last-child {
  border-bottom: 0;
}

.surface581b2-check li::before {
  content: "\2713";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  margin-top: 3px;
  border: 1.5px solid var(--surface581b2-acid-dim);
  border-radius: var(--surface581b2-r-xs);
  background: var(--surface581b2-forest-glow);
  color: var(--surface581b2-acid);
  font-size: 11px;
  font-weight: 800;
}

/* 9e. Follow-up question blocks woven into modules */
.surface581b2-q {
  margin: 14px 0 0;
  padding: 12px 13px;
  border-radius: var(--surface581b2-r-md);
  border: 1px solid rgba(218, 112, 214, 0.3);
  background: linear-gradient(160deg, rgba(128, 0, 128, 0.12) 0%, rgba(13, 17, 23, 0.4) 70%);
}

.surface581b2-q h3 {
  font-size: 13.6px;
  color: var(--surface581b2-orchid);
  margin-bottom: 5px;
}

.surface581b2-q p {
  margin: 0;
  color: var(--surface581b2-mist);
  font-size: 12.6px;
  line-height: 1.7;
}

/* In-body promo text link */
.surface581b2-inlineCta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface581b2-forest-glow);
  border: 1px solid rgba(0, 255, 0, 0.35);
  color: var(--surface581b2-acid);
  font-size: 12.6px;
  font-weight: 800;
  transition: box-shadow 0.25s ease;
}

.surface581b2-inlineCta:hover {
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.3);
}

/* --------------------------------------------------------------------------
   10. Extended footer (sectioned list)
   -------------------------------------------------------------------------- */
.surface581b2-extfoot {
  margin-top: 20px;
  padding: 18px var(--surface581b2-pad) 10px;
  background: var(--surface581b2-bg-deep);
  border-top: 1px solid var(--surface581b2-line);
}

.surface581b2-extfoot h2 {
  font-size: 14.5px;
  margin-bottom: 4px;
  color: var(--surface581b2-acid);
}

.surface581b2-exttag {
  display: block;
  font-size: 10.5px;
  color: var(--surface581b2-slate);
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.surface581b2-dirgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.surface581b2-dirlink {
  display: block;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--surface581b2-line-soft);
  border-radius: var(--surface581b2-r-sm);
  background: #0b1017;
  color: var(--surface581b2-mist);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.surface581b2-dirlink:hover {
  text-decoration: none;
  border-color: var(--surface581b2-acid);
  color: var(--surface581b2-acid);
}

.surface581b2-dirlink small {
  display: block;
  font-size: 10.2px;
  font-weight: 500;
  color: var(--surface581b2-slate);
}

.surface581b2-brandnote {
  padding: 12px;
  border-radius: var(--surface581b2-r-md);
  border: 1px solid var(--surface581b2-line-soft);
  background: linear-gradient(140deg, rgba(0, 100, 0, 0.16) 0%, transparent 65%);
  margin-bottom: 18px;
}

.surface581b2-brandnote p {
  margin: 0;
  color: var(--surface581b2-mist);
  font-size: 12.2px;
  line-height: 1.7;
}

.surface581b2-brandnote .surface581b2-logoFoot {
  width: 30px;
  height: 30px;
  border-radius: var(--surface581b2-r-xs);
  border: 1px solid var(--surface581b2-forest-glow);
  object-fit: cover;
  margin-bottom: 8px;
}

.surface581b2-promolist li + li {
  margin-top: 8px;
}

.surface581b2-promoLink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--surface581b2-r-sm);
  border: 1px solid rgba(0, 255, 0, 0.24);
  background: linear-gradient(90deg, rgba(0, 100, 0, 0.2) 0%, rgba(13, 17, 23, 0.2) 100%);
  color: var(--surface581b2-text);
  font-size: 12.6px;
  font-weight: 700;
  text-align: left;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.surface581b2-promoLink:hover {
  text-decoration: none;
  border-color: var(--surface581b2-acid);
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.22);
}

.surface581b2-promoLink em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--surface581b2-acid);
  display: block;
}

.surface581b2-promoArrow {
  flex: 0 0 auto;
  color: var(--surface581b2-acid);
}

.surface581b2-disclaimer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--surface581b2-line-soft);
}

.surface581b2-disclaimer h2 {
  color: var(--surface581b2-orchid);
}

.surface581b2-disclaimer p {
  margin: 0;
  color: var(--surface581b2-slate);
  font-size: 11.2px;
  line-height: 1.68;
}

/* --------------------------------------------------------------------------
   11. Common footer + mobile dock
   -------------------------------------------------------------------------- */
.surface581b2-footer {
  padding: 14px var(--surface581b2-pad) 10px;
  text-align: center;
}

.surface581b2-footer p {
  margin: 0;
  color: var(--surface581b2-slate);
  font-size: 11px;
}

.surface581b2-footer b {
  color: var(--surface581b2-mist);
}

/* Center-raised dock */
.surface581b2-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--surface581b2-dock-h) - 22px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  background: rgba(8, 11, 16, 0.97);
  border-top: 1px solid var(--surface581b2-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 70;
}

.surface581b2-dockitem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 62px;
  padding: 6px 2px 8px;
  color: var(--surface581b2-slate);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.22s ease;
}

.surface581b2-dockitem svg {
  width: 22px;
  height: 22px;
}

.surface581b2-dockitem:hover {
  text-decoration: none;
  color: var(--surface581b2-mist);
}

/* Active state: top indicator line + lit glyph */
.surface581b2-dockactive {
  color: var(--surface581b2-acid);
}

.surface581b2-dockactive::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--surface581b2-acid) 0%, var(--surface581b2-orchid) 100%);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.45);
}

.surface581b2-dockitem:hover svg,
.surface581b2-dockactive svg {
  filter: drop-shadow(0 0 6px rgba(0, 255, 0, 0.5));
}

/* Raised center hub */
.surface581b2-dockhub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-height: 62px;
  padding: 0 2px 8px;
  color: var(--surface581b2-acid);
  font-size: 10px;
  font-weight: 800;
}

.surface581b2-hubcircle {
  width: 54px;
  height: 54px;
  margin-top: -26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #2bff2b 0%, #0a8f0a 58%, #006400 100%);
  border: 2px solid rgba(0, 255, 0, 0.5);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(0, 255, 0, 0.28);
  color: #05260a;
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.surface581b2-dockhub:hover .surface581b2-hubcircle {
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(0, 255, 0, 0.5);
}

.surface581b2-dockhub:active .surface581b2-hubcircle {
  transform: scale(0.94);
}

.surface581b2-hubcircle svg {
  width: 26px;
  height: 26px;
}

/* --------------------------------------------------------------------------
   12. Motion budget - restrained fade-ins (JS-gated only)
   -------------------------------------------------------------------------- */
.surface581b2-js .surface581b2-reveal {
  opacity: 0;
  transform: translateY(10px);
}

.surface581b2-js .surface581b2-reveal.surface581b2-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .surface581b2-js .surface581b2-reveal,
  .surface581b2-js .surface581b2-reveal.surface581b2-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .surface581b2-caroTrack {
    transition: none;
  }
  .surface581b2-dropmenu {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   13. Wider phones and framed desktop canvas
   -------------------------------------------------------------------------- */
@media (min-width: 375px) {
  .surface581b2-ctarow {
    gap: 10px;
  }
  .surface581b2-hero h1 {
    font-size: 24px;
  }
}

/* 430px canvas edge: denser game grid and calmer spacing */
@media (min-width: 430px) {
  .surface581b2-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
  }
  .surface581b2-hero {
    padding: 22px 16px 16px;
  }
  .surface581b2-hero h1 {
    font-size: 25px;
  }
  .surface581b2-games,
  .surface581b2-module,
  .surface581b2-extfoot {
    padding-left: 16px;
    padding-right: 16px;
  }
  .surface581b2-carousel {
    margin-left: 16px;
    margin-right: 16px;
  }
  .surface581b2-gname {
    font-size: 11px;
  }
}

/* Desktop: keep the phone canvas centered, framed like a device */
@media (min-width: 520px) {
  body {
    padding: 20px 0;
  }
  .surface581b2-shell {
    border-radius: 20px;
    border: 1px solid var(--surface581b2-line);
    overflow: hidden;
    min-height: calc(100vh - 40px);
  }
  .surface581b2-topbar {
    top: 20px;
    border-radius: 19px 19px 0 0;
  }
  .surface581b2-dropmenu {
    top: calc(20px + var(--surface581b2-top-h) + env(safe-area-inset-top, 0px));
  }
  .surface581b2-dock {
    bottom: 20px;
    border-radius: 0 0 19px 19px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  }
}
