/* Lightweight shell for public acquisition pages. */

:root {
  --c-bg: #101820;
  --c-surface: rgba(255, 255, 255, .03);
  --c-border: rgba(255, 255, 255, .18);
  --c-text: #eaeaea;
  --c-accent: #ffc932;
  --panel: #1a2836;
  --panel-2: #101820;
  --muted: #9aa6bb;
  --ring: rgba(255, 201, 50, .30);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--c-text);
  background: var(--c-bg);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-accent);
  text-decoration: none;
}

.game-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  color: #101820;
  border: 0;
  border-radius: 10px;
  background: var(--c-accent);
  box-shadow: 0 12px 28px rgba(255, 201, 50, .20);
  font: inherit;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  color: #101820;
  background: #ffe066;
}

.auth-header {
  position: relative;
  z-index: 10;
  padding: 10px 12px;
  background: rgba(16, 24, 32, .60);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.auth-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.auth-header__logo {
  display: flex;
  align-items: center;
}

.auth-header__logo-img {
  width: auto;
  height: 22px;
  max-width: 100%;
  object-fit: contain;
}

.auth-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-dropdown {
  position: relative;
}

.auth-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 200px;
  padding: 5px 8px;
  color: var(--c-text);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.auth-dropdown__label {
  white-space: nowrap;
}

.auth-dropdown__arrow {
  color: var(--muted);
  font-size: 7px;
  transition: transform .2s ease;
}

.auth-dropdown.is-open .auth-dropdown__arrow {
  transform: rotate(180deg);
}

.auth-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 100;
  min-width: 104px;
  padding: 4px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .40);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s ease;
}

.auth-dropdown.is-open .auth-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.auth-dropdown__item,
.auth-dropdown__subitem {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 3px;
  padding: 6px 8px;
  color: var(--c-text);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}

.auth-dropdown__item:last-child,
.auth-dropdown__subitem:last-child {
  margin-bottom: 0;
}

.auth-dropdown__item:hover,
.auth-dropdown__subitem:hover {
  background: rgba(255, 255, 255, .08);
}

.auth-dropdown[data-dropdown="lang"] .auth-dropdown__item {
  position: relative;
  padding-left: 32px;
}

.auth-dropdown[data-dropdown="lang"] .auth-dropdown__item > span {
  position: absolute;
  left: 10px;
  font-size: 16px;
}

.auth-dropdown__item--submenu {
  position: relative;
  cursor: pointer;
}

.auth-dropdown__item-label {
  flex: 1;
}

.auth-dropdown__item-icon {
  margin-left: 8px;
}

.auth-dropdown__submenu {
  position: absolute;
  top: -4px;
  right: calc(100% + 6px);
  min-width: 110px;
  padding: 4px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .40);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all .2s ease;
}

.auth-dropdown__item--submenu.is-submenu-open .auth-dropdown__submenu,
.auth-dropdown__item--submenu:hover .auth-dropdown__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.auth-dropdown__subitem {
  position: relative;
  display: block;
  padding: 8px 10px 8px 28px;
  text-align: center;
}

.auth-dropdown__subitem span {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
}

.auth-dropdown__subitem.is-active {
  color: var(--c-accent);
  background: rgba(255, 201, 50, .10);
}

.auth-footer {
  position: relative;
  z-index: 10;
  padding: 24px 20px;
  text-align: center;
  background: rgba(16, 24, 32, .40);
  border-top: 1px solid rgba(255, 255, 255, .04);
}

.auth-footer__social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.auth-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}

.auth-social-icon {
  width: 18px;
  height: 18px;
  opacity: .78;
}

.auth-footer__copy {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.auth-footer__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
}

.auth-footer__legal a {
  color: var(--muted);
}

.auth-footer__legal a:hover {
  color: var(--c-accent);
}

.auth-footer__legal span {
  color: rgba(255, 255, 255, .20);
}

@media (min-width: 700px) {
  .auth-header {
    padding: 12px 20px;
  }

  .auth-header__logo-img {
    height: 28px;
  }

  .auth-dropdown__trigger {
    gap: 6px;
    padding: 7px 12px;
    font-size: 13px;
  }

  .auth-dropdown__menu {
    min-width: 130px;
  }

  .auth-dropdown__item,
  .auth-dropdown__subitem {
    padding: 8px 10px;
    font-size: 12px;
  }
}
