/* Раскопки: тёплая земля и камень. Тёмно-коричневый фон, охра, янтарь.
   Плита квадратная, во всю колонку; слои: плитка, глина, царапины, пыль. */

:root {
  --bg: #2a1f16;
  --bg-2: #f5ead6;
  --ink: #f6ecdc;
  --ink-2: #d2c2a8;
  --ink-3: #9d8b72;
  --line: rgba(246, 236, 220, .15);
  --accent: #e6b15a;
  --accent-ink: #2a1605;
  --card: #f5ead6;
  --shadow: 0 26px 50px -24px rgba(0, 0, 0, .8);
}
body { background: radial-gradient(100% 60% at 50% 0%, #4a3525 0%, #2a1f16 60%, #1b140e 100%) fixed; }
.count { font-weight: 700; color: var(--ink-2); }
.btn--ghost { color: var(--ink); }
.card { color: #3a2b1d; }
.note { color: var(--ink-3); }

.hero { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2.2; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero__text { position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; background: linear-gradient(to top, rgba(20, 12, 6, .92) 25%, rgba(20, 12, 6, 0)); display: grid; gap: 4px; }
.hero__text h1 { font-size: 44px; color: #fff1d6; }
.hero__text .eyebrow { color: var(--accent); }
.hero__text .lead { color: #efdcbc; font-size: 18px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.rules svg { width: 24px; height: 24px; flex: none; color: var(--accent); }
.rules b { color: var(--ink); }

.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.meter b { font-family: var(--serif); font-size: 20px; color: var(--ink); line-height: 1; }
.meter i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.meter em { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s var(--ease); }
.meter--p em { background: #7fc48a; }
.meter.is-hit { animation: hit .5s; }
.meter.is-hit em { background: #e2725b; }
@keyframes hit { 30% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }

.slab { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 6px #3d2c1e, 0 0 0 7px rgba(255, 255, 255, .08), var(--shadow); touch-action: none; user-select: none; -webkit-user-select: none; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%23fff' stroke-width='2' stroke-dasharray='4 3'/%3E%3C/svg%3E") 16 16, crosshair; }
.slab img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.slab canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#sed, #dst { transition: opacity .6s var(--ease); }
#sed.is-gone, #dst.is-gone { opacity: 0; }
.hint { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--ink-2); }
.hint svg { width: 20px; height: 20px; color: var(--accent); }

.idq { display: grid; gap: 10px; animation: rise .35s var(--ease); }
.idq__q { font-weight: 700; font-size: 18px; }
.opts { display: grid; gap: 8px; }
.opt { text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--card); color: #3a2b1d; font-weight: 700; font-size: 16px; border: 1.5px solid transparent; }
.opt:active { transform: scale(.98); }

.find { display: grid; gap: 8px; color: #3a2b1d; }
.find img { width: 120px; height: 120px; border-radius: 18px; object-fit: cover; justify-self: center; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); }
.find .eyebrow { text-align: center; color: #9a6a2a; }
.find h2 { text-align: center; font-size: 30px; }
.find__age { text-align: center; color: #8a6a44; font-weight: 600; font-size: 14px; }
.find > p:not(.eyebrow):not(.find__age) { color: #5a4630; }
.find__val { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 14px; background: #ecdcbc; font-size: 14px; }
.find__val b { font-family: var(--serif); font-size: 20px; }
.find .btn { color: #2a1605; }

.final { display: grid; gap: 8px; text-align: center; }
.final h1 { font-size: 34px; }
.final__score { color: var(--ink-2); font-size: 18px; }
.final__score b { font-family: var(--serif); font-size: 46px; color: var(--accent); }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 10px; border-radius: 18px; background: linear-gradient(#3d2c1e, #33251a); box-shadow: inset 0 -8px 0 #22180f; }
.shelf__i { margin: 0; display: grid; gap: 6px; text-align: center; }
.shelf__i img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 16px -8px rgba(0, 0, 0, .7); }
.shelf__i.is-bad img { filter: grayscale(.7) brightness(.8); }
.shelf__i b { font-size: 12px; line-height: 1.2; display: block; }
.shelf__i small { font-size: 11px; color: var(--ink-3); }
.museum { display: grid; gap: 6px; }
.museum .eyebrow { color: #9a7a4a; }
