/* ============================================================
   Kuya King PH - mobile-first design tokens and components
   Canvas: 320-430px phone layout, centered on wide screens
   Prefix contract: every class and variable uses frame16d25-
   Motion budget: color / background transitions only
   ============================================================ */

:root {
  /* palette built on the five brand tones */
  --frame16d25-bg: #221f30;
  --frame16d25-bg-deep: #1a1826;
  --frame16d25-panel: #2c2842;
  --frame16d25-panel-soft: #343050;
  --frame16d25-line: #443e63;
  --frame16d25-line-soft: #3b3657;
  --frame16d25-ink: #f2effc;
  --frame16d25-ink-soft: #cfc9ea;
  --frame16d25-muted: #a49cc8;
  --frame16d25-violet: #8470ff;
  --frame16d25-slate: #7b68ee;
  --frame16d25-deep: #6a5acd;
  --frame16d25-coral: #f08080;
  --frame16d25-coral-deep: #d76a6a;
  --frame16d25-shadow: rgba(12, 10, 24, 0.42);
  --frame16d25-radius-s: 6px;
  --frame16d25-radius-m: 10px;
  --frame16d25-radius-l: 14px;
  --frame16d25-gap: 10px;
  --frame16d25-header-h: 62px;
  --frame16d25-soft: color .25s ease, background-color .25s ease, border-color .25s ease, fill .25s ease, stroke .25s ease;
  /* tech-flavoured display face for headings, open system face for body */
  --frame16d25-font-display: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --frame16d25-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- base ---------- */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--frame16d25-bg-deep);
  color: var(--frame16d25-ink);
  font-family: var(--frame16d25-font-body);
  font-size: 15px;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* centered phone canvas kept on wide screens */
.frame16d25-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -4%, rgba(132, 112, 255, 0.20), transparent 46%),
    radial-gradient(circle at 92% 8%, rgba(240, 128, 128, 0.10), transparent 40%),
    var(--frame16d25-bg);
  box-shadow: 0 0 42px rgba(0, 0, 0, 0.55);
  overflow-x: hidden;
}

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

a {
  color: var(--frame16d25-violet);
  text-decoration: none;
  transition: var(--frame16d25-soft);
}

a:hover,
a:focus-visible {
  color: var(--frame16d25-coral);
}

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

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

h1, h2, h3 {
  font-family: var(--frame16d25-font-display);
  color: var(--frame16d25-ink);
  margin: 0 0 10px;
  line-height: 1.28;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 12px;
}

ul, ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

li {
  margin-bottom: 7px;
}

strong {
  color: var(--frame16d25-ink);
  font-weight: 700;
}

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

/* ---------- fixed top header, asymmetric brand block ---------- */

.frame16d25-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  min-height: var(--frame16d25-header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px calc(9px) 8px;
  padding-top: calc(9px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(34, 31, 48, 0.98), rgba(41, 37, 62, 0.96));
  border-bottom: 1px solid var(--frame16d25-line);
  box-shadow: 0 6px 18px var(--frame16d25-shadow);
}

/* brand tile sits slightly lower + wider, giving the asymmetric lean */
.frame16d25-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 12px 6px 8px;
  background: linear-gradient(135deg, rgba(132, 112, 255, 0.16), rgba(106, 90, 205, 0.08));
  border: 1px solid var(--frame16d25-line-soft);
  border-left: 3px solid var(--frame16d25-violet);
  border-radius: var(--frame16d25-radius-m) var(--frame16d25-radius-m) var(--frame16d25-radius-m) 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.frame16d25-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--frame16d25-line);
  object-fit: cover;
  background: var(--frame16d25-panel);
  flex: 0 0 auto;
}

.frame16d25-name {
  font-family: var(--frame16d25-font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame16d25-name b {
  color: var(--frame16d25-violet);
  font-weight: 800;
}

/* action cluster offset upward against the leaning brand tile */
.frame16d25-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.frame16d25-btn {
  min-height: 44px;
  border-radius: var(--frame16d25-radius-m);
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: var(--frame16d25-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* primary: larger, coral filled; secondary: smaller, outlined */
.frame16d25-btn-primary {
  padding: 0 16px;
  min-height: 44px;
  background: linear-gradient(180deg, var(--frame16d25-coral), var(--frame16d25-coral-deep));
  color: #241419;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(240, 128, 128, 0.28);
}

.frame16d25-btn-primary:hover,
.frame16d25-btn-primary:focus-visible {
  background: linear-gradient(180deg, #f79797, var(--frame16d25-coral));
  color: #241419;
}

.frame16d25-btn-ghost {
  padding: 0 12px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--frame16d25-violet);
  color: var(--frame16d25-ink-soft);
  font-size: 13px;
}

.frame16d25-btn-ghost:hover,
.frame16d25-btn-ghost:focus-visible {
  border-color: var(--frame16d25-coral);
  color: var(--frame16d25-coral);
}

.frame16d25-burger {
  width: 44px;
  height: 44px;
  border-radius: var(--frame16d25-radius-s);
  background: var(--frame16d25-panel);
  border: 1px solid var(--frame16d25-line);
  color: var(--frame16d25-ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--frame16d25-soft);
}

.frame16d25-burger:hover,
.frame16d25-burger:focus-visible {
  color: var(--frame16d25-coral);
  border-color: var(--frame16d25-coral);
}

/* ---------- slide-up route panel ---------- */

.frame16d25-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(14, 12, 24, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.frame16d25-backdrop.is-on {
  opacity: 1;
  pointer-events: auto;
}

.frame16d25-panel {
  position: fixed;
  top: calc(var(--frame16d25-header-h) + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translate(-50%, -16px);
  width: calc(100% - 16px);
  max-width: 414px;
  z-index: 58;
  background: linear-gradient(180deg, var(--frame16d25-panel), #26223c);
  border: 1px solid var(--frame16d25-line);
  border-radius: var(--frame16d25-radius-l);
  box-shadow: 0 18px 34px rgba(8, 6, 18, 0.6);
  padding: 14px 14px 12px;
  opacity: 0;
  pointer-events: none;
  transition: transform .28s ease, opacity .28s ease;
}

.frame16d25-panel.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.frame16d25-panel-title {
  font-family: var(--frame16d25-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--frame16d25-muted);
  margin: 0 0 10px;
}

.frame16d25-routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.frame16d25-routes li {
  margin: 0;
}

.frame16d25-route {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--frame16d25-line-soft);
  border-radius: var(--frame16d25-radius-m);
  background: rgba(52, 48, 80, 0.5);
  color: var(--frame16d25-ink-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.frame16d25-route:hover,
.frame16d25-route:focus-visible {
  background: rgba(132, 112, 255, 0.14);
  border-color: var(--frame16d25-violet);
  color: var(--frame16d25-ink);
}

.frame16d25-route .frame16d25-route-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--frame16d25-violet);
  flex: 0 0 auto;
}

.frame16d25-route:hover .frame16d25-route-dot,
.frame16d25-route:focus-visible .frame16d25-route-dot {
  background: var(--frame16d25-coral);
}

.frame16d25-panel-cta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.frame16d25-panel-cta .frame16d25-btn {
  flex: 1;
}

/* ---------- main column ---------- */

.frame16d25-main {
  padding: calc(var(--frame16d25-header-h) + 14px + env(safe-area-inset-top, 0px)) 14px calc(88px + env(safe-area-inset-bottom, 0px));
}

/* ---------- hero: lede-first rhythm ---------- */

.frame16d25-hero {
  margin-bottom: 16px;
}

.frame16d25-hero h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.frame16d25-hero h1 span {
  color: var(--frame16d25-violet);
}

.frame16d25-lede {
  font-size: 14.5px;
  color: var(--frame16d25-ink-soft);
  margin: 0 0 12px;
}

.frame16d25-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.frame16d25-chips li {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--frame16d25-muted);
  border: 1px solid var(--frame16d25-line-soft);
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(44, 40, 66, 0.65);
}

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

.frame16d25-carousel {
  position: relative;
  margin: 0 0 18px;
  border-radius: var(--frame16d25-radius-l);
  border: 1px solid var(--frame16d25-line);
  overflow: hidden;
  background: var(--frame16d25-panel);
  box-shadow: 0 10px 24px var(--frame16d25-shadow);
}

.frame16d25-strip {
  display: flex;
  transition: transform .38s ease;
}

.frame16d25-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--frame16d25-panel-soft);
  display: block;
}

.frame16d25-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.frame16d25-cdots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 6px 0;
}

.frame16d25-dot {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.frame16d25-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(242, 239, 252, 0.45);
  border: 1px solid rgba(26, 24, 38, 0.5);
  transition: var(--frame16d25-soft);
}

.frame16d25-dot.is-on::before,
.frame16d25-dot:hover::before {
  background: var(--frame16d25-coral);
}

/* ---------- CTA row: staggered primary / secondary ---------- */

.frame16d25-ctarow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 22px;
}

.frame16d25-ctarow .frame16d25-btn-primary {
  flex: 1.5;
  font-size: 15px;
}

.frame16d25-ctarow .frame16d25-btn-ghost {
  flex: 1;
}

/* ---------- game categories ---------- */

.frame16d25-cat {
  margin-bottom: 26px;
}

.frame16d25-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 2px solid var(--frame16d25-line-soft);
  padding-bottom: 7px;
  margin-bottom: 10px;
}

.frame16d25-cat-head h2 {
  font-size: 18.5px;
  margin: 0;
}

.frame16d25-cat-tag {
  flex: 0 0 auto;
  font-family: var(--frame16d25-font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frame16d25-coral);
  border: 1px solid rgba(240, 128, 128, 0.4);
  border-radius: var(--frame16d25-radius-s);
  padding: 3px 8px;
  white-space: nowrap;
}

.frame16d25-cat-lede {
  font-size: 13.5px;
  color: var(--frame16d25-muted);
  margin: 0 0 12px;
}

/* featured wide card: the "large" half of the mixed card rhythm */
.frame16d25-feature {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 11px 12px;
  margin: 0 0 10px;
  background: linear-gradient(120deg, rgba(132, 112, 255, 0.18), rgba(240, 128, 128, 0.10));
  border: 1px solid var(--frame16d25-line);
  border-left: 3px solid var(--frame16d25-coral);
  border-radius: var(--frame16d25-radius-l);
  color: var(--frame16d25-ink);
  transition: var(--frame16d25-soft);
}

.frame16d25-feature:hover,
.frame16d25-feature:focus-visible {
  background: linear-gradient(120deg, rgba(132, 112, 255, 0.30), rgba(240, 128, 128, 0.18));
  border-color: var(--frame16d25-violet);
}

.frame16d25-feature-img {
  width: 84px;
  height: 84px;
  border-radius: var(--frame16d25-radius-m);
  object-fit: cover;
  border: 1px solid var(--frame16d25-line-soft);
  background: var(--frame16d25-panel);
  flex: 0 0 auto;
}

.frame16d25-feature-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.frame16d25-feature-name {
  font-family: var(--frame16d25-font-display);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.frame16d25-feature-note {
  font-size: 12.5px;
  color: var(--frame16d25-muted);
  line-height: 1.45;
}

.frame16d25-feature-go {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--frame16d25-coral);
}

/* compact game grid: 4 columns on 320px, 5 from 400px up */
.frame16d25-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--frame16d25-gap);
}

.frame16d25-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 4px 8px;
  background: var(--frame16d25-panel);
  border: 1px solid var(--frame16d25-line-soft);
  border-radius: var(--frame16d25-radius-m);
  color: var(--frame16d25-ink-soft);
  transition: var(--frame16d25-soft);
  min-height: 44px;
}

.frame16d25-game:hover,
.frame16d25-game:focus-visible {
  background: var(--frame16d25-panel-soft);
  border-color: var(--frame16d25-violet);
  color: var(--frame16d25-ink);
}

.frame16d25-game-img {
  width: 100%;
  max-width: 72px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--frame16d25-radius-s);
}

.frame16d25-game-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* ---------- editorial sections after the lobby ---------- */

.frame16d25-block {
  margin-bottom: 24px;
  padding: 15px 14px;
  background: rgba(44, 40, 66, 0.55);
  border: 1px solid var(--frame16d25-line-soft);
  border-radius: var(--frame16d25-radius-l);
}

.frame16d25-block > h2 {
  font-size: 18px;
}

.frame16d25-block h3 {
  font-size: 14.5px;
  color: var(--frame16d25-violet);
  margin: 14px 0 6px;
}

.frame16d25-block p {
  font-size: 14px;
  color: var(--frame16d25-ink-soft);
}

.frame16d25-lead-answer {
  font-size: 14px;
  color: var(--frame16d25-ink);
  border-left: 3px solid var(--frame16d25-violet);
  padding-left: 10px;
}

/* compact definition rows for steps / specs */
.frame16d25-steps {
  list-style: none;
  margin: 10px 0 4px;
  padding: 0;
  counter-reset: frame16d25-step;
}

.frame16d25-steps li {
  counter-increment: frame16d25-step;
  position: relative;
  padding: 8px 10px 8px 38px;
  margin-bottom: 7px;
  background: rgba(52, 48, 80, 0.45);
  border: 1px solid var(--frame16d25-line-soft);
  border-radius: var(--frame16d25-radius-m);
  font-size: 13.5px;
  color: var(--frame16d25-ink-soft);
}

.frame16d25-steps li::before {
  content: counter(frame16d25-step);
  position: absolute;
  left: 10px;
  top: 9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--frame16d25-violet);
  color: #17142a;
  font-family: var(--frame16d25-font-display);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* two-column mood map for category highlights */
.frame16d25-moods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 10px;
  padding: 0;
  list-style: none;
}

.frame16d25-moods li {
  margin: 0;
  padding: 9px 10px;
  background: rgba(52, 48, 80, 0.45);
  border: 1px solid var(--frame16d25-line-soft);
  border-radius: var(--frame16d25-radius-m);
  font-size: 12.5px;
  color: var(--frame16d25-ink-soft);
  line-height: 1.45;
}

.frame16d25-moods b {
  display: block;
  font-family: var(--frame16d25-font-display);
  font-size: 13px;
  color: var(--frame16d25-ink);
  margin-bottom: 3px;
}

/* check rows for payment / comparison modules */
.frame16d25-checks {
  list-style: none;
  margin: 10px 0 6px;
  padding: 0;
}

.frame16d25-checks li {
  position: relative;
  padding: 8px 10px 8px 30px;
  margin-bottom: 7px;
  background: rgba(52, 48, 80, 0.45);
  border: 1px solid var(--frame16d25-line-soft);
  border-radius: var(--frame16d25-radius-m);
  font-size: 13.5px;
  color: var(--frame16d25-ink-soft);
}

.frame16d25-checks li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 14px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--frame16d25-coral);
  border-bottom: 2px solid var(--frame16d25-coral);
  transform: rotate(-45deg);
}

.frame16d25-inline-cta {
  display: inline-block;
  margin: 6px 0 2px;
  padding: 10px 14px;
  border-radius: var(--frame16d25-radius-m);
  background: rgba(132, 112, 255, 0.14);
  border: 1px solid var(--frame16d25-violet);
  color: var(--frame16d25-ink);
  font-size: 13px;
  font-weight: 700;
}

.frame16d25-inline-cta:hover,
.frame16d25-inline-cta:focus-visible {
  background: rgba(240, 128, 128, 0.16);
  border-color: var(--frame16d25-coral);
  color: var(--frame16d25-coral);
}

/* ---------- extended footer: brand > promos > directory > note ---------- */

.frame16d25-xfoot {
  margin: 26px 0 18px;
  border: 1px solid var(--frame16d25-line);
  border-radius: var(--frame16d25-radius-l);
  background: linear-gradient(180deg, rgba(52, 48, 80, 0.6), rgba(34, 31, 48, 0.85));
  padding: 15px 14px;
}

.frame16d25-xbrand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--frame16d25-line);
  margin-bottom: 12px;
}

.frame16d25-xbrand img {
  width: 40px;
  height: 40px;
  border-radius: var(--frame16d25-radius-m);
  border: 1px solid var(--frame16d25-line-soft);
  object-fit: cover;
  flex: 0 0 auto;
}

.frame16d25-xbrand p {
  margin: 0;
  font-size: 12.5px;
  color: var(--frame16d25-muted);
  line-height: 1.55;
}

.frame16d25-xpromo-title {
  font-family: var(--frame16d25-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frame16d25-coral);
  margin: 0 0 9px;
}

.frame16d25-xpromos {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--frame16d25-line);
}

.frame16d25-xpromos button {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(240, 128, 128, 0.10);
  border: 1px solid rgba(240, 128, 128, 0.38);
  border-radius: var(--frame16d25-radius-m);
  color: var(--frame16d25-ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: var(--frame16d25-soft);
}

.frame16d25-xpromos button::after {
  content: "\2192";
  color: var(--frame16d25-coral);
  font-weight: 800;
}

.frame16d25-xpromos button:hover,
.frame16d25-xpromos button:focus-visible {
  background: rgba(240, 128, 128, 0.2);
  border-color: var(--frame16d25-coral);
}

.frame16d25-dir-title {
  font-family: var(--frame16d25-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frame16d25-muted);
  margin: 0 0 9px;
}

/* two-column page directory */
.frame16d25-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 13px;
}

.frame16d25-dir a {
  display: block;
  min-height: 44px;
  padding: 8px 10px;
  background: rgba(44, 40, 66, 0.72);
  border: 1px solid var(--frame16d25-line-soft);
  border-radius: var(--frame16d25-radius-m);
  color: var(--frame16d25-ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

.frame16d25-dir a span {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--frame16d25-muted);
  letter-spacing: 0.02em;
}

.frame16d25-dir a:hover,
.frame16d25-dir a:focus-visible {
  border-color: var(--frame16d25-violet);
  color: var(--frame16d25-ink);
  background: rgba(132, 112, 255, 0.12);
}

.frame16d25-xnote {
  margin: 0;
  font-size: 11.5px;
  color: var(--frame16d25-muted);
  line-height: 1.55;
}

/* ---------- common footer ---------- */

.frame16d25-footer {
  padding: 4px 0 10px;
  text-align: center;
}

.frame16d25-footer p {
  margin: 0;
  font-size: 11.5px;
  color: var(--frame16d25-muted);
  letter-spacing: 0.03em;
}

/* ---------- outlined bottom function bar ---------- */

.frame16d25-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 62;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(28, 25, 42, 0.97);
  border-top: 1px solid var(--frame16d25-line);
}

.frame16d25-bitem {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(68, 62, 99, 0.55);
  border-radius: 0;
  color: var(--frame16d25-muted);
  transition: var(--frame16d25-soft);
}

.frame16d25-bitem:first-child {
  border-left: 0;
}

.frame16d25-bitem:hover,
.frame16d25-bitem:focus-visible {
  color: var(--frame16d25-ink-soft);
  background: rgba(132, 112, 255, 0.08);
  text-decoration: none;
  outline: none;
}

.frame16d25-bitem:focus-visible {
  outline: 2px solid var(--frame16d25-coral);
  outline-offset: -2px;
}

.frame16d25-bico {
  width: 24px;
  height: 24px;
  display: block;
  color: currentColor;
}

/* dual-tone accents inside each icon */
.frame16d25-bico .frame16d25-tone {
  fill: transparent;
  transition: var(--frame16d25-soft);
}

/* active role: outline tones flip to filled coral */
.frame16d25-bitem.is-active {
  color: var(--frame16d25-coral);
}

.frame16d25-bitem.is-active .frame16d25-tone {
  fill: rgba(240, 128, 128, 0.32);
}

.frame16d25-blabel {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ---------- responsive within the phone canvas ---------- */

@media (min-width: 360px) {
  .frame16d25-hero h1 { font-size: 26px; }
  .frame16d25-cat-head h2 { font-size: 19.5px; }
}

@media (min-width: 400px) {
  /* wider phones get the denser 5-column lobby */
  .frame16d25-grid { grid-template-columns: repeat(5, 1fr); }
  .frame16d25-game-img { max-width: 80px; }
}

@media (max-width: 359px) {
  .frame16d25-name { font-size: 15.5px; }
  .frame16d25-btn-primary { padding: 0 12px; font-size: 13px; }
  .frame16d25-btn-ghost { padding: 0 9px; font-size: 12px; }
  .frame16d25-dir { grid-template-columns: 1fr; }
  .frame16d25-moods { grid-template-columns: 1fr; }
}

/* keep long game names inside their cards on tiny screens */
.frame16d25-game-name,
.frame16d25-feature-name {
  hyphens: auto;
}

/* respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .frame16d25-strip,
  .frame16d25-panel,
  .frame16d25-backdrop,
  a, button {
    transition: none;
  }
}

/* ---------- help page layouts: two editorial rhythms share only tokens ---------- */
.frame16d25-help {
  padding-top: calc(var(--frame16d25-header-h) + 14px + env(safe-area-inset-top, 0px));
}

.frame16d25-help-main {
  padding: 0 14px calc(88px + env(safe-area-inset-bottom, 0px));
}

.frame16d25-help-hero {
  padding: 18px 15px 16px;
  margin-bottom: 14px;
  border-left: 4px solid var(--frame16d25-coral);
  border-bottom: 1px solid var(--frame16d25-line);
  background: linear-gradient(135deg, rgba(240, 128, 128, .16), rgba(132, 112, 255, .10));
}

.frame16d25-help-hero h1 {
  font-size: 25px;
  margin-bottom: 9px;
}

.frame16d25-help-hero p {
  margin: 0;
  color: var(--frame16d25-ink-soft);
  font-size: 14px;
}

.frame16d25-help-index {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 12px;
  margin: 0;
  scrollbar-width: thin;
}

.frame16d25-help-index a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--frame16d25-line);
  border-radius: 999px;
  background: var(--frame16d25-panel);
  color: var(--frame16d25-ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.frame16d25-help-index a:hover,
.frame16d25-help-index a:focus-visible {
  border-color: var(--frame16d25-coral);
  color: var(--frame16d25-coral);
}

.frame16d25-tip-card {
  margin: 0 0 14px;
  padding: 14px;
  background: rgba(44, 40, 66, .70);
  border: 1px solid var(--frame16d25-line-soft);
  border-radius: var(--frame16d25-radius-l);
}

.frame16d25-tip-card h2 {
  font-size: 18px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--frame16d25-line);
}

.frame16d25-tip-card h3 {
  margin: 14px 0 5px;
  color: var(--frame16d25-coral);
  font-size: 14px;
}

.frame16d25-tip-card p,
.frame16d25-tip-card li {
  color: var(--frame16d25-ink-soft);
  font-size: 13.5px;
}

.frame16d25-tip-card p:last-child {
  margin-bottom: 0;
}

.frame16d25-promo-stack {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.frame16d25-promo-stack button {
  min-height: 45px;
  padding: 9px 12px;
  border: 1px solid rgba(240, 128, 128, .42);
  border-radius: var(--frame16d25-radius-m);
  background: rgba(240, 128, 128, .09);
  color: var(--frame16d25-ink);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.frame16d25-promo-stack button:hover,
.frame16d25-promo-stack button:focus-visible {
  background: rgba(240, 128, 128, .20);
  border-color: var(--frame16d25-coral);
}

.frame16d25-promo-stack button::after {
  content: "  ->";
  color: var(--frame16d25-coral);
}

.frame16d25-route-note {
  margin: 14px 0 0;
  padding: 11px 12px;
  border: 1px dashed var(--frame16d25-violet);
  border-radius: var(--frame16d25-radius-m);
  color: var(--frame16d25-muted);
  font-size: 12.5px;
}

.frame16d25-feature-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 15px;
}

.frame16d25-feature-banner {
  min-height: 120px;
  padding: 15px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--frame16d25-radius-l);
  border: 1px solid var(--frame16d25-line);
  background: linear-gradient(115deg, rgba(132, 112, 255, .30), rgba(240, 128, 128, .14)), url('../images/14816d25_4.jpg') center / cover;
}

.frame16d25-feature-banner h2 {
  max-width: 290px;
  margin: 0;
  font-size: 19px;
  text-shadow: 0 2px 12px #151322;
}

.frame16d25-feature-intro {
  padding: 13px 14px;
  border: 1px solid var(--frame16d25-line-soft);
  border-radius: var(--frame16d25-radius-m);
  color: var(--frame16d25-ink-soft);
  background: rgba(44, 40, 66, .55);
  font-size: 14px;
}

.frame16d25-feature-intro p:last-child {
  margin-bottom: 0;
}

.frame16d25-feature-map {
  display: grid;
  gap: 9px;
  margin: 11px 0 0;
}

.frame16d25-feature-map div {
  padding: 11px 12px;
  border-left: 3px solid var(--frame16d25-violet);
  background: rgba(52, 48, 80, .58);
  border-radius: 0 var(--frame16d25-radius-m) var(--frame16d25-radius-m) 0;
}

.frame16d25-feature-map dt {
  color: var(--frame16d25-ink);
  font-weight: 800;
  font-size: 13.5px;
}

.frame16d25-feature-map dd {
  margin: 3px 0 0;
  color: var(--frame16d25-muted);
  font-size: 12.5px;
}

.frame16d25-checklist {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.frame16d25-checklist li {
  position: relative;
  padding: 9px 10px 9px 34px;
  border: 1px solid var(--frame16d25-line-soft);
  border-radius: var(--frame16d25-radius-m);
  color: var(--frame16d25-ink-soft);
  font-size: 13.5px;
}

.frame16d25-checklist li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--frame16d25-coral);
  border-bottom: 2px solid var(--frame16d25-coral);
  transform: rotate(-45deg);
}

.frame16d25-step-track {
  display: grid;
  gap: 0;
  margin: 10px 0 2px;
  counter-reset: frame16d25-track;
}

.frame16d25-step-track article {
  position: relative;
  margin-left: 13px;
  padding: 0 0 16px 31px;
  border-left: 1px solid var(--frame16d25-violet);
  counter-increment: frame16d25-track;
}

.frame16d25-step-track article::before {
  content: counter(frame16d25-track);
  position: absolute;
  left: -14px;
  top: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--frame16d25-coral);
  color: #25151a;
  font-weight: 800;
  font-size: 12px;
}

.frame16d25-step-track h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--frame16d25-ink);
}

.frame16d25-step-track p {
  margin: 0;
  color: var(--frame16d25-muted);
  font-size: 13px;
}

.frame16d25-help-foot {
  margin: 16px 0 0;
  padding: 14px;
  border-top: 1px solid var(--frame16d25-line);
  color: var(--frame16d25-muted);
  font-size: 12.5px;
}

.frame16d25-help-foot a {
  color: var(--frame16d25-ink-soft);
}

@media (min-width: 400px) {
  .frame16d25-promo-stack { grid-template-columns: 1fr 1fr; }
}
