/* ==========================================================================================
   CAPE CLASH - fair.css - W107 lane D (FAIR): the versus strip. (The FAIR PLAY page's rules are retired with the page - D30.)
   Markup: index.html (#vsStrip inside #gameWrap). Code: public/js/fairui.js.
   Tokens come from index.html's :root (--ink --paper --pow --red --panel) and hud.css (--cc-hud-h, --cc-strip-h).
   ========================================================================================== */

/* ---- THE VERSUS STRIP: a band over the top of the rival's board, under the HUD and the mode strip, exactly where the
        TEAM-UP splash sits. It takes taps (the minis open a card); a tap anywhere else puts it away. */
#vsStrip{position:absolute;left:0;right:0;margin:0 auto;max-width:460px;box-sizing:border-box;
  top:calc(var(--sa-top,0px) + var(--cc-hud-h,44px) + var(--cc-strip-h,44px) + 6px);
  z-index:11;display:grid;grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);align-items:start;gap:0 4px;
  padding:6px 6px 6px;background:rgba(18,13,40,.95);border:3px solid var(--ink);border-radius:12px;
  box-shadow:0 4px 0 #120d28;color:var(--paper);cursor:pointer;
  transform:translateY(-130%);opacity:0;transition:transform .2s ease-out,opacity .16s linear;}
#vsStrip.hidden{display:none;}
#vsStrip.vsIn{transform:translateY(0);opacity:1;}
#vsStrip.vsStill{transform:none;transition:none;}
#vsStrip.vsStill:not(.vsIn){opacity:0;}
#vsStrip.vsStill.vsIn{opacity:1;}
#vsStrip .vsSide{min-width:0;display:flex;flex-direction:column;align-items:center;gap:1px;}
#vsStrip .vsIdentity{display:flex;align-items:center;justify-content:center;gap:6px;max-width:100%;min-width:0;}
#vsStrip .vsIdentity .vsName{min-width:0;flex:0 1 auto;}
#vsStrip .vsName{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:'Bangers',cursive;
  font-size:15px;letter-spacing:.6px;line-height:1.1;padding:0 6px;border-radius:6px;}
#vsStrip .vsYou .vsName{background:#4980D5;color:#fff;}
#vsStrip .vsThem .vsName{background:#e03131;color:#fff;}
#vsStrip .vsTro{font-size:9px;font-weight:800;letter-spacing:.3px;color:#cfc6ee;line-height:1.2;}
#vsStrip .vsPow{display:flex;align-items:baseline;gap:4px;line-height:1;}
#vsStrip .vsPowL{font-size:9px;font-weight:800;letter-spacing:.4px;color:#bdb3d8;}
#vsStrip .vsPowN{font-family:'Bangers',cursive;font-size:26px;letter-spacing:.6px;color:var(--pow);
  -webkit-text-stroke:1px #1b1430;}
#vsStrip .vsPowNone{color:#8d86ad;}
#vsStrip .vsMinis{display:flex;gap:1px;justify-content:center;margin-top:3px;}
#vsStrip .vsMini{position:relative;width:20px;height:20px;padding:0;border:1px solid #4a3d85;border-radius:5px;background:#241c4a;
  cursor:pointer;flex:0 0 auto;}
#vsStrip .vsMini canvas{display:block;width:20px;height:20px;}
#vsStrip .vsLv{position:absolute;right:-2px;bottom:-3px;min-width:11px;height:11px;line-height:11px;padding:0 1px;box-sizing:border-box;
  font-size:8px;font-weight:900;text-align:center;color:#1b1430;background:var(--pow);border-radius:6px;border:1px solid #1b1430;}
#vsStrip .vsGem{position:absolute;left:-1px;top:-2px;width:6px;height:6px;border-radius:2px;transform:rotate(45deg);background:#9be15d;border:1px solid #1b1430;}
#vsStrip .vsNote{min-height:11px;font-size:9px;font-weight:900;letter-spacing:.3px;color:#ffd23f;text-align:center;line-height:1.2;}
#vsStrip .vsMid{display:flex;flex-direction:column;align-items:center;gap:3px;padding-top:2px;}
#vsStrip .vsVs{font-family:'Bangers',cursive;font-size:22px;letter-spacing:1px;color:#fff;-webkit-text-stroke:2px #1b1430;line-height:1;}
#vsStrip .vsChip{max-width:100%;font-family:'Bangers',cursive;font-size:11px;letter-spacing:.5px;line-height:1.15;text-align:center;
  background:#2f9e44;color:#fff;border:2px solid #1b1430;border-radius:999px;padding:1px 6px;box-shadow:0 2px 0 #120d28;}
#vsStrip[data-kind="computer"] .vsChip{background:#5f3dc4;}
#vsStrip[data-kind="friendly"] .vsChip{background:#1971c2;}
#vsStrip .vsSub{font-size:8px;font-weight:900;letter-spacing:.2px;color:#cfc6ee;text-align:center;line-height:1.2;}

/* ---- a wide window: the strip stays in the play column (widescreen.css's rule for every full-window layer) */
@media (min-width:540px){
  #vsStrip{left:var(--cc-col-x);right:var(--cc-col-x);width:auto;
    top:calc(var(--sa-top,0px) + var(--cc-battle-y,0px) + var(--cc-hud-h,44px) + var(--cc-strip-h,44px) + 6px);}
}


