#app {
  grid-template-columns: minmax(0, 1fr) !important;
}

.panel {
  display: none !important;
}

.hud-menu .hud-group-title {
  margin: 0 0 6px 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.hud-menu .hud-stack {
  display: grid;
  gap: 8px;
}

.hud-menu .hud-field {
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.hud-menu .hud-field input[type="range"],
.hud-menu .hud-field select {
  width: 100%;
}

.hud-menu .hud-field select {
  color: #101624;
  background: #ffffff;
  border: 1px solid #7f8faa;
}

.hud-menu .hud-field select option {
  color: #101624;
  background: #ffffff;
}

.hud-menu .hud-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hud-menu .hud-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hud-menu .hud-inline input[type="color"] {
  width: 38px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
}

.hud-menu .hud-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hud-menu .hud-menu-btn {
  width: 100%;
}

.hud-menu .hud-prompt {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(115, 170, 215, 0.5);
  border-radius: 10px;
  background: rgba(13, 21, 34, 0.62);
  color: #edf4ff;
  font-size: 12px;
  line-height: 1.3;
}

.hud-menu .hud-timer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.hud-btn.import input[type="file"] {
  display: none;
}

.viewport-bottom-presets {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 35;
  pointer-events: auto;
}

.viewport-fov-slider {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 35;
  width: 84px;
  padding: 14px 10px;
  border: 1px solid rgba(115, 170, 215, 0.5);
  border-radius: 14px;
  background: rgba(9, 16, 28, 0.82);
  color: #e8f1ff;
  display: grid;
  gap: 12px;
  justify-items: center;
  align-items: center;
  transform: translateY(-50%);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.viewport-fov-label {
  display: grid;
  gap: 2px;
  text-align: center;
  font-size: 10px;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewport-fov-label strong {
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #fff;
}

.viewport-fov-custom {
  width: 28px;
  height: 178px;
  display: grid;
  place-items: center;
  cursor: ns-resize;
  touch-action: none;
  outline: none;
}

.viewport-fov-custom-track {
  position: relative;
  width: 8px;
  height: 170px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.viewport-fov-custom-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  border-radius: inherit;
  background: linear-gradient(180deg, #9ee0ff 0%, #65c6f2 100%);
}

.viewport-fov-custom-thumb {
  position: absolute;
  left: 50%;
  bottom: 0%;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #65c6f2;
  border: 2px solid rgba(8, 14, 24, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, 50%);
}

.viewport-fov-custom:focus-visible .viewport-fov-custom-track {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 2px rgba(101, 198, 242, 0.5);
}

.viewport-fov-slider input[type="range"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
}

.viewport-fov-ticks {
  height: 170px;
  display: grid;
  align-items: stretch;
  font-size: 10px;
  color: rgba(232, 241, 255, 0.8);
  letter-spacing: 0.04em;
  text-align: center;
}

.viewport-fov-ticks span:nth-child(1) {
  align-self: end;
}

.viewport-fov-ticks span:nth-child(2) {
  align-self: center;
}

.viewport-fov-ticks span:nth-child(3) {
  align-self: start;
}

.player-bubble {
  position: absolute;
  left: 50%;
  bottom: 150px;
  z-index: 34;
  max-width: 320px;
  padding: 12px 14px;
  border: 2px solid rgba(255, 241, 201, 0.9);
  border-radius: 18px;
  background: rgba(255, 249, 232, 0.96);
  color: #171a21;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, 16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.player-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 22px;
  height: 22px;
  border-right: 2px solid rgba(255, 241, 201, 0.9);
  border-bottom: 2px solid rgba(255, 241, 201, 0.9);
  background: rgba(255, 249, 232, 0.96);
  transform: translateX(-50%) rotate(45deg);
}

.player-bubble.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.player-bubble-tag {
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a6250;
}

.player-bubble-text {
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.viewport-nav-help {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 35;
  max-width: 320px;
  padding: 10px 12px;
  border: 1px solid rgba(115, 170, 215, 0.5);
  border-radius: 10px;
  background: rgba(9, 16, 28, 0.72);
  color: #e8f1ff;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.03em;
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.viewport-nav-help strong {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.viewport-course-links {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 35;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.viewport-course-links .hud-btn {
  font: inherit;
}

.course-widget-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: auto;
  background: rgba(4, 8, 15, 0.82);
  color: #edf4ff;
  backdrop-filter: blur(8px);
}

.course-widget-dialog[hidden] {
  display: none;
}

body.course-widget-is-open {
  overflow: hidden;
}

.course-widget-dialog-card {
  width: min(940px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid rgba(115, 170, 215, 0.62);
  border-radius: 20px;
  background: #0d1724;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.course-widget-dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(115, 170, 215, 0.34);
  background: rgba(13, 23, 36, 0.96);
  backdrop-filter: blur(12px);
}

.course-widget-eyebrow {
  margin-bottom: 4px;
  color: #8ed7f4;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.course-widget-dialog-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 1.1;
}

.course-widget-close {
  min-height: 44px;
  font-size: 0.875rem;
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(142, 215, 244, 0.54);
  border-radius: 999px;
  background: rgba(17, 34, 51, 0.88);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.course-widget-close:hover,
.course-widget-close:focus-visible {
  border-color: #8ed7f4;
  background: #18364d;
  outline: none;
}

.course-widget-panel {
  min-width: 0;
  padding: 20px;
  overflow-x: auto;
  background: #e8eaed;
}

.course-widget-panel[hidden] {
  display: none;
}

.course-widget-panel proko-course-widget {
  display: block;
  width: 100%;
  min-width: 0;
}

.course-widget-fallback {
  display: block;
  min-height: 44px;
  padding: 12px 0;
  margin: 12px auto 0;
  color: #173b54;
  font-size: 1rem;
  text-align: center;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .viewport-fov-slider {
    top: auto;
    right: 14px;
    bottom: 78px;
    width: 180px;
    transform: none;
    justify-items: stretch;
    align-items: stretch;
  }

  .viewport-fov-custom {
    width: 100%;
    height: 28px;
    cursor: ew-resize;
  }

  .viewport-fov-custom-track {
    width: 100%;
    height: 8px;
  }

  .viewport-fov-custom-fill {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 0%;
    height: auto;
  }

  .viewport-fov-custom-thumb {
    left: 0%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
  }

  .viewport-fov-label {
    justify-items: center;
  }

  .viewport-fov-ticks {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
  }

  .viewport-fov-ticks span:nth-child(1),
  .viewport-fov-ticks span:nth-child(2),
  .viewport-fov-ticks span:nth-child(3) {
    align-self: auto;
  }

  .player-bubble {
    left: 50%;
    right: auto;
    bottom: 140px;
    max-width: min(300px, calc(100% - 32px));
  }
}

@media (max-width: 520px) {
  .course-widget-dialog {
    padding: 8px;
  }

  .course-widget-dialog-card {
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }

  .course-widget-dialog-header {
    padding: 14px;
  }

  .course-widget-panel {
    padding: 10px;
  }

  .course-widget-panel proko-course-widget {
    width: 100%;
    min-width: 0 !important;
    min-height: 0 !important;
  }
}
