: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%);
}

.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;
}

.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="smart"] .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);
}

.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-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: 14px;
  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: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(118, 145, 171, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.72) 0, transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 252, 0.82));
  text-align: left;
  padding: 0;
  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: linear-gradient(180deg, transparent 50%, rgba(9, 19, 34, 0.05) 100%);
  pointer-events: none;
}

.figure-item::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  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 22px 42px var(--theme-glow);
  background: linear-gradient(160deg, #ffffff, var(--theme-soft-strong));
}

.figure-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: #d9e5f6;
  transform: scale(1.001);
  transition:
    transform var(--dur-slow) var(--ease-out),
    filter var(--dur-mid) var(--ease-out);
}

.figure-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  flex: 1;
  align-content: start;
  padding: 14px 14px 16px;
}

.figure-title {
  display: -webkit-box;
  min-height: calc(1em * 1.18 * 2);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.18;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.figure-meta {
  display: -webkit-box;
  min-height: calc(1em * 1.45 * 2);
  color: var(--ink-faint);
  font-size: 0.8rem;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.figure-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.figure-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  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 {
    transform: scale(1.04);
    filter: saturate(1.06) contrast(1.04);
  }

  .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 {
    transform: scale(1.001);
    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) {
  .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) {
  .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;
  }
}
