:root {
  color-scheme: dark;
  --bg: #0a0f1e;
  --panel: #111729;
  --panel-strong: #192139;
  --line: rgba(255, 255, 255, 0.13);
  --text: #ffffff;
  --muted: #bfc5d4;
  --accent-left: #ff0073;
  --accent-right: #bf00ff;
  --accent-gradient: linear-gradient(90deg, var(--accent-left), var(--accent-right));
  --starter: #ff0073;
  --experienced: #df00b9;
  --mastery: #bf00ff;
}

.admin-timer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.admin-timer h3 { margin: 0 0 8px; }
.admin-timer output { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.admin-timer__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-timer button:disabled { opacity: 0.45; cursor: default; }
.admin-timer__edit { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; width: 100%; }
.admin-timer__edit label { display: grid; gap: 6px; font-size: 0.85rem; }
.admin-timer__edit input { width: 100px; max-width: 100%; padding: 10px; background: var(--panel-strong); color: var(--text); border: 1px solid var(--line); }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  isolation: isolate;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("https://firebasestorage.googleapis.com/v0/b/standards-site-beta.appspot.com/o/documents%2Fbug2t2rbfk3%2F96294f6f814%2FWalkout_Shot_01_4k_v001_1789482723536_2500x2500.png?alt=media&token=191d5b787f5") center / cover no-repeat;
  opacity: 0.1;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.hero,
.admin-hero {
  min-height: clamp(430px, 72vh, 680px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: end;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  background:
    var(--accent-gradient) top / 100% 4px no-repeat,
    rgba(10, 15, 30, 0.3);
}

.admin-hero {
  min-height: auto;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(3.3rem, 9vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__copy {
  max-width: 630px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.55;
}

.timer-panel,
.progress-strip,
.category,
.admin-panel,
.login-form {
  border: 1px solid var(--line);
  background: rgba(17, 23, 41, 0.76);
  backdrop-filter: blur(14px);
}

.timer-panel {
  padding: 22px;
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(17, 23, 41, 0.55));
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.timer-panel__top,
.category__header,
.admin-panel__header,
.login-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.timer-panel__top {
  color: var(--muted);
  font-size: 0.88rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill--live {
  border-color: rgba(37, 196, 107, 0.55);
  background: rgba(37, 196, 107, 0.18);
  color: #8effbd;
}

.status-pill--offline {
  border-color: rgba(255, 255, 255, 0.16);
  color: #d9ded8;
}

.timer {
  margin: 34px 0 8px;
  font-variant-numeric: tabular-nums;
  font-size: clamp(3rem, 8vw, 5.3rem);
  font-weight: 900;
  line-height: 1;
}

.timer-panel__detail,
.admin-panel p {
  color: var(--muted);
}

.progress-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0;
}

.progress-strip > div {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.progress-strip > div:last-child {
  border-right: 0;
}

.progress-strip span {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}

.progress-strip small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

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

.category {
  border-top-width: 5px;
}

.category--starter {
  border-top-color: var(--starter);
}

.category--experienced {
  border-top-color: var(--experienced);
}

.category--mastery {
  border-top-color: var(--mastery);
}

.category__header {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.category__header h2,
.admin-panel h2,
.admin-category h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.category__header span {
  color: var(--muted);
  font-weight: 800;
}

.challenge-list {
  display: grid;
}

.challenge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.challenge:last-child {
  border-bottom: 0;
}

.challenge__number {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
}

.challenge__title {
  line-height: 1.3;
}

.challenge__mark {
  display: grid;
  place-items: center;
  color: #8effbd;
  font-size: 1.25rem;
  font-weight: 900;
}

.challenge--complete {
  background: rgba(37, 196, 107, 0.11);
}

.challenge--complete .challenge__title {
  text-decoration: line-through;
  color: #d9e7d8;
}

.admin-shell {
  max-width: 980px;
}

.login-form {
  padding: 20px;
}

.login-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.login-form input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  padding: 0 12px;
}

button {
  min-height: 44px;
  border: 0;
  background: var(--accent-gradient);
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.08);
}

.admin-panel {
  margin-top: 24px;
}

.admin-panel__header {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-lists {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.admin-category {
  border: 1px solid var(--line);
}

.admin-category h3 {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-category__items {
  display: grid;
}

.admin-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.admin-item:last-child {
  border-bottom: 0;
}

.admin-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-left);
}

.graphic-page {
  min-height: 100vh;
  overflow: hidden;
  background: transparent;
}

.graphic {
  width: min(100vw, 1920px);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  align-content: end;
  padding: 32px;
  background: transparent;
}

.graphic__timer,
.graphic__progress,
.graphic__categories,
.graphic__challenges {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 11, 10, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.graphic__timer {
  grid-row: span 2;
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 168px;
  padding: 24px;
}

.graphic__live {
  color: #8effbd;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.graphic__time {
  font-variant-numeric: tabular-nums;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 950;
  line-height: 0.95;
}

.graphic__progress,
.graphic__categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.graphic__progress > div,
.graphic__categories > div {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.graphic__progress > div:last-child,
.graphic__categories > div:last-child {
  border-right: 0;
}

.graphic__progress span,
.graphic__categories strong {
  display: block;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 950;
  line-height: 1;
}

.graphic__progress small,
.graphic__categories span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.graphic__challenges {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: 455px;
  overflow: hidden;
}

.graphic-challenge {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.graphic-challenge span {
  display: grid;
  place-items: center;
  width: 30px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 950;
}

.graphic-challenge strong {
  min-width: 0;
  font-size: clamp(0.75rem, 1.15vw, 1.02rem);
  line-height: 1.18;
}

.graphic-challenge--complete {
  background: rgba(37, 196, 107, 0.18);
}

.graphic-challenge--complete span {
  border-color: rgba(37, 196, 107, 0.55);
  color: #8effbd;
}

.graphic-challenge--complete strong {
  color: #dff8e6;
}

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

  .hero {
    min-height: 720px;
  }

  .timer-panel {
    align-self: stretch;
  }
}

@media (max-width: 580px) {
  .shell {
    width: min(100% - 20px, 1160px);
    padding: 10px 0 24px;
  }

  .hero,
  .admin-hero {
    padding: 22px;
  }

  h1 {
    font-size: clamp(2.7rem, 17vw, 4.4rem);
  }

  .progress-strip {
    grid-template-columns: 1fr;
  }

  .progress-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .progress-strip > div:last-child {
    border-bottom: 0;
  }

  .timer-panel__top,
  .admin-panel__header,
  .login-form__row {
    align-items: stretch;
    flex-direction: column;
  }

  .login-form__row button,
  .admin-panel__header button {
    width: 100%;
  }

  .graphic {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .graphic__timer {
    grid-row: auto;
  }

  .graphic__challenges {
    grid-template-columns: 1fr;
    max-height: none;
  }
}
