@font-face { font-family: 'Fredoka'; src: url('../fonts/fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
:root { --ink: #4A2E3E; --pink: #FF7EB6; --green: #5FC77A; --purple: #A57CFF; --yellow: #FFD23F; --sky: #5CC0F5;
  --font: 'Fredoka', 'Baloo 2', 'Nunito', 'Comic Sans MS', system-ui, sans-serif;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #AEE2FF; font-family: var(--font); color: var(--ink);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
#app { position: fixed; inset: 0; overflow: hidden; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.layer > * { pointer-events: auto; }
[hidden] { display: none !important; }
button { font-family: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; touch-action: manipulation; }
button:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
svg { width: 100%; height: 100%; display: block; }
.ic { display: inline-block; width: 1.4em; height: 1.4em; vertical-align: middle; }
.ic.big { width: 2.2em; height: 2.2em; }

/* round buttons */
.rbtn { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 5px 0 rgba(0,0,0,.18), 0 8px 18px rgba(60,40,80,.18);
  transition: transform .12s; border: 4px solid rgba(255,255,255,.85); }
.rbtn > span { width: 30px; height: 30px; }
.rbtn:active, .bigbtn:active, .midbtn:active, .tool:active { transform: translateY(3px) scale(.96); }
.green { background: linear-gradient(#7EDB8E, #4CB86B); } .pink { background: linear-gradient(#FF9EC8, #FF6FA8); }
.purple { background: linear-gradient(#BFA2FF, #8E66F0); } .yellow { background: linear-gradient(#FFE27A, #FFC23A); }
.corner-r { position: absolute; top: calc(12px + var(--st)); right: calc(12px + var(--sr)); }
.corner-l { position: absolute; top: calc(12px + var(--st)); left: calc(12px + var(--sl)); }

/* HUD */
.hud-top { position: absolute; top: calc(10px + var(--st)); left: calc(10px + var(--sl)); right: calc(10px + var(--sr)); display: flex; align-items: center; gap: 10px; pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.hud-top .spacer { flex: 1; pointer-events: none; }
.portrait { position: relative; width: 66px; height: 66px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff, #FFE6F0); border: 4px solid #fff;
  box-shadow: 0 5px 0 rgba(0,0,0,.15), 0 8px 18px rgba(60,40,80,.2); }
.portrait img { position: absolute; left: 50%; top: 52%; width: 86%; aspect-ratio: 400 / 452; object-fit: contain; transform: translate(-50%, -50%); }
.lvl { position: absolute; right: -8px; bottom: -6px; min-width: 30px; height: 30px; border-radius: 15px; background: linear-gradient(#FFE27A, #FFB82E); border: 3px solid #fff;
  font-weight: 700; font-size: 17px; display: grid; place-items: center; color: #7A4A08; padding: 0 4px; }
.xp { position: absolute; left: 6px; right: 6px; bottom: -14px; height: 9px; border-radius: 5px; background: rgba(255,255,255,.85); overflow: hidden; border: 2px solid #fff; }
.xp b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7BE0A8, #5CC0F5); transition: width .4s; }
.pill { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.9); border-radius: 30px; padding: 6px 14px 6px 8px; font-weight: 700; font-size: 22px;
  box-shadow: 0 4px 0 rgba(0,0,0,.1), 0 6px 14px rgba(60,40,80,.15); border: 3px solid #fff; }
.pill .ic { width: 30px; height: 30px; }
.pill.bump { animation: bump .3s; }
@keyframes bump { 50% { transform: scale(1.18); } }
.mini { position: absolute; top: calc(86px + var(--st)); left: 50%; transform: translateX(-50%); width: min(62vw, 420px); height: 26px; pointer-events: none; }
.mini .track { position: absolute; left: 0; right: 0; top: 10px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.7); box-shadow: 0 2px 6px rgba(60,40,80,.15); }
.mini .fill { position: absolute; left: 0; top: 10px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #9BE07A, #5FC77A); width: 0; }
.mini .dot { position: absolute; top: 2px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: #FF7EB6; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.mini .mark { position: absolute; top: -4px; width: 30px; height: 30px; margin-left: -15px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.hint { position: absolute; left: 50%; top: calc(124px + var(--st)); transform: translateX(-50%); background: rgba(255,255,255,.88); padding: 8px 18px; border-radius: 24px;
  font-weight: 600; font-size: 20px; white-space: nowrap; opacity: 0; transition: opacity .4s; pointer-events: none; display: flex; align-items: center; gap: 8px; }
.hint.show { opacity: 1; }
.hint .ic { width: 30px; height: 30px; }
.tools { position: absolute; right: calc(12px + var(--sr)); bottom: calc(60px + var(--sb)); display: flex; flex-direction: row; gap: 10px; }
.tool { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.8); border: 4px solid #fff; display: grid; place-items: center; box-shadow: 0 5px 0 rgba(0,0,0,.12); opacity: .75; transition: transform .15s, opacity .15s; }
.tool > span { width: 40px; height: 40px; }
.tool.on { background: linear-gradient(#FFF7B0, #FFD23F); opacity: 1; transform: scale(1.1); box-shadow: 0 0 0 5px rgba(255,210,63,.45), 0 5px 0 rgba(0,0,0,.12); }
.gobtn { position: absolute; left: 50%; bottom: calc(170px + var(--sb)); transform: translateX(-50%); display: flex; gap: 6px; align-items: center; padding: 12px 26px; border-radius: 40px;
  background: linear-gradient(#FFE27A, #FFB82E); border: 4px solid #fff; box-shadow: 0 6px 0 rgba(0,0,0,.18); animation: pulse 1.1s infinite; }
.gobtn span { width: 44px; height: 44px; }
.gobtn span:last-child svg path { fill: #7A4A08; stroke: #7A4A08; }
@keyframes pulse { 50% { transform: translateX(-50%) scale(1.08); } }
.friends { position: absolute; left: 50%; bottom: calc(10px + var(--sb)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 20px);
  background: rgba(255,255,255,.85); border: 3px solid #fff; border-radius: 26px; padding: 4px 12px 4px 8px; box-shadow: 0 5px 14px rgba(60,40,80,.18); }
.friends > .ic { width: 28px; height: 28px; flex: none; }
.friends b { font-size: 18px; flex: none; }
.fslots { display: flex; gap: 2px; overflow: hidden; }
.fslot { width: 34px; height: 34px; border-radius: 50%; flex: none; background: rgba(200,190,220,.35); border: 2px dashed rgba(150,130,180,.5); }
.fslot.on { background: #FFF0F6; border: 2px solid #FFB7D5; animation: pop .4s; }
.fslot canvas { width: 100%; height: 100%; }
@keyframes pop { 0% { transform: scale(.2); } 70% { transform: scale(1.25); } }

/* boss HUD */
.hpbox { position: absolute; top: calc(12px + var(--st)); left: 50%; transform: translateX(-50%); width: min(92vw - 150px, 560px); display: flex; align-items: center; gap: 6px; pointer-events: none; }
.hpwrap { flex: 1; position: relative; }
.hpbar { position: relative; height: 26px; border-radius: 14px; background: rgba(255,255,255,.75); border: 4px solid #fff; overflow: hidden; box-shadow: 0 4px 12px rgba(60,40,80,.25); }
.hpbar b { position: absolute; inset: 0; width: 100%; background: linear-gradient(90deg, #FF5C8A, #FF9EC8); transition: width .15s; border-radius: 10px; }
.hpbar i { position: absolute; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,.9); }
.hpbar .m75 { left: 75%; } .hpbar .m50 { left: 50%; } .hpbar .m25 { left: 25%; }
#hpnum { display: block; text-align: center; font-size: clamp(26px, 6vw, 40px); font-weight: 700; color: #fff; -webkit-text-stroke: 2px #C2356B; paint-order: stroke fill; letter-spacing: 1px; margin-top: 2px;
  text-shadow: 0 3px 0 #C2356B, 0 6px 10px rgba(0,0,0,.2); }
#hpnum.hit { animation: bump .15s; }
.bossname { position: absolute; top: calc(98px + var(--st)); left: 50%; transform: translateX(-50%); font-size: 18px; font-weight: 600; background: rgba(255,255,255,.8); padding: 3px 14px; border-radius: 16px; white-space: nowrap; pointer-events: none; }
.combo { position: absolute; right: calc(16px + var(--sr)); top: calc(140px + var(--st)); font-size: clamp(26px, 6vw, 42px); font-weight: 700; color: #FFD23F; -webkit-text-stroke: 2px #B0631A; paint-order: stroke fill;
  text-shadow: 0 4px 0 #B0631A; transform: rotate(8deg); pointer-events: none; opacity: 0; transition: opacity .2s; }
.combo.show { opacity: 1; animation: bump .25s; }
.timer { position: absolute; left: calc(16px + var(--sl)); top: calc(140px + var(--st)); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; pointer-events: none;
  background: conic-gradient(#FFD23F var(--p, 0%), rgba(255,255,255,.6) 0); border: 4px solid #fff; box-shadow: 0 4px 12px rgba(60,40,80,.25); }
.timer b { width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: #C2356B; }
.wandbtn { position: absolute; right: calc(14px + var(--sr)); bottom: calc(18px + var(--sb)); width: 64px; height: 64px; }

/* title */
.screen { display: grid; place-items: center; }
.title-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; max-width: 94vw; }
.ribbon { background: linear-gradient(#FF9EC8, #FF6FA8); color: #fff; font-weight: 700; font-size: 20px; padding: 4px 26px; border-radius: 20px; border: 3px solid #fff; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.logo { margin: 0; font-size: clamp(44px, 11vw, 86px); line-height: .95; text-align: center; color: #fff; font-weight: 700;
  -webkit-text-stroke: 3px #3E8E4F; paint-order: stroke fill; text-shadow: 0 5px 0 #3E8E4F, 0 10px 24px rgba(30,80,40,.35); letter-spacing: 1px; }
.title-cat { position: relative; width: clamp(150px, 34vh, 230px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.95), rgba(255,240,250,.6) 60%, rgba(255,255,255,0) 72%); }
.title-cat img { width: 92%; aspect-ratio: 400 / 452; object-fit: contain; margin-top: 2%; animation: bob 2.2s ease-in-out infinite; }
.tname { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); background: #fff; border-radius: 16px; padding: 2px 14px; font-weight: 600; font-size: 18px; white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(2deg); } }
.row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.bigbtn { display: flex; align-items: center; gap: 10px; font-size: 34px; font-weight: 700; color: #fff; padding: 14px 44px 14px 30px; border-radius: 44px;
  background: linear-gradient(#FFB36B, #FF7A3D); border: 5px solid #fff; box-shadow: 0 7px 0 #C9562A, 0 12px 24px rgba(0,0,0,.2); text-shadow: 0 2px 0 rgba(0,0,0,.15); animation: pulse2 1.6s infinite; }
.bigbtn > span:first-child { width: 44px; height: 44px; }
@keyframes pulse2 { 50% { transform: scale(1.05); } }
.midbtn { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; color: #fff; padding: 10px 22px 10px 14px; border-radius: 34px; border: 4px solid #fff; box-shadow: 0 5px 0 rgba(0,0,0,.18); }
.midbtn > span:first-child { width: 32px; height: 32px; }

/* world map */
#worldmap { display: block; background: linear-gradient(#BFE7FF, #FFF3DC 60%, #FFE3EE); overflow: hidden; }
.map-head { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--st)) calc(12px + var(--sr)) 10px calc(12px + var(--sl)); z-index: 2; }
.map-head h2 { flex: 1; margin: 0; font-size: 32px; color: #fff; -webkit-text-stroke: 2px #6A5ACD; paint-order: stroke fill; text-shadow: 0 3px 0 #6A5ACD; }
.map-scroll { position: absolute; inset: 0; overflow-y: auto; padding: calc(84px + var(--st)) 12px calc(20px + var(--sb)); -webkit-overflow-scrolling: touch; }
.world-list { display: flex; flex-direction: column; gap: 14px; align-items: center; max-width: 980px; margin: 0 auto; position: relative; }
.world { position: relative; display: flex; align-items: center; gap: 12px; width: min(96%, 520px); background: rgba(255,255,255,.85); border: 4px solid #fff; border-radius: 30px; padding: 10px 14px 10px 10px;
  box-shadow: 0 6px 0 rgba(0,0,0,.08), 0 10px 22px rgba(60,40,80,.14); text-align: left; }
.world:nth-child(even) { margin-left: 12%; } .world:nth-child(odd) { margin-right: 12%; }
.world .medal { width: 92px; height: 92px; flex: none; filter: drop-shadow(0 4px 4px rgba(0,0,0,.15)); }
.world.locked .medal { filter: grayscale(.55) opacity(.8); }
.world .info { flex: 1; min-width: 0; }
.world .wn { font-size: 22px; font-weight: 700; line-height: 1.1; }
.world .sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 16px; font-weight: 600; color: #7A5A6C; flex-wrap: wrap; }
.world .sub .ic { width: 34px; height: 34px; }
.world .state { width: 60px; height: 60px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.world .state > span { width: 34px; height: 34px; }
.world.open .state { background: linear-gradient(#FFB36B, #FF7A3D); border: 4px solid #fff; box-shadow: 0 4px 0 #C9562A; animation: pulse2 1.6s infinite; }
.world.locked .state { background: #EEE8F5; }
.soon { font-size: 14px; background: #EEE8F5; border-radius: 10px; padding: 1px 8px; color: #8A7A9A; }
.wand-box { max-width: 560px; margin: 22px auto 0; background: rgba(255,255,255,.85); border: 4px solid #fff; border-radius: 26px; padding: 10px 14px 14px; text-align: center; box-shadow: 0 8px 20px rgba(60,40,80,.12); }
.wand-box h3 { margin: 2px 0 8px; font-size: 22px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.wand-slots { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.wslot { width: 62px; height: 62px; border-radius: 18px; background: #F3EEF9; display: grid; place-items: center; border: 3px dashed #CFC2E2; position: relative; }
.wslot > span { width: 42px; height: 42px; }
.wslot.on { background: linear-gradient(#F4FFE8, #D9F7C4); border: 3px solid #9BE07A; }
.wslot .lk { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; }
.goal { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 17px; flex-wrap: wrap; }
.goal b { color: #C98F12; }

/* banner + modal */
.banner { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.3); opacity: 0; pointer-events: none; text-align: center; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .25s; width: 96vw; }
.banner.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.banner .bt { font-size: clamp(40px, 10vw, 84px); font-weight: 700; color: #fff; -webkit-text-stroke: 3px var(--bc, #E0457E); paint-order: stroke fill; text-shadow: 0 5px 0 var(--bc, #E0457E), 0 10px 24px rgba(0,0,0,.25); line-height: 1; }
.banner .bs { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: clamp(20px, 5vw, 30px); font-weight: 700; background: rgba(255,255,255,.92); padding: 4px 18px; border-radius: 22px; }
.banner .bi { width: clamp(70px, 16vw, 110px); height: clamp(70px, 16vw, 110px); margin: 0 auto 4px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.2)); }
.banner .bs .ic { width: 34px; height: 34px; }
.modal { background: rgba(60,40,80,.35); display: grid; place-items: center; pointer-events: auto; z-index: 5; }
.card { position: relative; width: min(94vw, 560px); max-height: calc(100% - 24px); overflow-y: auto; background: linear-gradient(#FFFDF7, #FFF0F6); border: 5px solid #fff; border-radius: 30px; padding: 18px; text-align: center;
  box-shadow: 0 16px 40px rgba(60,40,80,.35); animation: cardIn .35s cubic-bezier(.3,1.5,.5,1); }
@keyframes cardIn { from { transform: scale(.5); opacity: 0; } }
.card h2 { margin: 4px 0 10px; font-size: 30px; }
.card .x { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; }
.card .okbtn { margin-top: 14px; font-size: 28px; font-weight: 700; color: #fff; padding: 10px 46px; border-radius: 34px; background: linear-gradient(#7EDB8E, #4CB86B); border: 4px solid #fff; box-shadow: 0 6px 0 #2E8A48; }
.eq { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 8px 0; font-weight: 700; font-size: 28px; }
.eq .ic { width: 52px; height: 52px; } .eq canvas { width: 52px; height: 52px; }
.nope { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; background: #FFF; border-radius: 20px; padding: 4px 14px; font-weight: 600; font-size: 18px; }
.nope .ic { width: 34px; height: 34px; position: relative; }
.nope .slash { position: relative; }
.nope .slash::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 4px; background: #E0405A; transform: rotate(-35deg); border-radius: 2px; }
.wandart { width: 160px; height: 200px; margin: 0 auto; display: block; }
.wandimg { width: auto; height: 190px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(190,255,150,.9)); animation: bob 2.2s ease-in-out infinite; }
.evo { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; }
.evo .ec { width: 120px; text-align: center; font-weight: 600; font-size: 16px; }
.evo .ec .pic { width: 104px; height: 104px; margin: 0 auto; border-radius: 50%; background: #fff; display: grid; place-items: center; position: relative; overflow: hidden; border: 4px solid #fff; box-shadow: 0 4px 12px rgba(60,40,80,.15); }
.evo .ec .pic img { width: 88%; aspect-ratio: 400 / 452; object-fit: contain; }
.evo .ec.locked .pic img { filter: brightness(0) opacity(.35); }
.evo .ec .pic .badge { position: absolute; width: 40px; height: 40px; right: 6px; bottom: 6px; }
.evo .arrow { width: 44px; height: 44px; background: #FFB36B; border-radius: 50%; padding: 6px; }
.stats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.stat { display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 18px; padding: 4px 12px; font-weight: 700; font-size: 20px; }
.stat .ic { width: 32px; height: 32px; }
.stat.dim { opacity: .45; }
.small { font-size: 15px; font-weight: 600; color: #7A5A6C; }
.lvlbar { height: 14px; border-radius: 8px; background: #EEE8F5; overflow: hidden; margin: 4px auto; width: 80%; }
.lvlbar b { display: block; height: 100%; background: linear-gradient(90deg, #FFD23F, #FF9E5E); }
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.tabs button { font-size: 20px; font-weight: 700; padding: 6px 18px; border-radius: 20px; background: #EEE8F5; }
.tabs button.on { background: linear-gradient(#BFA2FF, #8E66F0); color: #fff; }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.catcard { position: relative; background: #fff; border-radius: 20px; padding: 6px 6px 8px; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(60,40,80,.12); }
.catcard.sel { border-color: #FFB82E; box-shadow: 0 0 0 4px rgba(255,184,46,.35); }
.catcard img { width: 90%; aspect-ratio: 400 / 452; object-fit: contain; display: block; margin: 0 auto; }
.catcard .cn { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catcard .price { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 16px; }
.catcard .price .ic { width: 22px; height: 22px; }
.catcard .price.no { opacity: .45; }
.salebtn { position: absolute; top: 4px; right: 4px; font-size: 12px; font-weight: 700; background: #FFE27A; border-radius: 10px; padding: 2px 6px; border: 2px solid #fff; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.sign { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) rotate(-8deg); background: #FFF6D6; border: 3px solid #B5733E; border-radius: 8px; padding: 2px 8px; font-weight: 700; font-size: 15px; color: #8A4A1E; white-space: nowrap; box-shadow: 0 3px 0 #8A5E3F; }
.sellrow { display: flex; gap: 4px; justify-content: center; margin-top: 4px; }
.sellrow button { font-size: 14px; font-weight: 700; border-radius: 12px; padding: 3px 8px; background: #7EDB8E; color: #fff; }
.sellrow button.no { background: #D9CDE6; }
.fade { position: absolute; inset: 0; background: #FFF8EE; opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 9; }
.fade.on { opacity: 1; }

@media (max-height: 520px) and (orientation: landscape) {
  .portrait { width: 54px; height: 54px; } .rbtn { width: 50px; height: 50px; } .rbtn > span { width: 26px; height: 26px; }
  .mini { top: calc(14px + var(--st)); width: min(36vw, 320px); }
  .tool { width: 58px; height: 58px; } .tool > span { width: 36px; height: 36px; }
  .tools { bottom: calc(60px + var(--sb)); flex-direction: row; }
  .hint { top: calc(48px + var(--st)); font-size: 17px; }
  .gobtn { bottom: calc(80px + var(--sb)); }
  .fslot { width: 28px; height: 28px; }
  .title-cat { width: 34vh; } .logo { font-size: 13vh; } .bigbtn { font-size: 26px; padding: 8px 30px 8px 22px; }
  .title-box { gap: 6px; }
  .bossname { top: calc(80px + var(--st)); } .combo, .timer { top: calc(100px + var(--st)); }
  .world .medal { width: 70px; height: 70px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
.tool[hidden] { display: none; }
.eq .gg { font-size: 22px; color: #FF8A3D; font-weight: 800; }
#coinPill { touch-action: manipulation; cursor: default; }
