 <style>
        /* ---------- STYLE GŁÓWNE ---------- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', 'Arial', sans-serif;
            background-color: #f0f2f5;
            color: #2c3e50;
            line-height: 1.4;
            padding: 15px;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        /* ---------- NAGŁÓWEK ---------- */
        .header {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            padding: 20px 30px;
            text-align: center;
            border-bottom: 3px solid #f1c40f;
        }

        .header h1 {
            font-size: 2.2em;
            margin-bottom: 5px;
        }

        .header h1 small {
            font-size: 0.45em;
        }

        .tournament-info {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            margin-top: 10px;
            padding-top: 10px;
            font-size: 0.95em;
        }

        .tournament-info span {
            background: rgba(255,255,255,0.15);
            padding: 5px 12px;
            border-radius: 20px;
        }

        /* ---------- SPIS TREŚCI ---------- */
        .toc {
            background-color: #f8f9fa;
            padding: 15px 30px;
            border-bottom: 1px solid #e9ecef;
        }

        .toc h2 {
            color: #1e3c72;
            margin-bottom: 10px;
            font-size: 1.3em;
        }

        .toc-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 8px;
        }

        .toc-item {
            background: white;
            padding: 5px 12px;
            border-radius: 4px;
            border-left: 3px solid #f1c40f;
            font-size: 0.9em;
        }

        .toc-item a {
            text-decoration: none;
            color: #1e3c72;
        }

        .toc-item a:hover {
            text-decoration: underline;
        }

        /* ---------- ROZDANIA ---------- */
        .deal {
            padding: 20px 30px;
            border-bottom: 1px solid #e9ecef;
        }

        .deal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .deal-title {
            font-size: 1.5em;
            color: #1e3c72;
            font-weight: 600;
        }

        .deal-number {
            background: #f1c40f;
            color: #1e3c72;
            padding: 3px 12px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 1em;
        }

        /* ---------- KOMPAKTOWY DIAGRAM BRYDŻOWY ---------- */
        .compact-board {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 15px;
            background: #f8f9fa;
            padding: 12px;
            border-radius: 8px;
            border: 1px solid #dee2e6;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .compact-north, .compact-south {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .compact-middle {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 5px 0;
        }

        .compact-hand {
            background: white;
            border-radius: 6px;
            padding: 8px 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
            line-height: 1.3;
            min-width: 120px;
        }

        .compact-hand.north { border-left: 4px solid #e74c3c; }
        .compact-hand.south { border-left: 4px solid #3498db; }
        .compact-hand.east { border-left: 4px solid #2ecc71; }
        .compact-hand.west { border-left: 4px solid #f39c12; }

        .compact-position {
            font-weight: bold;
            text-align: center;
            margin-bottom: 3px;
            font-size: 0.9em;
            color: #2c3e50;
            border-bottom: 1px dotted #ccc;
            padding-bottom: 2px;
        }

        .compact-cards {
            white-space: nowrap;
        }

        /* ---------- KOLORY IKON - KLASY GLOBALNE ---------- */
        .heart, .compact-heart {
            color: #e74c3c !important;
            font-weight: bold;
            display: inline-block;
        }
        .diamond, .compact-diamond {
            color: #e74c3c !important;
            font-weight: bold;
            display: inline-block;
        }
        .spade, .compact-spade {
            color: #2c3e50 !important;
            font-weight: bold;
            display: inline-block;
        }
        .club, .compact-club {
            color: #2c3e50 !important;
            font-weight: bold;
            display: inline-block;
        }

        /* ---------- BOX Z INFORMACJAMI ---------- */
        .deal-info-compact {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin: 15px 0;
        }

        .info-box-small {
            background: #f8f9fa;
            padding: 10px 15px;
            border-radius: 6px;
            border-left: 3px solid #f1c40f;
            font-size: 0.9em;
        }

        .info-box-small h4 {
            color: #1e3c72;
            margin-bottom: 8px;
            font-size: 1em;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .bidding-compact {
            font-family: 'Courier New', monospace;
            background: white;
            padding: 6px;
            border-radius: 4px;
            border: 1px solid #dee2e6;
            font-size: 0.9em;
        }

        .bidding-table-compact {
            width: 100%;
            border-collapse: collapse;
        }

        .bidding-table-compact td, .bidding-table-compact th {
            padding: 3px 6px;
            text-align: center;
            border: 1px solid #dee2e6;
        }

        .bidding-table-compact th {
            background: #e9ecef;
            font-weight: bold;
        }

        .commentary-compact {
            background: #fff9e6;
            padding: 10px 15px;
            border-radius: 6px;
            border-left: 3px solid #f1c40f;
            margin-top: 10px;
            font-size: 0.9em;
        }

        .commentary-compact p {
            margin: 5px 0;
        }

        /* ---------- STOPKA ---------- */
        .footer {
            background: #1e3c72;
            color: white;
            padding: 20px 30px;
            text-align: center;
            font-size: 0.9em;
            border-top: 3px solid #f1c40f;
        }

        .footer p {
            margin: 3px 0;
        }

        .sponsors {
            margin-top: 8px;
            font-weight: 500;
            color: #f1c40f;
        }

        /* ---------- RESPONSYWNOŚĆ ---------- */
        @media (max-width: 650px) {
            .compact-middle {
                flex-direction: column;
                gap: 8px;
            }
            
            .compact-hand {
                width: 100%;
                max-width: 250px;
            }
            
            .deal-info-compact {
                grid-template-columns: 1fr;
            }
            
            .header h1 {
                font-size: 1.8em;
            }
        }
    </style>
    <style>
        /* ---------- STYLE GŁÓWNE ---------- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', 'Arial', sans-serif;
            background-color: #f0f2f5;
            color: #2c3e50;
            line-height: 1.4;
            padding: 15px;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        /* ---------- NAGŁÓWEK ---------- */
        .header {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            padding: 20px 30px;
            text-align: center;
            border-bottom: 3px solid #f1c40f;
        }

        .header h1 {
            font-size: 2.2em;
            margin-bottom: 5px;
        }

        .header h1 small {
            font-size: 0.45em;
        }

        .tournament-info {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            margin-top: 10px;
            padding-top: 10px;
            font-size: 0.95em;
        }

        .tournament-info span {
            background: rgba(255,255,255,0.15);
            padding: 5px 12px;
            border-radius: 20px;
        }

        /* ---------- SPIS TREŚCI ---------- */
        .toc {
            background-color: #f8f9fa;
            padding: 15px 30px;
            border-bottom: 1px solid #e9ecef;
        }

        .toc h2 {
            color: #1e3c72;
            margin-bottom: 10px;
            font-size: 1.3em;
        }

        .toc-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 8px;
        }

        .toc-item {
            background: white;
            padding: 5px 12px;
            border-radius: 4px;
            border-left: 3px solid #f1c40f;
            font-size: 0.9em;
        }

        .toc-item a {
            text-decoration: none;
            color: #1e3c72;
        }

        .toc-item a:hover {
            text-decoration: underline;
        }

        /* ---------- ROZDANIA ---------- */
        .deal {
            padding: 20px 30px;
            border-bottom: 1px solid #e9ecef;
        }

        .deal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .deal-title {
            font-size: 1.5em;
            color: #1e3c72;
            font-weight: 600;
        }

        .deal-number {
            background: #f1c40f;
            color: #1e3c72;
            padding: 3px 12px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 1em;
        }

        /* ---------- KOMPAKTOWY DIAGRAM BRYDŻOWY ---------- */
        .compact-board {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 15px;
            background: #f8f9fa;
            padding: 12px;
            border-radius: 8px;
            border: 1px solid #dee2e6;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .compact-north, .compact-south {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .compact-middle {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 5px 0;
        }

        .compact-hand {
            background: white;
            border-radius: 6px;
            padding: 8px 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
            line-height: 1.3;
            min-width: 120px;
        }

        .compact-hand.north { border-left: 4px solid #e74c3c; }
        .compact-hand.south { border-left: 4px solid #3498db; }
        .compact-hand.east { border-left: 4px solid #2ecc71; }
        .compact-hand.west { border-left: 4px solid #f39c12; }

        .compact-position {
            font-weight: bold;
            text-align: center;
            margin-bottom: 3px;
            font-size: 0.9em;
            color: #2c3e50;
            border-bottom: 1px dotted #ccc;
            padding-bottom: 2px;
        }

        .compact-cards {
            white-space: nowrap;
        }

        /* ---------- KOLORY IKON - KLASY GLOBALNE ---------- */
        .heart, .compact-heart {
            color: #e74c3c !important;
            font-weight: bold;
            display: inline-block;
        }
        .diamond, .compact-diamond {
            color: #e74c3c !important;
            font-weight: bold;
            display: inline-block;
        }
        .spade, .compact-spade {
            color: #2c3e50 !important;
            font-weight: bold;
            display: inline-block;
        }
        .club, .compact-club {
            color: #2c3e50 !important;
            font-weight: bold;
            display: inline-block;
        }

        /* ---------- BOX Z INFORMACJAMI ---------- */
        .deal-info-compact {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin: 15px 0;
        }

        .info-box-small {
            background: #f8f9fa;
            padding: 10px 15px;
            border-radius: 6px;
            border-left: 3px solid #f1c40f;
            font-size: 0.9em;
        }

        .info-box-small h4 {
            color: #1e3c72;
            margin-bottom: 8px;
            font-size: 1em;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .bidding-compact {
            font-family: 'Courier New', monospace;
            background: white;
            padding: 6px;
            border-radius: 4px;
            border: 1px solid #dee2e6;
            font-size: 0.9em;
        }

        .bidding-table-compact {
            width: 100%;
            border-collapse: collapse;
        }

        .bidding-table-compact td, .bidding-table-compact th {
            padding: 3px 6px;
            text-align: center;
            border: 1px solid #dee2e6;
        }

        .bidding-table-compact th {
            background: #e9ecef;
            font-weight: bold;
        }

        .commentary-compact {
            background: #fff9e6;
            padding: 10px 15px;
            border-radius: 6px;
            border-left: 3px solid #f1c40f;
            margin-top: 10px;
            font-size: 0.9em;
        }

        .commentary-compact p {
            margin: 5px 0;
        }

        /* ---------- STOPKA ---------- */
        .footer {
            background: #1e3c72;
            color: white;
            padding: 20px 30px;
            text-align: center;
            font-size: 0.9em;
            border-top: 3px solid #f1c40f;
        }

        .footer p {
            margin: 3px 0;
        }

        .sponsors {
            margin-top: 8px;
            font-weight: 500;
            color: #f1c40f;
        }

        /* ---------- RESPONSYWNOŚĆ ---------- */
        @media (max-width: 650px) {
            .compact-middle {
                flex-direction: column;
                gap: 8px;
            }
            
            .compact-hand {
                width: 100%;
                max-width: 250px;
            }
            
            .deal-info-compact {
                grid-template-columns: 1fr;
            }
            
            .header h1 {
                font-size: 1.8em;
            }
        }
    </style> 
