:root {
  color-scheme: light;
  --background: #f4f2ff;
  --surface: rgba(255, 255, 255, 0.9);
  --ink: #27233a;
  --muted: #66617b;
  --line: #dcd7f1;
  --accent: #5c54e8;
  --accent-dark: #4038bd;
  --sleep: #e28a38;
  --online: #198754;
  --shadow: 0 24px 70px rgba(55, 46, 110, 0.14);
  font-family: "Atkinson Hyperlegible", "Luciole", ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, #ffffff 0, transparent 32rem),
    radial-gradient(circle at 90% 85%, #ddd8ff 0, transparent 34rem),
    var(--background);
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.card {
  width: min(100%, 42rem);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid rgba(113, 102, 181, 0.18);
  border-radius: 1.75rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 0.65rem;
  background: var(--accent);
}

.status {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding: 0.4rem 0.7rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 650;
}

.status-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.22rem rgba(92, 84, 232, 0.14);
}

.status[data-state="offline"] .status-dot {
  background: var(--sleep);
  box-shadow: 0 0 0 0.22rem rgba(226, 138, 56, 0.15);
}

.status[data-state="online"] .status-dot {
  background: var(--online);
  box-shadow: 0 0 0 0.22rem rgba(25, 135, 84, 0.15);
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 7vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 34rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
}

.next-opening {
  display: grid;
  gap: 0.2rem;
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  border-left: 0.25rem solid var(--accent);
  border-radius: 0.25rem 0.85rem 0.85rem 0.25rem;
  background: #f0eeff;
}

.next-opening[hidden] {
  display: none;
}

.next-opening span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.next-opening strong {
  font-size: 1.12rem;
}

.schedule {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.schedule p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.schedule .schedule-title {
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.schedule-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.42rem 0.65rem;
  font-size: 1.08rem;
}

.schedule-grid strong {
  color: var(--accent-dark);
}

.separator {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}

button,
.actions a {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 720;
  border-radius: 0.8rem;
}

button {
  color: #fff;
  border: 1px solid var(--accent);
  background: var(--accent);
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.actions a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

button:focus-visible,
.actions a:focus-visible {
  outline: 0.2rem solid var(--ink);
  outline-offset: 0.2rem;
}

.automatic {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 32rem) {
  .card {
    border-radius: 1.25rem;
  }

  .brand {
    margin-bottom: 2rem;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  button,
  .actions a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
