:root {
  color-scheme: light;
  --bg: #fff7ea;
  --card: rgba(255, 255, 255, 0.85);
  --ink: #243034;
  --muted: #61707a;
  --accent: #ff8fab;
  --accent-2: #7bdff2;
  --on: #2bb673;
  --off: #ff6b6b;
  --starting: #f7b733;
  --shadow: 0 20px 60px rgba(36, 48, 52, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 247, 234, 0.72), rgba(255, 240, 246, 0.58)),
    var(--waifu-url) center center / cover no-repeat fixed;
  display: grid;
  /* place-items: center; */
  align-items: center;
  padding: 24px;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 143, 171, 0.32), transparent 30%),
    radial-gradient(circle at top right, rgba(123, 223, 242, 0.34), transparent 28%);
  pointer-events: none;
}

.card {
  width: min(100%, 720px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  overflow: hidden;
  z-index: 0;
  margin-left: 10em;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24));
  opacity: 0.2;
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.subtitle {
  margin: 10px 0 0;
  max-width: 48ch;
  line-height: 1.5;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.lang-switch a.active {
  background: var(--ink);
  color: white;
}

.status-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 28px 0 10px;
}

.waifu-caption {
  margin: 0;
  margin-top: 20px;
  text-align: center;
  line-height: 1.4;
  font-size: 0.95rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.status-on {
  background: linear-gradient(135deg, #35c47d, #1b9d59);
}

.status-off {
  background: linear-gradient(135deg, #ff7a7a, #ef4f74);
}

.status-starting {
  background: linear-gradient(135deg, #ffcb4e, #ff9f1c);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
}

form {
  margin-top: 24px;
}

button {
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--accent), #ffb347);
  color: #2a1f24;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(255, 143, 171, 0.24);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(255, 143, 171, 0.3);
}

.cute-note {
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.message {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  border: 1px solid rgba(36, 48, 52, 0.08);
}

.sparkles {
  position: absolute;
  inset: 18px 22px auto auto;
  color: rgba(36, 48, 52, 0.16);
  font-size: 1.2rem;
  user-select: none;
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
