/* v1.0.8.23: SS collection marker in social lists. */
.friend-ss-badge{position:relative;display:inline-grid;place-items:center;min-width:25px;height:16px;margin-left:5px;border:1px solid #9bdcff;border-radius:3px;background:linear-gradient(135deg,#102b43,#235476 52%,#102238);color:#dff7ff;font:900 8px/1 var(--display);font-style:normal;letter-spacing:.3px;vertical-align:middle;box-shadow:0 0 5px #61d8ff99,inset 0 0 6px #d5f7ff55;filter:drop-shadow(0 0 3px #6bd8ff99)}
.friend-ss-badge::before,.friend-ss-badge::after{content:"";position:absolute;pointer-events:none;opacity:.88;background:#dffaff;box-shadow:0 0 5px #7ce8ff}
.friend-ss-badge::before{width:2px;height:2px;left:-4px;top:4px;transform:rotate(45deg)}
.friend-ss-badge::after{width:2px;height:2px;right:-4px;bottom:2px;transform:rotate(45deg)}
.friend-ss-badge span{display:block;line-height:1}
.friend-ss-badge b{position:absolute;z-index:1;left:-5px;top:-8px;display:grid;place-items:center;min-width:12px;height:12px;padding:0 2px;border:1px solid #bcecff;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff,#80dcff 45%,#2e65b0 100%);color:#092038;font:900 7px/1 var(--display);font-style:normal;box-shadow:0 0 5px #91ebff,0 0 9px #53b7ff88;animation:friendSsDiamondPulse 2.2s ease-in-out infinite}
.friend-identity>b{overflow:visible;text-overflow:clip}
@keyframes friendSsDiamondPulse{50%{filter:brightness(1.25);box-shadow:0 0 7px #d8fbff,0 0 13px #53b7ffbb}}
@media(max-width:560px){.friend-ss-badge{min-width:22px;height:14px;font-size:7px;margin-left:4px}.friend-ss-badge b{left:-4px;top:-7px;min-width:11px;height:11px;font-size:6px}}

.experience-fruit-good>span{display:grid!important;place-items:center;width:58px;height:58px;margin:auto;transform:none!important;border:1px solid #5baf83;background:#10251c;box-shadow:0 0 18px #57d89533}
.experience-fruit-shop-art img{width:48px;height:48px;object-fit:contain;filter:drop-shadow(0 5px 8px #0008)}
.experience-fruit-good b{white-space:nowrap}

/* Current sheriff marker follows the authoritative room snapshot. */
.werewolf-seat.sheriff{border-color:#d6b957;background:linear-gradient(105deg,#2d2a20,#1b2734 58%);box-shadow:inset 0 0 0 1px #f4dc7a20}
.werewolf-seat.sheriff>div:not(.werewolf-seat-num){padding-right:50px}
.werewolf-sheriff-badge{position:absolute!important;z-index:2!important;right:6px;top:6px;display:inline-flex;align-items:center;gap:3px;height:20px;padding:0 5px;border:1px solid #d9b94c;border-radius:3px;background:#392f19ed;color:#ffe28a;font:800 8px/1 var(--display);white-space:nowrap;box-shadow:0 3px 10px #0007,0 0 8px #e5c75526}
.werewolf-sheriff-badge svg{width:11px;height:11px;flex:0 0 11px;stroke-width:2.4}
.werewolf-seat.speaking{border-color:#52d6d0;background:linear-gradient(105deg,#183438,#1b2734 58%);box-shadow:inset 0 0 0 1px #79fff326,0 0 10px #42d8d02b}
.werewolf-target.selected{border-color:#f1d34f;background:#4a3b16;color:#fff5c7;box-shadow:0 0 0 2px #f1d34f88,inset 0 0 0 1px #ffe98a}
.werewolf-target:disabled{cursor:not-allowed;opacity:.82}
.werewolf-teammate-votes{display:grid;gap:5px;margin:8px 0;padding:8px 9px;border:1px solid #50646d;background:#13232b;color:#c8d5da}
.werewolf-teammate-votes>small{color:#8da7b0;font-size:9px;font-weight:800}
.werewolf-teammate-votes>div{display:flex;flex-wrap:wrap;gap:5px}
.werewolf-teammate-votes span{display:inline-flex;align-items:center;gap:4px;min-height:23px;padding:2px 6px;border:1px solid #3d5961;background:#1b3038;font-size:10px}
.werewolf-teammate-votes i{color:#d8b955;font-style:normal}
.werewolf-teammate-votes em{color:#8ed2c3;font-size:9px;font-style:normal}
.werewolf-seat.sheriff.speaking{background:linear-gradient(105deg,#34301d,#19323a 72%);box-shadow:inset 3px 0 #d6b957,inset 0 0 0 1px #79fff326,0 0 10px #42d8d02b}
.werewolf-speaker-mark{display:inline-flex;align-items:center;justify-content:center;gap:1px;width:18px;height:15px;margin-right:2px;border:1px solid #4dd4ce;border-radius:3px;background:#12363aed;color:#a9fff7;font:800 7px/1 var(--display);white-space:nowrap;box-shadow:0 0 7px #42ddd04f;animation:werewolfSpeakerPulse 1.4s ease-in-out infinite}
.werewolf-speaker-mark svg{width:9px;height:9px;flex:0 0 9px;stroke-width:2.4}
.werewolf-connection-offline{position:absolute;right:7px;bottom:6px;display:grid;place-items:center;width:19px;height:19px;border:1px solid #d88181;border-radius:3px;background:#3b2025;color:#ffb0aa;box-shadow:0 2px 6px #0007}
.werewolf-connection-offline svg{width:12px;height:12px;stroke-width:2.4}
.werewolf-ready-mark{position:absolute;right:7px;bottom:6px;display:grid;place-items:center;width:19px;height:19px;border:1px solid #62d399;border-radius:3px;background:#173b2b;color:#a8ffd0;box-shadow:0 2px 6px #0007}
.werewolf-ready-mark svg{width:12px;height:12px;stroke-width:2.4}
.werewolf-seat.disconnected{opacity:.78}
.werewolf-result em{display:block;margin-top:6px;color:#aabcc5;font-style:normal;font-size:10px}
.werewolf-result button{margin-top:12px}
@keyframes werewolfSpeakerPulse{50%{filter:brightness(1.2);box-shadow:0 3px 10px #0007,0 0 13px #62fff079}}
@media(max-width:560px){.werewolf-live .werewolf-seat{min-height:78px}.werewolf-live .werewolf-seat.sheriff>div:not(.werewolf-seat-num){padding:18px 0 0}.werewolf-live .werewolf-seat.sheriff.speaking>div:not(.werewolf-seat-num){padding:18px 0}.werewolf-live .werewolf-sheriff-badge{right:4px;height:17px;padding:0 4px;font-size:7px}.werewolf-live .werewolf-sheriff-badge{top:4px}.werewolf-live .werewolf-speaker-mark{width:16px;height:14px;margin-right:1px;font-size:6px}.werewolf-live .werewolf-speaker-mark svg{width:8px;height:8px;flex-basis:8px}}

/* WebRTC audio controls stay compact beside the authoritative phase timer. */
.werewolf-speech-gate{grid-column:1/-1;display:flex;justify-content:flex-end;padding:0 0 8px}
.werewolf-lobby>.werewolf-speech-gate{margin-top:12px;padding:0 10px}
.werewolf-speech-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 11px;border:1px solid #536570;border-radius:4px;background:#17232c;color:#d8e4e8;font:800 10px/1 var(--display);cursor:pointer;transition:border-color .16s,color .16s,background .16s,box-shadow .16s}
.werewolf-speech-button svg{width:15px;height:15px;stroke-width:2.2}
.werewolf-speech-button:hover:not(:disabled){border-color:#8da0aa;color:#fff}
.werewolf-speech-button.active{border-color:#47bab6;background:#153438;color:#9cfff4;box-shadow:inset 0 0 0 1px #71e1d51f}
.werewolf-speech-button:disabled{cursor:not-allowed;opacity:.55}
.werewolf-order-list .werewolf-target{grid-template-columns:18px minmax(0,1fr);min-height:42px}.werewolf-order-list .werewolf-target>svg{width:16px;height:16px;color:#f1ce58}.werewolf-order-list .werewolf-target span{text-align:left}
.werewolf-voice-controls{display:flex;align-items:center;gap:5px}
.werewolf-voice-button{display:inline-grid;place-items:center;width:36px;min-width:36px;height:36px;padding:0;border:1px solid #536570;border-radius:4px;background:#17232c;color:#aebbc2;cursor:pointer;transition:border-color .16s,color .16s,background .16s,box-shadow .16s}
.werewolf-voice-button svg{width:17px;height:17px;stroke-width:2.2}
.werewolf-voice-button:hover:not(:disabled){border-color:#8da0aa;color:#fff}
.werewolf-voice-button.active{border-color:#47bab6;background:#153438;color:#9cfff4;box-shadow:inset 0 0 0 1px #71e1d51f}
#werewolfVoiceMic.active{border-color:#d0ae4d;background:#342d1b;color:#ffe28a}
#werewolfVoiceMic.live{border-color:#62d78a;background:#173524;color:#b5ffca;box-shadow:0 0 0 2px #54d98624,0 0 12px #54d98642;animation:werewolfVoiceLive 1.3s ease-in-out infinite}
.werewolf-voice-button:disabled{cursor:not-allowed;opacity:.45}
@keyframes werewolfVoiceLive{50%{box-shadow:0 0 0 3px #54d98618,0 0 16px #54d98666}}
@media(max-width:900px){.werewolf-live .werewolf-head{grid-template-columns:minmax(0,1fr);min-height:96px;padding:0 44px 8px 2px;gap:7px}.werewolf-live .werewolf-head-actions{position:static;display:flex;width:100%!important;min-width:0!important;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px}.werewolf-live .werewolf-voice-button{width:34px;min-width:34px;height:34px}.werewolf-live .werewolf-timer{justify-content:center;margin-left:2px}.werewolf-live .werewolf-timer>svg{display:none}.werewolf-live .werewolf-leave{width:48px!important;min-width:48px!important;height:30px;min-height:30px;padding:0}.werewolf-live .werewolf-leave span{display:none}}
@media(max-width:900px){.werewolf-speech-gate{justify-content:stretch;padding-bottom:6px}.werewolf-speech-button{width:100%;min-height:34px}.werewolf-lobby>.werewolf-speech-gate{padding:0}}

/* v1.0.8.28: clearer private choices, invitations, and mobile registration. */
.werewolf-lobby-actions>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.werewolf-lobby-actions>div button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.werewolf-lobby-actions>div svg{width:15px;height:15px}
.werewolf-role{width:100%;border:0;color:inherit;text-align:left;cursor:pointer}
.werewolf-role.hidden-role{background:#101820}
.werewolf-role.hidden-role>svg,.werewolf-role.hidden-role b{color:#91a5b3}
.werewolf-role.hidden-role:hover{background:#172432}
.werewolf-own-vote{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;margin:10px 0 7px;padding:10px 11px;border:1px solid #485a67;background:#101b25}
.werewolf-own-vote small{grid-column:1;color:#91a4b1}
.werewolf-own-vote strong{grid-row:1/3;grid-column:2;align-self:center;color:#eef4f6;font:900 22px var(--display)}
.werewolf-own-vote span{color:#9fb0bb;font-size:10px}
.werewolf-own-vote.draft{border-color:#b89b45;background:#292514}
.werewolf-own-vote.draft strong{color:#ffe483}
.werewolf-own-vote.locked{border-color:#4fb783;background:#142b22;box-shadow:inset 3px 0 #62d399}
.werewolf-own-vote.locked strong,.werewolf-own-vote.locked span{color:#a8ffd0}
.werewolf-teammate-votes span.draft{border-color:#9d8748}.werewolf-teammate-votes span.locked{border-color:#4eaa7c;background:#173128}.werewolf-teammate-votes span.locked em{color:#9ff3c4}
.werewolf-invite-overlay{position:absolute;z-index:20;inset:0;display:none;align-items:center;justify-content:center;padding:16px;background:#080d12e8}
.werewolf-invite-overlay.open{display:flex}
.werewolf-invite-overlay>section{width:min(560px,100%);max-height:min(520px,calc(100dvh - 60px));display:grid;grid-template-rows:auto minmax(0,1fr);border:1px solid #536674;background:#121c27;box-shadow:0 20px 70px #000c}
.werewolf-invite-overlay header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-bottom:1px solid #354655}.werewolf-invite-overlay header small{display:block;color:#d9bd5c;font:800 8px var(--display)}.werewolf-invite-overlay header b{font-size:15px}
.werewolf-invite-list{display:grid;gap:7px;overflow:auto;padding:12px}.werewolf-invite-list article{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px;border:1px solid #354653;background:#182431}.werewolf-invite-list img{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#0b1219}.werewolf-invite-list span{display:grid;gap:2px;min-width:0}.werewolf-invite-list b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.werewolf-invite-list small{color:#8fa0ac;font-size:9px}.werewolf-invite-list button{display:inline-flex;align-items:center;gap:5px;min-height:34px}.werewolf-invite-list button svg{width:14px}.werewolf-invite-empty{padding:24px;color:#91a3ae;text-align:center;font-size:11px}

@media(max-width:700px){
  .world-battle-dialog{overscroll-behavior:contain;padding-bottom:max(12px,env(safe-area-inset-bottom))}
  .world-battle-dialog-head{position:sticky;z-index:5;top:0;min-height:88px;padding:12px 54px 11px 13px;background:#101a20f7;backdrop-filter:blur(12px)}
  .world-battle-dialog-head h2{font-size:22px}.world-battle-dialog-head>div>span{font-size:10px}
  .world-battle-live{min-width:0;margin-top:8px;padding-left:10px;grid-template-columns:8px minmax(0,1fr)}.world-battle-live strong{font-size:14px}
  .world-battle-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.world-battle-overview section,.world-battle-overview section:last-child{grid-column:auto;min-height:72px;padding:10px 8px;border-top:0;border-right:1px solid #2d3b43}.world-battle-overview section:last-child{border-right:0}.world-battle-overview strong{font-size:15px}.world-battle-overview span{font-size:8px;line-height:1.35}
  .world-battle-roster{padding:15px 12px 10px}.world-battle-section-head{margin-bottom:9px}.world-battle-section-head h3{font-size:16px}
  .world-battle-team-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;height:auto;min-height:0;max-height:42dvh;overflow-x:hidden;overflow-y:auto;padding:2px 1px 8px}
  .world-battle-pet{width:100%;height:104px;min-width:0;flex:none}.world-battle-pet img{height:72px}.world-battle-pet>span{font-size:9px}.world-battle-pet-order{bottom:25px}
  .world-battle-selected-team{display:grid;grid-template-columns:1fr;height:auto;min-height:0;max-height:none;overflow:visible;padding:6px}.world-battle-selected-item{width:100%;min-width:0;grid-template-columns:34px minmax(0,1fr) auto;padding:5px 7px}.world-battle-selected-item img{width:34px;height:34px}.world-battle-selected-item>div button{width:28px;height:28px}
  .world-battle-actions{position:sticky;z-index:4;bottom:0;grid-template-columns:1fr 1fr;margin:9px -12px -10px;padding:9px 12px calc(9px + env(safe-area-inset-bottom));border-top:1px solid #394953;background:#10181ff2;box-shadow:0 -10px 24px #071016c7}.world-battle-actions button{height:44px;white-space:normal;line-height:1.2}
  .world-battle-opponent,.world-battle-bracket-section,.world-battle-history-section{padding:15px 12px}.world-battle-bracket{padding-right:12px}
  .werewolf-target-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:7px}.werewolf-target{min-width:0;min-height:42px;justify-content:flex-start;padding:7px}.werewolf-confirm-action{min-height:44px}.werewolf-lobby-actions>div{width:100%;display:grid;grid-template-columns:1fr 1fr}.werewolf-lobby-actions>div button{width:100%;min-width:0}.werewolf-own-vote{width:100%}.werewolf-teammate-votes{width:100%}
}
@media(max-width:390px){.world-battle-team-picker{grid-template-columns:repeat(2,minmax(0,1fr));max-height:40dvh}.world-battle-overview span{display:none}.world-battle-overview section{min-height:58px}.werewolf-target-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
