/* =========================================================
   KUPON DOOR PRIZE — EMPLOYEE GATHERING
   Design tokens
   ========================================================= */
:root {
  /* Colors */
  --bg: #14172E;
  --bg-alt: #191D3A;
  --surface: #1F2447;
  --surface-2: #262C55;
  --line: #33396B;

  --gold: #E8B84B;
  --gold-soft: #F3D48A;
  --coral: #FF6F59;

  --text: #F4F1E6;
  --text-muted: #A6ABD6;
  --text-faint: #6A6FA0;

  /* Type */
  --font-display: "Anton", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Layout */
  --max-w: 1120px;
  --radius: 14px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

figure { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

code {
  font-family: var(--font-mono);
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--gold-soft);
}

::selection { background: var(--gold); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(20, 23, 46, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.brand-icon { color: var(--gold); transform: rotate(-25deg); }

.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--bg);
  background: var(--gold);
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 0;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 22px 0 18px;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 55%, var(--coral) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 40px 0 56px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 26px;
  min-width: 230px;
  text-align: left;
}

.stat-card i {
  font-size: 1.4rem;
  color: var(--gold);
  width: 34px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Ticket perforation divider — the signature element */
.ticket-divider {
  --notch: 18px;
  position: relative;
  height: var(--notch);
  margin: 0 auto;
  max-width: var(--max-w);
}

.ticket-divider::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: calc(var(--notch) / 2);
  border-top: 2px dashed var(--line);
}

.ticket-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0 50%, var(--bg) 0 9px, transparent 9.5px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 100% 50%, var(--bg) 0 9px, transparent 9.5px) 0 0 / 100% 100% no-repeat;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
}

.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.section-alt .section-head,
.section-alt .gallery,
.section-alt .gallery-empty { max-width: var(--max-w); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

.section-head { text-align: center; margin-bottom: 36px; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 10px 0 10px;
  letter-spacing: 0.01em;
}

.section-head p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* =========================================================
   IMAGE GALLERY
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item .zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(20, 23, 46, 0.75);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

@media (min-width: 620px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

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

.gallery-empty {
  display: none;
  align-items: center;
  gap: 10px;
  justify-content: center;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
}

.gallery-empty.show { display: flex; }

.gallery-empty i { color: var(--gold); font-size: 1.1rem; }

/* =========================================================
   TOTAL DOOR PRIZE — TEXT SUMMARY
   ========================================================= */
.prize-summary {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.prize-total {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 34px;
  margin: 0 auto 28px;
}

.prize-total i { color: var(--gold); font-size: 1.8rem; }

.prize-total-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--gold-soft);
  line-height: 1;
}

.prize-total-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.prize-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* =========================================================
   SEARCH BAR
   ========================================================= */
.search-bar {
  max-width: 480px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
}

.search-bar i { color: var(--gold); }

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.search-bar input::placeholder { color: var(--text-faint); }

.clear-btn {
  background: var(--surface-2);
  border: none;
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-btn:hover { color: var(--coral); }

/* =========================================================
   TICKET LIST (name + coupon number results)
   ========================================================= */
.ticket-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.ticket-row {
  --notch: 12px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px 16px 24px;
}

/* punch-hole notches for the stub look */
.ticket-row::before,
.ticket-row::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--notch);
  height: var(--notch);
  background: var(--bg);
  border-radius: 50%;
  border: 1px solid var(--line);
}
.ticket-row::before { left: -6px; }
.ticket-row::after  { right: -6px; }

.ticket-icon {
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

.ticket-number {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-soft);
  background: var(--surface-2);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

mark {
  background: var(--gold);
  color: var(--bg);
  border-radius: 3px;
  padding: 0 2px;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 24, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-close:hover { color: var(--coral); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px 48px;
  text-align: center;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-inner .brand { color: var(--gold-soft); }

.back-top {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-top:hover { color: var(--gold-soft); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 820px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 10px 20px 18px;
    gap: 4px;
    display: none;
  }

  .main-nav.open { display: flex; }

  .main-nav a { padding: 12px 10px; border-radius: 8px; }

  .nav-toggle { display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 560px) {
  .hero { padding-top: 52px; }
  .hero-stats { flex-direction: column; align-items: stretch; }
  .stat-card { min-width: 0; }
  .section { padding: 40px 14px; }
  .gallery { gap: 10px; }
  .search-bar { margin-bottom: 28px; }
  .ticket-row { padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-item img { transition: none; }
}