:root {
  --black: #090909;
  --ink: #141414;
  --lime: #d7ff2f;
  --lime-2: #a8ff00;
  --paper: #f6f4ec;
  --muted: #a7a7a0;
  --line: rgba(255, 255, 255, 0.16);
  --danger: #ff5638;
  --shadow: 10px 10px 0 #000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 10%, rgba(215, 255, 47, 0.18), transparent 22rem),
    radial-gradient(circle at 78% 6%, rgba(168, 255, 0, 0.12), transparent 20rem),
    #070707;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body.sheet-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.06;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(215,255,47,.18), transparent 22rem),
    repeating-linear-gradient(-18deg, transparent 0 26px, rgba(215,255,47,.045) 27px 28px),
    #070707;
}

.login-card {
  position: relative;
  width: min(620px, 100%);
  padding: clamp(28px, 5vw, 54px);
  color: #fff;
  background: #101010;
  border: 2px solid var(--lime);
  box-shadow: 12px 12px 0 #000;
  overflow: hidden;
}

.setup-card {
  width: min(860px, 100%);
}

.login-card h1 {
  margin: 0;
  font-size: clamp(56px, 10vw, 108px);
}

.login-copy {
  max-width: 460px;
  color: #d8d8cf;
  font-size: 16px;
  line-height: 1.5;
}

.login-card form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.login-card input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: #fff;
  background: #050505;
  border: 2px solid rgba(215,255,47,.48);
  outline: none;
  font-size: 18px;
  font-weight: 900;
}

.login-card select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: #fff;
  background: #050505;
  border: 2px solid rgba(215,255,47,.48);
  outline: none;
  font-size: 16px;
  font-weight: 900;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.day-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 2px solid rgba(215,255,47,.48);
}

.day-picker legend {
  padding: 0 8px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.day-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px;
  color: #fff;
  background: #050505;
  border: 1px solid rgba(215,255,47,.25);
  font-size: 11px;
  letter-spacing: .08em;
}

.day-picker input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--lime);
}

.login-card input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(215,255,47,.12);
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: #ff765f;
  font-weight: 800;
}

.pulse-orb {
  position: absolute;
  right: -70px;
  top: -70px;
  width: 210px;
  height: 210px;
  border: 28px solid rgba(215,255,47,.45);
  border-radius: 50%;
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(.9); opacity: .42; }
  50% { transform: scale(1.08); opacity: .78; }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 24px clamp(18px, 4vw, 64px) 0;
  background:
    linear-gradient(112deg, rgba(0,0,0,.94), rgba(0,0,0,.72)),
    repeating-linear-gradient(-18deg, transparent 0 28px, rgba(215,255,47,.055) 29px 30px);
  border-bottom: 1px solid rgba(215,255,47,.24);
  overflow: hidden;
}

.hero::after {
  content: "08";
  position: absolute;
  right: -4vw;
  top: 12vh;
  color: transparent;
  -webkit-text-stroke: 2px rgba(215,255,47,.16);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(180px, 34vw, 520px);
  line-height: .8;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(215,255,47,.34);
}

.brand {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(26px, 4vw, 46px);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.brand span {
  color: var(--lime);
  margin-right: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #ddd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.user-pill {
  padding: 10px 13px;
  color: #000;
  background: var(--lime);
  font-weight: 950;
}

.ghost-btn,
.secondary-btn,
.primary-btn,
.filter,
.complete-btn {
  border: 2px solid var(--lime);
  color: #fff;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.ghost-btn {
  padding: 10px 14px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .58fr);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  min-height: calc(100vh - 98px);
  padding: 70px 0 110px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .26em;
  text-transform: uppercase;
}

h1,
h2,
.level-number,
.sheet-title {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
}

h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(74px, 12vw, 168px);
  line-height: .82;
  letter-spacing: -.04em;
}

h1::first-line {
  color: var(--lime);
}

.hero-text {
  max-width: 710px;
  margin: 26px 0 0;
  color: #d9d9d0;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-btn,
.secondary-btn,
.complete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  box-shadow: 6px 6px 0 #000;
}

.primary-btn,
.complete-btn.is-done {
  color: #000;
  background: var(--lime);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.filter:hover,
.complete-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #000;
}

.stat-board {
  position: relative;
  padding: 28px;
  background: #101010;
  border: 2px solid var(--lime);
  box-shadow: var(--shadow);
}

.ring {
  display: grid;
  place-items: center;
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  border: 18px solid rgba(215,255,47,.16);
  border-top-color: var(--lime);
  border-right-color: var(--lime);
  border-radius: 50%;
}

.ring span {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 72px;
  color: var(--lime);
  line-height: .9;
}

.ring small {
  color: #d9d9d0;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  text-transform: uppercase;
}

.stat-row span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .14em;
}

.stat-row strong {
  color: #fff;
  text-align: right;
}

.ticker {
  position: absolute;
  left: -12px;
  right: -12px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 34px;
  padding: 15px 0;
  color: #000;
  background: var(--lime);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .16em;
  transform: rotate(-1.3deg);
  white-space: nowrap;
}

.rules,
.map-section {
  padding: clamp(54px, 8vw, 108px) clamp(18px, 4vw, 64px);
}

.rules {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 36px;
  background: var(--paper);
  color: #0b0b0b;
}

.rules h2,
.section-head h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 90px);
  line-height: .88;
  letter-spacing: -.03em;
}

.rule-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rule-cards article {
  min-height: 180px;
  padding: 20px;
  color: #fff;
  background: #0c0c0c;
  border: 2px solid #0c0c0c;
  box-shadow: 7px 7px 0 var(--lime);
}

.rule-cards strong {
  display: block;
  margin-bottom: 26px;
  color: var(--lime);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 48px;
}

.rule-cards span {
  display: block;
  color: #e7e7df;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.map-section {
  background:
    radial-gradient(circle at 50% 0, rgba(215,255,47,.1), transparent 28rem),
    #090909;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter {
  padding: 12px 14px;
  font-size: 11px;
}

.filter.active {
  color: #000;
  background: var(--lime);
}

.map-shell {
  position: relative;
  min-height: 2280px;
  padding: 60px 0 80px;
  border: 2px solid rgba(215,255,47,.34);
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    rgba(255,255,255,.025);
  background-size: 56px 56px;
  overflow: hidden;
}

.route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .9;
  pointer-events: none;
}

.route path {
  fill: none;
  stroke: rgba(215,255,47,.42);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 20 18;
  filter: drop-shadow(0 0 12px rgba(215,255,47,.32));
  animation: routeFlow 8s linear infinite;
}

@keyframes routeFlow {
  to { stroke-dashoffset: -220; }
}

.map-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 24px 20px;
  padding: 0 clamp(18px, 4vw, 70px);
}

.level {
  position: relative;
  min-height: 142px;
  padding: 14px;
  color: #fff;
  background: #101010;
  border: 2px solid #262626;
  box-shadow: 6px 6px 0 #000;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.level:nth-child(12n + 2),
.level:nth-child(12n + 8) {
  transform: translateY(34px);
}

.level:nth-child(12n + 5),
.level:nth-child(12n + 11) {
  transform: translateY(-22px);
}

.level:hover {
  z-index: 5;
  border-color: var(--lime);
  transform: translate(-3px, -3px) scale(1.03);
}

.level.completed {
  color: #000;
  background: var(--lime);
  border-color: var(--lime);
}

.level.hidden {
  display: none;
}

.level-number {
  display: block;
  font-size: 38px;
  line-height: .9;
}

.level-date {
  display: block;
  margin: 10px 0 6px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.completed .level-date {
  color: #000;
}

.level-focus {
  display: block;
  min-height: 34px;
  color: #d9d9d0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.completed .level-focus {
  color: #101010;
}

.level-phase {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.completed .level-phase {
  color: #1a1a1a;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
}

.day-sheet {
  position: fixed;
  z-index: 30;
  right: 0;
  top: 0;
  width: min(760px, 100vw);
  height: 100vh;
  color: #111;
  background: var(--paper);
  box-shadow: -24px 0 80px rgba(0,0,0,.55);
  transform: translateX(105%);
  transition: transform .28s ease;
  overflow-y: auto;
}

.day-sheet.open {
  transform: translateX(0);
}

.close {
  position: sticky;
  top: 16px;
  float: right;
  z-index: 4;
  width: 46px;
  height: 46px;
  margin: 16px;
  border: 2px solid #111;
  color: #111;
  background: var(--lime);
  box-shadow: 5px 5px 0 #111;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.sheet-hero {
  min-height: 280px;
  padding: 56px 34px 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0,0,0,.96), rgba(0,0,0,.78)),
    repeating-linear-gradient(-18deg, transparent 0 22px, rgba(215,255,47,.08) 23px 24px);
}

.sheet-kicker {
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.sheet-title {
  margin: 18px 0 10px;
  font-size: clamp(54px, 10vw, 92px);
  line-height: .86;
}

.sheet-subtitle {
  max-width: 580px;
  color: #ddd;
  font-size: 16px;
  line-height: 1.5;
}

.sheet-body {
  display: grid;
  gap: 18px;
  padding: 26px 26px 80px;
}

.sheet-card {
  padding: 20px;
  background: #fff;
  border: 2px solid #111;
  box-shadow: 6px 6px 0 #111;
}

.sheet-card.lime {
  background: var(--lime);
}

.sheet-card.black {
  color: #fff;
  background: #111;
}

.sheet-card h3 {
  margin: 0 0 14px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 32px;
  line-height: .95;
  text-transform: uppercase;
}

.time-grid,
.target-grid,
.check-grid {
  display: grid;
  gap: 10px;
}

.time-grid {
  grid-template-columns: 90px 1fr;
}

.time-grid strong {
  color: #111;
  font-weight: 950;
}

.black .time-grid strong {
  color: var(--lime);
}

.time-grid span,
.exercise-row,
.meal-row,
.sheet-card p {
  font-size: 14px;
  line-height: 1.45;
}

.exercise-row,
.meal-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(0,0,0,.16);
}

.black .exercise-row {
  border-color: rgba(255,255,255,.16);
}

.exercise-row b,
.meal-row b {
  text-transform: uppercase;
}

.target-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.target-grid div,
.check-grid label {
  padding: 12px;
  color: #111;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.18);
  font-weight: 900;
  text-transform: uppercase;
}

.check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-grid input {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: var(--lime);
}

.complete-btn {
  width: 100%;
  margin-top: 6px;
}

@media (max-width: 980px) {
  .hero-grid,
  .rules {
    grid-template-columns: 1fr;
  }

  .rule-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .map-grid {
    grid-template-columns: repeat(4, minmax(90px, 1fr));
  }
}

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

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 10px;
  }

  .hero-grid {
    padding-top: 44px;
  }

  .ticker {
    justify-content: flex-start;
    overflow: hidden;
  }

  .rule-cards,
  .setup-grid,
  .target-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .day-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-shell {
    min-height: 3160px;
  }

  .map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .level:nth-child(n) {
    transform: none;
  }

  .sheet-body {
    padding: 20px 16px 70px;
  }

  .sheet-hero {
    padding-left: 20px;
    padding-right: 20px;
  }
}
