.region-locked{overflow:hidden}
#region-dialog{width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:32px;border:1px solid #ffffff20;border-radius:20px;background:#0b0c0e;color:#f5f5f5;box-shadow:0 24px 100px #0008}
#region-dialog::backdrop{background:#0009;backdrop-filter:blur(10px)}
#region-dialog h2{margin:0 0 28px;color:#f5f5f5;font-size:21px;line-height:1.4;text-align:center;letter-spacing:-.4px}
#region-dialog h2>span{display:block;font-size:13px;font-weight:400;color:#888;margin-top:5px;letter-spacing:0}
.region-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.region-options a{display:grid;justify-items:center;align-content:center;gap:12px;padding:24px 12px;border:1px solid #ffffff18;border-radius:14px;background:#ffffff03;color:#fff;text-decoration:none;transition:background .15s,border-color .15s}
.region-options a:hover,.region-options a:focus-visible{background:#ffffff09;border-color:#d64545;outline:none}
.region-options svg{width:42px;height:32px;fill:none;stroke:#ddd;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.region-options strong{font-size:15px;font-weight:500}.region-options a>span:last-child{font-size:12px;color:#888}
@media(max-width:380px){#region-dialog{padding:24px 18px}.region-options{gap:10px}}

.region-symbols{display:flex;flex-direction:column;align-items:center;gap:12px;margin:5px 0 6px}
.region-flags{display:flex;align-items:center;justify-content:center;gap:5px;height:22px}
.region-options .region-flag{display:flex;flex:none;width:30px;height:20px;overflow:hidden;border-radius:3px;font-size:0;line-height:0}
.region-options .region-flag .flag-visual{display:block;width:100%;height:100%;stroke:none;border-radius:0}
.region-options .region-symbols>svg{width:34px;height:28px}
@media(max-width:380px){.region-options .region-flag{width:26px;height:18px}}

/* Both language choices remain visible on a phone held horizontally. */
@media (max-height: 500px) {
    #region-dialog { padding: 20px; }
    #region-dialog h2 { margin-bottom: 16px; }
    .region-options a { padding: 12px; gap: 8px; }
    .region-symbols { margin: 0; gap: 8px; }
}
