* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #ffffff;
    color: #1a1a1a;
    font-family: 'Gruppo', sans-serif;
    padding: 30px 15px;
    font-size: 1.1rem;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
}

.game-header {
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.zpet-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.zpet-link:hover { color: #000; }

.game-header h1 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    margin-top: 5px;
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 1.1rem;
}

.stats-bar strong {
    color: #ffe600;
    text-shadow: 0 0 2px rgba(0,0,0,0.8);
    background: #1a1a1a;
    padding: 2px 8px;
    border-radius: 4px;
}

/* NAVIGACE */
.game-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.nav-btn {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn.active {
    background: #1a1a1a;
    color: #ffe600;
    border-color: #1a1a1a;
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* OBSAH ZÁLOŽEK */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

.phase-box {
    border: 1px solid #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    background: #fafafa;
}

.phase-box h2 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.info-text {
    color: #555;
    margin-bottom: 20px;
}

/* AUKČNÍ DASHBOARD */
.aukce-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    color: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.aukce-Status p {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.aukce-Status strong { color: #ffe600; }

.aukce-ovladani {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: #ffe600;
    border: none;
    padding: 10px 15px;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}
.action-btn:hover { background: #e6ce00; }
.action-btn.pass {
    background: #333;
    color: #fff;
}
.action-btn.pass:hover { background: #444; }

.aukce-log, .draft-log {
    background: #eeeeee;
    padding: 15px;
    max-height: 150px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.95rem;
    border-radius: 4px;
}

.system-msg { color: #666; }
.ai-msg { color: #0066cc; }
.hrac-msg { color: #cc9900; font-weight: bold; }

/* TRH A DRAFT */
.draft-poradi-bar {
    background: #e1f5fe;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-weight: bold;
    text-align: center;
}

.trh-stav {
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.bank-dices {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}
.bank-item strong { color: #cc0000; }

/* OBCHODNÍ MŘÍŽKA KOSTEK */
.obchod-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.kostka-karta {
    flex: 1;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    background: #fff;
    transition: transform 0.3s, border-color 0.3s;
}
.kostka-karta:hover {
    transform: translateY(-3px);
    border-color: #ffe600;
}

.kostka-ico {
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1;
}
.kostka-ico.d6 { color: #4caf50; }
.kostka-ico.d3 { color: red; }
.kostka-ico.d4 { color: rgb(160, 0, 147); }
.kostka-ico.d6 { color: rgb(0, 0, 190); }
.kostka-ico.d8 { color: rgb(226, 151, 0); }
.kostka-ico.d10 { color: rgb(0, 170, 255); }
.kostka-ico.d12 { color: rgb(255, 87, 34); }
.kostka-ico.d20 { color: rgb(0, 173, 0); }

.kostka-karta h3 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
}
.sance { color: #666; font-size: 0.95rem; margin: 5px 0 10px 0;}
.cena { font-weight: bold; font-size: 1.1rem; margin-bottom: 15px;}

.buy-btn {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}
.buy-btn:hover:not(:disabled) { background: #ffe600; color: #000; }
.buy-btn:disabled { background: #ccc; cursor: not-allowed; }

/* SOUPISKY TÝMŮ V LIZE */
.ligovy-prehled-tymu {
    border-top: 1px dashed #ccc;
    padding-top: 25px;
}
.ligovy-prehled-tymu h3 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.tymy-grid {
    display: flex;
    gap: 15px;
}

.tym-karta-status {
    flex: 1;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 6px;
}

.tym-karta-status.hrac-card {
    border: 2px solid #1a1a1a;
    background: #fffdf0;
}

.tym-karta-status h4 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.dice-bag {
    display: flex;
    gap: 5px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.badge-dice {
    background: #333;
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}
.badge-dice.d3 { background: red; }
.badge-dice.d4 { background: rgb(160, 0, 147); }
.badge-dice.d6 { background: rgb(0, 0, 190); }
.badge-dice.d8 { background: rgb(226, 151, 0); }
.badge-dice.d10 { background: rgb(0, 170, 255); }
.badge-dice.d12 { background: rgb(255, 87, 34); }
.badge-dice.d20 { background: rgb(0, 173, 0); }

/* STYLY PRO ZÁPASOVOU TABULI */
.zapas-board {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #ffe600;
}

.zapas-tym {
    flex: 2;
    text-align: center;
}
.hrac-zapas-box h3 { color: #ffe600; }
.soupeř-zapas-box h3 { color: #ff3d00; }

.dice-bag-mini {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin: 10px 0;
}

.zapas-skore-cislo {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 4.5rem;
    font-weight: bold;
    line-height: 1;
    margin-top: 5px;
}

.vs-kolo {
    flex: 1;
    text-align: center;
}
.vs-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #888;
}
.kolo-badge {
    background: #333;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-top: 10px;
    display: inline-block;
    border: 1px solid #444;
}

.match-controls {
    margin-bottom: 25px;
}

.match-start-btn {
    width: 100%;
    padding: 15px;
    background: #ffe600;
    border: none;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}
.match-start-btn:hover { background: #e6ce00; }
.match-start-btn:disabled { background: #ccc; cursor: not-allowed; }

.match-start-btn.next-kolo {
    background: #1a1a1a;
    color: #ffe600;
    border: 1px solid #ffe600;
}
.match-start-btn.next-kolo:hover { background: #222; }

/* UKOTVENÍ A AUTOMATICKÉ ROLOVÁNÍ TEXTOVÉHO REPORTU */
.report-log {
    height: 300px;         /* Pevná výška boxu – uprav si podle vkusu */
    overflow-y: auto;      /* Pokud text přesáhne 300px, zapne se svislý posuvník */
    background: #1a1a1a;   /* Temné pozadí arény */
    color: #ffffff;        /* Bílé základní písmo */
    padding: 15px;
    border: 1px solid #ffe600; /* Žluté olemování z Plutomu */
    border-radius: 4px;
    font-family: 'Courier New', monospace; /* Pro pocit opravdového terminálu */
    line-height: 1.6;
}

.report-log::-webkit-scrollbar {
    width: 6px;
}
.report-log::-webkit-scrollbar-track {
    background: #1a1a1a;
}
.report-log::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
.report-log::-webkit-scrollbar-thumb:hover {
    background: #ffe600;
}

/* STYLOVÁNÍ LIGOVÉ TABULKY */
.liga-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fafafa;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
}

.liga-table th {
    background: #1a1a1a;
    color: #ffe600;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    padding: 12px;
    text-align: left;
}

.liga-table th:nth-child(1),
.liga-table th:nth-child(3),
.liga-table th:nth-child(4),
.liga-table th:nth-child(5),
.liga-table th:nth-child(6),
.liga-table th:nth-child(7) {
    text-align: center;
}

.liga-table tr:hover {
    background: #f1f1f1;
}

/* FM TUTORIÁL - Tmavá clona a reflektor */
#fm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 9998;
    transition: opacity 0.3s ease;
}

/* Třída pro prvek vytažený do světla */
.fm-spotlight {
    position: relative !important;
    z-index: 9999 !important;
    box-shadow: 0 0 0 4px #ffe600, 0 0 30px rgba(255, 230, 0, 0.6) !important;
    border-radius: 6px;
    background: #fff;
    pointer-events: auto !important;
}

/* Styl informační bubliny asistenta */
#fm-bubble {
    position: absolute;
    z-index: 10000;
    background: #1a1a1a;
    color: #ffffff;
    border: 2px solid #ffe600;
    padding: 16px 20px;
    border-radius: 8px;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: 'Gruppo', sans-serif;
    transition: top 0.25s ease, left 0.25s ease;
}

#fm-bubble h4 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.4rem;
    color: #ffe600;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

#fm-bubble p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #e0e0e0;
    margin-bottom: 12px;
}

.fm-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fm-step-info {
    font-size: 0.8rem;
    color: #888;
    font-weight: bold;
}

.fm-btn {
    background: #ffe600;
    color: #000;
    border: none;
    padding: 6px 14px;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}
.fm-btn:hover { background: #e6ce00; }