:root {
  --font-family:
    "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

  --color-bg: #000000;
  --color-sidebar-bg: #000000;
  --color-sidebar-text: #ffffff;
  --color-sidebar-muted: rgba(255, 255, 255, 0.75);
  --color-sidebar-hover: rgba(255, 255, 255, 0.08);
  --color-sidebar-active-bg: #353535;
  --color-sidebar-border: rgba(255, 255, 255, 0.15);
  --color-topbar-icon: #ffffff;
  --color-topbar-icon-hover: #a8d5a8;
  --color-accent: #ffffff;

  --sidebar-width: 260px;
  --topbar-height: 56px;
  --transition-speed: 0.35s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--color-bg);
  color: #fff;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.landing {
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow: hidden;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.landing.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.landing-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.landing-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.landing-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3em;
  color: #ffffff;
  text-shadow: 1px 1px 3px #000000;
  margin: 20px 0;
}

.play-btn {
  display: flex;
  align-items: center;
  color: #fff;
  transition: transform 0.2s ease;
}

.play-btn:hover {
  transform: translateY(-2px);
}

.play-btn i {
  font-size: 120px;
  color: #ffffff;
  line-height: 1;
  transition: transform 0.2s ease;
}

.app {
  position: fixed;
  inset: 0;
  display: flex;
  background: var(--color-bg);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.app.visible {
  opacity: 1;
}

.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background: var(--color-sidebar-bg);
  color: var(--color-sidebar-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid var(--color-sidebar-border);
  transform: translateX(-100%);
  transition:
    transform var(--transition-speed) ease,
    margin-left var(--transition-speed) ease;
  margin-left: calc(var(--sidebar-width) * -1);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar.open {
  transform: translateX(0);
  margin-left: 0;
}

.sidebar-header {
  padding: 7px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid var(--color-sidebar-border);
  min-height: var(--topbar-height);
}

.sidebar-logo {
  object-fit: contain;
}

.sidebar-title {
  padding: 20px;
  font-size: 18px;
  line-height: 1.3em;
  font-weight: 500;
  color: var(--color-sidebar-text);
  border-bottom: 1px solid var(--color-sidebar-border);
  text-align: center;
}

.menu {
  flex: 1;
  padding: 0;
}

.menu ul {
  list-style: none;
}

.menu-item {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-sidebar-muted);
  border-bottom: 1px solid var(--color-sidebar-border);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.menu-item b {
  font-weight: 700;
  color: var(--color-sidebar-text);
}

.menu-item:hover {
  background: var(--color-sidebar-hover);
  color: var(--color-sidebar-text);
}

.menu-item.active {
  background: var(--color-sidebar-active-bg);
  color: var(--color-sidebar-text);
}

.menu-item.active b {
  color: var(--color-sidebar-text);
}

.content {
  flex: 1;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
  background: var(--color-bg);
}

.topbar > * {
  pointer-events: auto;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-topbar-icon);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.topbar-btn:hover {
  color: var(--color-topbar-icon-hover);
}

.topbar-btn svg {
  width: 20px;
  height: 20px;
}

.hamburger {
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.app.no-hamburger-transition .hamburger {
  transition: none !important;
}

.app.no-hamburger-transition .hamburger span {
  transition: none !important;
}

.sidebar.open ~ .content .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sidebar.open ~ .content .hamburger span:nth-child(2) {
  opacity: 0;
}
.sidebar.open ~ .content .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.icon-fs-exit {
  display: none;
}

.app.is-fullscreen .icon-fs-exit {
  display: block;
}

.app.is-fullscreen .icon-fs-enter {
  display: none;
}

.iframe-wrapper {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #111;
  position: relative;
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.info-popup {
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.info-popup.show {
  opacity: 1;
  visibility: visible;
}

.info-popup.hidden {
  display: none !important;
}

.info-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 4px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  z-index: 2;
}

.info-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.info-close svg {
  width: 22px;
  height: 22px;
}

.info-scroll {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 60px 20px 40px;
}

.info-container {
  height: auto;
  min-height: 100%;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: #e6e6e6;
  overflow: visible;
}

.info-logo {
  width: 400px;
  margin: 0 auto 12px;
}

.info-subtitle {
  font-size: 18px;
  line-height: 1.3em;
  color: var(--color-sidebar-text);
  margin-bottom: 30px;
}

.info-heading {
  font-size: 18px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 20px;
  color: #ffffff;
  text-align: left;
}

.info-body {
  text-align: left;
  font-size: 18px;
  line-height: 1.15;
  color: var(--color-sidebar-text);
}

.info-body p {
  margin-bottom: 14px;
  text-align: justify;
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 240px;
  }

  .sidebar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 30;
    height: 100%;
    margin-left: 0;
  }

  .sidebar:not(.open) {
    transform: translateX(-100%);
  }

  .sidebar.open ~ .content .hamburger {
    transform: translateX(var(--sidebar-width));
  }
}

@media (max-width: 479px) {
  .landing-title {
    font-size: 16px;
  }
  .play-btn i {
    font-size: 80px;
  }
}
