/* InfiniWorld (14/11): the Power badge on cards and the monsters' world. */

/* ------------------------------------------------------------------ Power on a card copy (power.py) */
.plate .pw { position: absolute; right: 0; top: -7.2cqw; padding: .4cqw 2.2cqw .5cqw; border-radius: 99px; z-index: 2;
  font: 400 5.6cqw/1.1 var(--lcd); letter-spacing: .3cqw; color: #ffe27a; background: rgba(8, 10, 28, .78);
  box-shadow: 0 0 0 .35cqw rgba(255, 226, 122, .45), 0 .6cqw 1.6cqw rgba(0, 0, 0, .45); text-shadow: 0 0 1.4cqw rgba(255, 210, 80, .6); }
.card.st-retro .plate .pw { color: var(--gb3); background: var(--gb0); box-shadow: 0 0 0 .4cqw var(--gb1); text-shadow: none; }
#zoom.art-only .plate .pw { opacity: 0; }

/* ------------------------------------------------------------------ InfiniWorld: the portal and the map */
.wportal { display: flex; align-items: center; gap: 16px; padding: 14px; margin: 8px 0 12px; border-radius: 22px; color: #fff;
  background: radial-gradient(circle at 20% 50%, #3a1f86, #160d36 75%); border: 3px solid #fff; box-shadow: 0 14px 30px rgba(60, 30, 140, .3); }
html.light .wportal { background: var(--dusk), url(/art/card-back.webp?v=2) center / cover, var(--dockgrad); }
.wp-ring { position: relative; flex: none; width: 96px; height: 96px; border-radius: 50%; }
.wp-swirl { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #ff8a3d, #ff4fa3, #a470ff, #3dd6ff, #ff8a3d);
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 32%, #000 68%, transparent 70%); mask: radial-gradient(circle, transparent 30%, #000 32%, #000 68%, transparent 70%);
  animation: slspin 3.2s linear infinite; filter: drop-shadow(0 0 10px rgba(255, 120, 220, .7)); }
.wp-core { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, #fff, #d8c8ff 35%, #6b3fe0 75%); animation: slpulse 2.4s ease-in-out infinite; }
.wp-inf { position: absolute; left: 25%; top: 37%; width: 50%; fill: none; stroke: #fff; stroke-width: 3.4; filter: drop-shadow(0 0 4px #fff); }
.wp-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wp-info .label { color: #fff; opacity: .85; }
.wp-info .muted { color: rgba(255, 255, 255, .85) !important; }
.wp-pips { display: flex; gap: 8px; }
.wp-pips i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .1); }
.wp-pips i.on { background: radial-gradient(circle, #fff, #ff9ad8 45%, #a470ff); box-shadow: 0 0 12px #ff9ad8; }
.wrun-banner { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; margin-bottom: 12px; border-radius: 18px; text-decoration: none;
  color: #fff !important; background: linear-gradient(110deg, #9259f2, #e44f9c); box-shadow: 0 8px 20px rgba(140, 60, 200, .35); animation: slpulse 2.6s ease-in-out infinite; }
.wrun-banner span { font-size: 13px; font-weight: 800; }
.wmap .wr-prog { position: absolute; top: -10%; right: -4%; min-width: 30px; padding: 1px 6px; border-radius: 99px; background: #ffd23d; color: #4a3400;
  font: 800 11px Nunito, sans-serif; text-shadow: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.wmap .wreg.clear .reg-blob { box-shadow: 0 0 0 4px #ffd23d, 0 8px 18px rgba(0, 0, 0, .2); }
.wmap .reg-el { letter-spacing: 0; }

/* the region sheet */
.wsheet-box { padding-top: 0; }
.ws-head { margin: 0 -18px 10px; padding: 46px 18px 14px; color: #fff; background-size: cover; background-position: center; border-radius: 0 0 18px 18px; }
.ws-head h2 { margin: 2px 0; color: #fff; }
.ws-el { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--c); color: #1b1030; font: 800 11px Nunito, sans-serif; }
.ws-tier { font-size: 12.5px; font-weight: 800; opacity: .95; }
.ws-prog { height: 8px; border-radius: 99px; background: var(--panel2); overflow: hidden; margin-bottom: 6px; }
.ws-prog i { display: block; height: 100%; background: linear-gradient(90deg, #ffd23d, var(--c)); }
.ws-starts { margin-bottom: 8px; }
.ws-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 44vh; overflow-y: auto; padding: 4px; margin: 6px 0 12px; }
.ws-c { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; transition: transform .15s; }
.ws-c .card { width: 100%; }
.ws-c.on { transform: translateY(-3px); }
.ws-c.on .card { box-shadow: 0 0 0 3px #ffd23d, 0 8px 18px rgba(0, 0, 0, .35); }
.ws-n { position: absolute; top: -6px; left: -6px; z-index: 5; display: none; width: 24px; height: 24px; border-radius: 50%; place-items: center;
  background: #ffd23d; color: #4a3400; font: 800 13px Nunito, sans-serif; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.ws-c.on .ws-n { display: grid; }
.ws-pet { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); z-index: 5; padding: 1px 8px; border-radius: 99px;
  background: #ff78c4; color: #fff; font: 800 10px Nunito, sans-serif; white-space: nowrap; }

/* the dive through the portal */
.wdive { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgba(10, 5, 30, .0); animation: wdbg 1.1s ease-in forwards; pointer-events: none; }
.wdive.out { animation: fadeout .4s forwards; }
.wd-swirl { position: absolute; width: 60vmin; height: 60vmin; border-radius: 50%; background: conic-gradient(from 0deg, var(--c), #ff4fa3, #a470ff, #3dd6ff, var(--c));
  -webkit-mask: radial-gradient(circle, transparent 18%, #000 20%, #000 66%, transparent 70%); mask: radial-gradient(circle, transparent 18%, #000 20%, #000 66%, transparent 70%);
  animation: wdswirl 1.1s cubic-bezier(.5, 0, .7, .4) forwards; }
.wd-core { position: absolute; width: 20vmin; height: 20vmin; border-radius: 50%; background: radial-gradient(circle, #fff, #fff 30%, rgba(255, 255, 255, 0) 70%);
  animation: wdcore 1.1s ease-in forwards; }
@keyframes wdbg { to { background: rgba(10, 5, 30, 1); } }
@keyframes wdswirl { from { transform: scale(.2) rotate(0deg); opacity: 0; } 30% { opacity: 1; } to { transform: scale(2.6) rotate(540deg); } }
@keyframes wdcore { 60% { transform: scale(1); } to { transform: scale(9); } }
@keyframes fadeout { to { opacity: 0; } }

/* ------------------------------------------------------------------ a descent: the battle screen */
.wrun { --c: #a470ff; }
.wr-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.wr-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wr-st { font: 700 18px Fredoka, sans-serif; }
.wr-bag { padding: 4px 10px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font: 800 13px Nunito, sans-serif; }
.wpath { display: grid; grid-template-columns: repeat(25, 1fr); gap: 2px; margin-bottom: 10px; }
.wpath i { height: 8px; border-radius: 3px; background: var(--panel2); border: 1px solid var(--line); }
.wpath i.cp { border-color: #a470ff; }
.wpath i.chest { background: #ffe3a3; }
.wpath i.boss { background: #ff9aa5; }
.wpath i.done { background: var(--c); border-color: var(--c); }
.wpath i.now { background: #ffd23d; border-color: #ffd23d; box-shadow: 0 0 6px #ffd23d; transform: scaleY(1.5); }
.wscene { position: relative; height: 340px; border-radius: 22px; overflow: hidden; background-size: cover; background-position: center; color: #fff;
  border: 3px solid #fff; box-shadow: 0 14px 30px rgba(30, 15, 80, .35); isolation: isolate; }
.wfoe { position: absolute; right: 4%; top: 6%; width: 52%; display: flex; flex-direction: column; align-items: center; transition: opacity .4s, transform .4s; }
.wf-tag { align-self: stretch; display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 12px; background: rgba(10, 6, 30, .62); }
.wf-tag b { font: 700 15px Fredoka, sans-serif; }
.wf-tag > span { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font: 800 11.5px Nunito, sans-serif; color: #ffe27a; }
.wf-tag .ty { font-size: 9.5px; padding: 1px 6px; }
.wf-boss { align-self: flex-start; padding: 0 8px; border-radius: 99px; background: #ff4f6f; color: #fff; font: 400 9px var(--lcd); letter-spacing: 1.5px; }
.wf-img { width: 82%; max-height: 150px; object-fit: contain; margin-top: 4px; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .45)); animation: tcbreathe 2.6s ease-in-out infinite; }
.wfoe.boss .wf-img { width: 100%; max-height: 170px; }
.wfoe.hidden .wf-img { filter: drop-shadow(0 0 10px rgba(170, 120, 255, .9)) drop-shadow(0 0 22px rgba(90, 200, 255, .5)); }
/* 14/11 (owner): a never-seen foe shows its real picture; the "?" sits above it, off the art */
.wf-q { position: absolute; right: 8px; top: 22px; font: 700 34px/1 Fredoka, sans-serif; color: #e4f4ff;
  text-shadow: 0 0 14px rgba(120, 220, 255, .95), 0 0 30px rgba(190, 120, 255, .8); pointer-events: none; animation: tcbreathe 1.8s ease-in-out infinite; }
.wfoe.fury .wf-img { filter: drop-shadow(0 0 12px #ff3b5c) drop-shadow(0 8px 8px rgba(0, 0, 0, .45)); }
.wfoe.charging .wf-img { animation: wcharge .5s ease-in-out infinite alternate; }
@keyframes wcharge { to { filter: drop-shadow(0 0 18px #ffd23d) brightness(1.3); transform: scale(1.04); } }
.wfoe.beaten .wf-img { opacity: .35; filter: grayscale(.8); transform: translateY(10px) rotate(-6deg); }
.wfoe.scanned .wf-img { animation: wscan .45s ease-in forwards; }
@keyframes wscan { to { transform: scale(.1) translateY(80px); opacity: 0; } }
.wlens { position: absolute; left: 50%; top: 58%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 4px solid #fff;
  box-shadow: 0 0 20px #8ef0ff, inset 0 0 20px #8ef0ff; background: radial-gradient(circle, rgba(142, 240, 255, .35), transparent 70%);
  animation: wlens .9s ease-in-out forwards; pointer-events: none; }
@keyframes wlens { 0% { transform: scale(.3) rotate(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.2) rotate(360deg); opacity: 0; } }
.wme { position: absolute; left: 4%; bottom: 14%; width: 46%; display: flex; flex-direction: column; align-items: center; }
.wme img { width: 80%; max-height: 130px; object-fit: contain; transform: scaleX(-1); filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .45)); }
.wm-tag { align-self: stretch; display: flex; flex-direction: column; gap: 2px; margin-top: 2px; padding: 6px 10px; border-radius: 12px; background: rgba(10, 6, 30, .62); }
.wm-tag b { font: 700 14px Fredoka, sans-serif; }
.wm-tag > span { font: 800 11px Nunito, sans-serif; color: #ffe27a; }
.wme.ko img { opacity: .3; filter: grayscale(1); }
.wme.lunge img { animation: wlungeR .26s ease-out; }
.wfoe.lunge .wf-img { animation: wlungeL .26s ease-out; }
@keyframes wlungeR { 50% { transform: scaleX(-1) translate(-40px, -14px); } }
@keyframes wlungeL { 50% { transform: translate(-40px, 14px); } }
.wme.hit img { animation: whitme .38s; }
.wfoe.hit .wf-img { animation: whit .38s; }
@keyframes whit { 20%, 60% { transform: translateX(-8px); filter: brightness(2.2) drop-shadow(0 0 8px #fff); } 40%, 80% { transform: translateX(8px); } }
@keyframes whitme { 20%, 60% { transform: scaleX(-1) translateX(-8px); filter: brightness(2.2); } 40%, 80% { transform: scaleX(-1) translateX(8px); } }
.wme.guard img { filter: drop-shadow(0 0 14px #8ef0ff) drop-shadow(0 8px 8px rgba(0, 0, 0, .45)); }
.wfoe.gather .wf-img { animation: wcharge .35s ease-in-out 2 alternate; }
.whp { position: relative; display: block; height: 12px; margin-top: 3px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.whp i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #3fd08a, #8ef08a); transition: width .5s ease-out; }
.whp.mid i { background: linear-gradient(90deg, #ffb347, #ffd23d); }
.whp.low i { background: linear-gradient(90deg, #ff4f6f, #ff8a9c); }
.whp b { position: relative; display: block; text-align: center; font: 800 9px/12px Nunito, sans-serif; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.wlog { position: absolute; left: 8px; right: 8px; bottom: 8px; min-height: 22px; padding: 4px 10px; border-radius: 10px; background: rgba(10, 6, 30, .55);
  font: 700 12.5px Nunito, sans-serif; text-align: center; }
.wlog:empty { display: none; }
.wnum { position: fixed; z-index: 140; transform: translate(-50%, 0); pointer-events: none; font: 700 26px Fredoka, sans-serif; color: #fff;
  text-shadow: 0 2px 0 #b3264a, 0 0 10px rgba(255, 60, 100, .8); animation: wnum 1.05s ease-out forwards; }
.wnum.super { color: #ffe27a; font-size: 32px; text-shadow: 0 2px 0 #9a5a00, 0 0 12px rgba(255, 200, 60, .9); }
.wnum.weak { color: #c9d3f0; font-size: 20px; text-shadow: 0 2px 0 #3a4060; }
.wnum.heal { color: #b6ffcf; text-shadow: 0 2px 0 #138a52, 0 0 10px rgba(60, 220, 140, .8); }
.wnum.miss { color: #e4e8ff; font-size: 18px; text-shadow: 0 2px 0 #3a4060; }
.wnum.burn { color: #ffb070; text-shadow: 0 2px 0 #9a3a00; }
@keyframes wnum { from { transform: translate(-50%, 10px) scale(.6); opacity: 0; } 20% { transform: translate(-50%, -6px) scale(1.15); opacity: 1; }
  to { transform: translate(-50%, -60px) scale(1); opacity: 0; } }
.wchest { position: absolute; left: 50%; top: 28%; width: 130px; height: 110px; margin-left: -65px; }
.wc-box { position: absolute; left: 0; right: 0; bottom: 0; height: 64%; border-radius: 10px; background: linear-gradient(180deg, #c9813a, #8a4e1c);
  border: 4px solid #ffd23d; box-shadow: 0 10px 20px rgba(0, 0, 0, .4); }
.wc-lid { position: absolute; left: -4px; right: -4px; top: 6%; height: 36%; border-radius: 40px 40px 8px 8px; background: linear-gradient(180deg, #e09a4f, #a35e24);
  border: 4px solid #ffd23d; z-index: 2; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.wc-glow { position: absolute; left: 10%; right: 10%; top: 10%; height: 50%; border-radius: 50%; background: radial-gradient(closest-side, #fff7c2, rgba(255, 220, 100, 0));
  opacity: 0; transition: opacity .4s; }
.wchest:not(.open) { animation: tcbreathe 1.8s ease-in-out infinite; }
.wchest.open .wc-lid { transform: translateY(-26px) rotate(-18deg); }
.wchest.open .wc-glow { opacity: 1; }
.wbench { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.wb { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; cursor: pointer; min-width: 0; }
.wb img { width: 36px; height: 36px; object-fit: contain; }
.wb > span { display: flex; flex-direction: column; min-width: 90px; font-size: 11.5px; }
.wb .whp { background: var(--panel2); }
.wb .whp b { color: var(--text); text-shadow: none; }
.wb.ko { opacity: .5; }
.wb:disabled { cursor: default; }
.wpanel { margin-top: 8px; }
.wmoves { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wmv { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 16px; cursor: pointer; text-align: left;
  border: 2px solid var(--mc, #9aa3c0); background: var(--panel); color: var(--text); font: inherit; box-shadow: 0 4px 0 color-mix(in srgb, var(--mc, #9aa3c0) 55%, transparent);
  transition: transform .1s; }
.wmv:active { transform: translateY(3px); box-shadow: none; }
.wmv b { font: 700 15px Fredoka, sans-serif; }
.wmv small { font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.25; }
.wmv.up { background: color-mix(in srgb, var(--mc) 14%, var(--panel)); }
.wmv.up b { color: color-mix(in srgb, var(--mc) 70%, var(--text)); }
.wmv.down { opacity: .8; }
.wmv.def { --mc: #8ef0ff; }
.wmv.busy, .wb.busy, .wpanel .btn.busy { pointer-events: none; opacity: .6; }
.wend { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.wwin { font: 700 22px Fredoka, sans-serif; color: var(--accent); }
.wclear { padding: 6px 12px; border-radius: 12px; background: linear-gradient(180deg, #fff7da, #f2cd6e); color: #6b4a00; font-weight: 800; font-size: 13px; }
.wscan { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(110deg, #3dd6ff, #a470ff) !important; }
.wscan svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.wnext { width: 100%; gap: 8px; }
.wover h2 { margin: 4px 0; }
.wo-scans { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.wo-scans .card { width: 100%; }
@media (prefers-reduced-motion: reduce) { .wp-swirl, .wp-core, .wf-img, .wrun-banner, .wchest { animation: none !important; } }

/* Home's places to play: InfiniWorld first */
.pl.iw { background: linear-gradient(150deg, #3dd6ff, #8b55ee 55%, #e44f9c); }

/* ------------------------------------------------------------------ Shadow: the name always stands out (14/11)
   The violet name vanished on the violet aura. Now it is pale lettering with a black edge and a red glow, on a dark
   band; the frame's crest eye glows red, like the creature's eyes. */
.card.st-shadow .ct { background: linear-gradient(90deg, rgba(8, 2, 18, .85), rgba(8, 2, 18, .6) 70%, rgba(8, 2, 18, 0)); }
.card.st-shadow .cn, .card.st-shadow .cn.mix { color: #f7f0ff; background: none; -webkit-text-fill-color: #f7f0ff; filter: none;
  text-shadow: 0 0 .5cqw #000, 0 .55cqw 0 #000, 0 0 2.6cqw #ff2a4a, 0 0 5cqw rgba(255, 42, 74, .6); }
.mini.st-shadow .mini-name, .mini.st-shadow .mini-name.mix { color: #f7f0ff; -webkit-text-fill-color: #f7f0ff; filter: none;
  background: linear-gradient(180deg, transparent, rgba(8, 2, 18, .92) 55%); text-shadow: 0 1px 0 #000, 0 0 6px #ff2a4a; }
.card.st-shadow .rim::before { background: radial-gradient(closest-side, rgba(255, 220, 220, .95), rgba(255, 40, 70, .7) 45%, transparent); }

/* ------------------------------------------------------------------ round 3 (14/11): actions, community gift, update pop-up */
.adots { display: inline-flex; gap: 4px; vertical-align: middle; }
.adots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; opacity: .45; }
.adots i.on { opacity: 1; background: radial-gradient(circle, #fff, #ff9ad8 45%, #a470ff); border-color: #a470ff; box-shadow: 0 0 6px rgba(255, 120, 220, .7); }
.wact { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 10px 0 8px; padding: 8px 12px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; }
.wact b { font: 700 14px Fredoka, sans-serif; }
.wact span:last-child { color: var(--muted); font-weight: 700; }
.lab-acts { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line);
  font: 800 12px Nunito, sans-serif; color: var(--muted); }
.comm { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 16px;
  background: linear-gradient(110deg, rgba(61, 214, 255, .14), rgba(164, 112, 255, .14), rgba(255, 79, 163, .14)); border: 1px solid var(--line); }
.comm b { font: 700 14px Fredoka, sans-serif; }
.comm-bar { height: 10px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.comm-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3dd6ff, #a470ff, #ff4fa3); }
.comm small { grid-column: 1 / -1; color: var(--muted); font-weight: 700; }
.ds-eggs .btn { flex: none; margin-left: auto; }
.upd { text-align: center; }
.upd-badge { width: 64px; height: 64px; margin: 4px auto 6px; border-radius: 50%; display: grid; place-items: center; font: 700 30px Fredoka, sans-serif; color: #fff;
  background: radial-gradient(circle at 35% 30%, #fff6, transparent 40%), linear-gradient(135deg, #3dd6ff, #a470ff 50%, #ff4fa3); box-shadow: 0 8px 20px rgba(164, 112, 255, .45);
  animation: slpulse 2.4s ease-in-out infinite; }
.upd ul { text-align: left; margin: 10px 0 14px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.upd li b { color: var(--accent); margin-right: 4px; }

/* the ceremony stays put (14/11): no scrolling or pinching it like a picture; the card fits the screen */
#cer { overflow: hidden; touch-action: none; overscroll-behavior: none; padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
#cer .cer-box { max-height: 100%; gap: 10px; }
#cer .cer-card { width: clamp(120px, calc((100dvh - 300px) / 1.48), 250px); max-width: 62vw; transition: width .35s; }
#cer.naming .cer-card { width: clamp(110px, calc((100dvh - 470px) / 1.48), 230px); }

/* InfiniWorld in the dock (14/11): six places now, so a little narrower; its portal icon keeps the logo colours */
#tabs.dock a { font-size: 10px; letter-spacing: -.1px; min-width: 0; }
#tabs.dock .dock-iw svg { stroke: url(#infgrad); }
#tabs.dock .dock-iw span { white-space: nowrap; }
@media (max-width: 360px) { #tabs.dock a { font-size: 9px; } }

/* ------------------------------------------------------------------ InfiniWorld in 3D (world3d.js), 14/11 round 4 */
.w3d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: none; }
.wmap3d { position: relative; height: min(64vh, 440px); margin: 0 0 10px; border-radius: 24px; overflow: hidden; border: 3px solid #fff;
  background: radial-gradient(circle at 50% 40%, #3a2a7a, #0c0a2a 75%); box-shadow: 0 14px 34px rgba(40, 20, 110, .35); }
.w3d-label { position: absolute; left: 0; top: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 8px 4px;
  border: 0; border-radius: 10px; background: rgba(255, 255, 255, .93); color: #2c2650; font: 700 11px/1.1 Fredoka, sans-serif; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(20, 10, 60, .35); cursor: pointer; transition: opacity .25s; will-change: transform; }
.w3d-label span { padding: 0 6px; border-radius: 99px; background: #ffd23d; color: #4a3400; font: 800 9.5px Nunito, sans-serif; }
.w3d-label.clear { background: linear-gradient(180deg, #fff7da, #f2cd6e); }
.wscene { height: 360px; }
.wscene .wcanvas { position: absolute; inset: 0; z-index: 0; }
.wscene.three { background-image: none !important; background: #0c0a20; }
.wscene.three .wf-img, .wscene.three .wf-q, .wscene.three .wme img, .wscene.three .wchest { visibility: hidden; }
.wscene .wfoe, .wscene .wme, .wscene .wlog { z-index: 2; pointer-events: none; }
.wscene.three .wfoe { width: 46%; }
.wscene.three .wme { bottom: 12%; width: 44%; }
.wf-warn, .wf-new { align-self: flex-start; padding: 0 8px; border-radius: 99px; font: 800 10px Nunito, sans-serif; }
.wf-warn { background: #ffcc33; color: #4a2a00; animation: wwarn .9s ease-in-out infinite alternate; }
.wf-new { background: #8ef0ff; color: #0b3a4a; }
@keyframes wwarn { to { background: #ff8a3d; box-shadow: 0 0 10px #ffcc33; } }
.wsight { position: absolute; left: 50%; top: 38%; z-index: 4; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 18px; border-radius: 18px; text-align: center; pointer-events: none; animation: wsight 3.2s ease-out forwards; width: max-content; max-width: 86%; }
.wsight b { font: 700 24px Fredoka, sans-serif; letter-spacing: 1px; }
.wsight small { font: 800 12px Nunito, sans-serif; }
.wsight.never { background: linear-gradient(180deg, rgba(60, 30, 0, .92), rgba(30, 10, 0, .92)); color: #ffd23d; border: 2px solid #ffcc33;
  box-shadow: 0 0 0 4px rgba(255, 204, 51, .25), 0 0 40px rgba(255, 170, 40, .6); }
.wsight.new { background: rgba(8, 30, 44, .9); color: #8ef0ff; border: 2px solid #8ef0ff; animation-duration: 2.2s; }
@keyframes wsight { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 10% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  16%, 24% { transform: translate(-52%, -50%) scale(1); } 20% { transform: translate(-48%, -50%) scale(1); } 85% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(.96); } }
.wfoe.fled .wf-img { animation: wfled .6s ease-in forwards; }
@keyframes wfled { to { transform: translateX(160px); opacity: 0; } }

/* ------------------------------------------------------------------ the profile look (14/11 round 5) */
.pc-av { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  font: 700 46px Fredoka, sans-serif; color: #fff; background: radial-gradient(circle at 35% 30%, #ffffff55, transparent 45%), linear-gradient(135deg, #3dd6ff, #a470ff 55%, #ff4fa3);
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--acc, #a470ff), 0 10px 24px rgba(30, 15, 80, .35); }
.pc-av img { width: 112%; height: 112%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); }
.pcard h1 { margin-top: 6px; }
.pc-title { padding: 2px 12px; border-radius: 99px; background: var(--acc, #a470ff); color: #fff; font: 800 12px Nunito, sans-serif; text-shadow: none;
  box-shadow: 0 3px 10px rgba(30, 15, 80, .25); }
.pc-feats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 2px 0; }
.pc-feat { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 3px; border-radius: 99px; background: rgba(255, 255, 255, .88);
  color: #2c2650; font: 800 11.5px Nunito, sans-serif; text-shadow: none; box-shadow: 0 2px 8px rgba(30, 15, 80, .2); }
.pc-feat i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 10px Nunito, sans-serif; font-style: normal;
  color: #4a3400; background: radial-gradient(circle at 35% 30%, #fff8d0, #ffd23d 60%, #e0a000); }
.pc-medals { display: flex; align-items: center; gap: 10px; width: min(100%, 380px); margin: 6px auto 14px; padding: 10px 14px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 700 14px Fredoka, sans-serif; }
.pc-medals span:first-child { flex: 1; text-align: left; }
.pc-medals b { color: var(--accent); }
.md-box .md-grid { max-height: 62vh; overflow-y: auto; }
/* backgrounds a player can pick (the card back one is the light look's default) */
html body :is(.pcard, .lk-b).bn-dusk { background: linear-gradient(160deg, #30268c, #6828a0 55%, #963070); }
html body :is(.pcard, .lk-b).bn-night { background: radial-gradient(circle at 30% 18%, #3a3a9a, #0c0a2a 70%); }
html body :is(.pcard, .lk-b).bn-aurora { background: linear-gradient(160deg, #0f3a4a, #1fa38a 45%, #6a3fd6); }
html body :is(.pcard, .lk-b).bn-sunset { background: linear-gradient(160deg, #ff8a3d, #ff4fa3 55%, #6a3fd6); }
html body :is(.pcard, .lk-b).bn-fire { background: linear-gradient(180deg, rgba(10, 6, 30, .3), rgba(10, 6, 30, .62)), url(/art/bg-fire.webp?v=1) center / cover; }
html body :is(.pcard, .lk-b).bn-water { background: linear-gradient(180deg, rgba(10, 6, 30, .3), rgba(10, 6, 30, .62)), url(/art/bg-water.webp?v=1) center / cover; }
html body :is(.pcard, .lk-b).bn-grass { background: linear-gradient(180deg, rgba(10, 6, 30, .3), rgba(10, 6, 30, .62)), url(/art/bg-grass.webp?v=1) center / cover; }
html body :is(.pcard, .lk-b).bn-electric { background: linear-gradient(180deg, rgba(10, 6, 30, .3), rgba(10, 6, 30, .62)), url(/art/bg-electric.webp?v=1) center / cover; }
html body :is(.pcard, .lk-b).bn-ice { background: linear-gradient(180deg, rgba(10, 6, 30, .3), rgba(10, 6, 30, .62)), url(/art/bg-ice.webp?v=1) center / cover; }
html body :is(.pcard, .lk-b).bn-ghost { background: linear-gradient(180deg, rgba(10, 6, 30, .3), rgba(10, 6, 30, .62)), url(/art/bg-ghost.webp?v=1) center / cover; }
html body :is(.pcard, .lk-b).bn-metal { background: linear-gradient(180deg, rgba(10, 6, 30, .3), rgba(10, 6, 30, .62)), url(/art/bg-metal.webp?v=1) center / cover; }
html body :is(.pcard, .lk-b).bn-sweet { background: linear-gradient(180deg, rgba(10, 6, 30, .3), rgba(10, 6, 30, .62)), url(/art/bg-sweet.webp?v=1) center / cover; }
html body :is(.pcard, .lk-b).bn-light { background: linear-gradient(180deg, rgba(10, 6, 30, .3), rgba(10, 6, 30, .62)), url(/art/bg-light.webp?v=1) center / cover; }
html body :is(.pcard, .lk-b).bn-sky { background: linear-gradient(180deg, rgba(10, 6, 30, .3), rgba(10, 6, 30, .62)), url(/art/bg-sky.webp?v=1) center / cover; }
.lk-b.bn-cardback { background: url(/art/card-back.webp?v=2) center / cover, linear-gradient(115deg, #5ca8ff, #a470ff, #ff78c4, #ffb870); }
html body .pcard:not(.bn-cardback) { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
html body .pcard:not(.bn-cardback) :is(.pc-kick, .pc-wl, .pc-since) { color: #fff; }
html body .pcard:not(.bn-cardback) :is(.pc-stats span, .pc-wall) { background: rgba(10, 6, 30, .35); color: #fff; }
/* the editor */
.lk-box h2 { margin: 2px 0 8px; }
.lk-prev { display: flex; justify-content: center; margin-bottom: 10px; }
.lk-card { width: 100%; padding: 14px 12px; }
.lk-card .pc-av { width: 76px; height: 76px; font-size: 34px; }
.lk-card h1 { font-size: 22px; }
.lk-av { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; max-height: 150px; overflow-y: auto; padding: 4px; margin-bottom: 10px; }
.lk-a { aspect-ratio: 1; padding: 2px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel2); cursor: pointer; display: grid; place-items: center; overflow: hidden; }
.lk-a img { width: 110%; height: 110%; object-fit: contain; }
.lk-a span { font: 700 22px Fredoka, sans-serif; }
.lk-a.on { border-color: #a470ff; box-shadow: 0 0 0 3px rgba(164, 112, 255, .35); }
.lk-bn { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.lk-b { height: 38px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.lk-b.on { border-color: #fff; box-shadow: 0 0 0 3px #a470ff; }
.lk-ti { margin-bottom: 10px; }
.lk-ti .chip.on { background: var(--btngrad, linear-gradient(100deg, #5a9cf6, #9259f2 45%, #ef5aae)); color: #fff; border-color: transparent; }
.lk-ft { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lk-f { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 3px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font: 800 12px Nunito, sans-serif; cursor: pointer; }
.lk-f i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; background: var(--panel2); }
.lk-f.on { border-color: #ffc93d; box-shadow: 0 0 0 2px rgba(255, 201, 61, .45); }
.lk-f.on i { background: radial-gradient(circle at 35% 30%, #fff8d0, #ffd23d 60%, #e0a000); color: #4a3400; }
.lk-ac { display: flex; gap: 10px; margin-bottom: 14px; }
.lk-c { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; background: var(--c); cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.lk-c.on { box-shadow: 0 0 0 3px var(--c), 0 2px 8px rgba(0, 0, 0, .3); }
/* the dock with seven places: a bit narrower */
#tabs.dock a { font-size: 9px; letter-spacing: -.2px; }
#tabs.dock a svg { width: 21px; height: 21px; }

/* the region sheet: weakness table, Power it asks for, suggested team (14/11 round 6) */
.ws-chart { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 10px; padding: 10px 12px; border-radius: 16px; background: var(--panel2); border: 1px solid var(--line); }
.wsc-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font: 800 12px Nunito, sans-serif; }
.wsc-row > span { min-width: 118px; }
.wsc-row.up > span { color: #1faa68; } .wsc-row.down > span { color: #e5435d; }
.wsc-row .ty { font-size: 10.5px; padding: 1px 8px; }
.wsc-pw, .wsc-team { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 8px; padding-top: 6px; border-top: 1px dashed var(--line); }
.wsc-pw span, .wsc-team span { font: 800 12px Nunito, sans-serif; }
.wsc-pw b, .wsc-team b { font: 700 18px Fredoka, sans-serif; color: var(--accent); }
.wsc-team b.ok { color: #1faa68; } .wsc-team b.mid { color: #d38a00; } .wsc-team b.low { color: #e5435d; }
.wsc-pw small, .wsc-team small { grid-column: 1 / -1; color: var(--muted); font-weight: 700; font-size: 11px; }
.ws-sug { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); z-index: 5; padding: 1px 8px; border-radius: 99px;
  background: #1faa68; color: #fff; font: 800 10px Nunito, sans-serif; white-space: nowrap; }
.ws-edge { position: absolute; top: -6px; right: -6px; z-index: 5; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font: 800 11px Nunito, sans-serif; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.ws-edge.up { background: #1faa68; } .ws-edge.down { background: #e5435d; }

/* ------------------------------------------------------------------ round 7: variants, groups, the celebration */
.wf-var { align-self: flex-start; padding: 0 8px; border-radius: 99px; font: 800 10px Nunito, sans-serif; color: #1b1030; background: var(--vc, #fff);
  box-shadow: 0 0 10px var(--vc, #fff); }
.wsight.var { background: rgba(14, 8, 34, .92); color: var(--vc); border: 2px solid var(--vc); box-shadow: 0 0 0 4px rgba(255, 255, 255, .12), 0 0 40px var(--vc); }
.wsc-row.var > span { color: #a470ff; }
.vchip { font-style: normal; padding: 1px 8px; border-radius: 99px; font: 800 10.5px Nunito, sans-serif; color: #1b1030; background: var(--vc); }
.wgroup { margin: -2px 0 8px; padding: 6px 12px; border-radius: 12px; background: rgba(164, 112, 255, .12); border: 1px solid rgba(164, 112, 255, .35); font: 800 12px Nunito, sans-serif; }
.wm-own { font: 800 10px Nunito, sans-serif; color: #ffd6f0; }
.wb small { color: var(--muted); font-weight: 800; }
.wparty { margin: 0 0 12px; padding: 12px; border-radius: 18px; background: var(--panel); border: 2px solid var(--c, #a470ff); box-shadow: 0 8px 22px rgba(60, 30, 140, .18); }
.wparty.inv { border-style: dashed; }
.wpy-h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.wpy-h b { font: 700 16px Fredoka, sans-serif; }
.wpy-h span { font: 800 11.5px Nunito, sans-serif; color: var(--muted); }
.wpm { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-top: 1px solid var(--line); }
.wpm .grow { display: flex; flex-direction: column; min-width: 0; }
.wpm small { color: var(--muted); font-weight: 700; font-size: 11.5px; }
.wpm img { width: 42px; height: 42px; object-fit: contain; }
.wpm.invited { opacity: .6; }
.wpm-wait { font-style: normal; font: 700 18px Fredoka, sans-serif; color: var(--muted); animation: blink 1.4s infinite; }
.wpy-b { gap: 8px; margin-top: 8px; align-items: center; }
.wg-friends { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 10px 0 12px; }
.wg-f { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.wg-f.on { border-color: #a470ff; box-shadow: 0 0 0 3px rgba(164, 112, 255, .3); }
#tabs.dock #dot-world { right: calc(50% - 17px); }
/* the naming party */
.cer-fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#cer.party .cer-rays { display: none; }
#cer.party .cer-card { animation: cerfloat 3.2s ease-in-out infinite; }
#cer.on.party .cer-card { animation: cerrise .9s cubic-bezier(.2, 1.3, .4, 1) .15s backwards, cerfloat 3.2s ease-in-out 1.1s infinite; }
@keyframes cerfloat { 50% { transform: translateY(-8px); } }
#cer.party .cer-kick { animation: cerkick 1.6s ease-in-out infinite; }
@keyframes cerkick { 50% { letter-spacing: 4px; text-shadow: 0 0 12px #fff, 0 0 22px #ff9ad8; } }
.cer-named { position: absolute; left: 50%; top: 28%; z-index: 3; transform: translate(-50%, -50%); padding: 10px 22px; border-radius: 18px; white-space: nowrap;
  font: 700 30px Fredoka, sans-serif; color: #fff; background: linear-gradient(110deg, #ff8a3d, #ff4fa3, #a470ff); box-shadow: 0 0 0 4px #fff, 0 12px 40px rgba(255, 79, 163, .6);
  animation: cernamed 2.6s cubic-bezier(.2, 1.4, .4, 1) forwards; pointer-events: none; }
@keyframes cernamed { 0% { transform: translate(-50%, -50%) scale(.2) rotate(-8deg); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.15) rotate(2deg); opacity: 1; }
  25% { transform: translate(-50%, -50%) scale(1) rotate(0); } 80% { opacity: 1; } 100% { transform: translate(-50%, -80%) scale(.9); opacity: 0; } }
/* the lens as a battle move, against a never-seen creature */
.wmv.lensmv { --mc: #8ef0ff; grid-column: 1 / -1; border: 2px dashed #8ef0ff; background: color-mix(in srgb, #8ef0ff 12%, var(--panel)); }
.wmv.lensmv b { color: color-mix(in srgb, #2aa9c9 75%, var(--text)); }
.wmv.lensmv[disabled] { opacity: .5; }

/* ------------------------------------------------------------------ the region sheet on one screen (14/11) */
.wsheet.compact .ws-head { padding: 20px 16px 10px; margin-bottom: 8px; }
.wsheet.compact .ws-head h2 { font-size: 23px; margin: 2px 0 1px; line-height: 1.1; }
.wsh-top { display: flex; justify-content: space-between; align-items: center; }
.ws-sub { display: block; font: 800 11.5px Nunito, sans-serif; opacity: .95; }
.wsheet.compact .ws-prog { margin: 7px 0 0; height: 5px; background: rgba(255, 255, 255, .22); }
.wsheet.compact .ws-chart { gap: 6px; margin: 0 0 8px; padding: 8px 10px; }
.wsc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wsheet.compact .wsc-duo .wsc-row { gap: 4px; }
.wsheet.compact .wsc-duo .wsc-row > span { min-width: 0; width: 100%; font-size: 11px; }
.wsheet.compact .wsc-row .ty { font-size: 9.5px; padding: 0 7px; }
.wsheet.compact .wsc-row.var { gap: 4px; }
.wsheet.compact .wsc-row.var > span { min-width: 0; }
.wsheet.compact .vchip { font-size: 9.5px; padding: 0 6px; }
.wsheet.compact .wsc-row.var small { font: 800 10px Nunito, sans-serif; color: var(--muted); }
.wsheet.compact .wsc-pw { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; padding-top: 6px; font: 800 12px Nunito, sans-serif; }
.wsheet.compact .wsc-pw b { font: 700 16px Fredoka, sans-serif; }
#ws-ready b.ok { color: #1faa68; } #ws-ready b.mid { color: #d38a00; } #ws-ready b.low { color: #e5435d; }
.ws-hint { display: block; margin-top: -2px; font: 700 11px Nunito, sans-serif; color: var(--muted); }
.ws-hint.ok { color: #1faa68; } .ws-hint.low { color: #e5435d; }
.wsheet.compact .ws-starts { margin: 0 0 8px; align-items: center; gap: 6px; }
.ws-slots-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ws-slots-h .label { flex: 1; margin: 0; }
.ws-slots-h .chip { padding: 4px 10px; }
.ws-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ws-slot, .ws-t { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px 4px;
  font: inherit; color: var(--text); cursor: pointer; }
.ws-slot { height: 100px; border-radius: 16px; border: 2px dashed var(--line); background: var(--panel2); color: var(--muted); transition: transform .12s; }
.ws-slot:active, .ws-t:active { transform: scale(.96); }
.ws-slot.full { border-style: solid; border-color: color-mix(in srgb, var(--c) 55%, var(--line)); background: var(--panel); color: var(--text); }
.ws-slot.pick { border-color: #ffd23d; box-shadow: 0 0 0 3px rgba(255, 210, 61, .45); }
/* 19/11: the team's order: the place number, the handle to drag it, where it would land */
.ws-ord { position: absolute; top: -7px; left: -5px; z-index: 2; min-width: 22px; padding: 1px 5px; border-radius: 99px; font: 800 10.5px/1.5 Nunito, sans-serif;
  font-style: normal; color: #fff; background: color-mix(in srgb, var(--c) 75%, #1a1040); box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.ws-drag { position: absolute; right: 3px; bottom: 3px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  font-size: 16px; line-height: 1; color: var(--muted); background: color-mix(in srgb, var(--panel2) 85%, transparent); cursor: grab; touch-action: none; user-select: none; }
.ws-drag:hover { color: var(--text); }
.ws-slot.dragging { z-index: 5; cursor: grabbing; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); transition: none; opacity: .95; }
.ws-slot.drop { border-color: #ffd23d; border-style: dashed; background: color-mix(in srgb, #ffd23d 14%, var(--panel)); }
.ws-slot.landed { animation: ws-land .35s ease-out; }
@keyframes ws-land { 40% { transform: scale(1.06); } }
.ws-ordh { display: block; margin: 6px 2px 0; color: var(--muted); font: 700 11.5px/1.3 Nunito, sans-serif; }
/* 19/11: the level on the tiles; the ⓘ and the stats panel under the team */
.ws-lv { font-style: normal; padding: 0 5px; border-radius: 99px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--text); }
.ws-ib { position: absolute; left: 3px; bottom: 3px; z-index: 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font: italic 800 13px/1 Georgia, serif; color: var(--text); background: color-mix(in srgb, var(--panel2) 85%, transparent); border: 1px solid var(--line); cursor: pointer; }
.ws-ib:hover, .ws-slot.info .ws-ib { background: var(--c); color: #fff; border-color: transparent; }
.ws-slot.info { box-shadow: 0 0 0 2px var(--c); }
.ws-info { margin-top: 8px; padding: 10px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); background: var(--panel); }
.ws-info[hidden] { display: none; }
.wsi-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wsi-h img { width: 44px; height: 44px; object-fit: contain; }
.wsi-h span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.wsi-h b { font: 700 15px Fredoka, sans-serif; }
.wsi-h small { color: var(--muted); font: 800 11.5px Nunito, sans-serif; }
.wsi-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 18px; cursor: pointer; }
.ws-info .lv-box, .ws-info .pot-box { margin: 6px 0; }
.ws-ordh[hidden] { display: none; }
.ws-plus { font: 700 30px Fredoka, sans-serif; line-height: 1; }
.ws-slot img, .ws-t img { width: 54px; height: 54px; object-fit: contain; }
.ws-slot b, .ws-t b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12px Fredoka, sans-serif; }
.ws-slot small, .ws-t small { font: 800 10.5px Nunito, sans-serif; color: var(--muted); }
.ws-slot em, .ws-t em { font-style: normal; } em.up { color: #1faa68; } em.down { color: #e5435d; }
.ws-tag { position: absolute; top: 4px; left: 4px; padding: 0 6px; border-radius: 99px; background: #ff8a3d; color: #fff; font: 800 9px/1.6 Nunito, sans-serif; font-style: normal; }
.ws-tag.fav { background: #ffd23d; color: #4a3200; }
.ws-strip { display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px 4px; margin-top: 4px; overscroll-behavior-x: contain; }
.ws-strip[hidden] { display: none; }
.ws-t { flex: 0 0 84px; height: 96px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.ws-t.clear { color: #e5435d; } .ws-t.clear span { font: 700 26px Fredoka, sans-serif; }
.ws-btns { gap: 8px; margin-top: 10px; }
.ws-btns .btn.alt { flex: 0 0 auto; }
.ws-pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; max-height: 60vh; overflow-y: auto; margin-top: 8px; padding: 2px; }
.ws-pickgrid .ws-t { flex: none; }

/* ------------------------------------------------------------------ round 8 (14/11) */
/* the dock: InfiniWorld, Packs and the Lab are the heart of the game, so they stand out */
#tabs.dock .dock-iw, #tabs.dock .dock-lab { flex: 1.22; }
#tabs.dock .dock-iw svg, #tabs.dock .dock-lab svg { width: 28px; height: 28px; stroke-width: 2.3; }
#tabs.dock .dock-lab svg { stroke: url(#labgrad); }
#tabs.dock .dock-iw span, #tabs.dock .dock-lab span { font-weight: 900; font-size: 10px; }
#tabs.dock .dock-iw span { background: linear-gradient(90deg, #ff8a3d, #ff4fa3, #3dd6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
#tabs.dock .dock-lab span { background: linear-gradient(90deg, #3dd6ff, #a470ff, #ff4fa3); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* 14/11 (owner): the big InfiniWorld / Lab icons pushed the label onto the active dot: label up a little, dot lower */
#tabs.dock .dock-iw, #tabs.dock .dock-lab { gap: 1px; }
#tabs.dock a.on::before { bottom: 0; }
#tabs.dock .dock-main { flex: 1.25; }
.dock-orb { top: -30px; width: 66px; height: 66px; margin-left: -33px; }
#tabs.dock .dock-orb svg { width: 31px; height: 31px; }
#tabs.dock .dock-main span[data-t] { font-weight: 900; }
/* 14/11: the pack's badge sits inside the orb's top-right, within the crown of action dots (layout.css .dock-acts) */
#tabs.dock .dock-main .dot { top: -18px; right: calc(50% - 21px); z-index: 2; width: 10px; height: 10px; background: #ffd23d; animation: dbadge 1.8s infinite; }
@keyframes dbadge { 0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 0 rgba(255, 210, 61, .75); } 70% { box-shadow: 0 0 0 2px #fff, 0 0 0 8px rgba(255, 210, 61, 0); } }
/* resting creatures */
.ws-tag.rest { background: #6b7393; color: #fff; }
.ws-t.tired { opacity: .45; filter: grayscale(.6); cursor: not-allowed; }
/* rare finds on Home */
.wfinds { margin: 14px 0 6px; }
.wfd-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.wfd-h b { font: 700 17px Fredoka, sans-serif; }
.wfd-h a { font: 800 12px Nunito, sans-serif; color: var(--accent); text-decoration: none; }
.wfd-rail { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; overscroll-behavior-x: contain; }
.wfd { position: relative; flex: 0 0 116px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 6px 8px; border-radius: 18px;
  text-decoration: none; color: var(--text); background: var(--panel); border: 2px solid color-mix(in srgb, var(--vc) 70%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--vc) 30%, transparent); }
.wfd-img { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--vc) 45%, transparent), transparent 70%); }
.wfd-img img { width: 62px; height: 62px; object-fit: contain; }
.wfd b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px Fredoka, sans-serif; }
.wfd-l { font: 800 10px Nunito, sans-serif; color: color-mix(in srgb, var(--vc) 55%, var(--text)); text-align: center; line-height: 1.2; }
.wfd-by { font: 700 10px Nunito, sans-serif; color: var(--muted); }
.wfd.k-never .wfd-img img { filter: drop-shadow(0 0 6px #ffcc33); }
.live-n.find { border: 2px solid #ffd23d; box-shadow: 0 10px 30px rgba(255, 190, 40, .45); }
.wait.name-it { border: 2px solid #ffd23d; box-shadow: 0 0 0 3px rgba(255, 210, 61, .25); }

/* ================================================================== round 9 (14/11): the battle in the game's style */
/* 16/11 (owner: "always keep the chat bubble in the corner"): down in InfiniWorld it stays, as a small round bubble */
body:has(.wrun) #chat-fab { width: 46px; padding: 0; justify-content: center; border-radius: 50%; }
body:has(.wrun) #chat-fab > span { display: none; }
@media (max-width: 720px) { body:has(.wrun) .wthr-wrap { margin-right: 54px; } }    /* the bubble's corner, beside the Scancard row */
.wrun { padding-bottom: 6px; }
.wr-top { margin-bottom: 4px; }
.wr-reg { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; padding: 2px 10px 2px 3px; border-radius: 99px;
  background: color-mix(in srgb, var(--c) 16%, var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  font: 800 10.5px Nunito, sans-serif; letter-spacing: .4px; text-transform: uppercase; color: color-mix(in srgb, var(--c) 60%, var(--text)); }
.wr-el { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--c); }
.wr-el svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wr-st { font-size: 20px; line-height: 1.1; }
.wr-bag { box-shadow: 0 3px 0 var(--line); }
/* the trail of stages */
.wtrail { position: relative; display: flex; justify-content: space-between; align-items: center; height: 24px; margin: 2px 2px 8px; }
.wtrail::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 4px; margin-top: -2px; border-radius: 99px;
  background: linear-gradient(90deg, var(--c) var(--done, 0%), var(--line) 0); opacity: .9; }
.wt { position: relative; z-index: 1; display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; font-style: normal;
  background: var(--panel); border: 2px solid var(--line); font: 800 9px Nunito, sans-serif; color: var(--text); }
.wt.done { background: var(--c); border-color: var(--c); }
.wt.cp { border-radius: 3px; transform: rotate(45deg); width: 11px; height: 11px; border-color: #a470ff; }
.wt.cp.done { background: #a470ff; }
.wt.chest, .wt.boss { width: 20px; height: 20px; background: none; border: 0; font-size: 14px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.wt.chest.done { opacity: .45; filter: grayscale(.7); }
.wt.boss { font-size: 17px; }
.wt.now { width: 22px; height: 22px; background: linear-gradient(135deg, #ffd23d, #ff8a3d); border: 2px solid #fff; color: #4a2a00; font-size: 10.5px;
  box-shadow: 0 0 0 3px rgba(255, 190, 60, .45), 0 0 14px rgba(255, 170, 40, .8); animation: wtnow 1.6s ease-in-out infinite; transform: none; }
@keyframes wtnow { 50% { box-shadow: 0 0 0 6px rgba(255, 190, 60, .2), 0 0 18px rgba(255, 170, 40, .9); } }
/* the stage itself */
.wscene { height: min(46vh, 330px); min-height: 270px; border-radius: 24px; border: 3px solid #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent), 0 14px 30px rgba(40, 20, 90, .3); }
html:not(.light) .wscene { border-color: rgba(255, 255, 255, .14); }
/* name plates, like the bottom of a card */
.wplate { position: relative; align-self: stretch; display: flex; flex-direction: column; gap: 3px; padding: 6px 9px 7px; border-radius: 14px; color: #2c2650;
  background: linear-gradient(180deg, #ffffff, #f4efff); border: 2px solid var(--pc);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 8px 18px rgba(10, 5, 40, .45); }
.wplate::before { content: ""; position: absolute; left: 10px; right: 10px; top: -2px; height: 3px; border-radius: 0 0 4px 4px; background: var(--pc); }
html:not(.light) .wplate { color: #fff; background: linear-gradient(180deg, rgba(34, 26, 70, .96), rgba(20, 14, 46, .96)); }
.wp-rib { position: absolute; left: 8px; bottom: calc(100% + 3px); display: flex; gap: 4px; flex-wrap: wrap; }
.wp-rib > span { padding: 1px 8px; border-radius: 99px; font: 800 10px/1.5 Nunito, sans-serif; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.wp-rib .wf-boss { background: linear-gradient(90deg, #ff4f6f, #ff8a3d); color: #fff; letter-spacing: .5px; font-family: Nunito, sans-serif; font-size: 10px; }
.wp-rib .wf-warn { background: #ffcc33; color: #4a2a00; }
.wp-rib .wf-new { background: #8ef0ff; color: #08303e; }
.wp-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 15px/1.15 Fredoka, sans-serif; }
.wp-pw { flex: none; padding: 1px 7px; border-radius: 99px; background: linear-gradient(90deg, #ff8a3d, #ff4fa3); color: #fff; font: 800 11px/1.5 Nunito, sans-serif;
  box-shadow: 0 2px 0 #c2357a; }
.wp-mid { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-height: 15px; }
.wp-mid .ty { font-size: 9px; padding: 0 6px; }
.wp-mid .wm-own { font: 800 10px Nunito, sans-serif; color: #a470ff; }
.wp-st { font-style: normal; font-size: 12px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.wplate .whp { height: 11px; margin-top: 1px; background: #e7e1f6; box-shadow: inset 0 1px 2px rgba(40, 20, 90, .25); }
html:not(.light) .wplate .whp { background: rgba(255, 255, 255, .14); }
.wplate .whp i { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35); }
.wplate .whp b { font-size: 8.5px; letter-spacing: .3px; }
.wscene .wfoe { top: 9%; }
.wscene.three .wfoe { width: 54%; right: 3%; }
.wscene.three .wme { width: 54%; left: 3%; bottom: 13%; }
.wscene.three .wme .wplate { margin-top: 0; }
/* the turn caption */
.wlog { left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 5px 12px 5px 6px; border-radius: 99px;
  background: rgba(255, 255, 255, .94); color: #2c2650; font: 800 12.5px/1.25 Nunito, sans-serif; box-shadow: 0 6px 16px rgba(10, 5, 40, .4);
  animation: wlogin .3s cubic-bezier(.2, 1.4, .4, 1); }
.wlog::before { content: "∞"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font: 700 14px/1 Fredoka, sans-serif;
  background: linear-gradient(135deg, #ff8a3d, #ff4fa3 55%, #3dd6ff); }
html:not(.light) .wlog { background: rgba(20, 14, 46, .92); color: #fff; }
@keyframes wlogin { from { transform: translateY(8px); opacity: 0; } }
/* the bench: round portraits with a life ring */
.wbench { flex-wrap: nowrap; gap: 8px; margin: 8px 0 6px; overflow-x: auto; }
.wb-l { flex: none; display: flex; flex-direction: column; align-items: center; font: 700 16px/1 Fredoka, sans-serif; color: var(--c); }
.wb-l small { font: 800 9px Nunito, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.wbench .wb { flex: 0 1 auto; display: flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 99px; border: 2px solid var(--line);
  background: var(--panel); box-shadow: 0 3px 0 var(--line); }
.wbench .wb:not(:disabled):active { transform: translateY(2px); box-shadow: none; }
.wb-ring { position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: conic-gradient(var(--hc) var(--hp), color-mix(in srgb, var(--line) 80%, transparent) 0); }
.wb-ring::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--panel2); }
.wb-ring img { position: relative; width: 34px; height: 34px; object-fit: contain; }
.wb-t { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.wb-t b { font: 700 12.5px/1.15 Fredoka, sans-serif; white-space: nowrap; }
.wb-t small { font: 800 10px Nunito, sans-serif; color: var(--muted); }
.wbench .wb.ko .wb-ring img { filter: grayscale(1); opacity: .5; }
/* the skill buttons */
.wmoves { gap: 7px; }
.wmv { position: relative; display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 54px; padding: 7px 10px 7px 7px; border-radius: 16px;
  color: #fff; border: 2px solid rgba(255, 255, 255, .55); overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--mc) 78%, #fff) 0%, var(--mc) 55%, color-mix(in srgb, var(--mc) 78%, #000) 100%);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--mc) 55%, #000), 0 8px 16px color-mix(in srgb, var(--mc) 35%, transparent); }
.wmv::after { content: ""; position: absolute; left: -30%; top: 0; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg); pointer-events: none; }
.wmv:active { transform: translateY(4px); box-shadow: 0 0 0 color-mix(in srgb, var(--mc) 55%, #000); }
.wmv-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .24);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.wmv-ic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wmv-t { display: flex; flex-direction: column; min-width: 0; }
.wmv b, .wmv.up b { font: 700 15px/1.1 Fredoka, sans-serif; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.wmv small { color: rgba(255, 255, 255, .9); font-size: 10.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wmv.up { background: linear-gradient(135deg, color-mix(in srgb, var(--mc) 78%, #fff) 0%, var(--mc) 55%, color-mix(in srgb, var(--mc) 78%, #000) 100%);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--mc) 55%, #000), 0 0 0 3px #ffd23d, 0 8px 18px rgba(255, 190, 40, .45); }
.wmv.down { opacity: .82; filter: saturate(.7); }
.wmv-x { position: absolute; top: 4px; right: 6px; padding: 0 6px; border-radius: 99px; font: 800 9.5px/1.6 Nunito, sans-serif; font-style: normal; }
.wmv-x.up { background: #ffd23d; color: #4a2a00; }
.wmv-x.down { background: rgba(0, 0, 0, .3); color: #fff; }
.wmv.def { --mc: #2bb6d6; }
.wmv.lensmv { --mc: #3dd6ff; grid-column: 1 / -1; border: 2px dashed #fff; background: linear-gradient(110deg, #ff8a3d, #ff4fa3 45%, #3dd6ff); box-shadow: 0 4px 0 #b4337a, 0 8px 18px rgba(255, 79, 163, .4); }
.wmv.lensmv b { color: #fff; }
.wmv.busy { filter: grayscale(.4); }
/* the end of a fight / a chest: a victory card */
.wend { position: relative; gap: 9px; padding: 14px 14px 12px; border-radius: 22px; background: linear-gradient(180deg, #ffffff, #f6f1ff);
  border: 2px solid color-mix(in srgb, var(--c) 60%, #fff); box-shadow: 0 10px 24px rgba(60, 30, 140, .18); overflow: hidden; }
html:not(.light) .wend { background: linear-gradient(180deg, #221a46, #171034); }
.wend.win::before { content: ""; position: absolute; inset: -40% -10% auto; height: 140%; background: radial-gradient(closest-side, rgba(255, 210, 61, .35), transparent);
  pointer-events: none; }
.wwin { position: relative; font: 700 24px Fredoka, sans-serif; background: linear-gradient(90deg, #ff8a3d, #ff4fa3, #a470ff); -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: wwinpop .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes wwinpop { from { transform: scale(.6); opacity: 0; } }
.wrw { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rw { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font: 800 12.5px Nunito, sans-serif; background: var(--panel2);
  border: 1px solid var(--line); color: var(--text); }
.rw.c { background: linear-gradient(180deg, #fff3c4, #ffd76a); border-color: #f0b93a; color: #6b4a00; }
.rw.t { background: #e4f7ff; border-color: #8ad8f5; color: #0b4a63; }
.rw.a { background: #f0e8ff; border-color: #c9b0ff; color: #4b2a99; }
.coin-ic { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6c8, #f2b81f 60%, #b67a00); box-shadow: inset 0 0 0 1.5px #b67a00; }
.wend .wscan { width: 100%; }
/* an X on every pop-up */
.modal-xbar { position: sticky; top: 0; z-index: 30; height: 0; display: flex; justify-content: flex-end; pointer-events: none; }
.modal-x { pointer-events: auto; display: grid; place-items: center; width: 36px; height: 36px; margin: 8px -6px 0 0; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .9); background: rgba(44, 38, 80, .72); color: #fff; font: 700 16px/1 Fredoka, sans-serif;
  box-shadow: 0 4px 12px rgba(20, 10, 60, .35); }
html.light .modal-x { background: rgba(255, 255, 255, .95); color: #2c2650; border-color: var(--line); }
.modal-x:active { transform: scale(.92); }
/* round 9b: battle layout fixes */
.wbench .wb > span.wb-ring, .wbench .wb > span.wb-t { min-width: 0; }
.wscene .wme, .wscene.three .wme { bottom: 8px; }
.wlog { top: 10px; bottom: auto; right: auto; max-width: 44%; border-radius: 14px; align-items: flex-start; text-align: left; }
/* special copies stand out in the pickers; a search box and filters for long collections */
.ws-t[data-var], .ws-slot[data-var] { border: 2px solid var(--vc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--vc) 30%, transparent), inset 0 0 16px color-mix(in srgb, var(--vc) 35%, transparent); }
.ws-var { position: absolute; top: 4px; right: 4px; max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; border-radius: 99px;
  background: var(--vc); color: #1b1030; font: 800 8.5px/1.6 Nunito, sans-serif; font-style: normal; box-shadow: 0 0 8px var(--vc); }
.ws-t[data-var="shiny"] img, .ws-slot[data-var="shiny"] img { filter: drop-shadow(0 0 5px #ffe27a); }
.ws-t[data-var="shadow"] img, .ws-slot[data-var="shadow"] img { filter: drop-shadow(0 0 5px #9b4dff); }
.ws-t[data-var] .ws-tag ~ .ws-var, .ws-slot[data-var] .ws-tag ~ .ws-var { top: auto; bottom: 30px; }
.ws-filter { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.ws-filter[hidden] { display: none; }
.ws-q { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px; border-radius: 99px; border: 2px solid var(--line);
  background: var(--panel); font-size: 13px; }
.ws-q:focus-within { border-color: #a470ff; box-shadow: 0 0 0 3px rgba(164, 112, 255, .2); }
.ws-q input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 700 13px Nunito, sans-serif; color: var(--text); }
.ws-filter .chip { flex: none; padding: 5px 10px; }
.ws-none { padding: 18px 12px; font-size: 12px; }
.pg-q { margin: 6px 0 2px; }
.ws-pickgrid .ws-t[hidden] { display: none; }

/* ================================================================== 14/11 balance report */
/* actions kept from earlier windows: a "+N saved" chip after the dots */
.adots { align-items: center; }
.adots-x { padding: 0 6px; border-radius: 99px; background: linear-gradient(90deg, #a470ff, #ff4fa3); color: #fff; font: 800 10px/1.6 Nunito, sans-serif; white-space: nowrap; }
/* Ascension: the level picker in a region's sheet */
.ws-asc { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 8px 6px 12px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, #9fd8ff 70%, var(--line));
  background: color-mix(in srgb, #9fd8ff 10%, var(--panel)); }
.ws-asc.on { border-style: solid; border-color: #6fb8ff; background: linear-gradient(100deg, color-mix(in srgb, #6fb8ff 22%, var(--panel)), color-mix(in srgb, #a470ff 18%, var(--panel))); }
.wsa-l { flex: none; font: 800 11px Nunito, sans-serif; letter-spacing: .4px; text-transform: uppercase; color: color-mix(in srgb, #3a8ee6 70%, var(--text)); }
.wsa-b { flex: none; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); color: var(--text);
  font: 700 18px/1 Fredoka, sans-serif; cursor: pointer; box-shadow: 0 2px 0 var(--line); }
.wsa-b:disabled { opacity: .35; cursor: default; }
.wsa-b:not(:disabled):active { transform: translateY(2px); box-shadow: none; }
.wsa-n { flex: none; min-width: 62px; text-align: center; font: 700 15px Fredoka, sans-serif; }
.wsa-x { flex: 1; min-width: 0; text-align: right; font: 800 10.5px/1.25 Nunito, sans-serif; color: var(--muted); }
.ws-asc.on .wsa-x { color: color-mix(in srgb, #ff4fa3 70%, var(--text)); }
/* the descent: its Ascension level, and what it holds until it is back up */
.wr-asc { flex: none; margin-left: 2px; padding: 0 6px; border-radius: 99px; background: linear-gradient(90deg, #6fb8ff, #a470ff); color: #fff; font-style: normal;
  letter-spacing: .3px; white-space: nowrap; }
.wr-stake { align-self: flex-start; margin-top: 2px; padding: 1px 8px; border-radius: 99px; background: linear-gradient(180deg, #fff3c4, #ffd76a); border: 1px solid #f0b93a;
  color: #6b4a00; font: 800 10.5px/1.5 Nunito, sans-serif; white-space: nowrap; }
.wpaynote { position: relative; max-width: 300px; font: 700 11px/1.3 Nunito, sans-serif; color: var(--muted); }
.wclear.asc { background: linear-gradient(180deg, #e6f4ff, #9fd0ff); color: #0d3b66; }
.wo-half { margin: 4px 0 8px; padding: 6px 10px; border-radius: 12px; background: color-mix(in srgb, #ffd76a 22%, var(--panel)); border: 1px solid #f0b93a;
  font: 700 12px/1.35 Nunito, sans-serif; }
.wg-asc { font: 800 12px Nunito, sans-serif; color: #3a8ee6; }
/* the front line on the InfiniWorld page */
.wfront { margin: 4px 0 14px; padding: 10px 10px 6px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.wfr-h { display: flex; flex-direction: column; gap: 2px; margin: 0 2px 6px; }
.wfr-h .label { margin: 0; }
.wfr-h small { font: 700 11px/1.3 Nunito, sans-serif; color: var(--muted); }
.wfr-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 4px; border: 0; border-top: 1px dashed var(--line); background: none; color: var(--text);
  font: inherit; text-align: left; cursor: pointer; }
.wfr-row:first-of-type { border-top: 0; }
.wfr-ico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--c); }
.wfr-ico svg { width: 15px; height: 15px; fill: none; stroke: #1b1030; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wfr-name { flex: none; width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px Fredoka, sans-serif; }
.wfr-who { flex: 1; min-width: 0; display: flex; gap: 5px; overflow: hidden; }
.wfr-who i { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 2px; border-radius: 99px; background: var(--panel2);
  font: 800 11px/1.5 Nunito, sans-serif; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfr-who i em { flex: none; padding: 0 5px; border-radius: 99px; background: #e6f4ff; color: #0d3b66; font-style: normal; font-size: 10px; }
.wfr-who i.top em { background: linear-gradient(90deg, #6fb8ff, #a470ff); color: #fff; }
.wfr-who i.me { box-shadow: inset 0 0 0 1.5px #ff4fa3; }

/* 16/11 (owner): "you are already on an exploration, do you want to resume it?" (infiniworld.js resumeAsk) */
.wresume { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 4px 2px; text-align: center; }
.wresume .wrs-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; font-size: 30px; color: #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 60%, #000));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent), 0 8px 22px color-mix(in srgb, var(--c) 45%, transparent); }
.wresume .wrs-ico svg { width: 32px; height: 32px; fill: #fff; }
.wresume h2 { margin: 4px 0 0; font: 700 21px/1.15 Fredoka, sans-serif; }
.wresume .wrs-where { margin: 0; font-size: 14.5px; line-height: 1.45; }
.wresume .wrs-note { margin: 2px 0 4px; padding: 7px 10px; border-radius: 10px; font-size: 12px; line-height: 1.35; color: var(--muted);
  background: color-mix(in srgb, var(--c) 10%, transparent); }
.wresume .row { width: 100%; }
.wresume .wrs-up { border: 0; background: none; color: var(--muted); font: 800 12.5px Nunito, sans-serif; cursor: pointer; text-decoration: underline; padding: 4px; }

/* 16/11 (owner: "this sheet got too cramped, too much information; a chart for the weaknesses in this style; the
   recommended Power instead of stars"): a lighter region sheet: the region's painting with its recommended Power,
   the element chart (glossy orbs, white arrows from winner to loser), the team, the buttons; the rare variants fold */
.wsheet-box { overflow-x: hidden; }
.wsheet.clean .ws-head { padding: 22px 16px 12px; }
.wsheet.clean .ws-el { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 4px; }
.wsheet.clean .ws-el i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.wsheet.clean .ws-el svg { width: 12px; height: 12px; fill: none; stroke: #1b1030; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ws-rec { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 8px; }
.ws-rec .wsr-l { width: 100%; font: 800 10.5px Nunito, sans-serif; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.ws-rec b { font: 700 28px/1 Fredoka, sans-serif; color: #ffe27a; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.ws-rec small { font: 800 12px Nunito, sans-serif; opacity: .9; }

.wec { margin: 0 0 12px; padding: 14px 10px 9px; border-radius: 18px; color: #fff;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c) 22%, #1a1240) 0%, #0d0922 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ec-flow { display: grid; grid-template-columns: minmax(0, 1fr) 30px auto 30px minmax(0, 1fr); align-items: center; gap: 4px; }
.ec-col, .ec-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ec-orbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ec-it { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ec-it small { font: 800 10.5px Nunito, sans-serif; color: #e9e3ff; }
.ec-col em, .ec-mid em { font: 800 11px/1.2 Nunito, sans-serif; font-style: normal; text-align: center; }
.ec-col.up em { color: #7dffb0; } .ec-col.down em { color: #ff9cae; } .ec-mid em { color: #d8d0ff; }
.ec-none { font: 700 20px Fredoka, sans-serif; color: rgba(255, 255, 255, .4); }
.ec-ar { width: 30px; height: 20px; fill: #fff; stroke: rgba(10, 5, 30, .5); stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.ec-ar.ud { width: 16px; height: 24px; }
.ec-key { display: block; margin-top: 8px; text-align: center; font: 700 10px Nunito, sans-serif; color: rgba(233, 227, 255, .6); }
.eorb { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--ec) 30%, #fff) 0%, var(--ec) 50%, color-mix(in srgb, var(--ec) 55%, #000) 100%);
  box-shadow: 0 0 0 2.5px #fff, 0 0 0 4px rgba(0, 0, 0, .3), 0 5px 10px rgba(0, 0, 0, .45), 0 0 18px color-mix(in srgb, var(--ec) 55%, transparent); }
.eorb::after { content: ""; position: absolute; left: 20%; right: 20%; top: 7%; height: 36%; border-radius: 50%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0)); }
.eorb i { display: grid; place-items: center; }
.eorb svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .5)); }
.eorb.big { width: 64px; height: 64px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(0, 0, 0, .3), 0 6px 14px rgba(0, 0, 0, .5), 0 0 26px color-mix(in srgb, var(--ec) 70%, transparent); }
.eorb.big svg { width: 32px; height: 32px; }

.ws-ready { display: flex; align-items: center; gap: 8px; min-height: 0; margin: 8px 2px 0; font: 800 12px Nunito, sans-serif; color: var(--muted); }
.ws-ready:empty { display: none; }
.ws-ready b { font: 700 18px Fredoka, sans-serif; }
.ws-ready.ok b, .ws-ready.ok span { color: #1faa68; } .ws-ready.mid b, .ws-ready.mid span { color: #d38a00; } .ws-ready.low b, .ws-ready.low span { color: #e5435d; }
.wsheet.clean .ws-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ws-more { margin-top: 10px; font: 800 12px Nunito, sans-serif; color: var(--muted); }
.ws-more summary { cursor: pointer; list-style: none; text-align: center; }
.ws-more summary::-webkit-details-marker { display: none; }
.ws-more[open] summary { margin-bottom: 6px; }
.ws-more .wsc-row { justify-content: center; }
.pl-tag small.pl-rec { color: #ffe27a; font-weight: 800; }

/* 16/11 (owner: "better art for the elements"): the painted emblems (static/art/el) wherever an element shows: the
   chart's orbs, the map's pins and region cards, the region sheet, the descent header, the move buttons */
.el-art { position: static; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.eorb.elx { background: none; box-shadow: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)) drop-shadow(0 0 12px color-mix(in srgb, var(--ec) 55%, transparent)); }
.eorb.elx::after { content: none; }
.eorb.elx .el-art { width: 116%; height: 116%; margin: -8%; }
.pl-head .pl-ico { display: grid; place-items: center; width: 34px; height: 34px; }
.pl-head .pl-ico .el-art { width: 34px; height: 34px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.pl-cico:has(.el-art) { background: none; box-shadow: none; }
.pl-cico .el-art { width: 48px; height: 48px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.wpl-ico:has(.el-art) { width: 36px; height: 36px; background: none; box-shadow: none; }
.wpl-ico .el-art { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); }
.wfr-ico:has(.el-art) { background: none; }
.wsheet.clean .ws-el i:has(.el-art) { width: 20px; height: 20px; background: none; }
.wr-el:has(.el-art) { width: 22px; height: 22px; background: none; }
.wmv-ic.elx { background: none; box-shadow: none; }
.wmv-ic.elx .el-art { width: 118%; height: 118%; margin: -9%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.wresume .wrs-ico:has(.el-art) { background: none; box-shadow: none; width: 72px; height: 72px; }
.wpl-rc .wpl-ico .el-art { position: static; inset: auto; z-index: auto; width: 100%; height: 100%; object-fit: contain; transition: none; }

/* 18/11 (owner: "the % I wanted on the front was the Potential"): the copy's Potential beside its Power */
.plate .pw { display: inline-flex; align-items: center; gap: 1.4cqw; }
.plate .pw .pwp { font-style: normal; padding: 0 0 0 1.4cqw; border-left: .3cqw solid rgba(255, 255, 255, .25); color: #c9d1f2; text-shadow: none; }
.plate .pw .pwp.g-average { color: #7cc0ff; }
.plate .pw .pwp.g-good { color: #5fe39a; }
.plate .pw .pwp.g-perfect { color: #ffd23d; }
.card.st-retro .plate .pw .pwp { color: inherit; border-color: var(--gb1); }

/* 18/11 (owner: "more stats"): Speed on the battle plates; the faster one in green */
.wp-spd { margin-left: 6px; padding: 0 6px; border-radius: 99px; font: 400 11px/16px var(--lcd); color: #bfe9ff; background: rgba(0, 0, 0, .3); white-space: nowrap; }
.wp-spd.fast { color: #7dffb0; box-shadow: 0 0 0 1px rgba(125, 255, 176, .5); }

/* 18/11 (owner: "make the damage number show in combat; a critical in the Ragnarok Online style, with another sound; an
   animation for the dodge"): chunky outlined numbers that jump up, drift and fall back as they fade (red on your
   creature); a critical in a red starburst with a tag that shakes; a dodge in cyan with speed streaks */
.wnum { position: fixed; z-index: 400; pointer-events: none; transform: translate(-50%, -50%); text-shadow: none;
  animation: wnumRO 1.4s cubic-bezier(.2, .7, .3, 1) forwards; }
.wnum b { position: relative; z-index: 1; display: block; white-space: nowrap; font: 700 31px/1 Fredoka, sans-serif; color: #fff; letter-spacing: .5px;
  -webkit-text-stroke: 5px #2a0b1e; paint-order: stroke fill; text-shadow: 0 3px 0 #2a0b1e, 0 0 12px rgba(0, 0, 0, .45); }
.wnum.me b { color: #ff7a8a; -webkit-text-stroke-color: #45061a; text-shadow: 0 3px 0 #45061a; }
.wnum.super b { color: #ffe27a; font-size: 35px; -webkit-text-stroke-color: #5e3400; text-shadow: 0 3px 0 #5e3400, 0 0 14px rgba(255, 200, 60, .7); }
.wnum.weak b { color: #c9d3f0; font-size: 23px; -webkit-text-stroke-color: #262c4a; text-shadow: 0 2px 0 #262c4a; }
.wnum.heal b { color: #9dffc0; -webkit-text-stroke-color: #0b4f30; text-shadow: 0 3px 0 #0b4f30, 0 0 10px rgba(60, 220, 140, .6); }
.wnum.miss b { color: #e9ecff; font-size: 21px; font-style: italic; -webkit-text-stroke-width: 4px; -webkit-text-stroke-color: #262c4a; text-shadow: 0 2px 0 #262c4a; }
.wnum.burn b { color: #ffb070; font-size: 24px; -webkit-text-stroke-color: #5a2000; text-shadow: 0 2px 0 #5a2000; }
@keyframes wnumRO { 0% { transform: translate(-50%, -20%) scale(.3); opacity: 0; } 12% { transform: translate(-50%, -115%) scale(1.35); opacity: 1; }
  22% { transform: translate(-50%, -100%) scale(1); } 58% { transform: translate(calc(-50% + var(--dx, 0px)), -150%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx, 0px) * 1.7), -60%) scale(.88); opacity: 0; } }
.wnum.crit { animation: wnumCrit 1.75s cubic-bezier(.2, .7, .3, 1) forwards; }
.wnum.crit b { font-size: 44px; color: #ffef4a; -webkit-text-stroke: 6px #5a0700; text-shadow: 0 4px 0 #5a0700, 0 0 16px rgba(255, 140, 30, .8); }
.wnum.me.crit b { color: #ffd0d6; }
.wn-burst { position: absolute; left: 50%; top: 50%; width: 128px; height: 128px; margin: -64px 0 0 -64px; z-index: 0;
  background: radial-gradient(circle, #fff7b0 0 16%, #ffb12a 36%, #f0451c 58%, #b3120f 74%);
  clip-path: polygon(50% 0, 60% 31%, 91% 13%, 71% 41%, 100% 52%, 69% 61%, 83% 94%, 53% 72%, 27% 98%, 33% 65%, 0 63%, 29% 45%, 6% 15%, 39% 31%);
  filter: drop-shadow(0 0 10px rgba(255, 110, 30, .85)); animation: wnBurst 1.75s ease-out forwards; }
.wnum.crit em { position: absolute; z-index: 2; left: 50%; top: -26px; transform: translateX(-50%) rotate(-6deg); white-space: nowrap;
  font: 700 14px/1 Fredoka, sans-serif; font-style: normal; letter-spacing: 1.5px; text-transform: uppercase; color: #fff;
  -webkit-text-stroke: 4px #8a1200; paint-order: stroke fill; }
@keyframes wnumCrit { 0% { transform: translate(-50%, -50%) scale(.2) rotate(-14deg); opacity: 0; } 10% { transform: translate(-50%, -95%) scale(1.55) rotate(5deg); opacity: 1; }
  15% { transform: translate(calc(-50% - 6px), -92%) scale(1.18) rotate(-3deg); } 20% { transform: translate(calc(-50% + 6px), -92%) scale(1.18) rotate(3deg); }
  25% { transform: translate(calc(-50% - 3px), -92%) scale(1.12) rotate(-1deg); } 30% { transform: translate(-50%, -92%) scale(1.1) rotate(0); }
  72% { transform: translate(-50%, -128%) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -150%) scale(1); opacity: 0; } }
@keyframes wnBurst { 0% { transform: scale(.2) rotate(0); opacity: 0; } 10% { transform: scale(1.2) rotate(18deg); opacity: 1; } 28% { transform: scale(.95) rotate(26deg); }
  72% { opacity: .95; } 100% { transform: scale(1.08) rotate(46deg); opacity: 0; } }
.wnum.dodge b { color: #8ff3ff; font-size: 25px; font-style: italic; -webkit-text-stroke-color: #07334a; text-shadow: 0 2px 0 #07334a, 0 0 12px rgba(80, 220, 255, .6); }
.wn-streak { position: absolute; left: -30px; right: -30px; top: 50%; height: 16px; margin-top: -8px; z-index: 0;
  background: repeating-linear-gradient(180deg, rgba(143, 243, 255, .9) 0 2px, transparent 2px 5px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  animation: wnStreak .55s ease-out forwards; }
@keyframes wnStreak { from { transform: scaleX(.2) translateX(34px); opacity: 1; } to { transform: scaleX(1.25) translateX(-22px); opacity: 0; } }
.wfoe.dodge .wf-img, .wme.dodge img { animation: wdodge .46s ease-out; }
@keyframes wdodge { 30% { transform: translateX(36px) skewX(-10deg); opacity: .4; filter: blur(1.5px); } 65% { transform: translateX(20px); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .wnum, .wnum.crit, .wn-burst { animation-duration: .01s; animation-delay: 1.2s; } }
/* 18/11: the level on the battle plate and what a win gave */
.wp-lv { flex: none; padding: 1px 6px; border-radius: 99px; font: 800 10px/14px Nunito, sans-serif; font-style: normal; color: #fff;
  background: linear-gradient(180deg, #7b6bff, #4a32c9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.rw.x { background: #fff6d6; border-color: #f2cd6e; color: #7a5300; }
.wclear.lvup { background: linear-gradient(180deg, #efeaff, #c6b6ff); color: #3a2390; }
/* 18/11: caught cards open their stats (summary and backpack) */
.wo-card { display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; transition: transform .15s; }
.wo-card:hover, .wo-card:focus-visible { transform: translateY(-3px); }
.wo-card:focus-visible { outline: 2px solid #3dd6ff; outline-offset: 2px; }
.wo-card .card { width: 100%; }
.wo-tap { display: block; margin: -6px 0 12px; }
button.wr-bag { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
button.wr-bag .wr-sc { text-decoration: underline dotted; text-underline-offset: 3px; }
.wbag h2 { margin: 4px 0; }
/* 18/11 v2 (owner: "make the critical hit prettier and more impactful"): the number slams in from big, a blade slash cuts
   across it and a red "CRITICAL!" ribbon wipes in under it (the 3D arena does the rest: battle3d.js critFx) */
.wnum.crit { animation: wnumCrit2 1.9s cubic-bezier(.2, .7, .3, 1) forwards; }
.wnum.crit b { font-size: 52px; color: #fff3a6; -webkit-text-stroke: 7px #5a0700; paint-order: stroke fill; text-shadow: 0 5px 0 #5a0700, 0 0 14px rgba(255, 120, 30, .7); }
.wnum.me.crit b { color: #ffd0d6; }
.wnum.crit em { top: auto; bottom: -26px; padding: 4px 16px 5px; font-size: 15px; letter-spacing: 2px; color: #fff; -webkit-text-stroke: 0;
  background: linear-gradient(90deg, transparent, #b80f1a 14%, #ff3b2a 50%, #b80f1a 86%, transparent); text-shadow: 0 2px 0 #5a0700;
  transform: translateX(-50%) skewX(-14deg) rotate(-4deg); clip-path: inset(0 100% 0 0); animation: wnRibbon .3s .08s cubic-bezier(.2, .8, .3, 1) forwards; }
.wn-slash { position: absolute; left: -44px; right: -44px; top: 50%; height: 6px; margin-top: -3px; z-index: 2; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #fff 28%, #fff 72%, transparent); box-shadow: 0 0 9px rgba(255, 90, 40, .85);
  transform: rotate(-24deg) scaleX(0); animation: wnSlash .34s .02s ease-out forwards; }
.wnum.crit .wn-burst { width: 150px; height: 150px; margin: -75px 0 0 -75px; animation-duration: 1.9s; }
@keyframes wnRibbon { to { clip-path: inset(0 0 0 0); } }
@keyframes wnSlash { 0% { transform: rotate(-24deg) scaleX(0); opacity: 1; } 55% { transform: rotate(-24deg) scaleX(1.1); opacity: 1; }
  100% { transform: rotate(-24deg) scaleX(1.25); opacity: 0; } }
@keyframes wnumCrit2 { 0% { transform: translate(-50%, -80%) scale(3); opacity: 0; filter: blur(3px); } 7% { transform: translate(-50%, -90%) scale(.88); opacity: 1; filter: blur(0); }
  12% { transform: translate(-50%, -95%) scale(1.3); } 17% { transform: translate(calc(-50% - 7px), -94%) scale(1.16) rotate(-3deg); }
  22% { transform: translate(calc(-50% + 7px), -94%) scale(1.16) rotate(3deg); } 27% { transform: translate(calc(-50% - 3px), -94%) scale(1.12) rotate(-1deg); }
  32% { transform: translate(-50%, -94%) scale(1.12) rotate(0); } 74% { transform: translate(-50%, -128%) scale(1.12); opacity: 1; }
  100% { transform: translate(-50%, -150%) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wnum.crit, .wn-slash, .wnum.crit em { animation-duration: .01s; animation-delay: 0s; } .wnum.crit em { clip-path: none; } }
/* 18/11 v3 (owner: "the numbers still look amateur; I want something very natural"): clean italic numerals with a thin dark
   edge and a soft shadow (no thick outline, starburst, slash or ribbon); a quick small pop, then they drift up and fade. A
   critical hit is bigger and gold, with a shine passing over it and a small CRITICAL label; the 3D arena does the impact. */
.wnum { position: fixed; z-index: 400; pointer-events: none; transform: translate(-50%, -50%); text-shadow: none; text-align: center;
  animation: wnFloat 1.3s cubic-bezier(.2, .7, .25, 1) forwards; }
.wnum b { position: relative; display: block; white-space: nowrap; font: italic 800 30px/1 "Barlow Semi Condensed", Nunito, sans-serif;
  letter-spacing: .4px; font-variant-numeric: tabular-nums; color: #fff; -webkit-text-stroke: 0; paint-order: normal; background: none;
  text-shadow: 0 1px 0 rgba(22, 12, 34, .9), 1px 0 0 rgba(22, 12, 34, .6), -1px 0 0 rgba(22, 12, 34, .6), 0 3px 9px rgba(0, 0, 0, .42); }
.wnum.me b { color: #ff8f8f; }
.wnum.super b { color: #ffd66b; font-size: 33px; }
.wnum.weak b { color: #c9d0e8; font-size: 25px; }
.wnum.heal b { color: #8ef0b4; }
.wnum.burn b { color: #ffad6d; font-size: 24px; }
.wnum.miss b, .wnum.dodge b { font-size: 21px; font-weight: 700; letter-spacing: 1px; color: #e8ecff; }
.wnum.dodge b { color: #a6ecff; }
.wnum.crit { animation: wnCrit 1.6s cubic-bezier(.2, .7, .25, 1) forwards; }
.wnum.crit b { font-size: 46px; color: transparent; -webkit-background-clip: text; background-clip: text; text-shadow: none;
  background-image: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%), linear-gradient(180deg, #fffbea 0%, #ffe28e 46%, #ffac3a 100%);
  background-size: 260% 100%, 100% 100%; background-position: 130% 0, 0 0; background-repeat: no-repeat;
  filter: drop-shadow(0 1px 0 rgba(74, 22, 0, .95)) drop-shadow(0 0 1px rgba(74, 22, 0, .85)) drop-shadow(0 4px 10px rgba(0, 0, 0, .4));
  animation: wnGlint .75s .14s ease-out forwards; }
.wnum.me.crit b { background-image: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .9) 50%, transparent 62%), linear-gradient(180deg, #fff1f1 0%, #ffa0a0 48%, #ff5c5c 100%); }
.wn-tag { display: block; margin-bottom: 3px; font: italic 800 13px/1 "Barlow Semi Condensed", Nunito, sans-serif; letter-spacing: 3.2px;
  text-transform: uppercase; color: #ffd384; text-shadow: 0 1px 0 rgba(60, 16, 0, .9), 0 2px 6px rgba(0, 0, 0, .4); }
.wnum.me .wn-tag { color: #ffb0b0; }
@keyframes wnFloat { 0% { transform: translate(-50%, -40%) scale(.72); opacity: 0; } 9% { transform: translate(-50%, -78%) scale(1.1); opacity: 1; }
  18% { transform: translate(-50%, -84%) scale(1); } 68% { transform: translate(calc(-50% + var(--dx, 0px)), -138%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx, 0px) * 1.3), -162%) scale(.97); opacity: 0; } }
@keyframes wnCrit { 0% { transform: translate(-50%, -60%) scale(1.55); opacity: 0; } 8% { transform: translate(-50%, -84%) scale(.95); opacity: 1; }
  15% { transform: translate(-50%, -88%) scale(1.04); } 23% { transform: translate(-50%, -90%) scale(1); } 72% { transform: translate(-50%, -134%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -158%) scale(.97); opacity: 0; } }
@keyframes wnGlint { to { background-position: -70% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .wnum, .wnum.crit, .wnum.crit b { animation-duration: .01s; animation-delay: 1.1s; } }
/* v3: the older rules' thick outlines and glows (same or higher specificity) switched off for every kind */
.wnum.me b, .wnum.super b, .wnum.weak b, .wnum.heal b, .wnum.burn b, .wnum.miss b, .wnum.dodge b {
  -webkit-text-stroke: 0; paint-order: normal; font-style: italic;
  text-shadow: 0 1px 0 rgba(22, 12, 34, .9), 1px 0 0 rgba(22, 12, 34, .6), -1px 0 0 rgba(22, 12, 34, .6), 0 3px 9px rgba(0, 0, 0, .42); }
.wnum.crit b, .wnum.me.crit b { -webkit-text-stroke: 0; paint-order: normal; text-shadow: none; color: transparent; }
/* 18/11 (owner: "Ragnarok style"): the number springs out of the hit, arcs up to one side and falls back as it fades */
.wnum { animation: wnArc 1.25s linear forwards; }
.wnum.crit { animation: wnArcCrit 1.55s linear forwards; }
@keyframes wnArc { 0% { transform: translate(-50%, -50%) scale(.6); opacity: 0; }
  6% { transform: translate(calc(-50% + var(--dx, 0px) * .12), -100%) scale(1.16); opacity: 1; }
  15% { transform: translate(calc(-50% + var(--dx, 0px) * .32), -132%) scale(1); }
  30% { transform: translate(calc(-50% + var(--dx, 0px) * .58), -152%) scale(1); }
  48% { transform: translate(calc(-50% + var(--dx, 0px) * .82), -148%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx, 0px) * 1.45), -96%) scale(.94); opacity: 0; } }
@keyframes wnArcCrit { 0% { transform: translate(-50%, -55%) scale(1.6); opacity: 0; }
  6% { transform: translate(calc(-50% + var(--dx, 0px) * .1), -100%) scale(.94); opacity: 1; }
  12% { transform: translate(calc(-50% + var(--dx, 0px) * .2), -118%) scale(1.06); }
  20% { transform: translate(calc(-50% + var(--dx, 0px) * .34), -136%) scale(1); }
  36% { transform: translate(calc(-50% + var(--dx, 0px) * .58), -156%) scale(1); }
  56% { transform: translate(calc(-50% + var(--dx, 0px) * .84), -152%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx, 0px) * 1.4), -100%) scale(.95); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wnum, .wnum.crit { animation-duration: .01s; animation-delay: 1.1s; } }

/* 18/11 (owner: skins for the explorer, a girl version): the explorer picker */
.look-pick { display: grid; gap: 10px; }
.look-pick h3 { margin: 0; font: 900 18px Nunito, sans-serif; }
.lp-view { height: 250px; border-radius: 18px; background: radial-gradient(circle at 50% 35%, #4b3a9a, #1a1238 72%); overflow: hidden; }
.lp-view canvas { display: block; margin: 0 auto; }
.lp-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-g button, .lp-skins button { border: 2px solid rgba(164, 112, 255, .3); background: var(--card, #fff); color: inherit; border-radius: 14px; padding: 8px; font: 800 13px Nunito, sans-serif; cursor: pointer; }
.lp-g button.on, .lp-skins button.on { border-color: #a470ff; box-shadow: 0 0 0 3px rgba(164, 112, 255, .25); }
.lp-skins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-skins button { display: grid; justify-items: center; gap: 4px; }
.lp-skins i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .15); }
.lp-tx { color: var(--muted); font: 700 11.5px Nunito, sans-serif; }
.lp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 18/11: "Your explorer" sits on the right, under the reward panel, clear of the planet's own buttons */
.wpl-lookbtn { position: absolute; z-index: 5; top: 152px; right: 14px; display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 99px; border: 1.5px solid rgba(164, 112, 255, .7); background: rgba(14, 8, 34, .72); color: #fff; font: 800 12.5px Nunito, sans-serif; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.wpl-lookbtn i { font-style: normal; font-size: 16px; }

/* 19/11 (owner: "when it is time to evolve, show it at battle time"): a level-up card in the win panel, the evolve call,
   and the 🧬 / ⭐ chips on the creature's plate */
.lvup-card { display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 8px 12px; border-radius: 16px; text-align: left;
  background: linear-gradient(135deg, #efeaff, #c9b8ff); color: #2c1a78; border: 1.5px solid #a58bff; animation: lvup-in .45s cubic-bezier(.2, 1.4, .4, 1); }
.lvup-card img { width: 52px; height: 52px; object-fit: contain; flex: none; filter: drop-shadow(0 3px 5px rgba(60, 20, 140, .35)); }
.lvup-card span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lvup-card b { font: 700 16px/1.2 Fredoka, sans-serif; }
.lvup-card small { font: 800 12.5px Nunito, sans-serif; color: #4b2fb0; }
.lvup-card.evo { background: linear-gradient(135deg, #fff3c4, #ffd27a); color: #5a3a00; border-color: #f2b33d; }
.lvup-card.evo small { color: #7a4a00; }
.lvup-evo { font: 800 12.5px/1.35 Nunito, sans-serif; font-style: normal; color: #7a3d00; }
@keyframes lvup-in { from { opacity: 0; transform: scale(.85) translateY(6px); } }
.lv-wait { color: #b36b00 !important; font-weight: 800; }
.wp-evo, .wp-ptc { flex: none; padding: 1px 5px; border-radius: 99px; font: 800 10px/14px Nunito, sans-serif; font-style: normal; }
.wp-evo { background: linear-gradient(135deg, #ffcf3d, #ff9d3d); animation: lv-evo-glow 2s ease-in-out infinite; }
.wp-ptc { background: #fff1b8; color: #7a4a00; }
@media (prefers-reduced-motion: reduce) { .lvup-card, .wp-evo { animation: none; } }

/* 20/11 (owner: "the search in the creature picker is bad, also for typing the name"): the search on a row of its own,
   the filters under it (they scroll sideways instead of covering it), the cards in a grid whose names stay visible */
.ws-filter { flex-direction: column; align-items: stretch; gap: 6px; }
.ws-filter .ws-q { flex: none; height: 44px; padding: 0 14px; gap: 8px; }
.ws-filter .ws-q .gi { flex: none; width: 18px; height: 18px; opacity: .7; }
.ws-filter .ws-q input { font: 700 16px Nunito, sans-serif; }       /* 16px: phones don't zoom in when it is tapped */
.ws-frow { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px 0; }
.ws-frow::-webkit-scrollbar { display: none; }
.ws-frow .chip { flex: none; padding: 5px 10px; }
.ws-frow .ws-sort { flex: none; width: auto; max-width: 240px; height: 32px; font-size: 12px; }
.ws-count { margin: 0 4px; font: 800 11px Nunito, sans-serif; color: var(--muted); }
.ws-strip.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; max-height: min(44vh, 380px);
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 4px 2px 6px; }
.ws-strip.ws-grid[hidden] { display: none; }
.ws-strip.ws-grid .ws-t { flex: none; height: auto; min-height: 112px; padding: 8px 4px 6px; justify-content: flex-start; }
.ws-strip.ws-grid .ws-t > img, .ws-strip.ws-grid .ws-t > b, .ws-strip.ws-grid .ws-t > small { flex: none; }
.ws-strip.ws-grid .ws-t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; text-align: center; }
.ws-strip.ws-grid .ws-t small { line-height: 1.3; text-align: center; }
.ws-strip.ws-grid .ws-none { grid-column: 1 / -1; }

.ws-filter .ws-frow .ws-sort { width: auto; min-width: 200px; max-width: 260px; }     /* 20/11: the label whole (shop.css capped it at 170px) */

/* 20/11 (owner: "in this report, the levels the cards gained and whether they need to level up") */
.wo-team { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 12px; }
.wo-mon { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel2, rgba(127, 127, 127, .08)); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.wo-mon.up { border-color: color-mix(in srgb, #ffd23d 55%, transparent); background: color-mix(in srgb, #ffd23d 10%, var(--panel2, transparent)); }
.wo-mon img { width: 52px; height: 52px; object-fit: contain; }
.wo-mt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wo-mt > b { font: 700 14px/1.15 Fredoka, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wo-mt small { color: var(--muted); font: 700 12px Nunito, sans-serif; }
.wo-up { font-style: normal; color: var(--text); } .wo-up b { color: #e0a400; }
.wo-need { font-style: normal; font: 800 11.5px/1.3 Nunito, sans-serif; }
.wo-need.gen { color: #2fbf6a; } .wo-need.evo { color: #a470ff; } .wo-need.pts { color: #e0a400; } .wo-need.ok { color: var(--muted); }
.wo-gain { color: #e0a400; }

/* 20/11 (owner: "2 filters to select the types"): Type 1 and Type 2 in the filter row */
.ws-filter .ws-frow .ws-ty { flex: none; width: auto; min-width: 128px; max-width: 170px; height: 32px; font-size: 12px; }
.ws-filter .ws-frow .ws-ty.on { border-color: #a470ff; box-shadow: 0 0 0 2px rgba(164, 112, 255, .25); }

/* 20/11 (owner: "the % Potencial and the types on top of each little square"): a filled team slot */
.ws-slot.full { height: auto; min-height: 118px; padding-top: 7px; }
.ws-stys { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin: 0 14px 1px; }
.ws-sty { padding: 0 6px; border-radius: 99px; background: var(--c); color: #fff; font: 800 9px/1.55 Nunito, sans-serif; font-style: normal;
  text-transform: uppercase; letter-spacing: .3px; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.ws-spot { font-style: normal; padding: 0 5px; border-radius: 99px; font-weight: 900; color: #fff; background: #5ca8ff; }
.ws-spot.g-bad { background: #8a93a8; } .ws-spot.g-good { background: #2fbf6a; } .ws-spot.g-perfect { background: #ffb800; color: #3a2400; }
.ws-slot.full .ws-var { top: auto; bottom: 34px; }

/* 20/11: the two types on a row of their own (the chips' row scrolls sideways on a phone) */
.ws-trow { display: flex; gap: 6px; }
.ws-filter .ws-trow .ws-ty { flex: 1 1 0; width: auto; min-width: 0; max-width: none; height: 32px; font-size: 12px; }
.ws-trow .ws-ty.on { border-color: #a470ff; box-shadow: 0 0 0 2px rgba(164, 112, 255, .25); }
.ws-stys { margin: 0 2px 1px; flex-wrap: nowrap; }
.ws-sty { font-size: 8.5px; padding: 0 5px; }

/* 20/11 (owner: "show a countdown as a little bar or around the creature"): a resting creature in the team picker: a ring
   around its picture that empties as the rest runs out, the time left and a thin bar under it */
.ws-t.tired { opacity: .78; filter: grayscale(.35); }
.ws-rest { position: relative; display: grid; place-items: center; width: 58px; height: 58px; }
.ws-rest img { width: 46px !important; height: 46px !important; }
.ws-rest::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(10, 6, 30, .35); }
.ws-rest::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(#8ef0ff calc(var(--rp, 0) * 1%), rgba(255, 255, 255, .16) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  filter: drop-shadow(0 0 4px rgba(142, 240, 255, .7)); transition: background .9s linear; }
.ws-rest img { position: relative; z-index: 1; }
.ws-t .ws-rtime { display: inline; font: 800 11.5px Nunito, sans-serif; color: #8ef0ff; font-variant-numeric: tabular-nums; }
html.light .ws-t .ws-rtime { color: #1a8fb0; }
.ws-rbar { position: absolute; left: 8px; right: 8px; bottom: 4px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
html.light .ws-rbar { background: rgba(60, 40, 120, .14); }
.ws-rbar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3dd6ff, #8ef0ff); transition: width .9s linear; }
.ws-t.tired small { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.ws-t.tired small .gi { width: 13px; height: 13px; }

/* 21/11 InfinityRun: its card on the world screen, its start sheet, the room all along the run in the HUD */
.winf { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 14px; padding: 12px 14px; border: 0; border-radius: 18px; cursor: pointer;
  text-align: left; color: #fff; font: inherit; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 138, 61, .35), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(61, 214, 255, .3), transparent 55%), linear-gradient(120deg, #2a1660, #4b1d7a 55%, #1d2a6e);
  box-shadow: 0 6px 22px rgba(40, 10, 90, .35), inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.winf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%); transform: translateX(-100%); animation: winf-shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes winf-shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.winf.spent { filter: saturate(.55) brightness(.85); }
.winf.run { box-shadow: 0 0 0 2px #ffd23d, 0 6px 22px rgba(40, 10, 90, .35); }
.winf-sym { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(10, 4, 34, .45);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.winf-sym .inf-mark { width: 42px; height: 42px; filter: drop-shadow(0 0 6px rgba(255, 120, 200, .55)); animation: winf-pulse 2.6s ease-in-out infinite; }
@keyframes winf-pulse { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .winf-sym .inf-mark, .winf::after { animation: none; } }
.winf-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.winf-main b { font: 900 17px Fredoka, Nunito, sans-serif; letter-spacing: .3px; }
.winf-main small { font: 700 12px Nunito, sans-serif; color: rgba(255, 255, 255, .78); line-height: 1.25; }
.winf-route { display: flex; gap: 4px; margin-top: 2px; align-items: center; }
.winf-el { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c) 45%, #140a30); box-shadow: 0 0 0 1.5px var(--c); }
.winf-el .el-art, .winf-el svg { width: 16px; height: 16px; }
.winf-more { font: 800 11px Nunito, sans-serif; color: rgba(255, 255, 255, .7); font-style: normal; }
.winf-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.winf-side em { font: 900 13px Nunito, sans-serif; font-style: normal; padding: 5px 10px; border-radius: 99px; background: linear-gradient(90deg, #ff8a3d, #ff4fa3); white-space: nowrap; }
.winf.spent .winf-side em { background: rgba(255, 255, 255, .16); }
.winf-side small { font: 800 11px Nunito, sans-serif; color: #ffd23d; white-space: nowrap; }
@media (max-width: 420px) { .winf { gap: 10px; padding: 11px 12px; } .winf-sym { width: 44px; height: 44px; } .winf-sym .inf-mark { width: 34px; height: 34px; } .winf-route .winf-el:nth-child(n+5) { display: none; } }
.ws-head.inf h2 { font-family: Fredoka, Nunito, sans-serif; }
.ws-el.inf { display: inline-flex; align-items: center; gap: 5px; background: #1d0a52; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.ws-el.inf .inf-mark { width: 20px; height: 20px; }
.winf-sheet { margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.winf-sheet .label { margin: 4px 0 0; }
.wir-route { display: flex; flex-wrap: wrap; gap: 6px; }
.wir-r { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 34px; }
.wir-r i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c) 30%, var(--card, #1b1240)); box-shadow: 0 0 0 1.5px var(--c); }
.wir-r i .el-art, .wir-r i svg { width: 20px; height: 20px; }
.wir-r small { font: 800 10px Nunito, sans-serif; color: var(--muted); }
.wir-rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font: 600 12.5px/1.35 Nunito, sans-serif; }
.wir-top { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.wir-top li { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 10px; background: color-mix(in srgb, var(--accent, #a470ff) 10%, transparent); font: 700 13px Nunito, sans-serif; }
.wir-top li b { width: 26px; color: #ff8a3d; }
.wir-top li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wir-top li em { font-style: normal; font-weight: 900; }
.wir-top li:first-child b { color: #ffb800; }
.wir-best { font: 800 12px Nunito, sans-serif; color: #ff8a3d; }
.wr-inf { flex: none; margin-left: 4px; padding: 0 7px; border-radius: 99px; background: linear-gradient(90deg, #ff8a3d, #ff4fa3 55%, #3dd6ff); color: #fff;
  font: 900 12px/18px Fredoka, Nunito, sans-serif; font-style: normal; }
.wclear.inf { background: linear-gradient(180deg, #fff0f7, #ffc9a8); color: #7a2a00; }
.wo-inf { display: flex; flex-direction: column; gap: 3px; margin: 4px 0 10px; }
.wo-inf b { font: 900 18px Fredoka, Nunito, sans-serif; }
.wo-inf small { color: var(--muted); font-weight: 700; }
.wo-rec { font-style: normal; font: 900 15px Nunito, sans-serif; color: #ffb800; }

.winf-sym .tower-ico { width: 40px; height: 40px; filter: drop-shadow(0 0 6px rgba(192, 139, 255, .65)); }
@media (max-width: 420px) { .winf-sym .tower-ico { width: 34px; height: 34px; } }

/* 21/11 InfiniTower floors, the chief's ribbon, the revive */
.wir-r.k-guardian i { box-shadow: 0 0 0 2px #ffd23d, 0 0 8px rgba(255, 210, 61, .6); }
.wir-r.k-joker i { box-shadow: 0 0 0 2px #ff4fa3, 0 0 8px rgba(255, 79, 163, .5); }
.wf-boss.chief { background: linear-gradient(90deg, #ff8a3d, #ff4f6f); }
.wr-rev { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 2px 9px; border: 0; border-radius: 99px; cursor: pointer;
  font: 900 13px Nunito, sans-serif; color: #fff; background: linear-gradient(135deg, #ff6fae, #d4247f); box-shadow: 0 0 10px rgba(255, 79, 163, .55); }
.rv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 10px 0; }
.rv-t { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 2px solid transparent; cursor: pointer;
  background: color-mix(in srgb, var(--accent, #a470ff) 10%, transparent); color: inherit; font: inherit; filter: grayscale(.6); }
.rv-t:hover { border-color: #ff6fae; filter: none; }
.rv-t img { width: 64px; height: 64px; object-fit: contain; }
.rv-t b { font: 900 13px Nunito, sans-serif; } .rv-t small { color: var(--muted); font-weight: 700; }

/* 22/11: the InfiniTower's checkpoint */
.wir-cp { display: flex; flex-direction: column; gap: 2px; margin: 0 0 10px; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(77, 255, 166, .18), rgba(58, 211, 255, .14)); box-shadow: inset 0 0 0 1px rgba(77, 255, 166, .4); }
.wir-cp b { font: 800 14px Nunito, sans-serif; color: #4dffa6; }
.wir-cp span { font-size: 12.5px; opacity: .85; }
