/* TV: 1920×1080, sized in vh so any 16:9 screen works. */
html, body { height: 100%; overflow: hidden; font-size: 1.9vh; }
#app { height: 100%; }
.tv { height: 100%; display: flex; flex-direction: column; padding: 1vh 1.2vw; gap: .9vh; position: relative; }
.tvh { display: flex; align-items: baseline; gap: 1.5vw; }
.tvh .logo { font-family: var(--display); font-size: 3.4vh; color: var(--gold2); letter-spacing: .08em; }
.tvh .rd { font-family: var(--display); font-size: 2.6vh; color: var(--gold); }
.tvh .fin { color: var(--red); animation: pulse 1.6s ease-in-out infinite; }
.tvh .code { margin-left: auto; color: var(--dim); font-size: 2vh; } .tvh .code b { color: var(--gold2); letter-spacing: .15em; font-size: 2.6vh; }
@keyframes pulse { 50% { opacity: .55; } }
.tvmain { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 30vw; gap: 1.2vw; }
.rows { display: grid; grid-template-rows: auto auto auto 1fr auto 1fr; gap: .4vh; min-height: 0; }
.rowl { display: flex; align-items: center; gap: 1vw; font-family: var(--display); color: var(--dim); font-size: 1.45vh; letter-spacing: .14em; text-transform: uppercase; }
.rowl .sups { margin-left: auto; text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: 1.8vh; display: flex; gap: .8vw; }
.sup.low { color: var(--red); }
.achs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8vw; min-height: 0; }
.ach { position: relative; display: flex; align-items: center; gap: .6vw; background: var(--panel); border-radius: 1vh; padding: .4vh .5vw; min-height: 0; }
.ach img { height: 8vh; width: auto; border-radius: .5vh; }
.ach .an { font-size: 1.7vh; } .ach .ao { position: absolute; right: .5vw; bottom: .4vh; background: var(--pc); color: #111; font-weight: 700; border-radius: .6vh; padding: 0 .5vw; font-size: 1.5vh; }
.ach.own { box-shadow: 0 0 0 .25vh var(--pc) inset; } .ach.q { background: #3a2a14; }
.brow, .crow { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7vw; min-height: 0; }
.crow { grid-template-columns: repeat(5, 1fr); }
.bslot, .cslot { background: var(--panel); border-radius: 1vh; padding: .5vh .4vw; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; min-height: 0; position: relative; }
.bslot .face, .cslot .tcard { position: relative; height: 100%; min-height: 0; display: grid; place-items: center; }
.bslot .face img { height: 14vh; width: auto; border-radius: .6vh; box-shadow: 0 .5vh 1vh #0009; }
.bslot .cnt, .cslot .cnt { position: absolute; bottom: .6vh; right: .3vw; background: #000c; padding: 0 .5vw; border-radius: .6vh; font-weight: 700; }
.bslot .xw { position: absolute; bottom: .5vh; left: 0; right: 0; text-align: center; }
.bl { font-size: 1.5vh; color: var(--dim); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bids { display: flex; flex-direction: column; gap: .3vh; width: 100%; }
.bid { display: flex; align-items: center; gap: .2vw; background: #0006; border-radius: .6vh; padding: .2vh .3vw; border-left: .4vh solid var(--pc); flex-wrap: wrap; }
.bid .bt { font-weight: 700; color: var(--pc); min-width: 1.6em; }
.bid.lead { background: color-mix(in srgb, var(--pc) 22%, #000); }
.emptyslot { color: var(--dim); }
.tcard { position: relative; border-radius: .7vh; }
.tcard img { height: 14vh; width: auto; border-radius: .6vh; box-shadow: 0 .5vh 1vh #0009; display: block; }
.tcard.busy img { box-shadow: 0 0 0 .35vh var(--pc), 0 .5vh 1vh #0009; }
.tcard .meeple.big { position: absolute; top: -.6vh; right: -.4vw; width: 1.6vh; height: 2vh; }
.die.sm { width: 2.3vh; height: 2.3vh; padding: .3vh; border-radius: .5vh; margin: .1vh; }
aside { display: flex; flex-direction: column; gap: 1vh; min-height: 0; }
.now { background: linear-gradient(135deg, #3b2812, #1e140b); border: .2vh solid var(--pc, var(--gold)); border-radius: 1.4vh; padding: 1vh 1vw; min-height: 24vh; }
.now .nh { font-size: 2.4vh; }
.now .nb { font-size: 2.1vh; margin-top: .6vh; }
.chainv { display: flex; align-items: center; flex-wrap: wrap; gap: .4vw; margin-top: 1vh; }
.chainv .step.card { display: grid; justify-items: center; font-size: 1.3vh; color: var(--dim); max-width: 6vw; text-align: center; }
.chainv .new.step { animation: pop .35s ease-out; }
.chainv .step.card img { height: 9vh; border-radius: .6vh; box-shadow: 0 0 1.2vh #ffd27a55; }
.chainv .step.die .die { width: 4vh; height: 4vh; padding: .5vh; }
.chainv .step.arrow { color: var(--gold); font-size: 2.4vh; }
.now .cx { margin-top: .8vh; font-family: var(--display); color: var(--gold2); font-size: 2.2vh; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.feed { flex: 1; min-height: 0; overflow: hidden; background: var(--panel); border-radius: 1.2vh; padding: .8vh 1vw; font-size: 1.85vh; display: flex; flex-direction: column; gap: .35vh; }
.feed .rnd { font-family: var(--display); color: var(--gold); }
.boards { display: grid; gap: .7vw; height: 29vh; }
.boards.n2 { grid-template-columns: repeat(2, 1fr); } .boards.n3 { grid-template-columns: repeat(3, 1fr); }
.boards.n4 { grid-template-columns: repeat(4, 1fr); } .boards.n5 { grid-template-columns: repeat(5, 1fr); }
.pb { position: relative; background: var(--panel); border-radius: 1.2vh; padding: .7vh .6vw; border-top: .5vh solid var(--pc); display: flex; flex-direction: column; gap: .4vh; min-width: 0; overflow: hidden; }
.pb.on { background: linear-gradient(#4a3418, #2a1c0f); box-shadow: 0 0 2vh color-mix(in srgb, var(--pc) 45%, transparent); }
.ph1 { display: flex; align-items: center; gap: .5vw; }
.pn { font-family: var(--display); font-size: 2.3vh; color: var(--pc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq { margin-left: auto; font-size: 3vh; display: flex; align-items: center; } .pq .chip { width: 2.4vh; height: 2.4vh; } .pq b { color: var(--gold2); margin-left: .2vw; }
.st { color: var(--gold); }
.pw { display: flex; align-items: center; gap: .3vw; min-height: 2vh; } .pw .meeple { --pc: inherit; } .pw .ex { color: var(--gold2); }
.pb .meeple { width: 1.6vh; height: 2.1vh; background: var(--pc); border-radius: 50% 50% 25% 25% / 45% 45% 25% 25%; box-shadow: 0 .2vh 0 #0008; }
.ppool { display: flex; flex-wrap: wrap; } .ppool .die.sm { width: 3.3vh; height: 3.3vh; padding: .4vh; }
.pend { display: flex; align-items: center; gap: .4vw; color: var(--gold2); animation: pulse 1.2s infinite; } .pend .die { width: 3vh; height: 3vh; padding: .35vh; }
.plab { display: flex; flex-wrap: wrap; gap: .3vw; align-content: flex-start; flex: 1; min-height: 0; overflow: hidden; }
.tcard.mini img { height: 11vh; }
.bubble { position: absolute; top: .6vh; right: .6vw; background: #fff; color: #222; border-radius: 1.2vh; padding: .4vh .8vw; font-size: 2.1vh; animation: pop .3s; }
.burst { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 50; padding: 2.5vh 4vw; border-radius: 2.5vh; background: #120c06ee; border: .3vh solid var(--gold); font-family: var(--display); font-size: 5vh; color: var(--gold2); text-align: center; animation: burst 2.6s ease-out forwards; box-shadow: 0 0 6vh #ffd27a66; }
.burst.q { background: radial-gradient(circle, #fffbe9 0%, #f1d796 30%, #1a1208ee 70%); color: #2a1a07; }
.burst .chip { width: 4vh; height: 4vh; vertical-align: -.6vh; }
.burst small { font-size: .5em; color: var(--red); }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 12% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -60%) scale(1); opacity: 0; } }
.pairsv, .endv { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2vh; position: relative; }
.pairsv h1, .endv h1 { font-size: 5vh; }
.pairsv p { font-size: 2.6vh; }
.pickedrow { display: flex; gap: 2vw; } .pk { display: grid; gap: .5vh; justify-items: center; border-top: .5vh solid var(--pc); padding-top: 1vh; } .pk img { height: 14vh; margin: 0 .2vw; border-radius: .6vh; }
.endv .pf { height: 30vh; border-radius: 1.4vh; box-shadow: 0 0 6vh #ffe9a5aa; animation: float 4s ease-in-out infinite; }
.endv .glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, #ffd27a33, transparent 55%); pointer-events: none; }
@keyframes float { 50% { transform: translateY(-1.5vh) rotate(-2deg); } }
.podium { display: flex; gap: 1.5vw; } .pod { background: var(--panel); border-radius: 1.4vh; padding: 1.4vh 2vw; border-top: .6vh solid var(--pc); min-width: 14vw; }
.pod.win { background: #4a3418; box-shadow: 0 0 3vh color-mix(in srgb, var(--pc) 50%, transparent); }
.pod .pos { font-family: var(--display); color: var(--dim); } .pod .pn { font-size: 3vh; } .pod .pq { justify-content: center; margin: .5vh 0; }
.vid { position: fixed; inset: 0; background: #000; z-index: 99; display: grid; place-items: center; }
.vid video { width: 100%; height: 100%; object-fit: contain; }
.atr-q .buttons { display: flex; gap: .7vw; justify-content: center; }
.atr-q button { font-size: 1vw; padding: .4em 1em; }
.idlecue { position: absolute; left: 50%; bottom: 31vh; transform: translateX(-50%); z-index: 40; background: #120c06ee; border: .25vh solid var(--pc); border-radius: 2vh; padding: 1vh 2vw; font-size: 2.6vh; box-shadow: 0 0 3vh color-mix(in srgb, var(--pc) 40%, transparent); animation: pulse 2.4s ease-in-out infinite; }
.idlecue b { color: var(--pc); }
.rowl .sups { gap: .5vw; align-items: center; }
.rowl .supl { color: var(--dim); font-family: var(--display); letter-spacing: .14em; font-size: 1.45vh; margin-right: .3vw; }
.rowl .sp { min-width: 3.4vh; padding: .2vh .4vw; font-size: 2.3vh; border-radius: .6vh; }
