/* ============================================================
   Majic Jili - mobile canvas viewport stylesheet
   Canvas: 320-430px phone frame, centered on wide screens
   Palette: #0C0C0C ink / #E9ECEF paper / #1E90FF blue / #FFC0CB blush
   Type: rounded display headings + condensed interface body
   ============================================================ */

:root {
  --c8e63b-ink: #0c0c0c;
  --c8e63b-void: #000000;
  --c8e63b-paper: #e9ecef;
  --c8e63b-blue: #1e90ff;
  --c8e63b-blush: #ffc0cb;
  --c8e63b-panel: #17181d;
  --c8e63b-panel2: #101116;
  --c8e63b-line: rgba(233, 236, 239, 0.14);
  --c8e63b-dim: rgba(233, 236, 239, 0.64);
  --c8e63b-faint: rgba(233, 236, 239, 0.42);
  --c8e63b-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --c8e63b-ui: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body.c8e63b-page {
  font-family: var(--c8e63b-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c8e63b-paper);
  background: var(--c8e63b-void);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Phone canvas: capped at 430px, centered when the viewport widens */
.c8e63b-shell {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 46% at 50% 0%, rgba(30, 144, 255, 0.16), transparent 62%),
    radial-gradient(90% 34% at 88% 30%, rgba(255, 192, 203, 0.07), transparent 60%),
    var(--c8e63b-ink);
  box-shadow: 0 0 0 1px rgba(233, 236, 239, 0.06), 0 0 60px rgba(30, 144, 255, 0.12);
  overflow: hidden;
}

.c8e63b-main {
  display: block;
  padding: 56px 0 0 0;
  /* clears the fixed bottom navigation band */
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

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

a { color: var(--c8e63b-blue); text-decoration: none; }
a:active { opacity: 0.8; }

.c8e63b-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ---------- Top brand bar ---------- */

.c8e63b-topbar {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 10px 0 6px;
  background: rgba(12, 12, 12, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c8e63b-line);
}

.c8e63b-burger {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid;
  place-content: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--c8e63b-line);
  border-radius: 10px;
  cursor: pointer;
}

.c8e63b-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--c8e63b-paper);
  border-radius: 2px;
}
.c8e63b-burger span:nth-child(2) { width: 12px; background: var(--c8e63b-blush); }

.c8e63b-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.c8e63b-logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(30, 144, 255, 0.45);
  box-shadow: 0 0 10px rgba(30, 144, 255, 0.35);
}

.c8e63b-sitename {
  font-family: var(--c8e63b-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.2px;
  color: var(--c8e63b-paper);
  white-space: nowrap;
}
.c8e63b-sitename em {
  font-style: normal;
  color: var(--c8e63b-blush);
}

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

/* Square, high contrast conversion buttons */
.c8e63b-btn {
  font-family: var(--c8e63b-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 0; /* deliberate square CTA silhouette */
  cursor: pointer;
  min-height: 44px;
  padding: 0 11px;
}
.c8e63b-btn:active { transform: scale(0.96); }

.c8e63b-btnreg {
  background: var(--c8e63b-blush);
  color: #0c0c0c;
  border: 0;
  box-shadow: 0 3px 14px rgba(255, 192, 203, 0.35);
}

.c8e63b-btnlogin {
  background: transparent;
  color: var(--c8e63b-blue);
  border: 1px solid var(--c8e63b-blue);
}

/* ---------- Sectioned drawer menu ---------- */

.c8e63b-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.c8e63b-scrim.c8e63b-on { opacity: 1; pointer-events: auto; }

.c8e63b-drawer {
  position: fixed;
  top: 0; bottom: 0;
  left: max(0px, calc(50vw - 215px));
  z-index: 80;
  width: min(84vw, 336px);
  background: linear-gradient(180deg, #121318 0%, #0d0e12 100%);
  border-right: 1px solid var(--c8e63b-line);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  padding: 14px 14px calc(20px + env(safe-area-inset-bottom, 0px));
}
.c8e63b-drawer.c8e63b-on { transform: translateX(0); }

.c8e63b-drawerhead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 2px 14px;
  border-bottom: 1px dashed var(--c8e63b-line);
}
.c8e63b-drawerhead .c8e63b-logo { width: 38px; height: 38px; }

.c8e63b-drawerheadname {
  font-family: var(--c8e63b-display);
  font-weight: 700;
  font-size: 16px;
}
.c8e63b-drawerheadname small {
  display: block;
  font-family: var(--c8e63b-ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c8e63b-blue);
}

.c8e63b-drawergroup { padding: 14px 0 4px; }

.c8e63b-drawerkicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--c8e63b-blue);
  padding: 0 4px 8px;
}

.c8e63b-drawerlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 10px 10px;
  border-radius: 8px;
  color: var(--c8e63b-paper);
  font-size: 16px;
  font-weight: 500;
  border: 1px solid transparent;
}
.c8e63b-drawerlink:active {
  background: rgba(30, 144, 255, 0.12);
  border-color: rgba(30, 144, 255, 0.35);
}
.c8e63b-drawerlink::after {
  content: "";
  width: 7px; height: 7px;
  border-top: 2px solid var(--c8e63b-faint);
  border-right: 2px solid var(--c8e63b-faint);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.c8e63b-drawerfoot { margin-top: 18px; display: grid; gap: 8px; }
.c8e63b-drawerfoot .c8e63b-btn { width: 100%; }

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

.c8e63b-carousel {
  position: relative;
  overflow: hidden;
  background: var(--c8e63b-panel2);
}

.c8e63b-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.c8e63b-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  cursor: pointer;
}

.c8e63b-slideimg {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.c8e63b-slidecap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 10, 0.88));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.c8e63b-slidetitle {
  font-family: var(--c8e63b-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  color: #ffffff;
}
.c8e63b-slidesub {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  color: var(--c8e63b-blush);
  margin-top: 2px;
}

.c8e63b-slidechip {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #0c0c0c;
  background: var(--c8e63b-blush);
  padding: 7px 9px;
  border-radius: 0;
}

.c8e63b-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 7px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.c8e63b-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 0;
  background: rgba(233, 236, 239, 0.4);
  cursor: pointer;
  padding: 0;
}
.c8e63b-dot.c8e63b-on {
  width: 20px;
  border-radius: 4px;
  background: var(--c8e63b-blush);
}

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

.c8e63b-chiprow {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 12px 6px;
  scrollbar-width: none;
}
.c8e63b-chiprow::-webkit-scrollbar { display: none; }

.c8e63b-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--c8e63b-line);
  background: rgba(23, 24, 29, 0.85);
  color: var(--c8e63b-paper);
  font-family: var(--c8e63b-ui);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.c8e63b-chip b {
  font-weight: 700;
  color: var(--c8e63b-blue);
}
.c8e63b-chip:active { background: rgba(30, 144, 255, 0.16); }

.c8e63b-chipromo {
  border-color: rgba(255, 192, 203, 0.55);
  background: rgba(255, 192, 203, 0.12);
  color: var(--c8e63b-blush);
}

/* ---------- Intro / lede ---------- */

.c8e63b-intro {
  padding: 16px 14px 4px;
}

.c8e63b-kicker {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--c8e63b-blue);
  margin-bottom: 6px;
}

.c8e63b-intro h1 {
  font-family: var(--c8e63b-display);
  font-weight: 800;
  font-size: 25px;
  line-height: 1.18;
  color: #ffffff;
  text-wrap: balance;
}

.c8e63b-lede {
  margin-top: 10px;
  font-size: 16.5px;
  color: var(--c8e63b-dim);
}
.c8e63b-lede + .c8e63b-lede { margin-top: 8px; }
.c8e63b-lede strong { color: var(--c8e63b-paper); font-weight: 600; }
.c8e63b-lede a {
  color: var(--c8e63b-blush);
  border-bottom: 1px solid rgba(255, 192, 203, 0.5);
}

.c8e63b-statline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.c8e63b-stat {
  border: 1px solid var(--c8e63b-line);
  border-radius: 12px 12px 4px 4px;
  background: rgba(16, 17, 22, 0.8);
  padding: 9px 6px;
  text-align: center;
}
.c8e63b-stat b {
  display: block;
  font-family: var(--c8e63b-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--c8e63b-blush);
}
.c8e63b-stat span {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c8e63b-faint);
}

/* ---------- Game arena ---------- */

.c8e63b-arena {
  padding: 18px 12px 4px;
  scroll-margin-top: 62px;
}

.c8e63b-arenahd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 10px;
}

.c8e63b-arena h2 {
  font-family: var(--c8e63b-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.c8e63b-arenacount {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--c8e63b-blue);
  border: 1px solid rgba(30, 144, 255, 0.4);
  border-radius: 999px;
  padding: 3px 9px;
}

.c8e63b-arenanote {
  font-size: 14.5px;
  color: var(--c8e63b-dim);
  padding: 0 4px 10px;
}
.c8e63b-arenanote a {
  color: var(--c8e63b-blue);
  border-bottom: 1px solid rgba(30, 144, 255, 0.45);
}

/* Square cover tiles, short name underneath */
.c8e63b-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
@media (min-width: 400px) {
  .c8e63b-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
}

.c8e63b-tile {
  display: block;
  width: 100%;
  background: var(--c8e63b-panel);
  border: 1px solid var(--c8e63b-line);
  /* mixed radius: softer top, tighter base */
  border-radius: 12px 12px 5px 5px;
  padding: 5px 5px 6px;
  cursor: pointer;
  text-align: center;
  font-family: var(--c8e63b-ui);
}
.c8e63b-tile:active {
  transform: scale(0.95);
  border-color: rgba(255, 192, 203, 0.6);
}

.c8e63b-tileimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #0a0a0d;
}

.c8e63b-tilename {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--c8e63b-dim);
  margin-top: 5px;
  min-height: 2.4em;
  letter-spacing: 0.2px;
}

.c8e63b-moreroad {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 12px 4px 0;
  font-size: 14px;
  color: var(--c8e63b-faint);
}
.c8e63b-moreroad a {
  color: var(--c8e63b-blue);
  border-bottom: 1px solid rgba(30, 144, 255, 0.45);
  padding: 2px 0;
}

.c8e63b-rule {
  border: 0;
  border-top: 1px dashed var(--c8e63b-line);
  margin: 16px 12px 0;
}

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

.c8e63b-panel {
  margin: 18px 12px 0;
  padding: 16px 14px;
  background: linear-gradient(180deg, #17181d 0%, #111216 100%);
  border: 1px solid var(--c8e63b-line);
  border-radius: 18px 18px 6px 6px;
}

.c8e63b-panel > h2 {
  font-family: var(--c8e63b-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.22;
  color: #ffffff;
  margin: 2px 0 8px;
}

.c8e63b-panel > p {
  font-size: 15.5px;
  color: var(--c8e63b-dim);
}
.c8e63b-panel > p + p { margin-top: 8px; }
.c8e63b-panel p a {
  color: var(--c8e63b-blush);
  border-bottom: 1px solid rgba(255, 192, 203, 0.5);
}

/* Category highlight cards */
.c8e63b-hl {
  border: 1px solid var(--c8e63b-line);
  border-left: 3px solid var(--c8e63b-blue);
  border-radius: 4px 12px 12px 4px;
  background: rgba(16, 17, 22, 0.7);
  padding: 11px 12px;
  margin-top: 10px;
}
.c8e63b-hl:nth-child(even) { border-left-color: var(--c8e63b-blush); }

.c8e63b-hl h3 {
  font-family: var(--c8e63b-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--c8e63b-paper);
}
.c8e63b-hl p {
  font-size: 14.5px;
  color: var(--c8e63b-dim);
  margin-top: 3px;
}

/* Play style comparison rows */
.c8e63b-stylerow {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 2px;
  border-bottom: 1px dashed var(--c8e63b-line);
}
.c8e63b-stylerow:last-of-type { border-bottom: 0; }

.c8e63b-stylename {
  font-family: var(--c8e63b-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--c8e63b-blush);
}
.c8e63b-stylemeta {
  font-size: 14.5px;
  color: var(--c8e63b-dim);
}

/* Step blocks (progressive rhythm) */
.c8e63b-steps { margin-top: 12px; display: grid; gap: 10px; }

.c8e63b-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.c8e63b-stepnum {
  width: 30px; height: 30px;
  display: grid;
  place-content: center;
  border: 1px solid var(--c8e63b-blush);
  color: var(--c8e63b-blush);
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  background: rgba(255, 192, 203, 0.08);
}

.c8e63b-step b {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--c8e63b-paper);
}
.c8e63b-step span {
  font-size: 14.5px;
  color: var(--c8e63b-dim);
}

/* Winners feed */
.c8e63b-winners {
  margin-top: 10px;
  border: 1px solid var(--c8e63b-line);
  border-radius: 12px;
  overflow: hidden;
}

.c8e63b-winrow {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  background: rgba(16, 17, 22, 0.65);
  border-bottom: 1px solid rgba(233, 236, 239, 0.08);
}
.c8e63b-winrow:last-child { border-bottom: 0; }

.c8e63b-winavatar {
  width: 30px; height: 30px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: rgba(30, 144, 255, 0.18);
  border: 1px solid rgba(30, 144, 255, 0.5);
  color: var(--c8e63b-blue);
  font-weight: 700;
  font-size: 13px;
}

.c8e63b-winwho {
  min-width: 0;
}
.c8e63b-winname {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c8e63b-paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.c8e63b-wingame {
  font-size: 12.5px;
  color: var(--c8e63b-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c8e63b-winamt {
  font-family: var(--c8e63b-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--c8e63b-blush);
  white-space: nowrap;
}
.c8e63b-winamt small {
  display: block;
  font-family: var(--c8e63b-ui);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c8e63b-faint);
  text-align: right;
}

/* Decision CTA band */
.c8e63b-ctaband {
  margin: 20px 12px 0;
  padding: 20px 16px;
  background:
    linear-gradient(135deg, rgba(30, 144, 255, 0.28), rgba(255, 192, 203, 0.14)),
    #101116;
  border: 1px solid rgba(30, 144, 255, 0.45);
  border-radius: 0; /* square contrast block */
  text-align: center;
}
.c8e63b-ctaband h2 {
  font-family: var(--c8e63b-display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.2;
  color: #ffffff;
}
.c8e63b-ctaband p {
  font-size: 15px;
  color: var(--c8e63b-dim);
  margin: 8px 0 14px;
}
.c8e63b-ctarow {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.c8e63b-ctabig {
  font-size: 15px;
  padding: 13px 22px;
}

/* Requirements checklist */
.c8e63b-req { margin-top: 10px; display: grid; gap: 8px; }

.c8e63b-reqitem {
  position: relative;
  padding: 9px 10px 9px 34px;
  border: 1px solid var(--c8e63b-line);
  border-radius: 8px;
  background: rgba(16, 17, 22, 0.65);
  font-size: 14.5px;
  color: var(--c8e63b-dim);
}
.c8e63b-reqitem b { color: var(--c8e63b-paper); font-weight: 600; }
.c8e63b-reqitem::before {
  content: "";
  position: absolute;
  left: 10px; top: 14px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--c8e63b-blush);
  border-bottom: 2px solid var(--c8e63b-blush);
  transform: rotate(-45deg);
}

.c8e63b-qa {
  margin-top: 12px;
  border-top: 1px dashed var(--c8e63b-line);
  padding-top: 10px;
}
.c8e63b-qa h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--c8e63b-paper);
}
.c8e63b-qa p {
  font-size: 14.5px;
  color: var(--c8e63b-dim);
  margin-top: 2px;
}

/* ---------- Homepage extended footer ---------- */

.c8e63b-extfoot {
  margin-top: 22px;
  padding: 4px 12px 0;
  border-top: 1px solid var(--c8e63b-line);
}

.c8e63b-footgroup { padding: 12px 0 2px; }

.c8e63b-footkicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--c8e63b-blue);
  margin-bottom: 8px;
}

.c8e63b-footlinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}
.c8e63b-footlinks a {
  display: block;
  min-height: 40px;
  display: flex;
  align-items: center;
  font-size: 14.5px;
  color: var(--c8e63b-paper);
  border-bottom: 1px solid rgba(233, 236, 239, 0.08);
}
.c8e63b-footlinks a:active { color: var(--c8e63b-blush); }

.c8e63b-footbrandtext {
  font-size: 14px;
  color: var(--c8e63b-dim);
}

.c8e63b-promogrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.c8e63b-promoact {
  font-family: var(--c8e63b-ui);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  min-height: 48px;
  padding: 8px 8px;
  border-radius: 0;
  border: 1px solid rgba(255, 192, 203, 0.45);
  background: rgba(255, 192, 203, 0.08);
  color: var(--c8e63b-blush);
  cursor: pointer;
}
.c8e63b-promoact:active { transform: scale(0.96); background: rgba(255, 192, 203, 0.18); }
.c8e63b-promoact.c8e63b-promofill {
  background: var(--c8e63b-blush);
  color: #0c0c0c;
  border-color: var(--c8e63b-blush);
}

.c8e63b-disclaim {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--c8e63b-faint);
  padding: 10px 2px 0;
}

/* Common footer strip */
.c8e63b-footer {
  text-align: center;
  padding: 16px 14px 8px;
  margin-top: 8px;
  border-top: 1px solid var(--c8e63b-line);
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--c8e63b-faint);
}
.c8e63b-footer b {
  color: var(--c8e63b-dim);
  font-weight: 600;
}

/* ---------- Fixed mobile bottom navigation ---------- */

.c8e63b-bottomnav {
  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);
  align-items: end;
  background: rgba(13, 14, 18, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c8e63b-line);
  padding: 4px 2px calc(6px + env(safe-area-inset-bottom, 0px));
}

.c8e63b-bnitem {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 52px;
  padding: 7px 2px 3px;
  color: var(--c8e63b-faint);
  font-family: var(--c8e63b-ui);
}
.c8e63b-bnitem:active { color: var(--c8e63b-paper); }

.c8e63b-bnitem.c8e63b-on { color: var(--c8e63b-blue); }
/* Active indicator: thin line across the top edge */
.c8e63b-bnitem.c8e63b-on::before {
  content: "";
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 2px;
  background: linear-gradient(90deg, var(--c8e63b-blue), var(--c8e63b-blush));
  border-radius: 2px;
}

.c8e63b-bnico {
  width: 23px; height: 23px;
}
.c8e63b-bnico svg {
  width: 100%; height: 100%;
  display: block;
}

.c8e63b-bnlabel {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1;
}

/* Center raised promo hub */
.c8e63b-bnitem.c8e63b-bnhub { color: var(--c8e63b-blush); }

.c8e63b-bnhubbtn {
  width: 48px; height: 48px;
  margin-top: -20px;
  display: grid;
  place-content: center;
  background: linear-gradient(160deg, var(--c8e63b-blush), #ff9fb0);
  color: #0c0c0c;
  border-radius: 50%;
  border: 3px solid #0c0c0c;
  box-shadow: 0 6px 18px rgba(255, 192, 203, 0.4);
  cursor: pointer;
}
.c8e63b-bnhubbtn:active { transform: scale(0.92); }
.c8e63b-bnhubbtn svg {
  width: 22px; height: 22px;
  display: block;
}

/* Bonus nav role badge dot */
.c8e63b-bnitem.c8e63b-bnbonus::after {
  content: "";
  position: absolute;
  top: 6px; right: 26%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c8e63b-blush);
  box-shadow: 0 0 8px rgba(255, 192, 203, 0.9);
}

/* ---------- Wide viewports keep the phone canvas ---------- */

@media (min-width: 430px) {
  body.c8e63b-page {
    background:
      radial-gradient(50% 30% at 50% 0%, rgba(30, 144, 255, 0.10), transparent 70%),
      #000000;
  }
}

@media (min-width: 480px) {
  .c8e63b-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .c8e63b-intro h1 { font-size: 27px; }
}

/* Inline promo text that still meets the touch target */
.c8e63b-inlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 4px 8px 4px 0;
  padding: 6px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 192, 203, 0.55);
  color: var(--c8e63b-blush);
  font-family: var(--c8e63b-ui);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
}
.c8e63b-inlink:active { opacity: 0.75; }

button:focus-visible,
a:focus-visible,
.c8e63b-btn:focus-visible,
.c8e63b-tile:focus-visible,
.c8e63b-drawerlink:focus-visible,
.c8e63b-bnitem:focus-visible,
.c8e63b-chip:focus-visible,
.c8e63b-promoact:focus-visible,
.c8e63b-inlink:focus-visible {
  outline: 2px solid var(--c8e63b-blue);
  outline-offset: 2px;
}

/* ---------- Tips page: fault sheet, fact rail, relationship chain ---------- */

.c8e63b-faultsheet {
  margin: 16px 12px 0;
  display: grid;
  gap: 8px;
}

.c8e63b-fault {
  display: grid;
  gap: 6px;
  padding: 12px 12px 12px 14px;
  background: #121318;
  border: 1px solid var(--c8e63b-line);
  border-radius: 4px 14px 4px 14px;
}

.c8e63b-faultsym {
  font-family: var(--c8e63b-display);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.25;
  color: #ffffff;
}

.c8e63b-faultwhy,
.c8e63b-faultfix {
  font-size: 14.5px;
  color: var(--c8e63b-dim);
}
.c8e63b-faultwhy b { color: var(--c8e63b-blue); font-weight: 600; }
.c8e63b-faultfix b { color: var(--c8e63b-blush); font-weight: 600; }

.c8e63b-factrail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.c8e63b-fact {
  min-height: 92px;
  padding: 10px;
  background: rgba(30, 144, 255, 0.08);
  border: 1px solid rgba(30, 144, 255, 0.35);
  border-radius: 14px 4px 14px 4px;
}
.c8e63b-fact b {
  display: block;
  font-family: var(--c8e63b-display);
  font-size: 14.5px;
  color: var(--c8e63b-blush);
  margin-bottom: 4px;
}
.c8e63b-fact span {
  font-size: 13.5px;
  color: var(--c8e63b-dim);
}

.c8e63b-chain {
  margin-top: 12px;
  display: grid;
  gap: 0;
}

.c8e63b-chainrow {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
}

.c8e63b-chainmark {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.c8e63b-chainmark i {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--c8e63b-blush);
  box-shadow: 0 0 0 4px rgba(255, 192, 203, 0.15);
  font-style: normal;
}
.c8e63b-chainmark b {
  width: 2px;
  flex: 1 1 auto;
  min-height: 18px;
  background: rgba(233, 236, 239, 0.18);
}
.c8e63b-chainrow:last-child .c8e63b-chainmark b { display: none; }

.c8e63b-chaincopy {
  padding-bottom: 12px;
}
.c8e63b-chaincopy strong {
  display: block;
  font-size: 15px;
  color: var(--c8e63b-paper);
}
.c8e63b-chaincopy span {
  font-size: 14.5px;
  color: var(--c8e63b-dim);
}

.c8e63b-ask {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--c8e63b-line);
}
.c8e63b-ask h3 {
  font-family: var(--c8e63b-display);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}
.c8e63b-ask p {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--c8e63b-dim);
}

/* ---------- About page: answer lead, scenes, limit rail, if/then ---------- */

.c8e63b-answerlead {
  margin: 14px 12px 0;
  padding: 16px 14px;
  background: #101116;
  border-top: 4px solid var(--c8e63b-blush);
  border-radius: 0 0 16px 16px;
}
.c8e63b-answerlead p {
  font-size: 16px;
  color: var(--c8e63b-paper);
}
.c8e63b-answerlead p + p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--c8e63b-dim);
}

.c8e63b-scene {
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px 16px 4px 4px;
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.16), rgba(16, 17, 22, 0.2));
  border: 1px solid var(--c8e63b-line);
}
.c8e63b-scene h3 {
  font-family: var(--c8e63b-display);
  font-size: 16.5px;
  color: #ffffff;
}
.c8e63b-scene p {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--c8e63b-dim);
}

.c8e63b-limitrail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.c8e63b-limitrail::-webkit-scrollbar { display: none; }

.c8e63b-limit {
  flex: 0 0 78%;
  min-height: 120px;
  padding: 12px;
  background: #121318;
  border: 1px solid rgba(255, 192, 203, 0.35);
  border-radius: 6px;
}
.c8e63b-limit b {
  display: block;
  font-family: var(--c8e63b-display);
  font-size: 18px;
  color: var(--c8e63b-blush);
  margin-bottom: 4px;
}
.c8e63b-limit span {
  font-size: 14.5px;
  color: var(--c8e63b-dim);
}

.c8e63b-ifthen {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(16, 17, 22, 0.75);
  border-left: 3px solid var(--c8e63b-blue);
}
.c8e63b-if {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c8e63b-paper);
}
.c8e63b-then {
  margin-top: 3px;
  font-size: 14.5px;
  color: var(--c8e63b-dim);
}

.c8e63b-helpcopy {
  margin: 16px 12px 0;
  padding: 0 2px;
}
.c8e63b-helpcopy h2 {
  font-family: var(--c8e63b-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.22;
  color: #ffffff;
}
.c8e63b-helpcopy > p {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--c8e63b-dim);
}
.c8e63b-helpcopy a {
  color: var(--c8e63b-blush);
  border-bottom: 1px solid rgba(255, 192, 203, 0.5);
}

.c8e63b-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 12px 14px 0;
  font-size: 14px;
  color: var(--c8e63b-faint);
}
.c8e63b-crumb a {
  color: var(--c8e63b-blue);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .c8e63b-track { transition: none; }
  .c8e63b-drawer { transition: none; }
  .c8e63b-scrim { transition: none; }
}
