/*
 * Phone layout for every page. Loaded last in each page's <head>, so it overrides the page's own
 * desktop styles, and only on narrow screens - the desktop layout is untouched.
 * !important is used because many pages set these properties with equally specific selectors.
 */
/* ================= Country suggestions (all screen sizes) - built by /js/mobile.js ================= */
.mf-suggest {
    position: fixed;
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
    padding: 4px;
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.mf-suggest[hidden] { display: none; }
.mf-suggest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;                 /* comfortable finger target */
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #263238;
    text-align: left;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.mf-suggest-item + .mf-suggest-item { border-top: 1px solid rgba(0, 0, 0, 0.05); }
.mf-suggest-item:hover, .mf-suggest-item.active { background: #eef6ff; }
.mf-suggest-alias {
    font-size: 13px;
    font-weight: 600;
    color: #78909c;
    white-space: nowrap;
}

/* ================= Small "Copied" message (window.MundoFlag.share in /js/mobile.js) ================= */
.mf-toast {
    position: fixed;
    left: 50%;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 20px);
    z-index: 10001;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(33, 33, 33, 0.92);
    color: #fff;
    font: 700 15px 'Nunito', 'Segoe UI', sans-serif;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}
.mf-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= Touch screens (phones, tablets, the app) ================= */
@media (hover: none), (pointer: coarse) {
    html {
        -webkit-tap-highlight-color: transparent;   /* no grey flash on every tap */
        -webkit-text-size-adjust: 100%;             /* iOS: don't inflate text on rotation */
    }
    body {
        touch-action: manipulation;                 /* no double-tap zoom, no 300ms tap delay */
        overscroll-behavior-y: none;                /* no rubber-band / pull-to-refresh on the game */
        -webkit-user-select: none;                  /* long-press doesn't select page text */
        user-select: none;
    }
    input, textarea, [contenteditable] {
        -webkit-user-select: text;
        user-select: text;
    }
    img { -webkit-touch-callout: none; }            /* long-press on a flag doesn't pop "save image" */

    /* Hover lifts/zooms get "stuck" after a tap on touch screens - keep them for mouse users only */
    .back-link:hover, .rules-btn:hover, .pause-btn:hover, .start-btn:hover, .copy-btn:hover,
    .action-btn:hover, .top-btn:hover, .home-btn:hover, .guess-row:hover, .mode-card:hover,
    .overlay-btn:hover, .option-card label:hover, .match-type-card label:hover,
    .guess-btn:hover, .giveup-btn:hover, .secondary-btn:hover, #guessBtn:hover,
    .option-btn:hover, .hint-btn:hover, .mode-card:hover .mode-cta {
        transform: none !important;
    }
}

/* Laptops (e.g. 1280-1366px): rows of five 230px cards were wider than the screen; let them wrap */
@media (min-width: 1181px) and (max-width: 1420px) {
    .modes-grid, .options-grid {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
        max-width: 100% !important;
    }
}

/* Tablets and narrow windows: the 4-5 card rows become two columns, side-by-side columns stack,
   and the fixed 800px globe area fits the screen. (The home page's card row already wraps.) */
@media (min-width: 701px) and (max-width: 1180px) {

    html, body {
        overflow-x: hidden !important;
    }

    .modes-grid, .options-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: 760px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .mode-card, .match-type-card {
        min-width: 0 !important;
    }

    .top-area, .match-columns {
        flex-direction: column !important;
        align-items: stretch !important;
        max-width: 760px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .create-col, .join-col, .column {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .difficulty-block {
        margin-top: 0 !important;
    }

    #guessSection, #guessesContainer, #globeContainer {
        width: 100% !important;
        max-width: 800px !important;
    }

    #globeContainer {
        height: min(72vw, 600px) !important;
    }
}

@media (max-width: 700px) {

    /* Decorative glows sit partly off-screen on purpose; never let them widen the page.
       "clip" (where supported) does that without turning the page into its own scroll box,
       which would stop position: sticky from working; "hidden" stays as the fallback. */
    html, body {
        overflow-x: hidden !important;
        overflow-x: clip !important;
        max-width: 100%;
    }

    /* Room at the top for the corner buttons (Back, badges, Rules...), which scroll with the page here */
    /* env(safe-area-inset-*) = the notch / status bar / home bar / rounded corners in the app
       (viewport-fit=cover lets the page draw under them; these keep the content clear of them) */
    body {
        padding-top: calc(76px + env(safe-area-inset-top, 0px)) !important;
        padding-left: calc(16px + env(safe-area-inset-left, 0px)) !important;
        padding-right: calc(16px + env(safe-area-inset-right, 0px)) !important;
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; /* room for the music button */
    }

    /* ---------- Headings ---------- */
    h1 {
        font-size: clamp(30px, 9vw, 40px) !important;
        letter-spacing: 0.5px !important;
        line-height: 1.15 !important;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 8px !important;
    }

    .hub-header h1 {
        font-size: clamp(38px, 13vw, 54px) !important;
        letter-spacing: 1px !important;
    }

    h2 {
        font-size: clamp(20px, 6vw, 26px) !important;
    }

    /* ---------- Corner buttons: pinned to the screen on desktop, part of the page top here ---------- */
    .back-link, .difficulty-badge, .timer-badge, .daily-quiz-badge {
        position: absolute !important;
        top: calc(16px + env(safe-area-inset-top, 0px)) !important;
        left: calc(16px + env(safe-area-inset-left, 0px)) !important;
        right: auto !important;
    }

    .daily-quiz-badge {
        left: auto !important;
        right: calc(16px + env(safe-area-inset-right, 0px)) !important;
    }

    .rules-btn, .top-actions, .top-right-controls {
        position: absolute !important;
        top: calc(16px + env(safe-area-inset-top, 0px)) !important;
        right: calc(16px + env(safe-area-inset-right, 0px)) !important;
        left: auto !important;
    }

    .back-link, .difficulty-badge, .rules-btn, .daily-quiz-badge, .timer-badge,
    .top-actions > *, .top-right-actions > *, .top-right-controls > *, .badge-stack > * {
        font-size: 13px !important;
        padding: 7px 14px !important;
        min-height: 40px;                    /* big enough to hit with a thumb */
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Match screens: the badge stack (difficulty / AI / format) and the Pause+Rules group are the
       first things in the page, right before the heading - so here they simply flow above it as
       centered rows instead of being pinned over it */
    body:has(> .badge-stack) {
        padding-top: calc(14px + env(safe-area-inset-top, 0px)) !important;
    }

    .badge-stack, .top-right-actions {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px !important;
        max-width: 100%;
        margin: 0 auto 8px !important;
    }

    .top-actions, .top-right-controls {
        gap: 6px !important;
    }

    /* A Rules button inside one of those groups stays in its group */
    .top-actions .rules-btn, .top-right-actions .rules-btn, .top-right-controls .rules-btn {
        position: static !important;
    }

    /* Globe: Rules / Hint / Give up sit in a column pinned beside the guess box on desktop;
       a row under the guess box here */
    .right-buttons {
        position: static !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px !important;
        width: 100%;
        margin-top: 10px;
    }

    #guessSection {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Friend lobby: on desktop this block is pulled up between the two columns; stacked here */
    .difficulty-block {
        margin-top: 0 !important;
    }

    /* ---------- Card grids (difficulty, mode, format and game cards) ---------- */
    .modes-grid, .options-grid, .games-grid {
        grid-template-columns: 1fr !important;
        display: grid !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .mode-card, .match-type-card, .game-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 22px 18px !important;
    }

    /* ---------- Two-column layouts become one column ---------- */
    .top-area, .match-columns {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
    }

    .create-col, .join-col, .column {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: none !important;
    }

    /* ---------- Guess forms ---------- */
    .guess-form, .controls-row {
        flex-wrap: wrap !important;
        justify-content: center;
        width: 100% !important;
        max-width: 100% !important;
        gap: 10px !important;
    }

    .guess-form input[type="text"], .controls-row input[type="text"], input[type="text"] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        box-sizing: border-box;
    }

    /* ---------- Globe ---------- */
    #guessSection, #guessesContainer {
        width: 100% !important;
    }

    #globeContainer {
        width: 100% !important;
        height: min(92vw, 440px) !important;
    }

    /* ---------- End-of-match boxes (every Match / Blitz mode, vs computer and vs friend) ----------
       Smaller headings, padding and buttons so the whole result fits a phone screen, and the
       round-by-round recap scrolls with the box instead of in a second scroll area of its own. */
    .overlay-panel {
        width: calc(100% - 24px) !important;
        max-height: 90vh !important;
        padding: 22px 16px !important;
        border-radius: 18px !important;
        box-sizing: border-box;
    }

    .overlay-panel h2 {
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }

    .overlay-panel .overlay-sub, .overlay-panel .overlay-country-name {
        font-size: 15px !important;
    }

    .overlay-actions {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }

    .overlay-btn {
        padding: 10px 18px !important;
        font-size: 15px !important;
    }

    .match-recap {
        max-height: none !important;
        overflow: visible !important;
        margin: 12px 0 !important;
        gap: 8px !important;
    }

    /* Each recap row was one wide line (round, flag, name, You, AI) that ran off the right edge,
       squeezing the flag to nothing. Here: round, flag and name on the first line, the two
       results side by side on the second. The Blitz column header gets the same layout, so its
       "You / AI (or Opponent)" labels sit right above the two results. */
    .recap-row, .recap-header {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px 10px !important;
        padding: 10px 12px !important;
        font-size: 14px !important;
        text-align: left !important;
    }

    .recap-round-num, .recap-order {
        flex: 0 0 auto !important;
        min-width: 0 !important;
    }

    .recap-flag {
        flex: 0 0 48px !important;
        width: 48px !important;
    }

    .recap-flag img, img.recap-flag {
        width: 48px !important;
        height: 36px !important;
        object-fit: cover !important;   /* the 4:3 flag band of the square flag image */
        border-radius: 4px !important;
    }

    .recap-prompt, .recap-country-info, .recap-row > .recap-country {
        flex: 1 1 55% !important;
        min-width: 0 !important;
        overflow-wrap: anywhere;
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .recap-side, .recap-result {
        flex: 1 1 calc(50% - 10px) !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    .recap-header .recap-round-num, .recap-header .recap-country-info, .recap-header .recap-country {
        display: none !important;
    }

    /* ---------- Classic end screens: the answer's flag ----------
       Flag images are squares with the flag in a 4:3 band; a 4:3 frame shows just the flag. */
    #end-screen-flag {
        width: min(220px, 70vw) !important;
        height: auto !important;
        aspect-ratio: 4 / 3;
        object-fit: cover !important;
    }

    .end-screen-modal {
        width: calc(100% - 24px) !important;
        max-height: 90vh !important;
        padding: 22px 16px !important;
        box-sizing: border-box;
    }

    .end-screen-modal h2 {
        font-size: 24px !important;
    }

    /* ---------- (1) Rules drawer: no shadow while it's closed ----------
       Closed, the drawer sits just off the right edge (translateX(100%)) but its box-shadow still
       spilled back onto the screen as a grey strip down the right side. */
    .rules-panel:not(.open) {
        box-shadow: none !important;
    }

    /* ---------- (2) Music button: at the end of the page, not floating over the game ----------
       Pinned to the corner it covered guess rows, answers and card bottoms while scrolling. */
    #bg-music-toggle {
        position: static !important;
        display: block !important;
        margin: 28px auto 0 !important;
    }

    /* ---------- (3) "Waiting for opponent" box fits the screen ---------- */
    .waiting-panel {
        width: 100% !important;
        max-width: 100% !important;
        padding: 26px 16px !important;
        box-sizing: border-box;
    }
    .room-code-display {
        font-size: clamp(30px, 11vw, 44px) !important;
        letter-spacing: 6px !important;
        padding: 8px 14px !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* ---------- (5) End box always scrolls, so HOME / PLAY AGAIN can always be reached ---------- */
    .overlay-backdrop {
        padding: 12px 0;
        box-sizing: border-box;
    }
    .overlay-panel {
        max-height: calc(100dvh - 24px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* ---------- (10) Form controls use the site's font, not the system one ----------
       (inputs and buttons don't inherit the page font by default; any page rule that sets its
       own font still wins - this only replaces the browser default) */
    input, button, select, textarea {
        font-family: inherit;
    }

    /* ---------- (7) Globe card: the globe fills the whole card ----------
       The "neighbor" notification bar took a fixed 70px strip at the top of every globe card,
       almost always empty. Here it floats over the top of the globe instead of taking room. */
    #notificationArea {
        position: absolute !important;
        top: 6px;
        left: 0;
        right: 0;
        height: auto !important;
        background: transparent !important;
        pointer-events: none;
    }

    /* ---------- (4) Opponent: a compact line instead of a big card ----------
       (every vs computer / vs friend screen; on Globe and Capital Locations it also moves up to
       right under the scoreboard, above the guess box - it used to sit below the globe) */
    .opponent-panel {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px 12px !important;
        padding: 8px 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        border-radius: 14px !important;
        min-height: 0 !important;
    }
    .opponent-panel > * {
        margin: 0 !important;
        font-size: 15px !important;
    }
    .opponent-panel .opponent-percent, .opponent-panel .opponent-score {
        font-size: 22px !important;
        line-height: 1 !important;
    }
    .opponent-panel .opponent-percent-label, .opponent-panel .opponent-score-label {
        font-size: 12px !important;
    }
    .opponent-panel .progress-track {
        flex: 1 1 100% !important;
        height: 6px !important;
    }
    .opponent-panel .opponent-badge {
        padding: 4px 10px !important;
    }
    .opponent-column > .column-title {
        font-size: 15px !important;
        margin: 0 0 4px !important;
    }

    /* Globe and Capital Locations: opponent line first, the guess list (Globe) last */
    .match-columns:has(#globeContainer) > .opponent-column {
        display: contents !important;
    }
    .match-columns:has(#globeContainer) > .opponent-column > .column-title { order: -2; align-self: center; text-align: center; }
    .match-columns:has(#globeContainer) > .opponent-column > .opponent-panel { order: -1; margin-bottom: 4px !important; }
    .match-columns:has(#globeContainer) > .opponent-column > .guesses { order: 5; }

    /* ---------- (9) Globe matches: guess box and globe on one screen ---------- */
    body:has(#globeContainer):has(> .badge-stack) h1 {
        font-size: 26px !important;
        margin-bottom: 2px !important;
    }
    .match-columns:has(#globeContainer) > .your-column > .column-title {
        display: none !important;               /* "🙋 You" - the opponent line above says who's who */
    }
    .match-columns:has(#globeContainer) .guess-form {
        flex-wrap: nowrap !important;
    }
    .match-columns:has(#globeContainer) .guess-form input[type="text"] {
        flex: 1 1 auto !important;
        width: auto !important;
    }
    .match-columns:has(#globeContainer) .guess-form button {
        flex: none !important;
        padding: 0 18px !important;
    }
    .match-columns:has(#globeContainer) .controls-row {
        gap: 8px !important;
    }
    .match-columns:has(#globeContainer) .proximity-banner {
        padding: 8px 12px !important;
        font-size: 15px !important;
        margin: 6px 0 !important;
    }

    /* ---------- (11) Capital Locations: Confirm stays in reach while looking at the globe ----------
       The globe runs below the bottom of the screen; picking a country low on it meant scrolling
       back up to Confirm. The pick/Confirm bar now sticks to the top of the screen while the
       globe scrolls under it. */
    body:has(#promptCapital) #guessSection {
        position: sticky !important;
        top: 0;
        z-index: 20;
        padding: 8px 0 !important;
        background: rgba(255, 255, 255, 0.94);
        border-radius: 0 0 14px 14px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    /* ---------- Flags (solo, vs computer, Blitz, vs friend): the guess box stays on screen ----------
       While scrolling down through your guesses, the box sticks to the top of the screen, so you can
       keep guessing without scrolling back up. ("Flags pages" = a guess box, no globe, not the Daily Quiz.) */
    body:has(.guess-form):not(:has(#globeContainer)):not(:has(#stage1)) .guess-form {
        position: sticky !important;
        top: env(safe-area-inset-top, 0px);
        z-index: 20;
        padding: 10px 0 !important;
        margin-bottom: 10px !important;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.97) 80%, rgba(255, 255, 255, 0));
    }

    /* ---------- Daily Quiz ---------- */
    /* (13) timer, Pause and Home stay at the top of the screen through every stage */
    body:has(#stage1) .timer-badge, body:has(#stage1) .top-right-controls {
        position: fixed !important;
        z-index: 60;
    }
    body:has(#stage1) .timer-badge, body:has(#stage1) .top-right-controls > * {
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    }
    /* (15) the "why this country" card: less padding, smaller text */
    .stage4-card {
        padding: 22px 16px !important;
    }
    .stage4-card h2 {
        font-size: 22px !important;
        margin-bottom: 12px !important;
    }
    .stage4-card p {
        font-size: 17px !important;
        line-height: 1.6 !important;
    }
    /* (14) a way home at the very end of the quiz */
    .stage4-home {
        display: block !important;
        width: fit-content;
        margin: 22px auto 0;
        font-size: 17px !important;
        padding: 12px 24px !important;
    }
    /* (16) the guess box text fits ("Enter country name" was cut at 28px) */
    body:has(#stage1) input[type="text"] {
        font-size: 18px !important;
        padding: 14px !important;
    }

    /* ---------- Anything image-like never wider than the screen ---------- */
    img, video {
        max-width: 100%;
    }

    /* ---------- Screens built to fit exactly one desktop screen (Capital matches) ----------
       They lock the page to 100vh with no scrolling; on a phone the content doesn't fit, so the
       pieces got squeezed on top of each other (the title vanished behind the question card).
       Here the page simply grows and scrolls. */
    html, body {
        height: auto !important;
    }
    body {
        min-height: 100vh;
        min-height: 100dvh;
        overflow-y: visible !important;
    }
    body > * {
        flex-shrink: 0 !important;
    }

    /* ---------- Rules drawer: a real close button, and full width ---------- */
    .rules-panel {
        width: 100% !important;
        max-width: 100% !important;
        padding-top: calc(20px + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .close-rules {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    /* ---------- Flags: each guess = your flag + the result, side by side and compact ----------
       (desktop shows two 300x225 pictures; squeezed to phone width with the same fixed height they
       became tall, heavily cropped strips about 300px high per guess) */
    .guesses {
        gap: 12px !important;
        margin-top: 18px !important;
    }
    /* (only rows built as "your flag | result" - Globe's small one-line guess rows keep their look) */
    .guess-row:has(> .flag) {
        gap: 10px !important;
        padding: 10px !important;
        border-radius: 14px !important;
        align-items: flex-start !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    .guess-row > .flag {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
    .guess-row > .flag img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 8px !important;
    }
    .guess-row > .flag .guess-label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* ---------- vs Computer / vs Friend (Flags): opponent's progress right under your guess box ----------
       Your guesses used to come first, pushing the opponent's card below every flag you'd tried.
       "display: contents" lets your column's pieces line up with the opponent card, so the
       guess list can be moved after it. */
    .match-columns:has(> .your-column > .guesses) > .your-column {
        display: contents !important;
    }
    .match-columns > .your-column > .guesses {
        order: 3;
    }
    /* your column centred its pieces; keep that now that they sit directly in the outer layout */
    .match-columns:has(> .your-column > .guesses) > .your-column > * {
        align-self: center;
    }
    .match-columns:has(> .your-column > .guesses) > .your-column > :is(.guess-form, .guesses) {
        align-self: stretch;
    }
    .match-columns:has(> .your-column > .guesses) > .opponent-column {
        order: 2;
    }

    /* ---------- Globe (solo): guess box + Guess button share the row instead of a fixed 240px box ---------- */
    .guess-controls {
        width: 100%;
        gap: 8px !important;
    }
    .guess-controls > input {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }
    .guess-controls > button {
        flex: none;
    }

    /* ---------- Footer "Credits" link: a finger-sized target ---------- */
    .site-footer a {
        display: inline-block;
        padding: 12px 16px;
    }

    /* ---------- Music button: smaller and quieter so it doesn't cover the game ---------- */
    #bg-music-toggle {
        width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
        font-size: 17px !important;
        opacity: 0.75;
    }

    /* ---------- Overlays / end screens ---------- */
    .overlay-content, .end-screen-content, .modal-content {
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        box-sizing: border-box;
    }
}
