.ab-shell { box-sizing: border-box; width: min(92vw, 720px); max-width: 720px; min-width: 0; margin: 0 auto; padding: 8px 0 20px; color: #eaf6ff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
.ab-shell *, .ab-modal * { box-sizing: border-box; }
.ab-hidden { display: none !important; }
.ab-topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ab-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.ab-stat { min-width: 70px; padding: 6px 8px; border: 1px solid rgba(127,232,255,0.22); border-radius: 10px; background: rgba(6,24,42,0.85); text-align: center; }
.ab-stat span { display: block; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: #9fc6d8; text-transform: uppercase; }
.ab-stat strong { display: block; margin-top: 2px; font-size: 15px; font-variant-numeric: tabular-nums; }
.ab-actions { display: flex; gap: 6px; }
.ab-button { min-width: 46px; min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(127,232,255,0.3); background: linear-gradient(180deg,#123650,#081c30); color: #eaf6ff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.ab-button:active { transform: translateY(1px); }
.ab-button:focus-visible, .ab-touch-btn:focus-visible { outline: 3px solid rgba(127,232,255,0.8); outline-offset: 2px; }
.ab-primary { background: linear-gradient(180deg,#ffd166,#e8a94a); color: #10222e; border-color: #fff0b8; }
.ab-stage { position: relative; width: 100%; min-height: 420px; aspect-ratio: 16/10; overflow: hidden; border-radius: 16px; border: 1px solid rgba(127,232,255,0.3); background: linear-gradient(#0a2a44,#020810); touch-action: none; }
.ab-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ab-zone { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(4,20,36,0.78); font-size: 12px; font-weight: 800; pointer-events: none; }
.ab-message { position: absolute; top: 52px; left: 50%; transform: translateX(-50%); padding: 5px 10px; border-radius: 8px; background: rgba(4,20,36,0.7); font-size: 12px; pointer-events: none; max-width: 92%; text-align: center; }
.ab-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(2,10,20,0.55); z-index: 6; padding: 14px; }
.ab-card { width: min(420px, 100%); padding: 20px; border-radius: 16px; background: rgba(6,26,44,0.95); border: 1px solid rgba(127,232,255,0.3); text-align: center; }
.ab-card h2 { margin: 0 0 8px; font-size: 26px; }
.ab-card p { margin: 0 0 14px; color: #b8d6e8; font-size: 14px; line-height: 1.4; }
.ab-btnrow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ab-best { margin-top: 12px; font-size: 13px; color: #9fc6d8; }
.ab-touch { position: absolute; left: 0; right: 0; bottom: 0; display: none; justify-content: space-between; align-items: flex-end; padding: 12px; z-index: 5; pointer-events: none; }
.ab-touch-left, .ab-touch-right { display: flex; gap: 10px; pointer-events: auto; }
.ab-touch-btn { width: 56px; height: 56px; min-width: 56px; min-height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); background: rgba(8,30,50,0.75); color: #fff; font-size: 22px; font-weight: 900; }
@media (pointer: coarse) { .ab-touch { display: flex; } .ab-overlay { align-items: flex-end; } }
.ab-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); padding: 16px; }
.ab-modal-card { position: relative; width: min(480px, 100%); max-height: 90vh; overflow: auto; padding: 22px; border-radius: 16px; background: #0a2236; border: 1px solid rgba(127,232,255,0.35); }
.ab-modal-card h2 { margin: 0 36px 10px 0; }
.ab-modal-card p { color: #b8d6e8; font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.ab-modal-close { position: absolute; top: 10px; right: 10px; width: 46px; height: 46px; min-width: 46px; min-height: 46px; padding: 0; }
@media (max-width: 480px) { .ab-stat { min-width: 58px; padding: 5px 6px; } .ab-stat strong { font-size: 13px; } .ab-stage { min-height: 340px; } }
