* {
  box-sizing: border-box;
}

/* ---------- Layout / Global ---------- */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 45%, #020617 100%);
  color: #e5e7eb;
  margin: 0;
  padding: 2rem 1rem 3rem;
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 1100px;
}

/* ---------- Typography ---------- */

h1 {
  text-align: center;
  margin-bottom: 0.35rem;
  color: #7dd3fc;
  letter-spacing: 0.03em;
  font-weight: 650;
}

.subtitle {
  position: sticky;
  top: 0rem;
  z-index: 20;
  text-align: center;
  margin: 0 auto 1.75rem;
  margin-top: 20px;
  max-width: 850px;
  opacity: 90%;

  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  background: radial-gradient(circle at top left,
              rgba(15, 23, 42, 0.98),
              rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(27, 45, 71, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  color: #cbd5f5;
  font-size: 0.75rem;
}

/* Container must remain sticky */
.sticky-subtitle {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0e121c;
  padding: 0.75rem 2.2rem 1.2rem 0.75rem; /* space for icon */
}

/* Subtitle is already sticky via .sticky-subtitle in your CSS.
   This class will turn OFF sticking after dismiss. */
.sticky-subtitle.subtitle-no-sticky {
  top: auto;
}

/* Dismiss button in the bottom-right corner INSIDE the subtitle box */
.subtitle-dismiss {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #f1a248;
  opacity: 0.8;
  font-size: 12px;
}

.subtitle-dismiss:hover {
  opacity: 1;
}

/* SVG icon inside button */
.dismiss-icon {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* When button is dismissed, hide ONLY the button */
.subtitle-dismiss.hidden {
  display: none;
}


/* ---------- Card ---------- */

.card {
  background: radial-gradient(circle at top left, #020617 0%, #020617 45%, #020617 100%);
  border-radius: 0.9rem;
  padding: 1.6rem 1.4rem 1.4rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
  color: #f9fafb;
}

.card .meta {
  font-size: 0.84rem;
  color: #9ca3af;
  margin-bottom: 0.9rem;
}

/* ---------- Table ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  border-radius: 0.6rem;
  overflow: hidden;
}

thead {
  background: rgb(92 100 119 / 90%);
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

th,
td {
  padding: 0.5rem 0.6rem;
  font-size: 0.83rem;
  text-align: left;
}

td {
  position: relative;
}

th {
  font-weight: 600;
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  text-align: center;
}

tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.9);
}

tbody tr:nth-child(even) {
  background: rgb(26 35 55 / 95%);
}

tbody tr:hover {
  background: rgba(30, 64, 175, 0.35);
}

/* ---------- Cells / Inputs ---------- */

.hours-cell {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  position: relative;
}

input.hours-input {
  width: 100%;
  padding: 0.3rem 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(51, 65, 85, 0.95);
  background: #020617;
  color: #f9fafb;
  font-size: 0.85rem;
  z-index: 2;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

input.hours-input::placeholder {
  color: #6b7280;
}

input.hours-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.8),
              0 0 18px rgba(56, 189, 248, 0.35);
  background-color: #020617;
}

.mod-label {
  font-size: 0.74rem;
  color: #9ca3af;
  z-index: 2;
}

/* ---------- Date column ---------- */

span.date {
  font-weight: 600;
}

td .dow,
td .date {
  display: block;
  line-height: 1.2;
  z-index: 2;
}

/* ---------- Summary chips ---------- */

.summary {
  margin-top: 0.9rem;
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.summary span {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.summary strong {
  color: #e5e7eb;
}

.highlight {
  color: #4ade80;
}

.due {
  color: #facc15;
  font-weight: 500;
}

.hrsrqd {
  color: #4ade80;
  font-weight: 600;
}

/* ---------- Disclaimer / Footer ---------- */

.disclaimer {
  max-width: 900px;
  margin: 0 auto 1.15rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(248, 180, 75, 0.8);
  background: linear-gradient(
    135deg,
    rgba(18, 28, 60, 0.85),
    rgba(17, 24, 39, 0.95)
  );
  font-size: 0.8rem;
  color: #e5e7eb;
  text-align: center;
}

/* Discord link */

.discord-link {
  color: #f1a248;
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transform: translateY(2px);
}

.discord-link:hover {
  opacity: 0.9;
}

.discord-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: middle;
  filter: invert(80%) saturate(180%) brightness(120%);
  opacity: 0.95;
  transform: translateY(1px);
}

/* ---------- Christmas row + snow ---------- */

/* Row itself (keeps border and sits above snow) */
.christmas-row {
  position: relative;
  outline: 2px solid rgba(48, 217, 39, 0.55);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.65);
}

/* Overlay that sits behind the Dec 25 row inside the card */
.christmas-snow-overlay {
  position: absolute;
  pointer-events: none;
  overflow: hidden;
  z-index: 1; /* behind row content; we'll put the row above */
}

/* Snowflakes */
.christmas-snow-overlay .snowflake {
  position: absolute;
  top: -20%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  animation: christmasSnow 10s linear infinite;
}

/* Big travel distance so they pass fully through on all browsers */
@keyframes christmasSnow {
  0% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(2000%);
  }
}

/* Make flakes larger on mobile for visibility */
@media (max-width: 800px) {
  .christmas-snow-overlay .snowflake {
    width: 4px;
    height: 4px;
  }
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 800px) {
  body {
    padding: 1.25rem 0.75rem 2.25rem;
  }

  .card {
    padding: 1.35rem 1.05rem 1.15rem;
    border-radius: 0.8rem;
    position: relative;
  }

  th:nth-child(2),
  td:nth-child(2) {
    width: 26%;
  }
  th:nth-child(3),
  td:nth-child(3) {
    width: 26%;
  }

  h1 {
    font-size: 1.25rem;
  }

  .subtitle {
    font-size: 0.85rem;
  }
}

h1,
.disclaimer {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.scrolled h1,
body.scrolled .disclaimer {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

