.me-connection-notice {
    position: fixed;
    z-index: 11000;
    left: 50%;
    bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    max-width: min(92vw, 460px);
    padding: 10px 16px;
    border: 1px solid #b5984b;
    border-radius: 12px;
    background: rgba(20, 24, 12, .95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .55);
    color: #f0dfac;
    text-align: center;
    font: 600 14px/1.35 Arial, sans-serif;
    pointer-events: none;
}
.me-connection-notice[hidden] { display: none !important; }
@media (max-width: 640px) {
    .me-connection-notice { bottom: calc(98px + env(safe-area-inset-bottom, 0px)); font-size: 13px; }
}

.me-connection-notice--blocking {
    width:100%;height:100%;max-height:none;margin:0;box-sizing:border-box;
    inset:0;left:0;bottom:0;transform:none;max-width:none;border:0;border-radius:0;
    background:#070504;z-index:2147483647;pointer-events:auto;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.me-connection-notice--blocking button {background:#e4c36a;color:#070504;border:0;border-radius:8px;padding:12px 24px;font:inherit;}

.me-connection-notice--blocking::backdrop { background:#070504; }

.me-connection-notice--blocking {padding:24px 16px;overflow-y:auto;background:radial-gradient(ellipse at 50% 20%,#263c2a,#091610 75%);color:#f3e8cd}
.me-connection-notice--blocking::backdrop {background:#091610}
.me-connection-panel {box-sizing:border-box;width:min(100%,460px);padding:32px 24px;border:1px solid #77643b;border-radius:22px;background:#0d1c16;box-shadow:0 20px 70px #0005}
.me-connection-icon {display:block;font:80px/1 Georgia,serif;color:#d8bd71;margin-bottom:12px}
.me-connection-panel h2 {margin:0 0 18px;color:#ffe1a0;font:500 clamp(24px,6vw,32px)/1.2 Georgia,serif}
.me-connection-panel p {margin:0 0 24px;font:16px/1.6 system-ui,sans-serif;color:#d8d6c7}
.me-connection-panel button {display:block;width:100%;min-height:50px;background:linear-gradient(#3f561e,#263d16);border:1px solid #c2a44e;border-radius:12px;box-shadow:inset 0 0 0 3px #152913;color:#fff0c8;font:700 16px/1.4 system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
.me-connection-panel button:disabled {opacity:.7;cursor:wait}
.me-connection-panel button:focus-visible {outline:0;background:#4b642a;box-shadow:inset 0 0 0 3px #9a853e}
.me-connection-panel .me-connection-hint {font-size:12px;color:#b8bda9;margin:20px 0 0}
@media(max-height:500px){.me-connection-notice--blocking{padding:12px}.me-connection-panel{padding:16px 24px}.me-connection-icon{font-size:42px;margin-bottom:8px}.me-connection-panel h2{font-size:24px;margin-bottom:12px}.me-connection-panel p{margin-bottom:14px}}

.me-connection-pulse{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2147483000;display:flex;flex-direction:column;align-items:center;gap:6px;max-width:240px;padding:12px 18px;border:1px solid #b8995366;border-radius:16px;background:#0c1b16d9;color:#efcf83;font:12px/1.4 system-ui,sans-serif;text-align:center;pointer-events:none;animation:me-network-pulse 1.8s ease-in-out infinite}.me-connection-pulse[hidden]{display:none}.me-connection-notice--blocking .me-connection-icon{animation:me-network-pulse 1.8s ease-in-out infinite}@keyframes me-network-pulse{0%,100%{opacity:.5}50%{opacity:1}}@media(prefers-reduced-motion:reduce){.me-connection-pulse,.me-connection-notice--blocking .me-connection-icon{animation:none}}
