/* ================= Tug Of War =================
   A muddy arena: a thick rope with a pennant over a bubbling mud pit, two win lines, and crews of original blob
   creatures digging in at each end. Team colors come from the theme. */
.tug, .tugp { --tgA: var(--pumpkin); --tgB: var(--ecto); --mud: #5a3a1e; --mud2: #3a2412; }
.tug { position: relative; flex: 1; margin: -1.5vh -3vw -2.5vh; padding: 1.5vh 3vw 2.5vh; min-height: 0; display: grid; overflow: hidden; font-family: var(--display); }
.tug i, .tug b, .tug em { font-style: normal; }
.tug-bg { position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 45% 55% at 0% 60%, color-mix(in srgb, var(--tgA) 20%, transparent), transparent 70%),
        radial-gradient(ellipse 45% 55% at 100% 60%, color-mix(in srgb, var(--tgB) 20%, transparent), transparent 70%); }

/* ---------- the arena ---------- */
.tug-arena { position: relative; height: 42vh; min-height: 0; }
.tug-arena.small { height: 34vh; width: min(100%, 120vh); justify-self: center; }
.tug-bank { position: absolute; bottom: 0; height: 44%; }
.tug-bank.a { left: -4vw; right: calc(50% + 22vw - 1vw); border-radius: 0 60% 0 0 / 0 30% 0 0; }
.tug-bank.b { right: -4vw; left: calc(50% + 22vw - 1vw); border-radius: 60% 0 0 0 / 30% 0 0 0; }
.tug-bank { background: linear-gradient(180deg, #3e5a22 0 12%, #2d4418 30%, #1c2b0f 100%); box-shadow: inset 0 1vh 0 rgba(160, 200, 90, .35), inset 0 -2vh 3vh rgba(0, 0, 0, .4); }
.tug-bank::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2.4vw; background: linear-gradient(90deg, #c9a86a, #8a6a3a); opacity: .85; }
.tug-bank.a::after { right: 0; border-radius: 0 50% 0 0; } .tug-bank.b::after { left: 0; border-radius: 50% 0 0 0; }
.tug-arena.small .tug-bank.a { left: 0; right: 77%; } .tug-arena.small .tug-bank.b { right: 0; left: 77%; }
/* the lake: murky water with waves, fish, reeds, and lily pads; a front layer lets the fallen sink in */
.tug-lake, .tug-lake-front { position: absolute; left: calc(50% - 22vw); width: 44vw; bottom: 0; overflow: hidden; }
.tug-arena.small .tug-lake, .tug-arena.small .tug-lake-front { left: 22%; width: 56%; }
.tug-lake { top: 56%; border-radius: 1vh 1vh 0 0; background: linear-gradient(180deg, color-mix(in srgb, #2a7f9e 70%, var(--violet)) 0%, color-mix(in srgb, #0f4058 80%, var(--violet)) 55%, #06202e 100%);
    box-shadow: inset 0 .6vh 0 rgba(200, 240, 255, .35); }
.tug-lake-front { top: 70%; z-index: 6; pointer-events: none; background: linear-gradient(180deg, rgba(20, 90, 120, .55), rgba(6, 32, 46, .9)); box-shadow: inset 0 .4vh 0 rgba(200, 240, 255, .3); }
.tug-waves { position: absolute; left: 0; right: 0; top: 0; height: 2.2vh; opacity: .6;
    background: radial-gradient(ellipse 1.6vh .6vh at 50% 100%, transparent 70%, rgba(220, 245, 255, .7) 72%, transparent 80%) 0 0 / 4vh 2.2vh repeat-x; animation: tug-wave 3s linear infinite; }
.tug-lake-front .tug-waves { opacity: .45; animation-duration: 4.4s; animation-direction: reverse; }
@keyframes tug-wave { to { background-position: 4vh 0; } }
.tug-fish { position: absolute; width: 6vh; left: 0; animation: tug-swim 14s linear infinite; }
.tug-fish svg { display: block; width: 100%; height: auto; }
.tug-fish .fb { fill: #f3a93b; stroke: #1c1026; stroke-width: 2.5; } .tug-fish .ft { fill: #e0782a; stroke: #1c1026; stroke-width: 2.5; }
.tug-fish .fn { fill: none; stroke: #1c1026; stroke-width: 2; } .tug-fish .fe { fill: #1c1026; }
.tug-fish.f0 { top: 30%; } .tug-fish.f1 { top: 55%; width: 4.4vh; animation-duration: 19s; animation-delay: -6s; }
.tug-fish.f2 { top: 72%; width: 5vh; animation-duration: 16s; animation-delay: -11s; } .tug-fish.f1 .fb { fill: #9ad07a; } .tug-fish.f2 .fb { fill: #e9e4f2; }
.tug-fish.f3 { top: 40%; width: 5vh; animation: tug-jump 9s ease-in-out -2s infinite; }
@keyframes tug-swim { 0% { transform: translateX(-8vh) scaleX(-1); } 48% { transform: translateX(46vw) scaleX(-1); } 50% { transform: translateX(46vw) scaleX(1); } 98% { transform: translateX(-8vh) scaleX(1); } 100% { transform: translateX(-8vh) scaleX(-1); } }
@keyframes tug-jump { 0%, 70% { transform: translate(8vw, 4vh) rotate(0); opacity: 0; } 72% { opacity: 1; transform: translate(10vw, 0) rotate(-30deg); } 80% { transform: translate(15vw, -9vh) rotate(0deg); } 88% { transform: translate(20vw, 0) rotate(30deg); opacity: 1; } 90%, 100% { transform: translate(21vw, 4vh) rotate(40deg); opacity: 0; } }
.tug-reed { position: absolute; bottom: 0; width: .5vh; height: 60%; border-radius: 99px; background: linear-gradient(180deg, #7a5a2a 0 14%, #3f6a2a 14%); transform-origin: 50% 100%; animation: tug-reedsway 3.4s ease-in-out infinite alternate; }
.tug-reed.r1 { left: 4%; } .tug-reed.r2 { right: 5%; height: 48%; animation-delay: -1.4s; }
@keyframes tug-reedsway { to { transform: rotate(6deg); } }
.tug-pad { position: absolute; top: 18%; width: 5vh; height: 1.6vh; border-radius: 50%; background: #3f7a2a; box-shadow: inset 0 -.3vh 0 rgba(0, 0, 0, .3); animation: tug-drift 7s ease-in-out infinite alternate; }
.tug-pad.p1 { left: 20%; } .tug-pad.p2 { left: 70%; top: 44%; animation-delay: -3s; }
@keyframes tug-drift { to { translate: 2vw .4vh; } }
/* the win lines sit where the flag must reach */
.tug-line, .tug-mid { position: absolute; bottom: 8%; top: 18%; width: .6vh; border-radius: 99px; }
.tug-line.a { left: calc(50% - 22vw); background: repeating-linear-gradient(180deg, var(--tgA) 0 1.4vh, transparent 1.4vh 2.4vh); box-shadow: 0 0 2vh var(--tgA); }
.tug-line.b { left: calc(50% + 22vw); background: repeating-linear-gradient(180deg, var(--tgB) 0 1.4vh, transparent 1.4vh 2.4vh); box-shadow: 0 0 2vh var(--tgB); }
.tug-arena.small .tug-line.a { left: 22%; } .tug-arena.small .tug-line.b { left: 78%; }
.tug-mid { left: 50%; margin-left: -.3vh; background: rgba(255, 255, 255, .35); }
/* the rig: rope, flag, and both crews move together */
.tug-rig { position: absolute; inset: 0; }
.tug-arena.small .tug-rig { animation: tug-sway 5s ease-in-out infinite; }
@keyframes tug-sway { 0%, 100% { transform: translateX(-2vw); } 50% { transform: translateX(2vw); } }
.tug-rope { position: absolute; left: 50%; top: 50%; width: 92vw; height: 2.4vh; margin-top: -1.2vh; transform: translateX(-50%); border-radius: 99px;
    background: repeating-linear-gradient(115deg, #d8b37a 0 1.1vh, #a47a44 1.1vh 2vh), #c29a60; box-shadow: 0 .6vh 1vh rgba(0, 0, 0, .5), inset 0 -.4vh 0 rgba(0, 0, 0, .2); }
.tug-arena.small .tug-rope { width: 96%; }
.tug-flag { position: absolute; left: 50%; top: 50%; width: 5vh; height: 7vh; margin-left: -2.5vh; transform-origin: 50% 0;
    background: linear-gradient(180deg, var(--blood), color-mix(in srgb, var(--blood) 60%, #000)); clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
    filter: drop-shadow(0 .6vh .8vh rgba(0, 0, 0, .5)); animation: tug-flutter 1.2s ease-in-out infinite; }
.tug-flag::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.2vh; background: var(--gold); }
@keyframes tug-flutter { 50% { transform: rotate(6deg); } }
/* crews at each end of the rope, leaning back harder the faster their team taps */
.tug-crew { position: absolute; top: 50%; display: flex; gap: .4vw; transform: translateY(-62%); --effort: 0; }
.tug-crew.a { right: calc(50% + 46vw - 1vw); flex-direction: row; transform: translate(100%, -62%); }
.tug-crew.b { left: calc(50% + 46vw - 1vw); transform: translate(-100%, -62%); }
.tug-arena.small .tug-crew.a { right: auto; left: 2%; transform: translate(0, -62%); }
.tug-arena.small .tug-crew.b { left: auto; right: 2%; transform: translate(0, -62%); }
.tug-blob { width: 9vh; transform-origin: 50% 95%; transform: rotate(calc(var(--effort) * -16deg - 4deg)); transition: transform .4s; }
.tug-crew.b .tug-blob { transform: rotate(calc(var(--effort) * 16deg + 4deg)); }
.tug-crew.b svg { transform: scaleX(-1); }
.tug-arena.small .tug-blob { width: 8vh; }
.tug-blob svg { display: block; width: 100%; height: auto; overflow: visible; }
.tug-blob .bd { fill: var(--c); stroke: #1c1026; stroke-width: 4; }
.tug-blob .bl { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 5; stroke-linecap: round; }
.tug-blob .ey { fill: #fff; stroke: #1c1026; stroke-width: 3; }
.tug-blob .pu { fill: #1c1026; }
.tug-blob .br { stroke: #1c1026; stroke-width: 4; stroke-linecap: round; }
.tug-blob .mo { fill: #1c1026; }
.tug-blob .te { stroke: #fff; stroke-width: 2; }
.tug-blob .ar { fill: none; stroke: color-mix(in srgb, var(--c) 70%, #1c1026); stroke-width: 7; stroke-linecap: round; }
.tug-blob .ft { fill: color-mix(in srgb, var(--c) 45%, #1c1026); }
.tug-blob .sh { fill: rgba(0, 0, 0, .35); }
.tug-play.pulling .tug-blob { animation: tug-strain calc(.5s - var(--effort) * .32s) ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.07s); }
@keyframes tug-strain { from { translate: 0 0; } to { translate: -.4vh -.5vh; } }
.tug-arena.small .tug-blob { animation: tug-idle 1.4s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.25s); }
@keyframes tug-idle { to { translate: 0 -.8vh; } }
/* the win: the rope heaves to the winners and the losers slide into the mud */
.tug-mover { position: absolute; inset: 0; pointer-events: none; }
.tug-rig.won, .tug-arena.won .tug-mover { transition: transform 1s cubic-bezier(.5, -.3, .3, 1.2); }
.tug-arena.win-a .tug-mover.a { transform: translateX(-8vw); } .tug-arena.win-a .tug-mover.b { transform: translateX(-26vw); }
.tug-arena.win-b .tug-mover.b { transform: translateX(8vw); } .tug-arena.win-b .tug-mover.a { transform: translateX(26vw); }
.tug-chev { position: absolute; top: 50%; margin-top: -8.4vh; font-weight: 900; font-size: 5vh; letter-spacing: -.3vh; opacity: 0; pointer-events: none; transition: opacity .2s; }
.tug-chev.a { right: calc(50% + 3vh); color: var(--tgA); text-shadow: 0 0 2vh var(--tgA); }
.tug-chev.b { left: calc(50% + 3vh); color: var(--tgB); text-shadow: 0 0 2vh var(--tgB); }
/* near a line: the arena's edges throb like a heartbeat */
.tug-arena::after { content: ""; position: absolute; inset: -2vh -4vw; pointer-events: none; opacity: 0; box-shadow: inset 0 0 8vh 2vh rgba(255, 30, 40, .55); border-radius: 3vh; }
.tug-arena.tense::after { animation: tug-beat .9s ease-in-out infinite; }
@keyframes tug-beat { 0%, 100% { opacity: 0; } 15% { opacity: 1; } 30% { opacity: .2; } 45% { opacity: .8; } }
.tug-rig.won.win-a { transform: translateX(calc(-22vw - 8vw)); }
.tug-rig.won.win-b { transform: translateX(calc(22vw + 8vw)); }
.tug-arena.win-a .tug-crew.b .tug-blob, .tug-arena.win-b .tug-crew.a .tug-blob { animation: tug-fall 1.2s cubic-bezier(.5, 0, .7, 1) both; animation-delay: calc(.35s + var(--k) * .08s); }
.tug-arena.win-a .tug-crew.b .tug-blob { --dir: -1; } .tug-arena.win-b .tug-crew.a .tug-blob { --dir: 1; }
@keyframes tug-fall { 0% { translate: 0 0; } 35% { translate: calc(var(--dir) * 5vw) -5vh; rotate: calc(var(--dir) * 35deg); } 70% { translate: calc(var(--dir) * 10vw) 6vh; rotate: calc(var(--dir) * 90deg); } 100% { translate: calc(var(--dir) * 12vw) 13vh; rotate: calc(var(--dir) * 100deg); filter: saturate(.7) brightness(.8) hue-rotate(-10deg); } }
.tug-arena.win-a .tug-crew.a .tug-blob, .tug-arena.win-b .tug-crew.b .tug-blob { animation: tug-cheer .5s ease-in-out 1s 6 alternate; }
@keyframes tug-cheer { to { translate: 0 -3vh; } }
/* the big splash at the losers' shore: a spout, rings, and droplets */
.tug-splash { position: absolute; bottom: 22%; width: 0; height: 0; z-index: 8; pointer-events: none; }
.tug-splash.a { left: calc(50% + 7vw); } .tug-splash.b { left: calc(50% - 7vw); }
.tug-splash > * { position: absolute; opacity: 0; }
.tug-splash .col { left: -5vh; bottom: -2vh; width: 10vh; height: 26vh; border-radius: 50% 50% 20% 20%; transform-origin: 50% 100%;
    background: linear-gradient(180deg, rgba(235, 250, 255, .95), rgba(150, 215, 240, .7) 60%, rgba(60, 150, 190, 0)); filter: blur(.2vh); }
.tug-splash .ring { left: -9vh; top: -1.6vh; width: 18vh; height: 3.2vh; border-radius: 50%; border: .5vh solid rgba(230, 248, 255, .8); }
.tug-splash b { left: 0; top: 0; width: 1.8vh; height: 1.8vh; border-radius: 50% 50% 50% 0; background: rgba(225, 246, 255, .95); box-shadow: 0 0 1vh rgba(200, 240, 255, .8); }
.tug-splash.go .col { animation: tug-spout 1.3s cubic-bezier(.2, .9, .3, 1) both; }
.tug-splash.go .ring { animation: tug-ring 1.8s ease-out both; }
.tug-splash.go .ring.r2 { animation-delay: .35s; }
.tug-splash.go b { animation: tug-drop 1.4s cubic-bezier(.25, .7, .5, 1) both; animation-delay: calc(var(--k) * .02s); }
@keyframes tug-spout { 0% { opacity: 0; transform: scaleY(.1) scaleX(.6); } 25% { opacity: 1; transform: scaleY(1.1) scaleX(1); } 60% { opacity: .9; transform: scaleY(.8) scaleX(1.3); } 100% { opacity: 0; transform: scaleY(.1) scaleX(1.8); } }
@keyframes tug-ring { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes tug-drop { 0% { opacity: 1; transform: rotate(calc(var(--k) * 26deg - 180deg)) translateY(0); } 55% { opacity: 1; transform: rotate(calc(var(--k) * 26deg - 180deg)) translateY(-18vh); } 100% { opacity: 0; transform: rotate(calc(var(--k) * 26deg - 180deg)) translateY(-10vh) translateX(4vh); } }
/* grunts and sweat while they pull */
.tug-blob { position: relative; }
.tug-grunt { position: absolute; left: 50%; bottom: 100%; z-index: 7; padding: .3vh .8vw; border-radius: 1.2vh; white-space: nowrap; font-weight: 900; font-size: 2.2vh; color: #1c1026; background: #fff;
    box-shadow: 0 .4vh 1vh rgba(0, 0, 0, .4); transform: translateX(-50%); animation: tug-grunt 1.1s cubic-bezier(.2, 1.6, .4, 1) both; }
.tug-grunt::after { content: ""; position: absolute; left: 40%; top: 100%; border: .8vh solid transparent; border-top-color: #fff; border-bottom: 0; }
@keyframes tug-grunt { 0% { opacity: 0; transform: translateX(-50%) scale(.3); } 20% { opacity: 1; transform: translateX(-50%) scale(1.1); } 80% { opacity: 1; transform: translateX(-50%) translateY(-1vh) scale(1); } 100% { opacity: 0; transform: translateX(-50%) translateY(-2vh) scale(.9); } }
.tug-sweat { position: absolute; top: 18%; right: 10%; width: 1.2vh; height: 1.8vh; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #bfe9ff; box-shadow: 0 0 .6vh #bfe9ff; animation: tug-sweat .9s ease-in both; }
@keyframes tug-sweat { from { opacity: 1; transform: translate(0, 0); } to { opacity: 0; transform: translate(1.4vh, 4vh); } }
.tug-next { padding: .8vh 2.4vw; border-radius: 99px; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.6vh; color: #1a1000; background: linear-gradient(180deg, #fff6c8, var(--gold)); animation: tug-callin .5s cubic-bezier(.2, 1.6, .4, 1), tug-nextpulse 1.6s ease-in-out .5s infinite alternate; }
@keyframes tug-nextpulse { to { box-shadow: 0 0 3vh color-mix(in srgb, var(--gold) 70%, transparent); } }

/* ---------- waiting ---------- */
.tug-wait { position: relative; z-index: 2; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0; min-height: 0; height: 100%; }
.tug-wtop { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2vw; align-items: start; }
.tug-wait .wt-qr { z-index: 50; gap: 1.2vh; padding: 2vh 1.6vh; align-self: start; }
.tug-wait .wt-qrbox { width: 30vh; height: 30vh; padding: 1.8vh; }
.tug-wait .wt-url { font-size: 2.6vh; } .tug-wait .wt-qr .wt-cap { font-size: 2.4vh; padding: .7vh 1.6vh; }
.tug-wmain { display: grid; justify-items: center; align-content: start; gap: 1.2vh; min-height: 0; }
.tug-demo { position: relative; min-height: 34vh; }
.tug-demo .tug-arena { position: absolute; left: 0; right: 0; bottom: 0; height: min(100%, 46vh); }
.tug-demo .tug-call { position: absolute; left: 50%; top: -1vh; transform: translateX(-50%); z-index: 8; }
.tug-demo .tug-win { top: 30%; }
.tug-sign { display: flex; align-items: center; gap: 1.2vw; }
.tug-sign span { font-weight: 900; font-size: 9vh; line-height: 1; text-transform: uppercase; color: #fff; text-shadow: 0 .8vh 0 var(--mud2), 0 1.4vh 2vh rgba(0, 0, 0, .5); animation: tug-heave 2.4s ease-in-out infinite; }
.tug-sign span:first-child { color: color-mix(in srgb, var(--tgA) 75%, #fff); }
.tug-sign span:last-child { color: color-mix(in srgb, var(--tgB) 75%, #fff); animation-delay: -1.2s; }
.tug-sign em { font-weight: 900; font-size: 4vh; color: var(--gold); }
.tug-how { display: flex; flex-wrap: wrap; justify-content: center; gap: 1vh 1vw; }
.tug-how span { padding: .9vh 1.4vw; border-radius: 99px; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.1vh; color: #fff; background: rgba(10, 8, 30, .7); box-shadow: inset 0 0 0 .2vh rgba(255, 255, 255, .12); }
@keyframes tug-heave { 50% { transform: translateX(-1vw) rotate(-3deg); } }
.tug-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2vw; align-items: center; width: min(100%, 80vh); }
.tug-teams > div { display: grid; justify-items: center; gap: .4vh; padding: 1.4vh 1vw; border-radius: 2vh; background: color-mix(in srgb, var(--c) 18%, #0b0714); box-shadow: inset 0 0 0 .3vh color-mix(in srgb, var(--c) 55%, transparent); }
.tug-teams b { font-weight: 900; font-size: 3vh; color: #fff; }
.tug-teams span { font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.2vh; color: #d9cfee; }
.tug-teams em { font-weight: 900; font-size: 4vh; color: var(--gold); }

/* ---------- playing ---------- */
.tug-play { position: relative; z-index: 2; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); gap: 1vh; min-height: 0; }
.tug-call { justify-self: center; min-height: 5.4vh; padding: .6vh 3vw; border-radius: 99px; font-weight: 900; font-size: 3.4vh; line-height: 1.3; color: #fff; text-transform: uppercase; letter-spacing: .03em; opacity: 0; }
.tug-call.on { opacity: 1; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 .25vh rgba(255, 255, 255, .15); animation: tug-callin .4s cubic-bezier(.2, 1.6, .4, 1); }
.tug-call.big { color: #1a1000; background: linear-gradient(180deg, #fff6c8, var(--gold)); box-shadow: 0 0 4vh color-mix(in srgb, var(--gold) 60%, transparent); }
@keyframes tug-callin { from { transform: scale(1.4); opacity: 0; } }
.tug-final { position: absolute; left: 50%; top: 58%; z-index: 29; display: grid; justify-items: center; transform: translate(-50%, -50%); padding: 1.6vh 4vw; border-radius: 2vh; color: #fff; text-transform: uppercase; white-space: nowrap; opacity: 0; pointer-events: none;
    background: rgba(10, 6, 20, .85); box-shadow: 0 0 0 .45vh var(--gold), 0 0 6vh color-mix(in srgb, var(--gold) 50%, transparent); }
.tug-final.on { opacity: 1; animation: tug-finalpulse .6s ease-in-out infinite alternate; }
@keyframes tug-finalpulse { to { transform: translate(-50%, -50%) scale(1.06); } }
.tug-final b { font-weight: 900; font-size: 7vh; line-height: 1.05; }
.tug-final span { font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.4vh; color: var(--gold); text-transform: none; }
.tug-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2vw; }
.tug-top .wg-title span { font-size: 5.4vh; } .tug-top .wg-title b { font-size: 4.6vh; }
.tug-bout { justify-self: center; padding: 1vh 2.6vw; border-radius: 99px; font-weight: 900; font-size: 3.4vh; color: #fff; background: #0b0714; box-shadow: 0 0 0 .3vh var(--gold); text-transform: uppercase; }
.tug-clock { display: grid; justify-items: center; width: 11vh; height: 11vh; align-content: center; border-radius: 50%; background: #0b0714; box-shadow: 0 0 0 .4vh var(--gold); }
.tug-clock b { font-weight: 900; font-size: 5vh; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.tug-clock small { font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 1.5vh; color: var(--gold); }
.tug-clock.low { box-shadow: 0 0 0 .4vh var(--blood), 0 0 4vh var(--blood); animation: tug-tick .5s ease-in-out infinite alternate; }
@keyframes tug-tick { to { transform: scale(1.08); } }
.tug-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2vw; align-items: start; }
.tug-vs { align-self: center; font-weight: 900; font-size: 4.4vh; color: var(--gold); }
.tug-side { display: grid; gap: .8vh; padding: 1.4vh 1.4vw; border-radius: 2vh; background: color-mix(in srgb, var(--c) 16%, rgba(8, 5, 16, .85)); box-shadow: inset 0 0 0 .3vh color-mix(in srgb, var(--c) 55%, transparent); }
.tug-side.b { text-align: right; }
.tug-name { display: flex; align-items: baseline; justify-content: space-between; gap: 1vw; }
.tug-side.b .tug-name { flex-direction: row-reverse; }
.tug-name b { font-weight: 900; font-size: 4vh; color: #fff; }
.tug-name .w { font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.2vh; color: var(--gold); }
.tug-meter { height: 1.6vh; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.tug-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .4s ease-out; box-shadow: 0 0 2vh var(--c); }
.tug-side.b .tug-meter i { transform-origin: 100% 50%; }
.tug-stats { font-family: var(--body, Inter), sans-serif; font-weight: 700; font-size: 2vh; color: #d9cfee; }
.tug-tops { display: flex; flex-wrap: wrap; gap: .5vh .8vw; min-height: 3vh; font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 1.9vh; color: #fff; }
.tug-side.b .tug-tops { justify-content: flex-end; }
.tug-tops em { color: var(--gold); }
.tug-count { position: absolute; left: 50%; top: 52%; z-index: 30; transform: translate(-50%, -50%); font-weight: 900; font-size: 26vh; line-height: 1; color: #fff; opacity: 0; pointer-events: none;
    text-shadow: 0 1.4vh 0 var(--mud2), 0 0 6vh color-mix(in srgb, var(--gold) 70%, transparent); }
.tug-count.on { animation: tug-cd .8s cubic-bezier(.2, 1.6, .4, 1) both; }
.tug-count.go { color: var(--gold); font-size: 22vh; }
.tug-count.last { font-size: 30vh; color: rgba(255, 255, 255, .5); text-shadow: 0 0 6vh color-mix(in srgb, var(--blood) 80%, transparent); }
@keyframes tug-cd { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.8); } }
.tug-win { position: absolute; left: 50%; top: 42%; z-index: 30; display: grid; justify-items: center; gap: .8vh; padding: 2vh 4vw; border-radius: 2.4vh; white-space: nowrap; opacity: 0; pointer-events: none;
    transform: translate(-50%, -50%) scale(.6); background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--gold)) 50%, #120a20), #06040c); box-shadow: 0 0 0 .45vh var(--c, var(--gold)), 0 0 8vh color-mix(in srgb, var(--c, var(--gold)) 70%, transparent); }
.tug-win.on { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: opacity .3s, transform .6s cubic-bezier(.2, 1.6, .4, 1); }
.tug-win b { font-weight: 900; font-size: 7vh; color: #fff; }
.tug-win em { font-weight: 900; font-size: 3.4vh; color: #bfe9ff; }
.tug-win span { font-family: var(--body, Inter), sans-serif; font-weight: 800; font-size: 2.8vh; color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .tug *, .tugp * { animation: none !important; } }

/* ================= phone ================= */
.tugp { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.tugp > * { min-width: 0; }
.tugp-head { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 900; font-size: 1.3rem; line-height: 1.1; }
.tugp-head .ic { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; font-size: 1.3rem; background: radial-gradient(circle at 35% 30%, #d8b37a, #8a6232); }
.tugp-head small { display: block; font-family: var(--body, Inter), sans-serif; font-weight: 700; font-size: .8rem; color: var(--muted, #a7a2b0); }
.tugp-team { display: grid; justify-items: center; gap: .3rem; padding: 1.2rem 1rem; border-radius: 16px; text-align: center; background: color-mix(in srgb, var(--c) 22%, var(--panel, #1c1c21)); box-shadow: inset 0 0 0 3px var(--c); }
.tugp-team small { font-weight: 800; color: var(--muted, #a7a2b0); }
.tugp-team b { font-family: var(--display); font-weight: 900; font-size: 1.9rem; color: #fff; }
.tugp-team span { color: var(--muted, #a7a2b0); }
.tugp-cd { font-family: var(--display); font-weight: 900; font-size: 6rem; line-height: 1; text-align: center; color: var(--gold); }
.tugp-rope { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; font-weight: 800; font-size: .8rem; }
.tugp-rope > span { max-width: 6.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c); }
.tugp-track { position: relative; height: 14px; border-radius: 99px; background: repeating-linear-gradient(115deg, #d8b37a 0 6px, #a47a44 6px 11px); }
.tugp-track i { position: absolute; top: -6px; bottom: -6px; width: 3px; border-radius: 2px; }
.tugp-track .la { left: 12%; background: var(--tgA); } .tugp-track .lb { left: 88%; background: var(--tgB); }
.tugp-track b { position: absolute; top: -5px; width: 16px; height: 24px; margin-left: -8px; background: var(--blood); clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); transition: left .4s linear; }
.tugp-time { display: flex; justify-content: space-between; font-weight: 800; }
.tugp-time b { font-family: var(--display); font-size: 1.3rem; color: #fff; font-variant-numeric: tabular-nums; }
.tugp-pad { display: grid; place-items: center; align-content: center; gap: .4rem; width: 100%; min-height: 52vh; border: 0; border-radius: 26px; color: #fff; cursor: pointer;
    background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 85%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 55%, #000));
    box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .25), 0 10px 30px color-mix(in srgb, var(--c) 45%, transparent);
    touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.tugp-pad .big { font-family: var(--display); font-weight: 900; font-size: 4rem; line-height: 1; text-shadow: 0 5px 0 rgba(0, 0, 0, .3); pointer-events: none; }
.tugp-pad .sub { font-weight: 800; opacity: .85; pointer-events: none; }
.tugp-pad.hit { animation: tugp-hit .12s ease-out; }
@keyframes tugp-hit { 50% { transform: scale(.97); filter: brightness(1.15); } }
.tugp-result { display: grid; justify-items: center; gap: .3rem; padding: 1.3rem 1rem; border-radius: 16px; text-align: center; background: color-mix(in srgb, var(--c) 22%, var(--panel, #1c1c21)); box-shadow: inset 0 0 0 3px var(--c); }
.tugp-result .big { font-family: var(--display); font-weight: 900; font-size: 1.9rem; }
.tugp-result.lost { background: linear-gradient(180deg, #4a3018, #2a1a0c); box-shadow: inset 0 0 0 3px #7a5230; }
.tugp-result span { color: var(--gold); font-weight: 800; }

/* readability pass (Oct 28): the small projector text one size up so it reads from the back of the room */
.tug-how span { font-size: 2.5vh; }
.tug-teams span { font-size: 2.5vh; }
