table {
    font-size: 14px;
    border-collapse: collapse;
    border-spacing: 0;
}
td {
    padding: 0;
}
.h {
    visibility: hidden;
    max-height: 1.3em;
}
.cl7 {
    background-color: #39f;
    color: #fff;
    border-color: #39f !important;
}
.cl1 {
    background-color: #00c;
    color: #fff;
    border-color: #00c !important;
}
.cl2 {
    background-color: #c00;
    color: #fff;
    border-color: #c00 !important;
}
.table-result td {
    padding: 7px 10px;
    font-size: 14px;
    text-align: center;
    line-height: 1.3em;
}
.gametable td{
	border: 1px solid #ccc;
}
.table-result-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
	margin-top: 10px;
}
.table-column {
    width: 100%;
    box-sizing: border-box;
}
.table-column table.gametable {
    width: 100% !important;
    table-layout: fixed !important;
}
.space-between-tables {
    height: 15px;
}
@media (max-width: 1024px) {
    .table-result-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 576px) {
    .table-result-container {
        grid-template-columns: repeat(2, 1fr); 
        gap: 6px;
    }
    
    /* NẾU BẠN VẪN MUỐN TRÊN MOBILE NHỎ HIỂN THỊ ĐÚNG 3 CỘT, HÃY BỎ DẤU COMMENT ĐOẠN DƯỚI: */
    /*
    .table-result-container {
        grid-template-columns: repeat(3, 1fr);
    }
    */
    
    /* Thu nhỏ cỡ chữ trong bảng trên mobile một chút để chống tràn hàng */
    .table-column table.gametable td {
        font-size: 13px; 
        padding: 4px 2px;
    }
}
.cl3 {
    background-color: #909;
    color: #fff;
    border-color: #909 !important;
}
.cl4 {
    background-color: #f90;
    color: #fff;
    border-color: #f90 !important;
}
.cl5 {
    background-color: #090;
    color: #fff;
    border-color: #090 !important;
}
.table-result .block-holder:not(:first-child) {
    padding-left: 10px;
}
.table-result .block-holder {
    vertical-align: top;
    padding-top: 10px;
}
.country-path {
    fill: #cccccc;
    stroke: #ffffff;
    stroke-width: 0.5;
    transition: fill 0.3s ease;
}
.country-path.active {
    fill: #27ae60 !important;
}
.score-num.bump {
    display: inline-block;
    animation: bumpAnim 0.4s ease-out;
    color: #27ae60;
}
@keyframes bumpAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}
.controls { margin-bottom: 20px; display: flex; gap: 20px; align-items: center; }
.answer-display {
    transition: background-color 0.3s;
    border: 1px solid #eee;
    padding: 4px;
}
path.country.active {
    fill: #2ecc71 !important;
}
path.missed {
    fill: #ff4d4d !important;
}
.table-result.game-over td {
    pointer-events: none;
}
@keyframes scoreBump {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); color: #2ecc71; } 
    100% { transform: scale(1); }
}
.bump {
    display: inline-block;
    animation: scoreBump 0.3s ease-out;
}
.fixed-width { width: 150px; display: flex; align-items: center; gap: 10px; }
.bar-holder { flex-grow: 1; background: #eee; height: 10px; border-radius: 5px; overflow: hidden; }
.bar { height: 100%; transition: width 1s ease-in-out; }
.stat-correct .bar { background: #2ecc71; }
.stat-correct .pct { color: #27ae60; font-weight: bold; }
.stat-incorrect .bar { background: #ff4d4d; }
.stat-incorrect .pct { color: #c0392b; }
.progress-bar-total { width: 100%; background: #ddd; height: 20px; border-radius: 10px; }
.progress-fill { background: linear-gradient(90deg, #f1c40f, #e67e22); height: 100%; border-radius: 10px; }
.map-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 1000 / 600;
    overflow: hidden;
    border: 2px solid #ddd;
	background: #e3f2fd; border-radius: 8px; padding: 10px; 
}
svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: viewBox 0.5s ease-in-out; 
    height: auto;
}
@keyframes correct-flash {
    0% { opacity: 1; }
    50% { opacity: 0.4; fill: #f1c40f; }
    100% { opacity: 1; fill: #2ecc71; }
}
.correct-answer-flash {
    animation: correct-flash 0.6s ease-in-out;
}
.btn-start-quiz{
	color: #fff;
    background-color: #28a745;
}
.dltv-controls {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-family: Arial, sans-serif;
    max-width: 810px;
    margin: 5px auto;
    padding: 5px;
    background: #fff;
}
.left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.jet-timer {
    font-size: 48px;
    color: #449d44;
    font-weight: 500;
    line-height: 1;
}
.btn-giveup {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
}
.middle-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
	margin-top: 8px;
}
.circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #666;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-weight: bold;
}
.circle-btn:hover {
    background-color: #eee;
}
.right-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.right-section label {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}
#guest-input {
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    font-size: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}
#guest-input:focus {
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}
.score-display {
    font-size: 20px;
    color: #333;
    margin-top: 5px;
}
.game-footer-wrapper {
    display: flex;
    max-width: 810px;
    margin: 20px auto;
    gap: 15px;
    align-items: stretch;
}
.footer-column {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.win-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px dashed #449d44;
    border-radius: 6px;
    background: #f9fff9;
}
.win-content h3 { margin: 0; color: #449d44; font-size: 1.2rem; }
.win-content p { margin: 5px 0; font-weight: bold; }
.rank-badge {
    background: #f1c40f;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
.footer-column:only-child {
    flex: 0 0 100%;
}