/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #1b3f7a;
  --blue-dark: #122a55;
  --blue-mid:  #2a5298;
  --gold:      #e09820;
  --gold-lt:   #f5b942;
  --bg:        #f4f6fa;
  --surface:   #ffffff;
  --text:      #1e2533;
  --muted:     #6b7a99;
  --border:    #dde2ee;
  --radius:    10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Layout ────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 10px;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 600px;
}

/* ─── Header ────────────────────────────────────────────── */
.site-header {
  background: var(--blue-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .3px;
  transition: color .2s;
}

nav a:hover {
  color: #fff;
  text-decoration: none;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  color: #fff;
  padding: 100px 0 90px;
  text-align: center;
}

.hero-label {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.1;
  margin-bottom: 18px;
}

.h1-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--blue-dark);
  font-weight: 900;
  font-size: .85em;
  border-radius: 10px;
  padding: .05em .3em .1em;
  vertical-align: middle;
  line-height: 1.2;
  position: relative;
  top: -.05em;
}

.hero-anniversary {
  font-size: .85rem;
  color: var(--gold-lt);
  letter-spacing: .05em;
  margin-bottom: 10px;
}

.hero-meta {
  font-size: 1.2rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 6px;
}

.hero-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 48px;
}

/* Countdown */
.countdown {
  display: inline-flex;
  gap: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 28px 36px;
  margin-bottom: 36px;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.cd-num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.cd-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-top: 6px;
}

.cd-thankyou {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  padding: 8px 0;
}

.hero-invite {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  font-style: italic;
}

/* ─── Venue ─────────────────────────────────────────────── */
.venue { background: var(--surface); }

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 32px;
}

.venue-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.venue-info h3 {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 8px;
}

.address-main {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.address-note {
  font-size: .9rem;
  color: var(--muted);
  margin-top: 6px;
}

.venue-map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--border);
}

.venue-photo {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
}

.venue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ─── Program ───────────────────────────────────────────── */
.program { background: var(--bg); }

.talks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.talk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  transition: box-shadow .2s, transform .2s;
}

.talk-card:hover {
  box-shadow: 0 6px 24px rgba(27,63,122,.08);
  transform: translateY(-2px);
}

.talk-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  min-width: 40px;
  font-variant-numeric: tabular-nums;
}

.talk-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.talk-body p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
}

.program-note {
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
}

/* ─── Organizer ─────────────────────────────────────────── */
.organizer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.organizer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.organizer-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 28px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  min-width: 200px;
}

.contact-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--border);
  flex-shrink: 0;
}

.contact-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.contact-email,
.contact-phone {
  font-size: .88rem;
  color: var(--blue-mid);
  display: block;
}

.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--blue-mid);
  border-radius: 8px;
  color: var(--blue-mid);
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, color .2s;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--blue-mid);
  color: #fff;
  text-decoration: none;
}

/* ─── Slot Machine ──────────────────────────────────────── */
.slot-section { background: var(--surface); border-top: 1px solid var(--border); }

.slot-container { text-align: center; }

.slot-wrap {
  display: inline-block;
  margin-top: 8px;
}

.slot-machine {
  display: inline-flex;
  align-items: stretch;
  background: linear-gradient(160deg, #2c3548, #1a2235);
  border-radius: 20px;
  padding: 24px 20px 24px 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.slot-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.slot-top-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.slot-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .35;
  transition: opacity .15s, box-shadow .15s;
}

.slot-light.on {
  opacity: 1;
  box-shadow: 0 0 8px var(--gold);
}

.slot-windows {
  display: flex;
  gap: 8px;
  background: #0d111a;
  padding: 10px;
  border-radius: 12px;
  border: 2px solid var(--gold);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.5);
}

.reel-window {
  width: 88px;
  height: 88px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.15);
  position: relative;
}

.reel-window::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.3) 0%, transparent 40%, transparent 60%, rgba(0,0,0,.06) 100%);
  border-radius: 8px;
  pointer-events: none;
}

.reel-sym {
  display: block;
  transition: filter .08s;
  line-height: 1;
}

.reel-sym.spinning {
  filter: blur(4px);
  animation: reel-flicker .1s steps(1) infinite;
}

@keyframes reel-flicker {
  0%   { transform: translateY(-4px); }
  50%  { transform: translateY(4px); }
  100% { transform: translateY(-4px); }
}

.slot-msg {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-lt);
  min-height: 1.4em;
  letter-spacing: .02em;
}

/* Lever */
.slot-lever-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding-bottom: 4px;
}

.lever-track {
  width: 12px;
  height: 130px;
  background: linear-gradient(to right, #555, #888, #555);
  border-radius: 6px;
  position: relative;
  display: flex;
  justify-content: center;
}

.lever-handle {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: top .18s cubic-bezier(.4,0,.2,1);
}

.lever-handle.pulled { top: 51px; }

.lever-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e74c3c, #8e1a0e);
  box-shadow: 0 3px 10px rgba(0,0,0,.5);
}

.lever-base {
  width: 30px;
  height: 14px;
  background: linear-gradient(145deg, #666, #333);
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* Win flash */
@keyframes jackpot-flash {
  0%, 100% { background: linear-gradient(160deg, #2c3548, #1a2235); }
  50%       { background: linear-gradient(160deg, #3d2a00, #1a2235); }
}

.slot-machine.jackpot { animation: jackpot-flash .4s ease-in-out 4; }

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.5);
  font-size: .82rem;
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 760px) {
  .header-inner { gap: 16px; }
  nav { gap: 16px; }
  nav a { font-size: .8rem; }

  .hero { padding: 60px 0; }
  .countdown { padding: 20px 16px; gap: 8px; }
  .countdown-block { min-width: 50px; }
  .cd-num { font-size: 2rem; }

  .venue-grid { grid-template-columns: 1fr; }
  .venue-photo { min-height: 200px; }
  .talks-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }

  .organizer-grid { grid-template-columns: 1fr; }
  .contact-card { flex-direction: row; text-align: left; min-width: unset; }

  .slot-section { padding: 40px 0; }

  .slot-machine { padding: 16px 12px 16px 16px; gap: 10px; }

  .slot-windows { padding: 8px; gap: 6px; }

  .reel-window { width: 68px; height: 68px; font-size: 2.2rem; }

  .lever-track { height: 100px; }
  .lever-handle.pulled { top: 36px; }
}
