.pong-launch { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 35; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 17px; border: 1px solid #d8d0bd; border-radius: 30px; background: #fffdf8; color: #1c3a52; box-shadow: 0 5px 22px #1e2a3820; font: 500 14px "Helvetica Neue", Helvetica, Arial, sans-serif; cursor: pointer; }
.pong-launch svg { width: 20px; height: 20px; }
.pong-dialog { width: min(720px, calc(100% - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 25px; border: 1px solid #d8d0bd; border-radius: 22px; background: #f2efe6; color: #1e2a38; box-shadow: 0 30px 90px #0005; overflow-y: auto; overscroll-behavior: contain; }
.pong-dialog::backdrop { background: #142330b8; backdrop-filter: blur(4px); }
.pong-dialog button, .pong-dialog select { font: inherit; }
.pong-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.pong-header h2 { font-size: clamp(24px, 5vw, 34px); letter-spacing: -.04em; margin: 0 0 4px; }
.pong-header p { font-size: 14px; color: #4a5568; margin: 0; }
.pong-close { flex-shrink: 0; width: 44px; height: 44px; background: #fffdf8; border: 1px solid #d8d0bd; border-radius: 50%; font-size: 25px !important; cursor: pointer; color: #1e2a38; }
.pong-scores { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 16px 6px 12px; text-align: center; font-size: 14px; }
.pong-scores b { display: block; font-size: 32px; line-height: 1.1; font-weight: 500; font-variant-numeric: tabular-nums; }
.pong-scores small { color: #4a5568; font-size: 12px; }
.pong-arena { position: relative; }
.pong-canvas { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 48dvh; background: #1e2a38; border-radius: 15px; touch-action: none; user-select: none; -webkit-user-select: none; }
.pong-overlay { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 14px; padding: 20px; text-align: center; background: #1e2a38bd; border-radius: 15px; color: #f2efe6; }
.pong-overlay[hidden] { display: none; }
.pong-overlay p { margin: 0; font-size: clamp(18px, 4vw, 25px); line-height: 1.3; max-width: 340px; }
.pong-dialog .pong-primary, .pong-dialog .pong-secondary { min-height: 44px; padding: 10px 20px; border: 1px solid #d8d0bd; border-radius: 10px; cursor: pointer; }
.pong-dialog .pong-primary { background: #f2efe6; color: #1c3a52; font-weight: 600; }
.pong-dialog .pong-secondary { background: #fffdf8; color: #1c3a52; }
.pong-dialog button:disabled { opacity: .45; cursor: default; }
.pong-message { min-height: 2.8em; margin: 12px 0 8px; color: #1c3a52; font-size: 14px; line-height: 1.4; }
.pong-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.pong-controls label { font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pong-controls select { min-height: 44px; max-width: 100%; border: 1px solid #d8d0bd; border-radius: 9px; padding: 7px 10px; background: #fffdf8; color: #1c3a52; }
.pong-help { margin: 12px 0 0; color: #4a5568; font-size: 13px; line-height: 1.5; }
@media (max-width: 560px) {
  .pong-dialog { padding: 17px; border-radius: 17px; }
  .pong-canvas { aspect-ratio: 4 / 5; max-height: 43dvh; }
  .pong-scores { padding-top: 12px; }
  .pong-launch { padding: 9px 13px; }
}
@media (max-height: 500px) { .pong-canvas { max-height: 50dvh; } }
