/* =====================================================================
   winbat.click - surface stylesheet
   ---------------------------------------------------------------------
   Contract : every custom class uses the layer158df- prefix
   Palette  : #1E1E1E base / #66CDAA mint / #FF1493 pink
              #8FBC8F sage / #9AFF9A glow
   Canvas   : 320-430px mobile first, centered phone frame on desktop
   Voice    : bold compact headings + light body, mixed corner radii,
              floating icon tiles, scenario-branch rhythm, motion only
              on key CTAs (soft color transitions)
   ===================================================================== */

:root {
  --layer158df-night: #1E1E1E;
  --layer158df-abyss: #0B0B0B;
  --layer158df-panel: #262626;
  --layer158df-panel2: #2D2D2D;
  --layer158df-mint: #66CDAA;
  --layer158df-pink: #FF1493;
  --layer158df-sage: #8FBC8F;
  --layer158df-glow: #9AFF9A;
  --layer158df-ink: #F3FBF6;
  --layer158df-mute: #ADBFB4;
  --layer158df-faint: #93A89A;
  --layer158df-line: rgba(154, 255, 154, 0.16);
  --layer158df-font: "Segoe UI", "Noto Sans Bengali", "Noto Sans Bengali UI",
                     "Hind Siliguri", "SolaimanLipi", "Vrinda", system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--layer158df-abyss);
  color: var(--layer158df-ink);
  font-family: var(--layer158df-font);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--layer158df-mint); text-decoration: none; }
a:hover { color: var(--layer158df-glow); }

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

::selection { background: rgba(255, 20, 147, 0.45); color: #fff; }

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

/* ---- phone canvas: stays a 430px column on wide screens ---- */
.layer158df-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 240px at 50% -60px, rgba(102, 205, 170, 0.10), transparent 70%),
    var(--layer158df-night);
  box-shadow: 0 0 0 1px #000, 0 0 70px rgba(102, 205, 170, 0.07);
  overflow-x: clip;
}

/* ================= top bar (edge-aligned functional header) ========= */
.layer158df-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 58px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 8px;
  background: linear-gradient(180deg, #242424 0%, #1B1B1B 100%);
  border-bottom: 1px solid var(--layer158df-line);
}

.layer158df-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--layer158df-ink);
}

.layer158df-logo {
  width: 33px;
  height: 33px;
  border-radius: 10px 5px 10px 5px;
  border: 1px solid rgba(102, 205, 170, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  flex: none;
}

.layer158df-brandname {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
  background: linear-gradient(120deg, var(--layer158df-glow), var(--layer158df-mint) 60%, #d9fff0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--layer158df-mint);
}

.layer158df-acts { display: flex; align-items: center; gap: 5px; flex: none; }

.layer158df-btnreg,
.layer158df-btnlog {
  min-height: 44px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition: filter 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.layer158df-btnreg {
  padding: 0 13px;
  border: 1px solid #ff4fae;
  background: linear-gradient(160deg, #ff2f9f, var(--layer158df-pink));
  color: #250512;
}

.layer158df-btnlog {
  padding: 0 11px;
  border: 1.5px solid var(--layer158df-mint);
  background: rgba(102, 205, 170, 0.08);
  color: var(--layer158df-mint);
}

.layer158df-btnreg:active,
.layer158df-btnlog:active { transform: scale(0.955); }

.layer158df-btnreg:focus-visible,
.layer158df-btnlog:focus-visible { outline-offset: 1px; }

/* burger: three bars flipping into an X */
.layer158df-burger {
  width: 40px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0;
}

.layer158df-burger span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--layer158df-glow);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

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

/* ============ layered dropdown menu under the top bar ============== */
.layer158df-drop {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 100%;
  max-width: 430px;
  z-index: 85;
  background: rgba(26, 26, 26, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--layer158df-line);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55);
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 4px 0 10px;
  visibility: hidden;
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
}

.layer158df-dropshow {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.layer158df-dropgroup { border-bottom: 1px dashed rgba(154, 255, 154, 0.12); }
.layer158df-dropgroup:last-child { border-bottom: 0; }

.layer158df-drophead {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 16px;
  background: none;
  border: 0;
  color: var(--layer158df-sage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.layer158df-drophead svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.layer158df-dropopen .layer158df-drophead svg { transform: rotate(90deg); color: var(--layer158df-glow); }

.layer158df-dropbody {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.26s ease;
}

.layer158df-dropopen .layer158df-dropbody { max-height: 320px; }

.layer158df-droplink {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin: 0 12px 4px 16px;
  padding: 8px 12px;
  border-left: 2px solid rgba(102, 205, 170, 0.35);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--layer158df-ink);
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.layer158df-droplink:hover {
  background: rgba(102, 205, 170, 0.12);
  color: var(--layer158df-glow);
}

/* =========================== main column =========================== */
.layer158df-main {
  padding: 70px 0 100px;
}

/* ================================ hero ============================== */
.layer158df-hero { padding: 14px 14px 2px; }

.layer158df-herokicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--layer158df-sage);
}

.layer158df-herokicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--layer158df-pink);
  box-shadow: 0 0 8px rgba(255, 20, 147, 0.8);
}

.layer158df-h1 {
  margin: 9px 0 10px;
  font-size: 25px;
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.layer158df-hl {
  color: var(--layer158df-pink);
  text-shadow: 0 0 18px rgba(255, 20, 147, 0.35);
}

.layer158df-heronote {
  margin: 0 0 12px;
  color: var(--layer158df-mute);
  font-size: 13.5px;
  line-height: 1.78;
}

.layer158df-heronote strong { color: var(--layer158df-ink); font-weight: 700; }

.layer158df-herostats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.layer158df-herostats li {
  background: linear-gradient(180deg, #2A2A2A, #232323);
  border: 1px solid rgba(154, 255, 154, 0.12);
  border-radius: 14px 7px 14px 7px;
  padding: 9px 8px 8px;
  text-align: center;
}

.layer158df-statv {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--layer158df-glow);
  line-height: 1.2;
}

.layer158df-statk {
  display: block;
  font-size: 10.5px;
  color: var(--layer158df-faint);
  margin-top: 2px;
}

/* compact dual CTA group */
.layer158df-pair {
  display: flex;
  gap: 8px;
}

.layer158df-pair button,
.layer158df-pair a {
  flex: 1;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  transition: filter 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.layer158df-ctamain {
  flex: 1.5;
  border: 1px solid #ff4fae;
  background: linear-gradient(160deg, #ff2f9f, var(--layer158df-pink));
  color: #250512;
}

.layer158df-ctaghost {
  border: 1.5px solid rgba(143, 188, 143, 0.6);
  background: rgba(143, 188, 143, 0.08);
  color: var(--layer158df-sage);
}

.layer158df-ctamain:active,
.layer158df-ctaghost:active { transform: scale(0.965); }

/* ===================== category quick strip ======================== */
.layer158df-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 14px 4px;
  -webkit-overflow-scrolling: touch;
}

.layer158df-strip::-webkit-scrollbar { display: none; }

.layer158df-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(102, 205, 170, 0.35);
  background: rgba(102, 205, 170, 0.07);
  color: var(--layer158df-mint);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.layer158df-chip:hover {
  background: rgba(102, 205, 170, 0.16);
  color: var(--layer158df-glow);
}

/* ================== promo stage (3-slide rotator) =================== */
.layer158df-stage {
  position: relative;
  margin: 12px 12px 0;
  border-radius: 18px 7px 18px 7px;
  overflow: hidden;
  border: 1px solid rgba(154, 255, 154, 0.14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.layer158df-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 176px;
  padding: 0;
  border: 0;
  background: #141414;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
  text-align: left;
}

.layer158df-slideon { opacity: 1; visibility: visible; z-index: 2; }

.layer158df-slideart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layer158df-slidecopy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 14px 13px;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0) 0%, rgba(14, 14, 14, 0.55) 45%, rgba(14, 14, 14, 0.93) 100%);
  display: block;
  max-width: 78%;
}

.layer158df-slidecopy b {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.layer158df-slidecopy i {
  display: block;
  font-style: normal;
  color: #d7f7e6;
  font-size: 11.5px;
  margin-top: 3px;
}

.layer158df-slidecta {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 20, 147, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  pointer-events: none;
}

.layer158df-dots {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  gap: 5px;
}

.layer158df-dot {
  width: 22px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: background-color 0.25s ease;
}

.layer158df-doton { background: var(--layer158df-pink); }

/* ===================== game bands (open sections) =================== */
.layer158df-band {
  margin-top: 26px;
  scroll-margin-top: 70px;
}

.layer158df-bandhead {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 7px;
}

.layer158df-bandnum {
  flex: none;
  width: 32px;
  height: 32px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px 4px 11px 4px;
  border: 1px solid rgba(102, 205, 170, 0.45);
  background: rgba(102, 205, 170, 0.08);
  color: var(--layer158df-mint);
  font-size: 12px;
  font-weight: 800;
}

.layer158df-bandhead h2 {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.38;
  font-weight: 800;
  color: var(--layer158df-ink);
}

.layer158df-bandnote {
  margin: 0 14px 11px;
  color: var(--layer158df-mute);
  font-size: 13px;
  line-height: 1.75;
}

.layer158df-bandnote strong { color: var(--layer158df-ink); font-weight: 700; }

/* floating icon tile grid: 4 columns across the whole canvas */
.layer158df-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 12px;
}

.layer158df-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 7px 5px 8px;
  background: linear-gradient(180deg, #2C2C2C, #222222);
  border: 1px solid #343434;
  border-radius: 15px 15px 9px 9px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.layer158df-tile:hover,
.layer158df-tile:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(102, 205, 170, 0.55);
}

.layer158df-tile:active { transform: scale(0.96); }

.layer158df-tileart {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #191919;
}

.layer158df-tilename {
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 600;
  color: #E9F5EC;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* related-page chips closing each band */
.layer158df-bandlinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 12px 14px 0;
}

.layer158df-bandtag {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--layer158df-sage);
}

.layer158df-bandchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 20, 147, 0.4);
  background: rgba(255, 20, 147, 0.07);
  color: #ff9ad0;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.layer158df-bandchip:hover {
  background: rgba(255, 20, 147, 0.16);
  color: #ffc4e4;
}

/* ====================== prose modules below games ================== */
.layer158df-prose {
  margin-top: 30px;
  padding: 0 14px;
  scroll-margin-top: 70px;
}

.layer158df-h2 {
  position: relative;
  margin: 0 0 8px;
  padding-left: 13px;
  font-size: 17px;
  line-height: 1.42;
  font-weight: 800;
  color: var(--layer158df-ink);
}

.layer158df-h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--layer158df-pink), var(--layer158df-mint));
}

.layer158df-lead {
  margin: 0 0 10px;
  color: var(--layer158df-mute);
  font-size: 13.5px;
  line-height: 1.78;
}

.layer158df-lead strong,
.layer158df-prose p strong { color: var(--layer158df-ink); font-weight: 700; }

.layer158df-prose p {
  margin: 9px 0;
  color: var(--layer158df-mute);
  font-size: 13.5px;
  line-height: 1.78;
}

.layer158df-prose p a,
.layer158df-bandnote a,
.layer158df-heronote a {
  color: var(--layer158df-glow);
  font-weight: 700;
  border-bottom: 1px dashed rgba(154, 255, 154, 0.5);
}

/* scenario branch card (RTP guidance and similar logic) */
.layer158df-branch {
  margin: 11px 0;
  padding: 12px 13px;
  background: linear-gradient(180deg, #282828, #232323);
  border: 1px solid rgba(154, 255, 154, 0.13);
  border-radius: 5px 16px 5px 16px;
}

.layer158df-branchtag {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 7px;
  border-radius: 999px;
  background: rgba(102, 205, 170, 0.13);
  color: var(--layer158df-mint);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.layer158df-branch p { margin: 0; }

/* player voices */
.layer158df-voices {
  display: grid;
  gap: 10px;
}

.layer158df-voice {
  margin: 0;
  padding: 12px 13px;
  background: #232323;
  border: 1px solid rgba(154, 255, 154, 0.1);
  border-left: 3px solid var(--layer158df-mint);
  border-radius: 6px 15px 6px 15px;
}

.layer158df-voicealt { border-left-color: var(--layer158df-pink); }

.layer158df-voicemeta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.layer158df-voiceav {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--layer158df-mint), var(--layer158df-sage));
  color: #10231B;
  font-size: 13px;
  font-weight: 800;
}

.layer158df-voicemeta b {
  display: block;
  font-size: 13px;
  color: var(--layer158df-ink);
}

.layer158df-voicemeta i {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--layer158df-faint);
}

.layer158df-voice blockquote {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--layer158df-mute);
}

/* decision checklist */
.layer158df-checkrow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 2px;
  border-bottom: 1px dashed rgba(154, 255, 154, 0.14);
}

.layer158df-checkrow:last-child { border-bottom: 0; }

.layer158df-checkicon {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(102, 205, 170, 0.14);
  border: 1px solid rgba(102, 205, 170, 0.4);
}

.layer158df-checkicon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--layer158df-glow);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.layer158df-checkrow p { margin: 0; }

.layer158df-checkrow b { color: var(--layer158df-ink); }

/* comparison rows */
.layer158df-vsrow {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(154, 255, 154, 0.14);
}

.layer158df-vsrow:last-child { border-bottom: 0; }

.layer158df-vskey {
  flex: none;
  width: 104px;
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 10px 4px 10px 4px;
  background: rgba(143, 188, 143, 0.12);
  border: 1px solid rgba(143, 188, 143, 0.35);
  color: var(--layer158df-sage);
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
}

.layer158df-vsrow p { margin: 0; font-size: 13px; }

/* FAQ accordion (native details) */
.layer158df-faqwrap {
  margin-top: 4px;
  border-top: 1px dashed rgba(154, 255, 154, 0.14);
}

.layer158df-faqwrap details { border-bottom: 1px dashed rgba(154, 255, 154, 0.14); }

.layer158df-faqwrap summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--layer158df-ink);
  cursor: pointer;
}

.layer158df-faqwrap summary::-webkit-details-marker { display: none; }

.layer158df-faqwrap summary::after {
  content: "+";
  flex: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(102, 205, 170, 0.45);
  color: var(--layer158df-mint);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease;
}

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

.layer158df-faqwrap details p {
  margin: 0 0 14px;
  padding-right: 26px;
  font-size: 13px;
  line-height: 1.75;
}

/* ================== extended footer (homepage only) ================= */
.layer158df-xfoot {
  margin-top: 34px;
  padding: 18px 14px 10px;
  border-top: 1px solid var(--layer158df-line);
  background: linear-gradient(180deg, rgba(102, 205, 170, 0.045), transparent 60%), #191919;
}

.layer158df-xftitle {
  margin: 0 0 9px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--layer158df-sage);
}

.layer158df-xfgroups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.layer158df-xflink {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 4px;
  border-bottom: 1px dashed rgba(154, 255, 154, 0.09);
  color: var(--layer158df-mute);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.18s ease;
}

.layer158df-xfgroup .layer158df-xflink:last-child { border-bottom: 0; }

.layer158df-xflink svg {
  flex: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--layer158df-mint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.layer158df-xflink:hover { color: var(--layer158df-glow); }

.layer158df-xfbrand {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--layer158df-mute);
}

.layer158df-xfpromo {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.layer158df-xfpbtn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 13px 6px 13px 6px;
  font-size: 12px;
  font-weight: 800;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.layer158df-xfpbtn:active { transform: scale(0.965); }

.layer158df-xfpbtn svg {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.layer158df-xfppink {
  border: 1px solid #ff4fae;
  background: linear-gradient(160deg, #ff2f9f, var(--layer158df-pink));
  color: #250512;
}

.layer158df-xfpmint {
  border: 1.5px solid var(--layer158df-mint);
  background: rgba(102, 205, 170, 0.09);
  color: var(--layer158df-mint);
}

.layer158df-xfpsage {
  border: 1.5px solid rgba(143, 188, 143, 0.6);
  background: rgba(143, 188, 143, 0.09);
  color: var(--layer158df-sage);
}

.layer158df-xfpfull { grid-column: 1 / -1; }

.layer158df-xfdisc {
  margin: 16px 0 0;
  padding: 10px 0 0 11px;
  border-left: 3px solid rgba(255, 20, 147, 0.55);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--layer158df-faint);
}

/* ===================== copyright end bar =========================== */
.layer158df-endbar {
  padding: 16px 14px 18px;
  text-align: center;
  font-size: 12px;
  color: var(--layer158df-faint);
  border-top: 1px solid var(--layer158df-line);
  background: #151515;
}

.layer158df-endbar b { color: var(--layer158df-sage); font-weight: 700; }

/* ============ bottom dock (center-raised 5-role nav) ================ */
.layer158df-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 95;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 6px 4px calc(7px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(13, 13, 13, 0.98));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--layer158df-line);
}

.layer158df-dockitem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 5px 2px 3px;
  background: none;
  border: 0;
  color: #9DB3A6;
  border-radius: 14px;
  transition: color 0.2s ease;
}

.layer158df-dockicon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.2s ease;
}

.layer158df-docklabel {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* active role: background support block + filled icon */
.layer158df-dockitem.layer158df-on { color: var(--layer158df-glow); }

.layer158df-dockitem.layer158df-on::before {
  content: "";
  position: absolute;
  inset: 3px 5px 2px;
  border-radius: 13px;
  background: rgba(102, 205, 170, 0.14);
  border: 1px solid rgba(102, 205, 170, 0.35);
  z-index: -1;
}

.layer158df-dockitem.layer158df-on .layer158df-dockicon svg {
  fill: currentColor;
}

/* raised center action */
.layer158df-dockfab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: -26px;
  padding: 0;
  min-height: 52px;
  background: none;
  border: 0;
}

.layer158df-dockfabring {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(150deg, #ff41a4, var(--layer158df-pink) 60%, #d10078);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 20px rgba(255, 20, 147, 0.45), 0 0 0 5px #161616;
  transition: transform 0.18s ease;
}

.layer158df-dockfabring svg {
  width: 24px;
  height: 24px;
  fill: #2A0512;
  stroke: none;
}

.layer158df-dockfab:active .layer158df-dockfabring { transform: scale(0.92); }

.layer158df-dockfab .layer158df-docklabel { color: #ff9ad0; }

/* ======================= canvas width steps ========================= */
@media (min-width: 360px) {
  .layer158df-xfgroups { grid-template-columns: 1fr 1fr; }
  .layer158df-xfgroup:last-child { grid-column: 1 / -1; }
}

@media (min-width: 375px) {
  .layer158df-grid { gap: 10px; }
  .layer158df-slide { height: 186px; }
  .layer158df-h1 { font-size: 26px; }
}

@media (min-width: 431px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 18vw;
    z-index: 0;
    pointer-events: none;
  }
  body::before {
    left: 0;
    background: radial-gradient(60% 40% at 0% 20%, rgba(102, 205, 170, 0.06), transparent 70%);
  }
  body::after {
    right: 0;
    background: radial-gradient(60% 40% at 100% 80%, rgba(255, 20, 147, 0.05), transparent 70%);
  }
}

@media (max-width: 374px) {
  .layer158df-h1 { font-size: 23px; }
  .layer158df-tilename { font-size: 10px; }
  .layer158df-btnreg { padding: 0 10px; font-size: 12px; }
  .layer158df-btnlog { padding: 0 9px; font-size: 12px; }
  .layer158df-herostats li { padding: 8px 4px 7px; }
  .layer158df-statv { font-size: 14.5px; }
  .layer158df-vskey { width: 92px; }
}

@media (max-width: 359px) {
  .layer158df-grid { gap: 6px; }
  .layer158df-pair button,
  .layer158df-pair a { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
