/* EP22 Lumi Coordinates Styles */
.ep22-coord-wrap {
  position: absolute; right: 20px; bottom: 20px; z-index: 100;
  display: flex; flex-direction: column; max-width: 440px; width: calc(100% - 40px);
  pointer-events: auto; animation: ep22FadeIn 0.3s ease;
}
@keyframes ep22FadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ep22-panel {
  background: rgba(15, 23, 42, 0.92); backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.4); border-radius: 18px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 16px 36px rgba(0,0,0,0.5);
}
.ep22-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ep22-badge { background: linear-gradient(135deg, #0284c7, #38bdf8); color: white; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 20px; }
.ep22-hint { font-size: 12px; color: #bae6fd; font-weight: 600; }
.ep22-pos-display { font-size: 14px; color: #f8fafc; font-family: 'JetBrains Mono', monospace; text-align: center; background: rgba(30,41,59,0.7); padding: 10px; border-radius: 10px; }
.ep22-pos-display b { color: #38bdf8; font-size: 16px; margin-left: 6px; }
.ep22-map-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.ep22-map-cell { display: grid; place-items: center; min-height: 28px; border-radius: 7px; background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.2); font-size: 17px; }
.ep22-map-cell.goal { background: rgba(250,204,21,.15); }
.ep22-map-cell.current { border: 2px solid #67e8f9; background: rgba(56,189,248,.35); box-shadow: 0 0 10px rgba(56,189,248,.4); }
.ep22-controls-grid { display: flex; gap: 8px; }
.ep22-btn {
  flex: 1; padding: 12px 8px; font-size: 13px; font-weight: 800; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #38bdf8); color: white; cursor: pointer; min-height: 48px;
  transition: all 0.2s ease;
}
.ep22-btn:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.ep22-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ep22-status-tag { font-size: 12px; color: #bae6fd; text-align: center; display: block; font-weight: 700; min-height: 18px; }
.ep22-status-tag.success { color: #4ade80; }
.screen-container.ep22-activity-screen .cinema-cut.active { animation: none; transform: none; }

@media (min-width: 769px) {
  .screen-container.ep22-split-screen .cinema-cut,
  .screen-container.ep22-result-screen .cinema-cut { width: calc(100% - 270px); }
  .screen-container.ep22-split-screen .ep22-coord-wrap {
    right: 10px; bottom: 20px; width: 250px; max-width: 250px;
  }
  .screen-container.ep22-split-screen .ep22-panel { padding: 12px; gap: 8px; }
  .screen-container.ep22-split-screen .ep22-title-row { justify-content: center; text-align: center; }
  .screen-container.ep22-split-screen .ep22-controls-grid { flex-direction: column; }
  .screen-container.ep22-split-screen .ep22-pos-display { padding: 8px; }
  .screen-container.ep22-split-screen .ep22-map-cell { min-height: 27px; }
  .screen-container.ep22-result-screen .cinema-cut.active { animation: none; transform: none; }
  .screen-container.ep22-result-screen .ep22-complete-wrap {
    position: absolute; z-index: 100; right: 10px; bottom: 20px;
    width: 250px; max-width: 250px; margin: 0;
  }
  .screen-container.ep22-result-screen .ep22-complete-card { padding: 14px 12px; }
  .screen-container.ep22-result-screen .ep22-complete-card h3 { font-size: 16px; margin: 6px 0; }
  .screen-container.ep22-result-screen .ep22-complete-card p { font-size: 12px; line-height: 1.5; margin: 6px 0; }
}

.ep22-complete-wrap { width: 100%; max-width: 900px; margin: 14px auto 0; animation: ep22FadeIn 0.4s ease; }
.ep22-complete-card {
  background: rgba(15, 23, 42, 0.92); border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 20px; padding: 20px 24px; text-align: center;
}
.ep22-complete-icon { display: inline-block; background: rgba(56, 189, 248, 0.2); color: #38bdf8; font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 20px; margin-bottom: 8px; }
.ep22-comp-btn.primary { background: linear-gradient(135deg, #0284c7, #38bdf8); color: white; border: none; padding: 10px 18px; border-radius: 12px; font-weight: 700; cursor: pointer; margin-top: 10px; }

.ep22-silent-next-wrap {
  width: 100%; max-width: 900px; margin: 12px auto 0; text-align: center;
}
.ep22-silent-next-btn {
  background: linear-gradient(135deg, #0284c7, #0284c7);
  color: white; border: none; padding: 12px 24px; border-radius: 14px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

@media (max-width: 768px) {
  .ep22-coord-wrap { position: relative; right: auto; bottom: auto; width: 100%; max-width: 100%; margin: 12px auto 0; }
}
