@font-face {
  font-family: "Bungee";
  src: url("/assets/bungee.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --glass-fill: rgb(217 217 217 / 20%);
  --white: #fafafa;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #202943;
  color: var(--white);
  font-family: "Bungee", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.screen {
  position: relative;
  isolation: isolate;
  width: 100vw;
  min-width: 320px;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
}

.background {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.brand,
.dock {
  position: absolute;
  display: block;
  background: var(--glass-fill);
  border: 1px solid rgb(255 255 255 / 6%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 10%),
    0 20px 80px rgb(6 9 18 / 12%);
  backdrop-filter: blur(26px) saturate(135%);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
}

.brand {
  left: 2.324vw;
  top: 3.842vh;
  width: clamp(260px, 17.297vw, 320px);
  min-width: 238px;
  max-width: 320px;
  height: auto;
  aspect-ratio: 320 / 112;
  min-height: 84px;
  border-radius: 999px;
  transition: transform 170ms var(--ease), background-color 170ms var(--ease);
}

.brand__avatar {
  position: absolute;
  left: .9375%;
  top: 1.785%;
  width: 33.75%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.brand__name {
  position: absolute;
  left: 36.25%;
  top: 50%;
  width: max-content;
  max-width: 60%;
  transform: translateY(-49%);
  overflow: hidden;
  font-size: clamp(28px, 1.946vw, 36px);
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
}

.dock {
  left: 33.622vw;
  bottom: 3.0vh;
  width: 32.703vw;
  min-width: 430px;
  max-width: 605px;
  height: min(9.414vh, 98px);
  min-height: 80px;
  border-radius: 999px;
}

.dock__item {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 24px;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}

.dock__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dock__item--news {
  left: 24px;
  top: 14px;
  width: 73px;
  height: 78px;
}

.dock__item--home {
  right: 31px;
  top: 23px;
  width: 52px;
  height: 54px;
}

.dock__divider {
  position: absolute;
  left: 119px;
  top: 14px;
  width: 77px;
  height: 1px;
  background: #fff;
}

.brand:hover,
.brand:focus-visible,
.dock__item:hover,
.dock__item:focus-visible {
  transform: translateY(-2px);
}

.brand:focus-visible,
.dock__item:focus-visible {
  outline: 2px solid rgb(255 255 255 / 84%);
  outline-offset: 6px;
}

.dock__item:active {
  transform: translateY(0) scale(.98);
}

@media (max-width: 1100px) {
  .brand {
    left: max(18px, env(safe-area-inset-left));
    top: max(18px, env(safe-area-inset-top));
    width: min(320px, calc(100vw - 36px));
    height: 96px;
  }

  .brand__avatar {
    width: 92px;
  }

  .brand__name {
    left: 112px;
    font-size: clamp(26px, 8vw, 34px);
  }

  .dock {
    left: 50%;
    bottom: max(22px, env(safe-area-inset-bottom));
    width: min(605px, calc(100vw - 32px));
    min-width: 0;
    height: 90px;
    transform: translateX(-50%);
  }

  .dock__item--news {
    left: 22px;
    top: 12px;
    width: 68px;
    height: 72px;
  }

  .dock__item--home {
    right: 28px;
    top: 20px;
    width: 52px;
    height: 54px;
  }

  .dock__divider {
    left: 112px;
    top: 13px;
  }
}

@media (max-width: 420px) {
  .brand {
    height: 84px;
  }

  .brand__avatar {
    width: 80px;
  }

  .brand__name {
    left: 98px;
    max-width: calc(100% - 108px);
    font-size: clamp(22px, 7.4vw, 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
