:root {
  --bg: #0f0f12;
  --card: #1a1a20;
  --accent1: #ff4d6d;
  --accent2: #ffb347;
  --text: #f2f2f7;
  --timer-gray: #888888;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial;
  color: var(--text);
  background: radial-gradient(1200px 800px at 50% -10%, #1c1c22 0%, var(--bg) 60%);
  display: grid;
  place-items: center;
}

.page { display: none; width: 100%; padding: 24px; max-width: 560px; }
.page.active { display: block; }

.big-btn {
  position: relative;
  width: 100%;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  border: none;
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 94, 98, 0.25);
  transition: transform 0.2s;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.big-btn:active { transform: scale(0.96); }

/* Анимация тряски */
@keyframes shakeAnim {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shakeAnim 0.5s ease;
}

/* Phrase block */
.phrase-block {
  background: var(--card);
  padding: 28px 20px 20px;
  border-radius: 16px;
  margin: 16px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  text-align: center;
  position: relative;
}

/* Декоративная полоска */
.phrase-block::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: #555;
  opacity: 0.5;
}

.phrase {
  margin: 10px 0 0 0;
  font-size: 18px;
}

.copy-btn {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: #2c2c34;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.copy-btn:active { transform: scale(0.96); }

/* Таймер */
.timer-block {
  margin-top: 20px;
  text-align: center;
  padding: 12px;
  background: #1c1c22;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.timer-block h2 {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--timer-gray);
}
