/* ==========================================================================
   WEDDING GAME — STYLE
   Design tokens live at the top. Change the palette/type here, nowhere else.
   ========================================================================== */

:root {
  /* --- Color --- */
  --bg:            #14101d;
  --bg-elevated:   #1d1729;
  --panel:         rgba(255, 255, 255, 0.05);
  --panel-strong:  rgba(255, 255, 255, 0.09);
  --border:        rgba(255, 255, 255, 0.09);

  --gold:          #d9b25c;
  --gold-soft:     #f3d998;
  --blush:         #ff6f91;
  --blush-soft:    #ffb3c6;
  --lavender:      #a99bc2;

  --ink:           #f6f2ec;
  --ink-dim:       rgba(246, 242, 236, 0.62);
  --ink-faint:     rgba(246, 242, 236, 0.38);

  /* --- Type --- */
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-ui: "Sora", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* --- Shape / motion --- */
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------------------------------------------------------------------- */
/* Reset                                                                   */
/* ---------------------------------------------------------------------- */

* { box-sizing: border-box; }
html, body { height: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

h1, h2, h3, p { margin: 0; }
button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
.icon-btn:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------------- */
/* Curtain intro                                                            */
/* ---------------------------------------------------------------------- */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow: hidden;
  background: #0a0405;
}
.curtain[hidden] { display: none; }

.curtain__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  display: flex;
  background:
    radial-gradient(ellipse 140% 60% at 50% 0%, rgba(0,0,0,0.55), transparent 60%),
    linear-gradient(180deg, #7a0f1c 0%, #5c0a15 40%, #3d060e 100%);
  box-shadow: inset 0 0 80px rgba(0,0,0,0.6);
  transition: transform 1.4s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.curtain__panel--left { left: 0; transform-origin: left; }
.curtain__panel--right { right: 0; transform-origin: right; }

.curtain--opening .curtain__panel--left { transform: translateX(-102%); }
.curtain--opening .curtain__panel--right { transform: translateX(102%); }

.curtain__fold {
  flex: 1;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.10), rgba(0,0,0,0.28) 45%, rgba(255,255,255,0.05) 75%, rgba(0,0,0,0.22));
  border-right: 1px solid rgba(0,0,0,0.3);
}
.curtain__fold:last-child { border-right: none; }

.curtain__valance {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14%;
  background: linear-gradient(180deg, #8a1522, #5c0a15 85%, transparent);
  z-index: 1;
}
.curtain__valance::before,
.curtain__valance::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, transparent 26px, rgba(0,0,0,0.35) 27px);
  background-size: 56px 56px;
  background-position: bottom;
  opacity: 0.6;
}
.curtain--opening .curtain__valance { transition: opacity 0.6s ease 0.5s; opacity: 0; }

.curtain__spotlight {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255, 226, 160, 0.16), transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.curtain__title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold-soft);
  text-align: center;
  padding: 24px;
  animation: curtain-title-in 1s var(--ease-soft) 0.3s both;
  transition: opacity 0.5s ease;
}
.curtain--opening .curtain__title { opacity: 0; }

.curtain__ring {
  font-size: 40px;
  filter: drop-shadow(0 8px 20px rgba(217, 178, 92, 0.4));
  animation: ring-float 4.5s ease-in-out infinite;
}
.curtain__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 6vw, 1.9rem);
  letter-spacing: 0.02em;
}

.curtain__open-btn {
  margin-top: 18px;
}

@keyframes curtain-title-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
}

/* ---------------------------------------------------------------------- */
/* Ambient background                                                      */
/* ---------------------------------------------------------------------- */

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.55;
}
.bg-glow--a {
  background: radial-gradient(420px 320px at 18% 12%, rgba(217, 178, 92, 0.35), transparent 70%);
}
.bg-glow--b {
  background: radial-gradient(480px 380px at 85% 78%, rgba(255, 111, 145, 0.22), transparent 70%);
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ---------------------------------------------------------------------- */
/* App shell / screens                                                     */
/* ---------------------------------------------------------------------- */

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
}

.screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  animation: screen-in 0.5s var(--ease-soft);
}
.screen--active { display: flex; }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 65%);
  color: #241a0a;
  box-shadow: 0 10px 30px -8px rgba(217, 178, 92, 0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 34px -8px rgba(217, 178, 92, 0.6), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn--primary:active { transform: translateY(0) scale(0.97); box-shadow: 0 4px 14px -6px rgba(217, 178, 92, 0.5); }
.btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.3);
  transform: none !important;
}
.btn--ghost {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--panel-strong); }
.btn--ghost:disabled { opacity: 0.35; cursor: not-allowed; }

.btn--big {
  padding: 17px 38px;
  font-size: 16px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--ink);
  backdrop-filter: blur(10px);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.icon-btn:active { transform: scale(0.92); }
.icon-btn--ghost { visibility: hidden; }

/* ---------------------------------------------------------------------- */
/* Language switcher                                                        */
/* ---------------------------------------------------------------------- */

.lang-toggle {
  position: absolute;
  top: calc(var(--safe-top) + 18px);
  right: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 92px;
  height: 42px;
  padding: 0 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.14));
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4), inset 0 -1px 0 rgba(255,255,255,0.04), 0 6px 18px -8px rgba(0,0,0,0.5);
  transition: box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}
.lang-toggle:hover {
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4), inset 0 -1px 0 rgba(255,255,255,0.06), 0 8px 22px -6px rgba(217, 178, 92, 0.35);
}
.lang-toggle:active { transform: scale(0.95); }

.lang-toggle--inline {
  position: static;
}

.lang-toggle__flag {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 16px;
  line-height: 1;
  opacity: 0.4;
  transform: scale(0.85);
  transition: opacity 0.3s var(--ease), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s var(--ease);
  filter: grayscale(0.7) brightness(0.75);
}

.lang-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-soft), var(--gold) 70%);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.35),
    0 4px 14px rgba(217, 178, 92, 0.55),
    inset 0 1px 1px rgba(255,255,255,0.6),
    inset 0 -2px 3px rgba(150, 105, 30, 0.4);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 0;
}
.lang-toggle:active .lang-toggle__knob { width: 38px; }

/* DE active (default): knob behind the DE flag, DE flag highlighted */
.lang-toggle .lang-toggle__flag--de { opacity: 1; filter: none; transform: scale(1.18); }

/* TR active: knob slides behind the TR flag */
.lang-toggle--tr .lang-toggle__knob { transform: translateX(50px); }
.lang-toggle--tr .lang-toggle__flag--de { opacity: 0.4; filter: grayscale(0.7) brightness(0.75); transform: scale(0.85); }
.lang-toggle--tr .lang-toggle__flag--tr { opacity: 1; filter: none; transform: scale(1.18); }

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  gap: 4px;
}

.hero__ring {
  font-size: 44px;
  margin-bottom: 14px;
  animation: ring-float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(217, 178, 92, 0.35));
}
@keyframes ring-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-10px) rotate(4deg); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, var(--ink), var(--ink-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}

.hero__names {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 5.5vw, 1.9rem);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.hero__amp {
  font-style: normal;
  color: var(--ink-faint);
  font-size: 0.8em;
}

.hero__date-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  margin-bottom: 28px;
}
.hero__date-dot { color: var(--blush-soft); }

.hero__tagline {
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 32ch;
  margin-bottom: 34px;
}

.hero__scroll-hint {
  display: flex;
  justify-content: center;
  padding-bottom: 28px;
}
.hero__scroll-hint span {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: var(--panel-strong);
}

/* ---------------------------------------------------------------------- */
/* Topbar (shared across select + games)                                   */
/* ---------------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 8px;
}
.topbar__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}
.topbar--game .topbar__title { font-size: 17px; }
.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar__score {
  min-width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 17px;
  color: var(--gold-soft);
}
.icon-btn--reset {
  width: 34px;
  height: 34px;
  color: var(--ink-dim);
}
.icon-btn--reset:hover { color: var(--ink); background: var(--panel-strong); }
.icon-btn--reset:active { transform: scale(0.88) rotate(-40deg); }

/* ---------------------------------------------------------------------- */
/* Game select cards                                                        */
/* ---------------------------------------------------------------------- */

.card-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 20px 32px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
}

.card-stack--scroll {
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 10px;
  text-align: left;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.game-card:hover { transform: translateY(-3px); box-shadow: 0 20px 42px -16px rgba(0, 0, 0, 0.6); }
.game-card:active { transform: translateY(-1px) scale(0.98); }

.game-card__glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.game-card--run .game-card__glow    { background: var(--gold); }
.game-card--quiz .game-card__glow   { background: var(--blush); }
.game-card--catch .game-card__glow  { background: var(--lavender); }
.game-card--slots .game-card__glow  { background: #6fd6a8; }
.game-card--shoot .game-card__glow  { background: #6fa8d6; }
.game-card--memory .game-card__glow { background: var(--gold); }
.game-card--penalty .game-card__glow { background: #6fd68f; }
.game-card--slideshow .game-card__glow { background: #d6a76f; }
.game-card:hover .game-card__glow { opacity: 0.55; }
.game-card:hover { border-color: rgba(255,255,255,0.18); }

.game-card__icon {
  grid-row: 1 / 3;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 16px;
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--border);
}

.game-card__body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}
.game-card__body p {
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.45;
}

.game-card__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.pill {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  color: var(--ink-dim);
  border: 1px solid var(--border);
}
.game-card__best {
  font-size: 12px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.game-card__play {
  position: absolute;
  bottom: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.game-card:hover .game-card__play { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------- */
/* Game frame (canvas games share this chrome)                             */
/* ---------------------------------------------------------------------- */

.game-frame {
  position: relative;
  flex: 1;
  margin: 8px 16px 4px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
  min-height: 55vh;
}

.game-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.game-hint {
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  padding: 10px 20px 22px;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 11, 22, 0.55);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.game-overlay[hidden] { display: none; }
.game-overlay--fading { opacity: 0; pointer-events: none; }

.game-overlay__card {
  max-width: 320px;
  width: 100%;
  text-align: center;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.game-overlay__icon { font-size: 36px; margin-bottom: 4px; }
.game-overlay__card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}
.game-overlay__card p {
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.5;
  margin-bottom: 6px;
}
.game-overlay__card .btn { margin-top: 8px; }

.game-overlay__stats {
  display: flex;
  gap: 28px;
  margin: 6px 0;
}
.game-overlay__stats div { display: flex; flex-direction: column; align-items: center; }
.game-overlay__stats span {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}
.game-overlay__stats label {
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------------- */
/* Quiz                                                                      */
/* ---------------------------------------------------------------------- */

.quiz-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 20px 32px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
}

.quiz-intro, .quiz-result {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.quiz-intro__icon, .quiz-result__icon { font-size: 38px; margin-bottom: 4px; }
.quiz-intro h3, .quiz-result h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
.quiz-intro p, .quiz-result p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
  max-width: 34ch;
}
.quiz-intro .btn, .quiz-result .btn { margin-top: 10px; }

.quiz-progress { padding: 4px 2px 20px; }
.quiz-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--panel);
  overflow: hidden;
}
.quiz-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--blush));
  transition: width 0.4s var(--ease);
}

.quiz-card {
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  animation: card-in 0.4s var(--ease-soft);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.quiz-question {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 20px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--border);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.quiz-option:active { transform: scale(0.98); }
.quiz-option:not(:disabled):hover { border-color: rgba(255,255,255,0.22); }

.quiz-option--correct {
  background: rgba(139, 214, 158, 0.16);
  border-color: rgba(139, 214, 158, 0.55);
  color: #cdeed6;
}
.quiz-option--wrong {
  background: rgba(255, 111, 145, 0.14);
  border-color: rgba(255, 111, 145, 0.5);
  color: var(--blush-soft);
}
.quiz-option:disabled { cursor: default; }

/* ---------------------------------------------------------------------- */
/* Wedding Slots                                                             */
/* ---------------------------------------------------------------------- */

.slots-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 20px 32px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
  gap: 16px;
}

.slots-intro, .slots-result-screen {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.slots-intro__icon, .slots-result-screen__icon { font-size: 38px; margin-bottom: 4px; }
.slots-intro h3, .slots-result-screen h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
.slots-intro p, .slots-result-screen p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
  max-width: 34ch;
}
.slots-intro .btn, .slots-result-screen .btn { margin-top: 10px; }

.slots-game {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: card-in 0.4s var(--ease-soft);
}

.slots-machine {
  position: relative;
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #241a0a, #14100a 70%);
  border: 1px solid rgba(217, 178, 92, 0.35);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
}

.slots-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  position: relative;
}

.slots-reel {
  height: 96px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.15));
  border: 1px solid rgba(217, 178, 92, 0.25);
  overflow: hidden;
  position: relative;
}

.slots-reel__strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
}
.slots-reel__strip span {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  line-height: 1;
}

.slots-payline {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 2px;
  transform: translateY(-1px);
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--blush-soft), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.slots-reel--win {
  border-color: rgba(139, 214, 158, 0.7);
  box-shadow: 0 0 0 2px rgba(139, 214, 158, 0.35), 0 0 24px rgba(139, 214, 158, 0.35);
  animation: reel-win 0.6s ease-in-out infinite alternate;
}
@keyframes reel-win {
  from { filter: brightness(1); }
  to   { filter: brightness(1.25); }
}

.slots-result {
  min-height: 22px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-dim);
}
.slots-result--win { color: #8bd69e; }
.slots-result--lose { color: var(--ink-faint); }

.slots-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.slots-bet {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.slots-bet__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease);
}
.slots-bet__btn:hover { background: rgba(255,255,255,0.14); }
.slots-bet__btn:active { transform: scale(0.9); }
.slots-bet__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.slots-bet__value {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}
.slots-bet__value span {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 15px;
  color: var(--gold-soft);
}
.slots-bet__value label {
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.slots-paytable {
  padding: 16px 16px 14px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border);
}
.slots-paytable__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--gold-soft);
  margin-bottom: 8px;
  text-align: center;
}
.slots-paytable__rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slots-paytable__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,0.18);
}
.slots-paytable__symbols {
  font-size: 16px;
  letter-spacing: 2px;
}
.slots-paytable__mult {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.slots-paytable__hint {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.4;
}

/* ---------------------------------------------------------------------- */
/* Taubenjagd (Shooter)                                                      */
/* ---------------------------------------------------------------------- */

.game-frame--shoot { cursor: none; }

.shoot-ammo {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.shoot-ammo__bullet {
  width: 8px;
  height: 16px;
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.shoot-ammo__bullet--spent {
  opacity: 0.18;
  background: rgba(255,255,255,0.15);
  box-shadow: none;
  transform: scaleY(0.8);
}
.shoot-ammo--reloading {
  animation: ammo-pulse 0.5s ease-in-out infinite alternate;
}
@keyframes ammo-pulse {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

/* ---------------------------------------------------------------------- */
/* Pärchen-Memory                                                            */
/* ---------------------------------------------------------------------- */

.memory-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 20px 12px;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
}

.memory-intro {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.memory-intro__icon { font-size: 38px; margin-bottom: 4px; }
.memory-intro h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
.memory-intro p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
  max-width: 36ch;
}
.memory-intro .btn { margin-top: 6px; }

.memory-pairs-select {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  margin-top: 4px;
  width: 100%;
  max-width: 320px;
}
.memory-pairs-select label {
  font-size: 12px;
  color: var(--ink-dim);
  white-space: nowrap;
}
.memory-pairs-select input[type="range"] {
  flex: 1;
  accent-color: var(--gold);
}
.memory-pairs-select span {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}

.memory-game {
  display: flex;
  flex-direction: column;
  animation: card-in 0.4s var(--ease-soft);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.memory-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  perspective: 800px;
}

.memory-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.45s var(--ease-soft);
  transform-style: preserve-3d;
}
.memory-card--flipped .memory-card__inner,
.memory-card--matched .memory-card__inner {
  transform: rotateY(180deg);
}

.memory-card__face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.memory-card__face--back {
  background: linear-gradient(155deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--border);
  font-size: 22px;
}
.memory-card__face--front {
  transform: rotateY(180deg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.memory-card__face--front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.memory-card--matched .memory-card__face--front {
  border-color: rgba(139, 214, 158, 0.65);
  box-shadow: 0 0 0 2px rgba(139, 214, 158, 0.3);
}

.memory-card:not(.memory-card--matched) .memory-card__inner:active {
  transform: scale(0.96) rotateY(var(--flip, 0deg));
}

.memory-result {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.memory-result__icon { font-size: 38px; margin-bottom: 4px; }
.memory-result h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
.memory-result p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.memory-result .btn { margin-top: 6px; }

/* ---------------------------------------------------------------------- */
/* Elfmeterschießen (Penalty)                                                */
/* ---------------------------------------------------------------------- */

.game-frame--penalty { cursor: pointer; }

.penalty-power {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(280px, 80%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  z-index: 2;
  text-align: center;
}
.penalty-power__label {
  font-size: 11px;
  color: var(--ink-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.penalty-power__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.penalty-power__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8bd69e, var(--gold), var(--blush));
}

.penalty-player-select {
  width: 100%;
  margin: 4px 0 2px;
}
.penalty-player-select__label {
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 10px;
}
.penalty-player-select__row {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.penalty-player-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 2px solid var(--border);
  transition: transform 0.15s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.penalty-player-btn:hover { background: var(--panel-strong); }
.penalty-player-btn:active { transform: scale(0.95); }
.penalty-player-btn__jersey {
  display: block;
  width: 34px;
  height: 34px;
  clip-path: polygon(30% 0%, 42% 12%, 58% 12%, 70% 0%, 100% 22%, 84% 40%, 74% 34%, 74% 100%, 26% 100%, 26% 34%, 16% 40%, 0% 22%);
  position: relative;
}
.penalty-player-btn__jersey::after {
  content: "14";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
}
.penalty-player-btn--emre .penalty-player-btn__jersey { background: linear-gradient(160deg, #4a8ff0, #2454a8); box-shadow: 0 4px 10px rgba(47,111,214,0.45); }
.penalty-player-btn--amelie .penalty-player-btn__jersey { background: linear-gradient(160deg, #ff9ab8, #ff5c88); box-shadow: 0 4px 10px rgba(255,111,145,0.45); }
.penalty-player-btn__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
}
.penalty-player-btn--selected {
  border-color: var(--gold-soft);
  background: var(--panel-strong);
}
.penalty-player-btn--selected .penalty-player-btn__name { color: var(--ink); }

/* ---------------------------------------------------------------------- */
/* Foto-Diashow (Retro Polaroid)                                             */
/* ---------------------------------------------------------------------- */

.slideshow-stage {
  position: relative;
  flex: 1;
  margin: 8px 16px 4px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(ellipse 120% 90% at 50% 20%, rgba(90, 70, 40, 0.35), transparent 65%), linear-gradient(180deg, #1c140c, #0d0906);
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.slideshow-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 50% 45%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

.slideshow-dust {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 85% 20%, rgba(255,255,255,0.7), transparent);
  animation: dust-flicker 2.6s steps(1) infinite;
}
@keyframes dust-flicker {
  0%, 91%, 100% { opacity: 0; }
  92% { opacity: 0.5; }
  94% { opacity: 0.1; }
  96% { opacity: 0.4; }
  98% { opacity: 0; }
}

.slideshow-deck {
  position: relative;
  width: 68%;
  max-width: 320px;
  aspect-ratio: 3 / 3.6;
  z-index: 2;
}

.slideshow-polaroid {
  position: absolute;
  inset: 0;
  padding: 14px 14px 46px;
  background: #f4efe4;
  border-radius: 4px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.3);
  transform-origin: center center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
}

.slideshow-polaroid__photo {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  position: relative;
}
.slideshow-polaroid__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(0.35) saturate(1.15) contrast(1.05) brightness(0.96);
}
.slideshow-polaroid__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(40, 25, 10, 0.35) 100%);
  mix-blend-mode: multiply;
}
.slideshow-polaroid__caption {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 13px;
  color: #5a4a35;
}

/* stacked "waiting" polaroids peeking out behind the active one */
.slideshow-polaroid--stack-1 { transform: translate(10px, 10px) rotate(4deg); opacity: 0.9; z-index: 1; }
.slideshow-polaroid--stack-2 { transform: translate(18px, 18px) rotate(-6deg); opacity: 0.7; z-index: 0; }

.slideshow-polaroid--active {
  z-index: 2;
  animation: polaroid-in 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes polaroid-in {
  from { transform: translateY(24px) rotate(-8deg) scale(0.92); opacity: 0; }
  to   { transform: translateY(0) rotate(var(--tilt, -2deg)) scale(1); opacity: 1; }
}

.slideshow-polaroid--exiting {
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translateY(-18px) rotate(10deg) scale(0.94);
  opacity: 0;
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.slideshow-nav:hover { background: rgba(0,0,0,0.5); }
.slideshow-nav:active { transform: translateY(-50%) scale(0.9); }
.slideshow-nav--prev { left: 12px; }
.slideshow-nav--next { right: 12px; }

.slideshow-play-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255, 226, 160, 0.9);
  backdrop-filter: blur(6px);
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.slideshow-play-btn:hover { background: rgba(0,0,0,0.55); }
.slideshow-play-btn:active { transform: scale(0.9); }

/* ---------------------------------------------------------------------- */
/* Responsive                                                                */
/* ---------------------------------------------------------------------- */

@media (min-width: 720px) {
  .card-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    overflow-y: visible;
    max-width: 920px;
  }
  .game-card { display: flex; flex-direction: column; }
  .game-card__icon { grid-row: auto; margin-bottom: 4px; }
  .game-card__meta { margin-top: auto; padding-top: 14px; }

  .game-frame { min-height: 60vh; }
}

@media (min-width: 1040px) {
  .card-stack { max-width: 1080px; }
}

@media (min-width: 900px) {
  .hero__title { font-size: 5.2rem; }
}

@media (min-width: 560px) {
  .memory-grid { grid-template-columns: repeat(5, 1fr); }
}
