html,
body {
  margin: 0;
  padding: 0;
  background: #111;
  overflow-x: clip;
  max-width: 100%;
}

.canvas {
  width: 100%;
  height: auto;
  min-height: 100vh;
  padding: 0 clamp(14px, 2vw, 28px) clamp(14px, 2vw, 28px) clamp(14px, 2vw, 28px);
  box-sizing: border-box;
  background: #f5f7fa;
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    system-ui,
    sans-serif;
  overflow: visible;
  position: relative;
}

.global-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px 20px 4px;
  width: 100%;
  box-sizing: border-box;
}

.app-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 8px 18px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.app-logo:hover {
  background: rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.app-logo-text {
  font-family: Pretendard, sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-btn {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  color: rgba(15, 23, 42, 0.85);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.top-bar-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.login-accent {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.login-accent:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  color: #ffffff;
}

.header {
  height: 145px;
  border-radius: 24px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #0f172a;
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.04),
    0 2px 8px rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.header.level-1 {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.header.level-2 {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.header.level-3 {
  background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%);
}

.header.level-4 {
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -5%,
      rgba(255, 255, 255, 0.8) 0%,
      transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 110%,
      rgba(56, 189, 248, 0.08) 0%,
      transparent 60%);
  pointer-events: none;
}

.header::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(56, 189, 248, 0.05) 0%,
      transparent 70%);
  pointer-events: none;
}

.title {
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  position: relative;
}

.title .verb {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #2563eb 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
}

.title .titleNum {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #8b5cf6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.2));
}

.levelIndicator {
  position: absolute;
  right: 28px;
  bottom: 20px;
  font-size: 14px;
  font-weight: 750;
  color: rgba(15, 23, 42, 0.85);
  background: rgba(15, 23, 42, 0.05);
  padding: 6px 14px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}

.pageLogo {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 10;
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.pageLogo:hover {
  transform: scale(1.02);
}

.nav-logo-text {
  font-family: Pretendard, sans-serif;
  font-weight: 850;
  font-size: 18px;
  color: rgba(15, 23, 42, 0.85);
  letter-spacing: -0.2px;
}

.subtitle {
  font-size: clamp(12px, 1.35vw, 17px);
  font-weight: 550;
  color: rgba(15, 23, 42, 0.55);
  text-align: center;
  padding: 0 24px;
  letter-spacing: 1px;
  position: relative;
}

.btnHint {
  opacity: 0.85;
  font-weight: 650;
}

.btnDisabled {
  opacity: 0.45;
  pointer-events: none;
}

.grid {
  margin-top: clamp(14px, 2vw, 24px);
  display: grid;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(auto-fit,
      minmax(min(100%, max(480px, calc(33.333% - 16px))), 1fr));
  grid-auto-rows: auto;
  gap: clamp(12px, 1.6vw, 22px);
}

.card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.bar {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.descKo {
  background: rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 10px 16px;
  font-size: 16px;
  color: rgba(15, 23, 42, 0.75);
  font-weight: 500;
}

.body {
  padding: 16px 16px 32px 16px;
  display: grid;
  grid-template-columns: clamp(110px, 100% - 445px, 256px) 1fr;
  align-items: start;
  gap: 25px;
}

.slotWrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.slot {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: rgba(15, 23, 42, 0.06);
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slotPlaceholder {
  font-size: 14px;
  color: rgba(71, 85, 105, 0.55);
  font-weight: 650;
  padding: 0 10px;
  text-align: center;
  white-space: pre-line;
}

.slotLabel {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 650;
  color: rgba(71, 85, 105, 0.85);
  white-space: nowrap;
}

ul {
  margin: 0;
  padding-left: 0;
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.55;
  list-style: none;
}

li {
  margin: 0 0 4px 0;
  padding: 10px 14px;
  border-radius: 8px;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

li:last-child {
  margin-bottom: 0;
}

li:nth-child(even) {
  background-color: rgba(15, 23, 42, 0.035);
}

li.playing-sentence {
  position: relative;
  z-index: 10;
  background-color: rgba(253, 224, 71, 0.8) !important;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.9);
}

.koLine {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 400;
  color: rgba(15, 23, 42, 0.68);
  line-height: 1.45;
  list-style: none;
}

.koLine::marker {
  content: "";
}

.tip {
  width: max-content;
  margin: -5px 14px 12px auto;
  font-size: 14px;
  font-weight: 650;
  color: rgba(71, 85, 105, 0.75);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.itemWrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.playBtn {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.8);
}

.playBtn:hover {
  background: rgba(15, 23, 42, 0.15);
  border-color: rgba(15, 23, 42, 0.2);
  transform: scale(1.05);
}

.playBtn:active {
  transform: scale(0.95);
}

.playBtn svg {
  width: 14px;
  height: 14px;
  fill: rgba(15, 23, 42, 0.6);
  margin-top: 1px;
}

.playBtn.iconOnly {
  width: 34px;
  padding: 0;
  margin-left: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.playBtn.iconOnly svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  margin: 0;
}

.playBtn.iconOnly:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.playBtn.iconOnly.playing {
  background: #fff;
  color: #2563eb;
}

.playBtn.iconOnly.playing svg {
  fill: #2563eb;
}

.playBtn.playing svg {
  fill: #2563eb;
}

.playBtn.playing {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
  color: #2563eb;
}

.stopBtn {
  margin-left: -5px;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.stopBtn svg {
  fill: #ef4444 !important;
}

.stopBtn:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  transform: scale(1.05);
}

/* soft theme colors */
.bg-red {
  background: #fbe9ea;
}

.bar-red {
  background: #d7262e;
}

.bg-green {
  background: #e8f7ed;
}

.bar-green {
  background: #159a52;
}

.bg-purple {
  background: #eeeafe;
}

.bar-purple {
  background: #6f3fe5;
}

.bg-pink {
  background: #fce7ef;
}

.bar-pink {
  background: #db1a4a;
}

.bg-cyan {
  background: #e6faff;
}

.bar-cyan {
  background: #0a86a8;
}

.bg-orange {
  background: #fff1e2;
}

.bar-orange {
  background: #e85a16;
}

.bg-emerald {
  background: #eaf7f0;
}

.bar-emerald {
  background: #137a46;
}

.bg-violet {
  background: #f1eafe;
}

.bar-violet {
  background: #8a34e6;
}

.bg-blue {
  background: #eaf2ff;
}

.bar-blue {
  background: #2a63e6;
}

/* Verb highlight (uses --hl) */
.verbHL {
  font-weight: 800;
  background: linear-gradient(transparent 60%, var(--hl, #fde68a) 60%);
  padding: 0 2px;
  border-radius: 4px;
}

/* ── Menu + Navi Bar ── */
.naviBar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
  position: sticky;
  top: 12px;
  z-index: 1000;
}

/* 공통 버튼 베이스 */
.naviBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  border: none;
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.75);
  transition:
    background 0.18s,
    color 0.18s;
  user-select: none;
}

.naviBtn svg {
  width: 18px;
  height: 18px;
}

#optionsIcon {
  width: 22px;
  height: 22px;
}

.naviBtn:hover {
  background: rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.95);
}

.naviBtn:active {
  transform: translateY(1px);
}

.naviBtn.disabled {
  opacity: 0.28;
  pointer-events: none;
}

.naviBtn.active {
  background: #1a1a2e;
  color: #fff;
}

.naviBtn.active:hover {
  background: #2d2d4e;
  color: #fff;
}

/* 구분선 */
.naviSep {
  width: 1px;
  height: 26px;
  background: rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
}

/* Options Menu (Sub-Navigation Bar) */
.options-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.options-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: fit-content;
  margin: 0 16px 0 auto;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 0 24px 24px;
  box-sizing: border-box;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    padding 0.3s ease;
  pointer-events: none;
  position: sticky;
  top: 66px;
  /* Sticks right underneath the main naviBar */
  z-index: 999;
}

.options-panel.show {
  max-height: 80px;
  padding: 12px 16px;
  opacity: 1;
  pointer-events: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-top: none;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.optionBtn {
  background: rgba(15, 23, 42, 0.06);
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 999px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.75);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  user-select: none;
}

.optionBtn:hover {
  background: rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.95);
}

/* 도트 트랙 (현재 텍스트용) */
.naviTrack {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.naviTrack.currentVerbDisplay {
  font-weight: 800;
  font-size: 18px;
  color: var(--nav-color, #0f172a);
  letter-spacing: 1px;
  background: var(--nav-bg, rgba(15, 23, 42, 0.04));
  padding: 6px 20px;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
  overflow: hidden;
  text-shadow: 0 0 12px var(--nav-text-shadow, transparent);
}

.nav-verb-inner {
  display: inline-block;
  white-space: nowrap;
}

.naviTrack.verb-overflow .nav-verb-inner {
  animation: verb-marquee 5s ease-in-out infinite;
}

@keyframes verb-marquee {
  0%, 20%  { transform: translateX(0); }
  70%, 90% { transform: translateX(calc(var(--marquee-dist, 60px) * -1)); }
  100%     { transform: translateX(0); }
}

.nav-verbnum {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.5;
  margin-right: 7px;
  letter-spacing: 0;
}

#navPrev svg,
#navNext svg {
  width: 22px;
  height: 22px;
}

.nav-level-1 {
  --nav-color: #38bdf8;
  --nav-bg: rgba(56, 189, 248, 0.08);
  --nav-shadow: rgba(56, 189, 248, 0.15);
  --nav-text-shadow: rgba(56, 189, 248, 0.2);
}

.nav-level-2 {
  --nav-color: #10b981;
  --nav-bg: rgba(16, 185, 129, 0.08);
  --nav-shadow: rgba(16, 185, 129, 0.15);
  --nav-text-shadow: rgba(16, 185, 129, 0.2);
}

.nav-level-3 {
  --nav-color: #fbbf24;
  --nav-bg: rgba(251, 191, 36, 0.08);
  --nav-shadow: rgba(251, 191, 36, 0.15);
  --nav-text-shadow: rgba(251, 191, 36, 0.2);
}

.nav-level-4 {
  --nav-color: #f87171;
  --nav-bg: rgba(248, 113, 113, 0.08);
  --nav-shadow: rgba(248, 113, 113, 0.15);
  --nav-text-shadow: rgba(248, 113, 113, 0.2);
}

/* Page Footer */
.page-footer {
  margin-top: 60px;
  padding: 40px 20px;
  text-align: center;
  color: rgba(15, 23, 42, 0.4);
  font-size: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.page-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 30%;
  right: 30%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(37, 99, 235, 0.4),
      transparent);
}

.page-footer p {
  margin: 0;
  font-weight: 500;
}

.page-footer .subtitle {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.3);
  letter-spacing: 0.5px;
}

/* Hide Images Mode */
body.hide-images .slotWrap {
  display: none !important;
}

body.hide-images .body {
  grid-template-columns: 1fr;
}

body.hide-images .itemWrap {
  width: 100%;
}

@media (max-width: 768px) {
  .naviBtnLabel {
    display: none !important;
  }

  .naviBar {
    padding: 8px 12px;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
  }

  .naviBtn {
    padding: 8px;
    gap: 0;
  }

  #navPrev svg,
  #navNext svg {
    width: 16px;
    height: 16px;
  }

  .naviTrack.currentVerbDisplay {
    padding: 6px 14px;
    font-size: 15px;
  }

  .naviSep {
    margin: 0 -2px;
  }

  .options-panel {
    flex-wrap: wrap;
    justify-content: center;
    width: calc(100% - 24px);
    margin: 0 auto;
    border-radius: 0 0 16px 16px;
  }

  .options-panel.show {
    max-height: 180px;
  }

  .optionBtn {
    font-size: 13px;
    padding: 6px 12px;
  }
}

@media (max-width: 1100px) {
  .header {
    height: auto;
    padding: 20px 14px;
  }
}

@media (max-width: 768px) {
  .header {
    padding-top: 32px;
    padding-bottom: 24px;
    gap: 12px;
  }

  .pageLogo {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 4px;
  }

  .levelIndicator {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 4px;
  }
}

@media (max-width: 640px) {
  .canvas {
    padding: 0 4px 14px 4px;
    overflow-x: clip;
  }

  .global-top-bar {
    gap: 6px;
    padding: 12px 2px 16px 2px;
  }

  .app-logo {
    padding: 7px 12px;
    min-width: 0;
    flex-shrink: 1;
  }

  .app-logo-text {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 38vw;
  }

  .top-bar-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .top-bar-btn {
    font-size: 12px;
    padding: 7px 12px;
    white-space: nowrap;
  }

  .bar {
    font-size: 20px;
    height: 46px;
  }

  ul {
    font-size: 20px;
  }

  .koLine {
    font-size: 15px;
  }

  .slot {
    width: 115px;
    height: 115px;
  }

  .body {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 16px;
  }

  body.hide-images .body {
    display: block;
  }

  .slotWrap {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 10px;
  }

  .playBtn {
    margin-top: 0;
  }
}

/* =========================================
   Global Modals Architecture
========================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: 24px;
  width: 90%;
  max-width: 400px;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: none;
}

.modal-overlay.show .modal-content.active {
  display: block;
  transform: translateY(0);
}

.modal-large {
  max-width: 600px;
}

.modal-fullscreen {
  max-width: 1000px;
  height: 85vh;
  flex-direction: column;
}

.modal-overlay.show .modal-content.modal-fullscreen.active {
  display: flex;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.modal-close {
  background: none;
  border: none;
  padding: 8px;
  font-size: 18px;
  color: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ef4444;
}

.modal-body {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.75);
}

.modal-body h3 {
  margin-top: 0;
  color: #2563eb;
}

.modal-fullscreen .modal-body {
  overflow-y: auto;
  flex: 1;
  padding-right: 8px;
}

/* Verb Menu Grid Layout */
.verb-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 24px;
}

.level-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 8px;
}

/* Level Headers */
.menu-level-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.menu-level-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}

.menu-level-desc {
  font-size: 14px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.5);
}

/* Specific Level Colors */
.badge-level-1 {
  color: #0284c7;
  background: rgba(56, 189, 248, 0.15);
}

.badge-level-2 {
  color: #059669;
  background: rgba(16, 185, 129, 0.15);
}

.badge-level-3 {
  color: #d97706;
  background: rgba(251, 191, 36, 0.2);
}

.badge-level-4 {
  color: #dc2626;
  background: rgba(248, 113, 113, 0.15);
}

/* Apply level colors to verb items */
.item-level-1 {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.04);
}

.item-level-2 {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}

.item-level-3 {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.06);
}

.item-level-4 {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.04);
}

.item-level-1 .verb-menu-num {
  color: #0284c7;
  background: rgba(56, 189, 248, 0.15);
}

.item-level-2 .verb-menu-num {
  color: #059669;
  background: rgba(16, 185, 129, 0.15);
}

.item-level-3 .verb-menu-num {
  color: #d97706;
  background: rgba(251, 191, 36, 0.2);
}

.item-level-4 .verb-menu-num {
  color: #dc2626;
  background: rgba(248, 113, 113, 0.15);
}

.verb-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.verb-menu-num {
  font-size: 10px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.5);
  background: rgba(15, 23, 42, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
}

.verb-menu-name {
  color: #0f172a;
  font-weight: 750;
  font-size: 13px;
  white-space: nowrap;
  letter-spacing: -0.3px;
}

.verb-menu-item:hover {
  background: #3b82f6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
}