/* ==========================================================================
   Top 777 Casino — shell stylesheet (top777casino.click)
   Contract: every class carries the frame5d4a2- prefix, every custom
   property the --frame5d4a2-* prefix.
   Canvas: 320–430px phone-first; wide screens keep the centered canvas.
   Palette: #0C0C0C base / #FF0000 action / #FFB6C1 + #E9967A text tones.
   Voice: monospace accents over a regular body face, pill buttons against
   square game tiles, sliding focus indicators, staggered CTA sizes.
   ========================================================================== */

:root {
  --frame5d4a2-canvas: 430px;
  --frame5d4a2-ink: #0C0C0C;
  --frame5d4a2-ink-2: #131313;
  --frame5d4a2-ink-3: #1B1B1B;
  --frame5d4a2-red: #FF0000;
  --frame5d4a2-red-2: #D40000;
  --frame5d4a2-rose: #FFB6C1;
  --frame5d4a2-salmon: #E9967A;
  --frame5d4a2-paper: #FBEFF2;
  --frame5d4a2-mute: #C7A6AF;
  --frame5d4a2-line: rgba(255, 182, 193, 0.16);
  --frame5d4a2-line-2: rgba(233, 150, 122, 0.38);
  --frame5d4a2-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --frame5d4a2-font-mono: ui-monospace, "Cascadia Mono", "SF Mono",
    "Roboto Mono", Consolas, "Courier New", monospace;
  --frame5d4a2-r-btn: 999px;
  --frame5d4a2-r-card: 6px;
  --frame5d4a2-head-h: 56px;
  --frame5d4a2-nav-h: 60px;
  --frame5d4a2-pad: 14px;
}

/* --------------------------------------------------------------------------
   Reset + base canvas
   -------------------------------------------------------------------------- */

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

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

body {
  font-family: var(--frame5d4a2-font-body);
  background: var(--frame5d4a2-ink);
  color: var(--frame5d4a2-paper);
  line-height: 1.55;
  font-size: 14px;
  max-width: 430px; /* phone canvas stays centered on desktop */
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

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

a {
  color: var(--frame5d4a2-rose);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--frame5d4a2-rose);
  outline-offset: 2px;
}

::selection {
  background: var(--frame5d4a2-red);
  color: #fff;
}

.frame5d4a2-body-lock {
  overflow: hidden;
}

/* Skip link — first focus stop */
.frame5d4a2-skip {
  position: fixed;
  top: -48px;
  left: 12px;
  z-index: 90;
  background: var(--frame5d4a2-red);
  color: #fff;
  font-family: var(--frame5d4a2-font-mono);
  font-size: 12px;
  padding: 10px 16px;
  border-radius: var(--frame5d4a2-r-btn);
  transition: top 0.2s ease;
}

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

/* --------------------------------------------------------------------------
   Header — compact brand bar
   -------------------------------------------------------------------------- */

.frame5d4a2-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--frame5d4a2-head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  background: rgba(12, 12, 12, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--frame5d4a2-line);
  z-index: 70;
}

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

.frame5d4a2-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--frame5d4a2-line-2);
  flex: 0 0 auto;
}

.frame5d4a2-site-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.frame5d4a2-site-name b {
  color: var(--frame5d4a2-rose);
  font-family: var(--frame5d4a2-font-mono);
  font-weight: 700;
}

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

/* Pill buttons — round by design contract, staggered by role */
.frame5d4a2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--frame5d4a2-r-btn);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease, background 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.frame5d4a2-btn:active {
  transform: scale(0.96);
}

.frame5d4a2-btn--register {
  background: linear-gradient(180deg, #ff2020 0%, var(--frame5d4a2-red-2) 100%);
  color: #fff;
  box-shadow: 0 5px 16px rgba(255, 0, 0, 0.32);
}

.frame5d4a2-btn--register:hover {
  box-shadow: 0 7px 20px rgba(255, 0, 0, 0.45);
}

.frame5d4a2-btn--login {
  background: rgba(255, 182, 193, 0.06);
  border-color: var(--frame5d4a2-line-2);
  color: var(--frame5d4a2-paper);
  padding: 0 11px;
}

.frame5d4a2-btn--login:hover {
  border-color: var(--frame5d4a2-salmon);
  color: #fff;
}

/* Hamburger toggle */
.frame5d4a2-menu-btn {
  width: 42px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 4px;
  border-radius: 10px;
}

.frame5d4a2-menu-btn span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--frame5d4a2-rose);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease;
}

.frame5d4a2-menu-btn span:nth-child(2) {
  width: 13px;
  justify-self: start;
}

.frame5d4a2-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.frame5d4a2-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.frame5d4a2-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Stacked overlay menu
   -------------------------------------------------------------------------- */

.frame5d4a2-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -102%);
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  overflow-y: auto;
  background:
    radial-gradient(120% 40% at 50% 0%, rgba(255, 0, 0, 0.16), transparent 70%),
    rgba(10, 10, 10, 0.985);
  z-index: 60;
  padding: calc(var(--frame5d4a2-head-h) + 10px) 16px 28px;
  visibility: hidden;
  transition: transform 0.34s cubic-bezier(0.22, 0.9, 0.3, 1),
    visibility 0s 0.34s;
}

.frame5d4a2-overlay[data-open="true"] {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform 0.34s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.frame5d4a2-overlay-tag {
  font-family: var(--frame5d4a2-font-mono);
  font-size: 10px;
  letter-spacing: 2.4px;
  color: var(--frame5d4a2-salmon);
  display: block;
  margin: 4px 2px 8px;
}

.frame5d4a2-overlay-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--frame5d4a2-line);
  transition: background 0.16s ease, padding-left 0.16s ease;
}

.frame5d4a2-overlay-item:hover {
  background: var(--frame5d4a2-ink-3);
  padding-left: 12px;
}

.frame5d4a2-overlay-num {
  font-family: var(--frame5d4a2-font-mono);
  font-size: 11px;
  color: var(--frame5d4a2-rose);
  flex: 0 0 26px;
}

.frame5d4a2-overlay-item a {
  flex: 1;
  color: var(--frame5d4a2-paper);
  font-size: 16.5px;
  font-weight: 600;
}

.frame5d4a2-overlay-item a::after {
  content: "→";
  color: var(--frame5d4a2-salmon);
  font-family: var(--frame5d4a2-font-mono);
  margin-left: 10px;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.frame5d4a2-overlay-item:hover a::after {
  opacity: 1;
}

.frame5d4a2-overlay-cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.frame5d4a2-overlay-cta .frame5d4a2-btn--register {
  min-height: 50px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Main column
   -------------------------------------------------------------------------- */

.frame5d4a2-main {
  padding: calc(var(--frame5d4a2-head-h) + 14px) var(--frame5d4a2-pad)
    calc(var(--frame5d4a2-nav-h) + 30px + env(safe-area-inset-bottom));
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.frame5d4a2-hero {
  padding: 8px 2px 18px;
}

.frame5d4a2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--frame5d4a2-font-mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  color: var(--frame5d4a2-salmon);
  border: 1px solid var(--frame5d4a2-line-2);
  border-radius: var(--frame5d4a2-r-btn);
  padding: 6px 12px;
  margin-bottom: 12px;
}

.frame5d4a2-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--frame5d4a2-red);
  box-shadow: 0 0 8px var(--frame5d4a2-red);
}

.frame5d4a2-h1 {
  font-size: clamp(21px, 6.4vw, 26px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}

.frame5d4a2-h1 em {
  font-style: normal;
  color: var(--frame5d4a2-red);
}

.frame5d4a2-hero-lead {
  color: var(--frame5d4a2-mute);
  font-size: 13.5px;
  margin-bottom: 16px;
}

.frame5d4a2-hero-lead strong {
  color: var(--frame5d4a2-paper);
  font-weight: 600;
}

.frame5d4a2-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* Staggered CTA sizes: fat primary, slimmer secondary */
.frame5d4a2-btn--hero {
  min-height: 52px;
  padding: 0 26px;
  font-size: 15px;
}

.frame5d4a2-btn--alt {
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
  background: rgba(255, 182, 193, 0.05);
  border: 1px solid var(--frame5d4a2-line-2);
  color: var(--frame5d4a2-paper);
}

.frame5d4a2-btn--alt:hover {
  border-color: var(--frame5d4a2-salmon);
  color: #fff;
}

.frame5d4a2-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

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

.frame5d4a2-chip {
  flex: 0 0 auto;
  font-family: var(--frame5d4a2-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.8px;
  color: var(--frame5d4a2-rose);
  background: var(--frame5d4a2-ink-2);
  border: 1px solid var(--frame5d4a2-line);
  border-radius: var(--frame5d4a2-r-card);
  padding: 7px 11px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Banner carousel — sliding pill indicator
   -------------------------------------------------------------------------- */

.frame5d4a2-carousel {
  position: relative;
  margin: 4px 0 6px;
  border-radius: var(--frame5d4a2-r-card);
  border: 1px solid var(--frame5d4a2-line);
  overflow: hidden;
  background: var(--frame5d4a2-ink-2);
}

.frame5d4a2-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.frame5d4a2-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
}

.frame5d4a2-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.frame5d4a2-slide:hover img {
  transform: scale(1.04);
}

.frame5d4a2-slide-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--frame5d4a2-font-mono);
  font-size: 9.5px;
  letter-spacing: 1.6px;
  color: #fff;
  background: rgba(12, 12, 12, 0.72);
  border: 1px solid var(--frame5d4a2-line-2);
  border-radius: var(--frame5d4a2-r-btn);
  padding: 4px 9px;
}

.frame5d4a2-cast {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--frame5d4a2-font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: #fff;
  background: var(--frame5d4a2-red);
  border-radius: var(--frame5d4a2-r-btn);
  padding: 7px 12px;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4);
}

.frame5d4a2-dots {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 10px 0 2px;
}

.frame5d4a2-dot {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 24px;
  display: grid;
  place-items: center;
}

.frame5d4a2-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 182, 193, 0.32);
  transition: background 0.2s ease;
}

.frame5d4a2-dot:hover::after {
  background: var(--frame5d4a2-rose);
}

.frame5d4a2-dot.is-on::after {
  background: transparent;
}

.frame5d4a2-dot-pill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 18px;
  width: 30px;
  margin-top: -9px;
  border-radius: var(--frame5d4a2-r-btn);
  background: linear-gradient(180deg, #ff2020, var(--frame5d4a2-red-2));
  transition: transform 0.3s cubic-bezier(0.3, 0.8, 0.3, 1);
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Category rail — sliding focus indicator
   -------------------------------------------------------------------------- */

.frame5d4a2-rail {
  position: relative;
  margin: 12px 0 4px;
}

.frame5d4a2-rail-row {
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0 8px;
}

.frame5d4a2-rail-row::-webkit-scrollbar {
  display: none;
}

.frame5d4a2-rail-chip {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-family: var(--frame5d4a2-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--frame5d4a2-mute);
  background: var(--frame5d4a2-ink-2);
  border: 1px solid var(--frame5d4a2-line);
  border-radius: var(--frame5d4a2-r-card);
  padding: 10px 15px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.frame5d4a2-rail-chip:hover {
  color: var(--frame5d4a2-paper);
  border-color: var(--frame5d4a2-line-2);
}

.frame5d4a2-rail-chip.is-on {
  color: #fff;
  border-color: transparent;
}

.frame5d4a2-rail-ind {
  position: absolute;
  bottom: 8px;
  left: 0;
  height: 2px;
  width: 60px;
  background: var(--frame5d4a2-red);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
  transition: transform 0.3s cubic-bezier(0.3, 0.8, 0.3, 1), width 0.3s ease;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Game sections — square tiles, image-first, short name below
   -------------------------------------------------------------------------- */

.frame5d4a2-section {
  padding: 24px 0 6px;
  scroll-margin-top: calc(var(--frame5d4a2-head-h) + 10px);
}

.frame5d4a2-sec-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--frame5d4a2-font-mono);
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--frame5d4a2-salmon);
  margin-bottom: 6px;
}

.frame5d4a2-sec-tag::before {
  content: "";
  width: 14px;
  height: 3px;
  background: var(--frame5d4a2-red);
  border-radius: 2px;
}

.frame5d4a2-sec-title {
  font-size: clamp(17px, 4.8vw, 19.5px);
  line-height: 1.28;
  font-weight: 800;
  margin-bottom: 8px;
}

.frame5d4a2-sec-lead {
  color: var(--frame5d4a2-mute);
  font-size: 13px;
  margin-bottom: 14px;
}

.frame5d4a2-sec-lead strong {
  color: var(--frame5d4a2-paper);
  font-weight: 600;
}

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

.frame5d4a2-gcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 5px 5px 8px;
  background: var(--frame5d4a2-ink-2);
  border: 1px solid var(--frame5d4a2-line);
  border-radius: var(--frame5d4a2-r-card);
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.frame5d4a2-gcard:hover {
  transform: translateY(-3px);
  border-color: var(--frame5d4a2-line-2);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}

.frame5d4a2-gcard:active {
  transform: translateY(0);
}

.frame5d4a2-gcard-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--frame5d4a2-ink-3);
}

.frame5d4a2-gcard-name {
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--frame5d4a2-rose);
  text-align: center;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.frame5d4a2-sec-count {
  font-family: var(--frame5d4a2-font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--frame5d4a2-mute);
  margin: 12px 2px 0;
}

.frame5d4a2-sec-count b {
  color: var(--frame5d4a2-salmon);
}

/* --------------------------------------------------------------------------
   Content panels
   -------------------------------------------------------------------------- */

.frame5d4a2-panel {
  margin-top: 26px;
  background: var(--frame5d4a2-ink-2);
  border: 1px solid var(--frame5d4a2-line);
  border-radius: var(--frame5d4a2-r-card);
  padding: 16px 14px 18px;
}

.frame5d4a2-panel > .frame5d4a2-sec-tag {
  margin-bottom: 8px;
}

.frame5d4a2-panel-lead {
  font-size: 13px;
  color: var(--frame5d4a2-paper);
  margin: 8px 0 12px;
}

.frame5d4a2-panel p + p {
  margin-top: 10px;
}

.frame5d4a2-p {
  font-size: 13px;
  color: var(--frame5d4a2-mute);
}

.frame5d4a2-p strong {
  color: var(--frame5d4a2-paper);
  font-weight: 600;
}

.frame5d4a2-inline-link {
  color: var(--frame5d4a2-salmon);
  border-bottom: 1px dashed var(--frame5d4a2-line-2);
  font-weight: 600;
}

.frame5d4a2-inline-link:hover {
  color: var(--frame5d4a2-rose);
  border-bottom-style: solid;
}

/* Scene-branch blocks */
.frame5d4a2-branches {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.frame5d4a2-branch {
  border: 1px solid var(--frame5d4a2-line);
  border-left: 3px solid var(--frame5d4a2-red);
  border-radius: var(--frame5d4a2-r-card);
  background: var(--frame5d4a2-ink);
  padding: 12px 12px 13px;
}

.frame5d4a2-branch--alt {
  border-left-color: var(--frame5d4a2-salmon);
}

.frame5d4a2-branch-if {
  display: inline-block;
  font-family: var(--frame5d4a2-font-mono);
  font-size: 9.5px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 0, 0, 0.85);
  border-radius: var(--frame5d4a2-r-btn);
  padding: 3px 9px;
  margin-bottom: 8px;
}

.frame5d4a2-branch--alt .frame5d4a2-branch-if {
  background: rgba(233, 150, 122, 0.9);
}

.frame5d4a2-branch-h {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--frame5d4a2-paper);
  margin-bottom: 5px;
}

.frame5d4a2-branch p {
  font-size: 12.5px;
  color: var(--frame5d4a2-mute);
}

/* FAQ details */
.frame5d4a2-faq {
  border: 1px solid var(--frame5d4a2-line);
  border-radius: var(--frame5d4a2-r-card);
  background: var(--frame5d4a2-ink);
  margin-bottom: 9px;
  overflow: hidden;
}

.frame5d4a2-faq[open] {
  border-color: var(--frame5d4a2-line-2);
}

.frame5d4a2-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--frame5d4a2-paper);
  cursor: pointer;
}

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

.frame5d4a2-faq summary::after {
  content: "+";
  margin-left: auto;
  flex: 0 0 auto;
  font-family: var(--frame5d4a2-font-mono);
  font-size: 16px;
  color: var(--frame5d4a2-salmon);
  transition: transform 0.2s ease;
}

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

.frame5d4a2-faq-body {
  padding: 0 12px 13px;
  font-size: 12.5px;
  color: var(--frame5d4a2-mute);
}

/* Checklist */
.frame5d4a2-check {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
}

.frame5d4a2-check-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.frame5d4a2-check-mark {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 1.6px solid var(--frame5d4a2-rose);
  border-radius: 3px;
  position: relative;
}

.frame5d4a2-check-mark::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  background: var(--frame5d4a2-red);
  border-radius: 1px;
}

.frame5d4a2-check-item p {
  font-size: 12.5px;
  color: var(--frame5d4a2-mute);
}

.frame5d4a2-check-item p b {
  color: var(--frame5d4a2-paper);
}

/* Steps */
.frame5d4a2-steps {
  counter-reset: frame5d4a2-step;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.frame5d4a2-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.frame5d4a2-step-num {
  counter-increment: frame5d4a2-step;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--frame5d4a2-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff2020, var(--frame5d4a2-red-2));
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.28);
}

.frame5d4a2-step-num::before {
  content: "0" counter(frame5d4a2-step);
}

.frame5d4a2-step p {
  font-size: 12.5px;
  color: var(--frame5d4a2-mute);
  padding-top: 4px;
}

.frame5d4a2-step p b {
  color: var(--frame5d4a2-paper);
}

/* --------------------------------------------------------------------------
   Extended footer — brand > directory > promotions > note
   -------------------------------------------------------------------------- */

.frame5d4a2-xfooter {
  margin-top: 30px;
  border: 1px solid var(--frame5d4a2-line);
  border-radius: var(--frame5d4a2-r-card);
  background: var(--frame5d4a2-ink-2);
  overflow: hidden;
}

.frame5d4a2-xf-label {
  font-family: var(--frame5d4a2-font-mono);
  font-size: 9.5px;
  letter-spacing: 2.2px;
  color: var(--frame5d4a2-salmon);
  display: flex;
  align-items: center;
  gap: 8px;
}

.frame5d4a2-xf-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--frame5d4a2-line);
}

.frame5d4a2-xf-brand {
  padding: 16px 14px 14px;
  background:
    linear-gradient(180deg, rgba(255, 0, 0, 0.09), transparent 75%),
    var(--frame5d4a2-ink-2);
}

.frame5d4a2-xf-brand .frame5d4a2-xf-label {
  margin-bottom: 10px;
}

.frame5d4a2-xf-brandrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.frame5d4a2-xf-brandrow img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--frame5d4a2-line-2);
}

.frame5d4a2-xf-brandrow span {
  font-size: 15px;
  font-weight: 800;
}

.frame5d4a2-xf-brandrow span b {
  color: var(--frame5d4a2-rose);
  font-family: var(--frame5d4a2-font-mono);
}

.frame5d4a2-xf-brand p {
  font-size: 12px;
  color: var(--frame5d4a2-mute);
}

.frame5d4a2-xf-dir {
  padding: 14px;
  border-top: 1px solid var(--frame5d4a2-line);
}

.frame5d4a2-xf-dir .frame5d4a2-xf-label {
  margin-bottom: 11px;
}

.frame5d4a2-xf-dirgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
}

.frame5d4a2-xf-dirgrid a {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--frame5d4a2-rose);
  border-left: 2px solid var(--frame5d4a2-line-2);
  padding: 4px 0 4px 9px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.frame5d4a2-xf-dirgrid a:hover {
  color: #fff;
  border-left-color: var(--frame5d4a2-red);
}

.frame5d4a2-xf-dirgrid a small {
  display: block;
  font-size: 9.5px;
  color: var(--frame5d4a2-mute);
  font-family: var(--frame5d4a2-font-mono);
  letter-spacing: 0.4px;
}

.frame5d4a2-xf-promos {
  padding: 14px;
  border-top: 1px solid var(--frame5d4a2-line);
}

.frame5d4a2-xf-promos .frame5d4a2-xf-label {
  margin-bottom: 12px;
}

.frame5d4a2-xf-promolist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.frame5d4a2-xf-promo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 10px 15px;
  border-radius: var(--frame5d4a2-r-btn);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.frame5d4a2-xf-promo:active {
  transform: scale(0.97);
}

.frame5d4a2-xf-promo::after {
  content: "↗";
  font-family: var(--frame5d4a2-font-mono);
  font-size: 13px;
}

.frame5d4a2-xf-promo--main {
  min-height: 52px;
  font-size: 14px;
  background: linear-gradient(180deg, #ff2020, var(--frame5d4a2-red-2));
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.3);
}

.frame5d4a2-xf-promo--line {
  background: rgba(255, 182, 193, 0.05);
  border: 1px solid var(--frame5d4a2-line-2);
  color: var(--frame5d4a2-paper);
  padding: 8px 15px;
}

.frame5d4a2-xf-promo--line:hover {
  border-color: var(--frame5d4a2-salmon);
  color: #fff;
}

.frame5d4a2-xf-promo--soft {
  background: rgba(233, 150, 122, 0.1);
  border: 1px dashed rgba(233, 150, 122, 0.45);
  color: var(--frame5d4a2-salmon);
  padding: 8px 15px;
}

.frame5d4a2-xf-promo--soft:hover {
  color: var(--frame5d4a2-rose);
  border-color: var(--frame5d4a2-salmon);
}

.frame5d4a2-xf-note {
  padding: 12px 14px 15px;
  border-top: 1px solid var(--frame5d4a2-line);
}

.frame5d4a2-xf-note .frame5d4a2-xf-label {
  margin-bottom: 8px;
}

.frame5d4a2-xf-note p {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--frame5d4a2-mute);
}

/* --------------------------------------------------------------------------
   Common footer + bottom icon shelf
   -------------------------------------------------------------------------- */

.frame5d4a2-footer {
  text-align: center;
  font-family: var(--frame5d4a2-font-mono);
  font-size: 10px;
  letter-spacing: 0.6px;
  color: var(--frame5d4a2-mute);
  padding: 16px 12px 6px;
  border-top: 1px solid var(--frame5d4a2-line);
  margin-top: 22px;
}

.frame5d4a2-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--frame5d4a2-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  align-items: stretch;
  background: rgba(12, 12, 12, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--frame5d4a2-line-2);
  z-index: 65;
}

.frame5d4a2-bn-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--frame5d4a2-mute);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s ease;
}

.frame5d4a2-bn-item:hover {
  color: var(--frame5d4a2-rose);
}

.frame5d4a2-bn-ico {
  width: 23px;
  height: 23px;
  transition: transform 0.2s ease;
}

.frame5d4a2-bn-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.frame5d4a2-ico-line {
  display: block;
}

.frame5d4a2-ico-fill {
  display: none;
}

.frame5d4a2-bn-label {
  font-family: var(--frame5d4a2-font-mono);
  font-size: 8.5px;
  letter-spacing: 0.7px;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.2s ease, max-height 0.2s ease;
}

.frame5d4a2-bn-item:hover .frame5d4a2-bn-label,
.frame5d4a2-bn-item:focus-visible .frame5d4a2-bn-label {
  opacity: 0.85;
  max-height: 14px;
}

.frame5d4a2-bn-item.is-active {
  color: var(--frame5d4a2-red);
}

.frame5d4a2-bn-item.is-active .frame5d4a2-bn-ico {
  transform: translateY(-2px); /* slight lift on the active role */
}

.frame5d4a2-bn-item.is-active .frame5d4a2-bn-label {
  opacity: 1;
  max-height: 14px;
  color: var(--frame5d4a2-rose);
}

/* Linear icon at rest, filled shape while active */
.frame5d4a2-bn-item.is-active .frame5d4a2-ico-line {
  display: none;
}

.frame5d4a2-bn-item.is-active .frame5d4a2-ico-fill {
  display: block;
}

.frame5d4a2-bn-item--promo .frame5d4a2-bn-ico {
  color: var(--frame5d4a2-salmon);
}

.frame5d4a2-bn-item--promo.is-active .frame5d4a2-bn-ico,
.frame5d4a2-bn-item--promo:hover .frame5d4a2-bn-ico {
  color: var(--frame5d4a2-red);
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 375px) {
  .frame5d4a2-btn {
    padding: 0 15px;
    font-size: 13px;
  }

  .frame5d4a2-gcard-name {
    font-size: 11px;
  }

  .frame5d4a2-grid {
    gap: 12px 10px;
  }
}

/* 430px phone-canvas breakpoint — widest supported phone profile */
@media (min-width: 430px) {
  body {
    box-shadow: 0 0 60px rgba(255, 0, 0, 0.06);
  }

  .frame5d4a2-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .frame5d4a2-xf-dirgrid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
