/* ==========================================================================
   Variables & reset
   ========================================================================== */
:root {
  --bg: #f2eee2;
  --bg-deep: #e9e3d2;
  --ink: #14120f;
  --red: #e13a2e;
  --blue: #1d4fd8;
  --yellow: #f5b400;
  --cream: #fbf8f1;
  --radius-card: 28px;
  --radius-pill: 999px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --ease-pop: cubic-bezier(0.22, 1.3, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  z-index: 1000;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* ==========================================================================
   Decorative background shapes (Bauhaus geometry)
   ========================================================================== */
.bg-shapes {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  opacity: 0.9;
}

.shape--circle {
  border-radius: 50%;
}

.shape--square {
  border-radius: 6px;
}

.shape--triangle {
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid var(--yellow);
}

.shape--ring {
  border-radius: 50%;
  border: 14px solid var(--ink);
}

.shape--red {
  background: var(--red);
}
.shape--blue {
  background: var(--blue);
}
.shape--yellow {
  background: var(--yellow);
}
.shape--black {
  background: var(--ink);
}

.shape--circle.shape--red {
  width: 150px;
  height: 150px;
  top: -40px;
  right: -40px;
}
.shape--square.shape--blue {
  width: 120px;
  height: 120px;
  bottom: 8%;
  left: -40px;
  transform: rotate(18deg);
}
.shape--triangle {
  top: 55%;
  right: -20px;
  transform: rotate(12deg);
}
.shape--ring.shape--black {
  width: 90px;
  height: 90px;
  top: 12%;
  left: 6%;
}
.shape--square.shape--yellow.shape--sm {
  width: 46px;
  height: 46px;
  bottom: 18%;
  right: 12%;
  transform: rotate(-12deg);
}
.shape--circle.shape--blue.shape--sm {
  width: 34px;
  height: 34px;
  top: 30%;
  left: 14%;
}

@media (max-width: 640px) {
  .shape--triangle {
    border-left-width: 44px;
    border-right-width: 44px;
    border-bottom-width: 76px;
  }
  .shape--circle.shape--red {
    width: 100px;
    height: 100px;
  }
  .shape--square.shape--blue {
    width: 80px;
    height: 80px;
  }
}

/* ==========================================================================
   Screens
   ========================================================================== */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.screen {
  min-height: 100vh;
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
}

.screen.is-active {
  display: flex;
}

/* ==========================================================================
   Deck screen
   ========================================================================== */
.screen--deck {
  justify-content: flex-start;
  padding: clamp(20px, 5vh, 56px) 20px 28px;
  gap: clamp(16px, 4vh, 36px);
}

.deck-header {
  text-align: center;
  max-width: 560px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.title {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  line-height: 1.05;
}

.title-arrow {
  display: inline-block;
  margin-left: 10px;
  color: var(--blue);
}

.deck-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  max-height: 58vh;
  touch-action: pan-y;
}

.peek {
  position: absolute;
  inset: 10px;
  border-radius: var(--radius-card);
  border: 3px solid var(--ink);
  background: var(--cream);
  z-index: 0;
}

.peek--prev {
  transform: rotate(-7deg) translate(-6px, 10px);
  background: var(--yellow);
}

.peek--next {
  transform: rotate(7deg) translate(6px, 10px);
  background: var(--blue);
  opacity: 0.85;
}

.card-slot {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
  padding: clamp(22px, 5vw, 34px);
  cursor: grab;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-select: none;
}

.card:active {
  cursor: grabbing;
}

.card.is-dragging {
  transition: none !important;
}

.card.is-exit-left {
  transition: transform 0.42s var(--ease-out), opacity 0.42s var(--ease-out);
  transform: translate(-130%, 6%) rotate(-18deg);
  opacity: 0;
}

.card.is-exit-right {
  transition: transform 0.42s var(--ease-out), opacity 0.42s var(--ease-out);
  transform: translate(130%, 6%) rotate(18deg);
  opacity: 0;
}

.card.is-exit-up {
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
  transform: translate(0, -120%) scale(0.85);
  opacity: 0;
}

.card.is-enter {
  opacity: 0;
  transform: scale(0.88);
}

.card.is-enter-active {
  transition: transform 0.42s var(--ease-pop), opacity 0.36s var(--ease-out);
  transform: scale(1);
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 9vw, 46px);
  color: var(--red);
  line-height: 1;
}

.card-quote {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--blue);
  line-height: 0.6;
}

.card-text {
  font-size: clamp(17px, 3.4vw, 20px);
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--ink);
}

.card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--ink);
  opacity: 0.6;
}

/* ==========================================================================
   Deck controls
   ========================================================================== */
.deck-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4vw, 28px);
  width: 100%;
  max-width: 460px;
}

.nav-btn {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--cream);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.15s var(--ease-out), background 0.15s, box-shadow 0.15s;
}

.nav-btn:hover:not(:disabled) {
  background: var(--yellow);
}

.nav-btn:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nav-btn--final {
  width: auto;
  border-radius: var(--radius-pill);
  padding: 0 22px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 14px;
}

.nav-btn--final:hover:not(:disabled) {
  background: var(--yellow);
  color: var(--ink);
}

.deck-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 220px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--cream);
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease-pop), background 0.2s;
}

.dot:hover {
  transform: scale(1.2);
}

.dot.is-active {
  background: var(--red);
  transform: scale(1.3);
}

.counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Burst screen (photo explosion transition)
   ========================================================================== */
.screen--burst {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  pointer-events: none;
  display: none;
}

.screen--burst.is-active {
  display: block;
}

/* После блокировки экран взрыва становится кликабельным. */
.screen--burst.is-ready {
  pointer-events: auto;
}

.burst-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(30px, env(safe-area-inset-bottom));
  z-index: 2;
  /* width:max-content + auto-margin центрируют кнопку и дают ей
     всю ширину экрана — иначе left:50% сужает её вдвое. */
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease-out), transform 0.45s var(--ease-pop), visibility 0s linear 0.4s;
}

.burst-hint__text {
  white-space: nowrap;
}

.screen--burst.is-ready .burst-hint {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s, 0s, 0s;
}

.burst-hint__icon {
  display: inline-block;
  animation: burst-hint-nudge 1.6s var(--ease-out) infinite;
}

@keyframes burst-hint-nudge {
  0%,
  70%,
  100% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(5px);
  }
}

.burst-hint:active {
  transform: translateY(2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.photo-burst {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.burst-tile {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--size, 84px);
  height: var(--size, 84px);
  margin: calc(var(--size, 84px) / -2) 0 0 calc(var(--size, 84px) / -2);
  border-radius: var(--shape-radius, 14px);
  border: clamp(3px, calc(var(--size, 84px) * 0.026), 7px) solid var(--ink);
  overflow: hidden;
  opacity: 0;
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(0, 0) scale(0.2) rotate(0deg);
  transition: transform 0.75s var(--ease-pop), opacity 0.5s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.burst-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Обрезаем чуть выше центра — лица в вертикальных фото обычно там. */
  object-position: center 38%;
}

.burst-tile.is-scattered {
  opacity: 1;
  transform: translate(var(--tx), var(--ty)) scale(var(--scale, 1)) rotate(var(--rot, 0deg));
}

.burst-tile.is-collapsing {
  opacity: 0;
  transition: transform 0.55s var(--ease-out), opacity 0.45s var(--ease-out);
  transition-delay: var(--collapse-delay, 0s);
  transform: translate(0, 0) scale(0.1) rotate(calc(var(--rot, 0deg) * -1));
}

/* ==========================================================================
   Final screen
   ========================================================================== */
.screen--final {
  position: relative;
  justify-content: center;
  align-items: center;
  padding: 32px 20px;
  min-height: 100vh;
  overflow: hidden;
}

.final-photo-bg {
  position: absolute;
  /* Уходит за края экрана — коллаж обрезается по границам вьюпорта. */
  inset: -9%;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 5px;
  padding: 5px;
  background: var(--ink);
  opacity: 0;
  transition: opacity 1s ease;
  filter: grayscale(0.25);
}

.final-photo-bg.is-visible {
  opacity: 1;
  animation: final-collage-drift 26s ease-in-out infinite alternate;
}

@keyframes final-collage-drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.09);
  }
}

/* Кремовая вуаль по центру: фотографии остаются заметными по краям,
   а подарочная коробка и текст в центре читаются. */
.screen--final::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    118% 74% at 50% 47%,
    rgba(242, 238, 226, 0.97) 0%,
    rgba(242, 238, 226, 0.93) 30%,
    rgba(242, 238, 226, 0.62) 50%,
    rgba(242, 238, 226, 0.14) 71%,
    rgba(242, 238, 226, 0) 86%
  );
}

.final-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Лица в вертикальных фото обычно выше центра — держим их в кадре. */
  object-position: center 38%;
}

/* На широких экранах коллаж перестраивается в 4×3, чтобы плитки
   оставались пропорциональными, а не вытягивались в столбики. */
@media (min-aspect-ratio: 1/1) {
  .final-photo-bg {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  /* Вуаль сжимается вокруг коробки с подарком, чтобы по краям было видно фото. */
  .screen--final::before {
    background: radial-gradient(
      62% 64% at 50% 50%,
      rgba(242, 238, 226, 0.97) 0%,
      rgba(242, 238, 226, 0.92) 34%,
      rgba(242, 238, 226, 0.55) 58%,
      rgba(242, 238, 226, 0.1) 80%,
      rgba(242, 238, 226, 0) 94%
    );
  }
}

.confetti-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  will-change: transform, opacity;
}

.confetti-piece.is-flying {
  animation: confetti-fly var(--dur, 1.6s) var(--ease-out, ease-out) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes confetti-fly {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.4);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot, 180deg)) scale(1);
    opacity: 0;
  }
}

.confetti-piece--circle {
  width: var(--sz, 14px);
  height: var(--sz, 14px);
  border-radius: 50%;
  background: var(--c, var(--red));
}

.confetti-piece--square {
  width: var(--sz, 14px);
  height: var(--sz, 14px);
  background: var(--c, var(--blue));
  border-radius: 3px;
}

.confetti-piece--triangle {
  width: 0;
  height: 0;
  border-left: calc(var(--sz, 14px) / 2) solid transparent;
  border-right: calc(var(--sz, 14px) / 2) solid transparent;
  border-bottom: var(--sz, 14px) solid var(--c, var(--yellow));
}

.confetti-piece--heart {
  font-size: var(--sz, 18px);
  line-height: 1;
  color: var(--c, var(--red));
}

.final-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 440px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.final-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.final-heading {
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 800;
}

/* ==========================================================================
   Gift box (final present) — replaces the old QR code
   ========================================================================== */
.gift-box-frame {
  margin: 14px 0;
  padding: 16px;
  transform: scale(0);
  transition: transform 0.6s var(--ease-pop);
}

.gift-box-frame.is-visible {
  transform: scale(1);
}

.gift-box {
  position: relative;
  display: block;
  width: clamp(180px, 46vw, 240px);
  height: clamp(180px, 46vw, 240px);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s var(--ease-out);
}

.gift-box:hover:not(:disabled) {
  transform: translateY(-4px);
}

.gift-box:active:not(:disabled) {
  transform: translateY(1px);
}

.gift-box__base {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 2%;
  height: 62%;
  background: var(--red);
  border: 4px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  transition: transform 0.3s var(--ease-pop);
}

.gift-box__ribbon-v {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 20%;
  transform: translateX(-50%);
  background: var(--yellow);
  border-left: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
}

.gift-box__ribbon-v::before {
  content: '';
  position: absolute;
  top: 46%;
  left: -300%;
  right: -300%;
  height: 20%;
  background: var(--yellow);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.gift-box__lid {
  position: absolute;
  left: -2%;
  right: -2%;
  top: 14%;
  height: 24%;
  background: var(--blue);
  border: 4px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-hard-sm);
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease-pop), opacity 0.5s var(--ease-out);
  z-index: 2;
}

.gift-box__lid::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 22%;
  transform: translateX(-50%);
  background: var(--yellow);
  border-left: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
}

.gift-box__bow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 56px;
  height: 36px;
  transform: translate(-50%, -62%);
  z-index: 3;
}

.gift-box__bow::before,
.gift-box__bow::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 26px;
  height: 26px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 60% 60% 60% 0;
}

.gift-box__bow::before {
  left: 0;
  transform: rotate(-45deg);
}

.gift-box__bow::after {
  right: 0;
  border-radius: 60% 60% 0 60%;
  transform: rotate(45deg);
}

/* Открытие подарка: крышка улетает, бант уходит вместе с ней,
   коробка слегка "подпрыгивает". */
.gift-box.is-open {
  cursor: default;
}

.gift-box.is-open .gift-box__lid {
  transform: translate(26%, -170%) rotate(-28deg);
  opacity: 0;
}

.gift-box.is-open .gift-box__base {
  animation: gift-pop 0.5s var(--ease-pop) 0.1s both;
}

@keyframes gift-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.06, 0.94);
  }
  100% {
    transform: scale(1);
  }
}

.final-sub {
  font-weight: 700;
  font-size: 17px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s;
}

.btn-link:hover {
  background: var(--yellow);
  color: var(--ink);
}

.btn-link:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-ghost {
  margin-top: 4px;
  background: none;
  border: none;
  color: var(--ink);
  opacity: 0.6;
  text-decoration: underline;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn-ghost:hover {
  opacity: 1;
}

/* ==========================================================================
   Final "Дальше" button, injected into last card
   ========================================================================== */
.card-next-btn {
  margin-top: 14px;
  align-self: stretch;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border: 3px solid var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.15s var(--ease-out), background 0.15s, box-shadow 0.15s;
}

.card-next-btn:hover {
  background: var(--red);
}

.card-next-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ==========================================================================
   Video modal — opens when the gift box is unwrapped
   ========================================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, 0.86);
  cursor: pointer;
}

.video-modal__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  background: var(--ink);
  border: 4px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.35s var(--ease-pop);
}

.video-modal.is-open .video-modal__panel {
  transform: scale(1);
}

.video-modal__video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
}

.video-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out);
}

.video-modal__close:hover {
  transform: scale(1.08);
}

.video-modal__close:active {
  transform: translate(1px, 1px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 860px) {
  .deck-stage {
    max-width: 440px;
  }
}

@media (max-width: 380px) {
  .nav-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}

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