:root {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  color-scheme: only light;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f9fbff;
  --accent: #3a7afe;
  --accent-strong: #1747f4;
  --accent-soft: rgba(58, 122, 254, 0.12);
  --text-primary: #1b2537;
  --text-secondary: #5b677a;
  --border: rgba(27, 37, 55, 0.08);
  --shadow: 0 18px 38px rgba(23, 54, 166, 0.12);
  --viewport-height: 100vh;
  --viewport-width: 100vw;
}

* {
  box-sizing: border-box;
}

body.page {
  margin: 0;
  min-height: var(--viewport-height, 100vh);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text-primary);
}

.page__header,
.page__footer {
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  background: linear-gradient(135deg, #ffffff, #eef3ff);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(23, 71, 244, 0.06);
}

.page__header h1,
.mobile-layout__title,
.slideshow__overlay h1 {
  margin: 0 0 0.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page__header p {
  margin: 0;
  color: var(--text-secondary);
}

.page__footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.page__content {
  flex: 1;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 5vw, 4rem);
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  align-content: start;
}

.card {
  background: var(--surface);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card h2 {
  margin-top: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button,
.tool-link,
button,
.button-link,
select,
input {
  font-family: inherit;
}

.button,
.tool-link,
button,
.button-link {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 12px 24px rgba(58, 122, 254, 0.25);
  text-align: center;
}

button:disabled,
.button-link.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

button:hover:not(:disabled),
.tool-link:hover,
.button-link:hover:not(.disabled) {
  transform: translateY(-1px);
}

select,
input[type='number'] {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: var(--surface-soft);
  color: var(--text-primary);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.hint {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

/* Mobile capture */
.page--mobile {
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 60%, #f1f4ff 100%);
  padding: 0;
  overflow: hidden;
  min-height: var(--viewport-height, 100vh);
  width: var(--viewport-width, 100vw);
}

:root.is-ios-landscape,
html.is-ios-landscape {
  background: #000;
}

html.is-ios-landscape body {
  background: #000;
}

.is-ios-landscape body.page--mobile {
  position: fixed;
  inset: 0;
  width: var(--viewport-width, 100vw);
  height: var(--viewport-height, 100vh);
  background: #000;
}

.is-ios-landscape body.page--mobile .mobile-stage,
.is-ios-landscape body.page--mobile .mobile-stage__preview {
  background-color: #000;
}

.is-ios-landscape .mobile-stage {
  height: var(--viewport-height, 100vh);
}

.page--mobile--brightness-fallback {
  background: linear-gradient(180deg, #ffffff 0%, #fefefe 40%, #f8fbff 100%);
}

.page--mobile--brightness-fallback .mobile-stage {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 255, 0.86) 45%, rgba(241, 244, 255, 0.84) 100%);
}

.page--mobile--brightness-fallback .mobile-stage__preview {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.65), rgba(148, 163, 184, 0.08) 70%, transparent 85%);
}

.mobile-stage {
  position: relative;
  flex: 1;
  width: var(--viewport-width, 100vw);
  height: var(--viewport-height, 100vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vh, 3.5rem);
  overflow: hidden;
  padding-top: clamp(1.5rem, 4vh, 2.5rem);
}

.page--mobile .mobile-stage::before {
  content: '';
  position: absolute;
  inset: -12%;
  pointer-events: none;
  border-radius: 32px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 78%);
  opacity: 0;
  transform: scale(1.05);
  filter: blur(18px);
  z-index: 5;
}

.page--mobile--flash-burst .mobile-stage::before {
  opacity: 1;
  animation: flash-burst 460ms ease-out;
}

@keyframes flash-burst {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.page--mobile--landscape .mobile-stage {
  justify-content: flex-end;
}

.mobile-stage__preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  z-index: 1;
}


.mobile-stage__preview video,
.mobile-stage__preview img,
.mobile-stage__preview canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.is-ios .mobile-stage__preview video {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: none;
}

.mobile-stage__preview img {
  z-index: 2;
  pointer-events: none;
  transition: transform 200ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.orientation-lock {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 6vw, 3rem);
  z-index: 6;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.92) 55%, rgba(226, 232, 240, 0.9) 100%);
  color: #0f172a;
  backdrop-filter: blur(28px);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.orientation-lock.orientation-lock--visible {
  display: flex;
}

.orientation-lock__content {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  place-items: center;
}

.orientation-lock__device {
  position: relative;
  width: clamp(132px, 38vw, 196px);
  aspect-ratio: 1;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 26px 60px -32px rgba(15, 23, 42, 0.35);
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4.5vw, 2rem);
  transform-origin: center;
  animation: rotate-device 3.2s ease-in-out infinite;
}

.orientation-lock__icon {
  display: block;
  width: clamp(94px, 26vw, 132px);
  height: auto;
  filter: none;
}

.orientation-lock p {
  margin: 0;
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  font-weight: 500;
  text-wrap: balance;
}

@keyframes rotate-device {
  0%,
  15% {
    transform: rotate(0deg);
  }
  35%,
  60% {
    transform: rotate(90deg);
  }
  80%,
  100% {
    transform: rotate(0deg);
  }
}

.mobile-stage__button {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(2.75rem, 10vh, 5.5rem);
}

.page--mobile--landscape .mobile-stage__button {
  position: absolute;
  top: 50%;
  right: clamp(1.75rem, 6vw, 3rem);
  transform: translateY(-50%);
  margin-top: 0;
}

.preview-countdown {
  position: absolute;
  z-index: 6;
  left: calc(env(safe-area-inset-left, 0px) + clamp(0.8rem, 4vw, 1.6rem));
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(1.2rem, 8vh, 2.3rem));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem 0.55rem 0.85rem;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f8fafc;
  box-shadow: 0 28px 60px -22px rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.preview-countdown--active {
  opacity: 1;
  transform: translateY(0);
}

.preview-countdown__label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.preview-countdown__timer {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), rgba(15, 23, 42, 0.45));
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.4);
  pointer-events: none;
}

.preview-countdown__timer span {
  transform: translateY(-1px);
}

.page--mobile--portrait .mobile-stage__button,
.page--mobile--portrait .mobile-stage__hint,
.page--mobile--portrait .mobile-stage__actions {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.mobile-stage__hint {
  position: relative;
  z-index: 3;
  width: min(520px, 90vw);
  padding: clamp(1rem, 3.6vw, 1.6rem) clamp(1.25rem, 4vw, 1.9rem);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.15);
  color: var(--text-primary);
  font-size: clamp(1rem, 2.6vw, 1.1rem);
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.page--mobile--landscape .mobile-stage__hint {
  position: absolute;
  top: clamp(1.25rem, 5vh, 2.75rem);
  left: clamp(1.25rem, 6vw, 3rem);
  width: min(380px, 45vw);
  text-align: left;
}

.mobile-stage__hint strong {
  color: var(--accent-strong);
}

.mobile-stage__hint:active {
  transform: scale(0.99);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.65);
}

.capture-button {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(104px, 20vw, 136px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.35);
  box-shadow: 0 24px 60px -26px rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.page--mobile--landscape .capture-button {
  width: clamp(82px, 15vw, 108px);
}

.capture-button::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
  opacity: 0.65;
  transition: opacity 200ms ease;
}

.capture-button:active {
  transform: scale(0.94);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.6);
}

.capture-button__outer-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(241, 245, 249, 0.75), rgba(226, 232, 240, 0.55));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.75), inset 0 0 0 6px rgba(15, 23, 42, 0.08);
}

.capture-button__outer-ring::after {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: inset 0 0 18px rgba(148, 163, 184, 0.35);
}

.capture-button__inner-circle {
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 232, 240, 0.75));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9), inset 0 0 0 6px rgba(15, 23, 42, 0.08);
}

.mobile-stage__actions {
  position: absolute;
  z-index: 4;
  bottom: clamp(0.85rem, 5vh, 1.6rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, 86vw);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px);
  border-radius: 22px;
  padding: clamp(0.6rem, 2.4vw, 0.85rem);
  box-shadow: 0 26px 60px -28px rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 2vw, 0.85rem);
  transition: opacity 220ms ease, transform 260ms ease;
}

.mobile-stage__actions-header {
  display: flex;
  justify-content: flex-end;
}

.micro-button {
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(241, 245, 249, 0.55);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.micro-button:active {
  transform: scale(0.98);
}

.micro-button__icon {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.4);
  position: relative;
}

.micro-button__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5);
}

.mobile-stage__status {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.status-text {
  min-height: 1.4em;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.75);
}

.status-text--stored {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.85);
}

.status-hint {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 0 3px rgba(0, 0, 0, 0.7);
}

.status-hint--storage {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.95), 0 0 5px rgba(0, 0, 0, 0.85);
}

.mobile-stage__choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 0.5rem;
}

.page--mobile--landscape .mobile-stage__actions {
  width: min(520px, 80vw);
}


.mobile-stage__choices .button,
.mobile-stage__choices .button-link {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: 0 15px 30px -18px rgba(15, 23, 42, 0.38);
  min-height: 2.4rem;
  text-align: center;
  justify-content: center;
}

.button--outline {
  background: rgba(255, 255, 255, 0.35);
  color: var(--text-primary);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: none;
}

.button--ghost {
  background: rgba(58, 122, 254, 0.16);
  color: var(--accent-strong);
  box-shadow: none;
}

.page--mobile--flash-sequence {
  background: #ffffff;
}

.page--mobile--flash-sequence .mobile-stage {
  background: #ffffff;
}

.page--mobile--flash-sequence .mobile-stage::before {
  display: none;
}

.page--mobile--flash-sequence .mobile-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 24;
  pointer-events: none;
}

.page--mobile--flash-sequence .mobile-stage__preview video,
.page--mobile--flash-sequence .mobile-stage__preview img,
.page--mobile--flash-sequence .mobile-stage__preview canvas {
  opacity: 0;
}

.page--mobile--flash-sequence .mobile-stage__hint,
.page--mobile--flash-sequence .mobile-stage__button,
.page--mobile--flash-sequence .mobile-stage__actions,
.page--mobile--flash-sequence .preview-countdown,
.page--mobile--flash-sequence .orientation-lock {
  opacity: 0;
}

.page--mobile--flash-sequence .mobile-stage__button,
.page--mobile--flash-sequence .mobile-stage__actions {
  pointer-events: none;
}

html.flash-root--flash,
html.flash-root--flash body,
html.flash-root--flash .page--mobile,
html.flash-root--flash .mobile-stage {
  background: #ffffff !important;
}

html.flash-root--flash {
  color-scheme: only light;
}

.flash-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  opacity: 0;
  transition: opacity 100ms linear;
  pointer-events: none;
  will-change: opacity;
}

.flash-overlay--visible {
  opacity: 1;
}

.flash-overlay__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  color: #0f172a;
  text-align: center;
  pointer-events: none;
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.flash-overlay__label {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: 2.25rem;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

.flash-overlay__countdown {
  display: inline-flex;
  min-width: clamp(4.75rem, 10vw, 7rem);
  min-height: clamp(4.75rem, 10vw, 7rem);
  border-radius: 2.5rem;
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 700;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(22px);
}

.page--mobile--flash .mobile-stage {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.88) 0%, rgba(241, 244, 255, 0.96) 45%, rgba(226, 232, 240, 1) 100%);
}

.page--mobile--flash .mobile-stage::after {
  display: none;
}

.page--mobile--flash .mobile-stage__button {
  display: none;
}

.page--mobile--flash .mobile-stage__status,
.page--mobile--flash .status-text,
.page--mobile--flash .status-hint {
  color: #0f172a;
}


.page--mobile--flash .mobile-stage__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}

.page--mobile--preview-only .mobile-stage__actions {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
}

/* Slideshow */
.page--slideshow {
  background: #020617;
  color: #f8fafc;
  overflow: hidden;
}

.slideshow {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #020617;
}

.slideshow__canvas-container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.slideshow__canvas-container canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.slideshow__overlay {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1.5rem, 4vw, 3rem);
  width: min(360px, 90vw);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 28px 60px rgba(27, 37, 55, 0.18);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 200ms ease, transform 220ms ease;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.slideshow__caption {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vw, 3rem);
  transform: translateX(-50%);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  font-weight: 500;
  box-shadow: 0 18px 32px rgba(27, 37, 55, 0.16);
}

.page--slideshow.page--slideshow--fullscreen .slideshow__overlay {
  position: fixed;
  top: clamp(1.5rem, 4vh, 3rem);
  right: clamp(1.5rem, 4vh, 3rem);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

.page--slideshow.page--slideshow--fullscreen .slideshow__caption {
  position: fixed;
  left: 50%;
  bottom: clamp(1.5rem, 6vh, 3rem);
  transform: translateX(-50%);
}

.fullscreen-button {
  background: rgba(27, 37, 55, 0.08);
  color: var(--text-primary);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  font-weight: 500;
  box-shadow: none;
  border: 1px solid rgba(27, 37, 55, 0.12);
}

.fullscreen-button:hover {
  transform: none;
  background: rgba(27, 37, 55, 0.12);
}

@media (max-width: 768px) {
  .page__content {
    padding: clamp(1rem, 6vw, 2rem);
  }

  .card {
    border-radius: 18px;
  }

  .slideshow__overlay {
    position: static;
    width: 100%;
    margin: clamp(1rem, 6vw, 2rem);
    background: rgba(255, 255, 255, 0.95);
  }

  .slideshow {
    flex-direction: column;
    justify-content: flex-start;
  }

  .slideshow__canvas-container {
    height: 60vh;
  }

  .slideshow__caption {
    position: static;
    transform: none;
    margin: 1.25rem auto 0;
  }
}

.anim-fade {
  animation: fadeIn 1.2s ease both;
}

.anim-slide {
  animation: slideIn 1.2s ease both;
}

.anim-zoom {
  animation: zoomIn 1.2s ease both;
}

.anim-flip {
  animation: flipIn 1.1s ease both;
}

.anim-kenburns {
  animation: kenburns 16s ease alternate infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate3d(6%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale3d(1.08, 1.08, 1);
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes flipIn {
  from {
    opacity: 0;
    transform: perspective(1400px) rotateY(28deg);
  }
  to {
    opacity: 1;
    transform: perspective(1400px) rotateY(0deg);
  }
}

@keyframes kenburns {
  0% {
    transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale3d(1.08, 1.08, 1) translate3d(-2%, -1%, 0);
  }
}
