/* Pet Battlers: greybox styling. Clean, bright, big buttons, works on a phone and an iPad. */
:root {
  --bg: #eef3ff; --ink: #1d2540; --muted: #5d6784; --card: #fff; --line: #d9e1f5;
  --brand: #5b5cf0; --brand-d: #4344c9; --good: #1fa463; --bad: #e5484d; --warn: #f5a524; --gold: #ffb100;
  --water: #2f8bff; --fire: #ff7a1a; --leaf: #37b24d; --earth: #b8864b; --lightning: #f2c200;
  --radius: 18px; --shadow: 0 6px 18px #1d254022;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: radial-gradient(1200px 600px at 50% -10%, #fff 0%, var(--bg) 60%); color: var(--ink); font: 16px/1.4 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; min-height: 100vh; -webkit-tap-highlight-color: transparent; }
h1 { font-size: 1.7rem; margin: .2em 0; } h2 { font-size: 1.25rem; margin: .5em 0 .25em; } h3 { margin: .8em 0 .3em; color: var(--muted); }
.screen { max-width: 980px; margin: 0 auto; padding: 14px 14px 40px; }
.screen.center { text-align: center; padding-top: 30vh; }
.muted { color: var(--muted); } .fine { color: var(--muted); font-size: .85rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; margin: .6em 0; }
.hide, [hidden] { display: none !important; }

/* buttons and bits */
.btn { font: inherit; font-weight: 800; border: 0; border-radius: 14px; padding: .7em 1.1em; background: var(--brand); color: #fff; box-shadow: 0 4px 0 var(--brand-d); cursor: pointer; transition: transform .08s, box-shadow .08s, filter .15s; touch-action: manipulation; }
.btn:hover { filter: brightness(1.06); } .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--brand-d); }
.btn:disabled { background: #b9c0d6; box-shadow: 0 4px 0 #9aa3bf; cursor: not-allowed; filter: none; transform: none; }
.btn.big { font-size: 1.25rem; padding: .85em 1.3em; } .btn.small { font-size: .85rem; padding: .45em .8em; border-radius: 11px; box-shadow: 0 3px 0 var(--brand-d); }
.btn.ghost { background: #fff; color: var(--brand); box-shadow: 0 3px 0 var(--line); border: 2px solid var(--line); } .btn.ghost:disabled { color: #9aa3bf; background: #f3f5fb; }
.btn.good { background: var(--good); box-shadow: 0 4px 0 #14804b; }
.btn small { display: block; font-weight: 600; opacity: .85; font-size: .72em; }
.pill { display: inline-block; background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: .2em .8em; font-weight: 800; }
.pill.coins { background: #fff7dd; border-color: #ffe08a; }
.chip { display: inline-block; border-radius: 99px; padding: .05em .6em; font-size: .78rem; font-weight: 800; background: #eef1fb; white-space: nowrap; }
.chip.el-water { background: #dcebff; color: #14509e; } .chip.el-fire { background: #ffe5d0; color: #9a4300; } .chip.el-leaf { background: #daf3de; color: #1c6b2b; } .chip.el-earth { background: #f1e4d2; color: #6c4a22; } .chip.el-lightning { background: #fff2b8; color: #7d6200; }
.chip.rar-common { background: #e8ebf2; color: #4b556c; } .chip.rar-uncommon { background: #daf3de; color: #1c6b2b; } .chip.rar-rare { background: #dcebff; color: #14509e; } .chip.rar-epic { background: #ecdcff; color: #6a1fb8; } .chip.rar-legendary { background: #ffefb8; color: #8a5d00; }
.stars { color: var(--gold); letter-spacing: 1px; text-shadow: 0 1px 0 #0001; } .stars i { color: #d5d9e6; font-style: normal; text-shadow: none; }
.bar { display: inline-block; vertical-align: middle; width: 100%; max-width: 260px; height: 11px; background: #e2e7f5; border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, #5bd18a, #1fa463); border-radius: 99px; transition: width .4s; }
input[type=text], textarea { font: inherit; border: 2px solid var(--line); border-radius: 12px; padding: .6em .8em; width: 100%; background: #fff; color: var(--ink); } input[type=text]:focus, textarea:focus { outline: 3px solid #5b5cf055; border-color: var(--brand); }
.topbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; } .topbar h1 { flex: 1; margin: 0; font-size: 1.4rem; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin: 12px 0; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin: .4em 0; } .seg button { font: inherit; font-weight: 800; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: .5em 1em; cursor: pointer; color: var(--ink); } .seg button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* title and setup */
.title { text-align: center; } .logo { font-size: 2.6rem; margin: .6em 0 .1em; background: linear-gradient(90deg, #5b5cf0, #ff7a1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.players { display: flex; flex-direction: column; gap: 10px; align-items: center; margin: 18px 0; } .player { min-width: 14em; }
.newplayer { display: flex; gap: 8px; max-width: 420px; margin: 10px auto; flex-wrap: wrap; align-items: center; } .newplayer label { width: 100%; text-align: left; font-weight: 800; } .newplayer input { flex: 1; }
.starters { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 14px; }
.card { background: #fff; border: 3px solid var(--line); border-radius: 22px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font: inherit; color: var(--ink); box-shadow: var(--shadow); transition: transform .12s, border-color .12s; } .card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card small { color: var(--muted); text-align: center; }
.years { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* pictures */
.art { display: block; user-select: none; -webkit-user-drag: none; }
.art.big { width: min(220px, 56vw); height: auto; } .art.thumb { width: 92px; height: auto; } .art.tiny { width: 38px; height: auto; } .art.bobby { width: min(190px, 34vw); }
img.art[data-rot="90"] { transform: rotate(-90deg); transform-origin: 50% 94%; }  /* a knocked-out pet falls backwards, away from the enemy */
.ph { aspect-ratio: 1; border-radius: 28%; background: radial-gradient(circle at 35% 30%, #fff9, transparent 55%), linear-gradient(160deg, var(--c), var(--d)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-weight: 800; padding: 6px; box-shadow: inset 0 -6px 0 #0003; }
.ph b { font-size: 1.9em; line-height: 1; } .ph span { font-size: .72em; opacity: .95; margin-top: 4px; line-height: 1.1; }
.ph.thumb b { font-size: 1.6rem; } .ph.big { width: min(190px, 52vw); } .ph.tiny { width: 38px; padding: 2px; } .ph.tiny b { font-size: 1rem; } .ph.tiny span { display: none; }
.ph.unknown { --c: #b9c0d6; --d: #8f98b5; }

/* home */
.showcase { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 10px; margin: 14px 0; min-height: 150px; padding: 10px; border-radius: var(--radius); background: linear-gradient(180deg, #cfe8ff, #e9f7e2 70%, #b9dfa4); box-shadow: var(--shadow); }
.show { display: flex; flex-direction: column; align-items: center; font-size: .8rem; font-weight: 800; animation: bob 1.7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.show small { font-weight: 800; } .show span { font-weight: 700; color: var(--muted); }
.menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0; } .menu .adventure { grid-column: 1 / -1; background: linear-gradient(90deg, #ff7a1a, #ff4d6d); box-shadow: 0 4px 0 #b83a4f; font-size: 1.5rem; }
.daily { text-align: center; color: var(--muted); } .daily .bar { margin-left: 8px; }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-6px) scale(1.02, .98); } }

/* map */
.worlds { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; } .wtab { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; border: 3px solid var(--line); background: #fff; font-size: 1.3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; line-height: 1; } .wtab small { font-size: .65rem; font-weight: 800; color: var(--muted); } .wtab.on { border-color: var(--brand); background: #eceaff; } .wtab.locked { opacity: .5; cursor: not-allowed; }
.worldbox { border-radius: var(--radius); padding: 12px 16px; color: #fff; text-shadow: 0 2px 3px #0005; box-shadow: var(--shadow); } .worldbox h2 { margin: 0; font-size: 1.5rem; } .worldbox p { margin: .2em 0 0; }
.bg-leaf { background: linear-gradient(160deg, #6ed07a, #2f9e55); } .bg-water { background: linear-gradient(160deg, #6bbcff, #2f6fd6); } .bg-fire { background: linear-gradient(160deg, #ffa96b, #e2492a); } .bg-earth { background: linear-gradient(160deg, #d9b377, #9a6a38); } .bg-lightning { background: linear-gradient(160deg, #ffe877, #a57fe8); }
.nodes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 16px 0; max-width: 620px; margin-inline: auto; }
.node { position: relative; aspect-ratio: 1; border-radius: 50%; border: 4px solid #fff; background: var(--brand); color: #fff; font: inherit; font-weight: 900; font-size: 1.4rem; cursor: pointer; box-shadow: 0 5px 0 #0003, var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; transition: transform .1s; } .node:hover { transform: scale(1.07); }
.node.done { background: var(--good); } .node.boss { background: linear-gradient(160deg, #ff7a7a, #c2255c); } .node.locked { background: #b9c0d6; cursor: not-allowed; font-size: 1rem; } .node .stars { font-size: .7rem; } .node .gift { position: absolute; top: -8px; right: -6px; font-style: normal; font-size: 1.2rem; animation: bob 1.4s infinite; }

/* dialogs */
.modal-back { position: fixed; inset: 0; background: #1d254088; display: flex; align-items: center; justify-content: center; padding: 14px; z-index: 50; overflow-y: auto; }
.modal { background: #fff; border-radius: 24px; padding: 18px 20px; width: min(440px, 100%); max-height: 94vh; overflow-y: auto; box-shadow: 0 20px 60px #0006; animation: pop .22s; } .modal.wide { width: min(560px, 100%); } .modal h2 { margin-top: 0; text-align: center; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.enemies { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; } .mini { display: flex; flex-direction: column; align-items: center; font-size: .72rem; font-weight: 800; background: #f4f6fd; border-radius: 14px; padding: 6px; width: 84px; } .mini.boss { background: #ffe3e8; } .mini .thumb { width: 64px; } .mini span { color: var(--muted); }
.verdict2 { text-align: center; font-weight: 900; font-size: 1.15rem; margin: .5em 0 0; } .verdict2.good { color: var(--good); } .verdict2.ok { color: #3a6fe0; } .verdict2.warn { color: #d98200; } .verdict2.bad { color: var(--bad); }
.rewards { list-style: none; padding: 0; margin: .6em 0; display: flex; gap: 8px 16px; justify-content: center; flex-wrap: wrap; font-weight: 800; } .rewards.big { font-size: 1.2rem; }

/* collection */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 10px; }
.pcard { background: #fff; border: 3px solid var(--line); border-radius: 18px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; color: var(--ink); cursor: pointer; font-size: .82rem; box-shadow: 0 3px 0 #0001; } .pcard b { text-align: center; line-height: 1.15; } .pcard .meta { color: var(--muted); font-weight: 700; } .pcard:hover { transform: translateY(-2px); }
.pcard.rar-uncommon { border-color: #8bd49a; } .pcard.rar-rare { border-color: #7db4ff; } .pcard.rar-epic { border-color: #b98aff; } .pcard.rar-legendary { border-color: var(--gold); background: linear-gradient(#fff, #fff7dc); } .pcard.locked { background: #f0f2f8; color: var(--muted); } .pcard.inteam { box-shadow: 0 0 0 3px var(--brand) inset; } .pcard.static { cursor: default; }
.teamrow { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; } .slot { display: flex; flex-direction: column; align-items: center; width: 130px; } .slot .row { gap: 4px; margin: 4px 0; }
.detail { text-align: center; } .detail .ring, .catch .ring, .hatched .ring { display: inline-block; border-radius: 50%; padding: 10px 14px 4px; background: radial-gradient(circle, #fff 30%, #e8ecff 70%); box-shadow: 0 0 0 6px #fff, 0 0 30px #5b5cf033; }
.detail.rar-legendary .ring, .hatched.rar-legendary .ring { background: radial-gradient(circle, #fffbe6 30%, #ffe28a 80%); box-shadow: 0 0 0 6px #fff, 0 0 40px #ffb10088; } .hatched.rar-epic .ring { background: radial-gradient(circle, #fbf5ff 30%, #d9b8ff 80%); }
.statrow { display: flex; gap: 14px; justify-content: center; font-weight: 800; margin: .4em 0; } .abil { background: #f4f6fd; border-radius: 12px; padding: .5em .8em; } .forms span.cur { font-weight: 900; color: var(--brand); } .forms span.future { color: #9aa3bf; }
.ring.flash { animation: flash .35s 4; } @keyframes flash { 50% { filter: brightness(3) saturate(0); } }

/* eggs */
.eggs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 12px; } .egg-card { background: #fff; border-radius: 22px; padding: 14px; text-align: center; box-shadow: var(--shadow); } .egg-card.locked { opacity: .7; }
.egg { width: 92px; height: 116px; margin: 6px auto; border-radius: 50% 50% 48% 48% / 62% 62% 38% 38%; background: radial-gradient(circle at 35% 28%, #fff8, transparent 40%), linear-gradient(160deg, var(--c), var(--d)); display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: inset 0 -8px 0 #0002, 0 6px 14px #0003; }
.egg-nest { background-image: radial-gradient(circle at 35% 28%, #fff8, transparent 40%), linear-gradient(160deg, var(--c), var(--d)); } .egg-star::after { content: "★"; position: absolute; } .egg-moon { box-shadow: inset 0 -8px 0 #0002, 0 0 22px var(--c), 0 6px 14px #0003; }
.egg.big { width: 150px; height: 190px; font-size: 3rem; } .egg.shake { animation: shake .45s infinite; } @keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
.odds { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 3px; } .odds li { display: flex; justify-content: space-between; align-items: center; } .pity { font-size: .82rem; color: var(--muted); } .pity .bar { display: block; margin: 0 auto 3px; height: 8px; }
.reveal { text-align: center; padding: 8px 0; } .hatched { animation: pop .4s; }

/* battle */
.battle { max-width: 1000px; margin: 0 auto; padding: 8px 10px 24px; }
.b-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; } .b-title { font-weight: 900; font-size: 1.05rem; text-align: center; flex: 1; }
.arena { position: relative; width: 100%; height: clamp(230px, 46vh, 520px); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; --pw: clamp(50px, 12vh, 140px); }
.arena::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(#fff2, #0002); }
.unit { position: absolute; width: var(--pw); transform: translate(-50%, -100%); transition: opacity .6s; } .unit.dead { opacity: .5; } .unit.dead .hp, .unit.dead .meter { opacity: .3; }
.unit .art { width: 130%; margin: -4% -15% 0; max-width: none; pointer-events: none; } .unit .ph { width: 78%; margin: 0 auto; }
.unit .flip { display: block; } .unit .flip.turned { transform: scaleX(-1); }          /* every pet faces its enemy: art drawn facing the other way is turned (art-src/pets/facing.json) */
.bob { animation: bob 1.5s ease-in-out infinite; transform-origin: 50% 100%; } .unit.dead .bob { animation: none; }
.hud { font-size: clamp(.55rem, 1.7vw, .75rem); font-weight: 800; text-align: center; line-height: 1.1; text-shadow: 0 1px 2px #fff, 0 0 3px #fff; margin-bottom: 1px; } .hud small { opacity: .8; } .hud .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp { position: relative; height: 7px; background: #0004; border-radius: 99px; overflow: hidden; border: 1px solid #fff9; margin: 1px 6%; } .hpfill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#7cf29f, #1fa463); transition: width .25s; } .unit.side-b .hpfill { background: linear-gradient(#ff9a9a, #e5484d); } .shfill { position: absolute; inset: 0 auto 0 0; background: #6bc1ffcc; mix-blend-mode: normal; opacity: .85; height: 45%; transition: width .25s; }
.meter { height: 3px; margin: 2px 14%; background: #0003; border-radius: 99px; overflow: hidden; } .meter i { display: block; height: 100%; background: #ffd23f; }
.fxlayer { position: absolute; inset: 0; pointer-events: none; z-index: 400; }
.float { position: absolute; transform: translate(-50%, 0); font-weight: 900; font-size: clamp(.8rem, 2.6vw, 1.3rem); text-shadow: 0 2px 0 #fff, 0 0 4px #fff; animation: rise 1s ease-out forwards; white-space: nowrap; }
.n-hit { color: #e5484d; } .n-strike { color: #a24dff; font-size: 1.6em; } .n-dot { color: #ff7a1a; font-size: .8em; } .n-abil { color: #6a1fb8; } .n-heal { color: #1fa463; } .n-shield { color: #1f7de0; } .n-adv { color: #d98200; } .n-weak { color: #5d6784; font-size: .75em; } .n-ability { color: #fff; background: #5b5cf0; border-radius: 99px; padding: 0 .5em; text-shadow: none; font-size: .7em; }
@keyframes rise { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -46px) scale(1); } }
.spark { position: absolute; font-size: 1.1rem; animation: spark 1s ease-out forwards; } @keyframes spark { from { opacity: 1; transform: translateY(0) scale(.7); } to { opacity: 0; transform: translateY(-40px) scale(1.2); } }
.banner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(1.6rem, 7vw, 3.4rem); font-weight: 900; color: #fff; text-shadow: 0 4px 0 #0005, 0 0 18px #0008; z-index: 500; pointer-events: none; } .banner.show { animation: banner 1s ease-out; }
@keyframes banner { 0% { transform: scale(.3); opacity: 0; } 25% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.boostbar { display: flex; align-items: center; gap: 10px; margin: 8px 0; flex-wrap: wrap; } .orbs { display: flex; gap: 6px; padding: 6px 10px; background: #fff; border-radius: 99px; border: 2px solid var(--line); } .orb { width: 22px; height: 22px; border-radius: 50%; background: #dde3f3; box-shadow: inset 0 -3px 0 #0002; transition: all .2s; } .orb.on { background: radial-gradient(circle at 35% 30%, #fff, #ffd23f 45%, #ff9d00); box-shadow: 0 0 10px #ffb100aa; transform: scale(1.12); }
.boosts { display: flex; gap: 8px; flex: 1; } .boost { flex: 1; padding: .5em .3em; font-size: .95rem; } .boost b { display: block; } .boost small { color: #ffe08a; letter-spacing: 2px; } .b-heal { background: #1fa463; box-shadow: 0 4px 0 #14804b; } .b-shield { background: #2f8bff; box-shadow: 0 4px 0 #1c5fc0; } .b-power { background: #ff7a1a; box-shadow: 0 4px 0 #c24f00; } .b-strike { background: #a24dff; box-shadow: 0 4px 0 #6a1fb8; }
.qpanel { margin-top: 6px; } .qcard { background: #fff; border-radius: 22px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 1.15rem; } .qcard .qb-q { font-size: 1.1rem; } .qcard .qb-fig svg { max-height: 220px; width: auto; } .qcard .qb-blank { min-width: 3em; background: #f1efff; border-color: #b9b0e8; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; } .choice { font: inherit; font-size: 1.3rem; font-weight: 800; padding: .8em .4em; background: #e8f0ff; color: var(--ink); border: 3px solid #c9d8f7; border-radius: 16px; cursor: pointer; } .choice:hover:not(:disabled) { background: #d8e6ff; } .choice.right { background: #c9f4d9; border-color: var(--good); animation: pop .3s; } .choice.wrong { background: #ffd6d8; border-color: var(--bad); animation: shake .3s; } .choice:disabled { cursor: default; }
.typebox { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; } .typebox input { flex: 1 1 8em; min-width: 6em; font-size: 1.2rem; }
.verdict { margin-top: 8px; font-size: 1.15rem; font-weight: 900; text-align: center; min-height: 1.4em; } .verdict .ok { color: var(--good); } .verdict .no { color: var(--bad); } .verdict .coin { color: #b07a00; }

/* result */
.result { text-align: center; } .result h1 { font-size: 2.6rem; margin: .1em 0; } .result.won h1 { color: var(--good); } .result.lost h1 { color: var(--bad); }
.bigstars .stars { font-size: 3rem; } .xps { display: flex; flex-direction: column; gap: 6px; align-items: center; margin: 10px 0; } .xp { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 4px 12px; min-width: min(380px, 94%); box-shadow: 0 3px 0 #0001; font-weight: 700; } .xp span { flex: 1; text-align: left; } .xp .up { color: #fff; background: var(--good); border-radius: 99px; padding: 0 .6em; font-style: normal; font-size: .75rem; font-weight: 900; animation: pop .5s; } .xp .cap { color: var(--muted); font-style: normal; font-size: .75rem; }
.catch { background: #fff; border-radius: 22px; padding: 14px; margin: 14px auto; max-width: 420px; box-shadow: var(--shadow); animation: pop .5s; } .catch.new { border: 4px solid var(--gold); } .evolve-hint { background: #ecdcff; border-radius: 14px; padding: .5em; font-weight: 800; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1d2540; color: #fff; padding: .6em 1.2em; border-radius: 99px; font-weight: 700; z-index: 200; animation: pop .2s; max-width: 92vw; text-align: center; }
.confetti { position: fixed; top: -12px; width: 10px; height: 14px; z-index: 300; pointer-events: none; animation: fall linear forwards; } @keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }
@media (max-width: 560px) { .boost { font-size: .8rem; } .qcard { padding: 12px; font-size: 1.05rem; } .choice { font-size: 1.15rem; } .arena { --pw: min(11vh, 17vw); } h1 { font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .bob, .show, .egg.shake, .node .gift { animation: none; } }

/* enemy placeholders are flipped with their side; turn the words back so they read */
.unit .flip.turned .ph > * { transform: scaleX(-1); }


/* ---- battle effects (fx.mjs) ---- */
.fx { position: absolute; pointer-events: none; }
.fx.proj { line-height: 0; filter: drop-shadow(0 2px 3px #0005); } .fx.trail { width: 12px; height: 12px; border-radius: 50%; opacity: .6; }
.fx.fireball { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #ffe066 28%, #ff9d00 55%, #ff4d1a 75%, transparent 78%); box-shadow: 0 0 22px 8px #ff7a1a99; }
.fx.ember { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle, #ffd23f 0%, #ff7a1a 60%, transparent 70%); }
.fx.flame { width: 26px; height: 26px; border-radius: 50%; } .fx.flame.small { width: 18px; height: 18px; }
.fx.drop { width: 20px; height: 26px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 35% 30%, #fff 0, #bfe6ff 25%, #4aa3ff 70%); box-shadow: 0 0 8px #4aa3ffaa; } .fx.drop.small { width: 12px; height: 16px; }
.fx.dust { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, #d9c7a3 0%, #b79b6b88 60%, transparent 72%); }
.fx.spark-line { width: 5px; height: 26px; border-radius: 3px; background: linear-gradient(#fff, #ffe45c, transparent); box-shadow: 0 0 8px #ffe45c; }
.fx.ring { border-radius: 50%; box-sizing: border-box; } .fx.dome { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, transparent 55%, #6bc1ff88 70%, #6bc1ffcc 74%, transparent 78%); }
.fx.plus { color: #3ddc84; font: 900 26px/1 system-ui; text-shadow: 0 0 6px #fff, 0 2px 0 #0003; } .fx.chev { color: #ff9d00; font: 900 22px/1 system-ui; text-shadow: 0 0 6px #fff; }
.fx.flash { inset: 0; mix-blend-mode: screen; } .fx.bolt { pointer-events: none; }
.unit.powered .art { filter: drop-shadow(0 0 10px #ff9d00) drop-shadow(0 0 4px #ffd23f); }
.crowded .hud .name { display: none; }
.crowded { --pw: clamp(46px, 10.5vh, 118px); }

/* ---- a scene for each world ---- */
.arena.bg-leaf { background: radial-gradient(120% 60% at 20% 62%, #7fd88a 0 40%, transparent 41%), radial-gradient(130% 55% at 85% 64%, #5fc277 0 40%, transparent 41%), linear-gradient(#bfe9ff 0, #e9f8d8 56%, #4aa95e 57%, #2f8a4a 100%); }
.arena.bg-water { background: radial-gradient(60% 22% at 30% 56%, #ffffff55 0 60%, transparent 62%), repeating-linear-gradient(0deg, #ffffff14 0 3px, transparent 3px 22px), linear-gradient(#bfe6ff 0, #7fc4ff 52%, #2f7fe0 53%, #1b4fb0 100%); }
.arena.bg-fire { background: radial-gradient(50% 30% at 70% 52%, #ffb04a99 0, transparent 70%), radial-gradient(40% 25% at 20% 55%, #ff5a1a66 0, transparent 70%), linear-gradient(#3b1230 0, #a02a2a 50%, #7a1d12 51%, #2e0c0a 100%); }
.arena.bg-earth { background: linear-gradient(#ffe2b0 0, #f2b46a 38%, #c98a4a 39%, #a56a35 55%, #7d4e26 56%, #4f3018 100%); }
.arena.bg-lightning { background: radial-gradient(40% 30% at 25% 30%, #ffffff33 0, transparent 70%), radial-gradient(45% 30% at 78% 22%, #ffffff22 0, transparent 70%), linear-gradient(#26194f 0, #5b3fa0 52%, #3a2a78 53%, #1d1445 100%); }
.arena::before { background: linear-gradient(#fff1, #0003) !important; }


/* ---- icons and eggs ---- */
.ic { height: 1.15em; width: auto; vertical-align: -0.22em; }
.egg-img { width: 100px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 6px #0003); } .egg-img.inline { display: inline-block; width: 1.5em; vertical-align: -0.35em; margin: 0; }
.eggwrap { position: relative; width: 110px; margin: 6px auto; } .eggwrap.big { width: 170px; } .eggwrap.big .egg-img { width: 160px; }
.eggwrap.shake { animation: shake .45s infinite; }
.eggel { position: absolute; right: -6px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 3px solid var(--line); font-size: 1.1rem; box-shadow: 0 2px 4px #0003; }

/* ---- the island map and the sky map ---- */
.mapscreen { max-width: 1000px; }
.mapframe { position: relative; display: flex; justify-content: center; }
.islandmap, .skymap { position: relative; width: min(100%, 76vh); aspect-ratio: 1; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; background-size: cover; background-position: center; }
.skymap { margin: 0 auto; }
.skymap.no-art { background: radial-gradient(ellipse at 20% 20%, #ffffff66 0, transparent 40%), radial-gradient(ellipse at 80% 78%, #ffffff44 0, transparent 35%), linear-gradient(#8fd3ff 0, #3a8fe0 100%); }
.islandmap.no-art.bg-leaf { background: linear-gradient(160deg, #a8e6a0, #4aa95e); } .islandmap.no-art.bg-water { background: linear-gradient(160deg, #a8e0ff, #3a86e0); } .islandmap.no-art.bg-fire { background: linear-gradient(160deg, #ffb27a, #a02a2a); } .islandmap.no-art.bg-earth { background: linear-gradient(160deg, #f0c98a, #9a6a38); } .islandmap.no-art.bg-lightning { background: linear-gradient(160deg, #cdb6ff, #4b3495); }
.scene { position: absolute; inset: 0; opacity: .5; background: radial-gradient(circle at 30% 70%, #fff6 0, transparent 22%), radial-gradient(circle at 75% 30%, #fff5 0, transparent 20%), radial-gradient(circle at 60% 78%, #0002 0, transparent 24%); }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } .trail path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.trail-base { stroke: #fff; stroke-width: 7px; stroke-dasharray: 2 14; opacity: .85; } .trail-done { stroke: #ffd23f; stroke-width: 7px; stroke-dasharray: 2 14; }
.islandmap .node { position: absolute; width: clamp(40px, 11%, 76px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 4px solid #fff; } .islandmap .node:hover { transform: translate(-50%, -50%) scale(1.08); }
.islandmap .node.current { animation: pulse 1.2s infinite; } .islandmap .node.boss { width: clamp(48px, 13%, 90px); }
@keyframes pulse { 0%, 100% { box-shadow: 0 5px 0 #0003, 0 0 0 0 #ffd23f; } 50% { box-shadow: 0 5px 0 #0003, 0 0 0 10px #ffd23f55; } }
.node .ic { height: 1.1em; }
.marker { position: absolute; width: clamp(58px, 15%, 110px); transform: translate(-50%, -88%); transition: left .22s ease-in-out, top .22s ease-in-out; z-index: 5; pointer-events: none; filter: drop-shadow(0 6px 4px #0004); } .marker .markerpet { width: 100%; height: auto; } .marker .ph { width: 100%; }
.mapframe .arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; background: var(--brand); color: #fff; font-weight: 900; cursor: pointer; box-shadow: var(--shadow); } .mapframe .arrow.left { left: 0; } .mapframe .arrow.right { right: 0; }
.island { position: absolute; transform: translate(-50%, -50%); background: none; border: 0; cursor: pointer; font: inherit; color: #fff; padding: 0; display: flex; flex-direction: column; align-items: center; }
.island .blob { width: clamp(54px, 12vw, 96px); aspect-ratio: 1; border-radius: 45% 55% 50% 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; border: 4px solid #fff; box-shadow: 0 6px 0 #0003; background: var(--c, #6bc17a); }
.island.el-leaf { --c: #5fc277; } .island.el-water { --c: #4aa3ff; } .island.el-fire { --c: #ff7a1a; } .island.el-earth { --c: #c9954f; } .island.el-lightning { --c: #b58cff; }
.island.hotspot { width: clamp(60px, 14%, 120px); aspect-ratio: 1; border-radius: 50%; } .island.hotspot:hover { background: #ffffff30; }
.island .label { margin-top: 4px; background: #1d2540cc; border-radius: 12px; padding: 2px 10px; font-weight: 800; font-size: clamp(.65rem, 1.8vw, .9rem); text-shadow: none; white-space: nowrap; } .island .label small { display: block; font-weight: 600; opacity: .85; }
.island.locked { filter: grayscale(.75) brightness(.8); cursor: not-allowed; } .island.current .blob { animation: bob 1.4s infinite; }
.boat { position: absolute; transform: translate(-50%, -50%); font-size: clamp(1.6rem, 5vw, 2.6rem); transition: left .9s ease-in-out, top .9s ease-in-out; z-index: 6; animation: bob 1.8s ease-in-out infinite; filter: drop-shadow(0 4px 3px #0004); pointer-events: none; }

/* a picture for the battle backdrop */
.arena.has-art { background-size: cover; background-position: center bottom; } .arena.has-art::before { display: none; }

.island.soon { cursor: default; opacity: .9; } .island.soon .label { background: #3b1d6acc; }
.soonbanner { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); background: #1d2540dd; color: #fff; font-weight: 800; border-radius: 99px; padding: .3em 1em; font-size: clamp(.7rem, 2vw, 1rem); white-space: nowrap; border: 2px solid #ffd23f; }
.island.hotspot .label { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 0; }
.skymap.has-art .island.hotspot { width: 24%; }
.island.hotspot { justify-content: center; }
.island.hotspot.current { box-shadow: 0 0 0 4px #ffd23f99, 0 0 24px 6px #ffd23f66; border-radius: 50%; }
.island.hotspot.locked { filter: none; } .island.hotspot.locked::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1d254066; }

/* home: the hatchery picture is the backdrop, the team stands in front of it */
.showcase { min-height: min(420px, 58vw); align-items: flex-end; background-size: cover; background-position: center 65%; padding-bottom: 12px; }
.show small, .show span { background: #fffd; border-radius: 99px; padding: 0 .6em; margin-top: 2px; }
/* stage buttons a little smaller so the painted path shows between them */
.islandmap .node { width: clamp(34px, 8.6%, 62px); border-width: 3px; font-size: 1.1rem; } .islandmap .node.boss { width: clamp(42px, 10.5%, 74px); }
.islandmap .node .stars { font-size: .55rem; line-height: 1; }

.looks { display: flex; align-items: center; justify-content: center; gap: 6px; margin: .4em 0; } .looks small { color: var(--muted); font-weight: 700; }
.lookbtn { background: #fff; border: 3px solid var(--line); border-radius: 14px; padding: 2px 4px; cursor: pointer; } .lookbtn.on { border-color: var(--brand); background: #eceaff; } .lookbtn .art { width: 44px; height: auto; } .lookbtn .ph { width: 44px; }

.sndbtn { position: fixed; right: 10px; bottom: 10px; z-index: 40; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; background: #5b5cf0cc; color: #fff; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow); }
body { padding-bottom: 56px; }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 800; margin: .7em 0; } .switch input[type=checkbox] { width: 22px; height: 22px; } .switch input[type=range] { flex: 1; }
.guide .steps { padding-left: 1.2em; line-height: 1.5; } .guide .steps li { margin: .35em 0; }
.wheel { display: block; width: min(300px, 80%); margin: 0 auto; } .wheeltext { list-style: none; padding: 0; margin: .4em 0; font-size: .9rem; display: grid; gap: 2px; }

.goal { display: flex; align-items: center; gap: 8px; width: 100%; background: #fff7dd; border: 3px solid #ffe08a; border-radius: 16px; padding: .6em 1em; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer; margin: 10px 0 4px; text-align: left; } .goal b { margin-left: auto; color: var(--brand); font-size: 1.3rem; } .goal:hover { background: #fff0bd; }
.guide .wheel { width: min(220px, 70%); }

/* accounts: welcome, who's playing, sign-in */
.welcome { display: flex; flex-direction: column; gap: 12px; align-items: center; margin: 22px 0; } .welcome .btn { min-width: 17em; }
.title a, .modal a, .screen a { color: var(--brand); font-weight: 700; }
.kids { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 14px 0; } .kid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kidbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 9em; padding: 14px 16px; font: inherit; cursor: pointer; border: 0; text-align: center; } .kidbtn b { font-size: 1.15rem; } .kidbtn small, .kidbtn span { color: var(--muted); font-size: .8rem; }
.pininput { text-align: center; font-size: 1.6rem; letter-spacing: .3em; max-width: 8em; margin: .4em auto; display: block; } .pininput.wide { max-width: 14em; font-size: 1.3rem; letter-spacing: .15em; text-transform: uppercase; }
.bigcode { display: inline-block; font-size: 2rem; font-weight: 900; letter-spacing: .2em; background: #fff; border: 3px dashed var(--brand); border-radius: 14px; padding: .2em .6em; margin: .4em 0; }
.steps { text-align: left; padding-left: 1.2em; } .steps li { margin: .5em 0; }
.modal label { display: block; font-weight: 800; margin-top: .6em; text-align: left; }

/* pictures: stars, gems, avatars, backdrops */
.stars { letter-spacing: 0; white-space: nowrap; } .stars img { height: 1.05em; width: auto; vertical-align: -0.2em; margin: 0 .5px; }
.ic.gem { height: 1.15em; vertical-align: -.25em; } .ic.big { height: 2.4em; } .ic.mid { height: 1.5em; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; vertical-align: middle; } .avatar.blank { display: inline-flex; align-items: center; justify-content: center; background: #e8ecf8; border: 3px solid #c9d1ea; } .avatar.blank .ic { height: 55%; opacity: .7; }
.avatar.sm { width: 28px; height: 28px; border-width: 2px; } .avatar.lg { width: 84px; height: 84px; }
.avatars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; } .avbtn { border: 3px solid transparent; border-radius: 16px; background: #fff; padding: 4px; cursor: pointer; } .avbtn .avatar { width: 100%; height: auto; } .avbtn.on { border-color: var(--brand); background: #eef; } .avbtn:hover { background: #f2f4ff; }
body[data-bg] { background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat; }
body[data-bg="bg_tile"] { background-size: 380px; background-repeat: repeat; background-attachment: scroll; }
body[data-bg] .screen { background: rgba(255, 255, 255, .88); border-radius: 22px; margin-top: 12px; margin-bottom: 12px; box-shadow: 0 8px 30px #0003; }
body[data-bg] .screen.center { background: transparent; box-shadow: none; }
.kidbtn .avatar { width: 72px; height: 72px; }
.empty { grid-column: 1 / -1; text-align: center; } .grid .empty, .empty { width: 100%; }

/* element symbols, boost icons, the orb and the boat can be pictures (see UI_ART) */
.ic.el { height: 1.2em; vertical-align: -.25em; } .seg button .ic.el { height: 1.3em; } .elc .ic.el { height: 1.1em; }
.boost .boostic { height: 1.5em; display: block; margin: 0 auto 1px; }
.orb.pic.on { background: url(/art/ui/orb.webp) center / contain no-repeat; box-shadow: none; filter: drop-shadow(0 0 5px #ffb100); } .orb.pic { background: url(/art/ui/orb.webp) center / contain no-repeat; filter: grayscale(1) opacity(.35); box-shadow: none; } .orb.pic.on { filter: drop-shadow(0 0 5px #ffb100); }
.boat .boatpic { height: 2.2em; }
.node .gift .ic { height: 1.3em; vertical-align: 0; }

/* drifting clouds (mountClouds in ui.mjs) */
#clouds { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; display: none; }
body[data-clouds="1"] #clouds { display: block; }
#clouds img { position: absolute; left: 0; height: auto; will-change: transform; animation: cloud-drift linear infinite; user-select: none; }
@keyframes cloud-drift { from { translate: -340px 0; } to { translate: calc(100vw + 40px) 0; } }
.screen { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { #clouds img { animation: none; translate: 12vw 0; } #clouds img:nth-child(even) { translate: 62vw 0; } }

.logo.pic { background: none; margin: .2em auto .1em; line-height: 0; } .logo.pic img { width: min(460px, 82%); height: auto; filter: drop-shadow(0 6px 10px #0004); }

/* life: pets that breathe and fidget, wanderers, twinkles, birds, juice */
.show { animation: breathe var(--breath, 1.9s) ease-in-out infinite; animation-delay: var(--d, 0s); transform-origin: 50% 100%; }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-4px) scale(1.015, .985); } }
.spark2 { position: fixed; z-index: 90; pointer-events: none; color: #ffc233; font-style: normal; font-size: 18px; animation: spark2 1s ease-out forwards; text-shadow: 0 0 6px #fff; }
@keyframes spark2 { from { transform: translate(0, 0) scale(.4); opacity: 1; } to { transform: translate(var(--dx, 0), -46px) scale(1.2); opacity: 0; } }
.wanderbox, .twinklebox { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.wander { position: absolute; width: var(--s, 8%); transform: translate(-50%, -100%); }
.wander .art { width: 100%; height: auto; max-width: none; filter: drop-shadow(0 3px 2px #0004); } .wander.walking .art { animation: wanderhop .42s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes wanderhop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9%; } }
.twinklebox i { position: absolute; font-style: normal; opacity: 0; text-shadow: 0 0 6px #fff; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .95; transform: scale(1.1); } }
#clouds .bird { position: absolute; left: 0; animation: cloud-drift linear infinite; opacity: .55; } #clouds .bird svg { animation: flap .5s ease-in-out infinite alternate; transform-origin: 50% 80%; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
.unit.cheer .bob { animation: cheerhop .55s ease-in-out infinite; }
@keyframes cheerhop { 0%, 100% { transform: translateY(0) scale(1.04, .96); } 50% { transform: translateY(-14%) scale(.96, 1.05); } }
.bigstars .stars img { animation: starpop .55s cubic-bezier(.3, 1.7, .5, 1) both; } .bigstars .stars img:nth-child(1) { animation-delay: .25s; } .bigstars .stars img:nth-child(2) { animation-delay: .6s; } .bigstars .stars img:nth-child(3) { animation-delay: .95s; }
@keyframes starpop { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.xp .up { display: inline-flex; align-items: center; gap: 4px; animation: lvpulse 1s ease-in-out infinite; } .xp .up .ic { height: 1.2em; }
@keyframes lvpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.bar i { animation: barin .9s ease-out both; } @keyframes barin { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .show, .wander .art, .twinklebox i, #clouds .bird, #clouds .bird svg, .unit.cheer .bob, .bigstars .stars img, .xp .up, .bar i { animation: none !important; } .twinklebox i { opacity: .6; } }

/* shiny pets and merging copies */
.art.shiny { filter: hue-rotate(150deg) saturate(1.2) brightness(1.06) drop-shadow(0 0 6px #fff9); }
.pcard { position: relative; } .shinytag { position: absolute; top: 6px; right: 8px; font-style: normal; animation: twinkle 2.4s ease-in-out infinite; }
.pips { display: inline-flex; gap: 3px; vertical-align: middle; } .pips i { width: 12px; height: 15px; border-radius: 50% 50% 48% 48% / 60% 60% 40% 40%; background: #dde3f3; border: 2px solid #b9c3de; } .pips i.on { background: linear-gradient(#fff6d6, #ffd36b); border-color: #d9a21c; box-shadow: 0 0 6px #ffcc4466; }
.hatched .ring { animation: mergepop .8s cubic-bezier(.3, 1.5, .5, 1) both; } @keyframes mergepop { from { transform: scale(.3) rotate(-25deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .shinytag, .hatched .ring { animation: none !important; } }

/* roles and statuses */
.chip.role-tank { background: #e3e8f4; color: #2f4066; } .chip.role-fighter { background: #ffe1e1; color: #9c2d2d; } .chip.role-blaster { background: #ffe9c9; color: #94520a; } .chip.role-controller { background: #ece0ff; color: #5a2aa8; } .chip.role-support { background: #d9f4e3; color: #1a6b3a; }
.abil .up { display: block; margin-top: 4px; font-size: .85rem; color: var(--muted); opacity: .75; } .abil .up.got { color: var(--ink); opacity: 1; } .abil .up b { color: var(--brand); }
.hud .stt { min-height: 14px; font-size: 11px; line-height: 1; text-align: center; letter-spacing: 1px; margin-top: 1px; } .n-stat { color: #5a2aa8; font-size: .8em; }
.roletext { list-style: none; padding: 0; text-align: left; } .roletext li { margin: 6px 0; }

/* focus: the maths keeps the team awake */
.focusbar { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 6px 12px; background: #fff; border: 2px solid var(--line); border-radius: 14px; flex-wrap: wrap; } .focusbar b { color: #b25e00; white-space: nowrap; }
.focusbar .fbar { flex: 1 1 140px; min-width: 120px; height: 14px; background: #e6eaf7; border-radius: 99px; overflow: hidden; } .focusbar .fbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ffd23f, #ff9d00); transition: width .25s linear; }
.focusbar small { color: var(--muted); font-weight: 700; flex: 1 1 100%; } .focusbar.out { border-color: #5b5cf0; background: #f3f3ff; } .focusbar.out b { color: #5b5cf0; }
.arena.paused .unit .art { filter: saturate(.85) brightness(.93); } .arena.paused::after { content: "⏸ Answer to carry on"; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: #1d2540cc; color: #fff; font-weight: 800; font-size: .9rem; padding: .25em .9em; border-radius: 99px; pointer-events: none; }

.easenote { margin: 0 0 6px; font-size: .85rem; font-weight: 700; color: #3a8f5c; } .focuslist { margin: 4px 0 0; padding-left: 1.2em; font-size: .95rem; text-align: left; }
.units { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; } .topic { display: inline-flex; align-items: center; gap: .4em; background: #fff; border: 2px solid #dfe5f5; border-radius: 12px; padding: .35em .7em; font-weight: 700; font-size: .95rem; cursor: pointer; margin: 0; } .topic input { width: 1.15em; height: 1.15em; margin: 0; }
.modal .topic { display: inline-flex; margin-top: 0; }
.boost .bdesc { display: block; font-style: normal; font-size: .68rem; font-weight: 700; line-height: 1.15; opacity: .95; margin: 1px 2px 2px; } .boosthint { margin: 4px 2px 0; font-size: .8rem; color: #5a6385; text-align: center; }
@media (max-width: 560px) { .boost .bdesc { font-size: .6rem; } .boosthint { font-size: .72rem; } }
