/* LotoLive CSS — Mobile-first, inherits partyslides.org colors */
/* Цвета: primary #FF6B35, text #1a1a2e, bg #f8f9fa */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #FF6B35;
    --primary-dark: #e55a25;
    --secondary: #4A76A8;
    --bg: #f8f9fa;
    --bg-dark: #1a1a2e;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6c757d;
    --border: #e9ecef;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --header-h: 64px;
    --bottom-nav-h: 64px;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
}

/* ─── HEADER ─── */
.loto-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    height: var(--header-h);
    display: flex;
    align-items: center;
}
.loto-header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.loto-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 1.2rem;
}
.loto-logo span { color: var(--primary); }

.loto-nav { display: none; gap: 8px; margin-left: auto; }
.loto-nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.loto-nav-link:hover { background: var(--bg); }

.loto-header-right { display: none; align-items: center; gap: 12px; margin-left: auto; }

.loto-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}
.loto-countdown-label { opacity: 0.7; }
.loto-countdown-time { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }

.loto-user-menu { display: flex; align-items: center; gap: 8px; }
.loto-user-name { font-weight: 600; font-size: 0.85rem; }
.loto-balance-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
}
.loto-logout-btn {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 6px 8px;
}

.loto-vk-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary);
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
}

.loto-mob-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    color: var(--text);
}

/* ─── MOBILE NAV ─── */
.loto-mob-nav {
    position: fixed;
    bottom: var(--bottom-nav-h);
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow);
}
.loto-mob-nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}
.loto-mob-nav-link:hover { background: var(--bg); }

/* ─── BOTTOM NAV ─── */
.loto-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    display: flex;
    height: var(--bottom-nav-h);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.loto-bottom-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.2s;
}
.loto-bottom-btn:hover, .loto-bottom-btn.active { color: var(--primary); }

/* ─── MAIN ─── */
.loto-main { padding-bottom: calc(var(--bottom-nav-h) + 8px); }

/* ─── HERO ─── */
.loto-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 60px 16px 80px;
    text-align: center;
    overflow: hidden;
}
.loto-hero-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.loto-hero-content { position: relative; max-width: 600px; margin: 0 auto; }
.loto-hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}
.loto-hero-accent { color: var(--primary); }
.loto-hero-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.7;
}
.loto-hero-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.loto-hero-game-info {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ─── BUTTONS ─── */
.loto-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 16px rgba(255,107,53,0.35);
}
.loto-btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.loto-btn-primary:active { transform: translateY(0); }

.loto-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: rgba(255,255,255,0.9);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.loto-btn-secondary:hover { border-color: #fff; color: #fff; }

.loto-btn-sm { padding: 8px 16px; font-size: 0.85rem; box-shadow: none; }
.loto-btn-danger { background: var(--danger); }
.loto-btn-success { background: var(--success); }

/* ─── SECTIONS ─── */
.loto-section { padding: 48px 16px; }
.loto-section-dark { background: var(--bg-dark); color: #fff; }
.loto-container { max-width: 1200px; margin: 0 auto; }
.loto-section-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}
.loto-section-title-sm {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── STEPS ─── */
.loto-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.loto-step {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}
.loto-step-num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 16px;
}
.loto-step h3 { margin-bottom: 8px; font-weight: 700; }
.loto-step p { color: var(--text-muted); font-size: 0.9rem; }

/* ─── GAMES GRID ─── */
.loto-games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.loto-game-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.loto-game-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.loto-game-card-title { font-weight: 700; font-size: 1rem; }
.loto-game-card-date { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.loto-game-card-info { display: flex; gap: 16px; }
.loto-game-stat { display: flex; flex-direction: column; }
.loto-game-stat-val { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.loto-game-stat-label { font-size: 0.7rem; color: var(--text-muted); }

/* ─── VIDEO ─── */
.loto-video-section { padding: 0 0 48px; }
.loto-video-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.loto-video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: none;
}
.loto-video-fullwidth iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: none;
    background: #000;
}

/* ─── ROUND CARDS ─── */
.loto-rounds {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}
.loto-round-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.loto-round-badge {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 12px;
}
.loto-round-card h3 { font-weight: 700; margin-bottom: 8px; }
.loto-round-card p { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.loto-round-desc { font-size: 0.85rem; opacity: 0.7; }

/* ─── GAME PAGE ─── */
.loto-game-page .loto-container { padding-top: 16px; }
.loto-game-info-bar {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.loto-game-title-area { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.loto-game-main-title { font-weight: 800; font-size: 1.2rem; }
.loto-game-status-badge {
    background: var(--text-muted);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.loto-game-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.loto-game-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── BOARD ─── */
.loto-board-section { margin-bottom: 16px; }
.loto-board {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
}
.loto-board-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.loto-board-cell:hover { background: var(--primary); color: #fff; }
.loto-board-cell-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.loto-board-cell-1-30 { background: #fff0e6; }
.loto-board-cell-31-60 { background: #e6f0ff; }
.loto-board-cell-61-90 { background: #e6ffe6; }

/* ─── TICKETS ─── */
.loto-tickets-section { margin-top: 16px; }
.loto-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.loto-ticket-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}
.loto-ticket-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.loto-ticket-round {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--secondary);
    background: rgba(74,118,168,0.1);
    padding: 2px 8px;
    border-radius: 20px;
}
.loto-ticket-num { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.loto-ticket-winner-badge {
    background: var(--warning);
    color: #000;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}
.loto-ticket-winner-badge-grand { background: var(--success); color: #fff; }

.loto-ticket-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}
.loto-ticket-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.loto-ticket-cell-marked {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    text-decoration: line-through;
    opacity: 0.7;
}

.loto-ticket-progress {
    position: relative;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.loto-ticket-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.4s ease;
}
.loto-ticket-progress-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.loto-no-tickets {
    text-align: center;
    padding: 32px;
    background: var(--card-bg);
    border-radius: var(--radius);
}

.loto-auth-prompt {
    text-align: center;
    padding: 32px;
    background: var(--card-bg);
    border-radius: var(--radius);
}

/* ─── LIVE DOT ─── */
.loto-live-dot {
    width: 10px;
    height: 10px;
    background: var(--danger);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

/* ─── CABINET ─── */
.loto-cabinet { padding: 24px 16px; }
.loto-page-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; }
.loto-balance-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.loto-balance-label { font-size: 0.85rem; opacity: 0.85; }
.loto-balance-amount { font-size: 2rem; font-weight: 800; display: block; }
.loto-cabinet-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.loto-profile-form { display: flex; flex-direction: column; gap: 12px; }
.loto-form-row { display: flex; flex-direction: column; gap: 4px; }
.loto-form-row label { font-weight: 600; font-size: 0.85rem; }
.loto-form-row input {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.loto-form-row input:focus { outline: none; border-color: var(--primary); }
.loto-form-row small { font-size: 0.75rem; color: var(--text-muted); }

/* ─── ADMIN ─── */
.loto-admin { padding: 24px 16px; max-width: 1200px; margin: 0 auto; }
.loto-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.loto-admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.loto-admin-tab {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    border: none;
    background: var(--bg);
    color: var(--text-muted);
    transition: all 0.2s;
}
.loto-admin-tab.active { background: var(--primary); color: #fff; }

.loto-admin-panel {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.loto-admin-board {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin-bottom: 16px;
}
.loto-admin-board-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.loto-admin-board-cell:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.loto-admin-board-cell.drawn { background: var(--primary); color: #fff; border-color: var(--primary); }
.loto-admin-board-cell.r1 { background: #fff0e6; }
.loto-admin-board-cell.r2 { background: #e6f0ff; }
.loto-admin-board-cell.r3 { background: #e6ffe6; }
.loto-admin-board-cell.drawn.r1 { background: var(--primary); color: #fff; }
.loto-admin-board-cell.drawn.r2 { background: var(--primary); color: #fff; }
.loto-admin-board-cell.drawn.r3 { background: var(--primary); color: #fff; }

.loto-admin-round-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.loto-admin-round-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.loto-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.loto-admin-table th, .loto-admin-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.loto-admin-table th { font-weight: 600; color: var(--text-muted); }
.loto-admin-table tr:hover { background: var(--bg); }

.loto-admin-create-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 500px;
}
.loto-admin-create-form input,
.loto-admin-create-form select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
}

/* ─── HISTORY ─── */
.loto-history { padding: 24px 16px; }
.loto-history-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}
.loto-history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.loto-history-winner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.loto-history-prize {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

/* ─── FOOTER ─── */
.loto-footer {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 32px;
}
.loto-footer a { color: var(--text-muted); text-decoration: none; }
.loto-footer a:hover { color: var(--primary); }

/* ─── LOADING ─── */
.loto-loading {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
}
.loto-loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}
@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ─── DESKTOP ─── */
@media (min-width: 768px) {
    .loto-nav { display: flex; }
    .loto-header-right { display: flex; }
    .loto-mob-menu-btn { display: none; }
    .loto-mob-nav { display: none !important; }
    .loto-bottom-nav { display: none; }
    .loto-main { padding-bottom: 0; }

    .loto-steps { grid-template-columns: repeat(4, 1fr); }
    .loto-games-grid { grid-template-columns: repeat(3, 1fr); }
    .loto-rounds { grid-template-columns: repeat(3, 1fr); }

    .loto-game-page { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
    .loto-game-info-bar { grid-column: 1 / -1; }

    .loto-board { grid-template-columns: repeat(15, 1fr); }

    .loto-admin-board { grid-template-columns: repeat(15, 1fr); }
    .loto-admin-create-form { grid-template-columns: repeat(3, 1fr); }

    .loto-form-row { flex-direction: row; align-items: center; }
    .loto-form-row label { width: 180px; flex-shrink: 0; }
    .loto-form-row input { flex: 1; }
}

@media (min-width: 1024px) {
    .loto-hero { padding: 80px 16px 100px; }
    .loto-hero-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* ─── UTILITIES ─── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.fade-in { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hidden { display: none !important; }

/* ── Game Selector ── */
.loto-games-selector { display: flex; flex-direction: column; gap: 8px; }
.loto-game-selector-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: var(--bg); border-radius: 12px;
    border: 2px solid transparent; text-decoration: none; color: inherit;
    transition: all 0.2s;
}
.loto-game-selector-item:hover { border-color: var(--primary); transform: translateX(4px); }
.loto-game-selector-item.active { border-color: var(--primary); background: var(--card); }
.loto-gsi-info { display: flex; flex-direction: column; gap: 2px; }
.loto-gsi-info strong { font-size: 15px; }
.loto-gsi-status {
    font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 20px;
    display: inline-block; width: fit-content;
}
.loto-gsi-status.round1, .loto-gsi-status.round2, .loto-gsi-status.round3, .loto-gsi-status.final {
    background: var(--primary); color: white;
}
.loto-gsi-status.planned { background: #6b7280; color: white; }
.loto-gsi-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; color: #888; }
.loto-live-badge { color: #ef4444; font-weight: 700; font-size: 12px; }

@media (min-width: 768px) {
    .loto-games-selector { flex-direction: row; flex-wrap: wrap; }
    .loto-game-selector-item { flex: 1; min-width: 200px; }
}
/* ── Game Selector ── */
.loto-games-selector { display: flex; flex-direction: column; gap: 8px; }
.loto-game-selector-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: var(--bg); border-radius: 12px;
    border: 2px solid transparent; text-decoration: none; color: inherit;
    transition: all 0.2s;
}
.loto-game-selector-item:hover { border-color: var(--primary); transform: translateX(4px); }
.loto-game-selector-item.active { border-color: var(--primary); background: var(--card); }
.loto-gsi-info { display: flex; flex-direction: column; gap: 2px; }
.loto-gsi-info strong { font-size: 15px; }
.loto-gsi-status {
    font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 20px;
    display: inline-block; width: fit-content;
}
.loto-gsi-status.round1, .loto-gsi-status.round2, .loto-gsi-status.round3, .loto-gsi-status.final {
    background: var(--primary); color: white;
}
.loto-gsi-status.planned { background: #6b7280; color: white; }
.loto-gsi-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; color: #888; }
.loto-live-badge { color: #ef4444; font-weight: 700; font-size: 12px; }

@media (min-width: 768px) {
    .loto-games-selector { flex-direction: row; flex-wrap: wrap; }
    .loto-game-selector-item { flex: 1; min-width: 200px; }
}