* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #000;
    --text: #fff;
    --border: rgba(255, 255, 255, 0.08);
    --header-bg: #05050577;
    --menu-bg: #05050579;
    --button-border: rgba(255, 255, 255, 0.08);
    --tg-hover-bg: #1f1f1f;
    --tg-hover-text: #ffffff;
    --toggle-bg: #fff;
    --text-q: #838383;
    --bg-social: rgba(255, 255, 255, 0.007);
    --br-social: rgba(255, 255, 255, 0.08);
    --text-tx: #8F8F8F;
}

body.light {
    --bg: #fff;
    --text: #000;
    --border: rgba(0, 0, 0, 0.08);
    --header-bg: #f3f3f380;
    --menu-bg: #f3f3f3cf;
    --button-border: rgba(0, 0, 0, 0.08);
    --tg-hover-bg: #c9c9c9;
    --tg-hover-text: #000;
    --toggle-bg: #000;
    --text-q: #6e6e6e;
    --bg-social: rgba(0, 0, 0, 0.007);
    --br-social: rgba(0, 0, 0, 0.08);
    --text-tx: #636363;
}

html{
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    font-family: "Inter", sans-serif;
    max-width: 1700px;
    transition: background 0.5s ease, color 0.5s ease;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg);
    color: var(--text);
}

header {
    width: 100%;
    padding: 20px 0;
    flex: 0 0 auto;
}

.header-inner {
    position: relative;
    width: 95%;
    max-width: 1700px;
    margin: 15px auto 0;
    min-height: 73px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--header-bg);
    border-radius: 5px;
    border: 1px solid var(--border);
    transition: all 0.5s ease;
}

.wtr {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.wtr_icon {
    width: 130px;
    height: 20px;
    -webkit-user-drag: none;
    cursor: pointer;
}

.icon_hed {
  width: 17px;
  height: 17px;
  -webkit-user-drag: none;
}

img{
  -webkit-user-drag: none;
  cursor: pointer;
  user-select: none;
}

a{
  -webkit-user-drag: none;
  cursor: pointer;
  user-select: none;
}

.online-block {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

#online-number {
    font-weight: 500;
    width: 25px;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.lang-select {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px; 
}

.lang-btn img {
    display: block;
}

.lang-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background: var(--menu-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.5s ease;
    pointer-events: none;
    width: 197px;
    z-index: 123;
}

.lang-menu.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease, background 0.5s ease;
}

.lang-option:nth-child(2) {
    border-top: 1px solid var(--border);
}

.text {
    color: var(--text-tx);
}

.lang-option:hover {
    background: var(--tg-hover-bg);
    color: var(--tg-hover-text);
}

.tg-btn {
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid var(--button-border);
    text-decoration: none;
    font-size: 14px;
    background: var(--tg-hover-bg);
    color: var(--tg-hover-text);
    transition: all 0.5s ease;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    position: relative;
    overflow: visible;
}

.tg-images {
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
    flex: 0 0 20px;
}

.tg_img {
    width: 20px;
    height: 20px;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    object-fit: contain;
    transition: opacity 0.5s ease;
}


.tg-btn:hover {
    opacity: 0.85;
    background: var(--text);
    color: var(--bg);
}

.theme-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#theme-toggle {
    width: 24px;
    height: 24px;
    background: var(--toggle-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.5s;
}

.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    filter: brightness(0.45);

    z-index: -1;
}

.hero-nav {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 32px;
}

.hero-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.5s ease;
}

.hero-nav a:hover {
    color: #8b8b8b;
}

.hero-bottom {
    position: absolute;
    bottom: 40px;
    left: 85%;
    transform: translateX(-50%);
}

.hero-button {
    background: var(--tg-hover-bg);
    color: var(--tg-hover-text);
    border: none;
    border-radius: 8px;
    padding: 14px 26px;

    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.5s ease;
}

.hero-button:hover {
    opacity: 0.85;
    background: var(--text);
    color: var(--bg);
}

.join-server {
    max-width: 700px;
    padding: 60px 0 80px;
    margin: 0 auto;
}

.join-title {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 14px;
}

.join-subtitle {
    width: 720px;
    font-size: 15px;
    color: var(--text-q);
    line-height: 1.6;
    margin-bottom: 30px;
}

.join-subtitle span {
    color: var(--text);
}

.join-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    width: 700px;
}

.join-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 22px 26px;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);

    transition: background 0.25s ease;
}

body.light .join-card {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.join-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.join-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.join-rage{
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.join-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.join-desc {
    font-size: 14px;
    color: var(--text-q);
}

.join-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;

    background: var(--tg-hover-bg);
    color: var(--tg-hover-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;

    transition: all 0.5s ease;
}

.join-btn:hover {
    opacity: 0.85;
    background: var(--text);
    color: var(--bg);
}

.more-content {
    padding: 40px 20px 80px;
    text-align: center;
}

.more-title {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 35px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-card {
    width: 190px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    text-decoration: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;

    background: var(--bg-social);
    border: 1px solid var(--br-social);
    border-radius: 14px;

    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.social-card img {
    height: 22px;
    display: block;
}

.social-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}

.footer {
    background: transparent;
    padding: 40px 0;
    color: #636363;
    font-size: 14px;
}

.footer-inner {
    width: 95%;
    max-width: 1700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-center a {
    color: var(--text);
    margin-right: 20px;
    text-decoration: none;
    font-weight: 500;
}

.footer-center a:hover {
    opacity: 0.8;
}

.footer-text {
    margin-top: 15px;
    line-height: 1.6;
    max-width: 1050px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0.6;
}

.footer-right img {
    height: 55px;
    user-select: none;
    pointer-events: none;
}

@media (max-width: 1440px) {
  body {
    max-width: 100%;
  }

  .join-subtitle,
  .join-steps {
    width: 100%;
  }

  .hero {
    height: 85vh;
  }
}

@media (max-width: 1200px) {
  .hero-center h1 {
    font-size: 42px;
  }

  .header-inner {
    padding: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-right {
    justify-content: flex-start;
  }
}

@media (max-width: 992px) {
  .hero-nav {
    gap: 20px;
  }

  .hero-center h1 {
    font-size: 36px;
  }

  .join-title {
    font-size: 30px;
  }

  .join-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .join-btn {
    align-self: stretch;
    text-align: center;
  }

  .footer-inner {
    text-align: center;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 0;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .wtr {
    position: static;
    transform: none;
  }

  .hero {
    height: 80vh;
  }

  .hero-center h1 {
    font-size: 30px;
  }

  .hero-bottom {
    bottom: 20px;
  }

  .join-title {
    font-size: 26px;
  }

  .social-card {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 576px) {
  .hero-nav {
    font-size: 13px;
    gap: 16px;
  }

  .hero-center h1 {
    font-size: 26px;
  }

  .hero-button {
    width: 100%;
    justify-content: center;
  }

  .join-card {
    padding: 18px;
  }

  .join-name {
    font-size: 15px;
  }

  .join-desc {
    font-size: 13px;
  }

  .footer {
    padding: 30px 0;
  }
}

@media (max-width: 420px) {
  .hero-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .hero-center h1 {
    font-size: 22px;
  }

  .join-title {
    font-size: 22px;
  }

  .join-subtitle {
    font-size: 14px;
  }
}