body.zone-full,
body.orient-landscape,
body.size-tablet,
body.size-desktop {
    --stage-bottom: calc(var(--safe-b) + 96px);
    --toast-bottom: calc(var(--safe-b) + 132px);
    --coach-bottom: calc(var(--safe-b) + 176px);
}

body:not(.has-touch) .touch-only,
body:not(.has-mouse) .mouse-only { display: none; }

body.orient-landscape .hud,
body.size-tablet .hud,
body.size-desktop .hud {
    grid-template-areas:
        "clock vitals mine"
        "board . .";
}

body.orient-landscape .board { width: 168px; }
body.size-desktop .board { width: 190px; font-size: 12.5px; }
body.size-desktop .board li { padding: 5px 9px; }

body.size-tablet .minimap,
body.size-desktop .minimap { width: 104px; height: 104px; }

body.size-desktop .clock { height: 44px; }
body.size-desktop .clock .timer { font-size: 20px; }
body.size-desktop .mine { height: 44px; }
body.size-desktop .mine strong { font-size: 20px; }

@media (min-width: 700px) {
    .sheet-screen {
        justify-content: center;
        align-items: center;
        padding: 24px 20px;
    }

    .sheet {
        max-width: 540px;
        max-height: min(84vh, 760px);
        padding: 16px 22px 18px;
        border: 1px solid var(--line);
        border-radius: var(--r-lg);
        box-shadow: 0 32px 80px rgba(2, 5, 12, .6);
        animation: dialog-in .2s ease;
    }

    .sheet--tall { max-height: min(88vh, 880px); }
    .grab { display: none; }
    .sheet h2 { font-size: 25px; }
}

@media (min-width: 700px) and (orientation: landscape) {
    .sheet { max-height: min(88vh, 720px); }
}

@media (min-width: 900px) and (orientation: landscape) {
    .start-inner {
        max-width: 980px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 56px;
        min-height: 0;
        margin: auto 0;
    }

    .hero { flex: 1; min-height: 0; align-items: flex-start; text-align: left; }
    .hero-arena { width: 100%; height: min(58vh, 520px); }
    .hero-copy { margin-top: -30px; padding-left: 28px; text-align: left; }
    .hero h1 { font-size: 62px; }
    .hero .pitch { text-align: left; max-width: 360px; font-size: 15px; }
    .start-panel { width: 400px; flex: none; }
    .start-meta { text-align: left; width: 100%; }
    .friends-strip { justify-content: flex-start; }
}

@media (min-width: 1280px) {
    .start-inner { max-width: 1120px; gap: 80px; }
    .hero h1 { font-size: 68px; }
}

@media (max-height: 460px) and (orientation: landscape) {
    .hero { min-height: 0; }
    .hero-arena { height: min(72vh, 320px); }
    .hero-copy { margin-top: -22px; }
    .hero h1 { font-size: 34px; }
    .start-screen { padding: 10px 16px; }
    .sheet-screen { padding: 10px; }
    .sheet { padding: 12px 18px 14px; }
    .sheet-body { padding: 8px 0; gap: 8px; }
    .sheet h2 { font-size: 20px; }
    .coach { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sheet, .event-toast, .coach { animation: none; }
    .switch::after, .bar i, .touch-feedback i { transition: none; }
}
