/* =====================================================
   FULLY RESPONSIVE / AUTO-SCALING SCOREBOARD
   ===================================================== */

html, body {
    margin: 0;
    padding: 0;
    background: #000;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Main board fills the entire screen */
.tw-board {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    background: #000;
    color: #fff;
    font-family: Arial Black, Arial, sans-serif;
}

.sponsor-banner {
    width: 100%;
    height: 90px;                 /* standard banner height */
    background: #000;             /* neutral backing */
    display: flex;
    align-items: center;
    justify-content: center;
     text-align:center;
    overflow: hidden;
}

.sponsor-banner img {
   
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;          /* 🔑 never crop logos */
}

/* ------ HEADER (scales with screen) ------ */
.tw-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: #1a1a1a;
    padding: 0.4vw;
    font-size: 2vw;       /* <-- AUTO SCALE */
    font-weight: bold;
    border-bottom: 0.3vw solid #333;
    text-align:center;
    align-items: center;   /* <-- THIS vertically aligns ALL boxes */
    justify-content: center;
}

/* ------ NAMES ------ */
.tw-names {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 3.5vw;     /* <-- AUTO SCALE */
    font-weight: bold;
    border-bottom: 0.3vw solid #333;
}

.tw-red-name {
    color: #b70000;
    padding: 0.6vw;
    text-align: center;
    border-right: 0.3vw solid #333;
}
.tw-green-name {
    color: #0c8c0c;
    padding: 0.6vw;
    text-align: center;
}

/* ------ SCORE & CLOCK ------ */
.tw-score-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    flex-grow: 1;
    overflow: hidden; /* ensures scaling doesn’t push height */
}

.tw-red-score,
.tw-green-score {
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.tw-red-score { background: #e00000; }
.tw-green-score { background: #16a516; }

/* SCORE CELLS remain normal layout */
.tw-red-score,
.tw-green-score {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;        /* Prevent stretched text from leaking */
}

.tw-clock-font {
    font-size: 14.3vw;       /* based on height for tall numbers */
    transform: scaleY(1.85); /* perfect TrackWrestling height */
    
}
.tw-point-font {
    font-size: 14.3vw;      /* <-- HUGE, AUTO SCALE */
    transform: scaleY(1.85);
}

.tw-clock {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    transform-origin: center;
}


/* ------ SPONSOR BAR ------ */
.tw-sponsor {
    background: #111;
    padding: 0.4vw;
    border-top: 0.3vw solid #333;
    text-align: center;
}

.tw-sponsor img {
    height: 3vw;          /* <-- Auto scale with screen width */
    object-fit: contain;
}



/* ------ FULLSCREEN ------*/
.fullscreen-indicator {
    position: fixed;
    bottom: 10px;
    right: 10px;

    width: 40px;
    height: 40px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,0.7);
    border: 2px solid #fff;
    border-radius: 10px;

    cursor: pointer;
    z-index: 999999999;
}

.fullscreen-indicator svg {
    width: 32px;
    height: 32px;
    fill: white;
    pointer-events: none;
}

