.rp-clock-dialog {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(239, 199, 100, 0.28);
  border-radius: 8px;
  background: rgba(10, 11, 15, 0.92);
  color: #f8f3e8;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.62),
    0 0 38px rgba(239, 199, 100, 0.08);
  -webkit-backdrop-filter: blur(26px) saturate(118%);
  backdrop-filter: blur(26px) saturate(118%);
  font-family: inherit;
  overscroll-behavior: contain;
}

.rp-clock-dialog,
.rp-clock-dialog * {
  box-sizing: border-box;
}

.rp-clock-dialog::backdrop {
  background: rgba(3, 4, 7, 0.76);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.rp-clock-dialog[open] {
  animation: rp-clock-enter 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.rp-clock-dialog__surface {
  position: relative;
  min-height: 100%;
  isolation: isolate;
}

.rp-clock-dialog__surface::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
  content: "";
}

.rp-clock-dialog__header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px 17px 26px;
  border-bottom: 1px solid rgba(248, 243, 232, 0.14);
}

.rp-clock-dialog__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #efc764;
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
}

.rp-clock-dialog__title {
  margin: 0;
  color: #f8f3e8;
  font-size: 1.08rem;
  font-weight: 680;
  line-height: 1.25;
}

.rp-clock-dialog__close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(248, 243, 232, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(248, 243, 232, 0.72);
  font: inherit;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.rp-clock-dialog__close:hover {
  border-color: rgba(239, 199, 100, 0.56);
  background: rgba(239, 199, 100, 0.08);
  color: #efc764;
  transform: rotate(4deg);
}

.rp-clock-dialog__close:focus-visible {
  outline: 2px solid #efc764;
  outline-offset: 3px;
}

.rp-clock-dialog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rp-clock-dialog__zone {
  min-width: 0;
  padding: 27px 26px 25px;
}

.rp-clock-dialog__zone + .rp-clock-dialog__zone {
  border-left: 1px solid rgba(248, 243, 232, 0.14);
}

.rp-clock-dialog__label {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(248, 243, 232, 0.64);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.25;
  text-transform: uppercase;
}

.rp-clock-dialog__code {
  color: rgba(248, 243, 232, 0.35);
  font-size: 0.64rem;
  font-weight: 680;
}

.rp-clock-dialog__time {
  display: block;
  margin-top: 20px;
  color: #f8f3e8;
  font-size: 3rem;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.rp-clock-dialog__zone--new-york .rp-clock-dialog__time {
  color: #efc764;
}

.rp-clock-dialog__zone--spain .rp-clock-dialog__time {
  color: #ffffff;
}

.rp-clock-dialog__date,
.rp-clock-dialog__zone-name {
  margin-top: 13px;
  color: rgba(248, 243, 232, 0.68);
  font-size: 0.78rem;
  line-height: 1.45;
}

.rp-clock-dialog__zone-name {
  min-height: 36px;
  margin-top: 3px;
  color: rgba(248, 243, 232, 0.4);
  overflow-wrap: anywhere;
}

.rp-clock-dialog__difference {
  min-height: 46px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(239, 199, 100, 0.22);
  color: rgba(248, 243, 232, 0.5);
  font-size: 0.7rem;
  line-height: 1.35;
}

.rp-clock-dialog__difference strong {
  color: #efc764;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  white-space: nowrap;
}

.rp-clock-dialog__footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 26px;
  border-top: 1px solid rgba(248, 243, 232, 0.14);
  color: rgba(248, 243, 232, 0.4);
  font-size: 0.69rem;
  line-height: 1.45;
}

.rp-clock-dialog__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(248, 243, 232, 0.58);
  white-space: nowrap;
}

.rp-clock-dialog__status::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #efc764;
  box-shadow: 0 0 12px rgba(239, 199, 100, 0.62);
  content: "";
}

body.rp-clock-modal-open {
  overflow: hidden;
}

@keyframes rp-clock-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .rp-clock-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .rp-clock-dialog__header {
    min-height: 72px;
    padding: 14px 14px 13px 18px;
  }

  .rp-clock-dialog__title {
    font-size: 0.98rem;
  }

  .rp-clock-dialog__close {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .rp-clock-dialog__grid {
    grid-template-columns: 1fr;
  }

  .rp-clock-dialog__zone {
    padding: 22px 20px 21px;
  }

  .rp-clock-dialog__zone + .rp-clock-dialog__zone {
    border-top: 1px solid rgba(248, 243, 232, 0.14);
    border-left: 0;
  }

  .rp-clock-dialog__time {
    margin-top: 15px;
    font-size: 2.65rem;
  }

  .rp-clock-dialog__zone-name,
  .rp-clock-dialog__difference {
    min-height: 0;
  }

  .rp-clock-dialog__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 14px 20px 16px;
  }
}

@media (max-width: 380px) {
  .rp-clock-dialog__time {
    font-size: 2.3rem;
  }

  .rp-clock-dialog__difference {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-clock-dialog[open] {
    animation: none;
  }

  .rp-clock-dialog__close {
    transition: none;
  }
}
