/* ============================================================
   Greblya Club · приглашение на свидание
   Тёмно-золотая база + тёплые романтичные акценты
   ============================================================ */

:root {
  --bg0:   #0c0e0c;
  --bg1:   #15120c;
  --bg2:   #1c1810;
  --panel: rgba(24, 21, 14, 0.72);

  --gold:        #e0b36c;   /* фирменное золото логотипа */
  --gold-bright: #f3dca9;
  --gold-deep:   #b6863f;
  --cream:       #f2e8d5;
  --cream-soft:  #cabd9f;

  --line:   rgba(224, 179, 108, 0.26);
  --line-2: rgba(224, 179, 108, 0.5);

  --shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.85);
  --glow:   0 0 60px -10px rgba(224, 179, 108, 0.35);

  --radius:    22px;
  --font-head: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  padding: 28px 16px;
  font-family: var(--font-body);
  color: var(--cream);
  overflow-x: hidden;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(224,179,108,0.16), transparent 60%),
    radial-gradient(700px 500px at 110% 100%, rgba(224,179,108,0.10), transparent 55%),
    radial-gradient(800px 600px at -10% 90%, rgba(120,90,40,0.12), transparent 55%),
    linear-gradient(160deg, var(--bg1), var(--bg0) 55%, #0a0b0a);
  background-attachment: fixed;
}
body::after {  /* мягкая виньетка */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 220px 40px rgba(0,0,0,0.6);
}

/* ---------- Золотые искры и сердечки ---------- */
.bg-decor, .confetti-layer {
  position: fixed; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.confetti-layer { z-index: 6; }
.floaty {
  position: absolute; bottom: -8%;
  color: var(--gold);
  opacity: 0.5;
  text-shadow: 0 0 8px rgba(224,179,108,0.6);
  will-change: transform, opacity;
  animation: rise linear infinite;
  user-select: none;
}
@keyframes rise {
  0%   { transform: translateY(0) rotate(0); opacity: 0; }
  12%  { opacity: 0.6; }
  88%  { opacity: 0.5; }
  100% { transform: translateY(-118vh) rotate(220deg); opacity: 0; }
}

/* ---------- Карточка ---------- */
/* margin:auto центрирует, когда контент короче экрана, и прижимает к верху
   (с прокруткой), когда длиннее — иначе flex обрезает верх длинных шагов */
.card-wrap { position: relative; z-index: 2; width: 100%; max-width: 540px; margin: auto; }

.progress { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.progress .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-2);
  transition: all 0.4s ease;
}
.progress .dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(224,179,108,0.7);
}

.card {
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glow);
  padding: 40px 32px 36px;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% -20%, rgba(224,179,108,0.12), transparent 60%);
  pointer-events: none;
}
/* уголки-орнаменты */
.corner {
  position: absolute; width: 22px; height: 22px; pointer-events: none;
  border-color: var(--line-2); border-style: solid; border-width: 0;
}
.corner.tl { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- Шаги ---------- */
.step { display: none; text-align: center; position: relative; z-index: 1; }
.step.active { display: block; animation: rise-in 0.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise-in {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Логотип ---------- */
.logo-wrap { display: flex; justify-content: center; margin-bottom: 14px; }
.logo-wrap .logo {
  width: 150px; height: auto;
  filter: drop-shadow(0 0 22px rgba(224,179,108,0.4));
  animation: glowpulse 4s ease-in-out infinite;
}
.logo-wrap.small .logo { width: 104px; }
@keyframes glowpulse {
  0%,100% { filter: drop-shadow(0 0 18px rgba(224,179,108,0.32)); }
  50%     { filter: drop-shadow(0 0 30px rgba(224,179,108,0.55)); }
}

/* ---------- Типографика ---------- */
.kicker, .eyebrow {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 14px;
}
.eyebrow { color: var(--cream-soft); margin-bottom: 10px; }

.title {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.04;
  font-size: clamp(2.4rem, 8vw, 3.5rem);
  color: var(--cream);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.title.small { font-size: clamp(2rem, 6.5vw, 2.7rem); }
.title #herName { color: var(--gold); font-style: italic; }

.subtitle {
  font-size: 0.9rem; font-weight: 300; line-height: 1.6;
  color: var(--cream-soft); margin-bottom: 26px;
}
.subtitle b { color: var(--gold); font-weight: 600; }

.note {
  font-size: 0.72rem; font-weight: 300; letter-spacing: 0.02em;
  color: var(--cream-soft); margin-top: 16px; opacity: 0.85;
}
.hint {
  min-height: 20px; margin-top: 16px;
  font-size: 0.82rem; color: var(--gold-bright); font-weight: 400;
  font-family: var(--font-head); font-style: italic; font-size: 1.05rem;
}

/* ---------- Кнопки ---------- */
.btn {
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: none; border-radius: 999px;
  padding: 15px 30px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .25s ease, color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn-yes {
  color: #211a0e;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 12px 26px -10px rgba(224,179,108,0.7);
}
.btn-yes:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -10px rgba(224,179,108,0.8); }

.btn-no, .btn-ghost {
  color: var(--cream-soft);
  background: transparent;
  border: 1px solid var(--line-2);
}
.btn-no:hover, .btn-ghost:hover { color: var(--cream); border-color: var(--gold); }

.btn-row { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
#noBtn { position: relative; transition: transform .3s ease, opacity .3s ease; }

.nav-row { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 30px; }
.nav-row .btn-yes { flex: 1; }

/* ---------- Поля даты/времени ---------- */
.field-label {
  display: block; text-align: left;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin: 18px 2px 9px;
}
.date-input, .time-input {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem;
  color: var(--cream); padding: 14px 16px;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(0,0,0,0.25); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  color-scheme: dark;
}
.date-input:focus, .time-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(224,179,108,0.18);
}

.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chip {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--cream);
  padding: 13px 10px; border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(0,0,0,0.2); cursor: pointer; transition: all .2s ease;
}
.chip:hover { border-color: var(--gold); }
.chip.selected {
  color: #211a0e; border-color: transparent;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 8px 20px -10px rgba(224,179,108,0.7);
}

.exact-time { margin-top: 14px; text-align: left; }
.exact-time summary {
  cursor: pointer; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); list-style: none; padding: 4px; font-weight: 500;
}
.exact-time summary::-webkit-details-marker { display: none; }
.exact-time .time-input { margin-top: 10px; }

/* ---------- Меню: бар / кухня ---------- */
.menu-block { margin-top: 22px; }
.menu-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.3em; color: var(--gold);
}
.menu-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.dish {
  position: relative; display: flex; flex-direction: column;
  font-family: var(--font-body); color: var(--cream);
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(0,0,0,0.25); cursor: pointer; overflow: hidden;
  padding: 0; text-align: left; transition: all .2s ease;
}
.dish:hover { border-color: var(--gold); transform: translateY(-2px); }
.dish-photo {
  position: relative; width: 100%; aspect-ratio: 1; overflow: hidden;
  background: linear-gradient(135deg, #241f15, #15120c);
  display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.dish-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-body { padding: 8px 9px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.dish-name { font-size: 0.66rem; font-weight: 500; line-height: 1.25; color: var(--cream); }
.dish-price { font-size: 0.66rem; font-weight: 600; color: var(--gold); margin-top: auto; }
.dish .check {
  position: absolute; top: 7px; right: 7px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: #1a140a;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  transform: scale(0); transition: transform .2s cubic-bezier(.2,.9,.3,1.5);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.dish.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 10px 24px -12px rgba(224,179,108,0.6); }
.dish.selected .check { transform: scale(1); }
.dish.selected .dish-photo::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(224,179,108,0.16); box-shadow: inset 0 0 0 2px var(--gold);
}

/* ---------- Итог ---------- */
.summary {
  text-align: left;
  border: 1px solid var(--line); border-radius: 16px;
  padding: 6px 20px; margin-bottom: 18px;
  background: rgba(0,0,0,0.22);
}
.summary-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.summary-row + .summary-row { border-top: 1px solid var(--line); }
.summary-row .ic { font-size: 1.05rem; line-height: 1.4; width: 22px; text-align: center; }
.summary-row .lbl {
  display: block;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.summary-row .val { font-size: 0.92rem; font-weight: 400; color: var(--cream); line-height: 1.45; }

.picked-strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.picked-strip img {
  width: 60px; height: 60px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--line-2); box-shadow: 0 6px 16px -8px rgba(0,0,0,0.7);
}

.btn-map {
  display: inline-block; width: 100%; text-decoration: none; text-align: center;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: none;
  color: var(--cream); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 14px 20px; margin-bottom: 22px; transition: all .2s ease;
  background: rgba(0,0,0,0.2);
}
.btn-map:hover { border-color: var(--gold); color: var(--gold-bright); }

.waiting {
  font-family: var(--font-head); font-style: italic;
  font-size: 1.5rem; line-height: 1.3; color: var(--gold-bright);
  margin-bottom: 24px;
}
.restart-btn { font-size: 0.72rem; }

.footer-note {
  text-align: center; margin-top: 22px;
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-soft); opacity: 0.6;
}

/* ---------- Конфетти ---------- */
.confetti {
  position: absolute; top: -5%;
  color: var(--gold); text-shadow: 0 0 8px rgba(224,179,108,0.7);
  animation: fall linear forwards; will-change: transform, opacity;
}
@keyframes fall {
  0%   { transform: translateY(-6vh) rotate(0); opacity: 1; }
  100% { transform: translateY(106vh) rotate(540deg); opacity: 0; }
}

/* ---------- Тряска ---------- */
.shake { animation: shake .45s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-7px); }
  40%,80% { transform: translateX(7px); }
}

/* ---------- Адаптив ---------- */
@media (max-width: 430px) {
  .card { padding: 32px 20px 28px; }
  .dish-grid { gap: 8px; }
  .dish-name { font-size: 0.6rem; }
  .btn { padding: 14px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
}
