:root {
  --black: #000000;
  --dark1: #131313;
  --dark2: #161616;
  --dark3: #0d0d0d;
  --green: #CC9900;
  --darkgreen: #664400;
  --white: #FFFFFF;
  --muted: #888888;
  --border: #333333;
  --error: #ff4444;
  /* City-switchable theme accent — updated by carousel JS */
  --city-accent: #CC9900;
  --city-dark: #664400;
}

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

html {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.header {
  background: var(--dark2);
  padding: 0 20px 40px;
  text-align: center;
  overflow: hidden;
}

.tagline {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 700;
  padding: 16px 0;
  margin-bottom: 16px;
  background: var(--dark1);
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
}

/* CITY CAROUSEL */
.city-carousel {
  position: relative;
  height: 320px;
  width: 100%;
  margin: 20px 0 8px;
  overflow: visible;
  touch-action: pan-y;
}

.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.carousel-item img {
  width: 400px;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.carousel-city-name {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--city-accent);
  margin-bottom: 24px;
  transition: color 450ms ease;
}

.header-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-gradient {
  background: linear-gradient(to bottom, var(--city-accent), var(--city-dark));
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 36px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: opacity 150ms;
}

.btn-gradient:hover {
  opacity: 0.9;
}

#user-greeting {
  color: var(--city-accent);
  font-weight: 600;
  font-size: 14px;
}

#btn-signout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 6px;
  margin-left: 12px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}

/* REGISTRATION */
.section-registration {
  background: var(--black);
  padding: 48px 20px;
}

.registration-inner {
  max-width: 500px;
  margin: 0 auto;
}

.btn-register {
  width: 100%;
  background: var(--dark2);
  border: none;
  border-radius: 8px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 18px 24px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 16px;
  transition: background 200ms;
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 3px 0 0 var(--city-accent);
}

.btn-register:hover {
  background: #1e1e1e;
  box-shadow: 0 3px 0 0 var(--city-accent), 0 0 12px rgba(var(--city-accent-rgb, 255,255,204), 0.15);
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid #222222;
  margin: 0;
}

/* QUEST RALLY */
.section-quest {
  background: var(--black);
  padding: 48px 20px;
}

.quest-inner {
  max-width: 900px;
  margin: 0 auto;
}

.quest-heading {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
}

.quest-content {
  text-align: center;
  padding: 16px 0;
}

.quest-text {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.btn-quest-muted {
  background: #1a1a1a;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  padding: 18px 24px;
  border-radius: 8px;
  width: 320px;
  cursor: pointer;
  opacity: 0.7;
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 3px 0 0 var(--border);
  display: block;
  margin: 0 auto;
}

.btn-quest-active {
  background: #1a1a1a;
  border: 1px solid #DD3333;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 18px 24px;
  border-radius: 8px;
  width: 320px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 3px 0 0 #DD3333;
  display: block;
  margin: 0 auto;
}

/* COLLAB */
.collab-inner {
  text-align: center;
}

.collab-tagline {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.collab-email {
  display: inline-block;
  color: var(--city-accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms;
}

.collab-email:hover {
  border-bottom-color: var(--city-accent);
}

/* GALLERY */
.section-gallery {
  background: #000000;
}

.gallery-wrap {
  max-width: 100%;
  padding: 64px 24px 48px;
}

.gallery-row1 {
  display: flex;
  align-items: stretch;
  margin-bottom: 24px;
}

.gallery-sidebar {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding-right: 0;
}

.gallery-heading {
  font-size: 52px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  border-bottom: 3px solid var(--city-accent, #CC9900);
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: inline-block;
}

.gallery-subtitle {
  font-size: 16px;
  color: #888888;
  line-height: 1.7;
}

.gallery-year-block {
  margin-top: auto;
}

.gallery-event-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.gallery-year {
  font-size: 100px;
  font-weight: 800;
  color: var(--city-accent, #CC9900);
  line-height: 1;
}

.gallery-viewer {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-frame {
  flex: 1;
  min-width: 0;
  height: 680px;
  overflow: hidden;
}

.gallery-featured {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: opacity 250ms ease;
}

.gallery-arrow {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--city-accent, #CC9900);
  font-size: 35px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 10px;
  user-select: none;
  line-height: 1;
  transition: transform 150ms ease, text-shadow 150ms ease;
}

.gallery-arrow:hover {
  transform: scale(1.2);
  text-shadow: 0 0 10px var(--city-accent, #CC9900);
}

.gallery-arrow:active {
  transform: scale(0.85);
}

.gallery-strip-label {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.gallery-thumb-wrap {
  height: 160px;
  overflow: hidden;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.gallery-thumb-wrap:hover {
  transform: scale(1.04);
  border-color: var(--city-accent, #CC9900);
  box-shadow: 0 0 10px rgba(204, 153, 0, 0.3);
}

.gallery-thumb-wrap.active {
  border-color: var(--city-accent, #CC9900);
  box-shadow: 0 0 12px rgba(204, 153, 0, 0.45);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
  transition: filter 200ms ease;
}

.gallery-thumb-wrap:hover .gallery-thumb {
  filter: brightness(1.12);
}

/* Gallery year / city nav */
.gallery-city-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.gallery-city-btn {
  background: var(--dark2, #161616);
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 6px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 3px 0 0 var(--btn-color, #CC9900);
}
.gallery-city-btn:hover {
  background: #1e1e1e;
  box-shadow: 0 3px 0 0 var(--btn-color, #CC9900), 0 0 12px color-mix(in srgb, var(--btn-color, #CC9900) 15%, transparent);
}
.gallery-city-btn.active {
  background: #1e1e1e;
  box-shadow: 0 3px 0 0 var(--btn-color, #CC9900), 0 0 12px color-mix(in srgb, var(--btn-color, #CC9900) 20%, transparent);
}
.gallery-year-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.gallery-year-btn {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.6);
  font-size: 17px;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 0;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  letter-spacing: 0.06em;
}
.gallery-year-btn:hover {
  border-color: var(--city-accent, #CC9900);
  color: var(--city-accent, #CC9900);
}
.gallery-year-btn.active {
  border-color: var(--city-accent, #CC9900);
  color: var(--city-accent, #CC9900);
}

/* GALLERY — Tablet */
@media (max-width: 1024px) {
  .gallery-sidebar { width: 200px; }
  .gallery-heading { font-size: 42px; }
  .gallery-year { font-size: 80px; }
  .gallery-frame { height: 540px; }
  .gallery-thumb-wrap { height: 130px; }
}

@media (max-width: 768px) {
  .gallery-wrap { padding: 32px 20px 40px; }
  .gallery-sidebar { width: 140px; }
  .gallery-heading { font-size: 32px; }
  .gallery-year { font-size: 60px; }
  .gallery-frame { height: 320px; }
  .gallery-thumb-wrap { height: 90px; }
}

/* GALLERY — Hidden on mobile */
@media (max-width: 600px) {
  .section-gallery { display: none; }
}

/* FOOTER */
.footer {
  background: var(--dark1);
  border-top: 1px solid var(--city-accent);
  padding: 32px 20px;
  margin-top: auto;
  font-family: 'Ambit', 'Inter', system-ui, sans-serif;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  font-size: 18px;
  font-weight: 800;
}

.footer-pax {
  color: var(--city-accent);
}

.footer-bangalore {
  color: var(--white);
}

.footer-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.footer-right {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--white);
}

.footer-contact {
  color: var(--city-accent);
}

.footer-dot {
  color: var(--muted);
}

.footer-bottom {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #222222;
  font-size: 11px;
  color: var(--muted);
}

/* MODAL */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

#modal-box {
  background: #1a1a1a;
  border: 1px solid #222222;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: modalIn 200ms ease;
  margin: 16px;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

#modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

#modal-context-msg {
  font-size: 12px;
  color: var(--city-accent);
  margin-bottom: 12px;
  min-height: 16px;
}

.modal-view {
  display: none;
}

.modal-view.active {
  display: block;
}

.modal-view h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* MODAL INPUTS */
.modal-view label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  margin-top: 14px;
}

.modal-input {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Inter', system-ui, sans-serif;
  outline: none;
  transition: border-color 150ms;
  box-sizing: border-box;
}

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

/* PHONE INPUT ROW */
.phone-input-row {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--dark3);
}

.phone-prefix {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
  display: flex;

  align-items: center;
}

.phone-prefix-select {
  padding: 12px 2px 12px 10px;
  color: var(--muted);
  font-size: 14px;
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  width: 62px;
}
.phone-prefix-select option {
  background: var(--dark1);
  color: var(--white);
}

.phone-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--white);
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  font-family: 'Inter', system-ui, sans-serif;
}

.phone-input-row:focus-within {
  border-color: var(--city-accent);
}

/* OTP BOXES */
.otp-boxes {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.otp-box {
  width: 44px;
  height: 52px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  outline: none;
  font-family: 'Inter', system-ui, sans-serif;
}

.otp-box:focus {
  border-color: var(--city-accent);
}

/* BUTTON ROW */
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-cancel {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white);
  padding: 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}

.btn-action {
  flex: 1;
  background: linear-gradient(to bottom, var(--city-accent), var(--city-dark));
  border: none;
  color: var(--white);
  padding: 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}

.btn-action:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ERROR */
.error-msg {
  color: var(--error);
  font-size: 12px;
  margin-top: 8px;
  min-height: 16px;
}

/* SWITCH LINK */
.switch-link {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.switch-link span {
  color: var(--city-accent);
  cursor: pointer;
  font-weight: 600;
}

/* MOVIE TICKETS ENTRY */
.tickets-book-link {
  text-decoration: none;
  text-align: center;
}

.tickets-my-link {
  display: block;
  text-align: center;
  color: #DD3333;
  font-size: 13px;
  margin-top: 12px;
  text-decoration: none;
  transition: color 150ms;
}

.tickets-my-link:hover {
  color: #fff;
}

/* MOBILE */
@media (max-width: 600px) {
  .city-carousel {
    height: 150px;
  }

  .carousel-item img {
    width: 180px;
  }

  .header {
    padding: 0 24px 32px;
  }

  .tagline {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .registration-inner {
    max-width: 100%;
    padding: 0;
  }

  .section-registration {
    padding: 32px 24px;
  }

  .quest-inner {
    max-width: 100%;
    padding: 0;
  }

  .section-quest {
    padding: 32px 24px;
  }

  .quest-heading {
    text-align: center;
  }

  .btn-quest-muted,
  .btn-quest-active {
    width: 100%;
    max-width: 320px;
  }

  .footer {
    padding: 32px 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }

  .footer-bottom {
    text-align: center;
  }

  .header-buttons {
    flex-wrap: wrap;
  }

  #modal-box {
    margin: 16px 24px;
  }
}

.tickets-book-link { text-decoration: none; text-align: center; }
.tickets-my-link { display: block; text-align: center; color: #DD3333; font-size: 13px; font-weight: 600; margin-top: 14px; text-decoration: none; cursor: pointer; }
.tickets-my-link:hover { text-decoration: underline; }

.auth-loader-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  height: 36px;
}

.auth-loader-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: authDotPulse 1.2s ease-in-out infinite;
}

.auth-loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.auth-loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes authDotPulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.75); }
  40%            { opacity: 1;   transform: scale(1); }
}
