/*
 * Arion Play APK - mobile-first stylesheet (320-430px phone canvas).
 * Site palette: deep indigo #1A1A2E canvas with pale cyan #AFEEEE ink.
 * Direction: centered identity bar, full-height menu layer, layered bottom
 * strip, compact square game catalog, step-progression rhythm, staggered CTAs.
 * All classes and custom properties use the frameced81- prefix.
 */

/* ---------------- Tokens ---------------- */

:root {
  --frameced81-bg: #1a1a2e;
  --frameced81-bg-deep: #141425;
  --frameced81-bg-raise: #22223e;
  --frameced81-bg-panel: rgba(175, 238, 238, 0.05);
  --frameced81-ink: #afeeee;
  --frameced81-ink-bright: #d9fbfb;
  --frameced81-ink-dim: rgba(175, 238, 238, 0.68);
  --frameced81-ink-faint: rgba(175, 238, 238, 0.46);
  --frameced81-line: rgba(175, 238, 238, 0.16);
  --frameced81-line-soft: rgba(175, 238, 238, 0.09);
  --frameced81-glow: rgba(175, 238, 238, 0.22);
  --frameced81-radius-card: 10px;
  --frameced81-radius-btn: 9px;
  --frameced81-radius-panel: 14px;
  --frameced81-font-display: "Trebuchet MS", "Segoe UI", Verdana, Arial, sans-serif;
  --frameced81-font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --frameced81-topbar-h: 96px;
  --frameced81-bottomnav-h: 84px;
}

/* ---------------- Base ---------------- */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

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

body {
  background: var(--frameced81-bg-deep);
  color: var(--frameced81-ink);
  font-family: var(--frameced81-font-body);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.frameced81-locked { overflow: hidden; }

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

a { color: var(--frameced81-ink); text-decoration: none; }

button { font-family: inherit; }

h1, h2, h3 { font-family: var(--frameced81-font-display); color: var(--frameced81-ink-bright); margin: 0; }

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

::selection { background: var(--frameced81-ink); color: var(--frameced81-bg); }

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

/* ---------------- Phone canvas ---------------- */

.frameced81-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 42% at 50% 0%, rgba(175, 238, 238, 0.10) 0%, rgba(175, 238, 238, 0) 62%),
    linear-gradient(180deg, #1e1e35 0%, var(--frameced81-bg) 34%, #17172b 100%);
  overflow: hidden;
}

.frameced81-page {
  padding-top: var(--frameced81-topbar-h);
  padding-bottom: calc(var(--frameced81-bottomnav-h) + 18px);
}

/* Wide screens keep the centered phone canvas with a quiet frame. */
@media (min-width: 431px) {
  .frameced81-shell {
    box-shadow: 0 0 0 1px var(--frameced81-line-soft), 0 24px 70px rgba(0, 0, 0, 0.55);
  }
}

/* ---------------- Top bar: centered identity + action strip ---------------- */

.frameced81-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 50;
  background: linear-gradient(180deg, rgba(20, 20, 37, 0.98) 0%, rgba(26, 26, 46, 0.96) 100%);
  border-bottom: 1px solid var(--frameced81-line);
  backdrop-filter: blur(8px);
}

.frameced81-identity {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 7px 12px 5px;
}

.frameced81-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.frameced81-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--frameced81-line);
  box-shadow: 0 0 12px var(--frameced81-glow);
  object-fit: cover;
}

.frameced81-brand-name {
  font-family: var(--frameced81-font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--frameced81-ink-bright);
}

.frameced81-top-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 52px;
  gap: 8px;
  padding: 0 12px 9px;
}

.frameced81-btn {
  min-height: 44px;
  border-radius: var(--frameced81-radius-btn);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

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

.frameced81-btn-register {
  background: linear-gradient(135deg, #c9f7f7 0%, var(--frameced81-ink) 100%);
  color: #14142a;
  box-shadow: 0 4px 16px var(--frameced81-glow);
}

.frameced81-btn-login {
  background: rgba(175, 238, 238, 0.07);
  color: var(--frameced81-ink-bright);
  border-color: var(--frameced81-line);
}

/* Hamburger trigger drawn with spans (logo stays a real image). */
.frameced81-btn-menu {
  position: relative;
  min-height: 44px;
  border-radius: var(--frameced81-radius-btn);
  background: rgba(175, 238, 238, 0.07);
  border: 1px solid var(--frameced81-line);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.frameced81-btn-menu:active { transform: scale(0.92); }

.frameced81-menu-box {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.frameced81-menu-box span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--frameced81-ink);
}

.frameced81-menu-box span:last-child { width: 12px; }

/* ---------------- Full-height menu layer ---------------- */

.frameced81-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 10, 20, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.frameced81-mask.frameced81-menu-on { opacity: 1; visibility: visible; }

.frameced81-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 61;
  width: min(84vw, 320px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #20203a 0%, #16162b 100%);
  border-right: 1px solid var(--frameced81-line);
  transform: translateX(-102%);
  transition: transform 0.26s ease;
  overflow-y: auto;
}

.frameced81-menu.frameced81-menu-on { transform: translateX(0); }

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

.frameced81-menu-head img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--frameced81-line);
}

.frameced81-menu-title {
  font-family: var(--frameced81-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--frameced81-ink-bright);
  flex: 1;
}

.frameced81-menu-close {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--frameced81-line);
  background: rgba(175, 238, 238, 0.06);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.frameced81-menu-close:active { transform: scale(0.9); }

.frameced81-menu-close::before,
.frameced81-menu-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--frameced81-ink);
}

.frameced81-menu-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.frameced81-menu-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.frameced81-menu-groups { padding: 12px 14px 6px; }

.frameced81-menu-group { margin-bottom: 14px; }

.frameced81-menu-group-title {
  margin: 0 0 7px;
  padding-left: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frameced81-ink-faint);
}

.frameced81-menu-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--frameced81-radius-btn);
  font-size: 14px;
  color: var(--frameced81-ink);
  border: 1px solid transparent;
}

.frameced81-menu-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--frameced81-ink-faint);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.frameced81-menu-link:active { background: rgba(175, 238, 238, 0.08); }

.frameced81-menu-link[aria-current="page"] {
  background: rgba(175, 238, 238, 0.08);
  border-color: var(--frameced81-line);
  color: var(--frameced81-ink-bright);
}

.frameced81-menu-link[aria-current="page"]::before {
  background: var(--frameced81-ink);
  box-shadow: 0 0 8px var(--frameced81-glow);
}

.frameced81-menu-cta {
  margin: auto 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9f7f7 0%, var(--frameced81-ink) 100%);
  color: #14142a;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px var(--frameced81-glow);
}

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

.frameced81-hero { padding: 18px 16px 4px; }

.frameced81-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--frameced81-line);
  background: var(--frameced81-bg-panel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frameced81-ink-dim);
}

.frameced81-hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--frameced81-ink);
  box-shadow: 0 0 8px var(--frameced81-glow);
}

.frameced81-hero-title {
  font-size: 27px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.frameced81-hero-sub {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--frameced81-ink-dim);
}

.frameced81-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

/* Staggered CTA sizes: one large pill plus a compact ghost. */
.frameced81-btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #d5fafa 0%, var(--frameced81-ink) 100%);
  color: #14142a;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 22px var(--frameced81-glow);
  transition: transform 0.12s ease;
}

.frameced81-btn-hero:active { transform: scale(0.95); }

.frameced81-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--frameced81-radius-btn);
  border: 1px solid var(--frameced81-line);
  background: rgba(175, 238, 238, 0.05);
  color: var(--frameced81-ink-bright);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease;
}

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

/* ---------------- Banner carousel ---------------- */

.frameced81-carousel {
  position: relative;
  margin: 16px 16px 0;
  border-radius: var(--frameced81-radius-panel);
  overflow: hidden;
  border: 1px solid var(--frameced81-line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.frameced81-car-viewport { overflow: hidden; }

.frameced81-car-track {
  display: flex;
  transition: transform 0.45s ease;
  touch-action: pan-y;
}

.frameced81-car-slide { min-width: 100%; }

.frameced81-car-slide img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.frameced81-car-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.frameced81-car-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(175, 238, 238, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.frameced81-car-dot.frameced81-car-dot-on {
  width: 20px;
  background: var(--frameced81-ink);
  box-shadow: 0 0 8px var(--frameced81-glow);
}

/* ---------------- Category quick chips ---------------- */

.frameced81-catbar {
  display: flex;
  gap: 8px;
  margin: 14px 16px 0;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.frameced81-catbar::-webkit-scrollbar { display: none; }

.frameced81-cat-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--frameced81-line);
  background: var(--frameced81-bg-panel);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--frameced81-ink);
  white-space: nowrap;
}

.frameced81-cat-chip:active { transform: scale(0.94); }

/* ---------------- Step ladder ---------------- */

.frameced81-steps {
  position: relative;
  margin: 20px 16px 0;
  padding: 14px;
  border-radius: var(--frameced81-radius-panel);
  border: 1px solid var(--frameced81-line-soft);
  background: var(--frameced81-bg-panel);
}

.frameced81-steps-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.frameced81-steps-rail { position: relative; }

.frameced81-steps-rail::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--frameced81-ink) 0%, rgba(175, 238, 238, 0.1) 100%);
  opacity: 0.4;
}

.frameced81-step {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 7px 0;
}

.frameced81-step-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(150deg, rgba(175, 238, 238, 0.22), rgba(175, 238, 238, 0.06));
  border: 1px solid var(--frameced81-line);
  font-family: var(--frameced81-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--frameced81-ink-bright);
}

.frameced81-step-body { flex: 1; min-width: 0; }

.frameced81-step-title {
  margin: 3px 0 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--frameced81-ink-bright);
  font-family: var(--frameced81-font-body);
}

.frameced81-step-text {
  margin: 0;
  font-size: 12.8px;
  color: var(--frameced81-ink-dim);
}

/* ---------------- Direct answer block ---------------- */

.frameced81-answer {
  margin: 18px 16px 0;
  padding: 14px 14px 15px;
  border-radius: var(--frameced81-radius-panel);
  border: 1px solid var(--frameced81-line);
  border-left: 4px solid var(--frameced81-ink);
  background: linear-gradient(135deg, rgba(175, 238, 238, 0.1) 0%, rgba(175, 238, 238, 0.03) 70%);
}

.frameced81-answer-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--frameced81-ink);
  color: #14142a;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.frameced81-answer-text { margin: 0; font-size: 13.5px; color: var(--frameced81-ink); }

.frameced81-answer-text strong { color: var(--frameced81-ink-bright); }

/* ---------------- Game sections ---------------- */

.frameced81-section { margin-top: 26px; }

.frameced81-sec-head {
  padding: 0 16px;
  margin-bottom: 11px;
}

.frameced81-sec-eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frameced81-ink-faint);
}

.frameced81-sec-title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.frameced81-sec-note {
  margin: 7px 0 0;
  font-size: 12.8px;
  color: var(--frameced81-ink-dim);
}

/* Compact square catalog: 4 columns at 320px. */
.frameced81-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  padding: 0 12px;
}

.frameced81-gcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 5px 8px;
  border-radius: var(--frameced81-radius-card);
  border: 1px solid var(--frameced81-line-soft);
  background: linear-gradient(180deg, rgba(175, 238, 238, 0.06), rgba(175, 238, 238, 0.02));
  text-align: center;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.frameced81-gcard:active {
  transform: scale(0.93);
  border-color: var(--frameced81-line);
}

.frameced81-gcard img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--frameced81-bg-raise);
}

.frameced81-gname {
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--frameced81-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  word-break: break-word;
}

/* 375px and up: five tracks fit comfortably. */
@media (min-width: 375px) {
  .frameced81-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 8px; }
  .frameced81-gname { font-size: 11.5px; }
}

/* ---------------- Highlights module (category fit) ---------------- */

.frameced81-mod {
  margin: 26px 16px 0;
  padding: 15px 14px 16px;
  border-radius: var(--frameced81-radius-panel);
  border: 1px solid var(--frameced81-line-soft);
  background: var(--frameced81-bg-panel);
}

.frameced81-mod-title {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.frameced81-mod-lead {
  margin: 0 0 13px;
  font-size: 12.8px;
  color: var(--frameced81-ink-dim);
}

.frameced81-hi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 375px) {
  .frameced81-hi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.frameced81-hi-col {
  padding: 11px 11px 12px;
  border-radius: var(--frameced81-radius-card);
  border: 1px solid var(--frameced81-line-soft);
  background: rgba(26, 26, 46, 0.6);
}

.frameced81-hi-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.frameced81-hi-glyph {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(175, 238, 238, 0.14);
  border: 1px solid var(--frameced81-line);
  font-family: var(--frameced81-font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--frameced81-ink-bright);
}

.frameced81-hi-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--frameced81-ink-bright);
}

.frameced81-hi-desc {
  margin: 0;
  font-size: 12.4px;
  line-height: 1.5;
  color: var(--frameced81-ink-dim);
}

.frameced81-hi-desc a,
.frameced81-inline-link {
  color: var(--frameced81-ink-bright);
  border-bottom: 1px dashed var(--frameced81-ink-faint);
  font-weight: 600;
}

/* ---------------- Security checklist ---------------- */

.frameced81-check-row {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--frameced81-line-soft);
}

.frameced81-check-row:last-child { border-bottom: none; padding-bottom: 2px; }

.frameced81-check-ico {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--frameced81-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.frameced81-check-ico svg { width: 12px; height: 12px; stroke: var(--frameced81-ink); stroke-width: 3; fill: none; }

.frameced81-check-title {
  margin: 0 0 3px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--frameced81-ink-bright);
}

.frameced81-check-text {
  margin: 0;
  font-size: 12.6px;
  color: var(--frameced81-ink-dim);
}

/* ---------------- Winners strip ---------------- */

.frameced81-win-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.frameced81-win-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--frameced81-radius-card);
  border: 1px solid var(--frameced81-line-soft);
  background: rgba(26, 26, 46, 0.55);
}

.frameced81-win-user {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(175, 238, 238, 0.12);
  border: 1px solid var(--frameced81-line);
  font-size: 13px;
  font-weight: 800;
  color: var(--frameced81-ink-bright);
}

.frameced81-win-meta { flex: 1; min-width: 0; }

.frameced81-win-game {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--frameced81-ink-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frameced81-win-who { display: block; font-size: 11.5px; color: var(--frameced81-ink-faint); }

.frameced81-win-amt {
  flex: 0 0 auto;
  font-family: var(--frameced81-font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--frameced81-ink);
  text-shadow: 0 0 12px var(--frameced81-glow);
}

.frameced81-win-note {
  margin: 11px 0 0;
  font-size: 11.8px;
  color: var(--frameced81-ink-faint);
}

/* ---------------- How-to ladder (panel variant) ---------------- */

.frameced81-how-item {
  position: relative;
  padding: 11px 12px 12px 52px;
  margin-bottom: 8px;
  border-radius: var(--frameced81-radius-card);
  border: 1px solid var(--frameced81-line-soft);
  background: rgba(26, 26, 46, 0.55);
}

.frameced81-how-item:last-child { margin-bottom: 0; }

.frameced81-how-num {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--frameced81-ink);
  color: #14142a;
  font-family: var(--frameced81-font-display);
  font-size: 13px;
  font-weight: 800;
}

.frameced81-how-title {
  margin: 1px 0 3px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--frameced81-ink-bright);
}

.frameced81-how-text {
  margin: 0;
  font-size: 12.6px;
  color: var(--frameced81-ink-dim);
}

/* ---------------- Extended footer ---------------- */

.frameced81-ext {
  margin: 28px 12px 0;
  padding: 16px 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--frameced81-line);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(175, 238, 238, 0.09) 0%, rgba(175, 238, 238, 0) 70%),
    linear-gradient(180deg, #20203a 0%, #18182e 100%);
}

.frameced81-ext-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--frameced81-line);
  background: rgba(175, 238, 238, 0.07);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frameced81-ink-dim);
}

.frameced81-ext-title {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
}

.frameced81-ext-brand {
  margin: 0 0 14px;
  font-size: 12.8px;
  color: var(--frameced81-ink-dim);
}

/* Five promo actions with staggered weights. */
.frameced81-ext-promos { display: grid; gap: 9px; margin-bottom: 16px; }

.frameced81-promo-a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d5fafa 0%, var(--frameced81-ink) 100%);
  color: #14142a;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  width: 100%;
  box-shadow: 0 6px 20px var(--frameced81-glow);
  transition: transform 0.12s ease;
}

.frameced81-promo-a:active { transform: scale(0.96); }

.frameced81-promo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.frameced81-promo-s {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 46px;
  padding: 4px 10px;
  border-radius: var(--frameced81-radius-btn);
  border: 1px solid var(--frameced81-line);
  background: rgba(175, 238, 238, 0.06);
  color: var(--frameced81-ink-bright);
  font-size: 12.8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.frameced81-promo-s:active { transform: scale(0.95); }

.frameced81-promo-w {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--frameced81-radius-btn);
  border: 1px dashed var(--frameced81-line);
  background: transparent;
  color: var(--frameced81-ink-dim);
  font-size: 12.8px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform 0.12s ease;
}

.frameced81-promo-w:active { transform: scale(0.96); }

/* Page directory */
.frameced81-ext-dir-title {
  margin: 0 0 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--frameced81-ink-faint);
}

.frameced81-dir-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 0 0 14px;
}

@media (min-width: 375px) {
  .frameced81-dir-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.frameced81-dir-item {
  padding: 9px 10px;
  border-radius: var(--frameced81-radius-card);
  border: 1px solid var(--frameced81-line-soft);
  background: rgba(26, 26, 46, 0.5);
}

.frameced81-dir-link {
  display: block;
  font-size: 12.8px;
  font-weight: 700;
  color: var(--frameced81-ink-bright);
}

.frameced81-dir-desc {
  display: block;
  margin-top: 2px;
  font-size: 11.4px;
  color: var(--frameced81-ink-faint);
}

.frameced81-ext-disclaimer {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--frameced81-line-soft);
  font-size: 11.6px;
  line-height: 1.6;
  color: var(--frameced81-ink-faint);
}

/* ---------------- Common footer ---------------- */

.frameced81-foot {
  margin-top: 22px;
  padding: 14px 16px 6px;
  text-align: center;
}

.frameced81-foot-copy {
  margin: 0;
  font-size: 11.8px;
  color: var(--frameced81-ink-faint);
}

/* ---------------- Layered bottom navigation ---------------- */

.frameced81-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(24, 24, 44, 0.97) 0%, rgba(16, 16, 30, 0.99) 100%);
  border-top: 1px solid var(--frameced81-line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}

.frameced81-bn-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-height: 56px;
  padding: 4px 2px 2px;
  border-radius: 12px;
  color: var(--frameced81-ink-dim);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.frameced81-bn-item:active { transform: scale(0.9); }

.frameced81-bn-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 32px;
  border-radius: 10px;
  background: rgba(175, 238, 238, 0.05);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.frameced81-bn-svg { width: 23px; height: 23px; }

/* Bold outline glyphs whose inner fill lights up on the active item. */
.frameced81-ico-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.frameced81-ico-fill {
  fill: currentColor;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.frameced81-bn-item[aria-current="page"] { color: var(--frameced81-ink-bright); }

.frameced81-bn-item[aria-current="page"] .frameced81-bn-tile {
  background: rgba(175, 238, 238, 0.12);
  border-color: var(--frameced81-line);
}

.frameced81-bn-item[aria-current="page"] .frameced81-ico-fill { opacity: 0.92; }

.frameced81-bn-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.frameced81-bn-item[aria-current="page"] .frameced81-bn-label::after {
  content: "";
  display: block;
  width: 14px;
  height: 2px;
  margin: 3px auto 0;
  border-radius: 2px;
  background: var(--frameced81-ink);
  box-shadow: 0 0 8px var(--frameced81-glow);
}

/* Raised middle promo tile for the layered-strip look. */
.frameced81-bn-mid { padding-top: 0; }

.frameced81-bn-mid .frameced81-bn-tile {
  width: 46px;
  height: 36px;
  margin-top: -16px;
  background: linear-gradient(150deg, #d5fafa 0%, var(--frameced81-ink) 100%);
  border: 1px solid rgba(175, 238, 238, 0.6);
  box-shadow: 0 6px 16px var(--frameced81-glow);
  color: #14142a;
}

.frameced81-bn-mid .frameced81-ico-line { stroke-width: 2; }
.frameced81-bn-mid .frameced81-ico-fill { opacity: 0.9; }

/* ---------------- Motion budget ---------------- */

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