/* ==========================================================================
   Jordan vs Philippines - mobile shell stylesheet
   Canvas: 320-430px phone layout, centered on wide screens.
   Design language: court-side energy - deep slate court, royal blue lines,
   flame orange CTAs, coral highlights, compact ticket-style modules.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ui4800f-page: #101a26;        /* backdrop behind the phone canvas */
  --ui4800f-bg: #2C3E50;          /* main court surface */
  --ui4800f-panel: #24364c;       /* raised panel */
  --ui4800f-panel2: #1b2a3b;      /* sunken panel */
  --ui4800f-line: #3a4f66;        /* hairline borders */
  --ui4800f-royal: #0000CD;       /* royal blue brand line */
  --ui4800f-royalglow: #3853e8;   /* royal tint for dark surfaces */
  --ui4800f-flame: #FF4500;       /* primary action */
  --ui4800f-flamedark: #d63a00;   /* pressed action */
  --ui4800f-coral: #FA8072;       /* warm highlight */
  --ui4800f-salmon: #E9967A;      /* soft warm accent */
  --ui4800f-stone: #6C757D;       /* quiet borders */
  --ui4800f-text: #eef2f7;        /* main text */
  --ui4800f-dim: #b6c2d0;         /* secondary text */
  --ui4800f-faint: #97a5b5;       /* caption text */
  --ui4800f-canvas: 430px;        /* widest phone canvas */
  --ui4800f-radius: 10px;         /* light card radius */
  --ui4800f-radiusbtn: 8px;       /* compact button radius */
  --ui4800f-dockh: 66px;          /* bottom dock height */
  --ui4800f-topbarh: 92px;        /* header reserve (2 rows) */
  --ui4800f-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --ui4800f-display: "Segoe UI Black", "Arial Black", "Trebuchet MS", "Segoe UI",
    Roboto, sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

html, body { overflow-x: hidden; }

body.ui4800f-body {
  font-family: var(--ui4800f-font);
  font-size: 15px;
  line-height: 1.62;
  color: var(--ui4800f-text);
  background: var(--ui4800f-page);
  max-width: var(--ui4800f-canvas);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 0 1px rgba(250, 128, 114, 0.08);
}

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

ul, ol { list-style: none; }

a { color: var(--ui4800f-coral); text-decoration: none; }

a:hover, a:focus-visible { text-decoration: underline; }

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

h1, h2, h3 { font-family: var(--ui4800f-display); font-weight: 900; letter-spacing: -0.2px; }

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ui4800f-royalglow);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- skip link ---------- */
.ui4800f-skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 60;
  background: var(--ui4800f-flame);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--ui4800f-radiusbtn);
  font-weight: 700;
  transition: top 0.2s ease;
}
.ui4800f-skip:focus { top: 8px; text-decoration: none; }

/* ==========================================================================
   Fixed top bar: centered identity strip + action strip
   ========================================================================== */
.ui4800f-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--ui4800f-canvas), 100%);
  z-index: 50;
  background: linear-gradient(180deg, #223349 0%, #1f3045 100%);
  border-bottom: 1px solid var(--ui4800f-line);
}

/* identity strip: logo + name only, centered */
.ui4800f-brandbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 7px 56px;
  background:
    radial-gradient(120% 190% at 50% -80%, rgba(0, 0, 205, 0.35) 0%, rgba(0, 0, 205, 0) 62%),
    linear-gradient(90deg, rgba(255, 69, 0, 0) 0%, rgba(255, 69, 0, 0.16) 50%, rgba(255, 69, 0, 0) 100%);
  border-bottom: 1px solid rgba(58, 79, 102, 0.7);
}

.ui4800f-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.ui4800f-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--ui4800f-salmon);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  object-fit: cover;
}

.ui4800f-brandname {
  font-family: var(--ui4800f-display);
  font-weight: 900;
  font-size: 16.5px;
  line-height: 1.1;
  color: var(--ui4800f-text);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.ui4800f-brandname small {
  display: block;
  font-family: var(--ui4800f-font);
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: 2.6px;
  color: var(--ui4800f-coral);
  margin-top: 2px;
}
.ui4800f-brand:hover { text-decoration: none; }
.ui4800f-brand:hover .ui4800f-brandname { color: var(--ui4800f-salmon); }

/* action strip: menu left, register + login right */
.ui4800f-actionrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  min-height: 44px;
}

.ui4800f-menubtn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--ui4800f-line);
  border-radius: var(--ui4800f-radiusbtn);
  background: var(--ui4800f-panel2);
  color: var(--ui4800f-dim);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.ui4800f-menubtn svg { width: 17px; height: 17px; stroke: var(--ui4800f-coral); }
.ui4800f-menubtn[aria-expanded="true"] {
  border-color: var(--ui4800f-coral);
  color: var(--ui4800f-text);
}

.ui4800f-register {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--ui4800f-radiusbtn);
  background: linear-gradient(160deg, var(--ui4800f-flame) 0%, var(--ui4800f-flamedark) 100%);
  color: #fff7f2;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 10px rgba(255, 69, 0, 0.35);
  text-align: center;
}
.ui4800f-register:hover, .ui4800f-register:focus-visible {
  text-decoration: none;
  filter: brightness(1.07);
}

.ui4800f-login {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--ui4800f-radiusbtn);
  border: 1.5px solid var(--ui4800f-coral);
  color: var(--ui4800f-coral);
  font-weight: 800;
  font-size: 13.5px;
  background: rgba(250, 128, 114, 0.07);
}
.ui4800f-login:hover, .ui4800f-login:focus-visible { text-decoration: none; background: rgba(250, 128, 114, 0.16); }

/* ---------- layered dropdown menu ---------- */
.ui4800f-dropnav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  background: linear-gradient(180deg, #1f3045 0%, #1a2939 100%);
  border-bottom: 1px solid transparent;
}
.ui4800f-topbar.ui4800f-open .ui4800f-dropnav {
  max-height: 620px;
  overflow-y: auto;
  border-bottom-color: var(--ui4800f-line);
}

.ui4800f-navlayer { padding: 9px 14px 4px; }
.ui4800f-navlayer + .ui4800f-navlayer { border-top: 1px dashed rgba(108, 117, 125, 0.4); }

.ui4800f-layername {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ui4800f-faint);
  padding: 4px 2px 6px;
}

.ui4800f-navlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ui4800f-navlink {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--ui4800f-line);
  border-radius: var(--ui4800f-radiusbtn);
  background: rgba(36, 54, 76, 0.65);
  color: var(--ui4800f-text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
}
.ui4800f-navlink svg { width: 15px; height: 15px; flex: 0 0 auto; stroke: var(--ui4800f-salmon); }
.ui4800f-navlink:hover { text-decoration: none; border-color: var(--ui4800f-coral); }
/* current page gets a sliding underline marker */
.ui4800f-navlink.ui4800f-here {
  border-color: var(--ui4800f-coral);
  color: #fff;
  background: rgba(255, 69, 0, 0.14);
  box-shadow: inset 0 -3px 0 var(--ui4800f-coral);
}

/* ==========================================================================
   Main column
   ========================================================================== */
.ui4800f-main {
  padding: calc(var(--ui4800f-topbarh) + 6px) 12px 26px;
  background:
    radial-gradient(90% 420px at 50% -60px, rgba(0, 0, 205, 0.22) 0%, rgba(0, 0, 205, 0) 70%),
    var(--ui4800f-bg);
}

/* ---------- hero headline + carousel ---------- */
.ui4800f-hero { padding-top: 6px; }

.ui4800f-overline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ui4800f-salmon);
  border: 1px solid rgba(233, 150, 122, 0.45);
  border-radius: 999px;
  padding: 4px 11px;
  background: rgba(233, 150, 122, 0.08);
}

.ui4800f-h1 {
  font-size: 25px;
  line-height: 1.16;
  margin: 10px 0 8px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.4px;
}
.ui4800f-h1 em {
  font-style: normal;
  color: var(--ui4800f-coral);
}

.ui4800f-herosub {
  font-size: 13.5px;
  color: var(--ui4800f-dim);
  max-width: 34ch;
}

/* carousel window */
.ui4800f-carousel { margin-top: 13px; }

.ui4800f-cwindow {
  position: relative;
  border-radius: var(--ui4800f-radius);
  overflow: hidden;
  border: 1px solid var(--ui4800f-line);
  box-shadow: 0 8px 22px rgba(6, 12, 20, 0.5);
  background: var(--ui4800f-panel2);
}

.ui4800f-ctrack {
  display: flex;
  width: 100%;
  transition: transform 0.45s ease;
}
.ui4800f-ctrack.ui4800f-nofx { transition: none; }

.ui4800f-slide {
  position: relative;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  text-decoration: none;
  color: #fff;
}
.ui4800f-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ui4800f-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 26, 38, 0.05) 34%, rgba(16, 26, 38, 0.88) 100%);
}

.ui4800f-slidecap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: block;
  padding: 10px 12px 12px;
}
.ui4800f-slidecap strong {
  display: block;
  font-family: var(--ui4800f-display);
  font-weight: 900;
  font-size: 16.5px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.ui4800f-slidecap span {
  display: block;
  font-size: 11.5px;
  color: #f4e7df;
  margin: 3px 0 8px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.75);
}
.ui4800f-slidecta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--ui4800f-flame) 0%, var(--ui4800f-flamedark) 100%);
  color: #fff7f2;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 10px rgba(255, 69, 0, 0.45);
}
.ui4800f-slide:hover { text-decoration: none; }
.ui4800f-slide:hover .ui4800f-slidecta { filter: brightness(1.1); }

/* dots */
.ui4800f-cdots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 9px;
}
.ui4800f-dot {
  width: 26px;
  height: 8px;
  min-height: 8px;
  padding: 0;
  border-radius: 999px;
  background: var(--ui4800f-line);
  transition: background 0.25s ease, transform 0.25s ease;
}
.ui4800f-dot.ui4800f-doton {
  background: var(--ui4800f-flame);
  transform: scaleX(1.18);
}

/* ---------- metric strip (compact figure + caption) ---------- */
.ui4800f-metrics {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ui4800f-metric {
  border: 1px solid var(--ui4800f-line);
  border-left: 3px solid var(--ui4800f-royalglow);
  border-radius: var(--ui4800f-radius);
  background: linear-gradient(160deg, rgba(36, 54, 76, 0.9), rgba(27, 42, 59, 0.9));
  padding: 9px 11px;
}
.ui4800f-mnum {
  display: block;
  font-family: var(--ui4800f-display);
  font-weight: 900;
  font-size: 19px;
  color: var(--ui4800f-coral);
  line-height: 1.1;
}
.ui4800f-mcap {
  display: block;
  font-size: 11px;
  color: var(--ui4800f-faint);
  line-height: 1.45;
  margin-top: 3px;
}

/* ---------- category chip rail with sliding focus bar ---------- */
.ui4800f-chiprail {
  position: relative;
  margin-top: 15px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.ui4800f-chiprail::-webkit-scrollbar { display: none; }

.ui4800f-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--ui4800f-line);
  background: var(--ui4800f-panel2);
  color: var(--ui4800f-text);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  scroll-snap-align: center;
  white-space: nowrap;
}
.ui4800f-chip svg { width: 15px; height: 15px; stroke: var(--ui4800f-salmon); }
.ui4800f-chip:hover { text-decoration: none; border-color: var(--ui4800f-salmon); }
.ui4800f-chip.ui4800f-chipon {
  border-color: var(--ui4800f-coral);
  color: #fff;
  background: rgba(255, 69, 0, 0.16);
}

.ui4800f-chipbar {
  position: absolute;
  bottom: 4px;
  left: 2px;
  height: 3px;
  width: 60px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ui4800f-flame), var(--ui4800f-coral));
  transition: left 0.28s ease, width 0.28s ease;
}

/* ==========================================================================
   Content blocks
   ========================================================================== */
.ui4800f-block { margin-top: 26px; }

.ui4800f-blockhead {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 9px;
}

/* jersey-style index chip */
.ui4800f-idx {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: 3px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--ui4800f-royal) 0%, #00108f 100%);
  color: #dfe6ff;
  font-family: var(--ui4800f-display);
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(56, 83, 232, 0.6);
}

.ui4800f-h2 {
  font-size: 19px;
  line-height: 1.24;
  color: #fff;
}

.ui4800f-lead { font-size: 14px; color: var(--ui4800f-dim); }
.ui4800f-lead strong, .ui4800f-pstrong { color: var(--ui4800f-text); }
.ui4800f-block p + p { margin-top: 9px; }

/* inline promo text link inside prose */
.ui4800f-xlink {
  color: var(--ui4800f-coral);
  font-weight: 700;
  border-bottom: 1.5px dotted var(--ui4800f-coral);
}
.ui4800f-xlink:hover { text-decoration: none; border-bottom-style: solid; }

/* numbered steps */
.ui4800f-steps { margin-top: 11px; display: grid; gap: 8px; }
.ui4800f-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--ui4800f-line);
  border-radius: var(--ui4800f-radius);
  background: rgba(27, 42, 59, 0.72);
  padding: 10px 11px;
}
.ui4800f-stepn {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ui4800f-flame);
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  margin-top: 1px;
}
.ui4800f-steps strong { display: block; font-size: 13px; color: #fff; }
.ui4800f-steps span { display: block; font-size: 12.5px; color: var(--ui4800f-dim); line-height: 1.5; }

/* compact key-value fact rows */
.ui4800f-facts { margin-top: 11px; display: grid; gap: 6px; }
.ui4800f-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 8px 11px;
  border-radius: var(--ui4800f-radiusbtn);
  background: rgba(36, 54, 76, 0.6);
  border: 1px solid var(--ui4800f-line);
  font-size: 12.5px;
}
.ui4800f-facts b { color: var(--ui4800f-salmon); font-weight: 800; flex: 0 0 auto; }
.ui4800f-facts span { color: var(--ui4800f-dim); text-align: right; }

/* callout strip */
.ui4800f-note {
  margin-top: 11px;
  border-left: 3px solid var(--ui4800f-coral);
  border-radius: 0 var(--ui4800f-radius) var(--ui4800f-radius) 0;
  background: rgba(250, 128, 114, 0.09);
  padding: 9px 12px;
  font-size: 12.5px;
  color: #f2d9d0;
}

/* full-width in-copy CTA */
.ui4800f-widecta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 13px;
  width: 100%;
  border-radius: var(--ui4800f-radiusbtn);
  background: linear-gradient(160deg, var(--ui4800f-flame) 0%, var(--ui4800f-flamedark) 100%);
  color: #fff7f2;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(255, 69, 0, 0.35);
}
.ui4800f-widecta svg { width: 17px; height: 17px; stroke: #fff; }
.ui4800f-widecta:hover, .ui4800f-widecta:focus-visible { text-decoration: none; filter: brightness(1.08); }

/* ==========================================================================
   Game sections
   ========================================================================== */
.ui4800f-gsection { margin-top: 30px; scroll-margin-top: calc(var(--ui4800f-topbarh) + 10px); }

.ui4800f-ghead {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.ui4800f-ghead .ui4800f-h2 { font-size: 18px; }

.ui4800f-count {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 205, 0.35);
  border: 1px solid var(--ui4800f-royalglow);
  color: #ccd6ff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.ui4800f-gintro { font-size: 13px; color: var(--ui4800f-dim); margin-bottom: 11px; }

/* floating light-tile game cards */
.ui4800f-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ui4800f-gcard {
  display: block;
  text-decoration: none;
  border-radius: var(--ui4800f-radius);
  background: linear-gradient(170deg, #2b3f57 0%, #223349 100%);
  border: 1px solid var(--ui4800f-line);
  padding: 5px 5px 7px;
  box-shadow: 0 3px 8px rgba(8, 14, 24, 0.45);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ui4800f-gcard:hover, .ui4800f-gcard:focus-visible {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--ui4800f-salmon);
  box-shadow: 0 6px 14px rgba(8, 14, 24, 0.6), 0 0 0 1px rgba(233, 150, 122, 0.35);
}

.ui4800f-gthumb {
  display: block;
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--ui4800f-panel2);
}
.ui4800f-gthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ui4800f-gthumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.ui4800f-gname {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.32;
  font-weight: 700;
  color: var(--ui4800f-dim);
  text-align: center;
  overflow-wrap: anywhere;
}
.ui4800f-gcard:hover .ui4800f-gname { color: #fff; }

/* ==========================================================================
   FAQ (native details)
   ========================================================================== */
.ui4800f-faq { margin-top: 11px; display: grid; gap: 8px; }
.ui4800f-faq details {
  border: 1px solid var(--ui4800f-line);
  border-radius: var(--ui4800f-radius);
  background: rgba(27, 42, 59, 0.75);
  overflow: hidden;
}
.ui4800f-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}
.ui4800f-faq summary::-webkit-details-marker { display: none; }
.ui4800f-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--ui4800f-coral);
  color: var(--ui4800f-coral);
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}
.ui4800f-faq details[open] summary::after {
  content: "\2212";
  background: rgba(250, 128, 114, 0.2);
  transform: rotate(180deg);
}
.ui4800f-faq details[open] summary { border-bottom: 1px dashed rgba(108, 117, 125, 0.5); }
.ui4800f-faq details p {
  padding: 10px 12px 12px;
  font-size: 12.5px;
  color: var(--ui4800f-dim);
  line-height: 1.58;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.ui4800f-quotes { margin-top: 11px; display: grid; gap: 9px; }
.ui4800f-quote {
  border: 1px solid var(--ui4800f-line);
  border-radius: var(--ui4800f-radius);
  background: linear-gradient(165deg, rgba(36, 54, 76, 0.95), rgba(27, 42, 59, 0.95));
  padding: 11px 12px;
  position: relative;
}
.ui4800f-quote::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  right: 12px;
  font-family: var(--ui4800f-display);
  font-size: 34px;
  color: rgba(250, 128, 114, 0.3);
  line-height: 1;
}
.ui4800f-qtop {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}
.ui4800f-qavatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--ui4800f-royal) 0%, #00108f 100%);
  color: #dfe6ff;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(56, 83, 232, 0.55);
}
.ui4800f-qname { font-size: 12.5px; font-weight: 800; color: #fff; }
.ui4800f-qmeta { display: block; font-size: 10.5px; color: var(--ui4800f-faint); font-weight: 600; }
.ui4800f-qstars {
  margin-left: auto;
  display: inline-flex;
  gap: 1.5px;
}
.ui4800f-qstars svg { width: 11px; height: 11px; fill: var(--ui4800f-salmon); stroke: none; }
.ui4800f-qbody {
  font-size: 12.5px;
  color: var(--ui4800f-dim);
  line-height: 1.56;
}

/* ==========================================================================
   Glossary
   ========================================================================== */
.ui4800f-terms { margin-top: 11px; display: grid; gap: 7px; }
.ui4800f-terms > div {
  border: 1px solid var(--ui4800f-line);
  border-radius: var(--ui4800f-radiusbtn);
  background: rgba(36, 54, 76, 0.55);
  padding: 9px 11px;
}
.ui4800f-terms dt {
  font-size: 13px;
  font-weight: 800;
  color: var(--ui4800f-salmon);
}
.ui4800f-terms dd {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ui4800f-dim);
  line-height: 1.52;
}

/* ==========================================================================
   Homepage extended footer
   ========================================================================== */
.ui4800f-ext {
  margin-top: 34px;
  border-top: 2px solid var(--ui4800f-royalglow);
  padding-top: 16px;
  display: grid;
  gap: 18px;
}

.ui4800f-exthead {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--ui4800f-coral);
  margin-bottom: 8px;
  font-family: var(--ui4800f-display);
}
.ui4800f-exthead::after {
  content: "";
  display: block;
  width: 34px;
  height: 2.5px;
  margin-top: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ui4800f-flame), transparent);
}

/* two-column page directory */
.ui4800f-dirgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.ui4800f-dirlink {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--ui4800f-line);
  border-radius: var(--ui4800f-radiusbtn);
  background: rgba(27, 42, 59, 0.8);
  color: var(--ui4800f-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.ui4800f-dirlink svg { width: 14px; height: 14px; flex: 0 0 auto; stroke: var(--ui4800f-salmon); }
.ui4800f-dirlink:hover { text-decoration: none; border-color: var(--ui4800f-coral); background: rgba(255, 69, 0, 0.1); }

.ui4800f-brandnote { font-size: 12.5px; color: var(--ui4800f-dim); line-height: 1.6; max-width: 58ch; }

/* promo actions: 2 full-width + 2x2 compact */
.ui4800f-promoz { display: grid; gap: 8px; }
.ui4800f-promogrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ui4800f-pbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 9px 10px;
  border-radius: var(--ui4800f-radiusbtn);
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
}
.ui4800f-pbtn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ui4800f-pbtn:hover { text-decoration: none; filter: brightness(1.08); }

.ui4800f-pbtn--main {
  background: linear-gradient(160deg, var(--ui4800f-flame) 0%, var(--ui4800f-flamedark) 100%);
  color: #fff7f2;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.32);
}
.ui4800f-pbtn--main svg { stroke: #fff; }

.ui4800f-pbtn--coral {
  background: rgba(250, 128, 114, 0.14);
  border: 1.5px solid var(--ui4800f-coral);
  color: var(--ui4800f-coral);
}
.ui4800f-pbtn--coral svg { stroke: var(--ui4800f-coral); }

.ui4800f-pbtn--ghost {
  background: rgba(0, 0, 205, 0.18);
  border: 1px solid var(--ui4800f-royalglow);
  color: #ccd6ff;
}
.ui4800f-pbtn--ghost svg { stroke: #aab8ff; }

.ui4800f-disclaim {
  border: 1px dashed rgba(108, 117, 125, 0.6);
  border-radius: var(--ui4800f-radius);
  padding: 10px 12px;
  font-size: 11.5px;
  color: var(--ui4800f-faint);
  line-height: 1.58;
}
.ui4800f-disclaim b { color: var(--ui4800f-dim); }

/* ==========================================================================
   Common footer + fixed bottom dock
   ========================================================================== */
.ui4800f-foot {
  text-align: center;
  padding: 14px 16px calc(var(--ui4800f-dockh) + 30px + env(safe-area-inset-bottom, 0px));
  font-size: 11.5px;
  color: var(--ui4800f-faint);
  background: var(--ui4800f-bg);
  border-top: 1px solid rgba(58, 79, 102, 0.6);
}

.ui4800f-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--ui4800f-canvas), 100%);
  height: calc(var(--ui4800f-dockh) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  background: linear-gradient(180deg, rgba(31, 48, 69, 0.96) 0%, rgba(21, 33, 48, 0.99) 100%);
  border-top: 1px solid var(--ui4800f-line);
  backdrop-filter: blur(6px);
}

.ui4800f-dockitem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  color: var(--ui4800f-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding-top: 4px;
}
.ui4800f-dockitem svg { width: 21px; height: 21px; stroke: var(--ui4800f-dim); transition: stroke 0.2s ease, transform 0.2s ease; }
.ui4800f-dockitem:hover { text-decoration: none; color: #fff; }
.ui4800f-dockitem:hover svg { stroke: var(--ui4800f-salmon); transform: translateY(-1px); }

/* active page: label brightens, underline marker slides in */
.ui4800f-dockitem.ui4800f-on { color: #fff; }
.ui4800f-dockitem.ui4800f-on svg { stroke: var(--ui4800f-coral); }

.ui4800f-dockbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--ui4800f-flame), var(--ui4800f-coral));
  transition: transform 0.3s ease;
}

/* raised center hub */
.ui4800f-dockhub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding-bottom: 6px;
  color: var(--ui4800f-coral);
  font-size: 10px;
  font-weight: 800;
}
.ui4800f-dockhub .ui4800f-hubring {
  position: relative;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--ui4800f-flame) 0%, #c23300 100%);
  border: 2.5px solid #f4b6a2;
  box-shadow: 0 6px 16px rgba(255, 69, 0, 0.5), 0 0 0 5px rgba(250, 128, 114, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ui4800f-dockhub svg { width: 25px; height: 25px; stroke: #fff; }
.ui4800f-dockhub:hover { text-decoration: none; }
.ui4800f-dockhub:hover .ui4800f-hubring,
.ui4800f-dockhub:focus-visible .ui4800f-hubring {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 9px 20px rgba(255, 69, 0, 0.55), 0 0 0 6px rgba(250, 128, 114, 0.2);
}
.ui4800f-dockhub:focus-visible .ui4800f-hubring { outline: 2px solid #fff; outline-offset: 2px; }

/* ==========================================================================
   Small helpers
   ========================================================================== */
.ui4800f-rule {
  border: 0;
  border-top: 1px dashed rgba(108, 117, 125, 0.45);
  margin: 22px 0 0;
}

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

/* ---------- breakpoints inside the phone canvas ---------- */

/* 375px and up: breathe a little */
@media (min-width: 375px) {
  .ui4800f-h1 { font-size: 27px; }
  .ui4800f-herosub { max-width: 40ch; }
  .ui4800f-gname { font-size: 11px; }
}

/* 390px and up: game grid opens to 5 columns */
@media (min-width: 390px) {
  .ui4800f-grid { grid-template-columns: repeat(5, 1fr); gap: 9px; }
  .ui4800f-h1 { font-size: 28px; }
  .ui4800f-metrics { gap: 9px; }
}

/* upper phone range: tighten hero, widen metrics caption */
@media (min-width: 414px) {
  .ui4800f-h1 { font-size: 29px; }
  .ui4800f-slidecap strong { font-size: 17.5px; }
}

/* full canvas 430px: max comfort inside the phone frame */
@media (min-width: 430px) {
  .ui4800f-main { padding-left: 16px; padding-right: 16px; }
  .ui4800f-gname { font-size: 11.5px; }
  .ui4800f-h2 { font-size: 20px; }
  .ui4800f-ghead .ui4800f-h2 { font-size: 19px; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* smooth anchor travel for the category rail */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
