/* ==========================================================================
   VT66 mobile shell stylesheet
   Site   : vt66.click
   Prefix : ca3c53-
   Canvas : 320-430px phone-first, centered on wide screens (max 480px rail)
   Palette: #34495E deep slate / #008B8B teal / #FFEBCD cream / #E0F2F1 mist / #FAFAD2 sand
   Voice  : near-square tool corners, grouped cover cards, short-list rhythm,
            sliding focus indicators, light press feedback
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
  --ca3c53-ink: #34495E;            /* deep slate base */
  --ca3c53-ink-deep: #2A3B4C;       /* darker header / footer ground */
  --ca3c53-ink-floor: #22303E;      /* page floor */
  --ca3c53-teal: #008B8B;           /* primary accent */
  --ca3c53-teal-lit: #00A6A6;       /* pressed / hover teal */
  --ca3c53-mist: #E0F2F1;           /* pale teal surface */
  --ca3c53-cream: #FFEBCD;          /* main light text */
  --ca3c53-sand: #FAFAD2;           /* soft highlight */
  --ca3c53-line: rgba(224, 242, 241, 0.16);
  --ca3c53-line-strong: rgba(224, 242, 241, 0.30);
  --ca3c53-shadow: 0 10px 26px rgba(15, 24, 33, 0.55);
  --ca3c53-r-1: 3px;                /* near-square corner, small */
  --ca3c53-r-2: 5px;                /* near-square corner, panel */
  --ca3c53-r-cta: 7px;              /* light-rounded CTA corner */
  --ca3c53-touch: 44px;             /* minimum touch target */
  --ca3c53-head-h: 96px;            /* fixed header height (2 layers) */
  --ca3c53-nav-h: 78px;             /* fixed bottom nav height */
  --ca3c53-font-disp: "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
  --ca3c53-font-body: "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
}

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

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

body {
  background: var(--ca3c53-ink-floor);
  color: var(--ca3c53-cream);
  font-family: var(--ca3c53-font-body);
  font-size: 15px;
  line-height: 1.62;
  min-height: 100vh;
}

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

a { color: var(--ca3c53-sand); text-decoration: none; }
a:hover { color: #FFFFFF; }

ul.ca3c53-list, ol.ca3c53-list { list-style: none; }

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

:focus-visible {
  outline: 2px solid var(--ca3c53-sand);
  outline-offset: 2px;
}

/* phone rail: content stays a stable canvas even on desktop */
.ca3c53-page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--ca3c53-ink);
  box-shadow: var(--ca3c53-shadow);
  position: relative;
}

/* ==========================================================================
   Fixed header — brand layer + action layer
   ========================================================================== */
.ca3c53-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
}

.ca3c53-header-in {
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--ca3c53-ink-deep) 0%, #2E4152 100%);
  border-bottom: 1px solid var(--ca3c53-line-strong);
}

/* layer 1: brand only — real logo image + site name, nothing else */
.ca3c53-brandrow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 12px 4px;
}

.ca3c53-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--ca3c53-r-1);
  border: 1px solid var(--ca3c53-line-strong);
  background: var(--ca3c53-mist);
  object-fit: cover;
  flex: 0 0 auto;
}

.ca3c53-brandname {
  font-family: var(--ca3c53-font-disp);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: #FFFFFF;
  line-height: 1.1;
}

.ca3c53-brandname small {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ca3c53-sand);
  text-transform: uppercase;
}

/* layer 2: register / login + route panel trigger */
.ca3c53-actionrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 9px;
}

.ca3c53-btn {
  flex: 1 1 auto;
  min-height: var(--ca3c53-touch);
  border-radius: var(--ca3c53-r-1);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 0.08s ease, filter 0.15s ease;
}

.ca3c53-btn:active { transform: scale(0.96); filter: brightness(1.15); }

.ca3c53-btn-join {
  background: linear-gradient(135deg, var(--ca3c53-teal) 0%, #00A29B 100%);
  color: #062523;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}

.ca3c53-btn-login {
  background: rgba(224, 242, 241, 0.07);
  color: var(--ca3c53-mist);
  border: 1px solid var(--ca3c53-line-strong);
}

/* compact route-panel trigger */
.ca3c53-menutoggle {
  flex: 0 0 var(--ca3c53-touch);
  width: var(--ca3c53-touch);
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--ca3c53-line-strong);
  border-radius: var(--ca3c53-r-1);
  background: rgba(224, 242, 241, 0.06);
}

.ca3c53-menutoggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ca3c53-mist);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

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

/* compact route panel (slides under the action row) */
.ca3c53-routes {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.28s ease, visibility 0.28s;
  background: #243545;
  border-top: 1px solid transparent;
}

.ca3c53-routes.ca3c53-open {
  max-height: 440px;
  visibility: visible;
  border-top-color: var(--ca3c53-line);
  padding-bottom: 6px;
}

.ca3c53-routes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 12px 4px;
}

.ca3c53-routes a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--ca3c53-line);
  border-radius: var(--ca3c53-r-1);
  background: rgba(250, 250, 210, 0.05);
  color: var(--ca3c53-mist);
  font-size: 13px;
  font-weight: 600;
  position: relative;
}

/* sliding focus indicator on route links */
.ca3c53-routes a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  background: var(--ca3c53-sand);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.ca3c53-routes a:hover::after,
.ca3c53-routes a:focus-visible::after { transform: scaleX(1); }

.ca3c53-routes a.ca3c53-current {
  background: var(--ca3c53-teal);
  color: #FFFFFF;
  border-color: transparent;
}

.ca3c53-routes a.ca3c53-current::after { display: none; }

/* ==========================================================================
   Main canvas
   ========================================================================== */
.ca3c53-main {
  padding: calc(var(--ca3c53-head-h) + 8px) 12px calc(var(--ca3c53-nav-h) + 22px);
}

/* ---------- hero heading block ---------- */
.ca3c53-hero { padding: 4px 2px 10px; }

.ca3c53-hero h1 {
  font-family: var(--ca3c53-font-disp);
  font-size: 24px;
  line-height: 1.28;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.01em;
}

.ca3c53-hero .ca3c53-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ca3c53-sand);
  border: 1px solid var(--ca3c53-line-strong);
  border-radius: var(--ca3c53-r-1);
  padding: 3px 8px;
  margin-bottom: 8px;
  background: rgba(0, 139, 139, 0.18);
}

.ca3c53-hero p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ca3c53-cream);
}

/* ==========================================================================
   Banner carousel
   ========================================================================== */
.ca3c53-carousel {
  position: relative;
  border: 1px solid var(--ca3c53-line-strong);
  border-radius: var(--ca3c53-r-2);
  overflow: hidden;
  background: var(--ca3c53-ink-deep);
  margin: 10px 0 4px;
}

.ca3c53-slide {
  display: none;
  cursor: pointer;
}

.ca3c53-slide.ca3c53-slide-on { display: block; }

.ca3c53-slide img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.ca3c53-slide.ca3c53-slide-on img { animation: ca3c53-fadein 0.45s ease; }

@keyframes ca3c53-fadein {
  from { opacity: 0.25; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

.ca3c53-dot {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 235, 205, 0.42);
  border: 1px solid rgba(34, 48, 62, 0.5);
  padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
}

.ca3c53-dot.ca3c53-dot-on {
  background: var(--ca3c53-sand);
  width: 30px;
}

/* ---------- category quick strip ---------- */
.ca3c53-catstrip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 8px 2px 10px;
  scrollbar-width: none;
}

.ca3c53-catstrip::-webkit-scrollbar { display: none; }

.ca3c53-catstrip a {
  flex: 0 0 auto;
  min-height: 34px;
  line-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--ca3c53-line-strong);
  border-radius: var(--ca3c53-r-1);
  background: rgba(224, 242, 241, 0.06);
  color: var(--ca3c53-mist);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ca3c53-catstrip a:active { background: var(--ca3c53-teal); color: #FFFFFF; }

/* ==========================================================================
   Game groups — grouped cover cards
   ========================================================================== */
.ca3c53-gamegroup {
  margin-top: 16px;
  border: 1px solid var(--ca3c53-line);
  border-radius: var(--ca3c53-r-2);
  background: linear-gradient(180deg, rgba(250, 250, 210, 0.045) 0%, rgba(250, 250, 210, 0.012) 100%);
  overflow: hidden;
}

/* cover band of each group */
.ca3c53-grouphead {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(0, 139, 139, 0.55) 0%, rgba(0, 139, 139, 0.08) 70%);
  border-left: 4px solid var(--ca3c53-teal-lit);
}

.ca3c53-grouphead h2 {
  font-family: var(--ca3c53-font-disp);
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.3;
  color: #FFFFFF;
  flex: 1 1 auto;
}

.ca3c53-groupcount {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #06302E;
  background: var(--ca3c53-sand);
  border-radius: var(--ca3c53-r-1);
  padding: 3px 7px;
}

.ca3c53-groupnote {
  padding: 9px 12px 0;
  font-size: 13px;
  color: var(--ca3c53-mist);
}

/* stable 4-column track on 320px, 4-5 on wider phones */
.ca3c53-gamegrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 10px 12px;
}

.ca3c53-gamecard {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--ca3c53-line);
  border-radius: var(--ca3c53-r-1);
  background: rgba(34, 48, 62, 0.55);
  padding: 5px 4px 7px;
  text-align: center;
  transition: transform 0.08s ease, border-color 0.15s ease;
  min-height: var(--ca3c53-touch);
}

.ca3c53-gamecard:hover { border-color: var(--ca3c53-teal-lit); color: #FFFFFF; }

.ca3c53-gamecard:active { transform: scale(0.93); border-color: var(--ca3c53-sand); }

.ca3c53-gamecard img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  background: var(--ca3c53-ink-deep);
}

.ca3c53-gamename {
  font-size: 11px;
  line-height: 1.32;
  font-weight: 600;
  color: var(--ca3c53-cream);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 29px;
}

/* ==========================================================================
   Content panels — short-paragraph / list rhythm
   ========================================================================== */
.ca3c53-panel {
  margin-top: 18px;
  border: 1px solid var(--ca3c53-line);
  border-left: 4px solid var(--ca3c53-teal-lit);
  border-radius: var(--ca3c53-r-2);
  background: rgba(42, 59, 76, 0.45);
  padding: 13px 13px 15px;
}

.ca3c53-panel h2 {
  font-family: var(--ca3c53-font-disp);
  font-size: 17px;
  line-height: 1.34;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.ca3c53-panel h3 {
  font-family: var(--ca3c53-font-disp);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ca3c53-sand);
  margin: 12px 0 4px;
}

.ca3c53-panel p { margin-bottom: 8px; font-size: 14px; }

.ca3c53-panel p:last-child { margin-bottom: 0; }

.ca3c53-lead-answer {
  font-weight: 700;
  color: var(--ca3c53-sand);
}

/* compact list rows */
.ca3c53-list li {
  position: relative;
  padding: 7px 10px 7px 26px;
  border: 1px solid var(--ca3c53-line);
  border-radius: var(--ca3c53-r-1);
  margin-bottom: 6px;
  font-size: 13.5px;
  background: rgba(34, 48, 62, 0.4);
}

.ca3c53-list li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ca3c53-teal-lit);
}

/* numbered steps */
.ca3c53-steps { counter-reset: ca3c53-step; }

.ca3c53-steps li {
  counter-increment: ca3c53-step;
  position: relative;
  padding: 8px 10px 8px 40px;
  border: 1px solid var(--ca3c53-line);
  border-radius: var(--ca3c53-r-1);
  margin-bottom: 6px;
  font-size: 13.5px;
  background: rgba(34, 48, 62, 0.4);
}

.ca3c53-steps li::before {
  content: counter(ca3c53-step);
  position: absolute;
  left: 9px;
  top: 9px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #06302E;
  background: var(--ca3c53-sand);
  border-radius: var(--ca3c53-r-1);
}

/* inline definition rows */
.ca3c53-defrow {
  display: flex;
  gap: 10px;
  border-bottom: 1px dashed var(--ca3c53-line);
  padding: 7px 0;
  font-size: 13.5px;
}

.ca3c53-defrow:last-child { border-bottom: 0; }

.ca3c53-defrow dt {
  flex: 0 0 118px;
  font-weight: 700;
  color: var(--ca3c53-sand);
}

.ca3c53-defrow dd { flex: 1 1 auto; color: var(--ca3c53-cream); }

/* ---------- CTA groups: light-rounded text buttons ---------- */
.ca3c53-ctagroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ca3c53-cta {
  min-height: var(--ca3c53-touch);
  padding: 10px 18px;
  border-radius: var(--ca3c53-r-cta);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 0.08s ease, filter 0.15s ease;
}

.ca3c53-cta:active { transform: scale(0.95); }

.ca3c53-cta-main {
  flex: 1 1 140px;
  background: linear-gradient(135deg, var(--ca3c53-sand) 0%, #F6E4A8 100%);
  color: #38310D;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}

.ca3c53-cta-alt {
  flex: 1 1 140px;
  background: rgba(224, 242, 241, 0.08);
  color: var(--ca3c53-mist);
  border: 1px solid var(--ca3c53-line-strong);
}

/* in-text promo link */
.ca3c53-textlink {
  color: var(--ca3c53-sand);
  font-weight: 700;
  border-bottom: 1px dashed var(--ca3c53-sand);
  padding-bottom: 1px;
}

/* ==========================================================================
   Extended home footer: brand > directory > promotions > disclaimer
   ========================================================================== */
.ca3c53-ext {
  margin-top: 20px;
  border: 1px solid var(--ca3c53-line);
  border-radius: var(--ca3c53-r-2);
  background: var(--ca3c53-ink-deep);
  padding: 14px 13px 12px;
}

.ca3c53-ext h2 {
  font-family: var(--ca3c53-font-disp);
  font-size: 15.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 7px;
}

.ca3c53-extblock { margin-bottom: 14px; }
.ca3c53-extblock:last-child { margin-bottom: 0; }

.ca3c53-extbrand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ca3c53-extbrand img {
  width: 34px;
  height: 34px;
  border-radius: var(--ca3c53-r-1);
  border: 1px solid var(--ca3c53-line-strong);
  background: var(--ca3c53-mist);
  flex: 0 0 auto;
}

.ca3c53-extbrand p { font-size: 13px; color: var(--ca3c53-mist); }

/* compact directory groups */
.ca3c53-dirgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.ca3c53-dirgrid a {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--ca3c53-line);
  border-radius: var(--ca3c53-r-1);
  background: rgba(224, 242, 241, 0.05);
  font-size: 13px;
  font-weight: 600;
  color: var(--ca3c53-cream);
}

.ca3c53-dirgrid a span {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(224, 242, 241, 0.72);
}

/* 4 promotion entries */
.ca3c53-promorow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ca3c53-promorow .ca3c53-cta { padding: 9px 8px; font-size: 13px; }

/* conditional disclaimer note */
.ca3c53-note {
  border: 1px dashed var(--ca3c53-line-strong);
  border-left: 4px solid var(--ca3c53-sand);
  border-radius: var(--ca3c53-r-1);
  padding: 9px 11px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 235, 205, 0.85);
  background: rgba(250, 250, 210, 0.05);
}

/* ==========================================================================
   Common footer (copyright only)
   ========================================================================== */
.ca3c53-foot {
  margin-top: 14px;
  padding: 12px 4px 6px;
  border-top: 1px solid var(--ca3c53-line);
  text-align: center;
  font-size: 12px;
  color: rgba(224, 242, 241, 0.66);
}

/* ==========================================================================
   Fixed bottom navigation — center raised, 5 roles
   ========================================================================== */
.ca3c53-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(30, 42, 54, 0.97);
  border-top: 1px solid var(--ca3c53-line-strong);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.ca3c53-bottomnav-in {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  height: var(--ca3c53-nav-h);
}

.ca3c53-navitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--ca3c53-touch);
  padding: 8px 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(224, 242, 241, 0.78);
  position: relative;
  border-radius: var(--ca3c53-r-1);
  transition: color 0.18s ease;
}

.ca3c53-navitem svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* light press feedback */
.ca3c53-navitem:active { transform: translateY(1px) scale(0.94); color: var(--ca3c53-sand); }

/* active state: background support block + filled icon */
.ca3c53-navitem::before {
  content: "";
  position: absolute;
  inset: 6px 5px 4px;
  border-radius: var(--ca3c53-r-1);
  background: transparent;
  transition: background 0.18s ease;
}

.ca3c53-navitem.ca3c53-navon { color: #FFFFFF; }

.ca3c53-navitem.ca3c53-navon::before { background: var(--ca3c53-teal); }

.ca3c53-navitem.ca3c53-navon svg { fill: var(--ca3c53-sand); stroke: #FFFFFF; }

.ca3c53-navitem span { position: relative; z-index: 1; }
.ca3c53-navitem svg { position: relative; z-index: 1; }

/* raised center role */
.ca3c53-navcore {
  padding-top: 0;
}

.ca3c53-navcore::before { inset: 10px 8px 4px; }

.ca3c53-navcore .ca3c53-navdisc {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  margin-top: -20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ca3c53-sand) 0%, #F0D98F 100%);
  color: #38310D;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 -3px 0 rgba(0, 0, 0, 0.14);
  border: 2px solid var(--ca3c53-ink-deep);
}

.ca3c53-navcore .ca3c53-navdisc svg {
  width: 22px;
  height: 22px;
  stroke: #38310D;
  fill: none;
  stroke-width: 1.9;
}

.ca3c53-navcore:active .ca3c53-navdisc { transform: scale(0.92); }

/* ==========================================================================
   Breakpoints — literal 430px wide-phone tuning
   ========================================================================== */
@media (min-width: 375px) {
  .ca3c53-hero h1 { font-size: 26px; }
  .ca3c53-gamegrid { gap: 9px; }
  .ca3c53-dirgrid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 400px) {
  /* widen to a 5-track game grid on larger phones */
  .ca3c53-gamegrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 430px) {
  .ca3c53-hero h1 { font-size: 27px; }
  .ca3c53-panel { padding: 15px 15px 16px; }
  .ca3c53-promorow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ca3c53-slide img { aspect-ratio: 8 / 9; }
}

@media (max-width: 359px) {
  /* guard ultra-narrow screens: keep 4 tracks but tighten gaps */
  .ca3c53-gamegrid { gap: 5px; padding: 8px 7px 10px; }
  .ca3c53-gamename { font-size: 10.5px; }
  .ca3c53-btn { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ca3c53-slide.ca3c53-slide-on img { animation: none; }
  * { transition-duration: 0.01s !important; }
}

/* utility: section scroll anchor clearance under fixed header */
.ca3c53-anchor { scroll-margin-top: calc(var(--ca3c53-head-h) + 10px); }

/* utility: visually hidden but screen-reader available */
.ca3c53-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- help-page patterns: distinct reading modes ---------- */
.ca3c53-helpintro {
  margin-top: 10px;
  padding: 14px 13px;
  border: 1px solid var(--ca3c53-line-strong);
  border-radius: var(--ca3c53-r-2);
  background: linear-gradient(135deg, rgba(0, 139, 139, 0.32), rgba(42, 59, 76, 0.72));
}

.ca3c53-helpintro strong { color: var(--ca3c53-sand); }
.ca3c53-helpintro p { font-size: 14px; }
.ca3c53-helpintro p:last-child { margin-top: 8px; margin-bottom: 0; }

.ca3c53-routebar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 2px;
}

.ca3c53-routebar span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 5px;
  text-align: center;
  border: 1px solid var(--ca3c53-line);
  border-radius: var(--ca3c53-r-1);
  background: rgba(250, 250, 210, 0.06);
  color: var(--ca3c53-mist);
  font-size: 12px;
  font-weight: 700;
}

.ca3c53-checkrows { display: grid; gap: 7px; margin-top: 10px; }

.ca3c53-checkrow {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: start;
  padding: 9px 10px;
  border-left: 3px solid var(--ca3c53-teal-lit);
  background: rgba(34, 48, 62, 0.48);
  border-radius: var(--ca3c53-r-1);
}

.ca3c53-checkrow b {
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  border-radius: 50%;
  background: var(--ca3c53-sand);
  color: #38310D;
  font-size: 12px;
}

.ca3c53-checkrow p { margin: 0; font-size: 13.5px; }

.ca3c53-issuegrid { display: grid; gap: 7px; margin-top: 9px; }

.ca3c53-issue {
  padding: 10px 11px;
  border: 1px solid var(--ca3c53-line);
  border-radius: var(--ca3c53-r-1);
  background: rgba(224, 242, 241, 0.045);
}

.ca3c53-issue h3 { margin: 0 0 4px; color: var(--ca3c53-sand); font-size: 14px; }
.ca3c53-issue p { margin: 0; font-size: 13.5px; }

.ca3c53-helpdetails { margin-top: 9px; }

.ca3c53-helpdetails details {
  border-top: 1px solid var(--ca3c53-line);
  padding: 9px 0;
}

.ca3c53-helpdetails details:last-child { border-bottom: 1px solid var(--ca3c53-line); }
.ca3c53-helpdetails summary { cursor: pointer; color: var(--ca3c53-sand); font-weight: 700; padding: 3px 0; }
.ca3c53-helpdetails details p { margin: 7px 0 0; font-size: 13.5px; }

.ca3c53-guardrail {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px dashed var(--ca3c53-sand);
  border-radius: var(--ca3c53-r-1);
  background: rgba(250, 250, 210, 0.07);
  color: var(--ca3c53-cream);
}

.ca3c53-guardrail strong { color: var(--ca3c53-sand); }

/* About page uses a timeline and fact ledger rather than help checklists. */
.ca3c53-timeline { margin-top: 10px; border-left: 2px solid var(--ca3c53-teal-lit); padding-left: 13px; }

.ca3c53-timeline article { position: relative; padding: 0 0 14px 4px; }
.ca3c53-timeline article:last-child { padding-bottom: 0; }
.ca3c53-timeline article::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  left: -19px;
  top: 5px;
  border: 2px solid var(--ca3c53-sand);
  border-radius: 50%;
  background: var(--ca3c53-ink);
}
.ca3c53-timeline h3 { margin: 0 0 3px; color: var(--ca3c53-sand); font-size: 14.5px; }
.ca3c53-timeline p { margin: 0; font-size: 13.5px; }

.ca3c53-ledger { margin-top: 9px; display: grid; gap: 6px; }
.ca3c53-ledger-row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 9px;
  padding: 8px 9px;
  border-bottom: 1px solid var(--ca3c53-line);
  background: rgba(34, 48, 62, 0.36);
}
.ca3c53-ledger-row b { color: var(--ca3c53-sand); font-size: 12.5px; }
.ca3c53-ledger-row span { font-size: 13px; }

.ca3c53-scenarios { display: grid; gap: 7px; margin-top: 10px; }
.ca3c53-scenario {
  padding: 10px 11px;
  border-radius: var(--ca3c53-r-1);
  background: linear-gradient(100deg, rgba(0, 139, 139, 0.21), rgba(34, 48, 62, 0.38));
  border: 1px solid var(--ca3c53-line);
}
.ca3c53-scenario h3 { margin: 0 0 3px; color: #FFFFFF; font-size: 14px; }
.ca3c53-scenario p { margin: 0; font-size: 13.5px; }

.ca3c53-factgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.ca3c53-fact {
  min-height: 88px;
  padding: 10px 9px;
  border-top: 3px solid var(--ca3c53-teal-lit);
  border-radius: var(--ca3c53-r-1);
  background: rgba(224, 242, 241, 0.06);
}
.ca3c53-fact b { display: block; color: var(--ca3c53-sand); font-size: 12.5px; margin-bottom: 3px; }
.ca3c53-fact span { font-size: 12.5px; line-height: 1.45; }

@media (max-width: 359px) {
  .ca3c53-routebar span { font-size: 11px; }
  .ca3c53-ledger-row { grid-template-columns: 94px 1fr; gap: 6px; }
}
