/* ===== База стола (бывший shotgun.css «Последнего патрона»; игра удалена 2026-12-04) ===== */
.theme-shot {
  --gold: #c9d6a0; --gold-2: #eef3dc; --line: rgba(190, 210, 150, .22);
  --toxic: #b6e07a; --blood-2: #d0283a; --panel: rgba(10, 14, 10, .93);
  background: #070907;
}
.theme-shot .btn-gold { background: linear-gradient(180deg, #c4363c, #6e0f16); color: #fff2ee; border-color: #ff8a8a; box-shadow: 0 6px 24px rgba(200, 40, 50, .3), inset 0 1px 0 rgba(255, 255, 255, .3); }
.theme-shot .btn-gold:hover { background: linear-gradient(180deg, #d84a4f, #7e1820); }
.theme-shot .logo h1 { font-size: 3.1rem; line-height: 1; background: linear-gradient(180deg, #f2f6e4, #b9cc8a 55%, #4a5a2a); -webkit-background-clip: text; background-clip: text; }
.theme-shot .logo-rule::after { content: '⁂'; color: #d0283a; }
.theme-shot .ava-current { border-color: var(--gold); } .theme-shot .ava-current::after { background: var(--gold); color: #10140c; }
body.theme-shot.in-game #scene .h-bg { filter: brightness(.38) saturate(.9) blur(1.5px); }
.theme-shot .h-lamp { background: radial-gradient(circle, rgba(190, 230, 140, .16), transparent 60%); }
.theme-shot .tr-fg { stroke: var(--gold); }
.theme-shot .tring circle { stroke: #d0283a; filter: drop-shadow(0 0 6px rgba(208, 40, 58, .8)); }
.theme-shot .seat.turn .ava { border-color: #d0283a; box-shadow: 0 0 0 4px rgba(208, 40, 58, .25), 0 0 28px 6px rgba(208, 40, 58, .45); }
.theme-shot .seat.turn::before { content: '⌖'; color: #ff5a64; }
.theme-shot .seats { pointer-events: none; } .theme-shot .seat { pointer-events: auto; width: 8.6rem; }

/* заряды и предметы под портретом */
.s-lives { display: flex; gap: 3px; justify-content: center; margin-top: 3px; }
.s-lives i { width: .62rem; height: .95rem; border-radius: 2px; background: linear-gradient(180deg, #ffe58a, #e0a020); box-shadow: 0 0 6px rgba(255, 210, 90, .7), inset 0 -2px 0 rgba(0, 0, 0, .3); clip-path: polygon(55% 0, 15% 55%, 45% 55%, 35% 100%, 85% 40%, 55% 40%, 70% 0); }
.s-lives i.gone { background: #2a2a22; box-shadow: none; }
.s-pitems { display: flex; flex-wrap: wrap; gap: 1px; justify-content: center; max-width: 8.4rem; margin-top: 3px; }
.s-pitems img { width: 1.35rem; height: 1.35rem; object-fit: contain; filter: drop-shadow(0 1px 2px #000); }
.seat.cuffed .ava { filter: grayscale(.5) brightness(.8); }
.s-cuffb { position: absolute; right: -14px; bottom: -6px; width: 2.4rem; z-index: 4; filter: drop-shadow(0 2px 4px #000); transform: rotate(-15deg); }
.s-aim { position: absolute; inset: -8px; display: grid; place-items: center; font-size: 3.4rem; color: #ff4a54; opacity: 0; transition: opacity .15s, transform .15s; transform: scale(1.4); pointer-events: none; text-shadow: 0 0 12px #f00; z-index: 5; }
.seat.aimable { cursor: crosshair; } .seat.aimable:hover .s-aim { opacity: .9; transform: none; }
.seat.pickable { cursor: pointer; } .seat.pickable .ava { animation: pickp 1s ease-in-out infinite; }
@keyframes pickp { 50% { box-shadow: 0 0 0 5px rgba(201, 214, 160, .5), 0 0 26px 8px rgba(201, 214, 160, .5); } }
body.s-picking .seat:not(.pickable):not(.me) { opacity: .5; }
.seat.s-hit .ava { animation: shit .7s ease-out; }
@keyframes shit { 0% { filter: brightness(3) sepia(1) saturate(8) hue-rotate(-40deg); transform: scale(1.18) rotate(-6deg); } 100% { filter: none; transform: none; } }
.s-float { position: absolute; left: 50%; top: 10%; z-index: 30; transform: translateX(-50%); pointer-events: none; white-space: nowrap; font-family: var(--serif); font-weight: 900; font-size: 1.9rem; animation: sfl 1.5s ease-out forwards; text-shadow: 0 2px 8px #000; }
.s-float.dmg { color: #ff3a48; font-size: 2.4rem; } .s-float.heal { color: #9cff8a; } .s-float.blank { color: #9cc0ff; font-size: 1.2rem; }
@keyframes sfl { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -6px) scale(1.15); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -30px); } }
.emo-bubble.s-itemb, .emo-bubble.s-again { font-family: var(--serif); font-weight: 900; font-size: 1.15rem; white-space: nowrap; color: #eef3dc; text-shadow: 0 0 10px #000, 0 0 2px #000; }
.emo-bubble.s-again { color: #9cc0ff; }
.s-useicon { position: absolute; left: 50%; top: 50%; width: 3.4rem; z-index: 20; pointer-events: none; animation: suse 1.4s ease-out forwards; filter: drop-shadow(0 4px 10px #000); }
@keyframes suse { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 25% { transform: translate(-50%, -110%) scale(1.15); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -150%) scale(.9); opacity: 0; } }

/* ----- центр: стол, ружьё ----- */
.s-center { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: .3rem 0; }
.s-table { position: relative; width: min(100%, 34rem); aspect-ratio: 16 / 10; border-radius: 50% / 46%;
  background: radial-gradient(ellipse at 50% 35%, rgba(200, 240, 150, .2), transparent 62%), radial-gradient(ellipse, #3b2a1a, #24170c 70%, #140c05);
  box-shadow: inset 0 0 0 6px #1a1008, inset 0 0 60px rgba(0, 0, 0, .8), 0 30px 60px rgba(0, 0, 0, .7); }
.s-table::before { content: ''; position: absolute; left: 50%; top: -60%; width: 70%; height: 120%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 0, rgba(200, 240, 150, .1), transparent 70%); pointer-events: none; }
.s-gunwrap { position: absolute; left: 50%; top: 46%; width: 62%; aspect-ratio: 364 / 104; margin-left: -31%; translate: 0 -50%; transition: transform .6s cubic-bezier(.3, .9, .3, 1.1); z-index: 3; }
.s-gun { position: absolute; inset: 0; filter: drop-shadow(0 14px 10px rgba(0, 0, 0, .75)); }
.s-table.knife .s-gun::before { clip-path: inset(0 21% 0 0); }
.s-table.knife .s-flash { right: 8%; }
.s-gun.recoil { animation: recoil .45s cubic-bezier(.2, .9, .3, 1); }
@keyframes recoil { 0% { transform: translateX(0); } 12% { transform: translateX(-14%) rotate(-7deg); } 100% { transform: none; } }
.s-gun.saw { animation: saw .6s steps(6); }
@keyframes saw { 50% { filter: drop-shadow(0 0 10px #ffd76a) brightness(1.4); transform: translateX(2%); } }
.s-table.knife .s-gun { filter: drop-shadow(0 0 8px rgba(255, 60, 60, .9)) drop-shadow(0 14px 10px rgba(0, 0, 0, .75)); }
.s-table.knife::after { content: 'обрез · урон ×2'; position: absolute; left: 50%; transform: translateX(-50%); top: 10%; font-weight: 900; color: #ff5a64; text-shadow: 0 0 10px #000; letter-spacing: .1em; font-size: .85rem; }
.s-flash { position: absolute; right: -14%; top: 22%; width: 28%; aspect-ratio: 1; border-radius: 50%; opacity: 0; pointer-events: none; background: radial-gradient(circle, #fff 0, #ffe9a0 20%, #ff9a3a 45%, rgba(255, 80, 20, 0) 70%); }
.s-flash.go { animation: flash .22s ease-out; }
@keyframes flash { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }
.s-info { position: absolute; left: 0; right: 0; bottom: 9%; display: flex; flex-direction: column; align-items: center; gap: .15rem; text-align: center; z-index: 4; text-shadow: 0 2px 6px #000; }
.s-count { font-size: .95rem; color: #eef3dc; } .s-count b { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.s-comp { font-size: .78rem; color: var(--muted); display: flex; gap: .3rem; align-items: center; }
.s-comp i { display: inline-block; width: .5rem; height: .8rem; border-radius: 2px; } .s-comp i.r { background: #c8282e; } .s-comp i.b { background: #3a6ad0; margin-left: .3rem; }
.s-wait { color: #eef3dc; font-size: .95rem; padding: 0 12%; }
/* показ зарядки */
.s-load { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; opacity: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(ellipse, rgba(10, 14, 8, .85), rgba(10, 14, 8, .5) 70%, transparent); }
.s-load.show { animation: ldin .3s forwards; } .s-load.hide { animation: ldout .4s forwards; }
@keyframes ldin { to { opacity: 1; } } @keyframes ldout { from { opacity: 1; } to { opacity: 0; } }
.s-ld-title { font-family: var(--serif); font-weight: 900; font-size: 1.3rem; color: #eef3dc; letter-spacing: .1em; text-transform: uppercase; }
.s-ld { display: flex; gap: .3rem; }
.s-ld img { height: 4.4rem; filter: drop-shadow(0 4px 6px #000); animation: shin .4s cubic-bezier(.3, 1.5, .5, 1) both; }
.s-load.hide .s-ld img { animation: shout .4s ease-in forwards; }
@keyframes shin { from { transform: translateY(-60px) rotate(-20deg); opacity: 0; } }
@keyframes shout { to { transform: translateY(20px) scale(.4); opacity: 0; } }
.s-ld-sub { font-weight: 800; } .s-ld-sub .r { color: #ff5a5a; } .s-ld-sub .b { color: #7aa8ff; }
.s-eject { position: absolute; left: 50%; top: 18%; z-index: 7; display: flex; align-items: center; gap: .4rem; transform: translateX(-50%); animation: sfl 1.9s ease-out forwards; font-weight: 900; font-size: 1.1rem; text-shadow: 0 2px 6px #000; }
.s-eject img { height: 3rem; } .s-eject.live { color: #ff5a5a; } .s-eject.blank { color: #7aa8ff; }
/* что я знаю о патронах */
.s-mag { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-height: 2.4rem; }
.s-mag small { color: var(--muted); font-size: .66rem; letter-spacing: .25em; text-transform: uppercase; }
.s-know { display: flex; align-items: center; gap: .4rem; font-size: .88rem; padding: .2rem .8rem .2rem .3rem; border-radius: 999px; animation: knowin .4s cubic-bezier(.3, 1.5, .5, 1); }
.s-know img { height: 1.6rem; }
.s-know.live { background: rgba(200, 40, 50, .25); color: #ffb0b0; box-shadow: inset 0 0 0 1px rgba(255, 80, 80, .35); } .s-know.blank { background: rgba(60, 110, 220, .25); color: #b8ceff; box-shadow: inset 0 0 0 1px rgba(110, 150, 255, .35); }
@keyframes knowin { from { transform: scale(.6); opacity: 0; } }
.s-loadno { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(238, 243, 220, .45); }
.s-ld-hint { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
/* напряжение перед выстрелом */
.s-table { transition: transform .9s cubic-bezier(.3, .7, .3, 1), filter .9s; }
.s-table.tense { transform: scale(1.05); }
.s-table.tense .s-gun { animation: tremble .12s linear infinite; }
.s-table.self { filter: brightness(.75) saturate(.8); }
@keyframes tremble { 25% { translate: .6px -.4px; } 50% { translate: -.5px .5px; } 75% { translate: .4px .3px; } }

/* ----- док ----- */
.s-dock { position: relative; z-index: 25; }
.s-shoot { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: .4rem; }
.s-btn.self { background: linear-gradient(180deg, #3a4a6a, #1c2438); border-color: #7aa8ff; color: #e8efff; }
.s-steal { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); margin-top: .6rem; }
.s-steal button { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .6rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: inherit; cursor: pointer; text-align: center; }
.s-steal button:hover { border-color: var(--gold); background: rgba(201, 214, 160, .12); }
.s-steal img { height: 3rem; } .s-steal small { color: var(--muted); font-size: .72rem; }
.s-rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .4rem .8rem; margin: .4rem 0 .8rem; }
.s-rules small { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.s-endsh { height: 1.6rem; vertical-align: middle; margin: 0 1px; }
/* тряска и красная вспышка при попадании в меня */
#game.s-shake { animation: sshake .45s; }
@keyframes sshake { 15% { translate: -8px 4px; } 30% { translate: 7px -5px; } 45% { translate: -5px 2px; } 60% { translate: 4px -1px; } 80% { translate: -2px 0; } }
.s-hurt { position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: 0; background: radial-gradient(ellipse, transparent 40%, rgba(200, 0, 20, .7)); }
.s-hurt.go { animation: hurt 1.1s ease-out; }
@keyframes hurt { 0% { opacity: 1; background-color: rgba(255, 255, 255, .5); } 15% { background-color: transparent; } 100% { opacity: 0; } }

@media (max-width: 760px) {
  .theme-shot .seat { width: 6rem; }
  .s-pitems { max-width: 6rem; } .s-pitems img { width: 1.05rem; height: 1.05rem; }
  .s-table { width: min(100%, 26rem); }
  .s-ld img { height: 3rem; }
}
.s-or { align-self: center; color: var(--muted); font-size: .8rem; }

/* ----- карточки предметов (картинки из GPT, надписи поверх нижней плашки) ----- */
.s-hand { height: 11rem; padding-top: 1.2rem; }
.theme-shot .s-card { width: 6.2rem; height: 9.3rem; margin-left: -1.5rem; border-radius: 8px; background: #11160d center / cover no-repeat;
  display: block; padding: 0; border: 0; color: inherit; font: inherit; box-shadow: 0 8px 18px rgba(0, 0, 0, .75); }
.theme-shot .s-card:first-child { margin-left: 0; }
.s-card .kind { display: none; }
.s-card .cap2 { position: absolute; left: 8%; right: 8%; bottom: 4.5%; height: 25.5%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; pointer-events: none; }
.s-card .cap2 b { font-family: var(--serif); font-weight: 700; font-size: .8rem; line-height: 1.05; color: #f3e6c4; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, .8); letter-spacing: .02em; }
.s-card .cap2 small { font-size: .55rem; line-height: 1.15; color: #cfc6ae; text-shadow: 0 1px 2px #000; max-width: 100%; overflow-wrap: anywhere; }
.s-card.k-info .cap2 b { color: #c8f0c8; } .s-card.k-atk .cap2 b { color: #ffc8c0; } .s-card.k-heal .cap2 b { color: #ffe6a8; } .s-card.k-trick .cap2 b { color: #e4d2ff; }
.theme-shot .hcard:hover, .theme-shot .hcard.sel { box-shadow: 0 14px 30px rgba(0, 0, 0, .8), 0 0 0 2px #eef3dc, 0 0 24px rgba(220, 240, 180, .45); }
.theme-shot .hcard .tip b { color: #eef3dc; }
.s-card.dim { filter: grayscale(.45) brightness(.7); }
.s-card.dim:hover { filter: none; }
.s-card.fresh { animation: dealin .55s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes dealin { 0% { opacity: 0; translate: 0 -120px; scale: .5; rotate: -25deg; filter: brightness(2.2); } 100% { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; } }
.s-flycard { position: fixed; z-index: 65; width: 3.2rem; height: 4.8rem; border-radius: 6px; pointer-events: none; background: repeating-linear-gradient(45deg, rgba(208, 40, 58, .3) 0 4px, transparent 4px 9px), linear-gradient(180deg, #2c3524, #11160d); box-shadow: 0 0 0 2px #c9d6a0, 0 0 24px 6px rgba(200, 230, 150, .4); }
.s-flycard::after { content: '⁂'; position: absolute; inset: 0; display: grid; place-items: center; color: #d0283a; font-size: 1.4rem; }
/* большая карта посреди экрана */
.card-show .big.s-big { width: 13rem; height: 19.5rem; position: relative; border-radius: 14px; margin: 0; }
.card-show .big.s-big .cap2 { left: 9%; right: 9%; bottom: 4.5%; height: 25.5%; gap: 4px; }
.card-show .big.s-big .cap2 b { font-size: 1.45rem; }
.card-show .big.s-big .cap2 small { font-size: .78rem; line-height: 1.25; }
.card-show.go .big.s-big { animation-duration: 1.45s; } .card-show.go .cap { animation-duration: 1.45s; }
.theme-shot .s-steal .s-card { position: relative; width: 7rem; height: 10.5rem; margin: 0 auto; cursor: pointer; }
.s-steal { grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
/* взведённый курок */
.btn.s-btn.armed { background: linear-gradient(180deg, #ff4a4a, #8a0a14) !important; color: #fff; border-color: #fff; animation: armp .5s ease-in-out infinite alternate; }
@keyframes armp { to { box-shadow: 0 0 0 3px rgba(255, 80, 80, .5), 0 0 30px rgba(255, 40, 40, .8); } }
.seat.armed .s-aim { opacity: 1; transform: none; animation: aimspin 1.6s linear infinite; }
@keyframes aimspin { to { rotate: 360deg; } }
/* заряды: трещина при потере, вспышка при лечении */
.s-lives i.crack { animation: crack .7s 1.15s both; }
@keyframes crack { 0% { background: linear-gradient(180deg, #ffe58a, #e0a020); box-shadow: 0 0 6px rgba(255, 210, 90, .7); } 30% { background: #fff; transform: scale(1.8); box-shadow: 0 0 16px #fff; } 100% { background: #2a2a22; transform: scale(1); box-shadow: none; } }
.s-lives i.gain { animation: gain .8s both; }
@keyframes gain { 0% { transform: scale(0); } 60% { transform: scale(1.6); filter: brightness(2); } 100% { transform: none; } }
/* последний заряд — экран пульсирует */
.s-low { position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: 0; background: radial-gradient(ellipse, transparent 55%, rgba(160, 0, 20, .45)); }
body.s-lowlife .s-low { animation: lowp 1.4s ease-in-out infinite; }
@keyframes lowp { 0%, 100% { opacity: .2; } 15% { opacity: .9; } 30% { opacity: .35; } 45% { opacity: .75; } }
/* звания в итогах */
.s-awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .5rem; margin: .9rem 0 .4rem; }
.s-award { padding: .55rem .6rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); text-align: center; }
.s-award b { display: block; color: #ffd98a; font-family: var(--serif); } .s-award span { display: block; font-weight: 800; } .s-award small { color: var(--muted); font-size: .72rem; }
@media (max-width: 760px) {
  .s-hand { height: 8.4rem; padding-top: .8rem; }
  .theme-shot .s-card { width: 4.8rem; height: 7.2rem; margin-left: -1.6rem; }
  .s-card .cap2 b { font-size: .66rem; } .s-card .cap2 small { display: none; }
}
.s-rules { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem .9rem; }
.s-rcard { display: grid !important; grid-template-columns: 4.6rem 1fr !important; align-items: center; gap: .6rem; }
.theme-shot .s-rcard .s-card { width: 4.6rem; height: 6.9rem; margin: 0; position: relative; cursor: default; }
.s-rcard .s-card .cap2 small { display: none; } .s-rcard .s-card .cap2 b { font-size: .62rem; }
.s-rcard b { display: block; } .s-rcard small { color: var(--muted); font-size: .78rem; line-height: 1.3; }

/* ===== «Пороховой ряд»: трюм под фонарём ===== */
.theme-pw {
  --gold: #e2c27a; --gold-2: #f6e8c4; --line: rgba(226, 194, 122, .22);
  --panel: rgba(12, 12, 16, .93);
  background: #08090c;
}
.theme-pw .btn-gold { background: linear-gradient(180deg, #b8402a, #5e1a10); color: #fff0e0; border-color: #f0a070; box-shadow: 0 6px 24px rgba(200, 80, 40, .3), inset 0 1px 0 rgba(255, 255, 255, .3); }
.theme-pw .btn-gold:hover { background: linear-gradient(180deg, #cc5236, #6e2216); }
.theme-pw .logo h1 { background: linear-gradient(180deg, #fbf0d4, #e2c27a 55%, #6a4a1a); -webkit-background-clip: text; background-clip: text; }
.theme-pw .logo-rule::after { content: '☠'; color: #e2c27a; }
.theme-pw #scene .h-bg { background: url(/sprites/pw-bg.webp) center / cover, radial-gradient(ellipse at 50% 30%, #2a2418, #0a0908 70%); filter: brightness(.6); }
body.theme-pw.in-game #scene .h-bg { filter: brightness(.38) saturate(.9) blur(1.5px); }
.theme-pw .h-lamp { background: radial-gradient(circle, rgba(255, 200, 120, .16), transparent 60%); }
.theme-pw .tring circle { stroke: #e2c27a; filter: drop-shadow(0 0 6px rgba(226, 194, 122, .8)); }
.theme-pw .seat.turn .ava { border-color: #e2c27a; box-shadow: 0 0 0 4px rgba(226, 194, 122, .25), 0 0 28px 6px rgba(226, 194, 122, .4); }
.theme-pw .seat.turn::before { content: '☠'; color: #e2c27a; }
.theme-pw .s-aim { color: #ffb070; text-shadow: 0 0 12px #f80; }
.theme-pw .seat.aimable { cursor: pointer; }
.theme-pw .tr-fg { stroke: var(--gold); }

/* жизни — красные сердца с бронзовой каймой */
.theme-pw .s-lives i { width: .78rem; height: .72rem; border-radius: 0; background: linear-gradient(180deg, #ff6a52, #a8141c); box-shadow: none; filter: drop-shadow(0 0 3px rgba(255, 90, 70, .7));
  clip-path: path('M6.2 11.5 C2 8.2 0 6 0 3.6 C0 1.5 1.6 0 3.4 0 C4.6 0 5.6 .7 6.2 1.7 C6.8 .7 7.8 0 9 0 C10.8 0 12.4 1.5 12.4 3.6 C12.4 6 10.4 8.2 6.2 11.5 Z'); }
.theme-pw .s-lives i.gone { background: #2c2622; filter: none; }
.theme-pw .s-lives i.crack { animation: lcrack .7s ease-out; }
@keyframes lcrack { 0% { background: #fff; transform: scale(1.6); } 100% { transform: none; } }
.pw-pi { width: .95rem; height: 1.4rem; border-radius: 2px; background: #1a1f27 center / cover no-repeat; box-shadow: 0 1px 3px #000, 0 0 0 1px rgba(226, 194, 122, .35); display: inline-block; }
.s-cuffb { font-size: 1.6rem; transform: rotate(-15deg); right: -10px; bottom: -4px; width: auto; }

/* ----- стол: ряд закрытых карт ----- */
.theme-pw .s-table { width: min(100%, 40rem); aspect-ratio: 16 / 9; border-radius: 22px;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 200, 120, .16), transparent 62%), repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 64px), linear-gradient(180deg, #4a3220, #2a1a0e 70%, #160c05);
  box-shadow: inset 0 0 0 5px #1a1008, inset 0 0 0 7px rgba(226, 194, 122, .25), inset 0 0 60px rgba(0, 0, 0, .8), 0 30px 60px rgba(0, 0, 0, .7); }
.theme-pw .s-table::before { background: radial-gradient(ellipse at 50% 0, rgba(255, 200, 120, .1), transparent 70%); }
.pw-row { position: absolute; inset: 12% 4% 18%; display: flex; align-items: center; justify-content: center; gap: min(1.2%, .6rem); z-index: 3;
  --cw: min(5.6rem, 11.5%); }
.pw-card { position: relative; flex: 0 0 auto; width: var(--cw); aspect-ratio: 2 / 3; padding: 0; border: 0; border-radius: 7px; background: none; cursor: default; color: inherit; font: inherit;
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), filter .25s; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .7)); }
.pw-card .back, .pw-card .face, .pw-ghost .back, .pw-ghost .face { position: absolute; inset: 0; border-radius: inherit; background-position: center; background-repeat: no-repeat; }
.pw-card .back, .pw-ghost .back { background: url(/sprites/pw-back.webp) center / cover, repeating-linear-gradient(45deg, rgba(226, 194, 122, .12) 0 4px, transparent 4px 10px), linear-gradient(180deg, #2a2016, #120c08);
  box-shadow: inset 0 0 0 2px rgba(226, 194, 122, .55), inset 0 0 0 5px rgba(0, 0, 0, .5); }
.pw-card .back::after, .pw-ghost .back::after { content: '☠'; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(226, 194, 122, .55); font-size: 1.6rem; z-index: -1; }
.pw-card .face, .pw-ghost .face, .pw-mini { background-size: cover; background-position: center; background-repeat: no-repeat; }
.pw-card.open .face { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.pw-card.live .face, .pw-ghost .face.live, .pw-mini.live { background-color: #5a1410; }
.pw-card.blank .face, .pw-mini.blank { background-color: #6a5630; }
.pw-fcap { position: absolute; left: 6%; right: 6%; bottom: 3%; height: 21%; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--serif); font-weight: 900; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #fbe8c4; text-shadow: 0 1px 2px #000, 0 0 6px #000; pointer-events: none; }
.pw-card .no { position: absolute; left: 50%; top: -1.15rem; transform: translateX(-50%); font-size: .7rem; font-weight: 800; color: rgba(246, 232, 196, .6); }
.pw-card .kn { position: absolute; left: 50%; bottom: -1.05rem; transform: translateX(-50%); white-space: nowrap; font-size: .62rem; font-weight: 800; padding: .05rem .4rem; border-radius: 999px; }
.pw-card.kn-live .kn { background: rgba(200, 50, 30, .85); color: #fff; } .pw-card.kn-blank .kn { background: rgba(200, 170, 100, .85); color: #2a1a08; }
.pw-card.kn-live .back { box-shadow: inset 0 0 0 2px #ff6a4a, 0 0 14px rgba(255, 90, 60, .6); } .pw-card.kn-blank .back { box-shadow: inset 0 0 0 2px #e8cf8a, 0 0 12px rgba(232, 207, 138, .45); }
.pw-card.can { cursor: pointer; }
.pw-card.can:hover { transform: translateY(-8px) rotate(-2deg); }
.pw-card.sel { transform: translateY(-16px) scale(1.08); filter: drop-shadow(0 0 14px rgba(255, 200, 120, .8)) drop-shadow(0 12px 12px rgba(0, 0, 0, .7)); }
.pw-card.sel .back { box-shadow: inset 0 0 0 3px #ffd890, 0 0 0 2px #ffd890; }
.pw-card.pickc { cursor: pointer; animation: pwpick 1s ease-in-out infinite; animation-delay: calc(var(--i) * .08s); }
@keyframes pwpick { 50% { transform: translateY(-6px); filter: drop-shadow(0 0 12px rgba(160, 220, 255, .8)); } }
.pw-row.hold .pw-card { opacity: 0; }
.pw-row.deal .pw-card { animation: pwdeal .5s cubic-bezier(.3, 1.3, .5, 1) both; animation-delay: calc(var(--i) * .09s); }
@keyframes pwdeal { from { opacity: 0; transform: translate(0, -80px) rotate(-30deg) scale(.6); } }
.pw-row.stormfx .pw-card { animation: pwstorm 1s ease-in-out; }
@keyframes pwstorm { 20% { transform: translateX(-30px) rotate(-12deg); } 45% { transform: translateX(26px) rotate(10deg) translateY(-10px); } 70% { transform: translateX(-12px) rotate(-5deg); } }
.pw-card.peekfx .back { animation: pwpeek 1.5s ease-out; }
@keyframes pwpeek { 0%, 60% { box-shadow: inset 0 0 0 3px #9fd8ff, 0 0 22px 6px rgba(140, 210, 255, .7); } }
.pw-card.swapfx { animation: pwswap 1.2s ease-in-out; }
@keyframes pwswap { 30% { transform: rotateY(180deg) scale(1.1); filter: drop-shadow(0 0 16px #c89cff); } 60% { transform: rotateY(360deg); } }
.theme-pw .s-table.saber::after { content: '⚔ сабля наготове · порох ×2'; position: absolute; left: 50%; transform: translateX(-50%); top: 4%; font-weight: 900; color: #ffb070; text-shadow: 0 0 10px #000; letter-spacing: .08em; font-size: .85rem; z-index: 5; white-space: nowrap; }
.theme-pw .s-table.saber .pw-card .back { box-shadow: inset 0 0 0 2px #ff8a50, inset 0 0 0 5px rgba(0, 0, 0, .5); }
.theme-pw .s-info { bottom: 4%; }
.theme-pw .s-table.tense .pw-row { filter: brightness(.7); }

/* карта, которую вскрывают: летит в центр и переворачивается */
.pw-ghost { position: fixed; z-index: 70; pointer-events: none; perspective: 700px; border-radius: 7px; }
/* без filter на .in: он «сплющивает» 3D, и переворот не виден */
.pw-ghost .in { position: absolute; inset: 0; border-radius: inherit; transform-style: preserve-3d; transition: transform .38s cubic-bezier(.3, .7, .3, 1); }
.pw-ghost .back, .pw-ghost .face { box-shadow: 0 14px 22px rgba(0, 0, 0, .75); }
.pw-ghost .back, .pw-ghost .face { backface-visibility: hidden; }
.pw-ghost .face { transform: rotateY(180deg); background-color: #3a2a18; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); }
.pw-ghost.flip .in { transform: rotateY(180deg); }
.pw-ghost .pw-fcap { font-size: .7rem; }

/* показ раздачи */
.pw-ld { flex-wrap: wrap; justify-content: center; max-width: 92%; }
.pw-mini { position: relative; display: inline-block; width: 3rem; height: 4.5rem; border-radius: 5px; box-shadow: 0 4px 8px #000, inset 0 0 0 1px rgba(255, 255, 255, .25); animation: shin .4s cubic-bezier(.3, 1.5, .5, 1) both; }
.pw-mini .pw-fcap { font-size: .5rem; }
.s-load.hide .pw-mini { animation: shout .4s ease-in forwards; }
.theme-pw .s-ld-sub .r { color: #ff7a5a; } .theme-pw .s-ld-sub .b { color: #e8cf8a; }
.theme-pw .s-know.live { background: rgba(200, 60, 30, .25); color: #ffc0a8; } .theme-pw .s-know.blank { background: rgba(200, 170, 100, .2); color: #f0dca8; box-shadow: inset 0 0 0 1px rgba(232, 207, 138, .35); }
.pw-hint { color: var(--muted); font-size: .9rem; padding: .4rem 0; text-align: center; }
.theme-pw .s-btn.self { background: linear-gradient(180deg, #4a3c22, #231a0c); border-color: #e8cf8a; color: #fbf0d4; }
.theme-pw .s-float.blank { color: #f0dca8; }
.theme-pw .emo-bubble.s-again { color: #f0dca8; }
.pw-endc { font-style: normal; margin: 0 1px; }

/* уловки */
.theme-pw .s-card { background-color: #14161c; background-size: cover; background-position: center; background-repeat: no-repeat; }
.theme-pw .hcard:hover, .theme-pw .hcard.sel { box-shadow: 0 14px 30px rgba(0, 0, 0, .8), 0 0 0 2px #f6e8c4, 0 0 24px rgba(255, 210, 140, .45); }
.theme-pw .hcard .tip b { color: #f6e8c4; }
.theme-pw .s-flycard { background: repeating-linear-gradient(45deg, rgba(226, 194, 122, .2) 0 4px, transparent 4px 9px), linear-gradient(180deg, #2a2016, #120c08); box-shadow: 0 0 0 2px #e2c27a, 0 0 24px 6px rgba(255, 200, 120, .35); }
.theme-pw .s-flycard::after { content: '☠'; color: #e2c27a; }
.theme-pw .s-steal button:hover { border-color: var(--gold); background: rgba(226, 194, 122, .12); }

@media (max-width: 760px) {
  .theme-pw .s-table { width: min(100%, 30rem); }
  .pw-row { inset: 14% 3% 20%; --cw: min(4.2rem, 11.5%); }
  .pw-card .no { top: -1rem; font-size: .62rem; }
  .pw-card .kn { font-size: .55rem; }
  .pw-fcap { font-size: .58rem; }
  .pw-mini { width: 2.3rem; height: 3.45rem; }
}
@media (max-width: 760px) { .theme-pw .s-mag { display: none; } }
