/* ============================================================
   mcww.homes — base frame stylesheet
   Site-specific class prefix : c284d8-
   Canvas model               : mobile-first 320-430px, centered
                                phone canvas kept on wide screens
   Palette                    : #2D2D2D / #A0522D / #FFBF00 /
                                #F5DEB3 / #BF360C
   ============================================================ */

/* ---------- 1. design tokens (all vars carry the site prefix) ---------- */
:root {
  --c284d8-ink: #2D2D2D;            /* base canvas */
  --c284d8-ink-deep: #211f1d;       /* outer page / footer well */
  --c284d8-panel: #3a3632;          /* raised surfaces */
  --c284d8-panel-2: #463f39;        /* pressed / hover surface */
  --c284d8-line: #5a5049;           /* hairline borders */
  --c284d8-clay: #A0522D;           /* sienna accent */
  --c284d8-clay-2: #c06a3e;
  --c284d8-gold: #FFBF00;           /* primary accent */
  --c284d8-gold-2: #ffd24d;
  --c284d8-sand: #F5DEB3;           /* body text */
  --c284d8-sand-dim: #d7bf9a;       /* secondary text */
  --c284d8-ember: #BF360C;          /* hot / warning */
  --c284d8-ember-2: #e8511f;
  --c284d8-r-sm: 8px;
  --c284d8-r: 12px;
  --c284d8-r-lg: 16px;
  --c284d8-top-h: 56px;             /* sticky top bar height */
  --c284d8-dock-h: 62px;            /* fixed bottom dock height */
  --c284d8-head: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  --c284d8-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --c284d8-shadow-1: 0 8px 22px rgba(12, 10, 9, 0.45);
  --c284d8-shadow-2: 0 2px 6px rgba(12, 10, 9, 0.35);
  --c284d8-tap: 44px;               /* minimum touch target */
}

/* ---------- 2. reset + base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--c284d8-ink-deep);
  color: var(--c284d8-sand);
  font-family: var(--c284d8-body);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a { color: var(--c284d8-gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: var(--c284d8-head);
  color: var(--c284d8-sand);
  margin: 0;
  line-height: 1.28;
  letter-spacing: 0.2px;
}

p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

body.c284d8-no-scroll { overflow: hidden; }

.c284d8-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c284d8-gold);
  color: #241d10;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 var(--c284d8-r-sm) 0;
  z-index: 200;
}
.c284d8-skip:focus { left: 0; }

/* ---------- 3. phone canvas shell ---------- */
.c284d8-shell {
  position: relative;
  width: 100%;
  max-width: 432px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 320px at 50% -60px, rgba(160, 82, 45, 0.35), transparent 70%),
    var(--c284d8-ink);
  box-shadow: 0 0 0 1px rgba(245, 222, 179, 0.06);
  /* room for the fixed dock so content is never covered */
  padding-bottom: calc(var(--c284d8-dock-h) + env(safe-area-inset-bottom, 0px) + 22px);
}

/* ---------- 4. sticky top bar ---------- */
.c284d8-top {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--c284d8-top-h);
  padding: 8px 12px;
  background: rgba(33, 31, 29, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c284d8-line);
}

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

.c284d8-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 191, 0, 0.55);
  box-shadow: 0 0 0 2px rgba(33, 31, 29, 0.8), var(--c284d8-shadow-2);
  object-fit: cover;
  flex: none;
}

.c284d8-brandname {
  font-family: var(--c284d8-head);
  font-size: 21px;
  font-weight: 700;
  color: var(--c284d8-gold);
  letter-spacing: 1.5px;
  line-height: 1;
  white-space: nowrap;
}

.c284d8-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

/* primary (solid gold) and secondary (outlined sand) buttons */
.c284d8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 9px;
  font-family: var(--c284d8-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.15s ease, background-color 0.2s ease,
    color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.c284d8-btn:active { transform: translateY(1px) scale(0.985); }

.c284d8-btn-solid {
  background: linear-gradient(180deg, var(--c284d8-gold-2), var(--c284d8-gold));
  color: #2c2107;
  box-shadow: 0 4px 12px rgba(255, 191, 0, 0.22);
}
.c284d8-btn-solid:hover {
  background: linear-gradient(180deg, #ffe07e, var(--c284d8-gold-2));
  text-decoration: none;
}

.c284d8-btn-line {
  border: 1px solid var(--c284d8-sand-dim);
  color: var(--c284d8-sand);
  background: rgba(245, 222, 179, 0.05);
}
.c284d8-btn-line:hover {
  border-color: var(--c284d8-gold);
  color: var(--c284d8-gold-2);
  text-decoration: none;
}

.c284d8-burger {
  width: var(--c284d8-tap);
  height: var(--c284d8-tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--c284d8-line);
  background: var(--c284d8-panel);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.c284d8-burger:hover { border-color: var(--c284d8-gold); }
.c284d8-burger svg { width: 20px; height: 20px; }

/* ---------- 5. full-height menu layer ---------- */
.c284d8-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  background: rgba(18, 16, 15, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.c284d8-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.c284d8-menu-panel {
  width: min(100%, 432px);
  height: 100%;
  background: linear-gradient(180deg, #2c2926 0%, #211f1d 100%);
  border-left: 1px solid var(--c284d8-line);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.26s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.c284d8-menu.is-open .c284d8-menu-panel { transform: translateX(0); }

.c284d8-menu-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  background: rgba(33, 31, 29, 0.96);
  border-bottom: 1px solid var(--c284d8-line);
}

.c284d8-menu-close {
  width: var(--c284d8-tap);
  height: var(--c284d8-tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--c284d8-line);
  background: var(--c284d8-panel);
}
.c284d8-menu-close svg { width: 18px; height: 18px; }

.c284d8-menu-body { padding: 14px 14px 20px; }

.c284d8-menu-label {
  font-family: var(--c284d8-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c284d8-clay-2);
  margin: 16px 2px 8px;
}
.c284d8-menu-label:first-child { margin-top: 0; }

.c284d8-menu-list li + li { margin-top: 6px; }

.c284d8-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--c284d8-r-sm);
  border: 1px solid transparent;
  color: var(--c284d8-sand);
  font-size: 14.5px;
  font-weight: 600;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.c284d8-menu-link:hover {
  background: rgba(255, 191, 0, 0.08);
  border-color: rgba(255, 191, 0, 0.4);
  color: var(--c284d8-gold-2);
  text-decoration: none;
}
.c284d8-menu-link svg {
  width: 18px;
  height: 18px;
  color: var(--c284d8-gold);
  flex: none;
}
.c284d8-menu-link .c284d8-menu-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--c284d8-sand-dim);
}

.c284d8-menu-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.c284d8-menu-cta .c284d8-btn { width: 100%; min-height: var(--c284d8-tap); }

/* ---------- 6. main column ---------- */
.c284d8-main { padding: 14px 12px 4px; }

.c284d8-sec {
  margin-top: 26px;
  scroll-margin-top: calc(var(--c284d8-top-h) + 10px);
}

/* ---------- 7. hero ---------- */
.c284d8-hero { margin-top: 2px; }

.c284d8-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(160, 82, 45, 0.28);
  border: 1px solid rgba(192, 106, 62, 0.55);
  color: var(--c284d8-sand);
  font-family: var(--c284d8-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.c284d8-kicker svg { width: 13px; height: 13px; color: var(--c284d8-gold); }

.c284d8-hero h1 {
  font-size: 21px;
  margin: 10px 0 8px;
  color: var(--c284d8-sand);
}
.c284d8-hero h1 .c284d8-hl { color: var(--c284d8-gold); }

.c284d8-lead {
  color: var(--c284d8-sand-dim);
  font-size: 13.5px;
}

.c284d8-hero-cta {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  margin: 12px 0 14px;
}
.c284d8-hero-cta .c284d8-btn { width: 100%; min-height: var(--c284d8-tap); }

/* ---------- 8. banner carousel ---------- */
.c284d8-cs {
  position: relative;
  border-radius: var(--c284d8-r-lg);
  overflow: hidden;
  border: 1px solid var(--c284d8-line);
  box-shadow: var(--c284d8-shadow-1);
  background: var(--c284d8-panel);
}

.c284d8-cs-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.33, 0.8, 0.35, 1);
  touch-action: pan-y;
}

.c284d8-cs-slide {
  display: block;
  width: 100%;
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 16 / 8;
  background: var(--c284d8-panel);
}
.c284d8-cs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.c284d8-cs-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(23, 20, 18, 0.55));
  pointer-events: none;
}

.c284d8-cs-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 2;
}
.c284d8-cs-dot {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: rgba(245, 222, 179, 0.4);
  transition: background-color 0.25s ease, width 0.25s ease;
}
.c284d8-cs-dot.is-on {
  width: 30px;
  background: var(--c284d8-gold);
}

/* ---------- 9. quick shortcut chips (horizontal scroller) ---------- */
.c284d8-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin-top: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.c284d8-chips::-webkit-scrollbar { display: none; }

.c284d8-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--c284d8-line);
  background: linear-gradient(180deg, var(--c284d8-panel-2), var(--c284d8-panel));
  color: var(--c284d8-sand);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.c284d8-chip:hover { border-color: var(--c284d8-gold); text-decoration: none; }
.c284d8-chip:active { transform: translateY(1px); }
.c284d8-chip svg { width: 15px; height: 15px; color: var(--c284d8-gold); flex: none; }

/* ---------- 10. compact metric strip ---------- */
.c284d8-meters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.c284d8-meter {
  background: linear-gradient(180deg, rgba(69, 63, 57, 0.8), rgba(51, 47, 44, 0.9));
  border: 1px solid var(--c284d8-line);
  border-radius: var(--c284d8-r);
  padding: 10px 9px;
  text-align: center;
}
.c284d8-meter b {
  display: block;
  font-family: var(--c284d8-head);
  font-size: 15px;
  color: var(--c284d8-gold);
  letter-spacing: 0.3px;
}
.c284d8-meter span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--c284d8-sand-dim);
}

/* ---------- 11. section headings + intro ---------- */
.c284d8-sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.c284d8-sec-head h2 {
  font-size: 17.5px;
  flex: 1 1 auto;
  min-width: 0;
}

.c284d8-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c284d8-ember);
  color: #ffe9d8;
  font-family: var(--c284d8-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.c284d8-tag svg { width: 12px; height: 12px; }
.c284d8-tag--clay { background: var(--c284d8-clay); color: #f7e7d2; }

.c284d8-sec-intro {
  margin: 8px 0 10px;
  color: var(--c284d8-sand-dim);
  font-size: 13px;
}

.c284d8-sec-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
}
.c284d8-sec-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px dashed rgba(245, 222, 179, 0.45);
  color: var(--c284d8-sand);
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(245, 222, 179, 0.05);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.c284d8-sec-link:hover {
  border-style: solid;
  border-color: var(--c284d8-gold);
  color: var(--c284d8-gold-2);
  text-decoration: none;
}
.c284d8-sec-link svg { width: 13px; height: 13px; color: var(--c284d8-gold); flex: none; }

/* ---------- 12. game grid + light floating cards ---------- */
.c284d8-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 7px;
}

.c284d8-gcard {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: var(--c284d8-r-sm);
  transition: transform 0.16s ease;
}
.c284d8-gcard:active { transform: translateY(2px) scale(0.97); }

.c284d8-gframe {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--c284d8-panel);
  border: 1px solid var(--c284d8-line);
  box-shadow: 0 3px 8px rgba(15, 12, 10, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.c284d8-gframe img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.c284d8-gcard:hover .c284d8-gframe,
.c284d8-gcard:focus-visible .c284d8-gframe {
  border-color: rgba(255, 191, 0, 0.75);
  box-shadow: 0 8px 18px rgba(255, 191, 0, 0.14), 0 3px 8px rgba(15, 12, 10, 0.4);
}
.c284d8-gcard:hover .c284d8-gframe img { transform: scale(1.06); }

.c284d8-gname {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--c284d8-sand-dim);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.c284d8-gcard:hover .c284d8-gname { color: var(--c284d8-sand); }

/* tiny hot dot on trending items */
.c284d8-gdot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c284d8-ember-2);
  box-shadow: 0 0 0 2px rgba(33, 31, 29, 0.75);
}

/* ---------- 13. numbered steps ---------- */
.c284d8-steps { display: grid; gap: 9px; }

.c284d8-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  background: linear-gradient(180deg, rgba(69, 63, 57, 0.55), rgba(45, 42, 39, 0.75));
  border: 1px solid var(--c284d8-line);
  border-radius: var(--c284d8-r);
  padding: 11px 12px;
}
.c284d8-step b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--c284d8-gold-2), var(--c284d8-gold));
  color: #2c2107;
  font-family: var(--c284d8-head);
  font-size: 15px;
}
.c284d8-step h3 {
  font-size: 13.5px;
  margin-bottom: 3px;
  color: var(--c284d8-sand);
}
.c284d8-step p {
  font-size: 12.5px;
  color: var(--c284d8-sand-dim);
  margin: 0;
}

/* ---------- 14. comparison table ---------- */
.c284d8-cmp {
  border: 1px solid var(--c284d8-line);
  border-radius: var(--c284d8-r);
  overflow: hidden;
  margin-top: 4px;
}
.c284d8-cmp-row {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 1.45fr;
}
.c284d8-cmp-row + .c284d8-cmp-row { border-top: 1px solid var(--c284d8-line); }
.c284d8-cmp-row > div {
  padding: 9px 8px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--c284d8-sand-dim);
}
.c284d8-cmp-row > div + div { border-left: 1px solid var(--c284d8-line); }

.c284d8-cmp-head > div {
  background: rgba(160, 82, 45, 0.32);
  color: var(--c284d8-sand);
  font-family: var(--c284d8-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.6px;
}
.c284d8-cmp-row > .c284d8-cmp-name {
  color: var(--c284d8-sand);
  font-weight: 700;
  background: rgba(33, 31, 29, 0.35);
}

/* ---------- 15. pros / limits duo ---------- */
.c284d8-duo {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.c284d8-card {
  border: 1px solid var(--c284d8-line);
  border-radius: var(--c284d8-r);
  padding: 13px 13px 11px;
  background: linear-gradient(180deg, rgba(69, 63, 57, 0.5), rgba(40, 37, 35, 0.8));
}
.c284d8-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}
.c284d8-card h3 svg { width: 16px; height: 16px; color: var(--c284d8-gold); flex: none; }
.c284d8-card--good h3 svg { color: #9acd6a; }
.c284d8-card--warn h3 svg { color: var(--c284d8-ember-2); }
.c284d8-card ul { display: grid; gap: 6px; }
.c284d8-card li {
  position: relative;
  padding-left: 15px;
  font-size: 12.5px;
  color: var(--c284d8-sand-dim);
}
.c284d8-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--c284d8-gold);
}
.c284d8-card--warn li::before { background: var(--c284d8-ember-2); }

/* ---------- 16. decision CTA block ---------- */
.c284d8-cta {
  position: relative;
  border-radius: var(--c284d8-r-lg);
  border: 1px solid rgba(255, 191, 0, 0.5);
  background:
    radial-gradient(130% 160% at 82% -20%, rgba(191, 54, 12, 0.5), transparent 55%),
    linear-gradient(180deg, #43392f, #2e2a26);
  padding: 16px 14px;
  box-shadow: var(--c284d8-shadow-1);
}
.c284d8-cta h2 { font-size: 18px; }
.c284d8-cta p { margin: 8px 0 12px; font-size: 13px; color: var(--c284d8-sand-dim); }
.c284d8-cta-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8px;
}
.c284d8-cta-row .c284d8-btn { width: 100%; min-height: var(--c284d8-tap); }
.c284d8-cta-fine {
  margin-top: 10px;
  font-size: 11px;
  color: var(--c284d8-sand-dim);
}

/* ---------- 17. prose / explainer cards ---------- */
.c284d8-prose {
  border-left: 3px solid var(--c284d8-clay);
  border-radius: 4px var(--c284d8-r) var(--c284d8-r) 4px;
  background: rgba(160, 82, 45, 0.1);
  padding: 12px 13px;
  font-size: 13px;
  color: var(--c284d8-sand-dim);
}
.c284d8-prose p + p { margin-top: 8px; }
.c284d8-prose strong { color: var(--c284d8-sand); font-weight: 700; }

.c284d8-defs { display: grid; gap: 8px; margin-top: 10px; }
.c284d8-def {
  border: 1px solid var(--c284d8-line);
  border-radius: var(--c284d8-r-sm);
  padding: 10px 11px;
  background: rgba(33, 31, 29, 0.45);
}
.c284d8-def b {
  display: block;
  font-family: var(--c284d8-head);
  font-size: 12.5px;
  color: var(--c284d8-gold-2);
  margin-bottom: 3px;
}
.c284d8-def span { font-size: 12px; color: var(--c284d8-sand-dim); }

/* ---------- 18. homepage extended footer ---------- */
.c284d8-xfoot {
  margin-top: 30px;
  border-top: 1px solid var(--c284d8-line);
  padding: 18px 12px 8px;
  background: linear-gradient(180deg, rgba(33, 31, 29, 0.35), rgba(28, 26, 24, 0.9));
  border-radius: var(--c284d8-r-lg) var(--c284d8-r-lg) 0 0;
}

.c284d8-xfoot h2 {
  font-size: 15px;
  margin-bottom: 10px;
}
.c284d8-xfoot h3 {
  font-size: 13px;
  letter-spacing: 0.8px;
  color: var(--c284d8-clay-2);
  text-transform: uppercase;
  margin: 16px 0 8px;
}

/* page directory — horizontal shortcut tiles */
.c284d8-dir {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
.c284d8-dir a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: var(--c284d8-r-sm);
  border: 1px solid var(--c284d8-line);
  background: rgba(69, 63, 57, 0.35);
  font-size: 12px;
  font-weight: 600;
  color: var(--c284d8-sand);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.c284d8-dir a:hover {
  border-color: var(--c284d8-gold);
  background: rgba(255, 191, 0, 0.08);
  text-decoration: none;
}
.c284d8-dir svg { width: 15px; height: 15px; color: var(--c284d8-gold); flex: none; }

/* short brand note */
.c284d8-xbrand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--c284d8-sand-dim);
}
.c284d8-xbrand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 191, 0, 0.5);
  flex: none;
}
.c284d8-xbrand p { margin: 0; }

/* promo action shortcuts — horizontal scroller */
.c284d8-promos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.c284d8-promos::-webkit-scrollbar { display: none; }
.c284d8-promo {
  flex: none;
  width: 96px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 11px 6px 9px;
  border-radius: var(--c284d8-r);
  border: 1px solid rgba(255, 191, 0, 0.4);
  background: linear-gradient(180deg, rgba(160, 82, 45, 0.35), rgba(45, 42, 39, 0.9));
  color: var(--c284d8-sand);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.c284d8-promo:hover { border-color: var(--c284d8-gold); text-decoration: none; }
.c284d8-promo:active { transform: translateY(1px); }
.c284d8-promo svg { width: 19px; height: 19px; color: var(--c284d8-gold); }

.c284d8-finenote {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--c284d8-line);
  font-size: 11.5px;
  color: var(--c284d8-sand-dim);
}

/* ---------- 19. generic footer ---------- */
.c284d8-foot {
  text-align: center;
  padding: 14px 12px 6px;
  border-top: 1px solid var(--c284d8-line);
  font-size: 11.5px;
  color: var(--c284d8-sand-dim);
}
.c284d8-foot b {
  color: var(--c284d8-gold);
  font-family: var(--c284d8-head);
  letter-spacing: 1px;
}

/* ---------- 20. fixed mobile bottom dock ---------- */
.c284d8-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(100%, 432px);
  height: calc(var(--c284d8-dock-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, rgba(33, 31, 29, 0.9), rgba(22, 20, 19, 0.98));
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 191, 0, 0.35);
}

.c284d8-dock-btn {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-height: var(--c284d8-tap);
  color: var(--c284d8-sand-dim);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  transition: color 0.2s ease;
}
.c284d8-dock-btn:hover { color: var(--c284d8-sand); text-decoration: none; }

.c284d8-dock-ic {
  /* containerised icon tile — the active state gets a backing block */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  border-radius: 8px;
  transition: background-color 0.22s ease, color 0.22s ease;
}
.c284d8-dock-ic svg { width: 19px; height: 19px; }

.c284d8-dock-btn.is-active { color: var(--c284d8-gold); }
.c284d8-dock-btn.is-active .c284d8-dock-ic {
  background: rgba(255, 191, 0, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 191, 0, 0.45);
  color: var(--c284d8-gold);
}

/* ---------- 21. breakpoints ---------- */
/* literal 430 breakpoint: compact tuning for the 320-430px canvas */
@media (max-width: 430px) {
  .c284d8-hero h1 { font-size: 19.5px; }
  .c284d8-sec-head h2 { font-size: 16.5px; }
  .c284d8-lead { font-size: 13px; }
  .c284d8-grid { gap: 9px 6px; }
  .c284d8-gname { font-size: 10.5px; }
  .c284d8-btn { padding: 8px 10px; font-size: 12.5px; }
  .c284d8-brandname { font-size: 19px; letter-spacing: 1.1px; }
  .c284d8-cmp-row { grid-template-columns: 1fr 1.1fr 1.4fr; }
  .c284d8-cmp-row > div { font-size: 11px; padding: 8px 7px; }
  .c284d8-dir { grid-template-columns: repeat(2, 1fr); }
  .c284d8-meters { gap: 6px; }
  .c284d8-meter span { font-size: 10px; }
}

/* wider phones inside the canvas get a 5th game column */
@media (min-width: 400px) {
  .c284d8-grid { grid-template-columns: repeat(5, 1fr); }
  .c284d8-cmp-row > div { font-size: 11.8px; }
}

/* desktop: keep the centered phone canvas, add frame emphasis */
@media (min-width: 480px) {
  .c284d8-shell {
    box-shadow: 0 0 0 1px rgba(245, 222, 179, 0.08), 0 18px 60px rgba(0, 0, 0, 0.55);
  }
  .c284d8-dir { grid-template-columns: repeat(3, 1fr); }
  .c284d8-duo { grid-template-columns: 1fr 1fr; }
}

/* hover-capable devices: gentle lift for floating game cards */
@media (hover: hover) {
  .c284d8-gcard:hover { transform: translateY(-2px); }
}

/* respect users who prefer fewer animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .c284d8-cs-track { transition: none; }
}

/* ---------- 22. help-page compositions ---------- */
.c284d8-help-hero {
  padding: 14px 13px 15px;
  border: 1px solid rgba(255, 191, 0, 0.42);
  border-radius: var(--c284d8-r-lg);
  background:
    linear-gradient(135deg, rgba(160, 82, 45, 0.38), rgba(45, 42, 39, 0.85)),
    radial-gradient(120% 140% at 100% 0, rgba(191, 54, 12, 0.34), transparent 60%);
  box-shadow: var(--c284d8-shadow-2);
}
.c284d8-help-hero h1 { font-size: 21px; margin: 10px 0 8px; }
.c284d8-help-hero p { color: var(--c284d8-sand-dim); font-size: 13.2px; }
.c284d8-help-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c284d8-gold-2);
  font-family: var(--c284d8-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.c284d8-help-mark svg { width: 14px; height: 14px; }
.c284d8-help-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.c284d8-help-actions .c284d8-btn { width: 100%; min-height: var(--c284d8-tap); }

.c284d8-faq-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 10px;
}
.c284d8-faq-index a {
  min-height: 44px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--c284d8-line);
  border-radius: var(--c284d8-r-sm);
  background: rgba(69, 63, 57, 0.5);
  color: var(--c284d8-sand);
  font-size: 11.5px;
  font-weight: 700;
}
.c284d8-faq-index a:hover { border-color: var(--c284d8-gold); text-decoration: none; }
.c284d8-faq-index svg { width: 15px; height: 15px; color: var(--c284d8-gold); flex: none; }

.c284d8-qstack { display: grid; gap: 8px; }
.c284d8-qitem {
  border: 1px solid var(--c284d8-line);
  border-left: 3px solid var(--c284d8-clay);
  border-radius: 4px var(--c284d8-r) var(--c284d8-r) 4px;
  background: linear-gradient(180deg, rgba(69, 63, 57, 0.62), rgba(35, 33, 31, 0.78));
  overflow: hidden;
}
.c284d8-qitem summary {
  position: relative;
  min-height: 48px;
  padding: 13px 34px 12px 12px;
  color: var(--c284d8-sand);
  font-family: var(--c284d8-head);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.c284d8-qitem summary::-webkit-details-marker { display: none; }
.c284d8-qitem summary::after {
  content: "+";
  position: absolute;
  right: 12px;
  top: 10px;
  color: var(--c284d8-gold);
  font-size: 20px;
  font-weight: 400;
}
.c284d8-qitem[open] summary::after { content: "-"; }
.c284d8-qanswer {
  padding: 0 12px 13px;
  border-top: 1px dashed rgba(245, 222, 179, 0.22);
  color: var(--c284d8-sand-dim);
  font-size: 12.5px;
}
.c284d8-qanswer p { margin-top: 10px; }
.c284d8-qanswer strong { color: var(--c284d8-sand); }

.c284d8-signal {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.c284d8-signal-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--c284d8-line);
  border-radius: var(--c284d8-r-sm);
  background: rgba(33, 31, 29, 0.48);
}
.c284d8-signal-row b {
  color: var(--c284d8-gold-2);
  font-family: var(--c284d8-head);
  font-size: 12px;
}
.c284d8-signal-row span { color: var(--c284d8-sand-dim); font-size: 12px; }
.c284d8-signal-row--stop { border-color: rgba(191, 54, 12, 0.72); }
.c284d8-signal-row--stop b { color: #ff9a6f; }
.c284d8-signal-row--go { border-color: rgba(154, 205, 106, 0.5); }
.c284d8-signal-row--go b { color: #b5e58a; }

.c284d8-route {
  display: grid;
  gap: 0;
  margin-top: 10px;
  counter-reset: c284d8-route;
}
.c284d8-route-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  min-height: 82px;
}
.c284d8-route-item::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 35px;
  bottom: -1px;
  width: 1px;
  background: var(--c284d8-line);
}
.c284d8-route-item:last-child::before { display: none; }
.c284d8-route-no {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 191, 0, 0.55);
  border-radius: 50%;
  background: var(--c284d8-panel);
  color: var(--c284d8-gold);
  font-family: var(--c284d8-head);
  font-weight: 700;
}
.c284d8-route-copy {
  padding: 2px 0 15px;
  color: var(--c284d8-sand-dim);
  font-size: 12.5px;
}
.c284d8-route-copy h3 { font-size: 13.5px; margin-bottom: 4px; }
.c284d8-route-copy p { margin: 0; }

.c284d8-issue-board { display: grid; gap: 7px; margin-top: 10px; }
.c284d8-issue {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 11px 12px;
  border-radius: var(--c284d8-r-sm);
  border: 1px solid var(--c284d8-line);
  background: rgba(69, 63, 57, 0.42);
}
.c284d8-issue b { color: var(--c284d8-sand); font-size: 12.5px; }
.c284d8-issue span { color: var(--c284d8-sand-dim); font-size: 12px; }
.c284d8-issue em { color: var(--c284d8-gold-2); font-style: normal; font-size: 11.5px; }

.c284d8-mistakes {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.c284d8-mistake {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--c284d8-line);
  border-radius: var(--c284d8-r);
  background: rgba(33, 31, 29, 0.5);
}
.c284d8-mistake > b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(191, 54, 12, 0.32);
  color: #ffad8b;
  font-family: var(--c284d8-head);
}
.c284d8-mistake h3 { font-size: 13px; margin-bottom: 3px; }
.c284d8-mistake p { color: var(--c284d8-sand-dim); font-size: 12px; margin: 0; }

.c284d8-terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}
.c284d8-term {
  padding: 10px;
  border-top: 2px solid var(--c284d8-clay);
  border-radius: 0 0 var(--c284d8-r-sm) var(--c284d8-r-sm);
  background: rgba(69, 63, 57, 0.45);
}
.c284d8-term b { display: block; color: var(--c284d8-gold-2); font-size: 12px; margin-bottom: 4px; }
.c284d8-term span { color: var(--c284d8-sand-dim); font-size: 11.5px; line-height: 1.45; }

.c284d8-relations {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.c284d8-relation {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--c284d8-line);
  border-radius: var(--c284d8-r-sm);
  background: linear-gradient(90deg, rgba(160, 82, 45, 0.2), rgba(33, 31, 29, 0.45));
}
.c284d8-relation svg { width: 18px; height: 18px; flex: none; color: var(--c284d8-gold); }
.c284d8-relation p { margin: 0; color: var(--c284d8-sand-dim); font-size: 12px; }
.c284d8-relation strong { color: var(--c284d8-sand); }

.c284d8-help-note {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px dashed rgba(255, 191, 0, 0.55);
  border-radius: var(--c284d8-r);
  color: var(--c284d8-sand-dim);
  font-size: 12px;
}
.c284d8-help-note strong { color: var(--c284d8-gold-2); }

@media (max-width: 350px) {
  .c284d8-help-actions { grid-template-columns: 1fr; }
  .c284d8-faq-index { grid-template-columns: 1fr; }
  .c284d8-terms { grid-template-columns: 1fr; }
  .c284d8-signal-row { grid-template-columns: 74px 1fr; gap: 7px; }
}
