:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: dark;
  color: rgba(255, 255, 255, 0.85);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
  background-color: black;
  background-image: radial-gradient(
      circle farthest-side at top left,
      #a734f17d,
      transparent 70%
    ),
    radial-gradient(
      circle farthest-side at bottom right,
      #ee6ceb8c,
      transparent 70%
    );
}

/* Offline styling */
body.offline {
  background-image: radial-gradient(
      circle farthest-side at top left,
      #ff6b6b7d,
      transparent 70%
    ),
    radial-gradient(
      circle farthest-side at bottom right,
      #feca577d,
      transparent 70%
    );
}

body.offline::before {
  content: "📴 OFFLINE MODE";
  position: fixed;
  top: 10px;
  right: 10px;
  background: #ff6b6b;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1000;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid #f67be296;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a80;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

/* Service Worker related styles */
.sw-update-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #007bff;
  color: white;
  padding: 10px;
  text-align: center;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.sw-update-banner.show {
  transform: translateY(0);
}

.sw-update-banner button {
  background: white;
  color: #007bff;
  border: none;
  padding: 5px 15px;
  margin-left: 10px;
  border-radius: 3px;
  cursor: pointer;
}