/* ========================================
   Spirit U8 — CSS Custom Properties
   ======================================== */

:root {
  --purple: #5B2D8E;
  --purple-dark: #4A2475;
  --purple-light: #7B4DB0;
  --teal: #2EC4B6;
  --teal-light: #56D4C8;
  --gold: #FFD600;
  --gold-light: #FFE34D;
  --bg: #F8F7FC;
  --bg-alt: #EFECF5;
  --text: #2D2D2D;
  --text-muted: #6B6B7B;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(91, 45, 142, 0.08);
  --shadow-lg: 0 4px 20px rgba(91, 45, 142, 0.12);
  --transition: 0.2s ease;
}

/* ========================================
   Reset & Base
   ======================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--purple); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================================
   Container
   ======================================== */

.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Access Gate
   ======================================== */

.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 60%, #3A1A5E 100%);
  animation: gateFadeIn 0.4s ease;
}

@keyframes gateFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gate-content {
  text-align: center;
  padding: 40px 24px;
  width: 100%;
  max-width: 360px;
}

.gate-logo {
  width: 220px;
  height: auto;
  margin-bottom: 12px;
  animation: gateBounce 2s ease-in-out infinite;
}

@keyframes gateBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.gate-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gold);
  margin-top: 4px;
  margin-bottom: 36px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-align: center;
  outline: none;
  transition: border-color var(--transition);
}

.gate-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.gate-input:focus {
  border-color: var(--gold);
}

.gate-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--purple-dark);
  background: var(--gold);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  min-height: 48px;
}

.gate-btn:hover {
  background: var(--gold-light);
}

.gate-btn:active {
  transform: scale(0.98);
}

.gate-error {
  color: #FF6B6B;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 4px;
}

.gate--hidden {
  display: none;
}

/* ========================================
   Header
   ======================================== */

.header {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  padding: 110px 0 36px;
  padding-top: calc(constant(safe-area-inset-top) + 20px);
  padding-top: calc(env(safe-area-inset-top) + 20px);
  text-align: center;
}

.header-logo {
  width: 200px;
  height: auto;
  margin-bottom: 8px;
}

.header-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.header-user {
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

.header-user-change {
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 6px;
  min-height: 36px;
}

.header-user-change:hover {
  background: rgba(255,255,255,0.15);
}

@media (max-width: 600px) {
  .header { padding: 70px 0 20px; padding-top: calc(constant(safe-area-inset-top) + 20px); padding-top: calc(env(safe-area-inset-top) + 20px); }
  .header-logo { width: 140px; }
  .header-subtitle { font-size: 0.875rem; }
}

/* ── Quick Nav ──────────────────────────── */

.quick-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  transition: padding-top 0.15s;
}

.quick-nav.stuck {
  padding-top: constant(safe-area-inset-top);
  padding-top: env(safe-area-inset-top);
}

.quick-nav::-webkit-scrollbar {
  display: none;
}

.quick-nav .container {
  display: flex;
  gap: 0;
  white-space: nowrap;
  padding: 0;
}

.quick-nav-link {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #999;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.quick-nav-link:hover,
.quick-nav-link:active {
  color: var(--purple);
  border-bottom-color: var(--purple-light);
}

.quick-nav-link.active {
  color: var(--purple);
  font-weight: 600;
  border-bottom-color: var(--purple);
}

/* ========================================
   Sections
   ======================================== */

.section {
  padding: 32px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}

.section-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -12px;
  margin-bottom: 16px;
}

/* ========================================
   Announcement Cards
   ======================================== */

.announcement-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  border-left: 4px solid var(--purple);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.announcement-card:hover {
  box-shadow: var(--shadow-lg);
}

.announcement-date {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.announcement-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.announcement-body {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
}
.announcement-hidden {
  display: none;
}

.announcement-more-btn {
  display: block;
  margin: 12px auto 0;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--purple);
  background: var(--bg);
  border: 1px solid var(--purple-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.announcement-more-btn:hover {
  background: var(--purple);
  color: var(--white);
}


/* ========================================
   Schedule
   ======================================== */

/* Desktop table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.schedule-table th {
  background: var(--purple);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  text-align: left;
}

.schedule-table td {
  padding: 12px 16px;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--bg-alt);
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tr:nth-child(even) td {
  background: var(--bg);
}

.schedule-table tr[data-type="practice"] td:first-child {
  box-shadow: inset 4px 0 0 var(--teal);
}

.schedule-table tr[data-type="game"] td:first-child {
  box-shadow: inset 4px 0 0 var(--gold);
}

.schedule-table tr.schedule-next td {
  background: rgba(46, 196, 182, 0.1);
  font-weight: 600;
}

/* Mobile schedule cards */
.schedule-cards {
  display: none;
}

.schedule-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.schedule-card--practice {
  border-left: 4px solid var(--teal);
}

.schedule-card.schedule-next {
  background: rgba(46, 196, 182, 0.08);
  border: 2px solid var(--teal);
}

.schedule-next-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--teal);
  color: var(--purple-dark);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

.schedule-card--game {
  border-left: 4px solid var(--gold);
}

.schedule-card-event {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.schedule-card-type {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.schedule-card-type--practice {
  background: var(--teal);
  color: var(--white);
}

.schedule-card-type--game {
  background: var(--gold);
  color: var(--purple-dark);
}

.schedule-card-detail {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.schedule-card-detail span {
  color: var(--text);
  font-weight: 500;
}

/* Schedule weather cells */
.schedule-weather-cell {
  font-size: 0.875rem;
  white-space: nowrap;
}

.weather-icon-sm {
  font-size: 1rem;
}

.weather-rain-sm {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3B82F6;
  margin-left: 4px;
}

.weather-na {
  color: var(--text-muted);
}

/* Weather badge (mobile cards) */
.weather-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #EEF2FF 0%, #F0F9FF 100%);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.weather-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.weather-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.weather-temp {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.weather-details {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.weather-forecast {
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 500;
}

.weather-tip {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  font-style: italic;
  margin-top: 2px;
}

.schedule-updated {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 12px 0 4px;
}

.share-schedule-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--purple);
  background: var(--white);
  border: 2px solid var(--purple-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
}

.share-schedule-btn:hover {
  background: var(--purple);
  color: var(--white);
}

@media (max-width: 900px) {
  .schedule-table-wrap { display: none; }
  .schedule-cards { display: block; }
}

/* ========================================
   Polls
   ======================================== */

.poll-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.poll-question {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poll-option-btn {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--purple);
  background: var(--bg);
  border: 2px solid var(--purple-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}

.poll-option-btn:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.poll-option-btn:active {
  transform: scale(0.98);
}

/* Poll results */
.poll-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.poll-result-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.poll-result-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
}

.poll-result-pct {
  font-weight: 700;
  color: var(--purple);
}

.poll-result-bar-bg {
  height: 28px;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
}

.poll-result-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--purple) 0%, var(--purple-light) 100%);
  border-radius: 6px;
  transition: width 0.6s ease;
  min-width: 4px;
}

.poll-result-bar--winner {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
}

.poll-voted-msg {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

.poll-inactive {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-style: italic;
}

.poll-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.poll-action-btn {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--purple);
  background: var(--bg);
  border: 1px solid var(--purple-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.poll-action-btn:hover {
  background: var(--purple);
  color: var(--white);
}

.poll-action-btn--danger {
  color: #E53E3E;
  border-color: #E53E3E;
}

.poll-action-btn--danger:hover {
  background: #E53E3E;
  color: var(--white);
}

/* ========================================
   Forms
   ======================================== */

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.form-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.form-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-label .required {
  color: #E53E3E;
  margin-left: 2px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
  min-height: 48px;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--purple);
  background: var(--white);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%236B6B7B'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-submit-btn {
  width: 100%;
  min-height: 48px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--white);
  background: var(--purple);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 8px;
}

.form-submit-btn:hover {
  background: var(--purple-dark);
}

.form-submit-btn:active {
  transform: scale(0.98);
}

.form-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-success {
  text-align: center;
  padding: 24px 0;
}

.form-success-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.form-success-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 4px;
}

.form-success-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.form-success-venmo {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  text-align: center;
}
.form-success-venmo-title {
  margin: 0 0 4px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--purple);
}
.form-success-venmo-text {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.form-success-venmo-link {
  display: inline-block;
  padding: 8px 20px;
  background: #008CFF;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.form-success-venmo-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}
.form-another-btn {
  margin-top: 16px;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--purple);
  background: var(--bg);
  border: 1px solid var(--purple-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.form-another-btn:hover {
  background: var(--purple);
  color: var(--white);
}

/* ========================================
   Cart Items
   ======================================== */

.cart-item {
  border: 2px solid var(--bg-alt);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.cart-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
}

.cart-config-container {
  padding: 0;
}

.cart-config-row {
  padding: 0;
}

.cart-config-extra {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--bg-alt);
}

.cart-add-another {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--purple);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.cart-add-another:hover {
  color: var(--purple-light);
}

.cart-line-remove {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.cart-line-remove:hover {
  background: var(--red, #e53e3e);
  color: white;
}

.cart-line-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-line-field-group {
  flex: 1;
  min-width: 100px;
}

.cart-line-field-group:last-child {
  flex: 0 0 60px;
  min-width: 60px;
}

.cart-line-rm-group {
  flex: 0 0 30px !important;
  min-width: 30px !important;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4px;
}

.cart-line-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.cart-line-fields .form-select,
.cart-line-fields .form-input {
  font-size: 0.8125rem;
  padding: 6px 8px;
}

.cart-item-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--purple);
  flex-shrink: 0;
}

.cart-item-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.cart-item-desc {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--purple);
  white-space: nowrap;
}

.cart-item-gallery {
  padding: 12px 16px;
}

.cart-item-images {
  text-align: center;
}

.cart-item-image {
  margin: 0;
  border-radius: 8px;
  max-height: 240px;
  max-width: 100%;
  cursor: pointer;
}

.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.gallery-arrow {
  background: var(--bg-alt);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-arrow:hover {
  background: var(--purple-light);
  color: var(--white);
}

.gallery-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 3rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-arrow:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-item-fields {
  padding: 0 16px 16px;
}

.cart-total {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--purple);
  text-align: right;
  padding: 12px 0;
  border-top: 2px solid var(--bg-alt);
  margin-top: 8px;
}

/* ========================================
   Form Images
   ======================================== */

.form-image {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  background: var(--bg);
  padding: 8px;
}

/* ========================================
   Sign-Ups
   ======================================== */

.signup-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.signup-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.signup-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.signup-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signup-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  gap: 12px;
}

.signup-slot-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.signup-slot-claimed {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(46, 196, 182, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.signup-slot-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--white);
  background: var(--purple);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  min-height: 36px;
  white-space: nowrap;
}

.signup-slot-btn:hover {
  background: var(--purple-dark);
}

.signup-slot-btn:active {
  transform: scale(0.97);
}

.signup-slot-release {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  color: #E53E3E;
  background: transparent;
  border: 1px solid #E53E3E;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: 8px;
  white-space: nowrap;
  transition: all var(--transition);
}

.signup-slot-release:hover {
  background: #E53E3E;
  color: var(--white);
}

/* ── Gallery ─────────────────────────── */

.gallery-date-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.gallery-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid var(--purple-light);
  background: var(--white);
  color: var(--purple);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 36px;
}

.gallery-pill.active,
.gallery-pill:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.gallery-album-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 8px 16px;
  background: var(--purple-light);
  color: var(--purple);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.gallery-album-link:hover {
  background: var(--purple);
  color: var(--white);
}

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

.gallery-section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 16px 0 8px;
}

.gallery-section-label:first-of-type {
  margin-top: 0;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

.gallery-thumb-reactions {
  position: absolute;
  bottom: 4px;
  left: 4px;
  display: flex;
  gap: 4px;
}

.gallery-thumb-reaction {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.6875rem;
  padding: 2px 6px;
  border-radius: 10px;
}

.gallery-upload-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--purple);
  background: var(--white);
  border: 2px solid var(--purple-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
}

.gallery-upload-btn:hover {
  background: var(--purple);
  color: var(--white);
}

/* Lightbox gallery extensions */

.lightbox-overlay.gallery-lightbox {
  flex-direction: column;
  padding: 48px 16px 16px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.gallery-lightbox .lightbox-img {
  max-height: 50vh;
  flex-shrink: 0;
}

.lightbox-reactions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  flex-shrink: 0;
}

.lightbox-react-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 1.25rem;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.lightbox-react-btn:hover,
.lightbox-react-btn.active {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-react-count {
  font-size: 0.875rem;
}

.lightbox-meta {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  margin-top: 6px;
  flex-shrink: 0;
}

.lightbox-toggle-comments {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 6px 8px;
  flex-shrink: 0;
}

.lightbox-comments {
  width: 100%;
  max-width: 500px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: none;
  flex-shrink: 0;
  margin-top: 4px;
}

.lightbox-comments.open {
  display: block;
}

.lightbox-comment {
  margin-bottom: 8px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
}

.lightbox-comment-author {
  font-weight: 700;
  margin-right: 6px;
}

.lightbox-comment-time {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

.lightbox-comment-like {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 10px;
  transition: background 0.2s;
}

.lightbox-comment-like:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.lightbox-download {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 4px 8px;
}

.lightbox-download:hover {
  color: white;
}

.lightbox-comment-input {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-comment-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 14px;
  color: white;
  font-size: 16px;
  font-family: inherit;
}

.lightbox-comment-input button {
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

/* Upload modal */

.gallery-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-upload-form {
  background: var(--white);
  border-radius: var(--radius-lg, 16px);
  padding: 28px 24px;
  max-width: 360px;
  width: 90%;
}

.gallery-upload-form h3 {
  margin: 0 0 16px;
  font-size: 1.125rem;
}

.gallery-upload-form select,
.gallery-upload-form input[type="file"] {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
}

.gallery-upload-progress {
  height: 4px;
  background: var(--gray-light);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}

.gallery-upload-progress-bar {
  height: 100%;
  background: var(--purple);
  width: 0%;
  transition: width 0.3s;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--purple-dark);
  padding: 20px 0;
  text-align: center;
}

.footer-motto-img {
  width: 220px;
  height: auto;
  margin-bottom: 8px;
}

.footer-credit {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}

.footer-version {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 8px;
}

.footer-lab {
  font-size: 0.75rem;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-lab a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-lab a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Install / Add to Home Screen
   ======================================== */

.install-intro {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.install-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .install-steps { grid-template-columns: 1fr; }
}

.install-platform {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.install-platform-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 12px;
}

.install-list {
  padding-left: 20px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.8;
}

.install-icon {
  font-size: 1rem;
}

.install-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.install-toggle-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========================================
   Name Prompt Modal
   ======================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
}

.modal h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 8px;
}

.modal p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.modal input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--bg-alt);
  border-radius: var(--radius-sm);
  outline: none;
  margin-bottom: 12px;
  min-height: 48px;
}

.modal input:focus {
  border-color: var(--purple);
}

.modal button {
  width: 100%;
  min-height: 48px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--white);
  background: var(--purple);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ========================================
   Empty States
   ======================================== */

.empty-state {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9375rem;
}

/* ========================================
   Alert Banner
   ======================================== */

.alert-banner {
  background: #E53E3E;
  color: var(--white);
  padding: 14px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.alert-banner--warning {
  background: #DD6B20;
}

.alert-banner--info {
  background: var(--teal);
}

/* ========================================
   Game Results
   ======================================== */

.schedule-score {
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-left: 6px;
}

.schedule-score--W {
  background: rgba(46, 196, 182, 0.15);
  color: #1a9e8f;
}

.schedule-score--L {
  background: rgba(229, 62, 62, 0.12);
  color: #E53E3E;
}

.schedule-score--T {
  background: rgba(107, 107, 123, 0.12);
  color: var(--text-muted);
}

.schedule-score--cancelled {
  background: rgba(229, 62, 62, 0.12);
  color: #E53E3E;
  text-decoration: line-through;
  font-style: italic;
}

.schedule-card-score {
  font-size: 1.125rem;
  font-weight: 800;
  margin-top: 8px;
}

.schedule-card-score--W { color: #1a9e8f; }
.schedule-card-score--L { color: #E53E3E; }
.schedule-card-score--T { color: var(--text-muted); }

.schedule-record {
  text-align: center;
  padding: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--purple);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.schedule-record span {
  margin: 0 8px;
}

