:root {
  --bg-1: #f8f4ea;
  --bg-2: #e9f1fb;
  --bg-3: #fdfdfc;
  --ink: #10202f;
  --ink-soft: #4b6275;
  --ink-faint: #6f8496;
  --card: rgba(255, 255, 255, 0.82);
  --card-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(118, 145, 171, 0.18);
  --shadow: 0 20px 60px rgba(34, 58, 84, 0.12);
  --shadow-soft: 0 14px 34px rgba(45, 74, 106, 0.1);
  --brand: #2f67d8;
  --brand-deep: #1d458f;
  --brand-soft: #edf3ff;
  --gold: #e6a951;
  --rose: #d6766e;
  --ok: #1f8b4c;
  --warn: #c0352a;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.16, 1.12, 0.34, 1);
  --dur-fast: 180ms;
  --dur-mid: 320ms;
  --dur-slow: 560ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 214, 158, 0.56) 0, transparent 38%),
    radial-gradient(circle at 85% 12%, rgba(143, 194, 255, 0.45) 0, transparent 34%),
    radial-gradient(circle at 72% 78%, rgba(255, 227, 202, 0.34) 0, transparent 30%),
    linear-gradient(165deg, var(--bg-1), var(--bg-2) 54%, var(--bg-3));
}

body.intro-locked {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
  opacity: 0.42;
  z-index: 0;
}

body::before {
  top: -12vw;
  left: -16vw;
  background: radial-gradient(circle, rgba(255, 196, 126, 0.62), transparent 68%);
}

body::after {
  right: -16vw;
  bottom: -18vw;
  background: radial-gradient(circle, rgba(118, 174, 255, 0.34), transparent 72%);
}

body.theme-dark {
  --volsk-bg-1: #0b1119;
  --volsk-bg-2: #152333;
  --volsk-bg-3: #271c19;
  --volsk-panel: #121a25;
  --volsk-panel-soft: #1a2431;
  --volsk-panel-strong: #0d141d;
  --volsk-gold: #c7a25f;
  --volsk-gold-soft: #edd9ab;
  --volsk-red: #93473d;
  --volsk-red-soft: #ba6f63;
  --volsk-steel: #8ca2b6;
  --volsk-text: #edf2f7;
  --volsk-text-soft: #bec8d3;
  --volsk-text-faint: #909aa6;
  --volsk-line: rgba(199, 162, 95, 0.2);
  --volsk-line-strong: rgba(227, 196, 137, 0.34);
  --volsk-shadow: 0 28px 76px rgba(5, 9, 16, 0.34);
  --volsk-shadow-soft: 0 18px 42px rgba(5, 9, 16, 0.22);
  color: var(--volsk-text);
  background:
    radial-gradient(circle at 14% 16%, rgba(199, 162, 95, 0.18) 0, transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(147, 71, 61, 0.2) 0, transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(108, 131, 154, 0.14) 0, transparent 34%),
    linear-gradient(165deg, var(--volsk-bg-1), var(--volsk-bg-2) 54%, var(--volsk-bg-3));
}

body.theme-dark::before {
  top: -14vw;
  left: -12vw;
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(199, 162, 95, 0.18), transparent 68%);
  opacity: 0.5;
}

body.theme-dark::after {
  right: -14vw;
  bottom: -14vw;
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(147, 71, 61, 0.16), transparent 72%);
  opacity: 0.44;
}

body.theme-dark .presentation-hero-panel,
body.theme-dark .presentation-stage,
body.theme-dark .hero.card,
body.theme-dark .donation.card {
  border-color: var(--volsk-line);
  box-shadow: var(--volsk-shadow);
}

body.theme-dark .presentation-hero-panel {
  background:
    radial-gradient(circle at 12% 18%, rgba(199, 162, 95, 0.16), transparent 26%),
    radial-gradient(circle at 85% 16%, rgba(147, 71, 61, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(16, 24, 35, 0.98), rgba(24, 34, 48, 0.95));
}

body.theme-dark .presentation-stage {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(160deg, rgba(14, 21, 31, 0.96), rgba(24, 34, 46, 0.94));
}

body.theme-dark .presentation-stage::before,
body.theme-dark .hero.card::after {
  background: linear-gradient(90deg, rgba(199, 162, 95, 0.72), rgba(199, 162, 95, 0.08));
}

body.theme-dark .presentation-theme-list {
  --stage-accent: #c7a25f;
}

body.theme-dark .presentation-theme-smart {
  --stage-accent: #b65d54;
}

body.theme-dark .presentation-stage-team {
  --stage-accent: #d0af71;
}

body.theme-dark .presentation-team-card {
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(160deg, rgba(15, 22, 32, 0.96), rgba(27, 37, 50, 0.94));
  border-color: rgba(199, 162, 95, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(5, 9, 16, 0.22);
}

body.theme-dark .presentation-team-role {
  color: var(--volsk-gold-soft);
}

body.theme-dark .presentation-team-name,
body.theme-dark .presentation-team-text a {
  color: var(--volsk-text);
}

body.theme-dark .presentation-team-text {
  color: var(--volsk-text-soft);
}

body.theme-dark .presentation-eyebrow,
body.theme-dark .presentation-stage-eyebrow,
body.theme-dark .eyebrow {
  background: rgba(199, 162, 95, 0.12);
  border-color: rgba(227, 196, 137, 0.22);
  color: var(--volsk-gold-soft);
}

body.theme-dark .presentation-display,
body.theme-dark .presentation-title,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark .hero-summary-value {
  color: var(--volsk-text);
}

body.theme-dark .presentation-gradient {
  background: linear-gradient(135deg, #f0ddb2 0%, #c7a25f 46%, #b65d54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.theme-dark .presentation-lead,
body.theme-dark .presentation-description,
body.theme-dark .presentation-note,
body.theme-dark .subtitle,
body.theme-dark .hero-summary-label,
body.theme-dark .mode-caption,
body.theme-dark .donation-description,
body.theme-dark .donation-note,
body.theme-dark .smart-placeholder-text,
body.theme-dark .smart-result-label,
body.theme-dark .donation-qr-caption {
  color: var(--volsk-text-soft);
}

body.theme-dark .presentation-chip,
body.theme-dark .hero-summary-card {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(160deg, rgba(18, 27, 39, 0.96), rgba(29, 39, 53, 0.92));
  border-color: rgba(199, 162, 95, 0.16);
  color: var(--volsk-text-soft);
  box-shadow: var(--volsk-shadow-soft);
}

body.theme-dark .hero-summary-value {
  color: var(--volsk-gold-soft);
}

body.theme-dark .hero.card {
  position: relative;
  background:
    radial-gradient(circle at 18% 20%, rgba(199, 162, 95, 0.14), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(147, 71, 61, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(13, 21, 31, 0.98), rgba(23, 32, 45, 0.96));
}

body.theme-dark .hero.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background:
    repeating-linear-gradient(
      135deg,
      #1a1a1a 0 12px,
      #1a1a1a 12px 18px,
      #cc7b34 18px 30px,
      #cc7b34 30px 36px
    );
  opacity: 0.86;
  z-index: 2;
}

body.theme-dark .hero.card::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 22px;
  height: 1px;
  opacity: 0.6;
}

body.theme-dark .hero-orb-gold {
  background: radial-gradient(circle, rgba(199, 162, 95, 0.28), transparent 70%);
}

body.theme-dark .hero-orb-blue {
  background: radial-gradient(circle, rgba(110, 135, 157, 0.22), transparent 72%);
}

body.theme-dark .hero-orb-rose {
  background: radial-gradient(circle, rgba(147, 71, 61, 0.18), transparent 72%);
}

body.theme-dark .mode-switch {
  background: rgba(16, 23, 34, 0.92);
  border-color: rgba(199, 162, 95, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .mode-thumb {
  background: linear-gradient(135deg, #d0ad6e, #9f4e46);
  box-shadow: 0 14px 30px rgba(114, 49, 42, 0.26);
}

body.theme-dark .mode-option {
  color: #c9d2dc;
}

body.theme-dark .mode-option.is-active {
  color: #fffaf0;
}

body.theme-dark .list-search-label {
  color: var(--volsk-gold-soft);
}

body.theme-dark .list-search-input {
  border-color: rgba(199, 162, 95, 0.16);
  background: linear-gradient(180deg, rgba(14, 20, 29, 0.94), rgba(22, 30, 41, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: var(--volsk-text);
}

body.theme-dark .list-search-input::placeholder {
  color: rgba(190, 200, 211, 0.58);
}

body.theme-dark .list-search-input:focus {
  border-color: rgba(227, 196, 137, 0.38);
  box-shadow:
    0 0 0 4px rgba(199, 162, 95, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .figure-list-empty {
  background: rgba(18, 27, 39, 0.9);
  border-color: rgba(199, 162, 95, 0.16);
  color: var(--volsk-text-soft);
}

body.theme-dark .figure-item {
  border-color: rgba(199, 162, 95, 0.16);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.06) 0, transparent 24%),
    linear-gradient(180deg, rgba(14, 20, 29, 0.98), rgba(23, 31, 43, 0.96));
  color: var(--volsk-text);
  box-shadow: 0 16px 38px rgba(4, 8, 14, 0.26);
}

body.theme-dark .figure-item::before {
  background:
    radial-gradient(circle at 84% 82%, rgba(199, 162, 95, 0.08), transparent 24%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 54%);
}

body.theme-dark .figure-item::after {
  height: 5px;
  background: linear-gradient(90deg, #d4b679, #a44f45 56%, rgba(255, 255, 255, 0.14));
  opacity: 0.94;
}

body.theme-dark .figure-item.is-selected,
body.theme-dark .figure-item:hover {
  border-color: var(--volsk-line-strong);
  box-shadow: 0 22px 48px rgba(4, 8, 14, 0.34);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.08) 0, transparent 24%),
    linear-gradient(180deg, rgba(18, 25, 36, 0.98), rgba(28, 37, 51, 0.97));
}

body.theme-dark .figure-photo {
  background: linear-gradient(180deg, #dce5ee, #f2f5f8);
  filter: saturate(0.92) contrast(1.04);
}

body.theme-dark .figure-title {
  color: #f5f0e4;
}

body.theme-dark .figure-chip-tag {
  background: rgba(199, 162, 95, 0.12);
  border-color: rgba(199, 162, 95, 0.2);
  color: var(--volsk-gold-soft);
}

body.theme-dark .figure-chip-audio {
  background: rgba(147, 71, 61, 0.18);
  border-color: rgba(186, 111, 99, 0.24);
  color: #f0d0ca;
}

body.theme-dark .smart-camera-frame {
  border-color: rgba(199, 162, 95, 0.16);
  background:
    radial-gradient(circle at 18% 20%, rgba(199, 162, 95, 0.1) 0, transparent 36%),
    radial-gradient(circle at 82% 18%, rgba(147, 71, 61, 0.1) 0, transparent 30%),
    linear-gradient(160deg, #111822, #1c2634 68%, #263140);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-dark .smart-camera-frame:focus-visible {
  border-color: rgba(227, 196, 137, 0.36);
  box-shadow:
    0 0 0 4px rgba(199, 162, 95, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-dark .smart-camera-frame.is-live {
  border-color: rgba(199, 162, 95, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(5, 9, 16, 0.28);
}

body.theme-dark .smart-video {
  background: #0c121a;
}

body.theme-dark .smart-placeholder-title {
  color: var(--volsk-gold-soft);
}

body.theme-dark .smart-frame-hint {
  background: rgba(14, 20, 29, 0.88);
  border-color: rgba(199, 162, 95, 0.16);
  box-shadow: 0 14px 28px rgba(5, 9, 16, 0.22);
  color: var(--volsk-text);
}

body.theme-dark .smart-focus {
  border-color: rgba(227, 196, 137, 0.9);
  box-shadow:
    0 0 0 999px rgba(5, 9, 14, 0.22),
    0 16px 36px rgba(5, 9, 16, 0.24);
}

body.theme-dark .smart-focus::before,
body.theme-dark .smart-focus::after {
  border-color: #e0bc73;
}

body.theme-dark .smart-result {
  background: linear-gradient(160deg, rgba(15, 22, 32, 0.96), rgba(26, 35, 48, 0.94));
  border-color: rgba(199, 162, 95, 0.14);
}

body.theme-dark .smart-result.is-match {
  border-color: rgba(199, 162, 95, 0.3);
  background:
    radial-gradient(circle at 14% 18%, rgba(227, 196, 137, 0.14) 0, transparent 34%),
    linear-gradient(160deg, rgba(20, 27, 38, 0.98), rgba(31, 41, 55, 0.96));
  box-shadow: 0 16px 34px rgba(5, 9, 16, 0.24);
}

body.theme-dark .smart-result-text {
  color: #f4efe2;
}

body.theme-dark .status-idle {
  background: rgba(18, 27, 39, 0.9);
  color: var(--volsk-text-soft);
}

body.theme-dark .status-success {
  background: rgba(34, 62, 46, 0.9);
  color: #d4efd8;
}

body.theme-dark .status-error {
  background: rgba(80, 31, 28, 0.9);
  color: #f5d2ce;
}

body.theme-dark .article.card {
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.38) 0, transparent 24%),
    linear-gradient(180deg, rgba(248, 241, 227, 0.98), rgba(233, 223, 205, 0.97));
  border-color: rgba(119, 95, 59, 0.18);
  box-shadow: 0 24px 58px rgba(5, 9, 16, 0.24);
}

body.theme-dark .article.card h2,
body.theme-dark #article-title,
body.theme-dark .article-topbar-note,
body.theme-dark .audio-title {
  color: #412716;
}

body.theme-dark .article-tag-text,
body.theme-dark .article-hero-name,
body.theme-dark .article-section-label {
  color: #684021;
}

body.theme-dark .article-content,
body.theme-dark .article-content p {
  color: #2d261f;
}

body.theme-dark .article-chip {
  background: rgba(117, 84, 36, 0.08);
  color: #5d3a1a;
}

body.theme-dark .article-chip-audio {
  background: rgba(147, 71, 61, 0.12);
  color: #6b2f28;
}

body.theme-dark .audio-wrap {
  border-color: rgba(121, 95, 62, 0.16);
  background: linear-gradient(160deg, rgba(255, 248, 235, 0.92), rgba(239, 229, 208, 0.96));
  box-shadow: 0 14px 30px rgba(91, 69, 38, 0.08);
}

body.theme-dark .btn-primary {
  background: linear-gradient(135deg, #caa868, #9c4d43);
  box-shadow: 0 18px 32px rgba(74, 29, 25, 0.24);
}

body.theme-dark .btn-link {
  background: rgba(44, 54, 68, 0.1);
  border-color: rgba(117, 84, 36, 0.16);
  color: #6b4524;
}

body.theme-dark .donation.card {
  background:
    radial-gradient(circle at 12% 18%, rgba(199, 162, 95, 0.12), transparent 26%),
    linear-gradient(145deg, rgba(15, 22, 32, 0.98), rgba(24, 34, 47, 0.95));
}

body.theme-dark .donation-qr {
  background: linear-gradient(160deg, rgba(18, 27, 39, 0.96), rgba(28, 38, 53, 0.94));
  border-color: rgba(199, 162, 95, 0.16);
  box-shadow: var(--volsk-shadow-soft);
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 26px 18px 34px;
  display: grid;
  gap: 22px;
  animation: app-enter var(--dur-slow) var(--ease-out);
}

.app.is-detail-view .hero {
  transform: scale(0.994);
  transform-origin: top center;
  opacity: 0.94;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  transition:
    transform var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    opacity var(--dur-mid) var(--ease-out);
}

.presentation-experience {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px 28px;
  display: flex;
  flex-direction: column;
}

.presentation-experience > * {
  margin: 0 0 18px;
}

.presentation-experience > *:last-child {
  margin-bottom: 0;
}

.presentation-floating-cta {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 12;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition:
    opacity 260ms var(--ease-out),
    transform 320ms var(--ease-out);
}

body.presentation-active .presentation-floating-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.theme-toggle-floating {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 12;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(118, 145, 171, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  box-shadow:
    0 18px 38px rgba(16, 34, 58, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    background var(--dur-mid) var(--ease-out);
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 42px rgba(16, 34, 58, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.theme-toggle-btn:focus-visible {
  outline: none;
  border-color: rgba(37, 87, 180, 0.42);
  box-shadow:
    0 0 0 4px rgba(37, 87, 180, 0.1),
    0 20px 40px rgba(16, 34, 58, 0.16);
}

.theme-toggle-copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.theme-toggle-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.theme-toggle-state {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.theme-toggle-track {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(223, 232, 245, 0.96);
  border: 1px solid rgba(124, 152, 182, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #dfe8f4);
  box-shadow: 0 8px 16px rgba(40, 61, 88, 0.2);
  transition:
    transform 280ms var(--ease-spring),
    background var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

body.theme-dark .theme-toggle-btn {
  border-color: rgba(199, 162, 95, 0.16);
  background: rgba(17, 24, 34, 0.88);
  box-shadow:
    0 20px 40px rgba(5, 9, 16, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #edf2f7;
}

body.theme-dark .theme-toggle-title {
  color: #aab5c0;
}

body.theme-dark .theme-toggle-state {
  color: #f3ecdd;
}

body.theme-dark .theme-toggle-track {
  background: rgba(13, 20, 29, 0.96);
  border-color: rgba(199, 162, 95, 0.18);
}

body.theme-dark .theme-toggle-thumb {
  transform: translateX(18px);
  background: linear-gradient(135deg, #d0ad6e, #9f4e46);
  box-shadow: 0 10px 20px rgba(74, 29, 25, 0.26);
}

.presentation-skip-btn {
  min-height: 52px;
  padding-inline: 20px;
  border-radius: 999px;
  box-shadow:
    0 20px 44px rgba(16, 34, 58, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(16px);
}

.presentation-hero-panel,
.presentation-stage,
.presentation-unlock {
  border: 1px solid rgba(16, 33, 49, 0.08);
  border-radius: 34px;
  box-shadow: 0 26px 70px rgba(22, 46, 84, 0.12);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.presentation-hero-panel {
  padding: 34px 30px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 210, 160, 0.52), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(138, 181, 255, 0.5), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 246, 255, 0.82));
}

.presentation-reveal {
  opacity: 1;
  max-height: none;
  transform: none;
  transition: none;
}

.presentation-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.presentation-eyebrow,
.presentation-stage-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(239, 245, 255, 0.82);
  border: 1px solid rgba(126, 156, 214, 0.22);
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  font-weight: 800;
}

.presentation-display {
  margin-top: 16px;
  max-width: 10.5ch;
  font-family: "Cormorant Garamond", "PT Serif", serif;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.presentation-gradient {
  display: block;
  background: linear-gradient(135deg, #13294d 0%, #3f6fc8 50%, #8ab4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.presentation-lead {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.presentation-hero-meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.presentation-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(118, 145, 171, 0.16);
  color: #355373;
  font-size: 0.92rem;
  font-weight: 700;
}

.presentation-stage,
.presentation-unlock {
  padding: 26px 30px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 26%),
    linear-gradient(160deg, var(--stage-bg-start, rgba(255, 255, 255, 0.9)), var(--stage-bg-end, rgba(241, 245, 251, 0.82)));
}

.presentation-stage::before,
.presentation-unlock::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin-bottom: 18px;
  background: rgba(46, 78, 111, 0.18);
}

.presentation-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}

.presentation-copy {
  display: grid;
  gap: 14px;
}

.presentation-title {
  font-family: "Cormorant Garamond", "PT Serif", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.presentation-description {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
  max-width: 58ch;
}

.presentation-track {
  width: min(100%, 320px);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(74, 103, 132, 0.12);
}

.presentation-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--stage-accent, var(--brand)), rgba(255, 255, 255, 0.92));
  transition: width 800ms var(--ease-out) 120ms;
}

.presentation-reveal.is-visible .presentation-fill {
  width: 100%;
}

.presentation-note {
  color: var(--ink-faint);
  font-size: 0.92rem;
  line-height: 1.64;
}

.presentation-theme-list {
  --stage-bg-start: rgba(245, 249, 255, 0.92);
  --stage-bg-end: rgba(237, 244, 255, 0.82);
  --stage-accent: #4f88e8;
}

.presentation-theme-qr {
  --stage-bg-start: rgba(248, 250, 255, 0.9);
  --stage-bg-end: rgba(236, 247, 245, 0.82);
  --stage-accent: #3c9a92;
}

.presentation-theme-smart {
  --stage-bg-start: rgba(250, 246, 255, 0.92);
  --stage-bg-end: rgba(244, 238, 255, 0.84);
  --stage-accent: #8a59c4;
}

.presentation-stage-team {
  --stage-bg-start: rgba(245, 241, 235, 0.96);
  --stage-bg-end: rgba(236, 244, 252, 0.9);
  --stage-accent: #d38444;
}

.presentation-shell-team {
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

.presentation-team-photo {
  margin: 0;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(16, 33, 49, 0.08);
  box-shadow: 0 24px 52px rgba(28, 45, 70, 0.12);
}

.presentation-team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.presentation-team-copy {
  align-content: center;
}

.presentation-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.presentation-team-card {
  display: grid;
  gap: 10px;
  padding: 18px 18px 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(244, 248, 253, 0.72));
  border: 1px solid rgba(118, 145, 171, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 36px rgba(31, 51, 74, 0.08);
}

.presentation-team-card-wide {
  grid-column: 1 / -1;
}

.presentation-team-role {
  margin: 0;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.presentation-team-name {
  margin: 0;
  font-family: "Cormorant Garamond", "PT Serif", serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.presentation-team-text {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.presentation-team-note {
  max-width: 60ch;
}

.presentation-team-note a {
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration-color: rgba(29, 69, 143, 0.28);
}

.presentation-team-note a:hover {
  text-decoration-color: currentColor;
}

.presentation-unlock {
  --stage-bg-start: rgba(255, 248, 240, 0.92);
  --stage-bg-end: rgba(243, 246, 255, 0.84);
  --stage-accent: #d2602a;
}

.presentation-unlock-copy {
  display: grid;
  gap: 14px;
}

body.presentation-active .app.app-locked {
  opacity: 0;
  transform: translateY(28px) scale(0.986);
  filter: blur(10px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  gap: 0;
}

.app.app-ready {
  animation: app-enter var(--dur-slow) var(--ease-out);
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(180deg, rgba(11, 19, 31, 0.58), rgba(17, 30, 47, 0.7));
  backdrop-filter: blur(14px);
  transition:
    opacity var(--dur-mid) var(--ease-out),
    visibility var(--dur-mid) var(--ease-out);
}

.intro-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-screen__glow {
  position: absolute;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.78;
  animation: float-orb 12s var(--ease-out) infinite alternate;
}

.intro-screen__glow-left {
  top: -6vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(255, 203, 131, 0.9), transparent 65%);
}

.intro-screen__glow-right {
  right: -12vw;
  bottom: -10vw;
  background: radial-gradient(circle, rgba(113, 168, 255, 0.9), transparent 65%);
  animation-delay: -4s;
}

.intro-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.62), transparent 30%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(242, 247, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: 0 34px 90px rgba(15, 24, 40, 0.25);
  animation: intro-rise 720ms var(--ease-out);
}

.intro-title {
  margin: 10px 0 0;
  font-size: clamp(2.15rem, 4vw, 3.75rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.intro-subtitle {
  margin: 18px 0 0;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.intro-highlights {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.intro-highlight {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(119, 146, 172, 0.16);
  box-shadow: 0 10px 24px rgba(34, 58, 84, 0.08);
}

.intro-highlight__value {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.intro-highlight__label {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.intro-presentation {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.intro-presentation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.intro-presentation-kicker {
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intro-presentation-nav {
  display: inline-flex;
  gap: 8px;
}

.intro-step {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(115, 137, 163, 0.28);
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

.intro-step.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 6px 16px rgba(37, 87, 180, 0.22);
  transform: scaleX(1.16);
}

.intro-presentation-stage {
  position: relative;
  min-height: 192px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.62) 0, transparent 28%),
    linear-gradient(160deg, rgba(250, 252, 255, 0.92), rgba(238, 244, 255, 0.78));
  border: 1px solid rgba(118, 145, 171, 0.16);
  box-shadow: 0 16px 32px rgba(34, 58, 84, 0.08);
  overflow: hidden;
}

.intro-mode-card {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px 24px;
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 460ms var(--ease-out),
    transform 520ms var(--ease-out);
}

.intro-mode-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.intro-mode-card__eyebrow {
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intro-mode-card h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1;
}

.intro-mode-card p {
  margin: 0;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.68;
}

.intro-start-btn {
  margin-top: 24px;
  box-shadow: 0 12px 22px rgba(37, 87, 180, 0.18);
  opacity: 0.88;
  transition:
    opacity var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.intro-screen.is-complete .intro-start-btn {
  opacity: 1;
  box-shadow: 0 18px 32px rgba(37, 87, 180, 0.26);
}

.hero {
  display: grid;
  gap: 22px;
  padding: 28px;
  animation: fade-up var(--dur-slow) var(--ease-out) both;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.78;
}

.hero-orb-gold {
  top: -60px;
  right: 22%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(244, 191, 119, 0.52), transparent 68%);
}

.hero-orb-blue {
  top: 54px;
  right: -32px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(119, 171, 255, 0.34), transparent 72%);
}

.hero-orb-rose {
  bottom: -84px;
  left: -52px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(230, 166, 151, 0.22), transparent 72%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: 14px;
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(239, 245, 255, 0.82);
  border: 1px solid rgba(126, 156, 214, 0.22);
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.06rem;
  line-height: 1.15;
}

.subtitle {
  margin: 0;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.72;
}

.hero-summary {
  display: grid;
  gap: 12px;
}

.hero-summary-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 255, 0.88));
  border: 1px solid rgba(116, 144, 171, 0.16);
  box-shadow: var(--shadow-soft);
}

.hero-summary-value {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 0.95;
}

.hero-summary-label {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.45;
}

.donation {
  padding: 28px;
  animation: fade-up var(--dur-slow) var(--ease-out) both;
}

.donation-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 320px);
  gap: 22px;
  align-items: center;
}

.donation-copy {
  display: grid;
  gap: 14px;
}

.donation-description {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.donation-note {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.9rem;
  line-height: 1.6;
}

.donation-qr {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.78), transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.88));
  border: 1px solid rgba(124, 152, 182, 0.16);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out);
}

.donation-qr-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
  background: rgba(233, 240, 252, 0.82);
}

.donation-qr-caption {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.mode-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 6px;
  border-radius: 20px;
  background: rgba(233, 240, 252, 0.92);
  border: 1px solid rgba(124, 152, 182, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mode-thumb {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc((100% - 12px) / 2);
  height: calc(100% - 12px);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 28px rgba(37, 87, 180, 0.25);
  transition:
    transform 380ms var(--ease-spring),
    box-shadow 280ms var(--ease-out);
}

.mode-switch[data-mode="list"] .mode-thumb {
  transform: translateX(100%);
}

.mode-option {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 14px 12px;
  border-radius: 16px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  color: #294e76;
  cursor: pointer;
  transition:
    color var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-out);
}

.mode-option.is-active {
  color: #fff;
}

.mode-caption {
  margin: -6px 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.mode-pane {
  display: grid;
  gap: 14px;
}

.mode-pane:not(.hidden) {
  animation: pane-enter 380ms var(--ease-out);
}

.scanner-lead,
.smart-camera-lead,
.list-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.list-stage-head {
  display: grid;
  gap: 8px;
}

.list-stage-note {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.9rem;
  line-height: 1.55;
}

.list-search-wrap {
  display: grid;
  gap: 10px;
}

.list-search-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.list-search-input {
  width: 100%;
  border: 1px solid rgba(120, 151, 201, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 247, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  padding: 15px 18px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  transition:
    border-color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-out);
}

.list-search-input::placeholder {
  color: rgba(70, 94, 122, 0.62);
}

.list-search-input:focus {
  outline: none;
  border-color: rgba(37, 87, 180, 0.38);
  box-shadow:
    0 0 0 4px rgba(37, 87, 180, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.figure-list-empty {
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(240, 245, 255, 0.9);
  border: 1px solid rgba(120, 151, 201, 0.16);
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    background-color var(--dur-mid) var(--ease-out),
    filter var(--dur-fast) ease,
    color var(--dur-fast) ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: translateX(-140%);
  transition: transform 560ms var(--ease-out);
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 16px 28px rgba(37, 87, 180, 0.24);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: rgba(237, 243, 255, 0.92);
  color: var(--brand-deep);
  border: 1px solid rgba(120, 151, 201, 0.18);
}

.btn:disabled {
  opacity: 0.72;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 700;
  line-height: 1.5;
  animation: fade-up 280ms var(--ease-out);
  transition:
    background-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-out);
}

.status-idle {
  background: rgba(235, 242, 250, 0.95);
  color: var(--ink-soft);
}

.status-success {
  background: rgba(228, 246, 235, 0.96);
  color: var(--ok);
}

.status-error {
  background: rgba(253, 233, 231, 0.96);
  color: var(--warn);
}

.smart-camera-shell {
  display: grid;
  gap: 14px;
}

.smart-camera-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(119, 148, 177, 0.14);
  background:
    radial-gradient(circle at 20% 20%, rgba(233, 244, 255, 0.86) 0, transparent 40%),
    radial-gradient(circle at 80% 16%, rgba(255, 225, 187, 0.58) 0, transparent 34%),
    linear-gradient(160deg, #dfeaf7, #eef5fb 65%, #f8fbff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) ease,
    box-shadow var(--dur-mid) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.smart-camera-frame:focus-visible {
  outline: none;
  border-color: rgba(37, 87, 180, 0.4);
  box-shadow:
    0 0 0 4px rgba(37, 87, 180, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.smart-camera-frame.is-live {
  border-color: rgba(94, 175, 126, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 34px rgba(31, 94, 56, 0.12);
}

.smart-camera-frame.is-busy {
  cursor: progress;
}

.smart-video,
.smart-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.smart-video {
  display: block;
  object-fit: cover;
  background: #dce7f6;
}

.smart-canvas {
  display: none;
}

.smart-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.smart-placeholder-title {
  font-size: 1.08rem;
  font-weight: 800;
}

.smart-placeholder-text {
  max-width: 30ch;
  color: var(--ink-soft);
  line-height: 1.55;
}

.smart-frame-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  max-width: calc(100% - 24px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(121, 151, 187, 0.18);
  box-shadow: 0 14px 24px rgba(23, 49, 82, 0.1);
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
  transition:
    opacity var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-out);
}

.smart-camera-frame.is-live .smart-frame-hint,
.smart-camera-frame.is-busy .smart-frame-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

.smart-focus {
  position: absolute;
  inset: 50% 8% auto;
  height: 36%;
  transform: translateY(-50%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow:
    0 0 0 999px rgba(15, 31, 49, 0.15),
    0 16px 36px rgba(19, 55, 112, 0.16);
  pointer-events: none;
}

.smart-focus::before,
.smart-focus::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid #7fc3ff;
}

.smart-focus::before {
  top: -2px;
  left: -2px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 16px;
}

.smart-focus::after {
  right: -2px;
  bottom: -2px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 16px;
}

.smart-result {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(246, 249, 253, 0.96);
  border: 1px solid rgba(125, 152, 181, 0.16);
  transition:
    transform var(--dur-mid) var(--ease-out),
    background-color var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

.smart-result.is-match {
  border-color: rgba(138, 193, 255, 0.9);
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.82) 0, transparent 38%),
    linear-gradient(135deg, #edf7ff, #fff4de);
  box-shadow: 0 16px 34px rgba(45, 108, 223, 0.12);
  transform: translateY(-2px);
  animation: smart-match-glow 1s var(--ease-out);
}

.smart-result-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #56728d;
}

.smart-result-text {
  margin: 0;
  font-family: "PT Serif", "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #1b2f40;
}

.figure-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.figure-item,
.article {
  --theme-accent: var(--brand);
  --theme-accent-deep: var(--brand-deep);
  --theme-soft: var(--brand-soft);
  --theme-glow: rgba(47, 103, 216, 0.14);
  --theme-soft-strong: #f4f7ff;
  --theme-soft-alt: #eef4ff;
  --theme-line: rgba(47, 103, 216, 0.12);
  --theme-line-strong: rgba(47, 103, 216, 0.2);
}

.figure-item[data-theme="command"],
.article[data-theme="command"] {
  --theme-accent: #3154b3;
  --theme-accent-deep: #213985;
  --theme-soft: #eff3ff;
  --theme-glow: rgba(49, 84, 179, 0.15);
  --theme-soft-strong: #f4f6ff;
  --theme-soft-alt: #edf2ff;
  --theme-line: rgba(49, 84, 179, 0.12);
  --theme-line-strong: rgba(49, 84, 179, 0.2);
}

.figure-item[data-theme="culture"],
.article[data-theme="culture"] {
  --theme-accent: #8d4f86;
  --theme-accent-deep: #683861;
  --theme-soft: #f7eef8;
  --theme-glow: rgba(141, 79, 134, 0.13);
  --theme-soft-strong: #faf1fb;
  --theme-soft-alt: #f4ebf6;
  --theme-line: rgba(141, 79, 134, 0.12);
  --theme-line-strong: rgba(141, 79, 134, 0.2);
}

.figure-item[data-theme="science"],
.article[data-theme="science"] {
  --theme-accent: #1d7f7f;
  --theme-accent-deep: #165f61;
  --theme-soft: #e9f8f7;
  --theme-glow: rgba(29, 127, 127, 0.12);
  --theme-soft-strong: #effbfb;
  --theme-soft-alt: #e7f6f6;
  --theme-line: rgba(29, 127, 127, 0.12);
  --theme-line-strong: rgba(29, 127, 127, 0.2);
}

.figure-item[data-theme="sport"],
.article[data-theme="sport"] {
  --theme-accent: #d2602a;
  --theme-accent-deep: #a6491d;
  --theme-soft: #fff1e8;
  --theme-glow: rgba(210, 96, 42, 0.14);
  --theme-soft-strong: #fff5ef;
  --theme-soft-alt: #ffede1;
  --theme-line: rgba(210, 96, 42, 0.12);
  --theme-line-strong: rgba(210, 96, 42, 0.2);
}

.figure-item[data-theme="civic"],
.article[data-theme="civic"] {
  --theme-accent: #2e7a5f;
  --theme-accent-deep: #1f5f48;
  --theme-soft: #ebf7f1;
  --theme-glow: rgba(46, 122, 95, 0.13);
  --theme-soft-strong: #f1faf5;
  --theme-soft-alt: #e8f5ee;
  --theme-line: rgba(46, 122, 95, 0.12);
  --theme-line-strong: rgba(46, 122, 95, 0.2);
}

.figure-item[data-theme="legacy"],
.article[data-theme="legacy"],
.article[data-theme="external"] {
  --theme-accent: #4e6f92;
  --theme-accent-deep: #36506a;
  --theme-soft: #eff4f8;
  --theme-glow: rgba(78, 111, 146, 0.12);
  --theme-soft-strong: #f4f7fa;
  --theme-soft-alt: #edf2f6;
  --theme-line: rgba(78, 111, 146, 0.12);
  --theme-line-strong: rgba(78, 111, 146, 0.2);
}

.figure-item {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100%;
  align-content: start;
  padding: 0;
  border: 1px solid rgba(118, 145, 171, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.84) 0, transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.96));
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  overflow: hidden;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(40, 64, 92, 0.08);
  transition:
    transform var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    background-color var(--dur-mid) var(--ease-out);
  animation: tile-enter 520ms var(--ease-out) both;
  animation-delay: calc(var(--tile-index, 0) * 36ms);
}

.figure-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 88%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.06), transparent 54%);
  pointer-events: none;
}

.figure-item::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--theme-accent), rgba(255, 255, 255, 0.18));
  opacity: 0.86;
}

.figure-item.is-selected {
  border-color: var(--theme-line-strong);
  box-shadow: 0 20px 40px var(--theme-glow);
  background: linear-gradient(180deg, #ffffff, var(--theme-soft-strong));
}

.figure-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: calc(100% + 2px);
  max-width: none;
  margin: -1px -1px 0;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center 8%;
  border-radius: 0;
  background:
    linear-gradient(180deg, #dce8f7, #eef4fb);
  transition: filter var(--dur-mid) var(--ease-out);
}

.figure-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(calc(1em * 1.16 * 2), auto) auto;
  gap: 5px;
  align-content: start;
  justify-items: center;
  padding: 12px 14px 12px;
  box-sizing: border-box;
}

.figure-title {
  display: -webkit-box;
  min-height: calc(1em * 1.16 * 2);
  max-width: 15ch;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.16;
  text-align: center;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.figure-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  min-height: 30px;
}

.figure-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.figure-chip-tag {
  background: var(--theme-soft-strong);
  color: var(--theme-accent-deep);
}

.figure-chip-audio {
  background: rgba(17, 32, 45, 0.08);
  color: var(--ink);
}

.article {
  display: grid;
  gap: 18px;
  padding: 26px;
  transform-origin: 50% 0;
}

.article:not(.hidden) {
  animation: article-enter 520ms var(--ease-out);
}

.article-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.article-topbar-note {
  color: var(--ink-faint);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-head {
  display: grid;
  gap: 10px;
}

.article-tag-text {
  margin: 0;
  color: var(--theme-accent-deep);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.article-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--theme-soft-strong);
  color: var(--theme-accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-chip-audio {
  background: rgba(17, 32, 45, 0.08);
  color: var(--ink);
}

.article-stage::after {
  content: "";
  display: block;
  clear: both;
}

.article-image {
  float: left;
  width: clamp(176px, 29vw, 318px);
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border-radius: 22px;
  margin: 6px 20px 16px 0;
  box-shadow: 0 16px 34px var(--theme-glow);
  animation: image-enter 560ms var(--ease-out);
}

.article-story {
  display: block;
}

.article-content {
  font-family: "PT Serif", "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.72;
  color: #1d2e3a;
}

.article-content p {
  margin: 0 0 0.95em;
}

.article-intro {
  color: #162838;
  font-size: 1.1rem;
}

.article-hero-name {
  display: block;
  margin-bottom: 0.28em;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.04em;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--theme-accent-deep);
}

.article-section-label {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--theme-accent-deep);
}

.audio-wrap {
  clear: both;
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--theme-line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), var(--theme-soft-alt));
  box-shadow: 0 12px 28px rgba(40, 64, 92, 0.06);
  animation: fade-up 360ms var(--ease-out);
}

.audio-title {
  margin: 0;
  font-weight: 800;
  color: var(--ink-soft);
}

#article-audio {
  width: 100%;
}

#article-link {
  clear: both;
}

.credits {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
  color: var(--ink-faint);
  font-weight: 700;
}

.credits-email,
.credits-stats {
  color: #395269;
  text-decoration: none;
  transition:
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    background-color var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-out);
}

.credits-email:hover,
.credits-stats:hover {
  color: var(--brand-deep);
}

.credits-stats {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(238, 244, 255, 0.92);
  border: 1px solid rgba(120, 151, 201, 0.18);
}

.version-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(232, 238, 252, 0.92);
  color: #244d96;
  font-size: 0.84rem;
  font-weight: 800;
}

code {
  background: rgba(241, 245, 251, 0.92);
  border-radius: 8px;
  padding: 2px 6px;
}

.hidden {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .mode-option:hover,
  .btn:hover,
  .credits-stats:hover {
    transform: translateY(-2px);
  }

  .donation-qr:hover {
    transform: translateY(-4px);
    border-color: rgba(120, 151, 201, 0.28);
    box-shadow: 0 24px 46px rgba(37, 87, 180, 0.14);
  }

  .btn:hover::after {
    transform: translateX(140%);
  }

  .figure-item:hover {
    transform: translateY(-6px);
    border-color: var(--theme-line-strong);
    box-shadow: 0 24px 44px var(--theme-glow);
  }

  .figure-item:hover .figure-photo {
    filter: none;
  }

  .intro-step:hover {
    transform: scaleX(1.08);
  }
}

@media (hover: none), (pointer: coarse) {
  .figure-item:hover,
  .btn:hover,
  .credits-stats:hover,
  .mode-option:hover,
  .donation-qr:hover {
    transform: none;
  }

  .figure-item:hover .figure-photo {
    filter: none;
  }
}

@keyframes app-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes intro-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-orb {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(18px, 18px, 0) scale(1.08);
  }
}

@keyframes pane-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tile-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes article-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes image-enter {
  from {
    opacity: 0;
    transform: scale(1.04);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes smart-match-glow {
  0% {
    transform: translateY(0) scale(0.985);
    box-shadow: 0 0 0 0 rgba(127, 195, 255, 0);
  }

  50% {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 0 0 8px rgba(127, 195, 255, 0.14);
  }

  100% {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 16px 34px rgba(45, 108, 223, 0.12);
  }
}

@media (max-width: 1080px) {
  .presentation-shell,
  .presentation-stage.is-alt .presentation-shell,
  .presentation-shell-team {
    grid-template-columns: 1fr;
  }

  .presentation-stage.is-alt .presentation-copy,
  .presentation-stage.is-alt .presentation-visual {
    order: initial;
  }

  .presentation-team-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .donation-shell {
    grid-template-columns: 1fr;
  }

  .donation-qr {
    width: min(100%, 320px);
  }

  .figure-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .theme-toggle-floating {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
  }

  .theme-toggle-btn {
    min-height: 46px;
    padding: 8px 10px 8px 12px;
    gap: 10px;
  }

  .theme-toggle-title {
    font-size: 0.68rem;
  }

  .theme-toggle-state {
    font-size: 0.88rem;
  }

  .presentation-experience {
    padding: 14px 10px 22px;
  }

  .presentation-floating-cta {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, calc(env(safe-area-inset-bottom) + 6px));
    left: 10px;
  }

  .presentation-skip-btn {
    width: 100%;
    justify-content: center;
  }

  .presentation-hero-panel,
  .presentation-stage,
  .presentation-unlock {
    padding: 22px 18px;
    border-radius: 26px;
  }

  .presentation-display {
    max-width: none;
    font-size: 2.7rem;
  }

  .presentation-title {
    font-size: 2.1rem;
  }

  .presentation-hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .presentation-team-photo {
    min-height: 280px;
  }

  .app {
    padding: 16px 12px 28px;
    gap: 18px;
  }

  .intro-card,
  .hero,
  .donation,
  .article {
    padding: 20px;
    border-radius: 26px;
  }

  .intro-highlights {
    grid-template-columns: 1fr;
  }

  .intro-presentation-head {
    align-items: start;
  }

  .intro-presentation-stage {
    min-height: 214px;
  }

  .figure-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-option {
    padding: 12px 8px;
    font-size: 0.84rem;
  }

  .smart-focus {
    inset-inline: 6%;
    height: 38%;
  }

  .article-image {
    float: none;
    width: 100%;
    max-width: 360px;
    margin: 4px 0 18px;
  }

  .audio-wrap,
  #article-link {
    clear: both;
  }
}

@media (max-width: 440px) {
  .theme-toggle-copy {
    display: none;
  }

  .theme-toggle-btn {
    padding: 8px;
  }

  .presentation-display {
    font-size: 2.25rem;
  }

  .presentation-title {
    font-size: 1.9rem;
  }

  .intro-card,
  .hero,
  .donation,
  .article {
    padding: 18px;
    border-radius: 22px;
  }

  .figure-list {
    grid-template-columns: 1fr;
  }

  .intro-title {
    font-size: 1.9rem;
  }

  h1 {
    font-size: 1.95rem;
  }
}

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