/* ═══════════════════════════════════════════
   MacCheeseKraftwerk — Coming Soon / Password Gate
   ═══════════════════════════════════════════ */

:root {
  --bg: #0a0705;
  --bg-card: rgba(28, 18, 10, 0.72);
  --gold: #f5b942;
  --gold-light: #ffd97a;
  --cheese: #e8a838;
  --cheese-deep: #c47a1a;
  --cream: #fff6e8;
  --muted: rgba(255, 246, 232, 0.55);
  --border: rgba(245, 185, 66, 0.22);
  --danger: #ff6b6b;
  --radius: 24px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Bebas Neue", Impact, sans-serif;
}

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

html, body {
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--cream);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* ── Ambient orbs ── */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #f5b942 0%, transparent 70%);
  top: -10%; left: -8%;
}

.orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #e85d04 0%, transparent 70%);
  bottom: -5%; right: -5%;
  animation-delay: -4s;
  opacity: 0.3;
}

.orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #ffd97a 0%, transparent 70%);
  top: 40%; left: 55%;
  animation-delay: -7s;
  opacity: 0.2;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Cheese drip decoration ── */
.cheese-drip {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  justify-content: space-around;
  padding: 0 5%;
}

.cheese-drip span {
  width: 18px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--cheese-deep) 100%);
  border-radius: 0 0 40px 40px;
  animation: drip 3s ease-in-out infinite;
  opacity: 0.85;
  box-shadow: 0 0 20px rgba(245, 185, 66, 0.4);
}

.cheese-drip span:nth-child(1) { height: 36px; animation-delay: 0s; }
.cheese-drip span:nth-child(2) { height: 58px; animation-delay: 0.4s; width: 22px; }
.cheese-drip span:nth-child(3) { height: 42px; animation-delay: 0.8s; }
.cheese-drip span:nth-child(4) { height: 64px; animation-delay: 1.2s; width: 20px; }
.cheese-drip span:nth-child(5) { height: 30px; animation-delay: 1.6s; }

@keyframes drip {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.15); }
}

/* ── Gate card ── */
.gate {
  position: relative;
  z-index: 2;
  width: min(460px, 92vw);
  padding: 2rem 0 3rem;
}

.gate-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.75rem 2.25rem 2.25rem;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(245, 185, 66, 0.08);
  animation: cardIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.logo-mark {
  position: relative;
  width: 88px; height: 88px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
}

.logo-emoji {
  font-size: 3.2rem;
  position: relative;
  z-index: 1;
  animation: bounce 2.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(245, 185, 66, 0.35));
}

.logo-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.5) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  letter-spacing: 0.05em;
  line-height: 0.95;
  color: var(--cream);
  margin-bottom: 1rem;
}

.brand span {
  background: linear-gradient(135deg, var(--gold-light), var(--cheese), var(--cheese-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

/* ── Form ── */
.password-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.input-wrap input::placeholder { color: rgba(255, 246, 232, 0.35); }

.input-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.18);
}

.toggle-vis {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: grid;
  place-items: center;
  transition: color 0.2s;
}

.toggle-vis:hover { color: var(--gold); }

.btn-enter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1.05rem 1.5rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--cheese) 45%, var(--cheese-deep) 100%);
  color: #1a0e04;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, filter 0.2s;
  box-shadow: 0 8px 28px rgba(245, 185, 66, 0.35);
}

.btn-enter:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(245, 185, 66, 0.5);
  filter: brightness(1.05);
}

.btn-enter:active { transform: translateY(0); }

.btn-enter.shake {
  animation: shake 0.45s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.error-msg {
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 500;
  animation: cardIn 0.35s ease both;
}

/* ── Status (kein festes Datum) ── */
.status-wrap {
  margin: 0 0 1.75rem;
  padding: 1.15rem 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}

.status-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.status-headline {
  font-family: var(--display);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  letter-spacing: 0.12em;
  color: var(--cream);
  margin: 0 0 0.45rem;
  line-height: 1;
}

.status-copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

.hint {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 246, 232, 0.35);
  letter-spacing: 0.04em;
}

/* Always visible at bottom of password gate */
.gate-admin-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.85rem 1rem 1.1rem;
  text-align: center;
  background: linear-gradient(to top, rgba(8, 6, 4, 0.95), transparent);
  pointer-events: none;
}

.gate-admin-bar a {
  pointer-events: auto;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 246, 232, 0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.03em;
}

.gate-admin-bar a:hover {
  color: var(--gold);
}

/* Success flash before redirect */
body.unlocking .gate-card {
  animation: unlock 0.7s ease forwards;
}

@keyframes unlock {
  to {
    opacity: 0;
    transform: scale(1.08);
    filter: blur(8px);
  }
}

@media (max-width: 420px) {
  .gate-card { padding: 2.25rem 1.4rem 1.75rem; }
  .countdown { gap: 0.4rem; }
  .count-item span { font-size: 1.4rem; }
}
