@import 'animations.css';

:root {
  color-scheme: light;
  --ink: #2d1b14;
  --accent: #ff6b3d;
  --accent-2: #1aa7b8;
  --surface: rgba(255, 247, 240, 0.92);
  --shadow: rgba(45, 27, 20, 0.12);
  --ring: rgba(255, 107, 61, 0.3);
}

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

body {
  min-height: 100vh;
  font-family: "Unbounded", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, #ffe7cf, transparent 55%),
    radial-gradient(circle at 85% 10%, #d7f8f9, transparent 50%),
    radial-gradient(circle at 40% 80%, #ffd7e5, transparent 45%),
    linear-gradient(135deg, #fff4eb 0%, #f8f6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-x: hidden;
}

.shell {
  width: min(720px, 100%);
  position: relative;
  padding: 32px 16px;
}

.card {
  position: relative;
  background: var(--surface);
  border-radius: 28px;
  padding: clamp(24px, 6vw, 42px);
  box-shadow: 0 30px 80px var(--shadow);
  backdrop-filter: blur(14px);
  animation: float-in 0.8s ease-out;
}

.badge {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  margin-bottom: 12px;
}

h1 {
  font-family: "Yeseva One", "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hint {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 28px;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.actions.is-hidden {
  display: none;
}

.btn {
  border: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  box-shadow: 0 16px 30px rgba(45, 27, 20, 0.18);
}

.btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 4px;
}

.btn.yes {
  background: var(--accent);
  color: #fff;
}

.btn.no {
  background: #1a1a1a;
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid rgba(45, 27, 20, 0.2);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.question-image {
  width: min(280px, 70%);
  margin: 16px auto 22px;
  display: block;
}

.result {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(45, 27, 20, 0.2);
  animation: fade-in 0.4s ease-out;
}

.result h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.8;
  animation: drift 12s ease-in-out infinite;
  z-index: -1;
}

.orb-1 {
  width: 140px;
  height: 140px;
  background: #ffb36c;
  top: -20px;
  right: 5%;
}

.orb-2 {
  width: 110px;
  height: 110px;
  background: #7be0e9;
  bottom: -30px;
  left: 10%;
  animation-delay: 1.2s;
}

.orb-3 {
  width: 90px;
  height: 90px;
  background: #ff9bb7;
  bottom: 30%;
  right: -10px;
  animation-delay: 2.2s;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 600px) {
  body {
    padding: 18px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

.btn {
  position: relative;
  overflow: visible;
}

.floating-hint {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  text-align: center;
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.floating-hint .bounce-emoji-btn {
  font-size: 3rem;
  display: block;
  margin-bottom: 4px;
}

.result-image {
  width: min(280px, 70%);
  margin: 0 auto 16px;
  display: block;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fade-in 0.3s ease-out;
}

.overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: float-in 0.5s ease-out;
}
.overlay[hidden] { display: none !important; }
.secret-btn { background: var(--accent); color: white; border: none; animation: pulse-orange 2s infinite; font-weight: bold; } @keyframes pulse-orange { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 61, 0.7); transform: scale(1); } 70% { box-shadow: 0 0 0 10px rgba(255, 107, 61, 0); transform: scale(1.05); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 61, 0); transform: scale(1); } }
