/* ═══════════════════════════════════════════
   SPLASH SCREEN — Flag's Banquet
   Option 1: Vertical Colour Bars
   Add to <head>: <link rel="stylesheet" href="splash.css">
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Cinzel:wght@400;500&display=swap');

:root {
  --s-orange: #e8601c;
  --s-yellow: #f5c800;
  --s-cyan:   #00aadd;
  --s-red:    #e51c23;
  --s-dark:   #0d0d0d;
}

#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--s-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

/* Grain texture */
#splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.28;
  pointer-events: none;
  z-index: 1;
}

/* ── 4 vertical bars ── */
.splash-bars {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 0;
}

.splash-bar {
  flex: 1;
  transform: translateY(100%);
  animation: barUp 0.55s cubic-bezier(0.76, 0, 0.24, 1) both;
}

.splash-bar:nth-child(1) { background: var(--s-orange); animation-delay: 0.00s; }
.splash-bar:nth-child(2) { background: var(--s-yellow); animation-delay: 0.08s; }
.splash-bar:nth-child(3) { background: var(--s-cyan);   animation-delay: 0.16s; }
.splash-bar:nth-child(4) { background: var(--s-red);    animation-delay: 0.24s; }

@keyframes barUp {
  to { transform: translateY(0); }
}

/* ── Black center box ── */
.splash-box {
  position: relative;
  z-index: 5;
  background: var(--s-dark);
  border-radius: 6px;
  padding: clamp(28px, 5vw, 44px) clamp(32px, 7vw, 64px) clamp(24px, 4vw, 36px);
  width: min(520px, 86vw);
  text-align: center;
  transform: scale(0.82);
  opacity: 0;
  animation: boxIn 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) 0.62s both;
  box-shadow: 0 28px 80px rgba(0,0,0,0.55);
}

@keyframes boxIn {
  to { transform: scale(1); opacity: 1; }
}

/* ── Logo ── */
.splash-logo {
  width: clamp(60px, 11vw, 84px);
  height: clamp(60px, 11vw, 84px);
  border-radius: 11px;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.4s ease 1.08s both;
}

/* ── Brand name ── */
.splash-brand {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.6rem, 5vw, 2.9rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0;
  opacity: 0;
  animation: fadeUp 0.4s ease 1.18s both;
}

/* ── Ornament row ── */
.splash-ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 14px;
  opacity: 0;
  animation: fadeUp 0.4s ease 1.32s both;
}

.splash-orn-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.11);
}

.splash-dots {
  display: flex;
  gap: 7px;
}

.splash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.splash-dot:nth-child(1) { background: var(--s-orange); }
.splash-dot:nth-child(2) { background: var(--s-yellow); }
.splash-dot:nth-child(3) { background: var(--s-cyan); }
.splash-dot:nth-child(4) { background: var(--s-red); }

/* ── Tagline ── */
.splash-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.82rem, 2.2vw, 1rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.48);
  letter-spacing: 0.14em;
  margin: 0;
  opacity: 0;
  animation: fadeUp 0.4s ease 1.46s both;
}

/* ── 4-colour strip at base of box ── */
.splash-box-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  display: flex;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.3s ease 1.38s both;
}
.splash-box-strip div { flex: 1; }
.splash-box-strip div:nth-child(1) { background: var(--s-orange); }
.splash-box-strip div:nth-child(2) { background: var(--s-yellow); }
.splash-box-strip div:nth-child(3) { background: var(--s-cyan); }
.splash-box-strip div:nth-child(4) { background: var(--s-red); }

/* ── Tap hint ── */
.splash-hint {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.62rem, 1.4vw, 0.73rem);
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 20px;
  opacity: 0;
  animation: hintPulse 2.2s ease 2.1s infinite;
}

/* ── Corner brackets ── */
.splash-corner {
  position: absolute;
  width: 46px;
  height: 46px;
  opacity: 0;
  z-index: 6;
  animation: cornerIn 0.45s ease 0.95s both;
}
.splash-corner--tl { top: 26px;  left: 26px;  border-top: 1px solid rgba(255,255,255,0.16); border-left: 1px solid rgba(255,255,255,0.16); }
.splash-corner--tr { top: 26px;  right: 26px; border-top: 1px solid rgba(255,255,255,0.16); border-right: 1px solid rgba(255,255,255,0.16); }
.splash-corner--bl { bottom: 26px; left: 26px; border-bottom: 1px solid rgba(255,255,255,0.16); border-left: 1px solid rgba(255,255,255,0.16); }
.splash-corner--br { bottom: 26px; right: 26px; border-bottom: 1px solid rgba(255,255,255,0.16); border-right: 1px solid rgba(255,255,255,0.16); }

@keyframes cornerIn {
  from { opacity: 0; transform: scale(0.55); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Multicolour progress bar ── */
.splash-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg,
    var(--s-orange) 0%,
    var(--s-yellow) 33%,
    var(--s-cyan)   66%,
    var(--s-red)   100%
  );
  animation: progressFill 3.6s linear 0.4s both;
  z-index: 10;
}

@keyframes progressFill {
  to { width: 100%; }
}

/* ── Exit (added by JS) ── */
#splash.splash--exit {
  animation: splashExit 0.75s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes splashExit {
  0%   { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 100% 0); }
}

/* ── Shared ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes hintPulse {
  0%, 100% { opacity: 0;    transform: translateY(3px); }
  35%, 65%  { opacity: 0.5;  transform: translateY(0); }
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .splash-corner { width: 30px; height: 30px; }
  .splash-corner--tl { top: 16px; left: 16px; }
  .splash-corner--tr { top: 16px; right: 16px; }
  .splash-corner--bl { bottom: 16px; left: 16px; }
  .splash-corner--br { bottom: 16px; right: 16px; }
  .splash-dot { width: 6px; height: 6px; }
}
