:root {
  --pitch-dark: #06331e;
  --pitch: #157a3c;
  --pitch-light: #2fae5f;
  --gold: #ffe45c;
  --gold-dark: #f5b301;
  --ink: #0b1f14;
  --white: #ffffff;
  --red: #e6394a;
  --card-bg: #ffffff;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --maroon-dark: #4a1224;
  --maroon: #691c32;
  --maroon-light: #8a2c44;
  --gold-soft: #e9c98a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}

body {
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.08), transparent 40%),
    repeating-linear-gradient(
      100deg,
      var(--pitch) 0px,
      var(--pitch) 90px,
      var(--pitch-light) 90px,
      var(--pitch-light) 180px
    );
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.10) 2px, transparent 2.5px);
  background-size: 46px 46px;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 60px;
}

/* ---------------------------------------------------------- Header/logo */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  text-align: center;
}

.site-header .ball {
  font-size: 46px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35));
  animation: spin-slow 6s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.site-header h1 {
  color: var(--gold);
  font-size: clamp(24px, 4vw, 36px);
  margin: 0;
  text-shadow: 0 3px 0 rgba(0,0,0,0.35);
  letter-spacing: 0.5px;
}

.site-header p {
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-size: 15px;
}

/* -------------------------------------------------------------- Cards */

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 26px;
  font-size: 28px;
}

/* -------------------------------------------------------------- Forms */

.field {
  margin-bottom: 18px;
  text-align: left;
}

.field label {
  display: flex;
  gap: 4px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #1c2b22;
}

.field label .required {
  color: var(--red);
}

.field input {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid #dfe6e0;
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
  background: #fafcfb;
}

.field input:focus {
  outline: none;
  border-color: var(--pitch);
  box-shadow: 0 0 0 4px rgba(21,122,60,0.14);
  background: #fff;
}

.field.has-error input {
  border-color: var(--red);
  background: #fff5f5;
}

.field .error-msg {
  color: var(--red);
  font-size: 13px;
  margin-top: 5px;
  min-height: 16px;
  display: none;
}

.field.has-error .error-msg {
  display: block;
}

.hint {
  font-size: 12px;
  color: #7a8a80;
  margin-top: 4px;
}

.field-consent {
  background: #f4f8f5;
  border: 1.5px solid #dfe6e0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.field-consent.has-error {
  border-color: var(--red);
  background: #fff5f5;
}

.consent-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
  font-size: 12.5px !important;
  line-height: 1.45;
  color: #445048 !important;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--maroon);
  cursor: pointer;
}

.consent-label a {
  color: var(--maroon);
  font-weight: 600;
  text-decoration: underline;
}

.consent-label a:hover { color: var(--maroon-light); }

/* ---------------------------------------------------------- Legal pages */

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

.legal-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px clamp(20px, 5vw, 48px);
  color: #22312a;
  line-height: 1.6;
}

.legal-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--maroon);
  font-size: clamp(22px, 3.6vw, 30px);
  margin: 0 0 6px;
}

.legal-card .legal-updated {
  color: #7a8a80;
  font-size: 13px;
  margin-bottom: 28px;
}

.legal-card h2 {
  font-size: 17px;
  color: var(--pitch-dark);
  margin: 30px 0 10px;
  border-left: 4px solid var(--gold-dark);
  padding-left: 10px;
}

.legal-card p, .legal-card li {
  font-size: 14.5px;
  color: #3a4a41;
}

.legal-card ul, .legal-card ol {
  padding-left: 22px;
}

.legal-card .placeholder {
  background: #fff6de;
  border: 1px dashed var(--gold-dark);
  border-radius: 4px;
  padding: 0 4px;
  color: var(--maroon);
  font-weight: 600;
}

.legal-card .back-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--maroon);
  font-weight: 600;
  text-decoration: none;
}

.legal-card .back-link:hover { text-decoration: underline; }

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

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 22px 16px 30px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}

.site-footer a:hover { color: var(--gold); }

.site-footer span { color: rgba(255,255,255,0.35); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(245, 179, 1, 0.4);
  transition: transform .12s ease, box-shadow .12s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(245, 179, 1, 0.5); }
.btn:active { transform: translateY(0px) scale(0.98); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-secondary {
  background: linear-gradient(135deg, var(--pitch-light), var(--pitch));
  color: #fff;
  box-shadow: 0 10px 22px rgba(21,122,60,0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #f16a75, var(--red));
  color: #fff;
  box-shadow: 0 10px 22px rgba(230,57,74,0.4);
}

.btn-small {
  width: auto;
  padding: 8px 16px;
  font-size: 13px;
}

.form-general-error {
  background: #fff0f0;
  border: 1px solid #f6c2c7;
  color: var(--red);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.form-general-error.show { display: block; }

/* --------------------------------------------------------- Result view */

.result-card {
  text-align: center;
}

.result-card .badge {
  display: inline-block;
  background: var(--pitch);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.result-card h2 {
  margin: 4px 0 2px;
  font-size: 22px;
  color: var(--ink);
}

.result-card .name {
  color: #4a5c50;
  margin-bottom: 18px;
}

.qr-wrap {
  background: #fff;
  border: 3px dashed var(--gold-dark);
  border-radius: var(--radius-md);
  padding: 18px;
  display: inline-block;
  margin: 8px 0 16px;
}

.qr-wrap img {
  width: 220px;
  height: 220px;
  display: block;
}

.raffle-number {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--pitch-dark);
  background: linear-gradient(135deg, #eafff1, #d6f6e2);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  display: inline-block;
  margin-bottom: 10px;
}

.save-hint {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  margin-top: 6px;
}

.email-note {
  font-size: 13px;
  color: #7a8a80;
  margin-top: 12px;
}

/* -------------------------------------------------------------- Flash */

.flash-stack {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 420px);
}

.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: flash-in .2s ease;
}

.flash-success { background: #e4faec; color: #0b5a2a; border: 1px solid #9fe3b7; }
.flash-error { background: #ffecec; color: #8a1424; border: 1px solid #f3aab2; }

@keyframes flash-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------- Wheel */

.wheel-page .page { max-width: 900px; margin: 0 auto; }

.stats-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
}

.stat-pill {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(2px);
}

.stat-pill b { color: var(--gold); font-size: 16px; }

.reel-frame {
  background: linear-gradient(180deg, #06331e, #04220f);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 0 0 3px rgba(255,228,92,0.5);
  padding: 26px;
  width: 100%;
  max-width: 620px;
  text-align: center;
  margin-bottom: 26px;
}

.reel-window {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: inset 0 0 0 2px #eee;
}

.reel-window::before,
.reel-window::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  pointer-events: none;
  z-index: 2;
}
.reel-window::before { top: 0; background: linear-gradient(#fff, rgba(255,255,255,0)); }
.reel-window::after { bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff); }

.reel-track {
  position: absolute;
  left: 0; right: 0; top: 0;
  transition: transform 0ms;
}

.reel-item {
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.reel-item .num {
  font-size: 46px;
  font-weight: 900;
  color: var(--pitch-dark);
  letter-spacing: 3px;
}

.reel-item .who {
  font-size: 16px;
  color: #55665c;
  font-weight: 600;
}

.reel-marker {
  position: absolute;
  left: -6px; right: -6px;
  top: 50%;
  transform: translateY(-50%);
  height: 190px;
  border-top: 3px solid var(--gold-dark);
  border-bottom: 3px solid var(--gold-dark);
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 0 0 999px rgba(255,228,92,0.08);
}

.spin-btn {
  margin-top: 22px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.winner-reveal {
  display: none;
  text-align: center;
  animation: pop-in .35s ease;
}

.winner-reveal.show { display: block; }

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.winner-reveal .trophy { font-size: 46px; }

.winner-reveal h2 {
  color: var(--gold);
  font-size: 28px;
  margin: 6px 0 2px;
  text-shadow: 0 3px 0 rgba(0,0,0,0.35);
}

.winner-reveal .who {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.empty-pool {
  color: #fff;
  background: rgba(230,57,74,0.25);
  border: 1px solid rgba(230,57,74,0.5);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  max-width: 500px;
  text-align: center;
}

.winners-log {
  width: 100%;
  max-width: 620px;
  color: #fff;
}

.winners-log h3 {
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 10px;
}

.winners-log ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.winners-log li {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

.winners-log li b { color: var(--gold); }

/* Confetti */

.confetti {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 16px;
  z-index: 50;
  pointer-events: none;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(105vh) rotate(720deg);
    opacity: 0.9;
  }
}

/* ------------------------------------------------------------ Admin UI */

.admin-page .page { max-width: 1080px; align-items: stretch; }

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #fff;
  margin-bottom: 20px;
}

.admin-topbar a { color: var(--gold); text-decoration: none; font-weight: 600; }
.admin-topbar a:hover { text-decoration: underline; }

.admin-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.admin-stat {
  background: linear-gradient(135deg, #eafff1, #d6f6e2);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.admin-stat .n { font-size: 26px; font-weight: 900; color: var(--pitch-dark); display: block; }
.admin-stat .l { font-size: 12px; color: #55665c; font-weight: 600; }

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.toolbar input[type="text"] {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  border: 2px solid #e2e8e4;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.toolbar select {
  padding: 10px 14px;
  border: 2px solid #e2e8e4;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.table-wrap { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.data th {
  text-align: left;
  padding: 10px 12px;
  background: #f3f8f4;
  color: #38493e;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

table.data td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2ef;
  white-space: nowrap;
}

table.data tr:hover td { background: #fbfdfb; }

.status-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-active { background: #e4faec; color: #0b5a2a; }
.status-won { background: #fff3d6; color: #8a5a00; }

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
  background: #f3f8f4;
}

.pagination a:hover { background: #e4faec; }
.pagination .active { background: var(--pitch); color: #fff; font-weight: 700; }

.inline-form { display: inline; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------- Invite hero page */

body.register-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06), transparent 45%),
    repeating-linear-gradient(
      100deg,
      var(--maroon) 0px,
      var(--maroon) 90px,
      var(--maroon-light) 90px,
      var(--maroon-light) 180px
    );
}

.invite-page { max-width: 1080px; }

.invite-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 10px 16px 34px;
  max-width: 640px;
}

.hero-ball {
  position: absolute;
  font-size: 34px;
  opacity: 0.35;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35));
  animation: spin-slow 7s linear infinite;
  pointer-events: none;
}
.hero-ball-1 { top: 6px; left: -6px; font-size: 34px; }
.hero-ball-2 { top: 60px; right: -10px; font-size: 34px; animation-direction: reverse; }
.hero-ball-3 { top: 220px; left: 2%; font-size: 24px; opacity: 0.25; animation-duration: 9s; }
.hero-ball-4 { top: 320px; right: 4%; font-size: 44px; opacity: 0.3; animation-duration: 5.5s; animation-direction: reverse; }
.hero-ball-5 { top: 460px; left: 8%; font-size: 20px; opacity: 0.22; animation-duration: 8s; }

.gallery-section { position: relative; }
.hero-ball-6 {
  position: absolute;
  top: -10px; right: 4%;
  font-size: 30px;
  opacity: 0.28;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35));
  animation: spin-slow 6.5s linear infinite;
  pointer-events: none;
}

@media (max-width: 640px) {
  .hero-ball-3, .hero-ball-4, .hero-ball-5, .hero-ball-6 { display: none; }
}

.invite-logo {
  width: clamp(140px, 30vw, 210px);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35));
  margin-bottom: 6px;
}

.invite-eyebrow {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
}

.invite-title {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold);
  font-size: clamp(40px, 9vw, 64px);
  margin: 2px 0 0;
  letter-spacing: 2px;
  text-shadow: 0 4px 0 rgba(0,0,0,0.35);
}

.invite-subtitle {
  font-family: Georgia, "Times New Roman", serif;
  color: #fff;
  font-size: clamp(14px, 2.6vw, 18px);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.invite-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  width: 100%;
  max-width: 320px;
}
.invite-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.invite-divider span:last-child { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.invite-divider i {
  width: 9px; height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

.invite-date {
  color: #fff;
  font-weight: 700;
  font-size: clamp(17px, 3vw, 21px);
  letter-spacing: 0.5px;
}
.invite-date .dot { color: var(--gold-soft); margin: 0 6px; }

.program-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 6px;
}

.program-pills span {
  border: 1px solid rgba(233,201,138,0.55);
  color: #fbe9c9;
  background: rgba(255,255,255,0.05);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
}

.invite-venue {
  margin-top: 20px;
  color: #fff;
  line-height: 1.5;
}
.invite-venue .venue-name { font-weight: 700; font-size: 15px; }
.invite-venue .venue-addr { font-size: 14px; color: rgba(255,255,255,0.85); }
.invite-venue .venue-metro { font-size: 12.5px; color: var(--gold-soft); margin-top: 2px; }

.invite-free {
  margin-top: 16px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 14px;
  border-top: 1px solid rgba(233,201,138,0.35);
  border-bottom: 1px solid rgba(233,201,138,0.35);
  padding: 8px 20px;
}

.ribbon-logo {
  width: clamp(90px, 18vw, 130px);
  height: auto;
  margin-top: 22px;
  opacity: 0.96;
}

/* ------------------------------------------------------------ Gallery */

.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 46px auto 6px;
  padding: 0 16px;
}
.section-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.section-divider span:last-child { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.section-divider i {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

.gallery-section {
  width: 100%;
  max-width: 1000px;
  padding: 34px 16px 8px;
}

.section-title {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold);
  text-align: center;
  font-size: clamp(20px, 3.6vw, 28px);
  margin: 0 0 6px;
  text-shadow: 0 3px 0 rgba(0,0,0,0.3);
}

.section-sub {
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto 22px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  border: 2px solid rgba(233,201,138,0.4);
  display: block;
}

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
  .gallery-grid img { aspect-ratio: 3 / 2; }
}

.reg-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 12px;
}

.reg-section .card { margin-top: 4px; }

.ticket-note {
  font-size: 13px;
  color: var(--pitch-dark);
  background: #eafff1;
  border: 1px solid #bfe9cd;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 10px;
}

.attendance-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 480px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fff6de, #ffe9b8);
  border: 1.5px solid var(--gold-dark);
  border-left: 5px solid var(--maroon);
  border-radius: var(--radius-sm);
  color: var(--maroon-dark);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.attendance-notice b { color: var(--maroon); }

.attendance-notice-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.attendance-notice-compact {
  margin: 12px 0 0;
  font-size: 12.5px;
  padding: 10px 12px;
}

/* ----------------------------------------------------------------- Checkin */

.checkin-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }

.checkin-card { text-align: center; }

.checkin-logo { width: 84px; height: 84px; margin-bottom: 14px; }

.checkin-status {
  font-size: 20px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.checkin-ok { background: #e4faec; color: #0b5a2a; }
.checkin-warn { background: #fff3d6; color: #8a5a00; }
.checkin-bad { background: #ffecec; color: #8a1424; }

.checkin-name { font-size: 18px; font-weight: 700; color: var(--ink); margin: 6px 0 18px; }

.checkin-hint { font-size: 13px; color: #7a8a80; margin: 0 0 6px; }

@media (max-width: 560px) {
  .card { padding: 22px; }
  .qr-wrap img { width: 180px; height: 180px; }
}
