@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@1,700&display=swap");

:root {
  color-scheme: dark;
  background: #000;
  --logo-font: "Comic Sans MS", "Comic Neue", "Segoe Print", "Bradley Hand ITC", cursive;
  --shell-width: 1250px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #fff;
}

* {
  box-sizing: border-box;
}

html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-x: none;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #000;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-x: none;
}

button,
a,
input {
  touch-action: manipulation;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 56px;
  margin: 0;
  display: grid;
  grid-template-columns: 260px 344px 96px 226px max-content;
  align-items: center;
  gap: 12px;
  padding: 0 max(16px, calc((100vw - var(--shell-width)) / 2));
  border-radius: 0;
  background: #171717;
}

.mobile-menu-toggle,
.mobile-brand-text,
.mobile-top-girl,
.mobile-auth-actions,
.mobile-backdrop,
.mobile-drawer {
  display: none;
}

.brand-mark {
  position: static;
  width: 222px;
  justify-self: center;
  text-align: center;
  color: #f5f5f5;
  font-family: var(--logo-font);
  font-size: 23px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transform: scaleY(0.9) skewX(-3deg);
  transform-origin: center center;
}

.banner-slot {
  position: relative;
  width: 100%;
  height: 56px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  overflow: visible;
  background: transparent;
}

.top-menu {
  height: 100%;
  min-width: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-link {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: #d8d8d8;
  font: 600 14px/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.top-link:hover,
.top-dropdown:hover .dropdown-toggle,
.top-dropdown.open .dropdown-toggle {
  color: #fff;
  background: #202020;
}

.top-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 380ms ease;
}

.top-dropdown.open .arrow {
  transform: translateY(2px) rotate(225deg);
}

.top-dropdown:hover .arrow {
  transform: translateY(2px) rotate(225deg);
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 360px;
  height: 150px;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 420ms ease, transform 420ms ease, visibility 0s linear 420ms;
  border: 1px solid #333;
  border-radius: 8px;
  background: #171717;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}

.top-dropdown:hover .dropdown-panel,
.top-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.top-girl {
  width: 72px;
  height: 56px;
  max-height: none;
  display: block;
  justify-self: center;
  align-self: stretch;
  object-fit: contain;
  object-position: center center;
  filter: grayscale(1);
  pointer-events: none;
}

.top-search {
  width: 226px;
  height: 32px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 7px;
  justify-self: end;
  padding: 0 10px;
  border: 1px solid #242424;
  border-radius: 7px;
  background: #202020;
  position: relative;
  z-index: 2;
}

.top-search img {
  width: 18px;
  height: 18px;
  display: block;
  filter: grayscale(1) brightness(0) invert(58%);
}

.top-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: #f2f2f2;
  font: 400 14px/1 Arial, Helvetica, sans-serif;
  border: 0;
  outline: 0;
  background: transparent;
}

.top-search input::placeholder {
  color: #8f8f8f;
}

.desktop-auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.desktop-auth-button {
  min-width: 74px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #d8d8d8;
  font: 700 14px/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 7px;
  background: transparent;
}

.desktop-auth-button:hover {
  color: #fff;
  text-shadow: 0 0 9px rgba(255, 255, 255, 0.35);
}

.desktop-auth-button.active {
  color: #000;
  background: #fff;
  text-shadow: none;
}

.mobile-menu-open {
  overflow: hidden;
}

.auth-screen {
  display: none;
  width: min(1080px, calc(100vw - 32px));
  min-height: calc(100vh - 72px);
  margin: 16px auto 0;
}

body.auth-screen-open .auth-screen {
  display: block;
}

body.auth-screen-open .page {
  display: none;
}

.auth-shell {
  min-height: 590px;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #202020;
  border-radius: 8px;
  background: #171717;
}

.signup-card {
  padding: 24px 24px 22px;
  background: #171717;
}

.signup-brand {
  width: 100%;
  margin: 0 0 24px;
  color: #f5f5f5;
  font-family: var(--logo-font);
  font-size: 23px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform: scaleY(0.9) skewX(-3deg);
}

.signup-card h1 {
  margin: 0 0 18px;
  color: #f3f3f3;
  font: 700 20px/1.2 Arial, Helvetica, sans-serif;
  text-align: center;
}

.auth-field {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  color: #a8a8a8;
  font: 400 14px/1 Arial, Helvetica, sans-serif;
}

.auth-field input,
.password-box {
  width: 100%;
  height: 38px;
  color: #f2f2f2;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #222;
}

.auth-field input {
  padding: 0 12px;
  font: 400 14px/1 Arial, Helvetica, sans-serif;
  outline: 0;
}

.auth-field input:focus,
.password-box:focus-within {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}

.auth-field input::placeholder {
  color: #9b9b9b;
}

.password-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
}

.password-box input {
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.password-box input::-ms-reveal,
.password-box input::-ms-clear {
  display: none;
}

.password-box input:focus {
  border: 0;
  box-shadow: none;
}

.password-toggle {
  width: 38px;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.password-icon {
  width: 19px;
  height: 19px;
  display: block;
  opacity: 0.9;
  filter: grayscale(1) brightness(0) invert(88%);
}

.password-toggle:hover .password-icon {
  opacity: 1;
}

.terms-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  margin: 6px 0 12px;
  color: #f3f3f3;
  font: 400 14px/1.35 Arial, Helvetica, sans-serif;
}

.terms-row input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #fff;
}

.terms-row a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup-submit,
.signin-submit {
  width: 100%;
  height: 38px;
  display: block;
  border: 0;
  border-radius: 8px;
  font: 700 14px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.signup-submit {
  color: #aaa;
  background: #333;
}

.signup-submit:not(.is-ready),
.signup-submit:disabled {
  color: #aaa;
  background: #333;
  cursor: not-allowed;
}

.signup-submit.is-ready {
  color: #000;
  background: #fff;
  cursor: pointer;
}

.signup-submit.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.verify-panel {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #303030;
  border-radius: 10px;
  background: #171717;
}

.verify-panel h2 {
  margin: 0 0 8px;
  color: #fff;
  font: 700 16px/1.2 Arial, Helvetica, sans-serif;
}

.verify-panel p {
  margin: 0 0 12px;
  color: #cfcfcf;
  font: 400 13px/1.35 Arial, Helvetica, sans-serif;
}

.resend-code {
  height: 30px;
  padding: 0 12px;
  color: #fff;
  font: 700 13px/1 Arial, Helvetica, sans-serif;
  border: 1px solid #444;
  border-radius: 7px;
  background: #222;
  cursor: pointer;
}

.resend-code:hover {
  background: #2c2c2c;
}

.forgot-link {
  width: max-content;
  margin: -2px 0 10px;
  padding: 0;
  color: #d7d7d7;
  font: 700 13px/1 Arial, Helvetica, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.forgot-link:hover {
  color: #fff;
}

.login-fields .auth-field input,
.reset-fields .auth-field input {
  border-color: transparent;
}

.signin-submit {
  margin-top: 8px;
  color: #f4f4f4;
  background: #252525;
}

.signin-submit:hover {
  background: #2d2d2d;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 32px 0 22px;
  color: #9d9d9d;
  font: 400 14px/1 Arial, Helvetica, sans-serif;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: #333;
}

.social-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.social-button {
  width: 40px;
  height: 40px;
  color: #fff;
  font: 800 14px/1 Arial, Helvetica, sans-serif;
  border: 0;
  border-radius: 8px;
  background: #282828;
  cursor: pointer;
}

.social-button:hover {
  background: #343434;
}

.social-button.google {
  background: #3a3a3a;
}

.social-button.telegram {
  background: #2f2f2f;
}

.auth-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: #dcdcdc;
  font: 400 13px/1.35 Arial, Helvetica, sans-serif;
  text-align: center;
}

.account-pill {
  min-width: 0;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 6px;
  color: #f6f6f6;
  font: 700 14px/1 Arial, Helvetica, sans-serif;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.account-pill:hover .account-username {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.42);
}

.profile-avatar {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font: 800 12px/1 Arial, Helvetica, sans-serif;
  border: 1px solid #2d2d2d;
  border-radius: 50%;
  background: #050505;
}

.profile-avatar-large {
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  font-size: 28px;
}

.profile-menu {
  position: fixed;
  top: 58px;
  right: max(16px, calc((100vw - 1250px) / 2));
  z-index: 80;
  width: 300px;
  padding: 16px;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  background: #1a1a1a;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.profile-menu-head {
  text-align: center;
  padding: 8px 0 16px;
  color: #aaa;
}

.profile-name {
  display: block;
  color: #aaa;
  font: 700 15px/1.2 Arial, Helvetica, sans-serif;
}

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

.profile-menu-grid button {
  min-height: 44px;
  padding: 0 12px;
  color: #f4f4f4;
  font: 700 13px/1.1 Arial, Helvetica, sans-serif;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: #242424;
  cursor: pointer;
}

.profile-menu-grid button:hover {
  background: #2d2d2d;
}

.profile-menu-grid .logout-button {
  color: #ffb6b6;
  background: #342020;
}

.auth-preview {
  position: relative;
  min-height: 590px;
  padding: 0;
  overflow: hidden;
  background: #111;
}

.auth-preview::before,
.auth-preview::after {
  display: none;
}

.auth-preview-image {
  width: 100%;
  height: 100%;
  min-height: 590px;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.rules-dialog {
  width: min(430px, calc(100vw - 32px));
  color: #f3f3f3;
  border: 1px solid #333;
  border-radius: 10px;
  background: #171717;
}

.rules-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.rules-dialog h2 {
  margin: 0 0 12px;
  font: 700 20px/1.2 Arial, Helvetica, sans-serif;
}

.rules-dialog p {
  margin: 0 0 18px;
  color: #cfcfcf;
  font: 400 14px/1.45 Arial, Helvetica, sans-serif;
}

.rules-dialog button {
  height: 34px;
  padding: 0 16px;
  color: #000;
  font: 700 14px/1 Arial, Helvetica, sans-serif;
  border: 0;
  border-radius: 7px;
  background: #fff;
}

@media (min-width: 901px) and (max-width: 1180px) {
  .top-bar {
    grid-template-columns: 230px minmax(300px, 1fr) 78px 210px max-content;
    gap: 10px;
    padding: 0 12px;
  }

  .brand-mark {
    width: 210px;
    font-size: 21px;
  }

  .top-link {
    padding: 0 7px;
    font-size: 13px;
  }

  .top-search {
    width: 210px;
  }

  .desktop-auth-actions {
    gap: 6px;
  }

  .desktop-auth-button {
    padding: 0 10px;
  }
}

.page {
  min-height: 0;
  width: min(var(--shell-width), calc(100vw - 32px));
  margin: 14px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.auth-actions {
  grid-column: 1 / -1;
  min-height: 50px;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid #202020;
  border-radius: 8px;
  background: #171717;
}

.auth-button {
  min-width: 74px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #d5d5d5;
  font: 700 14px/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
  border-radius: 7px;
  background: transparent;
}

.auth-button:hover,
.auth-button.active {
  color: #000;
  background: #fff;
}

.forum-sidebar {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  width: 260px;
  padding: 14px 8px 16px;
  border-radius: 8px;
  background: #171717;
}

.create-topic {
  width: 222px;
  height: 34px;
  display: block;
  margin: 0 auto 16px;
  color: #000;
  font: 700 14px/1 Arial, Helvetica, sans-serif;
  border: 1px solid #f2f2f2;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.create-topic:hover {
  background: #fff;
  color: #000;
}

.forum-nav {
  display: grid;
  gap: 7px;
}

.nav-item {
  min-height: 30px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #f2f2f2;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
}

.nav-item:hover,
.nav-item.active:hover {
  background: #222;
}

.nav-item.active {
  background: transparent;
  color: #fff;
  font-weight: 400;
}

.icon,
.search-icon {
  color: #888;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.nav-item.active .icon {
  color: #888;
}

.icon img {
  width: 21px;
  height: 21px;
  display: block;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(50%);
}

.nav-item:hover .icon img {
  filter: grayscale(1) brightness(0) invert(80%);
}

.nav-item.active .icon img {
  filter: grayscale(1) brightness(0) invert(62%);
}

@media (max-width: 900px) {
  body {
    padding-top: 60px;
  }

  .top-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    grid-template-columns: 44px minmax(0, 1fr) 58px auto;
    gap: 8px;
    height: 60px;
    min-height: 60px;
    padding: 0 10px;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
    contain: layout paint;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 0 7px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    width: 26px;
    height: 3px;
    display: block;
    border-radius: 999px;
    background: #b8b8b8;
    transition: background 80ms ease;
  }

  .mobile-menu-toggle:hover span,
  .mobile-menu-toggle[aria-expanded="true"] span {
    background: #fff;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: none;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 1;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: none;
  }

  .mobile-brand-text {
    min-width: 0;
    display: block;
    color: #f6f6f6;
    font-family: var(--logo-font);
    font-size: clamp(13px, 3vw, 17px);
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    transform: scaleY(0.9) skewX(-3deg);
    transform-origin: left center;
  }

  .mobile-top-girl {
    width: min(58px, 100%);
    height: 60px;
    display: block;
    justify-self: end;
    object-fit: contain;
    object-position: center center;
    filter: grayscale(1);
  }

  .brand-mark {
    display: none;
  }

  .top-girl {
    display: none;
  }

  .banner-slot {
    display: none;
  }

  .top-search {
    display: none;
  }

  .desktop-auth-actions {
    display: none;
  }

  .mobile-auth-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .mobile-auth-button {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #f2f2f2;
    font: 700 14px/1 Arial, Helvetica, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px;
    background: transparent;
  }

  .mobile-auth-button.active {
    color: #000;
    background: #fff;
  }

  .mobile-auth-button:not(.active):hover {
    color: #fff;
    text-shadow: 0 0 9px rgba(255, 255, 255, 0.45);
  }

  .mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 38;
    border: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 90ms ease;
  }

  .mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -82vw;
    z-index: 39;
    width: min(82vw, 420px);
    display: block;
    padding: 18px 14px 22px;
    border-right: 0;
    background: #171717;
    transform: translate3d(0, 0, 0);
    transition: left 120ms cubic-bezier(0.2, 0.9, 0.28, 1);
    will-change: left;
    overflow-y: auto;
    scrollbar-width: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-drawer::-webkit-scrollbar {
    display: none;
  }

  body.mobile-menu-open .mobile-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  body.mobile-menu-open .mobile-drawer {
    left: 0;
  }

  .mobile-drawer-search {
    height: 40px;
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #242424;
    border-radius: 8px;
    background: #202020;
  }

  .mobile-drawer-search img {
    width: 17px;
    height: 17px;
    display: block;
    filter: grayscale(1) brightness(0) invert(58%);
  }

  .mobile-drawer-search input {
    min-width: 0;
    height: 100%;
    color: #f2f2f2;
    font: 400 14px/1 Arial, Helvetica, sans-serif;
    border: 0;
    outline: 0;
    background: transparent;
  }

  .mobile-drawer-search input::placeholder {
    color: #909090;
  }

  .mobile-nav {
    display: grid;
    gap: 6px;
    margin-top: 16px;
  }

  .mobile-nav-item {
    min-height: 38px;
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    color: #f2f2f2;
    font: 500 14px/1.1 Arial, Helvetica, sans-serif;
    text-decoration: none;
    border-radius: 7px;
  }

  .mobile-nav-item:hover {
    background: #222;
  }

  .mobile-nav-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: #777;
    font: 700 18px/1 Arial, Helvetica, sans-serif;
  }

  .mobile-nav-icon img {
    width: 21px;
    height: 21px;
    display: block;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(50%);
  }

  .mobile-nav-icon-empty {
    visibility: hidden;
  }

  .mobile-section-title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 14px 0 4px;
    color: #9a9a9a;
    font: 500 12px/1 Arial, Helvetica, sans-serif;
  }

  .mobile-section-title::before,
  .mobile-section-title::after {
    content: "";
    height: 1px;
    background: #383838;
  }

  .page {
    width: calc(100vw - 24px);
    margin-top: 14px;
    display: block;
  }

  .auth-actions {
    display: none;
  }

  .forum-sidebar {
    display: none;
  }

  .auth-screen {
    width: calc(100vw - 16px);
    min-height: calc(100vh - 68px);
    margin-top: 8px;
  }

  .auth-shell {
    min-height: auto;
    display: block;
  }

  .signup-card {
    padding: 24px 24px 22px;
  }

  .signup-brand {
    margin-bottom: 24px;
  }

  .auth-preview {
    display: none;
  }
}

@media (max-width: 520px) {
  .top-bar {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .mobile-brand-text {
    display: none;
  }

  .mobile-top-girl {
    width: min(92px, 100%);
    justify-self: center;
  }
}

@media (max-width: 360px) {
  .top-bar {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 0 8px;
  }

  .mobile-brand-text {
    display: none;
  }

  .mobile-auth-button {
    padding: 0 8px;
    font-size: 13px;
  }

  .mobile-top-girl {
    width: min(76px, 100%);
    justify-self: center;
  }
}

@media (min-width: 361px) and (max-width: 430px) {
  .top-bar {
    grid-template-columns: 44px minmax(0, 1fr) 56px auto;
    gap: 6px;
    padding: 0 8px;
  }

  .mobile-brand-text {
    font-size: clamp(12px, 2.7vw, 14px);
  }

  .mobile-top-girl {
    width: 56px;
  }

  .mobile-auth-button {
    padding: 0 9px;
  }
}

@media (max-width: 390px) {
  .mobile-brand-text {
    display: none;
  }

  .top-bar {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .mobile-top-girl {
    width: min(82px, 100%);
    justify-self: center;
  }
}
