: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: #3aa8ff; 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; }
#c { position: fixed; 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: 26px; height: 16px; background: linear-gradient(180deg, #fff1b0, #ffc62e 55%, #d98b00); -webkit-mask: var(--bone) center/contain no-repeat; mask: var(--bone) center/contain no-repeat; }
.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; }

#menu { justify-content: space-between; padding: calc(28px + var(--safe-t)) 16px calc(26px + var(--safe-b)); pointer-events: none; }
#menu > * { pointer-events: auto; }
.logo-wrap { display: flex; flex-direction: column; align-items: center; animation: drop .7s cubic-bezier(.2,1.6,.4,1) both; }
.logo-img { width: min(78vw, 460px); height: auto; filter: drop-shadow(0 10px 20px rgba(7,19,29,.3)); }
.logo-img + .logo { display: none; }
.logo { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: .82; font-weight: 700; font-style: italic; letter-spacing: -1px; }
.logo span { font-size: clamp(64px, 18vw, 120px); color: var(--cream); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 6px 0 var(--cyan), 7px 9px 0 var(--ink); transform: skew(-8deg); }
.logo span + span { color: #fff; }
@keyframes drop { from { transform: translateY(-60px) scale(.8); opacity: 0; } }
.best-m { margin-top: 10px; padding: 6px 16px; border-radius: 999px; background: rgba(7,19,29,.55); color: #fff; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.best-m b { color: var(--gold); font-size: 20px; }
.menu-bottom { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.studio { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 14px; letter-spacing: 1px; box-shadow: 0 4px 12px rgba(7,19,29,.3); }

/* HUD 공통 */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#hud > * { position: absolute; }
#btnPause { left: 14px; top: calc(14px + var(--safe-t)); pointer-events: auto; }
#score { left: 50%; top: calc(10px + var(--safe-t)); transform: translateX(-50%); font-size: 40px; font-weight: 700; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 rgba(7,19,29,.35); font-variant-numeric: tabular-nums; }
#stats { right: 14px; top: calc(14px + var(--safe-t)); display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.pill { display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(7,19,29,.55); color: #fff; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 결과 */
#over { justify-content: flex-end; padding: calc(12px + var(--safe-t)) 16px calc(12px + var(--safe-b)); overflow-y: auto; }
.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; }
.big-num { font-size: 60px; font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.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; }
#toast { position: fixed; left: 50%; top: calc(84px + var(--safe-t)); transform: translate(-50%, -30px) scale(.8); opacity: 0; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 0 0 3px #ffc62e, var(--shadow); z-index: 20; pointer-events: none; transition: .35s cubic-bezier(.2,1.6,.4,1); max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

@media (min-height: 900px) { .big-btn { height: 78px; } }
@media (max-height: 640px) { .logo span { font-size: 60px; } .big-btn { height: 60px; font-size: 26px; } .menu-bottom { gap: 12px; } .big-num { font-size: 48px; } .feature { aspect-ratio: 21/9; } }
#pops { left: 50%; top: 42%; width: 0; height: 0; }
.pop { position: absolute; left: 0; top: 0; transform: translate(-50%, 0); font-size: 30px; font-weight: 700; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; white-space: nowrap; animation: popUp .9s ease-out forwards; }
.pop small { font-size: 20px; color: #ffe14d; margin-left: 6px; }
@keyframes popUp { 0% { transform: translate(-50%, 10px) scale(.6); opacity: 0; } 20% { transform: translate(-50%, -10px) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -70px) scale(1); opacity: 0; } }

.hub-link { position: absolute; left: 14px; top: calc(14px + var(--safe-t)); }
.i-grid { width: 20px; height: 20px; background: radial-gradient(circle, currentColor 0 3.5px, transparent 4px) 0 0 / 10px 10px; }

/* 자랑·공유 */
.i-flag { width: 18px; height: 20px; background: linear-gradient(90deg, #07131d 0 3px, transparent 3px), conic-gradient(from 90deg at 50% 50%, #fff 0 25%, #07131d 0 50%, #fff 0 75%, #07131d 0) 3px 0 / 8px 8px no-repeat; background-size: auto, 15px 12px; }
.i-down { width: 18px; height: 20px; background: currentColor; clip-path: polygon(35% 0, 65% 0, 65% 45%, 90% 45%, 50% 85%, 10% 45%, 35% 45%, 35% 0, 0 100%, 0 88%, 100% 88%, 100% 100%, 0 100%); }
.i-link { width: 22px; height: 12px; border: 3.5px solid currentColor; border-radius: 8px; position: relative; }
.i-link::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1.5px; background: currentColor; }
.chal-m { margin-top: 8px; display: flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: #fff; font-size: 18px; box-shadow: 0 4px 0 rgba(7,19,29,.15); animation: pulse 1.4s infinite; }
#target { left: 50%; top: calc(88px + var(--safe-t)); transform: translateX(-50%); width: min(60vw, 260px); height: 14px; border-radius: 7px; background: rgba(7,19,29,.45); overflow: visible; }
#target span { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); border-radius: 7px; background: linear-gradient(90deg, #ffb13b, #ff5c7a); }
#target .i-flag { position: absolute; right: -6px; top: -16px; }
#target.done span { background: linear-gradient(90deg, #2bc46a, #9be15d); }
.rank { padding: 6px 18px; border-radius: 999px; color: #fff; font-family: 'Jua', 'Fredoka', sans-serif; font-size: 20px; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.chal-o { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.chal-o em { font-style: normal; font-weight: 700; padding: 2px 10px; border-radius: 8px; color: #fff; }
.chal-o em.win { background: #2bc46a; } .chal-o em.lose { background: #8d99a6; }
.share-sheet { align-items: center; gap: 14px; width: min(100% - 32px, 400px); }
.share-sheet .sheet-h { width: 100%; padding-bottom: 0; }
#shareImg { width: 100%; max-height: 52vh; object-fit: contain; border-radius: 18px; box-shadow: 0 6px 18px rgba(7,19,29,.2); }
#shareImg:not([src]) { display: none; }
.mid-btn.hot { background: linear-gradient(180deg, #ffb13b, #ff7a1a); color: #fff; box-shadow: 0 5px 0 #c4520a; min-width: 90px; }
#shareCopy.ok { background: #2bc46a; color: #fff; }

/* ===== KEKE BLASTER ===== */
html, body { background: #2a2140; }
body.playing #c { cursor: none; }
.screen#menu { background: linear-gradient(180deg, rgba(42,33,64,.15), rgba(42,33,64,.55)); }
.best-m .sep { width: 1px; height: 16px; background: rgba(255,255,255,.4); }
.keys { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
kbd { font-family: inherit; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.9); box-shadow: 0 3px 0 rgba(7,19,29,.25); }
body.mobile .pc-only { display: none; }
.bot-ic { display: inline-block; width: 18px; height: 16px; border-radius: 4px; background: #ff6b5a; position: relative; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.bot-ic::before, .bot-ic::after { content: ''; position: absolute; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.bot-ic::before { left: 4px; } .bot-ic::after { right: 4px; }
.i-check::after { content: ''; position: absolute; left: 13px; top: 8px; width: 10px; height: 18px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
.up-sub { color: #fff; font-family: 'Jua', 'Fredoka', sans-serif; font-size: 18px; opacity: .9; }
#upCards { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; max-width: 720px; }
.over-card { width: 100%; max-width: 260px; border-radius: 16px; box-shadow: 0 6px 18px rgba(7,19,29,.25); cursor: pointer; }
.share-big { background: linear-gradient(180deg, #4fd2ff, #1f8cf0); box-shadow: 0 7px 0 #135ea8, 0 14px 28px rgba(19,94,168,.35); }
.share-big:active { box-shadow: 0 2px 0 #135ea8; }
#toast { top: auto; bottom: calc(30px + var(--safe-b)); padding: 10px 18px; font-weight: 700; }


/* ===== KEKE CANNON ===== */
html, body { background: #3fa9ff; }
.screen#menu { background: linear-gradient(180deg, rgba(20,60,110,.05), rgba(20,60,110,.35)); }
body.playing #c { cursor: crosshair; }
.i-inf { width: 26px; height: 14px; position: relative; }
.i-inf::before, .i-inf::after { content: ''; position: absolute; top: 0; width: 10px; height: 10px; border: 3px solid currentColor; border-radius: 50%; }
.i-inf::before { left: 0; } .i-inf::after { right: 0; }
.i-inf.w { color: #fff; }
.mid-btn.hot .i-inf { width: 34px; height: 18px; } .mid-btn.hot .i-inf::before, .mid-btn.hot .i-inf::after { width: 13px; height: 13px; border-width: 4px; }
.mid-btn.pulse { animation: pulse 1.2s infinite; }
.i-back { width: 14px; height: 14px; border-left: 4px solid currentColor; border-bottom: 4px solid currentColor; transform: rotate(45deg); margin-left: 6px; }
.star { display: inline-block; width: 22px; height: 22px; background: #d6dbe6; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.star.on { background: linear-gradient(180deg, #ffe58a, #ffb800); }
.best-m .star { width: 20px; height: 20px; }

/* HUD */
#btnRetry { left: 68px; top: calc(14px + var(--safe-t)); pointer-events: auto; }
#hud.endless #btnRetry { display: none; }
#hud .top { position: absolute; left: 50%; top: calc(10px + var(--safe-t)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
#hud #score { position: static; transform: none; font-size: 34px; }
.stage-pill { display: flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(7,19,29,.6); color: #fff; font-size: 18px; }
.stage-pill b { margin-right: 6px; }
.stage-pill .i-inf { display: none; width: 22px; height: 12px; } .stage-pill .i-inf::before, .stage-pill .i-inf::after { width: 8px; height: 8px; border-width: 2.5px; }
#hud.endless .stage-pill .i-inf { display: inline-block; }
#combo { font-size: 26px; font-weight: 700; color: #ffe14d; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; min-height: 30px; opacity: 0; }
#combo.go { animation: combo 1.4s ease-out forwards; }
@keyframes combo { 0% { opacity: 0; transform: scale(2); } 15% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
#hud .tr { position: absolute; right: 14px; top: calc(14px + var(--safe-t)); }
.pill.wind { padding: 6px 14px 6px 10px; font-size: 20px; gap: 8px; }
.i-wind { width: 30px; height: 18px; position: relative; }
.i-wind::before { content: ''; position: absolute; left: 0; right: 8px; top: 7px; height: 4px; border-radius: 2px; background: #fff; }
.i-wind::after { content: ''; position: absolute; right: 0; top: 1px; border: 8px solid transparent; border-left: 10px solid #fff; border-right: 0; }
.wind.l .i-wind { transform: scaleX(-1); }
.wind.z .i-wind { opacity: .35; }
.wind.r { background: rgba(31,140,240,.8); } .wind.l { background: rgba(255,92,58,.8); }
#hud #target { top: calc(104px + var(--safe-t)); }
#aimInfo { position: absolute; left: 14px; top: calc(70px + var(--safe-t)); display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border-radius: 20px; background: rgba(7,19,29,.6); color: #fff; transition: opacity .2s; }
#aimInfo.dim { opacity: .45; }
#aimInfo b { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
#aimInfo small { font-size: 18px; opacity: .8; }
#aimInfo .ang, #aimInfo .pw { display: flex; align-items: center; gap: 8px; }
.i-ang { width: 26px; height: 26px; position: relative; }
.i-ang::before { content: ''; position: absolute; left: 0; bottom: 0; width: 26px; height: 4px; border-radius: 2px; background: #fff; }
.i-ang::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 4px; border-radius: 2px; background: #ffc62e; transform-origin: 2px 2px; transform: rotate(-40deg); }
#pwBar { width: 110px; height: 14px; border-radius: 7px; background: rgba(255,255,255,.2); overflow: hidden; }
#pwBar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #2bc46a, #ffd23f 60%, #ff4d4d); background-size: 110px 100%; }
#ammoBar { position: absolute; right: 16px; bottom: calc(16px + var(--safe-b)); display: flex; gap: 10px; pointer-events: auto; }
.ammo { position: relative; width: 64px; height: 64px; border-radius: 20px; background: rgba(255,255,255,.88); display: grid; place-items: center; box-shadow: 0 4px 0 rgba(7,19,29,.2); transition: transform .1s; }
.ammo.on { background: #fff; box-shadow: 0 0 0 4px #ffc62e, 0 4px 0 rgba(7,19,29,.2); transform: translateY(-4px); }
.ammo.empty { opacity: .35; }
.ammo > b { position: absolute; right: -6px; top: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; line-height: 24px; text-align: center; }
.ammo kbd { position: absolute; left: 4px; bottom: 3px; font-size: 10px; padding: 0 4px; box-shadow: none; background: #eef1f6; border-radius: 4px; }
.am-ball, .am-split, .am-bomb, .am-rubber { width: 34px; height: 34px; border-radius: 50%; position: relative; }
.am-ball { background: radial-gradient(circle at 35% 30%, #fff 0 8%, transparent 9%), repeating-linear-gradient(90deg, #ff4d5e 0 7px, #ffd23f 7px 12px); box-shadow: inset -4px -5px 0 rgba(0,0,0,.15); }
.am-split { width: 40px; background: radial-gradient(circle at 20% 60%, #2fd6ee 0 9px, transparent 10px), radial-gradient(circle at 80% 60%, #2fd6ee 0 9px, transparent 10px), radial-gradient(circle at 50% 30%, #1fb5d6 0 10px, transparent 11px); border-radius: 0; }
.am-bomb { background: radial-gradient(circle at 35% 35%, #6a7180, #2b2f38 60%); margin-top: 6px; }
.am-bomb::before { content: ''; position: absolute; left: 13px; top: -7px; width: 8px; height: 8px; border-radius: 2px; background: #ffc62e; }
.am-bomb::after { content: ''; position: absolute; left: 18px; top: -15px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(#fff, #ffb23f 60%, transparent 70%); }
.am-bone { width: 44px; height: 26px; background: #f2dcb0; -webkit-mask: var(--bone) center/contain no-repeat; mask: var(--bone) center/contain no-repeat; transform: rotate(-20deg); }
.am-rubber { background: radial-gradient(circle at 35% 30%, #c9ff9e, #56d94a 45%, #1f7a2a); }
.am-rubber::after { content: ''; position: absolute; inset: 14px 2px; border-top: 3px solid #1f7a2a; border-radius: 50%; }
#pops .pop { position: absolute; font-size: 22px; transform: translate(-50%, -50%); animation: popUp .9s ease-out forwards; }
#pops .pop.c { color: #ffe14d; font-size: 24px; }
#pops .pop.r { color: #7ff8ff; font-size: 30px; }
#pops .pop.center { left: 50%; top: 32%; font-size: 56px; color: #ffe14d; animation-duration: 1.2s; }
#banner { position: fixed; left: 50%; top: 30%; transform: translate(-50%, -50%); z-index: 7; pointer-events: none; opacity: 0; font-size: 90px; font-weight: 700; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; white-space: nowrap; }
#banner.show { animation: banner 1.6s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(.9); } }
body.mobile .ammo { width: 58px; height: 58px; }
body.mobile #aimInfo b { font-size: 24px; }
body.mobile #aimInfo { flex-direction: row; gap: 12px; padding: 6px 12px; }
body.mobile #pwBar { width: 80px; }

/* 스테이지 고르기 */
#select { justify-content: flex-start; padding: calc(14px + var(--safe-t)) 16px calc(16px + var(--safe-b)); gap: 14px; }
.sel-head { width: min(100%, 720px); display: flex; justify-content: space-between; align-items: center; }
.pill.big { font-size: 22px; padding: 6px 16px 6px 10px; } .pill.big small { opacity: .6; font-size: 15px; }
#lvGrid { width: min(100%, 720px); display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px; overflow-y: auto; padding: 6px 4px 20px; }
.lv { aspect-ratio: 1; border-radius: 22px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 5px 0 rgba(7,19,29,.2); animation: pop .3s cubic-bezier(.2,1.5,.4,1) both; }
.lv b { font-size: 30px; line-height: 1; }
.lv span { display: flex; gap: 1px; }
.lv .star { width: 16px; height: 16px; }
.lv.cur { background: linear-gradient(180deg, #ffb13b, #ff7a1a); color: #fff; animation: pulse 1.2s infinite; box-shadow: 0 5px 0 #c4520a; }
.lv.lock { background: rgba(255,255,255,.4); color: rgba(7,19,29,.35); box-shadow: none; }
.lv.lock span { visibility: hidden; }
.lv:active:not(.lock) { transform: translateY(3px); }

/* 스테이지 결과 */
#stageEnd { justify-content: center; padding: calc(12px + var(--safe-t)) 16px calc(12px + var(--safe-b)); background: rgba(7,19,29,.25); overflow-y: auto; }
.se-head { display: flex; align-items: center; gap: 8px; font-size: 26px; }
.se-head small { font-size: 15px; letter-spacing: 2px; opacity: .55; }
.stars3 { display: flex; gap: 10px; align-items: flex-end; }
.stars3 .star { width: 64px; height: 64px; }
.stars3 .star:nth-child(2) { width: 82px; height: 82px; }
.stars3 .star.on { animation: starIn .45s cubic-bezier(.2,1.8,.4,1) both; }
@keyframes starIn { from { transform: scale(0) rotate(-90deg); background: #d6dbe6; } }
#stageEnd.lose .stars3 .star { background: #d6dbe6; }
#stageEnd.lose .big-num { color: #8d99a6; }
.mid-btn.hot { background: linear-gradient(180deg, #ffb13b, #ff7a1a); color: #fff; box-shadow: 0 5px 0 #c4520a; min-width: 90px; }
@media (max-height: 520px) {
  .over-card { max-width: 150px; } #over .panel, #stageEnd .panel { gap: 8px; padding: 14px; }
  .stars3 .star { width: 46px; height: 46px; } .stars3 .star:nth-child(2) { width: 58px; height: 58px; }
  .logo-img { width: min(60vw, 340px); } .big-btn { height: 56px; }
  #aimInfo { flex-direction: row; gap: 12px; padding: 6px 12px; top: calc(66px + var(--safe-t)); } #aimInfo b { font-size: 24px; } #pwBar { width: 80px; }
  .lv b { font-size: 22px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  #over .panel, #stageEnd .panel { width: min(100%, 640px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; }
  #over .over-card, #stageEnd .over-card { grid-row: span 4; grid-column: 2; }
}

/* 세로 화면: 가로로 돌리기 아이콘 */
#rot { display: none; position: fixed; left: 50%; top: 34%; transform: translate(-50%, -50%); z-index: 4; pointer-events: none; width: 96px; height: 96px; border-radius: 28px; background: rgba(7,19,29,.45); place-items: center; }
#rot i { width: 30px; height: 50px; border-radius: 7px; border: 4px solid #fff; position: relative; animation: rot 2.4s ease-in-out infinite; }
#rot i::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #fff; }
@keyframes rot { 0%, 25% { transform: rotate(0); } 50%, 85% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
#rot { display: none !important; }

/* ===== 확장: 목표·코인·포탄·테마·강화 ===== */
#hud .tr { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.goal { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(7,19,29,.6); color: #fff; font-size: 18px; font-weight: 700; }
.goal .star { width: 18px; height: 18px; }
.goal .bot-ic { width: 16px; height: 14px; }
.goal.ok { background: rgba(43,196,106,.9); }
.goal.no { background: rgba(141,153,166,.85); text-decoration: line-through; }
.am-ball.sm { width: 18px; height: 18px; }
.se-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
#stageEnd .goal { font-size: 17px; }
.coin-pill { font-size: 18px; padding: 5px 12px 5px 8px; }
#hud.boss .stage-pill { background: linear-gradient(90deg, #7a5cff, #ff3b6b); }
.i-wrench { width: 24px; height: 24px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94l-6.91 6.91a2.12 2.12 0 01-3-3l6.91-6.91a6 6 0 017.94-7.94l-3.76 3.76z'/%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='M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94l-6.91 6.91a2.12 2.12 0 01-3-3l6.91-6.91a6 6 0 017.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E") center/contain no-repeat; }
.mid-btn .i-wrench, .i-wrench.dark { background: var(--ink); }
/* 새 포탄 아이콘 */
.am-giant, .am-balloon, .am-ice, .am-fire, .am-sticky, .am-firework, .am-tribone, .am-magnet, .am-drill { position: relative; width: 34px; height: 34px; }
.am-giant { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6b0, #ffd23f 45%, #ff7a1a); box-shadow: inset -4px -5px 0 rgba(0,0,0,.15); }
.am-balloon { width: 26px; height: 32px; border-radius: 50% 50% 48% 48%; background: radial-gradient(circle at 35% 30%, #ffc2df, #ff5ca8 55%); margin-bottom: 8px; }
.am-balloon::after { content: ''; position: absolute; left: 7px; top: 30px; width: 12px; height: 12px; border-radius: 50%; background: #2b2f38; }
.am-ice { width: 30px; height: 30px; background: linear-gradient(135deg, #e6fbff, #6fd3ff); clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); }
.am-fire { width: 30px; height: 36px; background: radial-gradient(circle at 50% 70%, #ffe14d 0 25%, #ff7a1a 50%, #ff3b2a 75%); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; clip-path: polygon(50% 0, 70% 25%, 90% 45%, 100% 70%, 85% 95%, 50% 100%, 15% 95%, 0 70%, 10% 45%, 30% 25%); }
.am-sticky { width: 34px; height: 30px; border-radius: 50% 50% 45% 55% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 30%, #d6ffb0, #7ddc3a 55%, #3f9a1a); }
.am-firework { width: 14px; height: 32px; border-radius: 3px; background: linear-gradient(#ffd23f 0 22%, #ff3b6b 22% 80%, #fff 80%); transform: rotate(35deg); }
.am-firework::after { content: ''; position: absolute; left: -10px; top: -12px; width: 34px; height: 12px; background: radial-gradient(circle, #ffe14d 0 3px, transparent 4px) 0 0 / 11px 12px; }
.am-tribone { width: 44px; height: 34px; }
.am-tribone::before, .am-tribone::after { content: ''; position: absolute; left: 4px; width: 36px; height: 14px; background: #f2dcb0; -webkit-mask: var(--bone) center/contain no-repeat; mask: var(--bone) center/contain no-repeat; }
.am-tribone::before { top: 0; transform: rotate(-12deg); } .am-tribone::after { bottom: 0; transform: rotate(12deg); }
.am-tribone { background: none; } .am-tribone { --mid: 1; }
.am-magnet { width: 30px; height: 30px; border: 9px solid #ff3b5c; border-top: 0; border-radius: 0 0 16px 16px; box-sizing: border-box; }
.am-magnet::before, .am-magnet::after { content: ''; position: absolute; top: 0; width: 9px; height: 8px; background: #e6ebf2; }
.am-magnet::before { left: -9px; } .am-magnet::after { right: -9px; }
.am-drill { width: 36px; height: 20px; background: linear-gradient(90deg, #ffc62e 0 30%, #c9d2de 30%); clip-path: polygon(0 0, 30% 0, 30% 10%, 100% 50%, 30% 90%, 30% 100%, 0 100%); }
#ammoBar { flex-wrap: wrap; justify-content: flex-end; max-width: calc(100vw - 32px); }
body.mobile .ammo { width: 52px; height: 52px; border-radius: 16px; }
body.mobile .ammo > b { min-width: 20px; height: 20px; line-height: 20px; font-size: 13px; }
/* 스테이지 고르기: 테마별 */
#lvGrid { display: flex; flex-direction: column; gap: 14px; }
.lv-sec { background: color-mix(in srgb, var(--tc) 30%, rgba(255,255,255,.75)); border-radius: 22px; padding: 10px; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--tc) 60%, transparent); }
.lv-h { display: flex; align-items: center; gap: 6px; padding: 0 4px 8px; font-size: 18px; }
.lv-h small { opacity: .6; font-size: 13px; }
.lv-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.lv-row .lv { border-radius: 16px; }
.lv-row .lv b { font-size: 20px; }
.lv-row .lv .star { width: 11px; height: 11px; }
.lv.boss { background: linear-gradient(180deg, #ffe7a8, #ffc62e); }
.lv.boss .i-crown { width: 16px; height: 12px; background: #ff7a1a; }
.lv.boss.lock { background: rgba(255,255,255,.4); }
@media (max-width: 640px) { .lv-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.th { width: 30px; height: 30px; border-radius: 50%; display: inline-block; box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.th-yard { background: radial-gradient(circle at 50% 75%, #4fc24a 0 45%, #9ad8ff 46%); }
.th-beach { background: radial-gradient(circle at 50% 80%, #f6d99a 0 30%, #1fa8f0 31% 55%, #ffe58a 56% 62%, #8fe0ff 63%); }
.th-snow { background: linear-gradient(135deg, transparent 40%, #fff 40% 55%, transparent 55%), radial-gradient(circle at 50% 120%, #8ea4c4 0 60%, #c4e2ff 61%); }
.th-candy { background: repeating-conic-gradient(#ff4d8d 0 30deg, #fff 30deg 60deg); }
.th-peak { background: linear-gradient(160deg, #a4d0ff 0 45%, transparent 45%), linear-gradient(200deg, #a4d0ff 0 45%, #7a8090 45%); }
.th-space { background: radial-gradient(circle at 30% 30%, #fff 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, #ff9a5c 0 6px, transparent 7px), #120c33; }
/* 강화 */
#shop { justify-content: flex-start; padding: calc(14px + var(--safe-t)) 16px calc(16px + var(--safe-b)); gap: 16px; }
.shop-cannon { display: none; }
#upList { width: min(100%, 480px); display: flex; flex-direction: column; gap: 12px; }
.up-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; background: #fff; box-shadow: 0 5px 0 rgba(7,19,29,.18); animation: pop .35s cubic-bezier(.2,1.5,.4,1) both; }
.up-row.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.up-ic { width: 56px; height: 56px; border-radius: 16px; background: #eef1f6; position: relative; flex: none; }
.up-barrel::before { content: ''; position: absolute; left: 8px; top: 20px; width: 40px; height: 16px; border-radius: 4px 8px 8px 4px; background: linear-gradient(90deg, #e8473d 0 80%, #ffc62e 80%); transform: rotate(-25deg); }
.up-barrel::after { content: ''; position: absolute; left: 10px; bottom: 8px; width: 18px; height: 18px; border-radius: 50%; border: 4px solid #2c2f38; box-sizing: border-box; }
.up-power::before { content: ''; position: absolute; inset: 12px 10px; background: linear-gradient(90deg, #2bc46a, #ffd23f, #ff4d4d); clip-path: polygon(0 60%, 60% 60%, 45% 100%, 100% 40%, 40% 40%, 55% 0); }
.up-sight::before { content: ''; position: absolute; left: 8px; top: 12px; width: 40px; height: 32px; background: radial-gradient(circle, #2fd6ee 0 3px, transparent 4px) 0 100% / 10px 8px repeat-x; transform: rotate(-30deg); }
.up-sight::after { content: ''; position: absolute; left: 6px; top: 26px; width: 44px; height: 4px; background: radial-gradient(circle, #07131d 0 2px, transparent 3px) 0 0 / 8px 4px repeat-x; transform: rotate(-30deg); opacity: .4; }
.pips { flex: 1; display: flex; gap: 6px; }
.pips b { flex: 1; height: 14px; border-radius: 7px; background: #d6dbe6; }
.pips b.on { background: linear-gradient(90deg, #2bc46a, #9be15d); }
.buy { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px; border-radius: 16px; background: linear-gradient(180deg, #ffb13b, #ff7a1a); color: #fff; font-weight: 700; font-size: 18px; box-shadow: 0 4px 0 #c4520a; }
.buy.no { filter: grayscale(1); opacity: .5; }
.max { font-weight: 700; color: #2bc46a; padding: 0 12px; font-size: 18px; }
.more-games { margin-top: 2px; }

/* 모바일 조준: 화면 끌림 막기 + 큰 숫자 */
html, body, #c { touch-action: none; overscroll-behavior: none; -webkit-touch-callout: none; }
#c { z-index: 0; }
#hud { z-index: 5; }
#hud button, #ammoBar, #btnPause, #btnRetry { z-index: 6; }
#aimBig { position: fixed; left: 50%; top: 24%; transform: translate(-50%, -50%) scale(.8); z-index: 8; pointer-events: none; opacity: 0; transition: opacity .12s, transform .12s; display: flex; align-items: baseline; gap: 4px; padding: 8px 22px; border-radius: 26px; background: rgba(7,19,29,.62); color: #fff; }
#aimBig.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#aimBig b { font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
#aimBig small { font-size: 24px; opacity: .8; }
#aimBig span { width: 2px; height: 40px; background: rgba(255,255,255,.35); margin: 0 12px; align-self: center; }
@media (max-height: 520px) { #aimBig b { font-size: 44px; } #aimBig { top: 30%; } }

/* 왼쪽 위 버튼(게임 목록·일시정지): 크게, 누르는 범위 넓게 */
.hub-link, #btnPause { width: 54px !important; height: 54px !important; border-radius: 16px !important; top: calc(16px + env(safe-area-inset-top, 0px)) !important; left: calc(14px + env(safe-area-inset-left, 0px)) !important; z-index: 20 !important; touch-action: manipulation; }
.hub-link::before, #btnPause::before { content: ''; position: absolute; inset: -14px; }
.hub-link .i-grid { transform: scale(1.15); }
#btnRetry { left: calc(80px + env(safe-area-inset-left, 0px)) !important; top: calc(16px + env(safe-area-inset-top, 0px)) !important; width: 54px !important; height: 54px !important; z-index: 21 !important; }
#btnPause::before { right: -4px !important; }

/* 손맛 연출 · 오늘의 도전 */
#flashFx { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; }
.combo-big { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); pointer-events: none; animation: comboBig 1.3s cubic-bezier(.2,1.6,.4,1) forwards; }
.combo-big b { display: block; font-size: 110px; font-weight: 700; color: #ffe14d; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 rgba(7,19,29,.35); }
.combo-big.c2 b { color: #ff9a3c; font-size: 130px; } .combo-big.c3 b { color: #ff3b6b; font-size: 150px; } .combo-big.c4 b { color: #b18cff; font-size: 170px; }
@keyframes comboBig { 0% { transform: translate(-50%, -50%) scale(3) rotate(-10deg); opacity: 0; } 18% { transform: translate(-50%, -50%) scale(1) rotate(-4deg); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(-50%, -80%) scale(.9) rotate(0); opacity: 0; } }
@media (max-height: 520px) { .combo-big b { font-size: 70px !important; } }
#pops .pop.b { color: #ff3b5c; font-size: 30px; }
.i-cal { width: 24px; height: 24px; border-radius: 5px; background: linear-gradient(#ff5c3a 0 30%, #fff 30%); box-shadow: inset 0 0 0 2.5px var(--ink); position: relative; }
.i-cal::after { content: ''; position: absolute; left: 6px; top: 11px; width: 12px; height: 8px; background: radial-gradient(circle, var(--ink) 0 1.6px, transparent 2px) 0 0 / 4px 4px; }
.daily-btn { position: relative; }
.daily-btn b { font-size: 15px; }
.daily-btn b:empty { display: none; }
.daily-btn.new::after { content: ''; position: absolute; right: -3px; top: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px #fff; animation: pulse 1s infinite; }
.i-fire { width: 16px; height: 20px; background: radial-gradient(circle at 50% 70%, #ffe14d 0 25%, #ff7a1a 50%, #ff3b2a 75%); clip-path: polygon(50% 0, 75% 30%, 100% 65%, 85% 95%, 50% 100%, 15% 95%, 0 65%, 25% 30%); }
.pill.streak { font-size: 18px; padding: 5px 12px 5px 8px; }
#hud.daily .stage-pill::before { content: ''; width: 18px; height: 18px; border-radius: 4px; background: linear-gradient(#ff5c3a 0 30%, #fff 30%); }
.am-cluster { position: relative; width: 38px; height: 34px; background: radial-gradient(circle at 50% 20%, #ff7a1a 0 5px, transparent 6px), radial-gradient(circle at 15% 60%, #ff7a1a 0 5px, transparent 6px), radial-gradient(circle at 85% 60%, #ff7a1a 0 5px, transparent 6px), radial-gradient(circle at 50% 60%, #3a3f4a 0 12px, transparent 13px); }
.am-thunder { width: 24px; height: 36px; background: linear-gradient(#ffe14d, #ffb800); clip-path: polygon(60% 0, 10% 55%, 45% 55%, 30% 100%, 90% 40%, 55% 40%); }
.am-blackhole { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, #0a0618 0 40%, #7a5cff 46%, #b18cff 55%, transparent 60%); box-shadow: 0 0 0 3px rgba(177,140,255,.35); }
.th-desert { background: linear-gradient(transparent 55%, #f2cf8a 55%), radial-gradient(circle at 70% 35%, #ffe58a 0 5px, transparent 6px), #4aa3e8; }
.th-night { background: radial-gradient(circle at 65% 35%, #fff6c8 0 6px, transparent 7px), radial-gradient(circle at 30% 25%, #fff 0 1.5px, transparent 2px), #1b2a5c; }
.th-sea { background: radial-gradient(circle at 30% 30%, #dff8ff 0 3px, transparent 4px), radial-gradient(circle at 60% 55%, #dff8ff 0 2px, transparent 3px), linear-gradient(#2fb5d8, #063a6e); }
.th-volcano { background: linear-gradient(160deg, #2a0f12 0 45%, transparent 45%), linear-gradient(200deg, #2a0f12 0 45%, #ff6a1a 45%); }
/* 낮은 가로 화면(폰 가로): 메뉴를 한 화면에 */
@media (max-height: 520px) {
  #menu { padding: calc(8px + var(--safe-t)) 12px calc(8px + var(--safe-b)); overflow-y: auto; justify-content: flex-start; gap: 6px; }
  #menu .logo-img { width: min(42vw, 300px); }
  #menu .menu-bottom { gap: 8px; margin-top: auto; }
  #menu .keys { display: none; }
  #menu .big-btn { height: 50px; font-size: 24px; min-width: 190px; }
  #menu .mid-btn { height: 44px; min-width: 44px; padding: 0 14px; }
  #menu #hofMenu { max-height: 96px; overflow-y: auto; width: min(100%, 420px); }
  #menu .best-m { margin-top: 0; }
}

/* 포탄 큰 버튼 하나 */
#ammoBar { align-items: flex-end; gap: 10px; flex-wrap: nowrap; }
.ammo.big { width: 78px; height: 78px; border-radius: 24px; }
.ammo.big > i { transform: scale(1.35); }
.ammo.big > b { min-width: 28px; height: 28px; line-height: 28px; font-size: 17px; right: -8px; top: -8px; }
.ammo.big em { position: absolute; left: 50%; bottom: -2px; transform: translate(-50%, 50%); width: 30px; height: 18px; border-radius: 9px; background: var(--ink); }
.ammo.big em::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-30%, -50%); border: 5px solid transparent; border-left: 8px solid #fff; }
.ammo.bump { animation: ammoBump .25s; }
@keyframes ammoBump { 40% { transform: translateY(-4px) scale(1.12); } }
.ammo-rest { display: flex; gap: 4px; padding: 5px 8px; border-radius: 16px; background: rgba(7,19,29,.45); pointer-events: none; }
.ammo-rest:empty { display: none; }
.ammo-rest span { position: relative; width: 30px; height: 30px; display: grid; place-items: center; }
.ammo-rest span > i { transform: scale(.62); }
.ammo-rest b { position: absolute; right: -2px; bottom: -3px; font-size: 11px; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
body.mobile .ammo.big { width: 72px; height: 72px; border-radius: 22px; }
#btnPause, #btnRetry { width: 54px; height: 54px; border-radius: 16px; }
#btnRetry { left: 76px; }
#aimInfo { top: calc(76px + var(--safe-t)) !important; }
