:root {
  color-scheme: light;
  --bg-start: #07140c;
  --bg-end: #16331d;
  --panel: rgba(10, 26, 15, 0.82);
  --panel-border: rgba(126, 255, 150, 0.22);
  --text-main: #ecffee;
  --text-muted: #b7d8bf;
  --meter-track: #0f2414;
  --meter-fill-a: #22c55e;
  --meter-fill-b: #7cf39e;
  --meter-glow: rgba(74, 222, 128, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, rgba(124, 243, 158, 0.16), transparent 35%),
    linear-gradient(135deg, var(--bg-start), var(--bg-end));
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.panel {
  width: min(900px, 92vw);
  padding: 40px 36px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  text-align: center;
  backdrop-filter: blur(10px);
}

h1,
h2 {
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.subtitle {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.meter-wrap {
  position: relative;
  width: min(50vw, 720px);
  min-width: 280px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(156, 255, 176, 0.25);
  background: var(--meter-track);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 30px var(--meter-glow);
}

.meter-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 10% 100%;
  z-index: 2;
  pointer-events: none;
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.18) 0 18px,
      rgba(255, 255, 255, 0.04) 18px 36px
    ),
    linear-gradient(90deg, var(--meter-fill-a), var(--meter-fill-b));
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.16);
}

.meter-label {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.status-text {
  min-height: 1.5em;
  margin: 0;
  font-size: 1.1rem;
  color: #d3f7db;
}

.rules-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 18px;
  background: rgba(110, 255, 157, 0.08);
  border: 1px solid rgba(144, 255, 179, 0.18);
  font-size: 1.15rem;
}

.rules-card p {
  margin: 0;
}

.hidden {
  display: none;
}

@media (max-width: 700px) {
  .panel {
    padding: 28px 20px;
  }

  .meter-wrap {
    width: 100%;
    height: 76px;
    min-width: 0;
  }
}
