/* EP27 Coco Boat Controller Styles */
.ep27-boat-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: ep27FadeIn 0.3s ease;
}
@keyframes ep27FadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ep27-panel {
  background: rgba(15, 23, 42, 0.92); backdrop-filter: blur(16px);
  border: 1px solid rgba(249, 115, 22, 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);
}
.ep27-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ep27-badge { background: linear-gradient(135deg, #f97316, #ea580c); color: white; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 20px; }
.ep27-hint { font-size: 12px; color: #fed7aa; font-weight: 600; }

.ep27-navigation { display: flex; align-items: stretch; gap: 10px; }
.ep27-lake-map {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 126px;
  overflow: hidden; border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.65);
  background: radial-gradient(circle at 75% 25%, rgba(255, 255, 190, 0.35), transparent 20%),
    repeating-linear-gradient(15deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 20px),
    linear-gradient(135deg, #075985, #0c4a6e 60%, #164e63);
}
.ep27-map-label {
  position: absolute; left: 10px; top: 7px; color: #e0f2fe;
  font-size: 11px; font-weight: 800; text-shadow: 0 1px 3px #082f49;
}
.ep27-buoy-marker, .ep27-boat-marker {
  position: absolute; display: block; font-size: 27px; line-height: 1;
  transform: translate(-50%, -50%); filter: drop-shadow(0 2px 3px #082f49);
}
.ep27-boat-marker { transition: left .22s ease, top .22s ease; z-index: 1; }
.ep27-buoy-marker { z-index: 2; }

.ep27-dpad-box {
  display: flex; flex: 0 0 168px; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(30, 41, 59, 0.8); border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 14px; padding: 12px;
}
.ep27-dpad-row { display: flex; gap: 8px; align-items: center; justify-content: center; }
.ep27-dir-btn {
  width: 48px; height: 48px; font-size: 20px; font-weight: 800; border: none; border-radius: 12px;
  background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(255, 255, 255, 0.2); color: white;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease; user-select: none; touch-action: manipulation;
}
.ep27-dir-btn:hover { background: rgba(249, 115, 22, 0.3); border-color: #f97316; }
.ep27-dir-btn:active { transform: scale(0.92); background: #f97316; }
.ep27-pos-info { font-size: 12px; color: #cbd5e1; font-family: 'JetBrains Mono', monospace; text-align: center; }
.ep27-status-msg { font-size: 12px; font-weight: 700; color: #fed7aa; text-align: center; min-height: 18px; }

.ep27-complete-wrap { width: 100%; max-width: 900px; margin: 14px auto 0; animation: ep27FadeIn 0.4s ease; }
.ep27-complete-card {
  background: rgba(15, 23, 42, 0.92); border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 20px; padding: 20px 24px; text-align: center;
}
.ep27-complete-icon { display: inline-block; background: rgba(249, 115, 22, 0.2); color: #f97316; font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 20px; margin-bottom: 8px; }
.ep27-comp-btn.primary { background: linear-gradient(135deg, #f97316, #ea580c); color: white; border: none; padding: 10px 18px; border-radius: 12px; font-weight: 700; cursor: pointer; margin-top: 10px; }

.ep27-silent-next-wrap {
  width: 100%; max-width: 900px; margin: 12px auto 0; text-align: center;
}
.ep27-silent-next-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white; border: none; padding: 12px 24px; border-radius: 14px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

@media (max-width: 768px) {
  .ep27-boat-wrap { position: relative; right: auto; bottom: auto; width: 100%; max-width: 100%; margin: 12px auto 0; }
}
@media (max-width: 420px) {
  .ep27-navigation { flex-direction: column; }
  .ep27-lake-map { flex-basis: auto; min-height: 120px; }
  .ep27-dpad-box { flex-basis: auto; }
}
