/* ═══════════════════════════════════════════════════════════════
   «Продегустируй и оцени». Палитра и шрифты — из site.css.
   Всё под .ngame, чтобы общие классы баттла сюда не протекали.
   Играют с телефона и подвыпившими, поэтому крупные цели и
   никаких мелких попаданий: минимальная кнопка — 44 px.
   ═══════════════════════════════════════════════════════════════ */
/* В базовом site.css стоит html,body{height:100%;overflow:hidden} — баттл
   полноэкранный. Здесь страница длинная, поэтому прокрутку возвращаем явно,
   иначе до кнопки «Поставить оценку» просто не долистать. */
html, body.ngame { height: auto; overflow-x: hidden; overflow-y: auto; }
body.ngame {
  color: #f3e7d8; background: #1b0203;
  background-image: radial-gradient(120% 55% at 50% 0%, var(--red1) 0%, var(--red2) 22%, var(--red3) 52%, #1b0203 100%);
  background-attachment: fixed; font-family: var(--body); cursor: auto;
  -webkit-overflow-scrolling: touch;
}
/* топор-курсор с баттла в форме мешает: тут читают и жмут по мелким плашкам */
body.ngame, .ngame button, .ngame a, .ngame input { cursor: auto; }
.ngame button, .ngame a { cursor: pointer; }
.ngame input { cursor: text; }
body.ngame a { color: inherit; text-decoration: none; }
body.ngame h1, body.ngame h2, body.ngame h3 {
  font-family: var(--disp); font-weight: 700; letter-spacing: .5px; line-height: 1.05; margin: 0;
}
.ngame ::selection { background: var(--yellow); color: #1b0203; }
.scr { position: relative; z-index: 6; width: min(94vw, 940px); margin: 0 auto; padding: 0 0 46px; }

.rise { animation: rise .5s cubic-bezier(.2,.7,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* ─── кнопки ─── */
.nbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 24px; border-radius: 14px; cursor: pointer;
  font-family: var(--disp); font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(245,197,24,.08); border: 1px solid rgba(245,197,24,.34); color: #f0c3a8;
  transition: background .18s, border-color .18s, color .18s, transform .12s; }
.nbtn:hover { background: rgba(245,197,24,.18); border-color: rgba(245,197,24,.62); color: #fff; }
.nbtn:active { transform: translateY(2px); }
.nbtn.gold { background: linear-gradient(180deg, #F5C518, #d19b06); color: #2a0405;
  border-color: transparent; font-weight: 700; }
.nbtn.gold:hover { filter: brightness(1.08); color: #2a0405; }
.nbtn.gold:disabled { background: rgba(245,197,24,.14); color: #a98a5e; cursor: not-allowed; filter: none; }
.nbtn.ghost { background: none; font-size: 12px; min-height: 44px; }
.nbtn.danger { background: linear-gradient(180deg, #e11419, #8c0a0e); color: #fff; border-color: transparent; }
.reset { margin-top: 18px; background: none; border: none; cursor: pointer;
  font-family: var(--disp); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #e8b7a2; opacity: .55; padding: 10px; }
.reset:hover { opacity: 1; color: #ff8a8a; }

/* Вся страница выстроена по центру, поэтому и шапка по центру: «назад» с
   номером дела по разным краям спорили с этой осью. «Назад» — таблетка, как
   на /shalosti/, чтобы кнопки возврата на сайте выглядели одинаково. */
.ntop { display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 0 10px; position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, #2a0405 62%, rgba(42,4,5,0)); }
.back { display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; cursor: pointer;
  background: none; border: 1px solid rgba(245,197,24,.34); border-radius: 999px;
  font-family: var(--disp); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--yellow); transition: .18s;
  -webkit-tap-highlight-color: transparent; }
.back:hover { background: var(--yellow); color: #2a0405; }
.ntoph { font-family: var(--disp); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: #e8b7a2; opacity: .6; }
@media (max-width: 380px) { .ntoph { display: none; } }

/* ─── сцена встречи с Амалией ─── */
.amsc { position: relative; margin: 20px auto 4px; width: min(88vw, 560px);
  aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(245,197,24,.22); background: #180405;
  box-shadow: 0 22px 50px -22px rgba(0,0,0,.85); }
.amsc img, .amsc .amvid { position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block; }
.amsc .amvid { opacity: 0; transition: opacity .5s; }
.amsc .amvid.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .amsc .amvid { display: none; } }

/* ─── экран входа ─── */
/* Колонка, а не строка: при `flex-direction: row` шапка становилась соседом
   контента и уезжала влево от него, ломая центральную ось экрана.
   Теперь шапка — полоса сверху, а `.introin` центрируется автомаргинами. */
.intro { min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; text-align: center; }
.intro > .ntop { width: 100%; }
.intro > .introin { margin: auto 0; }
.glass-rain { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glass-rain img { position: absolute; top: -140px; opacity: .17;
  animation: fall 16s linear infinite; }
@keyframes fall { to { transform: translateY(115vh) rotate(28deg); } }
.introin { padding: 40px 0; }
.kick { display: inline-block; font-family: var(--disp); font-size: 11px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--yellow); border: 1px solid rgba(245,197,24,.45);
  background: rgba(20,3,4,.5); padding: 7px 14px; border-radius: 999px; }
.introin h1 { margin-top: 20px; font-size: clamp(38px, 12vw, 82px); line-height: .92;
  text-transform: uppercase; color: #fff; text-shadow: 0 4px 0 var(--red3), 0 0 60px rgba(0,0,0,.7); }
.introin h1 .y { color: var(--yellow); text-shadow: 0 4px 0 var(--red3), 0 0 40px rgba(245,197,24,.4); }
.introin .sub { margin: 18px auto 0; max-width: 420px; font-family: var(--hand);
  font-size: clamp(21px, 5.4vw, 28px); line-height: 1.28; color: #f0c3a8; }
.progress { margin-top: 20px; font-size: 13.5px; color: #e8cdbc; }
.progress b { color: var(--yellow); font-size: 17px; }
.introin .nbtn { margin: 22px 6px 0; }
.introfoot { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.price { font-family: var(--disp); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: #e8b7a2; opacity: .7; }

/* ─── выбор настойки ─── */
.pickhead { padding: 8px 0 18px; }
.pickhead h2 { font-size: clamp(28px, 8vw, 48px); text-transform: uppercase; color: #fff;
  text-shadow: 0 3px 0 var(--red3); }
.pickhead p { margin-top: 8px; font-family: var(--hand2); font-size: 17px; color: #e8b7a2; }
.tgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.tcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px 13px; cursor: pointer; text-align: center;
  background: linear-gradient(180deg, rgba(30,12,11,.9), rgba(20,7,7,.94));
  border: 1px solid rgba(245,197,24,.16); border-radius: 18px;
  transition: border-color .18s, transform .18s, box-shadow .18s; }
.tcard::after { content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
  background: radial-gradient(70% 46% at 50% 22%, var(--c) 0%, transparent 70%); opacity: .2; }
.tcard:hover { transform: translateY(-3px); border-color: rgba(245,197,24,.45);
  box-shadow: 0 22px 44px -24px #000; }
.tcard.half { border-color: rgba(245,197,24,.42); }
.tcard.full { border-color: rgba(120,220,140,.42); }
.tnum { position: absolute; top: 9px; left: 11px; z-index: 2; font-family: var(--disp);
  font-size: 12px; color: var(--yellow); opacity: .8; }
.tph { position: relative; z-index: 2; height: 96px; display: flex; align-items: flex-end; }
.tph img { max-height: 96px; width: auto; filter: drop-shadow(0 10px 16px rgba(0,0,0,.55)); }
.tname { position: relative; z-index: 2; font-family: var(--disp); font-size: 13px;
  line-height: 1.2; color: #fff; letter-spacing: .3px; }
.tstate { position: relative; z-index: 2; font-family: var(--disp); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; color: #e8b7a2; opacity: .7; }
.tcard.full .tstate { color: #9be6ad; opacity: .95; }
.pickfoot { margin-top: 22px; text-align: center; }

/* ─── кто оценивает ─── */
.whowrap { text-align: center; padding-top: 10px; }
.whohead { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.whoshot { height: 130px; width: auto; filter: drop-shadow(0 14px 22px rgba(0,0,0,.6)); }
.whohead .num { font-family: var(--disp); font-size: 12px; letter-spacing: .2em; color: var(--yellow); }
.whohead h2 { font-size: clamp(24px, 7vw, 40px); color: #fff; text-transform: uppercase; }
.qsub { margin: 22px 0 14px; font-family: var(--hand); font-size: 24px; color: #f0c3a8; }
.whocards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.whocard { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 16px 10px;
  cursor: pointer; background: rgba(30,12,11,.86); border: 1px solid rgba(245,197,24,.2);
  border-radius: 18px; transition: .18s; }
.whocard:hover { border-color: var(--yellow); transform: translateY(-3px); }
.whocard.done { border-color: rgba(120,220,140,.45); }
.whocard img { height: 118px; width: auto; }
.whocard b { font-family: var(--disp); font-size: 17px; color: var(--yellow); letter-spacing: .5px; }
.whocard span { font-family: var(--disp); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: #e8b7a2; opacity: .75; }

/* ─── экран оценок ─── */
.rhead { display: flex; align-items: center; gap: 14px; padding: 6px 0 4px; }
.rshot { height: 104px; width: auto; flex: 0 0 auto; filter: drop-shadow(0 12px 20px rgba(0,0,0,.6)); }
.rhead .num { font-family: var(--disp); font-size: 11px; letter-spacing: .2em; color: var(--yellow); }
.rhead h2 { font-size: clamp(21px, 5.6vw, 30px); color: #fff; text-transform: uppercase; margin-top: 3px; }
.rwho { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px;
  font-family: var(--disp); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #e8b7a2; }
.rwho img { height: 30px; width: auto; }

.firstthought { margin: 20px 0 6px; }
.firstthought label { display: block; font-family: var(--disp); font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); opacity: .8; margin-bottom: 7px; }
.firstthought input { width: 100%; min-height: 52px; padding: 13px 15px; border-radius: 13px;
  background: rgba(20,3,4,.6); border: 1px solid rgba(245,197,24,.24); color: #fff;
  font-family: var(--hand); font-size: 21px; }
.firstthought input::placeholder { color: #b98f7e; opacity: .75; }
.firstthought input:focus { outline: none; border-color: var(--yellow); }

.crits { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.crit { padding: 14px 14px 15px; border-radius: 16px;
  background: rgba(24,10,9,.72); border: 1px solid rgba(245,197,24,.14); }
.critx { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 11px; }
.critx b { font-family: var(--disp); font-size: 16px; color: var(--yellow); letter-spacing: .5px; }
.cq { flex: 1; min-width: 140px; font-size: 12.5px; color: #e8cdbc; opacity: .8; }
.cval { font-family: var(--disp); font-style: normal; font-size: 26px; color: #fff; }
.cval.empty { color: #7d5c52; }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.pip { min-height: 46px; padding: 0; cursor: pointer; border-radius: 10px;
  background: rgba(20,3,4,.55); border: 1px solid rgba(245,197,24,.18);
  font-family: var(--disp); font-size: 13px; color: #cfa892; transition: .12s; }
.pip.lit { background: rgba(245,197,24,.16); border-color: rgba(245,197,24,.4); color: #f0d7a8; }
.pip.on { background: linear-gradient(180deg, #F5C518, #d19b06); border-color: transparent;
  color: #2a0405; font-weight: 700; transform: translateY(-3px); }
.pip:active { transform: translateY(1px); }
.ractions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Панель продолжения на экране оценок висит внизу и видна всегда:
   иначе непонятно, чем заканчивается шаг и куда жать дальше. */
.rating { padding-bottom: 108px; }
.ractions.stick { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0;
  padding: 12px max(3vw, 14px) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(27,2,3,0), rgba(27,2,3,.92) 34%, #1b0203);
  backdrop-filter: blur(8px); }
.ractions.stick .nbtn { width: min(100%, 520px); }
.rprog { display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-bottom: 9px; font-family: var(--disp); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase; color: #e8b7a2; opacity: .85; }
.rprog i { width: 22px; height: 5px; border-radius: 999px; background: rgba(245,197,24,.2);
  transition: background .2s; font-style: normal; }
.rprog i.on { background: var(--yellow); }

/* ─── карточка результата ─── */
.rescard { position: relative; margin-top: 10px; padding: 22px 18px 20px; text-align: center;
  border-radius: 20px; background: linear-gradient(180deg, rgba(40,14,13,.92), rgba(20,7,7,.95));
  border: 1px solid rgba(245,197,24,.24); overflow: hidden; }
.rescard::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 40% at 50% 0%, var(--c) 0%, transparent 72%); opacity: .22; }
.resshot { position: relative; z-index: 2; height: 128px; width: auto;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.6)); }
.rescard .num { position: relative; z-index: 2; display: block; margin-top: 6px;
  font-family: var(--disp); font-size: 11px; letter-spacing: .2em; color: var(--yellow); }
.rescard h2 { position: relative; z-index: 2; margin-top: 4px; font-size: clamp(22px, 6vw, 32px);
  color: #fff; text-transform: uppercase; }
.pscores { position: relative; z-index: 2; margin-top: 18px; display: flex; justify-content: center; gap: 26px; }
.pscore { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pscore img { height: 62px; width: auto; }
.pscore b { font-family: var(--disp); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: #e8b7a2; }
.pscore span { font-family: var(--disp); font-size: 25px; color: var(--yellow); }
.total { position: relative; z-index: 2; margin-top: 16px; font-family: var(--disp);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #e8b7a2; }
.total b { font-size: 34px; color: #fff; margin: 0 6px; }
.waiting { position: relative; z-index: 2; margin-top: 14px; font-family: var(--hand2);
  font-size: 17px; color: #f0c3a8; }
.pnote { margin: 12px 0 0; padding: 12px 15px; border-left: 2px solid rgba(245,197,24,.45);
  background: rgba(20,3,4,.4); border-radius: 0 12px 12px 0;
  font-family: var(--hand); font-size: 20px; line-height: 1.3; color: #f0c3a8; }
.pnote b { font-family: var(--disp); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--yellow); margin-right: 6px; }

.bars { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.bar { display: grid; grid-template-columns: 92px 1fr 40px; align-items: center; gap: 10px; }
.bn { font-family: var(--disp); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: #e8b7a2; }
.btrack { height: 10px; border-radius: 999px; background: rgba(20,3,4,.6);
  border: 1px solid rgba(245,197,24,.16); overflow: hidden; }
.btrack i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #8c0a0e, #F5C518); }
.bv { font-family: var(--disp); font-size: 15px; color: var(--yellow); text-align: right; }

.verdicts { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.vd { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 14px;
  background: rgba(24,10,9,.7); border: 1px solid rgba(245,197,24,.16); }
.vd i { font-style: normal; font-size: 19px; }
.vd span { flex: 1; font-size: 13.5px; color: #e8cdbc; }
.vd b { font-family: var(--disp); font-size: 19px; color: var(--yellow); }
.vd.good { border-color: rgba(120,220,140,.32); }
.vd.bad { border-color: rgba(255,120,120,.3); }
.vd.war { border-color: rgba(195,16,24,.5); }

/* ─── финал и вердикт ─── */
.finhead { text-align: center; padding: 16px 0 6px; }
.finhead h2 { margin-top: 14px; font-size: clamp(24px, 7vw, 40px); color: #fff; text-transform: uppercase; }
.fps { margin-top: 20px; display: flex; justify-content: center; gap: 30px; }
.fp { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.fp img { height: 96px; width: auto; }
.fp b { font-family: var(--disp); font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: #e8b7a2; }
.fp span { font-family: var(--disp); font-size: 27px; color: var(--yellow); }
.finsum { margin-top: 24px; display: grid; gap: 11px; }
.finsum div { padding: 14px 16px; border-radius: 15px; background: rgba(24,10,9,.7);
  border: 1px solid rgba(245,197,24,.18); }
.finsum span { display: block; font-family: var(--disp); font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); opacity: .8; }
.finsum b { display: block; margin-top: 5px; font-family: var(--disp); font-size: 19px; color: #fff; }

.stampwrap { text-align: center; padding: 24px 0 18px; }
.stamp { display: inline-block; font-family: var(--disp); font-weight: 700;
  font-size: clamp(19px, 5.6vw, 38px); letter-spacing: .08em; text-transform: uppercase;
  color: #ff6b6b; border: 3px solid rgba(195,16,24,.75); border-radius: 6px;
  padding: 10px 18px; transform: rotate(-3deg); text-shadow: 0 3px 0 rgba(0,0,0,.5); }
.rank { display: flex; flex-direction: column; gap: 8px; }
.rrow { display: grid; grid-template-columns: 40px 52px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 13px; border-radius: 15px; background: rgba(24,10,9,.72);
  border: 1px solid rgba(245,197,24,.16); position: relative; overflow: hidden; }
.rrow::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--c) 0%, transparent 42%); opacity: .16; }
.rpos { position: relative; z-index: 2; font-family: var(--disp); font-size: 19px;
  color: var(--yellow); text-align: center; }
.rrow img { position: relative; z-index: 2; height: 46px; width: auto; justify-self: center; }
.rname { position: relative; z-index: 2; font-family: var(--disp); font-size: 14px;
  color: #fff; line-height: 1.2; }
.rval { position: relative; z-index: 2; font-family: var(--disp); font-size: 20px; color: var(--yellow); }
.nomh { margin: 30px 0 12px; font-size: 15px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--yellow); }
.noms { display: grid; grid-template-columns: 1fr; gap: 9px; }
.nom { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px; background: rgba(24,10,9,.7);
  border: 1px solid rgba(245,197,24,.16); }
.nom i { font-style: normal; font-size: 19px; }
.nom span { font-family: var(--disp); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: #e8b7a2; opacity: .8; grid-column: 2; }
.nom b { grid-column: 2; font-family: var(--disp); font-size: 15px; color: #fff; }
.nom u { grid-column: 3; grid-row: 1 / span 2; text-decoration: none;
  font-family: var(--disp); font-size: 13px; color: var(--yellow); }

/* ─── подтверждение сброса ─── */
.confirm { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center;
  justify-content: center; padding: 18px; background: rgba(10,1,2,.9); backdrop-filter: blur(6px); }
.cbox { width: min(92vw, 420px); padding: 24px 22px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(52,16,14,.96), rgba(24,8,8,.98));
  border: 1px solid rgba(195,16,24,.5); text-align: center; }
.cbox h3 { font-size: 21px; color: #ff6b6b; text-transform: uppercase; }
.cbox p { margin: 12px 0 20px; font-size: 13.5px; line-height: 1.6; color: #e8cdbc; }
.cbtns { display: flex; flex-direction: column; gap: 9px; }

/* ═══════════ ПЛАНШЕТ И ДЕСКТОП ═══════════ */
@media (min-width: 700px) {
  .tgrid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tph { height: 116px; } .tph img { max-height: 116px; }
  .tname { font-size: 14.5px; }
  .noms { grid-template-columns: repeat(2, 1fr); }
  .finsum { grid-template-columns: repeat(2, 1fr); }
  .whocards { max-width: 460px; margin: 0 auto; }
  .crit { padding: 18px 20px 19px; }
  .pip { min-height: 52px; font-size: 14px; }
}
@media (min-width: 1000px) {
  .tgrid { grid-template-columns: repeat(5, 1fr); }
  .rhead { gap: 20px; }
  .rshot { height: 128px; }
}
/* очень узкие телефоны */
@media (max-width: 380px) {
  .scale { gap: 4px; }
  .pip { min-height: 42px; font-size: 11.5px; border-radius: 8px; }
  .tph { height: 84px; } .tph img { max-height: 84px; }
  .tname { font-size: 12px; }
  .bar { grid-template-columns: 76px 1fr 34px; }
}
