/* EP30: 루루의 얼음 미로 탈출 알고리즘 스타일 */

.ep30-maze-wrap {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 440px;
  width: calc(100% - 40px);
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.ep30-maze-panel {
  background: rgba(10, 20, 35, 0.94);
  border: 2px solid #38bdf8;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ep30-title-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ep30-badge {
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
}

.ep30-hint {
  font-size: 11px;
  color: #94a3b8;
}

.ep30-maze-board-container {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

.ep30-grid {
  display: grid;
  grid-template-columns: repeat(5, 36px);
  grid-template-rows: repeat(5, 36px);
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ep30-cell {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.ep30-cell.wall {
  background: rgba(30, 58, 138, 0.5);
  border: 1px solid #1e3a8a;
}

.ep30-cell.path {
  background: rgba(56, 189, 248, 0.1);
}

.ep30-cell.goal {
  background: rgba(34, 197, 94, 0.2);
  border: 1px dashed #22c55e;
}

.ep30-cell.lulu {
  background: #facc15;
  box-shadow: 0 0 10px #facc15;
  transform: scale(1.1);
}

.ep30-action-row {
  display: flex;
  gap: 8px;
}

.ep30-command-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.ep30-command-pad button {
  min-height: 44px;
  padding: 6px;
  border: 1px solid #67e8f9;
  border-radius: 8px;
  background: #164e63;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.ep30-command-list {
  min-height: 30px;
  padding: 6px;
  border-radius: 6px;
  background: #0f172a;
  color: #fef08a;
  font-size: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}

.ep30-btn-run {
  flex: 2;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
}

.ep30-btn-wall-test {
  flex: 1;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  border-radius: 8px;
  color: #fca5a5;
  font-weight: bold;
  font-size: 11px;
  padding: 8px 6px;
  cursor: pointer;
}

.ep30-status-msg {
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
}

/* 완료 카드 */
.ep30-complete-wrap {
  width: 100%;
  max-width: 980px;
  margin: 16px auto 0;
}

.ep30-cert-card {
  background: linear-gradient(135deg, rgba(15, 25, 45, 0.95), rgba(10, 15, 30, 0.98));
  border: 2px solid #38bdf8;
  border-radius: 18px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.ep30-cert-header h3 {
  font-size: 20px;
  color: #38bdf8;
  margin: 6px 0 4px;
}

.ep30-cert-desc {
  font-size: 14px;
  color: #cbd5e1;
  margin: 10px 0 16px;
}

.ep30-btn-replay {
  background: #475569;
  border: none;
  border-radius: 20px;
  color: #fff;
  padding: 8px 20px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 768px) {
  .ep30-maze-wrap {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
  }
}
