.feature-page,
.story-feature-page {
    width: min(100% - 28px, 620px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px 0 90px;
}

.feature-header {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.feature-header small {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature-header h1 {
    margin: 3px 0 0;
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 500;
}

.feature-back {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--text);
    font-size: 22px;
}

.people-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 15px;
    background: var(--card);
}

.people-search-form input {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid var(--deep);
    border-radius: 10px;
    outline: 0;
    background: var(--deep);
    color: var(--text);
}

.people-list {
    display: grid;
    gap: 9px;
}

.person-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 15px;
    background: var(--card);
}

.person-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.person-main img,
.person-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.person-main > span:last-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.person-main strong {
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.person-main small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.small-follow-button {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--accent);
    border-radius: 9px;
    background: var(--deep);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
}

.feature-empty {
    padding: 28px 18px;
    border-radius: 15px;
    background: var(--card);
    color: var(--muted);
    text-align: center;
}

.feed-switch {
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
    padding: 3px;
    border-radius: 11px;
    background: var(--deep);
}

.feed-switch a {
    padding: 5px 8px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
}

.feed-switch a.active {
    background: var(--accent);
    color: var(--background);
}

.comment-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 6px;
}

.comment-row .comment {
    min-width: 0;
}

.comment-row form {
    margin: 4px 0 0;
}

.comment-delete {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: var(--deep);
    color: var(--muted);
    font-size: 14px;
}

.mobile-search-link {
    padding: 9px 10px;
    border: 1px solid var(--card);
    border-radius: 9px;
    color: var(--muted);
    font-size: 11px;
}

.resend-form {
    margin-top: 14px;
    text-align: center;
}

.text-action {
    padding: 8px 10px;
    border: 0;
    background: var(--deep);
    color: var(--accent);
    font-weight: 700;
}

.text-action:disabled {
    color: var(--muted);
    cursor: default;
}

.story-feature-header {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 60px;
}

.story-feature-header > small {
    color: var(--muted);
    font-size: 10px;
}

.story-owner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.story-owner img,
.story-owner-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.story-feature-image {
    display: block;
    width: 100%;
    max-height: calc(100vh - 170px);
    border-radius: 16px;
    object-fit: contain;
    background: var(--card);
}

.story-feature-caption {
    padding: 12px 4px;
    color: var(--text);
    line-height: 1.5;
}

.story-delete-form {
    text-align: center;
}

@media (max-width: 560px) {
    .people-search-form {
        grid-template-columns: 1fr;
    }

    .person-card {
        grid-template-columns: 1fr;
    }

    .person-card > form {
        padding-left: 54px;
    }
}


.simple-page,
.form-page,
.profile-page,
.auth-shell,
.story-view {
    width: min(100% - 28px, 680px);
    margin: 0 auto;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    align-content: center;
    gap: 18px;
    padding: 32px 0;
}

.auth-brand {
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
}

.auth-brand > span {
    color: var(--accent);
    font-size: 28px;
}

.auth-brand small {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-brand strong {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 500;
}

.auth-card,
.form-card,
.full-profile-card,
.archive-card {
    border-radius: 18px;
    background: var(--card);
}

.auth-card,
.form-card {
    padding: 24px;
}

.auth-kicker,
.form-page-header small {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-card h1,
.form-page-header h1 {
    margin: 6px 0 8px;
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 500;
}

.auth-card > p,
.auth-switch {
    color: var(--muted);
    line-height: 1.5;
}

.auth-switch a {
    color: var(--accent);
}

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

.stack-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.stack-form input,
.stack-form textarea,
.stack-form select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--deep);
    border-radius: 10px;
    outline: 0;
    background: var(--deep);
    color: var(--text);
}

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

.stack-form input::placeholder,
.stack-form textarea::placeholder {
    color: var(--muted);
}

.errorlist {
    margin: 0;
    padding: 0;
    color: var(--accent);
    list-style: none;
    font-size: 11px;
}

.secondary-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: var(--deep);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
}

.form-page {
    padding-bottom: 90px;
}

.form-page-header,
.profile-page-header {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 8px;
    padding: 20px 0 16px;
}

.form-page-header h1 {
    margin-top: 3px;
}

.safety-note {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 11px;
    background: var(--deep);
    color: var(--accent);
}

.safety-note p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.safety-note strong {
    color: var(--text);
}

.profile-page {
    padding-bottom: 90px;
}

.profile-page-header > div {
    display: grid;
    gap: 3px;
}

.profile-page-header small {
    color: var(--muted);
    font-size: 10px;
}

.full-profile-card {
    overflow: hidden;
}

.profile-cover {
    height: 145px;
    padding: 20px;
    background: var(--deep);
    color: var(--accent);
    font-size: 32px;
}

.profile-main-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 20px;
}

.full-profile-avatar {
    display: grid;
    width: 104px;
    height: 104px;
    margin-top: -52px;
    place-items: center;
    border: 5px solid var(--background);
    border-radius: 50%;
    object-fit: cover;
    font-size: 34px;
}

.profile-main-row .primary-button,
.profile-main-row .secondary-button {
    margin-top: 14px;
}

.full-profile-card > h1,
.full-profile-card > p,
.full-profile-card > .character-details,
.full-profile-card > .profile-stat-line,
.full-profile-card > form {
    margin-right: 20px;
    margin-left: 20px;
}

.full-profile-card > h1 {
    margin-bottom: 4px;
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 500;
}

.profile-handle {
    color: var(--accent);
}

.character-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-top: 16px;
}

.character-details span {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 10px;
    background: var(--deep);
    font-size: 12px;
}

.character-details small {
    color: var(--muted);
}

.profile-stat-line {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 17px 0;
    color: var(--muted);
    font-size: 12px;
}

.profile-stat-line a,
.profile-stat-line span {
    color: var(--muted);
}

.profile-stat-line strong {
    color: var(--text);
}

.profile-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 14px;
    border-bottom: 1px solid var(--card);
}

.profile-tabs span {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
}

.profile-tabs .active-tab {
    border-bottom: 1px solid var(--accent);
    color: var(--accent);
}

.profile-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding-top: 3px;
}

.profile-post-grid article {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--card);
}

.profile-post-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty-profile-posts {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    padding: 36px 20px;
    color: var(--muted);
    text-align: center;
}

.empty-profile-posts h2 {
    margin: 12px 0 5px;
    color: var(--text);
    font-family: Georgia, serif;
    font-weight: 500;
}

.archive-list {
    display: grid;
    gap: 10px;
}

.archive-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 11px;
}

.archive-card img {
    width: 110px;
    height: 110px;
    border-radius: 11px;
    object-fit: cover;
}

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

@media (max-width: 560px) {
    .character-details {
        grid-template-columns: 1fr;
    }

    .profile-tabs span {
        font-size: 9px;
    }

    .archive-card {
        grid-template-columns: 88px 1fr;
    }

    .archive-card img {
        width: 88px;
        height: 88px;
    }
}


/* V7.1: отдельные страницы не должны быть скрыты */
.simple-page {
    display: block;
    width: 100%;
}


/* V8: notifications */
.header-buttons .notification-button {
    position: relative;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--deep);
    border-radius: 10px;
    background: var(--card);
    color: var(--accent);
}

.header-buttons .notification-button svg {
    width: 17px;
    height: 17px;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -7px;
    display: grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    padding: 0 4px;
    border: 2px solid var(--card);
    border-radius: 99px;
    background: var(--accent);
    color: var(--background);
    font-size: 8px;
    font-weight: 700;
}

.notifications-page {
    width: min(100% - 28px, 620px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px 0 90px;
}

.notifications-header {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.notifications-header small {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.notifications-header h1 {
    margin: 3px 0 0;
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 500;
}

.notifications-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.notifications-actions form {
    margin: 0;
}

.notification-list {
    display: grid;
    gap: 8px;
}

.notification-card {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 15px;
    background: var(--card);
}

.notification-card.unread {
    border: 1px solid var(--accent);
}

.notification-actor-image,
.notification-actor-fallback {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.notification-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.notification-copy p {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.45;
}

.notification-copy strong {
    color: var(--accent);
}

.notification-copy small {
    color: var(--muted);
    font-size: 9px;
}

.notification-open {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: var(--deep);
    color: var(--accent);
    font-size: 17px;
}

.notification-unread-dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.notifications-empty {
    display: grid;
    justify-items: center;
    padding: 38px 20px;
    border-radius: 15px;
    background: var(--card);
    color: var(--muted);
    text-align: center;
}

.notifications-empty svg {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    color: var(--accent);
}

.notifications-empty h2 {
    margin: 0 0 6px;
    color: var(--text);
    font-family: Georgia, serif;
    font-weight: 500;
}

.notifications-empty p {
    margin: 0;
    font-size: 11px;
}


/* V9: сохранённые публикации и модерация */

.post-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.report-link {
    color: var(--muted);
    font-size: 8px;
}

.report-link:hover {
    color: var(--accent);
}

.save-post-form {
    margin-left: auto !important;
}

.save-post-button.saved {
    color: var(--accent);
}

.save-post-button.saved svg {
    fill: currentColor;
}

.profile-tabs a {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
}

.saved-posts-page,
.report-page {
    width: min(100% - 28px, 620px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px 0 90px;
}

.saved-posts-header,
.report-page-header {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.saved-posts-header small,
.report-page-header small {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.saved-posts-header h1,
.report-page-header h1 {
    margin: 3px 0 0;
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 500;
}

.saved-posts-list {
    display: grid;
    gap: 10px;
}

.saved-post-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 15px;
    background: var(--card);
}

.saved-post-image {
    display: block;
    width: 118px;
    height: 118px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--deep);
}

.saved-post-copy {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 7px;
}

.saved-post-copy strong {
    color: var(--accent);
    font-size: 12px;
}

.saved-post-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--text);
    font-size: 11px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.saved-post-copy small {
    color: var(--muted);
    font-size: 9px;
}

.saved-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.saved-post-actions form {
    margin: 0;
}

.saved-post-link,
.saved-post-remove {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid var(--accent);
    border-radius: 9px;
    background: var(--deep);
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
}

.saved-post-remove {
    border: 0;
    color: var(--muted);
}

.report-card,
.existing-report-card {
    padding: 16px;
    border-radius: 16px;
    background: var(--card);
}

.report-post-preview {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 11px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--deep);
}

.report-post-preview img {
    width: 84px;
    height: 84px;
    border-radius: 11px;
    object-fit: cover;
}

.report-post-preview div {
    display: grid;
    align-content: center;
    gap: 5px;
}

.report-post-preview strong {
    color: var(--accent);
    font-size: 12px;
}

.report-post-preview p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.report-form {
    display: grid;
    gap: 14px;
}

.report-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
}

.report-form select,
.report-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--deep);
    border-radius: 10px;
    outline: 0;
    background: var(--deep);
    color: var(--text);
}

.report-form select:focus,
.report-form textarea:focus {
    border-color: var(--accent);
}

.existing-report-card {
    display: grid;
    gap: 8px;
}

.existing-report-card strong {
    color: var(--accent);
}

.existing-report-card p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.moderation-note {
    margin-top: 12px;
    padding: 11px;
    border-radius: 11px;
    background: var(--deep);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

@media (max-width: 520px) {
    .saved-post-card {
        grid-template-columns: 88px 1fr;
    }

    .saved-post-image {
        width: 88px;
        height: 88px;
    }

    .profile-tabs a {
        font-size: 9px;
    }
}


/* V10: события Northwood */

.simple-page {
    display: block !important;
    width: 100%;
}

.right-title a {
    color: var(--accent);
    font-size: 8px;
    font-weight: 700;
}

.events-card .event-row {
    color: inherit;
}

.events-empty {
    padding: 14px 0 3px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}

.events-page,
.event-detail-page {
    width: min(100% - 28px, 680px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px 0 90px;
}

.events-page-header,
.event-detail-header {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.events-page-header small,
.event-detail-header small {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.events-page-header h1,
.event-detail-header h1 {
    margin: 3px 0 0;
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 500;
}

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

.event-card {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: var(--card);
}

.event-card-date {
    display: grid;
    width: 56px;
    min-height: 58px;
    place-items: center;
    align-content: center;
    gap: 2px;
    border-radius: 13px;
    background: var(--deep);
    color: var(--accent);
}

.event-card-date strong {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 500;
}

.event-card-date small {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.event-card-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.event-card-copy strong {
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-card-copy span,
.event-card-copy small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.event-card-arrow {
    color: var(--accent);
    font-size: 19px;
}

.event-detail-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
}

.event-cover,
.event-cover-placeholder {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--deep);
}

.event-cover-placeholder {
    display: grid;
    place-items: center;
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 34px;
}

.event-detail-body {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.event-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.event-meta > div {
    display: grid;
    gap: 4px;
    padding: 11px;
    border-radius: 11px;
    background: var(--deep);
}

.event-meta small {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.event-meta strong {
    color: var(--text);
    font-size: 12px;
}

.event-description {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-line;
}

.event-response-section {
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--deep);
}

.event-response-section > strong {
    font-size: 12px;
}

.event-response-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.event-response-buttons form {
    margin: 0;
}

.event-response-button {
    width: 100%;
    min-height: 38px;
    padding: 8px 6px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: var(--deep);
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
}

.event-response-button.active {
    background: var(--accent);
    color: var(--background);
}

.event-response-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 10px;
}

.event-response-stats strong {
    color: var(--text);
}

.event-attendees {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--deep);
}

.event-attendees h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 500;
}

.event-attendee-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.event-attendee {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 99px;
    background: var(--deep);
    color: var(--muted);
    font-size: 9px;
}

.event-attendee img,
.event-attendee .avatar-letter {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 560px) {
    .event-card {
        grid-template-columns: 50px 1fr;
    }

    .event-card-date {
        width: 48px;
        min-height: 52px;
    }

    .event-card-arrow {
        display: none;
    }

    .event-meta {
        grid-template-columns: 1fr;
    }

    .event-response-buttons {
        grid-template-columns: 1fr;
    }

    .event-cover,
    .event-cover-placeholder {
        height: 210px;
    }
}


/* V10.1: игровой календарь */

.game-period-note {
    color: var(--muted);
    font-size: 9px;
}


/* V12: месячный игровой календарь */

.events-calendar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 13px 15px;
    border: 1px solid var(--accent);
    border-radius: 14px;
    background: var(--deep);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.events-calendar-link strong {
    font-size: 18px;
    font-weight: 400;
}

.game-calendar-page {
    width: min(100% - 28px, 980px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px 0 90px;
}

.game-calendar-header {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.game-calendar-header small {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.game-calendar-header h1 {
    margin: 3px 0 0;
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 500;
}

.game-calendar-navigation {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.game-calendar-navigation > a,
.game-calendar-today {
    display: grid;
    min-height: 40px;
    place-items: center;
    border-radius: 11px;
    background: var(--card);
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
}

.game-calendar-today {
    font-size: 10px;
}

.game-calendar-today.active {
    background: var(--deep);
    color: var(--muted);
}

.game-calendar-scroll {
    overflow-x: auto;
    padding-bottom: 6px;
}

.game-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(96px, 1fr));
    min-width: 720px;
    overflow: hidden;
    border: 1px solid var(--deep);
    border-radius: 16px;
    background: var(--deep);
    gap: 1px;
}

.game-calendar-weekday {
    display: grid;
    min-height: 34px;
    place-items: center;
    background: var(--card);
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.game-calendar-day {
    min-height: 118px;
    padding: 8px;
    background: var(--card);
}

.game-calendar-day.outside {
    opacity: 0.42;
}

.game-calendar-day.today {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.game-calendar-day > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 20px;
    margin-bottom: 7px;
}

.game-calendar-day > header span {
    color: var(--text);
    font-family: Georgia, serif;
    font-size: 15px;
}

.game-calendar-day > header small {
    color: var(--accent);
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
}

.game-calendar-events {
    display: grid;
    gap: 4px;
}

.game-calendar-event {
    overflow: hidden;
    padding: 5px 6px;
    border-radius: 7px;
    background: var(--deep);
    color: var(--text);
    font-size: 8px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-calendar-event.active {
    background: var(--accent);
    color: var(--background);
    font-weight: 700;
}

.game-calendar-more {
    color: var(--muted);
    font-size: 8px;
}

.game-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 9px;
}

.game-calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.game-calendar-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.legend-current {
    border: 2px solid var(--accent);
}

.legend-active {
    background: var(--accent);
}

@media (max-width: 560px) {
    .game-calendar-header h1 {
        font-size: 26px;
    }

    .game-calendar-page {
        width: min(100% - 18px, 980px);
    }
}
