/* ─── Fonts ─────────────────────────────────────────────────────────────────── */
@font-face {
    font-family: 'Galano';
    src: url('Galano-regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Galano';
    src: url('Galano-semibold.woff2') format('woff2');
    font-weight: 600 900;
    font-display: swap;
}

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Galano', Arial, sans-serif;
    font-weight: 700;
    background: #111;
}

/* ─── App Container ─────────────────────────────────────────────────────────── */
#app {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ─── Split Screen ──────────────────────────────────────────────────────────── */
#splitscreen {
    display: flex;
    width: 100%;
    height: 100%;
}

.side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0 55px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: filter 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.side:active {
    filter: brightness(0.88);
}

.side.disabled {
    pointer-events: none;
}

/* ─── Team Flag ─────────────────────────────────────────────────────────────── */
.team-flag {
    flex-shrink: 0;
     margin-bottom: 33px;
}

.team-flag img {
    display: block;
    width: clamp(48px, 8vw, 64px);
    aspect-ratio: 3 / 2;
    border: 2px solid white;
    object-fit: cover;
   
}

/* ─── Team Label ────────────────────────────────────────────────────────────── */
.team-label {
    font-size: clamp(14px, 2.2vw, 25px);
    color: rgba(255, 255, 255, 1);
    font-weight: 400;
    text-align: center;
    flex-shrink: 0;
    margin: 0 0 5px;
}

/* ─── Dish Name ─────────────────────────────────────────────────────────────── */
.dish-name {
    font-size: clamp(28px, 5.5vw, 36px);
    color: #fff;
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
    flex-shrink: 0;
    max-width: 560px;
    height: 120px;
}

/* ─── Counter ───────────────────────────────────────────────────────────────── */
.counter {
    font-size: 475px;
    color: #fff;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.counter.bump {
    transform: scale(1.18);
}

/* ─── Vote Button ───────────────────────────────────────────────────────────── */
.vote-btn {
    background: #fff;
    color: #005CA9;
    border-radius: 15px;
    font-size: 45px;
    font-weight: 900;
    width: 340px;
    height: 83px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
    pointer-events: none; /* clicks handled by parent .side */
}

.side:active .vote-btn {
    background: rgba(255, 255, 255, 0.38);
    transform: scale(0.97);
}

/* ─── Divider ───────────────────────────────────────────────────────────────── */
/* #splitscreen::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
    pointer-events: none;
} */

/* ─── Flag Overlay ──────────────────────────────────────────────────────────── */
#flag-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
}

#flag-overlay.active {
    pointer-events: all;
}

/* ── Floating flag tiles — animated via GSAP ── */
.flag-tile {
    position: absolute;
    pointer-events: none;
    border: 2px solid #fff;
}

/* ── Center flag — full-size overlay revealed by clip-path circle ── */
#flag-center {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}


/* ─── Loading / Error State ─────────────────────────────────────────────────── */
#status-overlay {
    position: fixed;
    inset: 0;
    background: #0d1b2a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(18px, 3vw, 36px);
    font-family: Arial, sans-serif;
    z-index: 200;
    transition: opacity 0.4s;
}

#status-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
