/* ==========================================================================
   Betfred mobile-canvas stylesheet - betfred.homes
   Scope  : single 320-430px phone canvas, centered on wide screens
   Prefix : frame3ee3e-
   Palette: #1B263B base / #F5DEB3 + #C0C0C0 ink / #66CDAA #008000 #7CFC00 accents
   Voice  : stroke-led restrained rounding, high-contrast display type
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --frame3ee3e-bg: #1b263b;
  --frame3ee3e-bg-deep: #131c2e;
  --frame3ee3e-bg-raise: #22314e;
  --frame3ee3e-line: #3d4e71;
  --frame3ee3e-line-soft: #2c3a57;
  --frame3ee3e-wheat: #f5deb3;
  --frame3ee3e-silver: #c0c0c0;
  --frame3ee3e-muted: #8e9ab1;
  --frame3ee3e-aqua: #66cdaa;
  --frame3ee3e-green: #008000;
  --frame3ee3e-lawn: #7cfc00;
  --frame3ee3e-ink-dark: #10203a;
  --frame3ee3e-radius: 4px;
  --frame3ee3e-radius-lg: 6px;
  --frame3ee3e-display: "Arial Black", "Segoe UI Black", "Franklin Gothic Medium", Arial, sans-serif;
  --frame3ee3e-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --frame3ee3e-bar-h: 58px;
  --frame3ee3e-dock-h: 62px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0 auto;
  max-width: 430px;
  min-height: 100vh;
  background: var(--frame3ee3e-bg);
  color: var(--frame3ee3e-silver);
  font-family: var(--frame3ee3e-body);
  font-size: 14px;
  line-height: 1.62;
  border-left: 1px solid var(--frame3ee3e-line-soft);
  border-right: 1px solid var(--frame3ee3e-line-soft);
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.45);
}

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

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

a { color: var(--frame3ee3e-aqua); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--frame3ee3e-aqua);
  outline-offset: 2px;
}

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

/* ---------- Fixed tab-style top bar ---------- */
.frame3ee3e-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, #222e49 0%, var(--frame3ee3e-bg) 100%);
  border-bottom: 1px solid var(--frame3ee3e-line);
}

.frame3ee3e-barrow {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: var(--frame3ee3e-bar-h);
  padding: 9px 10px 8px;
}

/* Brand rendered as a raised tab clipped onto the bar edge */
.frame3ee3e-brandtab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 6px;
  background: var(--frame3ee3e-bg-raise);
  border: 1px solid var(--frame3ee3e-line);
  border-bottom: none;
  border-radius: var(--frame3ee3e-radius-lg) var(--frame3ee3e-radius-lg) 0 0;
  margin-bottom: -9px;
  position: relative;
  top: -3px;
}

.frame3ee3e-brandimg {
  height: 30px;
  width: 30px;
  object-fit: contain;
  border-radius: var(--frame3ee3e-radius);
  border: 1px solid var(--frame3ee3e-line);
  background: var(--frame3ee3e-bg-deep);
}

.frame3ee3e-brandname {
  font-family: var(--frame3ee3e-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--frame3ee3e-wheat);
  text-transform: lowercase;
}

.frame3ee3e-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* Lightly rounded text CTAs */
.frame3ee3e-act {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--frame3ee3e-line);
  color: var(--frame3ee3e-silver);
  background: var(--frame3ee3e-bg-deep);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.frame3ee3e-act:active { transform: translateY(-2px); }

.frame3ee3e-act-register {
  border-color: var(--frame3ee3e-lawn);
  color: var(--frame3ee3e-ink-dark);
  background: var(--frame3ee3e-lawn);
}

.frame3ee3e-act-login { border-color: var(--frame3ee3e-wheat); color: var(--frame3ee3e-wheat); }

.frame3ee3e-menubtn {
  min-height: 34px;
  width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--frame3ee3e-line);
  border-radius: 5px;
  background: var(--frame3ee3e-bg-deep);
  color: var(--frame3ee3e-silver);
  transition: border-color 0.15s ease;
}

.frame3ee3e-menubtn svg { width: 18px; height: 18px; }

.frame3ee3e-menubtn-on {
  border-color: var(--frame3ee3e-aqua);
  color: var(--frame3ee3e-aqua);
}

/* ---------- Layered dropdown menu ---------- */
.frame3ee3e-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--frame3ee3e-bg-deep);
  border-bottom: 1px solid var(--frame3ee3e-line);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  animation: frame3ee3e-drawer-drop 0.18s ease-out;
}

@keyframes frame3ee3e-drawer-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.frame3ee3e-drawer[hidden] { display: none; }

.frame3ee3e-drawerlayer {
  padding: 10px 12px 12px;
  border-left: 3px solid var(--frame3ee3e-aqua);
  margin: 10px 12px 0;
  background: rgba(34, 49, 78, 0.45);
  border-radius: 0 var(--frame3ee3e-radius) var(--frame3ee3e-radius) 0;
}

.frame3ee3e-drawerlayer:first-child { margin-top: 12px; }

.frame3ee3e-layercap {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frame3ee3e-aqua);
}

.frame3ee3e-drawerlayer a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--frame3ee3e-line-soft);
  color: var(--frame3ee3e-silver);
  font-size: 13.5px;
}

.frame3ee3e-drawerlayer a:last-child { border-bottom: none; }

.frame3ee3e-drawerlayer a::before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid var(--frame3ee3e-aqua);
  border-radius: 1px;
  flex: none;
}

.frame3ee3e-drawerlayer a:hover { color: var(--frame3ee3e-wheat); text-decoration: none; }

/* ---------- Main column ---------- */
.frame3ee3e-main {
  padding: calc(var(--frame3ee3e-bar-h) + 14px) 12px
           calc(var(--frame3ee3e-dock-h) + env(safe-area-inset-bottom, 0px) + 30px);
}

.frame3ee3e-section { margin: 0 0 26px; }

/* ---------- Hero ---------- */
.frame3ee3e-hero { padding-top: 4px; }

.frame3ee3e-kicker {
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--frame3ee3e-aqua);
}

.frame3ee3e-hero h1,
.frame3ee3e-h1 {
  margin: 0 0 10px;
  font-family: var(--frame3ee3e-display);
  font-weight: 900;
  font-size: 27px;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--frame3ee3e-wheat);
}

.frame3ee3e-lede {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--frame3ee3e-silver);
}

.frame3ee3e-lede strong { color: var(--frame3ee3e-wheat); font-weight: 700; }

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

.frame3ee3e-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--frame3ee3e-line);
  border-radius: 3px;
  background: rgba(19, 28, 46, 0.6);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--frame3ee3e-silver);
}

.frame3ee3e-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--frame3ee3e-lawn);
}

/* CTA pair */
.frame3ee3e-ctagroup {
  display: flex;
  gap: 8px;
  margin: 0 0 6px;
}

.frame3ee3e-ctagroup .frame3ee3e-cta { flex: 1 1 0; }

.frame3ee3e-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 5px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.frame3ee3e-cta-primary {
  background: var(--frame3ee3e-lawn);
  color: var(--frame3ee3e-ink-dark);
  border: 1px solid var(--frame3ee3e-lawn);
}

.frame3ee3e-cta-ghost {
  background: transparent;
  color: var(--frame3ee3e-wheat);
  border: 1px solid var(--frame3ee3e-wheat);
}

.frame3ee3e-cta:active { transform: translateY(-2px); }

.frame3ee3e-cta svg { width: 15px; height: 15px; flex: none; }

/* ---------- Banner carousel ---------- */
.frame3ee3e-caro {
  position: relative;
  margin: 4px 0 26px;
  border: 1px solid var(--frame3ee3e-line);
  border-radius: var(--frame3ee3e-radius-lg);
  overflow: hidden;
  background: var(--frame3ee3e-bg-deep);
}

.frame3ee3e-carotrack {
  display: flex;
  transition: transform 0.45s ease;
}

.frame3ee3e-cslide {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  padding: 0;
}

.frame3ee3e-cslide img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

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

.frame3ee3e-dot {
  width: 22px;
  height: 8px;
  border-radius: 2px;
  border: 1px solid var(--frame3ee3e-wheat);
  background: transparent;
  padding: 0;
}

.frame3ee3e-dot-on {
  background: var(--frame3ee3e-wheat);
  border-color: var(--frame3ee3e-wheat);
}

/* ---------- Game shelves ---------- */
.frame3ee3e-shelfhead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--frame3ee3e-line-soft);
}

.frame3ee3e-h2 {
  margin: 0;
  font-family: var(--frame3ee3e-display);
  font-weight: 900;
  font-size: 17.5px;
  line-height: 1.2;
  color: var(--frame3ee3e-wheat);
}

.frame3ee3e-shelfhead .frame3ee3e-h2 { flex: 1 1 auto; }

.frame3ee3e-shelfcount {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frame3ee3e-ink-dark);
  background: var(--frame3ee3e-aqua);
  border-radius: 3px;
  padding: 3px 8px;
}

.frame3ee3e-shelfnote {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--frame3ee3e-silver);
}

.frame3ee3e-shelfnote a { border-bottom: 1px dashed rgba(102, 205, 170, 0.6); }

/* Pure image card, short name below */
.frame3ee3e-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.frame3ee3e-gcard {
  display: block;
  width: 100%;
  text-align: center;
  padding: 4px;
  border: 1px solid var(--frame3ee3e-line-soft);
  border-radius: var(--frame3ee3e-radius);
  background: var(--frame3ee3e-bg-deep);
  transition: border-color 0.15s ease;
}

.frame3ee3e-gcard:active { border-color: var(--frame3ee3e-aqua); }

.frame3ee3e-gthumbox { display: block; }

.frame3ee3e-gimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
}

.frame3ee3e-gname {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--frame3ee3e-silver);
  min-height: 28px;
}

/* ---------- Content blocks (shared frame) ---------- */
.frame3ee3e-block {
  border: 1px solid var(--frame3ee3e-line-soft);
  border-left: 3px solid var(--frame3ee3e-aqua);
  border-radius: 0 var(--frame3ee3e-radius) var(--frame3ee3e-radius) 0;
  padding: 14px 12px 15px;
  margin: 0 0 22px;
  background: rgba(19, 28, 46, 0.5);
}

.frame3ee3e-block-frame3ee3e-tint-wheat { border-left-color: var(--frame3ee3e-wheat); }
.frame3ee3e-block-frame3ee3e-tint-lawn { border-left-color: var(--frame3ee3e-lawn); }
.frame3ee3e-block-frame3ee3e-tint-green { border-left-color: var(--frame3ee3e-green); }

.frame3ee3e-block .frame3ee3e-h2 { font-size: 16.5px; margin-bottom: 8px; }

.frame3ee3e-h3 {
  margin: 14px 0 6px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--frame3ee3e-wheat);
}

.frame3ee3e-p {
  margin: 0 0 10px;
  font-size: 13.5px;
}

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

/* Fact-first answer strip inside a block */
.frame3ee3e-ansfirst {
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px dashed var(--frame3ee3e-aqua);
  border-radius: var(--frame3ee3e-radius);
  font-size: 13px;
  color: var(--frame3ee3e-wheat);
}

/* Habit / step rows */
.frame3ee3e-rowlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.frame3ee3e-rowlist li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--frame3ee3e-line-soft);
}

.frame3ee3e-rowlist li:last-child { border-bottom: none; padding-bottom: 2px; }

.frame3ee3e-rowmark {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--frame3ee3e-aqua);
  border-radius: 3px;
  color: var(--frame3ee3e-aqua);
  font-size: 11px;
  font-weight: 800;
}

.frame3ee3e-rowtext { font-size: 13px; }

.frame3ee3e-rowtext strong {
  display: block;
  color: var(--frame3ee3e-wheat);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

/* Numbered trick cards */
.frame3ee3e-trick {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--frame3ee3e-line-soft);
}

.frame3ee3e-trick:last-child { border-bottom: none; padding-bottom: 2px; }

.frame3ee3e-tricknum {
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--frame3ee3e-wheat);
  border-radius: var(--frame3ee3e-radius);
  font-family: var(--frame3ee3e-display);
  font-weight: 900;
  font-size: 14px;
  color: var(--frame3ee3e-wheat);
}

.frame3ee3e-tricktext { font-size: 13px; }

.frame3ee3e-tricktext strong {
  display: block;
  color: var(--frame3ee3e-wheat);
  font-size: 12.5px;
}

/* Compact criteria grid */
.frame3ee3e-criteria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 4px 0 12px;
}

.frame3ee3e-crit {
  border: 1px solid var(--frame3ee3e-line-soft);
  border-radius: var(--frame3ee3e-radius);
  padding: 8px 9px;
  background: var(--frame3ee3e-bg-deep);
}

.frame3ee3e-crit strong {
  display: block;
  margin-bottom: 3px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--frame3ee3e-aqua);
}

.frame3ee3e-crit span { font-size: 12px; line-height: 1.45; display: block; }

/* Pros and watch-outs panels */
.frame3ee3e-pair { display: grid; gap: 10px; margin: 4px 0 10px; }

.frame3ee3e-panel {
  border: 1px solid var(--frame3ee3e-line-soft);
  border-radius: var(--frame3ee3e-radius);
  padding: 10px 11px;
  background: var(--frame3ee3e-bg-deep);
}

.frame3ee3e-panel h3 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.frame3ee3e-panel-plus h3 { color: var(--frame3ee3e-lawn); border-left-color: var(--frame3ee3e-lawn); }
.frame3ee3e-panel-watch h3 { color: var(--frame3ee3e-wheat); }

.frame3ee3e-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.frame3ee3e-panel li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: 12.5px;
}

.frame3ee3e-panel-plus li::before,
.frame3ee3e-panel-watch li::before {
  position: absolute;
  left: 0;
  top: 4px;
  font-weight: 900;
  font-size: 12px;
}

.frame3ee3e-panel-plus li::before { content: "+"; color: var(--frame3ee3e-lawn); }
.frame3ee3e-panel-watch li::before { content: "!"; color: var(--frame3ee3e-wheat); }

/* Requirement checklist chips */
.frame3ee3e-checkgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 4px 0 12px;
}

.frame3ee3e-check {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-height: 44px;
  padding: 8px 9px;
  border: 1px solid var(--frame3ee3e-line-soft);
  border-radius: var(--frame3ee3e-radius);
  background: var(--frame3ee3e-bg-deep);
  font-size: 12px;
  line-height: 1.4;
}

.frame3ee3e-check svg {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--frame3ee3e-lawn);
}

/* Q&A strip */
.frame3ee3e-qa {
  margin: 0;
  padding: 0;
  list-style: none;
}

.frame3ee3e-qa li {
  padding: 10px 0;
  border-bottom: 1px solid var(--frame3ee3e-line-soft);
}

.frame3ee3e-qa li:last-child { border-bottom: none; }

.frame3ee3e-q {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--frame3ee3e-wheat);
}

.frame3ee3e-q::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-right: 7px;
  border: 1px solid var(--frame3ee3e-wheat);
  border-radius: 3px;
  font-size: 10px;
  vertical-align: 2px;
}

.frame3ee3e-a { margin: 0; font-size: 12.8px; }

/* ---------- Homepage extended footer ---------- */
.frame3ee3e-ext {
  margin-top: 26px;
  padding: 14px 12px 16px;
  border: 1px solid var(--frame3ee3e-line-soft);
  border-radius: var(--frame3ee3e-radius);
  background: var(--frame3ee3e-bg-deep);
}

.frame3ee3e-ext .frame3ee3e-h2 { font-size: 15.5px; }

.frame3ee3e-extbrand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 14px;
}

.frame3ee3e-extbrand img {
  flex: none;
  width: 34px;
  height: 34px;
  object-fit: contain;
  border: 1px solid var(--frame3ee3e-line);
  border-radius: var(--frame3ee3e-radius);
  background: var(--frame3ee3e-bg);
}

.frame3ee3e-extbrand p { margin: 0; font-size: 12.5px; }

.frame3ee3e-extcap {
  margin: 14px 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frame3ee3e-aqua);
}

/* Five promo entries: one wide lead + 2x2 group */
.frame3ee3e-promolead { display: block; width: 100%; }

.frame3ee3e-promogrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.frame3ee3e-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid var(--frame3ee3e-wheat);
  border-radius: 5px;
  color: var(--frame3ee3e-wheat);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

.frame3ee3e-promo svg { width: 14px; height: 14px; flex: none; }

.frame3ee3e-promo:active { transform: translateY(-2px); }

.frame3ee3e-extdir {
  margin: 0;
  padding: 0;
  list-style: none;
}

.frame3ee3e-extdir li {
  border-bottom: 1px solid var(--frame3ee3e-line-soft);
}

.frame3ee3e-extdir li:last-child { border-bottom: none; }

.frame3ee3e-extdir a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 8px 2px;
  font-size: 13px;
  color: var(--frame3ee3e-aqua);
}

.frame3ee3e-extdir a::after {
  content: "\203A";
  margin-left: auto;
  color: var(--frame3ee3e-muted);
  font-weight: 900;
}

.frame3ee3e-extdir span { color: var(--frame3ee3e-muted); font-size: 11.5px; }

.frame3ee3e-extnote {
  margin: 14px 0 0;
  padding: 10px 11px;
  border: 1px dashed var(--frame3ee3e-line);
  border-radius: var(--frame3ee3e-radius);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--frame3ee3e-muted);
}

/* ---------- Common footer ---------- */
.frame3ee3e-footer {
  padding: 16px 12px 10px;
  border-top: 1px solid var(--frame3ee3e-line-soft);
  text-align: center;
  font-size: 11.5px;
  color: var(--frame3ee3e-muted);
}

.frame3ee3e-footer p { margin: 0; }

/* ---------- Compact icon dock (bottom nav) ---------- */
.frame3ee3e-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: flex;
  background: rgba(19, 28, 46, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--frame3ee3e-line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.frame3ee3e-dockitem {
  flex: 1 1 0;
  min-height: var(--frame3ee3e-dock-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 2px;
  color: var(--frame3ee3e-silver);
  border-radius: 8px;
  margin: 5px 3px 0;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.frame3ee3e-dockitem svg {
  width: 21px;
  height: 21px;
}

.frame3ee3e-dockitem span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Contrast-inversion active state + short vertical lift on press */
.frame3ee3e-dockitem-on {
  background: var(--frame3ee3e-wheat);
  color: var(--frame3ee3e-ink-dark);
}

.frame3ee3e-dockitem:active { transform: translateY(-3px); }

.frame3ee3e-dockitem:hover { text-decoration: none; }

/* ---------- Wide-screen behaviour: keep the phone canvas ---------- */
@media (min-width: 430px) {
  .frame3ee3e-grid { grid-template-columns: repeat(5, 1fr); gap: 12px 8px; }
  .frame3ee3e-main { padding-left: 14px; padding-right: 14px; }
  .frame3ee3e-hero h1 { font-size: 29px; }
  .frame3ee3e-pair { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 359px) {
  .frame3ee3e-ctagroup { flex-direction: column; }
  .frame3ee3e-promogrid { grid-template-columns: 1fr; }
}

/* ---------- Motion budget: icon-level micro changes only ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .frame3ee3e-carotrack { transition: none; }
}
