:root {
  --lq-bg-sky: #bdeeff;
  --lq-blue-50: #eef9ff;
  --lq-blue-100: #d9efff;
  --lq-blue-300: #8fc1f4;
  --lq-blue-600: #2f76d2;
  --lq-ink: #17345f;
  --lq-muted: #5f789d;

  --lq-white-glass: rgba(255, 255, 255, 0.84);
  --lq-white-solid: #ffffff;

  --lq-gold: #ffc24b;
  --lq-green: #86df9a;
  --lq-danger: #ff7a90;

  --lq-radius-small: 10px;
  --lq-radius-medium: 14px;
  --lq-radius-large: 20px;
  --lq-radius-xl: 24px;
  --lq-radius-pill: 999px;

  --lq-shadow-soft: 0 8px 18px rgba(65, 129, 196, 0.14);
  --lq-shadow-panel: 0 18px 34px rgba(38, 88, 145, 0.2);

  --lq-border-blue: 2px solid var(--lq-blue-300);
  --lq-font-sans: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lq-bottom-safe-area: calc(100px + env(safe-area-inset-bottom, 0px));
}

.GlassPanel,
.lq-glass-panel {
  background: var(--lq-white-glass);
  border: var(--lq-border-blue);
  border-radius: var(--lq-radius-xl);
  box-shadow: var(--lq-shadow-panel);
  color: var(--lq-ink);
}

.GameCard,
.lq-card,
.lq-game-card {
  background: var(--lq-white-solid);
  border: var(--lq-border-blue);
  border-radius: var(--lq-radius-large);
  box-shadow: var(--lq-shadow-soft);
  color: var(--lq-ink);
}

.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-icon,
.lq-btn,
.lq-btn-primary,
.lq-btn-secondary,
.lq-btn-success,
.lq-btn-danger,
.lq-btn-icon {
  min-height: 56px;
  border-radius: 18px;
  font-family: var(--lq-font-sans);
  font-weight: 700;
}

.btn-primary,
.lq-btn-primary {
  color: #4b3107;
  border: 2px solid #d59a28;
  background: linear-gradient(180deg, #ffe28a, var(--lq-gold));
  box-shadow: var(--lq-shadow-soft);
}

.btn-secondary,
.lq-btn-secondary {
  color: var(--lq-ink);
  border: var(--lq-border-blue);
  background: linear-gradient(180deg, var(--lq-white-solid), var(--lq-blue-50));
  box-shadow: var(--lq-shadow-soft);
}

.btn-success,
.lq-btn-success {
  color: #143f3a;
  border: 2px solid #55bd76;
  background: linear-gradient(180deg, #f2fff5, var(--lq-green));
  box-shadow: var(--lq-shadow-soft);
}

.btn-danger,
.lq-btn-danger {
  color: #6d2030;
  border: 2px solid #df667c;
  background: linear-gradient(180deg, #fff1f4, var(--lq-danger));
  box-shadow: var(--lq-shadow-soft);
}

.btn-icon,
.lq-btn-icon {
  width: 56px;
  min-width: 56px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: var(--lq-ink);
  border: var(--lq-border-blue);
  background: linear-gradient(180deg, var(--lq-white-solid), var(--lq-blue-50));
  box-shadow: var(--lq-shadow-soft);
}

.ProgressBar,
.lq-progress {
  height: 12px;
  overflow: hidden;
  border: 2px solid rgba(143, 193, 244, 0.72);
  border-radius: var(--lq-radius-pill);
  background: rgba(224, 240, 255, 0.88);
  box-shadow: inset 0 1px 2px rgba(57, 96, 150, 0.12);
}

.ProgressBar-fill,
.lq-progress-fill {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #74d99b, #72b6ff);
}

.Chip,
.Tag,
.lq-chip,
.lq-tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1.5px solid rgba(143, 193, 244, 0.82);
  border-radius: var(--lq-radius-pill);
  color: var(--lq-blue-600);
  background: rgba(255, 255, 255, 0.82);
  font-family: var(--lq-font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.lq-topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--lq-white-glass);
  border: var(--lq-border-blue);
  border-radius: var(--lq-radius-xl);
  box-shadow: var(--lq-shadow-soft);
  color: var(--lq-ink);
}

.lq-topbar-brand,
.lq-topbar-title-group,
.lq-topbar-status,
.lq-topbar-actions {
  min-width: 0;
}

.lq-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lq-topbar-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.lq-topbar-title-group {
  display: grid;
  gap: 2px;
}

.lq-topbar-title {
  margin: 0;
  color: var(--lq-ink);
  font-family: var(--lq-font-sans);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.lq-topbar-subtitle {
  margin: 0;
  color: var(--lq-muted);
  font-family: var(--lq-font-sans);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.lq-topbar-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  max-width: 42%;
  padding: 6px 12px;
  color: var(--lq-blue-600);
  font-family: var(--lq-font-sans);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1.5px solid rgba(143, 193, 244, 0.82);
  border-radius: var(--lq-radius-pill);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.lq-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.lq-icon-btn,
.lq-topbar-action {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--lq-ink);
  border: var(--lq-border-blue);
  border-radius: var(--lq-radius-medium);
  background: linear-gradient(180deg, var(--lq-white-solid), var(--lq-blue-50));
  box-shadow: var(--lq-shadow-soft);
  cursor: pointer;
}

.lq-icon-btn img,
.lq-topbar-action img,
.lq-icon-btn svg,
.lq-topbar-action svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}

.lq-icon-btn:hover,
.lq-topbar-action:hover,
.lq-icon-btn:focus-visible,
.lq-topbar-action:focus-visible {
  border-color: var(--lq-blue-600);
  background: linear-gradient(180deg, #ffffff, #e7f5ff);
  transform: translateY(-1px);
}

.lq-topbar--compact {
  min-height: 72px;
  padding: 10px 14px;
  border-radius: var(--lq-radius-large);
}

.lq-topbar--compact .lq-topbar-icon {
  width: 40px;
  height: 40px;
}

.lq-topbar--compact .lq-topbar-title {
  font-size: 19px;
}

.lq-topbar--compact .lq-topbar-subtitle {
  font-size: 12px;
}

.lq-bottom-nav {
  background: rgba(255, 255, 255, 0.9);
  border: var(--lq-border-blue);
  box-shadow: 0 -4px 18px rgba(71, 128, 190, 0.16);
}

.lq-bottom-nav .active,
.lq-bottom-nav .is-active {
  color: var(--lq-ink);
  border-color: var(--lq-blue-300);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--lq-shadow-soft);
}

.lq-safe-bottom {
  padding-bottom: var(--lq-bottom-safe-area);
}

@media (max-width: 540px) {
  :root {
    --lq-current-breakpoint: mobile;
  }

  .lq-topbar {
    min-height: 70px;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--lq-radius-large);
  }

  .lq-topbar-brand {
    gap: 9px;
  }

  .lq-topbar-icon {
    width: 40px;
    height: 40px;
  }

  .lq-topbar-title {
    font-size: 18px;
  }

  .lq-topbar-subtitle {
    font-size: 12px;
  }

  .lq-topbar-status {
    display: none;
  }

  .lq-topbar-actions {
    gap: 6px;
  }

  .lq-icon-btn,
  .lq-topbar-action {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 13px;
  }

  .lq-icon-btn img,
  .lq-topbar-action img,
  .lq-icon-btn svg,
  .lq-topbar-action svg {
    width: 22px;
    height: 22px;
  }

  .lq-responsive-shell {
    padding-bottom: var(--lq-bottom-safe-area);
  }
}

@media (min-width: 541px) and (max-width: 1024px) {
  :root {
    --lq-current-breakpoint: tablet;
  }

  .lq-topbar {
    min-height: 80px;
    padding: 12px 16px;
  }

  .lq-topbar-title {
    font-size: 21px;
  }
}

@media (min-width: 1025px) {
  :root {
    --lq-current-breakpoint: desktop;
  }
}

.lq-learning-report-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(22, 58, 104, 0.36);
  backdrop-filter: blur(10px);
}

.lq-learning-report-modal[hidden] {
  display: none !important;
}

.lq-learning-report-dialog {
  width: min(1020px, calc(100vw - 28px));
  height: min(780px, calc(100dvh - 28px));
  overflow: hidden;
  border: 2px solid var(--lq-blue-300);
  border-radius: var(--lq-radius-xl);
  background: var(--lq-white-glass);
  box-shadow: var(--lq-shadow-panel);
}

.lq-learning-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(143, 193, 244, 0.62);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(232, 247, 255, 0.92));
}

.lq-learning-report-head p {
  margin: 0;
  color: var(--lq-blue-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lq-learning-report-head strong {
  display: block;
  margin-top: 2px;
  color: var(--lq-ink);
  font-size: 20px;
  line-height: 1.1;
}

.lq-learning-report-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 42px;
  padding: 8px 16px;
  color: #17345f;
  font: inherit;
  font-weight: 900;
  border: 2px solid rgba(242, 178, 68, 0.95);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff5cf, var(--lq-gold));
  box-shadow: 0 6px 12px rgba(206, 146, 40, 0.18);
  cursor: pointer;
}

.lq-learning-report-frame {
  display: block;
  width: 100%;
  height: calc(100% - 62px);
  border: 0;
  background: #eaf7ff;
}

@media (max-width: 540px) {
  .lq-learning-report-modal {
    padding: 8px;
  }

  .lq-learning-report-dialog {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .lq-learning-report-head {
    min-height: 56px;
    padding: 9px 10px;
  }

  .lq-learning-report-head strong {
    font-size: 17px;
  }

  .lq-learning-report-head p {
    font-size: 11px;
  }

  .lq-learning-report-close {
    min-width: 64px;
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 13px;
  }

  .lq-learning-report-frame {
    height: calc(100% - 56px);
  }
}
