/* ===================== GAME OVERLAYS & EFFECTS ===================== */

/* Progress bar at top */
.game-progress-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 9999;
  background: linear-gradient(90deg, #FF4500, #FF6B35, #FFD700);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s ease;
}

/* Escalation flash */
.escalation-flash {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(255, 0, 0, 0.3);
  pointer-events: none;
  animation: flashOut 0.5s ease-out forwards;
}
@keyframes flashOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Phase transition overlay */
.phase-transition {
  position: fixed; inset: 0; z-index: 9997;
  background: rgba(0,0,0,0.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: phaseShow 0.3s ease-out;
}
@keyframes phaseShow {
  from { opacity: 0; }
  to { opacity: 1; }
}
.phase-transition-content {
  text-align: center;
  animation: phaseContentIn 0.5s 0.2s both cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes phaseContentIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.phase-icon { margin-bottom: 16px; }
.phase-title { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.phase-subtitle { font-size: 16px; color: #aaa; }

/* Number counter animation */
@keyframes countUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Notification badge pulsing */
.badge-pulse {
  animation: badgePulse 0.5s ease-out;
}
@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Comment severity colors */
.severity-mild { color: #aaa; }
.severity-moderate { color: #ff8c00; }
.severity-intense { color: #ff4500; }
.severity-extreme { color: #cc0000; font-weight: 600; }

/* News notification */
.news-alert {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: #1a1a1a; border: 1px solid #333;
  border-radius: 12px; padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  z-index: 5000; min-width: 320px;
  animation: newsSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
@keyframes newsSlideUp {
  from { transform: translateX(-50%) translateY(100%); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.news-alert-icon { font-size: 24px; }
.news-alert-text { flex: 1; }
.news-alert-source { font-size: 12px; font-weight: 700; color: #888; margin-bottom: 2px; }
.news-alert-title { font-size: 14px; font-weight: 600; color: #fff; }
.news-alert-close {
  background: none; color: #888; font-size: 18px; line-height: 1; cursor: pointer;
}

/* Fired scene animation */
.fired-scene-enter {
  animation: firedEnter 1s ease-out;
}
@keyframes firedEnter {
  0% { opacity: 0; transform: scale(1.1); filter: blur(10px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* Game timer */
.game-timer {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  border: 1px solid #333; border-radius: 20px;
  padding: 4px 16px;
  font-size: 14px; font-weight: 700; color: #888;
  z-index: 500;
  display: none;
}
.game-timer.visible { display: block; }

/* Speed indicator */
.speed-indicator {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-top: 1px solid #222;
  font-size: 12px; color: #666;
}
.speed-dots { display: flex; gap: 3px; }
.speed-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #333; transition: background 0.3s;
}
.speed-dot.active { background: #ff4500; }

/* Trending sidebar in flame view */
.flame-trending {
  display: none;
  width: 240px; padding: 12px;
  border-left: 1px solid #222;
  background: #0d0d0d;
  overflow-y: auto;
}
@media (min-width: 1200px) { .flame-trending { display: block; } }
.flame-trending h4 { font-size: 14px; font-weight: 700; color: #888; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.trending-item {
  padding: 8px 0; border-bottom: 1px solid #1a1a1a;
  cursor: pointer;
}
.trending-rank { font-size: 11px; color: #666; }
.trending-tag { font-size: 14px; font-weight: 700; color: #e7e9ea; margin: 2px 0; }
.trending-count { font-size: 11px; color: #666; }
.trending-item.hot .trending-tag { color: #ff4500; }
.trending-item.very-hot { animation: trendPulse 1s ease-in-out infinite; }
@keyframes trendPulse {
  0%, 100% { background: transparent; }
  50% { background: rgba(255,69,0,0.05); }
}

/* Confirmation dialog */
.confirm-dialog {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.confirm-card {
  background: #1a1a1a; border: 1px solid #333;
  border-radius: 16px; padding: 28px;
  max-width: 400px; width: 90%;
  text-align: center;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.confirm-icon { font-size: 40px; margin-bottom: 12px; }
.confirm-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.confirm-body { font-size: 14px; color: #888; line-height: 1.6; margin-bottom: 24px; }
.confirm-buttons { display: flex; gap: 10px; }
.confirm-btn-cancel {
  flex: 1; padding: 12px; border-radius: 8px;
  background: #2a2a2a; color: #ccc;
  font-size: 15px; font-weight: 600;
  border: 1px solid #333; cursor: pointer;
  transition: background 0.15s;
}
.confirm-btn-cancel:hover { background: #333; }
.confirm-btn-confirm {
  flex: 1; padding: 12px; border-radius: 8px;
  background: linear-gradient(135deg, #FF4500, #cc0000); color: white;
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.confirm-btn-confirm:hover { transform: scale(1.02); }

/* Multi-platform status bar */
.platform-status-bar {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 10px 12px; border-bottom: 1px solid #1a1a1a;
}
.platform-badge {
  display: flex; align-items: center; gap: 5px;
  background: #1a1a1a; border: 1px solid #2a2a2a;
  border-radius: 6px; padding: 4px 10px;
  font-size: 11px; font-weight: 600; color: #666;
  transition: all 0.3s;
}
.platform-badge.active {
  border-color: #ff4500; color: #ff8c42;
  background: rgba(255,69,0,0.1);
}
.platform-badge.active::before {
  content: ''; display: block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff4500;
  animation: livePulse 1s ease-in-out infinite;
}

/* Action buttons in flame view */
.flame-action-bar {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid #1a1a1a;
  background: #0d0d0d;
}
.flame-action-btn {
  flex: 1; padding: 10px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  border: 1px solid #333; background: #1a1a1a; color: #ccc;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.flame-action-btn:hover { background: #222; border-color: #444; }
.flame-action-btn.delete { border-color: rgba(255,69,0,0.4); color: #ff8c42; }
.flame-action-btn.delete:hover { background: rgba(255,69,0,0.1); }
.flame-action-btn.apologize { border-color: rgba(29,155,240,0.4); color: #1D9BF0; }
.flame-action-btn.apologize:hover { background: rgba(29,155,240,0.1); }

/* Response options effect */
.response-result {
  position: fixed; inset: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.9);
}
.response-result-content {
  text-align: center; padding: 40px;
}
.response-result-title {
  font-size: 36px; font-weight: 900; margin-bottom: 12px;
}
.response-result-sub {
  font-size: 18px; color: #888; margin-bottom: 24px; line-height: 1.5;
}
.response-result-stat {
  font-size: 48px; font-weight: 900; color: #ff4500;
  animation: countUp 0.5s ease-out;
}

/* ===================== QUOTE RETWEET CARD ===================== */
.qrt-card {
  padding: 12px 14px;
  border-bottom: 1px solid #1a1a1a;
  background: #0d0d0d;
  animation: slideInRight 0.3s ease-out;
}
.qrt-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.qrt-avatar { flex-shrink: 0; }
.qrt-meta {
  display: flex; align-items: center; gap: 6px;
  flex: 1;
}
.qrt-name {
  font-size: 13px; font-weight: 700; color: #e7e9ea;
}
.qrt-badge {
  font-size: 10px; font-weight: 700; color: #1D9BF0;
  background: rgba(29,155,240,0.15); border: 1px solid rgba(29,155,240,0.3);
  border-radius: 4px; padding: 1px 5px;
}
.qrt-commentary {
  font-size: 14px; color: #e7e9ea; line-height: 1.5;
  margin-bottom: 8px; padding-left: 40px;
}
.qrt-quoted {
  margin-left: 40px;
  border: 1px solid #2f3336;
  border-radius: 12px;
  padding: 10px 12px;
  background: #16181c;
}
.qrt-quoted-header {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 4px;
}
.qrt-original-name {
  font-size: 12px; font-weight: 700; color: #e7e9ea;
}
.qrt-dot, .qrt-time {
  font-size: 12px; color: #71767b;
}
.qrt-quoted-text {
  font-size: 12px; color: #aaa; line-height: 1.4;
  white-space: pre-wrap; word-break: break-all;
}
.qrt-likes {
  margin-top: 8px; padding-left: 40px;
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: #71767b;
}
.qrt-rt-count {
  display: flex; align-items: center; gap: 4px;
}

/* ===================== IDENTITY REVEAL CARD ===================== */
.identity-reveal-card {
  margin: 8px 10px;
  border: 2px solid;
  border-radius: 12px;
  padding: 12px 14px;
  animation: identityRevealIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes identityRevealIn {
  0%  { transform: scaleY(0); opacity: 0; transform-origin: top; }
  60% { transform: scaleY(1.05); }
  100%{ transform: scaleY(1); opacity: 1; }
}
.ir-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.ir-label {
  font-size: 13px; font-weight: 800; letter-spacing: 0.3px;
  flex: 1;
}
.ir-live {
  font-size: 10px; font-weight: 800; color: #fff;
  background: #cc0000; border-radius: 3px;
  padding: 1px 6px; letter-spacing: 0.5px;
  animation: livePulse 1s ease-in-out infinite;
}
.ir-lines {
  display: flex; flex-direction: column; gap: 4px;
}
.ir-line {
  font-size: 12px; color: #ccc; line-height: 1.5;
  padding-left: 4px;
  border-left: 2px solid rgba(255,255,255,0.15);
  font-family: 'Courier New', monospace;
}
.identity-reveal-card.severity-warning .ir-line { color: #ffcc80; }
.identity-reveal-card.severity-danger  .ir-line { color: #ffab91; }
.identity-reveal-card.severity-critical .ir-line { color: #ef9a9a; font-weight: 600; }

/* ===================== COMMENT REPORT BUTTON ===================== */
.comment-report-btn {
  background: none; border: 1px solid #2a2a2a;
  color: #444; font-size: 10px; font-weight: 600;
  border-radius: 4px; padding: 2px 7px;
  cursor: pointer; margin-left: auto;
  transition: all 0.15s;
  flex-shrink: 0;
}
.comment-report-btn:hover { border-color: #555; color: #888; }
.comment-report-btn.reported { border-color: #1a3a1a; color: #2a5a2a; cursor: default; }

/* ===================== SNS ACTION MODALS ===================== */
.sns-modal-overlay {
  position: fixed; inset: 0; z-index: 12000;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s;
  backdrop-filter: blur(4px);
}
.sns-modal-sheet {
  width: 100%; max-width: 500px;
  background: #0e0e0e;
  border-radius: 20px 20px 0 0;
  border: 1px solid #2a2a2a;
  border-bottom: none;
  overflow: hidden;
  animation: sheetUp 0.3s cubic-bezier(0.34, 1.26, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.sns-modal-platform-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #1e1e1e;
}

/* Delete Sheet */
.sns-delete-body {
  padding: 24px 24px 32px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 14px;
}
.sns-delete-icon { opacity: 0.9; }
.sns-delete-title { font-size: 18px; font-weight: 700; }
.sns-delete-preview {
  font-size: 13px; color: #666; line-height: 1.5;
  background: #141414; border-radius: 8px;
  padding: 12px 16px; width: 100%; text-align: left;
  border: 1px solid #1e1e1e;
  font-style: italic;
}
.sns-delete-warning {
  font-size: 13px; color: #ff6b35;
  background: rgba(255,69,0,0.1); border: 1px solid rgba(255,69,0,0.2);
  border-radius: 8px; padding: 10px 14px; width: 100%;
}
.sns-delete-note { font-size: 12px; color: #555; }
.sns-modal-actions {
  display: flex; gap: 10px; width: 100%; margin-top: 8px;
}
.sns-modal-btn {
  flex: 1; padding: 13px; border-radius: 10px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.15s;
}
.sns-modal-btn.cancel {
  background: #1e1e1e; color: #aaa; border: 1px solid #2a2a2a;
}
.sns-modal-btn.cancel:hover { background: #282828; }
.sns-modal-btn.delete {
  background: #cc2200; color: #fff;
}
.sns-modal-btn.delete:hover { background: #dd3300; }

/* Apology Sheet */
.apology-sheet { padding-bottom: 20px; }
.apology-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #1e1e1e;
}
.apology-close {
  background: none; border: none;
  color: #888; font-size: 14px; font-weight: 600; cursor: pointer;
}
.apology-platform-name { font-size: 15px; font-weight: 700; }
.apology-post-btn {
  background: linear-gradient(135deg, #1D9BF0, #0d6eb0);
  color: #fff; border: none; border-radius: 20px;
  padding: 7px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all 0.15s;
}
.apology-post-btn:hover { transform: scale(1.03); }
.apology-compose {
  display: flex; gap: 12px; padding: 16px;
}
.apology-avatar-col { flex-shrink: 0; }
.apology-compose-col { flex: 1; min-width: 0; }
.apology-username { font-size: 14px; font-weight: 700; color: #888; margin-bottom: 8px; }
.apology-textarea {
  width: 100%; background: transparent; border: none; outline: none;
  color: #e7e9ea; font-size: 15px; line-height: 1.6; resize: none;
  min-height: 100px;
}
.apology-footer-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.apology-char-count { font-size: 13px; color: #71767b; }
.apology-warning-tag {
  font-size: 11px; color: #888; background: rgba(255,140,0,0.1);
  border: 1px solid rgba(255,140,0,0.2); border-radius: 4px;
  padding: 2px 8px;
}
.apology-meta-warning {
  margin: 0 16px 16px; padding: 12px 14px;
  background: rgba(29,155,240,0.06); border: 1px solid rgba(29,155,240,0.15);
  border-radius: 10px; font-size: 12px; color: #71767b; line-height: 1.5;
}
.apology-meta-warning strong { color: #1D9BF0; }

/* ===================== SUMMONS POPUP ===================== */
.summons-overlay {
  position: fixed; inset: 0; z-index: 15000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s;
}
.summons-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
}
.summons-card {
  position: relative; z-index: 1;
  background: #0e0e0e;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 380px; width: 90%;
  text-align: center;
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 60px rgba(204,0,0,0.2), 0 20px 60px rgba(0,0,0,0.6);
  border-top: 3px solid #cc0000;
}
.summons-stamp {
  margin-bottom: 16px;
  animation: stampIn 0.6s 0.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.summons-label {
  font-size: 10px; font-weight: 800; color: #cc3333;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 8px;
}
.summons-main {
  font-size: 20px; font-weight: 700; margin-bottom: 14px;
  color: #e7e9ea;
}
.summons-body {
  font-size: 14px; color: #aaa; line-height: 1.8;
  margin-bottom: 16px;
}
.summons-from {
  font-size: 12px; color: #555; margin-bottom: 24px;
  border-top: 1px solid #1e1e1e; padding-top: 14px;
}
.summons-enter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #cc0000, #880000);
  color: #fff; border: none;
  padding: 14px 28px; border-radius: 50px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(204,0,0,0.4);
  animation: summonsPulse 2s ease-in-out infinite;
}
.summons-enter-btn:hover { transform: scale(1.03); box-shadow: 0 6px 30px rgba(204,0,0,0.6); }
@keyframes summonsPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(204,0,0,0.4); }
  50% { box-shadow: 0 4px 40px rgba(204,0,0,0.7); }
}

/* ===================== SCORE POPUP ===================== */
.score-popup {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 20000; pointer-events: none;
  font-size: 22px; font-weight: 900; color: #5599ff;
  font-family: 'SF Mono', 'Courier New', monospace;
  text-shadow: 0 0 20px rgba(85,153,255,0.6);
  animation: scoreFloat 1.4s ease-out forwards;
}
@keyframes scoreFloat {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  20%  { opacity: 1; transform: translate(-50%, -70%) scale(1.2); }
  60%  { opacity: 1; transform: translate(-50%, -90%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -120%) scale(0.8); }
}

/* ===================== MATOME SPREAD CARD ===================== */
.matome-card {
  border: 1px solid #1e2a38;
  border-radius: 10px;
  margin: 8px 0;
  padding: 12px 14px;
  background: #0a1520;
  animation: matomeSlideIn 0.4s ease-out;
}
@keyframes matomeSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.matome-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 7px;
  padding-left: 8px;
  border-left: 3px solid;
}
.matome-site {
  font-size: 11px; font-weight: 800; letter-spacing: 0.3px;
  text-transform: uppercase;
}
.matome-new {
  font-size: 9px; font-weight: 800; color: #fff;
  background: #ff4500; border-radius: 3px;
  padding: 1px 5px; letter-spacing: 0.5px;
  margin-left: auto;
}
.matome-title {
  font-size: 13px; font-weight: 600; color: #e7e9ea;
  line-height: 1.5; margin-bottom: 8px;
}
.matome-stats {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 11px; color: #71767b;
}
.matome-stats span {
  display: flex; align-items: center; gap: 3px;
}
