@media (min-width: 1480px) {
    .page-layout--with-ads {
        width: min(100%, 1480px);
        grid-template-columns: minmax(130px, 1fr) minmax(900px, 1080px) minmax(130px, 1fr);
        column-gap: 25px;
    }

    .page-layout--with-ads .masthead,
    .page-layout--with-ads .site-main,
    .page-layout--with-ads .site-footer {
        grid-column: 2;
    }

    .page-layout--with-ads .ad-rail {
        display: flex;
        width: min(150px, calc(100% - 20px));
        min-height: 520px;
        margin: 142px auto auto;
        align-items: center;
        flex-direction: column;
        color: rgba(174, 184, 202, 0.47);
        font-size: 0.55rem;
        font-weight: 720;
        letter-spacing: 0.13em;
        text-transform: uppercase;
    }

    .page-layout--with-ads .ad-rail--left {
        grid-column: 1;
    }

    .page-layout--with-ads .ad-rail--right {
        grid-column: 3;
    }

    .page-layout--with-ads .ad-rail--left,
    .page-layout--with-ads .ad-rail--right {
        grid-row: 1 / 4;
    }

    .page-layout--with-ads .ad-rail > div {
        width: 100%;
        height: 420px;
        margin-top: 8px;
        border: 1px dashed rgba(174, 184, 202, 0.13);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.009);
    }
}

@media (min-width: 900px) and (min-height: 850px) {
    .site-main {
        padding-top: clamp(16px, 2dvh, 24px);
    }

    .daily-summary {
        padding-top: clamp(27px, 3.2dvh, 36px);
        padding-bottom: clamp(24px, 2.7dvh, 31px);
    }

    .games-grid {
        row-gap: clamp(20px, 2.4dvh, 28px);
    }

    .stats-panel {
        margin-top: clamp(20px, 2.5dvh, 28px);
    }
}

@media (orientation: portrait) and (min-width: 571px) and (max-width: 1100px) {
    .games-grid {
        width: min(100%, 800px);
        margin-inline: auto;
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(18px, 2.4dvh, 28px);
    }
}

@media (max-width: 900px) {
    .page-layout {
        padding-inline: 20px;
    }

    .modal-panel {
        min-height: min(650px, calc(100vh - 30px));
    }

    .liar-card {
        min-height: 147px;
    }
}

@media (max-width: 760px) {
    .page-layout {
        padding: 20px 15px 15px;
    }

    .daily-summary {
        min-height: 106px;
        padding-top: 19px;
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .daily-intro {
        max-width: 520px;
    }

    .home-presentation {
        padding: 20px;
    }

    .progress-wrap {
        width: 100%;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }

    .progress-wrap p {
        margin: 0;
    }

    .game-card,
    .game-card-button {
        min-height: 230px;
    }

    .game-card-button {
        padding: 17px;
    }

    .game-preview {
        height: 78px;
        margin-block: 10px 8px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .site-footer p {
        text-align: left;
    }

    .modal {
        padding: 8px;
    }

    .modal-panel {
        width: 100%;
        max-height: calc(100dvh - 16px);
        min-height: calc(100dvh - 16px);
        border-radius: 20px;
    }

    .modal-header {
        min-height: 74px;
        padding: 15px 14px 11px 17px;
    }

    .modal-statusbar {
        padding-inline: 17px;
    }

    .modal-game-root {
        padding: 17px;
    }

    .modal-help-panel {
        padding: 21px 18px;
    }

    .modal-help-content {
        padding: 24px 4px 18px 26px;
        font-size: 0.84rem;
    }

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

    .liar-card {
        min-height: 139px;
    }

    .convergence-grids {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .puzzle-grid {
        width: min(100%, 260px);
    }

    .convergence-controls {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .convergence-game {
        margin: 0 auto;
    }

    .change-grid {
        width: min(100%, 335px);
    }

    .success-view,
    .expired-view {
        min-height: 350px;
        padding-inline: 8px;
    }
}

@media (max-width: 570px) {
    .masthead {
        display: grid;
        align-items: center;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px;
    }

    .edition-meta {
        min-width: 0;
        margin: 0;
        justify-content: flex-end;
        gap: 5px;
        font-size: clamp(0.59rem, 2.65vw, 0.68rem);
        line-height: 1.2;
        text-align: right;
    }

    .edition-meta #date-label {
        min-width: 0;
        max-width: 112px;
        white-space: normal;
    }

    .edition-meta .meta-skeleton {
        width: 82px;
    }

    .edition-meta .meta-skeleton--short {
        width: 38px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .game-card,
    .game-card-button {
        min-height: 218px;
    }

    .game-card-button {
        display: grid;
        grid-template-rows: auto 1fr auto;
    }

    .game-preview {
        position: absolute;
        top: 55px;
        right: 15px;
        width: 42%;
        height: 83px;
        opacity: 0.88;
    }

    .game-card-description {
        width: 53%;
        min-height: 69px;
        margin-top: 19px;
    }

    .stats-panel > div {
        min-height: 62px;
        padding-inline: 6px;
    }

    .stat-label {
        max-width: 90px;
        line-height: 1.2;
        text-align: center;
    }

    .number-brief {
        gap: 10px;
    }

    .number-metric {
        min-width: 82px;
        padding-inline: 9px;
    }

    .current-value {
        width: 112px;
        height: 112px;
        border-radius: 32px;
        font-size: 2.7rem;
    }

    .operations-grid {
        gap: 7px;
    }

    .operation-button {
        min-height: 57px;
    }

    .nombre-actions .secondary-button {
        width: 100%;
    }

    .modal-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .modal-title-row h2 {
        font-size: 1.09rem;
    }

    .modal-instruction-row {
        align-items: flex-start;
    }

    .modal-info-button {
        margin-top: 1px;
    }

    .modal-instruction {
        max-width: 265px;
        line-height: 1.35;
    }

    .modal-header .difficulty-badge {
        min-height: 19px;
        padding-block: 2px;
    }

    .modal-help-header {
        align-items: flex-start;
    }

    .modal-help-header h3 {
        padding-top: 5px;
    }

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

    .movement-footer .secondary-button,
    .retry-panel,
    .retry-panel .primary-button {
        width: 100%;
    }

    .retry-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .legal-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .static-page {
        padding-inline: 14px;
    }

    .legal-card {
        padding: 27px 21px;
    }

    .static-footer nav {
        gap: 11px;
    }
}

@media (max-width: 380px) {
    .brand {
        gap: 7px;
        font-size: 0.82rem;
    }

    .brand-mark {
        width: 24px;
        height: 24px;
    }

    .edition-meta {
        font-size: 0.61rem;
    }

    .daily-summary h1 {
        font-size: 1.2rem;
    }

    .progress-dots i {
        width: 18px;
    }

    .modal-game-root {
        padding: 13px;
    }

    .liar-grid {
        gap: 7px;
    }

    .liar-card {
        min-height: 132px;
        padding-inline: 6px;
    }

    .liar-card .puzzle-symbol {
        --symbol-size: 32px;
    }

    .number-brief {
        grid-template-columns: 1fr 14px 1fr;
    }

    .number-metric {
        min-width: 0;
    }
}

@media (orientation: landscape) and (max-height: 570px) {
    .modal {
        padding: 5px;
    }

    .modal-panel {
        max-height: calc(100dvh - 10px);
        min-height: calc(100dvh - 10px);
    }

    .modal-header {
        min-height: 61px;
        padding-block: 10px 8px;
    }

    .modal-statusbar {
        min-height: 28px;
        padding-block: 4px;
    }

    .modal-game-root {
        padding-block: 12px;
    }

    .current-value {
        width: 92px;
        height: 92px;
        border-radius: 26px;
        font-size: 2.25rem;
    }

    .number-brief {
        margin-bottom: 9px;
    }

    .operation-progress {
        margin-block: 7px 10px;
    }
}
