/* Mobile Gaming 2.0 - cards, knowledge and fleet. */
.sga{--card-touch-ready:1}
.sga :is(.domino-hand,.maumau-hand) [data-bt-source="true"]{touch-action:none;cursor:grab;user-select:none;-webkit-touch-callout:none}
.sga :is(.domino-hand,.maumau-hand) .bt-origin{opacity:.3}
.sga .bt-card-ghost{padding:0;background:transparent;overflow:visible}
.sga .bt-card-ghost>:first-child{width:100%!important;height:100%!important;max-width:none!important;margin:0!important;pointer-events:none;aspect-ratio:auto!important}
.sga .domino-drop-ends{display:flex;gap:6px;min-width:0;margin:3px 0}
.sga .domino-drop-ends[hidden],.sga .domino-drop-ends>[hidden]{display:none!important}
.sga .domino-drop-end{flex:1;min-width:0;min-height:32px;display:grid;place-items:center;padding:4px 6px;border:1px dashed #9fd9cb;border-radius:7px;background:#082e2a99;color:#e3fcf4;font-size:12px;font-weight:700;text-align:center}
.sga .maumau-chain>.maumau-card{outline-offset:3px}
.sga :is(.memory-card,[data-quiz-answer],button.battle-cell){touch-action:manipulation;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
.sga :is(.memory-card,[data-quiz-answer],button.battle-cell):active:not(:disabled){filter:brightness(1.2)}
.sga .memory-card>span{display:inline-block;backface-visibility:hidden}
.sga .quiz-options button{min-height:48px;line-height:1.3}
.sga .fleet-tabs{display:none}
@media (max-width:760px) and (orientation:portrait){
 .sga .sga-battle-grids[data-fleet-view]{grid-template-columns:1fr!important;max-width:100%;gap:5px}
 .sga .fleet-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px}
 .sga .fleet-tabs button{min-height:40px;padding:5px;font-size:13px;border:1px solid #6487ad;border-radius:7px;background:#18344f;color:#f0f8ff;touch-action:manipulation}
 .sga .fleet-tabs button[aria-pressed=true]{background:#49418d;border-color:#c4b5fd;font-weight:700}
 .sga .sga-battle-grids[data-fleet-view=target] [data-fleet-sea=own],.sga .sga-battle-grids[data-fleet-view=own] [data-fleet-sea=target]{display:none!important}
 .sga .sga-battle-sea p{min-height:0}
}
@media (max-height:520px) and (orientation:landscape){.sga .domino-drop-end{min-height:25px;padding:2px 4px;font-size:11px}.sga .domino-drop-ends{margin:0}.sga .quiz-options button{min-height:44px}}

.sga :is(#domino-next,#maumau-next){touch-action:manipulation}
