@charset "UTF-8";
/* 쌀먹 클리커 v2 — 모바일 방치형 게임 UI. 게임 규칙은 #ssalmeok-root 아래로 스코프, 페이지 장식은 .sm-page 아래. */
html, body.sm-page { height: 100%; }
body.sm-page {
  margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100%; overflow: hidden;
  background: radial-gradient(1200px 700px at 20% 10%, #3b1f6e 0%, transparent 60%),
              radial-gradient(1000px 700px at 85% 90%, #0d4a6b 0%, transparent 60%), #120c26;
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
body.sm-page .sm-deco { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
body.sm-page .sm-deco i { position: absolute; width: 90px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, #fff, #e9e2cf); opacity: .07; transform: rotate(20deg); animation: sm-drift 14s ease-in-out infinite alternate; }
body.sm-page .sm-deco i:nth-child(1) { left: 6%; top: 12%; }
body.sm-page .sm-deco i:nth-child(2) { left: 14%; top: 64%; width: 140px; height: 190px; animation-delay: -4s; }
body.sm-page .sm-deco i:nth-child(3) { right: 9%; top: 18%; width: 120px; height: 160px; animation-delay: -7s; }
body.sm-page .sm-deco i:nth-child(4) { right: 15%; top: 70%; animation-delay: -2s; }
body.sm-page .sm-deco i:nth-child(5) { left: 30%; top: 4%; width: 50px; height: 66px; }
body.sm-page .sm-deco i:nth-child(6) { right: 32%; bottom: 3%; width: 60px; height: 80px; animation-delay: -9s; }
body.sm-page #ssal-acct-line { margin: 6px auto 4px !important; color: #cfc8ef; flex: none; }

#ssalmeok-root {
  --bg: #171033; --card: #241a4a; --card2: #2e2260; --line: #463785; --text: #f4f1ff; --muted: #a9a0d6;
  --gold: #ffcf3f; --dia: #63f0ff; --up: #ff5d6c; --down: #4d9bff; --good: #3ddc97; --warn: #ffb020; --pink: #ff5fd2;
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; max-width: 430px; flex: 1 1 auto; min-height: 0; height: 100%;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.4; text-align: left;
  -webkit-tap-highlight-color: transparent; user-select: none;
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
@media (min-width: 600px) and (min-height: 600px) {
  #ssalmeok-root { height: min(844px, calc(100vh - 70px)); flex: none; max-width: 400px; border-radius: 36px; border: 10px solid #0b0818;
    box-shadow: 0 0 0 2px #5b46a8, 0 30px 80px rgba(0,0,0,.6), 0 0 120px rgba(255,95,210,.18); }
}
#ssalmeok-root *, #ssalmeok-root *::before, #ssalmeok-root *::after { box-sizing: border-box; }
#ssalmeok-root .sm-hidden { display: none !important; }
#ssalmeok-root h2 { margin: 2px 2px 10px; font-size: 17px; font-weight: 900; }
#ssalmeok-root h3 { margin: 0 0 8px; font-size: 14px; }
#ssalmeok-root h2 small, #ssalmeok-root h3 small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
#ssalmeok-root .sm-muted { color: var(--muted); }
#ssalmeok-root .sm-small { font-size: 12px; }

#ssalmeok-root .sm-stage { position: relative; height: 100%; display: flex; flex-direction: column; }

/* 상단 바 */
#ssalmeok-root .sm-topbar { flex: none; display: flex; align-items: center; gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
  background: linear-gradient(#1d1442, #171033); border-bottom: 2px solid #2e2260; z-index: 3; }
#ssalmeok-root .sm-lv { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; }
#ssalmeok-root .sm-lv-ring { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px;
  background: radial-gradient(#ffe7a0, #ff9f1c); color: #4a2500; border: 3px solid #fff3c4; box-shadow: 0 2px 0 #b35c00; }
#ssalmeok-root .sm-lv-ring::before { content: "Lv"; font-size: 8px; position: absolute; transform: translateY(-11px); }
#ssalmeok-root .sm-badge { font-size: 10px; color: var(--muted); line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#ssalmeok-root .sm-badge b { color: var(--gold); }
#ssalmeok-root .sm-cur { flex: none; display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px 0 4px; border-radius: 15px;
  background: #0e0a22; border: 2px solid #3a2c75; font-weight: 900; font-size: 13px; max-width: 128px; }
#ssalmeok-root .sm-cur b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ssalmeok-root .sm-v-won { color: var(--gold); }
#ssalmeok-root .sm-v-dia { color: var(--dia); }
#ssalmeok-root .sm-ico-gold, #ssalmeok-root .sm-ico-dia { flex: none; display: inline-block; width: 20px; height: 20px; }
#ssalmeok-root .sm-ico-gold { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6c8, #ffcf3f 45%, #d68a00); box-shadow: inset 0 0 0 2px #b36b00; }
#ssalmeok-root .sm-ico-gold::after { content: "G"; display: block; text-align: center; font: 900 11px/20px system-ui; color: #8a4b00; }
#ssalmeok-root .sm-ico-dia { background: linear-gradient(135deg, #e6fdff, #63f0ff 50%, #2a8cff); clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%); }
#ssalmeok-root .sm-sfx { flex: none; width: 32px; height: 32px; border-radius: 10px; border: 2px solid #3a2c75; background: #0e0a22; font-size: 15px; cursor: pointer; padding: 0; }

/* 이벤트 배너 */
#ssalmeok-root .sm-event-banner { position: absolute; top: 58px; left: 10px; right: 10px; z-index: 4; padding: 7px 10px 9px; border-radius: 12px; font-size: 12px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; background: #2e2260; border: 2px solid var(--line); overflow: hidden; animation: sm-slideIn .3s; }
#ssalmeok-root .sm-event-title { font-weight: 900; }
#ssalmeok-root .sm-event-desc { color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#ssalmeok-root .sm-event-timer { font-weight: 800; }
#ssalmeok-root .sm-event-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: currentColor; }
#ssalmeok-root .sm-ev-surge, #ssalmeok-root .sm-ev-hot { border-color: var(--up); color: #ffd3d8; }
#ssalmeok-root .sm-ev-crash { border-color: var(--down); color: #d3e6ff; }
#ssalmeok-root .sm-ev-maint { border-color: var(--warn); color: #ffe7b8; }

/* 씬 */
#ssalmeok-root .sm-scene { position: relative; flex: 0 0 auto; height: 38%; min-height: 220px; max-height: 360px; overflow: hidden; }
#ssalmeok-root .sm-farm-btn { all: unset; display: block; width: 100%; height: 100%; cursor: pointer; position: relative; touch-action: manipulation; }
#ssalmeok-root .sm-farm-btn:focus-visible { outline: 3px solid var(--dia); outline-offset: -3px; }
#ssalmeok-root .sm-art { display: block; width: 100%; height: 100%; }
#ssalmeok-root .sm-tap-hint { position: absolute; left: 26%; top: 22%; font: 900 15px system-ui; color: #fff; background: var(--pink); padding: 3px 10px; border-radius: 12px;
  box-shadow: 0 3px 0 #a2207f; animation: sm-bob 1.2s ease-in-out infinite; pointer-events: none; }
#ssalmeok-root .sm-tap-hint::after { content: ""; position: absolute; left: 50%; bottom: -6px; border: 6px solid transparent; border-top-color: var(--pink); border-bottom: 0; transform: translateX(-50%); }
#ssalmeok-root .sm-scene-hud { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 5px; flex-wrap: wrap; pointer-events: none; }
#ssalmeok-root .sm-chip { background: rgba(10,7,26,.78); border: 1px solid #4a3a8c; border-radius: 10px; padding: 2px 8px; font-size: 12px; }
#ssalmeok-root .sm-chip b { color: var(--dia); }
#ssalmeok-root .sm-sub-hint { position: absolute; left: 8px; right: 8px; bottom: 38px; margin: 0; font-size: 11.5px; text-align: center; pointer-events: none;
  background: rgba(10,7,26,.6); border-radius: 10px; padding: 3px 8px; color: #e7e1ff; }
#ssalmeok-root .sm-alert { position: absolute; left: 10px; right: 10px; top: 38%; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 12px; background: rgba(40,12,30,.94); border: 2px solid var(--up); font-size: 13px; font-weight: 700; animation: sm-pop .3s; }
#ssalmeok-root #sm-unpaid-box { top: auto; bottom: 40px; border-color: var(--warn); background: rgba(45,30,6,.94); }

/* 씬 애니메이션 */
#ssalmeok-root .sm-hero { transform-origin: 160px 250px; transform-box: view-box; }
#ssalmeok-root .sm-hero-body { animation: sm-breathe 2.4s ease-in-out infinite; transform-origin: 160px 250px; transform-box: view-box; }
#ssalmeok-root .sm-arm-a { animation: sm-typeA .26s ease-in-out infinite alternate; transform-box: view-box; transform-origin: 188px 214px; }
#ssalmeok-root .sm-arm-b { animation: sm-typeB .22s ease-in-out infinite alternate; transform-box: view-box; transform-origin: 172px 222px; }
#ssalmeok-root .sm-eye { animation: sm-blinkEye 4s infinite; transform-box: fill-box; transform-origin: center; }
#ssalmeok-root .sm-screen-fx { animation: sm-scr 1.6s steps(4) infinite; }
#ssalmeok-root .sm-keys { animation: sm-blink .3s steps(2) infinite; }
#ssalmeok-root .sm-steam { animation: sm-steam 2s ease-in-out infinite; }
#ssalmeok-root .sm-glow { animation: sm-glowP 2s ease-in-out infinite; }
#ssalmeok-root .sm-neon { animation: sm-neon 3s infinite; }
#ssalmeok-root .sm-bgpc.sm-lit .sm-bgscr { animation: sm-blink 1.4s var(--sm-d) infinite; }
#ssalmeok-root .sm-hero.sm-hop { animation: sm-hop .22s ease-out; }
#ssalmeok-root .sm-farm-btn.sm-press .sm-screen { animation: sm-flash .25s; }
#ssalmeok-root .sm-scene.sm-off .sm-art { filter: grayscale(.85) brightness(.6); }
#ssalmeok-root .sm-scene.sm-off .sm-arm-a, #ssalmeok-root .sm-scene.sm-off .sm-arm-b, #ssalmeok-root .sm-scene.sm-off .sm-screen-fx { animation: none; }
#ssalmeok-root .sm-scene.sm-slow .sm-arm-a, #ssalmeok-root .sm-scene.sm-slow .sm-arm-b { animation-duration: .7s; }
#ssalmeok-root .sm-scene.sm-hot .sm-art { filter: saturate(1.5) hue-rotate(-20deg); }
#ssalmeok-root .sm-scene.sm-hot .sm-arm-a, #ssalmeok-root .sm-scene.sm-hot .sm-arm-b { animation-duration: .12s; }
#ssalmeok-root .sm-farm-btn.sm-nope { animation: sm-nope .3s; }

/* 탭 이펙트 */
#ssalmeok-root .sm-float { position: absolute; z-index: 20; pointer-events: none; transform: translate(-50%, -50%); font: 900 22px system-ui; color: var(--dia);
  text-shadow: 0 2px 0 #0a3a66, 0 0 10px rgba(99,240,255,.7); -webkit-text-stroke: 1px #0a3a66; animation: sm-floatUp .9s ease-out forwards; white-space: nowrap; }
#ssalmeok-root .sm-float.sm-won { color: var(--gold); text-shadow: 0 2px 0 #6b3d00; -webkit-text-stroke: 1px #6b3d00; font-size: 18px; }
#ssalmeok-root .sm-float.sm-bad { color: var(--up); }
#ssalmeok-root .sm-ripple { position: absolute; z-index: 19; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 3px solid #bff7ff; pointer-events: none; animation: sm-ripple .55s ease-out forwards; }
#ssalmeok-root .sm-spark { position: absolute; z-index: 19; width: 9px; height: 9px; margin: -4px 0 0 -4px; background: var(--dia); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); pointer-events: none; animation: sm-spark .6s ease-out forwards; }

/* 빠른 판매 */
#ssalmeok-root .sm-quickbar { flex: none; display: grid; grid-template-columns: auto 1fr 1fr; gap: 6px; padding: 8px 10px; background: #1d1442; border-top: 2px solid #3a2c75; border-bottom: 2px solid #2e2260; }
#ssalmeok-root .sm-q-price { display: flex; flex-direction: column; justify-content: center; padding: 0 6px; font-size: 13px; }
#ssalmeok-root .sm-q-price b { color: var(--gold); white-space: nowrap; }
#ssalmeok-root .sm-label { font-size: 10px; color: var(--muted); }

/* 버튼 */
#ssalmeok-root .sm-btn { font: inherit; color: var(--text); cursor: pointer; border: 0; border-radius: 12px; padding: 7px 10px; font-weight: 800; font-size: 13px;
  background: #3a2c75; box-shadow: 0 3px 0 #1f1646; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; transition: transform .06s; }
#ssalmeok-root .sm-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #1f1646; }
#ssalmeok-root .sm-btn small { font-weight: 600; font-size: 10.5px; opacity: .85; }
#ssalmeok-root .sm-btn.sm-primary { background: linear-gradient(#ffd75e, #ffb020); color: #4a2500; box-shadow: 0 3px 0 #b36b00; }
#ssalmeok-root .sm-btn.sm-danger { background: #5a1f3a; box-shadow: 0 3px 0 #2c0d1c; }
#ssalmeok-root .sm-btn.sm-danger.sm-solid { background: var(--up); }
#ssalmeok-root .sm-btn:disabled { opacity: .45; cursor: default; }
#ssalmeok-root .sm-btn.sm-sm { padding: 5px 10px; flex-direction: row; }
#ssalmeok-root .sm-btn.sm-wide { width: 100%; margin-top: 8px; }
#ssalmeok-root .sm-link { text-decoration: none; }
#ssalmeok-root .sm-nope { animation: sm-nope .3s; }
#ssalmeok-root .sm-pulse { animation: sm-pulse .35s; }

/* 패널 */
#ssalmeok-root .sm-panels { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 10px 14px; background: linear-gradient(#171033, #120c29); }
#ssalmeok-root .sm-panel { display: none; animation: sm-fadeIn .2s; }
#ssalmeok-root .sm-panel.sm-active { display: block; }
#ssalmeok-root .sm-card { background: var(--card); border: 2px solid #33276a; border-radius: 16px; padding: 10px; margin-top: 10px; position: relative; }
#ssalmeok-root .sm-upg { width: 100%; flex-direction: row; justify-content: flex-start; gap: 10px; text-align: left; padding: 9px; margin-bottom: 8px;
  background: var(--card); border: 2px solid #33276a; box-shadow: 0 3px 0 #0e0a22; border-radius: 16px; }
#ssalmeok-root .sm-upg-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(#3e2f80, #2a1f5c); }
#ssalmeok-root .sm-upg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#ssalmeok-root .sm-upg-name { font-weight: 900; font-size: 14px; }
#ssalmeok-root .sm-upg-desc, #ssalmeok-root .sm-upg-lv { font-size: 11.5px; font-weight: 500; color: var(--muted); }
#ssalmeok-root .sm-upg-lv { color: #cbbcff; }
#ssalmeok-root .sm-upg-cost { flex: none; min-width: 78px; text-align: center; padding: 8px 6px; border-radius: 10px; font-weight: 900; font-size: 12.5px; background: #1a1338; color: var(--muted); }
#ssalmeok-root .sm-upg.sm-can { border-color: #7a5cff; }
#ssalmeok-root .sm-upg.sm-can .sm-upg-cost { background: linear-gradient(#ffd75e, #ffb020); color: #4a2500; box-shadow: 0 2px 0 #b36b00; }
#ssalmeok-root .sm-upg.sm-owned { opacity: .75; cursor: default; }
#ssalmeok-root .sm-upg.sm-owned .sm-upg-cost { color: var(--good); background: #10301f; }
#ssalmeok-root .sm-pc-wrap { margin-top: 6px; }
#ssalmeok-root .sm-pc-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
#ssalmeok-root .sm-pc { font-size: 18px; text-align: center; background: #1a1338; border-radius: 8px; padding: 3px 0 1px; line-height: 1; animation: sm-pcBlink 1.6s var(--sm-d) infinite; }
#ssalmeok-root .sm-pc small { display: block; font-size: 8.5px; color: var(--muted); margin-top: 2px; }
#ssalmeok-root .sm-pc.sm-new { animation: sm-pop .4s; }
#ssalmeok-root .sm-pc.sm-more { font-size: 11px; display: grid; place-items: center; color: var(--muted); grid-column: span 2; }
#ssalmeok-root .sm-pc-grid.sm-off .sm-pc { filter: grayscale(1); opacity: .5; animation: none; }

#ssalmeok-root .sm-progress { height: 12px; background: #120c29; border-radius: 6px; overflow: hidden; margin: 6px 0; border: 1px solid #3a2c75; }
#ssalmeok-root .sm-progress-fill { height: 100%; background: linear-gradient(90deg, #ff5fd2, #ffcf3f); }
#ssalmeok-root .sm-prestige p { margin: 4px 0; font-size: 12.5px; }
#ssalmeok-root .sm-ach-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
#ssalmeok-root .sm-ach { display: flex; gap: 6px; align-items: center; background: #1a1338; border-radius: 10px; padding: 6px; font-size: 12px; opacity: .45; filter: grayscale(1); }
#ssalmeok-root .sm-ach small { display: block; color: var(--muted); font-size: 10.5px; }
#ssalmeok-root .sm-ach.sm-got { opacity: 1; filter: none; border: 1px solid #7a5cff; }

#ssalmeok-root .sm-autosell { overflow: hidden; }
#ssalmeok-root .sm-autosell-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
#ssalmeok-root .sm-autosell-head small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
#ssalmeok-root .sm-autosell-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
#ssalmeok-root .sm-autosell-row input[type=range] { flex: 1; accent-color: var(--gold); min-width: 0; }
#ssalmeok-root .sm-sell-at-val { min-width: 54px; text-align: right; color: var(--gold); }
#ssalmeok-root .sm-autosell-status { font-size: 12px; color: var(--muted); margin: 6px 0 0; min-height: 1em; }
#ssalmeok-root .sm-lock-cover { display: none; position: absolute; inset: 0; place-items: center; background: rgba(18,12,41,.85); font-size: 13px; text-align: center; padding: 10px; }
#ssalmeok-root .sm-autosell.sm-locked .sm-lock-cover { display: grid; }
#ssalmeok-root .sm-switch { position: relative; width: 46px; height: 26px; flex: none; }
#ssalmeok-root .sm-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
#ssalmeok-root .sm-switch span { position: absolute; inset: 0; background: #3a2c75; border-radius: 13px; transition: .2s; cursor: pointer; }
#ssalmeok-root .sm-switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
#ssalmeok-root .sm-switch input:checked + span { background: var(--good); }
#ssalmeok-root .sm-switch input:checked + span::before { transform: translateX(20px); }
#ssalmeok-root .sm-elec { font-size: 12.5px; }
#ssalmeok-root .sm-elec b { color: var(--gold); }

#ssalmeok-root .sm-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
#ssalmeok-root .sm-price-big { font-size: 26px; font-weight: 900; color: var(--gold); }
#ssalmeok-root .sm-price-change { font-weight: 800; }
#ssalmeok-root .sm-up { color: var(--up); } #ssalmeok-root .sm-down { color: var(--down); }
#ssalmeok-root .sm-price-chart { width: 100%; height: 130px; display: block; margin: 6px 0; background: #1a1338; border-radius: 12px; }
#ssalmeok-root .sm-sell-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#ssalmeok-root .sm-sell-row .sm-btn { padding: 12px; font-size: 15px; }

#ssalmeok-root .sm-rank { list-style: none; margin: 0; padding: 0; }
#ssalmeok-root .sm-rank li { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 8px; align-items: center; padding: 7px 4px; border-bottom: 1px solid #33276a; font-size: 12.5px; }
#ssalmeok-root .sm-rank li.sm-muted { display: block; text-align: center; border: 0; padding: 14px; }
#ssalmeok-root .sm-rk { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #3a2c75; font-weight: 900; font-size: 11px; }
#ssalmeok-root .sm-rank li:nth-child(1) .sm-rk { background: #ffcf3f; color: #4a2500; }
#ssalmeok-root .sm-rank li:nth-child(2) .sm-rk { background: #d6dbe8; color: #333; }
#ssalmeok-root .sm-rank li:nth-child(3) .sm-rk { background: #d08b4f; color: #3a1d00; }
#ssalmeok-root .sm-record { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 12px; color: var(--muted); }
#ssalmeok-root .sm-record li { display: flex; justify-content: space-between; gap: 4px; }
#ssalmeok-root .sm-record b { color: var(--text); white-space: nowrap; }
#ssalmeok-root .sm-footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }

/* 하단 탭 */
#ssalmeok-root .sm-tabs { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: #0e0a22; border-top: 2px solid #3a2c75; z-index: 3; }
#ssalmeok-root .sm-tab { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 0 4px; border-radius: 12px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
#ssalmeok-root .sm-tab i { font-style: normal; font-size: 20px; line-height: 1.1; transition: transform .15s; }
#ssalmeok-root .sm-tab.sm-active { background: linear-gradient(#4a37a0, #33276a); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
#ssalmeok-root .sm-tab.sm-active i { transform: translateY(-2px) scale(1.12); }

/* 레벨업 */
#ssalmeok-root .sm-levelup { position: absolute; left: 0; right: 0; top: 70px; height: 220px; z-index: 30; pointer-events: none; display: grid; place-items: center; }
#ssalmeok-root .sm-lu-rays { position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,207,63,.55) 0 10deg, transparent 10deg 24deg); -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); mask: radial-gradient(circle, #000 25%, transparent 70%); }
#ssalmeok-root .sm-lu-text { position: relative; font: 900 42px/1 system-ui; letter-spacing: 1px; color: #fff3b0; -webkit-text-stroke: 2px #a34a00; text-shadow: 0 4px 0 #a34a00, 0 0 24px rgba(255,180,0,.8); }
#ssalmeok-root .sm-lu-sub { position: relative; margin-top: 58px; position: absolute; top: 50%; font-weight: 900; font-size: 14px; background: rgba(10,7,26,.85); padding: 4px 12px; border-radius: 12px; border: 2px solid var(--gold); white-space: nowrap; }
#ssalmeok-root .sm-levelup.sm-lu-play .sm-lu-text { animation: sm-luPop 1.5s ease-out forwards; }
#ssalmeok-root .sm-levelup.sm-lu-play .sm-lu-rays { animation: sm-luRays 1.5s ease-out forwards; }
#ssalmeok-root .sm-levelup.sm-lu-play .sm-lu-sub { animation: sm-luSub 1.5s ease-out forwards; }
#ssalmeok-root .sm-levelup.sm-big-lu .sm-lu-text::after { content: " x2"; color: var(--pink); }

/* 토스트 */
#ssalmeok-root .sm-toast-wrap { position: absolute; left: 10px; right: 10px; bottom: 74px; z-index: 25; display: flex; flex-direction: column-reverse; gap: 6px; pointer-events: none; }
#ssalmeok-root .sm-toast { background: rgba(14,10,34,.95); border: 2px solid #4a3a8c; border-radius: 12px; padding: 7px 10px; font-size: 12.5px; font-weight: 700; animation: sm-toastIn .25s; }
#ssalmeok-root .sm-toast.sm-good { border-color: var(--good); }
#ssalmeok-root .sm-toast.sm-warn { border-color: var(--warn); }
#ssalmeok-root .sm-toast.sm-bad { border-color: var(--up); }
#ssalmeok-root .sm-toast.sm-out { animation: sm-toastOut .3s forwards; }

/* 모달 / 방치 보상 */
#ssalmeok-root .sm-modal { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 18px; background: rgba(6,4,16,.72); animation: sm-fadeIn .2s; }
#ssalmeok-root .sm-modal-box { width: 100%; max-width: 360px; max-height: 88%; overflow-y: auto; background: linear-gradient(#2e2260, #211850); border: 3px solid #7a5cff; border-radius: 22px; padding: 16px; animation: sm-pop .35s; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
#ssalmeok-root .sm-modal-box h3 { margin: 0 0 8px; font-size: 19px; text-align: center; font-weight: 900; }
#ssalmeok-root .sm-modal-body { font-size: 13px; color: #ddd6ff; }
#ssalmeok-root .sm-modal-body small { display: block; color: var(--muted); }
#ssalmeok-root .sm-modal-body .sm-big { display: block; text-align: center; font-size: 26px; font-weight: 900; color: var(--gold); margin: 8px 0; }
#ssalmeok-root .sm-summary { padding-left: 0; list-style: none; margin: 10px 0 0; display: grid; gap: 5px; }
#ssalmeok-root .sm-summary li { background: rgba(10,7,26,.45); border-radius: 10px; padding: 6px 8px; font-size: 12px; }
#ssalmeok-root .sm-summary .sm-tip { color: #ffe2a6; }
#ssalmeok-root .sm-modal-actions { display: flex; gap: 8px; margin-top: 14px; }
#ssalmeok-root .sm-modal-actions .sm-btn { flex: 1; padding: 11px; font-size: 15px; }
#ssalmeok-root .sm-modal.sm-is-reward .sm-modal-box { border-color: var(--gold); }
#ssalmeok-root .sm-reward { position: relative; height: 110px; display: grid; place-items: center; margin-bottom: 6px; }
#ssalmeok-root .sm-reward-burst { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: repeating-conic-gradient(rgba(255,207,63,.35) 0 12deg, transparent 12deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%); animation: sm-spin 8s linear infinite; }
#ssalmeok-root .sm-reward-row { position: relative; display: flex; gap: 18px; }
#ssalmeok-root .sm-reward-row span { display: flex; flex-direction: column; align-items: center; animation: sm-pop .5s .15s both; }
#ssalmeok-root .sm-reward-row i { width: 40px !important; height: 40px !important; }
#ssalmeok-root .sm-reward-row .sm-ico-gold::after { font-size: 20px; line-height: 40px; }
#ssalmeok-root .sm-reward-row b { font-size: 22px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 #000; }
#ssalmeok-root .sm-reward-row small { color: var(--muted); }

#ssalmeok-root.sm-embed { max-width: none; border: 0; border-radius: 0; box-shadow: none; height: 100%; }
#ssalmeok-root #ad-slot:empty { display: none; }
#ssalmeok-root .sm-stage.sm-shake { animation: sm-shake .45s; }

@keyframes sm-drift { to { transform: rotate(35deg) translateY(-30px); } }
@keyframes sm-bob { 50% { transform: translateY(-5px); } }
@keyframes sm-breathe { 50% { transform: translateY(-3px) scale(1.01, .99); } }
@keyframes sm-typeA { to { transform: translate(2px, 3px) rotate(4deg); } }
@keyframes sm-typeB { to { transform: translate(-1px, 3px) rotate(-3deg); } }
@keyframes sm-blinkEye { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes sm-scr { 0% { transform: translateX(0); } 100% { transform: translateX(4px); } }
@keyframes sm-steam { 0%, 100% { opacity: .2; transform: translateY(2px); } 50% { opacity: .8; transform: translateY(-3px); } }
@keyframes sm-glowP { 50% { opacity: .65; } }
@keyframes sm-neon { 0%, 18%, 22%, 100% { opacity: 1; } 20% { opacity: .4; } }
@keyframes sm-hop { 0% { transform: translateY(0); } 40% { transform: translateY(-9px) scale(1.03); } 100% { transform: none; } }
@keyframes sm-flash { 0% { filter: brightness(2.2); } 100% { filter: none; } }
@keyframes sm-ripple { to { transform: scale(4.5); opacity: 0; } }
@keyframes sm-spark { to { transform: translate(var(--dx), var(--dy)) rotate(180deg) scale(.3); opacity: 0; } }
@keyframes sm-floatUp { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); } 20% { opacity: 1; transform: translate(-50%, -80%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }
@keyframes sm-pulse { 40% { transform: scale(1.08); } }
@keyframes sm-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes sm-blink { 50% { opacity: .45; } }
@keyframes sm-pcBlink { 50% { opacity: .7; } }
@keyframes sm-nope { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes sm-shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@keyframes sm-slideIn { from { transform: translateY(-8px); opacity: 0; } }
@keyframes sm-toastIn { from { transform: translateY(10px); opacity: 0; } }
@keyframes sm-toastOut { to { transform: translateY(6px); opacity: 0; } }
@keyframes sm-fadeIn { from { opacity: 0; } }
@keyframes sm-spin { to { transform: rotate(360deg); } }
@keyframes sm-luPop { 0% { transform: scale(.2); opacity: 0; } 18% { transform: scale(1.25); opacity: 1; } 30% { transform: scale(1); } 80% { opacity: 1; } 100% { transform: translateY(-20px); opacity: 0; } }
@keyframes sm-luRays { 0% { transform: scale(.2) rotate(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(1.2) rotate(60deg); opacity: 0; } }
@keyframes sm-luSub { 0%, 15% { opacity: 0; transform: translateY(10px); } 30%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #ssalmeok-root *, #ssalmeok-root *::before { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
