@font-face {
    font-family: Barlow-Condensed;
    src: url(fonts/BarlowCondensed-Bold.woff2) format("woff2"),
            url(fonts/BarlowCondensed-Bold.woff) format("woff"),
            url(fonts/BarlowCondensed-Bold.ttf) format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #ffffff;
    --accent: #ff5252;
    --bg: #0a0a0a;
    --bg2: #1a1a2e;
    --secondary: #ffffff;
}

body {
    font-family: Barlow-Condensed, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--primary);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ── OVERLAY ── */
.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(26,26,46,0.85) 100%);
    z-index: 0;
    pointer-events: none;
}
/* Hide overlay when a video screen is active */
.overlay.hidden { opacity: 0; transition: opacity 0.5s; }
.overlay.visible { opacity: 1; transition: opacity 0.5s; }

/* ── SCREEN CONTAINER ── */
.screen-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.screen {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
    z-index: 1;
}
.screen.active {
    display: flex;
    z-index: 3;
}
.screen.exiting {
    display: flex;
    z-index: 2;
}

/* ── LOGOS BAR ── */
.logos-bar {
    position: absolute;
    top: 3vh;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw;
    z-index: 10;
}
.logos-bar img {
    width: 12vw;
    height: 10vh;
    min-width: 90px;
    min-height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    flex-shrink: 0;
}

/* ── TITLE FONT ── */
.screen-title, .child-title, .winner-name, .winner-label {
    font-family: 'HaveHeartTwo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

/* ── SCREEN CONTENT ── */
.screen-title {
    font-size: clamp(3rem, 8vw, 10rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 40px rgba(255,82,82,0.4), 0 4px 20px rgba(0,0,0,0.6);
}
.screen-description {
    font-size: clamp(1.2rem, 3vw, 3rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 2vh;
    color: var(--secondary);
    text-align: center;
}

/* ── ACCENT LINE ── */
.accent-line {
    width: 0;
    height: 4px;
    background: var(--accent);
    margin-top: 3vh;
    border-radius: 2px;
    box-shadow: 0 0 20px var(--accent), 0 0 40px rgba(255,82,82,0.3);
}

/* ── CHILDREN CONTAINER ── */
.children-stage {
    position: relative;
    width: 80vw;
    height: 55vh;
    margin-top: 2vh;
}

.child-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}
.child-card.active {
    opacity: 1;
    pointer-events: auto;
}

.child-image {
    width: auto;
    max-height: 40vh;
    max-width: 35vw;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.6));
}

.child-title {
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 3vh;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.child-description {
    font-size: clamp(1rem, 2.5vw, 2.5rem);
    font-weight: 300;
    margin-top: 1vh;
    opacity: 0.7;
    text-align: center;
    max-width: 60vw;
    line-height: 1.4;
}

.child-subtitle {
    font-size: clamp(0.9rem, 2vw, 2rem);
    font-weight: 400;
    margin-top: 1vh;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.child-flag {
    width: clamp(30px, 4vw, 60px);
    height: auto;
    margin-top: 1.5vh;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.child-icon {
    font-size: clamp(4rem, 10vw, 12rem);
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 60px rgba(255,82,82,0.5);
    line-height: 1;
}

/* ── PROGRESS BAR ── */
.progress-track {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.06);
    z-index: 20;
}
.progress-fill {
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent), 0 0 20px rgba(255,82,82,0.2);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0 2px 2px 0;
}

/* ── NAV ARROWS (hidden) ── */
.nav-hint { display: none !important; }

/* ── ANIMATIONS ── */
@keyframes slideInRight {
    from { transform: translateX(8vw); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutLeft {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes slideInLeft {
    from { transform: translateX(-8vw); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes childFadeInRight {
    from { transform: translateX(60px) scale(0.95); opacity: 0; }
    to   { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes childFadeOutLeft {
    from { transform: translateX(0) scale(1); opacity: 1; }
    to   { transform: translateX(-60px) scale(0.95); opacity: 0; }
}
@keyframes childFadeInLeft {
    from { transform: translateX(-60px) scale(0.95); opacity: 0; }
    to   { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes childFadeOutRight {
    from { transform: translateX(0) scale(1); opacity: 1; }
    to   { transform: translateX(60px) scale(0.95); opacity: 0; }
}

@keyframes titleReveal {
    from { transform: translateY(40px); opacity: 0; filter: blur(10px); }
    to   { transform: translateY(0); opacity: 1; filter: blur(0); }
}
@keyframes descReveal {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 0.8; }
}
@keyframes lineGrow {
    from { width: 0; }
    to   { width: 15vw; }
}
@keyframes logosReveal {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px var(--accent), 0 0 30px rgba(255,82,82,0.3); }
    50%      { box-shadow: 0 0 25px var(--accent), 0 0 50px rgba(255,82,82,0.5); }
}

/* ── TRANSITION CLASSES ── */
.anim-slide-in-right  { animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.anim-slide-out-left  { animation: slideOutLeft 0.3s ease-out both; }
.anim-slide-in-left   { animation: slideInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.anim-slide-out-right { animation: slideOutRight 0.3s ease-out both; }

.anim-child-in-right  { animation: childFadeInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-child-out-left  { animation: childFadeOutLeft 0.4s cubic-bezier(0.7, 0, 0.84, 0) forwards; }
.anim-child-in-left   { animation: childFadeInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-child-out-right { animation: childFadeOutRight 0.4s cubic-bezier(0.7, 0, 0.84, 0) forwards; }

.anim-title   { animation: titleReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-desc    { animation: descReveal 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
.anim-line    { animation: lineGrow 0.6s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
.anim-logos   { animation: logosReveal 0.6s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.anim-pulse   { animation: pulseGlow 2s ease-in-out infinite; }

/* ── VIDEO SCREEN ── */
.screen.video-screen {
    justify-content: flex-end;
    align-items: stretch;
    background: #000;
}
.video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 100%);
}
.video-bg video,
.video-bg iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}
.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 5vw, 5rem);
    color: rgba(255,255,255,0.08);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 900;
}
.video-fake-bg {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 70%, rgba(255,82,82,0.08) 0%, transparent 55%),
                radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 100%);
    animation: fakeBgPulse 5s ease-in-out infinite;
}
@keyframes fakeBgPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.75; }
}

/* ── LOWER THIRD BANNER ── */
.lower-third {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 30vh;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.9) 60%, rgba(0,0,0,0.6) 85%, transparent 100%);
}
.lt-player {
    display: flex;
    align-items: center;
    gap: 2.5vw;
    padding: 0 3vw;
    flex: 1;
}
.lt-picture-wrap {
    position: relative;
    flex-shrink: 0;
}
.lt-picture {
    width: clamp(80px, 12vh, 160px);
    height: clamp(80px, 12vh, 160px);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(255,82,82,0.3);
}
.lt-flag {
    position: absolute;
    bottom: 0;
    right: -4px;
    width: clamp(24px, 3vh, 40px);
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.lt-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2vh;
}
.lt-name {
    font-size: clamp(1.5rem, 3.5vw, 4rem);
    line-height: clamp(1.5rem, 3.5vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    min-height: calc(clamp(1.5rem, 3.5vw, 4rem) * 2.4);
    max-width: clamp(12rem, 16vw, 22rem);
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* ── TEAM LOWER THIRD ── */
.lt-team-row {
    display: flex;
    align-items: center;
    gap: 2vw;
    padding: 0 2.5vw;
    flex: 1;
    flex-wrap: nowrap;
}
.lt-team-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: clamp(0.7rem, 1.2vw, 1.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    opacity: 0.9;
    flex-shrink: 0;
}
.lt-members {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 24px);
}
.lt-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4vh;
    flex-shrink: 0;
}
.lt-member-pic-wrap {
    position: relative;
    flex-shrink: 0;
}
.lt-member .lt-picture {
    width: clamp(70px, 10vh, 130px);
    height: clamp(70px, 10vh, 130px);
}
.lt-member.active-dunker .lt-picture {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255,215,0,0.45);
}
.lt-member .lt-picture-sm {
    width: clamp(50px, 7.5vh, 100px) !important;
    height: clamp(50px, 7.5vh, 100px) !important;
    border-color: rgba(255,255,255,0.3);
    box-shadow: none;
}
.lt-captain-badge {
    position: absolute;
    top: -3px;
    left: -3px;
    background: #ffd700;
    color: #000;
    font-size: clamp(0.45rem, 0.8vw, 0.75rem);
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    pointer-events: none;
}
.lt-name-sm {
    font-size: clamp(0.75rem, 1.5vw, 1.5rem) !important;
    opacity: 0.8;
}
.lt-divider {
    width: 2px;
    height: 14vh;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
    border-radius: 1px;
}

/* ── ATTEMPTS BOXES ── */
.lt-attempts {
    display: flex;
    gap: clamp(6px, 1vw, 16px);
}
.attempt-box {
    width: clamp(60px, 7vw, 100px);
    height: clamp(60px, 7vw, 100px);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.attempt-box.made {
    border-color: #4caf50;
    background: rgba(76,175,80,0.15);
    box-shadow: 0 0 18px rgba(76,175,80,0.35);
}
.attempt-box.missed {
    border-color: var(--accent);
    background: rgba(255,82,82,0.15);
    box-shadow: 0 0 18px rgba(255,82,82,0.35);
}
.attempt-box.pending {
    border-color: rgba(255,255,255,0.12);
}
.attempt-label {
    position: absolute;
    top: -1.8vh;
    font-size: clamp(0.5rem, 1vw, 0.8rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
}
.attempt-svg {
    width: 80%;
    height: 80%;
    display: block;
}

/* ── SCORE BADGE ── */
.lt-score {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3vw;
    flex-shrink: 0;
}
.score-value {
    font-size: clamp(3rem, 8vw, 10rem);
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 30px rgba(255,82,82,0.5);
    min-width: 3ch;
    text-align: center;
}
.score-value.empty {
    color: rgba(255,255,255,0.1);
}

/* ── LOWER THIRD ANIMATION ── */
@keyframes ltSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.lt-animate {
    animation: ltSlideUp 0.6s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── SCOREBOARD SCREEN ── */
.scoreboard-list {
    width: 70vw;
    max-width: 1200px;
    margin-top: 4vh;
}
.sb-row {
    display: flex;
    align-items: center;
    padding: 1.5vh 2vw;
    margin-bottom: 1vh;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    border-left: 4px solid transparent;
    gap: 2vw;
}
.sb-row:nth-child(1) { border-left-color: #ffd700; }
.sb-row:nth-child(2) { border-left-color: #c0c0c0; }
.sb-row:nth-child(3) { border-left-color: #cd7f32; }
.sb-rank {
    font-size: clamp(1.2rem, 2.5vw, 2.5rem);
    font-weight: 900;
    min-width: 3vw;
    text-align: center;
    color: rgba(255,255,255,0.4);
}
.sb-picture {
    width: clamp(40px, 5vh, 70px);
    height: clamp(40px, 5vh, 70px);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.15);
}
.sb-team-logo {
    border-radius: 6px !important;
}
.sb-flag {
    width: clamp(20px, 2.5vw, 36px);
    height: auto;
    border-radius: 3px;
}
.sb-name {
    flex: 1;
    font-size: clamp(1rem, 2.5vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
}
.sb-row-team .sb-name {
    font-size: clamp(1.4rem, 3.5vw, 3.5rem);
    font-weight: 800;
}
.sb-score {
    font-size: clamp(1.5rem, 3.5vw, 3.5rem);
    font-weight: 900;
    color: var(--accent);
    min-width: 4vw;
    text-align: right;
}
.sb-row-team .sb-score {
    font-size: clamp(2rem, 5vw, 6rem);
}
.sb-score.empty {
    color: rgba(255,255,255,0.15);
}
.sb-members {
    display: flex;
    gap: 0.5vw;
    align-items: center;
    margin-right: 1vw;
}
.sb-member-pic {
    width: clamp(2rem, 4.5vw, 5.5rem);
    height: clamp(2rem, 4.5vw, 5.5rem);
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.12);
}
.sb-member-pic.is-captain {
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(255,215,0,0.5);
}
@keyframes sbRowReveal {
    from { transform: translateX(-30px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
.sb-row-anim {
    animation: sbRowReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes scoreRevealIn {
    0%   { opacity: 0; transform: translateY(-28px); filter: blur(8px); }
    55%  { opacity: 1; transform: translateY(4px); filter: blur(0); }
    80%  { transform: translateY(-2px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes attemptReveal {
    0%   { transform: scale(0.4); opacity: 0; }
    65%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.attempt-reveal { animation: attemptReveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) both !important; }

/* ── WINNER SCREEN ── */
.winner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vh;
}
.winner-label {
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: rgba(255,255,255,0.6);
}
.winner-picture {
    width: clamp(150px, 25vh, 300px);
    height: clamp(150px, 25vh, 300px);
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent);
    box-shadow: 0 0 40px rgba(255,82,82,0.4), 0 0 80px rgba(255,82,82,0.2);
}
.winner-name {
    font-size: clamp(3rem, 7vw, 9rem);
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(255,82,82,0.4), 0 4px 20px rgba(0,0,0,0.6);
}
.winner-score-label {
    font-size: clamp(1.2rem, 2.5vw, 2.5rem);
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
.winner-score-value {
    font-size: clamp(4rem, 10vw, 12rem);
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 60px rgba(255,82,82,0.5);
    line-height: 1;
}
.winner-flag {
    width: clamp(40px, 6vw, 80px);
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
@keyframes winnerPicReveal {
    from { transform: scale(0.5); opacity: 0; filter: blur(20px); }
    to   { transform: scale(1); opacity: 1; filter: blur(0); }
}
@keyframes winnerNameReveal {
    from { transform: translateY(30px) scale(0.9); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
.anim-winner-pic  { animation: winnerPicReveal 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
.anim-winner-name { animation: winnerNameReveal 0.7s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.anim-winner-score { animation: winnerNameReveal 0.7s 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ── ROUND-SPECIFIC LOWER THIRD ── */

/* Round 1: opponent avatar on far right */
.lt-opponent-r1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5vh;
    padding: 0 2.5vw;
    flex-shrink: 0;
    opacity: 0.6;
}
.lt-opponent-r1 .lt-picture {
    width: clamp(55px, 8vh, 110px);
    height: clamp(55px, 8vh, 110px);
    border-color: rgba(255,255,255,0.25);
    box-shadow: none;
}
.lt-opponent-label {
    font-size: clamp(0.65rem, 1.1vw, 1.1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    text-align: center;
    max-width: 12vw;
    line-height: 1.2;
}

/* Round 2: item card beside player photo */
.lt-item-card {
    width: clamp(42px, 5.5vh, 75px);
    height: clamp(42px, 5.5vh, 75px);
    border-radius: 6px;
    object-fit: contain;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}
.lt-member-item-pair {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}
.lt-r2-side {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.2vw, 18px);
}
.lt-r2-side.opponent {
    opacity: 0.55;
    filter: grayscale(25%);
}
.lt-r2-side.opponent .lt-picture {
    border-color: rgba(255,255,255,0.2);
    box-shadow: none;
}
.lt-r2-side.opponent .lt-name {
    font-size: clamp(0.65rem, 1.3vw, 1.3rem);
    opacity: 0.7;
}
.lt-r2-side .lt-picture-sm {
    width: clamp(40px, 6vh, 80px) !important;
    height: clamp(40px, 6vh, 80px) !important;
}

/* Round 3: VS + attempts center wrapper */
.lt-r3-vs-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2vh;
    flex-shrink: 0;
    padding: 0 1.5vw;
}

/* Round 3: full two-team layout */
.lt-r3-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 1vw;
    padding: 0 1.5vw;
}
.lt-r3-team {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 16px);
    flex: 1;
}
.lt-r3-team.opponent {
    opacity: 0.55;
    filter: grayscale(20%);
    justify-content: flex-end;
}
.lt-r3-team.opponent .lt-picture,
.lt-r3-team.opponent .lt-picture-sm {
    border-color: rgba(255,255,255,0.2) !important;
    box-shadow: none !important;
}
.lt-r3-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3vh;
    flex-shrink: 0;
    padding: 0 1.5vw;
}
.lt-r3-scores {
    display: flex;
    align-items: center;
    gap: 0.5vw;
}
.lt-r3-score-val {
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(255,82,82,0.4);
    line-height: 1;
    min-width: 1.5ch;
    text-align: center;
}
.lt-r3-score-sep {
    font-size: clamp(1.5rem, 3vw, 3.5rem);
    font-weight: 300;
    color: rgba(255,255,255,0.3);
    line-height: 1;
}
.lt-r3-round-label {
    font-size: clamp(0.55rem, 0.9vw, 0.85rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.3);
}

/* ── CRITERIA GRID ── */
.criteria-grid {
    display: flex;
    gap: clamp(1.5rem, 3.5vw, 5rem);
    margin-top: 4vh;
    align-items: center;
    justify-content: center;
}
.criteria-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5vh;
}
.criteria-icon {
    font-size: clamp(2.5rem, 5.5vw, 7rem);
    line-height: 1;
}
.criteria-name {
    font-size: clamp(0.8rem, 1.5vw, 1.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    color: var(--primary);
}

/* ── JUDGES LIST (on criteria screen) ── */
.judges-list {
    display: flex;
    gap: clamp(1.5rem, 3vw, 4rem);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3vh;
}
.judge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3vh;
}
.judge-name {
    font-size: clamp(0.9rem, 1.6vw, 1.6rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
}
.judge-country {
    font-size: clamp(0.65rem, 1vw, 1rem);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── ALL-CHILDREN GRID (show_all_children mode) ── */
.children-all {
    display: flex;
    gap: 0;
    margin-top: 3vh;
    align-items: flex-start;
    justify-content: center;
    width: 88vw;
}
.children-all .child-card {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start !important;
    gap: 1.2vh;
    flex: 1;
    min-width: 0;
    padding: 0 clamp(1rem, 2.5vw, 3.5rem);
    pointer-events: auto;
    opacity: 0;
    animation: childAllIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.children-all .child-card + .child-card {
    border-left: 1px solid rgba(255,255,255,0.1);
}
.children-all .child-card:nth-child(1) { animation-delay: 0.3s; }
.children-all .child-card:nth-child(2) { animation-delay: 0.45s; }
.children-all .child-card:nth-child(3) { animation-delay: 0.6s; }
@keyframes childAllIn {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.children-all .child-icon {
    font-size: clamp(2.5rem, 5vw, 7rem);
    line-height: 1;
}
.children-all .child-title {
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    color: var(--accent);
}
.children-all .child-description {
    font-size: clamp(0.7rem, 1.1vw, 1rem);
    font-weight: 400;
    text-align: center;
    color: var(--secondary);
    line-height: 1.4;
    word-break: break-word;
}
/* Team card in all-children mode */
.children-all .child-team-card .child-title {
    font-size: clamp(2rem, 4.5vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    padding-bottom: 1.2vh;
    width: 100%;
    text-align: center;
}
.children-all .child-team-card .child-team-row {
    gap: clamp(0.8rem, 1.8vw, 2.5rem);
    margin-top: 1.5vh;
}
.children-all .child-team-card .child-member-pic {
    width: clamp(100px, 20vh, 240px);
    height: clamp(100px, 20vh, 240px);
}
.children-all .child-team-card .child-team-member.is-captain .child-member-pic {
    width: clamp(130px, 26vh, 320px);
    height: clamp(130px, 26vh, 320px);
}
.children-all .child-team-card .child-member-name {
    font-size: clamp(0.65rem, 1.2vw, 1.1rem);
}

/* ── TEAM CHILDREN ── */
.child-team-row {
    display: flex;
    gap: clamp(2rem, 5vw, 7rem);
    margin-top: 4vh;
    align-items: flex-start;
    justify-content: center;
}
.child-team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2vh;
}
.child-member-pic-wrap {
    position: relative;
}
.child-member-pic {
    width: clamp(120px, 22vh, 260px);
    height: clamp(120px, 22vh, 260px);
    border-radius: 12px;
    object-fit: cover;
    object-position: center top;
    border: 3px solid transparent;
    /*box-shadow: 0 0 40px 8px rgba(255,82,82,0.35), 0 0 80px 16px rgba(255,82,82,0.15);*/
    filter: drop-shadow(8px 8px 8px #666);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.child-team-member.is-captain .child-member-pic {
    /*border-color: #ffd700;
    box-shadow: 0 0 20px 6px rgba(255,215,0,0.55), 0 0 60px 16px rgba(255,215,0,0.2), 0 0 80px 20px rgba(255,82,82,0.15);*/
    filter: drop-shadow(8px 8px 8px #ffd700);
}
.child-captain-label {
    font-size: clamp(0.6rem, 1vw, 0.9rem);
    font-weight: 900;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    background: rgba(255,215,0,0.12);
    border: 1px solid rgba(255,215,0,0.4);
    border-radius: 4px;
    padding: 2px 8px;
    margin-top: -0.4vh;
}
.child-member-name {
    font-size: clamp(0.85rem, 1.8vw, 1.8rem);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: var(--secondary);
}
.child-member-flag {
    width: clamp(22px, 3vw, 40px);
    height: auto;
    border-radius: 3px;
}
.child-captain-badge {
    position: absolute;
    top: -3px;
    left: -3px;
    background: #ffd700;
    color: #000;
    font-size: clamp(0.5rem, 0.9vw, 0.8rem);
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* ── MATCHUP BANNER ── */
.lt-matchup-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 0.5vw;
    gap: 1vw;
}
.lt-matchup-side {
    display: flex;
    align-items: center;
    gap: 1vw;
    flex: 1;
}
.lt-matchup-side.opponent {
    flex-direction: row-reverse;
    opacity: 0.6;
    filter: grayscale(20%);
}
.lt-matchup-side.opponent .lt-picture {
    border-color: rgba(255,255,255,0.25);
    box-shadow: none;
}
.lt-matchup-info {
    display: flex;
    flex-direction: column;
    gap: 0.6vh;
}
.lt-matchup-side.opponent .lt-matchup-info {
    text-align: right;
}
.lt-matchup-team {
    font-size: clamp(0.7rem, 1.3vw, 1.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}
.lt-matchup-vs {
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 900;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* ── INTRO SCREEN ── */
.intro-title {
    position: relative;
    font-size: clamp(5rem, 13vw, 18rem) !important;
    font-weight: 400;
    line-height: 1;
    padding: 0 clamp(1rem, 3vw, 3rem);
    background-image:
        linear-gradient(-40deg, transparent 40%, rgba(255,255,255,0.85) 50%, transparent 60%),
        linear-gradient(to bottom, var(--primary) 0%, var(--primary) 44%, #fff 50%, var(--primary) 56%, var(--primary) 100%);
    background-size: 300% 100%, 100% 100%;
    background-position: -150% 0, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px rgba(255,82,82,0.55);
    text-shadow: none !important;
    animation: chrome_effect 10s linear 2s infinite;
}
@keyframes chrome_effect {
    0%   { background-position: -150% 0, 0 0; }
    100% { background-position: 250% 0, 0 0; }
}
.intro-logo {
    width: auto;
    max-height: 50vh;
    max-width: 70vw;
    object-fit: contain;
    margin-top: 6vh;
    filter: drop-shadow(0 4px 30px rgba(0,0,0,0.5));
}

/* ── CONFETTI CANVAS ── */
#confetti-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
}
#confetti-canvas.active { opacity: 1; }

/* ── PARTICLES ── */
.particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}