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

html, body {
  min-height: 100%;
  background-color: #0D0D0D;
  display: flex;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #ffffff;
}

/* ── Screen ── */
.screen {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 54px 0 96px;
  background: #0D0D0D;
}

/* ── Rent Button ── */
.btn-rent {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 360px;
  padding: 16px 0;
  background: #ffffff;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s ease, transform 0.15s ease;
  z-index: 50;
}

.btn-rent:hover {
  box-shadow: 0 4px 28px rgba(245, 166, 35, 0.35);
}

.btn-rent:active {
  opacity: 0.85;
  transform: translateX(-50%) scale(0.97);
}

/* ── Top Bar ── */
.topbar {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
}

.topbar-btn {
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  color: #888888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  transition: color 0.2s ease;
  z-index: 1;
}

.topbar-btn:active {
  color: #ffffff;
}

.icon-btn {
  width: 42px;
  height: 42px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.icon-btn:active {
  background: #2a2a2a;
}

.topbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin-top: 50px;
}

.car-brand {
  font-size: 13px;
  font-weight: 500;
  color: #888888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.car-model {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.car-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #888888;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #F5A623;
  border-radius: 50%;
  box-shadow: 0 0 6px #F5A623;
}

/* ── Car Hero ── */
.car-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 0;
  height: 200px;
  flex-shrink: 0;
}

.car-glow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.30) 0%, rgba(245, 166, 35, 0.08) 55%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
}

.car-img {
  position: relative;
  z-index: 1;
  width: 88%;
  max-width: 340px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(245, 166, 35, 0.35));
  transition: opacity 0.18s ease, filter 0.18s ease;
  flex-shrink: 0;
}

/* ── Indicators ── */
.indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px 16px;
  min-height: 68px;
  flex-shrink: 0;
}

.indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.ind-value {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
  min-height: 24px;
}

.ind-unit {
  font-size: 11px;
  color: #F5A623;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  min-height: 14px;
}

.ind-label {
  font-size: 11px;
  color: #888888;
  margin-top: 2px;
  white-space: nowrap;
  min-height: 14px;
}

.ind-ring {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(#F5A623 0deg 270deg, #1f1a05 270deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.35), inset 0 0 10px rgba(0,0,0,0.4);
}

.ind-ring-inner {
  width: 36px;
  height: 36px;
  background: #1a1505;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.2);
}

/* ── Thumbnail Slider ── */
.thumb-slider {
  display: flex;
  gap: 10px;
  padding: 0 12px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: 84px;
  flex-shrink: 0;
}

.thumb-slider::-webkit-scrollbar {
  display: none;
}

.thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  background: #1A1A1A;
  border: 1.5px solid #2a2a2a;
  border-radius: 14px;
  padding: 6px 6px 7px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 76px;
  height: 76px;
}

.thumb img {
  width: 100%;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.thumb span {
  font-size: 10px;
  color: #888888;
  font-weight: 500;
}

.thumb.active {
  border-color: #F5A623;
  background: rgba(245, 166, 35, 0.07);
}

.thumb.active span {
  color: #F5A623;
}

/* ── Car Nav Pill ── */
.car-nav-pill {
  display: flex;
  align-items: center;
  margin: 8px 12px 14px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 999px;
  padding: 0 4px;
  flex-shrink: 0;
}

.car-nav-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: #F5A623;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.car-nav-btn:active {
  background: rgba(245, 166, 35, 0.12);
}

.car-nav-name {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 4px 12px 0;
  flex-shrink: 0;
}

.card {
  width: 100%;
  min-height: 106px;
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 18px;
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: background 0.2s ease;
}

.card:active {
  background: #1a1a1a;
}

.card-icon {
  width: 32px;
  height: 32px;
  background: rgba(245, 166, 35, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-label {
  font-size: 11px;
  color: #888888;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.card-value {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  min-height: 20px;
}

.card-value.ok {
  color: #F5A623;
}

.card-value.warn {
  color: #f59e0b;
}

@media (max-width: 380px) {
  .cards {
    gap: 8px;
    padding: 4px 12px 0;
  }
  .card {
    padding: 14px 10px 12px;
    border-radius: 14px;
  }
  .ind-value {
    font-size: 20px;
  }
  .car-nav-name {
    font-size: 14px;
  }
}

/* ── Rent Overlay ── */
.rent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 200;
}

.rent-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Rent Modal ── */
.rent-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  background: #1A1A1A;
  border-radius: 24px 24px 0 0;
  padding: 24px 24px 36px;
  z-index: 201;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.rent-modal.active {
  transform: translateX(-50%) translateY(0);
}

/* ── Steps ── */
.rent-step { display: flex; flex-direction: column; gap: 20px; position: relative; }
.rent-step.hidden { display: none; }

/* ── Header ── */
.rent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rent-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
  text-align: center;
}

.rent-close, .rent-back {
  width: 32px;
  height: 32px;
  background: #2a2a2a;
  border: none;
  border-radius: 50%;
  color: #888888;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.rent-close:hover, .rent-back:hover { background: #3a3a3a; }

/* ── Fields ── */
.rent-body { display: flex; flex-direction: column; gap: 14px; }

.rent-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rent-field label {
  font-size: 13px;
  font-weight: 500;
  color: #888888;
}

.rent-field input[type="text"],
.rent-field input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 14px;
  color: #ffffff;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
  color-scheme: dark;
}

.rent-field input[type="text"]::placeholder,
.rent-field input[type="tel"]::placeholder {
  color: #555555;
}

.rent-field input[type="text"]:focus,
.rent-field input[type="tel"]:focus {
  border-color: #F5A623;
}

.rent-field input[type="text"].error,
.rent-field input[type="tel"].error {
  border-color: #ef4444;
}

.date-field {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  outline: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 0.2s ease;
}

.date-field:focus,
.date-field:active {
  border-color: #F5A623;
}

.date-field.error {
  border-color: #ef4444;
}

.date-value {
  pointer-events: none;
}

.date-icon {
  color: #888888;
  display: flex;
  flex-shrink: 0;
  pointer-events: none;
}

.date-icon svg {
  pointer-events: none;
}

.date-value--placeholder {
  color: #555555;
}

/* ── Rent Date Picker ── */
.rent-date-picker-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 99999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  padding: 0 0 env(safe-area-inset-bottom, 0px);
}

.rent-date-picker-overlay[hidden] {
  display: none;
}

.rent-date-picker-overlay.active {
  display: flex;
}

.rent-date-picker-sheet {
  width: 100%;
  max-width: 420px;
  max-height: min(430px, calc(100dvh - 72px));
  margin: 0 auto;
  overflow-y: auto;
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 14px 16px max(20px, calc(env(safe-area-inset-bottom, 0px) + 14px));
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.45);
}

.rent-date-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.rent-date-picker-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  flex: 1;
}

.rent-calendar-nav {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: none;
  border-radius: 50%;
  background: #2a2a2a;
  color: #888888;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}

.rent-calendar-weekdays,
.rent-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.rent-calendar-weekdays {
  margin-bottom: 6px;
}

.rent-calendar-weekdays span {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}

.rent-calendar-empty {
  min-height: 40px;
}

.rent-calendar-day {
  min-width: 40px;
  min-height: 40px;
  background: #222222;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.rent-calendar-day.today {
  color: #F5A623;
}

.rent-calendar-day.selected {
  background: #F5A623;
  color: #000000;
}

.rent-calendar-day.disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.rent-date-picker-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.rent-date-picker-action {
  flex: 1;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: #2a2a2a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.rent-date-picker-action--primary {
  background: #ffffff;
  color: #000000;
}

.rent-date-picker-action:active {
  opacity: 0.85;
}

.rent-calendar-nav:active,
.rent-calendar-day:not(:disabled):active {
  opacity: 0.85;
}

@media (max-width: 340px) {
  .rent-date-picker-sheet {
    padding: 12px 12px 18px;
  }

  .rent-calendar-weekdays,
  .rent-calendar-grid {
    gap: 2px;
  }
}

.rent-hint {
  font-size: 12px;
  color: #888888;
  line-height: 1.5;
  margin-top: 2px;
}

/* ── Rent Success ── */
.rent-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 0 8px;
  text-align: center;
}

.rent-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(245, 166, 35, 0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.rent-success-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

.rent-success-sub {
  font-size: 14px;
  color: #888888;
  line-height: 1.6;
}

.rent-success-phone {
  display: inline-block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  color: #F5A623;
}

.rent-error {
  font-size: 12px;
  color: #ef4444;
  min-height: 16px;
  line-height: 1.4;
}

.rent-error--center {
  display: block;
  text-align: center;
  margin-bottom: 6px;
}

/* ── Summary ── */
.rent-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-label {
  font-size: 13px;
  color: #888888;
}

.summary-value {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

.summary-divider {
  height: 1px;
  background: #2a2a2a;
}

.summary-total .summary-label {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.summary-total .summary-value {
  font-size: 16px;
  font-weight: 700;
  color: #F5A623;
}

/* ── Rent Button ── */
.rent-btn {
  width: 100%;
  padding: 16px 0;
  background: #ffffff;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.rent-btn:disabled {
  background: #2a2a2a;
  color: #4b5563;
  cursor: not-allowed;
}

.rent-btn:not(:disabled):active {
  opacity: 0.85;
  transform: scale(0.97);
}

/* ── Sidebar Overlay ── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 300;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  max-width: 300px;
  height: 100%;
  background: #1A1A1A;
  border-right: 1px solid rgba(245, 166, 35, 0.25);
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 301;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
}

.sidebar.active {
  transform: translateX(0);
}

/* ── Sidebar Header ── */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #2A2A2A;
}

.sidebar-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.sidebar-close {
  width: 32px;
  height: 32px;
  background: #2a2a2a;
  border: none;
  border-radius: 50%;
  color: #888888;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.sidebar-close:hover {
  background: #3a3a3a;
  color: #ffffff;
}

/* ── Sidebar Nav ── */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #888888;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  color: #F5A623;
  background: rgba(245, 166, 35, 0.06);
}

.sidebar-link--active {
  color: #F5A623;
  border-left-color: #F5A623;
  background: rgba(245, 166, 35, 0.08);
}

.sidebar-link svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebar-link--active svg,
.sidebar-link:hover svg {
  opacity: 1;
}

/* ── Speedo Intro Modal ── */
.speedo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0D0D0D;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: max(env(safe-area-inset-top, 0px), 28px) 20px max(env(safe-area-inset-bottom, 0px), 34px);
  min-height: 100dvh;
  overflow: hidden;
  user-select: none;
  transition: opacity 0.5s ease;
}

.speedo-modal.fade-out {
  opacity: 0;
  pointer-events: none;
}

.speedo-modal.gone {
  display: none;
}

.speedo-logo {
  width: clamp(149px, 43vw, 170px);
  height: auto;
  flex-shrink: 0;
  pointer-events: none;
  margin: 0 0 clamp(42px, 6.5vh, 64px);
}

.speedo-wrap {
  position: relative;
  width: clamp(246px, 78vw, 338px);
  height: clamp(246px, 78vw, 338px);
  flex-shrink: 0;
  overflow: visible;
  margin-bottom: clamp(42px, 6.5vh, 64px);
}

.speedo-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.60) 0%, rgba(245, 166, 35, 0.25) 40%, transparent 65%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}

.speedo-wrap svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.speedo-subtitle {
  max-width: 300px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(14px, 3.9vw, 17px);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  margin: 0;
}

#needleGroup {
  transform-origin: 150px 150px;
  transform-box: view-box;
}

#speedNum, #speedUnit {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#startBtnGroup {
  transition: opacity 0.4s ease;
}

#hubCap {
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}

#startBtn {
  cursor: pointer;
}

@keyframes startRingPulse {
  0%, 100% { opacity: 0.20; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(1.10); }
}

.start-pulse {
  animation: startRingPulse 1.8s ease-in-out infinite;
  transform-origin: 150px 150px;
  transform-box: view-box;
}

@media (max-height: 700px) {
  .speedo-modal { padding-top: max(env(safe-area-inset-top, 0px), 20px); padding-bottom: max(env(safe-area-inset-bottom, 0px), 24px); }
  .speedo-logo  { width: clamp(126px, 36vw, 149px); margin-bottom: clamp(28px, 4.6vh, 40px); }
  .speedo-wrap  { width: clamp(222px, 70vw, 284px); height: clamp(222px, 70vw, 284px); margin-bottom: clamp(28px, 4.6vh, 40px); }
  .speedo-subtitle { font-size: clamp(13px, 3.8vw, 15px); }
}

@media (max-height: 580px) {
  .speedo-modal { padding-top: max(env(safe-area-inset-top, 0px), 14px); padding-bottom: max(env(safe-area-inset-bottom, 0px), 18px); }
  .speedo-logo  { width: clamp(111px, 33vw, 131px); margin-bottom: 22px; }
  .speedo-wrap  { width: clamp(188px, 58vw, 224px); height: clamp(188px, 58vw, 224px); margin-bottom: 22px; }
  .speedo-subtitle { font-size: 12.5px; line-height: 1.3; }
}

/* ── PWA Install Sheet ── */
.pwa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 500;
}

.pwa-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pwa-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 400px;
  background: #1A1A1A;
  border-top: 1px solid #2A2A2A;
  border-radius: 24px 24px 0 0;
  padding: 12px 20px 44px;
  z-index: 501;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.pwa-sheet.active {
  transform: translateX(-50%) translateY(0);
}

.pwa-handle {
  width: 36px;
  height: 4px;
  background: #3A3A3A;
  border-radius: 2px;
  margin: 0 auto 22px;
}

.pwa-app-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pwa-app-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  flex-shrink: 0;
}

.pwa-app-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.pwa-app-sub {
  font-size: 13px;
  color: #888888;
  margin-top: 3px;
}

.pwa-desc {
  font-size: 14px;
  color: #888888;
  line-height: 1.55;
  margin-bottom: 22px;
}

.pwa-btn-install {
  width: 100%;
  padding: 15px 0;
  background: #F5A623;
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.pwa-btn-install:active {
  opacity: 0.85;
  transform: scale(0.97);
}

.pwa-btn-install:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.pwa-btn-cancel {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  color: #888888;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.pwa-btn-cancel:active {
  color: #ffffff;
}

.pwa-ios-hint {
  display: none;
  background: #222222;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 4px;
  font-size: 13px;
  color: #888888;
  line-height: 1.6;
  text-align: center;
}

.pwa-ios-hint strong {
  color: #ffffff;
}
