/* Живое или нет: тёмная морская лаборатория, кремовые карточки-образцы.
   Зелёный для живого, терракота для неживого, янтарь для спорного. */

:root {
  --bg: #0f2b2c;
  --bg-2: #f6f0e1;
  --ink: #eef5f0;
  --ink-2: #b7c9c3;
  --ink-3: #7f9993;
  --line: rgba(238, 245, 240, .15);
  --accent: #3fbf7f;
  --accent-ink: #062016;
  --alive: #3fbf7f;
  --not: #e2725b;
  --both: #e6b54a;
  --card: #f6f0e1;
  --shadow: 0 26px 50px -24px rgba(0, 0, 0, .75);
}
body { background: radial-gradient(100% 60% at 50% 0%, #1b4745 0%, #0f2b2c 60%, #0a1f20 100%) fixed; }
.center { text-align: center; }
.note { color: var(--ink-3); }
.count { font-weight: 700; color: var(--ink-2); }
.btn--ghost { color: var(--ink); }
.card { color: #23302c; }

.intro { display: grid; gap: 10px; }
.intro h1 { font-size: 44px; }
.float { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 6px; }
.float img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); animation: bob 4s ease-in-out infinite; animation-delay: calc(var(--k) * -.37s); }
@keyframes bob { 50% { transform: translateY(-6px) rotate(2deg); } }

.bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--alive); transition: width .4s var(--ease); }

.stack { position: relative; min-height: 440px; }
.card-x { position: relative; z-index: 2; background: var(--card); color: #23302c; border-radius: 26px; padding: 18px 18px 22px; box-shadow: var(--shadow); display: grid; gap: 8px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; transition: transform .28s var(--ease); }
.card-x.is-drag { transition: none; cursor: grabbing; }
.card-x.is-fly { transition: transform .32s ease-in; }
.card-x--back { position: absolute; inset: 14px 14px auto; z-index: 1; transform: scale(.94) translateY(14px); opacity: .35; height: 300px; overflow: hidden; }
.card-x--back img { width: 70%; margin: 30px auto 0; }
.card-x__art { aspect-ratio: 1.25; display: grid; place-items: center; border-radius: 20px; background: radial-gradient(60% 60% at 50% 45%, #fffaf0, #e9e0cb); }
.card-x__art img { width: 78%; height: 90%; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(40, 30, 10, .3)); pointer-events: none; }
.card-x h2 { font-size: 28px; }
.card-x p { color: #4d5a55; font-size: 16px; }
.tag { position: absolute; top: 26px; z-index: 3; padding: 6px 14px; border-radius: 10px; font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .06em; border: 3px solid; opacity: 0; pointer-events: none; }
.tag--alive { left: 24px; color: var(--alive); border-color: var(--alive); transform: rotate(-12deg); background: rgba(255, 255, 255, .85); }
.tag--not { right: 24px; color: var(--not); border-color: var(--not); transform: rotate(12deg); background: rgba(255, 255, 255, .85); }

.choose .btn { min-height: 58px; font-size: 18px; box-shadow: none; }
.btn--alive { background: var(--alive); color: #062016; }
.btn--not { background: var(--not); color: #2b0d06; }

.verdict { background: var(--card); color: #23302c; border-radius: 26px; padding: 18px; display: grid; gap: 14px; box-shadow: var(--shadow); border-top: 8px solid var(--c, var(--alive)); animation: rise .35s var(--ease); }
.verdict--alive { --c: var(--alive); }
.verdict--not { --c: var(--not); }
.verdict--both { --c: var(--both); }
.verdict__head { display: flex; gap: 12px; align-items: center; }
.verdict__head img { width: 92px; height: 92px; object-fit: contain; flex: none; border-radius: 18px; background: radial-gradient(#fffaf0, #e9e0cb); padding: 6px; }
.verdict__head h2 { font-size: 24px; }
.verdict__head .eyebrow { color: var(--c); font-size: 13px; }
.verdict__head .eyebrow.is-miss { color: #c4452d; }
.verdict p { color: #4d5a55; }
.signs { display: flex; flex-wrap: wrap; gap: 6px; }
.sign { font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; }
.sign--y { background: rgba(63, 191, 127, .18); color: #1d7a4c; }
.sign--p { background: rgba(230, 181, 74, .22); color: #8a6412; }
.sign--n { background: rgba(35, 48, 44, .08); color: #8a958f; text-decoration: line-through; }

.final { display: grid; gap: 8px; text-align: center; }
.final h1 { font-size: 36px; }
.final__score { color: var(--ink-2); font-size: 18px; }
.final__score b { font-family: var(--serif); font-size: 46px; color: var(--alive); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grid__i { position: relative; aspect-ratio: 1; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); display: grid; place-items: center; }
.grid__i img { width: 78%; height: 78%; object-fit: contain; }
.grid__i span { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.grid__i.ok span { background: var(--alive); color: #062016; }
.grid__i.bad span { background: var(--not); color: #2b0d06; }
.museum { display: grid; gap: 6px; }
.museum .eyebrow { color: #7b8a84; }
