/* PikaWoW UI v2: restrained fantasy shell built around the project logo. */
:root{
  --ui-bg: #06131a;
  --ui-panel: rgba(7, 25, 34, .94);
  --ui-panel-raised: rgba(10, 34, 45, .96);
  --ui-line: rgba(196, 139, 45, .24);
  --ui-line-strong: rgba(215, 160, 57, .48);
  --ui-gold: #d6a33f;
  --ui-gold-light: #f0cc78;
  --ui-copy: #eef1ed;
  --ui-muted: #9cabb0;
  --ui-muted-2: #74878e;
  --ui-green: #7ddf70;
  --ui-radius: 14px;
  --ui-shadow: 0 18px 50px rgba(0,0,0,.34);
}

body{
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ui-copy);
  letter-spacing: 0;
}
body::before{
  opacity: .52;
  filter: saturate(.82) contrast(1.04);
}
body::after{
  background:
    linear-gradient(180deg, rgba(2,9,13,.34), rgba(2,9,13,.78) 68%, rgba(1,6,9,.94)),
    radial-gradient(900px 560px at 50% 4%, rgba(18,58,72,.16), transparent 70%);
}

.container{
  width: min(1180px, calc(100% - 40px));
}
.main{
  padding: 30px 0 76px;
}
.section{
  padding: 24px 0;
}
.section--tight{
  padding: 16px 0;
}
body:not(.page-map):not(.page-ratings) .main > .section > :not(.container):not(script){
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.topbar{
  background: rgba(3,16,22,.94);
  border-top: 0;
  border-bottom: 1px solid var(--ui-line);
  box-shadow: 0 8px 30px rgba(0,0,0,.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topbar .container{
  width: min(1480px, calc(100% - 32px));
}
.topbar__inner{
  min-height: 68px;
  padding: 8px 0;
}
.brand{
  gap: 10px;
  margin-right: 28px;
}
.brand__mark{
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex-basis: 44px;
  border: 1px solid rgba(214,163,63,.44);
  box-shadow: 0 6px 18px rgba(0,0,0,.34);
}
.brand__name,
.footer__brand{
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ui-gold-light);
}
.brand__name{
  font-size: 19px;
}
.brand__tagline{
  color: var(--ui-muted-2);
  font-size: 12px;
}
.nav{
  gap: 3px;
}
.nav__link{
  min-height: 36px;
  padding: 8px 9px;
  border-radius: 7px;
  color: #a9b6ba;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
}
.nav__link:hover{
  color: var(--ui-copy);
  border-color: transparent;
  background: rgba(255,255,255,.045);
}
.nav__link.is-active{
  color: var(--ui-gold-light);
  border-color: rgba(214,163,63,.22);
  background: rgba(214,163,63,.09);
  box-shadow: none;
}
.topbar-login,
.topbar-auth{
  height: 40px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(0,0,0,.20);
  box-shadow: none;
}
.topbar-login__input{
  height: 32px;
  border-radius: 6px;
  border-color: rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
}
.topbar-login__submit,
.topbar-auth__logout{
  min-height: 32px;
  height: 32px;
  border-radius: 6px;
}

.hero,
.card,
.worldchat__panel,
.tablewrap,
.navdrawer{
  border: 1px solid var(--ui-line);
  background:
    linear-gradient(180deg, rgba(10,34,45,.94), rgba(4,18,25,.97));
  box-shadow: var(--ui-shadow);
}
.hero,
.card{
  border-radius: var(--ui-radius);
}
.hero::before,
.hero::after{
  display: none;
}
.card{
  padding: 20px;
}
.card__title{
  margin-bottom: 7px;
  color: var(--ui-copy);
  font-family: inherit;
  font-size: 17px;
  font-weight: 750;
  text-shadow: none;
}
.card__text,
.lead{
  color: var(--ui-muted);
}
.lead{
  font-size: 16px;
  line-height: 1.6;
}
.kicker{
  color: var(--ui-gold);
  font-family: inherit;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-shadow: none;
}
.h1,
.h2{
  color: var(--ui-copy);
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: none;
}
.h2{
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.16;
}

.btn,
.topbar-login__submit,
.topbar-auth__logout,
.worldchat__iconbtn{
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
  color: #e6eceb;
  background: rgba(255,255,255,.055);
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover,
.topbar-login__submit:hover,
.topbar-auth__logout:hover,
.worldchat__iconbtn:hover{
  color: #fff;
  border-color: rgba(214,163,63,.32);
  background: rgba(255,255,255,.085);
  box-shadow: none;
}
.btn--primary{
  color: #151007;
  border-color: #e0ad45;
  background: linear-gradient(180deg, #edc262, #c88c28);
  box-shadow: 0 8px 24px rgba(188,122,22,.18), inset 0 1px rgba(255,255,255,.30);
}
.btn--primary:hover{
  color: #100c05;
  border-color: #f3cf7a;
  background: linear-gradient(180deg, #f3ce77, #d39a35);
  transform: translateY(-1px);
}
.btn--primary::before{
  display: none;
}
.btn--sm{
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 7px;
  font-size: 13px;
}
.btn--telegram,
.btn--vk{
  border-color: rgba(84,159,187,.22);
  background: rgba(29,101,128,.16);
}

.input,
.topbar-login__input,
select,
textarea{
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
  color: var(--ui-copy);
  background: rgba(0,0,0,.24);
  box-shadow: none;
}
.input:focus,
.topbar-login__input:focus,
select:focus,
textarea:focus{
  border-color: rgba(214,163,63,.52);
  box-shadow: 0 0 0 3px rgba(214,163,63,.10);
}

.badge,
.pill,
.statusitem__rate{
  border-color: rgba(214,163,63,.26);
  color: #dbc58f;
  background: rgba(214,163,63,.075);
}
.badge{
  padding: 7px 11px;
  font-size: 12px;
}
.badge::before{
  width: 5px;
  height: 5px;
  background: var(--ui-gold);
  box-shadow: none;
}
.pill--ok{
  border-color: rgba(125,223,112,.28);
  color: #a7e99e;
  background: rgba(74,155,65,.11);
}

.alert,
.callout{
  border-radius: 10px;
  border-color: rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.tablewrap{
  border-radius: 10px;
}
.table th{
  color: #cfbd93;
  background: rgba(255,255,255,.035);
  border-bottom-color: rgba(255,255,255,.09);
}
.table td{
  border-bottom-color: rgba(255,255,255,.065);
}

.worldchat__toggle{
  min-width: 150px;
  padding: 12px 17px;
  border: 1px solid rgba(214,163,63,.30);
  border-radius: 10px;
  color: #ead7a7;
  background: rgba(6,27,37,.96);
  box-shadow: 0 12px 30px rgba(0,0,0,.34);
  font-family: inherit;
  font-size: 14px;
}
.worldchat__panel{
  border-radius: 14px;
}
.worldchat__message{
  border-radius: 9px;
  border-color: rgba(255,255,255,.07);
  background: rgba(255,255,255,.035);
}

.footer{
  padding: 30px 0 36px;
  border-top: 1px solid var(--ui-line);
  background: rgba(2,10,14,.82);
  box-shadow: none;
}
.footer__grid{
  gap: 32px;
}
.footer__links{
  gap: 8px;
}
.footer__links a{
  color: var(--ui-muted-2);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 980px){
  .topbar{
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .burger{
    border-radius: 8px;
    border-color: rgba(214,163,63,.28);
    background: rgba(255,255,255,.05);
  }
}

@media (max-width: 620px){
  .container{
    width: min(100%, calc(100% - 24px));
  }
  .main{
    padding-top: 18px;
  }
  body:not(.page-map):not(.page-ratings) .main > .section > :not(.container):not(script){
    width: min(100%, calc(100% - 24px));
  }
  .worldchat{
    right: 10px;
    bottom: 10px;
    left: auto;
    align-items: flex-end;
  }
  .worldchat__toggle{
    width: 64px;
    min-width: 64px;
    padding: 10px 8px;
    font-size: 0;
  }
  .worldchat__toggle::after{
    content: "Чат";
    font-size: 12px;
  }
  .worldchat__panel{
    width: calc(100vw - 20px);
  }
}
