/* Premier Pick, "veto" look (veto.html only): CS2 Premier map-veto screen. 7 drops on an ellipse around a heptagon radar, topo background.
   Board geometry: --aw arena width, --ah arena height (fills the free screen height on phones), --cw/--ch card, --rx/--ry ellipse radii, --cy its centre.
   --ry = (ah - ch) / 1.901: the top card (sin -1) and the two bottom ones (sin .901) touch the arena edges exactly. Colours: ours green, theirs brand orange. */
html, body.vt-body { background-color: #0C151C; }
body.vt-body { background: url(img/veto-topo.svg) center top / cover no-repeat, radial-gradient(ellipse 90% 60% at 50% 35%, #1B2B35 0%, #0C151C 72%); }
.vt-body .top { background: rgba(7, 13, 18, .55); }
.vt-body .top:before { display: none; }
@media (min-width: 768px) { body.vt-body:before { background: radial-gradient(ellipse 120% 100% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%); } }

.vt { --mine: #2ED158; --theirs: #FC5530; }
.screen.vt { padding: 6px 6px 10px; }
.vt-top { display: flex; align-items: center; justify-content: center; gap: 10px; }
.vt-h1 { font-size: 22px; line-height: 24px; }
.vt-chip { padding: 3px 10px; font-size: 12px; }
.screen.vt .callout { display: none !important; }  /* the status line + the lit RANDOM say it (as on desktop /web); keeps the button right under the board */
.screen.vt .bottom { margin-top: 0; padding-top: 8px; }

/* status line with the CS2 spinner */
.vt-status { margin: 6px 0 0; min-height: 40px; }
.vt-line { display: flex; align-items: center; justify-content: center; gap: 10px; }
.vt-status b { text-transform: none; font-size: 17px; line-height: 21px; letter-spacing: .2px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.vt-spin { display: none; flex: none; width: 16px; height: 16px; border: 2.5px solid #fff; border-right-color: transparent; border-bottom-color: transparent; border-radius: 50%; animation: vtSpin .8s linear infinite; }
.vt-wait .vt-spin { display: block; }
@keyframes vtSpin { to { transform: rotate(360deg); } }

/* arena */
.vt-arena { --vh: 100vh; --aw: min(calc(100vw - 12px), 470px); --cw: calc(var(--aw) * .265); --ch: calc(var(--cw) * 1.08);
  --ah: clamp(calc(var(--aw) * 1.2), calc(var(--vh) - 280px), calc(var(--aw) * 1.45));
  --rx: calc(var(--aw) / 2 - var(--cw) / 2 - 2px); --ry: calc((var(--ah) - var(--ch)) / 1.901); --cy: calc(var(--ch) / 2 + var(--ry));
  position: relative; flex: none; width: var(--aw); height: var(--ah); margin: 4px auto 0; }
@supports (height: 100svh) { .vt-arena { --vh: 100svh; } }
.vt-cards { position: absolute; inset: 0; }
.vt-radar { position: absolute; left: 50%; top: var(--cy); width: calc(var(--rx) * 2.048); height: calc(var(--ry) * 2.048);
  margin: calc(var(--ry) * -1.024) 0 0 calc(var(--rx) * -1.024); overflow: visible; pointer-events: none; }
.vt-radar * { vector-effect: non-scaling-stroke; }
.vt-web polygon { fill: none; stroke: rgba(255,255,255,.15); stroke-width: .8; }
.vt-web polygon:last-of-type { stroke: rgba(255,255,255,.32); stroke-width: 1.2; }
.vt-web line { stroke: rgba(255,255,255,.16); stroke-width: .8; }
.vt-poly { stroke-width: 1.6; stroke-linejoin: round; }
.vt-poly_opp { fill: rgba(252,85,48,.38); stroke: #FF7A55; }
.vt-poly_me { fill: rgba(46,209,88,.55); stroke: #5BEA85; }
.vt-rnd .vt-radar { opacity: .5; transition: opacity .5s; }

/* card */
.vt-card { position: absolute; left: calc(50% + var(--rx) * var(--c)); top: calc(var(--cy) + var(--ry) * var(--s));
  width: var(--cw); height: var(--ch); margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(var(--cw) * .06) 3px calc(var(--cw) * .055);
  background: linear-gradient(180deg, #1D2C36 0%, #111B22 100%); border: 1.5px solid rgba(255,255,255,.13); border-radius: 4px;
  box-shadow: 0 8px 18px rgba(0,0,0,.45); color: #fff; text-align: center; cursor: default;
  transition: filter .35s, opacity .35s, border-color .2s, box-shadow .2s, transform .2s;
  animation: vtIn .45s ease backwards; animation-delay: var(--d, 0ms); }
.vt-card:before { content: ""; position: absolute; inset: 0; border-radius: 3px; background: radial-gradient(circle at 50% 58%, var(--rc) 0%, transparent 62%); opacity: .3; pointer-events: none; }
.vt-card:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc); border-radius: 0 0 3px 3px; }
.vt-card > * { position: relative; }
.vt-card__name { font-weight: 700; font-size: calc(var(--cw) * .125); line-height: 1.1; text-transform: uppercase; letter-spacing: .3px; text-shadow: 0 1px 4px #000; white-space: nowrap; }
.vt-card__name em { font-style: normal; font-size: 1.18em; }
.vt-card__img { width: 64%; height: auto; max-height: 56%; object-fit: contain; transition: filter .25s, transform .25s; }
.vt-card__val { font-weight: 600; font-size: calc(var(--cw) * .092); line-height: 1.15; color: #9FB0BD; text-transform: uppercase; transition: opacity .2s; }
.vt-card__check { position: absolute; left: 50%; top: 50%; width: 52%; height: 52%; margin: -30% 0 0 -26%; fill: none; stroke: var(--pc); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.7)); opacity: 0; transform: scale(.3) rotate(-12deg); transition: opacity .15s, transform .35s cubic-bezier(.3,1.7,.5,1); pointer-events: none; }
.vt-card__lab { position: absolute; left: 2px; right: 2px; bottom: calc(var(--cw) * .06); font-weight: 700; font-size: calc(var(--cw) * .096); line-height: 1.1; text-transform: uppercase; color: var(--pc); text-shadow: 0 1px 3px #000, 0 0 8px rgba(0,0,0,.8); }

/* my turn: free cards are crisp and tappable */
.vt-card.free { border-color: rgba(19,205,255,.45); cursor: pointer; }
.vt-card.free:active { transform: scale(.95); }
@media (hover: hover) { .vt-card.free:hover { border-color: var(--me); box-shadow: 0 0 0 1px var(--me), 0 0 16px rgba(19,205,255,.45); transform: scale(1.04); } }
.vt-nudge .vt-card.free { animation: vtIn .45s ease backwards, vtNudge 1.6s ease-in-out .6s infinite; animation-delay: var(--d, 0ms), calc(var(--d, 0ms) + .6s); }
/* picked: bright frame + big check + YOUR / THEIR PICK; ours green, theirs orange */
.vt-card.me { --pc: var(--mine); --pg: rgba(46,209,88,.42); }
.vt-card.opp { --pc: var(--theirs); --pg: rgba(252,85,48,.45); }
.vt-card.on { border-color: var(--pc); box-shadow: 0 0 0 1px var(--pc), 0 0 18px var(--pg), 0 8px 18px rgba(0,0,0,.45); z-index: 2; }
.vt-card.on .vt-card__img { filter: brightness(.62); }
.vt-card.on .vt-card__check { opacity: 1; transform: none; }
.vt-card.on .vt-card__val { opacity: 0; }
/* waiting (opponent's turn / pool ready): unpicked cards blurred and dimmed */
.vt-card.vt-dim { filter: blur(2.2px) brightness(.5) saturate(.7); }
.vt-card.scan { filter: none; border-color: var(--theirs); box-shadow: 0 0 0 1px var(--theirs), 0 0 18px rgba(252,85,48,.5); z-index: 3; }
.vt-card.lock { animation: vtLock .5s ease; }
.vt-card.hit { animation: vtHit .3s ease; }
/* RANDOM: the light runs round the 4 picks */
.vt-rnd .vt-card:not(.on) { opacity: .12; filter: blur(3px); }
.vt-card.vt-hl { border-color: #FFD24D; box-shadow: 0 0 0 2px #FFD24D, 0 0 26px rgba(255,210,77,.7); transform: scale(1.08); z-index: 4; transition: none; }
.vt-card.vt-hl .vt-card__img { filter: none; }
.vt-card.vt-win { border-color: #FFD24D; z-index: 5; animation: vtWin .9s ease-in-out infinite alternate; transform: scale(1.12); }
.vt-card.vt-win .vt-card__img { filter: none; transform: scale(1.08); }
.vt-card.vt-lose { opacity: .35; filter: grayscale(.6) brightness(.6); }

@keyframes vtIn { 0% { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes vtNudge { 0%, 100% { box-shadow: 0 8px 18px rgba(0,0,0,.45); } 50% { box-shadow: 0 0 0 1px var(--me), 0 0 14px rgba(19,205,255,.45); } }
@keyframes vtLock { 0% { transform: scale(.8); filter: brightness(1.8); } 55% { transform: scale(1.12); } to { transform: none; filter: none; } }
@keyframes vtHit { 0% { transform: none; } 35% { transform: scale(1.1); } to { transform: none; } }
@keyframes vtWin { from { box-shadow: 0 0 0 2px #FFD24D, 0 0 18px rgba(255,210,77,.5); } to { box-shadow: 0 0 0 3px #FFD24D, 0 0 40px rgba(255,210,77,.95); } }
@media (prefers-reduced-motion: reduce) { .vt-card, .vt-card.vt-win, .vt-nudge .vt-card.free { animation: none; } }

.vt-demo { position: fixed; left: 8px; bottom: 8px; z-index: 99; padding: 2px 7px; background: #FFD24D; color: #111; font: 700 11px/16px "Rouben", sans-serif; letter-spacing: 1px; pointer-events: none; }

@media (min-width: 768px) {
  .vt-arena { --aw: max(420px, min(640px, calc(100vh - 250px))); --cw: calc(var(--aw) * .23); --ah: var(--aw); }
  .vt-h1 { font-size: 30px; line-height: 32px; }
  .vt-status b { font-size: 20px; line-height: 24px; }
  .vt-spin { width: 18px; height: 18px; }
}
