:root {
  --desktop-max: 74rem;
  --taskbar-height: 1.7rem;
  --title-gradient: linear-gradient(90deg, #000080 0%, #1084d0 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 1rem 1rem calc(var(--taskbar-height) + 1.25rem);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 24px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 24px),
    var(--color-teal);
  color: var(--color-black);
  font-family: w95fa, sans-serif;
  font-size: 16px;
  line-height: 18px;
}

body.home-popup-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background: url("../assets/logo.png") no-repeat right 2rem top 2rem / min(24rem, 34vw);
  filter: grayscale(1);
  mix-blend-mode: multiply;
}

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

a {
  color: inherit;
}

main {
  position: relative;
  z-index: 1;
}

.desktop-shell {
  width: min(100%, var(--desktop-max));
  margin: 0 auto;
}

.home-shell,
.links-shell,
.single-window-shell {
  display: grid;
  gap: 1.5rem;
}

.window {
  background: var(--color-gray-200);
  box-shadow: var(--shadow-dialog);
}

.window-titlebar {
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.2rem 0.2rem 0;
  padding: 0.25rem 0.3rem;
  color: var(--color-white);
  background: var(--title-gradient);
}

.window-title {
  overflow: hidden;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-close {
  min-width: 1.55rem;
  min-height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  text-decoration: none;
  background: var(--color-gray-200);
  box-shadow: var(--shadow-default-button-default);
}

.window-close:active {
  box-shadow: var(--shadow-default-button-active);
}

.window-body {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.window-split .window-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.logo-panel {
  width: 100%;
  min-height: 100%;
  padding: 0.75rem;
  display: grid;
  place-items: center;
  background: var(--color-black);
  box-shadow: var(--shadow-input);
}

.logo-panel img {
  width: 100%;
  max-width: 14rem;
  margin: 0 auto;
  object-fit: contain;
}

.action-stack {
  width: 100%;
  align-content: center;
  display: grid;
  gap: 0.65rem;
}

.action-button,
.open-button {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.9rem;
  color: var(--color-black);
  text-decoration: none;
  text-align: center;
  background: var(--color-gray-200);
  box-shadow: var(--shadow-default-button-default);
}

.action-button:active,
.open-button:active {
  box-shadow: var(--shadow-default-button-active);
}

.desktop-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.25rem, 1fr));
  gap: 1.2rem 1rem;
  justify-items: center;
}

.desktop-app {
  width: 6.25rem;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  text-decoration: none;
  text-align: center;
  color: var(--color-white);
  text-shadow: 1px 1px 0 var(--color-black);
}

.desktop-app-icon {
  width: 5.25rem;
  height: 5.25rem;
  display: grid;
  place-items: center;
  padding: 0.35rem;
}

.desktop-app-icon img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}

.desktop-app-label {
  line-height: 1.1;
}

.desktop-app:hover .desktop-app-label,
.desktop-app:focus-visible .desktop-app-label {
  text-decoration: underline;
}

.shows-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.show-list,
.member-list {
  display: grid;
  gap: 0.75rem;
}

.show-card,
.member-chip,
.embed-panel {
  padding: 0.75rem;
  background: var(--color-gray-100);
  box-shadow: var(--shadow-input);
}

.window-maximized {
  width: 100%;
}

.window-maximized .window-body {
  min-height: calc(100vh - var(--taskbar-height) - 5rem);
  align-content: start;
}

.show-card {
  display: grid;
  gap: 0.4rem;
}

.show-date {
  color: var(--color-blue);
}

.show-link {
  color: var(--color-blue);
  text-decoration: none;
}

.show-link:hover,
.show-link:focus-visible {
  text-decoration: underline;
}

.embed-frame {
  width: 100%;
  border: 0;
  background: var(--color-white);
}

.embed-frame-video {
  aspect-ratio: 16 / 9;
  min-height: 17rem;
}

.embed-frame-soundcloud {
  height: 460px;
}

.embed-frame-spotify {
  height: 352px;
  border-radius: 12px;
}

.tiktok-embed {
  margin: 0 auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.paypal-panel {
  min-height: 14rem;
  display: grid;
  place-items: center;
}

.site-header {
  --spacing-base: 0px;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  height: calc(var(--taskbar-height) + 2px);
  background: var(--color-gray-200);
  border-top: 1px solid var(--color-white);
  border-bottom: 1px solid var(--color-black);
}

.site-nav-wrap {
  position: relative;
  width: 100%;
  margin: 0;
}

.site-nav {
  height: var(--taskbar-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  line-height: 1;
}

.start-button,
.taskbar-window-button,
.site-clock {
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.start-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.7rem;
  color: var(--color-white) !important;
  background: var(--color-blue) !important;
  box-shadow: none !important;
  font: inherit;
  border: 0;
  border-right: 1px solid #082e7a;
  cursor: pointer;
  appearance: none;
  margin: 0;
  border-radius: 0;
}

.start-button.is-open,
.start-button:active {
  box-shadow: none !important;
  background: #0a3ca0 !important;
}

.start-button,
.start-button * {
  color: var(--color-white);
}

.site-brand-mark {
  width: 1rem;
  height: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.site-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-clock {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 0 0.5rem;
  background: none;
  box-shadow: none;
  border: 0;
  border-left: 1px solid #7f7f7f;
}

.taskbar-window-slot {
  display: contents;
}

.taskbar-window-button {
  min-width: 9rem;
  max-width: min(18rem, 48vw);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0 0.7rem;
  overflow: hidden;
  color: var(--color-black);
  font: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--color-gray-200);
  box-shadow: var(--shadow-default-button-default);
  border: 0;
  border-left: 1px solid #7f7f7f;
  border-radius: 0;
  cursor: pointer;
}

.home-popups {
  position: fixed;
  inset: 2.4rem 4rem calc(var(--taskbar-height) + 1.2rem);
  z-index: 20;
  pointer-events: none;
}

.floating-window {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(42rem, calc(100vw - 8rem));
  max-height: 100%;
  margin: 0;
  pointer-events: auto;
  z-index: 10;
}

.floating-window[hidden] {
  display: none;
}

.floating-window .window-body {
  padding: 0.75rem;
  max-height: calc(100vh - var(--taskbar-height) - 6rem);
  overflow: auto;
  align-content: start;
}

.floating-window .window-titlebar {
  min-height: 1.7rem;
  margin: 0.16rem 0.16rem 0;
  padding: 0.16rem 0.24rem;
}

.floating-window .window-close {
  min-width: 1.35rem;
  min-height: 1.15rem;
}

.start-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.3rem);
  z-index: 35;
  width: min(17rem, calc(100vw - 1rem));
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  background: var(--color-gray-200);
  box-shadow: var(--shadow-dialog);
}

.start-menu[hidden] {
  display: none;
}

.start-menu-sidebar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.75rem 0.3rem;
  color: var(--color-white);
  background: var(--title-gradient);
  font-size: 0.92rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.start-menu-body {
  padding: 0.35rem;
  display: grid;
  gap: 0.35rem;
}

.start-menu-link {
  min-height: 2rem;
  display: grid;
  grid-template-columns: 1rem 1fr;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  color: var(--color-black);
  text-decoration: none;
  background: var(--color-gray-200);
  box-shadow: var(--shadow-default-button-default);
}

.start-menu-link.is-current,
.start-menu-link:active {
  box-shadow: var(--shadow-default-button-active);
}

@media (max-width: 760px) {
  body {
    padding: 0.75rem 0.75rem calc(var(--taskbar-height) + 0.9rem);
  }

  body::before {
    background-position: right -2rem top 2rem;
    background-size: 14rem;
  }

  .window-body {
    padding: 0.8rem;
  }

  .shows-grid {
    grid-template-columns: 1fr;
  }

  .desktop-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .desktop-app {
    width: 5.4rem;
  }

  .desktop-app-icon {
    width: 4.5rem;
    height: 4.5rem;
  }

  .desktop-app-icon img {
    width: 3.9rem;
    height: 3.9rem;
  }

  .taskbar-window-button {
    min-width: 0;
    max-width: 9rem;
    flex: 1 1 auto;
  }

  .floating-window {
    width: calc(100vw - 3rem);
  }
}

@media (max-width: 520px) {
  .start-menu {
    width: min(15rem, calc(100vw - 0.75rem));
  }
}
