/* =====================================================================
   pk luk - mobile gaming portal frame styles
   File   : css/compact-247b89-frame.css
   Prefix : ui47b89-  (all classes and custom properties)
   Canvas : 320-430px phone frame, centered on wide screens
   Palette: #0A0A0A base / #F0F0F0 text / #FF1493 CTA / #F08080 lines
            #FFB6C1 soft highlights
   Voice  : rounded display type over compact body type, light float
            cards, square-corner high-contrast CTAs, restrained glow
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------- */
:root {
  --ui47b89-c-bg: #0a0a0a;
  --ui47b89-c-bg-deep: #060506;
  --ui47b89-c-surface: #1a1318;
  --ui47b89-c-surface-2: #221820;
  --ui47b89-c-surface-3: #160f14;
  --ui47b89-c-line: rgba(240, 128, 128, 0.22);
  --ui47b89-c-line-soft: rgba(240, 128, 128, 0.13);
  --ui47b89-c-text: #f0f0f0;
  --ui47b89-c-text-soft: #cbb4bd;
  --ui47b89-c-text-dim: #a08a93;
  --ui47b89-c-pink: #ff1493;
  --ui47b89-c-rose: #f08080;
  --ui47b89-c-blush: #ffb6c1;
  --ui47b89-font-head: 'Baloo Da 2', 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  --ui47b89-font-body: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ui47b89-topbar-h: 58px;
  --ui47b89-dock-h: 92px;
  --ui47b89-radius-card: 10px;
  --ui47b89-radius-panel: 14px;
  --ui47b89-radius-btn: 3px;
  --ui47b89-pad-x: 12px;
  --ui47b89-shadow-card: 0 10px 26px rgba(0, 0, 0, 0.42);
  --ui47b89-glow-pink: 0 0 12px rgba(255, 20, 147, 0.55);
}

/* ---------------------------------------------------------------------
   2. Base and reset
   --------------------------------------------------------------------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ui47b89-c-bg-deep);
  color: var(--ui47b89-c-text);
  font-family: var(--ui47b89-font-body);
  font-size: 14px;
  line-height: 1.68;
  overflow-x: clip;
}

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

button {
  font-family: inherit;
  color: inherit;
}

a { color: var(--ui47b89-c-blush); }

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

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

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

body.ui47b89-locked { overflow: hidden; }

/* Visible keyboard focus everywhere inside the frame */
.ui47b89-shell :focus-visible,
.ui47b89-menu :focus-visible,
.ui47b89-dock :focus-visible,
.ui47b89-backdrop:focus-visible {
  outline: 2px solid var(--ui47b89-c-blush);
  outline-offset: 2px;
}

/* Skip link for keyboard users */
.ui47b89-skip {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 200;
  background: var(--ui47b89-c-pink);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: var(--ui47b89-radius-btn);
  text-decoration: none;
  transition: top 0.2s ease;
}

.ui47b89-skip:focus { top: 8px; }

/* ---------------------------------------------------------------------
   3. Phone canvas shell (max 430px, centered on wide screens)
   --------------------------------------------------------------------- */
.ui47b89-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(130% 90% at 90% -4%, rgba(255, 20, 147, 0.10), transparent 46%),
    var(--ui47b89-c-bg);
  padding-top: var(--ui47b89-topbar-h);
  padding-bottom: calc(var(--ui47b89-dock-h) + 34px);
}

.ui47b89-main { display: block; }

/* ---------------------------------------------------------------------
   4. Top identity bar
   --------------------------------------------------------------------- */
.ui47b89-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--ui47b89-topbar-h);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 10px;
  background: rgba(13, 9, 12, 0.97);
  border-bottom: 1px solid var(--ui47b89-c-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Brand stays optically centered in the identity bar */
.ui47b89-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ui47b89-c-text);
  white-space: nowrap;
}

.ui47b89-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--ui47b89-c-line);
  object-fit: cover;
}

.ui47b89-brand-name {
  font-family: var(--ui47b89-font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--ui47b89-c-blush);
}

.ui47b89-menu-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ui47b89-c-line-soft);
  border-radius: var(--ui47b89-radius-btn);
  cursor: pointer;
  flex: 0 0 auto;
}

.ui47b89-menu-btn svg { width: 20px; height: 20px; fill: var(--ui47b89-c-blush); }

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

/* Square-corner high contrast action buttons */
.ui47b89-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  font-family: var(--ui47b89-font-body);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  border-radius: var(--ui47b89-radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ui47b89-btn:active { transform: translateY(1px); }

.ui47b89-btn-promo {
  background: var(--ui47b89-c-pink);
  color: #0a0a0a;
  box-shadow: 0 4px 16px rgba(255, 20, 147, 0.34);
}

.ui47b89-btn-promo:hover { box-shadow: 0 6px 20px rgba(255, 20, 147, 0.5); }

.ui47b89-btn-ghost {
  background: transparent;
  color: var(--ui47b89-c-blush);
  border-color: rgba(240, 128, 128, 0.55);
}

.ui47b89-btn-ghost:hover { background: rgba(240, 128, 128, 0.12); }

/* Compact header variants so the bar fits 320px */
.ui47b89-topbar .ui47b89-btn { min-height: 36px; padding: 0 10px; font-size: 12px; }

.ui47b89-btn-reg { background: var(--ui47b89-c-pink); color: #0a0a0a; }

.ui47b89-btn-login {
  background: rgba(255, 182, 193, 0.08);
  color: var(--ui47b89-c-blush);
  border-color: rgba(240, 128, 128, 0.45);
}

@media (max-width: 349px) {
  .ui47b89-topbar .ui47b89-btn { padding: 0 7px; font-size: 11px; }
  .ui47b89-brand img { width: 26px; height: 26px; }
  .ui47b89-brand-name { font-size: 16px; }
}

/* ---------------------------------------------------------------------
   5. Slide-in section menu
   --------------------------------------------------------------------- */
.ui47b89-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 3, 5, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  border: 0;
  padding: 0;
}

.ui47b89-backdrop-open { opacity: 1; pointer-events: auto; }

.ui47b89-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  /* align the drawer with the left edge of the phone canvas */
  left: max(0px, calc(50% - 215px));
  width: min(86vw, 332px);
  z-index: 80;
  background: linear-gradient(175deg, #1a1119 0%, #120c11 100%);
  border-right: 1px solid var(--ui47b89-c-line);
  transform: translateX(-103%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 28px;
}

.ui47b89-menu-open {
  transform: translateX(0);
  box-shadow: 18px 0 44px rgba(0, 0, 0, 0.55);
}

.ui47b89-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--ui47b89-c-line-soft);
}

.ui47b89-menu-head img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--ui47b89-c-line);
}

.ui47b89-menu-head strong {
  font-family: var(--ui47b89-font-head);
  font-size: 19px;
  color: var(--ui47b89-c-blush);
  letter-spacing: 0.2px;
}

.ui47b89-menu-close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ui47b89-c-line-soft);
  border-radius: var(--ui47b89-radius-btn);
  cursor: pointer;
}

.ui47b89-menu-close svg { width: 18px; height: 18px; fill: var(--ui47b89-c-text-soft); }

.ui47b89-menu-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px;
}

.ui47b89-menu-cta .ui47b89-btn { width: 100%; }

.ui47b89-menu-sec {
  padding: 14px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ui47b89-c-rose);
}

.ui47b89-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  color: var(--ui47b89-c-text);
  text-decoration: none;
  font-size: 14.5px;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ui47b89-menu-list a::after {
  content: "\203A";
  color: var(--ui47b89-c-rose);
  font-size: 17px;
  line-height: 1;
}

.ui47b89-menu-list a:hover,
.ui47b89-menu-list a:active {
  background: rgba(255, 20, 147, 0.08);
  border-left-color: var(--ui47b89-c-pink);
}

.ui47b89-menu-list a[aria-current="page"] {
  border-left-color: var(--ui47b89-c-pink);
  color: var(--ui47b89-c-blush);
  background: rgba(255, 20, 147, 0.1);
}

/* ---------------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------------- */
.ui47b89-hero {
  margin: 12px var(--ui47b89-pad-x) 0;
  padding: 18px 15px 16px;
  border-radius: var(--ui47b89-radius-panel);
  border: 1px solid var(--ui47b89-c-line);
  background:
    radial-gradient(120% 130% at 88% -12%, rgba(255, 20, 147, 0.22), transparent 55%),
    linear-gradient(165deg, #1e1219 0%, #130d12 100%);
  box-shadow: var(--ui47b89-shadow-card);
}

.ui47b89-hero h1 {
  font-size: 23px;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}

.ui47b89-hero p { color: var(--ui47b89-c-text-soft); font-size: 13.5px; }

.ui47b89-hero-cta {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.ui47b89-hero-cta .ui47b89-btn { flex: 1 1 auto; }

/* ---------------------------------------------------------------------
   7. Promo banner carousel
   --------------------------------------------------------------------- */
.ui47b89-carousel {
  position: relative;
  margin: 14px var(--ui47b89-pad-x) 0;
  aspect-ratio: 430 / 186;
  border-radius: var(--ui47b89-radius-panel);
  overflow: hidden;
  border: 1px solid var(--ui47b89-c-line);
  background: #141014;
  box-shadow: var(--ui47b89-shadow-card);
}

.ui47b89-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 0.45s ease, transform 0.65s ease;
  pointer-events: none;
}

.ui47b89-slide-on { opacity: 1; transform: scale(1); pointer-events: auto; }

.ui47b89-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ui47b89-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 30px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(8, 5, 7, 0.92));
}

.ui47b89-slide-cap strong {
  font-family: var(--ui47b89-font-head);
  font-size: 16.5px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.ui47b89-slide-cap em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--ui47b89-c-blush);
}

.ui47b89-slide-cap .ui47b89-slide-go {
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #0a0a0a;
  background: var(--ui47b89-c-pink);
  border-radius: var(--ui47b89-radius-btn);
}

.ui47b89-c-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 10, 0.55);
  border: 1px solid var(--ui47b89-c-line-soft);
  border-radius: var(--ui47b89-radius-btn);
  cursor: pointer;
  z-index: 5;
}

.ui47b89-c-arrow svg { width: 18px; height: 18px; fill: var(--ui47b89-c-blush); }

.ui47b89-c-prev { left: 6px; }
.ui47b89-c-next { right: 6px; }

.ui47b89-dots {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.ui47b89-dot {
  width: 22px;
  height: 8px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(255, 182, 193, 0.5);
  background: rgba(10, 8, 10, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ui47b89-dot-on {
  background: var(--ui47b89-c-pink);
  border-color: var(--ui47b89-c-pink);
  box-shadow: var(--ui47b89-glow-pink);
}

/* ---------------------------------------------------------------------
   8. Category quick chips
   --------------------------------------------------------------------- */
.ui47b89-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px var(--ui47b89-pad-x) 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.ui47b89-chip {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ui47b89-c-text-soft);
  text-decoration: none;
  background: rgba(255, 182, 193, 0.06);
  border: 1px solid var(--ui47b89-c-line-soft);
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ui47b89-chip:hover,
.ui47b89-chip:active {
  color: var(--ui47b89-c-blush);
  border-color: rgba(240, 128, 128, 0.55);
}

/* ---------------------------------------------------------------------
   9. Section headings
   --------------------------------------------------------------------- */
.ui47b89-h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18.5px;
  margin: 0 0 10px;
}

.ui47b89-h2::before {
  content: "";
  flex: 0 0 4px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--ui47b89-c-pink), var(--ui47b89-c-rose));
  box-shadow: var(--ui47b89-glow-pink);
}

.ui47b89-lead { color: var(--ui47b89-c-text-soft); }

/* ---------------------------------------------------------------------
   10. Game lobby and category blocks
   --------------------------------------------------------------------- */
.ui47b89-lobby { padding: 4px var(--ui47b89-pad-x) 0; }

.ui47b89-cat { margin-top: 20px; scroll-margin-top: calc(var(--ui47b89-topbar-h) + 10px); }

.ui47b89-cat-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.ui47b89-cat-head h3 { font-size: 16px; margin: 0; color: var(--ui47b89-c-blush); }

.ui47b89-cat-count {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ui47b89-c-rose);
  border: 1px solid var(--ui47b89-c-line);
  border-radius: 999px;
  padding: 1px 9px;
  letter-spacing: 0.4px;
}

.ui47b89-cat p { font-size: 12.5px; color: var(--ui47b89-c-text-soft); margin-bottom: 10px; }

.ui47b89-cat p a { color: var(--ui47b89-c-blush); font-weight: 600; }

/* Stable 4-column grid below 400px, 5 columns on wider phones */
.ui47b89-ggrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

/* Light floating game card */
.ui47b89-gcard {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px 7px;
  background: linear-gradient(170deg, var(--ui47b89-c-surface-2), var(--ui47b89-c-surface-3));
  border: 1px solid var(--ui47b89-c-line-soft);
  border-radius: var(--ui47b89-radius-card);
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ui47b89-gcard:hover,
.ui47b89-gcard:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 20, 147, 0.55);
  box-shadow: 0 8px 18px rgba(255, 20, 147, 0.16);
}

.ui47b89-gcard img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 7px;
  background: #0d0a0d;
}

.ui47b89-gname {
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--ui47b89-c-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------
   11. Content modules (scenario cards, steps, winners, terms, checks)
   --------------------------------------------------------------------- */
.ui47b89-mod {
  margin: 20px var(--ui47b89-pad-x) 0;
  padding: 16px 14px;
  background: linear-gradient(172deg, var(--ui47b89-c-surface), var(--ui47b89-c-surface-3));
  border: 1px solid var(--ui47b89-c-line-soft);
  border-radius: var(--ui47b89-radius-panel);
  box-shadow: var(--ui47b89-shadow-card);
}

.ui47b89-mod > p { color: var(--ui47b89-c-text-soft); }

.ui47b89-mod a { font-weight: 600; }

/* Scenario branch cards for the access module */
.ui47b89-scene {
  border-left: 3px solid var(--ui47b89-c-rose);
  background: rgba(240, 128, 128, 0.05);
  border-radius: 0 var(--ui47b89-radius-card) var(--ui47b89-radius-card) 0;
  padding: 10px 12px;
  margin-top: 10px;
}

.ui47b89-scene h3 {
  font-size: 14px;
  color: var(--ui47b89-c-blush);
  margin-bottom: 4px;
}

.ui47b89-scene p { font-size: 12.5px; color: var(--ui47b89-c-text-soft); margin: 0; }

/* Numbered steps */
.ui47b89-steps { counter-reset: ui47b89-step; margin-top: 12px; }

.ui47b89-steps li {
  position: relative;
  counter-increment: ui47b89-step;
  padding: 0 0 12px 38px;
  font-size: 13px;
  color: var(--ui47b89-c-text-soft);
}

.ui47b89-steps li::before {
  content: counter(ui47b89-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ui47b89-font-head);
  font-weight: 700;
  font-size: 13px;
  color: #0a0a0a;
  background: var(--ui47b89-c-pink);
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(255, 20, 147, 0.3);
}

.ui47b89-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 11.5px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: var(--ui47b89-c-line);
}

.ui47b89-steps strong { color: var(--ui47b89-c-text); }

.ui47b89-mod-cta { margin-top: 14px; }

.ui47b89-mod-cta .ui47b89-btn { width: 100%; }

/* Winners board */
.ui47b89-win-board {
  margin-top: 10px;
  border: 1px solid var(--ui47b89-c-line-soft);
  border-radius: var(--ui47b89-radius-card);
  overflow: hidden;
}

.ui47b89-win-row {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr auto;
  gap: 4px 8px;
  align-items: center;
  padding: 8px 10px;
  font-size: 12px;
  border-bottom: 1px solid rgba(240, 128, 128, 0.1);
  background: rgba(255, 182, 193, 0.02);
}

.ui47b89-win-row:last-child { border-bottom: 0; }

.ui47b89-win-name { color: var(--ui47b89-c-text); font-weight: 600; }

.ui47b89-win-game { color: var(--ui47b89-c-text-dim); overflow-wrap: anywhere; }

.ui47b89-win-amt {
  color: var(--ui47b89-c-pink);
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.ui47b89-win-time {
  grid-column: 1 / -1;
  font-size: 10px;
  color: var(--ui47b89-c-text-dim);
  opacity: 0.85;
}

.ui47b89-win-hot {
  background: rgba(255, 20, 147, 0.1);
  animation: ui47b89-hotpulse 1.1s ease infinite alternate;
}

@keyframes ui47b89-hotpulse {
  from { box-shadow: inset 3px 0 0 rgba(255, 20, 147, 0.4); }
  to { box-shadow: inset 3px 0 0 rgba(255, 20, 147, 0.95); }
}

/* Term glossary */
.ui47b89-terms dt {
  font-family: var(--ui47b89-font-head);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ui47b89-c-blush);
  margin-top: 12px;
}

.ui47b89-terms dd {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--ui47b89-c-text-soft);
  padding-left: 12px;
  border-left: 2px solid rgba(240, 128, 128, 0.25);
}

.ui47b89-terms dl { margin: 0; }

/* Selection checklist with CSS-drawn check marks */
.ui47b89-check { margin-top: 10px; }

.ui47b89-check li {
  position: relative;
  padding: 0 0 10px 28px;
  font-size: 12.5px;
  color: var(--ui47b89-c-text-soft);
}

.ui47b89-check li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--ui47b89-c-pink);
  border-bottom: 2px solid var(--ui47b89-c-pink);
  transform: rotate(-45deg);
}

.ui47b89-check strong { color: var(--ui47b89-c-text); }

/* ---------------------------------------------------------------------
   12. Extended footer (brand, directory, promo actions, disclaimer)
   --------------------------------------------------------------------- */
.ui47b89-extfoot {
  margin: 26px var(--ui47b89-pad-x) 0;
  padding-top: 18px;
  border-top: 1px dashed rgba(240, 128, 128, 0.4);
}

.ui47b89-extfoot > p { color: var(--ui47b89-c-text-soft); font-size: 12.5px; }

.ui47b89-ext-h {
  font-size: 13px;
  color: var(--ui47b89-c-rose);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 0 8px;
}

.ui47b89-ext-list li { border-bottom: 1px solid rgba(240, 128, 128, 0.1); }

.ui47b89-ext-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 4px;
  text-decoration: none;
  color: var(--ui47b89-c-text);
  font-size: 13px;
}

.ui47b89-ext-list a::after {
  content: "\203A";
  color: var(--ui47b89-c-rose);
  font-size: 16px;
}

.ui47b89-ext-list span { color: var(--ui47b89-c-text-dim); font-size: 11px; display: block; }

.ui47b89-ext-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ui47b89-ext-promos .ui47b89-btn {
  min-height: 46px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.ui47b89-ext-promos .ui47b89-btn-promo { background: var(--ui47b89-c-pink); color: #0a0a0a; }

.ui47b89-ext-promos .ui47b89-btn-alt {
  background: rgba(255, 20, 147, 0.1);
  color: var(--ui47b89-c-blush);
  border-color: rgba(255, 20, 147, 0.4);
}

.ui47b89-disclaimer {
  margin-top: 18px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--ui47b89-c-text-dim);
  background: rgba(240, 128, 128, 0.05);
  border: 1px solid var(--ui47b89-c-line-soft);
  border-radius: var(--ui47b89-radius-card);
}

/* ---------------------------------------------------------------------
   13. Universal footer
   --------------------------------------------------------------------- */
.ui47b89-footer {
  margin-top: 26px;
  padding: 14px var(--ui47b89-pad-x) 6px;
  border-top: 1px solid var(--ui47b89-c-line-soft);
  text-align: center;
}

.ui47b89-footer p {
  margin: 0;
  font-size: 11.5px;
  color: var(--ui47b89-c-text-dim);
  letter-spacing: 0.3px;
}

/* ---------------------------------------------------------------------
   14. Layered bottom dock (promo strip + 5-role nav)
   --------------------------------------------------------------------- */
.ui47b89-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
}

.ui47b89-dock-strip {
  display: flex;
  width: 100%;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  background: linear-gradient(90deg, #ff1493 0%, #f08080 100%);
  color: #0a0a0a;
  font-family: var(--ui47b89-font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 0;
  cursor: pointer;
}

.ui47b89-dock-strip svg { width: 14px; height: 14px; fill: #0a0a0a; flex: 0 0 auto; }

.ui47b89-bottomnav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 62px;
  background: linear-gradient(180deg, #191119 0%, #120c11 100%);
  border-top: 1px solid var(--ui47b89-c-line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.ui47b89-bn-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 4px 2px 8px;
  color: var(--ui47b89-c-text-dim);
  font-family: var(--ui47b89-font-body);
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.ui47b89-bn-item svg { width: 22px; height: 22px; fill: currentColor; }

.ui47b89-bn-item:active { color: var(--ui47b89-c-blush); }

/* Active role: underline marker plus restrained glow */
.ui47b89-bn-on { color: var(--ui47b89-c-pink); }

.ui47b89-bn-on svg { filter: drop-shadow(0 0 6px rgba(255, 20, 147, 0.6)); }

.ui47b89-bn-on::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5px;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--ui47b89-c-pink);
  box-shadow: var(--ui47b89-glow-pink);
}

/* ---------------------------------------------------------------------
   15. Responsive tuning inside the phone canvas
   --------------------------------------------------------------------- */
@media (min-width: 375px) {
  .ui47b89-hero h1 { font-size: 24px; }
  .ui47b89-cat p { font-size: 13px; }
  .ui47b89-scene p { font-size: 13px; }
}

/* Wider phones keep a denser 5-column lobby grid */
@media (min-width: 400px) {
  .ui47b89-ggrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .ui47b89-gname { font-size: 11px; }
}

/* Upper edge of the phone canvas */
@media (min-width: 430px) {
  .ui47b89-hero h1 { font-size: 26px; }
  .ui47b89-hero p { font-size: 14px; }
  .ui47b89-h2 { font-size: 19.5px; }
  .ui47b89-slide-cap strong { font-size: 17.5px; }
  .ui47b89-mod > p { font-size: 14px; }
}

/* Wide screens: keep the centered phone canvas with edge framing */
@media (min-width: 431px) {
  body {
    background:
      radial-gradient(60% 40% at 50% 0%, rgba(255, 20, 147, 0.07), transparent 70%),
      var(--ui47b89-c-bg-deep);
  }
  .ui47b89-shell {
    border-left: 1px solid rgba(240, 128, 128, 0.14);
    border-right: 1px solid rgba(240, 128, 128, 0.14);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  }
}

/* ---------------------------------------------------------------------
   16. Motion preferences
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------
   17. Help-page reading patterns
   --------------------------------------------------------------------- */
.ui47b89-help-hero {
  margin: 12px var(--ui47b89-pad-x) 0;
  padding: 20px 16px 18px;
  border: 1px solid var(--ui47b89-c-line);
  border-radius: 4px 16px 4px 16px;
  background:
    linear-gradient(135deg, rgba(255, 20, 147, 0.2), transparent 55%),
    linear-gradient(165deg, #20131d 0%, #100c10 100%);
  box-shadow: var(--ui47b89-shadow-card);
}

.ui47b89-help-hero h1 { font-size: 23px; margin-bottom: 10px; }
.ui47b89-help-hero p { color: var(--ui47b89-c-text-soft); font-size: 13.5px; }
.ui47b89-help-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ui47b89-c-pink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.ui47b89-help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ui47b89-help-actions .ui47b89-btn { flex: 1 1 130px; }
.ui47b89-tip-route { display: grid; gap: 8px; margin-top: 12px; }
.ui47b89-tip-route li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--ui47b89-c-line-soft);
  color: var(--ui47b89-c-text-soft);
  font-size: 13px;
}
.ui47b89-tip-route li:last-child { border-bottom: 0; }
.ui47b89-tip-route b {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  background: var(--ui47b89-c-blush);
  border-radius: 50%;
  font-family: var(--ui47b89-font-head);
}
.ui47b89-browser-table { overflow-x: auto; margin-top: 12px; border: 1px solid var(--ui47b89-c-line-soft); border-radius: 8px; }
.ui47b89-browser-table table { width: 100%; min-width: 360px; border-collapse: collapse; font-size: 12px; }
.ui47b89-browser-table th, .ui47b89-browser-table td { padding: 9px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ui47b89-c-line-soft); }
.ui47b89-browser-table th { color: var(--ui47b89-c-blush); background: rgba(255, 20, 147, 0.08); font-weight: 700; }
.ui47b89-browser-table td { color: var(--ui47b89-c-text-soft); }
.ui47b89-browser-table tr:last-child td { border-bottom: 0; }
.ui47b89-callout { margin-top: 12px; padding: 11px 12px; border-left: 3px solid var(--ui47b89-c-pink); background: rgba(255, 20, 147, 0.07); color: var(--ui47b89-c-text-soft); font-size: 12.5px; }
.ui47b89-fact-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ui47b89-fact { padding: 10px; border: 1px solid var(--ui47b89-c-line-soft); border-radius: 8px; background: rgba(255, 182, 193, 0.04); }
.ui47b89-fact strong { display: block; color: var(--ui47b89-c-blush); font-size: 12px; margin-bottom: 3px; }
.ui47b89-fact span { color: var(--ui47b89-c-text-dim); font-size: 11.5px; }
.ui47b89-about-map { display: grid; gap: 8px; margin-top: 12px; }
.ui47b89-about-map article { padding: 11px 12px; border-top: 2px solid var(--ui47b89-c-rose); background: rgba(240, 128, 128, 0.05); }
.ui47b89-about-map h3 { margin-bottom: 4px; font-size: 14px; color: var(--ui47b89-c-blush); }
.ui47b89-about-map p { margin: 0; color: var(--ui47b89-c-text-soft); font-size: 12.5px; }
.ui47b89-qa-list { margin-top: 10px; }
.ui47b89-qa-list details { border-bottom: 1px solid var(--ui47b89-c-line-soft); padding: 10px 0; }
.ui47b89-qa-list summary { cursor: pointer; color: var(--ui47b89-c-blush); font-weight: 700; padding-right: 4px; }
.ui47b89-qa-list details p { margin: 7px 0 0; color: var(--ui47b89-c-text-soft); font-size: 12.5px; }
.ui47b89-scenario-grid { display: grid; gap: 9px; margin-top: 12px; }
.ui47b89-scenario-grid article { padding: 11px 12px; border: 1px solid var(--ui47b89-c-line-soft); border-radius: 10px 2px 10px 2px; background: linear-gradient(155deg, rgba(255, 20, 147, 0.09), rgba(255, 182, 193, 0.02)); }
.ui47b89-scenario-grid h3 { font-size: 14px; color: var(--ui47b89-c-text); }
.ui47b89-scenario-grid p { margin: 0; color: var(--ui47b89-c-text-soft); font-size: 12.5px; }
.ui47b89-help-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ui47b89-help-links a { display: inline-flex; min-height: 42px; align-items: center; padding: 7px 11px; border: 1px solid var(--ui47b89-c-line); border-radius: 3px; color: var(--ui47b89-c-blush); text-decoration: none; font-size: 12px; }
.ui47b89-help-links a:hover { background: rgba(255, 20, 147, 0.1); }

html { scroll-behavior: smooth; }
