/* ==========================================================================
   U22 KIT - shared overlay styles (gallery lightbox + ticket drawer)
   Theme per page by overriding these vars on :root
   ========================================================================== */
:root {
  --u22k-bg: rgba(8, 7, 6, 0.96);
  --u22k-panel: linear-gradient(180deg, rgba(22, 19, 16, 0.97), rgba(10, 9, 8, 0.98));
  --u22k-fg: #f4efe6;
  --u22k-mute: rgba(244, 239, 230, 0.5);
  --u22k-hair: rgba(244, 239, 230, 0.16);
  --u22k-accent: #d9b878;
  --u22k-glow: #ffb46b;
  --u22k-font: 'JSF Maison', 'Cormorant Garamond', Georgia, serif;
  --u22k-spring: cubic-bezier(0.16, 1, 0.3, 1);
}
html.u22k-locked, html.u22k-locked body { overflow: hidden !important; }
.u22k-micro { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--u22k-mute); line-height: 1; }
.u22k-tnum { font-feature-settings: "lnum" 1, "tnum" 1, "zero" 1; font-variant-numeric: lining-nums tabular-nums; }
.u22k-gallery button, .u22k-ticket button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.u22k-close { font-size: 11px !important; letter-spacing: 0.16em; text-transform: uppercase; color: var(--u22k-mute) !important; transition: color 0.3s ease; }
.u22k-close:hover { color: var(--u22k-fg) !important; }
.u22k-g-top { display: flex; align-items: center; gap: 24px; }
.u22k-g-top > :first-child { flex: 1; }

/* ---------- Gallery ---------- */
.u22k-gallery {
  position: fixed; inset: 0; z-index: 100000;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px;
  padding: clamp(12px, 1.8vw, 26px);
  background: var(--u22k-bg);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  color: var(--u22k-fg); font-family: var(--u22k-font);
  font-feature-settings: "lnum" 1, "kern" 1;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--u22k-spring), visibility 0s linear 0.5s;
}
.u22k-gallery.open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--u22k-spring); }
.u22k-g-stage { position: relative; margin: 0; min-height: 0; display: flex; align-items: center; justify-content: center; user-select: none; }
.u22k-g-frame {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  max-width: min(92vw, 1380px); max-height: 100%; height: 100%;
}
.u22k-g-frame img[data-g-img] {
  max-width: 100%; max-height: 100%; width: auto; height: 100%; object-fit: contain; display: block;
  border-radius: 3px; box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.94); cursor: pointer;
  opacity: 0; transform: scale(0.985); transition: opacity 0.5s ease, transform 0.8s var(--u22k-spring);
}
.u22k-g-frame img[data-g-img].in { opacity: 1; transform: none; }
.u22k-g-cap { display: none !important; }
.u22k-g-note-pop {
  position: fixed; z-index: 100015; pointer-events: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: none; border: 0; box-shadow: none;
  transform: translate(-50%, -50%) scale(0.4);
  animation: u22kNotePop 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.u22k-g-note-pop img {
  width: 100%; height: 100%; object-fit: contain;
  filter: blur(0.6px) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.72));
}
@keyframes u22kNotePop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(-12deg); filter: blur(2.5px); }
  28%  { opacity: 0.95; transform: translate(-50%, -50%) scale(1.35) rotate(6deg); filter: blur(0.5px); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.0) rotate(0deg); filter: blur(1.2px); }
}
.u22k-g-kiss-stamp {
  position: absolute; z-index: 12; pointer-events: none;
  width: 22px; height: 22px; display: none; place-items: center;
  transform: translate(-50%, -50%) rotate(var(--kiss-rot, -8deg));
}
.u22k-g-kiss-stamp.on { display: grid; animation: u22kKissIn 0.35s var(--u22k-spring) forwards; }
.u22k-g-kiss-stamp img {
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0.88; filter: blur(0.55px) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
}
@keyframes u22kKissIn {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(1.45) rotate(var(--kiss-rot, -8deg)); }
  100% { opacity: 0.88; transform: translate(-50%, -50%) scale(1) rotate(var(--kiss-rot, -8deg)); }
}
.u22k-g-cursor-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 100012; pointer-events: none;
}
.u22k-g-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--u22k-hair); color: var(--u22k-fg) !important; font-size: 18px !important;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.u22k-g-nav:hover { box-shadow: inset 0 0 0 1px var(--u22k-accent); background: rgba(255, 255, 255, 0.03) !important; }
.u22k-g-nav.prev { left: 0; } .u22k-g-nav.next { right: 0; }
.u22k-g-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.u22k-g-strip::-webkit-scrollbar { display: none; }
.u22k-g-thumb { position: relative; flex: 0 0 auto; width: 64px; height: 48px; border-radius: 2px; overflow: hidden; opacity: 0.45; transition: opacity 0.3s ease, box-shadow 0.3s ease; }
.u22k-g-thumb.liked { opacity: 0.88; box-shadow: 0 0 0 1px rgba(243, 212, 137, 0.65); }
.u22k-g-thumb.liked::after {
  content: ''; position: absolute; right: 3px; bottom: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(12, 10, 8, 0.72) url('/assets/emblem_photo_v1_ivory_rosegold.png') center / 78% no-repeat;
  border: 1px solid rgba(243, 212, 137, 0.75);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 0 8px rgba(243, 212, 137, 0.5); pointer-events: none;
}
.u22k-g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.u22k-g-thumb:hover { opacity: 0.8; }
.u22k-g-thumb.on { opacity: 1; box-shadow: 0 0 0 1px var(--u22k-accent); }

/* ---------- Ticket drawer ---------- */
.u22k-ticket {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(5, 4, 3, 0.45);
  color: var(--u22k-fg); font-family: var(--u22k-font);
  opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0s linear 0.6s;
}
.u22k-ticket.open { opacity: 1; visibility: visible; transition: opacity 0.5s ease; }
.u22k-t-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw);
  display: flex; flex-direction: column; gap: clamp(18px, 3.2vh, 34px);
  padding: clamp(20px, 3vw, 44px); overflow-y: auto;
  background: var(--u22k-panel);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: -40px 0 80px -20px rgba(0, 0, 0, 0.8), inset 1px 0 0 var(--u22k-hair);
  transform: translateX(104%); transition: transform 0.8s var(--u22k-spring);
}
.u22k-ticket.open .u22k-t-panel { transform: none; }
.u22k-t-h { margin: 0; font-weight: 400; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; letter-spacing: -0.03em; }
.u22k-t-h em { font-style: italic; color: var(--u22k-accent); }
.u22k-step { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: 1px solid var(--u22k-hair); }
.u22k-sess-list { display: flex; flex-direction: column; gap: 8px; }
.u22k-sess {
  display: grid !important; grid-template-columns: 28px 1fr auto; align-items: baseline; gap: 12px; text-align: left;
  padding: 14px 16px !important; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--u22k-hair);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.u22k-sess:hover { background: rgba(255, 255, 255, 0.02) !important; }
.u22k-sess.on { box-shadow: inset 0 0 0 1px var(--u22k-accent), 0 0 24px -8px rgba(255, 180, 107, 0.4); }
.u22k-sess-t { font-size: 20px; letter-spacing: -0.01em; }
.u22k-seats { display: flex; align-items: center; gap: 16px; }
.u22k-seats button { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--u22k-hair); font-size: 18px !important; }
.u22k-seats button:hover { box-shadow: inset 0 0 0 1px var(--u22k-accent); }
.u22k-seats [data-seat-n] { font-size: 22px; min-width: 1.4ch; text-align: center; }
.u22k-total { margin-left: auto; font-size: 30px; letter-spacing: -0.02em; }
.u22k-cta {
  display: grid; place-items: center; height: 54px; border-radius: 999px;
  background: linear-gradient(180deg, #f1dcab, #c99d55); color: #1a1209 !important; text-decoration: none;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px -10px rgba(217, 160, 80, 0.6);
  opacity: 0.45; pointer-events: none; transition: opacity 0.4s ease, box-shadow 0.4s ease;
}
.u22k-cta.ready { opacity: 1; pointer-events: auto; }
.u22k-cta.ready:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 38px -8px rgba(255, 180, 107, 0.8); }
.u22k-fine { margin: 0; font-size: 14px; font-style: italic; color: var(--u22k-mute); }

@media (prefers-reduced-motion: reduce) {
  .u22k-gallery, .u22k-ticket, .u22k-t-panel, .u22k-g-stage img { transition-duration: 0.01s !important; }
}
