/* 🎰 로또 인생 시뮬레이터 (2026-10-10) — act/lottolife.php 전용 */
#ll-wrap {
    --ll-bg: #fffaf0; --ll-card: #ffffff; --ll-line: #f1dfb4; --ll-ink: #2a1f0b; --ll-sub: #6f5a33;
    --ll-y: #ffc61a; --ll-y2: #ffdf6b; --ll-red: #e5383b; --ll-red2: #ff6b5e; --ll-green: #1f9d55; --ll-soft: #fff3cf;
    --ll-shadow: 0 10px 28px rgba(150, 100, 0, .12);
    width: 100%; max-width: none; margin: 0 auto 8px; box-sizing: border-box;
    color: var(--ll-ink); font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] #ll-wrap {
    --ll-bg: #1d1910; --ll-card: #262014; --ll-line: #4a3d1e; --ll-ink: #fbf3df; --ll-sub: #cdbb8f;
    --ll-y: #ffcc33; --ll-y2: #ffe08a; --ll-red: #ff5f57; --ll-red2: #ff8a80; --ll-green: #4ade80; --ll-soft: #352a12;
    --ll-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
#ll-wrap * { box-sizing: border-box; }
#ll-wrap button { font-family: inherit; -webkit-tap-highlight-color: transparent; }

.ll-mast {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 16px; border-radius: 16px 16px 0 0;
    background: repeating-linear-gradient(135deg, #e5383b 0 18px, #d62f33 18px 36px);
    color: #fff;
}
.ll-mast span { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; opacity: .9; }
.ll-mast h2 { margin: 2px 0 0; font-size: 21px; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.ll-mast h2 b { color: #ffe066; }
.ll-mast .ll-odds { padding: 6px 10px; border-radius: 20px; background: #ffd23f; color: #5a1a00; font-size: 11.5px; letter-spacing: 0; white-space: nowrap; opacity: 1; }

#ll-setup, #ll-run, #ll-result {
    background: var(--ll-bg); border: 1px solid var(--ll-line); border-top: 0;
    border-radius: 0 0 16px 16px; padding: 14px 14px 16px; box-shadow: var(--ll-shadow);
    position: relative;
}
#ll-setup[hidden], #ll-run[hidden], #ll-result[hidden] { display: none; }

.ll-label { margin: 12px 0 6px; font-size: 13px; font-weight: 800; color: var(--ll-sub); }
.ll-label:first-child { margin-top: 2px; }
.ll-label em { font-style: normal; color: var(--ll-red); font-size: 15px; margin-left: 4px; }

.ll-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ll-mode {
    min-height: 64px; padding: 10px 8px; border-radius: 13px; cursor: pointer; text-align: center;
    border: 2px solid var(--ll-line); background: var(--ll-card); color: var(--ll-ink);
}
.ll-mode b { display: block; font-size: 15px; font-weight: 900; }
.ll-mode span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ll-sub); word-break: keep-all; }
.ll-mode.on { border-color: var(--ll-red); background: var(--ll-soft); box-shadow: 0 0 0 3px rgba(229, 56, 59, .15); }
.ll-mode { position: relative; }
.ll-mode-ic { display: block; font-style: normal; font-size: 22px; line-height: 1.15; margin-bottom: 2px; }
.ll-mode.on::after {
    content: '✓'; position: absolute; top: 6px; right: 7px; width: 19px; height: 19px; border-radius: 50%;
    background: var(--ll-red); color: #fff; font-size: 11px; font-weight: 900; line-height: 19px; text-align: center;
}

.ll-age { display: flex; align-items: center; gap: 8px; }
.ll-age input[type=range] { flex: 1; min-width: 0; accent-color: #e5383b; height: 44px; }
.ll-step {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--ll-line); background: var(--ll-card); color: var(--ll-ink); font-size: 20px; font-weight: 900;
}

.ll-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ll-chips button {
    min-height: 44px; padding: 0 2px; border-radius: 11px; cursor: pointer; font-size: 13px; font-weight: 800;
    border: 1px solid var(--ll-line); background: var(--ll-card); color: var(--ll-ink); white-space: nowrap;
}
.ll-chips button.on { background: var(--ll-y); border-color: #e0a800; color: #3a2400; }

.ll-pick { margin-top: 12px; border: 1px dashed var(--ll-line); border-radius: 13px; padding: 0 10px; background: var(--ll-card); }
.ll-pick summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 13.5px; font-weight: 800; list-style: none; }
.ll-pick summary::-webkit-details-marker { display: none; }
.ll-pick summary::after { content: '▾'; margin-left: 6px; color: var(--ll-sub); }
.ll-pick[open] summary::after { content: '▴'; }
.ll-pick summary em { font-style: normal; color: var(--ll-red); font-size: 12.5px; margin-left: auto; }
.ll-pick-note { margin: 0 0 8px; font-size: 12px; color: var(--ll-sub); }
.ll-numgrid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.ll-num {
    aspect-ratio: 1; min-height: 30px; border-radius: 50%; cursor: pointer; padding: 0;
    border: 1px solid var(--ll-line); background: var(--ll-bg); color: var(--ll-ink); font-size: 12.5px; font-weight: 800;
}
.ll-num.on { color: #fff; border-color: transparent; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.ll-num.on.ll-num-y { background: #f5b800; } .ll-num.on.ll-num-b { background: #3ba7e0; } .ll-num.on.ll-num-r { background: #ef5350; }
.ll-num.on.ll-num-g { background: #8d8d8d; } .ll-num.on.ll-num-n { background: #7cb342; }
.ll-num.ll-deny { animation: ll-nudge .3s; }
.ll-pick-btns { display: flex; gap: 6px; margin: 8px 0 10px; }
.ll-pick-btns button { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--ll-line); background: var(--ll-bg); color: var(--ll-ink); font-weight: 800; font-size: 13px; cursor: pointer; }

.ll-preview { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--ll-soft); font-size: 13px; line-height: 1.6; color: var(--ll-ink); word-break: keep-all; }
.ll-preview b { color: var(--ll-red); background: linear-gradient(transparent 62%, rgba(255, 198, 26, .45) 62%); padding: 0 1px; }

.ll-cta {
    display: block; width: 100%; min-height: 52px; margin-top: 12px; border: 0; border-radius: 26px; cursor: pointer;
    background: linear-gradient(135deg, #ffcf33, #ff8f1f); color: #3a1c00; font-size: 16.5px; font-weight: 900;
    box-shadow: 0 8px 20px rgba(255, 143, 31, .3);
}
.ll-cta:active { transform: translateY(1px); }
.ll-cta.ll-pulse { animation: ll-pulse 2s ease-in-out infinite; }

/* ── 진행: 추첨 스테이지 ─────────────────────────── */
.ll-stage {
    position: relative; overflow: hidden; isolation: isolate; text-align: center;
    padding: 12px 10px 10px; border-radius: 16px; color: #fff3cf;
    background: radial-gradient(130% 90% at 50% 0, #3d2c08 0, #1b1408 52%, #0f0a03 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .14), 0 10px 26px rgba(40, 25, 0, .28);
}
.ll-stage::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at 50% 0, rgba(255, 198, 26, .22), transparent 62%); }
.ll-stage > * { position: relative; z-index: 1; }
.ll-stage.ll-opening { cursor: pointer; }

/* 워프 속도선: 폭 +400px 의 띠를 -400px 만큼 밀어 이음매 없이 흐르게(타일 폭은 전부 400 의 약수) */
.ll-stage > .ll-lines {
    position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 400px); z-index: 0; pointer-events: none; opacity: 0;
    transition: opacity .4s;
    background-image:
        linear-gradient(90deg, transparent 0 30%, rgba(255, 214, 90, .75) 60%, transparent 85%),
        linear-gradient(90deg, transparent 0 40%, rgba(255, 255, 255, .55) 70%, transparent 90%),
        linear-gradient(90deg, transparent 0 20%, rgba(255, 150, 60, .65) 55%, transparent 80%),
        linear-gradient(90deg, transparent 0 45%, rgba(255, 230, 150, .6) 75%, transparent 95%),
        linear-gradient(90deg, transparent 0 25%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    background-repeat: repeat-x;
    background-size: 200px 2px, 100px 1px, 400px 2px, 80px 1px, 200px 1px;
    background-position: 0 14%, 30px 33%, 120px 57%, 10px 74%, 70px 90%;
}
.ll-stage[data-warp="1"] > .ll-lines { opacity: .35; animation: ll-lines 1.6s linear infinite; }
.ll-stage[data-warp="2"] > .ll-lines { opacity: .65; animation: ll-lines .7s linear infinite; }
.ll-stage[data-warp="3"] > .ll-lines { opacity: .95; animation: ll-lines .28s linear infinite; }

.ll-year { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.ll-year small { font-size: 13px; color: #d9c48f; font-weight: 700; }
.ll-year strong {
    font-size: clamp(36px, 11.5vw, 56px); line-height: 1.05; font-weight: 900; color: #ffd23f; letter-spacing: -.02em;
    text-shadow: 0 0 18px rgba(255, 196, 0, .35); display: inline-block;
}
.ll-stage[data-warp="1"] .ll-year strong { text-shadow: 0 0 22px rgba(255, 196, 0, .5); }
.ll-stage[data-warp="2"] .ll-year strong { text-shadow: 0 0 26px rgba(255, 180, 0, .7), 0 0 4px #fff3cf; animation: ll-ypulse .5s ease-in-out infinite alternate; }
.ll-stage[data-warp="3"] .ll-year strong { color: #ffe27a; text-shadow: 0 0 32px rgba(255, 150, 0, .9), 0 0 6px #fff; animation: ll-ypulse .22s ease-in-out infinite alternate; }
.ll-era { margin-top: 1px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: #cdb57a; }
.ll-clock-sub { display: flex; justify-content: center; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.ll-clock-sub span { padding: 5px 9px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 12px; }
.ll-clock-sub i { font-style: normal; color: #cbb98c; margin-right: 4px; }
.ll-clock-sub b { color: #fff; font-size: 14px; }
#ll-rebirth-box.pp-a { animation: ll-pop-a .3s cubic-bezier(.2, 1.6, .4, 1); }
#ll-rebirth-box.pp-b { animation: ll-pop-b .3s cubic-bezier(.2, 1.6, .4, 1); }

/* 추첨기 */
.ll-draw { margin: 10px auto 0; padding: 10px 6px 9px; border-radius: 14px; background: rgba(0, 0, 0, .32); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ll-slots { display: flex; justify-content: center; align-items: center; gap: 5px; min-height: 40px; }
.ll-plus { font-style: normal; font-weight: 900; color: #cdb57a; font-size: 16px; margin: 0 1px; }
.ll-ball.ll-empty { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .35); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14); text-shadow: none; }
.ll-slot { transition: box-shadow .12s; }
.ll-slot.match { box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(255, 255, 255, .55), inset -3px -4px 6px rgba(0, 0, 0, .18); }
.ll-slot.ll-bonus:not(.ll-empty) { outline: 2px dashed rgba(255, 255, 255, .45); outline-offset: 2px; }
.ll-slots.rl-a .ll-slot { animation: ll-roll-a .12s ease-out; }
.ll-slots.rl-b .ll-slot { animation: ll-roll-b .12s ease-out; }
.ll-stage[data-warp="1"] .ll-slots { filter: blur(.6px); }
.ll-stage[data-warp="2"] .ll-slots { filter: blur(1.1px); animation: ll-jit .12s linear infinite; }
.ll-stage[data-warp="3"] .ll-slots { filter: blur(1.5px); animation: ll-jit .08s linear infinite; }
.ll-draw.ll-hold .ll-slots, .ll-stage.ll-opening .ll-slots { filter: none; animation: none; }
.ll-slots .ll-slot.ll-drop, .ll-jp-balls .ll-jp-slot.ll-drop { animation: ll-drop .5s cubic-bezier(.3, 1.5, .5, 1) both; }

.ll-mine-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ll-mine-row > small { font-size: 11px; font-weight: 800; color: #cbb98c; }
.ll-mine { display: flex; gap: 4px; }
.ll-mine .ll-ball { width: 28px; height: 28px; font-size: 12px; opacity: .5; transition: transform .12s, opacity .12s, box-shadow .12s; }
.ll-mine .ll-ball.hit { opacity: 1; transform: scale(1.12); box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(255, 255, 255, .5); }
.ll-mine .ll-ball.hit-bonus { opacity: 1; transform: scale(1.12); box-shadow: 0 0 0 2px #ff9f1c, 0 0 0 4px rgba(255, 159, 28, .35), 0 0 12px #ff9f1c; }
.ll-draw[data-rank="5"] .ll-mine .hit, .ll-draw[data-rank="4"] .ll-mine .hit { box-shadow: 0 0 0 2px #4ade80, 0 0 12px #4ade80; }
.ll-draw[data-rank="3"] .ll-mine .hit { box-shadow: 0 0 0 2px #ffd23f, 0 0 14px #ffc61a; }
.ll-draw[data-rank="2"] .ll-mine .hit { box-shadow: 0 0 0 2px #ff9f1c, 0 0 14px #ff9f1c; }
.ll-draw[data-rank="1"] .ll-mine .hit { box-shadow: 0 0 0 2px #ff5f57, 0 0 16px #ff5f57; }
.ll-draw.ll-hold .ll-mine .hit, .ll-draw.ll-hold .ll-mine .hit-bonus { animation: ll-glow .3s ease-in-out infinite alternate; }
.ll-match { min-width: 64px; padding: 4px 9px; border-radius: 20px; font-size: 12px; font-weight: 900; background: rgba(255, 255, 255, .1); color: #d6c9a6; white-space: nowrap; }
.ll-match.m5, .ll-match.m4 { background: #1f9d55; color: #fff; }
.ll-match.m3 { background: #ffc61a; color: #3a2400; }
.ll-match.m2 { background: #ff8f1f; color: #fff; }
.ll-match.m1 { background: #e5383b; color: #fff; }

.ll-stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.ll-speed {
    display: inline-block; padding: 5px 12px; border-radius: 20px; background: #e5383b; color: #fff;
    font-size: 13px; font-weight: 900; white-space: nowrap; box-shadow: 0 0 0 0 rgba(229, 56, 59, .5);
}
.ll-stage[data-warp="2"] .ll-speed, .ll-stage[data-warp="3"] .ll-speed { background: linear-gradient(90deg, #e5383b, #ff8f1f); box-shadow: 0 0 14px rgba(255, 120, 40, .6); }
.ll-stamp {
    padding: 2px 9px; border-radius: 6px; transform: rotate(-8deg); white-space: nowrap;
    border: 2px solid rgba(255, 255, 255, .35); color: #b9b2a0; font-size: 13px; font-weight: 900; background: rgba(0, 0, 0, .3);
}
.ll-stamp-5, .ll-stamp-4 { border-color: #4ade80; color: #4ade80; }
.ll-stamp-3 { border-color: #fbbf24; color: #fbbf24; }
.ll-stamp-2 { border-color: #ff9f1c; color: #ffb35c; }
.ll-stamp-1 { border-color: #ff5f57; color: #ff8a80; }
.ll-skiphint { display: none; margin-top: 6px; font-size: 11px; color: #a8987a; }
.ll-stage.ll-opening .ll-skiphint { display: block; }

.ll-stage > .ll-burst {
    position: absolute; left: 0; right: 0; top: 34%; z-index: 4; pointer-events: none; opacity: 0;
    font-size: clamp(22px, 7vw, 30px); font-weight: 900; color: #fff; letter-spacing: -.02em;
    text-shadow: 0 0 18px rgba(255, 180, 0, .9), 0 2px 0 rgba(0, 0, 0, .4);
}
.ll-stage > .ll-burst[hidden] { display: none; }
.ll-burst.go-a { animation: ll-burst-a .6s ease-out; }
.ll-burst.go-b { animation: ll-burst-b .6s ease-out; }
.ll-stage > .ll-flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; }
.ll-flash.red { background: radial-gradient(circle, rgba(255, 60, 60, .2), rgba(255, 30, 30, .65)); }
.ll-flash.go-a { animation: ll-flash-a .4s ease-out; }
.ll-flash.go-b { animation: ll-flash-b .4s ease-out; }

/* 인생 바 */
.ll-lifebar { display: flex; align-items: center; gap: 8px; margin: 12px 4px 4px; }
.ll-lb-end { flex: 0 0 auto; font-size: 11.5px; font-weight: 800; color: var(--ll-sub); }
.ll-lb-track { position: relative; flex: 1; min-width: 0; height: 12px; margin-bottom: 14px; margin-top: 4px; border-radius: 8px; background: var(--ll-soft); border: 1px solid var(--ll-line); }
.ll-lb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; background: linear-gradient(90deg, #69c8f2, #ffc61a 55%, #ff6b5e); }
.ll-lb-ticks i { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--ll-sub); opacity: .45; }
.ll-lb-ticks i::after { content: attr(data-a); position: absolute; top: 18px; left: 0; transform: translateX(-50%); font-size: 9.5px; font-style: normal; color: var(--ll-sub); }
.ll-lb-mk { position: absolute; top: 50%; left: 0; transform: translate(-50%, -58%); font-size: 20px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.ll-lifebar.lbf-a .ll-lb-track { animation: ll-lbf-a .12s; }
.ll-lifebar.lbf-b .ll-lb-track { animation: ll-lbf-b .12s; }

/* 등수 칩 보드 */
.ll-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 6px; }
.ll-bd { min-width: 0; padding: 7px 2px 6px; border-radius: 11px; text-align: center; background: var(--ll-card); border: 1px solid var(--ll-line); }
.ll-bd small { display: block; font-size: 11px; font-weight: 900; color: var(--ll-sub); }
.ll-bd b { display: block; margin: 1px 0; font-size: clamp(12px, 4vw, 18px); font-weight: 900; line-height: 1.15; color: var(--ll-ink); overflow-wrap: anywhere; }
.ll-bd em { display: block; font-style: normal; font-size: 10px; color: var(--ll-sub); }
.ll-bd.ll-r1 { border: 2px solid var(--ll-red); } .ll-bd.ll-r1 small { color: var(--ll-red); }
.ll-bd.ll-r2 { border: 2px solid #ff8f1f; } .ll-bd.ll-r2 small { color: #e8590c; }
.ll-bd.ll-r3 { border: 2px solid #f5b800; } .ll-bd.ll-r3 small { color: #d97706; }
html[data-theme="dark"] #ll-wrap .ll-bd.ll-r2 small { color: #ffa94d; }
html[data-theme="dark"] #ll-wrap .ll-bd.ll-r3 small { color: #fbbf24; }
.ll-bd.fl-a { animation: ll-bdfl-a .45s ease-out; }
.ll-bd.fl-b { animation: ll-bdfl-b .45s ease-out; }

.ll-money { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.ll-money > div { position: relative; padding: 9px 10px; border-radius: 12px; background: var(--ll-card); border: 1px solid var(--ll-line); text-align: center; }
.ll-money small { display: block; font-size: 11px; color: var(--ll-sub); font-weight: 800; }
.ll-money strong { display: block; margin-top: 2px; font-size: clamp(14px, 4.4vw, 18px); font-weight: 900; word-break: keep-all; }
.ll-money > div:first-child strong { color: var(--ll-red); }
.ll-money > div:last-child strong { color: var(--ll-green); }
.ll-floats { position: absolute; left: 0; right: 0; top: 0; height: 0; pointer-events: none; z-index: 3; }
.ll-float {
    position: absolute; left: 50%; top: -6px; padding: 3px 9px; border-radius: 14px; white-space: nowrap;
    font-size: 13px; font-weight: 900; background: rgba(30, 22, 6, .88); color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
    animation: ll-float .9s ease-out forwards;
}
.ll-float.f4 { color: #4ade80; } .ll-float.f3 { color: #ffd23f; } .ll-float.f2 { color: #ffa94d; } .ll-float.f1 { color: #ff8a80; }

.ll-gauge { margin-top: 10px; }
.ll-gauge-bar { position: relative; height: 14px; border-radius: 8px; background: var(--ll-soft); border: 1px solid var(--ll-line); overflow: hidden; }
.ll-gauge-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #ff6b5e, #ffc61a); border-radius: 8px; transition: width .15s; }
.ll-gauge-bar i.up { background: linear-gradient(90deg, #ffc61a, #22c55e); box-shadow: 0 0 10px rgba(34, 197, 94, .5); }
.ll-gauge-mark { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--ll-ink); opacity: .55; }
.ll-gauge-txt { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--ll-sub); }
.ll-gauge-txt b { color: var(--ll-ink); font-size: 13.5px; }

.ll-ctrl { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: end; }
.ll-ctrl .ll-cta { min-height: 48px; font-size: 15px; }
.ll-snd { width: 48px; min-height: 48px; border-radius: 24px; border: 1px solid var(--ll-line); background: var(--ll-card); font-size: 19px; cursor: pointer; padding: 0; }
.ll-snd[aria-pressed="true"] { background: var(--ll-soft); border-color: #e0a800; }
#ll-quit { min-height: 48px; padding: 0 14px; border-radius: 24px; border: 1px solid var(--ll-line); background: var(--ll-card); color: var(--ll-sub); font-weight: 800; font-size: 13.5px; cursor: pointer; white-space: nowrap; }

.ll-feed { position: relative; height: 42px; margin: 8px 0 2px; border-radius: 12px; overflow: hidden; background: var(--ll-card); border: 1px solid var(--ll-line); }
.ll-fd {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px;
    font-size: 13.5px; font-weight: 800; color: var(--ll-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: opacity .3s, transform .3s;
}
.ll-fd small { display: inline; font-size: 11px; font-weight: 700; color: var(--ll-sub); margin-left: 4px; }
.ll-fd em { font-style: normal; font-weight: 900; }
.ll-fd b { font-weight: 900; }
.ll-fd.ll-t3 b { color: #d97706; }
html[data-theme="dark"] #ll-wrap .ll-fd.ll-t3 b { color: #fbbf24; }
.ll-fd.ll-t2 { background: linear-gradient(135deg, #e5383b, #ff8f1f); color: #fff; }
.ll-fd.ll-t2 small, .ll-fd.ll-t2 em { color: #fff3cf; }
.ll-fd.ll-tm { background: linear-gradient(135deg, #3b2a8f, #1e2a6b); color: #fff; }
.ll-fd.ll-tm small { color: #c9c4ff; }
.ll-fd.ll-idle { color: var(--ll-sub); font-weight: 700; opacity: .8; }
.ll-fd.in { animation: ll-fd-in .28s ease-out; }
.ll-fd.dim { opacity: .6; }
.ll-fd.out { opacity: 0; transform: translateY(-10px); }

#ll-wrap.ll-shake-a { animation: ll-shake-a .45s; }
#ll-wrap.ll-shake-b { animation: ll-shake-b .45s; }

.ll-ball {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
    font-size: 14px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    box-shadow: inset -3px -4px 6px rgba(0, 0, 0, .18), inset 3px 3px 6px rgba(255, 255, 255, .45);
}
.ll-ball-y { background: #f5b800; } .ll-ball-b { background: #3ba7e0; } .ll-ball-r { background: #ef5350; }
.ll-ball-g { background: #8d8d8d; } .ll-ball-n { background: #7cb342; }

/* 1등 레이어 */
.ll-jackpot { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(6, 4, 0, .86); cursor: pointer; }
.ll-jackpot[hidden] { display: none; }
.ll-goldflash { position: fixed; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle, #fffbe6, #ffd23f 60%, #ff9f1c); }
.ll-goldflash.go-a { animation: ll-gf-a .5s ease-out; }
.ll-goldflash.go-b { animation: ll-gf-b .5s ease-out; }
.ll-jp-box {
    position: relative; width: 100%; max-width: 380px; padding: 20px 16px 16px; border-radius: 20px; text-align: center;
    background: radial-gradient(circle at 50% 0, #fff4c2, #ffd23f 70%); color: #3a1c00; box-shadow: 0 20px 60px rgba(255, 180, 0, .35), 0 20px 50px rgba(0, 0, 0, .4);
    animation: ll-pop-a .45s cubic-bezier(.2, 1.4, .4, 1);
}
.ll-jp-box.ll-shake-a { animation: ll-shake-a .45s; }
.ll-jp-box.ll-shake-b { animation: ll-shake-b .45s; }
.ll-jp-k { font-size: 12px; font-weight: 900; letter-spacing: .1em; color: #8a4b00; }
.ll-balls { display: flex; justify-content: center; gap: 6px; margin: 12px 0 8px; flex-wrap: wrap; }
.ll-jp-box .ll-ball { width: 42px; height: 42px; font-size: 17px; }
.ll-jp-box .ll-ball.ll-empty { background: rgba(90, 51, 0, .12); color: rgba(90, 51, 0, .4); box-shadow: inset 0 0 0 2px rgba(90, 51, 0, .2); }
.ll-jp-slot.gold { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #ffb300, 0 0 18px #ff9f1c, inset -3px -4px 6px rgba(0, 0, 0, .18); }
.ll-jp-t { font-size: 30px; font-weight: 900; letter-spacing: -.03em; color: #c0161b; }
.ll-jp-prize { margin-top: 2px; font-size: 14px; font-weight: 800; color: #5a3300; }
.ll-jp-prize b { font-size: 24px; color: #c0161b; font-variant-numeric: tabular-nums; }
.ll-jp-prize small { font-size: 11px; font-weight: 700; }
.ll-jp-sub { margin-top: 4px; font-size: 14px; font-weight: 800; color: #5a3300; }
.ll-jp-hint { margin-top: 6px; font-size: 11px; color: #7a5200; }
.ll-jp-box[data-ph="0"] .ll-jp-t, .ll-jp-box[data-ph="0"] .ll-jp-prize { visibility: hidden; }
.ll-jp-box[data-ph="1"] .ll-jp-t { animation: ll-pop-b .5s cubic-bezier(.2, 1.6, .4, 1); }
.ll-jp-box:not([data-ph="2"]) .ll-jp-sub, .ll-jp-box:not([data-ph="2"]) #ll-jp-go { visibility: hidden; }
.ll-jp-box[data-ph="2"] .ll-jp-sub, .ll-jp-box[data-ph="2"] #ll-jp-go { animation: ll-fade .3s ease-out; }
.ll-jp-box[data-ph="2"] .ll-jp-hint { visibility: hidden; }
.ll-jp-box .ll-cta { background: linear-gradient(135deg, #e5383b, #b5121b); color: #fff; box-shadow: 0 8px 18px rgba(181, 18, 27, .35); }
.ll-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9999; pointer-events: none; }
body.ll-noscroll { overflow: hidden; }

/* 결산 카드 */
.ll-card {
    padding: 18px 14px 14px; border-radius: 16px; text-align: center;
    background: linear-gradient(180deg, var(--ll-card), var(--ll-soft)); border: 2px solid var(--ll-y);
}
.ll-card-k { font-size: 12px; font-weight: 900; letter-spacing: .08em; color: var(--ll-red); }
.ll-card-h { margin-top: 4px; font-size: 15px; font-weight: 800; word-break: keep-all; line-height: 1.5; }
.ll-big { margin: 6px 0 2px; font-size: clamp(42px, 14vw, 64px); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ll-big small { font-size: .42em; margin-left: 3px; }
.ll-big.minus { color: var(--ll-red); } .ll-big.plus { color: var(--ll-green); }
.ll-big.gold { color: #e0a000; text-shadow: 0 2px 0 rgba(150, 90, 0, .15); }
html[data-theme="dark"] .ll-big.gold { color: #ffd23f; }
.ll-grade {
    display: inline-block; margin: 6px 0 4px; padding: 4px 12px; border-radius: 10px; transform: rotate(-4deg);
    border: 3px solid var(--ll-red); color: var(--ll-red); font-size: 16px; font-weight: 900; letter-spacing: -.01em;
    background: rgba(255, 255, 255, .35); animation: ll-stampin .4s cubic-bezier(.2, 1.6, .4, 1) .95s both;
}
html[data-theme="dark"] .ll-grade { background: rgba(0, 0, 0, .25); }
.ll-balls-s { margin: 10px 0 6px; }
.ll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.ll-grid > div { padding: 8px 6px; border-radius: 11px; background: var(--ll-bg); border: 1px solid var(--ll-line); }
.ll-grid small { display: block; font-size: 11px; color: var(--ll-sub); font-weight: 800; }
.ll-grid b { display: block; margin-top: 2px; font-size: 14.5px; word-break: keep-all; }
.ll-cline { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 10px; }
.ll-cline span { padding: 4px 9px; border-radius: 20px; background: var(--ll-bg); border: 1px solid var(--ll-line); font-size: 12px; }
.ll-cline span.zero { opacity: .5; }
.ll-cline b { font-size: 13px; }
.ll-save { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ll-bg); border: 1px dashed var(--ll-line); font-size: 13px; line-height: 1.6; word-break: keep-all; text-align: left; }
.ll-save b { color: var(--ll-red); }
.ll-note { margin-top: 8px; font-size: 11.5px; color: var(--ll-sub); }
.ll-share { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ll-card); border: 1px solid var(--ll-line); }
.ll-share p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.6; color: var(--ll-ink); word-break: keep-all; }
#ll-copy { width: 100%; min-height: 44px; border-radius: 22px; border: 1px solid var(--ll-line); background: var(--ll-bg); color: var(--ll-ink); font-weight: 800; font-size: 13.5px; cursor: pointer; }
.ll-again-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.ll-again-row .ll-cta { font-size: 15px; word-break: keep-all; }
#ll-change { min-height: 52px; padding: 0 14px; border-radius: 26px; border: 1px solid var(--ll-line); background: var(--ll-card); color: var(--ll-ink); font-weight: 800; font-size: 13.5px; cursor: pointer; white-space: nowrap; }

/* 가이드 */
.ll-guide { text-align: left; line-height: 1.7; margin-top: 16px; }
.ll-guide p { font-size: .9rem; }
.ll-guide li { font-size: .88rem; }
.ll-guide h3 { font-size: 1rem; margin: 10px 0 4px; }
.ll-guide small { font-size: .8rem; display: block; margin-top: 8px; }
.ll-oddtable { width: 100%; border-collapse: collapse; font-size: .82rem; margin: 6px 0 8px; }
.ll-oddtable th, .ll-oddtable td { padding: 6px 4px; border-bottom: 1px solid rgba(128, 128, 128, .25); text-align: center; }
.ll-oddtable th { font-weight: 800; }

/* 키프레임(-a/-b 는 같은 내용 2벌 — 클래스를 교대로 붙여 리플로 없이 재시작) */
@keyframes ll-lines { from { transform: translateX(0); } to { transform: translateX(-400px); } }
@keyframes ll-ypulse { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes ll-roll-a { from { transform: translateY(-7px) scale(.86); opacity: .55; } to { transform: none; opacity: 1; } }
@keyframes ll-roll-b { from { transform: translateY(-7px) scale(.86); opacity: .55; } to { transform: none; opacity: 1; } }
@keyframes ll-jit { 0% { transform: translate(0, 0); } 25% { transform: translate(-1px, 1px); } 50% { transform: translate(1px, 0); } 75% { transform: translate(0, -1px); } 100% { transform: translate(0, 0); } }
@keyframes ll-glow { from { filter: brightness(1); } to { filter: brightness(1.35); transform: scale(1.2); } }
@keyframes ll-burst-a { 0% { opacity: 0; transform: scale(1.6); } 20% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(.96); } }
@keyframes ll-burst-b { 0% { opacity: 0; transform: scale(1.6); } 20% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(.96); } }
@keyframes ll-flash-a { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ll-flash-b { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ll-gf-a { 0% { opacity: 0; } 25% { opacity: .95; } 100% { opacity: 0; } }
@keyframes ll-gf-b { 0% { opacity: 0; } 25% { opacity: .95; } 100% { opacity: 0; } }
@keyframes ll-lbf-a { 0% { background: #fff; box-shadow: 0 0 12px #fff; } 100% { } }
@keyframes ll-lbf-b { 0% { background: #fff; box-shadow: 0 0 12px #fff; } 100% { } }
@keyframes ll-bdfl-a { 0% { background: #ffe066; transform: scale(1.06); } 100% { } }
@keyframes ll-bdfl-b { 0% { background: #ffe066; transform: scale(1.06); } 100% { } }
@keyframes ll-float { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -6px) scale(1.05); } 100% { opacity: 0; transform: translate(-50%, -44px) scale(1); } }
@keyframes ll-shake-a { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px) rotate(-.6deg); } 40% { transform: translateX(6px) rotate(.5deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes ll-shake-b { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px) rotate(-.6deg); } 40% { transform: translateX(6px) rotate(.5deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes ll-fd-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ll-pop-a { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ll-pop-b { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ll-drop { 0% { opacity: 0; transform: translateY(-60px) scale(.6); } 100% { opacity: 1; transform: none; } }
@keyframes ll-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ll-stampin { 0% { opacity: 0; transform: scale(2.2) rotate(-16deg); } 100% { opacity: 1; transform: rotate(-4deg); } }
@keyframes ll-pulse { 0% { box-shadow: 0 8px 20px rgba(255, 143, 31, .3), 0 0 0 0 rgba(255, 143, 31, .45); } 70%, 100% { box-shadow: 0 8px 20px rgba(255, 143, 31, .3), 0 0 0 12px rgba(255, 143, 31, 0); } }
@keyframes ll-nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-3px); } 70% { transform: translateX(3px); } }

@media (max-width: 360px) {
    .ll-chips button { font-size: 12px; }
    .ll-ball { width: 30px; height: 30px; font-size: 13px; }
    .ll-slots { gap: 3px; }
    .ll-plus { font-size: 13px; margin: 0; }
    .ll-mine .ll-ball { width: 25px; height: 25px; font-size: 11px; }
    .ll-mine { gap: 3px; }
    .ll-jp-box .ll-ball { width: 36px; height: 36px; font-size: 15px; }
    .ll-mast h2 { font-size: 18px; }
    .ll-speed { font-size: 12px; padding: 4px 9px; }
    #ll-quit, #ll-change { padding: 0 10px; font-size: 12.5px; }
    .ll-fd { font-size: 12.5px; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .ll-stage > .ll-lines { display: none; }
    .ll-stage .ll-year strong, .ll-stage .ll-slots, .ll-slots .ll-slot, .ll-draw.ll-hold .ll-mine .ll-ball { animation: none !important; }
    .ll-slots .ll-slot.ll-drop, .ll-jp-balls .ll-jp-slot.ll-drop, .ll-jp-box, .ll-jp-box[data-ph] .ll-jp-t { animation: none !important; opacity: 1; }
    .ll-cta.ll-pulse, #ll-rebirth-box, .ll-lifebar .ll-lb-track, .ll-bd { animation: none !important; }
    .ll-stage > .ll-flash, .ll-goldflash { display: none; }
    .ll-burst.go-a { animation: ll-flash-a 1s steps(1, end); }
    .ll-burst.go-b { animation: ll-flash-b 1s steps(1, end); }
    .ll-grade { animation: none; }
    #ll-wrap.ll-shake-a, #ll-wrap.ll-shake-b, .ll-jp-box.ll-shake-a, .ll-jp-box.ll-shake-b { animation: none; }
    .ll-fd.in { animation: none; }
}

/* 10-10 게임 영역 폭 100%: 배경·테두리는 꽉 채우고 넓은 화면에서는 안쪽 콘텐츠만 가운데로 모은다 */
@media (min-width: 761px) {
    #ll-setup, #ll-run, #ll-result { padding-left: max(14px, calc((100% - 680px) / 2)); padding-right: max(14px, calc((100% - 680px) / 2)); }
}

/* ── 10-11 v3: 확률 눈금 · 꾹 누르기 가속 · 4/5등 소식 · 플로팅 겹침 수리 ── */
/* 플로팅 +N원 은 '돌려받은 돈' 제목을 덮던 문제 → 상자 위에 전용 띠(26px)를 비워 두고 그 안에서만 뜬다 */
.ll-money { margin-top: 30px; }
.ll-floats { top: -27px; }
.ll-float { top: 0; padding: 2px 9px; font-size: 12.5px; animation-name: ll-float2; }
@keyframes ll-float2 { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.85); } 18% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -4px) scale(1); } }

.ll-odds-bar { margin: 6px 4px 2px; padding: 10px 12px 9px; border-radius: 12px; background: var(--ll-card); border: 1px solid var(--ll-line); }
.ll-ob-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--ll-sub); }
.ll-ob-head b { font-size: 18px; font-weight: 900; color: var(--ll-red); white-space: nowrap; }
.ll-ob-track { position: relative; height: 12px; margin: 7px 0 16px; border-radius: 8px; background: var(--ll-soft); border: 1px solid var(--ll-line); }
.ll-ob-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; background: linear-gradient(90deg, #ff6b5e, #ffc61a 60%, #22c55e); transition: width .2s linear; }
.ll-ob-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ll-ink); opacity: .35; }
.ll-ob-tick em { position: absolute; top: 17px; left: 0; transform: translateX(-50%); font-size: 9.5px; font-style: normal; font-weight: 800; color: var(--ll-sub); white-space: nowrap; }
.ll-ob-tick.ll-ob-avg { opacity: .6; }
.ll-ob-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 11.5px; font-weight: 700; color: var(--ll-sub); }

.ll-boost {
    display: block; width: 100%; min-height: 54px; margin: 8px 0 4px; border-radius: 27px; cursor: pointer;
    border: 2px dashed #f59e0b; background: var(--ll-card); color: var(--ll-ink); font-size: 15px; font-weight: 900;
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none;
    transition: transform .08s, background .12s, box-shadow .12s;
}
.ll-boost b { color: #e5383b; }
.ll-boost.on { transform: scale(.97); border-style: solid; border-color: #ff6b00; color: #fff; background: linear-gradient(135deg, #ff3d00, #ffb000); box-shadow: 0 0 0 6px rgba(255, 120, 0, .18), 0 8px 22px rgba(255, 90, 0, .35); }
.ll-boost.on b { color: #fff6c2; }
.ll-stage.ll-boosting { box-shadow: inset 0 0 0 3px rgba(255, 140, 0, .75), 0 0 26px rgba(255, 120, 0, .35); }
.ll-stage.ll-boosting .ll-speed { background: #ff5a00; color: #fff; }

.ll-fd.ll-t4 b { color: #16a34a; }
.ll-fd.ll-t5 b { color: #2563eb; }
html[data-theme="dark"] #ll-wrap .ll-fd.ll-t4 b { color: #4ade80; }
html[data-theme="dark"] #ll-wrap .ll-fd.ll-t5 b { color: #93c5fd; }
@media (max-width: 360px) { .ll-ob-head { font-size: 11.5px; } .ll-ob-head b { font-size: 16px; } .ll-boost { font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .ll-boost { transition: none; } .ll-ob-fill { transition: none; } }
