/* style.css */
* { box-sizing: border-box; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background: #f0f2f5; 
    margin: 0; 
    padding: 20px; 
    color: #333; 
    -webkit-text-size-adjust: 100%;
}
.container { width: 100%; max-width: 1100px; margin: 0 auto; }

.top-card { 
    background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.06); 
    padding: 20px; margin-bottom: 20px; text-align: center;
}
.btn-action { 
    display: block; width: 100%; max-width: 300px; margin: 0 auto; 
    padding: 15px 0; font-size: 18px; font-weight: bold; 
    color: #fff; background: #1677ff; border: none; border-radius: 8px; 
    cursor: pointer; box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
    transition: all 0.2s; -webkit-tap-highlight-color: transparent;
}
.btn-action:hover { background: #4096ff; transform: translateY(-1px); }
.btn-action:active { transform: translateY(1px); }
.btn-action:disabled { background: #999; cursor: not-allowed; box-shadow: none; transform: none; }

.status { font-size: 14px; margin-top: 15px; padding: 10px; border-radius: 6px; display: none; }
.status.show { display: block; }
.status.ok { background: #e8f5e9; color: #2e7d32; }
.status.err { background: #ffebee; color: #c62828; }
.status.info { background: #e3f2fd; color: #1565c0; }

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
    width: 100%;
}
.empty { grid-column: 1 / -1; text-align: center; padding: 40px; color: #999; font-size: 14px; background: #fff; border-radius: 8px;}

.m-card { 
    background: #fff; border-radius: 6px; overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    border: 1px solid #e0e0e0;
    display: flex; flex-direction: column;
}
.m-header { 
    background: #3a2a21; color: #fff; padding: 8px 12px; 
    display: flex; justify-content: space-between; align-items: center; 
    font-weight: bold; font-size: 14px;
}
.m-status-icon {
    background: #00a8ff; color: #fff; width: 18px; height: 18px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 12px; font-family: Arial;
}
.m-teams { background: #3a2a21; color: #a0a0a0; padding: 0 12px 10px; font-size: 13px; }
.m-body { padding: 12px; background: #fff; flex-grow: 1; }
.m-play-title { font-weight: bold; color: #000; font-size: 15px; margin-bottom: 4px; }
.m-play-odds { font-size: 13px; margin-bottom: 12px; color: #666; }
.m-play-odds .m-rtype { color: #d32f2f; font-weight: bold; }
.m-play-odds .m-ioratio { color: #d32f2f; font-weight: bold; }
.m-info-row { display: flex; justify-content: space-between; align-items: flex-end; }
.m-info-left, .m-info-right { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.m-info-right { text-align: right; }
.m-amount span { font-weight: bold; color: #000; }
.m-win span { font-weight: bold; color: #2e7d32; }
.m-order-no, .m-time { color: #888; font-size: 12px; }
.m-footer { 
    background: #3a2a21; color: #fff; padding: 8px 12px; 
    display: flex; justify-content: space-between; font-weight: bold; font-size: 14px;
}

@media screen and (max-width: 768px) {
    body { padding: 10px; }
    .top-card { padding: 15px 10px; border-radius: 8px; background: transparent; box-shadow: none; margin-bottom: 10px; }
    .btn-action { max-width: 100%; padding: 12px 0; font-size: 16px; }
    .card-container { grid-template-columns: 1fr; gap: 12px; }
}