/* Sirius RPG — общая мобильная адаптация. Подключается последней на каждой странице. */
:root {
    --mobile-page-pad: clamp(14px, 4vw, 24px);
}

html {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    max-width: 100%;
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
li,
td,
th,
label {
    overflow-wrap: break-word;
}

.hero-section,
.about-section,
.play-section {
    width: 100%;
}

.features-accordion .feat-content p {
    width: 100%;
    max-width: 100%;
}

button,
input,
textarea,
select {
    max-width: 100%;
    font: inherit;
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid rgba(255, 107, 87, 0.9);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .container-standard,
    .forum-main.container,
    .profile-page-container {
        padding-right: var(--mobile-page-pad);
        padding-left: var(--mobile-page-pad);
    }

    .footer {
        padding: 54px 0 40px !important;
    }

    .footer-container {
        grid-template-columns: 1.3fr 1fr !important;
        gap: 36px !important;
        padding: 0 var(--mobile-page-pad) !important;
    }

    .footer-container .contacts-col {
        grid-column: 1 / -1;
    }

    /* Главная */
    .hero-section {
        min-height: 100svh;
        height: auto;
        padding: 118px 0 58px;
    }

    .hero-container {
        width: 100%;
        padding: 0 var(--mobile-page-pad);
    }

    .hero-text-col {
        max-width: 720px;
        margin-left: auto;
    }

    .char-img {
        top: auto;
        right: auto;
        bottom: 0;
        left: 50%;
        width: min(900px, 92vw);
        height: auto;
        max-width: none;
        max-height: 92svh;
        object-fit: contain;
        object-position: center bottom;
        opacity: 0.3;
        transform: translateX(-50%);
    }

    .about-section,
    .play-section {
        height: auto;
        min-height: 100svh;
        padding: 115px 0 64px;
        overflow: visible;
    }

    .features-accordion {
        display: grid;
        height: auto;
        max-height: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .features-accordion .feat-card {
        min-height: 330px;
    }

    .features-accordion .feat-card:hover {
        flex: initial;
    }

    .features-accordion .feat-content p {
        width: auto;
        max-height: none;
        margin-top: 8px;
        opacity: 1;
    }

    .play-content {
        min-height: 0;
        gap: 20px;
    }

    .main-card {
        padding: 42px;
    }

    .stroke-title {
        font-size: clamp(42px, 8vw, 64px);
    }

    /* Профиль */
    .tactical-profile-layout {
        width: 100% !important;
        max-width: none !important;
        align-items: stretch !important;
        gap: 22px !important;
    }

    .profile-sidebar {
        order: 1 !important;
    }

    .profile-main-area {
        order: 2 !important;
    }

    .profile-sidebar {
        width: 100% !important;
        max-width: none !important;
        display: grid !important;
        grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr);
        align-items: stretch;
    }

    .profile-main-area,
    .sidebar-user-header,
    .premium-stats-widget,
    .property-widget {
        width: 100% !important;
        max-width: none !important;
    }

    .profile-nav-menu {
        grid-column: 1 / -1;
    }

    /* Зал славы */
    .top-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .top-category-card {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .leaders-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .leaders-table {
        min-width: 760px;
    }

    /* Форум */
    .forum-layout {
        flex-direction: column;
    }

    .forum-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .forum-sidebar > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .section-banner-wrap {
        min-height: 210px;
    }

    /* Игры */
    body:has(.bj-fullscreen),
    body:has(.poker-fullscreen),
    body:has(.crash-fullscreen),
    body:has(.roulette-fullscreen),
    body:has(.slot-fullscreen) {
        height: auto;
        min-height: 100svh;
        overflow: auto;
    }

    .bj-fullscreen,
    .poker-fullscreen,
    .crash-fullscreen,
    .roulette-fullscreen,
    .slot-fullscreen {
        width: 100%;
        height: auto;
        min-height: 100svh;
    }

    .top-nav {
        position: sticky;
        top: 0;
        flex-wrap: wrap;
        gap: 9px;
        padding: 10px 12px;
    }

    .top-nav-left {
        min-width: 0;
        flex: 1 1 230px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .top-nav .logo {
        font-size: 15px;
    }

    .top-nav .balance-box {
        flex: 0 1 auto;
        max-width: 45vw;
        overflow: hidden;
        padding: 8px 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
    }

    .top-nav .back-btn,
    .top-nav .back-button {
        min-height: 40px;
    }

    .decor-pillar {
        display: none !important;
    }

    .slot-viewport {
        flex: none;
        min-height: 520px;
        padding: 12px;
        overflow: auto;
    }

    .slot-machine-frame {
        max-width: 100%;
        padding: 14px;
        gap: 10px;
    }

    .slot-controls {
        padding: 13px;
    }

    .controls-container {
        flex-direction: column;
        align-items: stretch;
    }

    .bet-selector-group {
        min-width: 0;
    }

    .chips-row {
        display: grid;
        grid-template-columns: minmax(100px, 1.5fr) repeat(4, minmax(44px, 1fr));
        gap: 6px;
    }

    .chips-row .custom-bet-input,
    .chips-row .chip-btn {
        width: 100%;
    }

    .chips-row .chip-btn {
        border-radius: 10px;
    }

    .action-btns-group {
        justify-content: stretch;
    }

    .action-btns-group > * {
        min-width: 0;
        flex: 1;
    }

    .poker-controls,
    .bj-controls {
        padding: 13px;
    }

    .poker-controls .control-panel,
    .bj-controls .control-panel {
        flex-wrap: wrap;
    }

    .roulette-content-wrapper,
    .roulette-layout {
        grid-template-columns: 1fr !important;
    }

    .roulette-right-panel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .paytable-card,
    .combo-modal-card,
    .res-modal-card {
        max-height: 90svh;
        overflow-y: auto;
    }
}

@media (max-width: 820px) {
    body {
        height: auto !important;
        min-width: 0 !important;
        min-height: 100svh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    .container,
    .forum-main {
        padding-top: 100px !important;
    }

    .store-shell {
        width: 100% !important;
        padding: 100px var(--mobile-page-pad) 60px !important;
    }

    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .footer-container .contacts-col {
        grid-column: auto;
    }

    .footer-col {
        align-items: flex-start;
    }

    .support-mail {
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: 17px !important;
    }

    /* Главная */
    .hero-section {
        align-items: flex-end;
        padding-top: 105px;
    }

    .hero-text-col {
        text-align: left;
    }

    .hero-h1 {
        font-size: clamp(38px, 11vw, 58px);
        overflow-wrap: anywhere;
    }

    .hero-p {
        margin-bottom: 30px;
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 11px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        min-height: 54px;
        height: auto;
        padding: 14px 20px;
    }

    .char-img {
        left: 45%;
        width: min(680px, 132vw);
        height: auto;
        max-width: none;
        max-height: 78svh;
        opacity: 0.2;
        transform: translateX(-50%);
    }

    .container-standard {
        height: auto;
    }

    .section-title {
        font-size: clamp(28px, 8vw, 38px);
    }

    .features-accordion {
        grid-template-columns: 1fr;
    }

    .features-accordion .feat-card {
        min-height: 280px;
    }

    .play-content {
        flex-direction: column;
    }

    .main-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .main-card::after {
        font-size: 120px;
    }

    .stroke-title {
        font-size: clamp(36px, 12vw, 54px);
        overflow-wrap: anywhere;
    }

    .main-desc {
        font-size: 15px;
    }

    .launcher-content .btn-primary {
        width: 100%;
        min-height: 52px;
        height: auto;
        padding: 13px 18px;
    }

    .card-status-bar {
        align-items: flex-start;
        gap: 12px;
    }

    .online-micro {
        font-size: 13px;
    }

    .ip-copy-btn {
        max-width: 100%;
        overflow-wrap: anywhere;
        text-align: left;
        font-size: 16px;
    }

    .socials-column {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Авторизация */
    body:has(.auth-wrapper) {
        min-height: 100svh;
        padding: 88px var(--mobile-page-pad) 28px;
        align-items: flex-start;
    }

    .back-to-home {
        top: 22px;
        left: var(--mobile-page-pad);
    }

    .auth-wrapper {
        max-width: 560px;
    }

    .auth-card {
        padding: 34px 24px;
        border-radius: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    /* Профиль */
    .profile-page-container {
        width: 100% !important;
        max-width: none !important;
    }

    .tactical-profile-layout {
        display: flex !important;
        flex-direction: column !important;
    }

    .profile-sidebar {
        display: flex !important;
        flex-direction: column !important;
    }

    .sidebar-user-header {
        padding: 24px 18px;
    }

    .avatar-wrapper {
        width: 145px;
        height: 145px;
    }

    .profile-nav-menu {
        width: 100%;
        padding: 7px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .profile-nav-menu .nav-tab-btn {
        min-height: 44px;
        scroll-snap-align: start;
    }

    .profile-banner-header {
        height: 170px !important;
        border-radius: 18px;
    }

    .btn-open-settings {
        top: 12px;
        right: 12px;
        min-height: 42px;
        padding: 9px 12px;
    }

    .wide-bio-box,
    .profile-tab-content {
        padding: 20px;
        border-radius: 17px;
    }

    .activity-top-stats {
        flex-direction: column;
        gap: 10px;
    }

    .github-style-grid,
    .stats-data-grid {
        grid-template-columns: 1fr;
    }

    .settings-image-actions {
        grid-template-columns: 1fr;
    }

    .wall-input-area .btn {
        width: 100%;
    }

    .crop-modal {
        padding: 10px;
    }

    .crop-dialog {
        width: 100%;
        max-height: 96svh;
        overflow-y: auto;
    }

    .crop-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .crop-actions .btn {
        width: 100%;
        padding-inline: 10px;
    }

    /* Зал славы */
    .leaders-main {
        margin-top: 102px;
        padding: 0 var(--mobile-page-pad) 55px;
    }

    .leaders-page-title {
        margin-bottom: 25px;
    }

    .leaders-page-title h1 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .leaders-page-title p {
        font-size: 14px;
    }

    .widescreen-wrapper {
        width: 100%;
        overflow: visible;
        border-radius: 17px;
    }

    .top-categories-grid {
        grid-template-columns: 1fr;
    }

    .top-category-card {
        padding: 20px;
        border-right: 0;
    }

    .tc-header {
        justify-content: flex-start;
        margin-bottom: 17px;
        font-size: 15px;
    }

    .leaders-table-wrapper {
        overflow: visible;
    }

    .leaders-table {
        display: block;
        min-width: 0;
    }

    .leaders-table thead {
        display: none;
    }

    .leaders-table tbody {
        display: grid;
        gap: 10px;
        padding: 12px;
    }

    .leaders-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        background: rgba(0, 0, 0, 0.2);
    }

    .leaders-table tbody td,
    .leaders-table tbody td:first-child,
    .leaders-table tbody td:last-child {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 11px 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.045);
        font-size: 13px;
    }

    .leaders-table tbody td::before {
        flex: 0 0 auto;
        content: attr(data-label);
        color: #73737d;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .leaders-table tbody td:nth-child(1),
    .leaders-table tbody td:nth-child(2) {
        background: rgba(255, 255, 255, 0.025);
    }

    .pagination-container {
        border-radius: 0 0 17px 17px;
    }

    /* Форум */
    .forum-main {
        padding-right: var(--mobile-page-pad) !important;
        padding-left: var(--mobile-page-pad) !important;
    }

    .forum-sidebar {
        display: flex;
    }

    .breadcrumb {
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        white-space: nowrap;
    }

    .category-header {
        font-size: 17px !important;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
    }

    .section-header .btn {
        width: 100%;
    }

    .post-block {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 14px !important;
    }

    .post-block .post-user-info {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: flex-start;
        gap: 12px;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 0 0 13px !important;
        text-align: left !important;
    }

    .post-block .post-user-info > div:first-child {
        margin: 0 !important;
    }

    .post-block .post-content {
        width: 100%;
        padding: 14px 0 0 !important;
    }

    .post-block .post-header {
        align-items: flex-start !important;
        gap: 8px;
    }

    .post-block .post-header > div {
        flex-wrap: wrap;
    }

    .reply-section {
        padding: 20px !important;
    }

    .reply-form .form-group {
        display: flex !important;
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    /* Магазин */
    .store-hero {
        border-radius: 24px;
    }

    .hero-emblem {
        min-height: 230px !important;
    }

    .side-navigation {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .side-tab {
        min-width: 205px;
        scroll-snap-align: start;
    }

    .game-card {
        grid-template-columns: 52px minmax(0, 1fr) auto !important;
        padding: 15px !important;
    }

    .game-icon {
        width: 52px !important;
        height: 52px !important;
    }

    /* Игры */
    .top-nav .logo {
        order: 3;
        width: 100%;
        font-size: 13px;
        line-height: 1.35;
    }

    .top-nav .logo span {
        display: inline;
    }

    .bj-viewport,
    .poker-viewport,
    .crash-viewport,
    .roulette-viewport {
        flex: none;
        min-height: 54svh;
        overflow: auto;
    }

    .table-felt {
        min-width: 0;
        padding: 22px 8px;
    }

    .playing-card {
        width: 56px !important;
        height: 78px !important;
    }

    .playing-card .card-corner {
        top: 4px;
        left: 5px;
        font-size: 11px;
    }

    .playing-card .card-corner.bottom {
        top: auto;
        right: 5px;
        bottom: 4px;
        left: auto;
    }

    .playing-card .card-corner small {
        margin-top: 2px;
        font-size: 9px;
    }

    .playing-card .card-suit-center {
        font-size: 25px;
    }

    .cards-container {
        min-height: 80px !important;
        gap: 5px !important;
    }

    .board-zone {
        height: 112px;
        margin: 9px 0;
    }

    .center-message {
        max-width: 90%;
        padding: 8px 12px;
        font-size: 17px;
        line-height: 1.2;
    }

    .poker-controls .control-panel,
    .bj-controls .control-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .bet-info {
        min-width: 0;
        text-align: center;
    }

    .chips-selector {
        justify-content: center;
        flex-wrap: wrap;
    }

    .game-actions {
        width: 100%;
        justify-content: stretch;
    }

    .game-actions .action-btn {
        min-width: 0;
        flex: 1;
        justify-content: center;
        padding: 0 10px;
        font-size: 12px;
    }

    .slot-viewport {
        min-height: 430px;
    }

    .reels-container {
        width: 100%;
        justify-content: center;
        gap: 5px;
        padding: 7px;
    }

    .reel-window {
        width: clamp(48px, 15.5vw, 72px) !important;
        height: clamp(144px, 46.5vw, 216px) !important;
    }

    .symbol-cell {
        width: clamp(48px, 15.5vw, 72px) !important;
        height: clamp(48px, 15.5vw, 72px) !important;
        font-size: clamp(27px, 8vw, 42px) !important;
    }

    .jackpot-banner {
        padding: 10px;
    }

    .jackpot-amount {
        font-size: clamp(22px, 8vw, 30px);
    }

    .slot-stats-bar {
        gap: 6px;
        padding: 9px;
    }

    .slot-stats-bar .stat-item {
        min-width: 0;
        text-align: center;
        font-size: 8px;
    }

    .slot-stats-bar .stat-item strong {
        font-size: 12px;
    }

    .controls-container {
        gap: 11px;
    }

    .spin-btn,
    .auto-btn {
        min-height: 52px;
        height: auto;
        padding: 0 12px;
        font-size: 15px;
    }

    .crash-controls-wrapper {
        padding: 10px;
    }

    .bets-tray-container {
        grid-template-columns: 1fr !important;
    }

    .roulette-board {
        min-width: 610px;
    }
}

/* Ноутбуки и другие невысокие экраны: контент должен прокручиваться, а не обрезаться. */
@media (max-height: 760px) and (min-width: 821px) {
    html,
    body {
        height: auto !important;
        min-height: 100%;
        overflow-y: auto !important;
    }

    .hero-section,
    .about-section,
    .play-section {
        height: auto !important;
        min-height: 100svh;
        padding-top: 104px;
        padding-bottom: 48px;
        overflow: visible;
    }

    .char-img {
        top: auto;
        bottom: 0;
        left: 2%;
        width: min(900px, 60vw, 98svh);
        height: auto;
        max-width: none;
        max-height: 98svh;
        object-fit: contain;
        object-position: left bottom;
        transform: none;
    }

    .features-accordion {
        min-height: 430px;
        max-height: none;
    }

    .play-content {
        min-height: 460px;
    }

    .main-card {
        padding: 36px 48px;
    }
    body:has(.bj-fullscreen),
    body:has(.poker-fullscreen),
    body:has(.crash-fullscreen),
    body:has(.roulette-fullscreen),
    body:has(.slot-fullscreen) {
        height: auto !important;
        min-height: 100svh;
        overflow-y: auto !important;
    }

    .bj-fullscreen,
    .poker-fullscreen,
    .crash-fullscreen,
    .roulette-fullscreen,
    .slot-fullscreen {
        height: auto !important;
        min-height: 100svh;
        overflow: visible !important;
    }

    .bj-viewport,
    .poker-viewport,
    .crash-viewport,
    .roulette-viewport,
    .slot-viewport {
        flex: none !important;
        min-height: 500px;
        overflow: auto;
    }

    .top-nav {
        position: sticky;
        top: 0;
        z-index: 100;
    }
}

@media (max-width: 520px) {
    .auth-card {
        padding: 29px 18px;
    }

    .auth-card-header h2 {
        font-size: 27px;
    }

    .email-wrap {
        padding-bottom: 48px;
    }

    .email-wrap .btn-send-code {
        right: 7px;
        bottom: 7px;
        left: 7px;
        min-height: 36px;
    }

    .verify-row {
        grid-template-columns: 1fr;
    }

    .verify-row .btn {
        min-height: 44px;
    }

    .premium-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card.full-width {
        grid-column: auto;
    }

    .profile-tab-content,
    .wide-bio-box {
        padding: 17px;
    }

    .ppb-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .ppb-media {
        margin-right: 0;
        margin-left: 0;
    }

    .account-setting-card {
        padding: 15px;
    }

    .leaders-table tbody tr {
        grid-template-columns: 1fr;
    }

    .leaders-table tbody td:nth-child(1),
    .leaders-table tbody td:nth-child(2) {
        background: rgba(255, 255, 255, 0.025);
    }

    .tc-item:nth-child(1) {
        padding: 13px 15px;
    }

    .forum-item {
        padding: 13px !important;
    }

    .forum-details {
        min-width: 0 !important;
    }

    .forum-stats-box {
        gap: 10px !important;
    }

    .topic-item {
        padding: 14px !important;
    }

    .post-block .post-header {
        flex-direction: column;
    }

    .store-hero-copy {
        padding: 30px 19px 0 !important;
    }

    .store-hero h1 {
        font-size: clamp(34px, 12vw, 48px);
    }

    .store-hero-copy > p {
        font-size: 14px;
    }

    .game-card {
        grid-template-columns: 48px minmax(0, 1fr) !important;
    }

    .game-card .play-icon {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 40px;
        border-radius: 10px;
    }

    .top-nav {
        align-items: flex-start;
    }

    .top-nav-left {
        flex-basis: 180px;
    }

    .top-nav .balance-box {
        max-width: 42vw;
    }

    .top-nav .back-btn,
    .top-nav .back-button {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 10px;
    }

    .chips-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chips-row .custom-bet-input {
        grid-column: 1 / -1;
    }

    .slot-machine-frame {
        padding: 9px;
    }

    .slot-banner-text,
    .jackpot-label {
        letter-spacing: 1px;
        font-size: 9px;
    }

    .roulette-board {
        min-width: 560px;
    }
}

/*
 * Промежуточная адаптация для настольных ПК и ноутбуков.
 * Она сохраняет исходную композицию, но не позволяет крупной типографике
 * занимать почти весь экран при небольшой рабочей высоте браузера.
 */
@media (min-width: 821px) and (max-width: 1920px) {
    .nav-container {
        width: calc(100% - clamp(28px, 5vw, 72px));
        max-width: 1680px;
        padding: 11px clamp(18px, 2vw, 28px);
    }

    .nav-links {
        gap: clamp(16px, 1.8vw, 28px);
    }

    .hero-container {
        width: 100%;
        max-width: 1680px;
        padding-inline: clamp(24px, 3.5vw, 56px);
    }

    .hero-text-col {
        max-width: 800px;
    }

    .hero-h1 {
        font-size: clamp(40px, 3.8vw, 64px);
    }

    .hero-p {
        font-size: clamp(16px, 1.25vw, 18px);
    }

    .stroke-title {
        font-size: clamp(40px, 4.1vw, 58px);
    }

    .document-hero h1 {
        font-size: clamp(34px, 4.6vw, 56px);
    }

    .store-hero h1 {
        font-size: clamp(38px, 4.5vw, 64px);
    }

    .main-card {
        padding: clamp(38px, 4vw, 58px) clamp(42px, 5vw, 72px);
    }
}

@media (max-width: 1366px) and (min-width: 821px) {
    .navbar {
        top: 16px;
    }

    .status-badge {
        display: none;
    }

    .nav-logo {
        font-size: 18px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .nav-auth .btn-login {
        padding-inline: 16px;
    }

    .container-standard {
        padding-inline: 28px;
    }

    .hero-h1 {
        font-size: clamp(42px, 3.8vw, 54px);
    }

    .hero-text-col {
        max-width: 720px;
    }

    .char-img {
        width: min(96vh, 58vw, 860px);
    }

    .section-title {
        font-size: 36px;
    }

    .play-content {
        gap: 28px;
    }

    .main-card {
        padding: 38px 44px;
    }

    .stroke-title {
        font-size: clamp(42px, 4vw, 52px);
    }

    .socials-column,
    .soc-square {
        width: 54px;
    }

    .soc-square {
        height: 54px;
        font-size: 21px;
    }

    .footer-container {
        gap: 48px;
    }

    .store-shell,
    .profile-page-container,
    .leaders-main,
    .forum-main,
    .document-shell {
        max-width: 100%;
    }
}

@media (min-height: 761px) and (max-height: 980px) and (min-width: 821px) {
    .hero-section,
    .about-section,
    .play-section {
        height: auto;
        min-height: 100svh;
    }

    .hero-section {
        padding-block: 112px 48px;
    }

    .hero-h1 {
        margin-bottom: 18px;
        font-size: clamp(40px, 3.7vw, 60px);
    }

    .hero-p {
        margin-bottom: 30px;
        line-height: 1.5;
    }

    .hero-buttons :is(.btn-primary, .btn-secondary) {
        min-height: 52px;
        height: auto;
        padding: 13px 28px;
    }

    .char-img {
        width: min(92svh, 56vw, 880px);
        max-height: 92svh;
        transform: translateY(-38%);
    }

    .about-section,
    .play-section {
        padding-block: 106px 46px;
        overflow: visible;
    }

    .about-header,
    .play-header {
        margin-bottom: 24px;
    }

    .features-accordion {
        height: auto;
        min-height: min(470px, 55svh);
        max-height: 500px;
    }

    .features-accordion .feat-content {
        padding: 24px;
    }

    .play-content {
        min-height: 480px;
    }

    .main-card {
        padding-block: 34px;
    }

    .card-status-bar {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .stroke-title {
        margin-bottom: 14px;
        font-size: clamp(40px, 4vw, 52px);
    }

    .main-desc {
        margin-bottom: 28px;
        font-size: 16px;
    }

    .alt-connection {
        padding-top: 22px;
    }

    .footer {
        padding-block: 58px 44px;
    }
}

@media (max-width: 820px) {
    .hero-h1 br {
        display: none;
    }

    .document-hero h1,
    .store-hero h1,
    .leaders-page-title h1,
    .section-header h1,
    .profile-nickname {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .document-hero h1 {
        font-size: clamp(30px, 9vw, 44px);
    }

    .document-meta,
    .section-actions,
    .card-heading,
    .privacy-settings-heading,
    .character-details-hero {
        flex-wrap: wrap;
    }

    .document-content,
    .document-hero,
    .store-panel,
    .tab-hero,
    .account-setting-card,
    .forum-category,
    .topic-item {
        max-width: 100%;
    }

    .tab-hero {
        padding: 24px;
    }

    .tab-hero > i {
        margin-right: 0;
        font-size: 58px;
    }

    .tab-hero h2 {
        font-size: clamp(25px, 7vw, 34px);
    }

    .section-actions > *,
    .hero-actions > * {
        min-width: 0;
    }
}

@media (max-width: 520px) {
    :root {
        --mobile-page-pad: 14px;
    }

    .hero-h1 {
        font-size: clamp(34px, 10.5vw, 44px);
        letter-spacing: -0.035em;
    }

    .section-title {
        font-size: clamp(27px, 8.5vw, 34px);
    }

    .card-status-bar {
        flex-direction: column;
    }

    .status-indicator {
        font-size: 12px;
        line-height: 1.4;
    }

    .online-micro {
        width: 100%;
        justify-content: center;
    }

    .document-content section,
    .reply-section,
    .profile-tab-content,
    .wide-bio-box,
    .store-panel {
        padding: 16px;
    }

    .document-content h2,
    .content-title,
    .card-heading h2 {
        font-size: clamp(19px, 6vw, 24px);
    }

    .launch-notice-card,
    .crop-dialog,
    .edit-post-dialog,
    .case-modal-card {
        max-width: calc(100vw - 20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
