:root {
  --ink: #0b1220;
  --mist: #ecf6ff;
  --sun: #7fe7ff;
  --ember: #45ffa7;
  --river: #2a6df5;
  --night: #0a1f44;
  --card: rgba(255, 255, 255, 0.12);
  --stroke: rgba(255, 255, 255, 0.22);
  --accent: #30f5c8;
  --shadow: 0 24px 60px rgba(7, 16, 40, 0.35);
  --glow: 0 0 30px rgba(79, 255, 210, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Rajdhani", "Orbitron", "Segoe UI", sans-serif;
  color: #e9f2ff;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(127, 231, 255, 0.35), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(69, 255, 167, 0.25), transparent 65%),
    radial-gradient(800px 400px at 50% 80%, rgba(42, 109, 245, 0.3), transparent 70%),
    #060c1a;
  display: flex;
  flex-direction: column;
}

.hero {
  background:
    linear-gradient(120deg, rgba(10, 31, 68, 0.9), rgba(14, 55, 114, 0.65)),
    radial-gradient(600px 200px at 70% 20%, rgba(127, 231, 255, 0.5), transparent 70%);
  padding: 56px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 12px
  );
  opacity: 0.4;
  pointer-events: none;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
  animation: rise 0.9s ease-out;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: rgba(233, 242, 255, 0.7);
  margin: 0 0 8px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  text-transform: uppercase;
}

.subhead {
  margin: 0;
  font-size: 16px;
  max-width: 42ch;
  color: rgba(233, 242, 255, 0.78);
}

.hero-card {
  background: rgba(8, 18, 36, 0.7);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(127, 231, 255, 0.3);
  backdrop-filter: blur(12px);
}

.hero-card .mini {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(233, 242, 255, 0.7);
}

.container {
  max-width: 1080px;
  margin: -24px auto 40px;
  padding: 0 24px;
  width: 100%;
  flex: 1;
}

.stats-spotlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: center;
  background:
    radial-gradient(400px 200px at 20% 20%, rgba(127, 231, 255, 0.35), transparent 70%),
    linear-gradient(120deg, rgba(6, 22, 48, 0.9), rgba(15, 58, 110, 0.7));
  border: 1px solid rgba(127, 231, 255, 0.35);
  box-shadow: var(--shadow), var(--glow);
}

.stats-spotlight-text h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.4vw, 32px);
}

.stats-spotlight-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-tile {
  background: rgba(8, 18, 36, 0.8);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(127, 231, 255, 0.2);
  box-shadow: 0 18px 30px rgba(5, 15, 32, 0.45);
}

.stat-tile .value {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.entry-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.entry-tab-toggle {
  display: none;
}

.entry-tabs-controls {
  display: none;
  gap: 10px;
  background: rgba(6, 16, 33, 0.7);
  border: 1px solid rgba(127, 231, 255, 0.2);
  border-radius: 18px;
  padding: 8px;
  box-shadow: var(--shadow);
}

.entry-tabs-controls label {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(233, 242, 255, 0.7);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.entry-tabs-panels {
  display: contents;
}

.card {
  background: rgba(9, 20, 40, 0.65);
  border: 1px solid rgba(127, 231, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: fadeIn 0.7s ease-out;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.quest {
  font-size: 18px;
  margin-bottom: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  margin: 0 0 6px;
  color: rgba(233, 242, 255, 0.7);
}

.value {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.snapshot {
  margin: 0 0 16px;
  font-size: 14px;
  color: rgba(233, 242, 255, 0.7);
}

.micro {
  font-size: 14px;
  margin-top: 0;
  color: rgba(233, 242, 255, 0.65);
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.field input,
.field textarea {
  border: 1px solid rgba(127, 231, 255, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 14px;
  background: rgba(4, 10, 22, 0.8);
  color: #e9f2ff;
}

.field.checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.btn {
  background: linear-gradient(120deg, #2dffe3, #5ab5ff);
  color: #04131f;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(79, 255, 210, 0.35);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(127, 231, 255, 0.6);
  color: #b8eaff;
}

.actions {
  display: flex;
  justify-content: center;
  margin: 20px 0 40px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(6, 16, 33, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(127, 231, 255, 0.2);
  font-size: 14px;
}

.flash {
  background: rgba(27, 58, 102, 0.7);
  border: 1px solid rgba(127, 231, 255, 0.35);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 16px 0;
}

.footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: rgba(233, 242, 255, 0.55);
}

@keyframes rise {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 36px 20px;
  }

  .container {
    margin-top: -12px;
  }

  .entry-tabs {
    display: block;
  }

  .entry-tabs-controls {
    display: flex;
    position: sticky;
    top: 12px;
    z-index: 2;
  }

  .entry-tabs-panels {
    display: block;
  }

  .entry-tab {
    display: none;
  }

  #entry-tab-daily:checked ~ .entry-tabs-controls label[for="entry-tab-daily"],
  #entry-tab-body:checked ~ .entry-tabs-controls label[for="entry-tab-body"],
  #entry-tab-move:checked ~ .entry-tabs-controls label[for="entry-tab-move"] {
    background: linear-gradient(120deg, #2dffe3, #5ab5ff);
    color: #04131f;
    box-shadow: 0 10px 20px rgba(79, 255, 210, 0.35);
  }

  #entry-tab-daily:checked ~ .entry-tabs-panels .tab-daily,
  #entry-tab-body:checked ~ .entry-tabs-panels .tab-body,
  #entry-tab-move:checked ~ .entry-tabs-panels .tab-move {
    display: block;
  }

  .list li {
    flex-direction: column;
    gap: 4px;
  }
}
