/* ══════════════════════════════════════
   Miliő Lash Shot — Stylesheet v2
   Premium feminine beauty salon style
   ══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400&display=swap');

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #2a1520 0%, #0e0a0c 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Lato', 'Georgia', serif;
  touch-action: none;
}

/* ── Game wrapper ── */
#gameWrapper { position: relative; flex-shrink: 0; }

#gameCanvas {
  display: block; width: 100%; height: 100%;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255,200,215,0.15),
    0 0 60px rgba(200,80,120,0.25),
    0 20px 80px rgba(0,0,0,0.6);
}

/* ── HUD ── */
#hud {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 12px 14px 0;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none; z-index: 10;
}

#scoreDisplay, #missedDisplay {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  padding: 5px 14px;
  border-radius: 30px;
  font-family: 'Lato', sans-serif;
  font-size: clamp(12px, 2.8vw, 16px);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.28);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

#brandLabel {
  font-family: 'Lato', sans-serif;
  font-size: clamp(7px, 1.4vw, 10px);
  font-weight: 300;
  color: rgba(255,220,230,0.65);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* score pulse on hit */
@keyframes scorePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); color: #ffb3c8; }
  100% { transform: scale(1); }
}
.score-pop { animation: scorePop 0.35s ease-out; }

/* ── Overlays ── */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #fce4d6 0%, #f3ccd8 40%, #eddfd5 100%);
}
.overlay.hidden { display: none; }

.overlay-content {
  text-align: center;
  padding: 36px 30px;
  max-width: 370px; width: 90%;
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(16px);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.8) inset,
    0 12px 50px rgba(180,80,110,0.16);
}

.studio-label {
  font-family: 'Lato', sans-serif;
  font-size: 10px; font-weight: 300;
  letter-spacing: 0.22em;
  color: #b06878;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.game-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(42px, 11vw, 60px);
  color: #4a1828;
  line-height: 1.0;
  margin-bottom: 6px;
  text-shadow: 0 3px 12px rgba(180,60,90,0.18);
}

.gameover-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 8vw, 44px);
  color: #4a1828;
  margin-bottom: 10px;
}

.subtitle {
  color: #9a4860;
  font-size: 15px; font-weight: 300;
  margin-bottom: 22px;
  letter-spacing: 0.03em;
}

/* decorative divider */
.divider {
  display: flex; align-items: center; gap: 10px;
  margin: 0 auto 20px;
  color: #d4a0b0;
  font-size: 12px; letter-spacing: 0.15em;
}
.divider::before, .divider::after {
  content: ''; flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #d4a0b0, transparent);
}

.instruction-box {
  background: rgba(255,240,245,0.65);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 24px;
  text-align: left;
  border: 1px solid rgba(220,170,185,0.3);
}
.instruction-box p {
  color: #7a3050;
  font-size: 14px; font-weight: 300;
  line-height: 2.0;
}

.final-score {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  color: #4a1828;
  margin-bottom: 6px;
}
.motivational {
  font-size: 14px; font-weight: 300;
  color: #9a4860;
  font-style: italic;
  margin-bottom: 16px;
  min-height: 32px;
  line-height: 1.5;
}

/* ── Kupon doboz ── */
.coupon-box {
  width: 100%;
  background: linear-gradient(135deg, rgba(255,242,247,0.88), rgba(255,252,240,0.88));
  border: 1.5px dashed rgba(185,50,90,0.38);
  border-radius: 16px;
  padding: 14px 16px 10px;
  margin-bottom: 16px;
  text-align: center;
}
.coupon-box.hidden  { display: none; }

.coupon-msg {
  font-size: clamp(12px, 3vw, 14px);
  color: #4a1828;
  line-height: 1.55;
  margin-bottom: 10px;
}
.coupon-code {
  display: inline-block;
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: clamp(20px, 5.5vw, 26px);
  font-weight: 700;
  color: #b83060;
  letter-spacing: 0.18em;
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(185,50,90,0.28);
  border-radius: 10px;
  padding: 7px 22px;
  margin: 0 auto 8px;
  box-shadow: 0 2px 10px rgba(180,40,80,0.12);
}
.coupon-discount {
  font-size: clamp(11px, 2.8vw, 13px);
  font-style: italic;
  color: #6a2840;
  margin-bottom: 10px;
  line-height: 1.4;
}
.coupon-terms {
  font-size: clamp(9px, 2.2vw, 11px);
  color: rgba(90,32,53,0.52);
  line-height: 1.45;
  font-style: italic;
}

/* ── Nincs kupon üzenet ── */
.no-coupon-msg {
  font-size: clamp(11px, 2.8vw, 13px);
  color: #9a4860;
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.5;
  text-align: center;
}
.no-coupon-msg.hidden { display: none; }

/* ══════════════════════════════════════
   KUPON NYEREMÉNY MODAL
   ══════════════════════════════════════ */
.coupon-win-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0;
  background: rgba(45, 8, 22, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
  padding: 24px 0 16px;
}
.coupon-win-overlay.hidden { display: none; }

.celeb-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.coupon-win-card {
  position: relative; z-index: 10;
  background: linear-gradient(148deg, #fffaf5 0%, #fef2f6 50%, #fff9ef 100%);
  border: 1.5px solid rgba(210,150,170,0.30);
  border-radius: 28px;
  padding: 32px 26px 26px;
  max-width: 335px; width: 88%;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255,210,225,0.25),
    0 8px 40px rgba(180,40,90,0.22),
    0 0 80px rgba(255,200,215,0.12);
  animation: winCardIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes winCardIn {
  from { opacity:0; transform: scale(0.78) translateY(24px); }
  to   { opacity:1; transform: scale(1)    translateY(0); }
}

.cwc-studio {
  font-family: 'Lato', sans-serif;
  font-size: 10px; font-weight: 300;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #b06878; margin-bottom: 12px; font-style: italic;
}
.cwc-congrats {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 6vw, 28px);
  color: #4a1828; margin-bottom: 10px;
}
.cwc-pct-row {
  display: flex; align-items: baseline;
  justify-content: center; gap: 6px;
  margin-bottom: 2px;
}
.cwc-pct {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(64px, 18vw, 88px);
  font-style: italic;
  color: #b83060;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(180,40,90,0.22);
}
.cwc-pct-label {
  font-family: 'Lato', sans-serif;
  font-size: clamp(16px, 4.5vw, 22px);
  font-weight: 300; color: #7a3050;
  letter-spacing: 0.04em;
}
.cwc-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(18px, 5vw, 22px);
  color: #4a1828; margin-bottom: 18px;
}
.cwc-code-wrap {
  background: rgba(255,255,255,0.75);
  border: 1px dashed rgba(185,50,90,0.32);
  border-radius: 14px;
  padding: 10px 18px;
  margin-bottom: 14px;
  display: inline-block; width: 100%;
}
.cwc-code-label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 11px; font-weight: 300;
  color: #9a5068; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 4px;
}
.cwc-code {
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 700; letter-spacing: 0.20em;
  color: #b83060;
}
.cwc-usage {
  font-size: clamp(12px, 3vw, 14px);
  color: #7a3050; font-style: italic;
  line-height: 1.5; margin-bottom: 10px;
}

/* Hint text on the clickable coupon card */
.cwc-click-hint {
  font-size: clamp(11px, 2.6vw, 13px);
  color: rgba(180,50,90,0.70);
  font-style: italic;
  letter-spacing: 0.04em;
  margin-top: 4px;
  padding: 6px 10px;
  border-top: 1px solid rgba(200,140,160,0.20);
}

/* Make the whole coupon card an <a> tag */
a.coupon-win-card {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s;
}
a.coupon-win-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(215,175,190,0.35),
    0 14px 55px rgba(180,40,90,0.28),
    0 0 90px rgba(255,200,215,0.16);
}
a.coupon-win-card:active { transform: scale(0.98); }

/* Button container below the coupon card */
.coupon-win-actions {
  position: relative; z-index: 10;
  width: 88%; max-width: 335px;
  margin-top: 16px;
  text-align: center;
}

/* ── END-GAME button group (always visible on game-over screen) ── */
.end-actions {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  width: 100%; margin-top: 8px;
}

/* Primary CTA — booking */
.btn-end-primary {
  display: block; width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #e0607a 0%, #b83060 100%);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: clamp(13px, 3.5vw, 15px);
  font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none; text-align: center;
  border-radius: 50px;
  box-shadow: 0 5px 22px rgba(160,30,70,0.38),
              0 1px 0 rgba(255,255,255,0.22) inset;
  transition: transform 0.12s, box-shadow 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.btn-end-primary:active { transform: scale(0.95); }

/* Restart — subtle secondary */
.btn-end-restart {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(200,140,160,0.35);
  border-radius: 50px;
  color: #7a3050;
  font-family: 'Lato', sans-serif;
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 28px; cursor: pointer; width: 100%;
  transition: transform 0.12s, background 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.btn-end-restart:active { transform: scale(0.96); }

/* Home link — minimal */
.btn-end-home {
  font-family: 'Lato', sans-serif;
  font-size: 12px; font-weight: 300;
  color: rgba(122,48,80,0.65);
  letter-spacing: 0.12em;
  text-decoration: underline; text-underline-offset: 3px;
  padding: 6px 0;
  -webkit-tap-highlight-color: transparent;
}

/* Home link on coupon win modal */
.btn-win-home {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 12px; font-weight: 300;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  text-decoration: underline; text-underline-offset: 3px;
  padding: 6px 0; margin-bottom: 6px;
  text-align: center;
}

.btn-booking {
  display: block; width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, #e0607a 0%, #b83060 100%);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: clamp(13px, 3.5vw, 15px);
  font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 5px 22px rgba(160,30,70,0.38),
              0 1px 0 rgba(255,255,255,0.22) inset;
  transition: transform 0.12s, box-shadow 0.12s;
  margin-bottom: 12px;
  -webkit-tap-highlight-color: transparent;
}
.btn-booking:active { transform: scale(0.95); }

.btn-win-secondary {
  display: block; width: 100%;
  background: none; border: none;
  font-family: 'Lato', sans-serif;
  font-size: 13px; font-weight: 300;
  color: #b06878; letter-spacing: 0.10em;
  cursor: pointer; padding: 8px;
  -webkit-tap-highlight-color: transparent;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ── Button ── */
.btn-primary {
  display: inline-block;
  padding: 15px 44px;
  background: linear-gradient(135deg, #e0607a 0%, #b83060 100%);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 5px 22px rgba(160,30,70,0.38);
  transition: transform 0.12s, box-shadow 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(160,30,70,0.2);
}
