:root {
  --bone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 32'%3E%3Ccircle cx='9' cy='9' r='8'/%3E%3Ccircle cx='9' cy='23' r='8'/%3E%3Ccircle cx='43' cy='9' r='8'/%3E%3Ccircle cx='43' cy='23' r='8'/%3E%3Crect x='8' y='9' width='36' height='14' rx='6'/%3E%3C/svg%3E");
  --ink: #07131d;
  --cream: #f7e6c2;
  --cyan: #2fd6ee;
  --gold: #ffc62e;
  --pink: #ff5c7a;
  --panel: rgba(255, 255, 255, 0.94);
  --shadow: 0 10px 30px rgba(7, 19, 29, 0.25);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0a1530; color: var(--ink); font-family: 'Fredoka', 'Jua', system-ui, sans-serif; user-select: none; -webkit-user-select: none; touch-action: none; }
html:lang(ko) body, html:lang(ja) body { font-family: 'Fredoka', 'Jua', system-ui, sans-serif; }
#app { position: fixed; top: 0; bottom: 0; left: 50%; width: min(100vw, 75vh); transform: translateX(-50%); overflow: hidden; }
#c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; background: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* 아이콘 */
i { display: inline-block; flex: none; }
.coin-ic { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1b0, #ffc62e 55%, #e89a00); box-shadow: inset 0 0 0 2px #b87800; }
.card-ic { width: 18px; height: 23px; border-radius: 5px; background: linear-gradient(135deg, #ffe58a, #ffb800); box-shadow: inset 0 0 0 3px #fff7d6, 0 2px 0 rgba(0,0,0,.15); }
.i-play { width: 0; height: 0; border-left: 22px solid currentColor; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 4px; }
.i-pause { width: 16px; height: 18px; border-left: 5px solid currentColor; border-right: 5px solid currentColor; }
.i-sound { width: 24px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn-sound.off .i-sound { opacity: .35; }
.i-out { width: 12px; height: 12px; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: rotate(0deg); margin-left: 4px; }
.i-again { width: 22px; height: 22px; border: 4px solid currentColor; border-top-color: transparent; border-radius: 50%; }
.i-share { width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16a3 3 0 0 0-2.4 1.2l-6.7-3.4a3 3 0 0 0 0-1.6l6.7-3.4A3 3 0 1 0 15 7l-6.7 3.4a3 3 0 1 0 0 3.2L15 17a3 3 0 1 0 3-1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16a3 3 0 0 0-2.4 1.2l-6.7-3.4a3 3 0 0 0 0-1.6l6.7-3.4A3 3 0 1 0 15 7l-6.7 3.4a3 3 0 1 0 0 3.2L15 17a3 3 0 1 0 3-1z'/%3E%3C/svg%3E") center/contain no-repeat; }
.i-home { width: 22px; height: 20px; background: currentColor; clip-path: polygon(50% 0, 100% 45%, 86% 45%, 86% 100%, 14% 100%, 14% 45%, 0 45%); }
.i-x { width: 18px; height: 18px; background: linear-gradient(45deg, transparent 42%, currentColor 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, currentColor 42% 58%, transparent 58%); }
.i-crown { width: 20px; height: 16px; background: var(--gold); clip-path: polygon(0 100%, 0 20%, 25% 55%, 50% 0, 75% 55%, 100% 20%, 100% 100%); }

/* 버튼 */
.big-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 220px; height: 70px; padding: 0 34px; border-radius: 999px; font-size: 30px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #ffb13b, #ff7a1a); box-shadow: 0 7px 0 #c4520a, 0 14px 28px rgba(196, 82, 10, .35); text-shadow: 0 2px 0 rgba(0,0,0,.18); transition: transform .08s; animation: pulse 1.6s ease-in-out infinite; }
.big-btn:active { transform: translateY(5px); box-shadow: 0 2px 0 #c4520a; }
.mid-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; min-width: 52px; padding: 0 18px; border-radius: 18px; font-size: 19px; font-weight: 700; background: #fff; box-shadow: 0 5px 0 rgba(7,19,29,.18), 0 8px 18px rgba(7,19,29,.12); }
.mid-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(7,19,29,.18); }
.ic-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.9); box-shadow: 0 4px 0 rgba(7,19,29,.15); }
@keyframes pulse { 50% { transform: scale(1.04); } }

/* 화면 */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; z-index: 10; }
.screen.dim { background: rgba(7, 19, 29, .45); justify-content: center; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.row { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.row.col { flex-direction: column; gap: 18px; }

.panel { width: min(100%, 400px); background: var(--panel); border-radius: 28px; padding: 22px 20px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: var(--shadow); animation: pop .45s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.lbl { font-size: 16px; font-weight: 600; opacity: .55; letter-spacing: 2px; }
.badge { padding: 4px 14px; border-radius: 999px; background: linear-gradient(90deg, #ff5c7a, #ffb13b); color: #fff; font-weight: 700; letter-spacing: 2px; animation: pulse 1s infinite; }
.mini { display: flex; gap: 22px; font-size: 20px; }
.mini span { display: flex; align-items: center; gap: 6px; }
.sheet { width: min(100% - 32px, 520px); max-height: min(86vh, 720px); background: var(--panel); border-radius: 26px; padding: 16px; display: flex; flex-direction: column; box-shadow: var(--shadow); animation: pop .35s cubic-bezier(.2,1.5,.4,1) both; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 12px; font-size: 22px; }
.sheet-h b { display: flex; align-items: center; gap: 8px; }
.i-up { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 10px solid #2bc46a; }
.screen { position: absolute; }
/* ===== KEKE SLUG ===== */
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
#hud > * { position: absolute; }
#btnPause { pointer-events: auto; left: 10px; top: calc(10px + var(--safe-t)); width: 46px; height: 46px; z-index: 20; touch-action: manipulation; }
#hearts { left: 64px; top: calc(12px + var(--safe-t)); display: flex; gap: 2px; font-size: 25px; line-height: 1; filter: drop-shadow(0 2px 0 rgba(7,19,29,.55)); }
#hearts i { font-style: normal; color: #ff3b5c; -webkit-text-stroke: 1.5px #5b0a1b; paint-order: stroke fill; }
#hearts i.off { color: #43495a; -webkit-text-stroke-color: #1b1f2b; opacity: .8; }
#tankbar { left: 64px; top: calc(42px + var(--safe-t)); width: 94px; height: 11px; border-radius: 6px; background: rgba(7,19,29,.6); padding: 2px; }
#tankbar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #57e06a, #2fd6ee); width: 100%; }
#score { left: 50%; top: calc(10px + var(--safe-t)); transform: translateX(-4%); padding: 1px 14px; border-radius: 999px; background: rgba(7,19,29,.62); font-size: 25px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; margin-left: 10px; }
.pill { display: flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; background: rgba(7,19,29,.62); color: #fff; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pill b { font-weight: 700; }
#coinpill { right: 10px; top: calc(11px + var(--safe-t)); }
#coinpill .coin-ic { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1b0, #ffc62e 55%, #e89a00); box-shadow: inset 0 0 0 2px #b87800; -webkit-mask: none; mask: none; }
#prog { left: 12px; right: 12px; top: calc(62px + var(--safe-t)); height: 10px; border-radius: 6px; background: rgba(7,19,29,.5); }
#prog #progFill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, #57e06a, #b4f25a); }
#prog u { position: absolute; top: -7px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #fff url(face.png) center/cover; box-shadow: 0 0 0 3px #1fa8f0, 0 3px 6px rgba(7,19,29,.4); text-decoration: none; }
#prog em { position: absolute; right: -2px; top: -9px; width: 16px; height: 24px; background: linear-gradient(90deg, #07131d 0 3px, transparent 3px), linear-gradient(135deg, #ff3b5c 50%, #ffd23f 50%); border-radius: 2px; }
#lives { left: 10px; top: calc(82px + var(--safe-t)); padding: 2px 10px 2px 3px; }
#lives img { width: 24px; height: 24px; border-radius: 50%; background: #fff; object-fit: cover; box-shadow: 0 0 0 2px #1fa8f0; }
#friends { left: 82px; top: calc(82px + var(--safe-t)); padding: 2px 10px; }
#friends .paw { font-size: 17px; }
#weapon { left: 10px; top: calc(114px + var(--safe-t)); padding: 2px 12px 2px 3px; }
#wBadge { display: grid; place-items: center; min-width: 30px; height: 26px; padding: 0 4px; border-radius: 13px; background: #ffd23f; color: #1b1b2f; font-size: 14px; font-weight: 700; }
#combo { left: 50%; top: calc(150px + var(--safe-t)); transform: translateX(-50%); font-size: 30px; font-weight: 700; color: #ffe14d; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; opacity: 0; transition: opacity .2s; text-align: center; }
#combo.on { opacity: 1; } #combo.bump b { display: inline-block; animation: bump .25s; }
#combo i { display: block; height: 6px; margin-top: 2px; border-radius: 3px; background: #ffe14d; box-shadow: 0 0 0 2px var(--ink); transform-origin: left; }
@keyframes bump { 50% { transform: scale(1.5); } }
#bossbar { left: 172px; right: 12px; top: calc(82px + var(--safe-t)); width: auto; display: flex; flex-direction: column; align-items: center; gap: 3px; z-index: 3; }
#bossbar b { font-size: 14px; letter-spacing: 1px; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
#bossbar .trk { width: 100%; height: 14px; border-radius: 9px; background: rgba(7,19,29,.65); padding: 3px; box-shadow: 0 0 0 2px #fff3; }
#bossbar .trk i { display: block; height: 100%; width: 100%; border-radius: 6px; background: linear-gradient(90deg, #ff3b5c, #ffb13b); transition: width .1s; }
#banner { left: 0; right: 0; top: 30%; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; font-weight: 700; color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 rgba(7,19,29,.35); text-align: center; z-index: 8; }
#banner b { font-size: 64px; line-height: 1; letter-spacing: 2px; } #banner span { font-size: 30px; }
#banner.show { animation: banner 1.6s ease-out forwards; }
#banner.warn { color: #ff5c7a; }
@keyframes banner { 0% { opacity: 0; transform: scale(.5); } 14% { opacity: 1; transform: scale(1.12); } 22% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1.08); } }
#goarrow { right: 12px; top: 46%; font-size: 44px; font-weight: 700; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; animation: goA .6s ease-in-out infinite alternate; }
@keyframes goA { from { transform: translateX(-6px); } to { transform: translateX(8px); } }
#vig { position: absolute; inset: 0; pointer-events: none; z-index: 4; opacity: 0; box-shadow: inset 0 0 130px 40px rgba(255, 20, 50, .8); }
#pops { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.stk { position: absolute; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(var(--s, 1)); font-size: 32px; font-weight: 700; white-space: nowrap; line-height: 1; letter-spacing: 1px; color: var(--c, #fff6d2); -webkit-text-stroke: 6px #1b1b2f; paint-order: stroke fill; text-shadow: 0 5px 0 rgba(27,27,47,.45); animation: stk .9s cubic-bezier(.2,.9,.3,1) forwards; opacity: 0; font-family: 'Jua', 'Fredoka', system-ui, sans-serif; }
.stk.big { font-size: 46px; color: #ffe14d; -webkit-text-stroke-width: 8px; }
.stk.num { font-size: 22px; color: #fff; -webkit-text-stroke-width: 4px; animation-duration: .7s; }
@keyframes stk { 0% { transform: translate(-50%, -30%) rotate(var(--r)) scale(.2); opacity: 0; } 14% { transform: translate(-50%, -70%) rotate(var(--r)) scale(calc(var(--s) * 1.35)); opacity: 1; } 30% { transform: translate(-50%, -80%) rotate(var(--r)) scale(var(--s)); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -190%) rotate(var(--r)) scale(calc(var(--s) * .9)); opacity: 0; } }
/* 조작 */
#stickzone { left: 0; bottom: 0; width: 56%; height: 44%; pointer-events: auto; touch-action: none; }
#stickhint { position: absolute; left: 22px; bottom: calc(40px + var(--safe-b)); width: 112px; height: 112px; border-radius: 50%; border: 4px solid rgba(255,255,255,.55); background: rgba(7,19,29,.22); box-shadow: 0 0 0 3px rgba(7,19,29,.25); }
#stickhint::before, #stickhint::after { content: ''; position: absolute; top: 50%; margin-top: -9px; border: 9px solid transparent; }
#stickhint::before { left: 8px; border-right: 13px solid rgba(255,255,255,.85); border-left: 0; } #stickhint::after { right: 8px; border-left: 13px solid rgba(255,255,255,.85); border-right: 0; }
#stick { position: absolute; width: 124px; height: 124px; margin: -62px 0 0 -62px; border-radius: 50%; border: 4px solid rgba(255,255,255,.7); background: rgba(7,19,29,.3); }
#stick i { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #bfe9ff 60%, #7fc8f0); box-shadow: 0 4px 10px rgba(7,19,29,.4); }
.act-btn { position: absolute; pointer-events: auto; touch-action: none; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 5px rgba(255,255,255,.85), 0 8px 18px rgba(7,19,29,.4); }
.act-btn svg { width: 54%; height: 54%; pointer-events: none; }
#btnJump { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(34px + var(--safe-b)); width: 104px; height: 104px; background: radial-gradient(circle at 35% 30%, #7fe3ff, #1fa8f0 60%, #1378c9); }
#btnGren { right: calc(138px + env(safe-area-inset-right, 0px)); bottom: calc(60px + var(--safe-b)); width: 84px; height: 84px; background: radial-gradient(circle at 35% 30%, #ffe39a, #ffb13b 60%, #e0771a); }
.act-btn:active, .act-btn.press { transform: scale(.92); }
#btnGren b { position: absolute; right: -4px; top: -6px; min-width: 28px; height: 28px; padding: 0 5px; border-radius: 14px; background: #ff3b5c; color: #fff; font-size: 16px; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
#btnGren.off { filter: grayscale(1); opacity: .5; }
/* 시트(미션·상점) */
.screen.dim { z-index: 12; }
.sheet { width: min(100% - 24px, 440px); max-height: 88%; overflow-y: auto; }
#missionGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 6px; }
.mc { position: relative; border-radius: 18px; background: #eef4fa; padding: 10px 8px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 700; box-shadow: 0 4px 0 rgba(7,19,29,.14); min-height: 112px; }
.mc .ico { font-size: 32px; line-height: 1.1; } .mc b { font-size: 15px; text-align: center; line-height: 1.1; } .mc .no { position: absolute; left: 8px; top: 6px; font-size: 14px; opacity: .5; }
.mc .stars { font-size: 17px; letter-spacing: 1px; color: #ffb800; -webkit-text-stroke: 1px #a87500; min-height: 20px; } .mc .stars i { font-style: normal; } .mc .stars i.off { color: #cfd6df; -webkit-text-stroke-color: #aeb8c6; }
.mc small { font-size: 12px; opacity: .6; }
.mc.sel { box-shadow: 0 0 0 4px #ff7a1a, 0 4px 0 rgba(7,19,29,.14); background: #fff3c9; }
.mc.lock { filter: grayscale(1); opacity: .6; }
.mc.lock::after { content: '🔒'; position: absolute; right: 6px; top: 4px; font-size: 18px; }
#dailyCard { margin-bottom: 10px; }
.daily { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: linear-gradient(135deg, #ffe39a, #ffb13b); font-weight: 700; box-shadow: 0 4px 0 #c4520a55; width: 100%; text-align: left; }
.daily .ico { font-size: 30px; } .daily .mid { flex: 1; display: flex; flex-direction: column; gap: 1px; font-size: 15px; } .daily .mid small { font-size: 12px; opacity: .75; } .daily .rw { display: flex; align-items: center; gap: 5px; font-size: 19px; }
.daily.done { filter: grayscale(.7); opacity: .75; }
#tabs { display: flex; gap: 6px; } #tabs button { width: 46px; height: 40px; border-radius: 13px; background: #eef4fa; font-size: 20px; box-shadow: 0 3px 0 rgba(7,19,29,.14); } #tabs button.on { background: #ffd23f; box-shadow: 0 0 0 3px #ff7a1a, 0 3px 0 rgba(7,19,29,.14); }
.sh { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: #eef4fa; margin-bottom: 8px; font-weight: 700; }
.sh .bd { display: grid; place-items: center; min-width: 46px; height: 40px; border-radius: 13px; font-size: 18px; color: #1b1b2f; } .sh .nm { flex: 1; font-size: 16px; line-height: 1.15; } .sh .nm small { display: block; font-size: 12px; opacity: .6; }
.sh .pips { display: flex; gap: 4px; margin-top: 3px; } .sh .pips u { width: 12px; height: 12px; border-radius: 50%; background: #cfd9e4; text-decoration: none; } .sh .pips u.on { background: #2bc46a; }
.sh button { min-width: 92px; height: 42px; border-radius: 14px; background: linear-gradient(180deg, #ffb13b, #ff7a1a); color: #fff; box-shadow: 0 4px 0 #c4520a; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 17px; }
.sh button.use { background: linear-gradient(180deg, #57e06a, #2bc46a); box-shadow: 0 4px 0 #1a8a43; }
.sh button:disabled { background: #b6c2cf; box-shadow: 0 4px 0 #8d99a6; }
.sh.cur { background: #fff3c9; box-shadow: 0 0 0 3px #ff7a1a; }
.bank { font-variant-numeric: tabular-nums; }
.kk-ico { font-style: normal; }
body.fxlow #btnFx { opacity: .5; }

#hofMenu { display: none !important; }
#flash { position: absolute; inset: 0; pointer-events: none; z-index: 7; background: #fff; opacity: 0; }
#toast { position: fixed; left: 50%; bottom: calc(110px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; padding: 10px 18px; border-radius: 16px; background: #fff; font-weight: 700; z-index: 60; pointer-events: none; transition: .3s; box-shadow: 0 6px 20px rgba(7,19,29,.25); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#nogl { display: none; }
body.nogl #nogl { display: grid; position: fixed; inset: 0; place-items: center; font-size: 40px; color: #fff; z-index: 99; }
body.loading #btnPlay { opacity: .6; }

#rsItems { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding-bottom: 4px; }
.rsi { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 18px; background: #eef4fa; font-weight: 700; box-shadow: 0 4px 0 rgba(7,19,29,.14); }
.rsi .ico { font-size: 36px; line-height: 1; } .rsi b { display: flex; align-items: center; gap: 4px; font-size: 18px; } .rsi:disabled { opacity: .4; filter: grayscale(1); }
.rsi:active:not(:disabled) { transform: translateY(3px); }
.wmap { display: flex !important; flex-direction: column; gap: 6px; position: relative; padding: 4px 0 6px; }
.wmap::before { content: ''; position: absolute; left: 50%; top: 20px; bottom: 20px; width: 0; border-left: 5px dotted #c8a86a; transform: translateX(-50%); }
.wmap .mc { width: 62%; min-height: 84px; flex-direction: row; justify-content: center; gap: 10px; padding: 8px 10px; z-index: 1; }
.wmap .mc:nth-child(odd) { align-self: flex-start; } .wmap .mc:nth-child(even) { align-self: flex-end; }
.wmap .mc b { font-size: 14px; } .wmap .mc .ico { font-size: 28px; }
.wmap .mc .dr { position: absolute; right: 8px; top: 4px; font-size: 18px; } .wmap .mc small { display: none; }
.wmap .mc .stars { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 13px; }

#worldTabs { display: flex; gap: 6px; margin-bottom: 8px; justify-content: center; }
.wt { position: relative; width: 48px; height: 44px; border-radius: 14px; background: #eef4fa; font-size: 22px; box-shadow: 0 3px 0 rgba(7,19,29,.14); } .wt i { position: absolute; right: 3px; bottom: 1px; font-style: normal; font-size: 11px; font-weight: 700; opacity: .6; }
.wt.on { background: #ffd23f; box-shadow: 0 0 0 3px #ff7a1a, 0 3px 0 rgba(7,19,29,.14); } .wt.lock { filter: grayscale(1); opacity: .5; }
.mc.boss { background: #ffe9e0; } .mc.boss.sel { background: #fff3c9; }
#ending { position: fixed !important; inset: 0; z-index: 99999; background: radial-gradient(circle at 50% 35%, #ffe39a, #ff9a3d 60%, #8a3a5a); justify-content: center; text-align: center; }
.endbox { display: flex; flex-direction: column; align-items: center; gap: 14px; } .endbox .crown { font-size: 110px; line-height: 1; filter: drop-shadow(0 6px 0 rgba(7,19,29,.3)); animation: pulse 1.4s infinite; }
.endbox h1 { margin: 0; font-size: 64px; color: #fff6d2; -webkit-text-stroke: 7px #1b1b2f; paint-order: stroke fill; letter-spacing: 3px; } #endFriends { font-size: 34px; max-width: 320px; word-break: break-all; }
