/* AGR Spin-Offs - Mobile Responsive Styles */

/* Base Mobile Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly buttons */
button, a, input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
}

/* ===== DIGITAL COUNTDOWN TIMER (bottom-left, visible, slightly transparent) ===== */
#demoBanner {
    position: fixed;
    bottom: 14px;
    left: 14px;
    z-index: 9999;
    pointer-events: none;
}
#demoBanner .demo-banner-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10,10,10,0.78);
    border: 1px solid rgba(212,175,55,0.5);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
    color: #ffd700;
    font-family: 'Courier New', Consolas, monospace;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255,215,0,0.4), 0 1px 2px rgba(0,0,0,0.8);
    box-shadow: 0 2px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}
#demoBanner #countdownTimer,
#demoBanner #countdownClock {
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    min-width: 1.2em;
    text-align: center;
}
#demoBanner .demo-emoji { font-size: 14px; opacity: 0.95; }
@media (max-width: 480px) {
    #demoBanner { bottom: 10px; left: 10px; }
    #demoBanner .demo-banner-inner { padding: 5px 10px; font-size: 12px; gap: 6px; letter-spacing: 1px; }
}

/* ===== GAME LAYOUT - Shared 2-col + sidebar ===== */
.game-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) {
    .game-grid { grid-template-columns: 2fr 1fr; align-items: stretch; gap: 2rem; }
}
.game-board-container {
    background: rgba(26,26,26,0.82);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 1rem;
    min-height: 0;
}
@media (min-width: 768px) {
    .game-board-container { padding: 1.5rem; }
}
.betting-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
@media (min-width: 1024px) {
    .betting-panel { position: sticky; top: 5rem; }
}

/* Tablet and Below (1024px) */
@media (max-width: 1024px) {
    .flex-row-desktop { flex-direction: column !important; }
    .container-desktop { width: 100% !important; padding: 1rem !important; }
    .chat-sidebar { position: relative !important; width: 100% !important; max-height: 400px !important; }
    .game-grid { gap: 1rem; }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 1.125rem !important; }
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr !important; }
    .p-8 { padding: 1rem !important; }
    .p-6 { padding: 0.75rem !important; }
    .px-6 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .py-8 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    button, .btn { padding: 0.6rem 1rem !important; font-size: 0.9rem !important; }
    input, select, textarea { font-size: 16px !important; padding: 0.6rem !important; }
    table { display: block; overflow-x: auto; white-space: nowrap; }
    .game-card { margin-bottom: 0.75rem; }
    /* Plinko canvas */
    #plinkoCanvas { max-height: 45vh !important; }
    /* Dice stage */
    .dice-stage { min-height: 160px; gap: 12px; }
    .dice-wrapper, .dice-cube, .dice-face { width: 60px !important; height: 60px !important; }
    .dice-face { font-size: 0.7rem; padding: 6px; }
    /* Roulette wheel */
    #wheelCanvas { max-width: 260px !important; height: auto !important; }
    /* Poker cards */
    .poker-card { width: 60px !important; height: 87px !important; font-size: 0.8rem; }
    .card-back { width: 60px !important; height: 87px !important; }
    /* Mines grid */
    .mine-tile-front, .mine-tile-back { font-size: 1.2rem; }
    /* Keno numbers */
    .keno-number { width: 40px !important; height: 40px !important; font-size: 0.85rem; }
    /* Baccarat cards */
    .bacc-card { width: 60px !important; height: 84px !important; }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    h1 { font-size: 1.25rem !important; }
    h2 { font-size: 1.1rem !important; }
    h3 { font-size: 1rem !important; }
    .p-6 { padding: 0.5rem !important; }
    .px-4 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
    button, .btn { padding: 0.5rem 0.75rem !important; font-size: 0.85rem !important; min-height: 44px; }
    .game-board-container { padding: 0.75rem !important; }
    .svg-card { width: 50px !important; height: 70px !important; }
    .keno-number { width: 36px !important; height: 36px !important; font-size: 0.75rem !important; }
    .dice-wrapper, .dice-cube, .dice-face { width: 52px !important; height: 52px !important; }
    .poker-card, .card-back { width: 52px !important; height: 72px !important; }
}

/* Landscape mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .py-8 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
    .modal { max-height: 90vh; overflow-y: auto; }
}

/* Touch targets */
@media (pointer: coarse) {
    button, a, input[type="button"], input[type="submit"] { min-height: 48px; min-width: 48px; }
}
