/* Cinco Doce poster look (Jeremy 11-10, mockups A + B): gold script, agave mark, Miami skyline.
   TV: ivory by day (html.light), night gold after dark. Phones: night gold. Turned on per event in Setup → Venue TV. */
html.theme-cinco{--gold:#d6a649;--gold-soft:rgba(214,166,73,.22);--head:#f5dfa4;
  --bg:#0b0907;--panel:rgba(22,18,13,.82);--panel2:rgba(34,27,18,.85);--line:rgba(214,166,73,.26);--ink:#f3eee2;--muted:#b9ad93;--accent:#c8962f;--serve:#ffe08a}
html.theme-cinco.light{--gold:#b07d1f;--gold-soft:rgba(176,125,31,.18);--head:#1f1a12;
  --bg:#f6efe0;--panel:rgba(255,255,255,.9);--panel2:rgba(250,245,234,.95);--line:rgba(176,125,31,.25);--ink:#231d14;--muted:#7c6d55;--accent:#a8741a;--live:#15803d;--serve:#b45309}
.theme-cinco .gold-text{background:linear-gradient(180deg,#f8e19a,#d29a35 55%,#a26c18);-webkit-background-clip:text;background-clip:text;color:transparent}

/* ---------- TV ---------- */
html.theme-cinco body[data-mode="tv"]{background:radial-gradient(ellipse at 50% 0,#2a2114,#0b0907 70%)}
html.theme-cinco.light body[data-mode="tv"]{background:linear-gradient(180deg,#fbf7ee,#f1e6cf)}
.theme-cinco [data-mode="tv"] #live{position:relative}
.theme-cinco [data-mode="tv"] #live::before{content:'';position:absolute;right:-3vw;top:12vh;width:34vw;height:66vh;background:var(--gold);
  -webkit-mask:url(agave.png) center/contain no-repeat;mask:url(agave.png) center/contain no-repeat;opacity:.07;pointer-events:none}
.theme-cinco .tv{position:relative;background:none!important;padding:3vh 2.6vw 3.4vh}
.theme-cinco .tv::before{content:'';position:absolute;inset:1.1vh .7vw;border:.2vh solid var(--gold);border-radius:1.8vh;pointer-events:none;z-index:3;
  box-shadow:inset 0 0 0 .55vh transparent,inset 0 0 0 .75vh var(--gold-soft)}
.theme-cinco .tv::after{content:'';position:absolute;left:0;right:0;bottom:0;height:40vh;background:url(skyline.jpg) center bottom/cover;z-index:0;pointer-events:none;
  -webkit-mask:linear-gradient(to top,#000 10%,transparent 100%);mask:linear-gradient(to top,#000 10%,transparent 100%);opacity:.85}
.theme-cinco.light .tv::after{opacity:.26}
.theme-cinco .tv>*{position:relative;z-index:1}
.theme-cinco .tv-top{gap:1.4vw}
.theme-cinco .tv-top img{content:url(agave.png);opacity:0;width:0;margin:0}
.theme-cinco .tv-top::before{content:'';width:6.4vh;height:7vh;flex:none;background:linear-gradient(160deg,#f6dc8a,#c28a28 60%,#8a5a12);
  -webkit-mask:url(agave.png) center/contain no-repeat;mask:url(agave.png) center/contain no-repeat}
.theme-cinco .tv-top b{font:italic 700 6.4vh/1.05 Georgia,'Times New Roman',serif;letter-spacing:-.01em;
  background:linear-gradient(180deg,#f8e19a,#d29a35 55%,#a26c18);-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.4vw}
.theme-cinco.light .tv-top b{background:linear-gradient(180deg,#d9a943,#a8741a 55%,#7a4f0c);-webkit-background-clip:text;background-clip:text}
.theme-cinco .tv-clock{font-family:Georgia,serif;font-size:4.2vh}
.theme-cinco .tv-court,.theme-cinco .tv-panel,.theme-cinco .tv-qr{border:.15vh solid var(--line);border-radius:1.8vh;backdrop-filter:blur(6px);box-shadow:0 1vh 3vh rgba(0,0,0,.45)}
.theme-cinco.light .tv-court,.theme-cinco.light .tv-panel,.theme-cinco.light .tv-qr{box-shadow:0 .8vh 2.4vh rgba(80,60,20,.12)}
.theme-cinco .tv-court.on{border-color:var(--gold);box-shadow:0 1vh 3vh rgba(0,0,0,.45),0 0 2.4vh var(--gold-soft)}
.theme-cinco .tv-court header b,.theme-cinco .tv-panel h2,.theme-cinco .tv-qr b{font-family:Georgia,serif;color:var(--head)}
.theme-cinco .tv-badge.live{color:#fff;background:#16a34a;padding:.5vh .8vw;border-radius:99px}.theme-cinco .tv-badge.live .tv-dot{background:#fff}
.theme-cinco .tv-p{background:linear-gradient(180deg,#e9c46a,#b8862b);color:#1d1407}
.theme-cinco .tv-team.won .tv-names,.theme-cinco .tv-sets .w{color:var(--gold)}
.theme-cinco .tv-pool tr.q td:first-child{color:var(--gold);box-shadow:inset .35vh 0 var(--gold)}.theme-cinco .tv-key i{background:var(--gold)}
.theme-cinco .tv-upnext header b{font-family:Georgia,serif;color:var(--gold)}.theme-cinco .tv-up-c{color:var(--gold)}
.theme-cinco .tv-flash{animation:tvf-gold 1.4s ease-out}
@keyframes tvf-gold{0%{background:rgba(214,166,73,.35);border-color:var(--gold)}100%{background:var(--panel)}}
.theme-cinco .tv-bar i{background:var(--gold)}

/* ---------- phones (fans, Calcutta) ---------- */
/* Jeremy 11-11 (Ani: scrolling ran into a big dark empty area on iPhone): no fixed background on html (iOS Safari
   paints it per document height), the glow sits on a fixed layer instead, and no rubber-band past the content */
html.theme-cinco{background:#0b0907;overscroll-behavior-y:none}
html.theme-cinco body:not([data-mode="tv"])::before{content:'';position:fixed;inset:0;background:radial-gradient(120% 60% at 50% 0,#2a2114,#0b0907 70%);pointer-events:none;z-index:-2}
html.theme-cinco body:not([data-mode="tv"]){background:transparent}
html.theme-cinco body:not([data-mode="tv"])::after{content:'';position:fixed;left:0;right:0;bottom:0;height:34vh;background:url(skyline.jpg) center bottom/cover;
  -webkit-mask:linear-gradient(to top,#000,transparent);mask:linear-gradient(to top,#000,transparent);opacity:.22;pointer-events:none;z-index:-1}
.theme-cinco .lv-top{border-bottom:1px solid var(--line);margin-bottom:10px}
.theme-cinco .lv-top:not(.slim) .lv-title b{font:italic 700 24px/1.1 Georgia,serif;background:linear-gradient(180deg,#f8e19a,#d29a35 55%,#a26c18);
  -webkit-background-clip:text;background-clip:text;color:transparent;padding-right:4px}
/* Jeremy 11-11: the KAOS swirl stays next to KAOS; the Cinco agave sits next to the event name */
.theme-cinco .lv-top:not(.slim) .lv-title{position:relative;padding-left:36px}
.theme-cinco .lv-top:not(.slim) .lv-title::before{content:'';position:absolute;left:0;top:0;width:28px;height:32px;background:linear-gradient(160deg,#f6dc8a,#c28a28 60%,#8a5a12);
  -webkit-mask:url(agave.png) center/contain no-repeat;mask:url(agave.png) center/contain no-repeat}
.theme-cinco .lv-pts,.theme-cinco .lv-bpts{background:linear-gradient(180deg,#ecc86c,#b8862b);color:#1d1407;font-weight:700}
.theme-cinco .cx-org-tag,.theme-cinco .cx-pill{background:rgba(214,166,73,.18);color:#f2d58f}
.theme-cinco .lv-back{color:var(--gold)}
.theme-cinco .lv-tile,.theme-cinco .lv-favs{background:var(--panel);border-color:var(--line)}
.theme-cinco .lv-tile:hover{border-color:var(--gold)}
.theme-cinco .lv-chips button,.theme-cinco .lv-fav,.theme-cinco .lv-pick input,.theme-cinco .lv-pick button{background:rgba(40,32,20,.85);border-color:var(--line)}
.theme-cinco .lv-chips button.on{background:linear-gradient(180deg,#e9c46a,#b8862b);border-color:#d6a649;color:#1d1407}
/* Calcutta: gold bid buttons, bronze sheet */
.theme-cinco .cx{--cx-p:#c8962f}
.theme-cinco .cx-top{background:transparent}
.theme-cinco .cx-h h2{font:italic 700 24px Georgia,serif;color:var(--head)}
.theme-cinco .cx-menu .on,.theme-cinco .cx-divs button.on{color:var(--head);border-bottom-color:var(--gold)}
.theme-cinco .cx-price,.theme-cinco .cx-go,.theme-cinco .cx-chips button.on,.theme-cinco .cx-small.on{background:linear-gradient(180deg,#ecc86c,#b8862b);color:#1d1407!important;box-shadow:0 2px 10px rgba(214,166,73,.25)}
.theme-cinco .cx-price.nob{background:rgba(58,46,26,.9);color:#e9cf8f!important;box-shadow:none}
.theme-cinco .cx-price.static{background:rgba(40,32,20,.85);color:var(--ink)!important;box-shadow:none}
.theme-cinco .cx-price.lead,.theme-cinco .cx-go.green{background:linear-gradient(180deg,#2fbf73,#167a47);color:#fff!important}
.theme-cinco .cx-sheet{background:linear-gradient(180deg,#221a10,#15110b);border-top:1px solid var(--gold)}
.theme-cinco .cx-bumps button{background:rgba(214,166,73,.16);color:#f2d58f}.theme-cinco .cx-bumps button.m{background:rgba(40,32,20,.85);color:var(--muted)}
.theme-cinco .cx-amt input{border-bottom-color:rgba(214,166,73,.5)}
.theme-cinco .cx-ghost,.theme-cinco .cx-small,.theme-cinco .cx-chips button{background:rgba(40,32,20,.85)}
.theme-cinco .cx-search{background:#0b0907}
.theme-cinco .cx-card{border-color:var(--gold)}
.theme-cinco .cx-hero{background:radial-gradient(ellipse at 50% 0,#3a2410 0,rgba(20,15,9,.9) 70%);border-color:rgba(214,166,73,.4);position:relative;overflow:hidden}
.theme-cinco .cx-hero::before{content:'';position:absolute;right:-30px;top:-10px;width:160px;height:180px;background:var(--gold);opacity:.08;
  -webkit-mask:url(agave.png) center/contain no-repeat;mask:url(agave.png) center/contain no-repeat;pointer-events:none}

/* Jeremy 11-11: division tabs keep their own colors under the Cinco theme too */
.theme-cinco .cx .cx-divs.cx-big button{border-bottom-width:1px}
.theme-cinco .cx .cx-divs.cx-big button.on{color:#fff}
