:root {
  --bg: #0b0f17;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.60);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;

  --accent: #8bd3ff;
  --accent-2: #b8f2d1;
  --danger: #ff6b6b;

  --maxw: 1050px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 20% 0%, rgba(139, 211, 255, 0.12), transparent 55%),
    radial-gradient(900px 600px at 90% 30%, rgba(184, 242, 209, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: #ffffff;
  color: #000000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
  outline: 3px solid #000000;
  outline-offset: 2px;
}

.hero {
  position: relative;
  min-height: 44vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 18px 44px;
  overflow: hidden;

  background-image: url("https://i.imgur.com/uqYLVp9.png");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -12px;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  filter: blur(12px);
  opacity: 0.25;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 14px;
}

.hero__title {
  margin: 0;
  font-size: clamp(1.65rem, 3.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.hero__subtitle {
  margin: 10px 0 0;
  font-size: clamp(1.05rem, 2.0vw, 1.35rem);
  color: var(--muted);
  font-weight: 600;
}

.main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 18px 36px;
}

/* ===== Index weeks grid ===== */

.weeks__header {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.weeks__title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.weeks__hint {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.98rem;
}

.status {
  margin: 12px 0 14px;
  color: var(--muted);
  min-height: 1.2em;
}

.status.is-error {
  color: #ffd1d1;
}

.weeks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.week-card {
  display: block;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  text-decoration: none;
  color: var(--text);
  padding: 16px 14px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  min-height: 84px;
}

.week-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, var(--panel-strong), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow);
}

.week-card:focus-visible {
  outline: 3px solid rgba(139, 211, 255, 0.75);
  outline-offset: 3px;
}

.week-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.week-card__label {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.week-card__dates {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.85);
  background: rgba(139, 211, 255, 0.95);
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
}

.week-card.is-current {
  border-color: rgba(139, 211, 255, 0.70);
  box-shadow: 0 0 0 1px rgba(139, 211, 255, 0.25), 0 10px 34px rgba(139, 211, 255, 0.18);
}

/* ===== Week pages ===== */

.week-header {
  margin: 10px 0 18px;
}

.week-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.week-dates {
  margin: 6px 0 0;
  color: var(--muted);
}

.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 18px;
}

.page-nav--bottom {
  margin-top: 18px;
}

.nav-group {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;

  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.nav-link:focus-visible {
  outline: 3px solid rgba(139, 211, 255, 0.75);
  outline-offset: 3px;
}

.nav-link.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.card {
  margin: 0 0 16px;
  padding: 16px;

  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.03));
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.game-embed {
  margin-top: 10px;
  padding: 14px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

.empty-state {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.muted {
  color: var(--muted);
  margin: 6px 0 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Optional: nicer embedded slides */
.card iframe {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}

/* ===== Footer ===== */

.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 18px 26px;
  color: var(--muted-2);
  font-size: 0.95rem;
}

.footer p {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 14px;
}

/* ===== Misc ===== */

.noscript {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .week-card {
    transition: none;
  }
  .week-card:hover {
    transform: none;
  }
}

/* Mobile layout tweaks */
@media (max-width: 520px) {
  .page-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-group {
    width: 100%;
    justify-content: space-between;
  }

  .nav-link {
    width: 100%;
  }
}

/* Slides container (matches the look of .game-embed) */
.slides-embed {
  margin-top: 10px;
  padding: 14px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

/* Optional: nicer embedded slides */
.card iframe {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}
