/* SurvivalBoom — чистий CSS без будь-якого JS у браузері. */

:root {
    --bg: #0c0c0d;
    --panel: #121214;
    --panel-hover: #1a1a1d;
    --panel-soft: #1f1f22;
    --black: #000000;
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);

    --yellow: #ffe009;
    --amber: #fcd34d;
    --amber-dark: #fbbf24;
    --blue-btn: #111537;
    --blue-btn-hover: #1a2052;
    --red: #fe3a20;
    --green: #8ffe20;
    --pink: #f3a6f7;
    --emerald: #34d399;

    --white: #ffffff;
    --zinc-200: #e4e4e7;
    --zinc-300: #d4d4d8;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-600: #52525b;
    --zinc-700: #3f3f46;
    --zinc-950: #09090b;

    --radius: 10px;
    --container: 1300px;
    --narrow: 860px;
    --font-heading: "Montserrat", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--amber) transparent;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--amber);
    border-radius: 9999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--amber-dark);
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, p, ul, ol, dl, figure {
    margin: 0;
}

ul, ol {
    padding: 0;
}

button, input, textarea, select {
    font-family: inherit;
    color: inherit;
}

.font-heading {
    font-family: var(--font-heading);
}

.container {
    width: var(--container);
    max-width: calc(100% - 32px);
    margin-inline: auto;
}

.container-narrow {
    width: var(--narrow);
    max-width: calc(100% - 32px);
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* === buttons === */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 49px;
    padding: 0 24px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
    text-align: center;
}

.btn-lg {
    height: 69px;
    font-size: 20px;
    width: 100%;
}

@media (min-width: 640px) {
    .btn-lg {
        width: 265px;
    }
}

.news-back-link {
    align-self: stretch;
}

@media (min-width: 640px) {
    .news-back-link {
        align-self: flex-end;
    }
}

.btn-primary {
    background: var(--blue-btn);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-btn-hover);
}

.btn-amber {
    background: var(--amber);
    color: #000;
    font-weight: 600;
    padding: 16px 32px;
    height: auto;
    border-radius: 12px;
}

.btn-amber:hover {
    background: var(--amber-dark);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .15);
    color: var(--white);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .1);
}

.btn-danger {
    background: transparent;
    border: 1px solid rgba(254, 58, 32, .4);
    color: var(--red);
}

.btn-danger:hover {
    background: rgba(254, 58, 32, .1);
}

.btn-small {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

/* === navbar === */

.site-header {
    position: absolute;
    left: 50%;
    top: 60px;
    z-index: 50;
    width: var(--container);
    max-width: calc(100% - 32px);
    transform: translateX(-50%);
}

.static-page .site-header,
.no-hero .site-header {
    position: static;
    margin: 16px auto 0;
    transform: none;
}

.header-banner {
    position: relative;
    z-index: 10;
    display: flex;
    min-height: 46px;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: rgba(239, 68, 68, .15);
    padding: 8px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #fecaca;
    backdrop-filter: blur(16px);
}

.header-banner .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f87171;
    box-shadow: 0 0 12px rgba(248, 113, 113, .9);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.header-banner .text {
    line-height: 1.4;
}

.navbar {
    position: relative;
    z-index: 50;
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 0 0 20px 20px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .06);
    padding: 7px 12px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    border-radius: 12px;
    padding: 4px 8px;
    margin-right: 8px;
    transition: background-color .15s ease;
}

.navbar-logo:hover {
    background: rgba(255, 255, 255, .08);
}

.navbar-logo img {
    width: 40px;
    height: auto;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-link {
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 15px;
    color: rgba(255, 255, 255, .75);
    transition: background-color .15s ease, color .15s ease;
}

.navbar-link:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--white);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.login-link {
    border-radius: 8px;
    padding: 8px 16px;
    transition: background-color .15s ease;
}

.login-link:hover {
    background: rgba(255, 255, 255, .1);
}

/* мобільне меню на <details>, без жодного JS */
.mobile-menu {
    display: none;
    position: relative;
}

.mobile-menu summary {
    display: flex;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
    transition: background-color .15s ease;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu summary:hover {
    background: rgba(255, 255, 255, .1);
}

.mobile-menu summary .icon-close {
    display: none;
}

.mobile-menu[open] summary .icon-burger {
    display: none;
}

.mobile-menu[open] summary .icon-close {
    display: block;
}

.mobile-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    z-index: 50;
    display: flex;
    width: 220px;
    flex-direction: column;
    gap: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #121214;
    padding: 8px;
    box-shadow: var(--card-shadow);
}

.mobile-menu-panel a {
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 15px;
    color: rgba(255, 255, 255, .75);
}

.mobile-menu-panel a:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--white);
}

@media (max-width: 767px) {
    .site-header {
        position: static;
        margin: 12px auto 0;
        width: 100%;
        max-width: calc(100% - 24px);
        transform: none;
    }

    .header-banner {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 14px 14px 0 0;
        min-height: 40px;
    }

    .navbar {
        min-height: 64px;
        padding: 6px 12px;
        border-radius: 0 0 14px 14px;
    }

    .navbar-logo img {
        width: 34px;
    }

    .navbar-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        min-height: auto;
        padding-block: 24px 36px;
    }

    .hero-inner {
        padding: 24px 16px;
    }

    .hero h1 {
        font-size: 26px;
        margin-top: 16px;
    }

    .hero p {
        font-size: 15px;
        line-height: 24px;
        margin-top: 16px;
    }
}

/* === hero / sections === */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100vh;
    width: 100%;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -10;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -10;
    background: rgba(0, 0, 0, .5);
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    z-index: -10;
    background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.6) 40%, #000 100%);
}

.hero-inner {
    width: 100%;
    max-width: 1024px;
    margin-inline: auto;
    padding: 64px 24px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    line-height: 130%;
    color: var(--white);
    margin-top: 24px;
}

.hero p {
    margin-top: 24px;
    max-width: 640px;
    font-size: 18px;
    line-height: 32px;
    color: var(--zinc-200);
}

@media (min-width: 640px) {
    .hero h1 { font-size: 48px; }
}

.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, .4);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--zinc-200);
    backdrop-filter: blur(16px);
}

.online-dot-wrap {
    position: relative;
    display: inline-flex;
    width: 10px;
    height: 10px;
}

.online-dot {
    position: relative;
    display: inline-flex;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--zinc-600);
}

.online-dot.up {
    background: var(--emerald);
}

.online-dot.up::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--emerald);
    opacity: .75;
    animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite;
}

/* === секції сторінок === */

main {
    flex: 1;
}

.section {
    margin: 0 auto;
    width: var(--container);
    max-width: calc(100% - 32px);
    padding-block: 40px;
}

@media (min-width: 768px) {
    .section { padding-block: 96px; }
}

.page-head {
    min-height: 100vh;
    background: var(--bg);
    padding: 24px 16px 64px;
}

@media (min-width: 768px) {
    .page-head { padding-top: 210px; padding-bottom: 128px; }
}

.page-head-lg {
    padding: 24px 16px 64px;
}

@media (min-width: 768px) {
    .page-head-lg { padding-top: 240px; padding-bottom: 128px; }
}

h1.page-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 28px;
    line-height: 125%;
}

@media (min-width: 640px) {
    h1.page-title { font-size: 48px; line-height: 130%; }
}

.layout-with-sidebar {
    margin: 0 auto;
    width: var(--container);
    max-width: 100%;
    display: grid;
    gap: 40px;
}

.rules-sections {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.rules-sections h2 {
    font-size: 22px;
}

@media (min-width: 640px) {
    .rules-sections {
        margin-top: 50px;
        gap: 56px;
    }

    .rules-sections h2 {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 860px) 310px;
        justify-content: space-between;
    }
}

/* === новини / банери === */

.news-list {
    margin-top: 24px;
    display: flex;
    width: 100%;
    max-width: var(--narrow);
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 640px) {
    .news-list {
        margin-top: 32px;
        gap: 56px;
    }
}

.news-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: var(--panel);
    padding: 18px;
    box-shadow: var(--card-shadow);
}

@media (min-width: 640px) {
    .news-card { padding: 37px; }
}

.news-banner {
    position: relative;
    z-index: 0;
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius);
    background-color: #2a1747;
    background-image: linear-gradient(to bottom right, #2a1747, #5b2d91, #a35fd6);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

@media (min-width: 640px) {
    .news-banner { height: 349px; }
}

.news-banner img {
    position: absolute;
    inset: 0;
    z-index: -10;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -5;
    background: linear-gradient(to right, rgba(0,0,0,.4), transparent);
}

.news-banner-head {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    display: flex;
    gap: 12px;
}

@media (min-width: 640px) {
    .news-banner-head { left: 29px; right: auto; top: 30px; gap: 25px; }
}

.news-banner-accent {
    width: 5px;
    flex-shrink: 0;
    border-radius: 9999px;
    background: var(--pink);
}

.news-banner-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 125%;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.4));
}

@media (min-width: 640px) {
    .news-banner-title { font-size: 40px; line-height: 130%; }
}

.news-banner-brand {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
    color: rgba(255, 255, 255, .7);
}

@media (min-width: 640px) {
    .news-banner-brand { font-size: 24px; font-weight: 700; color: inherit; margin-top: 0; }
}

.news-banner-tags {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
}

@media (min-width: 640px) {
    .news-banner-tags { bottom: 30px; left: 29px; right: auto; gap: 11px; font-size: 15px; }
}

.news-summary {
    margin-top: 20px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    line-height: 140%;
}

@media (min-width: 640px) {
    .news-summary { margin-top: 50px; font-size: 20px; line-height: 130%; }
}

.news-rule {
    margin-top: 20px;
    border: none;
    border-top: 1px solid rgba(255,255,255,.8);
}

@media (min-width: 640px) {
    .news-rule { margin-top: 50px; }
}

.news-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .news-footer {
        margin-top: 70px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }
}

.news-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
}

@media (min-width: 640px) {
    .news-date { font-size: 17px; gap: 18px; }
}

.icon-calendar {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .icon-calendar { width: 35px; height: 35px; }
}

.news-empty {
    color: var(--zinc-400);
}

/* === пагінація === */

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination a, .pagination span {
    display: flex;
    height: 40px;
    min-width: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    padding: 0 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    background: var(--panel);
}

@media (min-width: 640px) {
    .pagination a, .pagination span {
        height: 49px;
        min-width: 49px;
        padding: 0 12px;
        font-size: 17px;
    }
}

.pagination a:hover {
    background: var(--panel-hover);
}

.pagination a.current {
    background: #111537;
}

.pagination span.gap {
    background: transparent;
    color: var(--zinc-500);
}

.pagination a.disabled {
    pointer-events: none;
    opacity: .4;
}

/* === стаття новини === */

.news-article-wrap {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.news-backdrop {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: -10;
    height: 900px;
    overflow: hidden;
    pointer-events: none;
}

.news-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    opacity: .4;
    filter: blur(24px);
}

.news-backdrop .glow {
    position: absolute;
    left: 50%;
    top: 240px;
    height: 500px;
    width: 900px;
    max-width: 100%;
    transform: translateX(-50%);
    border-radius: 50%;
    opacity: .25;
    filter: blur(120px);
}

.news-backdrop .fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(12,12,13,.3), rgba(12,12,13,.7) 50%, #0c0c0d 100%);
}

.news-detail-head {
    padding-top: 24px;
}

@media (min-width: 768px) {
    .news-detail-head {
        padding-top: 140px;
    }
}

.news-article {
    margin: 0 auto;
    display: flex;
    width: var(--narrow);
    max-width: 100%;
    flex-direction: column;
    border-radius: var(--radius);
    background: var(--panel);
    padding: 18px;
    box-shadow: var(--card-shadow);
}

@media (min-width: 640px) {
    .news-article { padding: 37px; }
}

/* === markdown-контент === */

.markdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 15px;
    line-height: 26px;
    color: var(--zinc-300);
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (min-width: 640px) {
    .markdown {
        gap: 20px;
        font-size: 18px;
        line-height: 32px;
    }
}

.markdown.md-news {
    gap: 16px;
}

@media (min-width: 640px) {
    .markdown.md-news { gap: 20px; }
}

.markdown.md-legal {
    gap: 18px;
    font-family: var(--font-heading);
    font-size: 15px;
    line-height: 24px;
    color: var(--zinc-300);
}

@media (min-width: 640px) {
    .markdown.md-legal {
        gap: 22px;
        font-size: 18px;
        line-height: 28px;
    }
}

.markdown.md-rules {
    gap: 18px;
    font-family: var(--font-heading);
    font-size: 15px;
    line-height: 24px;
    color: var(--white);
}

@media (min-width: 640px) {
    .markdown.md-rules {
        gap: 22px;
        font-size: 18px;
        line-height: 28px;
    }
}

.markdown.md-history {
    gap: 18px;
    font-family: var(--font-heading);
    font-size: 16px;
    line-height: 26px;
    color: var(--white);
}

@media (min-width: 640px) {
    .markdown.md-history {
        gap: 22px;
        font-size: 20px;
        line-height: 31px;
    }
}

.markdown.md-about {
    gap: 16px;
    font-family: var(--font-heading);
    font-size: 15px;
    line-height: 22px;
    color: var(--white);
}

.markdown h1, .markdown h2 {
    margin-top: 16px;
    font-family: var(--font-heading);
    font-size: 1.875em;
    font-weight: 700;
    color: var(--white);
}

.markdown h3 {
    margin-top: 8px;
    font-family: var(--font-heading);
    font-size: 1.5em;
    font-weight: 700;
    color: var(--white);
}

.markdown h4 {
    font-family: var(--font-heading);
    font-size: 1.25em;
    font-weight: 700;
    color: var(--white);
}

.markdown strong {
    font-weight: 700;
    color: var(--white);
}

.markdown a {
    color: var(--pink);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color .15s ease;
}

.markdown a:hover {
    color: var(--white);
}

.markdown ul {
    display: flex;
    list-style: disc;
    flex-direction: column;
    gap: 8px;
    padding-left: 24px;
}

.markdown ol {
    display: flex;
    list-style: decimal;
    flex-direction: column;
    gap: 8px;
    padding-left: 24px;
}

.markdown li::marker {
    color: var(--zinc-500);
}

.markdown blockquote {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 4px solid var(--pink);
    padding-left: 20px;
    font-style: italic;
    color: var(--zinc-400);
    margin: 0;
}

.markdown code {
    border-radius: 4px;
    background: rgba(255, 255, 255, .1);
    padding: 2px 6px;
    font-family: monospace;
    font-size: 1em;
}

.markdown pre {
    overflow-x: auto;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, .6);
    padding: 16px;
    font-size: 1em;
}

.markdown pre code {
    background: transparent;
    padding: 0;
}

.markdown hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.markdown img {
    border-radius: var(--radius);
}

.markdown table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 1em;
    display: block;
    overflow-x: auto;
}

.markdown th {
    border-bottom: 1px solid rgba(255, 255, 255, .3);
    padding: 8px 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
}

.markdown td {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 8px 12px;
}

/* === сайдбар режимів === */

.sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 1024px) {
    .sidebar {
        width: 310px;
        gap: 60px;
    }
}

.sidebar h2 {
    border-bottom: 1px solid var(--white);
    padding-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
}

@media (min-width: 640px) {
    .sidebar h2 { font-size: 20px; }
}

.sidebar-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 640px) {
    .sidebar-list { margin-top: 25px; gap: 15px; }
}

.sidebar-link {
    position: relative;
    display: flex;
    height: 48px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 8px;
    padding: 0 15px 0 20px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    background: var(--panel);
    transition: background-color .15s ease;
}

@media (min-width: 640px) {
    .sidebar-link { height: 50px; padding: 0 15px 0 25px; }
}

.sidebar-link::before {
    content: "";
    position: absolute;
    inset-block: 0;
    left: 0;
    width: 6px;
    border-radius: 8px;
    background: var(--yellow);
}

@media (min-width: 640px) {
    .sidebar-link::before { width: 8px; }
}

.sidebar-link:hover {
    background: var(--panel-hover);
}

.sidebar-link.active {
    background: var(--panel-soft);
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* === картки режимів === */

.gamemode-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (min-width: 768px) {
    .gamemode-section { gap: 150px; }
}

.gamemode-section h1,
.gamemode-section h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    line-height: 125%;
}

.gamemode-section h2.centered {
    text-align: center;
}

@media (min-width: 640px) {
    .gamemode-section h1, .gamemode-section h2 { font-size: 48px; font-weight: 500; line-height: 130%; }
}

.gamemode-grid {
    margin-top: 32px;
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .gamemode-grid { margin-top: 80px; grid-template-columns: 1fr 1fr; gap: 70px 40px; }
}

.gamemode-card-head {
    display: flex;
    flex-direction: column;
    margin-top: 18px;
    gap: 16px;
}

@media (min-width: 640px) {
    .gamemode-card-head { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 24px; }
}

.gamemode-card-desc {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .02em;
}

@media (min-width: 640px) {
    .gamemode-card-desc { font-size: 20px; }
}

.pvp-tag {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

@media (min-width: 640px) {
    .pvp-tag { font-size: 20px; font-weight: 500; }
}

.pvp-tag.on { color: var(--red); }
.pvp-tag.off { color: var(--green); }

.gamemode-card-head .btn,
.gamemode-card .btn-primary {
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .gamemode-card-head .btn,
    .gamemode-card .btn-primary { width: 200px; }
}

.gamemode-rule {
    margin-top: 18px;
    border: none;
    border-top: 1px solid var(--white);
}

.gamemode-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(to bottom right, #1b2a1a, #2c3f2a, #4b3a5c);
    height: 160px;
}

.gamemode-banner.lg {
    height: 195px;
}

.gamemode-banner img {
    position: absolute;
    inset: 0;
    z-index: -10;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gamemode-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -5;
    background: linear-gradient(to bottom, rgba(0,0,0,.4), transparent, rgba(0,0,0,.4));
}

.gamemode-banner-title {
    position: absolute;
    left: 14px;
    top: 14px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 125%;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.4));
}

@media (min-width: 640px) {
    .gamemode-banner-title { left: 30px; top: 22px; font-size: 36px; line-height: 130%; }
}

.gamemode-banner-status {
    position: absolute;
    bottom: 14px;
    right: 14px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.4));
}

@media (min-width: 640px) {
    .gamemode-banner-status { bottom: 20px; right: 30px; font-size: 28px; font-weight: 500; }
}

h1.gamemode-detail,
.gamemode-detail h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 125%;
}

@media (min-width: 640px) {
    h1.gamemode-detail,
    .gamemode-detail h1 { font-size: 64px; font-weight: 500; line-height: 130%; }
}

.gamemode-detail-box {
    margin-top: 24px;
    border-radius: var(--radius);
    background: var(--panel);
    padding: 18px 18px 36px;
}

@media (min-width: 640px) {
    .gamemode-detail-box { padding: 40px 40px 60px; margin-top: 30px; }
}

.gamemode-detail-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(to bottom right, #1b2a1a, #2c3f2a, #4b3a5c);
}

@media (min-width: 640px) {
    .gamemode-detail-image { height: 195px; }
}

.gamemode-detail-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    font-family: var(--font-heading);
}

@media (min-width: 640px) {
    .stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 24px;
        margin-top: 26px;
    }
}

.stats dt {
    font-size: 15px;
    font-weight: 700;
}

@media (min-width: 640px) {
    .stats dt { font-size: 20px; }
}

.stats dd {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
}

@media (min-width: 640px) {
    .stats dd { margin-top: 12px; font-size: 15px; }
}

.gamemode-detail-box h2 {
    margin-top: 36px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
}

@media (min-width: 640px) {
    .gamemode-detail-box h2 { margin-top: 60px; font-size: 32px; font-weight: 500; }
}

.gallery {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 640px) {
    .gallery { margin-top: 64px; gap: 40px; }
}

.gallery img {
    width: 100%;
    aspect-ratio: 860 / 490;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--panel);
}

.gamemode-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 640px) {
    .gamemode-actions { margin-top: 40px; flex-direction: row; justify-content: flex-end; gap: 16px; }
}

.gamemode-actions .btn {
    width: 100%;
}

@media (min-width: 640px) {
    .gamemode-actions .btn { width: 200px; }
}

/* === start page === */

.steps-list {
    margin-top: 0;
    display: grid;
    gap: 16px;
    list-style: none;
}

@media (min-width: 640px) {
    .steps-list { gap: 24px; }
}

@media (min-width: 768px) {
    .steps-list { grid-template-columns: 1fr 1fr; }
}

.step {
    display: flex;
    gap: 14px;
    border-radius: var(--radius);
    background: var(--panel);
    padding: 18px 16px;
    box-shadow: var(--card-shadow);
    transition: transform .15s ease;
}

@media (min-width: 640px) {
    .step { gap: 24px; padding: 32px; }
}

.step:hover {
    transform: translateY(-4px);
}

.step-num {
    display: flex;
    height: 44px;
    width: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--amber);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

@media (min-width: 640px) {
    .step-num { height: 56px; width: 56px; font-size: 24px; }
}

.step h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

@media (min-width: 640px) {
    .step h2 { font-size: 24px; }
}

.step p {
    margin-top: 6px;
    font-size: 14px;
    line-height: 22px;
    color: var(--zinc-400);
}

@media (min-width: 640px) {
    .step p { margin-top: 8px; font-size: inherit; line-height: 28px; }
}

.copy-ip {
    display: flex;
    max-width: 100%;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(0, 0, 0, .4);
    padding: 10px 14px;
    backdrop-filter: blur(16px);
}

@media (min-width: 640px) {
    .copy-ip {
        width: fit-content;
        justify-content: flex-start;
        padding: 12px 20px;
        gap: 16px;
    }
}

.copy-ip.compact {
    gap: 8px;
    padding: 8px 12px;
}

@media (min-width: 640px) {
    .copy-ip.compact { gap: 12px; padding: 10px 16px; }
}

.copy-ip code {
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: monospace;
    font-size: 17px;
    color: var(--white);
    user-select: all;
}

@media (min-width: 640px) {
    .copy-ip code { font-size: 24px; }
}

.copy-ip .hint {
    flex-shrink: 0;
    border-radius: 6px;
    padding: 4px 10px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    background: var(--amber);
    color: #000;
}

@media (min-width: 640px) {
    .copy-ip .hint { padding: 6px 12px; font-size: 14px; }
}

.launchers-grid {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    .launchers-grid { gap: 24px; margin-top: 32px; }
}

@media (min-width: 768px) {
    .launchers-grid { grid-template-columns: repeat(3, 1fr); }
}

.launcher-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .1);
    background: var(--panel);
    padding: 18px;
    transition: border-color .15s ease;
}

@media (min-width: 640px) {
    .launcher-card { padding: 24px; }
}

.launcher-card:hover {
    border-color: rgba(252, 211, 77, .7);
}

.launcher-card .name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

@media (min-width: 640px) {
    .launcher-card .name { font-size: 20px; }
}

.launcher-card .note {
    margin-top: 6px;
    flex: 1;
    font-size: 14px;
    color: var(--zinc-400);
}

@media (min-width: 640px) {
    .launcher-card .note { margin-top: 8px; font-size: inherit; }
}

.launcher-card .cta {
    margin-top: 18px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--amber);
}

@media (min-width: 640px) {
    .launcher-card .cta { margin-top: 24px; font-size: inherit; }
}

.warning-box {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(239, 68, 68, .4);
    background: rgba(239, 68, 68, .1);
    padding: 16px;
}

@media (min-width: 640px) {
    .warning-box { margin-top: 24px; padding: 20px 24px; gap: 16px; }
}

.warning-box svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #f87171;
}

@media (min-width: 640px) {
    .warning-box svg { width: 28px; height: 28px; }
}

.warning-box p {
    font-size: 14px;
    line-height: 22px;
    color: var(--zinc-300);
}

@media (min-width: 640px) {
    .warning-box p { font-size: inherit; line-height: 28px; }
}

/* === соцсітки === */

.social-badges {
    margin-top: 32px;
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
}

.social-badges.centered {
    justify-content: center;
}

.social-badge {
    display: flex;
    height: 56px;
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius);
    color: var(--white);
    transition: transform .15s ease;
}

@media (min-width: 640px) {
    .social-badges {
        flex-wrap: wrap;
        gap: 16px;
    }

    .social-badge {
        flex: 0 0 200px;
        width: 200px;
        height: 65px;
    }
}

.social-badge:hover {
    transform: translateY(-2px);
}

.social-badge svg {
    width: 32px;
    height: 32px;
}

.social-discord { background: #5865F2; }
.social-discord:hover { background: #4752C4; }
.social-git { background: #fff; }
.social-git:hover { background: #f4f4f5; }
.social-youtube { background: #FF0000; }
.social-youtube:hover { background: #CC0000; }
.social-tiktok { background: #18181b; border: 1px solid rgba(255,255,255,.1); }
.social-tiktok:hover { background: #27272a; }

/* === footer === */

.site-footer {
    background: #131313;
    color: var(--white);
}

.footer-inner {
    margin: 0 auto;
    width: var(--container);
    max-width: calc(100% - 32px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    padding: 36px 0 44px;
}

@media (min-width: 768px) {
    .footer-inner { padding: 70px 0 60px; gap: 40px 48px; }
}

.footer-cols {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@media (min-width: 560px) {
    .footer-cols {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 36px 48px;
    }
}

@media (min-width: 768px) {
    .footer-cols { gap: 40px 70px; }
}

.footer-brand {
    width: 100%;
    max-width: 260px;
}

.footer-brand .logo {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
}

@media (min-width: 640px) {
    .footer-brand .logo { font-size: 36px; }
}

.footer-brand .logo .blue { color: #1c34f5; }
.footer-brand .logo .yellow { color: #ffe009; }

.footer-brand p {
    margin-top: 14px;
    width: auto;
    max-width: 240px;
    font-family: var(--font-heading);
    font-size: 15px;
    line-height: 20px;
    color: #8c8c8c;
}

.footer-col {
    width: 100%;
    max-width: 240px;
}

.footer-col h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
}

.footer-col ul {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 15px;
    line-height: 19px;
    color: #8c8c8c;
    list-style: none;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    height: fit-content;
}

@media (min-width: 640px) {
    .footer-socials {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px 50px;
    }
}

.footer-socials a {
    color: var(--white);
    transition: color .15s ease, transform .15s ease;
}

.footer-socials a:hover {
    color: var(--yellow);
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 36px;
    height: 36px;
}

@media (min-width: 640px) {
    .footer-socials svg {
        width: 44px;
        height: 44px;
    }
}

/* === динозаврик (404 / техроботи) === */

.dino-page {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--zinc-950);
    padding: 64px 24px;
    text-align: center;
}

.dino-404 {
    min-height: calc(100vh - 100px);
    padding-top: 32px;
}

@media (min-width: 640px) {
    .dino-404 {
        padding-top: 64px;
    }
}

.dino-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -10;
    height: 600px;
    width: 600px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(252, 211, 77, .1);
    filter: blur(64px);
}

.dino-scene {
    position: relative;
    width: 240px;
}

@media (min-width: 640px) {
    .dino-scene { width: 300px; }
}

.dino-scene .dino-body {
    animation: dino-bob .6s steps(2) infinite;
}

.dino-scene .bitten-page {
    position: absolute;
    right: -40px;
    top: 8px;
    width: 48px;
    transform: rotate(12deg);
}

@media (min-width: 640px) {
    .dino-scene .bitten-page { right: -48px; width: 56px; }
}

.dino-scene .crumb {
    position: absolute;
    top: 28%;
    height: 8px;
    width: 8px;
    background: var(--zinc-200);
    animation: crumb 2.4s ease-in infinite;
}

.dino-scene .ground {
    margin-top: 4px;
    height: 3px;
    width: 140%;
    transform: translateX(-15%);
    background: repeating-linear-gradient(90deg, var(--zinc-600) 0 16px, transparent 16px 28px);
}

.dino-eyebrow {
    margin-top: 48px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3em;
    color: var(--amber);
}

.dino-page h1 {
    margin-top: 16px;
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
}

@media (min-width: 640px) {
    .dino-page h1 { font-size: 40px; line-height: 130%; }
}

.dino-page .code {
    margin-top: 48px;
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    color: var(--amber);
}

@media (min-width: 640px) {
    .dino-page .code { font-size: 96px; }
}

.dino-page p.lead {
    margin-top: 16px;
    max-width: 640px;
    font-size: 15px;
    line-height: 26px;
    color: var(--zinc-400);
}

@media (min-width: 640px) {
    .dino-page p.lead {
        font-size: 18px;
        line-height: 32px;
    }
}

/* === помилки / shop / legal === */

.notice {
    display: flex;
    gap: 25px;
}

.notice-bar {
    width: 5px;
    flex-shrink: 0;
    border-radius: 9999px;
    background: var(--yellow);
}

.notice-eyebrow {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--red);
}

.notice h1 {
    margin-top: 12px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 130%;
}

@media (min-width: 640px) {
    .notice h1 { font-size: 40px; }
}

.notice .lead {
    margin-top: 16px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
    color: var(--zinc-300);
}

@media (min-width: 640px) {
    .notice .lead {
        margin-top: 24px;
        font-size: 20px;
        line-height: 130%;
    }
}

.legal-updated {
    margin-top: 12px;
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--zinc-500);
}

.legal-body {
    margin-top: 40px;
}

@media (min-width: 768px) {
    .legal-body { margin-top: 60px; }
}

.fineprint {
    margin-top: 40px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--zinc-500);
}

@media (min-width: 640px) {
    .fineprint {
        margin-top: 70px;
    }
}

/* === адмінка === */

.admin-page {
    min-height: 100vh;
    background: var(--bg);
    padding: 24px 16px;
}

@media (min-width: 640px) {
    .admin-page {
        padding: 48px 16px;
    }
}

.admin-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-header h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    line-height: 130%;
}

@media (min-width: 640px) {
    .admin-header h1 {
        font-size: 40px;
    }
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-tabs {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (min-width: 640px) {
    .admin-tabs {
        margin-top: 30px;
    }
}

.admin-tab {
    height: 40px;
    display: flex;
    align-items: center;
    border-radius: var(--radius);
    padding: 0 16px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    background: var(--panel);
    color: var(--zinc-400);
    transition: color .15s ease, background-color .15s ease;
}

@media (min-width: 640px) {
    .admin-tab {
        height: 44px;
        padding: 0 20px;
        font-size: 15px;
    }
}

.admin-tab:hover {
    color: var(--white);
}

.admin-tab.active {
    background: #111537;
    color: var(--white);
}

.admin-content {
    margin-top: 30px;
}

.panel {
    border-radius: var(--radius);
    background: var(--panel);
    padding: 24px;
}

@media (min-width: 640px) {
    .panel { padding: 37px; }
}

.panel + .panel {
    margin-top: 30px;
}

.panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.panel-header h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
}

.panel-header .description {
    margin-top: 4px;
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--zinc-400);
}

.panel-body {
    margin-top: 30px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field > span.label {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.field .hint {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--zinc-500);
}

.form-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .form-grid-2 { grid-template-columns: 1fr 1fr; }
    .form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.form-col-2 {
    grid-column: 1 / -1;
}

.input, textarea.input, select.input {
    width: 100%;
    height: 49px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .1);
    background: var(--bg);
    padding: 0 16px;
    font-family: var(--font-heading);
    font-size: 15px;
    outline: none;
    transition: border-color .15s ease;
}

.input::placeholder {
    color: var(--zinc-600);
}

.input:focus, textarea.input:focus, select.input:focus {
    border-color: var(--yellow);
}

textarea.input {
    height: auto;
    padding: 12px 16px;
    line-height: 22px;
    resize: vertical;
}

.color-field {
    display: flex;
    gap: 12px;
}

.color-field input[type="color"] {
    height: 49px;
    width: 60px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .1);
    background: var(--bg);
    padding: 4px;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-field input {
    width: 20px;
    height: 20px;
    accent-color: var(--yellow);
    cursor: pointer;
}

.toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.form-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.save-bar {
    position: sticky;
    bottom: 16px;
    z-index: 10;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    border-radius: var(--radius);
    background: rgba(18, 18, 20, .9);
    padding: 12px 16px;
    backdrop-filter: blur(8px);
}

.flash {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
}

.flash-saved { color: var(--green); }
.flash-error { color: var(--red); }
.flash-info { color: var(--zinc-400); }

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    list-style: none;
}

.admin-row {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg);
    padding: 16px 16px 16px 25px;
}

.admin-row::before {
    content: "";
    position: absolute;
    inset-block: 0;
    left: 0;
    width: 8px;
    border-radius: 8px;
    background: var(--yellow);
}

.admin-row-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-row-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.admin-row-title .muted {
    font-weight: 500;
    color: var(--zinc-500);
}

.admin-row-meta {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--zinc-500);
}

.admin-row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-row-actions form {
    display: inline;
}

.admin-editor {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-editor .item-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-editor .item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--zinc-400);
}

.list-controls {
    display: flex;
    gap: 8px;
}

.login-form {
    margin: 8vh auto 0;
    display: flex;
    width: 420px;
    max-width: 100%;
    flex-direction: column;
    gap: 20px;
    border-radius: var(--radius);
    background: var(--panel);
    padding: 24px 18px;
}

@media (min-width: 640px) {
    .login-form {
        margin: 20vh auto 0;
        gap: 24px;
        padding: 37px;
    }
}

.login-form h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
}

@media (min-width: 640px) {
    .login-form h1 {
        font-size: 30px;
    }
}

.login-form p.hint {
    margin-top: 4px;
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--zinc-400);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px 24px;
    border-radius: var(--radius);
    background: var(--bg);
    padding: 20px;
    font-family: var(--font-heading);
}

@media (min-width: 640px) {
    .stat-row {
        display: flex;
        flex-wrap: wrap;
        gap: 48px 32px;
    }
}

.stat-row dt {
    font-size: 13px;
    color: var(--zinc-500);
}

.stat-row dd {
    font-size: 18px;
    font-weight: 700;
}

.stat-row dd.bad {
    color: var(--red);
}

details > summary {
    cursor: pointer;
}

/* === анімації === */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes ping {
    0% { transform: scale(1); opacity: .75; }
    75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes dino-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes crumb {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translate(12px, 140px) rotate(180deg); opacity: 0; }
}

.skeleton {
    display: inline-block;
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
}
