.connection-screen {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh;
  max-height: none; margin: 0; padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  border: 0; color: #edf5f7; background: radial-gradient(ellipse at 50% 38%, #153d50 0, #0a1e2b 48%, #07131e 100%);
  overflow-y: auto; overscroll-behavior: contain;
}
.connection-screen[open] { display: grid; place-items: center; }
.connection-screen::backdrop { background: #07131e; }
.connection-card { width: min(100%, 480px); text-align: center; }
.connection-scene { position: relative; width: min(100%, 350px); margin: 0 auto 26px; aspect-ratio: 1.12; }
.connection-glow { position: absolute; inset: 12%; border-radius: 50%; background: #4bd7cf20; filter: blur(32px); animation: connection-glow 5s ease-in-out infinite; }
.connection-boat { position: relative; display: block; width: 85%; height: 90%; object-fit: contain; margin: auto; filter: drop-shadow(0 12px 24px #020b184d); animation: connection-sail 5s ease-in-out infinite; transform-origin: 50% 75%; }
.connection-waves { position: absolute; inset: auto 0 0; height: 26px; overflow: hidden; }
.connection-waves span { position: absolute; left: -25%; top: 2px; width: 150%; height: 38px; border-top: 2px solid #66e2d680; border-radius: 50%; animation: connection-wave 4s ease-in-out infinite alternate; }
.connection-waves span:nth-child(2) { top: 10px; opacity: .5; animation-delay: -1.5s; animation-duration: 5s; }
.connection-waves span:nth-child(3) { top: 19px; opacity: .25; animation-delay: -3s; animation-duration: 6s; }
.connection-card h1 { font-size: clamp(25px, 5vw, 34px); margin: 0 0 14px; font-weight: 600; letter-spacing: -.03em; }
.connection-card p { margin: 0 auto 26px; max-width: 380px; line-height: 1.65; color: #a8c2cc; }
.connection-retry { display: block; margin: auto; min-height: 48px; width: min(100%, 280px); padding: 12px 20px; border: 1px solid #71e7d9; border-radius: 14px; background: #62ded0; color: #09232c; font: inherit; font-weight: 600; cursor: pointer; }
.connection-retry:disabled { opacity: .65; cursor: wait; }
.connection-dismiss { margin-top: 16px; padding: 10px; border: 0; background: transparent; color: #a8c2cc; font: inherit; cursor: pointer; }
.connection-screen button:focus-visible { outline: 2px solid #e9faf6; outline-offset: 4px; }
@keyframes connection-sail { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes connection-wave { from { transform: translateX(-7%) scaleY(.8); } to { transform: translateX(7%) scaleY(1.2); } }
@keyframes connection-glow { 0%, 100% { opacity: .6; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.08); } }
@media (max-height: 600px) { .connection-scene { width: min(45vh, 200px); margin-bottom: 12px; } .connection-card p { margin-bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .connection-screen *, .connection-screen *::before, .connection-screen *::after { animation: none !important; } }
