:root {
  --primary: #FF6B6B;
   --secondary : #4ECDC4;
  --accent: #FFE66D;
  --dark: #2F2F2F;--light: #F7F9FC;
}

*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
    font-family: 'Space Grotesk', sans-serif;
  background-color: var(--light);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
   position: relative;
  perspective: 1000px;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'  width='40' height='48' viewport='0 0 100 100' style='fill:black;font-size:24px;'><text y='50%'>✨</text></svg>") 16 0, auto;
}

.bg-shapes{
  position: absolute;
  top: 0;
   left:0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 10% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 20%),
              radial-gradient(circle at 90% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 20%);
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  z-index: 10;
  animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 0.5rem;
}

.title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 3s infinite linear;
}

@keyframes shine {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.subtitle {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cake-area {
  position: relative;
  margin: 2rem 0;
}

.cake {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.cake:hover {
  transform: scale(1.02);
}

.wish-btn {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 2px solid var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.2s;
}

.wish-btn:hover {
  background: var(--accent);
  transform: translateX(-50%) translateY(-2px);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.primary {
  background: var(--primary);
  color: white;
}

.primary:hover {
  background: #ff5252;
}

.secondary {
  background: var(--secondary);
  color: white;
}

.secondary:hover {
  background: #3dbdb3;
}

.ghost {
  background: transparent;
  border: 1px solid #ddd;
  color: #666;
}

.ghost:hover {
  background: #f1f1f1;
}

.hidden-message {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff9c4;
  border-radius: 8px;
  font-style: italic;
  display: none; 
  animation: unfold 0.5s ease-out;
}

@keyframes unfold {
  from { opacity: 0; transform: scaleY(0); transform-origin: top; }
  to { opacity: 1; transform: scaleY(1); }
}

.balloon-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.balloon {
  position: absolute;
  bottom: -100px;
  width: 40px;
  height: 50px;
  background-color: var(--primary);
  border-radius: 50%;
  opacity: 0.8;
  animation: floatUpBalloon 10s linear infinite;
}

.balloon::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background: rgba(0,0,0,0.1);
}

@keyframes floatUpBalloon {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
  100% { transform: translateY(-120vh) rotate(20deg); opacity: 0; }
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.login-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
  width: 90%;
  max-width: 400px;
  animation: floatUp 0.6s ease-out;
}

.login-card h2 {
  margin-bottom: 1rem;
  color: var(--dark);
  font-family: 'Playfair Display', serif;
}

.input-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

.input-group input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #eee;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.timer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.time-box {
  background: var(--light);
  padding: 0.8rem;
  border-radius: 12px;
  min-width: 70px;
  border: 1px solid #eee;
}

.time-box span {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}

.time-box small {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 1px;
}

.clock-display {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: #555;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.prediction-box {
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
  border: 1px solid #ce93d8;
  border-radius: 8px;
  color: #6a1b9a;
  font-weight: 600;
  display: none; 
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin-anim {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinning {
  animation: spin-anim 1s linear infinite;
  display: inline-block;
}
