.hlp-plugin-wrap {
  width: 100%;
}

.hlp-app {
  --hlp-accent: #2c6be0;
  --hlp-bg: #f5f8ff;
  --hlp-glass: rgba(255, 255, 255, 0.75);
  --hlp-glass-border: rgba(255, 255, 255, 0.6);
  --hlp-shadow: 0 16px 40px rgba(18, 38, 88, 0.08);
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(44, 107, 224, 0.12), transparent 56%),
    radial-gradient(100% 100% at 100% 0%, rgba(56, 218, 172, 0.1), transparent 46%),
    linear-gradient(180deg, var(--hlp-bg), #fbfdff 58%, #ffffff 100%);
  border: 1px solid rgba(135, 160, 215, 0.25);
  border-radius: 32px;
  padding: 24px;
  box-shadow:
    0 24px 64px rgba(22, 36, 74, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #1a243e;
  position: relative;
  overflow: hidden;
}

@keyframes hlpFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}
@keyframes hlpPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes hlpPopIn {
  0% { opacity: 0; transform: scale(0.9) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.hlp-hero h2 {
  margin: 0;
  font-size: 1.62rem;
}

.hlp-hero p {
  margin: 6px 0 0;
  color: #4b5779;
}

.hlp-top-stats {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hlp-top-stats span,
.hlp-chip {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(172, 190, 232, 0.58);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  color: #2f3b5d;
}

.hlp-selector {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hlp-selector label {
  display: block;
  font-size: 0.8rem;
  color: #4f5f87;
  margin-bottom: 6px;
}

.hlp-selector select,
.hlp-track-name {
  width: 100%;
  border: 1px solid #cad6f1;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
  background: #fff;
  color: #2e3f68;
}

.hlp-track-name {
  background: #f8fbff;
}

.hlp-track-profile {
  margin-top: 14px;
  border: 1px solid rgba(164, 186, 231, 0.56);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #edf4ff 60%, #f9fbff);
  padding: 14px;
  box-shadow: 0 10px 24px rgba(34, 60, 120, 0.08);
}

.hlp-track-profile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.hlp-track-profile-head h4 {
  margin: 0;
  font-size: 1rem;
}

.hlp-track-focus {
  margin-top: 8px;
  font-size: 0.92rem;
  color: #263f71;
  font-weight: 600;
}

.hlp-track-mission {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #42537d;
}

.hlp-pillars {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hlp-pillars span {
  border: 1px solid #c9d6f5;
  background: #fff;
  color: #3a4f7f;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.76rem;
}

.hlp-track-plan {
  margin: 10px 0 0;
  padding-left: 18px;
}

.hlp-track-plan li {
  font-size: 0.82rem;
  color: #31446f;
  line-height: 1.5;
}

.hlp-track-dynamic-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #4f6089;
}

.hlp-activity {
  margin-top: 14px;
  border: 1px solid rgba(169, 188, 229, 0.45);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  padding: 14px;
  box-shadow: 0 10px 24px rgba(33, 54, 102, 0.08);
}

.hlp-activity.guest {
  color: #516084;
  font-size: 0.9rem;
}

.hlp-activity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hlp-activity-head h4 {
  margin: 0;
}

.hlp-stat-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hlp-stat-row span {
  font-size: 0.82rem;
  color: #304068;
  background: #f5f8ff;
  border: 1px solid #d7e0f3;
  border-radius: 8px;
  padding: 5px 8px;
}

.hlp-selected-track-box {
  margin-top: 10px;
  border: 1px solid #d5e0f8;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbff;
}

.hlp-selected-track-box h5 {
  margin: 0;
  font-size: 0.9rem;
}

.hlp-track-analysis-hint {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #495a84;
}

.hlp-stage-breakdown {
  margin: 8px 0 0;
  padding-left: 16px;
}

.hlp-stage-breakdown li {
  font-size: 0.8rem;
  color: #3f4f79;
  line-height: 1.45;
}

.hlp-badges {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hlp-badge {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
  border: 1px solid rgba(248, 189, 72, 0.65);
  background: linear-gradient(180deg, #fff6df, #ffefc0);
  color: #7d5712;
}

.hlp-plan-box,
.hlp-history-box {
  margin-top: 10px;
  border: 1px solid #d6e1f8;
  border-radius: 12px;
  padding: 10px;
  background: #f9fbff;
}

.hlp-plan-box h5,
.hlp-history-box h5 {
  margin: 0;
  font-size: 0.9rem;
}

.hlp-plan-box ul,
.hlp-history-box ul {
  margin: 8px 0 0;
  padding-left: 16px;
}

.hlp-plan-box li,
.hlp-history-box li {
  font-size: 0.82rem;
  color: #3f4f78;
  line-height: 1.5;
}

.hlp-empty-mini {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #627198;
}

.hlp-learn {
  margin-top: 14px;
}

.hlp-progress-wrap {
  margin-bottom: 10px;
}

.hlp-progress-label {
  font-size: 0.82rem;
  color: #45547a;
}

.hlp-progress-bar {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(176, 194, 232, 0.6);
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
}

.hlp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hlp-accent), #3dd598);
  transition: width 0.25s ease;
}

.hlp-stage-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hlp-stage-tab {
  border: 1px solid rgba(165, 182, 223, 0.72);
  background: rgba(255, 255, 255, 0.88);
  color: #314269;
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
  font-weight: 600;
  cursor: pointer;
}

.hlp-stage-tab.active {
  background: linear-gradient(180deg, var(--hlp-accent), #215fd3);
  border-color: transparent;
  color: #fff;
}

.hlp-stage-title {
  margin-top: 10px;
  font-size: 0.88rem;
  color: #4a5a84;
}

.hlp-lesson-card {
  margin-top: 14px;
  border: 1px solid rgba(170, 187, 228, 0.5);
  border-radius: 24px;
  background: var(--hlp-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  box-shadow:
    0 20px 48px rgba(32, 51, 98, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: hlpPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hlp-lesson-card.sensory {
  border: 1.5px solid rgba(255, 171, 64, 0.5);
  background: linear-gradient(135deg, rgba(255,251,242,0.85), rgba(255,243,219,0.95));
  box-shadow: 
    0 24px 54px rgba(255, 171, 64, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 1);
}

.hlp-lesson-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hlp-lesson-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1c2b51;
}

.hlp-visual-box {
  margin: 16px auto;
  text-align: center;
  border: none;
  border-radius: 32px;
  background: radial-gradient(circle at center, #ffffff 30%, #fff7eb 100%);
  padding: 20px;
  box-shadow: 
    0 12px 24px rgba(255, 187, 90, 0.25),
    inset 0 0 0 2px rgba(255, 255, 255, 0.9);
  animation: hlpFloat 4s ease-in-out infinite;
  max-width: 140px;
}

.hlp-visual-emoji {
  font-size: 4rem;
  line-height: 1.1;
  display: inline-block;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.1));
}

.hlp-prompt {
  margin-top: 14px;
  border-radius: 18px;
  background: rgba(246, 249, 255, 0.8);
  border: 1px dashed rgba(165, 185, 235, 0.6);
  padding: 18px;
  color: #1b2d56;
  font-size: 1.2rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.hlp-prompt-text {
  line-height: 1.58;
  font-weight: 700;
}

.hlp-audio-btn {
  margin-top: 8px;
  border: 1px solid #c5d4f5;
  background: #fff;
  color: #2f4677;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.hlp-audio-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hlp-option-grid {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.hlp-option-grid.card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hlp-option-grid.example {
  grid-template-columns: 1fr;
}

.hlp-option {
  border: 1px solid rgba(185, 205, 245, 0.5);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: #213256;
  padding: 18px 14px;
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.45;
  box-shadow: 0 12px 24px rgba(34, 55, 102, 0.06);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hlp-option::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.hlp-option:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 32px rgba(34, 55, 102, 0.12);
  border-color: #8bb7ff;
}

.hlp-option:hover::before {
  left: 200%;
}

.hlp-option.sensory {
  font-size: 1.25rem;
  padding: 22px 14px;
  border-color: rgba(255, 203, 117, 0.8);
  background: linear-gradient(180deg, #ffffff, #fff7e6);
}

.hlp-option.sensory:hover {
  border-color: #ff9b2e;
  box-shadow: 0 18px 36px rgba(255, 153, 0, 0.2);
}

.hlp-option.selected {
  border-color: var(--hlp-accent);
  background: linear-gradient(180deg, #f0f6ff, #e1edff);
  box-shadow: 0 0 0 3px rgba(44, 107, 224, 0.25);
  animation: hlpPulse 0.4s ease;
}

.hlp-explain {
  margin-top: 8px;
  font-size: 0.84rem;
  color: #4f618d;
}

.hlp-feedback {
  margin-top: 10px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #3d4f7a;
}

.hlp-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hlp-btn {
  border: none;
  background: linear-gradient(180deg, var(--hlp-accent), #296be2);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
}

.hlp-mini-launcher {
  margin-top: 14px;
  border: 1px solid rgba(119, 166, 240, 0.45);
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbff, #edf4ff 58%, #f9fbff);
  box-shadow: 0 12px 26px rgba(30, 55, 114, 0.08);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hlp-mini-launcher-text h3 {
  margin: 0;
  font-size: 1.04rem;
  color: #2a4278;
}

.hlp-mini-launcher-text p {
  margin: 5px 0 0;
  font-size: 0.86rem;
  color: #465a86;
}

.hlp-mini-game {
  margin-top: 14px;
  border: 1px solid rgba(119, 166, 240, 0.5);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(87, 171, 255, 0.14), transparent 58%),
    linear-gradient(180deg, #f6faff, #eef5ff 58%, #f9fbff);
  box-shadow: 0 14px 28px rgba(30, 55, 114, 0.1);
}

.hlp-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.hlp-mini-head h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #2a4278;
}

.hlp-mini-title {
  margin-top: 8px;
  color: #3c5183;
  font-size: 0.94rem;
  font-weight: 700;
}

.hlp-mini-prompt {
  margin-top: 10px;
}

.hlp-mini-visual {
  font-size: 1.4rem;
  vertical-align: middle;
}

.hlp-mini-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hlp-mini-option {
  min-height: 62px;
  text-align: left;
}

.hlp-mini-feedback {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #334a7b;
  font-weight: 700;
}

.hlp-game-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hlp-game-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 36, 0.58);
}

.hlp-game-modal-content {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(147, 173, 224, 0.65);
  background: linear-gradient(180deg, #f6faff, #edf4ff 50%, #f9fbff);
  box-shadow: 0 24px 42px rgba(15, 29, 67, 0.28);
  padding: 12px;
}

.hlp-game-modal-content.is-fullscreen {
  width: calc(100vw - 12px);
  max-height: calc(100vh - 12px);
  height: calc(100vh - 12px);
  border-radius: 12px;
  padding: 14px;
}

.hlp-game-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hlp-game-modal-head h3 {
  margin: 0;
  color: #2a3f72;
  font-size: 1.02rem;
}

.hlp-game-modal-content .hlp-mini-game {
  margin-top: 10px;
}

.hlp-game-modal-content .hlp-test-panel {
  margin-top: 10px;
}

.hlp-test-panel.embedded {
  border-color: rgba(130, 192, 165, 0.72);
}

.hlp-btn.secondary {
  background: #e9efff;
  color: #2e467d;
}

.hlp-btn.ghost {
  background: #f4f7ff;
  color: #2d446f;
  border: 1px solid #ced9f1;
}

.hlp-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hlp-test-panel {
  margin-top: 14px;
  border: 1px solid rgba(130, 192, 165, 0.6);
  border-radius: 14px;
  background: linear-gradient(180deg, #f0fff8, #e2fdf0);
  padding: 12px;
}

.hlp-test-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hlp-test-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #1f5f47;
}

.hlp-test-meta {
  margin-top: 8px;
  font-size: 0.84rem;
  color: #2f4f46;
}

.hlp-test-result {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hlp-toast {
  margin-top: 12px;
  border-radius: 10px;
  background: #1f2d50;
  color: #fff;
  padding: 9px 11px;
  font-size: 0.88rem;
}

.hlp-empty {
  margin-top: 12px;
  border: 1px dashed #c6d5f1;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  color: #566487;
}

@media (prefers-reduced-motion: reduce) {
  .hlp-progress-fill {
    transition: none;
  }
}

@media (max-width: 760px) {
  .hlp-app {
    border-radius: 16px;
    padding: 12px;
  }

  .hlp-selector {
    grid-template-columns: 1fr;
  }

  .hlp-option-grid.card {
    grid-template-columns: 1fr;
  }

  .hlp-mini-grid {
    grid-template-columns: 1fr;
  }

  .hlp-track-profile-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hlp-mini-launcher {
    flex-direction: column;
    align-items: flex-start;
  }

  .hlp-game-modal-content {
    padding: 10px;
  }
}
