/* ==========================================================================
   JokerSite - Premium Minimalist & Prank Design System
   ========================================================================== */
:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --bg-color: #FAFAFC;
  --card-bg: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border-light: #F1F5F9;
  --accent-purple: #6366F1;
  --accent-pink: #EC4899;
  --badge-bg: #FEF3C7;
  --badge-text: #B45309;
  
  --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  position: relative;
}

.hidden {
  display: none !important;
}

.minimal-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 20%, #F8FAFC 0%, #EEF2F6 100%);
}

.light-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  filter: blur(60px);
}

.blur-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  transition: opacity 0.8s var(--ease-fluid), transform 0.8s var(--ease-fluid), visibility 0.8s;
}

.blur-overlay.dismissed {
  opacity: 0;
  transform: scale(1.05);
  visibility: hidden;
  pointer-events: none;
}

.ambient-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
  animation: floatSphere 12s ease-in-out infinite alternate;
}

.sphere-1 {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, #E0E7FF, #C7D2FE);
  top: 20%;
  left: 15%;
}

.sphere-2 {
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, #FCE7F3, #FBCFE8);
  bottom: 25%;
  right: 15%;
  animation-duration: 15s;
  animation-delay: -4s;
}

@keyframes floatSphere {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(25px, -30px) scale(1.1); }
}

.glass-layer {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
}

.intro-box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: introFade 0.8s var(--ease-fluid);
  gap: 16px;
}

.intro-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: -0.2px;
}

@keyframes introFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.minimal-spinner {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid rgba(148, 163, 184, 0.25);
  border-top-color: var(--accent-purple);
  animation: spin 1.1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-purple);
  border-radius: 50%;
  animation: pulseDot 1.4s ease-in-out infinite alternate;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulseDot {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; }
}

.main-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 460px;
  padding: 36px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prank-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: prankReveal 0.8s var(--ease-fluid);
}

@keyframes prankReveal {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.prank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
  animation: bounceBadge 2s infinite ease-in-out;
}

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

.video-preview-wrapper {
  margin-bottom: 22px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.video-card {
  width: 260px;
  max-width: 82vw;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  overflow: hidden;
  background: #0F172A;
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.2), 0 0 0 1.5px rgba(226, 232, 240, 0.95);
  position: relative;
  transition: transform 0.3s ease;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 26px;
}

.prank-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.6px;
  color: var(--text-primary);
  margin-bottom: 12px;
  background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prank-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.2px;
  max-width: 320px;
}

/* Notice Cards (Expired / Self Visit) */
.notice-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: prankReveal 0.8s var(--ease-fluid);
  padding: 10px 0;
}

.notice-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.warning-icon {
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
  border: 1.5px solid #FECACA;
}

.timer-icon {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1.5px solid #FDE68A;
}

.notice-emoji {
  font-size: 2.2rem;
}

.notice-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.notice-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.2px;
  max-width: 330px;
}

.empty-state-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.visual-art {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.circle-subtle {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #F8FAFC;
  animation: pulseSubtle 3s ease-in-out infinite alternate;
}

.circle-main {
  position: relative;
  z-index: 2;
  animation: gentleFloat 4s ease-in-out infinite alternate;
}

.minimal-icon {
  width: 64px;
  height: 64px;
}

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

@keyframes pulseSubtle {
  0% { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.08); opacity: 1; }
}

.status-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.status-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: -0.2px;
}
