@font-face {
  font-family: "GMP Universe Vazirmatn";
  src: url("./fonts/Vazirmatn.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.gmp-universe-host,
.gu-shell,
.gu-shell * {
  box-sizing: border-box;
}

.gmp-universe-host {
  background: #050a12;
  color: #e7f0fa;
  font-family: "GMP Universe Vazirmatn", Vazirmatn, Tahoma, sans-serif;
}

.gu-shell {
  --gu-text: #e7f0fa;
  --gu-muted: #91a6ba;
  --gu-cyan: #58d6e8;
  --gu-accent: #58d6e8;
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  direction: rtl;
  color: var(--gu-text);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(22, 57, 85, 0.24), transparent 52%),
    linear-gradient(155deg, #091522 0%, #050a12 52%, #03070e 100%);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.gu-shell button,
.gu-shell input {
  font: inherit;
}

.gu-shell button {
  color: inherit;
}

.gu-canvas-wrap,
.gu-canvas,
.gu-orbits,
.gu-vignette,
.gu-label-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gu-canvas-wrap {
  z-index: 0;
  touch-action: none;
  cursor: grab;
}

.gu-canvas-wrap[data-dragging="true"] {
  cursor: grabbing;
}

.gu-canvas {
  display: block;
  outline: none;
  touch-action: none;
}

.gu-orbits {
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.gu-orbit-path {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: opacity 240ms ease, stroke-width 240ms ease;
}

.gu-vignette {
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(2, 5, 11, 0.2) 72%, rgba(2, 5, 11, 0.76) 120%),
    linear-gradient(180deg, rgba(3, 8, 15, 0.62) 0%, transparent 22%, transparent 72%, rgba(3, 8, 15, 0.48) 100%);
}

.gu-label-layer {
  z-index: 5;
  pointer-events: none;
}

.gu-planet-label {
  --planet-color: #58d6e8;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 10px 6px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(5, 10, 18, 0.08);
  box-shadow: none;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.9), 0 0 18px color-mix(in srgb, var(--planet-color) 28%, transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: pointer;
  pointer-events: auto;
  direction: ltr;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.gu-planet-label[data-visible="true"] {
  opacity: 1;
}

.gu-planet-label:hover,
.gu-planet-label:focus-visible,
.gu-planet-label[data-active="true"] {
  border-color: color-mix(in srgb, var(--planet-color) 58%, transparent);
  background: rgba(9, 21, 34, 0.5);
  box-shadow: 0 0 24px color-mix(in srgb, var(--planet-color) 15%, transparent);
  outline: none;
}

.gu-planet-label:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--planet-color) 36%, transparent);
}

.gu-label-abbr {
  color: var(--planet-color);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.gu-label-name {
  color: #e7f0fa;
  font-size: 12px;
  font-weight: 700;
  direction: rtl;
}

.gu-core-label {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: inherit;
  background: rgba(5, 12, 20, 0.12);
  text-align: center;
  direction: ltr;
  cursor: pointer;
  opacity: 0.86;
  will-change: transform;
  text-shadow: 0 0 18px rgba(88, 214, 232, 0.4);
}

.gu-core-label:hover,
.gu-core-label:focus-visible,
.gu-core-label[data-active="true"] {
  border-color: rgba(88, 214, 232, 0.38);
  background: rgba(8, 25, 38, 0.58);
  outline: none;
}

.gu-core-label strong {
  display: block;
  color: #eafcff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.gu-core-label span {
  display: block;
  margin-top: 2px;
  color: #8eb9c9;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.gu-core-name {
  direction: rtl;
  margin-top: 3px;
  color: #a9d8e6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.gu-top {
  position: absolute;
  z-index: 20;
  top: 0;
  inset-inline: 0;
  padding:
    calc(env(safe-area-inset-top, 0px) + 16px)
    calc(env(safe-area-inset-right, 0px) + 18px)
    0
    calc(env(safe-area-inset-left, 0px) + 18px);
  pointer-events: none;
}

.gu-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  max-width: 1440px;
  margin: 0 auto;
}

.gu-leading,
.gu-actions,
.gu-brand {
  display: flex;
  align-items: center;
}

.gu-leading {
  min-width: 0;
  gap: 11px;
}

.gu-brand {
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  direction: ltr;
  text-align: left;
}

.gu-brand-kicker {
  color: var(--gu-cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.24em;
  line-height: 1.4;
}

.gu-brand-title {
  margin-top: 2px;
  color: #e7f0fa;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  direction: rtl;
}

.gu-brand-subtitle {
  color: #718da5;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.gu-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  direction: rtl;
  pointer-events: auto;
}

.gu-icon-btn,
.gu-text-btn,
.gu-dock-btn,
.gu-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(151, 190, 215, 0.16);
  background: rgba(9, 21, 34, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 8px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, color 180ms ease;
}

.gu-icon-btn:hover,
.gu-text-btn:hover,
.gu-dock-btn:hover,
.gu-close-btn:hover,
.gu-icon-btn:focus-visible,
.gu-text-btn:focus-visible,
.gu-dock-btn:focus-visible,
.gu-close-btn:focus-visible {
  border-color: rgba(88, 214, 232, 0.5);
  background: rgba(16, 37, 54, 0.82);
  outline: none;
}

.gu-icon-btn:active,
.gu-text-btn:active,
.gu-dock-btn:active,
.gu-close-btn:active {
  transform: scale(0.96);
}

.gu-icon-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  pointer-events: auto;
}

.gu-text-btn {
  min-height: 42px;
  gap: 7px;
  padding: 0 12px;
  border-radius: 14px;
  color: #c5d5e4;
  font-size: 11px;
  font-weight: 800;
}

.gu-text-btn[data-active="true"],
.gu-dock-btn[data-active="true"] {
  color: #8deaf5;
  border-color: rgba(88, 214, 232, 0.44);
  background: rgba(29, 78, 94, 0.38);
}

.gu-icon-btn svg,
.gu-text-btn svg,
.gu-dock-btn svg,
.gu-close-btn svg,
.gu-explore svg,
.gu-result-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.gu-search-panel {
  position: absolute;
  z-index: 32;
  top: calc(env(safe-area-inset-top, 0px) + 72px);
  left: 50%;
  width: min(540px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 12px;
  border: 1px solid rgba(88, 214, 232, 0.22);
  border-radius: 20px;
  background: rgba(7, 17, 28, 0.9);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform-origin: top center;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.gu-search-panel[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.gu-search-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.gu-search-input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(138, 174, 199, 0.2);
  border-radius: 13px;
  outline: none;
  color: #e7f0fa;
  background: rgba(3, 10, 18, 0.74);
  font-size: 14px;
  direction: rtl;
  user-select: text;
}

.gu-search-input:focus {
  border-color: rgba(88, 214, 232, 0.62);
  box-shadow: 0 0 0 3px rgba(88, 214, 232, 0.08);
}

.gu-search-input::placeholder {
  color: #688299;
}

.gu-results {
  display: grid;
  gap: 6px;
  max-height: min(360px, 46vh);
  margin-top: 8px;
  overflow-y: auto;
}

.gu-results:empty {
  display: none;
}

.gu-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #dbe8f3;
  background: rgba(255, 255, 255, 0.025);
  text-align: right;
  cursor: pointer;
}

.gu-result:hover,
.gu-result:focus-visible {
  border-color: rgba(88, 214, 232, 0.24);
  background: rgba(88, 214, 232, 0.07);
  outline: none;
}

.gu-result-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  color: var(--result-color, #58d6e8);
  background: color-mix(in srgb, var(--result-color, #58d6e8) 10%, transparent);
}

.gu-result-copy {
  min-width: 0;
  flex: 1;
}

.gu-result-title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gu-result-meta {
  margin-top: 2px;
  color: #7f96aa;
  font-size: 10px;
  direction: ltr;
  text-align: right;
}

.gu-dock {
  position: absolute;
  z-index: 18;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(149, 184, 209, 0.16);
  border-radius: 18px;
  background: rgba(7, 16, 27, 0.66);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(-50%);
  direction: ltr;
  pointer-events: auto;
}

.gu-dock-btn {
  width: 39px;
  height: 39px;
  border-color: transparent;
  border-radius: 12px;
  color: #b7c9d8;
  background: transparent;
  box-shadow: none;
}

.gu-dock-separator {
  width: 1px;
  height: 20px;
  margin: 0 2px;
  background: rgba(153, 187, 211, 0.15);
}

.gu-hint {
  position: absolute;
  z-index: 12;
  right: calc(env(safe-area-inset-right, 0px) + 20px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
  display: flex;
  align-items: center;
  gap: 7px;
  color: #668096;
  font-size: 10px;
  font-weight: 600;
  pointer-events: none;
}

.gu-hint-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #58d6e8;
  box-shadow: 0 0 10px rgba(88, 214, 232, 0.5);
}

.gu-panel {
  --planet-color: #58d6e8;
  position: absolute;
  z-index: 25;
  left: calc(env(safe-area-inset-left, 0px) + 24px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100% - 48px));
  max-height: calc(100% - 124px);
  padding: 21px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--planet-color) 35%, rgba(144, 179, 203, 0.18));
  border-radius: 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--planet-color) 7%, transparent), transparent 44%),
    rgba(8, 19, 31, 0.82);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.46),
    0 0 42px color-mix(in srgb, var(--planet-color) 8%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.98);
  transition: opacity 260ms ease, visibility 260ms ease, transform 320ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.gu-panel[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.gu-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--planet-color), transparent);
  opacity: 0.8;
}

.gu-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 4px, rgba(160, 224, 240, 0.08) 5px);
}

.gu-panel > * {
  position: relative;
  z-index: 1;
}

.gu-panel-head,
.gu-panel-description,
.gu-stats,
.gu-explore {
  flex-shrink: 0;
}

.gu-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gu-panel-heading {
  min-width: 0;
}

.gu-panel-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--planet-color);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  direction: ltr;
}

.gu-panel-eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--planet-color);
  box-shadow: 0 0 9px var(--planet-color);
}

.gu-panel-title {
  margin: 7px 0 0;
  color: #f1f7fc;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.45;
}

.gu-panel-en {
  margin-top: 1px;
  color: #829aae;
  font-size: 11px;
  font-weight: 600;
  direction: ltr;
  text-align: right;
}

.gu-close-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  color: #9db0c0;
}

.gu-panel-description {
  margin: 15px 0 0;
  color: #b4c5d3;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.95;
}

.gu-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.gu-stat {
  padding: 11px 12px;
  border: 1px solid rgba(144, 178, 202, 0.12);
  border-radius: 14px;
  background: rgba(2, 9, 16, 0.28);
}

.gu-stat-value {
  color: #edf8fc;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
}

.gu-stat-label {
  margin-top: 2px;
  color: #7890a4;
  font-size: 10px;
  font-weight: 700;
}


.gu-lesson-browser {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 108px;
  margin-top: 15px;
  overflow: hidden;
}

.gu-lesson-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #c9d8e4;
  font-size: 11px;
  font-weight: 800;
}

.gu-lesson-heading span:last-child {
  color: var(--planet-color);
  font-size: 10px;
  white-space: nowrap;
}

.gu-lesson-list {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 8px;
  padding-left: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--planet-color) 45%, transparent) rgba(255, 255, 255, 0.04);
  user-select: text;
}

.gu-lesson-list::-webkit-scrollbar {
  width: 5px;
}

.gu-lesson-list::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: color-mix(in srgb, var(--planet-color) 45%, transparent);
}

.gu-lesson-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-bottom: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(144, 178, 202, 0.11);
  border-radius: 12px;
  color: #dce8f1;
  background: rgba(2, 9, 16, 0.32);
  text-align: right;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.gu-lesson-item:hover,
.gu-lesson-item:focus-visible {
  border-color: color-mix(in srgb, var(--planet-color) 52%, transparent);
  background: color-mix(in srgb, var(--planet-color) 8%, rgba(2, 9, 16, 0.5));
  outline: none;
}

.gu-lesson-item:active {
  transform: translateY(1px);
}

.gu-lesson-code {
  color: var(--planet-color);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  direction: ltr;
  white-space: nowrap;
}

.gu-lesson-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.gu-lesson-title {
  color: #e5eef5;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.75;
}

.gu-lesson-en {
  overflow: hidden;
  color: #71899d;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.5;
  direction: ltr;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gu-lesson-arrow {
  display: inline-flex;
  color: var(--planet-color);
  transform: rotate(180deg);
}

.gu-lesson-arrow svg {
  width: 15px;
  height: 15px;
}

.gu-explore {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--planet-color) 64%, transparent);
  border-radius: 15px;
  color: #041016;
  background: linear-gradient(135deg, color-mix(in srgb, var(--planet-color) 92%, white), var(--planet-color));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--planet-color) 16%, transparent);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.gu-explore:hover,
.gu-explore:focus-visible {
  filter: brightness(1.06);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--planet-color) 25%, transparent);
  outline: none;
}

.gu-explore:active {
  transform: translateY(1px);
}

.gu-loading {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, rgba(5, 10, 18, 0.45), rgba(5, 10, 18, 0.9) 72%);
  transition: opacity 320ms ease, visibility 320ms ease;
  pointer-events: none;
}

.gu-loading-progress {
  color: #58d6e8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.gu-loading[data-done="true"] {
  opacity: 0;
  visibility: hidden;
}

.gu-loading-inner {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  color: #7898aa;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.gu-loading-ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(88, 214, 232, 0.14);
  border-top-color: #58d6e8;
  border-radius: 50%;
  animation: gu-spin 1.2s linear infinite;
}

.gu-toast {
  position: absolute;
  z-index: 50;
  top: calc(env(safe-area-inset-top, 0px) + 82px);
  left: 50%;
  max-width: calc(100% - 40px);
  padding: 10px 15px;
  border: 1px solid rgba(88, 214, 232, 0.24);
  border-radius: 13px;
  color: #cfe4ee;
  background: rgba(8, 21, 33, 0.9);
  font-size: 12px;
  transform: translateX(-50%);
  pointer-events: none;
}

.gmp-universe-legacy-switch {
  position: absolute;
  z-index: 70;
  left: calc(env(safe-area-inset-left, 0px) + 16px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(88, 214, 232, 0.34);
  border-radius: 14px;
  color: #a9edf4;
  background: rgba(7, 20, 31, 0.88);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font: 800 12px "GMP Universe Vazirmatn", Vazirmatn, Tahoma, sans-serif;
  cursor: pointer;
}

@keyframes gu-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .gu-hint {
    display: none;
  }

  .gu-panel {
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 76px);
    width: min(480px, calc(100% - 24px));
    transform: translateX(-50%) translateY(18px) scale(0.98);
  }

  .gu-panel[data-open="true"] {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .gu-top {
    padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
    padding-inline: calc(env(safe-area-inset-left, 0px) + 10px);
  }

  .gu-topbar {
    gap: 7px;
  }

  .gu-leading {
    gap: 7px;
  }

  .gu-brand-kicker {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .gu-brand-title {
    font-size: 14px;
  }

  .gu-brand-subtitle,
  .gu-action-label {
    display: none;
  }

  .gu-actions {
    flex-wrap: nowrap;
    gap: 5px;
  }

  .gu-icon-btn,
  .gu-text-btn {
    width: 38px;
    height: 38px;
    min-height: 38px;
    flex-basis: 38px;
    padding: 0;
    border-radius: 12px;
  }

  .gu-text-btn {
    gap: 0;
  }

  .gu-search-panel {
    top: calc(env(safe-area-inset-top, 0px) + 59px);
    width: calc(100% - 20px);
    padding: 9px;
    border-radius: 17px;
  }

  .gu-panel {
    max-height: min(48vh, 440px);
    padding: 16px;
    overflow-y: auto;
    border-radius: 21px;
  }

  .gu-panel-title {
    font-size: 20px;
  }

  .gu-panel-description {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.85;
  }

  .gu-stats {
    margin-top: 11px;
  }

  .gu-stat {
    padding: 8px 10px;
  }

  .gu-stat-value {
    font-size: 17px;
  }

  .gu-lesson-browser {
    min-height: 96px;
    margin-top: 10px;
  }

  .gu-lesson-item {
    min-height: 46px;
    padding: 7px 9px;
  }

  .gu-lesson-en {
    display: none;
  }

  .gu-explore {
    min-height: 44px;
    margin-top: 11px;
  }

  .gu-dock {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    padding: 5px;
    border-radius: 16px;
  }

  .gu-dock-btn {
    width: 37px;
    height: 37px;
  }

  .gu-planet-label {
    min-height: 34px;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 10px;
  }

  .gu-label-abbr,
  .gu-label-name {
    font-size: 10px;
  }

  .gu-core-label strong {
    font-size: 11px;
  }

  .gu-core-label span {
    font-size: 7px;
  }
}

@media (max-width: 390px) {
  .gu-brand-title {
    display: none;
  }

  .gu-panel {
    max-height: 48vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gu-shell *,
  .gu-shell *::before,
  .gu-shell *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* The selected planet emblem stays unobstructed; its names remain in the detail panel. */
.gu-shell[data-selected="true"] .gu-planet-label[data-active="true"] {
  opacity: 0;
  pointer-events: none;
}

.gu-shell[data-selected="true"] .gu-core-label {
  opacity: 0;
  pointer-events: none;
}

/* 1.5.0 — free-floating department web and interactive lesson constellations. */
.gu-web-path {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: stroke-opacity 180ms ease;
}

.gu-lesson-constellation {
  --planet-color: #58d6e8;
  position: absolute;
  z-index: 7;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.gu-lesson-constellation[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.gu-lesson-web,
.gu-lesson-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.gu-lesson-web-path {
  fill: none;
  stroke: var(--planet-color);
  stroke-width: 0.72;
  stroke-opacity: 0.25;
  stroke-linecap: round;
  stroke-dasharray: 2 4;
  vector-effect: non-scaling-stroke;
}

.gu-lesson-star {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 38px;
  min-height: 38px;
  padding: 3px;
  border: 0;
  border-radius: 9px;
  color: #eaf8ff;
  background: rgba(2, 8, 15, 0.08);
  cursor: pointer;
  pointer-events: auto;
  direction: ltr;
  will-change: transform;
  animation: gu-star-arrive 280ms ease-out both;
  -webkit-tap-highlight-color: transparent;
}

.gu-star-dot {
  width: 13px;
  height: 13px;
  background: #f4fdff;
  clip-path: polygon(50% 0%, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0% 50%, 39% 36%);
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px var(--planet-color));
  transition: transform 150ms ease, background 150ms ease;
}

.gu-star-code {
  padding: 1px 3px;
  border-radius: 4px;
  color: #c9e0eb;
  background: rgba(2, 8, 15, 0.5);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 1px 4px #000;
}

.gu-lesson-star:hover,
.gu-lesson-star:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--planet-color) 12%, rgba(2, 8, 15, 0.7));
}

.gu-lesson-star:hover .gu-star-dot,
.gu-lesson-star:focus-visible .gu-star-dot {
  transform: scale(1.35);
  background: var(--planet-color);
}

.gu-lesson-star:focus-visible .gu-star-code {
  color: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--planet-color) 50%, transparent);
}

.gu-constellation-caption {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 82px);
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  width: min(420px, calc(100% - 40px));
  transform: translateX(-50%);
  color: #d6e9f2;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 8px #000;
}

.gu-constellation-caption strong {
  color: var(--planet-color);
  font-size: 12px;
  font-weight: 900;
}

.gu-constellation-caption span {
  color: #7f9cad;
  font-size: 9px;
  font-weight: 600;
}

@keyframes gu-star-arrive {
  from { opacity: 0; filter: blur(2px); }
  to { opacity: 1; filter: blur(0); }
}

@media (max-width: 640px) {
  .gu-lesson-star {
    min-width: 29px;
    min-height: 31px;
    gap: 2px;
    padding: 2px;
  }

  .gu-star-dot {
    width: 10px;
    height: 10px;
  }

  .gu-star-code {
    padding: 0 2px;
    font-size: 7px;
  }

  .gu-constellation-caption {
    top: calc(env(safe-area-inset-top, 0px) + 61px);
  }

  .gu-constellation-caption strong {
    font-size: 10px;
  }

  .gu-constellation-caption span {
    display: none;
  }
}
