/* صياد الميناء: تحدّى صديقك وكود الغرفة وغرف الادمن. الأساس من ../puzzle/puzzle.css، وألوان النيون من neon-theme.css (آخر ملف) */
.arena-hud[hidden], .arena-stage[hidden], .hr-entry[hidden], .hr-bar[hidden], .hr-lobby[hidden], .hr-ended[hidden] { display: none !important; }
.hr-entry { display: grid; gap: 0; margin-top: 12px; }
.hr-entry .pz-friends-tile:first-child { margin-top: 0; }
.hr-admin-tile { text-decoration: none; }
.hr-lobby { padding-top: 6px; }
.hr-lobby h1 { margin: 6px 0 4px; font-size: 25px; font-weight: 800; }
.hr-bar { margin-top: 2px; }
.hr-bar li { min-height: 40px; }

/* فوق البحر: خلص وقتك ونتيجة الجولة */
.hr-over { z-index: 3; background: linear-gradient(to bottom, rgba(20, 10, 51, .86), rgba(20, 10, 51, .7) 45%, rgba(20, 10, 51, .9)); }
.hr-over h2 { color: #fff !important; text-shadow: 0 0 18px rgba(168, 85, 247, .6); }
.hr-over p { color: var(--nx-muted, #e6ecef) !important; }
.hr-list { display: grid; gap: 6px; width: min(100%, 340px); max-height: 52%; margin: 0; padding: 0; overflow-y: auto; list-style: none; text-align: start; }
.hr-list li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--nx-line, rgba(255, 255, 255, .14)); border-radius: 14px; background: rgba(255, 255, 255, .06); color: var(--nx-text, #fff); }
.hr-list li.me { border-color: var(--nx-cyan, #22d3ee); background: rgba(34, 211, 238, .14); box-shadow: 0 0 12px rgba(34, 211, 238, .3); }
.hr-list .no { width: 20px; color: var(--nx-gold, #facc15); font-weight: 800; text-align: center; }
.hr-list .who { display: grid; flex: 1; min-width: 0; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.hr-list .who small { color: var(--nx-muted, #b9b2dc); font-size: 12px; font-weight: 400; }
.hr-list strong { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--nx-cyan, #22d3ee); }
.hr-list .rank-avatar { width: 28px; height: 28px; font-size: 13px; }
.hr-actions { width: min(100%, 340px); }
.hr-actions .btn { flex: 1 1 140px; min-height: 46px; }
.hr-actions[hidden] { display: none !important; }
.hr-over .btn:not(.primary) { border: 1px solid var(--nx-line, rgba(255, 255, 255, .14)) !important; background: rgba(255, 255, 255, .08) !important; color: var(--nx-text, #fff) !important; box-shadow: none !important; }
.hr-over .btn:not(.primary):hover { border-color: var(--nx-cyan, #22d3ee) !important; background: rgba(34, 211, 238, .12) !important; }
#hrStart:disabled, #hrNext:disabled { background: var(--nx-glass-2, #c9ced8) !important; color: var(--nx-muted, #fff) !important; box-shadow: none !important; opacity: 1; cursor: default; }
.hr-cards { margin-top: 12px; }
.hr-ended { padding-top: 30px; text-align: center; }
.hr-ended p { white-space: pre-line; }

/* 👥 فريق ضد فريق */
.hr-mode { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.hr-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hr-teams[hidden] { display: none !important; }
.hr-team { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 10px; border: 1px solid var(--nx-line, rgba(255, 255, 255, .14)); border-radius: 16px; background: rgba(255, 255, 255, .05); }
.hr-team.blue { border-color: rgba(59, 130, 246, .7); box-shadow: 0 0 14px rgba(59, 130, 246, .35); }
.hr-team.red { border-color: rgba(244, 63, 94, .7); box-shadow: 0 0 14px rgba(244, 63, 94, .35); }
.hr-team h3 { margin: 0; font-size: 16px; font-weight: 800; text-align: center; }
.hr-team h3 small { color: var(--nx-muted, #b9b2dc); font-size: 12px; }
.hr-team ul { display: grid; gap: 5px; min-height: 36px; margin: 0; padding: 0; list-style: none; }
.hr-team li { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 5px 7px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 13.5px; font-weight: 700; }
.hr-team li bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-team li small { margin-inline-start: auto; color: var(--nx-muted, #b9b2dc); font-size: 11px; font-weight: 400; }
.hr-team li.off { opacity: .5; }
.hr-team .rank-avatar { width: 24px; height: 24px; font-size: 12px; }
.hr-team .btn, .hr-shuffle { width: 100%; min-height: 40px; margin: 0; font-size: 13.5px; }
.hr-shuffle { grid-column: 1 / -1; }
.hr-shuffle[hidden], .hr-join[hidden] { display: none !important; }
/* لون الفريق حول البحر */
.arena-stage[data-team="blue"] { box-shadow: 0 0 0 3px #3b82f6, 0 0 30px 6px rgba(59, 130, 246, .55) !important; }
.arena-stage[data-team="red"] { box-shadow: 0 0 0 3px #f43f5e, 0 0 30px 6px rgba(244, 63, 94, .55) !important; }
.hr-mates { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
/* فوق البحر: سكور الفريقين، وتحته ربعك وضرب كل واحد */
.hr-bar .hr-score-line { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; }
.hr-tscore { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.hr-tscore b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hr-tscore small { color: var(--nx-muted, #b9b2dc); font-size: 12px; }
.hr-tscore.blue { border: 1px solid rgba(59, 130, 246, .7); }
.hr-tscore.red { border: 1px solid rgba(244, 63, 94, .7); }
.hr-tscore.mine { box-shadow: 0 0 12px rgba(34, 211, 238, .35); }
.hr-bar .hr-mult { margin-inline-start: auto; color: var(--nx-gold, #facc15); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hr-list .hr-team-head { justify-content: space-between; font-weight: 800; }
.hr-list .hr-team-head.blue { border-color: rgba(59, 130, 246, .8); background: rgba(59, 130, 246, .18); }
.hr-list .hr-team-head.red { border-color: rgba(244, 63, 94, .8); background: rgba(244, 63, 94, .18); }
.hr-uneven { grid-column: 1 / -1; margin: 0; padding: 8px 10px; border: 1px solid rgba(250, 204, 21, .55); border-radius: 12px; background: rgba(250, 204, 21, .1); color: #fde68a; font-size: 13.5px; font-weight: 700; text-align: center; }
.hr-uneven[hidden] { display: none !important; }
.hr-list li.idle { opacity: .6; }

/* 🚣 التحدي الجماعي: لوحة المخرج (اللي طاح للقاع يرسل إيموجي) */
.hr-mode[hidden], .hr-cheer[hidden] { display: none !important; }
.hr-group-tile { border-color: rgba(34, 211, 238, .55) !important; }
.hr-cheer { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid var(--nx-cyan, #22d3ee); border-radius: 18px; background: rgba(34, 211, 238, .08); box-shadow: 0 0 16px rgba(34, 211, 238, .25); text-align: center; }
.hr-cheer-title { margin: 0; font-weight: 800; color: var(--nx-text, #fff); }
.hr-cheer-who, .hr-cheer-emoji { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hr-cheer-who button { min-height: 40px; padding: 6px 12px; border: 2px solid var(--boat, #fff); border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--nx-text, #fff); font: inherit; font-weight: 700; cursor: pointer; }
.hr-cheer-who button.on { background: var(--boat, #fff); color: #14093a; }
.hr-cheer-emoji button { width: 52px; height: 52px; border: 1px solid var(--nx-line, rgba(255, 255, 255, .14)); border-radius: 16px; background: rgba(255, 255, 255, .08); font-size: 28px; cursor: pointer; }
.hr-cheer-emoji button:disabled { opacity: .4; cursor: default; }

/* 🔊🎤 بالغرف: عمود للصوت جنب البحر، والحاوية تكبر بقدّه عشان البحر ما يصغر (علي 26/11) */
.hrVoice { display: none; }
main.arena:has(> .hrVoice[data-cv="on"]) { display: grid; grid-template-columns: minmax(0, 1fr) 48px; column-gap: 8px; grid-auto-flow: row dense; width: min(100%, calc((100dvh - 112px) * 2 / 3 + 56px)); }
main.arena:has(> .hrVoice[data-cv="on"]) > * { grid-column: 1 / -1; }
main.arena:has(> .hrVoice[data-cv="on"]) > .arena-stage { grid-column: 1; }
main.arena > .hrVoice[data-cv="on"] { grid-column: 2; align-self: end; display: flex; flex-direction: column; align-items: center; gap: 8px; }

@media (orientation: landscape) and (max-height: 560px) { main.arena > .hrVoice[data-cv="on"] { align-self: start; } }
