:root {
  color-scheme: dark;
  --bg1: #070910;
  --bg2: #0d1330;
  --glow: #4f7bff;
  --glow2: #ff3cac;
  --text: #edf2ff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #1a2550 0%, var(--bg1) 40%, #04060d 100%);
  min-height: 100dvh;
}

.mobile-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 14px 28px;
}
.mobile-wrap.center { text-align: center; }

h1 { margin: 8px 0 6px; font-size: 2rem; }
.sub { opacity: .85; margin-top: 0; }
.hint { font-size: .9rem; opacity: .75; }

.card {
  margin-top: 14px;
  background: rgba(20, 28, 54, 0.8);
  border: 1px solid rgba(108, 134, 255, 0.25);
  border-radius: 16px;
  padding: 14px;
  backdrop-filter: blur(8px);
}
.card.slim summary { cursor: pointer; }
.card.warn { border-color: #ffb020; }
.card.ok { border-color: #39d98a; }

input, .small-btn {
  width: 100%;
  margin: 6px 0;
  border-radius: 10px;
  border: 1px solid rgba(130, 155, 255, 0.35);
  background: #0f1835;
  color: #f2f6ff;
  padding: 11px;
}
.small-btn {
  background: linear-gradient(90deg, #315fff, #5f82ff);
  border: none;
  font-weight: 700;
}

.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
a { color: #95b4ff; text-decoration: none; }

.level-card {
  margin: 10px auto 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(50,77,180,.4), rgba(140,48,150,.35));
}
.level-card .label { font-size: .85rem; opacity: .8; letter-spacing: .2em; }
.level-card .level { font-size: 3.4rem; font-weight: 900; line-height: 1.1; }

.mega-btn {
  width: 100%;
  min-height: 140px;
  border: 0;
  border-radius: 24px;
  color: white;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(120deg, var(--glow), var(--glow2), #ff9a3c);
  background-size: 220% 220%;
  box-shadow: 0 0 20px rgba(79,123,255,.55), 0 0 34px rgba(255,60,172,.35);
  animation: pulse 1.2s infinite ease-in-out, gradientShift 2.5s infinite linear;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.02); filter: brightness(1.15); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
