:root {
  --text: #515151;
  --heading: #949c9f;
  --green: #639470;
  --beige: #f0eee9;
  --white: #ffffff;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Background layers (image/size/position are set inline in index.html,
   so they can be modified dynamically via JS) */
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--white);
}

#bg-pc {
  display: none;
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6vh 24px 60px;
}

.site-header {
  margin-bottom: 4.5vh;
}

.logo {
  display: block;
}

.logo__img {
  display: block;
  height: auto;
  margin: 0 auto;
}

.logo__img--pc {
  display: none;
}

.logo__img--mobile {
  height: 10px;
  width: auto;
}

.queue {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ---------- Card ---------- */

.card {
  width: 303px;
  max-width: 100%;
  background: var(--white);
  text-align: center;
  padding: 38px 24px 32px;
  box-shadow: 0 4.9px 14.6px rgba(0, 0, 0, 0.1);
}

.card__title {
  color: var(--heading);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.9px;
  white-space: nowrap;
}

@media (max-width: 350px) {
  .card__title {
    font-size: 15px;
    letter-spacing: 0.7px;
  }
}

@media (max-width: 300px) {
  .card__title {
    font-size: 13px;
    letter-spacing: 0.5px;
  }
}

.card__subtitle {
  margin-top: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.55px;
}

/* Links inside the card keep the surrounding text style
   (no default underline / blue) */
.card a {
  color: inherit;
  text-decoration: none;
}

.card__body {
  margin-top: 14px;
  color: var(--text);
  font-weight: 400;
  font-size: 10px;
  line-height: 18px;
  letter-spacing: 0.5px;
}

.card__body-br {
  display: none;
}

/* ---------- Progress bar ---------- */

.progress {
  margin-top: 22px;
}

.progress__track {
  position: relative;
  display: flex;
  gap: 3px;
  width: 256px;
  height: 18px;
  margin: 0 auto;
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 0 4px;
}

.progress__segment {
  position: relative;
  flex: 1 1 0;
  height: 12px;
  align-self: center;
  overflow: hidden;
}

.progress__segment:first-child {
  border-radius: 999px 0 0 999px;
}

.progress__segment:nth-last-child(2) {
  border-radius: 0 999px 999px 0;
}

.progress__segment-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: var(--beige);
  transition: width 0.6s ease;
}

.progress__segment.is-filled .progress__segment-fill {
  width: 100%;
}

.progress__star {
  position: absolute;
  top: 50%;
  left: 3%;
  width: 17px;
  height: 17px;
  transform: translate(-50%, -50%);
  transition: left 0.6s ease;
}

.progress__star img {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Wait info ---------- */

.wait {
  margin-top: 20px;
}

.wait__label {
  color: var(--green);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.6px;
}

.wait__time {
  color: var(--green);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
}

.wait__meta {
  color: var(--green);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.6px;
}

#last_update_time {
  font-weight: 700;
}

/* ---------- Queue ID ---------- */

.queue-id {
  margin-top: 16px;
  color: var(--text);
  font-weight: 400;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

/* ---------- Footer note ---------- */

.card-foot {
  margin-top: 24px;
  width: 100%;
  color: var(--white);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.6px;
  text-align: center;
}

.card-foot strong {
  font-weight: 800;
}

.card-foot a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
}

/* ---------- Desktop / PC (from Figma: Que Page_web 1440x838) ---------- */

@media (min-width: 768px) {
  #bg-mobile {
    display: none;
  }

  #bg-pc {
    display: block;
  }

  .page {
    justify-content: center;
    padding: 40px 24px 56px;
  }

  .site-header {
    margin-bottom: 88px;
  }

  .logo__img--pc {
    display: block;
    height: 22px;
    width: auto;
  }

  .logo__img--mobile {
    display: none;
  }

  .queue {
    align-self: flex-start;
    align-items: flex-start;
    width: auto;
    margin-left: calc(13.75vw - 24px);
  }

  .card {
    width: 479px;
    padding: 63px 28px 56px;
    box-shadow: 0 7px 20.8px rgba(0, 0, 0, 0.1);
  }

  .card__title {
    font-size: 24px;
    letter-spacing: 1.2px;
  }

  .card__subtitle {
    font-size: 12px;
    letter-spacing: 0.6px;
  }

  .card__body {
    font-size: 12px;
    line-height: 21.6px;
    letter-spacing: 0.6px;
    max-width: 424px;
    margin-left: auto;
    margin-right: auto;
  }

  .card__body-br {
    display: inline;
  }

  .progress {
    margin-top: 24px;
  }

  .progress__track {
    width: 391px;
    height: 27px;
    gap: 4px;
  }

  .progress__segment {
    height: 18px;
  }

  .progress__star {
    width: 17px;
    height: 17px;
  }

  .wait {
    margin-top: 22px;
  }

  .wait__time {
    font-size: 24px;
  }

  .queue-id {
    font-size: 12px;
    letter-spacing: 0.6px;
    margin-top: 18px;
  }

  .card-foot {
    margin-top: 30px;
    color: var(--text);
  }
}