.app-header {
  position: relative;
}

.app-header.header-long-pressing::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--accent-coral);
  transform-origin: left center;
  animation: header-long-press-progress 1.5s linear forwards;
}

@keyframes header-long-press-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.impostor-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 17, 23, 0.97);
  z-index: 2000;
  display: none;
  flex-direction: column;
  padding: var(--space-4);
  padding-top: calc(var(--header-height) + var(--space-4));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: impostorOverlayIn 150ms ease-out;
}

.impostor-overlay.closing {
  animation: impostorOverlayOut 150ms ease-in forwards;
}

@keyframes impostorOverlayIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes impostorOverlayOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.impostor-overlay-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.impostor-overlay-title {
  font-size: var(--text-h1);
  font-weight: 700;
  color: var(--accent-coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.impostor-overlay-subtitle {
  font-size: var(--text-label);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

.impostor-overlay-section {
  background: rgba(80, 20, 20, 0.6);
  border: 1px solid rgba(255, 80, 80, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.impostor-overlay-section-title {
  font-size: var(--text-label);
  font-weight: 600;
  color: rgba(255, 140, 140, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.impostor-teammate-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.impostor-teammate {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 80, 80, 0.08);
  border-radius: var(--radius-md);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
}

.impostor-teammate-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-coral);
}

.impostor-teammate-alone {
  font-size: var(--text-body);
  color: var(--text-secondary);
  font-style: italic;
}

.impostor-cooldown-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.impostor-cooldown-status {
  font-size: var(--text-h2);
  font-weight: 700;
}

.impostor-cooldown-ready {
  color: var(--accent-green);
}

.impostor-cooldown-timer {
  color: var(--accent-coral);
  font-variant-numeric: tabular-nums;
}

.impostor-armed-kill {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: rgba(255, 80, 80, 0.15);
  border: 1px solid rgba(255, 80, 80, 0.4);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-3);
}

.impostor-armed-label {
  font-size: var(--text-label);
  color: var(--accent-coral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.impostor-armed-target {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
}

.impostor-target-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.impostor-target-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 80, 80, 0.06);
  border: 1px solid rgba(255, 80, 80, 0.15);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.impostor-target-item:active {
  border-color: rgba(255, 80, 80, 0.6);
  background: rgba(255, 80, 80, 0.15);
}

.impostor-target-name {
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
}

.impostor-target-arm-btn {
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--accent-coral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.impostor-cancel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 80, 80, 0.1);
  color: var(--accent-coral);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  min-height: 44px;
  width: 100%;
  transition: background 0.15s ease;
}

.impostor-cancel-btn:active {
  background: rgba(255, 80, 80, 0.25);
}

.impostor-overlay-close {
  position: absolute;
  top: calc(var(--header-height) + var(--space-2));
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
}

.impostor-overlay-close:active {
  background: rgba(255, 80, 80, 0.25);
}

.header-shimmer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 30%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.06) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  z-index: 150;
  pointer-events: none;
  animation: shimmerSlide 0.8s ease-out forwards;
}

@keyframes shimmerSlide {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
    opacity: 0;
  }
}

.body-location-prompt {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 0.3s ease;
}

.body-location-prompt.active {
  display: flex;
}

.body-location-content {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-coral);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-glow-coral);
}

.body-location-content h2 {
  font-size: var(--text-h1);
  font-weight: 700;
  color: var(--accent-coral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.body-location-content p {
  font-size: var(--text-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.body-location-options {
  display: grid;
  gap: var(--space-2);
  width: 100%;
  margin-bottom: var(--space-3);
}

.body-location-option-btn,
.body-location-scan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, #ff8a8a, #ff6b6b);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-button);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 56px;
  width: 100%;
  cursor: pointer;
  margin-bottom: var(--space-3);
}

.body-location-option-btn {
  margin-bottom: 0;
}

.body-location-option-btn:active,
.body-location-scan-btn:active {
  opacity: 0.85;
}

.body-location-skip-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  min-height: 44px;
  width: 100%;
  cursor: pointer;
}
