/* ===== «Пиратский улов»: каюта под штормом (общие стили — как у «21») ===== */
.theme-pir {
  --gold: #d9b36a; --gold-2: #f3e6c4; --line: rgba(217, 179, 106, .24);
  --toxic: #7fe0d0; --blood-2: #d0402a; --panel: rgba(6, 14, 18, .93);
  background: #04090c;
}
.theme-pir .btn-gold { background: linear-gradient(180deg, #e0a848, #7a4a12); color: #1a0d02; border-color: #ffd98a; box-shadow: 0 6px 24px rgba(224, 168, 72, .3), inset 0 1px 0 rgba(255, 255, 255, .35); }
.theme-pir .btn-gold:hover { background: linear-gradient(180deg, #f0b858, #8a5418); }
.theme-pir .logo h1 { font-size: 2.9rem; line-height: 1; background: linear-gradient(180deg, #fff3d6, #d9b36a 55%, #6a4a1a); -webkit-background-clip: text; background-clip: text; }
.theme-pir .logo-rule::after { content: '☠'; color: #d9b36a; }
.theme-pir .ava-current { border-color: var(--gold); } .theme-pir .ava-current::after { background: var(--gold); color: #10140c; }
.theme-pir #scene .h-bg { background: url(/sprites/pr-bg.webp) center / cover, radial-gradient(ellipse at 50% 30%, #12303a, #04090c 70%); filter: brightness(.6); }
body.theme-pir.in-game #scene .h-bg { filter: brightness(.38) saturate(.9) blur(1.5px); }
.theme-pir .h-lamp { background: radial-gradient(circle, rgba(255, 190, 100, .14), transparent 60%); }
.theme-pir .tr-fg { stroke: var(--gold); }
.theme-pir .tring circle { stroke: #d0283a; filter: drop-shadow(0 0 6px rgba(208, 40, 58, .8)); }
.theme-pir .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-pir .seat.turn::before { content: '♦'; color: #ffd76a; }
.theme-pir .seats { pointer-events: none; } .theme-pir .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-gun::before { content: ''; position: absolute; inset: 0; background: url(/sprites/sg-gun.webp) center / contain no-repeat; clip-path: inset(0 0 0 0); transition: clip-path .5s steps(5); }
.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-pir .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-pir .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-pir .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-pir .hcard:hover, .theme-pir .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-pir .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-pir .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-pir .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-pir .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; }

/* ================= «21» ================= */
.theme-pir .tring circle { stroke: #ffd76a; filter: drop-shadow(0 0 6px rgba(255, 215, 106, .8)); }
.theme-pir .seat.turn .ava { border-color: #ffd76a; box-shadow: 0 0 0 4px rgba(255, 215, 106, .25), 0 0 28px 6px rgba(255, 215, 106, .45); }
.t-lives { display: flex; gap: 3px; justify-content: center; margin-top: 3px; }
.t-lives i { width: .72rem; height: .72rem; background: radial-gradient(circle at 35% 30%, #ff8a8a, #c8102e 60%, #6a0010); clip-path: path('M5.76 11.5 L0.9 6.4 A2.8 2.8 0 0 1 5.76 2.3 A2.8 2.8 0 0 1 10.6 6.4 Z'); transform: scale(1); }
.t-lives i.gone { background: #2e2222; }
.t-lives i.crack { animation: hcrack .8s .6s both; }
@keyframes hcrack { 0% { background: #ff3048; } 30% { background: #fff; transform: scale(1.7); } 100% { background: #2e2222; transform: scale(1); } }
.t-seatinfo { display: flex; gap: .35rem; justify-content: center; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.t-seatinfo .pas { color: #ffd76a; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.t-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.t-lowlife .t-low { animation: lowp 1.4s ease-in-out infinite; }

/* центр: цель и ряды карт */
.t-center { position: absolute; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: .9rem; padding: .4rem 0; }
.t-goal { display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap; position: relative; }
.t-wait { color: #f6e6c0; text-align: center; padding: 0 10%; }
.t-target { width: 6.2rem; height: 6.2rem; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(circle at 40% 30%, #3a1010, #140505 70%); box-shadow: 0 0 0 3px #b8893a, 0 0 0 6px #2a1406, 0 0 30px rgba(255, 200, 100, .25), inset 0 0 20px #000; }
.t-target small { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.t-target b { font-family: var(--serif); font-size: 2.7rem; line-height: 1; color: #ffd76a; text-shadow: 0 0 16px rgba(255, 215, 106, .6); }
.t-target.changed { box-shadow: 0 0 0 3px #ff5a64, 0 0 0 6px #2a0606, 0 0 36px rgba(255, 60, 80, .5), inset 0 0 20px #000; animation: tpulse 1.6s ease-in-out infinite; }
.t-target.changed b { color: #ff8a8a; }
@keyframes tpulse { 50% { transform: scale(1.05); } }
.t-deck { display: flex; align-items: center; gap: .5rem; } .t-deck i { width: 2.6rem; height: 3.9rem; border-radius: 5px; background: url(/sprites/to-back.webp) center / cover, linear-gradient(135deg, #6a0f16, #2a0508); box-shadow: 2px 2px 0 #1a0606, 4px 4px 0 #120404, 0 6px 14px #000; }
.t-deck span, .t-base { display: flex; flex-direction: column; align-items: center; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.t-deck b, .t-base b { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0; color: #f6e6c0; }
.t-base small { font-size: .66rem; }
.t-peek { position: absolute; left: 50%; bottom: -1.6rem; transform: translateX(-50%); white-space: nowrap; font-size: .85rem; padding: .15rem .8rem; border-radius: 999px; background: rgba(120, 200, 140, .18); color: #c8f0c8; box-shadow: inset 0 0 0 1px rgba(120, 220, 140, .35); }
.t-goaltr { display: flex; gap: .3rem; }
.t-mini { display: inline-block; width: 1.5rem; height: 2.25rem; border-radius: 3px; background: center / cover; box-shadow: 0 2px 6px #000; vertical-align: middle; }
.t-rows { display: flex; flex-direction: column; gap: .5rem; overflow: auto; min-height: 0; padding: .2rem .4rem; }
.t-row { display: grid; grid-template-columns: 6.4rem 1fr 4.6rem 5.2rem; align-items: center; gap: .6rem; padding: .45rem .7rem; border-radius: 14px; position: relative;
  background: linear-gradient(90deg, rgba(20, 60, 36, .55), rgba(14, 40, 24, .45)); box-shadow: inset 0 0 0 1px rgba(227, 184, 102, .18), 0 6px 18px rgba(0, 0, 0, .4); transition: box-shadow .3s, background .3s; }
.t-row.turn { box-shadow: inset 0 0 0 2px #ffd76a, 0 0 24px rgba(255, 215, 106, .25); }
.t-row.mine { background: linear-gradient(90deg, rgba(26, 78, 46, .75), rgba(18, 54, 32, .65)); }
.t-row.won { box-shadow: inset 0 0 0 2px #8fe08f, 0 0 30px rgba(120, 255, 140, .3); }
.t-row.lost { filter: saturate(.7); }
.t-who { display: flex; flex-direction: column; font-weight: 800; color: #f6e6c0; overflow: hidden; } .t-who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-who em { font-style: normal; font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: #ffd76a; }
.t-cards { display: flex; gap: .3rem; flex-wrap: wrap; min-height: 4.1rem; align-items: center; }
.t-card { position: relative; width: 2.8rem; height: 4.1rem; border-radius: 5px; display: grid; place-items: center; background: url(/sprites/to-face.webp) center / cover, linear-gradient(180deg, #f6ecd2, #e2d2aa); box-shadow: 0 4px 10px rgba(0, 0, 0, .6); }
.t-card b { font-family: var(--serif); font-size: 1.75rem; font-weight: 900; color: #2a0a0a; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.t-card.two b { font-size: 1.45rem; letter-spacing: -.04em; }
.t-card.back { background: url(/sprites/to-back.webp) center / cover, linear-gradient(135deg, #6a0f16, #2a0508); }
.t-card.secret { outline: 2px dashed rgba(255, 215, 106, .7); outline-offset: -4px; }
.t-card.secret em { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; font-style: normal; font-size: .45rem; letter-spacing: .08em; text-transform: uppercase; color: #8a5a20; }
.t-card.fresh { animation: tdeal .45s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes tdeal { from { transform: translate(0, -70px) rotate(-25deg) scale(.6); opacity: 0; } }
.t-card.flip { animation: tflip .6s ease both; }
@keyframes tflip { 0% { transform: rotateY(90deg); filter: brightness(2); } 100% { transform: none; } }
.t-row.mine .t-card { width: 3.3rem; height: 4.9rem; } .t-row.mine .t-card b { font-size: 2.1rem; } .t-row.mine .t-cards { min-height: 4.9rem; }
.t-sum { text-align: center; } .t-sum b { display: block; font-family: var(--serif); font-size: 1.7rem; color: #f6e6c0; }
.t-sum b.bust { color: #ff6a6a; text-decoration: line-through; text-decoration-thickness: 2px; } .t-sum b.exact { color: #ffd76a; text-shadow: 0 0 14px rgba(255, 215, 106, .8); }
.t-sum small { font-size: .62rem; color: var(--muted); }
.t-bet { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px; text-align: center; }
.t-bet small { width: 100%; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.t-bet b { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; font-weight: 900; font-size: 1.05rem; color: #fff; background: radial-gradient(circle, #9a0c18 0 48%, #f3e6c4 49% 53%, transparent 54%), repeating-conic-gradient(#c8102e 0 22deg, #f3e6c4 22deg 30deg); box-shadow: 0 0 0 2px #5a0610, 0 3px 6px #000; text-shadow: 0 1px 2px #000; }
.t-bet .t-mini { width: 1.1rem; height: 1.65rem; }
.t-res { position: absolute; right: .6rem; top: -.7rem; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: .1rem .55rem; border-radius: 6px; animation: knowin .4s cubic-bezier(.3, 1.5, .5, 1) .5s both; }
.t-res.win { background: #2a7a3a; color: #eaffea; } .t-res.lose { background: #8a0a14; color: #ffe0e0; } .t-res.tie { background: #5a4a2a; color: #fff2d6; }

/* козыри в руке: картинка + надпись на плашке */
.t-trump .cap2 b .n { display: inline-grid; place-items: center; min-width: 1.1em; padding: 0 .2em; border-radius: 4px; background: #ffd76a; color: #2a0a0a; font-family: var(--sans); font-weight: 900; }
.t-trump.k-atk .cap2 b { color: #ffc8c0; } .t-trump.k-def .cap2 b { color: #c8dcff; } .t-trump.k-card .cap2 b { color: #fff0c8; } .t-trump.k-goal .cap2 b { color: #ffd98a; }
.t-dock .t-acts { display: flex; gap: .6rem; justify-content: center; margin-bottom: .4rem; }
.t-btn { min-width: 9rem; font-size: 1.05rem; }
.t-btn.stand { background: linear-gradient(180deg, #3a4a6a, #1c2438); border-color: #7aa8ff; color: #e8efff; }
@media (max-width: 760px) {
  .t-row { grid-template-columns: 4rem 1fr 3rem 3.2rem; gap: .35rem; padding: .35rem .45rem; }
  .t-card { width: 2.1rem; height: 3.1rem; } .t-card b { font-size: 1.3rem; } .t-cards { min-height: 3.1rem; gap: .2rem; }
  .t-row.mine .t-card { width: 2.5rem; height: 3.7rem; } .t-row.mine .t-card b { font-size: 1.6rem; } .t-row.mine .t-cards { min-height: 3.7rem; }
  .t-sum b { font-size: 1.25rem; } .t-bet b { width: 1.7rem; height: 1.7rem; font-size: .85rem; } .t-bet small { display: none; }
  .t-target { width: 4.4rem; height: 4.4rem; } .t-target b { font-size: 1.9rem; } .t-goal { gap: .8rem; }
  .t-btn { min-width: 7rem; }
}

/* ================= «Пиратский улов» ================= */
.p-score { display: inline-flex; align-items: center; gap: .3rem; margin-top: 3px; font-family: var(--serif); font-weight: 900; font-size: 1.15rem; color: #ffd98a; text-shadow: 0 1px 4px #000; }
.p-score i { width: .95rem; height: .95rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c0, #e0a830 55%, #8a5a10); box-shadow: 0 0 6px rgba(255, 200, 80, .6); }
.p-score.up { animation: scup .8s ease; } .p-score.down { animation: scdown .8s ease; }
@keyframes scup { 30% { transform: scale(1.4); color: #b8ffb0; } } @keyframes scdown { 30% { transform: scale(1.3); color: #ff8a7a; } }

.p-center { position: absolute; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: .7rem; padding: .3rem 0; }
.p-deck { display: flex; align-items: center; justify-content: center; gap: 1.6rem; position: relative; min-height: 4.6rem; }
.p-pile { display: flex; align-items: center; gap: .5rem; }
.p-pile.deck > i { display: block; flex: 0 0 auto; width: 3rem; height: 4.5rem; border-radius: 5px; background: url(/sprites/pr-back.webp) center / cover, linear-gradient(135deg, #12304a, #061420); box-shadow: 2px 2px 0 #061018, 4px 4px 0 #04080c, 0 6px 14px #000; }
.p-pile span { display: flex; flex-direction: column; align-items: center; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.p-pile b { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0; color: #f3e6c4; }
.p-pile.disc .empty { display: block; flex: 0 0 auto; width: 3rem; height: 4.5rem; border-radius: 5px; border: 2px dashed rgba(243, 230, 196, .2); }
.p-risk { min-width: 6rem; text-align: center; padding: .25rem .6rem; border-radius: 12px; }
.p-risk small { display: block; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.p-risk b { font-family: var(--serif); font-size: 1.7rem; }
.p-risk.lo b { color: #8fe0a0; } .p-risk.mid b { color: #ffd76a; } .p-risk.hi b { color: #ff6a5a; text-shadow: 0 0 14px rgba(255, 80, 60, .7); }
.p-risk.hi { animation: tpulse 1.2s ease-in-out infinite; }
.p-oracle { position: absolute; left: 50%; bottom: -1.5rem; transform: translateX(-50%); white-space: nowrap; font-size: .85rem; padding: .15rem .8rem; border-radius: 999px; background: rgba(150, 120, 255, .2); color: #ddd0ff; box-shadow: inset 0 0 0 1px rgba(170, 140, 255, .4); }

/* карта: картинка, число на медальоне, имя на плашке */
.p-card { position: relative; width: 6rem; height: 9rem; flex: 0 0 auto; border-radius: 8px; background: #0a1418 center / cover no-repeat; box-shadow: 0 8px 18px rgba(0, 0, 0, .7); }
.p-card .v { position: absolute; left: 1.5%; top: .6%; width: 18%; aspect-ratio: 1; display: grid; place-items: center; font-style: normal; font-family: var(--serif); font-weight: 900; font-size: 1.45rem; line-height: 1; color: #2a1404; text-shadow: 0 1px 0 rgba(255, 240, 200, .7), 0 0 6px rgba(255, 230, 170, .6); }
.p-card .nm { position: absolute; left: 8%; right: 8%; bottom: 5%; height: 15%; display: grid; place-items: center; font-family: var(--serif); font-size: .82rem; color: #f3e6c4; text-shadow: 0 1px 3px #000; white-space: nowrap; overflow: hidden; }
.p-card.mini { width: 2.7rem; height: 4.05rem; border-radius: 4px; }
.p-card.mini .nm { display: none; }
.p-card.mini .v { left: auto; right: -5px; top: auto; bottom: -5px; width: 1.35rem; height: 1.35rem; border-radius: 50%; font-size: .85rem; color: #2a1404; background: radial-gradient(circle at 35% 30%, #fff3c0, #e0b048 60%, #8a5a10); box-shadow: 0 1px 4px #000; text-shadow: none; z-index: 3; }
.p-stack .n { left: -4px; right: auto; }
.p-card.fresh { animation: pdeal .5s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes pdeal { from { transform: translate(0, -90px) rotateY(80deg) scale(.6); opacity: 0; filter: brightness(2); } }
.p-card.safe { box-shadow: 0 8px 18px rgba(0, 0, 0, .7), 0 0 0 2px #7fe0d0, 0 0 16px rgba(127, 224, 208, .5); }
.p-card.danger { box-shadow: 0 0 0 3px #ff5a4a, 0 0 20px rgba(255, 80, 60, .6); }
.p-card.rule { width: 4.4rem; height: 6.6rem; } .p-card.rule .v { font-size: .55rem; } .p-card.rule .nm { font-size: .6rem; }

.p-play { min-height: 12rem; padding: .5rem .8rem .7rem; border-radius: 16px; background: radial-gradient(ellipse at 50% 40%, rgba(60, 40, 20, .55), rgba(20, 12, 6, .45)); box-shadow: inset 0 0 0 1px rgba(217, 179, 106, .22), inset 0 0 40px rgba(0, 0, 0, .5); }
.p-play.burn { animation: burn .9s ease; }
@keyframes burn { 0% { box-shadow: inset 0 0 0 2px #ff5a3a, inset 0 0 80px rgba(255, 80, 30, .8); } 100% { box-shadow: inset 0 0 0 1px rgba(217, 179, 106, .22), inset 0 0 40px rgba(0, 0, 0, .5); } }
.p-playhead { display: flex; align-items: center; gap: .6rem; margin-bottom: .45rem; font-weight: 800; color: #f3e6c4; }
.p-playhead em { font-style: normal; font-size: .72rem; font-weight: 800; padding: .05rem .5rem; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.p-playhead em.safe { background: rgba(127, 224, 208, .18); color: #a8f0e4; } .p-playhead em.forced { background: rgba(170, 100, 255, .22); color: #e0c8ff; }
.p-row { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; min-height: 9rem; align-items: center; }
.p-empty { color: var(--muted); font-size: .9rem; text-align: center; }
.p-pend { margin-top: .5rem; text-align: center; font-weight: 800; color: #ffd98a; } .p-pend.mine { animation: tpulse 1.2s ease-in-out infinite; }

.p-banks { display: flex; flex-direction: column; gap: .35rem; overflow: auto; min-height: 0; }
.p-bank { display: grid; grid-template-columns: 7.2rem 1fr; align-items: center; gap: .5rem; padding: .3rem .6rem; border-radius: 12px; background: rgba(6, 20, 26, .55); box-shadow: inset 0 0 0 1px rgba(217, 179, 106, .14); }
.p-bank.mine { background: rgba(14, 40, 48, .7); box-shadow: inset 0 0 0 1px rgba(127, 224, 208, .35); }
.p-bank.won { box-shadow: inset 0 0 0 2px #ffd76a, 0 0 24px rgba(255, 215, 106, .3); }
.p-bwho { display: flex; justify-content: space-between; align-items: center; gap: .4rem; font-weight: 800; color: #f3e6c4; overflow: hidden; }
.p-bwho span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .p-bwho b { font-family: var(--serif); font-size: 1.35rem; color: #ffd98a; }
.p-stacks { display: flex; gap: .35rem; flex-wrap: wrap; min-height: 4.1rem; align-items: center; }
.p-stack { position: relative; }
.p-stack .under { position: absolute; left: 3px; top: -3px; width: 2.7rem; height: 4.05rem; border-radius: 4px; background: url(/sprites/pr-back.webp) center / cover, #12304a; box-shadow: 0 2px 4px #000; }
.p-stack .p-card { position: relative; }
.p-stack .n { position: absolute; right: -4px; bottom: -4px; z-index: 2; font-size: .62rem; font-weight: 900; padding: 0 .25rem; border-radius: 5px; background: #0a1418; color: #f3e6c4; box-shadow: 0 0 0 1px rgba(217, 179, 106, .4); }
.p-stack.pick { cursor: pointer; } .p-stack.pick .p-card { animation: pickp 1s ease-in-out infinite; }
.p-stack.pick.k-cannon .p-card { box-shadow: 0 0 0 3px #ff7a3a, 0 0 18px rgba(255, 120, 60, .7); }
.p-stack.pick.k-sword .p-card { box-shadow: 0 0 0 3px #ff4a5a, 0 0 18px rgba(255, 60, 80, .7); }
.p-stack.pick.k-hook .p-card { box-shadow: 0 0 0 3px #7fe0d0, 0 0 18px rgba(127, 224, 208, .7); }
.p-stack.pick:hover .p-card { transform: translateY(-4px) scale(1.08); }
.p-none { color: var(--muted); font-size: .8rem; }
.p-mapopts { display: flex; gap: 1rem; justify-content: center; margin: 1rem 0 .4rem; flex-wrap: wrap; }
.p-mapopts .p-card { cursor: pointer; transition: transform .15s; } .p-mapopts .p-card:hover { transform: translateY(-6px) scale(1.05); }
.p-fly { position: fixed; z-index: 65; width: 2.6rem; height: 3.9rem; border-radius: 4px; pointer-events: none; background: url(/sprites/pr-back.webp) center / cover, #12304a; box-shadow: 0 0 0 2px #ffd98a, 0 0 18px rgba(255, 215, 106, .6); }
.banner.bad strong { color: #ff8a6a; }
.theme-pir .tring circle { stroke: #ffd98a; filter: drop-shadow(0 0 6px rgba(255, 215, 138, .8)); }
.theme-pir .seat.turn .ava { border-color: #ffd98a; box-shadow: 0 0 0 4px rgba(255, 215, 138, .25), 0 0 28px 6px rgba(255, 215, 138, .45); }
.theme-pir .seat.turn::before { content: '☠'; color: #ffd98a; }
.theme-pir .s-rcard { grid-template-columns: 4.4rem 1fr !important; }
@media (max-width: 760px) {
  .p-card { width: 4.2rem; height: 6.3rem; } .p-card .v { font-size: 1rem; } .p-card .nm { font-size: .6rem; }
  .p-card.mini .v { width: 1.1rem; height: 1.1rem; font-size: .7rem; }
  .p-row { min-height: 6.3rem; gap: .3rem; } .p-play { min-height: 8.5rem; padding: .4rem; }
  .p-card.mini { width: 2.1rem; height: 3.15rem; } .p-stack .under { width: 2.1rem; height: 3.15rem; }
  .p-bank { grid-template-columns: 4.6rem 1fr; padding: .25rem .4rem; } .p-stacks { min-height: 3.2rem; gap: .25rem; }
  .p-deck { gap: .5rem; } .p-risk b { font-size: 1.3rem; } .p-risk { min-width: 4.6rem; padding: .2rem .2rem; } .p-risk small { letter-spacing: .06em; font-size: .52rem; }
  .p-pile span { letter-spacing: .06em; font-size: .55rem; } .p-pile.deck > i, .p-pile.disc .empty { width: 2.3rem; height: 3.45rem; }
  .p-bwho { font-size: .78rem; } .p-bwho b { font-size: 1.1rem; }
}
