/* ==========================================================================
   Piso Plus - layers-dynamic-9f16d9.css
   Mobile-first (320-430px) canvas. Stroke-led restrained rounding,
   geometric headings over a neutral body face, square high-contrast CTAs.
   All classes and custom properties carry the frame9f16d- prefix.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --frame9f16d-ink: #16212c;          /* deepest page background */
  --frame9f16d-slate: #1f2d3b;        /* canvas surface */
  --frame9f16d-panel: #2a3b4d;        /* raised panels */
  --frame9f16d-panel2: #31465b;       /* hover / alt panels */
  --frame9f16d-line: #45607a;         /* stroke color */
  --frame9f16d-line2: #5b7791;        /* lighter stroke */
  --frame9f16d-magenta: #c71585;      /* brand accent */
  --frame9f16d-coral: #ff7f50;        /* primary CTA */
  --frame9f16d-sky: #00bfff;          /* links, highlights */
  --frame9f16d-teal: #48d1cc;         /* secondary accent */
  --frame9f16d-paper: #f8f9fa;        /* main text */
  --frame9f16d-muted: #a9bccd;        /* secondary text */
  --frame9f16d-soft: #7e94a7;         /* faint text */
  --frame9f16d-dark: #101a23;         /* near-black on accents */
  --frame9f16d-font-head: "Avenir Next", "Trebuchet MS", Futura, "Segoe UI", sans-serif;
  --frame9f16d-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --frame9f16d-r-small: 3px;
  --frame9f16d-r-tiny: 2px;
  --frame9f16d-header-h: 96px;
  --frame9f16d-dock-h: 66px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--frame9f16d-ink);
  color: var(--frame9f16d-paper);
  font-family: var(--frame9f16d-font-body);
  font-size: 15px;
  line-height: 1.62;
  overflow-x: hidden;
}

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

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

a {
  color: var(--frame9f16d-sky);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--frame9f16d-font-head);
  color: var(--frame9f16d-paper);
  margin: 0 0 .5em;
  line-height: 1.25;
  letter-spacing: .01em;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

li { margin: 0 0 .45em; }

:focus-visible {
  outline: 2px solid var(--frame9f16d-sky);
  outline-offset: 2px;
  border-radius: var(--frame9f16d-r-tiny);
}

::selection {
  background: var(--frame9f16d-magenta);
  color: #fff;
}

/* ---------- Phone canvas ---------- */
.frame9f16d-canvas {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--frame9f16d-slate);
  border-left: 1px solid var(--frame9f16d-line);
  border-right: 1px solid var(--frame9f16d-line);
  box-shadow: 0 0 44px rgba(0, 0, 0, .55);
}

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

/* ==========================================================================
   Fixed header: tab-style top bar
   ========================================================================== */
.frame9f16d-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, #1b2937 0%, #1f2d3b 100%);
  border-bottom: 1px solid var(--frame9f16d-line);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .45);
}

.frame9f16d-brandrow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 7px 10px 6px;
}

.frame9f16d-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-right: auto;
}

.frame9f16d-logo {
  width: 38px;
  height: 38px;
  border: 1px solid var(--frame9f16d-line2);
  border-radius: var(--frame9f16d-r-small);
  background: var(--frame9f16d-panel);
  flex: 0 0 auto;
}

.frame9f16d-brandname {
  font-family: var(--frame9f16d-font-head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--frame9f16d-paper);
  white-space: nowrap;
}

.frame9f16d-brandname em {
  font-style: normal;
  color: var(--frame9f16d-coral);
}

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

/* Square high-contrast CTAs */
.frame9f16d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  font-family: var(--frame9f16d-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  border-radius: 0;                 /* square CTA shape */
  border: 1px solid transparent;
  transition: filter .18s ease, background-color .18s ease, color .18s ease, transform .12s ease;
}

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

.frame9f16d-btn--register {
  background: var(--frame9f16d-coral);
  border-color: var(--frame9f16d-coral);
  color: var(--frame9f16d-dark);
}

.frame9f16d-btn--register:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.frame9f16d-btn--login {
  background: transparent;
  border-color: var(--frame9f16d-sky);
  color: var(--frame9f16d-sky);
}

.frame9f16d-btn--login:hover {
  background: rgba(0, 191, 255, .12);
  text-decoration: none;
}

.frame9f16d-btn--wide {
  width: 100%;
  min-height: 46px;
  font-size: 14px;
  padding: 11px 16px;
}

.frame9f16d-btn--ghost {
  background: transparent;
  border-color: var(--frame9f16d-line2);
  color: var(--frame9f16d-paper);
}

.frame9f16d-btn--ghost:hover { background: var(--frame9f16d-panel); }

.frame9f16d-menubtn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--frame9f16d-line);
  border-radius: var(--frame9f16d-r-small);
  background: var(--frame9f16d-panel);
}

.frame9f16d-menubtn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--frame9f16d-paper);
  transition: transform .2s ease, opacity .2s ease;
}

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

/* Category tab strip under the brand row */
.frame9f16d-tabstrip {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--frame9f16d-line);
  background: #1a2634;
  -webkit-overflow-scrolling: touch;
}

.frame9f16d-tabstrip::-webkit-scrollbar { display: none; }

.frame9f16d-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 38px;
  min-width: 64px;
  padding: 8px 12px 7px;
  font-family: var(--frame9f16d-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--frame9f16d-muted);
  text-align: center;
  border-right: 1px solid rgba(69, 96, 122, .5);
}

.frame9f16d-tab:last-child { border-right: 0; }

.frame9f16d-tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.frame9f16d-tab.frame9f16d-active {
  color: var(--frame9f16d-paper);
  background: rgba(199, 21, 133, .16);
}

.frame9f16d-tab.frame9f16d-active::after { background: var(--frame9f16d-magenta); }

/* ==========================================================================
   Slide-up route panel (main menu)
   ========================================================================== */
.frame9f16d-routebackdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10, 16, 22, .66);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.frame9f16d-routebackdrop.frame9f16d-open {
  opacity: 1;
  visibility: visible;
}

.frame9f16d-routepanel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 102%);
  width: 100%;
  max-width: 430px;
  max-height: 74vh;
  overflow-y: auto;
  z-index: 80;
  background: var(--frame9f16d-slate);
  border-top: 2px solid var(--frame9f16d-magenta);
  border-left: 1px solid var(--frame9f16d-line);
  border-right: 1px solid var(--frame9f16d-line);
  padding: 14px 14px calc(20px + env(safe-area-inset-bottom, 0px));
  transition: transform .26s ease;
  overscroll-behavior: contain;
}

.frame9f16d-routepanel.frame9f16d-open { transform: translate(-50%, 0); }

.frame9f16d-routetitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.frame9f16d-routetitle strong {
  font-family: var(--frame9f16d-font-head);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--frame9f16d-teal);
}

.frame9f16d-routeclose {
  min-width: 44px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--frame9f16d-line);
  border-radius: var(--frame9f16d-r-small);
  color: var(--frame9f16d-muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.frame9f16d-routegroup {
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px dashed var(--frame9f16d-line);
}

.frame9f16d-routegroup:last-of-type { border-bottom: 0; }

.frame9f16d-routelabel {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--frame9f16d-soft);
  margin: 0 0 6px;
}

.frame9f16d-routeitem {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(69, 96, 122, .35);
  color: var(--frame9f16d-paper);
  font-size: 14px;
}

.frame9f16d-routeitem:hover {
  background: var(--frame9f16d-panel);
  border-color: var(--frame9f16d-line);
  text-decoration: none;
}

.frame9f16d-routeitem .frame9f16d-routemark {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border: 1px solid var(--frame9f16d-coral);
  background: transparent;
}

.frame9f16d-routeitem:hover .frame9f16d-routemark { background: var(--frame9f16d-coral); }

.frame9f16d-routepanel .frame9f16d-btn { margin-top: 4px; }

/* ==========================================================================
   Main layout
   ========================================================================== */
.frame9f16d-main {
  display: block;
  padding: calc(var(--frame9f16d-header-h) + 6px) 12px calc(var(--frame9f16d-dock-h) + 30px);
}

.frame9f16d-section {
  margin: 0 0 26px;
  scroll-margin-top: calc(var(--frame9f16d-header-h) + 8px);
}

.frame9f16d-secthead {
  border-left: 3px solid var(--frame9f16d-magenta);
  padding-left: 10px;
  margin-bottom: 10px;
}

.frame9f16d-secthead--teal { border-left-color: var(--frame9f16d-teal); }
.frame9f16d-secthead--sky { border-left-color: var(--frame9f16d-sky); }
.frame9f16d-secthead--coral { border-left-color: var(--frame9f16d-coral); }

.frame9f16d-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--frame9f16d-sky);
  margin: 0 0 4px;
}

.frame9f16d-h2 {
  font-size: 19px;
  margin: 0;
}

.frame9f16d-h3 {
  font-size: 15px;
  margin: 14px 0 6px;
  color: var(--frame9f16d-teal);
}

/* Fact-summary first lead line */
.frame9f16d-lead {
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--frame9f16d-line);
  border-left: 3px solid var(--frame9f16d-teal);
  border-radius: 0 var(--frame9f16d-r-small) var(--frame9f16d-r-small) 0;
  background: rgba(72, 209, 204, .07);
  color: var(--frame9f16d-paper);
  font-size: 14px;
}

.frame9f16d-lead strong { color: var(--frame9f16d-teal); }

.frame9f16d-bodytext {
  font-size: 14px;
  color: #d6e2ec;
}

.frame9f16d-bodytext a { text-decoration: underline; text-underline-offset: 3px; }

.frame9f16d-bodytext a:hover { color: var(--frame9f16d-teal); }

/* ==========================================================================
   Hero
   ========================================================================== */
.frame9f16d-hero {
  margin-bottom: 22px;
}

.frame9f16d-h1 {
  font-size: 24px;
  margin: 6px 0 10px;
}

.frame9f16d-hero .frame9f16d-bodytext { margin-bottom: 12px; }

.frame9f16d-statrow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 14px;
}

.frame9f16d-stat {
  border: 1px solid var(--frame9f16d-line);
  border-radius: var(--frame9f16d-r-small);
  background: var(--frame9f16d-panel);
  padding: 7px 4px 6px;
  text-align: center;
}

.frame9f16d-stat b {
  display: block;
  font-family: var(--frame9f16d-font-head);
  font-size: 16px;
  color: var(--frame9f16d-coral);
  line-height: 1.1;
}

.frame9f16d-stat span {
  display: block;
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--frame9f16d-muted);
  margin-top: 3px;
}

/* ==========================================================================
   Carousel
   ========================================================================== */
.frame9f16d-carousel {
  position: relative;
  border: 1px solid var(--frame9f16d-line2);
  border-radius: var(--frame9f16d-r-small);
  overflow: hidden;
  background: var(--frame9f16d-panel);
  margin: 0 0 10px;
  touch-action: pan-y;
}

.frame9f16d-slide {
  position: relative;
  aspect-ratio: 2 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.frame9f16d-slide.frame9f16d-on {
  opacity: 1;
  visibility: visible;
}

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

.frame9f16d-slidecopy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(16, 26, 35, 0) 0%, rgba(16, 26, 35, .88) 62%);
}

.frame9f16d-slidetag {
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--frame9f16d-dark);
  background: var(--frame9f16d-teal);
  padding: 2px 7px;
}

.frame9f16d-slidename {
  font-family: var(--frame9f16d-font-head);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.frame9f16d-slidecta {
  align-self: flex-start;
  min-height: 34px;
  padding: 7px 14px;
  background: var(--frame9f16d-coral);
  color: var(--frame9f16d-dark);
  font-family: var(--frame9f16d-font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.frame9f16d-slidecta:active { transform: translateY(1px); }

.frame9f16d-ctrlrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.frame9f16d-arrow {
  width: 40px;
  height: 34px;
  border: 1px solid var(--frame9f16d-line2);
  border-radius: var(--frame9f16d-r-tiny);
  color: var(--frame9f16d-paper);
  background: var(--frame9f16d-panel);
  font-size: 15px;
  line-height: 1;
}

.frame9f16d-arrow:hover { border-color: var(--frame9f16d-sky); }

.frame9f16d-dotrow {
  display: flex;
  gap: 8px;
}

.frame9f16d-dot {
  width: 26px;
  height: 6px;
  border: 1px solid var(--frame9f16d-line2);
  background: transparent;
  padding: 0;
}

.frame9f16d-dot.frame9f16d-on {
  background: var(--frame9f16d-magenta);
  border-color: var(--frame9f16d-magenta);
}

/* ==========================================================================
   Featured rail - horizontal icon-name bars
   ========================================================================== */
.frame9f16d-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 158px;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  margin: 0 0 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.frame9f16d-rail::-webkit-scrollbar { height: 4px; }
.frame9f16d-rail::-webkit-scrollbar-thumb { background: var(--frame9f16d-line); }

.frame9f16d-railbar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  padding: 8px;
  text-align: left;
  border: 1px solid var(--frame9f16d-line);
  border-radius: var(--frame9f16d-r-small);
  background: var(--frame9f16d-panel);
  transition: border-color .18s ease, background-color .18s ease;
}

.frame9f16d-railbar:hover {
  border-color: var(--frame9f16d-coral);
  background: var(--frame9f16d-panel2);
}

.frame9f16d-railico {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--frame9f16d-line2);
  border-radius: var(--frame9f16d-r-tiny);
  object-fit: cover;
}

.frame9f16d-railmeta { min-width: 0; }

.frame9f16d-railname {
  display: block;
  font-family: var(--frame9f16d-font-head);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--frame9f16d-paper);
  line-height: 1.2;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.frame9f16d-railtag {
  display: block;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--frame9f16d-coral);
  margin-top: 3px;
}

/* ==========================================================================
   Game grids - compact icon tiles with name strips
   ========================================================================== */
.frame9f16d-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 0 0 12px;
}

.frame9f16d-game {
  display: flex;
  flex-direction: column;
  padding: 4px;
  border: 1px solid var(--frame9f16d-line);
  border-radius: var(--frame9f16d-r-small);
  background: var(--frame9f16d-panel);
  transition: border-color .16s ease, background-color .16s ease;
}

.frame9f16d-game:hover {
  border-color: var(--frame9f16d-sky);
  background: var(--frame9f16d-panel2);
}

.frame9f16d-gameico {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--frame9f16d-r-tiny);
  border: 1px solid rgba(91, 119, 145, .55);
  margin-bottom: 5px;
}

.frame9f16d-gamename {
  font-size: 10.5px;
  line-height: 1.28;
  color: var(--frame9f16d-muted);
  text-align: center;
  min-height: 27px;             /* reserve two controlled lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.frame9f16d-game:hover .frame9f16d-gamename { color: var(--frame9f16d-paper); }

.frame9f16d-catnote {
  border: 1px dashed var(--frame9f16d-line);
  border-radius: var(--frame9f16d-r-small);
  padding: 9px 11px;
  font-size: 13px;
  color: #c8d6e2;
  background: rgba(42, 59, 77, .5);
}

.frame9f16d-catnote a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Payments checklist / feature rows
   ========================================================================== */
.frame9f16d-factlist {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.frame9f16d-factrow {
  display: flex;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(69, 96, 122, .4);
}

.frame9f16d-factrow:last-child { border-bottom: 0; }

.frame9f16d-factmark {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border: 1px solid var(--frame9f16d-coral);
}

.frame9f16d-factrow b {
  color: var(--frame9f16d-paper);
  font-weight: 700;
}

.frame9f16d-factrow span {
  display: block;
  font-size: 13px;
  color: var(--frame9f16d-muted);
}

/* Scannable comparison rows */
.frame9f16d-compare {
  margin: 0 0 14px;
  border: 1px solid var(--frame9f16d-line);
  border-radius: var(--frame9f16d-r-small);
  overflow: hidden;
}

.frame9f16d-comparerow {
  display: grid;
  grid-template-columns: 92px 1fr;
  border-bottom: 1px solid rgba(69, 96, 122, .4);
}

.frame9f16d-comparerow:last-child { border-bottom: 0; }

.frame9f16d-comparekey {
  padding: 9px 10px;
  font-family: var(--frame9f16d-font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--frame9f16d-teal);
  background: rgba(72, 209, 204, .08);
  border-right: 1px solid rgba(69, 96, 122, .4);
}

.frame9f16d-compareval {
  padding: 9px 10px;
  font-size: 13px;
  color: #d0dde8;
}

/* Term blocks */
.frame9f16d-termgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 14px;
}

.frame9f16d-term {
  border: 1px solid var(--frame9f16d-line);
  border-radius: var(--frame9f16d-r-small);
  background: var(--frame9f16d-panel);
  padding: 9px 11px;
}

.frame9f16d-term h3 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--frame9f16d-coral);
}

.frame9f16d-term p {
  margin: 0;
  font-size: 13px;
  color: var(--frame9f16d-muted);
}

/* Use-case scenario blocks */
.frame9f16d-cases { margin: 0 0 14px; }

.frame9f16d-case {
  display: flex;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(69, 96, 122, .4);
}

.frame9f16d-case:last-child { border-bottom: 0; }

.frame9f16d-casenum {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--frame9f16d-magenta);
  border-radius: var(--frame9f16d-r-tiny);
  color: var(--frame9f16d-magenta);
  font-family: var(--frame9f16d-font-head);
  font-size: 13px;
  font-weight: 700;
}

.frame9f16d-case h3 {
  margin: 0 0 3px;
  font-size: 13.5px;
  color: var(--frame9f16d-paper);
}

.frame9f16d-case p {
  margin: 0;
  font-size: 13px;
  color: var(--frame9f16d-muted);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.frame9f16d-ctaband {
  border: 1px solid var(--frame9f16d-magenta);
  border-radius: var(--frame9f16d-r-small);
  background:
    linear-gradient(160deg, rgba(199, 21, 133, .2) 0%, rgba(42, 59, 77, .9) 55%),
    var(--frame9f16d-panel);
  padding: 14px 12px;
  margin: 0 0 24px;
}

.frame9f16d-ctaband .frame9f16d-bodytext { margin-bottom: 12px; }

.frame9f16d-ctarow {
  display: grid;
  gap: 8px;
}

/* ==========================================================================
   Extended footer (homepage directory)
   ========================================================================== */
.frame9f16d-xfooter {
  border-top: 2px solid var(--frame9f16d-magenta);
  margin-top: 28px;
  padding-top: 14px;
}

.frame9f16d-xfcols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 0 0 16px;
}

.frame9f16d-xfcol { min-width: 0; }

.frame9f16d-xfhead {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--frame9f16d-teal);
  margin: 0 0 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--frame9f16d-line);
}

.frame9f16d-xflist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.frame9f16d-xflist li {
  margin: 0 0 7px;
  font-size: 12.5px;
  line-height: 1.4;
}

.frame9f16d-xflist a { color: #cfdcea; }
.frame9f16d-xflist a:hover { color: var(--frame9f16d-sky); }

.frame9f16d-xfbrand {
  border: 1px solid var(--frame9f16d-line);
  border-radius: var(--frame9f16d-r-small);
  background: var(--frame9f16d-panel);
  padding: 10px 11px;
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--frame9f16d-muted);
}

.frame9f16d-xfbrand b {
  display: block;
  font-family: var(--frame9f16d-font-head);
  font-size: 14px;
  color: var(--frame9f16d-paper);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.frame9f16d-xfpromos {
  margin: 0 0 12px;
}

.frame9f16d-xfpromo {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  margin-bottom: 7px;
  text-align: left;
  border: 1px solid var(--frame9f16d-line2);
  border-left: 3px solid var(--frame9f16d-coral);
  border-radius: 0 var(--frame9f16d-r-small) var(--frame9f16d-r-small) 0;
  background: var(--frame9f16d-panel);
  color: var(--frame9f16d-paper);
  font-size: 13px;
  transition: border-color .16s ease, background-color .16s ease;
}

.frame9f16d-xfpromo:hover {
  border-color: var(--frame9f16d-coral);
  background: var(--frame9f16d-panel2);
}

.frame9f16d-xfpromo .frame9f16d-xfootarrow {
  margin-left: auto;
  color: var(--frame9f16d-coral);
  font-weight: 700;
}

.frame9f16d-xfnote {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--frame9f16d-soft);
  border-top: 1px dashed var(--frame9f16d-line);
  padding-top: 10px;
}

/* ==========================================================================
   Common footer + bottom dock
   ========================================================================== */
.frame9f16d-footer {
  border-top: 1px solid var(--frame9f16d-line);
  padding: 10px 12px 12px;
  text-align: center;
}

.frame9f16d-copy {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--frame9f16d-soft);
  margin: 0;
}

.frame9f16d-copy b { color: var(--frame9f16d-muted); font-weight: 600; }

.frame9f16d-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 65;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: var(--frame9f16d-dock-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: linear-gradient(180deg, #1d2b39 0%, #17222e 100%);
  border-top: 2px solid var(--frame9f16d-magenta);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .5);
}

.frame9f16d-dockitem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 7px 2px 6px;
  color: var(--frame9f16d-muted);
}

.frame9f16d-dockitem:hover { color: var(--frame9f16d-paper); text-decoration: none; }

.frame9f16d-dockitem svg {
  width: 22px;
  height: 22px;
  transition: transform .16s ease;
}

.frame9f16d-dockitem .frame9f16d-icodet { transition: fill .16s ease; }

.frame9f16d-dockitem:active svg { transform: translateY(-2px) scale(1.06); }

.frame9f16d-docklabel {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1;
}

.frame9f16d-dockitem.frame9f16d-active { color: var(--frame9f16d-paper); }

.frame9f16d-dockitem.frame9f16d-active .frame9f16d-docklabel { color: var(--frame9f16d-coral); }

.frame9f16d-dockitem.frame9f16d-active::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--frame9f16d-coral);
}

.frame9f16d-dockitem.frame9f16d-active .frame9f16d-icodet { fill: var(--frame9f16d-coral); }

/* ==========================================================================
   Small helpers
   ========================================================================== */
.frame9f16d-note {
  font-size: 12px;
  color: var(--frame9f16d-soft);
}

.frame9f16d-flag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--frame9f16d-teal);
  border: 1px solid var(--frame9f16d-teal);
  padding: 1px 6px;
  border-radius: var(--frame9f16d-r-tiny);
  margin-left: 6px;
  vertical-align: 2px;
}

/* ==========================================================================
   Responsive refinements inside the 320-430px band
   ========================================================================== */

/* Compact phones: keep 4 game columns, tighten hero type */
@media (max-width: 359px) {
  .frame9f16d-h1 { font-size: 21px; }
  .frame9f16d-h2 { font-size: 17px; }
  .frame9f16d-brandname { font-size: 17px; }
  .frame9f16d-btn { padding: 8px 9px; font-size: 11px; }
  .frame9f16d-statrow { grid-template-columns: repeat(2, 1fr); }
  .frame9f16d-comparerow { grid-template-columns: 84px 1fr; }
}

/* Larger phones within the canvas: 5-column game grid, two-column terms */
@media (min-width: 380px) {
  .frame9f16d-grid { grid-template-columns: repeat(5, 1fr); }
  .frame9f16d-gamename { font-size: 10px; min-height: 26px; }
  .frame9f16d-termgrid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 400px) {
  .frame9f16d-h1 { font-size: 26px; }
  .frame9f16d-h2 { font-size: 20px; }
  .frame9f16d-rail { grid-auto-columns: 172px; }
}

/* Wide viewport: keep the centered 430px phone canvas */
@media (min-width: 480px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, #22333f 0%, var(--frame9f16d-ink) 70%); }
  .frame9f16d-canvas { border-radius: 0 0 10px 10px; }
}

/* ---------- Help-page compositions ---------- */
.frame9f16d-helpintro {
  border: 1px solid var(--frame9f16d-line2);
  border-top: 3px solid var(--frame9f16d-teal);
  padding: 12px 11px 2px;
  margin: 0 0 18px;
  background: linear-gradient(135deg, rgba(72, 209, 204, .11), rgba(42, 59, 77, .7));
}

.frame9f16d-steprail {
  position: relative;
  margin: 0 0 16px;
  padding-left: 3px;
}

.frame9f16d-steprail::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 15px;
  width: 1px;
  background: var(--frame9f16d-line2);
}

.frame9f16d-stepitem {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 9px 0;
}

.frame9f16d-stepnum {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--frame9f16d-coral);
  background: var(--frame9f16d-slate);
  color: var(--frame9f16d-coral);
  font-family: var(--frame9f16d-font-head);
  font-weight: 700;
}

.frame9f16d-stepitem h3 { margin: 0 0 3px; font-size: 14px; color: var(--frame9f16d-paper); }
.frame9f16d-stepitem p { margin: 0; font-size: 13px; color: var(--frame9f16d-muted); }

.frame9f16d-helpaction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 48px;
  padding: 9px 11px;
  margin: 0 0 8px;
  border-left: 3px solid var(--frame9f16d-sky);
  border-top: 1px solid var(--frame9f16d-line);
  border-right: 1px solid var(--frame9f16d-line);
  border-bottom: 1px solid var(--frame9f16d-line);
  background: var(--frame9f16d-panel);
  color: var(--frame9f16d-paper);
}

.frame9f16d-helpaction:hover { border-color: var(--frame9f16d-sky); text-decoration: none; background: var(--frame9f16d-panel2); }
.frame9f16d-helpaction span:last-child { color: var(--frame9f16d-sky); font-weight: 700; }

.frame9f16d-checkgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 0 0 14px;
}

.frame9f16d-check {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--frame9f16d-line);
  background: rgba(42, 59, 77, .68);
}

.frame9f16d-checkmark { width: 10px; height: 10px; margin-top: 5px; border: 1px solid var(--frame9f16d-teal); }
.frame9f16d-check b { display: block; color: var(--frame9f16d-paper); font-size: 13px; }
.frame9f16d-check span { display: block; color: var(--frame9f16d-muted); font-size: 12.5px; }

.frame9f16d-answerlist { margin: 0 0 15px; }
.frame9f16d-answer {
  padding: 10px 0;
  border-bottom: 1px dashed var(--frame9f16d-line);
}
.frame9f16d-answer:last-child { border-bottom: 0; }
.frame9f16d-answer h3 { margin: 0 0 4px; font-size: 14px; color: var(--frame9f16d-teal); }
.frame9f16d-answer p { margin: 0; color: var(--frame9f16d-muted); font-size: 13px; }

.frame9f16d-signalgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0 0 14px;
}

.frame9f16d-signal {
  min-height: 94px;
  padding: 9px 10px;
  border-top: 2px solid var(--frame9f16d-magenta);
  border-left: 1px solid var(--frame9f16d-line);
  border-right: 1px solid var(--frame9f16d-line);
  border-bottom: 1px solid var(--frame9f16d-line);
  background: var(--frame9f16d-panel);
}
.frame9f16d-signal b { display: block; margin-bottom: 4px; color: var(--frame9f16d-coral); font-family: var(--frame9f16d-font-head); font-size: 13px; }
.frame9f16d-signal span { color: var(--frame9f16d-muted); font-size: 12px; }

.frame9f16d-branch {
  margin: 0 0 14px;
  border: 1px solid var(--frame9f16d-line);
}
.frame9f16d-branchrow {
  display: grid;
  grid-template-columns: 84px 1fr;
  border-bottom: 1px solid rgba(69, 96, 122, .45);
}
.frame9f16d-branchrow:last-child { border-bottom: 0; }
.frame9f16d-branchrow strong { padding: 9px 8px; color: var(--frame9f16d-coral); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; background: rgba(199, 21, 133, .08); }
.frame9f16d-branchrow span { padding: 9px 10px; color: var(--frame9f16d-muted); font-size: 12.5px; }

@media (min-width: 380px) {
  .frame9f16d-checkgrid { grid-template-columns: 1fr 1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
