/* Prevent pull-to-refresh and scroll on all devices */
html,
body {
    overscroll-behavior-y: none !important;
    overscroll-behavior-x: none !important;
    overflow: hidden !important;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    margin: 0;
    padding: 0;
}

:root {
    --cell-size: 2.8vh;
    --bg-dark: #0a0f18;
    --panel-bg: rgba(16, 24, 32, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #e2e8f0;
}

@media (max-width: 768px) {
    :root {
        --cell-size: 25px;
    }
}

body {
    padding-top: env(safe-area-inset-top);
    font-family: 'Jura', sans-serif;
    background: url('lobby-bg.png') no-repeat center center;
    background-size: cover;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* --- ZAMANLAYICI (TIMER) ANA TASARIMI (Masaüstü) --- */
.game-timer {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 100;
    background: #000;
    color: #48dbfb;
    font-family: 'Russo One', sans-serif;
    font-size: 1.5em;
    padding: 10px 20px;
    border: 2px solid #48dbfb;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(72, 219, 251, 0.3);
    transition: all 0.3s ease;
}

/* --- MOBİL İÇİN DİNAMİK SÜRE SAYACI --- */
@media (max-width: 1000px) {
    .game-timer {
        position: fixed !important;
        left: 50% !important;
        top: auto !important;
        bottom: 15px !important;
        transform: translateX(-50%) !important;
        font-size: clamp(0.55rem, 3.5vw, 0.9rem) !important;
        padding: 6px 15px !important;
        max-width: 40vw !important;
        border-width: 2px !important;
        z-index: 9999 !important;
        transition: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    /* Filo Hazır butonu mobil uyumluluk */
    .ready-btn {
        font-size: clamp(0.4rem, 2vw, 0.55rem) !important;
        /* Yazı bir tık küçültüldü */
        padding: 12px 10px !important;
        /* Sağ ve sol iç boşluklar daraltıldı */
        width: max-content !important;
        max-width: 95% !important;
        /* Ana kutunun dışına çıkması engellendi */
        white-space: normal !important;
        /* HAYAT KURTARAN KOD: Sığmazsa taşmak yerine alt satıra iner */
        line-height: 1.5 !important;
        /* Alt satıra inerse satırlar arası boşluk güzel dursun */
        box-sizing: border-box !important;
    }
}

#lobby-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
}

.glass-panel {
    background-image: url('lobby-panel.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    width: 90vw;
    max-width: 500px;
    height: auto;
    aspect-ratio: 5 / 6;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    background-color: transparent;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.panel-content-area {
    position: absolute;
    top: 22%;
    left: 20%;
    width: 60%;
    height: 50%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 20px;
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#roomLobbyPanel .panel-content-area {
    justify-content: flex-start;
}

.panel-content-area::-webkit-scrollbar {
    display: none;
}

.steampunk-btn {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 65%;
    padding: 15px 20px;
    background: linear-gradient(to bottom, #4a8cd4, #1b5693);
    border: 4px solid #14283b;
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: clamp(0.6rem, 3vw, 0.85rem);
    text-shadow: 2px 2px 0px #0b223d;
    box-shadow:
        inset 0px 4px 0px rgba(255, 255, 255, 0.3),
        inset 0px -4px 0px rgba(0, 0, 0, 0.3),
        0px 6px 0px #0e1e2d,
        0px 10px 15px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    z-index: 20;
    transition: transform 0.1s, box-shadow 0.1s;
}

.steampunk-btn:active:not(:disabled) {
    transform: translateX(-50%) translateY(6px);
    box-shadow:
        inset 0px 4px 0px rgba(255, 255, 255, 0.3),
        inset 0px -4px 0px rgba(0, 0, 0, 0.3),
        0px 0px 0px #0e1e2d,
        0px 4px 5px rgba(0, 0, 0, 0.6);
}

.steampunk-btn:disabled {
    background: linear-gradient(to bottom, #6c7a89, #34495e);
    border-color: #2c3e50;
    color: #bdc3c7;
    text-shadow: 2px 2px 0px #1a252f;
    box-shadow:
        inset 0px 4px 0px rgba(255, 255, 255, 0.1),
        inset 0px -4px 0px rgba(0, 0, 0, 0.2),
        0px 6px 0px #1a252f,
        0px 10px 15px rgba(0, 0, 0, 0.4);
    cursor: not-allowed;
}

#room-lobby-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
}

.players-list {
    margin: 0;
    text-align: center;
    background: transparent;
    padding: 10px 0;
    border: none;
    width: 100%;
    height: max-content;
    min-height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.lobby-player {
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: 0.85rem;
    padding: 0;
    border: none;
    line-height: 1.2;
    color: #4a3424;
    text-align: center;
}

.lobby-player:last-child {
    border-bottom: none;
}

.glass-panel h2 {
    font-family: 'Russo One', sans-serif;
    font-size: 2em;
    color: #48dbfb;
    margin-top: 0;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(72, 219, 251, 0.3);
}

input,
.modern-select {
    width: 100%;
    margin: 5px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(139, 90, 43, 0.5);
    border-radius: 4px;
    color: #2d1e11;
    font-family: 'Jura', sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input::placeholder {
    color: rgba(45, 30, 17, 0.6);
}

input:focus,
.modern-select:focus {
    outline: none;
    border-color: #4a3424;
}

.primary-btn {
    background: linear-gradient(135deg, #0984e3, #00cec9);
    color: white;
    font-family: 'Russo One', sans-serif;
    font-size: 1.2em;
    padding: 15px;
    width: 100%;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.4);
}

.primary-btn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ready-btn {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #ffffff;
    /* DİKKAT: Burada display ayarı YOK */
    width: max-content !important;
    /* Yazının taşmasını kesin engeller */
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 20px;
    font-family: 'Press Start 2P', cursive !important;
    font-size: clamp(0.5rem, 1.8vw, 0.65rem);
    text-transform: uppercase;
    border: 2px solid #55efc4;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 184, 148, 0.4);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ready-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 184, 148, 0.8);
}

#lobbyMessage {
    color: #ff7675;
    font-weight: bold;
    margin-top: 15px;
}

#game-screen {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.game-header {
    margin-bottom: 10px;
}

.game-header h2 {
    font-family: 'Russo One', sans-serif;
    color: #a4b0be;
}

.highlight {
    color: #feca57;
}

#fleet-container {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    width: calc(10 * var(--cell-size) + 9px);
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

#placement-hint {
    color: #a4b0be;
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.9em;
}

#ship-dock {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 6px;
    border: 1px dashed #7f8fa6;
}

.action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100%;
    /* Kutu içinde dikey ortalamayı garantiler */
}

#board-container {
    width: 100%;
    max-width: 1400px;
    margin-top: 2vh;
}

#board-container.layout-2p {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 0px;
}

#board-container.layout-3p {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    align-items: start;
    justify-content: center;
    margin-top: 2vh;
}

#board-container.layout-3p .pos-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    margin-right: 20px;
    margin-top: -25px;
}

#board-container.layout-3p .pos-right {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    margin-left: 20px;
    margin-top: -25px;
}

#board-container.layout-3p .pos-me {
    grid-column: 1 / span 2;
    grid-row: 2;
    justify-self: center;
}

#board-container.layout-4p {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    align-items: start;
    justify-content: center;
    margin-top: 2vh;
}

#board-container.layout-4p .pos-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    margin-top: -25px;
}

#board-container.layout-4p .pos-top {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin-bottom: 20px;
    margin-top: -25px;
}

#board-container.layout-4p .pos-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    margin-top: -25px;
}

#board-container.layout-4p .pos-me {
    grid-column: 1 / span 3;
    grid-row: 2;
    justify-self: center;
}

#board-container.layout-5p {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: auto auto;
    gap: 25px;
    align-items: center;
    justify-content: center;
    margin-top: 2vh;
}

#board-container.layout-5p .board-wrapper {
    --cell-size: clamp(10px, 1.8vw, 15px);
}

#board-container.layout-5p .pos-top-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
}

#board-container.layout-5p .pos-top-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
}

#board-container.layout-5p .pos-left {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
}

#board-container.layout-5p .pos-right {
    grid-column: 3;
    grid-row: 2;
    justify-self: center;
}

#board-container.layout-5p .pos-me {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
}

#board-container.layout-6p {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: auto auto;
    gap: 25px;
    align-items: center;
    justify-content: center;
    margin-top: 2vh;
}

#board-container.layout-6p .board-wrapper {
    --cell-size: clamp(10px, 1.8vw, 15px);
}

#board-container.layout-6p .pos-top-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
}

#board-container.layout-6p .pos-top-mid {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
}

#board-container.layout-6p .pos-top-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
}

#board-container.layout-6p .pos-left {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
}

#board-container.layout-6p .pos-right {
    grid-column: 3;
    grid-row: 2;
    justify-self: center;
}

#board-container.layout-6p .pos-me {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
}

/* --- MOBİL CİHAZ YAN ÇEVİRME ENGELİ --- */
#orientation-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #050505;
    color: #48dbfb;
    z-index: 999999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-height: 500px) and (orientation: landscape) {
    #orientation-warning {
        display: flex !important;
    }

    #lobby-screen,
    #game-screen {
        display: none !important;
    }
}

/* --- MOBİL DÜZEN VE BÜYÜTEÇ SİSTEMİ --- */
.mobile-only {
    display: none;
}

@media (max-width: 1000px) {
    .mobile-only {
        display: block;
    }

    #board-container.layout-2p {
        gap: 40px;
        margin-top: 0;
    }

    #board-container.layout-2p .board-wrapper {
        margin-top: 0 !important;
        --cell-size: clamp(14px, 2.2vh, 18px);
    }

    #board-container.layout-2p .pos-top {
        transform: translateY(-5px);
    }

    #board-container.layout-2p .pos-me {
        transform: translateY(-10px);
    }

    #board-container.layout-3p {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
        gap: 5px;
        margin-top: 8vh;
        width: 100%;
        justify-items: center;
    }

    #board-container.layout-3p .pos-left {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        transform: none;
        --cell-size: clamp(8px, 4vw, 15px);
    }

    #board-container.layout-3p .pos-right {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        transform: none;
        --cell-size: clamp(8px, 4vw, 15px);
    }

    #board-container.layout-3p .pos-me {
        grid-column: 1 / span 2;
        grid-row: 2;
        margin-top: 15px;
        transform: none;
        --cell-size: clamp(16px, 6vw, 22px);
    }

    #board-container.layout-3p .board-wrapper:not(.expanded) .board-title {
        font-size: clamp(0.35rem, 1.5vw, 0.55rem);
        padding: 5px;
    }

    #board-container.layout-4p {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        gap: 5px;
        margin-top: 8vh;
        width: 100%;
        justify-items: center;
    }

    #board-container.layout-4p .pos-left {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        transform: none;
        --cell-size: clamp(6px, 2.8vw, 12px);
    }

    #board-container.layout-4p .pos-top {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        transform: none;
        --cell-size: clamp(6px, 2.8vw, 12px);
    }

    #board-container.layout-4p .pos-right {
        grid-column: 3;
        grid-row: 1;
        margin: 0;
        transform: none;
        --cell-size: clamp(6px, 2.8vw, 12px);
    }

    #board-container.layout-4p .pos-me {
        grid-column: 1 / span 3;
        grid-row: 2;
        margin-top: 15px;
        transform: none;
        --cell-size: clamp(16px, 6vw, 22px);
    }

    #board-container.layout-4p .board-wrapper:not(.expanded) .board-title {
        font-size: clamp(0.2rem, 1vw, 0.45rem);
        padding: 3px;
    }

    #board-container.layout-5p {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        gap: 8px;
        margin-top: 8vh;
        width: 100%;
        justify-items: center;
    }

    #board-container.layout-5p .board-wrapper {
        --cell-size: clamp(7px, 2.8vw, 12px);
        margin: 0;
        transform: none;
    }

    #board-container.layout-5p .pos-top-left {
        grid-column: 1;
        grid-row: 1;
    }

    #board-container.layout-5p .pos-top-right {
        grid-column: 3;
        grid-row: 1;
    }

    #board-container.layout-5p .pos-left {
        grid-column: 1;
        grid-row: 2;
    }

    #board-container.layout-5p .pos-right {
        grid-column: 3;
        grid-row: 2;
    }

    #board-container.layout-5p .pos-me {
        grid-column: 2;
        grid-row: 2;
    }

    #board-container.layout-5p .board-wrapper:not(.expanded) .board-title {
        font-size: clamp(0.25rem, 1.2vw, 0.45rem);
        padding: 4px;
    }

    #board-container.layout-6p {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        gap: 8px;
        margin-top: 8vh;
        width: 100%;
        justify-items: center;
    }

    #board-container.layout-6p .board-wrapper {
        --cell-size: clamp(6px, 2.5vw, 11px);
        margin: 0;
        transform: none;
    }

    #board-container.layout-6p .pos-top-left {
        grid-column: 1;
        grid-row: 1;
    }

    #board-container.layout-6p .pos-top-mid {
        grid-column: 2;
        grid-row: 1;
    }

    #board-container.layout-6p .pos-top-right {
        grid-column: 3;
        grid-row: 1;
    }

    #board-container.layout-6p .pos-left {
        grid-column: 1;
        grid-row: 2;
    }

    #board-container.layout-6p .pos-right {
        grid-column: 3;
        grid-row: 2;
    }

    #board-container.layout-6p .pos-me {
        grid-column: 2;
        grid-row: 2;
    }

    #board-container.layout-6p .board-wrapper:not(.expanded) .board-title {
        font-size: clamp(0.2rem, 1vw, 0.4rem);
        padding: 3px;
    }

    .zoom-btn {
        position: absolute;
        top: -10px;
        left: -10px;
        background: #000;
        border: 2px solid rgb(var(--theme-color));
        color: white;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        cursor: pointer;
        font-size: 12px;
        z-index: 10;
        box-shadow: 0 0 10px rgba(var(--theme-color), 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .close-zoom-btn {
        display: none;
        position: absolute;
        top: -15px;
        left: -15px;
        background: #ff4757;
        border: 2px solid white;
        color: white;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        cursor: pointer;
        font-size: 18px;
        z-index: 11;
        font-weight: bold;
        font-family: sans-serif;
        box-shadow: 0 0 15px rgba(255, 71, 87, 0.8);
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .board-wrapper.expanded {
        --cell-size: clamp(16px, 6vw, 22px) !important;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        z-index: 9999;
        background: rgba(10, 15, 24, 0.98);
        padding: 15px;
        border-radius: 10px;
        border: 1px solid rgb(var(--theme-color));
        box-shadow: 0 0 50px #000, 0 0 100px rgba(0, 0, 0, 0.8);
    }

    .board-wrapper.expanded .close-zoom-btn {
        display: flex;
    }

    .board-wrapper.expanded .zoom-btn {
        display: none;
    }

    .board-wrapper.expanded .board-title {
        font-size: 0.7rem;
        padding: 10px 20px;
    }

    .board-wrapper.hidden {
        display: none !important;
    }
}

.board-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.board-title {
    font-family: 'Press Start 2P', monospace, sans-serif !important;
    font-size: 0.65rem;
    background: rgba(10, 15, 24, 0.65);
    backdrop-filter: blur(4px);
    color: #fff;
    text-shadow: 0 0 5px rgb(var(--theme-color)), 0 0 8px rgb(var(--theme-color));
    border: 1px solid rgba(var(--theme-color), 0.5);
    border-bottom: 3px solid rgb(var(--theme-color));
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(var(--theme-color), 0.2);
    text-align: center;
}

.board {
    display: grid;
    grid-template-columns: repeat(10, var(--cell-size));
    grid-template-rows: repeat(10, var(--cell-size));
    gap: 1px;
    background-color: rgba(var(--theme-color), 0.4);
    border: 2px solid rgb(var(--theme-color));
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(var(--theme-color), 0.3), inset 0 0 15px rgba(0, 0, 0, 0.3);
    position: relative;
    backdrop-filter: blur(3px);
    overflow: hidden;
}

.cell {
    background-color: rgba(5, 15, 25, 0.35);
    width: var(--cell-size);
    height: var(--cell-size);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.cell::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 2px;
    background-color: rgba(var(--theme-color), 0.3);
    border-radius: 50%;
    transition: all 0.2s;
}

.cell:hover {
    background-color: rgba(var(--theme-color), 0.25);
    box-shadow: inset 0 0 15px rgba(var(--theme-color), 0.8);
    z-index: 1;
}

.cell:hover::before {
    background-color: #fff;
    box-shadow: 0 0 8px #fff;
}

/* --- Gemiler --- */
.ship {
    box-sizing: border-box;
    background-color: transparent;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    border: none;
    box-shadow: none;
    cursor: grab;
    z-index: 10;
    transition: transform 0.1s, filter 0.2s;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.ship:active {
    cursor: grabbing;
    transform: scale(0.95);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.cell.drag-over {
    background-color: rgba(255, 255, 255, 0.5) !important;
}

.cell.drag-invalid {
    background-color: rgba(255, 71, 87, 0.5) !important;
}

.ship.touch-selected {
    filter: drop-shadow(0 0 15px #f1c40f) !important;
}

.invalid-ship {
    filter: drop-shadow(0 0 15px rgba(255, 71, 87, 1)) !important;
    outline: 2px dashed #ff4757;
    background-color: rgba(255, 71, 87, 0.3) !important;
    border-radius: 4px;
}

.ship.horizontal[data-id="0"] {
    background-image: url("images/ships/carrier.png");
}

.ship.vertical[data-id="0"] {
    background-image: url("images/ships/carrier_vert.png");
}

.ship.horizontal[data-id="1"] {
    background-image: url("images/ships/battleship.png");
}

.ship.vertical[data-id="1"] {
    background-image: url("images/ships/battleship_vert.png");
}

.ship.horizontal[data-id="2"] {
    background-image: url("images/ships/cruiser.png");
}

.ship.vertical[data-id="2"] {
    background-image: url("images/ships/cruiser_vert.png");
}

.ship.horizontal[data-id="3"] {
    background-image: url("images/ships/destroyer.png");
}

.ship.vertical[data-id="3"] {
    background-image: url("images/ships/destroyer_vert.png");
}

.ship.horizontal[data-id="4"] {
    background-image: url("images/ships/submarine.png");
}

.ship.vertical[data-id="4"] {
    background-image: url("images/ships/submarine_vert.png");
}

.cell.miss {
    background-color: transparent !important;
    background-image: none !important;
    position: relative;
    cursor: default;
}

.cell.miss::after {
    content: "✕";
    font-family: sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.cell.hit {
    background-color: rgba(255, 71, 87, 0.2) !important;
    background-image: none !important;
    box-shadow: inset 0 0 10px rgba(255, 71, 87, 0.8) !important;
    position: relative;
    cursor: default;
}

.cell.hit::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35%;
    height: 35%;
    background-color: #ff4757;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4757, 0 0 20px #ff4757;
}

.cell.sunk {
    background-color: #050505 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff4757'%3E%3Cpath d='M12,2C8.13,2 5,5.13 5,9C5,11.38 6.19,13.47 8,14.74V17A1,1 0 0,0 9,18H10V20A1,1 0 0,0 11,21H13A1,1 0 0,0 14,20V18H15A1,1 0 0,0 16,17V14.74C17.81,13.47 19,11.38 19,9C19,5.13 15.87,2 12,2M8.5,8A1.5,1.5 0 0,1 10,9.5A1.5,1.5 0 0,1 8.5,11A1.5,1.5 0 0,1 7,9.5A1.5,1.5 0 0,1 8.5,8M15.5,8A1.5,1.5 0 0,1 17,9.5A1.5,1.5 0 0,1 15.5,11A1.5,1.5 0 0,1 14,9.5A1.5,1.5 0 0,1 15.5,8M12,13.5A1.5,1.5 0 0,1 10.5,12A1.5,1.5 0 0,1 12,10.5A1.5,1.5 0 0,1 13.5,12A1.5,1.5 0 0,1 12,13.5Z' /%3E%3C/svg%3E") !important;
    background-size: 65% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: 1px solid #ff4757 !important;
    box-shadow: inset 0 0 15px rgba(255, 71, 87, 0.4) !important;
    position: relative;
    cursor: default;
}

.cell.sunk::after {
    content: none !important;
}

/* Oyun Sonu Modal */
#gameOverModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 24, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal-content {
    background-image: url('lobby-panel.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 90vw;
    max-width: 500px;
    height: auto;
    aspect-ratio: 5 / 6;
    padding: 0;
    border: none;
    box-shadow: none;
    background-color: transparent;
    position: relative;
    border-radius: 0;
}

/* --- OYUN SONU PARŞÖMEN ALANI RESPONSIVE VE TAŞMA DÜZENLEMELERİ --- */
.modal-parchment-area {
    position: absolute;
    top: 25%;
    left: 22%;
    /* Sınırları tam kitabın sayfasına oturtuldu */
    width: 56%;
    /* Genişlik daraltıldı, taşma sıfırlandı */
    height: 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    padding: 5px;
    overflow: hidden;
}

#gameOverTitle {
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: clamp(0.75rem, 3.5vw, 1.1rem);
    /* Boyut küçültüldü */
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

#gameOverMessage {
    font-family: 'Jura', sans-serif;
    font-size: clamp(0.6rem, 2.5vw, 0.85rem);
    /* Cümle tam sığacak şekilde ayarlandı */
    margin-bottom: 0;
    color: #4a3424;
    font-weight: bold;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

#board-container.layout-2p .pos-me {
    transform: translateY(0);
}

/* --- Kural Bildirimi Animasyonu (Ortalanmış ve Tam Responsive) --- */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -150%);
    /* Yukarıdan kayarak gelmesi için */
    background: linear-gradient(135deg, #e84118, #c23616);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Jura', sans-serif;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    text-align: center;
    width: max-content;
    max-width: 90vw;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
    /* Ekranın tam ortasına gelir */
}

#ruleToast2 {
    top: 80px;
    background: linear-gradient(135deg, #f39c12, #d35400);
}

.waiting-leader {
    position: absolute;
    bottom: 37%;
    left: 50%;
    transform: translateX(-50%);
    color: #4a3424;
    font-family: 'Jura', sans-serif;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 15;
    margin: 0;
    pointer-events: none;
    opacity: 0.8;
}

.game-timer.danger {
    color: #ff4757;
    border-color: #ff4757;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.6);
    animation: shakeTimer 0.5s infinite alternate;
}

@keyframes shakeTimer {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

#board-container.layout-2p .pos-top {
    transform: translateY(0);
}

.cell.revealed-ship {
    background-color: rgba(45, 52, 54, 0.6) !important;
    border: 1px dashed #f1c40f !important;
    position: relative;
    cursor: default;
}

.cell.revealed-ship::after {
    content: "👀";
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

/* --- NASIL OYNANIR GLOBAL BUTON VE MODAL --- */
.global-how-to-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    border: 2px solid #4cc9f0;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99990;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.global-how-to-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 180, 216, 0.6);
}

.global-how-to-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.global-how-to-modal:not(.hidden) {
    display: flex;
}

.global-how-to-modal.hidden {
    display: none !important;
}

.global-how-to-box {
    background: #1a0814;
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #d900ff;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(217, 0, 255, 0.4);
    color: white;
    font-family: 'Quicksand', sans-serif;
}

.global-how-to-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ff4757;
    font-size: 2rem;
    cursor: pointer;
    font-weight: bold;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.global-how-to-close:hover {
    color: #ff6b81;
}

.global-how-to-title {
    font-family: 'Fredoka One', cursive, sans-serif;
    color: #ffde00;
    margin-bottom: 15px;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.global-how-to-text {
    font-size: 1.1rem;
    line-height: 1.5;
}

/* =========================================================
    🌟 CANLI VE VEKTÖREL YELKENLİ DENİZ ARKA PLANI 🌟
========================================================= */
#game-screen {
    position: relative;
    isolation: isolate;
}

#premium-ocean-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='250'%3E%3Cpath fill='%23ffffff' opacity='0.4' d='M50,80 h10 v-10 h20 v-10 h40 v-10 h30 v10 h20 v10 h20 v10 h-140 z M250,60 h10 v-10 h20 v-10 h40 v10 h15 v10 h-85 z M400,90 h15 v-10 h25 v-5 h20 v15 h-60 z'/%3E%3Cpath fill='%23ffffff' opacity='0.2' d='M45,90 h150 v5 h-150 z M245,70 h90 v5 h-90 z M395,100 h65 v5 h-65 z'/%3E%3C/svg%3E"),
        radial-gradient(circle at 50% 55%, rgba(255, 225, 50, 0.9) 0%, rgba(255, 210, 50, 0.5) 15%, transparent 45%),
        linear-gradient(180deg, #6fb1fc 0%, #b2d6ff 40%, #ffd082 80%, #fceeba 100%);
    background-size: 500px 250px, 100% 100%, 100% 100%;
    background-repeat: repeat-x, no-repeat, no-repeat;
    pointer-events: none;
    overflow: hidden;
    image-rendering: pixelated;
}

.ocean-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-repeat: repeat-x;
    background-position: bottom left;
    will-change: transform;
}

.wave-1 {
    height: 60vh;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 150' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='gradW1' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%235496c9'/%3E%3Cstop offset='100%25' stop-color='%234282b8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23gradW1)' d='M0,30 C150,30 250,15 350,15 C370,15 380,25 360,30 C330,35 600,30 800,30 V150 H0 Z'/%3E%3Cpath fill='%234282b8' opacity='0.6' d='M0,38 C200,38 300,20 400,20 C420,20 430,30 410,35 C380,40 650,38 800,38 V150 H0 Z'/%3E%3C/svg%3E");
    background-size: 150vw 100%;
    background-position-x: 0vw;
    animation: minimalBob 4s ease-in-out 0s infinite alternate;
}

.wave-2 {
    height: 50vh;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 150' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='gradW2' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%234282b8'/%3E%3Cstop offset='100%25' stop-color='%232f6fa3'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23gradW2)' d='M0,25 C200,25 300,10 400,10 C420,10 430,20 410,25 C380,30 650,25 800,25 V150 H0 Z'/%3E%3Cpath fill='%232f6fa3' opacity='0.6' d='M0,33 C150,33 250,15 350,15 C370,15 380,25 360,30 C330,35 600,33 800,33 V150 H0 Z'/%3E%3C/svg%3E");
    background-size: 150vw 100%;
    background-position-x: -35vw;
    animation: minimalBob 3.6s ease-in-out -1.2s infinite alternate-reverse;
}

.wave-3 {
    height: 40vh;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 150' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='gradW3' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%232f6fa3'/%3E%3Cstop offset='100%25' stop-color='%231f5a8a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23gradW3)' d='M0,30 C150,30 250,15 350,15 C370,15 380,25 360,30 C330,35 600,30 800,30 V150 H0 Z'/%3E%3Cpath fill='%231f5a8a' opacity='0.6' d='M0,38 C200,38 300,20 400,20 C420,20 430,30 410,35 C380,40 650,38 800,38 V150 H0 Z'/%3E%3C/svg%3E");
    background-size: 150vw 100%;
    background-position-x: -70vw;
    animation: minimalBob 4.2s ease-in-out -2.5s infinite alternate;
}

.wave-4 {
    height: 28vh;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 150' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='gradW4' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%231f5a8a'/%3E%3Cstop offset='100%25' stop-color='%23134670'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23gradW4)' d='M0,25 C200,25 300,10 400,10 C420,10 430,20 410,25 C380,30 650,25 800,25 V150 H0 Z'/%3E%3Cpath fill='%23134670' opacity='0.6' d='M0,33 C150,33 250,15 350,15 C370,15 380,25 360,30 C330,35 600,33 800,33 V150 H0 Z'/%3E%3C/svg%3E");
    background-size: 150vw 100%;
    background-position-x: -15vw;
    animation: minimalBob 3.2s ease-in-out -0.8s infinite alternate-reverse;
}

.wave-5 {
    height: 15vh;
    background-color: #134670;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 150' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='gradW5' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23134670'/%3E%3Cstop offset='100%25' stop-color='%230b3968'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23gradW5)' d='M0,8 C150,8 250,2 350,2 C370,2 380,8 360,12 C330,16 600,8 800,8 V150 H0 Z'/%3E%3Cpath fill='%230b3968' opacity='0.6' d='M0,18 V150 H800 V18 Z'/%3E%3C/svg%3E");
    background-size: 150vw 100%;
    background-position-x: -45vw;
}

.ocean-ship {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center bottom;
    will-change: left, right;
    image-rendering: pixelated;
    bottom: 15vh;
}

.ship-back {
    width: clamp(60px, 8vw, 110px);
    height: auto;
    aspect-ratio: 2.5;
    left: -20%;
    opacity: 0.85;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80'%3E%3Cpath fill='%234a5568' d='M20,60 h160 l-10,15 h-140 z'/%3E%3Cpath fill='%232d3748' d='M20,60 h160 v2 h-160 z'/%3E%3Cpath fill='%23718096' d='M50,45 h90 v15 h-90 z'/%3E%3Cpath fill='%23a0aec0' d='M70,30 h35 v15 h-35 z M110,35 h15 v10 h-15 z'/%3E%3Cpath fill='%232d3748' d='M75,15 h4 v15 h-4 z M95,20 h4 v10 h-4 z M140,55 h10 v2 h-10 z M35,55 h10 v2 h-10 z'/%3E%3C/svg%3E");
    animation: sailRight 75s linear infinite;
}

.ship-distant {
    width: clamp(40px, 5vw, 70px);
    height: auto;
    aspect-ratio: 2.5;
    left: -10%;
    opacity: 0.6;
    z-index: 0;
    bottom: 35vh;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80'%3E%3Cpath fill='%236a7588' d='M30,60 h140 l-10,15 h-120 z'/%3E%3Cpath fill='%233d4758' d='M30,60 h140 v2 h-140 z'/%3E%3Cpath fill='%238190a6' d='M60,45 h80 v15 h-80 z'/%3E%3Cpath fill='%232d3748' d='M85,15 h4 v15 h-4 z M115,20 h4 v10 h-4 z M150,55 h8 v2 h-8 z M45,55 h8 v2 h-8 z'/%3E%3C/svg%3E");
    animation: sailRight 120s linear infinite 5s;
}

.ship-mid {
    width: clamp(80px, 10vw, 130px);
    height: auto;
    aspect-ratio: 2.5;
    right: -25%;
    opacity: 0.95;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 90'%3E%3Cpath fill='%233a4a5e' d='M15,70 h190 l-15,15 h-160 z'/%3E%3Cpath fill='%231c2633' d='M15,70 h190 v2 h-190 z'/%3E%3Cpath fill='%235b6d85' d='M40,50 h120 v20 h-120 z'/%3E%3Cpath fill='%23899bb5' d='M60,35 h60 v15 h-60 z M140,40 h15 v10 h-15 z'/%3E%3Cpath fill='%231c2633' d='M65,20 h5 v15 h-5 z M95,25 h5 v10 h-5 z M170,65 h10 v3 h-10 z M25,65 h10 v3 h-10 z'/%3E%3C/svg%3E");
    animation: sailLeft 55s linear infinite 10s;
}

.ship-mid-right {
    width: clamp(90px, 11vw, 140px);
    height: auto;
    aspect-ratio: 2.5;
    left: -30%;
    opacity: 0.9;
    z-index: 2.5;
    bottom: 22vh;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 90'%3E%3Cpath fill='%234a5a6e' d='M15,70 h190 l-15,15 h-160 z'/%3E%3Cpath fill='%232c3643' d='M15,70 h190 v2 h-190 z'/%3E%3Cpath fill='%236b7d95' d='M40,50 h120 v20 h-120 z'/%3E%3Cpath fill='%2399ab1c5' d='M70,35 h60 v15 h-60 z M150,40 h15 v10 h-15 z'/%3E%3Cpath fill='%232c3643' d='M75,20 h5 v15 h-5 z M105,25 h5 v10 h-5 z M175,65 h10 v3 h-10 z M30,65 h10 v3 h-10 z'/%3E%3C/svg%3E");
    animation: sailRight 65s linear infinite 20s;
}

.ship-front {
    width: clamp(100px, 14vw, 180px);
    height: auto;
    aspect-ratio: 2.5;
    left: -35%;
    opacity: 1;
    z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 100'%3E%3Cpath fill='%232c384a' d='M15,80 h210 l-15,20 h-180 z'/%3E%3Cpath fill='%23141a24' d='M15,80 h210 v3 h-210 z'/%3E%3Cpath fill='%2342526b' d='M45,60 h140 v20 h-140 z'/%3E%3Cpath fill='%23637796' d='M70,40 h80 v20 h-80 z M160,50 h15 v10 h-15 z'/%3E%3Cpath fill='%2394a8c4' d='M85,25 h40 v15 h-40 z'/%3E%3Cpath fill='%23141a24' d='M90,10 h5 v15 h-5 z M115,15 h5 v10 h-5 z M185,75 h15 v3 h-15 z M30,75 h15 v3 h-15 z'/%3E%3C/svg%3E");
    animation: sailRight 45s linear infinite 25s;
}

@keyframes minimalBob {
    0% {
        transform: translateY(-1px);
    }

    100% {
        transform: translateY(1px);
    }
}

@keyframes sailRight {
    0% {
        left: -35vw;
    }

    100% {
        left: 120vw;
    }
}

@keyframes sailLeft {
    0% {
        right: -35vw;
    }

    100% {
        right: 120vw;
    }
}

@media (max-width: 1000px) {
    .ocean-layer {
        width: 300vw;
        background-size: 150vw auto;
    }

    .ship-back {
        animation: sailRight 75s linear infinite, bobbing 4s ease-in-out infinite alternate;
    }

    .ship-front {
        animation: sailRight 45s linear infinite 25s, bobbing 3.5s ease-in-out infinite alternate;
    }
}

/* ================== LANDSCAPE BLOCKER ================== */
#landscape-blocker {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(19, 10, 31, 0.98);
    z-index: 999999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    backdrop-filter: blur(15px);
}

#landscape-blocker .rotate-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    color: #d900ff;
    text-shadow: 0 0 20px rgba(217, 0, 255, 0.8);
    animation: rotatePhone 1.5s infinite ease-in-out alternate;
}

#landscape-blocker h2 {
    color: #ffde00;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-family: 'Fredoka One', cursive, sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(255, 94, 0, 0.8);
}

#landscape-blocker p {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #e2e8f0;
    font-weight: 700;
}

@keyframes rotatePhone {
    0% { transform: rotate(-90deg) scale(0.9); }
    100% { transform: rotate(0deg) scale(1.1); }
}

@media screen and (max-width: 950px) and (orientation: landscape) and (pointer: coarse) and (hover: none) {
    #landscape-blocker {
        display: flex !important;
    }
}
