/* =====================================================================================================
   WACK DRIP UI · the house style of wackdrip.co merch: hand-drawn bubble letters, thick black ink,
   die-cut white sticker edges, pure CMY colour (yellow / cyan / magenta) and doodles everywhere.
   Loaded last; every rule is scoped under html.wack-ui (set by wack-ui.js) so it can be switched off.
   ===================================================================================================== */
@font-face{font-family:WackBubble;src:url('assets/fonts/sniglet-latin-800-normal.woff2') format('woff2');font-weight:800;font-style:normal;font-display:swap}
:root{--wk-y:#fff024;--wk-c:#31aee6;--wk-m:#f2227b;--wk-ink:#111014;--wk-ink2:#1b1920;--wk-paper:#fffdf5;--wk-muted:#cfc9d6;
  --wk-bubble:WackBubble,Fredoka,'Arial Rounded MT Bold',Arial,sans-serif;--wk-round:Fredoka,WackBubble,Arial,sans-serif;
  --wk-cut:0 0 0 4px var(--wk-paper);--wk-r:20px 14px 24px 12px;--wk-doodles:url('assets/brand/doodles.svg')}
html.wack-ui body{--display:var(--wk-bubble);--pink:var(--wk-m);--blue:var(--wk-c);--yellow:var(--wk-y);--lime:var(--wk-y)}

/* ---------- bubble letters (built by wack-ui.js: one span per letter) ---------- */
html.wack-ui .wk-bubble{font-family:var(--wk-bubble)!important;font-weight:800!important;letter-spacing:.01em!important;text-shadow:none!important;color:inherit;
  filter:drop-shadow(2.5px 0 0 var(--wk-paper)) drop-shadow(-2.5px 0 0 var(--wk-paper)) drop-shadow(0 2.5px 0 var(--wk-paper)) drop-shadow(0 -2.5px 0 var(--wk-paper)) drop-shadow(4px 5px 0 var(--wk-ink))}
html.wack-ui .wk-bubble{white-space:normal;overflow-wrap:normal;word-break:keep-all;text-wrap:balance}
html.wack-ui .wk-word{display:inline-block;white-space:nowrap}
html.wack-ui .wk-l{display:inline-block;-webkit-text-stroke:.085em var(--wk-ink);paint-order:stroke fill;transform:rotate(var(--r,0deg));line-height:1}
html.wack-ui .wk-y{color:var(--wk-y)}html.wack-ui .wk-c{color:var(--wk-c)}html.wack-ui .wk-w{color:var(--wk-paper)}html.wack-ui .wk-m{color:var(--wk-m)}
html.wack-ui .wk-bubble em{font-style:normal}

/* ---------- type ---------- */
html.wack-ui body h1,html.wack-ui body h2,html.wack-ui body h3,html.wack-ui body .callout,html.wack-ui body .eyebrow{font-family:var(--wk-bubble);font-weight:800;letter-spacing:.02em}
html.wack-ui body .eyebrow{font-size:12px;letter-spacing:.14em;color:var(--wk-y)}
html.wack-ui body button,html.wack-ui body select{font-family:var(--wk-round);font-weight:700}

/* ---------- boot splash: black tee covered in doodles, bubble title, toast sticker ---------- */
html.wack-ui .boot-splash{background:radial-gradient(circle at 18% 22%,#f2227b33,transparent 34%),radial-gradient(circle at 82% 70%,#31aee633,transparent 36%),radial-gradient(circle at 60% 18%,#fff02422,transparent 30%),var(--wk-doodles),var(--wk-ink);background-size:auto,auto,auto,320px 320px,auto}
html.wack-ui .boot-splash img:first-child{width:clamp(150px,22vw,220px);filter:drop-shadow(3px 0 0 var(--wk-paper)) drop-shadow(-3px 0 0 var(--wk-paper)) drop-shadow(0 3px 0 var(--wk-paper)) drop-shadow(0 -3px 0 var(--wk-paper)) drop-shadow(5px 6px 0 #000)}
html.wack-ui .boot-splash strong{font-size:clamp(40px,11vw,104px)!important;transform:rotate(-3deg)}
html.wack-ui .boot-splash>span{font:800 13px var(--wk-round);letter-spacing:.24em;color:var(--wk-paper);background:var(--wk-ink);border:2px solid var(--wk-paper);border-radius:999px;padding:6px 14px}
html.wack-ui .boot-progress{appearance:none;height:16px;border:3px solid var(--wk-ink);border-radius:999px;box-shadow:var(--wk-cut),4px 5px 0 4px #000;background:var(--wk-paper);overflow:hidden}
html.wack-ui .boot-progress::-webkit-progress-bar{background:var(--wk-paper)}
html.wack-ui .boot-progress::-webkit-progress-value{background:repeating-linear-gradient(-45deg,var(--wk-y) 0 12px,var(--wk-c) 12px 24px,var(--wk-m) 24px 36px)}
html.wack-ui .boot-progress::-moz-progress-bar{background:repeating-linear-gradient(-45deg,var(--wk-y) 0 12px,var(--wk-c) 12px 24px,var(--wk-m) 24px 36px)}
html.wack-ui .wk-toast{width:clamp(96px,14vw,140px);margin-top:6px;animation:wkBob 1.6s ease-in-out infinite alternate}
@keyframes wkBob{from{transform:translateY(0) rotate(-4deg)}to{transform:translateY(-8px) rotate(3deg)}}

/* ---------- top bar ---------- */
html.wack-ui body .topline{background:var(--wk-ink)!important;border-bottom:3px solid var(--wk-paper)!important;box-shadow:0 3px 0 var(--wk-ink)}
html.wack-ui body .topline .brand{height:30px;filter:drop-shadow(1.5px 0 0 var(--wk-paper)) drop-shadow(-1.5px 0 0 var(--wk-paper)) drop-shadow(0 1.5px 0 var(--wk-paper)) drop-shadow(0 -1.5px 0 var(--wk-paper))}
html.wack-ui body .edition{font:800 12px var(--wk-round);letter-spacing:.12em;color:var(--wk-paper)}
html.wack-ui body .utilities button{background:var(--wk-paper)!important;color:var(--wk-ink)!important;border:3px solid var(--wk-ink)!important;border-radius:12px 16px 11px 15px!important;box-shadow:0 0 0 2px var(--wk-paper),3px 4px 0 2px var(--wk-ink)!important;font:800 12px var(--wk-round)!important;letter-spacing:.06em}
html.wack-ui body .utilities button:nth-child(3n+1){background:var(--wk-y)!important}html.wack-ui body .utilities button:nth-child(3n+2){background:var(--wk-c)!important}

/* ---------- main menu ---------- */
html.wack-ui body.menu #overlay,html.wack-ui body.rally #overlay{background:radial-gradient(circle at 12% 18%,#f2227b26,transparent 30%),radial-gradient(circle at 92% 82%,#31aee626,transparent 34%),var(--wk-doodles),#121016f2!important;background-size:auto,auto,320px 320px,auto!important}
html.wack-ui body .start-card .brand-title{font-size:clamp(58px,6.6vw,104px)!important;transform:rotate(-3deg);margin:10px 0 6px!important;white-space:nowrap}
html.wack-ui body .start-card .brand-title em:after{display:none}
html.wack-ui body .tagline{font:700 17px var(--wk-round)!important;color:var(--wk-paper)!important}
html.wack-ui body .brand-host img{border:3px solid var(--wk-ink)!important;box-shadow:0 0 0 3px var(--wk-paper),3px 4px 0 3px #000;background:var(--wk-y)!important;border-radius:50%}
html.wack-ui body .brand-host>span{color:var(--wk-y)!important;font-family:var(--wk-bubble)!important}
html.wack-ui body .menu-player label{color:var(--wk-c)!important;font:800 11px var(--wk-round)!important;letter-spacing:.14em}
html.wack-ui body .menu-player p{color:var(--wk-muted)!important}
/* tabs: sticker pills, the open one is yellow and tilted */
html.wack-ui body :is(.brand-tabs,.fx-tabs,.score-tabs,.acct-tabs){gap:10px;border-bottom:0!important;flex-wrap:wrap}
html.wack-ui body :is(.brand-tabs,.fx-tabs,.score-tabs,.acct-tabs) button{background:transparent!important;color:var(--wk-paper)!important;border:3px dashed #fffdf566!important;border-radius:999px!important;box-shadow:none!important;font:800 15px var(--wk-bubble)!important;letter-spacing:.04em!important;min-height:42px;padding:6px 16px;transform:none!important}
html.wack-ui body .brand-tabs button{font-size:20px!important}
html.wack-ui body :is(.brand-tabs button[aria-pressed=true],.fx-tabs button[aria-selected=true],.score-tabs button[aria-selected=true],.acct-tabs button[aria-selected=true],.acct-tabs button.on,.score-tabs button.active){background:var(--wk-y)!important;color:var(--wk-ink)!important;border:3px solid var(--wk-ink)!important;box-shadow:0 0 0 3px var(--wk-paper),4px 5px 0 3px #000!important;transform:rotate(-2deg)!important}
/* mode buttons: one sticker per mode, CMY + paper, ink outline, a doodle chip */
html.wack-ui body .main-actions{gap:14px!important}
html.wack-ui body .main-actions .mode-button{background:var(--wk-paper)!important;color:var(--wk-ink)!important;border:3px solid var(--wk-ink)!important;border-radius:var(--wk-r)!important;box-shadow:0 0 0 4px var(--wk-paper),6px 7px 0 4px #000!important;transform:rotate(-.6deg);transition:transform .14s,box-shadow .14s;min-height:84px}
html.wack-ui body .main-actions #start,html.wack-ui body .main-actions #rallyMode,html.wack-ui body .main-actions #dripShop,html.wack-ui body .main-actions #unlockCodes{background:var(--wk-y)!important}
html.wack-ui body .main-actions #trainingMode,html.wack-ui body .main-actions #adventureMode,html.wack-ui body .main-actions #duels,html.wack-ui body .main-actions #customize{background:var(--wk-c)!important}
html.wack-ui body .main-actions #storyMode,html.wack-ui body .main-actions #dripOpsMode,html.wack-ui body .main-actions #cardCollection,html.wack-ui body .main-actions #leaderboards{background:var(--wk-m)!important}
html.wack-ui body .main-actions #dailyMode,html.wack-ui body .main-actions #tournaments,html.wack-ui body .main-actions #playerRecords,html.wack-ui body .main-actions #menuExitGame{background:var(--wk-paper)!important}
:is(html.wack-ui body .main-actions #storyMode,html.wack-ui body .main-actions #dripOpsMode,html.wack-ui body .main-actions #cardCollection,html.wack-ui body .main-actions #leaderboards)>span{color:var(--wk-paper)!important}
:is(html.wack-ui body .main-actions #storyMode,html.wack-ui body .main-actions #dripOpsMode,html.wack-ui body .main-actions #cardCollection,html.wack-ui body .main-actions #leaderboards) small{color:#fffdf5e6!important}
html.wack-ui body .main-actions .mode-button:nth-child(odd){transform:rotate(.6deg)}
html.wack-ui body .main-actions .mode-button>span{font:800 18px/1.1 var(--wk-bubble)!important;letter-spacing:.02em!important;color:var(--wk-ink)!important}
html.wack-ui body .main-actions .mode-button small{font:600 12.5px/1.35 var(--wk-round)!important;color:#2b2631!important;opacity:1!important}
html.wack-ui body .main-actions .mode-button>b{flex:none;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--wk-paper)!important;color:var(--wk-ink)!important;border:3px solid var(--wk-ink);font:800 21px var(--wk-bubble)!important;-webkit-text-stroke:0!important;box-shadow:3px 3px 0 var(--wk-ink);transform:rotate(-6deg)}
html.wack-ui body .main-actions .mode-button>b.wk-chip svg{width:34px;height:34px;display:block}
html.wack-ui body .main-actions .mode-button:hover,html.wack-ui body .main-actions .mode-button:focus-visible{transform:rotate(0) translate(-2px,-3px)!important;box-shadow:0 0 0 4px var(--wk-paper),9px 11px 0 4px #000!important}
html.wack-ui body .main-actions .mode-button:active{transform:translate(4px,5px)!important;box-shadow:0 0 0 4px var(--wk-paper),1px 1px 0 4px #000!important}
html.wack-ui body .main-actions #start small,html.wack-ui body .main-actions #start b{color:var(--wk-ink)!important}
/* the feature card on the right is a big paper sticker with the Go Away cat */
html.wack-ui body .menu-feature{background:var(--wk-paper) var(--wk-doodles)!important;border:4px solid var(--wk-ink)!important;border-radius:30px 12px 26px 14px!important;box-shadow:0 0 0 5px var(--wk-paper),12px 14px 0 5px var(--wk-m)!important;position:relative}
html.wack-ui body .menu-feature::before{content:'';position:absolute;inset:0;background:var(--wk-doodles);background-size:320px;filter:invert(1);opacity:.55;pointer-events:none}
html.wack-ui body .feature-orbit{background:var(--wk-c)!important;border:4px solid var(--wk-ink)!important;box-shadow:6px 7px 0 var(--wk-ink)}
html.wack-ui body .feature-caption{background:var(--wk-ink)!important;border-top:4px solid var(--wk-ink);box-shadow:0 -4px 0 var(--wk-y)}
html.wack-ui body .feature-caption h2{font-family:var(--wk-bubble)!important;color:var(--wk-y)!important}
html.wack-ui body .feature-caption span{color:var(--wk-c)!important}
html.wack-ui body .feature-stamp{background:var(--wk-m)!important;color:var(--wk-paper)!important;border:3px solid var(--wk-ink)!important;font-family:var(--wk-bubble)!important}
html.wack-ui body .feature-mark{color:var(--wk-y)!important;-webkit-text-stroke:3px var(--wk-ink);paint-order:stroke fill;text-shadow:4px 5px 0 var(--wk-ink)!important}
html.wack-ui .wk-sticker{pointer-events:none;user-select:none;-webkit-user-drag:none}
html.wack-ui .wk-cat{position:absolute;left:10px;bottom:118px;width:clamp(78px,9vw,120px);transform:rotate(-9deg);z-index:4;pointer-events:auto;cursor:pointer}
html.wack-ui .wk-cat.wk-wiggle{animation:wkWiggle .5s}
@keyframes wkWiggle{25%{transform:rotate(-16deg) scale(1.06)}60%{transform:rotate(3deg) scale(1.04)}}
html.wack-ui .wk-skull{position:absolute;right:12px;top:54px;width:clamp(64px,6.5vw,88px);transform:rotate(12deg);z-index:5}
@media (max-width:900px){html.wack-ui .wk-skull{width:60px}html.wack-ui .wk-cat{bottom:90px;width:76px}}

/* first-run box: a magenta-edged paper note */
html.wack-ui body .first-roof{background:var(--wk-paper)!important;color:var(--wk-ink)!important;border:3px solid var(--wk-ink)!important;border-left-width:3px!important;border-radius:18px 12px 20px 14px!important;box-shadow:0 0 0 4px var(--wk-paper),7px 8px 0 4px var(--wk-m)!important;transform:rotate(-.6deg);padding:14px 16px!important}
html.wack-ui body .first-roof strong{color:var(--wk-ink)!important;font:800 19px var(--wk-bubble)!important;letter-spacing:.03em}
html.wack-ui body .first-roof p{color:#2b2631!important;font-weight:600}
html.wack-ui body .first-roof .text-button{color:#1d7fb0!important;text-decoration-color:#31aee6}
/* ---------- every panel is a sticker sheet: ink inside, die-cut white edge, hard CMY shadow ---------- */
html.wack-ui body :is(.result-card,.cards-card,.adventure-card,.duel-card,.story-card,.scores-card,.profile-card,.help-card,.code-tournament-card,.loadout-card,.lobby-card,.settings-panel,.game-menu-card,.acct-card,.shop-modal,.pf-modal,.fn-confirm){
  background:linear-gradient(#17151cf7,#17151cf7),var(--wk-doodles),var(--wk-ink)!important;background-size:auto,320px 320px,auto!important;
  border:3px solid var(--wk-ink)!important;border-radius:26px 14px 28px 16px!important;box-shadow:0 0 0 4px var(--wk-paper),11px 12px 0 4px var(--wk-y)!important;color:var(--wk-paper)}
html.wack-ui body :is(.adventure-card.ops-card){box-shadow:0 0 0 4px var(--wk-paper),11px 12px 0 4px var(--wk-c)!important}
html.wack-ui body :is(.adventure-card.rally-card,.shop-modal,.cards-card){box-shadow:0 0 0 4px var(--wk-paper),11px 12px 0 4px var(--wk-m)!important}
html.wack-ui body .story-header{border-bottom:3px dashed #fffdf540!important;padding-bottom:10px}
html.wack-ui body .story-header h2{font-size:clamp(34px,4.6vw,56px)!important;transform:rotate(-1.5deg);transform-origin:left center}
/* buttons */
html.wack-ui body :is(.primary,.acct-primary){background:var(--wk-y)!important;color:var(--wk-ink)!important;border:3px solid var(--wk-ink)!important;border-radius:16px 20px 14px 18px!important;box-shadow:0 0 0 3px var(--wk-paper),5px 6px 0 3px #000!important;font:800 16px var(--wk-bubble)!important;letter-spacing:.05em!important;text-transform:uppercase;transition:transform .1s,box-shadow .1s;transform:none}
html.wack-ui body :is(.primary,.acct-primary):hover{transform:translate(-1px,-2px);box-shadow:0 0 0 3px var(--wk-paper),7px 8px 0 3px #000!important}
html.wack-ui body :is(.primary,.acct-primary):active{transform:translate(4px,5px);box-shadow:0 0 0 3px var(--wk-paper),1px 1px 0 3px #000!important}
html.wack-ui body :is(.primary,.acct-primary):disabled{filter:grayscale(.6);opacity:.7}
html.wack-ui body :is(.setting-button,.acct-secondary,.shop-btn:not(.buy)){background:var(--wk-paper)!important;color:var(--wk-ink)!important;border:3px solid var(--wk-ink)!important;border-radius:14px 18px 12px 16px!important;box-shadow:3px 4px 0 #000!important;font:800 13px var(--wk-round)!important;letter-spacing:.06em}
html.wack-ui body :is(.setting-button,.acct-secondary):active{transform:translate(2px,3px);box-shadow:1px 1px 0 #000!important}
html.wack-ui body .text-button{color:var(--wk-c)!important;font:800 12px var(--wk-round)!important;letter-spacing:.14em;text-decoration:underline wavy #31aee699 2px;text-underline-offset:5px}
html.wack-ui body :is(.panel-close,.acct-close){width:44px;height:44px;border-radius:50%!important;background:var(--wk-m)!important;color:var(--wk-paper)!important;border:3px solid var(--wk-ink)!important;box-shadow:0 0 0 3px var(--wk-paper),3px 4px 0 3px #000!important;font:800 18px var(--wk-bubble)!important;transform:rotate(-6deg)}
/* inputs */
html.wack-ui body :is(input[type=text],input[type=search],input[type=password],input:not([type]),select,textarea){background:var(--wk-paper)!important;color:var(--wk-ink)!important;border:3px solid var(--wk-ink)!important;border-radius:12px 15px 11px 14px!important;box-shadow:inset 2px 3px 0 #11101418,0 0 0 2px var(--wk-paper)!important;font-family:var(--wk-round)!important;font-weight:700}
html.wack-ui body :is(input,select,textarea)::placeholder{color:#8b8493}
html.wack-ui body :is(input,select,textarea):focus-visible{outline:3px solid var(--wk-c)!important;outline-offset:3px}
html.wack-ui body button:focus-visible{outline:3px dashed var(--wk-c)!important;outline-offset:5px}
/* score tables */
html.wack-ui body .scores-table :is(th,.head){font-family:var(--wk-bubble);color:var(--wk-y);letter-spacing:.06em}
html.wack-ui body .scores-table :is(tr,.row)+:is(tr,.row){border-top:2px dashed #fffdf526}
/* account card */
html.wack-ui body .acct-title{font-size:clamp(34px,5.4vw,54px)!important}
html.wack-ui body .acct-card label{color:var(--wk-m)!important;font-family:var(--wk-round)!important}

/* ---------- fight HUD ---------- */
html.wack-ui body .fighter-hud .name-row{font-family:var(--wk-bubble)!important;letter-spacing:.03em;-webkit-text-stroke:1.2px var(--wk-ink);paint-order:stroke fill}
html.wack-ui body .health{height:20px!important;border:3px solid var(--wk-ink)!important;border-radius:999px!important;background:var(--wk-paper)!important;box-shadow:0 0 0 2px var(--wk-paper),3px 4px 0 2px #000a;overflow:hidden}
html.wack-ui body .health>div{background:repeating-linear-gradient(-45deg,var(--wk-c) 0 10px,#5cc5f0 10px 20px)!important;border-right:3px solid var(--wk-ink)}
html.wack-ui body .enemy .health>div{background:repeating-linear-gradient(45deg,var(--wk-m) 0 10px,#f7559a 10px 20px)!important;border-left:3px solid var(--wk-ink);border-right:0}
html.wack-ui body :is(.energy,.surge){border:2px solid var(--wk-ink)!important;border-radius:999px!important;background:#fffdf5d9!important}
html.wack-ui body :is(.energy,.surge)>div{background:var(--wk-y)!important}
html.wack-ui body .round-hud strong{font-family:var(--wk-bubble)!important;color:var(--wk-y)!important;-webkit-text-stroke:3px var(--wk-ink);paint-order:stroke fill;text-shadow:3px 4px 0 var(--wk-ink)!important}
html.wack-ui body .callout{font-family:var(--wk-bubble)!important;color:var(--wk-y)!important;-webkit-text-stroke:.07em var(--wk-ink);paint-order:stroke fill;filter:drop-shadow(3px 0 0 var(--wk-paper)) drop-shadow(-3px 0 0 var(--wk-paper)) drop-shadow(0 3px 0 var(--wk-paper)) drop-shadow(0 -3px 0 var(--wk-paper)) drop-shadow(5px 6px 0 #000);text-shadow:none!important}
html.wack-ui body .combo{font-family:var(--wk-bubble)!important;color:var(--wk-m)!important;-webkit-text-stroke:3px var(--wk-ink);paint-order:stroke fill}

/* ======================================================================================
   TOUCH CONTROLS · fat stickers you can't miss: ink outline, white die-cut edge, CMY fill,
   a hand-drawn icon on top and the action name in bubble letters. Press = the sticker squishes.
   ====================================================================================== */
html.wack-ui .wk-ico{display:block;width:56%;aspect-ratio:1;margin:0 auto -2px;pointer-events:none}
html.wack-ui .wk-ico svg{width:100%;height:100%;display:block;overflow:visible}
html.wack-ui .wk-hide{display:none!important}
html.wack-ui .wk-face{position:absolute;inset:14%;pointer-events:none}html.wack-ui .wk-face svg{width:100%;height:100%}
/* shared sticker button */
html.wack-ui body :is(.action-pad button,.rh-acts button,.ops-btns button){
  border:3px solid var(--wk-ink)!important;background:var(--wk-paper)!important;color:var(--wk-ink)!important;border-radius:50%!important;
  box-shadow:0 0 0 3px var(--wk-paper),3px 5px 0 3px #000c!important;font:800 10px/1 var(--wk-bubble)!important;letter-spacing:.04em!important;text-transform:uppercase;
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:4px!important;backdrop-filter:none!important;
  transition:transform .06s,box-shadow .06s;-webkit-tap-highlight-color:transparent}
html.wack-ui body :is(.action-pad button,.rh-acts button,.ops-btns button,.main-actions .mode-button,.primary,.setting-button)[hidden]{display:none!important}
html.wack-ui body :is(.action-pad button,.rh-acts button,.ops-btns button):is(:active,.pressed,.on){transform:translate(3px,4px) scale(.95)!important;box-shadow:0 0 0 3px var(--wk-paper),0 1px 0 3px #000c!important;filter:brightness(1.08)}
/* fight pad colours */
html.wack-ui body .action-pad .strike{background:var(--wk-y)!important;font-size:12px!important}
html.wack-ui body .action-pad .blast{background:var(--wk-c)!important}
html.wack-ui body .action-pad [data-action=dash]{background:var(--wk-m)!important;color:var(--wk-paper)!important}
html.wack-ui body .action-pad .small{background:var(--wk-paper)!important;color:var(--wk-ink)!important}
html.wack-ui body .action-pad .special{background:#3a3640!important;color:var(--wk-paper)!important}
html.wack-ui body .action-pad .special.ready{background:var(--wk-m)!important;color:var(--wk-paper)!important;animation:wkReady .7s ease-in-out infinite alternate}
@keyframes wkReady{from{box-shadow:0 0 0 3px var(--wk-paper),3px 5px 0 3px #000c}to{box-shadow:0 0 0 5px var(--wk-y),3px 5px 0 5px #000c}}
/* fight stick: a cyan paint splat with an x-eyes knob */
html.wack-ui body .stick{background:radial-gradient(circle at 50% 50%,#31aee6 0 58%,#2a95c6 59% 100%)!important;border:4px solid var(--wk-ink)!important;border-radius:53% 47% 55% 45%/48% 55% 45% 52%!important;box-shadow:0 0 0 4px var(--wk-paper),4px 6px 0 4px #000c!important}
html.wack-ui body .stick>div{background:var(--wk-y)!important;border:3px solid var(--wk-ink)!important;box-shadow:2px 3px 0 var(--wk-ink)!important;width:44%!important;height:44%!important;left:28%!important;top:28%!important}
html.wack-ui body .stick>span{font:800 10px var(--wk-bubble)!important;color:var(--wk-paper)!important;letter-spacing:.14em;bottom:-22px!important;-webkit-text-stroke:2px var(--wk-ink);paint-order:stroke fill}
/* rally */
html.wack-ui body .rh-acts .gas{background:var(--wk-y)!important}
html.wack-ui body .rh-acts .card{background:var(--wk-c)!important}
html.wack-ui body .rh-acts .drift{background:var(--wk-m)!important;color:var(--wk-paper)!important}
html.wack-ui body .rh-acts .sm{background:var(--wk-paper)!important}
html.wack-ui body .rh-acts .fuse{background:linear-gradient(135deg,var(--wk-y),var(--wk-m))!important}
html.wack-ui body .rh-acts button span{font:800 10px/1 var(--wk-bubble)!important}
html.wack-ui body .rh-acts button small{font:700 8px var(--wk-round)!important;opacity:.85;display:block}
html.wack-ui body .rh-half{background:#fffdf5e6!important;color:var(--wk-ink)!important;border:3px solid var(--wk-ink)!important;box-shadow:0 0 0 3px var(--wk-paper),3px 5px 0 3px #000c!important;border-radius:28px 18px 30px 16px!important}
html.wack-ui body .rh-half b{font:800 30px var(--wk-bubble)!important;color:var(--wk-m)!important;-webkit-text-stroke:2px var(--wk-ink);paint-order:stroke fill}
html.wack-ui body .rh-half span{font:800 11px var(--wk-bubble)!important;letter-spacing:.08em}
html.wack-ui body .rh-half.on,html.wack-ui body .rh-half:active{background:var(--wk-y)!important;transform:translate(2px,3px)}
html.wack-ui body .rh-autogas,html.wack-ui body .rh-pause,html.wack-ui body .ops-tpause{background:var(--wk-paper)!important;color:var(--wk-ink)!important;border:3px solid var(--wk-ink)!important;box-shadow:2px 3px 0 #000c!important;font-family:var(--wk-bubble)!important}
/* drip ops */
html.wack-ui body .ops-btns button.fire{background:var(--wk-m)!important;color:var(--wk-paper)!important;border-radius:40px!important}
html.wack-ui body .ops-btns [data-k=jump]{background:var(--wk-y)!important}
html.wack-ui body .ops-btns [data-k=reload]{background:var(--wk-c)!important}
html.wack-ui body .ops-btns [data-k=swap]{background:var(--wk-paper)!important}
html.wack-ui body .ops-btns [data-k=zoom]{background:var(--wk-paper)!important}
html.wack-ui body .ops-stick{background:radial-gradient(circle,#31aee6 0 58%,#2a95c6 59%)!important;border:4px solid var(--wk-ink)!important;border-radius:53% 47% 55% 45%/48% 55% 45% 52%!important;box-shadow:0 0 0 4px var(--wk-paper),4px 6px 0 4px #000c!important}
html.wack-ui body .ops-stick i#opsKnob{background:var(--wk-y)!important;border:3px solid var(--wk-ink)!important;box-shadow:2px 3px 0 var(--wk-ink)}
html.wack-ui body .ops-look::after{content:'DRAG TO AIM';position:absolute;right:22px;top:46%;font:800 11px var(--wk-bubble);letter-spacing:.16em;color:#fffdf599;-webkit-text-stroke:2px #111014aa;paint-order:stroke fill}
/* in-race / in-match readouts get the bubble font */
html.wack-ui body :is(.rh-place b,.ops-ammo b,.ops-top b,.ops-score b){font-family:var(--wk-bubble)!important;-webkit-text-stroke:3px var(--wk-ink);paint-order:stroke fill}
html.wack-ui body :is(.rh-banner,.ops-center){font-family:var(--wk-bubble)!important;-webkit-text-stroke:.06em var(--wk-ink);paint-order:stroke fill}
html.wack-ui body :is(.rally-pause>div,.rally-results>div,.ops-pause>div,.ops-results>div,.ops-lock>div){background:var(--wk-ink2)!important;border:3px solid var(--wk-ink)!important;border-radius:26px 14px 28px 16px!important;box-shadow:0 0 0 4px var(--wk-paper),11px 12px 0 4px var(--wk-y)!important}
html.wack-ui body :is(.rally-loading,.ops-loading){background:radial-gradient(circle at 20% 25%,#f2227b33,transparent 35%),radial-gradient(circle at 80% 70%,#31aee633,transparent 35%),var(--wk-doodles),var(--wk-ink)!important;background-size:auto,auto,320px 320px,auto!important}
html.wack-ui body :is(.rally-loading strong,.ops-loading strong){font-size:clamp(48px,9vw,86px)!important}

@media (prefers-reduced-motion:reduce){html.wack-ui .wk-toast,html.wack-ui body .action-pad .special.ready{animation:none}html.wack-ui body .main-actions .mode-button{transition:none}}
/* ---- no clipped text in either orientation ---- */
html.wack-ui body .main-actions .mode-roster>b#menuSelected{width:auto!important;min-width:52px;padding:0 12px;border-radius:999px;font-size:clamp(13px,3.6vw,18px)!important;white-space:nowrap}
html.wack-ui body .main-actions .mode-button>span{min-width:0;overflow:visible}
html.wack-ui body .main-actions .mode-button small{overflow:visible!important;text-overflow:clip!important;max-width:none!important;overflow-wrap:break-word}
html.wack-ui body .mk-name b,html.wack-ui body .mk-name small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:break-word}
#bootSplash strong{max-width:92vw;text-align:center;line-height:1.15}
/* the referee countdown / power-up list never sits on top of the fighter intro card */
html[data-entrance=true] .identity-hud{bottom:calc(max(42px,env(safe-area-inset-bottom)) + 150px)!important}
@media (orientation:landscape) and (max-height:550px){html[data-entrance=true] .identity-hud{bottom:auto!important;top:96px;left:50%!important;transform:translateX(-50%);text-align:center}}
/* the fight HUD always starts under the top bar (its real height is measured in wack-ui.js) */
html.wack-ui body .hud{top:calc(var(--wk-top,44px) + 8px)!important}
html.wack-ui body .topline{backdrop-filter:none!important}
html.wack-ui body .round-hud{min-width:0}
html.wack-ui body .round-hud>span,html.wack-ui body .round-hud>small{white-space:nowrap;font-size:clamp(7px,2.1vw,11px)!important;letter-spacing:.06em!important}
@media (orientation:portrait) and (max-width:520px){html.wack-ui body .hud{grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr)!important;gap:8px!important}
  html.wack-ui body .name-row{min-width:0;flex-wrap:wrap;row-gap:0}html.wack-ui body .name-row strong{min-width:0;overflow-wrap:anywhere}}
/* DRIP OPS: the aim hint never hides behind the fire button */
html.wack-ui body .ops-look::after{right:auto!important;left:28%}
/* boot splash: the letter spans are not status pills; the status line wraps instead of running off screen */
html.wack-ui .boot-splash strong :is(.wk-word,.wk-l){font-size:inherit!important;letter-spacing:0!important;animation:none!important;font-weight:inherit;background:none!important;border:0!important;padding:0!important}
html.wack-ui .boot-splash>span{max-width:min(92vw,560px);white-space:normal;text-align:center;line-height:1.35;letter-spacing:clamp(.06em,.8vw,.24em)!important}
/* small phones: the big title and the 2-column mode cards scale down instead of spilling out */
@media (orientation:portrait){html.wack-ui body .start-card h1.brand-title{font-size:clamp(40px,14.5vw,86px)!important;max-width:100%;white-space:normal}}
html.wack-ui body .main-actions .mode-button>span{font-size:clamp(13px,4.1vw,18px)!important}
@media (max-width:380px){html.wack-ui body .main-actions .mode-button:not(.mode-roster)>b{width:40px!important;height:40px!important;flex:0 0 40px}
  html.wack-ui body .main-actions .mode-button>span{font-size:14px!important}
  html.wack-ui body .main-actions .mode-button{gap:8px!important;padding-left:12px!important;padding-right:10px!important}}
/* ROOFTOP TRAINING card: title over its note when the card is narrow (2-column phone grid) */
@media (max-width:520px){html.wack-ui body .main-actions #trainingMode{flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}
  html.wack-ui body .main-actions #trainingMode small{max-width:100%!important}}
/* every menu screen starts just under the (taller, hand-drawn) top bar, whatever the orientation */
html.wack-ui body .overlay{padding-top:calc(var(--wk-top,48px) + 8px)!important}
html.wack-ui body .settings-panel{top:calc(var(--wk-top,48px) + 8px)!important;max-height:calc(100% - var(--wk-top,48px) - 16px - env(safe-area-inset-bottom))!important}
/* modal cards keep their title in view on short landscape screens */
@media (orientation:landscape) and (max-height:500px){html.wack-ui body .polish-modal{place-items:start center}html.wack-ui body .polish-modal-card{max-height:calc(100dvh - 20px)}}
html.wack-ui body .name-row strong{line-height:1.2!important;padding-block:1px}
/* ---- simpler PLAY shelf: four big choices, everything else behind MORE MODES ---- */
html.wack-ui body .main-actions .mode-hero{min-height:118px!important;align-items:flex-end!important;padding-top:16px!important}
html.wack-ui body .main-actions .mode-hero>span{font-size:clamp(16px,4.8vw,22px)!important}
html.wack-ui body .main-actions #menuCardsHero{background:var(--wk-m)!important}
html.wack-ui body .main-actions #menuCardsHero>span{color:var(--wk-paper)!important}html.wack-ui body .main-actions #menuCardsHero small{color:#fffdf5e6!important}
html.wack-ui body .main-actions #menuCardsHero>b{font-size:26px!important}
.main-actions .menu-more-toggle{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:8px 14px;border-radius:999px;cursor:pointer;
  background:transparent;color:#fffdf5;border:3px dashed #fffdf599;font:800 12px/1.25 WackBubble,Fredoka,Arial,sans-serif;letter-spacing:.06em;text-align:center}
.main-actions .menu-more-toggle i{font-style:normal;font-size:16px;transition:transform .2s}
.main-actions .menu-more-toggle[aria-expanded=true] i{transform:rotate(180deg)}
.main-actions .menu-more-toggle:hover,.main-actions .menu-more-toggle:focus-visible{border-color:var(--wk-y,#fff024);color:var(--wk-y,#fff024)}
.main-actions .menu-more-toggle[hidden]{display:none!important}
/* ---- first-DRIP explainer ---- */
.drip-intro{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:16px;background:#05040acc;overflow:auto;animation:dripIntroIn .2s ease-out}
@keyframes dripIntroIn{from{opacity:0}}
.drip-intro-card{width:min(440px,100%);background:#fffdf5;color:#111014;border:3px solid #111014;border-radius:22px 26px 20px 24px;box-shadow:0 0 0 4px #fffdf5,8px 9px 0 4px #000;padding:20px 22px;font:500 15px/1.45 Fredoka,Arial,sans-serif}
.drip-intro-eyebrow{display:block;font:800 11px WackBubble,Fredoka,Arial;letter-spacing:.16em;color:#f2227b}
.drip-intro-card h2{margin:4px 0 10px;font:800 clamp(24px,7vw,32px)/1.05 WackBubble,Fredoka,Arial;color:#111014;-webkit-text-stroke:0}
.drip-intro-card ul{margin:8px 0;padding-left:18px}.drip-intro-card li{margin:5px 0}
.drip-intro-bal{font-weight:700;color:#2b6d8f}
.drip-intro-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.drip-intro-btns button{flex:1 1 140px;min-height:46px;border:3px solid #111014;border-radius:16px;font:800 14px WackBubble,Fredoka,Arial;letter-spacing:.04em;cursor:pointer;box-shadow:3px 4px 0 #000}
.drip-intro-shop{background:#fff024;color:#111014}.drip-intro-ok{background:#31aee6;color:#111014}
/* cached card thumbnails */
img.card-raster{display:block;width:100%;height:auto;aspect-ratio:5/7;border-radius:inherit;-webkit-user-drag:none;user-select:none}
.card-ph{display:grid;place-items:center;width:100%;aspect-ratio:5/7;border-radius:10px;background:linear-gradient(160deg,#1b1626,#0d0a14);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--rc) 70%,transparent)}
.card-ph i{font:700 10px/1.2 Fredoka,Arial,sans-serif;font-style:normal;color:#fffdf5aa;text-align:center;padding:6px;overflow-wrap:anywhere}
/* ---- daily / weekly goals on the menu ---- */
.menu-goals{margin:16px 0 4px;padding:12px 14px;border:3px solid #111014;border-radius:20px 24px 18px 22px;background:#1a1622;box-shadow:0 0 0 3px #fffdf5,5px 6px 0 3px #000;color:#fffdf5}
.menu-goals[hidden]{display:none!important}
.mg-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-bottom:6px}
.mg-head strong{font:800 18px WackBubble,Fredoka,Arial;color:#fff024;letter-spacing:.04em}
.mg-tabs{display:flex;gap:6px}
.mg-tabs button{position:relative;border:2px dashed #fffdf577;background:transparent;color:#fffdf5;border-radius:999px;padding:4px 11px;font:800 11px WackBubble,Fredoka,Arial;letter-spacing:.06em;cursor:pointer}
.mg-tabs button.on{background:#fff024;color:#111014;border:2px solid #111014}
.mg-dot{position:absolute;top:-7px;right:-6px;min-width:17px;height:17px;border-radius:999px;background:#f2227b;color:#fffdf5;font:800 10px/17px Fredoka,Arial;font-style:normal;text-align:center;border:2px solid #111014}
.mg-reset{margin-left:auto;font:600 11px Fredoka,Arial;color:#fffdf5aa}
.mg-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px dashed #fffdf533}
.mg-text{flex:1 1 auto;min-width:0;display:grid;gap:3px}
.mg-text b{font:700 13.5px/1.25 Fredoka,Arial;overflow-wrap:break-word}
.mg-text small{font:600 11px Fredoka,Arial;color:#fffdf5aa}
.mg-bar{display:block;height:8px;border-radius:999px;background:#0b0912;border:1px solid #fffdf533;overflow:hidden}
.mg-bar i{display:block;height:100%;background:linear-gradient(90deg,#31aee6,#fff024);border-radius:inherit;transition:width .3s}
.mg-row.done .mg-bar i{background:#7ed745}.mg-row.done .mg-text b{opacity:.65}
.mg-reward{flex:none;font:800 12px Fredoka,Arial;color:#31aee6}
.mg-claimed{flex:none;font:800 12px Fredoka,Arial;color:#7ed745}
.mg-claim{flex:none;border:3px solid #111014;background:#fff024;color:#111014;border-radius:14px;padding:7px 10px;font:800 12px WackBubble,Fredoka,Arial;cursor:pointer;box-shadow:2px 3px 0 #000;animation:mgPulse 1.4s ease-in-out infinite}
@keyframes mgPulse{50%{transform:scale(1.05)}}
@media (prefers-reduced-motion:reduce){.mg-claim{animation:none}}
/* ---- accessibility: bigger menu text (zooms menus and panels, never the game HUD) ---- */
html[data-text-size=large] :is(body .overlay,.shop-modal,.settings-panel .settings-scroll,.pk-rip,.drip-intro,.polish-modal){zoom:1.15}
html[data-text-size=xl] :is(body .overlay,.shop-modal,.settings-panel .settings-scroll,.pk-rip,.drip-intro,.polish-modal){zoom:1.3}
/* colour-blind palette for the few rarity glows that are written in CSS */
html[data-cvd=on] .card-slot[data-rarity=legendary]{box-shadow:0 0 14px #f0e44277}
html[data-cvd=on] .card-slot[data-rarity=mythic]{box-shadow:0 0 18px #cc79a788}
html[data-cvd=on] .card-slot[data-rarity=epic]{box-shadow:0 0 14px #e69f0066}
html[data-cvd=on] .card-slot[data-rarity=rare]{box-shadow:0 0 12px #009e7366}
/* bigger text: one column of mode cards so words never get squeezed */
html[data-text-size=xl] body .main-actions{grid-template-columns:1fr!important}
@media (max-width:520px){html[data-text-size=large] body .main-actions{grid-template-columns:1fr!important}}
html[data-text-size=xl] body .main-actions .mode-hero,html[data-text-size=large] body .main-actions .mode-hero{min-height:84px!important}
/* the LOCAL PLAY badge shows for a few seconds, then gets out of the way of the fight notes */
.polish-offline{animation:wkOfflineAway .6s 7s forwards}
@keyframes wkOfflineAway{to{opacity:0;visibility:hidden}}
/* iPhone: fields under 16px make Safari zoom in when tapped (and stay zoomed in portrait) */
@media (pointer:coarse){html body input,html body select,html body textarea{font-size:max(16px,1em)!important}}
