:root {
  --bg: #0b0f0b;
  --panel: #0e130d;
  --panel-raised: #101a0e;
  --line: #1c241a;
  --line-bright: #2a3626;
  --green: #7fc95a;
  --blue: #7db2dc;
  --text: #e8f0e2;
  --text-soft: #dfe8da;
  --muted: #94a68c;
  --muted-dim: #7a8a72;
  --muted-dark: #5a6852;
  --day-num: #71816a;
  --day-empty: #33402e;
}

* { box-sizing: border-box; }

/* Must beat the display:flex/grid rules below, or [hidden] elements still show. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Rubik', sans-serif;
}

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

.icon { flex-shrink: 0; }

@keyframes fogDrift {
  0%   { transform: translateX(-10%); }
  50%  { transform: translateX(10%); }
  100% { transform: translateX(-10%); }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: .4; }
  94% { opacity: 1; }
  96% { opacity: .6; }
  97% { opacity: 1; }
}
@keyframes floatUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Layout */
.page {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.fog {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.fog__layer { position: absolute; }
.fog__layer--top {
  top: -30%;
  left: -10%;
  width: 120%;
  height: 70%;
  background: radial-gradient(ellipse at 60% 50%, rgba(127, 201, 90, .07), transparent 60%);
  animation: fogDrift 16s ease-in-out infinite;
}
.fog__layer--bottom {
  bottom: -30%;
  right: -15%;
  width: 120%;
  height: 60%;
  background: radial-gradient(ellipse at 40% 50%, rgba(127, 201, 90, .04), transparent 60%);
  animation: fogDrift 22s ease-in-out infinite reverse;
}

.shell {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 25px;
  color: var(--text-soft);
  letter-spacing: 3px;
}
.logo__dot { color: var(--green); }

.header__links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-raised);
  padding: 8px 16px;
  border-radius: 3px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: box-shadow .2s ease;
}
.chip--blue { border: 1px solid var(--blue); color: var(--blue); }
.chip--blue:hover { box-shadow: 0 0 20px rgba(125, 178, 220, .3); }
.chip--green { border: 1px solid var(--green); color: var(--green); }
.chip--green:hover { box-shadow: 0 0 20px rgba(127, 201, 90, .3); }

/* Hero */
.hero {
  padding: 52px 0 40px;
  animation: floatUp .6s ease both;
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.hero__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: flicker 4s linear infinite;
}
.hero__next {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--green);
  letter-spacing: 2px;
}
.hero__title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 44px;
  line-height: 1.08;
  color: var(--text);
  margin: 0 0 14px;
  text-shadow: 0 0 40px rgba(127, 201, 90, .2);
}
.hero__desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 500px;
  margin: 0 0 18px;
}
.hero__tags { display: flex; gap: 12px; flex-wrap: wrap; }

.tag {
  border: 1px solid currentColor;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 2px;
}
.tag--muted {
  border-color: var(--line-bright);
  color: var(--muted-dim);
}

/* Notices */
.notice {
  margin-top: 14px;
  border: 1px solid rgba(224, 122, 106, .4);
  background: rgba(224, 122, 106, .07);
  border-radius: 4px;
  padding: 12px 16px;
  color: #e07a6a;
  font-size: 13px;
  line-height: 1.5;
}
.notice--info {
  border-color: var(--line-bright);
  background: var(--panel);
  color: var(--muted);
}
.notice code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-soft);
}

/* Calendar */
.calendar { padding-bottom: 36px; }
.calendar__bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.monthnav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.monthnav__btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  color: var(--green);
  cursor: pointer;
  border: 1px solid var(--line-bright);
  border-radius: 3px;
  padding: 2px 12px;
  background: transparent;
  line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.monthnav__btn:hover {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(127, 201, 90, .2);
}
.monthnav__label {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-soft);
  letter-spacing: 2px;
  min-width: 180px;
  text-align: center;
}

.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  font-family: 'IBM Plex Mono', monospace;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.grid__head {
  font-size: 11px;
  color: var(--muted-dark);
  text-align: center;
  padding: 8px 0;
  background: var(--panel);
}
.grid__head--weekend { color: var(--green); }

.grid__days {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.day {
  height: 64px;
  padding: 8px;
  font-size: 13px;
  color: var(--day-num);
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  text-align: left;
  font-family: inherit;
}
.day--empty { color: var(--day-empty); }
.day--today {
  color: var(--green);
  background: #14200f;
  box-shadow: inset 0 0 0 1px var(--green);
}
.day--event {
  color: var(--text);
  background: var(--panel-raised);
  cursor: pointer;
  box-shadow: inset 0 -2px 0 0 var(--event-color);
  transition: filter .15s ease;
}
.day--event:hover { filter: brightness(1.35); }
.day--event .day__num { font-weight: 700; }
.day--today.day--event { box-shadow: inset 0 0 0 1px var(--green), inset 0 -2px 0 0 var(--event-color); }

.day__event {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--event-color);
}
.day__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--event-color);
  box-shadow: 0 0 8px var(--event-color);
  flex-shrink: 0;
}
.day__label {
  font-size: 10px;
  letter-spacing: .3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.day__vod {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 8px;
  color: var(--event-color);
  text-shadow: 0 0 6px var(--event-color);
}
.day__today {
  font-size: 10px;
  color: var(--green);
}

/* Banners */
.banner {
  margin-bottom: 36px;
  background: var(--panel-raised);
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.banner--sponsor {
  background: linear-gradient(135deg, var(--panel-raised), var(--panel));
  border-color: rgba(125, 178, 220, .35);
}
.banner__title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 6px;
}
.banner__text {
  color: var(--muted);
  font-size: 14px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 3px;
  flex-shrink: 0;
  transition: box-shadow .2s ease;
}
.btn--green {
  background: rgba(127, 201, 90, .12);
  border: 1px solid var(--green);
  color: var(--green);
}
.btn--green:hover { box-shadow: 0 0 20px rgba(127, 201, 90, .3); }
.btn--blue {
  background: rgba(125, 178, 220, .12);
  border: 1px solid var(--blue);
  color: var(--blue);
}
.btn--blue:hover { box-shadow: 0 0 20px rgba(125, 178, 220, .3); }

/* Other pages */
.pages { padding-bottom: 48px; }
.pages__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted-dark);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.pages__row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.pagecard {
  flex: 1;
  min-width: 240px;
  background: var(--panel);
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color .2s ease, box-shadow .2s ease;
}
a.pagecard:hover {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(127, 201, 90, .15);
}
.pagecard__title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.pagecard__sub {
  font-size: 13px;
  color: var(--muted-dim);
  margin-top: 3px;
}
.pagecard__arrow {
  color: var(--green);
  font-size: 20px;
}
.pagecard--empty {
  border-style: dashed;
  justify-content: center;
  color: var(--muted-dark);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 5, .8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}
.modal__box {
  width: 480px;
  max-width: 90vw;
  background: var(--panel);
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  padding: 32px;
  box-shadow: 0 0 60px rgba(127, 201, 90, .15);
  animation: floatUp .25s ease both;
}
.modal__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.modal__close {
  color: var(--muted-dark);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  background: transparent;
  border: none;
  padding: 0;
  transition: color .2s ease;
}
.modal__close:hover { color: var(--green); }
.modal__title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.15;
}
.modal__when {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--green);
  margin-bottom: 16px;
}
.modal__desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.modal__vod {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  background: rgba(127, 201, 90, .12);
  border: 1px solid var(--green);
  color: var(--green);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 11px 20px;
  border-radius: 3px;
  transition: box-shadow .2s ease;
}
.modal__vod:hover { box-shadow: 0 0 20px rgba(127, 201, 90, .3); }

@media (max-width: 640px) {
  .hero__title { font-size: 32px; }
  .banner { padding: 20px; }
  .day { height: 56px; padding: 6px; }
  .monthnav__label { min-width: 120px; }
}
