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

/* ── Base ── */
body {
  font-family: "Saira", "Helvetica Neue", Arial, sans-serif;
  background: #001b2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

a       { color: #4db6ff; text-decoration: none; }
a:hover { color: #7fd0ff; }

/* ── Background banners ── */
.bg-top,
.bg-bottom {
  position: fixed;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  display: block;
}
.bg-top    { top: 0; }
.bg-bottom { bottom: 0; transform: scaleY(-1); }

/* ── Layout ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
}

/* ── Icon ── */
.icon-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 2rem;
}

.icon-wrap img.icon {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  display: block;
}

/* ── Spinner rings (start page) ── */
.spinner-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #0091fa;
  border-right-color: rgba(0, 99, 174, 0.5);
  animation: spin 1.4s linear infinite;
}

.spinner-ring-inner {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: rgba(0, 145, 250, 0.35);
  border-left-color: rgba(0, 99, 174, 0.2);
  animation: spin 2.2s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Danger rings (oops page) ── */
.danger-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px solid rgba(255, 95, 109, 0.5);
  animation: pulse-ring 2s ease-in-out infinite;
}

.danger-ring-inner {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 95, 109, 0.2);
  animation: pulse-ring 2s ease-in-out infinite reverse;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

/* ── Frame rings (not-allowed page) ── */
.frame-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px solid rgba(0, 145, 250, 0.3);
}

.frame-ring-inner {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 99, 174, 0.15);
}

/* ── Typography ── */
h1 {
  font-family: "Chakra Petch", "Saira", Arial, sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.sub {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.sub-blue   { color: #4db6ff; }
.sub-danger { color: #ff8a94; }

.body-text {
  color: #7baec8;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Divider ── */
.divider {
  height: 1px;
  margin: 1.75rem auto;
  background: linear-gradient(90deg, transparent, #0069b9 40%, #0069b9 60%, transparent);
  opacity: 0.5;
}

/* ── Countdown ── */
.countdown {
  font-size: 1rem;
  color: #7baec8;
  margin-bottom: 1.5rem;
}

.countdown-num {
  display: inline-block;
  min-width: 2.2rem;
  text-align: center;
  background: rgba(0, 105, 185, 0.2);
  border: 1px solid rgba(0, 145, 250, 0.35);
  border-radius: 5px;
  padding: 0.05rem 0.4rem;
  color: #4db6ff;
  font-family: "Chakra Petch", "Saira", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.countdown-num-danger {
  background: rgba(255, 95, 109, 0.15);
  border-color: rgba(255, 95, 109, 0.4);
  color: #ff8a94;
}

/* ── Buttons ── */
.button-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

button {
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #0063ae 0%, #0091fa 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #7baec8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

/* ── Host list (not-allowed page) ── */
.host-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.host-chip {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(0, 145, 250, 0.08);
  border: 1px solid rgba(0, 145, 250, 0.28);
  color: #4db6ff;
  font-family: "Chakra Petch", "Saira", Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* ── Footer ── */
.footer-note {
  margin-top: 1.75rem;
  font-size: 0.78rem;
  color: #2e5570;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .button-group { flex-direction: column; }
  button { width: 100%; }
}
