/* 🕵️ Pillow Imposter: the meeting screen and chat (js/imposter-ui.js). */
.impHidden { display: none !important; }
.impMeeting {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
  color: #ffe3c2; font: 600 14px system-ui, sans-serif;
  background: rgba(24, 14, 9, 0.55);
  touch-action: manipulation;
}
.impHead { display: flex; align-items: center; gap: 12px; }
.impTitle { flex: 1; font-size: 19px; font-weight: 800; }
.impTimer { font-size: 18px; font-weight: 800; color: #ffd9a0; }
.impBody { flex: 1; min-height: 0; display: grid; grid-template-columns: 3fr 2fr; gap: 12px; }
.impMeeting.ghostOnly { inset: auto 12px 12px auto; width: min(420px, 92vw); height: min(380px, 70vh); border-radius: 16px; background: rgba(24, 14, 9, 0.92); }
.impMeeting.ghostOnly .impBody { grid-template-columns: 1fr; }
.impMeeting.ghostOnly .impVote { display: none; }
.impVote { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.impCards { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; align-content: start; }
.impCard {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px 8px; border-radius: 14px; border: 2px solid rgba(255, 227, 194, 0.18);
  background: rgba(56, 36, 25, 0.92); color: inherit; font: inherit; cursor: pointer;
  box-shadow: inset 0 -4px 0 var(--seat, #ffd9a0);
}
.impCard:disabled { cursor: default; }
.impCard.asleep { opacity: 0.45; filter: grayscale(0.7); }
.impCard.me { border-color: rgba(255, 227, 194, 0.45); }
.impCard.picked, .impSkip.picked { border-color: #ffd9a0; background: rgba(120, 78, 40, 0.95); }
.impCard.mine, .impSkip.mine { border-color: #8fdf7f; }
.impCard.out { border-color: #ff8d6a; background: rgba(110, 40, 30, 0.95); }
.impFace { width: 64px; height: 64px; }
.impCard.imp .impName { color: #ff6b5e; }
.impName { font-weight: 800; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.impTag { font-size: 11px; color: #ffd9a0; }
.impDots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; margin-top: 2px; }
.impDots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255, 244, 226, 0.55); }
.impDot { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; vertical-align: -1px;
  border: 1px solid rgba(255, 244, 226, 0.55); }
.impRow { display: flex; align-items: center; gap: 12px; }
.impSkip, .impSend, .impQuickBtn, .impQ, .impClose, .impGhostBtn {
  font: inherit; font-weight: 800; color: #ffe3c2; cursor: pointer;
  padding: 9px 14px; border-radius: 12px; border: 2px solid rgba(255, 227, 194, 0.25); background: rgba(70, 46, 32, 0.95);
}
.impSkip:disabled { opacity: 0.55; cursor: default; }
.impNote { font-size: 13px; color: rgba(255, 227, 194, 0.8); }
.impChat { display: flex; flex-direction: column; gap: 6px; min-height: 0; border-radius: 14px; background: rgba(36, 22, 15, 0.9); padding: 8px; }
.impLog { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.3; }
.impLine { overflow-wrap: anywhere; }
.impLine.ghost { font-style: italic; color: #d8e4ff; }
.impQuick { display: flex; flex-wrap: wrap; gap: 6px; max-height: 40%; overflow-y: auto; }
.impQ { padding: 6px 10px; font-size: 13px; }
.impSay { display: flex; gap: 6px; }
.impInput { flex: 1; min-width: 0; font: inherit; font-weight: 600; color: #2a1a10; background: #ffe9cf; border: none; border-radius: 10px; padding: 9px 10px; }
.impGhostWrap { position: fixed; inset: 0; z-index: 55; pointer-events: none; }
.impGhostBtn { position: absolute; right: 14px; top: 64px; pointer-events: auto; }
.impMeeting .padFocus, .impGhostBtn.padFocus { outline: 3px solid #ffd9a0; outline-offset: 2px; }
@media (max-height: 420px) {
  .impTitle { font-size: 15px; }
  .impFace { width: 44px; height: 44px; }
  .impCards { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
  .impCard { padding: 4px 3px 6px; }
}
@media (max-width: 640px) and (orientation: portrait) {
  .impMeeting:not(.impRot) .impBody { grid-template-columns: 1fr; grid-template-rows: 3fr 2fr; }
}

/* Chore mini-games (js/imposter-chores.js). The stage takes every touch for
   itself: no scrolling, no zooming, no cancelled drags. */
.impChore {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(12, 8, 6, 0.72); color: #ffe3c2; font: 700 15px system-ui, sans-serif;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.impChoreHead { display: flex; align-items: center; gap: 14px; }
.impChoreTitle { font-size: 19px; font-weight: 800; }
.impChoreClose { font: inherit; font-weight: 900; color: #ffe3c2; background: rgba(70, 46, 32, 0.95); border: 2px solid rgba(255, 227, 194, 0.3); border-radius: 12px; padding: 6px 12px; cursor: pointer; }
.impChoreStage { position: relative; touch-action: none; }
.impChorePanel { position: absolute; left: 0; top: 0; border-radius: 14px; pointer-events: none; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
.impChoreTray { position: absolute; top: 0; border-radius: 14px; background: rgba(56, 36, 25, 0.75); border: 2px dashed rgba(255, 227, 194, 0.22); pointer-events: none; }
.impPiece { position: absolute; transform: translate(-50%, -50%); touch-action: none; pointer-events: none; -webkit-user-drag: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); }
.impChoreDone { position: absolute; left: 0; top: 40%; width: 100%; text-align: center; font-size: 46px; font-weight: 900; color: #8fdf7f; text-shadow: 0 3px 0 #1d140e, 0 0 24px rgba(0, 0, 0, 0.6); pointer-events: none; z-index: 20; }
.impChoreHint { font-size: 14px; color: rgba(255, 227, 194, 0.88); text-align: center; max-width: 92vw; }
.impChoreHand { position: absolute; z-index: 75; font-size: 34px; transform: translate(-30%, -20%); pointer-events: none; }
.impPop { animation: impPop 0.28s ease-out; }
.impShake { animation: impShake 0.35s ease-in-out; }
@keyframes impPop { 0% { transform: translate(-50%, -50%) scale(1.25); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes impShake { 0%, 100% { transform: translate(-50%, -50%); } 25% { transform: translate(-58%, -50%); } 75% { transform: translate(-42%, -50%); } }
.impPiece.impSlide { transition: left 0.28s ease-out, top 0.28s ease-out; }
