* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --gateway-ink: #18191c;
  --gateway-line: #192b2324;
  --gateway-arrow: none;
  --gateway-art-opacity: 0.77;
  --audio-rest: #edcdd7;
  --audio-active: #ffe4eb;
  --games-rest: #c9dfd2;
  --games-active: #def4e7;
  --tools-rest: #c9dce4;
  --tools-active: #e0f1f7;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--gateway-ink);
  letter-spacing: 0;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --gateway-ink: #fff9fc;
  --gateway-line: #b7c9d52e;
  --gateway-arrow: invert(1);
  --gateway-art-opacity: 0.95;
  --audio-rest: #993958;
  --audio-active: #a24060;
  --games-rest: #0f6366;
  --games-active: #1b6a6d;
  --tools-rest: #285d93;
  --tools-active: #30659b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --gateway-ink: #fff9fc;
    --gateway-line: #b7c9d52e;
    --gateway-arrow: invert(1);
    --gateway-art-opacity: 0.95;
    --audio-rest: #993958;
    --audio-active: #a24060;
    --games-rest: #0f6366;
    --games-active: #1b6a6d;
    --tools-rest: #285d93;
    --tools-active: #30659b;
  }
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.gateway-brand {
  position: fixed;
  z-index: 2;
  top: 28px;
  left: 36px;
  width: 256px;
  margin: 0;
  pointer-events: none;
  animation: arrive 600ms ease-out both;
}
.gateway-brand picture,
.gateway-brand img {
  display: block;
  width: 100%;
  height: auto;
}
.gateway {
  display: flex;
  height: 100svh;
  height: 100dvh;
  width: 100%;
}
.panel {
  container-type: inline-size;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--rest);
  transition:
    flex-grow 680ms cubic-bezier(0.22, 0.8, 0.24, 1),
    background-color 450ms ease;
}
.panel + .panel {
  border-left: 1px solid var(--gateway-line);
}
.panel-audio {
  --rest: var(--audio-rest);
  --active: var(--audio-active);
}
.panel-games {
  --rest: var(--games-rest);
  --active: var(--games-active);
}
.panel-tools {
  --rest: var(--tools-rest);
  --active: var(--tools-active);
}
.panel-art {
  position: absolute;
  inset: 21% 8% 26%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: var(--gateway-art-opacity);
  transform: translateY(8px) scale(0.96);
  transition:
    opacity 450ms ease,
    transform 680ms cubic-bezier(0.22, 0.8, 0.24, 1);
  animation: appear 700ms ease-out backwards;
}
.panel-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.panel-art .familiar {
  max-width: 280px;
}
.panel-art .category-icon {
  max-width: 260px;
  max-height: 300px;
}
.panel-label {
  position: absolute;
  bottom: 8%;
  left: 10%;
  right: 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
}
.panel-label > img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  transition: transform 450ms ease;
  filter: var(--gateway-arrow);
}
.panel:focus-visible {
  outline: 4px solid var(--gateway-ink);
  outline-offset: -8px;
  z-index: 1;
  background: var(--active);
}
.gateway:has(.panel:focus-visible) .panel {
  flex-grow: 0.7;
}
.gateway:has(.panel:focus-visible) .panel:focus-visible {
  flex-grow: 1.6;
}
.panel:focus-visible .panel-art {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.panel:focus-visible .panel-label > img {
  transform: translate(3px, -3px);
}
@media (hover: hover) and (pointer: fine) {
  .gateway:has(.panel:hover) .panel {
    flex-grow: 0.7;
  }
  .gateway:has(.panel:hover) .panel:hover {
    flex-grow: 1.6;
    background: var(--active);
  }
  .panel:hover .panel-art {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .panel:hover .panel-label > img {
    transform: translate(3px, -3px);
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: var(--gateway-art-opacity);
  }
}
@media (max-width: 1200px) {
  .panel-label {
    font-size: 52px;
  }
  .panel-label > img {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
}
@media (max-width: 760px) {
  .gateway {
    flex-direction: column;
  }
  .gateway-brand {
    width: 186px;
    top: 16px;
    left: 24px;
  }
  .panel + .panel {
    border-left: 0;
    border-top: 1px solid var(--gateway-line);
  }
  .panel-art {
    inset: 10% 5% 36% 47%;
  }
  .panel-audio .panel-art {
    top: 27%;
  }
  .panel-label {
    font-size: 42px;
    left: 24px;
    right: 24px;
    bottom: 24px;
    gap: 16px;
  }
  .panel-art .familiar {
    max-width: 135px;
  }
  .panel-art .category-icon {
    max-width: 125px;
    max-height: 140px;
  }
}
@media (forced-colors: active) {
  .panel + .panel {
    border-color: CanvasText;
  }
  .panel:focus-visible {
    outline-color: Highlight;
  }
}
@media (max-height: 620px) and (max-width: 760px) {
  .gateway-brand {
    width: 150px;
    top: 10px;
  }
  .panel-label {
    font-size: 34px;
    bottom: 18px;
  }
  .panel-audio .panel-art {
    top: 30%;
  }
}
@media (min-width: 560px) and (max-height: 420px) {
  .gateway {
    flex-direction: row;
  }
  .gateway-brand {
    width: 150px;
  }
  .panel + .panel {
    border-top: 0;
    border-left: 1px solid var(--gateway-line);
  }
  .panel-art,
  .panel-audio .panel-art {
    inset: 24% 8% 24%;
  }
  .panel-label {
    font-size: 28px;
    left: 18px;
    right: 18px;
    bottom: 22px;
    gap: 6px;
  }
  .panel-label > img {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 761px) {
  @container (max-width: 400px) {
    .panel-label {
      font-size: 52px;
    }
  }
  @container (max-width: 300px) {
    .panel-label {
      font-size: 34px;
    }
  }
}
