html { font-size: 18px; }
:root {
  --bg-main: #0f1216;
  --bg-panel: #171d24;
  --bg-panel-soft: #131920;
  --bg-header: #090b0e;
  --text-main: #f2f6fb;
  --text-muted: #b8c2ce;
  --accent-cyan: #63efe6;
  --accent-blue: #83c7ff;
  --border-subtle: #2d3b49;
}
body {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  margin: 0;
  background: radial-gradient(circle at top, #151e29 0%, var(--bg-main) 30%, #0a0d10 100%);
  color: var(--text-main);
  line-height: 1.5;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

header {
  background: var(--bg-header);
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #1a222b;
}

a:focus-visible { outline: 2px solid #4da3ff; }

a {
  color: #4da3ff;
  text-decoration: none;
}

a:hover {
  color: #80c1ff;
  text-decoration: underline;
}

nav a {
  margin: 0 10px;
  color: var(--accent-cyan);
  text-decoration: none;
}

.auth-status {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #aaa;
}

/* Legacy hero used on a few pages (signin/donate) */
.hero {
  padding: 3rem;
  text-align: center;
  background: linear-gradient(45deg, #ff0080, #00ffff);
  color: #000;
}

/* Shared hero pattern for Home / Events / Games pages */
.page-hero {
  position: relative;
  padding: 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid #222;
}

.page-hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 10, 14, 0.88) 0%, rgba(12, 20, 28, 0.82) 45%, rgba(8, 18, 22, 0.9) 100%);
  z-index: 0;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3rem;
  min-height: 176px;
}

.page-hero-inner h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  color: #fff;
}

.page-hero-lead {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #e8f4f4;
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.page-hero-note {
  margin: 0;
  font-size: 0.95rem;
  color: #9cc;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* Per-page hero backdrops / text accents */
.page-hero--home .page-hero-backdrop {
  background: linear-gradient(45deg, #ff0080, #00ffff);
}
.page-hero--home .page-hero-inner h2 {
  color: #000;
  text-shadow: none;
}
.page-hero--home .page-hero-lead {
  color: #111;
  text-shadow: none;
}
.page-hero--home .page-hero-note {
  color: #1a2a2a;
  text-shadow: none;
}
.page-hero--home .page-hero-note a {
  color: #064a7a;
  font-weight: 600;
}
.page-hero--home .page-hero-note a:hover {
  color: #083060;
}
.page-hero--home .logo {
  width: 50%;
  height: auto;
}

.page-hero--events .page-hero-backdrop {
  background:
    linear-gradient(120deg, rgba(10, 10, 14, 0.88) 0%, rgba(12, 20, 28, 0.82) 45%, rgba(8, 18, 22, 0.9) 100%),
    url('../images/events-hero.svg') center center / cover no-repeat;
}
.page-hero--events .page-hero-lead {
  color: #e8f4f4;
}
.page-hero--events .page-hero-note {
  color: #9cc;
}

.page-hero--games .page-hero-backdrop {
  background:
    linear-gradient(120deg, rgba(16, 12, 10, 0.85) 0%, rgba(12, 18, 24, 0.82) 50%, rgba(14, 20, 16, 0.88) 100%),
    url('../images/games-hero.svg') center center / cover no-repeat;
}
.page-hero--games .page-hero-lead {
  color: #f7efe5;
}
.page-hero--games .page-hero-note {
  color: #d0c4b5;
}

.page-hero--about .page-hero-backdrop {
  background:
    linear-gradient(120deg, rgba(12, 14, 22, 0.88) 0%, rgba(12, 20, 28, 0.84) 50%, rgba(14, 20, 18, 0.9) 100%),
    url('../images/about-hero.svg') center center / cover no-repeat;
}
.page-hero--about .page-hero-lead {
  color: #dce8f4;
}
.page-hero--about .page-hero-note {
  color: #a9c0d6;
}

.page-hero--members .page-hero-backdrop {
  background:
    linear-gradient(120deg, rgba(14, 12, 20, 0.88) 0%, rgba(12, 18, 24, 0.84) 50%, rgba(18, 16, 16, 0.9) 100%),
    url('../images/members-hero.svg') center center / cover no-repeat;
}
.page-hero--members .page-hero-lead {
  color: #e4eeff;
}
.page-hero--members .page-hero-note {
  color: #b4c7de;
}

.page-hero--resources .page-hero-backdrop {
  background:
    linear-gradient(135deg, rgba(20, 40, 60, 0.92), rgba(10, 25, 35, 0.95)),
    radial-gradient(ellipse at 30% 20%, rgba(0, 255, 255, 0.12), transparent 55%);
}
.page-hero--resources .page-hero-lead {
  color: #e8f4ff;
}
.page-hero--resources .page-hero-note {
  color: #9ec5e8;
}
.page-hero--resources .page-hero-inner code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: #9ef0ff;
}

.page-hero--merch .page-hero-backdrop {
  background:
    linear-gradient(120deg, rgba(24, 16, 8, 0.9) 0%, rgba(34, 18, 18, 0.86) 50%, rgba(20, 12, 20, 0.9) 100%),
    radial-gradient(circle at 75% 25%, rgba(255, 200, 120, 0.2), transparent 48%);
}
.page-hero--merch .page-hero-lead {
  color: #ffe8cc;
}
.page-hero--merch .page-hero-note {
  color: #e5c7a1;
}

.page-hero--donate .page-hero-backdrop {
  background:
    linear-gradient(120deg, rgba(14, 28, 20, 0.88) 0%, rgba(10, 24, 28, 0.85) 48%, rgba(20, 14, 26, 0.9) 100%),
    radial-gradient(circle at 20% 25%, rgba(94, 238, 238, 0.12), transparent 40%);
}
.page-hero--donate .page-hero-lead {
  color: #dcf5ef;
}
.page-hero--donate .page-hero-note {
  color: #a9d7d0;
}

.donate-hero-inner {
  max-width: 48rem;
}

.donate-hero-logo {
  display: block;
  width: min(360px, 82%);
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 10px;
}

.donate-hero-actions {
  margin: 1rem 0 0;
}

.donate-content {
  max-width: 54rem;
  margin: 0 auto;
}

.donate-intro {
  margin-top: 0;
}

.donate-impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.donate-impact-item {
  padding: 0.85rem;
  border: 1px solid #333;
  border-radius: 8px;
  background: #161a1a;
}

.donate-impact-item h3 {
  margin: 0 0 0.45rem;
  color: #7de4db;
  font-size: 1.05rem;
}

.donate-impact-item p {
  margin: 0;
  color: #d6d6d6;
  font-size: 0.95rem;
}

.donate-levels {
  margin: 0.55rem 0 1.1rem;
}

.donate-levels li + li {
  margin-top: 0.3rem;
}

.donate-disclaimer {
  margin: 0.9rem 0 0;
  color: #aebcd0;
  font-size: 0.92rem;
}

.donate-cta-row {
  margin: 1.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.25rem;
}

.content {
  padding: 2rem;
}

.content--home {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.home-status {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: linear-gradient(180deg, #17212b 0%, var(--bg-panel-soft) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.home-status h3 {
  margin: 0 0 0.5rem;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.home-status p {
  margin: 0;
  color: #e2e8f0;
}

.home-heading {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.2rem;
  color: #f0f6ff;
}

.home-heading:first-of-type {
  margin-top: 0;
}

.home-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 0.35rem 0 0.25rem;
}

.home-explore-card {
  padding: 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: linear-gradient(180deg, #1a2129 0%, var(--bg-panel) 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.home-explore-card-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.home-explore-card-title a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.home-explore-card-title a:hover {
  text-decoration: underline;
  color: #80c1ff;
}

.home-explore-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.home-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.8rem;
  margin: 0.35rem 0 0.4rem;
}

.home-highlight-card {
  margin: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a2129 0%, var(--bg-panel) 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.home-highlight-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #10151b;
}

.home-highlight-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.home-highlight-trigger:focus-visible {
  outline: 2px solid #4da3ff;
  outline-offset: -2px;
}

.home-highlight-card figcaption {
  padding: 0.55rem 0.65rem;
  font-size: 0.9rem;
  color: #d7e0eb;
}

.home-highlights-message {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: #141b23;
  color: var(--text-muted);
}

.home-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(6, 9, 12, 0.88);
}

.home-lightbox[hidden] {
  display: none;
}

.home-lightbox-panel {
  width: fit-content;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  padding: 0.55rem;
  border: 1px solid #2e3e4d;
  border-radius: 10px;
  background: #0c1117;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-end;
}

.home-lightbox-image {
  display: block;
  width: auto;
  max-width: calc(100vw - 3.1rem);
  max-height: calc(100vh - 5.2rem);
  object-fit: contain;
  border-radius: 6px;
  background: #06090c;
}

.home-lightbox-close {
  padding: 0.2rem 0.45rem;
  border: 1px solid #3b5166;
  border-radius: 6px;
  background: #15212c;
  color: #d9e5f2;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.1;
  cursor: pointer;
}

.home-lightbox-close:hover {
  border-color: #4da3ff;
  color: #ffffff;
}

.home-support-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 0;
}

.cta-button {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #081018;
  background: linear-gradient(180deg, #7ff 0%, #40d9d2 100%);
  border: 1px solid #26b9b2;
  border-radius: 6px;
  text-decoration: none;
}

.cta-button:hover {
  color: #040810;
  background: linear-gradient(180deg, #7ff 0%, #3dd 100%);
  text-decoration: none;
}

.cta-button:focus-visible {
  outline: 2px solid #4da3ff;
  outline-offset: 2px;
}

.contact-block {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.contact-block li {
  margin: 0.4rem 0;
}

.contact-block-label {
  display: inline-block;
  min-width: 3.75rem;
  font-weight: 600;
  color: #c8c8c8;
}

.contact-preface {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #aaa;
}

.footer-links {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.95rem;
}

.footer-note {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #aaa;
}

.members-account-list {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: #d9d9d9;
}

.members-account-list li + li {
  margin-top: 0.35rem;
}

.members-auth-form,
.members-profile-form {
  display: grid;
  gap: 0.55rem;
  max-width: 26rem;
  margin: 1rem 0 0;
}

.members-auth-form[hidden],
.members-profile-form[hidden] {
  display: none !important;
}

.members-auth-form input,
.members-profile-form input {
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background: #131313;
  color: #f3f3f3;
}

.members-auth-form button,
.members-profile-form button,
#logout-btn {
  width: fit-content;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #0aa;
  background: #133;
  color: #dff;
  cursor: pointer;
}

.members-events-form-action {
  min-width: 8.5rem;
}

.members-dashboard {
  max-width: 56rem;
  margin: 0 auto;
}

.members-page-status {
  margin: 0 0 0.65rem;
  color: #a9d7d0;
}

/* Member dashboard: sidebar + panels */
.members-layout {
  display: grid;
  grid-template-columns: min(15rem, 34vw) 1fr;
  gap: 1.5rem 1.75rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  align-items: start;
}

.members-sidebar {
  position: sticky;
  top: 0.5rem;
}

.members-sidebar-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8a9a;
}

.members-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.members-sidebar-link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.75rem;
  text-align: left;
  font: inherit;
  font-size: 0.98rem;
  color: #c8dce8;
  background: #161c22;
  border: 1px solid #2a3540;
  border-radius: 6px;
  cursor: pointer;
}

.members-sidebar-link:hover {
  background: #1a222a;
  border-color: #3a4a58;
  color: #fff;
}

.members-sidebar-link:focus-visible {
  outline: 2px solid #4da3ff;
  outline-offset: 2px;
}

.members-sidebar-link.is-active {
  background: #0c2430;
  border-color: #0aa;
  color: #dff;
}

.members-panels {
  min-width: 0;
}

.member-panel {
  display: none;
}

.member-panel.is-active {
  display: block;
}

.member-panel > h3:first-child {
  margin-top: 0;
}

.member-panel h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: #dbe8f0;
}

.member-panel h3:first-of-type {
  margin-top: 0;
}

.member-panel-intro {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #9aa8b8;
}

.members-avatar-preview-wrap {
  margin: 0.5rem 0 0;
}

.members-avatar-preview {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #333;
  background: #0a0a0a;
}

.members-avatar-preview[hidden] {
  display: none;
}

.members-inline-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.members-ifpa-preview {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.3;
  word-break: normal;
  white-space: nowrap;
}

.members-ifpa-preview-label {
  display: inline;
  margin: 0 0.35rem 0 0;
  color: #8a9aaa;
  font-size: 0.85rem;
}

.members-ifpa-preview a {
  color: #7dd3fc;
}

@media (max-width: 680px) {
  .members-inline-link-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.membership-card {
  margin-top: 0.75rem;
  padding: 0.95rem;
  border: 1px solid #2f3f4f;
  border-radius: 8px;
  background: #141a1f;
}

.membership-card p {
  margin: 0.35rem 0;
}

.membership-card-note {
  color: #aebcd0;
  font-size: 0.92rem;
}

.membership-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 28rem;
}

.membership-actions-note {
  margin: 0;
  font-size: 0.88rem;
  color: #8a9aaa;
}

.membership-actions .members-sidebar-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.member-panel-placeholder {
  margin: 0.75rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px dashed #3a4555;
  border-radius: 8px;
  background: #12161c;
  color: #9aaab8;
  font-size: 0.95rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.members-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.65rem 1rem;
  margin: 0.5rem 0 0;
}

.members-admin-stat {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #2f3f4f;
  border-radius: 8px;
  background: #141a1f;
  font-size: 0.92rem;
}

.members-admin-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #dff;
  margin-bottom: 0.15rem;
}

.members-admin-toolbar {
  margin: 0.75rem 0 0;
}

.members-admin-table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 0;
  border: 1px solid #2a3540;
  border-radius: 8px;
}

.members-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.members-admin-table th,
.members-admin-table td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid #2a3540;
  vertical-align: top;
}

.members-admin-table th {
  background: #161c22;
  color: #aebcd0;
  font-weight: 600;
}

.members-admin-table tbody tr:last-child td {
  border-bottom: none;
}

.members-admin-role-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.members-admin-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #1a2630;
  border: 1px solid #334455;
  font-size: 0.85rem;
}

.members-admin-revoke {
  margin: 0;
  padding: 0 0.25rem;
  font: inherit;
  font-size: 0.8rem;
  color: #f9a8a8;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.members-admin-revoke:hover {
  color: #fecaca;
}

.members-admin-revoke:focus-visible {
  outline: 2px solid #4da3ff;
  outline-offset: 2px;
}

.members-profile-form select {
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background: #131313;
  color: #f3f3f3;
  max-width: 100%;
}

.members-profile-form-edit-target {
  border: 1px solid #3aa9ff;
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(26, 60, 89, 0.25);
  box-shadow: 0 0 0 3px rgba(58, 169, 255, 0.22);
  animation: membersEditTargetPulse 1.2s ease-out 1;
}

@keyframes membersEditTargetPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(58, 169, 255, 0.45);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(58, 169, 255, 0);
  }
}

.members-events-row-edit-target {
  animation: membersEventsRowFlash 1.3s ease-out 1;
}

.members-events-row-edit-target td {
  background: rgba(58, 169, 255, 0.16);
}

@keyframes membersEventsRowFlash {
  0% {
    box-shadow: inset 0 0 0 9999px rgba(58, 169, 255, 0.24);
  }
  100% {
    box-shadow: inset 0 0 0 9999px rgba(58, 169, 255, 0);
  }
}

@media (max-width: 700px) {
  .members-layout {
    grid-template-columns: 1fr;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .members-sidebar {
    position: static;
  }

  .members-sidebar-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .members-sidebar-link {
    width: auto;
    flex: 1 1 auto;
    min-width: 6.5rem;
    text-align: center;
  }
}

.content > h3:not(.home-heading) {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.2rem;
  color: #e8e8e8;
}

footer {
  text-align: center;
  padding: 1rem;
  background: var(--bg-header);
  border-top: 1px solid #1a222b;
}

#gallery {
  width: 100%;
  max-width: 800px;
  height: 400px;              /* force consistent height */
  margin: 20px auto;
  overflow: hidden;
  position: relative;
}

#gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* THIS is the magic */
  border-radius: 8px;
}

.event-image {
  display: block;
  max-width: 100%;
  width: 360px;
  height: auto;
  margin: 1rem 0;
  border-radius: 8px;
}

.events-empty-upcoming {
  margin: 0 0 1rem;
  color: #ccc;
}

.event-spotlight {
  margin: 1.5rem 0 1.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-subtle, #2d3b49);
  border-radius: 10px;
  background: linear-gradient(180deg, #1a2129 0%, #171d24 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.event-spotlight--after-calendar {
  margin-top: 2rem;
}

.event-spotlight-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.event-spotlight-logo {
  flex: 0 0 auto;
  width: auto;
  max-width: min(200px, 42vw);
  max-height: 120px;
  height: auto;
  object-fit: contain;
}

.event-spotlight-intro {
  flex: 1 1 220px;
  min-width: 0;
}

.event-spotlight-intro h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: #f0f6ff;
}

.event-spotlight-intro p {
  margin: 0;
  color: var(--text-muted, #b8c2ce);
  font-size: 0.95rem;
}

.event-spotlight-grid {
  display: grid;
  /* minmax(0, 1fr) lets columns shrink so large intrinsic image widths do not blow out the grid */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 700px) {
  .event-spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.event-spotlight-card {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--border-subtle, #2d3b49);
  border-radius: 8px;
  overflow: hidden;
  background: #10151b;
}

.event-spotlight-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

#events-container .event-card {
  margin: 0 0 0.9rem;
  padding: 0.85rem;
  border: 1px solid #2f2f2f;
  border-radius: 8px;
  background: #171717;
}

#events-container .event-card:last-child {
  margin-bottom: 0;
}

.events-upcoming-heading {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  color: #f2f7ff;
}

.events-upcoming-meta {
  margin: 0 0 0.85rem;
  color: #8fb5d8;
  font-size: 0.9rem;
}

.event-card-badge {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid #2d7083;
  border-radius: 999px;
  background: rgba(12, 93, 110, 0.25);
  color: #7de4db;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.event-card--upcoming {
  border-color: #2d7083;
  background: linear-gradient(180deg, #182022 0%, #171717 100%);
}

.event-card--past {
  border-color: #2b2b2b;
}

.events-past-toggle {
  margin: 1.25rem 0 0;
  padding: 0.5rem 1rem;
  font: inherit;
  color: #0ff;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
}

.events-past-toggle:hover {
  color: #80c1ff;
  border-color: #555;
}

.events-past-region {
  margin-top: 1rem;
}

.events-past-heading {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.events-past-year-nav {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.events-past-year-arrow {
  flex: 0 0 auto;
  min-width: 2.5rem;
  padding: 0.4rem 0.5rem;
  font: inherit;
  color: #0ff;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
}

.events-past-year-arrow:hover:not(:disabled) {
  color: #80c1ff;
  border-color: #555;
}

.events-past-year-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.events-past-year-tabs {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.1rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.events-past-year-tab {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.9rem;
  color: #ccc;
  background: #171717;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.events-past-year-tab:hover {
  border-color: #555;
  color: #eee;
}

.events-past-year-tab-selected {
  color: #0ff;
  border-color: #0aa;
  background: #142020;
}

.events-past-year-panel {
  margin-top: 0.25rem;
}

.events-past-current-year {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: #80c1ff;
  border-bottom: 1px solid #2d2d2d;
  padding-bottom: 0.25rem;
}

.events-past-year-meta {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #888;
}

.games-section-title {
  margin: 0 0 0.5rem;
}

.games-note {
  margin: 0 0 1.25rem;
  color: #ccc;
}

.games-footnote {
  margin: 1rem 0 0;
  color: #9ba8b0;
  font-size: 0.9rem;
}

.games-transition-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #5f4b2a;
  border-radius: 8px;
  background: #201a12;
  color: #f2e0bf;
}

.games-timeline-controls {
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid #2f3e46;
  border-radius: 10px;
  background: #161b1f;
}

.games-timeline-label {
  display: inline-block;
  margin: 0 0 0.4rem;
  color: #d6f6ff;
  font-weight: 600;
}

.games-show-all-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.2rem;
  color: #d8edf4;
}

.games-show-all-toggle input {
  accent-color: #4da3ff;
}

.games-timeline-range {
  width: 100%;
}

.games-timeline-axis-labels {
  margin-top: 0.25rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9ac4d3;
}

.games-timeline-date-input-row {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.games-timeline-date-input-row input,
.games-timeline-date-input-row button {
  background: #111;
  color: #f0f8ff;
  border: 1px solid #35515f;
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
}

.games-timeline-date-input-row button {
  cursor: pointer;
}

.games-timeline-date-input-row button:hover {
  border-color: #4da3ff;
}

.games-timeline-status {
  margin-top: 0.7rem;
  margin-bottom: 0;
  color: #a9d9e8;
}

.games-timeline-controls--disabled .games-timeline-label,
.games-timeline-controls--disabled .games-timeline-range,
.games-timeline-controls--disabled .games-timeline-axis-labels,
.games-timeline-controls--disabled .games-timeline-date-input-row {
  opacity: 0.55;
}

.games-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.games-list-item {
  padding: 0.8rem;
  border: 1px solid #333;
  border-radius: 8px;
  background: #171717;
}

.games-list-item--at-club {
  border-left: 3px solid #2a8f6f;
}

.games-list-item strong {
  display: block;
  color: #0ff;
}

.games-status-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 auto 0 0;
  padding: 0.1rem 0.45rem;
  border: 1px solid #2a8f6f;
  border-radius: 999px;
  color: #9ff1d8;
  background: rgba(42, 143, 111, 0.2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.games-provider-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  border: 1px solid #2a5a6a;
  background: rgba(0, 80, 100, 0.35);
  padding: 0.08rem;
  text-decoration: none;
  flex-shrink: 0;
}

.games-provider-link:hover {
  background: rgba(77, 163, 255, 0.2);
  border-color: #4da3ff;
  color: #bde8ff;
}

.games-provider-link:focus-visible {
  outline: 2px solid #4da3ff;
  outline-offset: 2px;
}

.games-pintips-link {
  border-color: #7a5a1c;
  background: rgba(120, 85, 18, 0.3);
}

.games-pintips-link:hover {
  border-color: #ffc85c;
  background: rgba(255, 200, 92, 0.22);
}

.games-provider-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.games-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

.game-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-top: 0.6rem;
  border-radius: 6px;
  border: 1px solid #2d2d2d;
  background: #101010;
}

.games-details {
  margin: 0.5rem 0 0;
  color: #d4d4d4;
}

.games-location-stints {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #a8a8a8;
  white-space: pre-line;
}

.games-previous-title {
  margin-top: 2.2rem;
}

.merch-content {
  max-width: 56rem;
}

.merch-intro {
  margin-top: 0;
  color: #ddd;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.merch-item {
  padding: 0.85rem;
  border: 1px solid #333;
  border-radius: 8px;
  background: #171717;
  overflow: hidden;
}

.merch-item-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  box-sizing: border-box;
  margin-bottom: 0.65rem;
  border-radius: 6px;
  border: 1px solid #2d2d2d;
  background: #101010;
}

.merch-item-image--contain {
  height: 220px;
  aspect-ratio: auto;
  object-fit: contain;
  padding: 0.5rem;
}

.merch-item h3 {
  margin: 0 0 0.45rem;
  color: #0ff;
}

.merch-item p {
  margin: 0;
  color: #d9d9d9;
}

.merch-steps {
  margin: 0.6rem 0 1rem;
}

.merch-steps li + li {
  margin-top: 0.35rem;
}

.merch-note {
  margin-bottom: 0;
  color: #aebcd0;
  font-size: 0.95rem;
}

.resources-intro-lead {
  margin: 0 0 0.75rem;
}

.resources-intro code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #9ef0ff;
}

.resources-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1.25rem;
}

.resources-filter-label {
  font-size: 0.95rem;
  color: #aaa;
  margin-right: 0.25rem;
}

.resources-filter-btn {
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  color: #ccc;
  background: #171717;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
}

.resources-filter-btn:hover {
  border-color: #555;
  color: #eee;
}

.resources-filter-btn--active {
  color: #0ff;
  border-color: #0aa;
  background: #142020;
}

.resources-sections {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resources-category {
  border: 1px solid #333;
  border-radius: 8px;
  background: #141414;
  padding: 0 0.75rem 0.75rem;
}

.resources-category > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.65rem 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.resources-category > summary::-webkit-details-marker {
  display: none;
}

.resources-category > summary::before {
  content: "▸";
  display: inline-block;
  width: 1rem;
  color: #0ff;
  transition: transform 0.15s ease;
}

.resources-category[open] > summary::before {
  transform: rotate(90deg);
}

.resources-category-title {
  font-size: 1.15rem;
  font-weight: bold;
  color: #80c1ff;
}

.resources-category-count {
  font-size: 0.8rem;
  color: #888;
  padding: 0.1rem 0.45rem;
  border: 1px solid #333;
  border-radius: 999px;
}

.resources-category-description {
  margin: 0 0 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: #aaa;
}

.resources-category-empty {
  margin: 0 0 0 1.25rem;
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.resource-card {
  padding: 0.85rem;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  background: #171717;
  scroll-margin-top: 1rem;
}

.resource-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 0.65rem;
  border-radius: 6px;
  border: 1px solid #2d2d2d;
  background: #101010;
}

.resource-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.resource-card-title {
  margin: 0;
  font-size: 1.1rem;
  color: #0ff;
}

.resource-card-short-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b4e8ff;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 80, 100, 0.35);
  border: 1px solid #2a5a6a;
}

.resource-card-summary {
  margin: 0.25rem 0 0;
  color: #ddd;
  font-size: 0.95rem;
}

.resource-card-description {
  margin: 0.5rem 0 0;
  color: #c8c8c8;
  font-size: 0.92rem;
}

.resource-card-links {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
  color: #ccc;
}

.resource-card-links a {
  word-break: break-word;
}

.resource-card-permalink {
  margin: 0.5rem 0 0;
  display: flex;
  justify-content: flex-end;
}

.resource-card-permalink-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  margin: -0.35rem -0.35rem 0 0;
  line-height: 0;
  color: #6a9fd4;
  border-radius: 6px;
}

.resource-card-permalink-anchor:hover {
  color: #80c1ff;
  background: rgba(77, 163, 255, 0.12);
}

.resource-card-permalink-anchor:focus-visible {
  outline: 2px solid #4da3ff;
  outline-offset: 2px;
}

.resource-card-permalink-icon {
  display: block;
}

.resource-card--highlight {
  animation: resource-card-flash 2.2s ease-out;
}

@keyframes resource-card-flash {
  0% {
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.95);
    border-color: #4da3ff;
  }
  40% {
    box-shadow: 0 0 0 2px rgba(77, 163, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
    border-color: #2d2d2d;
  }
}