/* Принудительные стили для корректного отображения без Tailwind */
/* Затемненный фон карты мира в тон колонок */
body {
    position: relative;
}

/* фон сайта — только скриншот города (.site-bg ниже); контур карты мира убран */

/* Фиксация слоев, чтобы контент был поверх фона */
header, main, footer {
    position: relative;
    z-index: 2;
}
body {
    background-color: #030712 !important;
    color: #f4f4f5 !important;
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header img {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover;
    border-radius: 8px;
}
header {
    background-color: rgba(24, 24, 27, 0.8);
    border-bottom: 1px solid #27272a;
    position: sticky;
    top: 0;
    z-index: 50;
}
header > div {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
nav {
    display: flex;
    gap: 2rem;
}
nav a, footer a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}
nav a:hover, footer a:hover {
    color: #34d399;
}
main {
    flex-grow: 1;
}
/* Гарантированная работа модального окна покупки поверх всего контента */
#purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#purchase-modal.flex {
    display: flex;
}

/* При малой высоте экрана (сильное масштабирование) окно приподнимается вверх */
@media (max-height: 700px) {
    #purchase-modal > div:last-child {
        margin-bottom: 8vh;
    }
}

footer {
    z-index: auto;
}

/* Таблица шансов выпадения в модальном окне */
#drop-chances {
    margin-top: 1rem;
}

#drop-chances.hidden {
    display: none;
}

/* Единый фон всего сайта: скриншот мира + затемнение + виньетка по краям.
   На каждой странице первым элементом body: <div class="site-bg" aria-hidden="true"></div>
   (на главной — <div class="site-bg home-bg">, там контур карты не показывается). */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 75% at 50% 45%, rgba(3, 7, 18, 0.15) 0%, rgba(3, 7, 18, 0.55) 65%, rgba(3, 7, 18, 0.95) 100%),
        linear-gradient(to bottom, rgba(3, 7, 18, 0.5) 0%, rgba(3, 7, 18, 0.15) 30%, rgba(3, 7, 18, 0.4) 75%, #030712 100%),
        url('pictures/home-bg.webp') center / cover no-repeat;
}
/* на внутренних страницах контента больше — фон чуть темнее, чтобы текст читался */
.site-bg:not(.home-bg) {
    background:
        radial-gradient(ellipse 80% 75% at 50% 45%, rgba(3, 7, 18, 0.45) 0%, rgba(3, 7, 18, 0.7) 65%, rgba(3, 7, 18, 0.95) 100%),
        linear-gradient(to bottom, rgba(3, 7, 18, 0.55) 0%, rgba(3, 7, 18, 0.35) 30%, rgba(3, 7, 18, 0.55) 75%, #030712 100%),
        url('pictures/home-bg.webp') center / cover no-repeat;
}

/* ---------- Кнопки вики и магазина: заметнее на фоне-скриншоте ---------- */
/* меню вики (неактивный пункт) */
button.wiki-tab {
    background-color: rgba(39, 39, 42, 0.75);
    border: 1px solid rgba(82, 82, 91, 0.6);
    color: #e4e4e7;
}
button.wiki-tab:hover {
    background-color: rgba(63, 63, 70, 0.9);
    border-color: rgba(16, 185, 129, 0.55);
    color: #ffffff;
}
/* активный пункт вики (скрипт добавляет text-emerald-400) */
button.wiki-tab.text-emerald-400 {
    background-color: #059669;
    border-color: #10b981;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}
/* вкладки магазина */
button.shop-tab-btn {
    background-color: rgba(39, 39, 42, 0.8);
    border: 1px solid rgba(82, 82, 91, 0.6);
    color: #e4e4e7;
}
button.shop-tab-btn:hover {
    border-color: rgba(16, 185, 129, 0.55);
    color: #ffffff;
}
button.shop-tab-btn.bg-emerald-600 {
    background-color: #059669;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

