/* ============================================================
   Bus Traffic Rush — Claymorphism game landing
   Layout: road journey + isometric parking grid + reward modal
   ============================================================ */

:root {
  --btr-yellow: #ffc107;
  --btr-yellow-dark: #ff9800;
  --btr-blue: #42a5f5;
  --btr-blue-dark: #1565c0;
  --btr-red: #ef5350;
  --btr-red-dark: #c62828;
  --btr-green: #66bb6a;
  --btr-green-bg: #e8f5e9;
  --btr-cream: #fff8e1;
  --btr-purple: #ab47bc;
  --btr-cyan: #26c6da;
  --btr-text: #1a237e;
  --btr-text-muted: #455a64;
  --btr-white: #ffffff;
  --btr-shadow: 0 8px 0 rgba(0, 0, 0, 0.08), 0 16px 32px rgba(26, 35, 126, 0.12);
  --btr-shadow-sm: 0 4px 0 rgba(0, 0, 0, 0.06), 0 8px 16px rgba(26, 35, 126, 0.08);
  --btr-radius: 24px;
  --btr-radius-lg: 40px;
  --btr-border: 3px solid rgba(26, 35, 126, 0.12);
  --btr-font-display: "Fredoka", system-ui, sans-serif;
  --btr-font-body: "Quicksand", system-ui, sans-serif;
  --btr-header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--btr-font-body);
  color: var(--btr-text);
  background: linear-gradient(180deg, var(--btr-green-bg) 0%, var(--btr-cream) 45%, #e3f2fd 100%);
  overflow-x: hidden;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

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

/* Skip link */
.btr-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--btr-yellow);
  border-radius: 12px;
  font-weight: 700;
}
.btr-skip:focus { left: 1rem; top: 1rem; }

/* ---- Scroll progress rail (game level bar) ---- */
.btr-progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12%;
  pointer-events: none;
}

.btr-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--btr-green), var(--btr-yellow));
  transition: width 80ms linear;
  border-radius: 0 4px 4px 0;
}

.btr-milestone {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--btr-white);
  border: 2px solid #cfd8dc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--btr-text-muted);
  transform: translateY(8px);
  box-shadow: var(--btr-shadow-sm);
}

.btr-milestone svg { width: 12px; height: 12px; }

.btr-milestone--done {
  background: var(--btr-green);
  border-color: #388e3c;
  color: var(--btr-white);
}

.btr-milestone--crown {
  background: linear-gradient(135deg, var(--btr-yellow), var(--btr-yellow-dark));
  border-color: var(--btr-yellow-dark);
  color: var(--btr-text);
}

/* ---- Decorative road background ---- */
.btr-road-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.btr-road-path {
  fill: none;
  stroke: #78909c;
  stroke-width: 48;
  stroke-linecap: round;
}

/* ---- HUD Header ---- */
.btr-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  width: min(1100px, calc(100% - 1.5rem));
  transition: top 200ms ease, transform 200ms ease;
}

.btr-header.is-scrolled {
  top: 10px;
}

.btr-hud {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: var(--btr-border);
  border-radius: 999px;
  box-shadow: var(--btr-shadow);
}

.btr-hud__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btr-hud__brand img {
  border-radius: 12px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}

.btr-hud__title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.btr-bubble {
  font-family: var(--btr-font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.1rem 0.5rem;
  border-radius: 8px;
  display: inline-block;
  width: fit-content;
}

.btr-bubble--y {
  background: linear-gradient(180deg, #ffe082, var(--btr-yellow));
  color: var(--btr-blue-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.btr-bubble--b {
  background: linear-gradient(180deg, #90caf9, var(--btr-blue));
  color: var(--btr-white);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.btr-hud__links {
  display: flex;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  gap: 0.25rem;
}

.btr-hud__links a {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--btr-text-muted);
  transition: background 200ms ease, color 200ms ease;
}

.btr-hud__links a:hover {
  background: var(--btr-green-bg);
  color: var(--btr-text);
}

.btr-hud__cta { flex-shrink: 0; }

.btr-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border-radius: 12px;
  transition: background 200ms ease;
}

.btr-burger span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--btr-text);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.btr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.btr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.btr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile drawer */
.btr-drawer {
  position: fixed;
  top: calc(var(--btr-header-h) + 20px);
  right: 1rem;
  z-index: 140;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  min-width: 220px;
  background: var(--btr-white);
  border: var(--btr-border);
  border-radius: var(--btr-radius);
  box-shadow: var(--btr-shadow);
}

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

.btr-drawer a {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  transition: background 200ms ease;
}

.btr-drawer a:hover { background: var(--btr-green-bg); }

/* ---- Buttons (clay / glossy) ---- */
.btr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 3px solid rgba(0, 0, 0, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  cursor: pointer;
}

.btr-btn svg, .btr-btn .btr-play-ico { width: 20px; height: 20px; flex-shrink: 0; }

.btr-btn--gold {
  background: linear-gradient(180deg, #ffe082 0%, var(--btr-yellow) 45%, var(--btr-yellow-dark) 100%);
  color: var(--btr-text);
  box-shadow: 0 4px 0 #e65100, var(--btr-shadow-sm);
}

.btr-btn--gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btr-btn--gold:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #e65100;
}

.btr-btn--store {
  background: var(--btr-white);
  color: var(--btr-text);
  box-shadow: var(--btr-shadow-sm);
  padding: 0.75rem 1.5rem;
}

.btr-btn--store span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btr-btn--store small {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--btr-text-muted);
}

.btr-btn--store:hover {
  transform: translateY(-2px);
  box-shadow: var(--btr-shadow);
}

.btr-btn--outline {
  background: transparent;
  border-color: rgba(26, 35, 126, 0.2);
}

.btr-btn--xl {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-family: var(--btr-font-display);
}

.btr-btn--block { width: 100%; }

/* ---- Hero ---- */
.btr-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: calc(var(--btr-header-h) + 5rem) 2rem 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.btr-hero__sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.btr-sunburst {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60vmin;
  height: 60vmin;
  background: radial-gradient(circle, rgba(66, 165, 245, 0.25) 0%, transparent 65%);
  border-radius: 50%;
}

.btr-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  align-items: center;
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 2.5rem 0;
}

.btr-hero__copy {
  padding: 2rem 0;
}

.btr-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(180deg, var(--btr-green), #43a047);
  color: var(--btr-white);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 3px 0 #2e7d32;
  margin-bottom: 1rem;
}

.btr-ribbon svg { width: 16px; height: 16px; }

.btr-ribbon--red {
  background: linear-gradient(180deg, #ef5350, var(--btr-red-dark));
  box-shadow: 0 3px 0 #b71c1c;
}

.btr-logo-text {
  margin: 0 0 0.75rem;
  line-height: 1;
}

.btr-logo-line {
  display: block;
  font-family: var(--btr-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 2px var(--btr-blue-dark);
  paint-order: stroke fill;
}

.btr-logo-line--y {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  color: var(--btr-yellow);
  text-shadow: 0 4px 0 #f57f17, 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btr-logo-line--b {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  color: var(--btr-blue);
  text-shadow: 0 3px 0 #0d47a1, 0 6px 12px rgba(0, 0, 0, 0.12);
  margin-top: -0.15em;
}

.btr-hero__slogan {
  font-family: var(--btr-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--btr-red-dark);
  margin: 0 0 0.75rem;
}

.btr-hero__lead {
  color: var(--btr-text-muted);
  font-size: 1.05rem;
  max-width: 32rem;
  margin: 0 0 2rem;
}

.btr-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Phone stack — two screenshots */
.btr-hero__phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 360px;
  padding: 2rem 1rem;
}

.btr-phone {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--btr-shadow);
  border: 3px solid var(--btr-white);
  background: var(--btr-white);
  transition: transform 300ms ease;
}

.btr-phone img {
  width: auto;
  height: auto;
  max-height: 340px;
  object-fit: contain;
}

.btr-phone--back {
  transform: rotate(-7deg) translateX(28px) scale(0.9);
  z-index: 1;
}

.btr-phone--front {
  z-index: 2;
  transform: translateY(-20px);
}

/* Perspective road strip */
.btr-hero__road {
  width: min(900px, 90%);
  height: 120px;
  margin-top: 3rem;
  perspective: 400px;
}

.btr-road-lanes {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #546e7a 0%, #37474f 100%);
  transform: rotateX(55deg);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btr-road-lanes::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 48px,
    #ffeb3b 48px,
    #ffeb3b 56px,
    transparent 56px,
    transparent 104px
  );
  opacity: 0.8;
}

/* ---- Features: isometric parking lot ---- */
.btr-features {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.btr-section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.btr-section-title {
  font-family: var(--btr-font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0.75rem 0 0.5rem;
  color: var(--btr-text);
}

.btr-section-sub {
  color: var(--btr-text-muted);
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.05rem;
}

.btr-parking-lot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.btr-slot {
  background: var(--btr-white);
  border: var(--btr-border);
  border-radius: var(--btr-radius);
  padding: 1.25rem;
  box-shadow: var(--btr-shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
  cursor: default;
}

.btr-slot:hover {
  transform: translateY(-4px);
  box-shadow: var(--btr-shadow);
}

.btr-slot--hub {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, var(--btr-white) 0%, #fff3e0 100%);
  border-color: var(--btr-yellow);
}

.btr-slot--n { grid-column: 2; grid-row: 3; }
.btr-slot--ne { grid-column: 3; grid-row: 2; }
.btr-slot--e { grid-column: 3; grid-row: 1; }
.btr-slot--se { grid-column: 1; grid-row: 2; }

.btr-slot__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.btr-slot__icon svg { width: 28px; height: 28px; color: var(--btr-white); }

.btr-slot__icon--hub {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
  box-shadow: var(--btr-shadow-sm);
}

.btr-slot__icon--hub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btr-slot__icon--cyan { background: linear-gradient(135deg, #4dd0e1, var(--btr-cyan)); }
.btr-slot__icon--purple { background: linear-gradient(135deg, #ce93d8, var(--btr-purple)); }
.btr-slot__icon--yellow { background: linear-gradient(135deg, #ffe082, var(--btr-yellow)); }
.btr-slot__icon--green { background: linear-gradient(135deg, #a5d6a7, var(--btr-green)); }

.btr-slot h3 {
  font-family: var(--btr-font-display);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.btr-slot p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--btr-text-muted);
  line-height: 1.5;
}

/* Screenshot gallery — compact showcase */
.btr-screens-wrap {
  margin-top: 2rem;
  padding: 1.75rem 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  background: var(--btr-white);
  border: var(--btr-border);
  border-radius: var(--btr-radius-lg);
  box-shadow: var(--btr-shadow-sm);
}

.btr-screens-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.btr-screens-title {
  font-family: var(--btr-font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin: 0.75rem 0 0.35rem;
  color: var(--btr-text);
}

.btr-screens-sub {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--btr-text-muted);
  font-size: 0.875rem;
}

.btr-screens {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.btr-screens__phones {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.btr-shot {
  margin: 0;
  flex: 0 1 150px;
  max-width: 168px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btr-shot__frame {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 18px;
  overflow: hidden;
  background: #f5f5f5;
  border: 3px solid var(--btr-white);
  box-shadow: var(--btr-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btr-shot__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btr-shot--wide {
  width: 100%;
  max-width: 420px;
}

.btr-shot__frame--wide {
  aspect-ratio: unset;
  height: 140px;
  width: 100%;
  border-radius: 16px;
}

.btr-shot__frame--wide img {
  object-fit: contain;
}

.btr-shot__caption {
  font-family: var(--btr-font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: var(--btr-text-muted);
}

.btr-shot--wide .btr-shot__caption {
  padding-top: 0;
}

/* ---- Download: reward modal ---- */
.btr-download {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem 6rem;
  display: flex;
  justify-content: center;
}

.btr-reward-modal {
  position: relative;
  width: min(440px, 100%);
  border-radius: var(--btr-radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 0 var(--btr-red-dark), 0 24px 48px rgba(198, 40, 40, 0.25);
  border: 4px solid var(--btr-red-dark);
}

.btr-reward-modal__crown {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  background: linear-gradient(180deg, #ffe082, var(--btr-yellow));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--btr-yellow-dark);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btr-reward-modal__crown svg { width: 24px; height: 24px; color: var(--btr-text); }

.btr-reward-modal__ribbon {
  background: linear-gradient(180deg, #ef5350, var(--btr-red-dark));
  padding: 1.25rem 1.5rem 0.75rem;
  text-align: center;
}

.btr-reward-modal__ribbon span {
  font-family: var(--btr-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--btr-white);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.btr-reward-modal__body {
  background: var(--btr-white);
  padding: 1.5rem 1.75rem;
  text-align: center;
}

.btr-reward-modal__body h2 {
  font-family: var(--btr-font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.btr-reward-modal__body p {
  color: var(--btr-text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.btr-reward-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.btr-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.btr-stat__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btr-stat__icon svg { width: 22px; height: 22px; }

.btr-stat__icon--cash {
  background: linear-gradient(135deg, #a5d6a7, var(--btr-green));
  color: var(--btr-white);
}

.btr-stat__icon--gem {
  background: linear-gradient(135deg, #ce93d8, var(--btr-purple));
  color: var(--btr-white);
}

.btr-stat__num {
  font-family: var(--btr-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--btr-red-dark);
}

.btr-stat__label {
  font-size: 0.75rem;
  color: var(--btr-text-muted);
  font-weight: 600;
}

.btr-reward-modal__footer {
  background: linear-gradient(180deg, #ef5350, var(--btr-red-dark));
  padding: 1.25rem 1.75rem 1.5rem;
  text-align: center;
}

.btr-reward-modal__hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ---- Footer ---- */
.btr-footer {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.7);
  border-top: var(--btr-border);
  padding: 2rem 1.5rem;
}

.btr-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.btr-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--btr-font-display);
  font-weight: 700;
  transition: opacity 200ms ease;
}

.btr-footer__brand:hover { opacity: 0.8; }

.btr-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.btr-footer__links a {
  font-size: 0.9rem;
  color: var(--btr-text-muted);
  font-weight: 600;
  transition: color 200ms ease;
}

.btr-footer__links a:hover { color: var(--btr-blue-dark); }

.btr-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--btr-text-muted);
}

/* ---- Modal ---- */
.btr-modal[hidden] { display: none; }

.btr-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.btr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 126, 0.45);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.btr-modal__card {
  position: relative;
  background: var(--btr-white);
  border-radius: var(--btr-radius-lg);
  padding: 2rem 1.75rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--btr-shadow);
  border: var(--btr-border);
  animation: btr-pop 250ms ease-out;
}

@keyframes btr-pop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.btr-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--btr-green-bg);
  transition: background 200ms ease;
  cursor: pointer;
}

.btr-modal__close:hover { background: #c8e6c9; }
.btr-modal__close svg { width: 18px; height: 18px; }

.btr-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #ffe082, var(--btr-yellow));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 var(--btr-yellow-dark);
}

.btr-modal__icon svg { width: 32px; height: 32px; color: var(--btr-text); }

.btr-modal__card h3 {
  font-family: var(--btr-font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.btr-modal__card p {
  color: var(--btr-text-muted);
  margin: 0 0 1.25rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .btr-hero {
    padding: calc(var(--btr-header-h) + 4rem) 1.75rem 5rem;
  }

  .btr-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    padding: 2rem 0;
  }

  .btr-hero__copy { padding: 1.5rem 0; }
  .btr-hero__lead { margin-left: auto; margin-right: auto; }
  .btr-hero__cta { justify-content: center; }

  .btr-screens-wrap {
    padding: 1.5rem 1.25rem;
    max-width: 100%;
  }

  .btr-screens__phones {
    gap: 0.75rem;
  }

  .btr-shot {
    flex: 0 1 130px;
    max-width: 140px;
  }

  .btr-shot__frame--wide {
    height: 120px;
  }

  .btr-parking-lot {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .btr-slot--hub { grid-column: 1 / -1; grid-row: auto; }
  .btr-slot--n { grid-column: 1; grid-row: auto; }
  .btr-slot--ne { grid-column: 2; grid-row: auto; }
  .btr-slot--e { grid-column: 1; grid-row: auto; }
  .btr-slot--se { grid-column: 2; grid-row: auto; }
}

@media (max-width: 768px) {
  .btr-hud__links { display: none; }
  .btr-hud__cta { display: none; }
  .btr-burger { display: flex; }

  .btr-progress-rail { padding: 0 8%; }

  .btr-hero__phones {
    min-height: 300px;
    padding: 1.5rem 0.75rem;
  }

  .btr-phone--back {
    transform: rotate(-5deg) translateX(12px) scale(0.88);
  }

  .btr-phone--front {
    transform: translateY(-10px);
  }

  .btr-phone img {
    max-height: 280px;
  }

  .btr-screens-wrap {
    padding: 1.25rem 1rem;
  }

  .btr-screens__phones {
    max-width: 100%;
  }

  .btr-shot {
    flex: 0 1 110px;
    max-width: 120px;
  }

  .btr-shot__frame--wide {
    height: 100px;
  }

  .btr-parking-lot {
    grid-template-columns: 1fr;
  }

  .btr-slot--hub,
  .btr-slot--n,
  .btr-slot--ne,
  .btr-slot--e,
  .btr-slot--se {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .btr-hud__title { display: none; }
  .btr-hero__cta { flex-direction: column; width: 100%; }
  .btr-btn--store { width: 100%; justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
