/* ============================================================
   DAYO VOLLEYBALL — Design tokens
   Palette:  Ink #1B1B1B · Paper #F7F6F2 · Cream #EDEAE0 ·
             Warm grey #6E6B64 · White #FFFFFF
   Type:     Display = "Archivo Black" · Body = "Inter"
   Signature: high-contrast monochrome, sharp corners, full-bleed
              photography, a two-tone "net-line" divider.
   Functional colour (status only): muted sage / amber / rust.
   ============================================================ */

:root {
  --navy: #1B1B1B;
  --navy-deep: #101010;
  --orange: #E85D04;
  --orange-deep: #B94700;
  --gold: #EDEAE0;
  --chalk: #F7F6F2;
  --ink: #1B1B1B;
  --grey: #6E6B64;
  --line: #DEDBD3;
  --white: #FFFFFF;

  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 2px;
  --max-width: 1180px;
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.06);

  /* ---- Rebrand Bootstrap 5.3's own CSS variables so its stock
     components (buttons, badges, alerts, navbar, forms, cards) render
     on-brand without any bespoke CSS of ours. ---- */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--chalk);
  --bs-border-radius: 3px;
  --bs-border-radius-sm: 2px;
  --bs-border-radius-lg: var(--radius);
  --bs-border-radius-pill: 999px;
  --bs-link-color: var(--orange);
  --bs-link-hover-color: var(--orange-deep);

  --bs-primary: var(--orange);
  --bs-primary-rgb: 232, 93, 4;
  --bs-primary-text-emphasis: var(--orange-deep);
  --bs-primary-bg-subtle: #ECEAE5;
  --bs-primary-border-subtle: #D9D5C9;

  --bs-secondary: var(--navy);
  --bs-secondary-rgb: 27, 27, 27;
  --bs-secondary-text-emphasis: var(--navy);
  --bs-secondary-bg-subtle: #E9E7E1;
  --bs-secondary-border-subtle: #D3CFC2;

  --bs-dark: var(--navy-deep);
  --bs-dark-rgb: 16, 16, 16;

  /* Status colours (registrations / games) — muted, not bright Bootstrap
     defaults, so pending/verified/rejected stay legible without breaking
     the monochrome mood. */
  --bs-success: #3F5B3C;
  --bs-success-rgb: 63, 91, 60;
  --bs-success-text-emphasis: #3F5B3C;
  --bs-success-bg-subtle: #E7EEE6;
  --bs-success-border-subtle: #C9D8C6;

  --bs-warning: #7A5A22;
  --bs-warning-rgb: 122, 90, 34;
  --bs-warning-text-emphasis: #7A5A22;
  --bs-warning-bg-subtle: #F3EAD9;
  --bs-warning-border-subtle: #E4D5B8;

  --bs-danger: #8C3E33;
  --bs-danger-rgb: 140, 62, 51;
  --bs-danger-text-emphasis: #8C3E33;
  --bs-danger-bg-subtle: #F3E3E1;
  --bs-danger-border-subtle: #E3C7C2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--chalk);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.08;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: #2b3242; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--orange);
  display: inline-block;
}

/* ---------------- Buttons ----------------
   Bootstrap's own .btn / .btn-primary / .btn-outline-secondary /
   .btn-outline-light now do the heavy lifting (colors come from the
   --bs-primary/--bs-secondary rebrand above). This just layers on the
   brand's two remaining flourishes: a hover lift, and sharp corners
   everywhere except inside the admin app. */
.btn { font-weight: 700; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { transform: none; }
body:not(.admin-body) .btn { border-radius: var(--radius); padding-left: 1.6rem; padding-right: 1.6rem; }

/* Bootstrap 5.3's precompiled CSS bakes each component's colors into its
   own local custom properties (e.g. .btn-primary sets --bs-btn-bg itself)
   rather than reading the root --bs-primary/--bs-secondary tokens above —
   that root rebrand only reaches the *utility* classes (.bg-primary,
   .text-primary-emphasis, .alert-success, …). These few overrides carry
   the same rebrand into the handful of components that hardcode it,
   without touching Bootstrap's own CSS file. */
.btn-primary {
  --bs-btn-bg: var(--orange);
  --bs-btn-border-color: var(--orange);
  --bs-btn-hover-bg: var(--orange-deep);
  --bs-btn-hover-border-color: var(--orange-deep);
  --bs-btn-active-bg: var(--orange-deep);
  --bs-btn-active-border-color: var(--orange-deep);
  --bs-btn-disabled-bg: var(--orange);
  --bs-btn-disabled-border-color: var(--orange);
  --bs-btn-focus-shadow-rgb: 27, 27, 27;
}
.btn-outline-secondary {
  --bs-btn-color: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: var(--navy);
  --bs-btn-hover-border-color: var(--navy);
  --bs-btn-active-bg: var(--navy);
  --bs-btn-active-border-color: var(--navy);
  --bs-btn-focus-shadow-rgb: 27, 27, 27;
}
.form-control:focus, .form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 0.25rem rgba(27, 27, 27, 0.12);
}
.form-check-input:checked {
  background-color: var(--orange);
  border-color: var(--orange);
}
.form-check-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 0.25rem rgba(27, 27, 27, 0.12);
}

/* ---------------- Header / Nav ----------------
   Structure + the mobile collapse/toggle behavior are Bootstrap's own
   navbar/collapse component (navbar navbar-expand-lg navbar-dark +
   data-bs-toggle="collapse"); this just applies the brand look on top. */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: var(--font-display);
  color: var(--white) !important;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--gold); }
.logo > span:last-child { display: inline-flex; flex-direction: column; line-height: 1; gap: 3px; }
.logo > span:last-child { color: var(--white); }
.logo img { width: 38px; height: 38px; object-fit: contain; display: block; }
.logo b { color: var(--gold); font-size: .55em; letter-spacing: 1.5px; }
.logo-mark { width: 31px; height: 31px; border: 3px solid var(--orange); border-radius: 50%; display: inline-block; position: relative; overflow: hidden; flex: 0 0 auto; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; border: 2px solid var(--orange); border-radius: 50%; }
.logo-mark::before { width: 20px; height: 42px; left: 2px; top: -8px; transform: rotate(38deg); }
.logo-mark::after { width: 42px; height: 20px; left: -8px; top: 3px; transform: rotate(-38deg); }
.site-header .nav-link {
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.site-header .nav-link:hover, .site-header .nav-link.active { border-color: var(--gold); color: var(--gold); }
.nav-cta { padding: 10px 20px !important; }
.navbar-toggler { border-color: rgba(255,255,255,0.4); }
.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(237,234,224,0.4); }

@media (max-width: 991.98px) {
  .navbar-collapse { border-top: 1px solid rgba(255,255,255,0.08); }
  .site-header .nav-link { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 12px 4px; }
  .nav-cta { display: inline-block; margin-top: 6px; text-align: center; }
}

/* ---------------- Net-line divider (signature element) ---------------- */
.net-divider {
  height: 34px;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--gold) 0 18px,
      var(--navy) 18px 36px
    );
  position: relative;
}
.net-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 2px, transparent 2px 40px);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--navy-deep);
  overflow: hidden;
}
.home-lead { min-height: 78vh; background: var(--navy-deep); }
.home-lead .hero { min-height: 78vh; }
.spotlight-modal .modal-dialog { max-width: 860px; }
.spotlight-modal .modal-content { overflow: hidden; border: 0; border-radius: 4px; background: var(--chalk); color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.spotlight-modal-header { position: absolute; inset: 0 0 auto auto; z-index: 2; padding: 16px; border: 0; }
.spotlight-modal-close { padding: 12px; border-radius: 50%; background-color: var(--chalk); opacity: .95; }
.spotlight-modal .modal-body { display: block; padding: 0; }
.spotlight-slide { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 28px; align-items: center; padding: 32px; }
.spotlight-slide[hidden] { display: none; }
.spotlight-modal .player-spotlight-image { width: 100%; max-height: 430px; aspect-ratio: 4/5; object-fit: cover; border-radius: 3px; }
.player-spotlight-body { align-self: center; padding: 20px 16px 20px 0; }
.player-spotlight-body h2 { font-size: 2rem; margin-bottom: 8px; }
.spotlight-subtitle { color: var(--orange); font-family: var(--font-mono); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.spotlight-modal .rich-text p { color: var(--grey); font-size: .92rem; }
@media (max-width: 991.98px) { .hero-slide { background-size: cover !important; } .spotlight-modal .modal-dialog { margin: 16px; } }
@media (max-width: 575.98px) {
  .spotlight-modal .modal-dialog { margin: 12px; }
  .spotlight-modal .modal-content { max-height: 82dvh; }
  .spotlight-modal .modal-body { display: block; overflow-y: auto; padding: 0; }
  .spotlight-slide { display: block; padding: 12px; }
  .spotlight-modal .player-spotlight-image { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; object-position: center; margin: 0 auto 12px; }
  .player-spotlight-body { padding: 2px 1px 6px; }
  .player-spotlight-body h2 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 6px; }
  .spotlight-modal .rich-text p { font-size: .74rem; line-height: 1.4; margin-bottom: .5rem; }
  .spotlight-modal-close { transform: scale(.85); }
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-position: center 20%;
  background-size: cover !important;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
  filter: saturate(0.85) contrast(1.05);
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-inner {
  position: relative;
  padding: 90px 24px 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  color: var(--white);
  max-width: 760px;
  margin-bottom: 18px;
}
.hero-tagline {
  font-size: 1.15rem;
  color: #E9E6DC;
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; z-index: 2; display: flex; gap: 8px; transform: translateX(-50%); }
.hero-dots button { width: 34px; height: 5px; padding: 0; border: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.hero-dots button.active { background: var(--gold); }
.hero-crop-preview { width: 100%; max-width: 720px; height: 320px; margin: 0 0 20px; background: var(--navy-deep); border: 2px solid var(--line); overflow: hidden; }
.hero-crop-preview img { max-width: none; }
.hero-crop-preview cropper-canvas { width: 100%; height: 100%; }
.hero-crop-preview cropper-image { display: block; max-width: none; }
.hero-crop-preview cropper-selection { border: 2px solid var(--gold); }
.spotlight-crop-preview { max-width: 420px; height: 420px; }
.admin-loading { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; gap: 12px; background: rgba(16,16,16,.72); color: var(--white); font-weight: 700; }
.admin-loading.visible { display: flex; }
.admin-spinner { width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.35); border-top-color: var(--gold); border-radius: 50%; animation: admin-spin .7s linear infinite; }
@keyframes admin-spin { to { transform: rotate(360deg); } }

/* ---------------- Section spacing ---------------- */
.section { padding: 78px 0; }
.section-tight { padding: 48px 0; }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #C7C3B7; }
.section-alt { background: #F1EDE3; }
.section-header { max-width: 640px; margin-bottom: 44px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.games-section-header { max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.games-youtube-cta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #d50000; border-radius: 8px; background: #fff; box-shadow: 0 3px 10px rgba(213,0,0,.12); color: #c40000; font-size: .9rem; font-weight: 800; line-height: 1.2; text-decoration: none; animation: games-youtube-pulse 1s ease-in-out infinite; }
.games-youtube-cta:hover, .games-youtube-cta:focus-visible { background: #fff6f6; box-shadow: 0 5px 14px rgba(213,0,0,.2); color: #a90000; }
.games-youtube-cta svg { display: block; width: 22px; height: 17px; flex: 0 0 auto; }
@keyframes games-youtube-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 3px 10px rgba(213,0,0,.12); } 50% { transform: scale(1.07); box-shadow: 0 7px 20px rgba(213,0,0,.3); } }
@media (max-width: 575.98px) { .games-youtube-cta { gap: 7px; padding: 7px 10px; font-size: .84rem; } }
@media (prefers-reduced-motion: reduce) { .games-youtube-cta { animation: none; } }

/* ---------------- Intro (Home) ---------------- */
.intro-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
  background: var(--navy) url('../images/intro-team.jpg') center/cover no-repeat;
}
@media (max-width: 991.98px) { .intro-photo { order: -1; } }

/* ---------------- Highlight cards ---------------- */
.highlight-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid var(--line);
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); }
.highlight-card .thumb {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.highlight-card .thumb::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(16,16,16,0.6));
}
.highlight-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.highlight-card .body p { flex: 1; font-size: 0.95rem; }
.highlight-card .link {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--orange);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.highlight-card .link::after { content: " →"; }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-banner .btn-secondary { border-color: var(--white); }

/* ---------------- Gallery page ---------------- */
.gallery-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.gallery-tabs a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
}
.gallery-tabs a:hover, .gallery-tabs a.active { background: var(--navy); color: var(--white); }

.gallery-category { margin-bottom: 60px; }
.gallery-album { margin: 28px 0 42px; }
.gallery-album h4, .gallery-category > h4 { color: var(--navy); margin: 0 0 12px; font-size: 1.05rem; text-transform: uppercase; }
.gallery-album p { color: var(--grey); }
.access-panel { margin: 0 0 34px; padding: 24px; border-left: 4px solid var(--orange); background: var(--white); box-shadow: var(--shadow-card); }
.gallery-category h3::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--navy);
  margin-right: 10px;
  border-radius: 2px;
}

.photo-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.photo-card .photo {
  aspect-ratio: 4/3;
  background: #d9d3c4 center/cover no-repeat;
}
.photo-card .caption { padding: 14px 16px; }
.photo-lightbox { display: block; height: 100%; }
.photo-lightbox .photo-card { height: 100%; }
.photo-card .caption .event { font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.photo-card .caption .meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--grey); margin-top: 4px; }
.pswp__img { object-fit: contain !important; }
.empty-note {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ---------------- Games page ---------------- */
.game-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.game-card .date-strip {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
}
.game-card .date-strip .status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius);
  font-weight: 700;
}
.status-open { background: #E7EEE6; color: #3F5B3C; }
.status-full { background: #F3EAD9; color: #7A5A22; }
.status-not-yet-open { background: #E9EEF8; color: #2C4E7B; }
.status-cancelled { background: #F3E3E1; color: #8C3E33; }
.game-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.game-card h3 { margin-bottom: 2px; }
.game-meta { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; color: #2b3242; }
.game-meta .game-meta-row { display: flex; align-items: center; gap: 8px; }
.game-meta .icon { color: var(--orange); font-weight: 700; width: 18px; display: inline-block; }
.game-organizer-name { display: inline-block;color: #9b4300; font-weight: 800; }
.game-spots-left { display: inline-block; margin-top: 3px; color: #17803b; font-size: .82rem; font-weight: 700; }
.game-card .fee { font-family: var(--font-mono); font-weight: 700; color: var(--navy); }
.game-card .fee-locked { color: var(--grey); filter: blur(3px); user-select: none; }
.confirmed-players-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: #EAF6EE; color: #1E7B3B; font-size: 0.78rem; font-weight: 700; cursor: default; width: fit-content; }
.confirmed-players-badge.is-empty { background: transparent; color: var(--grey); font-weight: 600; padding-left: 0; }
.events-carousel { position: relative; }
.swipe-hint { display: none; }
.game-card .btn { margin-top: 10px; }
.event-code-note { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: #c62828; font-family: var(--font-mono); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.event-code-button { margin-top: auto; }
.registration-form { margin-top: auto; padding-top: 14px; border-top: 2px solid var(--orange); }
.registration-form h4 { font-size: .95rem; margin-bottom: 10px; }
.registration-form form { display: grid; gap: 8px; }
.player-name-autocomplete { position: relative; }
.player-suggestions { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 240px; overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(20, 30, 50, .16); }
.player-suggestion-option { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--navy); text-align: left; cursor: pointer; }
.player-suggestion-option:last-child { border-bottom: 0; }
.player-suggestion-option:hover, .player-suggestion-option:focus { background: #f3f6f2; outline: none; }
.player-suggestion-option small { color: var(--grey); white-space: nowrap; }
.player-suggestion-empty { padding: 10px 12px; color: var(--grey); font-size: .85rem; }
.registration-form .form-label { margin: 2px 0 -2px; font-size: .78rem; color: var(--grey); }
.registration-success { display: flex; align-items: center; gap: 18px; padding: 24px 28px; background: #e7eee6; border: 2px solid #3f5b3c; color: #294127; }
.registration-success strong, .registration-success span { display: block; }
.registration-success strong { font-size: 1.35rem; text-transform: uppercase; }
.registration-success span:not(.success-check) { margin-top: 3px; font-size: 1rem; }
.success-check { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #3f5b3c; color: white; font-size: 1.8rem; font-weight: 800; flex: 0 0 auto; }
.registration-success-modal .success-check { width: 72px; height: 72px; font-size: 2.7rem; margin-bottom: 16px; }
.registration-success-modal h2 { font-size: 1.7rem; margin-bottom: 10px; }
.registration-success-modal p { color: var(--grey); font-size: 1rem; }
.confirm-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; border-radius: 50%; background: #e7eee6; color: #3f5b3c; font-size: 1.7rem; font-weight: 800; }
.modal-title { font-size: 1.25rem; margin-bottom: 0; }
.event-code-input { width: min(100%, 280px); }
.event-code-success { display: flex; align-items: center; gap: 14px; color: #245b36; }
.event-code-success-check { display: inline-flex; flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: #e7f4e9; color: #238044; font-size: 1.5rem; font-weight: 800; }
.event-code-success strong, .event-code-success span:not(.event-code-success-check) { display: block; }
.event-code-success strong { font-size: 1.05rem; }
.event-code-success span:not(.event-code-success-check) { margin-top: 3px; color: #4f6655; }
.spots-bar { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 4px;}
.spots-bar-fill { height: 100%; background: var(--orange); }

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.schedule-table th, .schedule-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.schedule-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step-card .num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--orange);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.registration-slot {
  border: 2px dashed var(--orange);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--navy);
  background: rgba(27,27,27,0.04);
}
.registration-slot h3 { margin-bottom: 8px; }
.registration-slot p { color: var(--grey); max-width: 520px; margin: 0 auto 6px; }

/* ---------------- Sponsorship page ---------------- */
.sponsor-hero {
  background: var(--navy);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.sponsor-hero h1 { color: var(--white); }
.sponsor-hero p { color: #C7C3B7; max-width: 620px; margin: 0 auto; }


.sponsor-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.sponsor-card .logo-wrap {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.sponsor-card img { max-height: 90px; margin: 0 auto; }
.sponsor-card .tier {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
  font-weight: 700;
}
.sponsor-card p { font-size: 0.9rem; color: var(--grey); }

.sponsor-cta {
  background: var(--gold);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.sponsor-cta h2 { color: var(--navy-deep); }

/* ---------------- About page ---------------- */
.about-photos { margin-top: 30px; }
.about-photos > div { aspect-ratio: 1; border-radius: var(--radius); background-size: cover; background-position: center; }
.about-photos div:nth-child(1) { background-image: url('../images/about-1.jpg'); }
.about-photos div:nth-child(2) { background-image: url('../images/about-2.jpg'); }
.about-photos div:nth-child(3) { background-image: url('../images/about-3.jpg'); }

.values-grid { margin-top: 10px; }
.value-card { border-left: 4px solid var(--orange); padding: 6px 0 6px 18px; }

/* ---------------- Contact ---------------- */
.contact-grid { align-items: start; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 700;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(27,27,27,0.12);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--grey); margin-top: 6px; }
.mw-form { max-width: 560px; }
.text-orange { color: var(--orange); }

/* ---------------- Rich text (Site Content / TinyMCE output) ---------------- */
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul { list-style: disc; padding-left: 1.3em; margin: 0 0 16px; }
.rich-text ol { list-style: decimal; padding-left: 1.3em; margin: 0 0 16px; }
.rich-text a { color: var(--orange); text-decoration: underline; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.rich-text table td, .rich-text table th { border: 1px solid var(--line); padding: 8px 10px; }

.social-links { display: flex; gap: 14px; margin-top: 18px; }
.social-links a {
  min-height: 44px; padding: 8px 13px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; gap: 8px; font-size: .82rem;
  transition: background .15s ease, transform .15s ease;
}
.social-links a:hover { background: var(--orange-deep); transform: translateY(-2px); }
.social-icon { display: inline-flex; width: 19px; height: 19px; align-items: center; justify-content: center; border: 2px solid currentColor; }
.social-instagram { border-radius: 5px; position: relative; }
.social-instagram::before { content: ""; width: 6px; height: 6px; border: 2px solid currentColor; border-radius: 50%; }
.social-instagram::after { content: ""; position: absolute; width: 3px; height: 3px; border-radius: 50%; background: currentColor; right: 2px; top: 2px; }
.social-facebook { border-radius: 3px; font-size: 18px; line-height: 1; font-family: Arial, sans-serif; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 600;
}
.alert-success { background: #E7EEE6; color: #3F5B3C; border: 1px solid #C9D8C6; }
.alert-error { background: #F3E3E1; color: #8C3E33; border: 1px solid #E3C7C2; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy);
  color: #B5B0A5;
  padding: 54px 0 24px;
}
.footer-grid { margin-bottom: 40px; }
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-grid a, .footer-grid p { color: #B5B0A5; font-size: 0.9rem; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid li a:hover { color: var(--gold); }
.footer-grid .btn { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: #8A8579;
}
.footer-bottom a { color: #8A8579; text-decoration: underline; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------------- Admin ----------------
   Layout is Bootstrap's own responsive offcanvas (.offcanvas-lg): a static
   sidebar at lg+ that becomes a slide-out drawer, opened from the mobile
   topbar, below it. .card/.card-body, .table, and the badge/alert utility
   classes now do what .admin-card/.admin-table/.badge-* used to. */
.admin-body { background: #eeeae1; min-height: 100vh; }
.admin-topnav { background: var(--navy-deep); border-bottom: 3px solid var(--orange); padding: 10px 4px; }
.admin-topnav .navbar-brand.brand { color: var(--white); font-family: var(--font-display); font-weight: 400; letter-spacing: .5px; }
.admin-topnav .navbar-brand.brand:hover,
.admin-topnav .navbar-brand.brand:focus { color: var(--white); }
.admin-topnav .navbar-brand.brand span { color: var(--orange); }
.admin-topnav .navbar-toggler { border-color: rgba(255,255,255,0.4); }
.admin-shell { min-height: 100vh; }
.admin-sidebar {
  width: 252px;
  min-width: 252px;
  flex: 0 0 252px;
  background: #171717;
  color: var(--white);
  --bs-offcanvas-width: 260px;
}
.admin-sidebar .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar .brand { font-family: var(--font-display); padding: 24px 22px 16px; font-size: 1.1rem; color: var(--white); letter-spacing: .5px; background: #202d30; }
.admin-sidebar .brand span { color: var(--orange); }
.admin-sidebar .brand small { display: block; margin-top: 7px; color: #96938b; font: 700 .58rem/1.4 var(--font-mono); letter-spacing: 1.5px; }
.admin-nav-section { padding-bottom: 12px; }
.admin-nav-manage { background: #202d30; }
.admin-nav-content { background: #29252d; }
.admin-nav-label { padding: 16px 22px 7px; color: #77746d; font: 700 .66rem/1 var(--font-mono); letter-spacing: 1.7px; text-transform: uppercase; }
.admin-sidebar a {
  display: block;
  padding: 12px 22px;
  color: #d5d0c4;
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: #292929; color: var(--white); border-left-color: var(--orange); }
.admin-sidebar .offcanvas-body > a { background: #202d30; }
.admin-sidebar .offcanvas-body > a:hover { background: #2c3c40; }
.admin-nav-manage a:hover, .admin-nav-manage a.active { background: #2c3c40; }
.admin-nav-content a:hover, .admin-nav-content a.active { background: #39323d; }
.admin-sidebar a.active { box-shadow: inset 4px 0 0 var(--orange); font-weight: 800; }
.admin-nav-dot { display: inline-block; width: 7px; height: 7px; margin: 0 12px 1px 1px; border: 1px solid #77746d; border-radius: 50%; vertical-align: middle; }
.admin-sidebar a:hover .admin-nav-dot, .admin-sidebar a.active .admin-nav-dot { background: var(--orange); border-color: var(--orange); }
.admin-main { flex: 1 1 auto; min-width: 0; padding: 38px clamp(20px, 4vw, 56px); max-width: 1500px; }
.admin-table-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 14px 16px; border: 1px solid #ded8cc; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(23, 31, 33, .05); }
.admin-table-toolbar::before { content: 'TABLE TOOLS'; color: var(--orange); font: 800 .65rem/1 var(--font-mono); letter-spacing: 1.4px; }
.admin-table-search { flex: 1 1 260px; max-width: 420px; min-height: 42px; border-color: #d8d2c5; }
.admin-table-search:focus { border-color: var(--orange); box-shadow: 0 0 0 .2rem rgba(238, 111, 47, .16); }
.admin-table-toolbar .text-body-secondary { flex: 1 1 100%; margin-left: 0; }
.admin-tabulator { width: 100%; overflow: hidden; border: 1px solid #d8d2c5 !important; border-radius: 12px; background: #fff; color: #262b2c; font: 400 .88rem/1.5 var(--font-body); box-shadow: 0 6px 20px rgba(23, 31, 33, .07); }
.admin-tabulator .tabulator-header { background: #202d30; border-color: #202d30; color: #fff; }
.admin-tabulator .tabulator-header .tabulator-col { background: transparent; border-color: rgba(255,255,255,.12); }
.admin-tabulator .tabulator-header .tabulator-col:hover { background: #2c3c40; }
.admin-tabulator .tabulator-header .tabulator-col .tabulator-col-content { padding: 12px 10px; }
.admin-tabulator .tabulator-col-title { font-size: .74rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.admin-tabulator .tabulator-col-sorter { color: var(--orange); }
.admin-tabulator .tabulator-header-filter { padding: 0 7px 8px; }
.admin-tabulator .tabulator-header-filter input { width: 100%; min-height: 30px; padding: 4px 7px; border: 1px solid rgba(255,255,255,.28); border-radius: 5px; background: rgba(255,255,255,.1); color: #fff; font: 400 .75rem var(--font-body); }
.admin-tabulator .tabulator-header-filter input::placeholder { color: rgba(255,255,255,.65); }
.admin-tabulator .tabulator-header-filter input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.admin-tabulator .tabulator-tableholder .tabulator-table .tabulator-row { min-height: 52px; background: #fff; border-color: #eeeae1; }
.admin-tabulator .tabulator-tableholder .tabulator-table .tabulator-row:nth-child(even) { background: #faf9f6; }
.admin-tabulator .tabulator-tableholder .tabulator-table .tabulator-row:hover { background: #fff2e9; }
.admin-tabulator .tabulator-cell { display: inline-flex; align-items: center; padding: 10px; white-space: normal; overflow-wrap: anywhere; }
.admin-tabulator .tabulator-cell .admin-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-tabulator .tabulator-cell .admin-actions form { display: inline-flex; margin: 0; }
.admin-tabulator .tabulator-cell .admin-actions .btn { white-space: nowrap; }
.admin-tabulator .admin-icon-action { display: inline-flex; width: 36px; min-width: 36px; height: 34px; align-items: center; justify-content: center; padding: 0; font-size: .9rem; line-height: 1; }
.admin-tabulator .admin-icon-action .fa-solid { pointer-events: none; }
.admin-tabulator .tabulator-cell .admin-actions { gap: 7px; }
.admin-tabulator .admin-player-details { display: block; width: 100%; }
.admin-tabulator .admin-player-name { display: block; color: var(--ink); font-size: .9rem; font-weight: 700; }
.admin-tabulator .admin-player-email { display: block; margin-top: 2px; color: #1769aa; font-size: .72rem; line-height: 1.35; overflow-wrap: anywhere; }
.admin-tabulator .admin-player-note { display: block; margin-top: 2px; color: var(--grey); font-size: .68rem; line-height: 1.3; }
.admin-tabulator .registration-game-details { display: block; width: 100%; }
.admin-tabulator .registration-game-name { display: block; color: var(--ink); font-size: .68rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.admin-tabulator .registration-game-date { display: block; margin-top: 3px; color: var(--grey); font-size: .7rem; line-height: 1.3; }
.email-history-subject { padding: 0; border: 0; background: none; color: #1769aa; font: inherit; font-weight: 700; text-align: left; text-decoration: underline; text-decoration-color: rgba(23,105,170,.35); text-underline-offset: 3px; cursor: pointer; }
.email-history-subject:hover, .email-history-subject:focus-visible { color: var(--orange-deep); text-decoration-color: currentColor; }
.email-history-body-preview { display: block; width: 100%; min-height: 360px; border: 1px solid #d8d2c5; border-radius: 8px; background: #fff; }
.admin-registrations-tabulator .tabulator-cell[tabulator-field="column_2"] { justify-content: center; text-align: center; }
.admin-tabulator .tabulator-footer { padding: 8px 10px; background: #f4f1e9; border-color: #d8d2c5; color: var(--navy); }
.admin-tabulator .tabulator-footer .tabulator-page { border: 1px solid #d8d2c5; border-radius: 6px; color: var(--navy); }
.admin-tabulator .tabulator-footer .tabulator-page:hover:not(.disabled) { border-color: var(--orange); color: var(--orange); }
.admin-tabulator .tabulator-footer .tabulator-page.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.admin-tabulator .tabulator-footer .tabulator-page-size { min-height: 32px; border: 1px solid #d8d2c5; border-radius: 6px; background: #fff; color: var(--navy); }
.admin-tabulator .tabulator-placeholder { color: var(--grey); }
.game-registration-trigger { display: inline; padding: 0; border: 0; background: transparent; color: #1769aa; font-family: inherit; font-size: inherit; font-weight: 700; line-height: inherit; text-align: left; text-decoration: underline; text-decoration-color: rgba(23,105,170,.35); text-underline-offset: 3px; cursor: pointer; }
.game-registration-trigger:hover, .game-registration-trigger:focus-visible { color: var(--orange-deep); text-decoration-color: currentColor; }
.game-registration-trigger:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.admin-body #gameRegistrationsModal .modal-content { overflow: hidden; border: 1px solid #ded8cc; border-radius: 14px; box-shadow: 0 18px 55px rgba(0,0,0,.2); }
.admin-body #gameRegistrationsModal .modal-header { background: #f4f1e9; }
.admin-body #gameRegistrationsModal .modal-title { color: var(--navy); }
.admin-body #gameRegistrationsModal .eyebrow { font-size: .66rem; }
@media (max-width: 575.98px) {
  .admin-table-toolbar { align-items: stretch; }
  .admin-table-search { max-width: none; }
}
.admin-datetime { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -12px 0 26px; padding: 12px 16px; border-left: 4px solid var(--orange); border-radius: 8px; background: rgba(255,255,255,.72); color: var(--navy); }
.admin-datetime-label { color: var(--grey); font: 700 .68rem/1.2 var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; }
.admin-datetime-values { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.admin-datetime-values [data-admin-time] { font-variant-numeric: tabular-nums; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; padding-bottom: 18px; border-bottom: 2px solid #d8d2c5; }
.admin-body .btn { border-radius: var(--radius); }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-actions form.d-inline { display: inline-flex !important; margin: 0; }
.admin-body .pagination .page-link { color: var(--navy); }
.admin-body .pagination .page-item.active .page-link { background: var(--orange); border-color: var(--orange); color: var(--white); }
.admin-body .pagination .page-item.disabled .page-link { color: #b8b3a6; }
.template-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; padding: 0; text-align: left; color: inherit; cursor: pointer; }
.template-toggle-caret { transition: transform 0.2s ease; font-size: 1.1em; color: var(--navy); }
.template-toggle[aria-expanded="true"] .template-toggle-caret { transform: rotate(180deg); }
.player-search { display: flex; gap: 10px; max-width: 960px; flex-wrap: wrap; }
.player-search .form-control { min-width: 0; flex: 1 1 220px; }
.player-search .form-select { min-width: 0; flex: 0 1 170px; }
@media (min-width: 992px) {
  .admin-shell { display: flex; width: 100%; }
  .admin-sidebar { flex-shrink: 0; }
}
@media (max-width: 991.98px) {
  .admin-sidebar { width: min(260px, 85vw); min-width: 0; flex-basis: auto; }
  .admin-main { padding: 26px 18px; }
}
@media (max-width: 575.98px) {
  .section-tight { padding: 28px 0; }
  .section-tight .eyebrow { margin-bottom: 6px; }
  .section-tight h1 { font-size: clamp(2rem, 8vw, 2.5rem); margin-bottom: 10px; }
  .section-tight p:last-child { margin-bottom: 0; }
  .player-search { flex-wrap: wrap; }
  .player-search .form-control { flex-basis: 100%; }
  .player-search .form-select { flex-basis: 100%; }
  .events-carousel .game-cards { flex-wrap: nowrap; overflow-x: auto; padding: 0 24px 18px 0; margin-right: -24px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .events-carousel .game-cards::-webkit-scrollbar { display: none; }
  .events-carousel .game-cards > .col { flex: 0 0 88%; max-width: 88%; scroll-snap-align: start; }
  .swipe-hint { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--orange); font: 700 .72rem var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }
  .swipe-hint strong { font-size: 1.2rem; animation: swipe-nudge 1.4s ease-in-out infinite; }
  @keyframes swipe-nudge { 50% { transform: translateX(5px); } }
}
.events-carousel .game-cards.event-focus-mode {
  justify-content: center;
  flex-wrap: wrap;
  overflow: visible;
  margin-right: 0;
  padding-right: 0;
}
.events-carousel .game-cards.event-focus-mode > .event-card-col {
  flex: 0 1 720px;
  width: 100%;
  max-width: 720px;
  scroll-snap-align: none;
}
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 20px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.login-card h1 { font-size: 1.5rem; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--orange); }
.stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--grey); margin-top: 4px; }
