:root {
  --bg: #050806;
  --green: #0a3b2a;
  --green-deep: #06261b;
  --field: rgba(0, 0, 0, 0.25);
  --border: rgba(201, 169, 110, 0.25);
  --text: #efe8d8;
  --muted: #a99f88;
  --gold: #c9a96e;
  --gold-light: #e6d3a3;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  background:
    radial-gradient(ellipse at top left, rgba(10, 59, 42, 0.6), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(201, 169, 110, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-x: hidden;
}

.card {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 44px 28px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.step { display: none; }
.step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* zlatý ornament */
.ornament {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.12);
  color: var(--gold);
  font-size: 22px;
  margin-bottom: 16px;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 10px 0;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gold-light);
  margin: 0 0 24px;
}

.date {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 32px;
}

.question {
  font-size: 18px;
  margin: 0 0 16px;
}

p { line-height: 1.5; }

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

.buttons.stack {
  flex-direction: column;
  margin-top: 24px;
}

.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-yes {
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  color: var(--green-deep);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.3);
}

.btn-yes:hover { box-shadow: 0 8px 28px rgba(201, 169, 110, 0.5); }

.btn-no {
  background: var(--field);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* keď začne utekať, je pripnuté k oknu */
.btn.running {
  position: fixed;
  z-index: 10;
  margin: 0;
  /* odskočí s miernym prekmitom, akoby sa odrazil */
  transition:
    left 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    top 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.45s ease;
}

.btn-no.running { background: var(--green-deep); }

.btn-ghost {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: rgba(201, 169, 110, 0.08); }

.hint {
  color: var(--muted);
  font-size: 14px;
  min-height: 20px;
  margin: 16px 0 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

input[type="text"],
input[type="password"] {
  font-family: var(--sans);
  font-size: 17px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--text);
  outline: none;
}

input::placeholder { color: var(--muted); }
input[type="text"]:focus,
input[type="password"]:focus { border-color: var(--gold); }

.details {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: grid;
  gap: 10px;
}

.details li {
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 17px;
}

.details .label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.gifts {
  margin: 20px 0 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(201, 169, 110, 0.12);
  color: var(--gold-light);
  font-weight: 600;
}

.admin-link {
  position: fixed;
  right: 12px;
  bottom: 10px;
  font-size: 11px;
  color: #3d4a40;
  text-decoration: none;
}

.admin-link:hover { color: var(--gold); }

.btn:disabled { opacity: 0.6; cursor: wait; }

#drink-hint {
  margin: -4px 0 0;
  color: #e8a28f;
}

.shake {
  animation: shake 0.4s ease;
  border-color: #e8a28f !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

@media (max-width: 400px) {
  .card { padding: 36px 20px; }
  h1 { font-size: 36px; }
}
