* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #080a19;
    color: white;
    overflow-x: hidden;
}

#snow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.header {
    height: 85px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(12,15,35,0.9);
    border-bottom: 1px solid #292d52;
    position: relative;
    z-index: 11;
}

.logo {
    font-size: 22px;
    font-weight: 800;
}

.logo span {
    color: #8d63ff;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    color: #66eaff;
}

button {
    cursor: pointer;
}

.login {
    background: linear-gradient(90deg,#8055ff,#3ddcf5);
    border: none;
    padding: 13px 25px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
}

.hero {
    min-height: 570px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 50px 10%;position: relative;
    z-index: 15;
    background:
        radial-gradient(circle at 80% 40%,#38217a55,transparent 40%);
}

.badge {
    color: #5be5ff;
    margin-bottom: 25px;
    font-size: 13px;
}

.hero h1 {
    font-size: 65px;
    font-weight: 800;
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(90deg,#a26aff,#49e5ff);
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    color: #aaa;
    margin: 25px 0;
    line-height: 1.8;
    max-width: 420px;
}

.main-button {
    display: inline-block;position: relative;z-index: 20;
    background: linear-gradient(90deg,#8855ff,#3dddf5);
    padding: 17px 28px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 0 30px #8755ff55;
    transition: 0.3s;
}

.main-button:hover {
    transform: translateY(-5px);
}

.diamond {
    font-size: 180px;
    animation: floating 3s infinite ease-in-out;
    filter: drop-shadow(0 0 30px #54caff);
}

@keyframes floating {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}

.shop {
    padding: 80px 10%;
    text-align: center;
}

.shop h2 {
    font-size: 36px;
}

.shop h2 span {
    color: #9a70ff;
}

.subtitle {
    color: #888;
    margin: 15px 0 40px;
}

.products {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.card {
    padding: 30px;
    background: linear-gradient(145deg,#191d3d,#101328);
    border: 1px solid #34365f;
    border-radius: 18px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 35px #835aff55;
    border-color: #9a70ff;
}

.gem {
    font-size: 45px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 15px;
}

.card p {
    color: #5ceaff;
    font-size: 19px;
    margin-bottom: 20px;
}

.card button,
.modal-content button:not(.close) {
    background: linear-gradient(90deg,#8855ff,#3dddf5);
    border: none;
    padding: 13px 25px;
    color: white;
    border-radius: 10px;
    font-weight: bold;
}

.support {
    text-align: center;
    padding: 80px 20px;
    background: #11152c;
}

.support p {
    color: #aaa;
    margin: 20px;
}

.support a {
    display: inline-block;
    background: #229ed9;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 12px;
}

footer {
    text-align: center;
    padding: 30px;
    color: #777;
    font-size: 12px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 20;
    inset: 0;
    background: #000c;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal-content {
    background: #171a36;
    border: 1px solid #755bff;
    border-radius: 20px;
    padding: 35px;
    width: 400px;
    max-width: 100%;
    text-align: center;
    position: relative;
}

.modal-content h2 {
    font-size: 21px;
    margin: 15px 0;
}

.modal-content input {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid #555;
    background: #090c20;
    color: white;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 25px;
}

.social {
    display: block;
    margin: 15px 0;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
}

.google {
    background: #4285f4;
}

.vk {
    background: #2787f5;
}

.note {
    color: #aaa;
    font-size: 11px;
    margin-top: 15px;
}

#message {
    margin-top: 15px;
    color: #66eaff;
}

@media(max-width: 800px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .diamond {
        font-size: 100px;
        margin-top: 40px;
    }

    .products {
        grid-template-columns: repeat(2,1fr);
    }

    nav {
        display: none;
    }
}

@media(max-width: 480px) {
    .products {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 0 15px;
        justify-content: space-between;
    }

    .logo {
        font-size: 16px;
    }
}/* Размер фотографий персонажей */
.character {
    width: 100% !important;
    height: 150px !important;
    max-height: 150px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 15px;
    display: block;
    margin: 0 auto 15px;
    box-shadow: 0 0 15px #8b35ff;
    transition: 0.4s;
}

/* Эффект при наведении */
.character:hover {
    transform: scale(1.04);
    box-shadow: 0 0 25px #00eaff;
}

/* Карточки магазина */
.card {
    overflow: hidden;
    padding: 15px;
    border-radius: 20px;
}.card, .ff-card, .card-content {
    height: auto !important;
    min-height: auto !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}/* Картинка на всю карточку */
.card.ff-card {
    position: relative !important;
    height: 360px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    display: block !important;
}

/* Прячем ELITE, LEGENDARY, PREMIUM и алмазик */
.card.ff-card .card-label,
.card.ff-card .gem {
    display: none !important;
}

/* Картинка на задний план (z-index: 0) */
.card.ff-card img.character {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    z-index: 0 !important;
}

/* Текст, цена и кнопка поверх картинки (z-index: 10) */
.card.ff-card .card-content {
    position: relative !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 25px 20px !important;
    background: linear-gradient(to top, rgba(8, 10, 24, 0.96) 0%, rgba(8, 10, 24, 0.65) 45%, transparent 100%) !important;
}

/* Четкие буквы и кнопка поверх фото */
.card.ff-card h3,
.card.ff-card p,
.card.ff-card button {
    position: relative !important;
    z-index: 15 !important;
}

.card.ff-card h3 {
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95) !important;
}

.card.ff-card p {
    margin: 0 0 14px 0 !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95) !important;
}
/* Аккуратная карточка с отступами вокруг фото */
.card.ff-card {
    position: relative !important;
    height: auto !important;
    min-height: auto !important;
    padding: 18px !important;
    border-radius: 20px !important;
    display: block !important;
}

/* Прячем ELITE, LEGENDARY, PREMIUM и алмазик */
.card.ff-card .card-label,
.card.ff-card .gem {
    display: none !important;
}

/* Внутренний блок карточки */
.card.ff-card .card-content {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    background: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Картинка сверху над текстом: с отступами от краев карточки и своей рамкой */
.card.ff-card img.character {
    position: static !important;
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    border: 2px solid #5be5ff !important;
    box-shadow: 0 4px 15px rgba(91, 229, 255, 0.25) !important;
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Аккуратные отступы для алмазов, цены и кнопки под фото */
.card.ff-card h3 {
    position: static !important;
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
    text-shadow: none !important;
}

.card.ff-card p {
    position: static !important;
    margin: 0 0 16px 0 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}

.card.ff-card button {
    position: static !important;
    width: 100% !important;
}.card.ff-card h3::after {
    content: " 💎";
}
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.id-login-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.id-login-box input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 15px;
  text-align: center;
  outline: none;
}

.btn-id-login {
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #7b61ff, #00d2ff);
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
}

.divider {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  margin: 10px 0;
  font-size: 13px;
}/* Делаем кнопки темными с неоновой рамкой, чтобы иконки были четко видны */
.btn-id-login {
  background: linear-gradient(90deg, #5e35b1, #1e88e5) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
}

.social.google,
.social.vk {
  background: rgba(15, 20, 45, 0.85) !important;
  color: #ffffff !important;
  border: 1px solid rgba(100, 180, 255, 0.35) !important;
  transition: 0.2s;
}

.social.google:hover,
.social.vk:hover {
  background: rgba(30, 40, 85, 0.95) !important;
  border-color: #00d2ff !important;
}/* Красивая карточка профиля игрока в шапке сайта */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 22, 50, 0.92);
  border: 1px solid rgba(0, 210, 255, 0.5);
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.25);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a00, #e52e71);
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.user-nick {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

.user-id {
  color: #00d2ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.logout-btn {
  background: rgba(255, 75, 75, 0.15);
  border: 1px solid rgba(255, 75, 75, 0.4);
  color: #ff6b6b;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  transition: 0.2s;
}

.logout-btn:hover {
  background: #ff4b4b;
  color: #ffffff;
}