:root {
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;

    --container-width: 1180px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: 160ms ease;
}

:root[data-theme="light"] {
    color-scheme: light;

    --bg: #f4f7fb;
    --bg-soft: #edf2f8;
    --surface: #ffffff;
    --surface-hover: #f8fafc;

    --text: #162033;
    --text-soft: #64748b;
    --text-faint: #94a3b8;

    --border: #dce4ee;
    --border-strong: #cbd5e1;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-text: #ffffff;

    --danger-bg: #fff1f2;
    --danger-border: #fecdd3;
    --danger-text: #be123c;

    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --success-text: #047857;

    --shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
    --header-bg: rgba(255, 255, 255, 0.88);
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --bg: #111827;
    --bg-soft: #172033;
    --surface: #1d293d;
    --surface-hover: #26344a;

    --text: #edf3fb;
    --text-soft: #a8b7ca;
    --text-faint: #7e90a8;

    --border: #334155;
    --border-strong: #475569;

    --primary: #60a5fa;
    --primary-hover: #93c5fd;
    --primary-text: #0f172a;

    --danger-bg: #3d1823;
    --danger-border: #7f1d3a;
    --danger-text: #fda4af;

    --success-bg: #12372d;
    --success-border: #1b6b4d;
    --success-text: #86efac;

    --shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
    --header-bg: rgba(17, 24, 39, 0.9);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;

    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
    outline-offset: 3px;
}

.container {
    width: min(calc(100% - 40px), var(--container-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;

    border-bottom: 1px solid var(--border);
    background: var(--header-bg);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
}

.main-navigation a {
    padding: 8px 11px;
    border-radius: 8px;
    color: var(--text-soft);
    font-size: 0.94rem;
    font-weight: 600;
    transition: color var(--transition), background var(--transition);
}

.main-navigation a:hover,
.main-navigation a.is-active {
    background: var(--bg-soft);
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--transition), background var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
}

.theme-icon-light,
.theme-icon-dark {
    font-size: 20px;
    line-height: 1;
}

:root[data-theme="light"] .theme-icon-dark,
:root[data-theme="dark"] .theme-icon-light {
    display: none;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 10px;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition);
}

.site-main {
    flex: 1 0 auto;
    padding: 48px 0 72px;
}

.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.page-heading h1,
.article-full h1,
.error-page h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.page-description {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--text-soft);
}

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 0.92rem;
    font-weight: 700;

    transition:
        color var(--transition),
        border-color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--primary-text);
}

.button-primary:hover {
    border-color: var(--primary-hover);
    background: var(--primary-hover);
}

.button-outline {
    border-color: var(--border-strong);
    background: var(--surface);
    color: var(--text);
}

.button-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.button-login {
    min-height: 40px;
}

.button-full {
    width: 100%;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.article-card {
    min-width: 0;
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);

    transition: transform var(--transition), border-color var(--transition);
}

.article-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.article-card-cover {
    min-height: 170px;
    display: grid;
    place-items: center;
    border-bottom: 1px solid var(--border);
}

.article-card-cover-placeholder {
    background:
        radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.55), transparent 35%),
        linear-gradient(135deg, var(--bg-soft), var(--surface));
    color: var(--primary);
    font-size: 2.2rem;
}

.article-card-content {
    padding: 20px;
}

.article-card time,
.article-full time {
    color: var(--text-faint);
    font-size: 0.84rem;
}

.article-card h2 {
    margin: 8px 0 10px;
    font-size: 1.23rem;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.article-card h2 a:hover {
    color: var(--primary);
}

.article-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.article-link {
    display: inline-flex;
    gap: 7px;
    margin-top: 18px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
}

.article-link:hover {
    color: var(--primary-hover);
}

.article-full {
    width: min(100%, 860px);
    margin: 0 auto;
}

.article-full-header {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.article-full-header time {
    display: block;
    margin-top: 16px;
}

.article-full-content {
    color: var(--text);
    font-size: 1.04rem;
}

.article-full-content p {
    margin: 0 0 18px;
}

.article-full-content code {
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--bg-soft);
    color: var(--primary);
    font-size: 0.92em;
}

.article-full-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.info-blocks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.info-block {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.info-block h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.info-block p {
    margin: 0;
    color: var(--text-soft);
}

.guestbook-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 370px);
    align-items: start;
    gap: 25px;
}

.guestbook-entries {
    display: grid;
    gap: 16px;
}

.guestbook-entry {
    padding: 21px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.guestbook-entry-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--border);
}

.guestbook-entry-header strong {
    color: var(--text);
}

.guestbook-entry-header time {
    flex: 0 0 auto;
    color: var(--text-faint);
    font-size: 0.82rem;
}

.guestbook-entry p {
    margin: 16px 0 0;
    color: var(--text-soft);
}

.guestbook-form-card {
    position: sticky;
    top: 96px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.guestbook-form-card h2 {
    margin: 0 0 18px;
    font-size: 1.25rem;
}

.guestbook-form-card form {
    display: grid;
    gap: 15px;
}

.guestbook-form-card label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-optional {
    color: var(--text-faint);
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

input {
    min-height: 42px;
    padding: 9px 11px;
}

textarea {
    min-height: 130px;
    padding: 11px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
    outline: 0;
}

.form-note {
    margin: -3px 0 0;
    color: var(--text-faint);
    font-size: 0.82rem;
}

.alert {
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: var(--radius-sm);
}

.alert-success {
    border-color: var(--success-border);
    background: var(--success-bg);
    color: var(--success-text);
}

.alert-error {
    border-color: var(--danger-border);
    background: var(--danger-bg);
    color: var(--danger-text);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-button,
.pagination-page {
    min-width: 39px;
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;

    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 700;
}

.pagination-button:hover,
.pagination-page:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-page.is-current {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--primary-text);
}

.pagination-button.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.empty-state,
.error-page {
    padding: 54px 25px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    text-align: center;
}

.empty-state h2,
.error-page h1 {
    margin-top: 0;
}

.empty-state p,
.error-page p {
    max-width: 570px;
    margin: 12px auto 0;
    color: var(--text-soft);
}

.error-page {
    width: min(100%, 760px);
    margin: 55px auto;
}

.error-code {
    margin: 0;
    color: var(--primary);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.08em;
}

.error-page .button {
    margin-top: 25px;
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-copy {
    margin: 0;
    color: var(--text-faint);
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--primary);
}

@media (max-width: 900px) {
    .article-grid,
    .info-blocks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guestbook-layout {
        grid-template-columns: 1fr;
    }

    .guestbook-form-card {
        position: static;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(calc(100% - 28px), var(--container-width));
    }

    .header-inner {
        min-height: 64px;
        gap: 12px;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .header-actions {
        margin-left: auto;
    }

    .button-login {
        display: none;
    }

    .main-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;

        display: none;
        margin: 0;
        padding: 12px 14px 16px;

        border-bottom: 1px solid var(--border);
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .main-navigation.is-open {
        display: grid;
        gap: 5px;
    }

    .main-navigation a {
        padding: 11px 12px;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-main {
        padding: 33px 0 52px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 24px;
    }

    .article-grid,
    .info-blocks {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .article-card-cover {
        min-height: 150px;
    }

    .guestbook-entry-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pagination-button {
        min-width: 130px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 15px 0;
    }
}

@media (max-width: 430px) {
    .header-actions {
        gap: 7px;
    }

    .theme-toggle,
    .menu-toggle {
        width: 39px;
        height: 39px;
    }

    .site-logo {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pagination-pages {
        order: -1;
        width: 100%;
        justify-content: center;
    }
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin: 34px 0 8px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-page,
.pagination-arrow {
    min-width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 10px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 10px;

    background: var(--surface, #ffffff);
    color: var(--text-soft, #64748b);

    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;

    transition:
        background 160ms ease,
        color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.pagination-page:hover,
.pagination-arrow:hover {
    border-color: var(--primary, #2563eb);

    background: var(--bg-soft, #eff6ff);
    color: var(--primary, #2563eb);

    transform: translateY(-1px);

    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.14);
}

.pagination-page.is-current {
    border-color: var(--primary, #2563eb);

    background: var(--primary, #2563eb);
    color: #ffffff;

    cursor: default;

    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.24);
}

.pagination-arrow {
    font-size: 1.65rem;
    font-weight: 400;
}

.pagination-arrow.is-disabled {
    border-color: var(--border, #d9e0ea);

    background: var(--bg-soft, #f1f5f9);
    color: var(--text-faint, #94a3b8);

    cursor: not-allowed;
    opacity: 0.65;
}

.pagination-dots {
    width: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--text-faint, #94a3b8);

    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
}

html.dark .pagination-page,
html.dark .pagination-arrow {
    border-color: #475569;
    background: #1d2939;
    color: #cbd5e1;
}

html.dark .pagination-page:hover,
html.dark .pagination-arrow:hover {
    border-color: #60a5fa;
    background: #263a57;
    color: #93c5fd;
}

html.dark .pagination-page.is-current {
    border-color: #60a5fa;
    background: #60a5fa;
    color: #0f172a;
}

html.dark .pagination-arrow.is-disabled {
    border-color: #334155;
    background: #172033;
    color: #64748b;
}

@media (max-width: 480px) {
    .pagination {
        gap: 7px;
    }

    .pagination-numbers {
        gap: 4px;
    }

    .pagination-page,
    .pagination-arrow {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;

        border-radius: 9px;

        font-size: 0.86rem;
    }

    .pagination-arrow {
        font-size: 1.45rem;
    }

    .pagination-dots {
        width: 18px;
    }
}



/*
|--------------------------------------------------------------------------
*/

.review-page {
    width: min(100%, 820px);

    margin: 0 auto;
}

.review-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 18px;

    color: var(--text-soft, #64748b);

    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.review-back-link:hover {
    color: var(--primary, #2563eb);
}

.review-form-card {
    overflow: hidden;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 20px;

    background: var(--surface, #ffffff);

    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.review-form-intro {
    position: relative;

    padding: 32px 34px 27px;

    border-bottom: 1px solid var(--border, #d9e0ea);

    background:
        radial-gradient(
            circle at top right,
            rgba(37, 99, 235, 0.13),
            transparent 42%
        ),
        var(--surface, #ffffff);
}

.review-form-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    margin-bottom: 16px;

    border-radius: 14px;

    background: var(--primary, #2563eb);
    color: #ffffff;

    font-size: 1.2rem;
}

.review-form-intro h1 {
    margin: 0;

    color: var(--text, #172033);

    font-size: clamp(2rem, 4vw, 2.55rem);
    letter-spacing: -0.04em;
}

.review-form-intro p:not(.eyebrow) {
    max-width: 620px;

    margin: 10px 0 0;

    color: var(--text-soft, #64748b);

    line-height: 1.6;
}

.review-form {
    display: grid;
    gap: 20px;

    padding: 30px 34px 34px;
}

.review-form label {
    display: grid;
    gap: 8px;

    color: var(--text, #172033);

    font-size: 0.91rem;
    font-weight: 750;
}

.review-form label small {
    margin-top: -4px;

    color: var(--text-faint, #94a3b8);

    font-size: 0.78rem;
    font-weight: 500;
}

.review-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.review-rating-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    padding: 17px 18px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 13px;

    background: var(--bg-soft, #f8fafc);
}

.review-label {
    color: var(--text, #172033);

    font-size: 0.91rem;
    font-weight: 750;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 2px;
}

.star-rating input {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    opacity: 0;
}

.star-rating label {
    margin: 0;

    color: #cbd5e1;

    font-size: 2rem;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transition:
        color 140ms ease,
        transform 140ms ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f59e0b;
}

.star-rating label:hover {
    transform: scale(1.13);
}

.rating-description {
    min-width: 115px;

    color: #b45309;

    font-size: 0.88rem;
    font-weight: 750;
}

.emoji-picker {
    display: grid;
    gap: 9px;

    padding: 15px 16px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 13px;

    background: var(--bg-soft, #f8fafc);
}

.emoji-picker-label {
    color: var(--text-soft, #64748b);

    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.emoji-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.emoji-button {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 10px;

    background: var(--surface, #ffffff);

    font-size: 1.22rem;
    line-height: 1;

    cursor: pointer;

    transition:
        border-color 140ms ease,
        background 140ms ease,
        transform 140ms ease;
}

.emoji-button:hover {
    border-color: var(--primary, #2563eb);

    background: #eff6ff;

    transform: translateY(-2px) scale(1.06);
}

.review-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-top: 20px;

    border-top: 1px solid var(--border, #d9e0ea);
}

.review-form-footer p {
    max-width: 435px;

    margin: 0;

    color: var(--text-faint, #94a3b8);

    font-size: 0.8rem;
    line-height: 1.5;
}

.review-submit-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 45px;

    white-space: nowrap;
}

html.dark .review-form-card {
    border-color: #3b4a60;

    background: #1d2939;
}

html.dark .review-form-intro {
    border-color: #3b4a60;

    background:
        radial-gradient(
            circle at top right,
            rgba(96, 165, 250, 0.16),
            transparent 42%
        ),
        #1d2939;
}

html.dark .review-form-intro h1,
html.dark .review-form label,
html.dark .review-label {
    color: #edf3fb;
}

html.dark .review-rating-group,
html.dark .emoji-picker {
    border-color: #3b4a60;

    background: #172033;
}

html.dark .emoji-button {
    border-color: #475569;

    background: #1d2939;
}

html.dark .emoji-button:hover {
    border-color: #60a5fa;

    background: #263a57;
}

html.dark .review-form-footer {
    border-color: #3b4a60;
}

@media (max-width: 650px) {
    .review-form-intro,
    .review-form {
        padding-right: 19px;
        padding-left: 19px;
    }

    .review-form-grid {
        grid-template-columns: 1fr;
    }

    .review-rating-group {
        align-items: flex-start;
        flex-direction: column;
    }

    .review-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .review-submit-button {
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
*/

.guestbook-rating {
    margin-top: 7px;

    font-size: 0.92rem;
    letter-spacing: 1px;
}

.guestbook-rating-filled {
    color: #f59e0b;
}

.guestbook-rating-empty {
    color: #cbd5e1;
}

html.dark .guestbook-rating-empty {
    color: #475569;
}

/*
|--------------------------------------------------------------------------
| Компактные карточки отзывов гостевой книги
|--------------------------------------------------------------------------
*/

.guestbook-list {
    display: grid;
    gap: 11px;
}

.review-card {
    padding: 16px 18px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 13px;

    background: var(--surface, #ffffff);

    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.035);

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.review-card:hover {
    border-color: rgba(37, 99, 235, 0.45);

    box-shadow: 0 8px 21px rgba(15, 23, 42, 0.075);

    transform: translateY(-1px);
}

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

.review-card-main {
    min-width: 0;
}

.review-card-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 34px;
    height: 34px;

    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--primary, #2563eb),
        #60a5fa
    );

    color: #ffffff;

    font-size: 0.85rem;
    font-weight: 800;
}

.review-author {
    display: block;

    color: var(--text, #172033);

    font-size: 0.91rem;
    line-height: 1.1;
}

.review-stars {
    margin-top: 3px;

    font-size: 0.88rem;
    letter-spacing: 0;
    line-height: 1;
}

.review-stars-filled {
    color: #f59e0b;
}

.review-stars-empty {
    color: #cbd5e1;
}

.review-card-title {
    margin: 11px 0 0;

    color: var(--text, #172033);

    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.review-date {
    display: grid;
    flex: 0 0 auto;
    gap: 1px;

    color: var(--text-faint, #94a3b8);

    font-size: 0.76rem;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}

.review-card-text {
    margin-top: 14px;
    padding-top: 13px;

    border-top: 1px solid var(--border, #d9e0ea);

    color: var(--text-soft, #475569);

    font-size: 0.94rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

html.dark .review-card {
    border-color: #3b4a60;

    background: #1d2939;
}

html.dark .review-card:hover {
    border-color: #60a5fa;
}

html.dark .review-author,
html.dark .review-card-title {
    color: #edf3fb;
}

html.dark .review-card-text {
    border-color: #3b4a60;

    color: #cbd5e1;
}

html.dark .review-stars-empty {
    color: #475569;
}

@media (max-width: 560px) {
    .review-card {
        padding: 15px;
    }

    .review-card-header {
        gap: 10px;
    }

    .review-date {
        font-size: 0.7rem;
    }

    .review-card-title {
        margin-top: 10px;

        font-size: 0.95rem;
    }

    .review-card-text {
        margin-top: 12px;
        padding-top: 12px;

        font-size: 0.91rem;
    }
}

/*
|--------------------------------------------------------------------------
| Компактные карточки отзывов гостевой книги
|--------------------------------------------------------------------------
*/

.review-card-footer {
    display: flex;
    justify-content: flex-end;

    margin-top: 13px;
    padding-top: 12px;

    border-top: 1px solid var(--border, #d9e0ea);
}

.review-like-form {
    margin: 0;
}

.review-like-button {
    min-height: 32px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 10px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 9px;

    background: transparent;
    color: var(--text-soft, #64748b);

    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        border-color 150ms ease,
        background 150ms ease,
        color 150ms ease,
        transform 150ms ease;
}

.review-like-button:hover {
    border-color: #60a5fa;

    background: #eff6ff;
    color: #2563eb;

    transform: translateY(-1px);
}

.review-like-button strong {
    min-width: 19px;

    padding: 1px 5px;

    border-radius: 20px;

    background: var(--bg-soft, #f1f5f9);

    color: inherit;

    text-align: center;
}

.review-like-icon {
    font-size: 0.92rem;

    transition: transform 150ms ease;
}

.review-like-button:hover .review-like-icon {
    transform: scale(1.18) rotate(-8deg);
}

html.dark .review-card-footer {
    border-color: #3b4a60;
}

html.dark .review-like-button {
    border-color: #475569;

    color: #aebed1;
}

html.dark .review-like-button:hover {
    border-color: #60a5fa;

    background: #263a57;
    color: #93c5fd;
}

html.dark .review-like-button strong {
    background: #172033;
}

/*
|--------------------------------------------------------------------------
| Главная страница
|--------------------------------------------------------------------------
*/

.home-hero {
    position: relative;

    min-height: 390px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;

    overflow: hidden;

    margin-bottom: 68px;
    padding: 48px 52px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 22px;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(37, 99, 235, 0.18),
            transparent 31%
        ),
        radial-gradient(
            circle at 70% 80%,
            rgba(96, 165, 250, 0.15),
            transparent 35%
        ),
        var(--surface, #ffffff);

    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.home-hero-content {
    position: relative;
    z-index: 2;

    width: min(100%, 680px);
}

.home-hero h1 {
    max-width: 680px;

    margin: 0;

    color: var(--text, #172033);

    font-size: clamp(1.35rem, 3.1vw, 2.25rem);
    line-height: 1.03;
    letter-spacing: -0.055em;
}

.home-hero-text {
    max-width: 580px;

    margin: 19px 0 0;

    color: var(--text-soft, #64748b);

    font-size: 1.08rem;
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 28px;
}

.home-primary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 45px;
}

.home-secondary-button {
    min-height: 45px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 15px;

    border: 1px solid var(--border-strong, #b8c5d4);
    border-radius: 9px;

    color: var(--text, #172033);

    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;

    transition:
        border-color 160ms ease,
        color 160ms ease,
        background 160ms ease;
}

.home-secondary-button:hover {
    border-color: var(--primary, #2563eb);

    background: var(--bg-soft, #eff6ff);
    color: var(--primary, #2563eb);
}

.home-hero-visual {
    position: relative;

    width: 250px;
    height: 250px;

    flex: 0 0 auto;
}

.home-hero-symbol {
    position: absolute;
    inset: 50% auto auto 50%;

    width: 105px;
    height: 105px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(96, 165, 250, 0.6);
    border-radius: 50%;

    background: rgba(37, 99, 235, 0.13);
    color: var(--primary, #2563eb);

    font-size: 3.2rem;
    font-weight: 850;
    letter-spacing: -0.08em;

    transform: translate(-50%, -50%);
}

.home-orbit {
    position: absolute;

    border: 1px solid rgba(96, 165, 250, 0.42);
    border-radius: 50%;
}

.orbit-one {
    inset: 12px;
}

.orbit-two {
    inset: 43px;

    border-style: dashed;
}

.orbit-three {
    inset: 75px;

    border-color: rgba(37, 99, 235, 0.65);
}

.home-section {
    margin-bottom: 63px;
}

.home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 21px;
}

.home-section-header h2,
.home-about-section h2 {
    margin: 0;

    color: var(--text, #172033);

    font-size: clamp(1.65rem, 3vw, 2.15rem);
    letter-spacing: -0.04em;
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    flex: 0 0 auto;

    color: var(--primary, #2563eb);

    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.home-section-link:hover {
    color: var(--primary-hover, #1d4ed8);
}

.home-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.home-article-card {
    overflow: hidden;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 15px;

    background: var(--surface, #ffffff);

    transition:
        border-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.home-article-card:hover {
    border-color: rgba(37, 99, 235, 0.45);

    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);

    transform: translateY(-2px);
}

.home-article-cover {
    height: 118px;

    display: grid;
    place-items: center;

    border-bottom: 1px solid var(--border, #d9e0ea);

    background:
        radial-gradient(
            circle at 30% 20%,
            rgba(96, 165, 250, 0.42),
            transparent 35%
        ),
        var(--bg-soft, #eff6ff);

    color: var(--primary, #2563eb);

    font-size: 2rem;
}

.home-article-content {
    padding: 17px;
}

.home-article-content time {
    color: var(--text-faint, #94a3b8);

    font-size: 0.77rem;
}

.home-article-content h3 {
    margin: 7px 0 8px;

    font-size: 1.04rem;
    line-height: 1.36;
    letter-spacing: -0.018em;
}

.home-article-content h3 a {
    color: var(--text, #172033);
    text-decoration: none;
}

.home-article-content h3 a:hover {
    color: var(--primary, #2563eb);
}

.home-article-content p {
    margin: 0;

    color: var(--text-soft, #64748b);

    font-size: 0.87rem;
    line-height: 1.55;
}

.home-article-link {
    display: inline-flex;
    gap: 6px;

    margin-top: 14px;

    color: var(--primary, #2563eb);

    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.home-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.home-review-card {
    padding: 17px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 14px;

    background: var(--surface, #ffffff);
}

.home-review-top {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.home-review-avatar {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--primary, #2563eb),
        #60a5fa
    );

    color: #ffffff;

    font-size: 0.81rem;
    font-weight: 800;
}

.home-review-top strong {
    display: block;

    color: var(--text, #172033);

    font-size: 0.88rem;
    line-height: 1.15;
}

.home-review-stars {
    margin-top: 3px;

    color: #f59e0b;

    font-size: 0.78rem;
    line-height: 1;
}

.home-review-stars i {
    color: #cbd5e1;
    font-style: normal;
}

.home-review-top time {
    color: var(--text-faint, #94a3b8);

    font-size: 0.72rem;
    white-space: nowrap;
}

.home-review-card h3 {
    margin: 14px 0 7px;

    color: var(--text, #172033);

    font-size: 0.96rem;
    line-height: 1.35;
}

.home-review-card > p {
    margin: 0;

    color: var(--text-soft, #64748b);

    font-size: 0.86rem;
    line-height: 1.58;
}

.home-review-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 13px;
    padding-top: 11px;

    border-top: 1px solid var(--border, #d9e0ea);

    color: var(--text-faint, #94a3b8);

    font-size: 0.75rem;
}

.home-review-card footer a {
    color: var(--primary, #2563eb);

    font-weight: 750;
    text-decoration: none;
}

.home-about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;

    overflow: hidden;

    margin-bottom: 25px;
    padding: 35px 39px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 18px;

    background:
        radial-gradient(
            circle at 94% 30%,
            rgba(96, 165, 250, 0.18),
            transparent 25%
        ),
        var(--surface, #ffffff);
}

.home-about-content {
    max-width: 730px;
}

.home-about-content > p:not(.eyebrow) {
    margin: 13px 0 22px;

    color: var(--text-soft, #64748b);

    line-height: 1.67;
}

.home-about-symbol {
    width: 90px;
    height: 90px;

    display: grid;
    flex: 0 0 auto;
    place-items: center;

    border: 1px solid rgba(37, 99, 235, 0.45);
    border-radius: 24px;

    background: var(--bg-soft, #eff6ff);
    color: var(--primary, #2563eb);

    font-size: 2rem;
}

html.dark .home-hero,
html.dark .home-article-card,
html.dark .home-review-card,
html.dark .home-about-section {
    border-color: #3b4a60;

    background-color: #1d2939;
}

html.dark .home-hero h1,
html.dark .home-section-header h2,
html.dark .home-about-section h2,
html.dark .home-article-content h3 a,
html.dark .home-review-top strong,
html.dark .home-review-card h3 {
    color: #edf3fb;
}

html.dark .home-article-cover {
    border-color: #3b4a60;

    background-color: #172033;
}

html.dark .home-review-card footer {
    border-color: #3b4a60;
}

html.dark .home-review-stars i {
    color: #475569;
}

html.dark .home-secondary-button {
    border-color: #475569;

    color: #edf3fb;
}

html.dark .home-secondary-button:hover {
    border-color: #60a5fa;

    background: #263a57;
    color: #93c5fd;
}

@media (max-width: 850px) {
    .home-article-grid,
    .home-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero {
        min-height: 0;
        padding: 37px;
    }

    .home-hero-visual {
        width: 190px;
        height: 190px;
    }
}

@media (max-width: 640px) {
    .home-hero {
        display: block;

        margin-bottom: 48px;
        padding: 27px 21px;
    }

    .home-hero-visual {
        display: none;
    }

    .home-section {
        margin-bottom: 48px;
    }

    .home-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .home-article-grid,
    .home-review-grid {
        grid-template-columns: 1fr;
    }

    .home-about-section {
        align-items: flex-start;
        flex-direction: column;

        padding: 26px 21px;
    }

    .home-about-symbol {
        width: 58px;
        height: 58px;

        border-radius: 17px;

        font-size: 1.4rem;
    }
}

/* ------------------------------ */

.adminnav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 27px;
    padding: 10px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 12px;

    background: var(--surface, #ffffff);
}

.adminnav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding: 7px 10px;

    border-radius: 8px;

    color: var(--text-soft, #64748b);

    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;

    transition:
        background 160ms ease,
        color 160ms ease;
}

.adminnav a:hover {
    background: var(--bg-soft, #eff6ff);
    color: var(--primary, #2563eb);
}

.adminnav a.is-active {
    background: var(--primary, #2563eb);
    color: #ffffff;
}

.adminnav-site-link {
    margin-left: auto;

    border: 1px solid var(--border, #d9e0ea);
}

html.dark .adminnav {
    border-color: #3b4a60;

    background: #1d2939;
}

html.dark .adminnav a {
    color: #aebed1;
}

html.dark .adminnav a:hover {
    background: #263a57;
    color: #93c5fd;
}

html.dark .adminnav-site-link {
    border-color: #475569;
}

@media (max-width: 650px) {
    .adminnav {
        gap: 5px;
        padding: 8px;
    }

    .adminnav a {
        flex: 1 1 auto;

        padding: 7px 8px;

        font-size: 0.76rem;
    }

    .adminnav-site-link {
        margin-left: 0;
    }
}


/*
|--------------------------------------------------------------------------
| Авторизация
|--------------------------------------------------------------------------
*/

.login-page {
    min-height: calc(100vh - 210px);

    display: grid;
    place-items: center;

    padding: 35px 0;
}

.login-card {
    width: min(100%, 460px);

    padding: 31px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 20px;

    background:
        radial-gradient(
            circle at top right,
            rgba(37, 99, 235, 0.12),
            transparent 36%
        ),
        var(--surface, #ffffff);

    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

.login-card-header {
    margin-bottom: 24px;
}

.login-logo {
    display: inline-flex;

    margin-bottom: 21px;

    color: var(--primary, #2563eb);

    font-size: 1.14rem;
    font-weight: 850;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.login-card-header h1 {
    margin: 0;

    color: var(--text, #172033);

    font-size: 2.15rem;
    letter-spacing: -0.045em;
}

.login-card-header p:not(.eyebrow) {
    margin: 9px 0 0;

    color: var(--text-soft, #64748b);

    line-height: 1.55;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form label {
    display: grid;
    gap: 7px;

    color: var(--text, #172033);

    font-size: 0.88rem;
    font-weight: 750;
}

.login-form input {
    min-height: 45px;
}

.login-submit-button {
    width: 100%;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 46px;

    margin-top: 4px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 24px 0;

    color: var(--text-faint, #94a3b8);

    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.login-divider::before,
.login-divider::after {
    height: 1px;

    flex: 1;

    background: var(--border, #d9e0ea);

    content: "";
}

.steam-login-button {
    min-height: 47px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 10px 15px;

    border: 1px solid #315b89;
    border-radius: 10px;

    background: linear-gradient(
        135deg,
        #152b45,
        #1b4d77
    );

    color: #ffffff;

    font-size: 0.91rem;
    font-weight: 750;
    text-decoration: none;

    transition:
        filter 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.steam-login-button:hover {
    box-shadow: 0 8px 18px rgba(27, 77, 119, 0.28);

    filter: brightness(1.11);

    transform: translateY(-1px);
}

.steam-login-icon {
    width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;

    font-size: 0.55rem;
    line-height: 1;
}

.steam-login-note {
    margin: 12px 0 0;

    color: var(--text-faint, #94a3b8);

    font-size: 0.76rem;
    line-height: 1.5;
    text-align: center;
}

.login-back {
    margin: 24px 0 0;

    font-size: 0.84rem;
    text-align: center;
}

.login-back a {
    color: var(--text-soft, #64748b);
    text-decoration: none;
}

.login-back a:hover {
    color: var(--primary, #2563eb);
}

.login-alert {
    margin: 0 0 17px;
    padding: 12px 14px;

    border: 1px solid;
    border-radius: 10px;

    font-size: 0.86rem;
    line-height: 1.45;
}

.login-alert-error {
    border-color: #fecdd3;

    background: #fff1f2;
    color: #be123c;
}

.login-alert-success {
    border-color: #a7f3d0;

    background: #ecfdf5;
    color: #047857;
}

html.dark .login-card {
    border-color: #3b4a60;

    background:
        radial-gradient(
            circle at top right,
            rgba(96, 165, 250, 0.14),
            transparent 36%
        ),
        #1d2939;
}

html.dark .login-card-header h1,
html.dark .login-form label {
    color: #edf3fb;
}

html.dark .login-divider::before,
html.dark .login-divider::after {
    background: #3b4a60;
}

html.dark .login-alert-error {
    border-color: #7f1d3a;

    background: #3d1823;
    color: #fda4af;
}

html.dark .login-alert-success {
    border-color: #1b6b4d;

    background: #12372d;
    color: #86efac;
}

@media (max-width: 520px) {
    .login-page {
        padding: 13px 0 32px;
    }

    .login-card {
        padding: 24px 19px;

        border-radius: 15px;
    }
}

/*
|--------------------------------------------------------------------------
| Публичная страница «О проекте»
|--------------------------------------------------------------------------
*/

.about-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 28px;
    padding: 35px 39px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 18px;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(37, 99, 235, 0.14),
            transparent 35%
        ),
        var(--surface, #ffffff);
}

.about-hero h1 {
    margin: 0;

    color: var(--text, #172033);

    font-size: clamp(2.25rem, 5vw, 3.7rem);
    letter-spacing: -0.055em;
}

.about-hero p:not(.eyebrow) {
    max-width: 680px;

    margin: 12px 0 0;

    color: var(--text-soft, #64748b);

    line-height: 1.65;
}

.about-hero-symbol {
    width: 95px;
    height: 95px;

    display: grid;
    flex: 0 0 auto;
    place-items: center;

    border: 1px solid rgba(37, 99, 235, 0.45);
    border-radius: 26px;

    background: var(--bg-soft, #eff6ff);
    color: var(--primary, #2563eb);

    font-size: 2.2rem;
}

.about-blocks {
    display: grid;
    gap: 14px;
}

.about-block {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 16px;

    padding: 21px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 14px;

    background: var(--surface, #ffffff);

    transition:
        border-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.about-block:hover {
    border-color: rgba(37, 99, 235, 0.42);

    box-shadow: 0 9px 22px rgba(15, 23, 42, 0.07);

    transform: translateY(-1px);
}

.about-block-icon {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: var(--bg-soft, #eff6ff);
    color: var(--primary, #2563eb);

    font-size: 1.45rem;
}

.about-block-content h2 {
    margin: 0 0 8px;

    color: var(--text, #172033);

    font-size: 1.14rem;
}

.about-block-content div {
    color: var(--text-soft, #64748b);

    line-height: 1.7;
}

.about-empty {
    padding: 55px 20px;

    border: 1px dashed var(--border-strong, #b8c5d4);
    border-radius: 15px;

    background: var(--surface, #ffffff);

    text-align: center;
}

.about-empty > div {
    margin-bottom: 12px;

    color: var(--primary, #2563eb);

    font-size: 2rem;
}

.about-empty h2 {
    margin: 0;
}

.about-empty p {
    color: var(--text-soft, #64748b);
}

/*
|--------------------------------------------------------------------------
| Админка: блоки страницы «О проекте»
|--------------------------------------------------------------------------
*/

.admin-about-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-outline-button {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 13px;

    border: 1px solid var(--border-strong, #b8c5d4);
    border-radius: 9px;

    background: transparent;
    color: var(--text, #172033);

    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;

    transition:
        border-color 160ms ease,
        color 160ms ease,
        background 160ms ease;
}

.admin-outline-button:hover {
    border-color: var(--primary, #2563eb);

    background: var(--bg-soft, #eff6ff);
    color: var(--primary, #2563eb);
}

.about-admin-list {
    display: grid;
    gap: 11px;
}

.about-admin-card {
    display: grid;
    grid-template-columns: 42px 47px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;

    padding: 15px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 13px;

    background: var(--surface, #ffffff);
}

.about-admin-card.is-hidden {
    opacity: 0.62;
}

.about-admin-order form {
    display: grid;
    gap: 4px;
}

.about-admin-order button {
    width: 34px;
    height: 28px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 7px;

    background: var(--bg-soft, #f8fafc);
    color: var(--text-soft, #64748b);

    font: inherit;
    font-weight: 800;

    cursor: pointer;
}

.about-admin-order button:hover {
    border-color: var(--primary, #2563eb);

    color: var(--primary, #2563eb);
}

.about-admin-icon {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--bg-soft, #eff6ff);
    color: var(--primary, #2563eb);

    font-size: 1.25rem;
}

.about-admin-content {
    min-width: 0;
}

.about-admin-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-admin-content h2 {
    overflow: hidden;

    margin: 0;

    color: var(--text, #172033);

    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.about-admin-content p {
    overflow: hidden;

    margin: 6px 0;

    color: var(--text-soft, #64748b);

    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.about-admin-content small {
    color: var(--text-faint, #94a3b8);

    font-size: 0.72rem;
}

.about-admin-status {
    flex: 0 0 auto;

    padding: 3px 7px;

    border-radius: 20px;

    font-size: 0.69rem;
    font-weight: 800;
}

.about-admin-status.is-visible {
    background: #dcfce7;
    color: #15803d;
}

.about-admin-status.is-hidden {
    background: #f1f5f9;
    color: #64748b;
}

.about-admin-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.about-admin-actions form {
    margin: 0;
}

.admin-small-button {
    min-height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 10px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 8px;

    background: var(--surface, #ffffff);
    color: var(--text-soft, #64748b);

    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;

    cursor: pointer;
}

.admin-small-button:hover {
    border-color: var(--primary, #2563eb);

    color: var(--primary, #2563eb);
}

.admin-about-edit-form {
    display: grid;
    gap: 17px;
}

.admin-settings-card small {
    color: var(--text-faint, #94a3b8);

    font-size: 0.75rem;
    font-weight: 500;
}

.admin-message {
    margin-bottom: 18px;
    padding: 12px 14px;

    border: 1px solid;
    border-radius: 10px;

    font-size: 0.87rem;
}

.admin-message-success {
    border-color: #a7f3d0;

    background: #ecfdf5;
    color: #047857;
}

.admin-message-error {
    border-color: #fecdd3;

    background: #fff1f2;
    color: #be123c;
}

.admin-empty-state {
    padding: 42px 20px;

    border: 1px dashed var(--border-strong, #b8c5d4);
    border-radius: 14px;

    background: var(--surface, #ffffff);

    text-align: center;
}

.admin-empty-state h2 {
    margin: 0;
}

.admin-empty-state p {
    margin: 9px 0 20px;

    color: var(--text-soft, #64748b);
}

html.dark .about-hero,
html.dark .about-block,
html.dark .about-empty,
html.dark .about-admin-card,
html.dark .admin-empty-state {
    border-color: #3b4a60;

    background: #1d2939;
}

html.dark .about-hero h1,
html.dark .about-block-content h2,
html.dark .about-admin-content h2 {
    color: #edf3fb;
}

html.dark .about-block-icon,
html.dark .about-hero-symbol,
html.dark .about-admin-icon {
    background: #172033;
}

html.dark .about-admin-order button,
html.dark .admin-small-button {
    border-color: #475569;

    background: #172033;
    color: #aebed1;
}

html.dark .admin-outline-button {
    border-color: #475569;

    color: #edf3fb;
}

html.dark .about-admin-status.is-hidden {
    background: #334155;
    color: #cbd5e1;
}

html.dark .admin-message-success {
    border-color: #1b6b4d;

    background: #12372d;
    color: #86efac;
}

html.dark .admin-message-error {
    border-color: #7f1d3a;

    background: #3d1823;
    color: #fda4af;
}

@media (max-width: 720px) {
    .about-hero {
        align-items: flex-start;
        flex-direction: column;

        padding: 27px 22px;
    }

    .about-hero-symbol {
        width: 60px;
        height: 60px;

        border-radius: 18px;

        font-size: 1.45rem;
    }

    .about-admin-card {
        grid-template-columns: 35px 42px minmax(0, 1fr);
    }

    .about-admin-actions {
        grid-column: 1 / -1;

        justify-content: flex-start;
    }

    .about-admin-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .admin-about-header-actions {
        width: 100%;
    }

    .admin-about-header-actions > a {
        flex: 1;
    }
}



.about-block-description {
    display: block;

    margin-top: 9px;

    color: var(--text-soft, #475569);

    font-size: 0.96rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.about-pagination-info {
    margin-top: 22px;

    color: var(--text-faint, #94a3b8);

    font-size: 0.8rem;
    text-align: center;
}

html.dark .about-block-description {
    color: #cbd5e1;
}



.profile-avatar-image,
.review-avatar-image {
    object-fit: cover;
    object-position: center;
}

.profile-avatar-image {
    width: 65px;
    height: 65px;

    flex: 0 0 auto;

    border-radius: 19px;

    border: 1px solid var(--border, #d9e0ea);

    background: var(--bg-soft, #eff6ff);
}

.review-avatar-image {
    width: 34px;
    height: 34px;

    flex: 0 0 auto;

    border-radius: 50%;

    border: 1px solid var(--border, #d9e0ea);

    background: var(--bg-soft, #eff6ff);
}

.profile-edit-form {
    display: grid;
    gap: 18px;

    margin-top: 25px;
    padding-top: 22px;

    border-top: 1px solid var(--border, #d9e0ea);
}

.profile-edit-form label {
    display: grid;
    gap: 7px;

    color: var(--text, #172033);

    font-size: 0.88rem;
    font-weight: 750;
}

.profile-edit-form small {
    color: var(--text-faint, #94a3b8);

    font-size: 0.76rem;
    font-weight: 500;
}

.profile-checkbox {
    display: flex !important;
    align-items: center;
    gap: 9px;
}

.profile-checkbox input {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: var(--primary, #2563eb);
}

.profile-steam-avatar-note {
    display: grid;
    gap: 4px;

    padding: 13px 14px;

    border: 1px solid #93c5fd;
    border-radius: 10px;

    background: #eff6ff;
    color: #1d4ed8;

    font-size: 0.84rem;
}

.profile-steam-avatar-note span {
    color: #3b82f6;

    font-size: 0.78rem;
}

.profile-guestbook-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 40px;

    color: var(--primary, #2563eb);

    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
}

.review-logged-user {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 13px 14px;

    border: 1px solid #a7f3d0;
    border-radius: 11px;

    background: #ecfdf5;
    color: #047857;
}

.review-logged-user-icon {
    width: 27px;
    height: 27px;

    display: grid;
    flex: 0 0 auto;
    place-items: center;

    border-radius: 50%;

    background: #059669;
    color: #ffffff;

    font-size: 0.82rem;
    font-weight: 850;
}

.review-logged-user strong {
    display: block;

    font-size: 0.87rem;
}

.review-logged-user span:last-child {
    display: block;

    margin-top: 2px;

    color: #047857;

    font-size: 0.76rem;
}

html.dark .profile-edit-form {
    border-color: #3b4a60;
}

html.dark .profile-edit-form label {
    color: #edf3fb;
}

html.dark .profile-avatar-image,
html.dark .review-avatar-image {
    border-color: #475569;

    background: #172033;
}

html.dark .profile-steam-avatar-note {
    border-color: #1d4ed8;

    background: #172554;
    color: #bfdbfe;
}

html.dark .profile-steam-avatar-note span {
    color: #93c5fd;
}

html.dark .review-logged-user {
    border-color: #1b6b4d;

    background: #12372d;
    color: #86efac;
}

html.dark .review-logged-user span:last-child {
    color: #86efac;
}

.profile-edit-form input:disabled {
    border-color: var(--border, #d9e0ea);

    background: var(--bg-soft, #f1f5f9);
    color: var(--text-faint, #94a3b8);

    cursor: not-allowed;
    opacity: 0.82;
}

html.dark .profile-edit-form input:disabled {
    border-color: #3b4a60;

    background: #172033;
    color: #94a3b8;
}

/*
|--------------------------------------------------------------------------
| Пользователь в шапке
|--------------------------------------------------------------------------
*/

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

.header-user-link {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    max-width: 190px;

    padding: 4px 9px 4px 4px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 10px;

    background: var(--surface, #ffffff);
    color: var(--text, #172033);

    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease;
}

.header-user-link:hover {
    border-color: var(--primary, #2563eb);

    background: var(--bg-soft, #eff6ff);
    color: var(--primary, #2563eb);
}

.header-user-avatar {
    width: 30px;
    height: 30px;

    display: grid;
    flex: 0 0 auto;
    place-items: center;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--primary, #2563eb),
        #60a5fa
    );

    color: #ffffff;

    font-size: 0.75rem;
    font-weight: 850;
}

.header-user-name {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-admin-button,
.header-logout-button {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 10px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 9px;

    background: var(--surface, #ffffff);
    color: var(--text-soft, #64748b);

    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;

    cursor: pointer;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease;
}

.header-admin-button:hover {
    border-color: var(--primary, #2563eb);

    background: var(--bg-soft, #eff6ff);
    color: var(--primary, #2563eb);
}

.header-logout-button:hover {
    border-color: #fda4af;

    background: #fff1f2;
    color: #be123c;
}

.header-logout-form {
    margin: 0;
}

html.dark .header-user-link,
html.dark .header-admin-button,
html.dark .header-logout-button {
    border-color: #475569;

    background: #1d2939;
    color: #cbd5e1;
}

html.dark .header-user-link:hover,
html.dark .header-admin-button:hover {
    border-color: #60a5fa;

    background: #263a57;
    color: #93c5fd;
}

html.dark .header-logout-button:hover {
    border-color: #9f1239;

    background: #3d1823;
    color: #fda4af;
}

@media (max-width: 760px) {
    .header-actions {
        gap: 5px;
    }

    .header-user-name,
    .header-admin-button {
        display: none;
    }

    .header-user-link {
        min-width: 40px;

        padding: 4px;
    }

    .header-logout-button {
        min-width: 40px;

        padding: 8px;
        font-size: 0;
    }

    .header-logout-button::before {
        content: "↪";

        font-size: 1.1rem;
    }
}

.header-user-avatar-image {
    width: 30px;
    height: 30px;

    display: block;
    flex: 0 0 auto;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 50%;

    background: var(--bg-soft, #eff6ff);

    object-fit: cover;
    object-position: center;
}

html.dark .header-user-avatar-image {
    border-color: #475569;

    background: #172033;
}




.information-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 26px;
}

.information-hero h1 {
    margin: 0;

    color: var(--text, #172033);
}

.information-hero p:not(.eyebrow) {
    max-width: 720px;

    margin: 10px 0 0;

    color: var(--text-muted, #667085);

    line-height: 1.65;
}

.information-hero-symbol {
    width: 74px;
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 20px;

    background: var(--bg-soft, #eff6ff);

    font-size: 34px;
}

.information-blocks {
    display: grid;
    gap: 16px;
}

.information-block {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;

    padding: 22px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 16px;

    background: var(--surface, #ffffff);
}

.information-block-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--bg-soft, #eff6ff);

    font-size: 24px;
}

.information-block-content h2 {
    margin: 0;

    color: var(--text, #172033);

    font-size: 20px;
    line-height: 1.3;
}

.information-block-lead {
    margin: 8px 0 0;

    color: var(--text-muted, #667085);

    line-height: 1.55;
}

.information-block-description {
    margin-top: 14px;

    color: var(--text, #334155);

    line-height: 1.75;
}

.information-block-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 18px;

    color: var(--primary, #2563eb);

    font-weight: 700;
    text-decoration: none;
}

.information-block-link:hover {
    text-decoration: underline;
}

.information-empty {
    padding: 34px 24px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 16px;

    background: var(--surface, #ffffff);

    text-align: center;
}

.information-empty > div {
    margin-bottom: 12px;

    font-size: 30px;
}

.information-empty h2 {
    margin: 0;

    color: var(--text, #172033);
}

.information-empty p {
    margin: 10px 0 0;

    color: var(--text-muted, #667085);
}

html.dark .information-block,
html.dark .information-empty {
    border-color: #334155;

    background: #172033;
}

html.dark .information-hero-symbol,
html.dark .information-block-icon {
    background: #263550;
}

html.dark .information-hero h1,
html.dark .information-block-content h2,
html.dark .information-block-description,
html.dark .information-empty h2 {
    color: #f1f5f9;
}

html.dark .information-hero p:not(.eyebrow),
html.dark .information-block-lead,
html.dark .information-empty p {
    color: #aab7cc;
}

@media (max-width: 640px) {
    .information-hero {
        align-items: flex-start;
    }

    .information-hero-symbol {
        width: 52px;
        height: 52px;

        border-radius: 14px;

        font-size: 25px;
    }

    .information-block {
        grid-template-columns: 1fr;
        gap: 14px;

        padding: 18px;
    }

    .information-block-icon {
        width: 44px;
        height: 44px;

        border-radius: 12px;

        font-size: 21px;
    }
}


/*------------------------------------------------------------------------------- */





.information-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 24px;
    padding: 24px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 16px;

    background: var(--surface, #ffffff);
    box-shadow: 0 8px 24px rgb(15 23 42 / 5%);
}

.information-hero .eyebrow {
    margin: 0 0 7px;
}

.information-hero h1 {
    margin: 0;

    color: var(--text, #172033);

    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.2;
}

.information-hero p:not(.eyebrow) {
    max-width: 720px;

    margin: 10px 0 0;

    color: var(--text-muted, #667085);

    line-height: 1.65;
}

.information-hero-symbol {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border: 1px solid rgb(37 99 235 / 14%);
    border-radius: 16px;

    background: var(--bg-soft, #eff6ff);

    color: var(--primary, #2563eb);

    font-size: 30px;
    line-height: 1;
}

html.dark .information-hero {
    border-color: #334155;

    background: #172033;

    box-shadow: none;
}

html.dark .information-hero h1 {
    color: #f1f5f9;
}

html.dark .information-hero p:not(.eyebrow) {
    color: #aab7cc;
}

html.dark .information-hero-symbol {
    border-color: #3b4b67;

    background: #263550;

    color: #93c5fd;
}

@media (max-width: 640px) {
    .information-hero {
        align-items: flex-start;
        gap: 16px;

        padding: 20px;
    }

    .information-hero-symbol {
        width: 48px;
        height: 48px;

        border-radius: 13px;

        font-size: 24px;
    }
}



/*------------------------------------------------------------------------------- */

.guestbook-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 24px;
    padding: 24px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 16px;

    background: var(--surface, #ffffff);
    box-shadow: 0 8px 24px rgb(15 23 42 / 5%);
}

.guestbook-heading .eyebrow {
    margin: 0 0 7px;
}

.guestbook-heading h1 {
    margin: 0;

    color: var(--text, #172033);

    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.2;
}

.guestbook-heading .page-description {
    max-width: 700px;

    margin: 10px 0 0;

    color: var(--text-muted, #667085);

    line-height: 1.65;
}

.guestbook-heading .guestbook-add-button {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    flex: 0 0 auto;

    padding: 11px 16px;

    border: 1px solid var(--primary, #2563eb);
    border-radius: 10px;

    background: var(--primary, #2563eb);

    color: #ffffff;

    font-weight: 700;
    line-height: 1;
    text-decoration: none;

    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.guestbook-heading .guestbook-add-button:hover {
    border-color: var(--primary-hover, #1d4ed8);

    background: var(--primary-hover, #1d4ed8);

    color: #ffffff;

    box-shadow: 0 8px 16px rgb(37 99 235 / 24%);

    text-decoration: none;
    transform: translateY(-1px);
}

.guestbook-heading .guestbook-add-button:focus-visible {
    outline: 3px solid rgb(37 99 235 / 35%);
    outline-offset: 3px;
}

.guestbook-heading .guestbook-add-button:active {
    transform: translateY(0);
}

.guestbook-heading .guestbook-add-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 19px;
    height: 19px;

    border-radius: 50%;

    background: rgb(255 255 255 / 20%);

    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

html.dark .guestbook-heading {
    border-color: #334155;

    background: #172033;

    box-shadow: none;
}

html.dark .guestbook-heading h1 {
    color: #f1f5f9;
}

html.dark .guestbook-heading .page-description {
    color: #aab7cc;
}

html.dark .guestbook-heading .guestbook-add-button {
    border-color: #3b82f6;

    background: #2563eb;
}

html.dark .guestbook-heading .guestbook-add-button:hover {
    border-color: #60a5fa;

    background: #3b82f6;
}

@media (max-width: 640px) {
    .guestbook-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;

        padding: 20px;
    }

    .guestbook-heading .guestbook-add-button {
        width: 100%;
    }
}




.profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 24px;
    padding: 24px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 16px;

    background: var(--surface, #ffffff);
    box-shadow: 0 8px 24px rgb(15 23 42 / 5%);
}

.profile-hero-user {
    display: flex;
    align-items: center;
    gap: 18px;

    min-width: 0;
}

.profile-avatar-wrap {
    position: relative;

    width: 76px;
    height: 76px;

    flex: 0 0 auto;
}

.profile-avatar-image,
.profile-avatar-fallback {
    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid var(--border, #d9e0ea);
    border-radius: 50%;

    background: var(--bg-soft, #eff6ff);

    color: var(--primary, #2563eb);

    font-size: 29px;
    font-weight: 800;

    object-fit: cover;
    object-position: center;
}

.profile-steam-badge {
    position: absolute;
    right: -8px;
    bottom: -4px;

    padding: 4px 7px;

    border: 2px solid var(--surface, #ffffff);
    border-radius: 999px;

    background: #171a21;

    color: #ffffff;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.profile-hero-content {
    min-width: 0;
}

.profile-hero-content .eyebrow {
    margin: 0 0 5px;
}

.profile-hero h1 {
    overflow: hidden;

    margin: 0;

    color: var(--text, #172033);

    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 10px;
}

.profile-role {
    padding: 5px 9px;

    border-radius: 999px;

    background: var(--bg-soft, #eff6ff);

    color: var(--primary, #2563eb);

    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.profile-username {
    color: var(--text-muted, #667085);

    font-size: 14px;
}

.profile-guestbook-button {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    flex: 0 0 auto;

    padding: 11px 16px;

    border: 1px solid var(--primary, #2563eb);
    border-radius: 10px;

    background: var(--primary, #2563eb);

    color: #ffffff;

    font-weight: 700;
    line-height: 1;
    text-decoration: none;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.profile-guestbook-button:hover {
    border-color: var(--primary-hover, #1d4ed8);

    background: var(--primary-hover, #1d4ed8);

    color: #ffffff;

    box-shadow: 0 8px 16px rgb(37 99 235 / 24%);

    text-decoration: none;
    transform: translateY(-1px);
}

.profile-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 18px;
    padding: 14px 16px;

    border: 1px solid transparent;
    border-radius: 12px;

    line-height: 1.55;
}

.profile-alert > span {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 50%;

    font-size: 13px;
    font-weight: 800;
}

.profile-alert-success {
    border-color: #86efac;

    background: #f0fdf4;

    color: #166534;
}

.profile-alert-success > span {
    background: #22c55e;

    color: #ffffff;
}

.profile-alert-error {
    border-color: #fecaca;

    background: #fef2f2;

    color: #b91c1c;
}

.profile-alert-error > span {
    background: #ef4444;

    color: #ffffff;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
}

.profile-panel {
    padding: 22px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 16px;

    background: var(--surface, #ffffff);
    box-shadow: 0 8px 24px rgb(15 23 42 / 5%);
}

.profile-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 20px;
}

.profile-panel-heading .eyebrow {
    margin: 0 0 6px;
}

.profile-panel-heading h2 {
    margin: 0;

    color: var(--text, #172033);

    font-size: 21px;
    line-height: 1.3;
}

.profile-panel-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 12px;

    background: var(--bg-soft, #eff6ff);

    font-size: 19px;
}

.profile-details {
    margin: 0;
}

.profile-detail-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
    gap: 16px;

    padding: 14px 0;

    border-top: 1px solid var(--border, #e5e7eb);
}

.profile-detail-row:last-child {
    padding-bottom: 0;
}

.profile-detail-row dt {
    color: var(--text-muted, #667085);

    font-size: 14px;
}

.profile-detail-row dd {
    min-width: 0;

    margin: 0;

    color: var(--text, #172033);

    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-align: right;
}

.profile-steam-id {
    font-size: 12px !important;
}

.profile-steam-link {
    color: var(--primary, #2563eb);

    text-decoration: none;
}

.profile-steam-link:hover {
    text-decoration: underline;
}

.profile-edit-form {
    display: grid;
    gap: 17px;
}

.profile-form-field {
    display: grid;
    gap: 8px;
}

.profile-form-field > span {
    color: var(--text, #172033);

    font-size: 14px;
    font-weight: 700;
}

.profile-form-field input[type="text"],
.profile-form-field input[type="file"] {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 10px;

    background: var(--surface, #ffffff);

    color: var(--text, #172033);

    font: inherit;
}

.profile-form-field input[type="text"]:focus {
    border-color: var(--primary, #2563eb);

    outline: 3px solid rgb(37 99 235 / 15%);
}

.profile-form-field input:disabled {
    cursor: not-allowed;

    background: var(--bg-soft, #f1f5f9);

    color: var(--text-muted, #667085);
}

.profile-form-field small {
    color: var(--text-muted, #667085);

    font-size: 13px;
    line-height: 1.5;
}

.profile-steam-info {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 12px;

    padding: 14px;

    border: 1px solid #93c5fd;
    border-radius: 12px;

    background: #eff6ff;

    color: #1e3a8a;
}

.profile-steam-info-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #171a21;

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;
}

.profile-steam-info strong {
    display: block;

    font-size: 14px;
}

.profile-steam-info p {
    margin: 5px 0 0;

    font-size: 13px;
    line-height: 1.55;
}

.profile-delete-avatar {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--text-muted, #667085);

    font-size: 14px;

    cursor: pointer;
}

.profile-delete-avatar input {
    width: 16px;
    height: 16px;

    accent-color: var(--primary, #2563eb);
}

.profile-actions {
    display: flex;
    align-items: center;

    padding-top: 4px;
}

.profile-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

html.dark .profile-hero,
html.dark .profile-panel {
    border-color: #334155;

    background: #172033;

    box-shadow: none;
}

html.dark .profile-avatar-image,
html.dark .profile-avatar-fallback {
    border-color: #475569;

    background: #263550;
}

html.dark .profile-steam-badge {
    border-color: #172033;
}

html.dark .profile-hero h1,
html.dark .profile-panel-heading h2,
html.dark .profile-detail-row dd,
html.dark .profile-form-field > span {
    color: #f1f5f9;
}

html.dark .profile-username,
html.dark .profile-detail-row dt,
html.dark .profile-form-field small,
html.dark .profile-delete-avatar {
    color: #aab7cc;
}

html.dark .profile-role,
html.dark .profile-panel-icon {
    background: #263550;

    color: #93c5fd;
}

html.dark .profile-detail-row {
    border-color: #334155;
}

html.dark .profile-form-field input[type="text"],
html.dark .profile-form-field input[type="file"] {
    border-color: #475569;

    background: #111827;

    color: #f1f5f9;
}

html.dark .profile-form-field input:disabled {
    background: #263550;

    color: #aab7cc;
}

html.dark .profile-steam-info {
    border-color: #1e40af;

    background: #172554;

    color: #bfdbfe;
}

html.dark .profile-alert-success {
    border-color: #166534;

    background: #052e16;

    color: #bbf7d0;
}

html.dark .profile-alert-error {
    border-color: #991b1b;

    background: #450a0a;

    color: #fecaca;
}

@media (max-width: 860px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .profile-hero {
        align-items: flex-start;
        flex-direction: column;

        padding: 20px;
    }

    .profile-hero-user {
        align-items: flex-start;
    }

    .profile-avatar-wrap,
    .profile-avatar-image,
    .profile-avatar-fallback {
        width: 62px;
        height: 62px;
    }

    .profile-avatar-fallback {
        font-size: 24px;
    }

    .profile-hero h1 {
        max-width: calc(100vw - 135px);

        font-size: 27px;
    }

    .profile-guestbook-button {
        width: 100%;
    }

    .profile-panel {
        padding: 20px;
    }

    .profile-detail-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .profile-detail-row dd {
        text-align: left;
    }
}

.profile-password-panel {
    grid-column: 1 / -1;
}

.profile-form-field textarea {
    width: 100%;
    min-height: 130px;

    padding: 11px 12px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 10px;

    background: var(--surface, #ffffff);

    color: var(--text, #172033);

    font: inherit;
    line-height: 1.55;
    resize: vertical;
}

.profile-form-field textarea:focus {
    border-color: var(--primary, #2563eb);

    outline: 3px solid rgb(37 99 235 / 15%);
}

.profile-password-description {
    margin: -4px 0 20px;

    color: var(--text-muted, #667085);

    font-size: 14px;
    line-height: 1.6;
}

html.dark .profile-form-field textarea {
    border-color: #475569;

    background: #111827;

    color: #f1f5f9;
}

html.dark .profile-password-description {
    color: #aab7cc;
}
















.review-page {
    width: 100%;
    max-width: 1120px;

    margin: 0 auto;
}

.review-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 18px;

    color: var(--text-muted, #667085);

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.review-back-link:hover {
    color: var(--primary, #2563eb);

    text-decoration: underline;
}

.review-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 22px;
    padding: 24px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 16px;

    background: var(--surface, #ffffff);
    box-shadow: 0 8px 24px rgb(15 23 42 / 5%);
}

.review-hero .eyebrow {
    margin: 0 0 7px;
}

.review-hero h1 {
    margin: 0;

    color: var(--text, #172033);

    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.2;
}

.review-hero p:not(.eyebrow) {
    max-width: 720px;

    margin: 10px 0 0;

    color: var(--text-muted, #667085);

    line-height: 1.65;
}

.review-hero-icon {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border: 1px solid rgb(37 99 235 / 14%);
    border-radius: 16px;

    background: var(--bg-soft, #eff6ff);

    color: var(--primary, #2563eb);

    font-size: 30px;
}

.review-form-card {
    padding: 26px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 16px;

    background: var(--surface, #ffffff);
    box-shadow: 0 8px 24px rgb(15 23 42 / 5%);
}

.review-form-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
    padding-bottom: 20px;

    border-bottom: 1px solid var(--border, #e5e7eb);
}

.review-form-card-heading h2 {
    margin: 0;

    color: var(--text, #172033);

    font-size: 22px;
}

.review-form-card-heading p {
    margin: 7px 0 0;

    color: var(--text-muted, #667085);

    line-height: 1.55;
}

.review-public-badge,
.review-moderation-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    flex: 0 0 auto;

    padding: 8px 10px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.review-public-badge {
    background: #dcfce7;

    color: #166534;
}

.review-moderation-badge {
    background: #fef3c7;

    color: #92400e;
}

.review-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 18px;
    padding: 14px 16px;

    border: 1px solid transparent;
    border-radius: 12px;

    line-height: 1.55;
}

.review-alert > span {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 50%;

    font-size: 13px;
    font-weight: 800;
}

.review-alert-success {
    border-color: #86efac;

    background: #f0fdf4;

    color: #166534;
}

.review-alert-success > span {
    background: #22c55e;

    color: #ffffff;
}

.review-alert-error {
    border-color: #fecaca;

    background: #fef2f2;

    color: #b91c1c;
}

.review-alert-error > span {
    background: #ef4444;

    color: #ffffff;
}

.review-logged-user {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 20px;
    padding: 14px;

    border: 1px solid #bfdbfe;
    border-radius: 12px;

    background: #eff6ff;

    color: #1e3a8a;
}

.review-logged-user-icon {
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #2563eb;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}

.review-logged-user strong,
.review-logged-user span {
    display: block;
}

.review-logged-user span:not(.review-logged-user-icon) {
    margin-top: 3px;

    font-size: 14px;
    line-height: 1.5;
}

.review-form {
    display: grid;
    gap: 20px;
}

.review-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.review-form-field {
    display: grid;
    gap: 8px;
}

.review-form-field > span,
.review-label {
    color: var(--text, #172033);

    font-size: 14px;
    font-weight: 800;
}

.review-form-field input,
.review-form-field textarea {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 10px;

    background: var(--surface, #ffffff);

    color: var(--text, #172033);

    font: inherit;
}

.review-form-field textarea {
    min-height: 200px;

    line-height: 1.6;
    resize: vertical;
}

.review-form-field input:focus,
.review-form-field textarea:focus {
    border-color: var(--primary, #2563eb);

    outline: 3px solid rgb(37 99 235 / 15%);
}

.review-form-field small {
    color: var(--text-muted, #667085);

    font-size: 13px;
    line-height: 1.45;
}

.review-rating-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 16px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 12px;

    background: var(--bg-soft, #f8fafc);
}

.rating-description {
    display: block;

    margin-top: 4px;

    color: var(--text-muted, #667085);

    font-size: 13px;
}

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.star-rating input {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0 0 0 0);
}

.star-rating label {
    color: #cbd5e1;

    cursor: pointer;

    font-size: 32px;
    line-height: 1;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f59e0b;
}

.star-rating input:focus-visible + label {
    outline: 3px solid rgb(37 99 235 / 35%);
    outline-offset: 2px;
}

.emoji-picker {
    display: grid;
    gap: 10px;
}

.emoji-picker-label {
    color: var(--text, #172033);

    font-size: 14px;
    font-weight: 800;
}

.emoji-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emoji-button {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 10px;

    background: var(--surface, #ffffff);

    cursor: pointer;

    font-size: 19px;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.emoji-button:hover {
    border-color: var(--primary, #2563eb);

    background: var(--bg-soft, #eff6ff);

    transform: translateY(-1px);
}

.review-captcha {
    padding: 18px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 14px;

    background: var(--bg-soft, #f8fafc);
}

.review-captcha-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 15px;
}

.review-captcha-heading p {
    margin: 5px 0 0;

    color: var(--text-muted, #667085);

    font-size: 13px;
    line-height: 1.5;
}

.review-captcha-content {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: end;
    gap: 16px;
}

.guestbook-captcha-image {
    width: 190px;
    height: 58px;

    display: block;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 9px;

    background: #ffffff;

    object-fit: cover;
}

.captcha-refresh-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 9px;

    border: 0;

    background: transparent;

    color: var(--primary, #2563eb);

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.captcha-refresh-button:hover {
    text-decoration: underline;
}

.review-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-top: 20px;

    border-top: 1px solid var(--border, #e5e7eb);
}

.review-form-footer p {
    max-width: 600px;

    margin: 0;

    color: var(--text-muted, #667085);

    font-size: 14px;
    line-height: 1.55;
}

.review-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;

    flex: 0 0 auto;
}

html.dark .review-hero,
html.dark .review-form-card {
    border-color: #334155;

    background: #172033;

    box-shadow: none;
}

html.dark .review-hero h1,
html.dark .review-form-card-heading h2,
html.dark .review-form-field > span,
html.dark .review-label,
html.dark .emoji-picker-label {
    color: #f1f5f9;
}

html.dark .review-hero p:not(.eyebrow),
html.dark .review-form-card-heading p,
html.dark .review-form-field small,
html.dark .review-form-footer p,
html.dark .review-captcha-heading p,
html.dark .rating-description {
    color: #aab7cc;
}

html.dark .review-hero-icon,
html.dark .review-rating-group,
html.dark .review-captcha {
    border-color: #334155;

    background: #263550;
}

html.dark .review-form-card-heading,
html.dark .review-form-footer {
    border-color: #334155;
}

html.dark .review-form-field input,
html.dark .review-form-field textarea,
html.dark .emoji-button,
html.dark .guestbook-captcha-image {
    border-color: #475569;

    background: #111827;

    color: #f1f5f9;
}

html.dark .review-logged-user {
    border-color: #1e40af;

    background: #172554;

    color: #bfdbfe;
}

html.dark .review-public-badge {
    background: #14532d;

    color: #bbf7d0;
}

html.dark .review-moderation-badge {
    background: #78350f;

    color: #fde68a;
}

html.dark .review-alert-success {
    border-color: #166534;

    background: #052e16;

    color: #bbf7d0;
}

html.dark .review-alert-error {
    border-color: #991b1b;

    background: #450a0a;

    color: #fecaca;
}

@media (max-width: 700px) {
    .review-hero {
        align-items: flex-start;
        gap: 16px;

        padding: 20px;
    }

    .review-hero-icon {
        width: 48px;
        height: 48px;

        border-radius: 13px;

        font-size: 24px;
    }

    .review-form-card {
        padding: 20px;
    }

    .review-form-card-heading,
    .review-rating-group,
    .review-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .review-form-grid,
    .review-captcha-content {
        grid-template-columns: 1fr;
    }

    .guestbook-captcha-image {
        width: 190px;
    }

    .review-submit-button {
        width: 100%;
    }
}


.login-page {
    width: 100%;
    min-height: calc(100dvh - 140px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px 0;
}

.login-layout {
    width: min(100%, 1080px);

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.92fr);

    overflow: hidden;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 20px;

    background: var(--surface, #ffffff);
    box-shadow: 0 20px 55px rgb(15 23 42 / 10%);
}

.login-welcome-panel {
    position: relative;

    min-height: 650px;

    display: flex;
    flex-direction: column;

    padding: 36px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 16% 16%,
            rgb(96 165 250 / 35%),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 92%,
            rgb(37 99 235 / 32%),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #172554,
            #1d4ed8
        );

    color: #ffffff;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    align-self: flex-start;

    color: #ffffff;

    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.login-logo:hover {
    color: #dbeafe;
}

.login-logo-symbol {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 10px;

    background: rgb(255 255 255 / 14%);

    font-size: 17px;
}

.login-welcome-content {
    position: relative;
    z-index: 1;

    max-width: 440px;

    margin: auto 0;
}

.login-welcome-content .eyebrow {
    color: #bfdbfe;
}

.login-welcome-content h1 {
    margin: 8px 0 0;

    color: #ffffff;

    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.login-welcome-content > p:not(.eyebrow) {
    margin: 18px 0 0;

    color: #dbeafe;

    font-size: 16px;
    line-height: 1.7;
}

.login-benefits {
    display: grid;
    gap: 12px;

    margin: 30px 0 0;
    padding: 0;

    list-style: none;
}

.login-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #eff6ff;

    font-size: 14px;
    line-height: 1.4;
}

.login-benefits li span {
    width: 22px;
    height: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 50%;

    background: rgb(255 255 255 / 17%);

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
}

.login-welcome-decoration {
    position: absolute;
    right: -35px;
    bottom: -84px;

    color: rgb(255 255 255 / 10%);

    font-size: 260px;
    line-height: 1;

    transform: rotate(12deg);
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 44px;
}

.login-form-header {
    margin-bottom: 26px;
}

.login-form-header .eyebrow {
    margin: 0 0 8px;
}

.login-form-header h2 {
    margin: 0;

    color: var(--text, #172033);

    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.login-form-header p:not(.eyebrow) {
    margin: 10px 0 0;

    color: var(--text-muted, #667085);

    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 17px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field > span {
    color: var(--text, #172033);

    font-size: 14px;
    font-weight: 800;
}

.login-field input {
    width: 100%;
    min-height: 46px;

    padding: 11px 13px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 10px;

    background: var(--surface, #ffffff);

    color: var(--text, #172033);

    font: inherit;
}

.login-field input::placeholder {
    color: #94a3b8;
}

.login-field input:focus {
    border-color: var(--primary, #2563eb);

    outline: 3px solid rgb(37 99 235 / 15%);
}

.login-submit-button {
    width: 100%;
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    margin-top: 4px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 24px 0;

    color: var(--text-muted, #667085);

    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    height: 1px;

    flex: 1;

    background: var(--border, #d9e0ea);

    content: "";
}

.steam-login-button {
    min-height: 48px;

    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 10px;

    padding: 6px 13px 6px 7px;

    border: 1px solid #1b2838;
    border-radius: 10px;

    background: #171a21;

    color: #ffffff;

    font-weight: 800;
    text-decoration: none;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.steam-login-button:hover {
    border-color: #2a475e;

    background: #1b2838;

    color: #ffffff;

    box-shadow: 0 9px 18px rgb(15 23 42 / 22%);

    text-decoration: none;
    transform: translateY(-1px);
}

.steam-login-icon {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #2a475e;

    color: #ffffff;

    font-size: 10px;
    font-weight: 800;
}

.steam-login-arrow {
    color: #93c5fd;

    font-size: 20px;
    text-align: right;
}

.steam-login-note {
    margin: 11px 0 0;

    color: var(--text-muted, #667085);

    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin: 0 0 18px;
    padding: 13px 14px;

    border: 1px solid transparent;
    border-radius: 11px;

    font-size: 14px;
    line-height: 1.5;
}

.login-alert > span {
    width: 21px;
    height: 21px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 50%;

    font-size: 12px;
    font-weight: 800;
}

.login-alert-error {
    border-color: #fecaca;

    background: #fef2f2;

    color: #b91c1c;
}

.login-alert-error > span {
    background: #ef4444;

    color: #ffffff;
}

.login-alert-success {
    border-color: #86efac;

    background: #f0fdf4;

    color: #166534;
}

.login-alert-success > span {
    background: #22c55e;

    color: #ffffff;
}

.login-back {
    margin: 24px 0 0;

    text-align: center;
}

.login-back a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--text-muted, #667085);

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.login-back a:hover {
    color: var(--primary, #2563eb);

    text-decoration: underline;
}

html.dark .login-layout {
    border-color: #334155;

    background: #172033;

    box-shadow: none;
}

html.dark .login-form-header h2,
html.dark .login-field > span {
    color: #f1f5f9;
}

html.dark .login-form-header p:not(.eyebrow),
html.dark .steam-login-note,
html.dark .login-divider,
html.dark .login-back a {
    color: #aab7cc;
}

html.dark .login-field input {
    border-color: #475569;

    background: #111827;

    color: #f1f5f9;
}

html.dark .login-field input::placeholder {
    color: #64748b;
}

html.dark .login-divider::before,
html.dark .login-divider::after {
    background: #334155;
}

html.dark .login-alert-error {
    border-color: #991b1b;

    background: #450a0a;

    color: #fecaca;
}

html.dark .login-alert-success {
    border-color: #166534;

    background: #052e16;

    color: #bbf7d0;
}

@media (max-width: 900px) {
    .login-page {
        min-height: auto;
    }

    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-welcome-panel {
        min-height: 360px;

        padding: 30px;
    }

    .login-welcome-content {
        margin: 58px 0 0;
    }

    .login-welcome-decoration {
        right: -25px;
        bottom: -92px;

        font-size: 230px;
    }

    .login-form-panel {
        padding: 34px 30px;
    }
}

@media (max-width: 520px) {
    .login-page {
        padding: 8px 0 20px;
    }

    .login-layout {
        border-radius: 16px;
    }

    .login-welcome-panel {
        min-height: 315px;

        padding: 24px;
    }

    .login-welcome-content {
        margin-top: 42px;
    }

    .login-welcome-content h1 {
        font-size: 31px;
    }

    .login-welcome-content > p:not(.eyebrow) {
        font-size: 14px;
    }

    .login-benefits {
        gap: 9px;

        margin-top: 22px;
    }

    .login-benefits li {
        font-size: 13px;
    }

    .login-welcome-decoration {
        right: -20px;
        bottom: -64px;

        font-size: 175px;
    }

    .login-form-panel {
        padding: 26px 20px;
    }

    .login-form-header {
        margin-bottom: 22px;
    }

    .login-form-header h2 {
        font-size: 27px;
    }
}



.staff-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 24px;
    padding: 24px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 16px;

    background: var(--surface, #ffffff);
    box-shadow: 0 8px 24px rgb(15 23 42 / 5%);
}

.staff-hero .eyebrow {
    margin: 0 0 7px;
}

.staff-hero h1 {
    margin: 0;

    color: var(--text, #172033);

    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.2;
}

.staff-hero p:not(.eyebrow) {
    max-width: 720px;

    margin: 10px 0 0;

    color: var(--text-muted, #667085);

    line-height: 1.65;
}

.staff-hero-symbol {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border: 1px solid rgb(37 99 235 / 14%);
    border-radius: 16px;

    background: var(--bg-soft, #eff6ff);

    color: var(--primary, #2563eb);

    font-size: 30px;
}

.staff-list {
    display: grid;
    gap: 18px;
}

.staff-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;

    padding: 24px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 16px;

    background: var(--surface, #ffffff);
    box-shadow: 0 8px 24px rgb(15 23 42 / 5%);
}

.staff-avatar-column {
    display: flex;
    justify-content: center;
}

.staff-avatar-wrap {
    position: relative;

    width: 144px;
    height: 144px;
}

.staff-avatar-image,
.staff-avatar-fallback {
    width: 144px;
    height: 144px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid var(--border, #d9e0ea);
    border-radius: 18px;

    background: var(--bg-soft, #eff6ff);

    color: var(--primary, #2563eb);

    font-size: 50px;
    font-weight: 800;

    object-fit: cover;
    object-position: center;
}

.staff-rank-badge {
    position: absolute;
    right: -10px;
    bottom: -10px;

    max-width: 155px;

    padding: 7px 10px;

    border: 2px solid var(--surface, #ffffff);
    border-radius: 999px;

    background: var(--primary, #2563eb);

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.staff-card-content {
    min-width: 0;
}

.staff-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.staff-rank-label {
    margin: 0 0 5px;

    color: var(--primary, #2563eb);

    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.staff-card-heading h2 {
    margin: 0;

    color: var(--text, #172033);

    font-size: 25px;
    line-height: 1.2;
}

.staff-username {
    margin: 6px 0 0;

    color: var(--text-muted, #667085);

    font-size: 14px;
}

.staff-position {
    max-width: 270px;

    padding: 7px 10px;

    border-radius: 999px;

    background: var(--bg-soft, #eff6ff);

    color: var(--primary, #2563eb);

    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.staff-role-description {
    margin-top: 17px;
    padding: 12px 14px;

    border-left: 3px solid var(--primary, #2563eb);
    border-radius: 0 10px 10px 0;

    background: var(--bg-soft, #eff6ff);

    color: var(--text, #334155);

    font-size: 14px;
    line-height: 1.6;
}

.staff-info-section {
    margin-top: 18px;
}

.staff-info-title {
    display: block;

    margin-bottom: 7px;

    color: var(--text-muted, #667085);

    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.staff-info-text {
    color: var(--text, #334155);

    line-height: 1.7;
}

.staff-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.staff-interests span {
    padding: 6px 9px;

    border-radius: 999px;

    background: var(--bg-soft, #eff6ff);

    color: var(--primary, #2563eb);

    font-size: 13px;
    font-weight: 700;
}

.staff-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 22px;
}

.staff-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;

    padding: 10px 14px;

    border: 1px solid var(--primary, #2563eb);
    border-radius: 10px;

    background: var(--primary, #2563eb);

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.staff-contact-button:hover {
    border-color: var(--primary-hover, #1d4ed8);

    background: var(--primary-hover, #1d4ed8);

    color: #ffffff;

    text-decoration: none;
}

.staff-steam-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--text-muted, #667085);

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.staff-steam-link:hover {
    color: var(--primary, #2563eb);

    text-decoration: underline;
}

.staff-empty {
    padding: 34px 24px;

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 16px;

    background: var(--surface, #ffffff);

    text-align: center;
}

.staff-empty > div {
    margin-bottom: 12px;

    font-size: 32px;
}

.staff-empty h2 {
    margin: 0;

    color: var(--text, #172033);
}

.staff-empty p {
    margin: 10px 0 0;

    color: var(--text-muted, #667085);
}

html.dark .staff-hero,
html.dark .staff-card,
html.dark .staff-empty {
    border-color: #334155;

    background: #172033;

    box-shadow: none;
}

html.dark .staff-hero h1,
html.dark .staff-card-heading h2,
html.dark .staff-info-text,
html.dark .staff-empty h2 {
    color: #f1f5f9;
}

html.dark .staff-hero p:not(.eyebrow),
html.dark .staff-username,
html.dark .staff-info-title,
html.dark .staff-empty p {
    color: #aab7cc;
}

html.dark .staff-hero-symbol,
html.dark .staff-avatar-image,
html.dark .staff-avatar-fallback,
html.dark .staff-position,
html.dark .staff-role-description,
html.dark .staff-interests span {
    border-color: #3b4b67;

    background: #263550;
}

html.dark .staff-avatar-image,
html.dark .staff-avatar-fallback {
    color: #93c5fd;
}

html.dark .staff-role-description {
    color: #dbeafe;
}

html.dark .staff-rank-badge {
    border-color: #172033;
}

@media (max-width: 720px) {
    .staff-hero {
        align-items: flex-start;

        padding: 20px;
    }

    .staff-hero-symbol {
        width: 48px;
        height: 48px;

        border-radius: 13px;

        font-size: 24px;
    }

    .staff-card {
        grid-template-columns: 1fr;
        gap: 20px;

        padding: 20px;
    }

    .staff-avatar-column {
        justify-content: flex-start;
    }

    .staff-avatar-wrap,
    .staff-avatar-image,
    .staff-avatar-fallback {
        width: 112px;
        height: 112px;
    }

    .staff-avatar-fallback {
        font-size: 40px;
    }

    .staff-card-heading {
        flex-direction: column;
    }

    .staff-position {
        max-width: 100%;
    }

    .staff-contact-button {
        width: 100%;
    }
}