/* Responsive + prefers-reduced-motion
 *
 * Conventions (Stage 8): see frontend/docs/MOBILE.md
 * - Shell / cross-page rules live here, grouped by  ——— Stage N / section ———
 * - Breakpoints: --bp-xs 480 / --bp-sm 575 / --bp-md 767 / --bp-lg 991 (tokens.css)
 * - Primary mobile shell cutoff: max-width 767px
 */

body.is-login-modal-open {
    overflow: hidden;
}

/* ——— Stage 1: mobile shell (≤767) ——— */
@media (max-width: 767px) {
    .navbar__nav-toggle {
        display: inline-flex;
    }

    header .navbar .container {
        flex-wrap: nowrap;
        align-items: center;
    }

    header .navbar-brand {
        margin-right: auto;
    }

    header .navbar-brand img,
    header .navbar-brand__logo {
        height: 34px;
        margin-right: .5rem;
    }

    .app-shell__nav {
        display: none !important;
    }

    .app-shell__aside:not(.app-shell__aside--show-mobile) {
        display: none !important;
    }

    .app-shell__aside--show-mobile {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        margin-top: 1rem;
    }

    /* Cabinet nav (settings/drafts/liked): chips above content, not below */
    .app-shell__aside--show-mobile:has(.user_menu) {
        order: -1;
        margin-top: 0;
        margin-bottom: .75rem;
    }

    .app-shell__main {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    /* ——— Stage 1: editor leftovers without AppShell ——— */
    /* (editor.vue: scoped @media hides left cols) */

    .section_page {
        min-height: 0;
        padding: 1rem 0 calc(2rem + var(--safe-bottom));
    }

    #toTop {
        right: 1rem;
        bottom: calc(1.25rem + var(--safe-bottom));
        width: 48px;
        height: 48px;
        padding: .7rem;
    }

    #toTop svg {
        width: 24px;
    }
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .advice-main__wrap--hub-grid .advice-main__card,
.advice-main__wrap--hub-grid .game-card {
        flex: 0 0 25%;
        max-width: 25%;
    }
}
@media (max-width: 767px) {
    .games-hub__intro {
        padding: 1rem 1rem 1.1rem;
    }

    .games-hub__intro h1 {
        font-size: 1.45rem;
    }

    .games-hub-cats {
        padding: 1rem 1.05rem 1.1rem;
    }

    .games-hub-cats__title {
        font-size: 1.15rem;
    }

    .advice-main__wrap--hub-grid .advice-main__card,
.advice-main__wrap--hub-grid .game-card {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .calendar-main__wrap--compact .calendar-main__title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .advice-main__wrap--hub-grid .advice-main__card,
.advice-main__wrap--hub-grid .game-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 991px) {
    .advice-main__track--grid .advice-main__card,
.advice-main__track--grid .game-card {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 767px) {
    .advice-main__track--grid .advice-main__card,
.advice-main__track--grid .game-card {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 480px) {
    .advice-main__track--grid .advice-main__card,
.advice-main__track--grid .game-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    /* ——— Stage 4: catalog filters drawer ——— */
    body.is-catalog-filters-open {
        overflow: hidden;
    }

    .games-catalog__filters--sidebar,
    .games-catalog__reset--desktop {
        display: none;
    }

    .games-catalog__mobile-bar {
        display: block;
        margin-bottom: .85rem;
    }

    .games-catalog__mobile-btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        font-size: .95rem;
    }

    .games-catalog__header {
        padding: 1rem 1.05rem;
    }

    .games-catalog__header h1 {
        font-size: 1.35rem;
    }

    .games-catalog__list {
        padding: 1rem .85rem 1.15rem;
    }

    .bookmarks__games {
        padding: 1rem .85rem 1.15rem;
    }

    .bookmarks__skeleton-story-side {
        display: none;
    }

    .bookmarks__skeleton-game-cover {
        height: 170px;
    }

    .games-catalog__filters-modal {
        display: flex !important;
        align-items: flex-end;
        padding: 0;
    }

    .games-catalog__filters-dialog {
        margin: 0;
        max-width: none;
        width: 100%;
        max-height: min(92dvh, 100%);
    }

    .games-catalog__filters-dialog .modal-content {
        border-radius: 1rem 1rem 0 0;
        border: 0;
        max-height: min(92dvh, 100%);
        display: flex;
        flex-direction: column;
    }

    .games-catalog__filters-dialog .modal-body {
        display: flex;
        flex-direction: column;
        min-height: 0;
        max-height: min(92dvh, 100%);
        padding: .45rem 1rem calc(1rem + var(--safe-bottom));
        overflow: hidden;
    }

    .games-catalog__modal-head {
        flex-shrink: 0;
        justify-content: center;
        padding-top: .35rem;
        margin-bottom: .85rem;
    }

    .games-catalog__modal-handle {
        display: block;
        position: absolute;
        top: 0;
        left: 50%;
        width: 36px;
        height: 4px;
        margin-left: -18px;
        border-radius: 999px;
        background: var(--color-border);
    }

    .games-catalog__modal-head h4 {
        margin-top: .55rem;
    }

    .games-catalog__modal-close {
        position: absolute;
        right: 0;
        top: .15rem;
        min-height: 44px;
        padding: .45rem .75rem;
    }

    .games-catalog__modal-fields {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .35rem;
    }

    .games-catalog__select {
        min-height: 44px;
        font-size: 1rem;
        padding: .55rem .65rem;
    }

    .games-catalog__modal-actions {
        flex-shrink: 0;
        flex-direction: column-reverse;
        gap: .5rem;
        margin-top: .85rem;
        padding-top: .75rem;
        border-top: 1px solid var(--color-border);
    }

    .games-catalog__modal-actions .games-catalog__reset,
    .games-catalog__modal-actions .games-catalog__apply {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    /* ——— Stage 4: game / hub card grids ——— */
    .game-list--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem .5rem;
    }

    .game-list--grid .game-card__img,
    .game-list--grid .advice-main__img {
        height: 170px;
    }

    .character-catalog__mobile-sort {
        display: block;
        padding: .85rem 1rem;
        margin-bottom: .85rem;
    }

    .character-catalog__mobile-sort .character-catalog__select {
        min-height: 44px;
        font-size: 1rem;
    }

    .character-catalog__header {
        padding: 1rem 1.05rem;
    }

    .character-catalog__header h1 {
        font-size: 1.35rem;
    }

    .character-catalog__list {
        padding: 1rem .85rem 1.15rem;
    }

    .character-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem .5rem;
    }
}

@media (max-width: 480px) {
    .advice-main__wrap--hub-grid .advice-main__card,
    .advice-main__wrap--hub-grid .game-card {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .advice-main__track--grid .advice-main__card,
    .advice-main__track--grid .game-card {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .game-list--grid .game-card__img,
    .game-list--grid .advice-main__img {
        height: 150px;
    }

    .game-card__title > span,
    .advice-main__title > span {
        font-size: .85rem;
        line-height: 1.25;
    }

    .character-page__games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem .4rem;
    }
}

@media (max-width: 360px) {
    .game-list--grid,
    .character-catalog__grid,
    .character-page__games-grid,
    .game-list--grid.game-taxonomy-timeline__games,
    .game-taxonomy-timeline__games {
        grid-template-columns: 1fr;
    }

    .advice-main__wrap--hub-grid .advice-main__card,
    .advice-main__wrap--hub-grid .game-card,
    .advice-main__track--grid .advice-main__card,
    .advice-main__track--grid .game-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .game-list--grid .game-card__img,
    .game-list--grid .advice-main__img {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .character-page__header {
        padding: 1rem 1.05rem;
    }

    .character-page__hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: .9rem;
    }

    .character-page__portrait {
        flex-basis: 132px;
        width: 132px;
    }

    .character-page__title-row {
        flex-direction: column;
        align-items: center;
    }

    .character-page__hero-body h1 {
        font-size: 1.35rem;
        overflow-wrap: anywhere;
    }

    .character-page__meta-row {
        grid-template-columns: 1fr;
        gap: .15rem;
        text-align: left;
    }

    .character-page__description {
        text-align: left;
        overflow-wrap: anywhere;
    }

    .character-page__games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem .5rem;
    }

    .character-page__games-grid .game-card__img {
        height: 150px;
    }
}

@media (max-width: 767px) {
    .game-taxonomy__hero {
        gap: .85rem;
        flex-wrap: wrap;
    }

    .game-taxonomy__cover {
        flex-basis: 88px;
        width: 88px;
        height: 88px;
    }

    .game-taxonomy__meta-row {
        grid-template-columns: 1fr;
        gap: .15rem;
    }

    .game-taxonomy__games-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: .55rem;
        width: 100%;
    }

    .game-taxonomy__games-toolbar .character-catalog__select,
    .game-taxonomy__games-toolbar select {
        min-height: 44px;
        width: 100%;
        font-size: 1rem;
    }

    .game-list--grid,
    .game-taxonomy-timeline__games {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem .5rem;
    }

    .game-taxonomy__items {
        gap: .65rem;
    }
}

@media (max-width: 480px) {
    .game-taxonomy__header {
        padding: 1rem 1.05rem;
    }

    .game-taxonomy__header h1 {
        font-size: 1.35rem;
        overflow-wrap: anywhere;
    }

    .game-taxonomy__cover {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }

    .game-taxonomy__items {
        grid-template-columns: 1fr;
    }

    .character-page__portrait {
        flex-basis: 112px;
        width: 112px;
    }

    .character-page__games-grid .game-card__img {
        height: 140px;
    }
}

@media (max-width: 575px) {
    .static__form-feedback {
        padding: 1.15rem 1rem;
    }

    .feedback-form__group {
        flex-direction: column;
        align-items: stretch;
    }

    .feedback-form__captcha-btn {
        align-self: flex-start;
    }

    .feedback-form__buttons {
        justify-content: stretch;
    }

    .feedback-form__buttons button {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .story__right {
        margin-left: .55rem;
    }

    .story__score,
    .story__action {
        width: 46px;
    }

    .story__action svg {
        width: 20px;
        height: 20px;
    }

    .story__action--views svg {
        width: 16px;
        height: 16px;
    }

    .story--comments-open .story__main {
        min-height: min(24rem, calc(100dvh - 1.5rem));
    }

    .story__comments-overlay {
        padding: .5rem;
    }
}

@media (max-width: 767px) {
    /* ——— Stage 3: feed card + comments sheet ——— */
    body.is-story-comments-open {
        overflow: hidden;
    }

    .story {
        flex-direction: column;
        gap: 0;
        margin-bottom: 2rem;
    }

    .story__main {
        width: 100%;
        min-width: 0;
        padding-bottom: .35rem;
    }

    .story__right {
        margin-left: 0;
        width: 100%;
        order: 2;
    }

    .story__score {
        position: static;
        top: auto;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: .45rem;
        padding: .45rem .75rem .2rem;
        box-sizing: border-box;
    }

    .story__user-photo {
        flex-shrink: 0;
    }

    .story__user-photo span {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .story__actions {
        flex-direction: row;
        flex: 1;
        justify-content: space-between;
        align-items: stretch;
        gap: .25rem;
        width: auto;
        margin: 0;
        min-width: 0;
    }

    /* Right-thumb order: views → bookmark → comments → like | collapse */
    .story__action--bookmark {
        order: 2;
    }

    .story__action--comments {
        order: 3;
    }

    .story__action--like {
        order: 4;
    }

    .story__action {
        width: auto;
        min-width: 44px;
        max-width: none;
        flex: 1 1 0;
        min-height: 44px;
        padding: .35rem .2rem;
        border-radius: .45rem;
    }

    .story__action svg {
        width: 20px;
        height: 20px;
    }

    .story__action span {
        font-size: .68rem;
    }

    .story__action--views {
        order: 1;
        flex: 0 0 auto;
        min-width: 40px;
        padding: .2rem .15rem;
        background: transparent;
        box-shadow: none;
    }

    .story__collapse-btn {
        width: 40px;
        min-width: 40px;
        height: 44px;
        margin-top: 0;
        margin-left: .15rem;
        flex-shrink: 0;
    }

    .story__scroll-btn {
        display: none !important;
    }

    .story__header-top {
        align-items: flex-start;
        gap: .35rem;
    }

    .story__user {
        flex-wrap: wrap;
        row-gap: .35rem;
        min-width: 0;
        margin-bottom: .4rem;
    }

    .story__user-link,
    .story__category {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .story__title h1,
    .story__title h2 {
        font-size: 1.05rem;
        line-height: 1.35;
    }

    .story__content {
        min-width: 0;
    }

    .story-media__video-poster img,
    .story-media__video-attachment-poster img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .story-media__video video,
    .story-media__video-wrap,
    .story-media__video-attachment iframe,
    .story-media__video-attachment-wrap {
        max-width: 100%;
    }

    .story__tags-container {
        min-width: 0;
    }

    .story__tags-list {
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .story__tags-list::-webkit-scrollbar {
        display: none;
    }

    .story__tags-list--expanded {
        overflow-x: visible;
    }

    .story__tags-more {
        min-height: 32px;
        padding: .35rem .55rem;
    }

    .story__games-container {
        min-width: 0;
    }

    .story__games-list {
        gap: .35rem;
    }

    .story--comments-open .story__main {
        min-height: 0;
    }

    .story__comments-overlay--sheet {
        position: fixed;
        inset: 0;
        z-index: 1060;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        width: auto;
        height: auto;
        max-height: none;
        margin-bottom: 0;
        padding: 0;
        border-radius: 0;
        background: var(--color-overlay);
        overflow: visible;
    }

    .story__comments-drawer--sheet {
        flex: 0 1 auto;
        width: 100%;
        height: min(80dvh, 100%);
        max-height: min(80dvh, 100%);
        min-height: min(80dvh, 100%);
        border-radius: 1rem 1rem 0 0;
        padding-bottom: var(--safe-bottom);
        box-shadow: 0 -12px 36px rgb(0 0 0 / 22%);
        display: flex;
        flex-direction: column;
        transition:
            height .28s ease,
            max-height .28s ease,
            min-height .28s ease,
            border-radius .22s ease;
    }

    .story__comments-drawer--sheet.is-dragging {
        transition: none;
    }

    .story__comments-drawer--sheet-expanded {
        height: min(100dvh, 100%);
        max-height: min(100dvh, 100%);
        min-height: min(100dvh, 100%);
        border-radius: 0;
    }

    .story__comments-drawer--sheet .story__comments-drawer-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .story__comments-drawer--sheet .comments__story--embedded {
        flex: 1 1 0;
        height: 100%;
        max-height: none;
    }

    .story__comments-drawer--sheet .comments__story--embedded .comments__story-scroll {
        flex: 1 1 0;
        overscroll-behavior: contain;
    }

    .story__comments-drawer--sheet .story__comments-drawer-header {
        padding: .4rem .55rem .55rem;
        justify-content: center;
    }

    .story__comments-drawer-header--grab {
        touch-action: none;
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
    }

    .story__comments-drawer--sheet.is-dragging .story__comments-drawer-header--grab {
        cursor: grabbing;
    }

    .story__comments-drawer--sheet .story__comments-drawer-handle {
        display: block;
        position: absolute;
        top: .45rem;
        left: 50%;
        width: 36px;
        height: 4px;
        margin-left: -18px;
        border-radius: 999px;
        background: var(--color-border);
    }

    .story__comments-drawer--sheet .story__comments-drawer-title {
        margin-top: .55rem;
    }

    .story__comments-drawer--sheet .story__comments-drawer-close {
        position: absolute;
        right: .55rem;
        top: .55rem;
        width: 44px;
        height: 44px;
        touch-action: manipulation;
        cursor: pointer;
    }

    .comments__story--embedded .comments__story-scroll {
        padding: .5rem .55rem 0;
    }

    .comments__story--embedded .comments__form {
        padding: .4rem .55rem .5rem;
        padding-bottom: calc(.5rem + var(--safe-bottom, 0px));
    }

    .comments__story--embedded .comments__form-main {
        gap: .25rem;
    }

    .comments__story--embedded .comments__form-text {
        font-size: 1rem;
        min-height: 0;
        padding: .4rem .6rem;
        max-height: 110px;
        border-radius: .4rem;
    }

    .comments__story--embedded .comments__form-toolbar {
        gap: .25rem;
        min-height: 36px;
    }

    .comments__story--embedded .comments__form-upload {
        padding: 4px 6px;
    }

    .comments__story--embedded .comments__form-upload svg {
        width: 16px;
        height: 16px;
    }

    .comments__story--embedded .comments__form-counter {
        font-size: .68rem;
    }

    .comments__story--embedded .comments__form-send {
        min-height: 36px;
        padding: .3rem .75rem;
        font-size: .8rem;
    }

    .comments__story--embedded .comments__form-preview-item {
        width: 52px;
        height: 52px;
    }

    .comments__story--embedded .comments__form-auth {
        margin-top: .3rem;
        font-size: .75rem;
    }

    .comments__story--embedded .comments__item-parent {
        padding-left: .85rem;
    }
}

@media (max-width: 575px) {
    .story__header {
        padding: 0 .75rem;
    }

    .story__footer {
        padding: .55rem .75rem 0;
    }

    .story__score {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .story__title h1,
    .story__title h2 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .story-media__text {
        font-size: .95rem;
        line-height: 1.55rem;
        padding: 0 .75rem;
    }

    .story-media__quote {
        margin-left: .75rem;
        margin-right: .75rem;
    }

    .story-media__quote-text {
        font-size: 1.05rem;
        line-height: 1.55rem;
    }

    .story__collapse-btn {
        margin-top: 0;
    }

    button.story__collapse-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story__comments-overlay--sheet,
    .story__comments-drawer--sheet {
        transition: none !important;
    }
}

@media (max-width: 991px) {
    .rating-page__podium {
        grid-template-columns: 1fr;
    }

    .rating-page__podium-item--1 {
        order: 1;
        min-height: 0;
    }

    .rating-page__podium-item--2 {
        order: 2;
        min-height: 0;
    }

    .rating-page__podium-item--3 {
        order: 3;
        min-height: 0;
    }

    .rating-page__personal-grid {
        grid-template-columns: 1fr;
    }

    .rating-page__achievements-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    /* ——— Stage 5: rating ——— */
    .rating-page__hide-mobile {
        display: none !important;
    }

    .rating-page__wrap {
        padding: 1rem .85rem 1.15rem;
    }

    .rating-page__header {
        flex-direction: column;
        align-items: stretch;
        gap: .65rem;
    }

    .rating-page__periods {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .rating-page__periods::-webkit-scrollbar {
        display: none;
    }

    .rating-page__period-btn {
        flex: 0 0 auto;
        font-size: .8rem;
        min-height: 36px;
        padding: .4rem .7rem;
    }

    .rating-page__list-head,
    .rating-page__list .rating-page__row {
        grid-template-columns: 28px minmax(0, 1fr) auto 40px;
        gap: .45rem;
    }

    .rating-page__neighbors .rating-page__row {
        grid-template-columns: 28px 36px minmax(0, 1fr) auto;
        gap: .45rem;
    }

    .rating-page__img {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .rating-page__author a,
    .rating-page__podium-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
        display: inline-block;
    }

    .rating-page__personal-hero {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .rating-page__personal-rank {
        font-size: 2.2rem;
    }

    .rating-page__today-actions {
        grid-template-columns: 1fr;
    }

    .rating-page__cta-btn,
    .rating-page__list-more-btn,
    .rating-page__today-action {
        min-height: 44px;
        width: 100%;
        justify-content: center;
        display: inline-flex;
        align-items: center;
    }

    .rating-page__achievements-grid {
        grid-template-columns: 1fr;
    }

    .rating-page__podium-item {
        min-height: 0;
    }

    .rating-page__aside-card {
        padding: .85rem .9rem;
    }

    .rating-explain__dialog {
        margin: .75rem;
        max-width: calc(100vw - 1.5rem);
    }

    .rating-explain__content {
        padding: 1.15rem 1rem 1rem;
    }

    .rating-explain__hero {
        margin-right: 1.75rem;
        gap: .65rem;
    }

    .rating-explain__tips,
    .rating-explain__rules {
        grid-template-columns: 1fr;
    }

    .rating-explain__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .rating-explain__dismiss {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .rating-page__list-head,
    .rating-page__list .rating-page__row {
        grid-template-columns: 24px minmax(0, 1fr) auto 36px;
        font-size: .9rem;
    }

    .rating-page__score {
        font-size: .9rem;
    }

    .rating-page__change {
        font-size: .75rem;
    }
}

@media (max-width: 767px) {
    .comments__images-item,
    .user__comments-images-item {
        width: 72px;
        height: 72px;
    }

    .comments__images--single .comments__images-item,
    .user__comments-images--single .user__comments-images-item {
        width: min(100%, 200px);
        height: auto;
        aspect-ratio: 1;
    }

    .comments__form-preview-item {
        width: 64px;
        height: 64px;
    }

    .comments__story:not(.comments__story--embedded) {
        padding: .85rem 1rem;
    }

    .comments__form-send {
        padding: .35rem .85rem;
        font-size: .8rem;
    }

    .comments__replies-flat {
        margin-left: 1.15rem;
    }

    .user__comments {
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    /* ——— Stage 4: game page blocks ——— */
    .game__head {
        flex-direction: column;
        padding: 1rem .75rem;
    }

    .game__head-images {
        width: 100%;
        min-width: 0;
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .game__head-images-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .game__head-images-list::-webkit-scrollbar {
        display: none;
    }

    .game__head-info h1 {
        font-size: 1.45rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .game__head-title {
        flex-direction: column;
        align-items: flex-start;
        gap: .65rem;
    }

    .game__head-option {
        flex-wrap: wrap;
        gap: .5rem;
        width: 100%;
    }

    .game__score-add {
        margin-right: 0;
        flex: 1 1 auto;
        text-align: center;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .game__bookmark {
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .game__score-add,
    .game__bookmark {
        min-height: 44px;
    }

    .game-list-menu {
        width: 100%;
        max-width: none;
    }

    .game__body {
        padding: 1rem .75rem;
    }

    .game__body-row {
        flex-direction: column;
    }

    .game__sidebar-top {
        margin-top: .35rem;
    }

    .game__time-line {
        flex-direction: column;
        gap: .55rem;
    }

    .game__time-line-item {
        width: 100%;
        min-width: 0;
    }

    .game__time-title {
        font-size: .8rem;
        margin-top: .15rem;
    }

    .game__languages,
    .game__localization,
    .game__sysreq-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .game__languages table,
    .game__localization table,
    .game__sysreq table {
        min-width: 280px;
    }

    .game__videos-embed {
        max-width: 100%;
    }

    .game__characters-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
    }

    .game__characters-item {
        min-width: 0;
    }

    .game__reviews-head {
        flex-direction: column;
        align-items: flex-start;
        gap: .55rem;
    }

    .game__reviews-add,
    .game__reviews-more {
        min-height: 44px;
        justify-content: center;
    }

    .game__reviews-more {
        width: 100%;
    }

    .game__section-head .game__reviews-add,
    .game__section-head .game__edit-suggest-btn--pill,
    .game__section-head .game__section-action {
        width: auto;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .game__reviews-actions {
        flex-wrap: wrap;
        gap: .35rem;
    }

    .game__reviews-vote,
    .game__reviews-comments-toggle {
        min-height: 40px;
    }

    .game__anchors-link {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    .game__facts-item-images {
        display: flex;
        flex-wrap: wrap;
        gap: .4rem;
    }

    .game__facts-item-img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 767px) {
    /* ——— Stage 5: questions ——— */
    .question_wrap {
        padding: 1rem .85rem 1.1rem;
    }

    .answers_wrap {
        padding: 1rem .85rem 1.1rem;
    }

    .question__head {
        flex-wrap: wrap;
        gap: .45rem .65rem;
        align-items: flex-start;
    }

    .question__head h1,
    .question_wrap h1 {
        font-size: 1.25rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
        margin-bottom: .55rem;
    }

    .question__text {
        font-size: 1rem;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .question__images {
        gap: .45rem;
    }

    .question__images-item {
        width: calc(50% - .25rem);
        height: 110px;
        max-width: none;
    }

    .question__tags {
        gap: .25rem;
        margin-bottom: .55rem;
    }

    .question__tags a {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
    }

    .question__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: .55rem;
    }

    .questions__status-filter {
        flex-wrap: wrap;
        gap: .35rem;
    }

    .questions__status-filter-item {
        flex: 1 1 calc(50% - .2rem);
        white-space: normal;
        text-align: center;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .questions__toolbar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: .65rem;
    }

    .questions__add a {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .questions-feed__layout {
        gap: .65rem;
    }

    .questions-feed__thumb {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }

    .questions-feed__title {
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .questions-feed__meta {
        flex-wrap: wrap;
        gap: .35rem .55rem;
    }

    .questions-feed__more,
    .answers__more,
    .answer__comments-button-load {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .answer-form textarea,
    .answer__comment-reply-form textarea {
        font-size: 16px;
        min-height: 96px;
        padding: .7rem .75rem;
        border-width: 2px;
    }

    .answer-form__option {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: .55rem;
    }

    .answer-form__option .upload-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        flex: 0 0 auto;
        border-radius: .5rem;
        background: var(--color-surface-2);
        cursor: pointer;
    }

    .answer-form__option .upload-button svg {
        width: 22px;
        height: 22px;
    }

    .answer-form__option button {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        min-height: 44px;
        justify-content: center;
        padding: .65rem 1rem;
    }

    .answer-form--reply {
        padding: .75rem;
        margin-left: 0;
    }

    .answer-form__preview .image-preview,
    .image-preview {
        width: 72px;
        height: 72px;
    }

    .remove-image {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .answer__images {
        gap: .4rem;
    }

    .answer__images-item {
        width: calc(50% - .2rem);
        height: 100px;
    }

    .answer__author {
        flex-wrap: wrap;
        gap: .35rem;
    }

    .answer__author-name a {
        overflow-wrap: anywhere;
    }

    .answer__text {
        overflow-wrap: anywhere;
        font-size: .95rem;
    }

    .answer__option {
        flex-direction: column;
        align-items: stretch;
        gap: .55rem;
    }

    .answer__rating {
        flex-wrap: wrap;
        gap: .35rem;
    }

    .answer__rating-label {
        display: none;
    }

    .answer__rating-btn {
        min-height: 40px;
        padding: .45rem .7rem;
    }

    .answer__actions {
        width: 100%;
        flex-wrap: wrap;
        gap: .4rem;
    }

    .answer__button-accept,
    .answer__button-reply,
    .answer__comment-button-reply {
        min-height: 40px;
        flex: 1 1 auto;
        justify-content: center;
    }

    .answer__comments {
        padding-left: .35rem;
        margin-left: .15rem;
        border-left-width: 2px;
    }

    .answer--comment .answer__author-img {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .answer__comment-form-options {
        flex-wrap: wrap;
        gap: .4rem;
    }

    .answer__comment-form-options button {
        min-height: 40px;
        flex: 1 1 auto;
    }
}

@media only screen and (max-width: 767px) {
    .questions-add {
        margin-top: .15rem;
        padding: 1.5rem 1.05rem 1.35rem;
    }

    .questions-add__title {
        font-size: 1.2rem;
    }

    .questions-add__actions {
        flex-direction: column;
    }

    .questions-add__btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .question__images-item {
        width: calc(50% - .2rem);
        height: 96px;
    }

    .question__images-item:only-child,
    .answer__images-item:only-child {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: 220px;
    }

    .questions-feed__layout {
        flex-direction: column;
    }

    .questions-feed__thumb {
        width: 100%;
        height: 140px;
        flex-basis: auto;
    }

    .answer__images-item {
        width: calc(50% - .2rem);
        height: 88px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .questions-add,
    .questions-add__title,
    .questions-add__subtitle,
    .questions-add__actions,
    .questions-add__spinner,
    .questions-add__icon {
        animation: none !important;
        transition: none !important;
    }

    .mobile-nav__backdrop,
    .mobile-nav__panel {
        transition: none !important;
    }
}

@media only screen and (max-width: 767px) {
    /* ——— Stage 2: chrome (header / search / profile / footer) ——— */
    body.is-profile-menu-open,
    body.is-login-modal-open {
        overflow: hidden;
    }

    .navbar__search {
        min-width: 0;
        max-width: none;
        flex: 0 0 auto;
        margin-right: 0;
    }

    .navbar__actions {
        gap: .25rem;
        margin-left: 0;
    }

    .navbar__menu {
        width: auto;
        flex: 0 0 auto;
    }

    .navbar__user {
        gap: .15rem;
        align-items: center;
    }

    .navbar__search-toggle,
    .navbar__theme-toggle,
    .navbar__nav-toggle {
        width: 36px;
        height: 36px;
        border-radius: .65rem;
    }

    .navbar-add {
        width: 36px;
        height: 36px;
        margin-right: .1rem;
        padding: 0;
        border-radius: .65rem;
        justify-content: center;
        box-shadow: none;
        background: transparent;
    }

    .navbar-add:hover,
    .navbar-add:active,
    .navbar-add:focus {
        background: var(--color-surface-2);
    }

    .navbar-add svg {
        margin-right: 0;
        width: 20px;
        height: 20px;
    }

    .navbar-add__label {
        display: none;
    }

    .button-show-login {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: .65rem;
        background: transparent;
    }

    .button-show-login svg {
        width: 20px;
        height: 20px;
    }

    .button-show-login__label {
        display: none;
    }

    .dropdown__user span {
        width: 36px;
        height: 36px;
        min-width: 36px;
        margin-right: 0;
    }

    .dropdown__user-caret {
        display: none;
    }

    .navbar__user-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1055;
        margin: 0;
        padding: 0;
        border: 0;
        background: var(--color-overlay);
        cursor: pointer;
    }

    .navbar__user-list.dropdown-menu.show.navbar__user-list--sheet {
        position: fixed;
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 1056;
        display: block;
        width: 100%;
        max-width: none;
        max-height: min(82vh, 560px);
        margin: 0;
        padding: .35rem 1rem calc(1rem + var(--safe-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        border-radius: 1rem 1rem 0 0;
        border-top: 1px solid var(--color-border);
        background: var(--color-surface);
        box-shadow: 0 -10px 36px rgb(0 0 0 / 22%);
        -webkit-overflow-scrolling: touch;
    }

    .navbar__user-list--sheet-handle {
        display: flex;
        justify-content: center;
        padding: .35rem 0 .55rem;
    }

    .navbar__user-list--sheet-handle::before {
        content: '';
        width: 36px;
        height: 4px;
        border-radius: 999px;
        background: var(--color-border);
    }

    .navbar__user-list--sheet li a,
    .navbar__user-list--sheet .navbar__user-card {
        min-height: 44px;
        padding: .7rem .75rem;
        font-size: 1rem;
        text-decoration: none;
    }

    .navbar__user-list--sheet li a svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        margin-right: .7rem;
    }

    .navbar__user-list--sheet li a:hover,
    .navbar__user-list--sheet li a:focus,
    .navbar__user-list--sheet li a:active,
    .navbar__user-list--sheet .navbar__user-card:hover,
    .navbar__user-list--sheet .navbar__user-card:focus,
    .navbar__user-list--sheet .navbar__user-card:active {
        text-decoration: none;
    }

    .navbar__user-list--title {
        display: block;
        padding: .25rem .75rem .55rem;
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--color-text-muted);
    }

    .navbar__theme-option {
        min-height: 44px;
        padding: .65rem .75rem;
        font-size: 1rem;
    }

    .global-search-overlay {
        padding: 0;
        align-items: stretch;
        background: var(--color-bg);
    }

    .global-search-overlay__panel {
        width: 100%;
        height: 100%;
        max-height: 100dvh;
        border-radius: 0;
        border-width: 0;
        box-shadow: none;
        padding-top: var(--safe-top);
        padding-bottom: var(--safe-bottom);
    }

    .global-search-overlay__header {
        padding: .65rem .85rem .35rem;
        gap: .5rem;
        flex-shrink: 0;
    }

    .global-search-overlay__form.main-search-block {
        border-width: 2px;
        border-radius: .75rem;
    }

    .global-search-overlay__close {
        width: 44px;
        height: 44px;
    }

    .global-search-overlay__close svg {
        width: 24px;
        height: 24px;
    }

    .global-search-overlay__body {
        padding: .35rem .85rem 1rem;
        min-height: 0;
    }

    .global-search-overlay__footer {
        flex-shrink: 0;
        padding: .75rem 1rem;
    }

    .global-search-overlay__all {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        width: 100%;
        padding: .55rem .75rem;
        border-radius: .75rem;
        background: var(--color-surface-2);
        text-decoration: none;
    }

    .global-search-history__item {
        min-height: 44px;
    }

    .global-search-history__remove {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.4rem;
    }

    .search-page__submit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        min-height: 40px;
        margin: 0 .4rem 0 0;
        padding: .4rem .75rem;
        font-size: .85rem;
        border-radius: .55rem;
    }

    .main-search-result-item img {
        width: 64px;
        height: 48px;
        margin-right: .75rem;
        flex-shrink: 0;
    }

    /* ——— Stage 5: /search page ——— */
    .search-page {
        padding: 0 .15rem;
    }

    .search-page h1 {
        font-size: 1.35rem;
        margin-bottom: .85rem;
    }

    .search-page__form.main-search-block {
        border-width: 2px;
        border-radius: .75rem;
        margin-bottom: 1rem;
    }

    .search-page__form .form-control {
        font-size: 16px;
        min-height: 44px;
    }

    .search-page__filters {
        display: flex;
        flex-wrap: nowrap;
        gap: .4rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        margin-bottom: 1rem;
        padding-bottom: .15rem;
    }

    .search-page__filters::-webkit-scrollbar {
        display: none;
    }

    .search-page__filter {
        flex: 0 0 auto;
        min-height: 40px;
        padding: .45rem .85rem;
        font-size: .9rem;
    }

    .search-page__group-head {
        flex-wrap: wrap;
        gap: .35rem .75rem;
        align-items: center;
    }

    .search-page__group-head h2 {
        font-size: 1.05rem;
    }

    .search-page__group-more {
        min-height: 36px;
    }

    .main-search-result-item a,
    .global-search-result-item > a {
        align-items: flex-start;
        min-height: 44px;
        padding: .55rem .5rem;
    }

    .global-search-result-item__text strong {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .search-page__pagination {
        flex-wrap: wrap;
        gap: .55rem;
    }

    .search-page__pagination button {
        min-height: 44px;
        flex: 1 1 calc(50% - .3rem);
        padding: .55rem .85rem;
    }

    /* ——— Stage 6: profile / settings / cabinet ——— */
    .user__info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem .85rem 1.1rem;
        gap: .35rem;
    }

    .user__info-photo {
        width: 112px;
        height: 112px;
        min-width: 112px;
        border-width: 3px;
    }

    .user__info-data {
        width: 100%;
        padding: .65rem 0 0;
        min-width: 0;
    }

    .user__info-title {
        flex-wrap: wrap;
        justify-content: center;
        gap: .35rem .45rem;
        row-gap: .4rem;
    }

    .user__info-title a {
        font-size: 1.25rem;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .user__info-title > svg,
    .user__info-degree,
    .user__info-banned {
        margin-left: 0;
    }

    .user__info-line {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: .35rem .75rem;
        margin-top: .35rem;
    }

    .user__info-line span {
        display: inline-flex;
        align-items: center;
        gap: .25rem;
    }

    .user__info-options {
        justify-content: center;
        padding: .65rem 0 .25rem;
    }

    .user__info-options a,
    .user__info-options button {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        padding: .55rem;
    }

    .user__info-accounts {
        margin: .25rem .25rem 0 0;
        min-height: 36px;
        padding: .35rem .55rem;
    }

    .user__info-about {
        text-align: left;
        margin-top: .65rem;
    }

    .user__content-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        gap: .35rem;
        padding: .55rem .75rem;
        margin-bottom: .75rem;
    }

    .user__content-menu::-webkit-scrollbar {
        display: none;
    }

    .user__content-menu a {
        flex: 0 0 auto;
        white-space: nowrap;
        margin-right: 0;
        min-height: 40px;
        padding: .5rem .9rem;
        font-size: .85rem;
    }

    .user__content-games,
    .user__content-stories {
        padding: .75rem .65rem;
    }

    .user__games-line {
        flex-direction: column;
        align-items: stretch;
    }

    .user__games-label {
        width: 100%;
        flex: none;
        min-height: 0;
        flex-direction: row;
        justify-content: flex-start;
        gap: .45rem;
        padding: .45rem .65rem;
        font-size: .85rem;
        border-radius: .35rem .35rem 0 0;
    }

    .user__games-content {
        padding: .55rem .5rem .65rem;
        justify-content: flex-start;
        min-height: 0;
    }

    .user_menu {
        max-width: none;
        margin-bottom: 0;
        width: 100%;
    }

    .user_menu ul {
        display: flex;
        flex-wrap: nowrap;
        gap: .35rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        padding: .15rem 0 .25rem;
    }

    .user_menu ul::-webkit-scrollbar {
        display: none;
    }

    .user_menu a {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        margin-bottom: 0;
        min-height: 44px;
        padding: .55rem .85rem;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        font-size: .9rem;
    }

    .user_menu a.active {
        border-color: var(--color-brand);
        background: var(--color-brand-soft);
        color: var(--color-text);
    }

    .user_menu a svg {
        margin-top: 0;
        flex-shrink: 0;
    }

    .user_menu a .user_menu__badge {
        margin-left: .35rem;
        flex-shrink: 0;
    }

    .user__settings {
        padding: 1rem .9rem 1.35rem;
        margin-bottom: 1.25rem;
        border-radius: .85rem;
    }

    .user__settings h1 {
        font-size: 1.15rem;
        margin-bottom: .85rem;
    }

    .user__settings--return {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: .55rem .75rem .55rem .45rem;
        margin-bottom: .75rem;
    }

    .user__settings-menu a {
        min-height: 56px;
        align-items: flex-start;
        padding: .85rem .75rem;
        border-radius: .75rem;
    }

    .user__settings-menu a svg {
        flex-shrink: 0;
        margin-right: .75rem;
        margin-top: .1rem;
    }

    .user__settings-menu--title div {
        font-size: 1rem;
        line-height: 1.25;
    }

    .user__settings-menu--title span {
        font-size: .85rem;
        line-height: 1.35;
    }

    .user__settings-item {
        margin-bottom: 1.15rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .user__settings-item:last-child {
        border-bottom: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .user__settings-item button {
        min-height: 44px;
        width: 100%;
        justify-content: center;
        margin-right: 0;
        font-size: .9rem;
    }

    .settings-appearance__option {
        min-height: 56px;
        padding: .95rem 1rem;
    }

    .settings--select-info {
        margin-bottom: 1.5rem;
    }

    .settings--select-info svg {
        width: 72px;
    }

    .settings--select-info button {
        min-height: 44px;
        justify-content: center;
        padding: .65rem 1.15rem;
        margin-right: 0;
    }

    .settings--photos {
        justify-content: flex-start;
        gap: .35rem;
    }

    .settings--photos-wrap {
        flex: 0 0 calc(25% - .3rem);
        max-width: calc(25% - .3rem);
    }

    .settings--photos-item {
        margin: 0;
        width: 100%;
        min-height: 0;
    }

    .settings--photos-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        display: block;
        object-fit: cover;
    }

    .edit-user__modal .modal-dialog,
    .drafts-dialog__modal .modal-dialog {
        margin: .75rem;
        max-width: none;
    }

    .edit-user__modal .modal-body,
    .drafts-dialog__modal .modal-body {
        padding: 1.35rem 1.1rem 1.25rem;
    }

    .edit-user__modal .modal-body .form-control,
    .edit-user__modal .modal-body textarea.form-control {
        font-size: 16px;
        min-height: 44px;
    }

    .edit-user__modal .modal-body textarea.form-control {
        min-height: 96px;
    }

    .user-edit__buttons,
    .drafts-dialog__buttons {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: .5rem;
        margin-top: 1.25rem;
    }

    .user-edit__buttons button,
    .drafts-dialog__buttons button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        margin-right: 0;
        font-size: .9rem;
    }

    .user-edit-account__line {
        flex-wrap: wrap;
        gap: .35rem;
    }

    .user-edit-account__line span {
        flex: 0 0 100%;
        margin-right: 0;
    }

    .user-edit-account__line input {
        width: 100%;
        font-size: 16px;
        min-height: 44px;
    }

    .drafts__page h1 {
        font-size: 1.25rem;
        margin-bottom: .85rem;
    }

    .drafts__page-list {
        padding: .85rem .75rem 1rem;
    }

    .drafts__page-item {
        flex-direction: column;
        align-items: stretch;
        border-radius: .5rem;
        margin-bottom: .75rem;
    }

    .drafts__page-header {
        padding: .75rem .8rem .55rem;
        min-width: 0;
        box-sizing: border-box;
    }

    .drafts__page-header-top {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: .35rem .55rem;
    }

    .drafts__page-title {
        flex: 1 1 100%;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: .95rem;
        line-height: 1.3;
    }

    .drafts__page-title-date,
    .drafts__page-category {
        flex: 0 0 auto;
    }

    .drafts__page-info {
        flex-wrap: wrap;
        gap: .3rem;
        row-gap: .35rem;
    }

    .drafts__page-info span {
        margin-right: 0;
    }

    .drafts__page-option {
        width: 100%;
        justify-content: flex-end;
        gap: .45rem;
        padding: .45rem .75rem .65rem;
        border-top: 1px solid var(--color-border);
        box-sizing: border-box;
    }

    .drafts__page-option button {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: .45rem;
        border-radius: .45rem;
    }

    .drafts__page-alert {
        padding: .75rem .85rem;
        border-radius: .5rem;
        line-height: 1.35;
    }

    .drafts-dialog__close {
        min-width: 44px;
        min-height: 44px;
        right: .65rem;
        top: .65rem;
    }

    .liked__option {
        display: flex;
        flex-wrap: nowrap;
        gap: .4rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        margin-bottom: .85rem;
        padding-bottom: .1rem;
    }

    .liked__option::-webkit-scrollbar {
        display: none;
    }

    .liked__option button {
        flex: 0 0 auto;
        min-height: 44px;
        padding: .5rem .9rem;
        white-space: nowrap;
    }

    .liked__questions-more,
    .liked__questions-more-wrap button {
        width: 100%;
        min-height: 44px;
    }

    /* ——— Stage 7: editors ——— */
    .question-add__page .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .question-add__page .row > .col-md-8 {
        padding-bottom: calc(10.5rem + var(--safe-bottom));
    }

    .question-add__page .row > .col-md-4 {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        max-height: min(46dvh, 340px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        margin: 0;
        padding: 0.65rem 0.85rem calc(0.65rem + var(--safe-bottom));
        background: var(--color-surface);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 -10px 32px rgb(0 0 0 / 14%);
    }

    .question-editor__sidebar {
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .question-editor__sidebar-save button,
    .question-editor__publish,
    .question-editor__help-button {
        min-height: 44px;
        width: 100%;
        justify-content: center;
    }

    .question-editor__story-title textarea,
    .question-editor__story-text textarea {
        font-size: 16px;
    }

    .question-editor__option button {
        min-width: 44px;
        min-height: 44px;
    }

    .question-editor__images button {
        min-width: 40px;
        min-height: 40px;
    }

    .question-editor__categories-dropdown {
        width: 100%;
    }

    .question-editor__categories-dropdown button {
        min-height: 44px;
        width: 100%;
        justify-content: center;
    }

    .question-editor__categories-dropdown ul.dropdown-menu {
        left: 0 !important;
        right: 0;
        width: 100%;
        min-width: 0 !important;
        max-width: none;
        box-sizing: border-box;
    }

    .question-editor__category-list {
        min-width: 0 !important;
        max-width: none;
        width: 100%;
    }

    .question-editor__categories-search input {
        font-size: 16px;
        min-height: 40px;
    }

    .question-editor__category-list-item {
        min-height: 40px;
    }

    .question-editor__categories-select-items {
        flex-direction: column;
        align-items: stretch;
    }

    .question-editor__categories-select-item {
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
    }

    /* Story editor media blocks (editor.css page) */
    .question-add__wrap {
        min-height: 0;
    }

    .media-item {
        display: flex;
    }

    .media-item,
    .media-editor__wrap,
    .media-link,
    .media-quote,
    .media-image,
    .media-video,
    .media-video-attachment,
    .media-audio,
    .media-special,
    .media-poll {
        flex-direction: column;
        align-items: stretch;
    }

    .media-editor__wrap .media__side,
    .media-item > .media__side,
    .media__side--sticky {
        order: -1;
        position: static;
        top: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 0.2rem;
        width: 100%;
        padding: 0 0 0.45rem;
        margin: 0;
        text-align: left;
    }

    .media__side button,
    .editor-media-side__drag,
    .media-item__delete {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.35rem;
        border-radius: 0.45rem;
    }

    .media-link__body {
        flex-direction: column;
        gap: 0.45rem;
    }

    .editor-field-row--half {
        width: 100%;
    }

    .media-link__body input,
    .media-image__body input,
    .media-video input,
    .media-video-attachment input,
    .media-audio__info input,
    .media-quote__body textarea,
    .media-special__body textarea,
    .media-editor__body .editor__media-content,
    .editor__story-title textarea,
    .editor-intro__textarea {
        font-size: 16px;
    }

    .editor__toolbar {
        top: 0.5rem;
        padding: 0.35rem 0.5rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .editor__toolbar button {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .editor__story-media {
        padding: 0.55rem 0.35rem;
    }

    .editor-trash__modal .modal-dialog {
        margin: 0.75rem;
        max-width: none;
    }

    .editor-trash__buttons {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .editor-trash__buttons button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .footer__body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "links"
            "copy"
            "author";
        gap: 0;
        padding: 1.25rem 1.15rem 1.35rem;
        margin-bottom: 1rem;
    }

    .footer__brand {
        margin-bottom: .85rem;
    }

    .footer__brand span {
        display: block;
        line-height: 1.35;
        margin-top: .15rem;
    }

    .footer__links {
        flex-direction: column;
        align-items: flex-start;
        gap: .05rem;
        margin-bottom: .35rem;
    }

    .footer__links a {
        padding: .55rem 0;
        font-size: .95rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .footer__copy {
        margin-top: .5rem;
    }

    .author__copy {
        margin-top: .75rem;
        padding-top: .75rem;
    }

    .login-form__modal .modal-dialog {
        margin: .75rem;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar__user-backdrop,
    .navbar__user-list.dropdown-menu,
    .mobile-nav__backdrop,
    .mobile-nav__panel,
    .story__comments-overlay--sheet,
    .story__comments-drawer--sheet,
    .games-catalog__filters-modal,
    .games-catalog__filters-dialog .modal-content,
    .global-search-overlay,
    .global-search-overlay * {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 480px) {
    /* ——— Stage 8: type scale ≤480 ——— */
    :root,
    [data-theme="light"],
    [data-theme="dark"] {
        --fs-display: 1.45rem;
        --fs-h1: 1.3rem;
        --fs-h2: 1.15rem;
        --fs-h3: 1.05rem;
        --fs-body: 0.95rem;
        --fs-small: 0.8125rem;
        --header-control-size: 36px;
    }

    body {
        font-size: var(--fs-body);
    }

    .new__page h1,
    .category__page h1,
    .bookmarks__page h1,
    .liked__page h1,
    .tags__page h1,
    .tag__info h1,
    .rating__page h1,
    .drafts__page h1,
    .search-page h1,
    .games-hub__intro h1,
    .games-catalog__header h1,
    .character-catalog__header h1,
    .character-page__hero-body h1,
    .game-taxonomy__header h1,
    .question__head h1,
    .question_wrap h1,
    .user__settings h1,
    .static__fullstory h1 {
        font-size: var(--fs-h1);
    }

    .story__title h2,
    .search-page__group-head h2,
    .drafts__page-list h2 {
        font-size: var(--fs-h2);
    }

    .game__head-info h1 {
        font-size: var(--fs-display);
    }

    .user__info-photo {
        width: 96px;
        height: 96px;
        min-width: 96px;
    }

    .user__info-title a {
        font-size: 1.15rem;
    }

    .settings--photos-wrap {
        flex: 0 0 calc(33.333% - .25rem);
        max-width: calc(33.333% - .25rem);
    }

    .user__settings {
        padding: .9rem .75rem 1.15rem;
    }

    /* Stage 8: denser chrome + tap comfort on very narrow phones */
    .navbar-brand img,
    .navbar-brand__logo {
        height: 30px;
    }

    .section_page {
        padding-left: 0;
        padding-right: 0;
    }

    .pagination .page-link,
    .page-link {
        min-width: var(--touch-min);
        min-height: var(--touch-min);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
