:root {
  --bg: #fff4fb;
  --panel: rgba(255, 255, 255, 0.86);
  --text: #382033;
  --muted: #7f5c76;
  --accent: #ff69b4;
  --accent-strong: #d93687;
  --border: rgba(217, 54, 135, 0.25);
  --shadow: 0 20px 60px rgba(156, 39, 117, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #fff;
   /*radial-gradient(circle at top left, rgba(255, 143, 203, 0.35), transparent 35%),
    radial-gradient(circle at bottom right, rgba(178, 120, 255, 0.22), transparent 35%),
    var(--bg);*/
  --border: rgba(0, 0, 0, 0.2);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

body.serious {
  --bg: #e9e9e9;
  --panel: rgba(255, 255, 255, 0.94);
  --text: #1d1d1d;
  --muted: #555;
  --accent: #555;
  --accent-strong: #222;
  --border: rgba(0, 0, 0, 0.2);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
}

.back-link {
    display: block;
    margin-bottom: 15px;
    color: var(--text);
    text-decoration: none;
    text-align: center;
}

.page {
  width: min(960px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 44px;
  text-align: center;
}

.hero,
.stats,
.achievements,
.locked {
  background: #fff;
  /*border: 1px solid #ffae00;
  box-shadow: #ffae00;*/
}

.hero { padding: 26px 22px; }

.lab-note {
  margin: 0 auto 14px;
  max-width: 760px;
  color: #6b4011;
  font-size: 1rem;
  line-height: 1.55;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 4.8rem);
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 12px 0 22px;
  color: #6b4011;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.mode-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  color: white;
  background: #fcba03;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease, filter 0.15s ease;
}

button:hover { transform: translateY(-2px); filter: brightness(1.04); }
button:active { transform: translateY(1px) scale(0.98); }
button:disabled { opacity: 1; cursor: not-allowed; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
}

.stat-card {
  padding: 16px;
  background-color: #ffe394;
  border: 2px solid #000;
  border-radius: 5px;
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  color: #362500;
  font-size: 0.92rem;
}

.stat-card strong {
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.plush-zone {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  margin: 18px 0;
}

.plush-button {
  width: min(320px, 78vw);
  height: min(320px, 78vw);
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 34%;
}

.plush-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(89, 26, 74, 0.28));
  user-select: none;
  -webkit-user-drag: none;
}

.plush-button.pressed img { animation: squish 0.18s ease; }
.plush-button.spin img { animation: spin 0.8s ease; }
.plush-button.fart img { animation: fartShake 0.45s ease; }

.speech,
.random-message {
  position: absolute;
  z-index: 3;
  max-width: min(520px, 90vw);
  padding: 14px 18px;
  border-radius: 5px;
  color: #6b4011;
  background: white;
  border: 1px solid #000;
  box-shadow: #000;
  font-weight: 800;
}

.speech { top: 8px; }
.random-message { bottom: 4px; }

.explosion {
  position: absolute;
  z-index: -2;
  width: min(260px, 64vw);
  pointer-events: none;
  left: 45%;
  top: 80%;
  transform: translate(-50%, -50%);
}

.locked {
  padding: 28px 20px;
  margin: 18px 0;
}

.locked h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 5vw, 2.6rem);
}

.countdown-label { color: var(--muted); margin-bottom: 8px; }
#countdown { font-size: clamp(2rem, 7vw, 4rem); }

.achievements {
  padding: 20px;
}

.achievements h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  color:#6b4011;
}

.achievement-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.achievement {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #ffe394;
  background: white;
  font-weight: 800;
}

.locked-achievement {
  opacity: 0.4;
  filter: grayscale(1);
}

.unlocked-achievement {
  opacity: 1;
  filter: none;
  background: #ffe394;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
}

.confetti {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 18px;
  border-radius: 3px;
  background: currentColor;
  animation: fall 1.8s linear forwards;
}

.hidden { display: none !important; }

@keyframes squish {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.08, 0.88); }
}

@keyframes spin {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(190deg) scale(1.08); }
  to { transform: rotate(360deg) scale(1); }
}

@keyframes fartShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-12px) rotate(-3deg); }
  40% { transform: translateX(12px) rotate(3deg); }
  60% { transform: translateX(-8px) rotate(-2deg); }
  80% { transform: translateX(8px) rotate(2deg); }
}

@keyframes fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

@media (max-width: 720px) {
  .page { width: min(100% - 18px, 960px); padding-top: 14px; }
  .hero { padding: 20px 14px; }
  .stats { grid-template-columns: 1fr; }
  .plush-zone { min-height: 350px; }
  button { width: 100%; max-width: 310px; min-height: 48px; }
  .plush-button { width: min(290px, 82vw); height: min(290px, 82vw); max-width: none; }
}
