/* Infinimix's own layout (14/11), so it doesn't look like the Fusion Cards site: a floating dock with the pack button
   in the middle ("More" holds the rest), and a Home that opens on the fusions just discovered, then four quick tiles
   and the board of all 45 fusions. Loaded after style.css; the light look's colours are at the end of this file. */
:root {
  --nav-h: 80px;
  --dockgrad: linear-gradient(120deg, #ff8a3d, #ff4fa3 55%, #3dd6ff);
  --dockbg: rgba(24, 19, 58, .9);
  --dockring: #1b1544;
}

/* ------------------------------------------------------------------ the dock */
#tabs.dock { left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); height: 64px; padding: 0 4px;
  border-radius: 24px; border: 1px solid rgba(255, 255, 255, .1); background: var(--dockbg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); align-items: stretch; }
#tabs.dock a { margin: 6px 1px; border-radius: 17px; font-size: 10.5px; }
#tabs.dock a.on { background: rgba(255, 255, 255, .07); }
#tabs.dock a.on::before { top: auto; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; }
#tabs.dock .dock-main { margin: 0 2px; justify-content: flex-end; padding-bottom: 8px; background: none; }
#tabs.dock .dock-main::before { display: none; }
.dock-orb { position: absolute; top: -24px; left: 50%; width: 58px; height: 58px; margin-left: -29px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--dockgrad);
  box-shadow: 0 0 0 5px var(--dockring), 0 10px 24px rgba(255, 79, 163, .45); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
#tabs.dock .dock-orb svg { width: 27px; height: 27px; stroke: #fff; filter: none; transform: none; }
#tabs.dock .dock-main.on .dock-orb { transform: translateY(-3px) scale(1.06); box-shadow: 0 0 0 5px var(--dockring), 0 12px 28px rgba(255, 79, 163, .6); }
#tabs.dock .dock-main:active .dock-orb { transform: scale(.94); }
/* 14/11: the crown of action dots around the pack orb (app.js paintDockActions; the orb is 66 px, infiniworld.css) */
.dock-acts { position: absolute; left: 50%; top: 3px; width: 0; height: 0; pointer-events: none; }
#tabs.dock .dock-main .dock-track { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; overflow: visible; transform: none; filter: none; }
.dock-track path { fill: none; stroke: var(--dockring); stroke-width: 16; stroke-linecap: round; filter: drop-shadow(0 -2px 6px rgba(0, 0, 0, .25)); }
.dock-acts i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  transform: translate(var(--x), var(--y)); background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45);
  transition: background .3s, box-shadow .3s; }
.dock-acts i.on { background: linear-gradient(135deg, #ff8a3d, #ff4fa3 50%, #a470ff); box-shadow: 0 0 0 1.5px #fff, 0 0 8px rgba(255, 79, 163, .8); }
.dock-acts i.pop { animation: dact-pop .55s cubic-bezier(.3, 1.6, .5, 1); }
.dock-cd { position: absolute; left: 0; top: -73px; transform: translateX(-50%); padding: 1px 7px; border-radius: 99px; white-space: nowrap;
  font: 800 10px/1.5 Nunito, sans-serif; color: #fff; background: rgba(27, 21, 68, .88); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 3px 8px rgba(0, 0, 0, .3);
  font-variant-numeric: tabular-nums; }
.dock-cd:empty { display: none; }
.dock-cd.full { opacity: .75; }
.dock-acts em { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) translate(var(--x), var(--y)); padding: 0 4px; border-radius: 99px;
  font: 900 9.5px/14px Nunito, sans-serif; font-style: normal; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #ff8a3d, #ff4fa3 50%, #a470ff); box-shadow: 0 0 0 1.5px #fff, 0 0 8px rgba(255, 79, 163, .7); }
.dock-acts em.pop { animation: dx-pop .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes dx-pop { 0% { transform: translate(-50%, -50%) translate(var(--x), var(--y)) scale(.2); } 60% { transform: translate(-50%, -50%) translate(var(--x), var(--y)) scale(1.5); } }
@keyframes dact-pop { 0% { transform: translate(var(--x), var(--y)) scale(.2); } 60% { transform: translate(var(--x), var(--y)) scale(1.6); } }
@media (prefers-reduced-motion: reduce) { .dock-acts i.pop, .dock-acts em.pop { animation: none; } }
#tabs.dock #dot-trade { right: calc(50% - 17px); }

/* "More": the other places as tiles */
.more-sheet .ms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.ms-i { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 16px;
  color: var(--text); font: 800 11.5px/1.2 Nunito, sans-serif; text-align: center; text-decoration: none;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.ms-i.on { border-color: var(--red-l); box-shadow: inset 0 0 0 1px var(--red-l); }
.ms-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .08); }
.ms-ico svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ms-i:nth-child(4n+1) .ms-ico { color: #8fc2ff; } .ms-i:nth-child(4n+2) .ms-ico { color: #c4a3ff; }
.ms-i:nth-child(4n+3) .ms-ico { color: #ff9fd3; } .ms-i:nth-child(4n) .ms-ico { color: #ffc690; }
.ms-dot { position: absolute; top: 6px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center;
  font: 800 11px Nunito, sans-serif; font-style: normal; color: #fff; background: var(--accent2); }
@media (max-width: 360px) { .more-sheet .ms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ Home */
.home2 .home-hello h1 { font-size: 24px; }
.h2-top { display: grid; gap: 14px; margin: 12px 0 18px; }
.h2-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 900px) {
  .h2-top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
  .home2 .home-hello h1 { font-size: 28px; }
}

/* the discovery stage */
.dstage { position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: 16px 16px 14px; min-width: 0;
  background: radial-gradient(120% 90% at 22% 0%, #43217e, #1a1040 58%, #0d0a24); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4); color: #fff; }
.dstage::before { content: ""; position: absolute; z-index: -1; left: 24%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .08) 0 6deg, transparent 6deg 16deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%);
  animation: dsspin 46s linear infinite; }
@keyframes dsspin { to { transform: rotate(360deg); } }
.ds-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ds-kicker { font: 400 11px var(--lcd); letter-spacing: 2px; text-transform: uppercase; color: #ffd6f0; }
.ds-count { margin-left: auto; padding: 3px 11px; border-radius: 99px; font: 600 13px Fredoka, sans-serif; background: rgba(255, 255, 255, .14); }
.ds-count b { font-size: 16px; }
.ds-hero { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 14px; align-items: center; }
.ds-card { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; transform: rotate(-4deg); transition: transform .3s; }
.ds-card:hover { transform: rotate(-1deg) translateY(-3px) scale(1.02); }
.ds-card::before { content: ""; position: absolute; inset: -14%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 210, .55), rgba(120, 170, 255, .25) 45%, transparent 70%); animation: dsglow 3s ease-in-out infinite; }
@keyframes dsglow { 50% { opacity: .55; transform: scale(.92); } }
.ds-card .card { width: 100%; box-shadow: 0 18px 36px rgba(0, 0, 0, .5), 0 0 0 2px rgba(255, 255, 255, .55); }
.ds-q { aspect-ratio: 5 / 7.4; border-radius: 12px; display: grid; place-items: center; text-decoration: none;
  background: url(/art/card-back.webp?v=2) center / cover, linear-gradient(115deg, #5ca8ff, #a470ff, #ff78c4); border: 3px solid #fff; }
.ds-q span { font: 700 64px/1 Fredoka, sans-serif; color: #fff; text-shadow: 0 4px 16px rgba(80, 30, 150, .6); animation: dsglow 2.4s ease-in-out infinite; }
.ds-info { min-width: 0; }
.ds-tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font: 800 11px Nunito, sans-serif; letter-spacing: 1px; color: #fff;
  background: var(--dockgrad); box-shadow: 0 4px 12px rgba(255, 79, 163, .4); animation: dstag 1.8s ease-in-out infinite; }
@keyframes dstag { 50% { transform: scale(1.07); } }
.ds-name { margin: 8px 0 6px; font: 700 26px/1.05 Fredoka, sans-serif; color: var(--nc, #fff); overflow-wrap: anywhere;
  filter: drop-shadow(0 2px 0 rgba(20, 10, 50, .55)); }
.ds-name.mix { background: linear-gradient(90deg, var(--nc1) 10%, var(--nc2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ds-parents { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 8px; font: 800 12px Nunito, sans-serif; }
.ds-parents span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 2px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.ds-parents img { width: 24px; height: 24px; object-fit: contain; }
.ds-parents b { opacity: .8; }
.ds-by { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; line-height: 1.3; }
.ds-by small { display: block; opacity: .8; font-size: 11.5px; }
/* 19/11: a player's name opens their profile */
.plink { cursor: pointer; border-radius: 6px; text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.plink:hover, .plink:focus-visible { text-decoration-style: solid; color: var(--accent, #ffd23d); outline: none; }
.plink:has(> .avatar) { text-decoration: none; }
.plink > .avatar { transition: transform .15s; } .plink:hover > .avatar { transform: scale(1.08); }
.ds-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dstage .rx { margin-top: 2px; }
.ds-rail-h { display: flex; align-items: center; margin: 16px 0 8px; font: 400 10px var(--lcd); letter-spacing: 1.5px; text-transform: uppercase; opacity: .9; }
.ds-rail-h a { margin-left: auto; color: #fff; font: 800 12px Nunito, sans-serif; letter-spacing: 0; text-transform: none; }
.ds-rail { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ds-rail::-webkit-scrollbar { display: none; }
.ds-mini { flex: none; width: 96px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; scroll-snap-align: start; text-align: center; }
.ds-mini .card { width: 100%; box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
.ds-mini-by { display: block; margin-top: 5px; font-size: 11px; line-height: 1.2; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .ds-name { font-size: 22px; } .ds-hero { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 12px; } }

/* quick tiles */
.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qa { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 12px; border-radius: 18px; text-align: left; font: inherit; color: var(--text); cursor: pointer; text-decoration: none;
  background: rgba(22, 31, 60, .88); border: 1px solid rgba(255, 255, 255, .08); transition: transform .15s; }
.qa:active { transform: scale(.97); }
.qa-ico { grid-row: span 2; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.qa-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.qa-n { font: 700 20px/1.1 Fredoka, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-l { font-size: 12px; line-height: 1.2; font-weight: 700; color: var(--muted); overflow-wrap: anywhere; }
.q-packs .qa-ico { color: #4fe3b0; } .q-coin .qa-ico { color: #ffcb3d; } .q-lab .qa-ico { color: #3fe0d0; } .q-mem .qa-ico { color: #ff7ad9; }
.q-quiz .qa-ico { color: #8fc2ff; } .q-egg .qa-ico { color: #ffc690; }
.ds-eggs { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 12px; border-radius: 16px; background: rgba(255, 255, 255, .14);
  font-size: 13px; line-height: 1.3; }
.ds-eggs small { display: block; opacity: .85; font-size: 11.5px; }
.ds-eggs .egg { width: 34px; height: 44px; border-width: 2px; }
.qa.ready { border-color: transparent; background: linear-gradient(rgba(22, 31, 60, .95), rgba(22, 31, 60, .95)) padding-box, var(--dockgrad) border-box;
  border: 2px solid transparent; box-shadow: 0 0 18px rgba(255, 79, 163, .25); }
.qa.ready::after { content: ""; position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent2);
  animation: ping 1.8s infinite; }

/* the board of all fusions */
.fboard { padding: 14px; border-radius: 20px; background: rgba(22, 31, 60, .88); border: 1px solid rgba(255, 255, 255, .08); }
.fb-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
.fb-h b { font: 600 16px Fredoka, sans-serif; }
.fb-h span { font-size: 12px; color: var(--muted); font-weight: 700; }
.fb-h a { margin-left: auto; font: 800 12.5px Nunito, sans-serif; }
.fb-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.fb-cell { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; padding: 0; font: 700 12px Fredoka, sans-serif; color: var(--muted);
  background: rgba(255, 255, 255, .04); border: 1px dashed rgba(255, 255, 255, .14); }
.fb-cell.on { cursor: pointer; border: 1px solid transparent; background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05)), var(--dockgrad); }
.fb-cell.on img { width: 92%; height: 92%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.fb-cell.newest { animation: fbnew 1.6s ease-in-out infinite; }
@keyframes fbnew { 50% { box-shadow: 0 0 0 3px rgba(255, 79, 163, .6), 0 0 14px rgba(255, 79, 163, .7); transform: scale(1.08); } }

/* ------------------------------------------------------------------ the light look */
html.light { --dockbg: rgba(255, 255, 255, .92); --dockring: #ffffff; --dockgrad: linear-gradient(115deg, #5ca8ff, #a470ff 40%, #ff78c4 75%, #ffb870); }
html.light #tabs.dock { border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(112, 84, 196, .2); }
html.light #tabs.dock::before { display: none; }
html.light #tabs.dock a.on { background: rgba(164, 112, 255, .1); }
html.light #tabs.dock a.on::before { top: auto; width: 4px; background: #a470ff; }
html.light .dock-track path { filter: drop-shadow(0 -2px 6px rgba(112, 84, 196, .25)); }
html.light .dock-acts i:not(.on) { background: #efe8ff; box-shadow: inset 0 0 0 1.5px rgba(146, 89, 242, .45); }
html.light .dock-acts i.on { box-shadow: 0 0 0 1.5px #fff, 0 2px 6px rgba(255, 79, 163, .55); }
html.light .dock-cd { color: #5b3fb0; background: rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px #e4daf8, 0 3px 8px rgba(112, 84, 196, .2); }
html.light .dock-orb { box-shadow: 0 0 0 5px var(--dockring), 0 10px 22px rgba(164, 112, 255, .45); }
html.light #tabs.dock .dock-main.on .dock-orb { box-shadow: 0 0 0 5px var(--dockring), 0 12px 26px rgba(164, 112, 255, .6); }
html.light .ms-i { background: var(--tint); }
html.light .ms-ico { background: #fff; box-shadow: 0 3px 10px rgba(112, 84, 196, .14); }
html.light .ms-i:nth-child(4n+1) .ms-ico { color: #3f8ff0; } html.light .ms-i:nth-child(4n+2) .ms-ico { color: #8a55f0; }
html.light .ms-i:nth-child(4n+3) .ms-ico { color: #ee4fa6; } html.light .ms-i:nth-child(4n) .ms-ico { color: #ee8a2c; }
/* the stage wears the card back, like the banners */
html.light .dstage { background: url(/art/card-back.webp?v=2) center 40% / max(170%, 560px) auto no-repeat, var(--dockgrad);
  border: 3px solid #fff; outline: 2px dotted rgba(255, 255, 255, .85); outline-offset: -10px; box-shadow: 0 14px 34px rgba(140, 90, 220, .3);
  color: #2c2650; text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
html.light .dstage::before { background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .22) 0 6deg, transparent 6deg 16deg); }
html.light .ds-kicker { color: #3f2a96; }
html.light .ds-count, html.light .ds-parents span { background: rgba(255, 255, 255, .62); }
html.light .ds-card::before { background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(255, 255, 255, .25) 45%, transparent 70%); }
/* on the pastel stage the name is dark ink (white vanished on the pale art), its element colours become the bar under it */
html.light .ds-name, html.light .ds-name.mix { color: #2c2650; background: none; -webkit-text-fill-color: #2c2650; filter: none; }
html.light .ds-name::after { content: ""; display: block; width: 64px; height: 5px; margin-top: 6px; border-radius: 99px; background: var(--nc, #fff);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
html.light .ds-name.mix::after { background: linear-gradient(90deg, var(--nc1), var(--nc2)); }
html.light .ds-rail-h a { color: #3f2a96; }
html.light .ds-by small, html.light .ds-mini-by { color: #3d3570; }
html.light .ds-tag { background: #fff; color: #a14fe0; text-shadow: none; box-shadow: 0 4px 12px rgba(120, 60, 200, .3); }
html.light .dstage .btn.alt { background: rgba(255, 255, 255, .9); }
html.light .qa, html.light .fboard { background: rgba(255, 255, 255, .9); border: 1px solid var(--line); box-shadow: var(--soft); }
html.light .qa-ico { background: var(--tint); }
html.light .q-packs .qa-ico { color: #17a979; } html.light .q-coin .qa-ico { color: #d39200; }
html.light .q-lab .qa-ico { color: #159fb4; } html.light .q-mem .qa-ico { color: #e04aa8; }
html.light .q-quiz .qa-ico { color: #3f8ff0; } html.light .q-egg .qa-ico { color: #e0802a; }
html.light .ds-eggs { background: rgba(255, 255, 255, .62); }
html.light .qa.ready { background: linear-gradient(#fff, #fff) padding-box, var(--dockgrad) border-box; border: 2px solid transparent; box-shadow: 0 6px 18px rgba(164, 112, 255, .22); }
html.light .fb-cell { background: var(--tint); border-color: #d8ccf0; color: #8a83bb; }
html.light .fb-cell.on { border-color: #fff; background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .1)), var(--dockgrad);
  box-shadow: 0 2px 6px rgba(112, 84, 196, .25); }
/* 14/11 (owner): the 3D pack in the dock's orb (dockpack3d.js); the SVG icon hides while the canvas is there */
.dock-orb.has3d svg { display: none; }
.dock-pack3d { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; pointer-events: none; }
/* 15/11 (owner: "improve and reorganise the More menu; make Infini+ interesting and highlighted"): a big animated
   Infini+ banner on top (deep violet to magenta to gold, a light sweep, twinkling stars, a turning star badge), then the
   places in labelled groups with a colour each, and the account as a compact list */
.more-sheet .modal-box, .modal-box.more-sheet { padding-bottom: 18px; }
.vip-banner { position: relative; display: flex; align-items: center; gap: 14px; margin: 10px 0 6px; padding: 16px 16px 15px; border-radius: 22px; overflow: hidden;
  isolation: isolate; text-decoration: none; color: #fff; background: linear-gradient(120deg, #2a0f6e 0%, #6a1fd0 34%, #d6337f 68%, #ffb02e 100%); background-size: 200% 200%;
  box-shadow: 0 0 0 2px rgba(255, 214, 102, .65), 0 10px 26px rgba(122, 40, 200, .45), 0 0 28px rgba(255, 176, 46, .35); animation: vb-flow 8s ease-in-out infinite; }
.vip-banner:active { transform: scale(.985); }
@keyframes vb-flow { 50% { background-position: 100% 50%; } }
.vb-shine { position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%);
  transform: translateX(-120%); animation: vb-sweep 3.6s ease-in-out infinite; }
@keyframes vb-sweep { 0%, 35% { transform: translateX(-120%); } 75%, 100% { transform: translateX(120%); } }
.vb-star { position: absolute; z-index: -1; left: var(--x); top: var(--y); font-size: 11px; color: #fff3c4; text-shadow: 0 0 8px #ffd23d; animation: rf-twinkle 2.2s ease-in-out var(--d) infinite; }
.vb-badge { position: relative; flex: none; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7cf, #ffd23d 45%, #f08a12 100%); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 0 22px rgba(255, 210, 61, .8); }
.vb-badge svg { width: 36px; height: 36px; fill: #fff; stroke: #b5570a; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 2px rgba(120, 50, 0, .35)); animation: vb-spin 6s ease-in-out infinite; }
.vb-ring { position: absolute; inset: -7px; border-radius: 50%; border: 2px dashed rgba(255, 243, 196, .8); animation: rf-spin 14s linear infinite; }
@keyframes vb-spin { 0%, 70%, 100% { transform: rotate(0) scale(1); } 80% { transform: rotate(-14deg) scale(1.12); } 90% { transform: rotate(10deg) scale(1.06); } }
.vb-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vb-kick { font: 800 10.5px/1.2 Nunito, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #ffe9a8; }
.vb-title { font: 700 30px/1 Fredoka, sans-serif; letter-spacing: .01em; text-shadow: 0 2px 0 rgba(60, 10, 90, .45); }
.vb-title em { font-style: normal; color: #ffd23d; text-shadow: 0 0 12px rgba(255, 210, 61, .9), 0 2px 0 rgba(120, 50, 0, .5); }
.vb-perks { display: flex; flex-wrap: wrap; gap: 4px 5px; margin-top: 3px; }
.vb-perks span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 99px; font: 800 10.5px/1.35 Nunito, sans-serif;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28); white-space: nowrap; }
.vb-perks i { font-style: normal; }
.vb-cta { align-self: flex-start; margin-top: 6px; padding: 5px 13px; border-radius: 99px; font: 800 12.5px/1.2 Nunito, sans-serif; color: #5a1a00;
  background: linear-gradient(180deg, #fff3b8, #ffc23d); box-shadow: 0 3px 0 #c06a0c, 0 0 14px rgba(255, 210, 61, .7); }
.vip-banner.on { background: linear-gradient(120deg, #3b1290, #8a2be2 40%, #ff4fa3 75%, #ffd23d); background-size: 200% 200%; }
/* 19/11: the compact one in the side menu, right under the profile */
#side a.vip-banner.side, html.light #side a.vip-banner.side { flex: none; margin: 8px 0 6px; padding: 12px 12px 11px; gap: 11px; border-radius: 18px; color: #fff;
  background: linear-gradient(120deg, #2a0f6e 0%, #6a1fd0 34%, #d6337f 68%, #ffb02e 100%); background-size: 200% 200%; }
#side a.vip-banner.side:hover, html.light #side a.vip-banner.side:hover { background: linear-gradient(120deg, #2a0f6e 0%, #6a1fd0 34%, #d6337f 68%, #ffb02e 100%);
  background-size: 200% 200%; filter: brightness(1.08); }
#side a.vip-banner.side.on, html.light #side a.vip-banner.side.on { background: linear-gradient(120deg, #3b1290, #8a2be2 40%, #ff4fa3 75%, #ffd23d); background-size: 200% 200%; }
#side a.vip-banner.side svg { fill: #fff; stroke: #b5570a; stroke-width: 1.4; }
#side .vip-banner.side .vb-badge { width: 48px; height: 48px; }
#side .vip-banner.side .vb-badge svg { width: 27px; height: 27px; }
#side .vip-banner.side .vb-ring { inset: -5px; }
#side .vip-banner.side .vb-title { font-size: 25px; }
#side .vip-banner.side .vb-kick { font-size: 9.5px; letter-spacing: .1em; }
#side .vip-banner.side .vb-perks span { font-size: 9.5px; padding: 1px 6px; }
#side .vip-banner.side .vb-cta { margin-top: 5px; padding: 4px 11px; font-size: 11.5px; }
#side .vip-banner.side.on { box-shadow: 0 0 0 2px #ffd23d, 0 10px 26px rgba(122, 40, 200, .45), 0 0 28px rgba(255, 176, 46, .45); }
.ms-h { display: flex; align-items: center; gap: 6px; margin: 14px 2px 2px; font: 800 12px/1.2 Nunito, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ms-h i { font-style: normal; font-size: 14px; letter-spacing: 0; }
.more-sheet .ms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
.more-sheet .ms-grid.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.more-sheet .ms-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.more-sheet .ms-i { gap: 3px; padding: 11px 4px 9px; border-color: color-mix(in srgb, var(--mc) 35%, transparent);
  background: linear-gradient(170deg, color-mix(in srgb, var(--mc) 18%, transparent), transparent 70%); }
.more-sheet .ms-i .ms-ico, html.light .more-sheet .ms-i .ms-ico { color: #fff; background: linear-gradient(150deg, color-mix(in srgb, var(--mc) 75%, #fff), var(--mc));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--mc) 45%, transparent); }
.ms-t { font: 800 13px/1.15 Nunito, sans-serif; text-align: center; }
.ms-s { font: 700 10px/1.2 Nunito, sans-serif; text-align: center; color: var(--muted); padding: 0 2px; }
.more-sheet .ms-grid.n4 .ms-s { display: none; }
.more-sheet .ms-grid.n2 .ms-i { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 12px; text-align: left; }
.more-sheet .ms-grid.n2 .ms-i > .ms-t, .more-sheet .ms-grid.n2 .ms-i > .ms-s { text-align: left; }
.more-sheet .ms-grid.n2 .ms-i { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 1px; align-items: center; }
.more-sheet .ms-grid.n2 .ms-ico { grid-row: 1 / 3; }
.ms-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.ms-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; text-decoration: none; color: var(--ink, inherit);
  font: 800 12.5px/1.2 Nunito, sans-serif; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.ms-row.on { border-color: var(--red-l); }
.ms-rico { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 9px; color: #8a55f0; background: rgba(138, 85, 240, .12); }
.ms-rico svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ms-go { opacity: .5; font-weight: 800; }
html.light .ms-row { background: #fff; box-shadow: 0 2px 8px rgba(112, 84, 196, .1); }
@media (max-width: 360px) { .more-sheet .ms-grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vb-badge { width: 54px; height: 54px; } .vb-title { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .vip-banner, .vb-shine, .vb-star, .vb-ring, .vb-badge svg { animation: none; } }
html.light .vip-banner, html.light .vip-banner:visited, .vip-banner .vb-title, .vip-banner .vb-perks span { color: #fff; -webkit-text-fill-color: #fff; background-clip: border-box; }
html.light .vip-banner .vb-title, html.light .vip-banner .vb-perks span { color: #fff; -webkit-text-fill-color: #fff; }
.vip-banner .vb-title em { -webkit-text-fill-color: #ffd23d; }
.vip-banner .vb-kick { -webkit-text-fill-color: #ffe9a8; }
.vip-banner .vb-cta { -webkit-text-fill-color: #5a1a00; }
.more-sheet .vip-banner { margin-top: 26px; }
/* 15/11 (owner: "make the main card interactive with three.js"): Home's featured card in 3D (card3d.js) over the page's
   card, which fades out once the 3D one has drawn; the canvas is larger than the card so it can turn and stand out */
.ds-card .c3d-cv { position: absolute; z-index: 2; pointer-events: none; opacity: 0; }
.ds-card.c3d { transform: none !important; }
.ds-card .card { transition: opacity .35s; }
.ds-card.c3d .card { opacity: 0; }
.ds-card.c3d::before { opacity: .55; }

/* 19/11 (polish: the "Chat" pill covered cards and buttons on a phone): a round icon there, the word only on wider screens */
@media (max-width: 720px) {
  #chat-fab { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; }
  #chat-fab > span { display: none; }
}

/* 19/11 (owner: "make the interface and the information intuitive"): on a phone the home shows first what you can do
   now (free packs and coins, the daily missions, the incubators and the play buttons, the pair of the day), then the
   community: the latest discovery, the rare finds, the gift and the fusion board */
@media (max-width: 899px) {
  .h2-top { display: flex; flex-direction: column; }
  .h2-side { display: contents; }
  .h2-top > .qa-grid, .h2-side > .qa-grid { order: 1; }
  .h2-side > .dly { order: 2; }
  .h2-side > .wact { order: 3; }
  .h2-side > .play { order: 4; }
  .h2-side > .daily { order: 5; }
  .h2-top > .dstage { order: 6; }
  .h2-side > .rare-show { order: 7; }
  .h2-side > .comm { order: 8; }
  .h2-side > .fboard { order: 9; }
}

/* 20/11 (owner: "put this screen up top in the game, to be the first view"): on a phone Home opens on the latest
   discovery (the stage); the greeting steps aside (the top bar's strip now shows what is waiting), the rest follows */
@media (max-width: 899px) {
  .home2 > .home-hello { display: none; }
  .h2-top { margin-top: 2px; }
  .h2-top > .dstage { order: 0; }
}

/* 20/11: Switch account, the More sheet's last row (a button) */
.ms-row.ms-out { grid-column: 1 / -1; width: 100%; font: inherit; text-align: left; cursor: pointer; border: 1px solid transparent; background: none; }
html.light .ms-row.ms-out { background: #fff; }
.ms-row.ms-out .grow { color: #e0446a; font-weight: 800; }

/* 21/11 (owner: "make the phone HUD like the PC's assets"): the dock's game pictures, each in a small game slot with its
   colour's rim (the PC side menu's tiles, smaller); the open place lights up and lifts */
#tabs.dock-art a .dk-ic { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; overflow: hidden; flex: none;
  background: radial-gradient(circle at 50% 26%, #4d2cb4, #1c0e48 78%);
  box-shadow: inset 0 0 0 1.5px var(--rim), inset 0 -2px 0 rgba(0, 0, 0, .35); transition: transform .15s, box-shadow .15s; }
#tabs.dock-art a .dk-ic.gsa-home { background: none; box-shadow: none; }
#tabs.dock-art a .dk-ic .gsa-full { width: 100%; height: 100%; display: block; }
#tabs.dock-art a .dk-ic .gsa-svg { width: 27px; height: 27px; stroke: none; }
/* the dock's line-icon rules (stroke, no fill, the lift and glow) must not touch the pictures */
#tabs.dock-art a .dk-ic svg, #tabs.dock-art .dock-orb > .gsa-svg { stroke: none; stroke-width: 0; fill: #000; }
#tabs.dock-art a.on .dk-ic svg { transform: none; filter: none; }
#tabs.dock-art a .dk-ic .gi { stroke: none; }
#tabs.dock-art a .dk-ic .gsa-cards { width: 32px; height: 32px; }
#tabs.dock-art a .dk-ic .gsa-cards img { top: 5px; width: 14px; height: 21px; }
#tabs.dock-art a .dk-ic .gsa-cards img:first-child { left: 4px; } #tabs.dock-art a .dk-ic .gsa-cards img:last-child { left: 13px; }
#tabs.dock-art a .dk-ic .gsa-lab { width: 32px; height: 32px; }
#tabs.dock-art a .dk-ic .gsa-lab img { inset: -3px; width: 38px; height: 38px; }
#tabs.dock-art a .dk-ic .gsa-lab .gi { width: 16px; height: 16px; filter: drop-shadow(0 0 4px #3dd6ff); }
#tabs.dock-art a .dk-ic .gsa-more { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 18px; height: 18px; }
#tabs.dock-art a .dk-ic .gsa-more i { border-radius: 3px; background: linear-gradient(135deg, #ff8a3d, #ff4fa3); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
#tabs.dock-art a .dk-ic .gsa-more i:nth-child(2) { background: linear-gradient(135deg, #3dd6ff, #a470ff); }
#tabs.dock-art a .dk-ic .gsa-more i:nth-child(3) { background: linear-gradient(135deg, #ffd23d, #ff8a3d); }
#tabs.dock-art a .dk-ic .gsa-more i:nth-child(4) { border-radius: 50%; background: linear-gradient(135deg, #5fe39a, #3dd6ff); }
#tabs.dock-art a.on .dk-ic { transform: translateY(-2px) scale(1.08);
  box-shadow: inset 0 0 0 2px var(--rim), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 0 12px color-mix(in srgb, var(--rim) 70%, transparent); }
#tabs.dock-art a.on .dk-ic.gsa-home { box-shadow: 0 0 12px color-mix(in srgb, var(--rim) 70%, transparent); border-radius: 10px; }
#tabs.dock-art a:active .dk-ic { transform: scale(.9); }
#tabs.dock-art .dock-orb > .gsa-svg { width: 34px; height: 34px; }
@media (max-width: 420px) { #tabs.dock-art a .dk-ic { width: 30px; height: 30px; } }

/* 21/11 (owner: "swap the little dots for incubators"): the crown's incubators (app.js DOCK_INC) */
.dock-acts i.dinc, html.light .dock-acts i.dinc, html.light .dock-acts i.dinc:not(.on) { left: -11px; top: -13px; width: 22px; height: 24px; border-radius: 0;
  background: none; box-shadow: none; }
.dock-acts i.dinc svg { display: block; width: 22px; height: 24px; overflow: visible; filter: drop-shadow(0 1px 1.5px rgba(10, 4, 40, .55)); }
.dock-acts i.dinc.on svg { filter: drop-shadow(0 0 4px rgba(142, 240, 255, .95)) drop-shadow(0 1px 1px rgba(10, 4, 40, .5)); }


/* 21/11 (owner: "the old style, but little eggs, coloured maybe"): the crown's incubators as little eggs: a free one lit in
   the game's colours (each egg a little different), a busy one faint, like the old dots */
.dock-acts i.degg { left: -4.5px; top: -6px; width: 9px; height: 11.5px; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
  background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.dock-acts i.degg.on { background: radial-gradient(circle at 34% 28%, #fff 0 14%, transparent 16%),
    linear-gradient(160deg, #ffd23d, #ff8a3d 30%, #ff4fa3 62%, #a470ff); filter: hue-rotate(var(--eh, 0deg));
  box-shadow: 0 0 0 1.5px #fff, 0 0 8px rgba(255, 79, 163, .8); }
html.light .dock-acts i.degg:not(.on) { background: #efe8ff; box-shadow: inset 0 0 0 1.5px rgba(146, 89, 242, .45); }
html.light .dock-acts i.degg.on { box-shadow: 0 0 0 1.5px #fff, 0 2px 6px rgba(255, 79, 163, .55); }
#tabs.dock .dock-main:has(.degg) .dock-cd { top: -78px; }      /* 21/11: the clock over the eggs, now a little higher */

/* 22/11 (owner): the PC home packs up: the left column holds the stage and everything after it (homeDeskPack) */
.h2-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.h2-main > .sec-h { margin: 6px 0 -4px; }
.h2-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: stretch; }
.h2-pair > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.h2-pair .wait-grid { grid-template-columns: 1fr; }
.h2-pair .hof { grid-template-columns: 1fr; flex: 1; }
.h2-main .hof > :only-child { grid-column: 1 / -1; }
.h2-main .wait-grid > * { width: 100%; max-width: none; }
.h2-moved { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.h2-moved .wait-grid, .h2-moved .hof { grid-template-columns: 1fr; }
