/* الرصاصة الذهبية — مخمل أحمر غامق وذهب، لاعبين بحلقة حول مسدس ذهبي */
:root { --ink: #fff3e2; --muted: #e8c8a8; --card: rgba(58, 20, 26, .92); --line: rgba(255, 214, 150, .22); --gold: #f5c542; --gold2: #ffe9a8; --red: #b2182b; --dead: #6b5a52; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: #2a0f14; }
body { min-height: 100vh; color: var(--ink); font-family: "Baloo Bhaijaan 2", system-ui, sans-serif; overflow-x: hidden;
  background: radial-gradient(circle at 50% -10%, #7a1f2c 0, transparent 55%), radial-gradient(circle at 10% 100%, #4a1420 0, transparent 50%), #2a0f14; }
.page { max-width: 560px; margin: 0 auto; padding: max(10px, env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom)); }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.icon { width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); font-size: 20px; }

.card { margin-top: 12px; padding: 16px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.hero { text-align: center; }
.hero h1 { margin: 2px 0 0; font-size: 40px; color: var(--gold); text-shadow: 0 3px 0 #5e2a00, 0 0 30px #f5c54255; }
.hero p { margin: 6px 0 10px; color: var(--muted); font-weight: 600; line-height: 1.7; }
.sec-title { margin: 8px 0; font-size: 19px; color: var(--gold2); }
.add-form { display: flex; gap: 8px; }
.add-form input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--ink); font: inherit; }
.add-form input::placeholder { color: #c9a98e; }
.add-form button { padding: 12px 16px; border-radius: 16px; border: 0; background: linear-gradient(#ffd98a, #e2a325); color: #3c1c00; font-weight: 800; }
.players { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.chip { display: flex; align-items: center; gap: 7px; padding: 7px 10px 7px 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line); font-weight: 700; }
.chip .av { width: 26px; height: 30px; display: grid; place-items: end center; }
.chip .av img { width: 26px; height: 30px; object-fit: contain; object-position: bottom center; }
.chip button { border: 0; background: transparent; color: #ffb3a7; font-size: 17px; line-height: 1; padding: 0 2px; }
.status { margin: 6px 0; color: var(--muted); font-weight: 700; font-size: 14px; min-height: 20px; }
.how { text-align: right; margin: 12px 0 0; padding: 10px 14px; list-style: none; border-radius: 18px; background: rgba(0, 0, 0, .28); line-height: 2; font-weight: 600; font-size: 14.5px; }

.btn { display: block; width: 100%; margin-top: 10px; border: 0; border-radius: 18px; padding: 13px; font-weight: 800; font-size: 19px; }
.btn-main { background: linear-gradient(#ffdf90, #e0a222); color: #3c1c00; box-shadow: 0 5px 0 #8a5000; }
.btn-main:active { transform: translateY(3px); box-shadow: 0 2px 0 #8a5000; }
.btn-ghost { background: rgba(255, 255, 255, .1); border: 1px solid var(--line); font-size: 16px; }

/* ----- اللعب ----- */
.turn-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 18px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.turn-txt small, .odds small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.turn-txt h2 { margin: 0; font-size: 26px; color: var(--gold); line-height: 1.2; }
.odds { text-align: center; }
.odds small { display: inline; }
.odds b { margin: 0 4px; }
.odds b { font-size: 24px; color: #ff9f68; }
.prompt { margin: 10px 0 4px; text-align: center; font-weight: 800; color: var(--gold2); min-height: 26px; }
.prompt.shoot { color: #ff8f6b; }

.ring { position: relative; width: 100%; aspect-ratio: 1 / .86; margin: 26px auto 0; }
#gun { position: absolute; left: 50%; top: 50%; width: 34%; height: 34%; transform: translate(-50%, -50%); }
.flash { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, #fff6c2 0, #ffb13c55 35%, transparent 60%); }
.flash.on { animation: bang .5s ease-out; }
@keyframes bang { 0% { opacity: 1; transform: scale(.6) } 100% { opacity: 0; transform: scale(1.25) } }

.p { position: absolute; width: 74px; margin: -55px 0 0 -37px; text-align: center; transition: transform .25s, opacity .3s; }
.p .av { position: relative; width: 62px; height: 84px; margin: 0 auto; display: grid; place-items: end center; }
.p .av img { width: 62px; height: 84px; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .55)); }
.p .av::before { content: ""; position: absolute; left: 50%; bottom: -2px; width: 46px; height: 13px; margin-left: -23px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.45), transparent 70%); }
.p b { display: block; margin-top: 3px; font-size: 13px; font-weight: 800; text-shadow: 0 2px 4px #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p.me .av::before { background: radial-gradient(ellipse, #f5c54288, transparent 72%); width: 60px; margin-left: -30px; height: 17px; bottom: -4px; }
.p.me .av img { filter: drop-shadow(0 0 7px #f5c542cc) drop-shadow(0 5px 6px rgba(0,0,0,.5)); }
.p.me b { color: var(--gold); }
.p.pick { cursor: pointer; }
.p.pick:active { transform: scale(.93); }
.p.pick .av::after { content: "🎯"; position: absolute; right: -2px; top: 2px; font-size: 15px; filter: drop-shadow(0 2px 3px #000); }
.p.out { opacity: .45; }
.p.out .av img { filter: grayscale(1) brightness(.6); }
.p.out .av::after { content: "💀"; position: absolute; right: 50%; top: 24%; margin-right: -12px; font-size: 22px; filter: drop-shadow(0 2px 3px #000); }
.p.out b { color: #c6b1a6; text-decoration: line-through; }
.p.hit { animation: hit .6s ease-out; }
@keyframes hit { 0%, 100% { transform: translate(0, 0) } 20% { transform: translate(-6px, 3px) rotate(-8deg) } 55% { transform: translate(5px, -2px) rotate(6deg) } }

.feed { margin-top: 14px; min-height: 52px; display: flex; flex-direction: column; gap: 5px; }
.feed span { padding: 7px 12px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.feed span.bang { background: linear-gradient(90deg, #7a1f2c, #b2182b); border-color: #ff9f68; }

.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(12, 4, 7, .86); }
.modal { width: min(400px, 100%); padding: 18px 16px; border-radius: 26px; background: #45141d; border: 1px solid var(--line); text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); max-height: 92vh; overflow: auto; }
.modal h2 { margin: 0 0 8px; color: var(--gold); }
.modal h3 { margin: 6px 0 2px; font-size: 28px; color: var(--gold2); }
.win-av { width: 110px; height: 150px; margin: 0 auto; display: grid; place-items: end center; }
.win-av img { width: 110px; height: 150px; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 0 12px #f5c542aa) drop-shadow(0 8px 10px rgba(0,0,0,.6)); }
.log { margin: 10px 0 2px; padding: 8px 12px; border-radius: 16px; background: rgba(0, 0, 0, .3); text-align: right; font-weight: 700; font-size: 14px; line-height: 1.9; max-height: 34vh; overflow: auto; }
.sinan-credit { text-align: center; margin-top: 18px; color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.sinan-credit b { color: var(--gold); }

/* عدد لاعبين كبير: كروت أصغر حتى ما يركبون فوق بعض */
.ring.many .p { width: 56px; margin: -44px 0 0 -28px; }
.ring.many .p .av { width: 46px; height: 64px; }
.ring.many .p .av img { width: 46px; height: 64px; }
.ring.many .p .av::before { width: 34px; margin-left: -17px; height: 10px; }
.ring.many .p b { font-size: 11px; }

/* فردي أو فرق (owner 2026-11-04) */
.modes { display: flex; gap: 8px; margin: 10px 0 2px; }
.mode { flex: 1; padding: 10px 4px; border-radius: 16px; border: 2px solid var(--line); background: rgba(255, 255, 255, .07); font-weight: 800; font-size: 16px; }
.mode.on { background: linear-gradient(#ffdf90, #e0a222); color: #3c1c00; border-color: transparent; box-shadow: 0 4px 0 #8a5000; }
.mode:active { transform: scale(.97); }
.hint-line { margin: 2px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.chip.t0 { border-color: #ff6b6b; box-shadow: inset 0 0 0 1px #ff6b6b55; }
.chip.t1 { border-color: #5aa9ff; box-shadow: inset 0 0 0 1px #5aa9ff55; }
.chip .tdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.teamsbox { text-align: center; font-size: 13px; font-weight: 800; line-height: 1.3; }
.teamsbox i { font-style: normal; display: block; }
.p.t0 .av::before { background: radial-gradient(ellipse, #ff6b6b66, transparent 72%); }
.p.t1 .av::before { background: radial-gradient(ellipse, #5aa9ff66, transparent 72%); }
.p.t0 b { color: #ffb3b3; }
.p.t1 b { color: #b3d8ff; }
.p.me.t0 b, .p.me.t1 b { color: var(--gold); }
