:root {
  --bg: #00354a;
  --nav: #062f43;
  --card: #fff;
  --ink: #202638;
  --muted: #5f6675;
  --brand: #12aeea;
  --pink: #e41683;
  --line: #e7e7ea;
  --on-dark: #f5fbff;
  --on-dark-muted: #c6dce6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
}
a {
  color: var(--brand);
  text-decoration: none;
}
.wrap {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}
.top {
  height: 92px;
  background: var(--nav);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 0 70px;
}
.brand {
  font-size: 30px;
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
}
.brand::first-letter {
  color: white;
}
.top .row {
  position: relative;
}
.top .row a {
  font-weight: 700;
  color: var(--brand);
  padding: 14px 10px;
}
.year-menu {
  position: relative;
  color: var(--brand);
  font-weight: 700;
}
.year-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
}
.year-menu summary::-webkit-details-marker {
  display: none;
}
.year-menu summary::after {
  content: '⌄';
  margin-left: 8px;
  font-size: .8em;
}
.year-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 250px;
  background: #202636;
  color: white;
  z-index: 50;
  box-shadow: 0 10px 28px #0005;
}
.year-dropdown a,
.year-dropdown span {
  display: block;
  color: white !important;
  padding: 16px 18px;
  border-bottom: 1px solid #3a4152;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.year-dropdown a:hover {
  background: #2b3346;
  color: #7ddcff !important;
}
.wrap > h1,
.wrap > p {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  color: var(--on-dark);
}
.wrap > p {
  color: var(--on-dark-muted);
}
.wrap > p a {
  color: #7ddcff;
}
.wrap > form {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  padding: 28px 38px;
}
.wrap > .grid,
.wrap > .camp-grid,
.wrap > .photos,
.wrap > .gallery,
.wrap > .table {
  max-width: 1500px;
  width: calc(100% - 96px);
  margin-left: auto;
  margin-right: auto;
}
.wrap > hr {
  max-width: 1500px;
  width: calc(100% - 96px);
}
.card h1,
.card h2,
.hero h1,
.intro-card h1,
.intro-card h2 {
  color: var(--ink);
}
.admin-year {
  margin-top: 26px;
  margin-bottom: 26px;
  border-top: 8px solid var(--brand);
}
.admin-year-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.admin-year-head h2,
.admin-year > h2 {
  font-size: 34px;
  margin: 0;
}
.admin-year .grid {
  max-width: none;
  width: 100%;
}
.site-hero {
  background: #f4f4f5;
  text-align: center;
  padding: 42px 18px;
}
.site-hero h1 {
  font-size: 40px;
  margin: 0;
  font-weight: 900;
}
.intro-card,
.year-section,
.card,
.hero {
  max-width: 1500px;
  margin: 0 auto;
  background: #fff;
}
.intro-card {
  margin-top: 0;
  padding: 42px 48px;
  font-size: 22px;
  line-height: 1.7;
}
.year-section {
  padding: 25px 48px 54px;
}
.year-section h2 {
  font-size: 34px;
  margin: 0 0 22px;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 54px 20px;
}
.week-card {
  display: block;
  color: var(--ink);
}
.week-card h3 {
  font-size: 25px;
  margin: 0 0 8px;
  font-weight: 900;
}
.week-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 24px;
}
.week-card::after {
  content: "";
  display: block;
  height: 160px;
  border: 4px solid var(--pink);
  background: linear-gradient(135deg, #b8e1f2, #7bc46f);
  margin-top: 8px;
}
.admin-week-card {
  background: #fff;
}
.admin-week-card::after {
  background:
    linear-gradient(135deg, rgba(18, 174, 234, .35), rgba(228, 22, 131, .18)),
    repeating-linear-gradient(45deg, #eef7fb 0 18px, #f9fbff 18px 36px);
}
.admin-week-card:hover::after {
  border-color: var(--brand);
}
.admin-week-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.card {
  border: 0;
  border-radius: 0;
  padding: 28px 38px;
  box-shadow: none;
}
.hero {
  max-width: 560px;
  margin: 8vh auto;
  padding: 30px;
  border-radius: 2px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.camp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.camp-card {
  display: block;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
}
.camp-card:hover h2 {
  text-decoration: underline;
}
.camp-card img,
.camp-empty {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #fce7f3);
  border: 4px solid var(--pink);
  font-weight: 900;
}
.camp-card div:not(.camp-empty) {
  padding: 22px 24px;
}
.camp-card h2 {
  margin: 0 0 6px;
  font-size: 25px;
}
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.photo {
  display: block;
  aspect-ratio: 1/1;
  background: #ddd;
  overflow: hidden;
  border: 3px solid var(--pink);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery {
  columns: 4 220px;
  column-gap: 14px;
}
.gallery-photo {
  display: block;
  break-inside: avoid;
  margin: 0 0 14px;
  overflow: hidden;
  background: #ddd;
  border: 4px solid var(--pink);
}
.gallery-photo img {
  width: 100%;
  display: block;
}
.gallery > .card {
  display: inline-block;
  width: 100%;
  break-inside: avoid-column;
  color: var(--ink);
}
.gallery-viewer {
  max-width: 1500px;
  width: calc(100% - 96px);
  margin: 0 auto 40px;
  color: var(--on-dark);
}
.gallery-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
  font-weight: 800;
}
.gallery-topbar a,
.gallery-topbar span {
  color: var(--on-dark);
}
.stage {
  position: relative;
  background: #061f2d;
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.stage-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}
.stage-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 47, 67, .78);
  color: white;
  font-size: 64px;
  line-height: 1;
  z-index: 2;
  transition: background .15s;
}
.stage-nav:hover {
  background: rgba(18, 174, 234, .9);
  color: white;
}
.stage-nav.prev { left: 0; }
.stage-nav.next { right: 0; }
.stage-nav.disabled { display: none; }
.filmstrip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 2px 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.film-thumb {
  flex: 0 0 104px;
  height: 74px;
  border: 3px solid transparent;
  background: #fff;
  scroll-snap-align: center;
  opacity: .72;
}
.film-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.film-thumb.active {
  border-color: var(--pink);
  opacity: 1;
}
.viewer-date {
  color: var(--on-dark-muted) !important;
}
.viewer-photo {
  background: #062f43;
  padding: 10px;
  text-align: center;
}
.muted {
  color: var(--muted);
}
input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font: inherit;
  background: white;
}
label {
  display: block;
  font-weight: 750;
  margin: 14px 0 6px;
}
.btn,
button {
  display: inline-block;
  border: 0;
  border-radius: 2px;
  padding: 11px 15px;
  background: var(--brand);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
.btn.secondary,
button.secondary {
  background: #374151;
}
.btn.danger,
button.danger {
  background: #b91c1c;
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.full {
  max-width: 100%;
  max-height: 78vh;
  background: white;
}
.notice {
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  margin-bottom: 16px;
}
.err {
  background: #fef2f2;
  border-color: #fecaca;
}
.progress-wrap {
  margin: 14px 0;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid var(--line);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}
progress {
  width: 100%;
  height: 18px;
  accent-color: var(--brand);
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: var(--ink);
}
.table td,
.table th {
  border-bottom: 1px solid var(--line);
  padding: 16px 12px;
  text-align: left;
  color: var(--ink);
}
.table th {
  font-weight: 900;
}
.table form {
  margin: 0;
}
@media (max-width: 900px) {
  .top {
    padding: 0 24px;
  }
  .wrap > .grid,
  .wrap > .camp-grid,
  .wrap > .photos,
  .wrap > .gallery,
  .wrap > .table,
  .wrap > hr {
    width: calc(100% - 32px);
  }
  .week-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .intro-card,
  .year-section {
    padding: 28px 24px;
  }
  .gallery {
    columns: 2 140px;
  }
}
@media (max-width: 650px) {
  .top {
    display: flex;
    height: auto;
    padding: 18px 20px;
    align-items: flex-start;
    gap: 12px;
  }
  .brand {
    display: block;
    margin-bottom: 0;
    font-size: 24px;
  }
  .top .row {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
  .year-menu summary {
    padding: 4px 0 8px 12px;
  }
  .year-dropdown {
    position: absolute;
    right: 0;
    left: auto;
    top: 100%;
    width: min(280px, calc(100vw - 24px));
    min-width: 0;
    margin-top: 4px;
    text-align: left;
  }
  .year-dropdown a,
  .year-dropdown span {
    white-space: normal;
  }
  .week-grid {
    grid-template-columns: 1fr;
  }
  .gallery-viewer {
    width: 100%;
    margin-bottom: 20px;
  }
  .gallery-topbar {
    padding: 0 12px;
    font-size: 14px;
  }
  .stage {
    min-height: 52vh;
  }
  .stage-img {
    max-height: 62vh;
  }
  .stage-nav {
    width: 44px;
    height: 72px;
    font-size: 52px;
    background: rgba(6, 47, 67, .62);
  }
  .filmstrip {
    padding: 12px;
    gap: 8px;
  }
  .film-thumb {
    flex-basis: 78px;
    height: 58px;
  }
  .viewer-date {
    padding: 0 12px;
  }
  body {
    font-size: 16px;
  }
}
