* {
  box-sizing: border-box;
}

:root {
  --blue: #22a7df;
  --teal: #004f59;
  --muted: #526f75;
  --pale: #eef9fd;
  --white: #ffffff;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--blue);
  color: var(--teal);
  font-family: Arial, Helvetica, sans-serif;
}

.display,
.app-shell {
  width: 100vw;
  max-width: 1200px;
  height: 100vh;
  max-height: 1920px;
  margin: 0 auto;
  padding: 30px 72px 32px;
  display: grid;
  grid-template-rows: 245px 175px 655px 220px 425px;
  gap: 24px;
  overflow: hidden;
}

.brand,
.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  overflow: visible;
}

.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 100%;
  max-width: 760px;
  max-height: 185px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.brand h1,
.header-title {
  margin: 8px 0 0;
  font-size: 50px;
  line-height: 1;
  font-weight: 900;
  color: white;
  text-align: center;
}

.time-card {
  height: 175px;
  min-height: 0;
  padding: 30px 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 24px;
  background: var(--white);
}

.time-copy {
  display: grid;
  gap: 8px;
}

.current-time,
.clock-time {
  display: block;
  color: var(--teal);
  font-size: 96px;
  line-height: 0.9;
  font-weight: 900;
}

.clock-date {
  display: block;
  color: var(--muted);
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
}

.hero-card {
  height: 655px;
  min-height: 0;
  padding: 32px 36px 28px;
  display: grid;
  grid-template-rows: 56px 112px 190px 140px 49px;
  gap: 16px;
  border-radius: 24px;
  background: var(--white);
  overflow: hidden;
}

.main-label-row {
  height: 60px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.main-label-row p,
.main-label-row span {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

.main-label-row p {
  color: #007c89;
}

.main-label-row span {
  color: var(--muted);
  white-space: nowrap;
}

.destination {
  margin: 0;
  color: var(--teal);
  font-size: clamp(76px, 7vw, 104px);
  line-height: 0.95;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  max-width: 100%;
  font-weight: 900;
}

.departure-block,
.departure-focus {
  height: 190px;
  padding: 22px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 18px;
  background: var(--pale);
}

.time-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.departure-number {
  display: block;
  color: var(--teal);
  font-size: clamp(104px, 10vw, 136px);
  line-height: 0.9;
  font-weight: 900;
  white-space: nowrap;
}

.transfer-meta-row {
  height: 140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.detail-card,
.meta-card {
  height: 140px;
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 18px;
  background: var(--pale);
}

.meta-number {
  display: block;
  color: var(--teal);
  font-size: clamp(52px, 5.4vw, 72px);
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.countdown-card {
  color: var(--white);
  background: var(--teal);
}

.countdown-card .time-label {
  color: #bdeefa;
  font-size: 22px;
}

.countdown-card .meta-number {
  color: var(--white);
  font-size: clamp(54px, 5.6vw, 72px);
}

.route-row,
.route-status-row {
  height: 49px;
  display: block;
  padding-top: 18px;
  border-top: 3px solid #dcecef;
}

.route-row p,
.route-line {
  margin: 0;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  white-space: normal;
}

.upcoming-section {
  height: 220px;
  min-height: 0;
  display: grid;
  grid-template-rows: 52px 82px 82px;
  gap: 4px;
}

.upcoming-heading {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
}

.upcoming-list {
  display: contents;
}

.upcoming-card {
  height: 82px;
  min-height: 82px;
  padding: 12px 24px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  align-items: center;
  gap: 14px;
  background: var(--white);
  color: var(--teal);
}

.upcoming-destination {
  margin: 0;
  color: var(--teal);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  white-space: normal;
}

.upcoming-detail {
  display: grid;
  gap: 5px;
  text-align: right;
}

.upcoming-meta-label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

.upcoming-time,
.upcoming-countdown {
  display: block;
  color: var(--teal);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.upcoming-day {
  color: #007c89;
  font-size: 14px;
  font-weight: 900;
}

.booking-footer {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: white;
  text-align: center;
}

.booking-qr {
  width: 230px;
  height: 230px;
  padding: 14px;
  background: white;
  border-radius: 20px;
  object-fit: contain;
  box-shadow: 0 12px 32px rgba(0, 58, 74, 0.18);
}

.booking-cta {
  margin: 0;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 900;
  color: white;
}

.booking-cta span {
  font-size: 36px;
  font-weight: 900;
}

.booking-phone {
  margin: 0;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  color: white;
}

@media (max-width: 700px) {
  html,
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .display,
  .app-shell {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    height: auto;
    padding: 22px 20px;
    gap: 16px;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .brand,
  .app-header {
    min-height: auto;
    height: auto;
    display: block;
  }

  .logo {
    width: 100%;
    max-width: 320px;
    max-height: 70px;
    object-fit: contain;
  }

  .brand h1,
  .header-title {
    font-size: 34px;
    line-height: 1.05;
    margin-top: 14px;
  }

  .time-panel,
  .time-card {
    height: auto;
    padding: 24px 28px;
    border-radius: 22px;
  }

  .current-time,
  .clock-time {
    font-size: 78px;
    line-height: 0.9;
  }

  .current-date,
  .clock-date {
    font-size: 26px;
  }

  .next-panel,
  .hero-card {
    height: auto;
    min-height: auto;
    padding: 28px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: visible;
  }

  .panel-topline,
  .main-label-row {
    height: auto;
    align-items: flex-start;
  }

  .panel-topline p,
  .main-label-row p,
  .main-label-row span {
    font-size: 28px;
    line-height: 1.05;
  }

  .destination {
    font-size: 68px;
    line-height: 0.95;
    max-width: 100%;
  }

  .departure-block,
  .departure-focus {
    height: auto;
    padding: 20px 24px;
    border-radius: 18px;
  }

  .departure-block p:first-child,
  .departure-block .time-label,
  .departure-focus .time-label {
    font-size: 22px;
  }

  .departure-block p:last-child,
  .departure-block .departure-number,
  .departure-focus .departure-number {
    font-size: 82px;
    line-height: 0.9;
  }

  .details-grid,
  .transfer-meta-row {
    height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-card,
  .meta-card {
    height: auto;
    min-height: 112px;
    padding: 20px 24px;
    border-radius: 18px;
  }

  .detail-card p:first-child,
  .detail-card .time-label,
  .meta-card .time-label {
    font-size: 22px;
  }

  .detail-card p:last-child,
  .detail-card .meta-number,
  .meta-card .meta-number,
  .countdown-card .meta-number {
    font-size: 58px;
    line-height: 0.95;
  }

  .route-row,
  .route-status-row {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .route-row p:first-child,
  .route-line {
    font-size: 23px;
    line-height: 1.15;
  }

  .upcoming-section {
    height: auto;
    display: block;
  }

  .upcoming-heading {
    font-size: 32px;
    margin: 0 0 12px;
  }

  .upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .upcoming-card {
    height: auto;
    min-height: 96px;
    padding: 18px 22px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .upcoming-detail {
    text-align: left;
  }

  .upcoming-destination {
    font-size: 30px;
  }

  .upcoming-time,
  .upcoming-countdown {
    font-size: 28px;
  }

  .booking-footer {
    height: auto;
    min-height: 0;
    gap: 14px;
    padding-bottom: 10px;
  }

  .booking-qr {
    width: 170px;
    height: 170px;
  }

  .booking-cta {
    font-size: 24px;
  }

  .booking-cta span {
    font-size: 22px;
  }
}
