: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; }
#powers { left: 14px; top: calc(72px + var(--safe-t)); display: flex; flex-direction: column; gap: 8px; }
.pw { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #fff; overflow: hidden; background: rgba(7,19,29,.55); }
.pw::after { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--p) * 100%); background: var(--gold); }
.pw.magnet::before { content: ''; width: 22px; height: 22px; border: 6px solid #ff3b5c; border-top: 0; border-radius: 0 0 14px 14px; }
.pw.double { background: rgba(124, 58, 237, .8); font-size: 18px; }

/* 결과 */
#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; }
.run-cards { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.run-cards a { position: relative; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 3px #ffc62e, 0 4px 10px rgba(0,0,0,.2); }
.run-cards a img { width: 100%; height: 100%; object-fit: cover; }
.run-cards a.new::after { content: 'NEW'; position: absolute; right: -2px; top: -2px; font-size: 9px; font-weight: 700; background: var(--pink); color: #fff; padding: 1px 4px; border-radius: 6px; }
.feat-lbl { margin-top: 4px; font-size: 13px; font-weight: 700; letter-spacing: 2px; opacity: .5; }
.feature { width: 100%; border-radius: 18px; overflow: hidden; position: relative; display: block; aspect-ratio: 16/9; box-shadow: 0 6px 16px rgba(7,19,29,.2); }
.feature > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature div { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(transparent, rgba(7,19,29,.85)); color: #fff; }
.feature .fi { width: 36px; height: 36px; border-radius: 10px; }
.feature b { flex: 1; font-size: 16px; text-align: left; }
.feature span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #ff7a1a; font-size: 14px; }

/* 카드 모음 */
.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; }
#grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; overflow-y: auto; padding: 4px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border-radius: 16px; background: #f2f4f8; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; }
.slot img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.slot.got { background: linear-gradient(180deg, #fff5d1, #ffe08a); box-shadow: 0 0 0 2px #ffc62e; }
.slot.lock img { filter: brightness(0) opacity(.25); }
.slot.lock span { opacity: .4; font-size: 18px; }

/* 토스트 */
#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); }
#toast img { width: 56px; height: 56px; border-radius: 14px; }
#toast b { display: block; font-size: 17px; }
#toast em { font-style: normal; font-weight: 700; font-size: 13px; color: #fff; background: var(--pink); padding: 2px 8px; border-radius: 8px; }
#toast em.dup { background: #ffb13b; }

/* 조작 힌트 */
#hint { position: fixed; left: 50%; bottom: calc(18% + var(--safe-b)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(2, 56px); gap: 6px; z-index: 6; pointer-events: none; animation: fade 3.2s both; }
.sw { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.85); position: relative; }
.sw::after { content: ''; position: absolute; left: 50%; top: 50%; border: 12px solid transparent; }
.sw.l { grid-area: 2/1; } .sw.r { grid-area: 2/3; } .sw.u { grid-area: 1/2; } .sw.d { grid-area: 2/2; }
.sw.l::after { border-right: 16px solid var(--ink); transform: translate(-75%, -50%); }
.sw.r::after { border-left: 16px solid var(--ink); transform: translate(-25%, -50%); }
.sw.u::after { border-bottom: 16px solid var(--ink); transform: translate(-50%, -75%); }
.sw.d::after { border-top: 16px solid var(--ink); transform: translate(-50%, -25%); }
@keyframes fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

#count { position: fixed; inset: 0; display: grid; place-items: center; font-size: 120px; font-weight: 700; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; z-index: 30; pointer-events: none; }
#nogl { display: none; }
body.nogl #nogl { display: grid; position: fixed; inset: 0; place-items: center; font-size: 24px; }

@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; } }

/* 보너스·위험·부활·상점 */
#streak { left: 50%; top: calc(58px + var(--safe-t)); transform: translateX(-50%); font-size: 22px; font-weight: 700; color: #ffe14d; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
#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; } }
#hud::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 90px 20px rgba(255, 40, 70, .55); opacity: 0; transition: opacity .2s; }
#hud.danger::before { opacity: 1; animation: blink .5s infinite alternate; }
@keyframes blink { to { opacity: .35; } }
.pw.rocket::before { content: ''; width: 14px; height: 26px; border-radius: 7px 7px 3px 3px; background: linear-gradient(#ff4d4d 0 35%, #fff 35%); box-shadow: 0 6px 0 -2px #ff9a3c; }
.pw.rocket { background: rgba(255, 122, 26, .8); }
.i-up { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 10px solid #2bc46a; }
.i-heart { width: 44px; height: 40px; background: #ff4d6d; clip-path: path('M22 40 L4 21 A10 10 0 0 1 22 7 A10 10 0 0 1 40 21 Z'); }
.revive-btn { position: relative; width: 170px; height: 170px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; box-shadow: var(--shadow); animation: pulse 1s infinite; }
.revive-btn svg { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); transform: rotate(-90deg); }
.revive-btn circle { fill: none; stroke: #ffc62e; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 0; }
#revive.run circle { animation: ring 4s linear forwards; }
@keyframes ring { to { stroke-dashoffset: 289; } }
.revive-btn span { display: flex; align-items: center; gap: 6px; font-size: 24px; font-weight: 700; }
.skip { margin-top: 26px; }
#shopList { display: flex; flex-direction: column; gap: 12px; }
.shop-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; background: #f2f4f8; }
.shop-row .pw { width: 52px; height: 52px; }
.shop-row .pw.magnet { background: rgba(255, 59, 92, .15); }
.shop-row .pw.double { background: rgba(124, 58, 237, .85); }
.pips { flex: 1; display: flex; gap: 5px; }
.pips b { flex: 1; height: 12px; border-radius: 6px; background: #d6dbe6; }
.pips b.on { background: linear-gradient(90deg, #2bc46a, #9be15d); }
.buy { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 14px; background: linear-gradient(180deg, #ffb13b, #ff7a1a); color: #fff; font-weight: 700; font-size: 17px; box-shadow: 0 4px 0 #c4520a; }
.buy.no { filter: grayscale(1); opacity: .5; }
.max { font-weight: 700; color: #2bc46a; padding: 0 10px; }
.gift-ic { width: 20px; height: 20px; border-radius: 5px; background: linear-gradient(90deg, transparent 40%, #ffc62e 40% 60%, transparent 60%), linear-gradient(180deg, #ffc62e 0 26%, transparent 26%), #35c7ff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.pop .coin-ic { width: 26px; height: 16px; margin-left: 6px; vertical-align: middle; }

.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 DEFENSE ===== */
html, body { background: #4fc3ff; }
.screen#menu { background: linear-gradient(180deg, rgba(20,60,110,.25), rgba(0,0,0,0) 35%, rgba(0,0,0,0) 55%, rgba(20,60,40,.5)); }
.best-m .sep { width: 1px; height: 16px; background: rgba(255,255,255,.4); }
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); }
.keys { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
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); flex: none; }
.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-heart.small, .pill .i-heart, .parts .i-heart, .pop .i-heart { width: 22px; height: 20px; clip-path: path('M11 20 L2 10.5 A5 5 0 0 1 11 3.5 A5 5 0 0 1 20 10.5 Z'); }
.i-lock { width: 16px; height: 18px; background: linear-gradient(#07131d, #07131d) 50% 100%/100% 62% no-repeat; position: relative; border-radius: 3px; }
.i-lock::before { content: ''; position: absolute; left: 3px; top: -1px; width: 6px; height: 8px; border: 2.5px solid #07131d; border-bottom: 0; border-radius: 6px 6px 0 0; }
.i-lock.open::before { left: 7px; }
.i-map { width: 22px; height: 20px; background: currentColor; clip-path: polygon(0 12%, 32% 0, 66% 12%, 100% 0, 100% 88%, 66% 100%, 32% 88%, 0 100%); }
.i-flagw { width: 18px; height: 20px; background: linear-gradient(90deg, #07131d 0 3px, transparent 3px), linear-gradient(#ff4d6d, #ff4d6d) 3px 0/15px 11px no-repeat; }
.i-paw { width: 30px; height: 30px; background: #07131d; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse cx='16' cy='22' rx='8' ry='6.5'/%3E%3Cellipse cx='7' cy='13' rx='3.2' ry='4'/%3E%3Cellipse cx='13' cy='8' rx='3.2' ry='4.2'/%3E%3Cellipse cx='19' cy='8' rx='3.2' ry='4.2'/%3E%3Cellipse cx='25' cy='13' rx='3.2' ry='4'/%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 32 32'%3E%3Cellipse cx='16' cy='22' rx='8' ry='6.5'/%3E%3Cellipse cx='7' cy='13' rx='3.2' ry='4'/%3E%3Cellipse cx='13' cy='8' rx='3.2' ry='4.2'/%3E%3Cellipse cx='19' cy='8' rx='3.2' ry='4.2'/%3E%3Cellipse cx='25' cy='13' rx='3.2' ry='4'/%3E%3C/svg%3E") center/contain no-repeat; }
.i-ff { width: 22px; height: 14px; background: currentColor; clip-path: polygon(0 0, 50% 50%, 50% 0, 100% 50%, 50% 100%, 50% 50%, 0 100%); }
.shake { animation: hofShake .3s; }
@keyframes hofShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* 메뉴: 맵·모드 */
#maps { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.map-chip { display: flex; align-items: center; gap: 7px; height: 48px; padding: 0 14px 0 8px; border-radius: 16px; background: rgba(255,255,255,.85); box-shadow: 0 4px 0 rgba(7,19,29,.18); font-size: 18px; font-weight: 700; transition: transform .1s; }
.map-chip b { font-family: 'Jua', 'Fredoka', sans-serif; font-weight: 400; }
.map-chip small { font-size: 13px; color: #1f8cf0; font-weight: 700; }
.map-chip.on { background: #fff; box-shadow: 0 0 0 3px #ffc62e, 0 5px 0 rgba(7,19,29,.2); transform: translateY(-2px); }
.map-chip.lock { opacity: .6; }
.map-chip.lock .map-ic { filter: grayscale(1); }
.map-ic { width: 32px; height: 32px; border-radius: 10px; position: relative; overflow: hidden; }
.m-yard .map-ic { background: linear-gradient(#bfe8ff 0 40%, #7ccf52 40%); }
.m-yard .map-ic::after { content: ''; position: absolute; left: 5px; right: 5px; bottom: 6px; height: 7px; border-radius: 3px; background: #d9775a; }
.m-park .map-ic { background: linear-gradient(#c4ecff 0 40%, #4bb85a 40%); }
.m-park .map-ic::after { content: ''; position: absolute; left: 10px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: #2f9a44; box-shadow: 0 9px 0 -5px #9a6a43; }
.m-beach .map-ic { background: linear-gradient(#a8e4ff 0 35%, #3cc8f0 35% 55%, #f1d79a 55%); }
.m-beach .map-ic::after { content: ''; position: absolute; left: 6px; top: 5px; width: 20px; height: 10px; border-radius: 10px 10px 0 0; background: repeating-linear-gradient(90deg, #ff5c7a 0 5px, #fff 5px 10px); }
.modes { display: flex; gap: 8px; }
.mode-chip { width: 64px; height: 40px; border-radius: 14px; background: rgba(255,255,255,.7); font-size: 22px; font-weight: 700; box-shadow: 0 3px 0 rgba(7,19,29,.15); }
.mode-chip.on { background: #07131d; color: #ffe14d; }

/* HUD */
#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; }
.wave-pill { display: flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(7,19,29,.6); color: #fff; font-size: 16px; }
.wave-pill small { opacity: .7; font-size: 12px; letter-spacing: 1px; }
.wave-pill b { font-size: 18px; }
.wave-pill span { opacity: .6; font-size: 14px; margin-left: -4px; }
#hud .tr { position: absolute; right: 14px; top: calc(14px + var(--safe-t)); display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
#hud .pill { min-width: 86px; }
#hud.low .pill.lives { background: rgba(255,59,107,.85); animation: pulse .6s infinite; }
#hud.ouch .pill.lives { animation: hofShake .3s 2; }
#hud #target { top: calc(92px + var(--safe-t)); }
#bossBar { position: absolute; left: 50%; top: calc(112px + var(--safe-t)); transform: translateX(-50%); width: min(60vw, 380px); height: 14px; border-radius: 8px; background: rgba(7,19,29,.6); box-shadow: 0 0 0 2px #b08cff; overflow: hidden; }
#bossBar span { position: absolute; inset: 0; width: calc(var(--p) * 100%); background: linear-gradient(90deg, #7a5cff, #ff5ca8); transition: width .1s; }
#hud button { pointer-events: auto; }
#hud .br { position: absolute; right: 16px; bottom: calc(16px + var(--safe-b)); display: flex; align-items: flex-end; gap: 12px; }
.ic-btn.speed { width: 58px; height: 46px; grid-auto-flow: column; gap: 3px; font-size: 14px; font-weight: 700; }
.ic-btn.speed.on { background: #ffe14d; }
.bark { position: relative; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(rgba(47,214,238,.95) calc(var(--p, 1) * 360deg), rgba(7,19,29,.55) 0); box-shadow: 0 5px 0 rgba(7,19,29,.25); display: grid; place-items: center; }
.bark img { width: 70px; height: 70px; object-fit: contain; border-radius: 50%; background: #fff; filter: grayscale(.8) brightness(.8); transition: filter .2s; }
.bark.ready img { filter: none; }
.bark.ready { animation: barkReady 1.2s ease-in-out infinite; }
@keyframes barkReady { 50% { box-shadow: 0 5px 0 rgba(7,19,29,.25), 0 0 0 6px rgba(47,214,238,.4); } }
.bark span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
#nextBar { position: absolute; left: 50%; bottom: calc(16px + var(--safe-b)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 26px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); animation: pop .3s; max-width: calc(100vw - 220px); }
.next-prev { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nw { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.nw small { font-size: 12px; opacity: .55; font-weight: 700; letter-spacing: 1px; }
.nw b { font-size: 26px; }
#nextIcons { display: flex; gap: 4px; overflow: hidden; }
.ni { display: flex; flex-direction: column; align-items: center; width: 52px; border-radius: 12px; background: #eef1f6; padding: 2px 0 3px; }
.ni img { width: 44px; height: 44px; }
.ni b { font-size: 14px; line-height: 1; }
.ni.boss { background: linear-gradient(#e9e0ff, #d4c6ff); box-shadow: inset 0 0 0 2px #7a5cff; }
.next-go { position: relative; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #ffb13b, #ff7a1a); box-shadow: 0 5px 0 #c4520a; flex: none; }
.next-go:active { transform: translateY(3px); box-shadow: 0 2px 0 #c4520a; }
.next-go span { position: absolute; right: -6px; top: -8px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: #07131d; font-size: 15px; font-weight: 700; display: grid; place-items: center; }
.next-go span:empty { display: none; }

/* 설치·타워 메뉴 */
.pop-menu { position: fixed; z-index: 8; left: 0; top: 0; }
#buildMenu { display: flex; gap: 6px; padding: 8px; border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); animation: pop .18s; }
#buildMenu[hidden] { display: none; }
.bm { position: relative; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 2px 6px; border-radius: 16px; background: #eef1f6; transition: transform .1s; }
.bm:hover { transform: translateY(-3px); background: #fff3c4; }
.bm img { width: 58px; height: 58px; }
.bm .nm { font-family: 'Jua', 'Fredoka', sans-serif; font-size: 12px; line-height: 1.1; text-align: center; min-height: 26px; display: flex; align-items: center; }
.cost { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 15px; }
.cost .coin-ic { width: 20px; height: 13px; }
.bm.no { filter: grayscale(.9); opacity: .55; }
.bm.move { width: 52px; justify-content: center; background: #d9f6ff; }
#towerMenu { width: 300px; padding: 12px; border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); animation: pop .18s; display: flex; flex-direction: column; gap: 8px; }
.tm-h { display: flex; align-items: center; gap: 10px; }
.tm-h img { width: 56px; height: 56px; border-radius: 14px; background: #eef1f6; }
.tm-h div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tm-h b { font-family: 'Jua', 'Fredoka', sans-serif; font-weight: 400; font-size: 21px; }
.pips { display: flex; gap: 4px; }
.pips i { width: 16px; height: 16px; 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%); }
.pips i.on { background: #ffc62e; }
.tm-x { width: 36px; height: 36px; border-radius: 12px; background: #eef1f6; display: grid; place-items: center; }
.tm-x .i-x { width: 14px; height: 14px; }
.tm-stats, .stats { display: flex; flex-wrap: wrap; gap: 4px; }
.st { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 4px; border-radius: 10px; background: #eef1f6; font-size: 13px; font-weight: 700; }
.st i { width: 15px; height: 15px; border-radius: 4px; }
.st-dmg i { background: #ff4d6d; clip-path: polygon(45% 0, 55% 0, 58% 65%, 80% 65%, 80% 75%, 58% 75%, 58% 100%, 42% 100%, 42% 75%, 20% 75%, 20% 65%, 42% 65%); }
.st-rate i { background: #ff7a1a; clip-path: polygon(0 0, 50% 50%, 50% 0, 100% 50%, 50% 100%, 50% 50%, 0 100%); }
.st-range i { border-radius: 50%; border: 3px solid #1fa8f0; }
.st-splash i { background: radial-gradient(circle, #ffa23a 30%, transparent 32%), radial-gradient(circle, transparent 50%, #ffa23a 52% 62%, transparent 64%); border-radius: 50%; }
.st-slow i { background: #ff5ca8; border-radius: 50% 50% 40% 40%; }
.st-chain i { background: #7a5cff; clip-path: polygon(40% 0, 100% 0, 60% 45%, 90% 45%, 20% 100%, 40% 55%, 10% 55%); }
.st-air i { background: #2fd6ee; clip-path: polygon(50% 0, 62% 38%, 100% 55%, 100% 68%, 62% 60%, 58% 85%, 72% 100%, 28% 100%, 42% 85%, 38% 60%, 0 68%, 0 55%, 38% 38%); }
.st-air { padding-right: 4px; }
.st-kill i { width: 14px; height: 13px; border-radius: 3px; background: #ff6b5a; }
.tm-ups { display: flex; gap: 6px; }
.up { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px 8px; border-radius: 16px; background: linear-gradient(180deg, #fff6d6, #ffe08a); box-shadow: 0 0 0 2px #ffc62e, 0 4px 0 rgba(7,19,29,.15); }
.up img { width: 60px; height: 60px; }
.up b { font-family: 'Jua', 'Fredoka', sans-serif; font-weight: 400; font-size: 15px; }
.up .stats { justify-content: center; }
.up .st { background: rgba(255,255,255,.75); font-size: 12px; }
.up .cost { margin-top: 2px; padding: 3px 12px; border-radius: 12px; background: linear-gradient(180deg, #ffb13b, #ff7a1a); color: #fff; box-shadow: 0 3px 0 #c4520a; }
.up.no { filter: grayscale(.85); opacity: .6; }
.up:active { transform: translateY(2px); }
.tm-row { display: flex; gap: 6px; }
.tm-row button { height: 44px; border-radius: 14px; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sell { flex: 1; background: #eef1f6; }
.tmode { width: 56px; background: #d9f6ff; position: relative; }
.tmode i { width: 24px; height: 24px; }
.tmode.m0 i { background: #1f8cf0; clip-path: polygon(0 35%, 60% 35%, 60% 10%, 100% 50%, 60% 90%, 60% 65%, 0 65%); }
.tmode.m1 i { background: #ff4d6d; clip-path: path('M12 22 L2 11.5 A5.5 5.5 0 0 1 12 4 A5.5 5.5 0 0 1 22 11.5 Z'); }
.tmode.m2 i { border-radius: 50%; border: 4px solid #2bc46a; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px #2bc46a; }

/* 결과 */
.mini small { font-size: 12px; opacity: .6; letter-spacing: 1px; }
.parts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.parts > span { display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 12px; background: #eef1f6; font-size: 16px; }
.parts .i-heart { width: 18px; height: 16px; background: #ff4d6d; clip-path: path('M9 16 L1.5 8.5 A4 4 0 0 1 9 2.8 A4 4 0 0 1 16.5 8.5 Z'); }
.clear-badge { display: flex; align-items: center; gap: 8px; padding: 4px 18px; border-radius: 999px; background: linear-gradient(90deg, #ffe14d, #ffb13b); font-size: 22px; font-weight: 700; letter-spacing: 2px; box-shadow: 0 3px 0 rgba(0,0,0,.15); animation: pulse 1s infinite; }
.unlock { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 14px; background: #d9f6ff; font-family: 'Jua', 'Fredoka', sans-serif; font-size: 18px; }
.over-card { width: 100%; max-width: 230px; 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; }

/* 떠오르는 숫자·배너 */
#pops { position: fixed; inset: 0; width: auto; height: auto; pointer-events: none; z-index: 6; }
#pops .pop { position: absolute; font-size: 22px; transform: translate(-50%, -50%); animation: popUp .9s ease-out forwards; display: flex; align-items: center; gap: 2px; }
#pops .pop.bone { color: #ffe14d; font-size: 19px; }
#pops .pop.heart { color: #ff4d6d; font-size: 30px; }
#pops .pop .coin-ic { width: 22px; height: 14px; margin-left: 3px; }
#pops .pop .i-heart { background: #ff4d6d; }
#pops .pop.center { left: 50%; top: 35%; font-size: 52px; color: #ffe14d; animation-duration: 1.2s; }
#pops .pop.center .coin-ic { width: 40px; height: 25px; }
#waveBanner { position: fixed; left: 50%; top: 28%; transform: translate(-50%, -50%); z-index: 7; pointer-events: none; opacity: 0; display: flex; flex-direction: column; align-items: center; font-size: 90px; font-weight: 700; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; line-height: .9; }
#waveBanner small { font-size: 26px; letter-spacing: 4px; -webkit-text-stroke: 2px var(--ink); }
#waveBanner em { font-style: normal; font-size: 34px; color: #b08cff; -webkit-text-stroke: 2px var(--ink); }
#waveBanner.show { animation: banner 2.2s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(.9); } }
body.playing #c { cursor: default; }

/* 작은 화면 */
@media (max-width: 640px), (max-height: 480px) {
  #towerMenu { left: 50% !important; top: auto !important; bottom: calc(8px + var(--safe-b)); transform: translateX(-50%); width: min(360px, calc(100vw - 16px)); }
  #nextBar { max-width: calc(100vw - 130px); left: 12px; transform: none; padding: 6px 6px 6px 10px; gap: 6px; }
  .ni { width: 42px; } .ni img { width: 36px; height: 36px; }
  .next-go { width: 56px; height: 56px; }
  .bark { width: 74px; height: 74px; } .bark img { width: 62px; height: 62px; }
  #hud .br { flex-direction: column-reverse; align-items: center; gap: 10px; right: 12px; }
  .bm { width: 58px; } .bm img { width: 46px; height: 46px; } .bm .nm { font-size: 10.5px; min-height: 24px; } .bm.move { width: 44px; }
  #buildMenu { gap: 4px; padding: 6px; }
  #hud #score { font-size: 28px; }
}
@media (max-width: 420px) {
  #buildMenu { flex-wrap: wrap; justify-content: center; width: 200px; }
  .bm { width: 58px; }
}
@media (max-height: 480px) {
  .menu-bottom { gap: 8px; }
  .logo-img { width: min(50vw, 300px); }
  .map-chip { height: 40px; }
}
@media (max-height: 480px) {
  #towerMenu { display: grid; grid-template-columns: 168px 1fr; grid-template-areas: "h u" "s u" "r u"; align-items: start; width: min(600px, calc(100vw - 200px)); padding: 8px; gap: 6px; left: calc(50% - 30px) !important; }
  .tm-h { grid-area: h; } .tm-stats { grid-area: s; } .tm-ups { grid-area: u; height: 100%; } .tm-row { grid-area: r; }
  .tm-h img { width: 40px; height: 40px; } .tm-h b { font-size: 16px; } .tm-x { width: 30px; height: 30px; }
  .tm-stats .st { font-size: 11px; }
  .up { padding: 4px 4px 6px; gap: 2px; } .up img { width: 42px; height: 42px; } .up b { font-size: 13px; } .up .st { font-size: 10.5px; }
  .tm-row button { height: 36px; font-size: 15px; } .tmode { width: 44px; }
  #nextBar { bottom: calc(8px + var(--safe-b)); }
  .bark { width: 64px; height: 64px; } .bark img { width: 54px; height: 54px; }
  #hud .br { bottom: calc(8px + var(--safe-b)); }
  #waveBanner { font-size: 64px; }
}
@media (max-width: 640px), (max-height: 480px) { body.tm-open #nextBar { visibility: hidden; } }
@media (max-height: 480px) {
  #menu { padding-top: calc(8px + var(--safe-t)); padding-bottom: calc(8px + var(--safe-b)); }
  .logo-img { width: min(38vw, 250px); }
  .best-m { margin-top: 2px; font-size: 14px; padding: 4px 12px; }
  .best-m b { font-size: 16px; }
  .menu-bottom { gap: 7px; }
  .menu-bottom .row { position: absolute; left: 14px; bottom: calc(10px + var(--safe-b)); }
  .studio { position: absolute; right: 14px; bottom: calc(14px + var(--safe-b)); }
  #menu .big-btn { height: 54px; font-size: 24px; min-width: 200px; }
  .mode-chip { height: 34px; }
}
@media (max-width: 420px) { .panel .row { gap: 8px; } .panel .row .mid-btn { padding: 0 13px; min-width: 48px; } }
#over { justify-content: flex-start; }
#over .panel { margin-top: auto; flex: none; }

/* ===== 확장: 속성·날씨·유물·스킬 아이콘 ===== */
.el { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.el::after { content: ''; width: 13px; height: 13px; background: #fff; }
.el-phys { background: #8d99a6; } .el-phys::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l9.5 5.5v11L12 23l-9.5-5.5v-11zM12 6l-5 3v6l5 3 5-3V9z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l9.5 5.5v11L12 23l-9.5-5.5v-11zM12 6l-5 3v6l5 3 5-3V9z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.el-water { background: #1f8cf0; } .el-water::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2C12 2 5 10 5 15a7 7 0 0 0 14 0C19 10 12 2 12 2z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2C12 2 5 10 5 15a7 7 0 0 0 14 0C19 10 12 2 12 2z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.el-fire { background: #ff7a1a; } .el-fire::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1c1 5 7 7 7 13a7 7 0 0 1-14 0c0-4 2-6 4-8 0 3 1 4 3 5 0-4-2-6 0-10z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1c1 5 7 7 7 13a7 7 0 0 1-14 0c0-4 2-6 4-8 0 3 1 4 3 5 0-4-2-6 0-10z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.el-elec { background: #f5c400; } .el-elec::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M14 1L4 14h7l-2 9 11-14h-7z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M14 1L4 14h7l-2 9 11-14h-7z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.el-ice { background: #3cc8f0; } .el-ice::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M11 1h2v22h-2zM1.6 6.5l1-1.7 19 11-1 1.7zM2.6 19.2l-1-1.7 19-11 1 1.7z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M11 1h2v22h-2zM1.6 6.5l1-1.7 19 11-1 1.7zM2.6 19.2l-1-1.7 19-11 1 1.7z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.el-poison { background: #4fbf2a; } .el-poison::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2a8 8 0 0 1 8 8c0 3-2 4.5-2 6.5V19H6v-2.5C6 14.5 4 13 4 10a8 8 0 0 1 8-8zm-3 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm6 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM8 20h8v2H8z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2a8 8 0 0 1 8 8c0 3-2 4.5-2 6.5V19H6v-2.5C6 14.5 4 13 4 10a8 8 0 0 1 8-8zm-3 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm6 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM8 20h8v2H8z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.wx, .rule { display: inline-block; width: 22px; height: 22px; flex: none; }
.wx-rain { background: #1f8cf0; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M7 15a5 5 0 0 1 .5-10A6 6 0 0 1 19 7a4 4 0 0 1 0 8zM7 17h2l-1 5H6zm5 0h2l-1 5h-2zm5 0h2l-1 5h-2z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M7 15a5 5 0 0 1 .5-10A6 6 0 0 1 19 7a4 4 0 0 1 0 8zM7 17h2l-1 5H6zm5 0h2l-1 5h-2zm5 0h2l-1 5h-2z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.wx-heat { background: #ff7a1a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10zM11 0h2v5h-2zm0 19h2v5h-2zM0 11h5v2H0zm19 0h5v2h-5zM3.5 2.1l3.5 3.5-1.4 1.4-3.5-3.5zm14.4 14.4l3.5 3.5-1.4 1.4-3.5-3.5zM2.1 20.5l3.5-3.5 1.4 1.4-3.5 3.5zM16.5 6.1L20 2.6l1.4 1.4-3.5 3.5z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10zM11 0h2v5h-2zm0 19h2v5h-2zM0 11h5v2H0zm19 0h5v2h-5zM3.5 2.1l3.5 3.5-1.4 1.4-3.5-3.5zm14.4 14.4l3.5 3.5-1.4 1.4-3.5-3.5zM2.1 20.5l3.5-3.5 1.4 1.4-3.5 3.5zM16.5 6.1L20 2.6l1.4 1.4-3.5 3.5z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.wx-fog { background: #8d99a6; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 6h20v2.5H2zm3 5h17v2.5H5zM2 16h16v2.5H2z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 6h20v2.5H2zm3 5h17v2.5H5zM2 16h16v2.5H2z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.wx-wind { background: #2fd6ee; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 8h13a3 3 0 1 0-3-3h2.4a.8.8 0 1 1 .6.8H2zm0 4h18a3 3 0 1 1-3 3h2.4a.8.8 0 1 0 .6-.8H2zm0 4h9v2.5H2z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 8h13a3 3 0 1 0-3-3h2.4a.8.8 0 1 1 .6.8H2zm0 4h18a3 3 0 1 1-3 3h2.4a.8.8 0 1 0 .6-.8H2zm0 4h9v2.5H2z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.wx-gold { background: #ffb800; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm-1 4v2a3 3 0 0 0 0 6h2a1 1 0 0 1 0 2H9v2h2v2h2v-2a3 3 0 0 0 0-6h-2a1 1 0 0 1 0-2h4V8h-2V6z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm-1 4v2a3 3 0 0 0 0 6h2a1 1 0 0 1 0 2H9v2h2v2h2v-2a3 3 0 0 0 0-6h-2a1 1 0 0 1 0-2h4V8h-2V6z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.wx-rush { background: #ff4d6d; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 4l9 8-9 8V4zm10 0l9 8-9 8V4z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 4l9 8-9 8V4zm10 0l9 8-9 8V4z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rule-pond { background: #1f8cf0; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 12c3-3 5-3 7 0s4 3 6 0 4-3 7 0v4c-3-3-5-3-7 0s-4 3-6 0-4-3-7 0z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 12c3-3 5-3 7 0s4 3 6 0 4-3 7 0v4c-3-3-5-3-7 0s-4 3-6 0-4-3-7 0z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rule-night { background: #7a5cff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M14 2a10 10 0 1 0 8 15A8 8 0 0 1 14 2z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M14 2a10 10 0 1 0 8 15A8 8 0 0 1 14 2z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rule-cold { background: #3cc8f0; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M11 1h2v22h-2zM1.6 6.5l1-1.7 19 11-1 1.7zM2.6 19.2l-1-1.7 19-11 1 1.7z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M11 1h2v22h-2zM1.6 6.5l1-1.7 19 11-1 1.7zM2.6 19.2l-1-1.7 19-11 1 1.7z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rule-none { background: #2bc46a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l3.4 7 7.6 1.1-5.5 5.4 1.3 7.5L12 18.4 5.2 22l1.3-7.5L1 9.1 8.6 8z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l3.4 7 7.6 1.1-5.5 5.4 1.3 7.5L12 18.4 5.2 22l1.3-7.5L1 9.1 8.6 8z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #eef1f6; position: relative; flex: none; }
.rl::after { content: ''; width: 60%; height: 60%; }
.rl-rate::after { background: #ff7a1a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 4l8 8-8 8 2.5 0 8-8-8-8zm9 0l8 8-8 8h2.5l8-8-8-8z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 4l8 8-8 8 2.5 0 8-8-8-8zm9 0l8 8-8 8h2.5l8-8-8-8z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl-range::after { background: #1fa8f0; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1a11 11 0 1 1 0 22 11 11 0 0 1 0-22zm0 3a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 3a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 3a2 2 0 1 0 0 4 2 2 0 0 0 0-4z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1a11 11 0 1 1 0 22 11 11 0 0 1 0-22zm0 3a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 3a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 3a2 2 0 1 0 0 4 2 2 0 0 0 0-4z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl-bone::after { background: #ffb800; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M5 6a3 3 0 0 1 5-1.5l5.5 5.5A3 3 0 1 1 19 14a3 3 0 1 1-2.5 4.5L11 13a3 3 0 1 1-4-2 3 3 0 0 1-2-5z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M5 6a3 3 0 0 1 5-1.5l5.5 5.5A3 3 0 1 1 19 14a3 3 0 1 1-2.5 4.5L11 13a3 3 0 1 1-4-2 3 3 0 0 1-2-5z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl-cheap::after { background: #2bc46a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 2h10l10 10-10 10L2 12zm5 3a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm9.3 4.3l1.4 1.4-7 7-1.4-1.4z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 2h10l10 10-10 10L2 12zm5 3a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm9.3 4.3l1.4 1.4-7 7-1.4-1.4z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl-heart::after { background: #ff4d6d; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 21L3 12a5.5 5.5 0 0 1 9-6.4A5.5 5.5 0 0 1 21 12z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 21L3 12a5.5 5.5 0 0 1 9-6.4A5.5 5.5 0 0 1 21 12z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl-xp::after { background: #7a5cff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l3.4 7 7.6 1.1-5.5 5.4 1.3 7.5L12 18.4 5.2 22l1.3-7.5L1 9.1 8.6 8z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l3.4 7 7.6 1.1-5.5 5.4 1.3 7.5L12 18.4 5.2 22l1.3-7.5L1 9.1 8.6 8z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl-bark::after { background: #2fd6ee; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 12c3-3 5-3 7 0s4 3 6 0 4-3 7 0v4c-3-3-5-3-7 0s-4 3-6 0-4-3-7 0z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 12c3-3 5-3 7 0s4 3 6 0 4-3 7 0v4c-3-3-5-3-7 0s-4 3-6 0-4-3-7 0z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl-boss::after { background: #b08cff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 19l1.5-12 5 5L12 4l3.5 8 5-5L22 19z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 19l1.5-12 5 5L12 4l3.5 8 5-5L22 19z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl-air::after { background: #2fd6ee; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M11 1h2l1 8 9 5v2l-9-2.5-.5 5.5 3 2v1.5L12 21l-4.5 1.5V21l3-2-.5-5.5L1 16v-2l9-5z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M11 1h2l1 8 9 5v2l-9-2.5-.5 5.5 3 2v1.5L12 21l-4.5 1.5V21l3-2-.5-5.5L1 16v-2l9-5z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl-crit::after { background: #2bc46a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 11a5 5 0 1 1 1-5 5 5 0 1 1 5 6 5 5 0 1 1-6 6 5 5 0 1 1-6-6 5 5 0 1 1 6-1zM11 13h2v10h-2z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 11a5 5 0 1 1 1-5 5 5 0 1 1 5 6 5 5 0 1 1-6 6 5 5 0 1 1-6-6 5 5 0 1 1 6-1zM11 13h2v10h-2z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl-gift::after { background: #ff5ca8; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 8h20v4H2zm1 5h18v9H3zM11 8h2v14h-2zM7 3a2.5 2.5 0 0 1 5 5H8a2.5 2.5 0 0 1-1-5zm10 0a2.5 2.5 0 0 0-5 5h4a2.5 2.5 0 0 0 1-5z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M2 8h20v4H2zm1 5h18v9H3zM11 8h2v14h-2zM7 3a2.5 2.5 0 0 1 5 5H8a2.5 2.5 0 0 1-1-5zm10 0a2.5 2.5 0 0 0-5 5h4a2.5 2.5 0 0 0 1-5z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl-eye::after { background: #7a5cff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 5c6 0 10 7 10 7s-4 7-10 7S2 12 2 12s4-7 10-7zm0 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 5c6 0 10 7 10 7s-4 7-10 7S2 12 2 12s4-7 10-7zm0 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl-sell::after { background: #ffb800; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm-1 4v2a3 3 0 0 0 0 6h2a1 1 0 0 1 0 2H9v2h2v2h2v-2a3 3 0 0 0 0-6h-2a1 1 0 0 1 0-2h4V8h-2V6z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm-1 4v2a3 3 0 0 0 0 6h2a1 1 0 0 1 0 2H9v2h2v2h2v-2a3 3 0 0 0 0-6h-2a1 1 0 0 1 0-2h4V8h-2V6z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl.el-phys { background: #8d99a6; } .rl.el-phys::after { background: #fff; width: 60%; height: 60%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l9.5 5.5v11L12 23l-9.5-5.5v-11zM12 6l-5 3v6l5 3 5-3V9z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l9.5 5.5v11L12 23l-9.5-5.5v-11zM12 6l-5 3v6l5 3 5-3V9z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl.el-water { background: #1f8cf0; } .rl.el-water::after { background: #fff; width: 60%; height: 60%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2C12 2 5 10 5 15a7 7 0 0 0 14 0C19 10 12 2 12 2z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2C12 2 5 10 5 15a7 7 0 0 0 14 0C19 10 12 2 12 2z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl.el-fire { background: #ff7a1a; } .rl.el-fire::after { background: #fff; width: 60%; height: 60%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1c1 5 7 7 7 13a7 7 0 0 1-14 0c0-4 2-6 4-8 0 3 1 4 3 5 0-4-2-6 0-10z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1c1 5 7 7 7 13a7 7 0 0 1-14 0c0-4 2-6 4-8 0 3 1 4 3 5 0-4-2-6 0-10z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl.el-elec { background: #f5c400; } .rl.el-elec::after { background: #fff; width: 60%; height: 60%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M14 1L4 14h7l-2 9 11-14h-7z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M14 1L4 14h7l-2 9 11-14h-7z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl.el-ice { background: #3cc8f0; } .rl.el-ice::after { background: #fff; width: 60%; height: 60%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M11 1h2v22h-2zM1.6 6.5l1-1.7 19 11-1 1.7zM2.6 19.2l-1-1.7 19-11 1 1.7z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M11 1h2v22h-2zM1.6 6.5l1-1.7 19 11-1 1.7zM2.6 19.2l-1-1.7 19-11 1 1.7z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.rl.el-poison { background: #4fbf2a; } .rl.el-poison::after { background: #fff; width: 60%; height: 60%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2a8 8 0 0 1 8 8c0 3-2 4.5-2 6.5V19H6v-2.5C6 14.5 4 13 4 10a8 8 0 0 1 8-8zm-3 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm6 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM8 20h8v2H8z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2a8 8 0 0 1 8 8c0 3-2 4.5-2 6.5V19H6v-2.5C6 14.5 4 13 4 10a8 8 0 0 1 8-8zm-3 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm6 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM8 20h8v2H8z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.ski { display: block; width: 60%; height: 60%; background: #fff; }
.ski-dash { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M13 4l9 8-9 8v-5H2V9h11z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M13 4l9 8-9 8v-5H2V9h11z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.ski-rain { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M4 2a2 2 0 0 1 3 1l2 2a2 2 0 1 1-2 2L5 5a2 2 0 0 1-1-3zm9 4a2 2 0 0 1 3 1l2 2a2 2 0 1 1-2 2l-2-2a2 2 0 0 1-1-3zM6 13a2 2 0 0 1 3 1l2 2a2 2 0 1 1-2 2l-2-2a2 2 0 0 1-1-3zm9 3a2 2 0 0 1 3 1l2 2a2 2 0 1 1-2 2l-2-2a2 2 0 0 1-1-3z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M4 2a2 2 0 0 1 3 1l2 2a2 2 0 1 1-2 2L5 5a2 2 0 0 1-1-3zm9 4a2 2 0 0 1 3 1l2 2a2 2 0 1 1-2 2l-2-2a2 2 0 0 1-1-3zM6 13a2 2 0 0 1 3 1l2 2a2 2 0 1 1-2 2l-2-2a2 2 0 0 1-1-3zm9 3a2 2 0 0 1 3 1l2 2a2 2 0 1 1-2 2l-2-2a2 2 0 0 1-1-3z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.ski-bark { width: 86%; height: 86%; background: url(ui/face.png) center/contain no-repeat; border-radius: 50%; }
.st-poison i { background: #4fbf2a !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2a8 8 0 0 1 8 8c0 3-2 4.5-2 6.5V19H6v-2.5C6 14.5 4 13 4 10a8 8 0 0 1 8-8zm-3 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm6 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM8 20h8v2H8z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2a8 8 0 0 1 8 8c0 3-2 4.5-2 6.5V19H6v-2.5C6 14.5 4 13 4 10a8 8 0 0 1 8-8zm-3 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm6 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM8 20h8v2H8z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.st-stun i { background: #ffb800 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l3.4 7 7.6 1.1-5.5 5.4 1.3 7.5L12 18.4 5.2 22l1.3-7.5L1 9.1 8.6 8z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l3.4 7 7.6 1.1-5.5 5.4 1.3 7.5L12 18.4 5.2 22l1.3-7.5L1 9.1 8.6 8z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.st-burn i { background: #ff7a1a !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1c1 5 7 7 7 13a7 7 0 0 1-14 0c0-4 2-6 4-8 0 3 1 4 3 5 0-4-2-6 0-10z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1c1 5 7 7 7 13a7 7 0 0 1-14 0c0-4 2-6 4-8 0 3 1 4 3 5 0-4-2-6 0-10z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.st-bone i { background: #ffb800 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M5 6a3 3 0 0 1 5-1.5l5.5 5.5A3 3 0 1 1 19 14a3 3 0 1 1-2.5 4.5L11 13a3 3 0 1 1-4-2 3 3 0 0 1-2-5z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M5 6a3 3 0 0 1 5-1.5l5.5 5.5A3 3 0 1 1 19 14a3 3 0 1 1-2.5 4.5L11 13a3 3 0 1 1-4-2 3 3 0 0 1-2-5z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.st-bank i { background: #2bc46a !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l11 6v2H1V7zM3 10h3v8H3zm5 0h3v8H8zm5 0h3v8h-3zm5 0h3v8h-3zM1 19h22v3H1z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l11 6v2H1V7zM3 10h3v8H3zm5 0h3v8H8zm5 0h3v8h-3zm5 0h3v8h-3zM1 19h22v3H1z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.st-eye i { background: #7a5cff !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 5c6 0 10 7 10 7s-4 7-10 7S2 12 2 12s4-7 10-7zm0 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 5c6 0 10 7 10 7s-4 7-10 7S2 12 2 12s4-7 10-7zm0 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.st-spread i { background: #4fbf2a !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 9a3 3 0 1 1 0 6 3 3 0 0 1 0-6zM4 3a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4zM4 17a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 9a3 3 0 1 1 0 6 3 3 0 0 1 0-6zM4 3a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4zM4 17a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.st-syn i { background: #ffb800 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M8 11h8v2H8zM6 7h4v2H6a3 3 0 0 0 0 6h4v2H6A5 5 0 0 1 6 7zm8 0h4a5 5 0 0 1 0 10h-4v-2h4a3 3 0 0 0 0-6h-4z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M8 11h8v2H8zM6 7h4v2H6a3 3 0 0 0 0 6h4v2H6A5 5 0 0 1 6 7zm8 0h4a5 5 0 0 1 0 10h-4v-2h4a3 3 0 0 0 0-6h-4z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.st-cheer i { background: #ff7aa8 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 21L3 12a5.5 5.5 0 0 1 9-6.4A5.5 5.5 0 0 1 21 12z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 21L3 12a5.5 5.5 0 0 1 9-6.4A5.5 5.5 0 0 1 21 12z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.st-hill i { background: #2bc46a !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M1 21l8-14 4 6 3-4 7 12z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M1 21l8-14 4 6 3-4 7 12z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.i-move { display: inline-block; width: 22px; height: 22px; background: #07131d; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l4 4h-3v6h6V8l4 4-4 4v-3h-6v6h3l-4 4-4-4h3v-6H5v3l-4-4 4-4v3h6V5H8z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l4 4h-3v6h6V8l4 4-4 4v-3h-6v6h3l-4 4-4-4h3v-6H5v3l-4-4 4-4v3h6V5H8z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.star { display: inline-block; width: 16px; height: 16px; background: #ffc62e; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l3.4 7 7.6 1.1-5.5 5.4 1.3 7.5L12 18.4 5.2 22l1.3-7.5L1 9.1 8.6 8z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 1l3.4 7 7.6 1.1-5.5 5.4 1.3 7.5L12 18.4 5.2 22l1.3-7.5L1 9.1 8.6 8z%27/%3E%3C/svg%3E") center/contain no-repeat; }
.syn-wet i { background: #f5c400 !important; } .syn-toxfire i { background: #b08cff !important; } .syn-pond i, .syn-ice i { background: #1f8cf0 !important; }

/* 메뉴: 난이도 */
.modes { align-items: center; }
.msep { width: 1px; height: 26px; background: rgba(7,19,29,.25); margin: 0 4px; }
.diff-chip { height: 40px; padding: 0 10px; border-radius: 14px; background: rgba(255,255,255,.7); box-shadow: 0 3px 0 rgba(7,19,29,.15); display: inline-flex; align-items: center; gap: 1px; }
.diff-chip .star { width: 14px; height: 14px; background: #c3ccd8; }
.diff-chip.on { background: #07131d; }
.diff-chip.on .star { background: #ffe14d; }
.map-chip .rule { width: 18px; height: 18px; margin-left: -2px; }
#maps { max-width: 640px; }

/* HUD 추가 */
.wave-pill #wxPill { display: inline-flex; margin-left: 4px; opacity: 1; }
.wave-pill #wxPill[hidden] { display: none; }
.wave-pill .wx { width: 18px; height: 18px; }
#relicBar { position: absolute; left: 14px; top: calc(70px + var(--safe-t)); display: flex; flex-direction: column; gap: 4px; }
.rb { position: relative; }
.rb .rl { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 2px 0 rgba(7,19,29,.15); }
.rb .rl:not([class*="el-"]) { background: rgba(255,255,255,.88); }
.rb .rl.el-water, .rb .rl.el-fire, .rb .rl.el-elec, .rb .rl.el-ice, .rb .rl.el-poison, .rb .rl.el-phys { box-shadow: 0 2px 0 rgba(7,19,29,.2); }
.rb b { position: absolute; right: -4px; bottom: -4px; min-width: 16px; height: 16px; border-radius: 8px; background: #07131d; color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 3px; }
.skills { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.skrow { display: flex; align-items: flex-end; gap: 8px; }
.hero-pill { position: relative; display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px 0 3px; border-radius: 18px; background: rgba(7,19,29,.65); color: #fff; font-weight: 700; font-size: 16px; }
.hero-pill img { width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.hero-pill b::before { content: 'LV'; font-size: 10px; opacity: .7; margin-right: 2px; }
.hero-pill i { position: absolute; left: 36px; right: 10px; bottom: 4px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; }
.hero-pill i::after { content: ''; position: absolute; inset: 0; width: calc(var(--p, 0) * 100%); background: #ffe14d; }
.hero-pill em { display: none; position: absolute; right: -8px; top: -8px; width: 22px; height: 22px; border-radius: 50%; background: #ff4d6d; font-style: normal; display: none; place-items: center; font-size: 16px; }
.hero-pill.pts em { display: grid; animation: pulse .8s infinite; }
.hero-pill.pts { box-shadow: 0 0 0 3px #ffe14d; }
.sk { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(rgba(47,214,238,.95) calc(var(--p, 1) * 360deg), rgba(7,19,29,.6) 0); box-shadow: 0 4px 0 rgba(7,19,29,.25); }
.sk::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #1f6fb0; }
.sk .ski { position: relative; z-index: 1; }
.sk.big { width: 84px; height: 84px; }
.sk.big::before { background: #fff; }
#sk1 { margin-bottom: 26px; }
.sk.lock { filter: grayscale(1); opacity: .45; }
.sk:not(.ready) .ski { opacity: .45; }
.sk.ready { animation: barkReady 1.4s ease-in-out infinite; }
.sk.aim { box-shadow: 0 0 0 4px #ffe14d, 0 4px 0 rgba(7,19,29,.25); }
.sk span { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.sk.big span { font-size: 30px; }
.sk small { position: absolute; z-index: 2; right: -2px; bottom: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: #ffe14d; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.sk small:empty { display: none; }
body.aiming #c { cursor: crosshair; }
@keyframes barkReady { 50% { box-shadow: 0 4px 0 rgba(7,19,29,.25), 0 0 0 6px rgba(47,214,238,.4); } }

/* 설치 메뉴 그리드 */
#buildMenu { display: grid; grid-template-columns: repeat(6, auto); }
#buildMenu.path { grid-template-columns: repeat(2, auto); }
.bm .el { position: absolute; left: 4px; top: 4px; width: 17px; height: 17px; }
.bm .el::after { width: 11px; height: 11px; }

/* 타워 메뉴 추가 */
.tm-stats .el, .stats .el { width: 18px; height: 18px; } .tm-stats .el::after, .stats .el::after { width: 11px; height: 11px; }
.tmove { width: 50px; background: #eef1f6; position: relative; flex-direction: column; gap: 0 !important; }
.tmove small { font-size: 10px; line-height: 1; }
.tmode.m3 i { border-radius: 50%; border: 4px solid #2bc46a; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px #2bc46a; }
.tmode.m2 i { background: #ff4d6d; clip-path: path('M12 22 L2 11.5 A5.5 5.5 0 0 1 12 4 A5.5 5.5 0 0 1 22 11.5 Z'); border: 0; box-shadow: none; }
.tmode.m1 i { background: #8d99a6; clip-path: polygon(100% 35%, 40% 35%, 40% 10%, 0 50%, 40% 90%, 40% 65%, 100% 65%); border: 0; box-shadow: none; }
.tmode.m0 i { border: 0; box-shadow: none; }
body.moving #c { cursor: copy; }

/* 스킬 메뉴 */
#skillMenu { right: 16px !important; left: auto !important; bottom: calc(170px + var(--safe-b)); top: auto !important; width: 290px; padding: 12px; border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); animation: pop .18s; display: flex; flex-direction: column; gap: 8px; }
#skillMenu[hidden] { display: none; }
.sm-h { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.sm-h b { flex: 1; }
.sm-pts { color: #ff4d6d; font-weight: 700; }
.sm-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: #eef1f6; }
.smi { width: 46px; height: 46px; border-radius: 50%; background: #1f6fb0; flex: none; display: grid; place-items: center; }
.sm-mid { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.sm-mid b { font-family: 'Jua', 'Fredoka', sans-serif; font-weight: 400; font-size: 16px; }
.sm-up { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(180deg, #ffb13b, #ff7a1a); color: #fff; font-size: 26px; font-weight: 700; box-shadow: 0 3px 0 #c4520a; }
.sm-up.no { filter: grayscale(1); opacity: .35; }

/* 다음 웨이브 */
.ni { position: relative; }
.ni .wk { position: absolute; left: 1px; top: 1px; display: flex; gap: 1px; }
.ni .wk .el { width: 14px; height: 14px; } .ni .wk .el::after { width: 9px; height: 9px; }
.ni.inv img { opacity: .55; }
.ni.wxn { justify-content: center; background: #fff3c4; padding: 6px 2px; }
.ni.wxn .wx { width: 28px; height: 28px; }
.ni.wxn b { font-size: 11px; font-family: 'Jua', sans-serif; font-weight: 400; margin-top: 2px; }
#waveBanner .wxb { display: flex; align-items: center; gap: 8px; font-size: 28px; color: #fff; -webkit-text-stroke: 1.5px var(--ink); margin-top: 6px; }
#waveBanner .wxb .wx { width: 34px; height: 34px; }
#pops .pop.lv { color: #ffe14d; font-size: 30px; }
#pops .pop.crit { color: #ff4d6d; font-size: 20px; }

/* 유물 카드 */
#relic { justify-content: center; gap: 14px; padding: 16px; z-index: 20; }
#relic .up-sub { color: #fff; font-family: 'Jua', 'Fredoka', sans-serif; font-size: 22px; text-shadow: 0 2px 0 rgba(7,19,29,.5); }
#relicCards { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; max-width: 720px; }
.up-card.relic { position: relative; width: 180px; min-height: 200px; border-radius: 24px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; box-shadow: 0 0 0 4px #ffc62e, 0 8px 0 rgba(7,19,29,.25); animation: pop .35s both; transition: transform .12s; }
.up-card.relic:nth-child(2) { animation-delay: .08s; } .up-card.relic:nth-child(3) { animation-delay: .16s; }
.up-card.relic:hover { transform: translateY(-6px) rotate(-1deg); }
.up-card.relic b { font-family: 'Jua', 'Fredoka', sans-serif; font-weight: 400; font-size: 22px; }
.up-card.relic span { font-size: 24px; font-weight: 700; color: #2bc46a; }
.up-card.relic em { position: absolute; right: 12px; top: 10px; font-style: normal; font-weight: 700; color: #7a5cff; }

/* 결과 추가 */
.rank-row { display: flex; align-items: center; gap: 8px; }
.diff-o { display: flex; gap: 1px; }
#moreGames:empty { display: none; }

@media (max-width: 640px), (max-height: 480px) {
  #buildMenu { grid-template-columns: repeat(5, auto); }
  #buildMenu.path { grid-template-columns: repeat(2, auto); }
  .sk { width: 48px; height: 48px; } .sk.big { width: 70px; height: 70px; }
  #sk1 { margin-bottom: 20px; }
  .hero-pill { height: 32px; font-size: 14px; } .hero-pill img { width: 26px; height: 26px; }
  #skillMenu { bottom: calc(140px + var(--safe-b)); width: min(290px, calc(100vw - 24px)); right: 12px !important; }
  .up-card.relic { width: 150px; min-height: 160px; padding: 10px; } .rl { width: 52px; height: 52px; }
  #relicBar { top: calc(64px + var(--safe-t)); } .rb .rl { width: 28px; height: 28px; }
}
@media (max-width: 420px) {
  #buildMenu { width: auto; grid-template-columns: repeat(4, auto); }
  .modes { flex-wrap: wrap; justify-content: center; }
  .msep { display: none; }
}
@media (max-height: 480px) {
  .sk { width: 44px; height: 44px; } .sk.big { width: 60px; height: 60px; }
  #sk1 { margin-bottom: 16px; }
  #skillMenu { bottom: auto; top: 8px !important; }
}

#hud .tr .speed { pointer-events: auto; }
.m-night .map-ic { background: linear-gradient(#1d2448 0 45%, #2f5a4a 45%); }
.m-night .map-ic::after { content: ''; position: absolute; left: 17px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: #fff3c4; box-shadow: -3px 1px 0 0 #1d2448 inset; }
.m-snow .map-ic { background: linear-gradient(#dcefff 0 40%, #f4f8ff 40%); }
.m-snow .map-ic::after { content: ''; position: absolute; left: 9px; top: 6px; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 18px solid #2f8a5a; }
@media (max-width: 640px), (max-height: 480px) { body.tm-open #hud .br, body.tm-open #relicBar { visibility: hidden; } #towerMenu { z-index: 9; } }
#skillMenu { z-index: 9; }

/* 한 번 탭 강화 */
#upBadges { position: absolute; inset: 0; pointer-events: none; }
.upb { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 3px; height: 34px; padding: 0 11px 0 7px; border-radius: 17px; background: linear-gradient(180deg, #5be36b, #2bc46a); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 3px 0 #1d8a49, 0 4px 10px rgba(7,19,29,.25); pointer-events: auto; will-change: transform; }
.upb::before { content: ''; position: absolute; inset: -10px -6px; }
.upb.choose { background: linear-gradient(180deg, #ffb13b, #ff7a1a); box-shadow: 0 3px 0 #c4520a, 0 4px 10px rgba(7,19,29,.25); }
.upb.sup { background: linear-gradient(180deg, #c8a8ff, #7a5cff); box-shadow: 0 3px 0 #4a34b0, 0 0 12px rgba(255,225,77,.8); }
.upb:active { filter: brightness(.9); }
.i-upa { width: 16px; height: 16px; background: #fff; clip-path: polygon(50% 0, 100% 50%, 68% 50%, 68% 100%, 32% 100%, 32% 50%, 0 50%); animation: upaBob .8s ease-in-out infinite; }
@keyframes upaBob { 50% { transform: translateY(-2px); } }
body.mobile .upb { height: 40px; font-size: 16px; padding: 0 13px 0 9px; border-radius: 20px; }
.pips i.sup.on { background: linear-gradient(135deg, #c8a8ff, #7a5cff); }
.up.evo { background: linear-gradient(180deg, #efe6ff, #c8a8ff); box-shadow: 0 0 0 2px #7a5cff, 0 4px 0 rgba(7,19,29,.15); }
.up.evo .cost { background: linear-gradient(180deg, #a98bff, #7a5cff); box-shadow: 0 3px 0 #4a34b0; }
.up.evo.lock { filter: grayscale(.6); opacity: .75; }
.up.evo.lock .cost { background: #8d99a6; box-shadow: none; gap: 5px; }
.up.evo.lock .i-lock, .up.evo.lock .i-lock::before { border-color: #fff; }
.up.evo.lock .i-lock { background: linear-gradient(#fff, #fff) 50% 100%/100% 62% no-repeat; }
.tm-ups { flex-wrap: nowrap; }
.tm-ups .up.br { min-width: 0; }
#waveBanner .evob { margin-top: 6px; padding: 4px 16px; border-radius: 999px; font-size: 26px; color: #fff; background: linear-gradient(90deg, #7a5cff, #ff5ca8); -webkit-text-stroke: 0; letter-spacing: 2px; }
#towerMenu:has(.up.br:nth-child(3)) { width: 372px; }
#towerMenu:has(.up.br:nth-child(3)) .up img { width: 50px; height: 50px; }
#towerMenu:has(.up.br:nth-child(3)) .up .st { font-size: 11px; }
