/* Страница лотка /p/<код> — поверх site.css */
.tray-page [hidden] { display: none !important; }
.tray-page { background: var(--green); color: #fff; }
.t-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 var(--gut); color: var(--lime); border-bottom: 1px solid rgba(217, 245, 106, .14); }
.t-logo { display: block; width: 140px; color: inherit; }
.t-code { margin: 0; display: flex; align-items: center; gap: 10px; }
.t-code b { color: #fff; font-weight: 700; letter-spacing: .08em; }
.t-demo { padding: 3px 7px; background: var(--lime); color: var(--green); border-radius: 2px; font-size: 10px; }

.t-hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 48px); }
.t-hero .eyebrow { color: var(--lime); }
.t-hero h1 { font-size: clamp(32px, 5vw, 68px); color: var(--lime); }
.t-hero h1 em { font-style: normal; color: #fff; }
.t-lead { margin-top: 20px; max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, .84); }

/* плеер */
.t-video { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #062f06; }
.t-video video, .t-video picture, .t-video picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-video picture img { transition: transform 14s linear; }
.t-video.playing picture img { transform: scale(1.08) translateX(-2%); }
.t-hud { position: absolute; inset: 0; pointer-events: none; color: var(--lime); }
.t-hud .c { position: absolute; width: 22px; height: 22px; border: 0 solid var(--lime); }
.t-hud .c1 { left: 14px; top: 14px; border-left-width: 2px; border-top-width: 2px; }
.t-hud .c2 { right: 14px; top: 14px; border-right-width: 2px; border-top-width: 2px; }
.t-hud .c3 { left: 14px; bottom: 22px; border-left-width: 2px; border-bottom-width: 2px; }
.t-hud .c4 { right: 14px; bottom: 22px; border-right-width: 2px; border-bottom-width: 2px; }
.t-rec, .t-tc, .t-place { position: absolute; font-size: 11px; padding: 4px 8px; background: rgba(0, 40, 0, .72); border-radius: 2px; }
.t-rec { left: 46px; top: 16px; display: flex; align-items: center; gap: 8px; }
.t-rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a64; }
.t-video.playing .t-rec i { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.t-tc { right: 46px; top: 16px; color: #fff; }
.t-place { left: 46px; bottom: 30px; }
.t-box { position: absolute; border: 1.5px solid var(--lime); opacity: 0; transform: scale(1.2); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.t-box em { position: absolute; left: -1.5px; top: -20px; padding: 2px 5px; background: var(--lime); color: var(--green); font-size: 10px; font-style: normal; white-space: nowrap; }
.t-box.skip { border-color: var(--pink); border-style: dashed; }
.t-box.skip em { background: var(--pink); }
.t-box.b1 { left: 58%; top: 56%; width: 7%; height: 12%; }
.t-box.b2 { left: 70%; top: 66%; width: 6%; height: 11%; }
.t-box.b3 { left: 30%; top: 72%; width: 6%; height: 10%; }
.t-video.f1 .b1, .t-video.f2 .b2, .t-video.f3 .b3 { opacity: 1; transform: none; }
.t-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.has-strip picture, .has-strip .t-box { display: none; }
.t-count { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); font-size: 11px; padding: 4px 8px; background: var(--lime); color: var(--green); border-radius: 2px; font-weight: 700; }
.t-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 0; border-radius: 50%; background: var(--lime); color: var(--green); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.t-play svg { width: 34px; height: 34px; margin-left: 4px; }
.t-play:hover { transform: scale(1.06); }
.t-video.playing .t-play { opacity: 0; pointer-events: none; }
.t-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(0, 0, 0, .35); }
.t-bar i { display: block; height: 100%; width: 0; background: var(--lime); }

.t-events { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.t-events button { width: 100%; height: 100%; text-align: left; padding: 12px 14px; background: rgba(217, 245, 106, .07); border: 1px solid rgba(217, 245, 106, .18); border-radius: var(--r); color: #fff; font: 400 14px/1.35 var(--f-text); cursor: pointer; transition: background .25s, border-color .25s; }
.t-events button:hover, .t-events button.on { background: rgba(217, 245, 106, .16); border-color: var(--lime); }
.t-events .mono { display: block; color: var(--lime); font-size: 11px; margin-bottom: 6px; }

/* паспорт и спелость */
.t-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 120px); }
.t-passport { width: 100%; box-shadow: none; }
.t-ripe-h { color: var(--lime); margin-bottom: 14px; }
.t-meter { position: relative; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #88E340, #FFB8BD 55%, #E8323F); }
.t-meter i { position: absolute; top: -6px; width: 3px; height: 26px; background: #fff; left: 0; transition: left 1.2s var(--ease); }
.t-ripe-n { margin-top: 18px; font: 800 clamp(28px, 3vw, 40px)/1 var(--f-display); color: var(--lime); }
.t-ripe-n b { font-weight: 800; }
.t-ripe .muted { color: rgba(255, 255, 255, .7); max-width: 440px; margin-bottom: 28px; }
.t-ripe .btn-green, .t-form .btn-green { background: var(--lime); color: var(--green); }

.t-missing { padding-top: 80px; padding-bottom: 120px; }
.t-missing h1 { color: var(--lime); font-size: clamp(32px, 5vw, 60px); margin-bottom: 18px; }
.t-missing a { color: var(--lime); }
.t-form { display: flex; gap: 10px; margin: 24px 0; flex-wrap: wrap; }
.t-form input { min-height: 48px; padding: 0 14px; font-size: 18px; letter-spacing: .1em; border: 1.5px solid var(--lime); border-radius: var(--r); background: transparent; color: #fff; width: 220px; }

@media (max-width: 860px) {
  .t-top { height: 56px; }
  .t-logo { width: 116px; }
  .t-video { aspect-ratio: 4 / 3; }
  .t-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .t-events { grid-template-columns: 1fr 1fr; }
  .t-facts { grid-template-columns: 1fr; }
  .t-box.b1 { left: 52%; } .t-box.b2 { left: 68%; }
  .t-rec, .t-tc, .t-place, .t-count { font-size: 10px; }
  .t-count { left: auto; right: 40px; top: auto; bottom: 30px; transform: none; }
}
