@property --color1 {
  syntax: "<color>";
  inherits: false;
  initial-value: hsl(0, 70%, 20%);
}
@property --color2 {
  syntax: "<color>";
  inherits: false;
  initial-value: hsl(60, 70%, 20%);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  background: linear-gradient(135deg, var(--color1), var(--color2));
  animation: colorCycle 60s linear infinite;
  --color1: hsl(0, 70%, 20%);
  --color2: hsl(60, 70%, 20%);
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  margin-bottom: -2px;
  padding: 0;
}

.container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  width: 100%;
  padding: 1.5rem 0.75rem;
}

.name img {
  max-width: 300px;
  height: auto;
}
@media (orientation: landscape) {
  .name {
    margin-top: 2rem;
  }
}

.links {
  margin-bottom: 1rem;
}
.links a {
  color: #eee;
  text-decoration: none;
  line-height: 1;
}
.links:hover {
  color: #fff;
}

.footer {
  margin: 3rem 0;
  font-size: 0.75rem;
  line-height: 1.75;
  color: #ccc;
}
.footer a {
  color: #ccc;
  text-decoration: underline;
  line-height: 1;
}
.footer:hover {
  color: #fff;
}

.status-section {
  margin-top: 2rem;
  width: 100%;
  max-width: 680px;
}
.status-section .status-content {
  transform: scale(0.92);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.9s ease;
}
.status-section .status-content.status-visible {
  transform: scale(1);
  opacity: 1;
}

.status-loading {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.status-loading-line {
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  animation: shimmer 1.5s ease-in-out infinite;
}
.status-loading-line:nth-child(1) {
  width: 45%;
}
.status-loading-line:nth-child(2) {
  width: 100%;
  height: 20px;
}
.status-loading-line:nth-child(3) {
  width: 100%;
  height: 20px;
  animation-delay: 0.15s;
}
.status-loading-line:nth-child(4) {
  width: 100%;
  height: 20px;
  animation-delay: 0.3s;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
.status-header {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.85rem;
}
.status-header.status-ok {
  color: #4ade80;
}
.status-header.status-warn {
  color: #fbbf24;
}

.status-checks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.status-check {
  font-size: 0.75rem;
  margin-bottom: 0.6rem;
}

.status-check-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.dot-up {
  background: #4ade80;
}
.status-dot.dot-down {
  background: #f87171;
}

.status-name {
  color: #eee;
  white-space: nowrap;
}

.status-detail {
  color: #ddd;
  margin-left: auto;
  white-space: nowrap;
}

.uptime-bar {
  display: flex;
  gap: 2px;
  height: 20px;
  margin-top: 2px;
}

.uptime-bar-day {
  flex: 1;
  border-radius: 1px;
}
.uptime-bar-day.bar-up {
  background: #4ade80;
}
.uptime-bar-day.bar-partial {
  background: #fbbf24;
}
.uptime-bar-day.bar-down {
  background: #f87171;
}

.status-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #ccc;
  margin-top: 0.3rem;
}

@keyframes colorCycle {
  0% {
    --color1: hsl(0, 70%, 20%);
    --color2: hsl(60, 70%, 20%);
  }
  16.666% {
    --color1: hsl(60, 70%, 20%);
    --color2: hsl(120, 70%, 20%);
  }
  33.333% {
    --color1: hsl(120, 70%, 20%);
    --color2: hsl(180, 70%, 20%);
  }
  50% {
    --color1: hsl(180, 70%, 20%);
    --color2: hsl(240, 70%, 20%);
  }
  66.666% {
    --color1: hsl(240, 70%, 20%);
    --color2: hsl(300, 70%, 20%);
  }
  83.333% {
    --color1: hsl(300, 70%, 20%);
    --color2: hsl(360, 70%, 20%);
  }
  100% {
    --color1: hsl(0, 70%, 20%);
    --color2: hsl(60, 70%, 20%);
  }
}