/* Отпечаток открывает личный экран тем же нажатием, что и прежняя кнопка. */
.pass-fingerprint-button{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;max-width:260px;margin-inline:auto;padding:12px 16px 16px;border-radius:24px;background:transparent;color:var(--ink);font-size:14px;font-weight:750;line-height:1.5;overflow-wrap:anywhere}
.pass-fingerprint-mark{display:grid;place-items:center;width:132px;height:132px;flex:none;border:1px solid var(--line);border-radius:50%;background:var(--soft);transition:background 160ms,box-shadow 160ms}
.pass-fingerprint-image{display:block;width:108px;height:108px;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-select:none}
.pass-fingerprint-button:active:not(:disabled) .pass-fingerprint-mark{background:var(--surface);box-shadow:inset 0 0 0 2px var(--focus)}
.pass-fingerprint-button:disabled{cursor:wait}
:root[data-theme="dark"] .pass-fingerprint-image,:root[data-mafia-scene="night"] .pass-fingerprint-image{filter:brightness(0) invert(1);opacity:.9}
@media(hover:hover){.pass-fingerprint-button:hover:not(:disabled) .pass-fingerprint-mark{background:var(--surface);box-shadow:0 0 0 4px var(--soft)}}
@media(max-height:700px){.pass-cover .pass-card>svg{width:44px;height:44px;margin-bottom:16px}.pass-cover .pass-card>p:not(.small){margin-bottom:16px}.pass-fingerprint-button{gap:8px;padding-block:8px 12px}.pass-fingerprint-mark{width:104px;height:104px}.pass-fingerprint-image{width:84px;height:84px}}
@media(prefers-reduced-motion:reduce){.pass-fingerprint-button,.pass-fingerprint-mark{transition:none!important}}

/* Закрытый конверт и открытая личная карточка различаются без раскрытия содержимого. */
.handoff{
 --handoff-paper:var(--game-paper,var(--surface));
 --handoff-edge:var(--game-edge,var(--line));
 --handoff-tint:var(--game-tint,var(--soft));
 --handoff-ink:var(--game-ink,var(--ink));
 position:relative;display:grid;gap:20px;width:100%;max-width:620px;margin-inline:auto;
 padding:clamp(22px,4.5vw,40px);border:1px solid var(--handoff-edge);
 border-radius:var(--game-radius,24px);background:var(--handoff-paper);color:var(--ink);
 text-align:center;overflow-wrap:anywhere;box-shadow:0 6px 0 color-mix(in srgb,var(--handoff-tint) 55%,transparent);
}
.handoff-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--handoff-edge);text-align:left}
.handoff-eyebrow,.handoff-counter{font-size:12px;line-height:1.5;color:var(--muted);font-weight:650}
.handoff-counter{padding:5px 11px;border:1px solid var(--handoff-edge);border-radius:8px;background:var(--handoff-tint);color:var(--handoff-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.handoff h2{font-size:clamp(24px,3.5vw,34px);line-height:1.23;letter-spacing:-.85px;font-weight:750}
.handoff-seal{position:relative;display:grid;place-items:center;width:64px;height:64px;margin:6px auto 0;border:1px solid var(--handoff-edge);border-radius:50%;background:var(--handoff-tint);font-size:26px;color:var(--handoff-ink)}
.handoff:has(.handoff-name) .handoff-seal{width:148px;height:90px;border-radius:12px;background:var(--handoff-tint);font-size:0;overflow:hidden;box-shadow:0 3px 0 var(--handoff-edge)}
.handoff:has(.handoff-name) .handoff-seal::before{content:"";position:absolute;width:106px;height:106px;left:50%;top:-67px;transform:translateX(-50%) rotate(45deg);border-right:1px solid var(--handoff-edge);border-bottom:1px solid var(--handoff-edge);background:var(--handoff-paper)}
.handoff-name{max-width:100%;font-size:clamp(30px,5.8vw,46px);font-weight:800;line-height:1.15;letter-spacing:-1.2px;color:var(--handoff-ink)}
.handoff-copy{max-width:390px;justify-self:center;font-size:14px;line-height:1.75;color:var(--muted)}
.handoff-primary{min-height:56px;margin-top:4px;border-radius:12px;background:var(--handoff-ink);color:var(--handoff-paper);line-height:1.45;white-space:normal;overflow-wrap:anywhere}
.handoff-back{min-height:44px;margin-top:-8px;padding:8px 12px;font-size:12px;line-height:1.5;color:var(--muted)}
.handoff.is-open{max-width:680px;background:color-mix(in srgb,var(--handoff-tint) 26%,var(--handoff-paper));box-shadow:none}
.handoff.is-open>.handoff-eyebrow{color:var(--handoff-ink);font-size:13px}
.handoff.is-open h2{font-size:clamp(23px,3vw,29px);letter-spacing:-.6px}
.handoff-card{min-width:0;padding:clamp(20px,3vw,30px);border:1px solid var(--handoff-edge);border-left:4px solid var(--handoff-ink);border-radius:12px;background:var(--handoff-paper);color:var(--ink);text-align:left;font-size:clamp(17px,1.9vw,20px);font-weight:650;line-height:1.75;white-space:pre-line;overflow-wrap:anywhere}
.handoff-error{padding:12px 14px;border:1px solid color-mix(in srgb,var(--danger) 38%,var(--handoff-edge));border-radius:10px;background:color-mix(in srgb,var(--danger) 7%,var(--handoff-paper));color:var(--danger);font-size:13px;line-height:1.65;text-align:left}
.handoff button:focus-visible{outline:3px solid var(--focus,var(--handoff-ink));outline-offset:4px}
@media(min-width:1000px){.handoff{margin-block:12px 20px;gap:23px}}
@media(max-width:480px){.handoff{padding:22px 18px;gap:18px;border-radius:20px}.handoff-heading{padding-bottom:14px}.handoff:has(.handoff-name) .handoff-seal{width:132px;height:82px}.handoff:has(.handoff-name) .handoff-seal::before{width:94px;height:94px;top:-59px}.handoff-card{padding:18px 16px}.handoff-copy{font-size:13px}.handoff-back{margin-top:-5px}}
@media(max-width:360px){.handoff{padding:20px 14px;gap:16px}.handoff-name{font-size:30px;letter-spacing:-.8px}.handoff-primary{font-size:13px;padding-inline:12px}.handoff-card{font-size:16px}}
@media(prefers-reduced-motion:reduce){.handoff,.handoff *{animation:none!important;transition:none!important}}

/* Карточка нового владельца открывается одним действием; секретная сторона удаляется до анимации. */
.handoff .handoff-deck{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:22px;width:min(100%,360px);min-height:280px;margin:8px auto;padding:30px 24px;border:1px solid var(--handoff-edge);border-radius:22px;background:var(--handoff-tint);color:var(--handoff-ink);box-shadow:0 5px 0 var(--handoff-paper),0 6px 0 var(--handoff-edge),0 10px 0 var(--handoff-tint),0 11px 0 var(--handoff-edge);font-size:19px;font-weight:750;touch-action:manipulation}
.handoff .handoff-deck>svg,.handoff .handoff-deck>img{width:132px;height:132px;flex:none;object-fit:contain;pointer-events:none}
.handoff .handoff-deck:disabled{opacity:.65;cursor:wait}
.handoff .handoff-deck:active:not(:disabled){background:color-mix(in srgb,var(--handoff-tint) 80%,var(--handoff-paper))}
.handoff.is-open .handoff-card-title{margin-top:-10px;font-size:15px;line-height:1.5;font-weight:650;letter-spacing:0;color:var(--muted)}
.handoff.is-open .handoff-card{display:grid;align-content:center;min-height:220px;border:1px solid var(--handoff-edge);border-radius:20px;text-align:center;font-size:clamp(21px,4vw,30px);line-height:1.5;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.handoff.is-open .handoff-name{font-size:clamp(27px,5vw,36px);letter-spacing:-.8px}
.handoff-swipe-hint{margin:-8px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
@media(hover:hover){.handoff-swipe-hint{display:none}}
@media(max-width:480px){.handoff .handoff-deck{min-height:250px;max-width:300px;margin-block:4px 12px;padding:26px 18px;font-size:18px}.handoff.is-open .handoff-card{min-height:210px;padding:24px 18px}.handoff .handoff-card-title{font-size:14px}}
@media(max-width:360px){.handoff .handoff-deck{min-height:224px;font-size:17px}.handoff.is-open .handoff-card{font-size:21px;min-height:190px}}
