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

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: auto;
  font-family: 'DM Sans', sans-serif;
  padding: 2rem 1.5rem;
}

/* ── 背景 ── */
.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 0% 20%, rgba(180, 220, 160, 0.65) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 100% 70%, rgba(255, 200, 100, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 60% 90%, rgba(255, 160, 50, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse 35% 35% at 30% 60%, rgba(140, 200, 100, 0.2) 0%, transparent 50%),
    #eef2ea;
  z-index: 0;
}

/* ── 小視窗外層 ── */
.modal-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  --car-width: 110px;
}

/* ── 車子跑道區域 ── */
.car-zone {
  width: 100%;
  height: calc(var(--car-width) * 0.76);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2px;
}

.car-slot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 40px;
  border: 1.5px dashed rgba(180, 100, 0, 0.35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-slot-text {
  font-size: 9px;
  color: rgba(180, 100, 0, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}

/* ── 彩虹線 ── */
.car-track-bar {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    #4caf50 0%,
    #8bc34a 25%,
    #f5a623 55%,
    #ff8c00 78%,
    #ffcc00 100%);
  border-radius: 0;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.3);
}

/* ── 小視窗 ── */
.modal {
  background:
    radial-gradient(ellipse 58% 48% at 88% 18%, rgba(226, 160, 39, 0.24) 0%, transparent 62%),
    radial-gradient(ellipse 72% 54% at 6% 92%, rgba(176, 82, 8, 0.34) 0%, transparent 64%),
    radial-gradient(ellipse 52% 46% at 92% 96%, rgba(238, 178, 36, 0.26) 0%, transparent 58%),
    linear-gradient(145deg, #1a180d 0%, #171105 45%, #2a1605 100%);
  border: 0.5px solid rgba(245, 166, 35, 0.34);
  border-top: none;
  border-radius: 0;
  padding: 2.65rem 3.4rem 2.8rem;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  animation: modalIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.glow-green {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.09) 0%, transparent 70%);
  pointer-events: none;
}

.glow-orange {
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Badge ── */
.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  background: rgba(245, 166, 35, 0.10);
  border: 0.5px solid rgba(245, 166, 35, 0.42);
  border-radius: 100px;
  padding: 8px 20px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5a623;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

.badge-text {
  font-size: 12px;
  font-weight: 700;
  color: #ffb526;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── 標題 ── */
.modal-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff8ec;
  line-height: 1.15;
  letter-spacing: 0;
  margin-top: 0.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4em;
  flex-wrap: wrap;
}

.caca-gradient {
  background: linear-gradient(135deg, #70d85a 0%, #f8fff0 54%, #8be36d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heading-plain {
  color: #f2d78e;
  font-weight: 700;
  text-shadow: 0 0 14px rgba(242, 215, 142, 0.18);
}

.gobee-title-logo {
  display: inline-block;
  height: 1.15em;
  width: auto;
  object-fit: contain;
}

/* ── 內文 ── */
.modal-body {
  font-size: 18px;
  color: rgba(255, 248, 236, 0.78);
  line-height: 1.7;
  margin-bottom: 2.4rem;
  max-width: 500px;
}

/* ── 品牌列 ── */
.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 2.5rem;
}

.brand-pill {
  flex: 0 1 220px;
  min-height: 64px;
  padding: 14px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.brand-pill.old {
  background: rgba(76, 175, 80, 0.10);
  border: 1.5px solid rgba(129, 214, 97, 0.56);
}

.brand-pill.new {
  background: rgba(245, 166, 35, 0.13);
  border: 1.5px solid rgba(255, 177, 43, 0.62);
}

.pill-dot {
  display: none;
}

.pill-dot.green { background: #7dc95e; }
.pill-dot.orange { background: #f5a623; }

.pill-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 226, 174, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 4px;
}

.pill-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff8ec;
  letter-spacing: 0;
}

.arrow-icon {
  width: 44px;
  height: 24px;
  fill: none;
  stroke: rgba(255, 188, 58, 0.82);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

/* ── 按鈕 ── */
.cta-btn {
  width: 100%;
  padding: 17px;
  background: linear-gradient(135deg, #ffbd2e, #ff8a00);
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #171105;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.cta-btn:hover { opacity: 0.88; transform: scale(0.995); }
.cta-btn:active { transform: scale(0.975); }

.icon-arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #171105;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── 底部說明 ── */
.footer-note {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 14px;
  color: rgba(255, 226, 174, 0.72);
}

/* ── 車子動畫 ── */
.car-zone {
  overflow: visible;
}

.car {
  position: absolute;
  bottom: -5px;
  width: var(--car-width);
  height: auto;
  object-fit: contain;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.28s ease,
    visibility 0s linear 0s;
}

.caca-car {
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.15));
}

.gobee-car {
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.25));
}

.car.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0s linear 0.28s;
}

@media (max-width: 520px) {
  body {
    padding-inline: 1rem;
  }

  .modal {
    padding: 2.2rem 1.5rem 2rem;
    aspect-ratio: auto;
    min-height: min(92svh, 520px);
  }

  .modal-heading {
    font-size: 28px;
  }

  .modal-body {
    font-size: 15px;
    color: rgba(255, 248, 236, 0.78);
    margin-bottom: 1.6rem;
  }

  .brand-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 1.5rem;
  }

  .arrow-icon {
    align-self: center;
    transform: rotate(90deg);
  }

  .pill-name {
    font-size: 13px;
  }
}
