/*!
 * 미러트리 게임존 - game UI (splash, HUD, controls, dialogs). Per game colours: --gz-bg, --gz-c1, --gz-c2 (play.php).
 * Fonts: "GZ Sans" (Pretendard ExtraBold subset) and "GZ Display" (Lilita One) are registered by boot.js from the
 * downloaded bytes; until then the system fallbacks are used.
 */
:root {
    --gz-bg: #140f2e; --gz-c1: #ff4fa3; --gz-c2: #7ee7ff;
    --gz-glass: rgba(14, 10, 32, .52); --gz-line: rgba(255, 255, 255, .16);
    --gz-sans: "GZ Sans", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
    --gz-num: "GZ Display", "GZ Sans", "Arial Rounded MT Bold", system-ui, sans-serif;
    --gz-body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
    --gz-safe-t: env(safe-area-inset-top, 0px); --gz-safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--gz-bg); color: #fff; font-family: var(--gz-body); }
body.gz { touch-action: none; user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
.gz-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }

/* ================================================================== splash */
.gz-splash { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: var(--gz-bg); transition: opacity .8s ease, transform .9s cubic-bezier(.6, 0, .4, 1), filter .8s; }
.gz-splash.is-leaving { opacity: 0; transform: scale(1.08); filter: blur(6px); pointer-events: none; }
.gz-splash-bg, .gz-splash-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.gz-splash-bg img { object-fit: cover; animation: gzKen 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes gzKen { from { transform: scale(1.03); } to { transform: scale(1.14) translate3d(-1.2%, -1%, 0); } }
.gz-splash-shade { position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45) 70%, rgba(0, 0, 0, .72)),
        linear-gradient(to bottom, rgba(0, 0, 0, .25), transparent 25%, transparent 60%, rgba(0, 0, 0, .55)); }
.gz-splash-rays { position: absolute; left: 50%; top: 40%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; opacity: .55;
    background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .13) 0deg 5deg, transparent 5deg 15deg);
    -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 16%, transparent 46%); mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 16%, transparent 46%);
    animation: gzSpin 60s linear infinite; mix-blend-mode: screen; }
@keyframes gzSpin { to { transform: rotate(360deg); } }
.gz-splash-sparks i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0;
    box-shadow: 0 0 10px 3px var(--gz-c2); animation: gzRise 6s linear infinite; }
.gz-splash-sparks i:nth-child(1) { left: 8%; animation-delay: 0s; } .gz-splash-sparks i:nth-child(2) { left: 18%; animation-delay: 1.4s; width: 4px; height: 4px; }
.gz-splash-sparks i:nth-child(3) { left: 27%; animation-delay: 3.1s; } .gz-splash-sparks i:nth-child(4) { left: 36%; animation-delay: .7s; width: 8px; height: 8px; }
.gz-splash-sparks i:nth-child(5) { left: 47%; animation-delay: 2.4s; } .gz-splash-sparks i:nth-child(6) { left: 55%; animation-delay: 4.2s; width: 4px; height: 4px; }
.gz-splash-sparks i:nth-child(7) { left: 63%; animation-delay: 1.9s; } .gz-splash-sparks i:nth-child(8) { left: 72%; animation-delay: 3.6s; width: 7px; height: 7px; }
.gz-splash-sparks i:nth-child(9) { left: 81%; animation-delay: .3s; } .gz-splash-sparks i:nth-child(10) { left: 90%; animation-delay: 2.9s; width: 5px; height: 5px; }
.gz-splash-sparks i:nth-child(11) { left: 41%; animation-delay: 5s; } .gz-splash-sparks i:nth-child(12) { left: 95%; animation-delay: 4.6s; }
@keyframes gzRise { 0% { transform: translateY(105vh) scale(.6); opacity: 0; } 10% { opacity: .95; } 80% { opacity: .7; } 100% { transform: translateY(-8vh) scale(1.2); opacity: 0; } }
.gz-splash-main { position: relative; z-index: 2; width: 100%; max-width: 760px; padding: 0 16px; text-align: center; margin-top: -4vh; }
.gz-splash-logo { position: relative; width: min(86vw, 620px); margin: 0 auto; filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .5));
    animation: gzLogoIn 1.15s cubic-bezier(.18, 1.5, .4, 1) both, gzFloat 4.4s ease-in-out 1.2s infinite; }
.gz-splash-logo img { display: block; width: 100%; height: auto; }
.gz-splash-logo::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .75) 50%, transparent 62%) no-repeat; background-size: 260% 100%;
    -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
    animation: gzShine 3.4s ease-in-out 1.3s infinite; mix-blend-mode: soft-light; }
@keyframes gzLogoIn { 0% { transform: translateY(-40px) scale(.55) rotate(-6deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes gzFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(.6deg); } }
@keyframes gzShine { 0% { background-position: 130% 0; } 55%, 100% { background-position: -30% 0; } }
@media (orientation: portrait) { .gz-splash-logo { width: min(92vw, 560px); } .gz-splash-main { margin-top: -8vh; } }

.gz-loader { width: min(82vw, 440px); margin: clamp(14px, 4vh, 34px) auto 0; animation: gzFade .6s .35s both; }
@keyframes gzFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gz-loader-bar { height: 20px; border-radius: 999px; padding: 4px; background: rgba(0, 0, 0, .5);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .7), 0 0 0 2px rgba(255, 255, 255, .2), 0 8px 24px rgba(0, 0, 0, .35); }
.gz-loader-fill { position: relative; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gz-c1), var(--gz-c2));
    box-shadow: 0 0 18px color-mix(in srgb, var(--gz-c2) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .6); overflow: hidden; }
.gz-loader-fill i { position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .3) 0 10px, transparent 10px 20px);
    animation: gzStripes .7s linear infinite; }
.gz-loader-fill::after { content: ''; position: absolute; right: 0; top: -6px; bottom: -6px; width: 26px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .95), transparent); filter: blur(1px); }
@keyframes gzStripes { from { background-position: 0 0; } to { background-position: 28px 0; } }
.gz-loader-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 10px; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.gz-loader-label { font-size: 13px; opacity: .92; text-align: left; min-height: 1.2em; }
.gz-loader-pct { font-family: var(--gz-num); font-size: 26px; font-weight: 400; letter-spacing: .5px; color: #fff;
    text-shadow: 0 0 14px var(--gz-c2), 0 2px 0 rgba(0, 0, 0, .4); }
.gz-splash.is-ready .gz-loader-bar, .gz-splash.is-ready .gz-loader-row { display: none; }
.gz-start { display: block; width: 100%; height: 62px; border: 0; border-radius: 999px; cursor: pointer; font-family: var(--gz-sans); font-size: 21px;
    color: #fff; letter-spacing: .5px; background: linear-gradient(180deg, color-mix(in srgb, var(--gz-c1) 75%, #fff), var(--gz-c1) 55%, color-mix(in srgb, var(--gz-c1) 70%, #000));
    box-shadow: 0 6px 0 color-mix(in srgb, var(--gz-c1) 50%, #000), 0 14px 30px rgba(0, 0, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .55);
    text-shadow: 0 2px 0 rgba(0, 0, 0, .3); animation: gzPulse 1.3s ease-in-out infinite; }
.gz-start[hidden] { display: none; }
.gz-start:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--gz-c1) 50%, #000), 0 8px 20px rgba(0, 0, 0, .45); }
@keyframes gzPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.gz-splash-tip { margin: 18px auto 0; max-width: 520px; font-size: 13px; line-height: 1.6; opacity: .88; min-height: 3.2em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .8); transition: opacity .35s, transform .35s; }
.gz-splash-tip.is-out { opacity: 0; transform: translateY(6px); }
.gz-splash-foot { position: absolute; bottom: calc(var(--gz-safe-b) + 14px); left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: 1px;
    opacity: .7; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); z-index: 2; }
.gz-splash.is-error .gz-splash-logo { animation: none; filter: grayscale(.3) drop-shadow(0 18px 32px rgba(0, 0, 0, .5)); }
.gz-fail { font-family: var(--gz-sans); font-size: 17px; margin: 0 0 6px; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.gz-fail-sub { font-size: 13px; opacity: .85; margin: 0 0 16px; }
.gz-fail-btns { display: flex; gap: 10px; justify-content: center; }
.gz-noscript { position: absolute; bottom: 20%; left: 0; right: 0; text-align: center; }

/* ================================================================== buttons */
.gz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 16px;
    font-family: var(--gz-sans); font-size: 15px; color: #fff; text-decoration: none; cursor: pointer;
    background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08)); box-shadow: inset 0 0 0 1.5px var(--gz-line), 0 4px 0 rgba(0, 0, 0, .35);
    transition: transform .08s, box-shadow .08s, filter .15s; }
.gz-btn:hover { filter: brightness(1.08); }
.gz-btn:active { transform: translateY(3px); box-shadow: inset 0 0 0 1.5px var(--gz-line), 0 1px 0 rgba(0, 0, 0, .35); }
.gz-btn.is-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--gz-c1) 70%, #fff), var(--gz-c1) 60%, color-mix(in srgb, var(--gz-c1) 75%, #000));
    box-shadow: 0 4px 0 color-mix(in srgb, var(--gz-c1) 45%, #000), inset 0 2px 0 rgba(255, 255, 255, .45); text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.gz-btn.is-primary:active { box-shadow: 0 1px 0 color-mix(in srgb, var(--gz-c1) 45%, #000), inset 0 2px 0 rgba(255, 255, 255, .45); }
.gz-btn.is-gold { background: linear-gradient(180deg, #fff3b0, #ffc928 55%, #d99100); color: #5a2d00; text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
    box-shadow: 0 4px 0 #8a5a00, inset 0 2px 0 rgba(255, 255, 255, .7); }
.gz-btn[disabled] { filter: grayscale(.8) brightness(.7); cursor: not-allowed; transform: none; }
.gz-btn small { font-family: var(--gz-body); font-size: 11px; font-weight: 600; opacity: .85; }

/* ================================================================== HUD */
.gz-hud { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 8px;
    padding: calc(var(--gz-safe-t) + 10px) 12px 8px; pointer-events: none; }
.gz-hud > * { pointer-events: auto; }
.gz-hud-back, .gz-icon-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 14px;
    color: #fff; background: var(--gz-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--gz-line), 0 4px 14px rgba(0, 0, 0, .25); cursor: pointer; }
.gz-hud-back svg, .gz-icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gz-icon-btn.is-off { opacity: .6; }
.gz-hud-logo { height: 44px; width: auto; max-width: 34vw; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.gz-hud-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.gz-chip { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px 0 8px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--gz-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--gz-line), 0 4px 14px rgba(0, 0, 0, .25); }
.gz-coin { flex: none; width: 26px; height: 26px; border-radius: 50%; position: relative;
    background: radial-gradient(circle at 35% 30%, #fffbe0, #ffd34d 40%, #e39b00 80%); box-shadow: inset 0 -2px 0 rgba(120, 60, 0, .35), 0 0 10px rgba(255, 200, 60, .5); }
.gz-coin::after { content: 'M'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 13px var(--gz-num); color: #a35f00; }
.gz-wallet-label { font-size: 11px; font-weight: 800; color: var(--gz-c2); }
.gz-wallet-num { font-family: var(--gz-num); font-weight: 400; font-size: 19px; letter-spacing: .3px; min-width: 2ch; }
.gz-wallet.is-demo .gz-coin { filter: hue-rotate(160deg) saturate(.7); }
.gz-wallet.is-guest .gz-wallet-num { font-family: var(--gz-sans); font-size: 14px; }
@media (max-width: 420px) { .gz-hud-logo { height: 36px; } .gz-wallet-num { font-size: 17px; } .gz-hud { gap: 6px; padding-left: 8px; padding-right: 8px; } }

/* ================================================================== toasts */
.gz-toasts { position: fixed; top: calc(var(--gz-safe-t) + 64px); left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column;
    gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 420px); }
.gz-toast { padding: 11px 18px; border-radius: 14px; font-size: 14px; font-weight: 700; line-height: 1.45; text-align: center; color: #fff;
    background: rgba(18, 14, 40, .9); box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--gz-line);
    transform: translateY(-10px) scale(.96); opacity: 0; transition: transform .3s cubic-bezier(.2, 1.4, .4, 1), opacity .3s; }
.gz-toast.is-in { transform: none; opacity: 1; }
.gz-toast.is-ok { background: rgba(20, 120, 80, .92); }
.gz-toast.is-warn { background: rgba(190, 110, 0, .94); }
.gz-toast.is-err { background: rgba(190, 30, 60, .94); }

/* ================================================================== modal */
.gz-modal { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gz-modal-back { position: absolute; inset: 0; background: rgba(6, 4, 18, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.gz-modal-box { position: relative; width: 100%; max-width: 400px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; border-radius: 24px;
    background: linear-gradient(180deg, #2a2050, #17112f); color: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .14);
    transform: translateY(24px) scale(.94); opacity: 0; transition: transform .32s cubic-bezier(.2, 1.4, .4, 1), opacity .25s; }
.gz-modal.is-wide .gz-modal-box { max-width: 560px; }
.gz-modal.is-in .gz-modal-back { opacity: 1; }
.gz-modal.is-in .gz-modal-box { transform: none; opacity: 1; }
.gz-modal-title { margin: 0; padding: 22px 56px 6px 24px; font-family: var(--gz-sans); font-size: 19px; font-weight: 800; }
.gz-modal-body { padding: 10px 24px 4px; overflow: auto; font-size: 14px; line-height: 1.65; user-select: text; -webkit-user-select: text; }
.gz-modal-foot { display: flex; gap: 10px; padding: 16px 24px 22px; }
.gz-modal-foot .gz-btn { flex: 1; }
.gz-modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 12px; font-size: 24px; line-height: 1; cursor: pointer;
    color: #fff; background: rgba(255, 255, 255, .1); }
.gz-p { margin: 0 0 10px; }
.gz-muted { opacity: .7; }
.gz-menu-list { display: grid; gap: 8px; }
.gz-menu-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 0; border-radius: 14px; text-align: left; cursor: pointer;
    background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1px var(--gz-line); }
.gz-menu-item b { font-family: var(--gz-sans); font-size: 15px; }
.gz-menu-item small { font-size: 12px; opacity: .7; }
.gz-menu-sw { display: flex; flex-wrap: wrap; gap: 14px 18px; margin: 16px 0 6px; }
.gz-switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; cursor: pointer; }
.gz-switch input { position: absolute; opacity: 0; pointer-events: none; }
.gz-switch span { width: 42px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .2); position: relative; transition: background .2s; }
.gz-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.gz-switch input:checked + span { background: var(--gz-c1); }
.gz-switch input:checked + span::after { transform: translateX(18px); }
.gz-hist { list-style: none; margin: 0; padding: 0; }
.gz-hist li { display: grid; grid-template-columns: 82px 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.gz-hist .t { opacity: .6; font-size: 12px; }
.gz-hist .n { text-align: right; display: flex; flex-direction: column; align-items: flex-end; font-family: var(--gz-num); }
.gz-hist .n em { font-style: normal; opacity: .65; font-size: 12px; }
.gz-hist .n strong { color: #7dffb2; font-weight: 400; }
/* 다시보기 (2026-10-18): history link, playback bar + input shield, end card */
.gz-hist li { grid-template-columns: 82px 1fr auto auto; }
.gz-hist .n i { font-style: normal; font-size: 10.5px; opacity: .55; }
.gz-hist-rp { justify-self: end; white-space: nowrap; padding: 5px 9px; border-radius: 9px; font-size: 11.5px; font-weight: 800; color: #fff;
    text-decoration: none; background: linear-gradient(180deg, #ff5f8f, #d6336c); box-shadow: 0 2px 8px rgba(214, 51, 108, .35); }
.gz-hist-rp:hover { filter: brightness(1.1); }
.gz-hist-rp.is-off { visibility: hidden; padding: 0; box-shadow: none; }
.gz-hist-note { margin-top: 10px; font-size: 12px; }
.gz-replay-shield { position: fixed; inset: 0; z-index: 29; }
.gz-replaying .gz-dock, .gz-replay-page .gz-dock { pointer-events: none; }
.gz-replaying .gz-dock { opacity: .55; filter: saturate(.6); transition: opacity .3s; }
.gz-replay-bar { position: fixed; z-index: 31; left: 50%; top: calc(var(--gz-safe-t) + 60px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px; background: rgba(10, 8, 24, .78); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: 12.5px;
    white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.gz-replay-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 10px #ff4d6d; animation: gzRpBlink 1s infinite; }
.gz-replay-bar b { font-weight: 800; letter-spacing: .02em; }
.gz-replay-bar span { opacity: .7; font-family: var(--gz-num); }
.gz-replay-bar.is-done i { animation: none; background: #7dffb2; box-shadow: 0 0 8px #7dffb2; }
@keyframes gzRpBlink { 50% { opacity: .25; } }
.gz-replay-end { position: fixed; inset: 0; z-index: 105; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(6, 4, 18, .62); opacity: 0; transition: opacity .35s; }
.gz-replay-end.is-in { opacity: 1; }
.gz-replay-card { width: min(380px, 100%); padding: 22px 20px 18px; border-radius: 22px; text-align: center; color: #fff;
    background: linear-gradient(180deg, rgba(48, 30, 92, .96), rgba(22, 14, 46, .97)); border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5); transform: translateY(14px) scale(.96); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.gz-replay-end.is-in .gz-replay-card { transform: none; }
.gz-replay-title { font: 400 26px var(--gz-display, inherit); letter-spacing: .01em; }
.gz-replay-sub { margin-top: 4px; font-size: 12.5px; opacity: .7; }
.gz-replay-text { margin-top: 12px; font-size: 14px; font-weight: 700; }
.gz-replay-nums { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.gz-replay-nums span { flex: 1; max-width: 140px; padding: 9px 6px; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 11.5px; opacity: .95; }
.gz-replay-nums b { display: block; margin-top: 3px; font: 400 18px var(--gz-num); }
.gz-replay-nums b.is-win { color: #7dffb2; }
.gz-replay-msg { margin: 12px 0 0; font-size: 12.5px; color: #ffd27a; }
.gz-replay-btns { display: flex; gap: 8px; margin-top: 18px; }
.gz-replay-btns .gz-btn { flex: 1; justify-content: center; text-decoration: none; }
.gz-help h3 { font-family: var(--gz-sans); font-size: 15px; margin: 16px 0 6px; color: var(--gz-c2); }
.gz-help h3:first-child { margin-top: 0; }
.gz-help p, .gz-help li { font-size: 13.5px; line-height: 1.7; }
.gz-help ul { padding-left: 18px; margin: 0; }
.gz-help table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0; }
.gz-help th, .gz-help td { padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.gz-help th { background: rgba(255, 255, 255, .06); font-weight: 800; }
.gz-help td.l, .gz-help th.l { text-align: left; }
.gz-help .num { font-family: var(--gz-num); }

/* ================================================================== celebration */
.gz-celebrate { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; pointer-events: auto;
    background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, .15), rgba(0, 0, 0, .65)); opacity: 0; transition: opacity .3s; }
.gz-celebrate.is-in { opacity: 1; }
.gz-celebrate-rays { position: absolute; left: 50%; top: 45%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax;
    background: repeating-conic-gradient(from 0deg, rgba(255, 230, 120, .2) 0deg 7deg, transparent 7deg 20deg);
    -webkit-mask: radial-gradient(circle, #000, transparent 50%); mask: radial-gradient(circle, #000, transparent 50%); animation: gzSpin 18s linear infinite; }
.gz-celebrate-inner { position: relative; text-align: center; transform: scale(.4); transition: transform .55s cubic-bezier(.2, 1.7, .4, 1); }
.gz-celebrate.is-in .gz-celebrate-inner { transform: none; }
.gz-celebrate-title { font-family: var(--gz-num); font-size: clamp(54px, 15vw, 120px); line-height: .95; letter-spacing: 2px;
    background: linear-gradient(180deg, #fffbe0, #ffd84d 45%, #ff9e00 70%, #ffd84d); -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-stroke: 3px #6a2a00; filter: drop-shadow(0 6px 0 #4a1d00) drop-shadow(0 12px 24px rgba(0, 0, 0, .5)); animation: gzWobble 1.6s ease-in-out infinite; }
.gz-celebrate.is-mega .gz-celebrate-title { background: linear-gradient(180deg, #fff, #8ef6ff 40%, #7c5cff 75%, #ff7ad9); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke-color: #1b0b4d; filter: drop-shadow(0 6px 0 #1b0b4d) drop-shadow(0 12px 24px rgba(0, 0, 0, .5)); }
.gz-celebrate.is-super .gz-celebrate-title { background: linear-gradient(180deg, #fff, #ff9ad5 35%, #ff2d95 60%, #ffd166); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke-color: #4a0030; filter: drop-shadow(0 6px 0 #4a0030) drop-shadow(0 12px 24px rgba(0, 0, 0, .5)); }
.gz-celebrate.is-lose .gz-celebrate-title { background: linear-gradient(180deg, #fff, #c9d6ff 60%, #8c9ccf); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke-color: #222a4d; filter: drop-shadow(0 6px 0 #222a4d); animation: none; }
@keyframes gzWobble { 0%, 100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.05); } }
.gz-celebrate-amount { margin-top: 10px; font-family: var(--gz-num); font-size: clamp(40px, 11vw, 82px); color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 0 30px rgba(255, 220, 90, .7); }
.gz-celebrate-amount small { font-family: var(--gz-sans); font-size: .42em; margin-left: 6px; }
.gz-celebrate-sub { margin-top: 8px; font-family: var(--gz-sans); font-size: 17px; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.gz-celebrate-tap { margin-top: 26px; font-size: 12px; opacity: .7; animation: gzBlink 1.4s ease-in-out infinite; }
@keyframes gzBlink { 50% { opacity: .25; } }

/* ================================================================== ticker */
.gz-ticker { position: fixed; left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); top: calc(var(--gz-safe-t) + 62px); z-index: 25;
    height: 28px; overflow: hidden; pointer-events: none; border-radius: 999px; background: rgba(10, 6, 24, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
@media (min-width: 900px) { .gz-ticker { top: calc(var(--gz-safe-t) + 17px); width: min(460px, 40vw); } }
.gz-ticker-track { display: inline-flex; gap: 36px; white-space: nowrap; animation: gzTicker 30s linear infinite; padding-left: 100%; }
.gz-ticker span { font-size: 12.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); line-height: 28px; }
.gz-ticker i { font-style: normal; }
@keyframes gzTicker { to { transform: translateX(-50%); } }

/* ================================================================== stepper (bet / stake) */
.gz-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 18px; background: var(--gz-glass);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--gz-line); }
.gz-step-btn { width: 40px; height: 40px; border: 0; border-radius: 13px; font-size: 22px; font-weight: 900; cursor: pointer; color: #fff;
    background: rgba(255, 255, 255, .12); }
.gz-step-btn:disabled { opacity: .3; cursor: default; }
.gz-step-val { min-width: 84px; text-align: center; display: flex; flex-direction: column; line-height: 1.05; }
.gz-step-val small { font-size: 10px; font-weight: 800; opacity: .7; letter-spacing: .5px; }
.gz-step-val b { font-family: var(--gz-num); font-weight: 400; font-size: 20px; }
.gz-stepper.is-locked { opacity: .55; pointer-events: none; }

/* ================================================================== fatal */
.gz-fatal { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; background: rgba(8, 6, 20, .92); padding: 20px; }
.gz-fatal-box { text-align: center; max-width: 360px; }
.gz-fatal-box img { width: 220px; margin-bottom: 14px; }
.gz-fatal-box p { font-family: var(--gz-sans); font-size: 16px; }
.gz-fatal-box small { display: block; opacity: .7; margin-bottom: 16px; }

/* ================================================================== common game layout */
.gz-panel { background: var(--gz-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--gz-line), 0 10px 30px rgba(0, 0, 0, .25); }
.gz-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; gap: 10px;
    padding: 10px 12px calc(var(--gz-safe-b) + 12px); pointer-events: none; }
.gz-dock > * { pointer-events: auto; }
.gz-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
    background: var(--gz-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--gz-line); }
.gz-badge b { font-family: var(--gz-num); font-weight: 400; font-size: 15px; }
.gz-demo-flag { position: fixed; top: calc(var(--gz-safe-t) + 62px); right: 12px; z-index: 26; padding: 5px 10px; border-radius: 10px; font-size: 11.5px; font-weight: 800;
    background: rgba(54, 207, 255, .85); color: #062033; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }

/* ================================================================== 럭키 룰렛 */
.rl-dock { align-items: flex-end; }
.rl-center { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rl-side { min-width: 92px; height: 48px; margin-bottom: 14px; font-size: 14px; }
.rl-spin { position: relative; width: 132px; height: 132px; border: 0; border-radius: 50%; cursor: pointer; color: #5a1400;
    background: radial-gradient(circle at 50% 30%, #fff7cf 0%, #ffd34d 38%, #f29a00 72%, #b35f00 100%);
    box-shadow: 0 0 0 6px #7a1020, 0 0 0 10px #ffd34d, 0 10px 0 6px #4a0912, 0 22px 40px rgba(0, 0, 0, .55), inset 0 -8px 14px rgba(120, 50, 0, .45), inset 0 6px 10px rgba(255, 255, 255, .8);
    display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .1s, filter .2s; animation: rlBreath 2.2s ease-in-out infinite; }
.rl-spin:active { transform: translateY(5px) scale(.97); }
.rl-spin:disabled { animation: none; filter: saturate(.5) brightness(.85); cursor: default; }
.rl-spin-t { font-family: var(--gz-num); font-size: 38px; line-height: 1; letter-spacing: 1px; text-shadow: 0 2px 0 rgba(255, 255, 255, .6); }
.rl-spin-c { margin-top: 4px; font-family: var(--gz-sans); font-size: 13px; padding: 2px 10px; border-radius: 999px; background: rgba(90, 20, 0, .15); }
@keyframes rlBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.rl-dock.is-spinning .rl-spin-t { animation: gzBlink .5s linear infinite; }
.rl-prize { text-align: center; }
.rl-prize-img { width: 160px; height: 160px; object-fit: cover; border-radius: 22px; display: block; margin: 4px auto 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.rl-prize b { display: block; font-family: var(--gz-sans); font-size: 18px; margin-bottom: 8px; }
@media (max-width: 420px) { .rl-spin { width: 112px; height: 112px; } .rl-spin-t { font-size: 32px; } .rl-side { min-width: 78px; font-size: 13px; padding: 0 12px; } }

/* ================================================================== 스위트 스톰 (slot) */
.sl-meter { display: flex; gap: 8px; justify-content: center; pointer-events: none; }
.sl-win, .sl-fs { display: flex; align-items: baseline; gap: 8px; padding: 6px 16px; border-radius: 999px; background: rgba(43, 15, 58, .72);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), 0 6px 18px rgba(0, 0, 0, .25); }
.sl-win span, .sl-fs span { font-family: var(--gz-num); font-size: 14px; letter-spacing: 1px; color: #ffd6f0; }
.sl-win b, .sl-fs b { font-family: var(--gz-num); font-weight: 400; font-size: 24px; color: #fff; min-width: 2ch; text-align: right; }
.sl-fs small { font-family: var(--gz-num); font-size: 15px; opacity: .8; }
.sl-fs { background: linear-gradient(90deg, rgba(124, 77, 255, .85), rgba(255, 79, 163, .85)); }
.sl-meter.is-hot .sl-win { box-shadow: inset 0 0 0 2px #ffd23f, 0 0 24px rgba(255, 210, 63, .55); }
.sl-meter.is-hot .sl-win b { color: #ffe680; }
.sl-dock { flex-direction: column; align-items: center; gap: 8px; }
.sl-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.sl-row2 { gap: 8px; }
.sl-row2 .gz-btn { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
.sl-spin { position: relative; width: 92px; height: 92px; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
    background: radial-gradient(circle at 50% 30%, #ffd1ec, #ff4fa3 45%, #c2177a 85%);
    box-shadow: 0 0 0 5px #fff4fa, 0 0 0 9px #ff4fa3, 0 9px 0 5px #8e1259, 0 18px 34px rgba(0, 0, 0, .45), inset 0 -6px 12px rgba(120, 0, 60, .4);
    display: flex; align-items: center; justify-content: center; transition: transform .1s, filter .2s; }
.sl-spin svg { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.sl-spin:active { transform: translateY(4px) scale(.97); }
.sl-dock.is-busy:not(.is-auto) .sl-spin svg { animation: gzSpin .8s linear infinite; }
.sl-dock.is-busy .sl-spin { filter: saturate(.85); }
.sl-auto-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--gz-num); font-size: 30px; color: #fff;
    background: radial-gradient(circle at 50% 30%, #c9a3ff, #7c4dff 60%, #4a1fb8); border-radius: 50%; }
.sl-auto, .sl-bet .gz-stepper { min-width: 92px; }
.sl-auto { height: 52px; font-family: var(--gz-num); font-size: 18px; letter-spacing: 1px; }
.sl-dock.is-auto .sl-auto { background: linear-gradient(180deg, #ff8fab, #e5537a); }
.sl-turbo.is-on { background: linear-gradient(180deg, #fff3b0, #ffc928 60%, #d99100); color: #5a2d00; }
.sl-buy { flex-direction: column; gap: 0; line-height: 1.1; padding: 4px 16px !important; }
.sl-buy small { font-family: var(--gz-num); font-size: 12px; opacity: .85; }
.sl-pop { position: fixed; z-index: 40; transform: translate(-50%, -50%); pointer-events: none; text-align: center; animation: slPop 1.4s ease-out forwards; }
.sl-pop b { display: block; font-family: var(--gz-num); font-weight: 400; font-size: 30px; color: #fff; -webkit-text-stroke: 1.5px #8e1259; text-shadow: 0 3px 0 #8e1259, 0 0 18px rgba(255, 79, 163, .8); }
.sl-pop em { display: inline-block; margin-top: 2px; font-style: normal; font-family: var(--gz-num); font-size: 18px; padding: 0 8px; border-radius: 999px; background: #ffd23f; color: #6a2a00; }
@keyframes slPop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -120%) scale(1); } }
body.sl-fs-mode .gz-hud-logo { filter: drop-shadow(0 0 12px #c9a3ff); }
.sl-buy-box { text-align: center; }
.sl-buy-box img { width: 110px; height: 110px; object-fit: contain; display: block; margin: 0 auto 8px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35)); }
.sl-auto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
/* 구매 선택 (2026-10-18: 프리스핀 · 슈퍼 프리스핀 …, every slot game) */
.sl-buy-modal .gz-modal-box { max-width: 480px; }
.sl-buy-list { display: grid; gap: 10px; }
.sl-buy-opt { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, .18); background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); color: inherit;
    text-align: left; cursor: pointer; font: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; }
.sl-buy-opt:hover, .sl-buy-opt:focus-visible { transform: translateY(-2px); border-color: var(--gz-c2); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); outline: none; }
.sl-buy-opt .i { position: relative; width: 64px; height: 64px; }
.sl-buy-opt .i img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.sl-buy-opt .i em { position: absolute; right: -6px; bottom: -4px; font-style: normal; font-family: var(--gz-num); font-size: 15px; color: #fff; padding: 1px 6px;
    background: linear-gradient(180deg, #ffe066, #ff9f1c); border: 2px solid #fff; border-radius: 10px; text-shadow: 0 1px 0 rgba(120, 50, 0, .6); }
.sl-buy-opt .t > b { display: block; font-size: 17px; }
.sl-buy-opt .t small b { color: #ffe27a; font-weight: 800; }
.sl-buy-opt .t small { display: block; font-size: 12.5px; line-height: 1.45; opacity: .85; margin-top: 3px; }
.sl-buy-opt .p { text-align: right; }
.sl-buy-opt .p > b { display: block; font-family: var(--gz-num); font-weight: 400; font-size: 19px; color: #ffe27a; white-space: nowrap; }
.sl-buy-opt .p small { font-size: 11.5px; opacity: .75; white-space: nowrap; }
.sl-buy-opt.is-super, .sl-buy-opt.is-super2 { border-color: rgba(255, 210, 90, .6); background: linear-gradient(180deg, rgba(255, 196, 64, .24), rgba(255, 79, 163, .12)); }
.sl-buy-note { margin-top: 12px; font-size: 12.5px; }
body.sl-super-mode .gz-hud-logo { filter: drop-shadow(0 0 14px #ffd27a); }
body.sl-super-mode .sl-fs { background: linear-gradient(180deg, #fff1b8, #ffb300) !important; color: #5a2d00 !important; }
@media (max-width: 480px) { .sl-buy-opt { grid-template-columns: 48px 1fr; } .sl-buy-opt .i, .sl-buy-opt .i img { width: 48px; height: 48px; } .sl-buy-opt .p { grid-column: 2; text-align: left; } }
@media (max-width: 420px) { .sl-spin { width: 80px; height: 80px; } .sl-spin svg { width: 38px; height: 38px; } .sl-row { gap: 8px; } .sl-auto { min-width: 74px; } .sl-row2 .gz-btn { padding: 0 10px; font-size: 12.5px; } }

/* ================================================================== puzzles (2048 큐브 · 머지 젬) */
.pz-bar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--gz-safe-t) + 96px); z-index: 24; display: flex; gap: 8px; pointer-events: none; }
@media (min-width: 900px) { .pz-bar { top: calc(var(--gz-safe-t) + 64px); } }
.pz-stat { min-width: 84px; padding: 6px 14px; border-radius: 16px; text-align: center; background: rgba(40, 20, 6, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 6px 16px rgba(0, 0, 0, .2); }
.pz-stat small { display: block; font-size: 10.5px; font-weight: 800; opacity: .8; letter-spacing: .3px; }
.pz-stat b { display: block; font-family: var(--gz-num); font-weight: 400; font-size: 22px; line-height: 1.15; }
.pz-reward b { color: #ffe08a; font-size: 18px; }
.gz-merge .pz-stat { background: rgba(20, 8, 50, .58); }
.gz-merge .pz-reward b { color: #b9f3ff; }
.pz-dock { gap: 10px; }
.pz-dock .gz-btn { min-width: 110px; }
.pz-pop { position: fixed; z-index: 40; transform: translate(-50%, -50%); pointer-events: none; font-family: var(--gz-num); font-size: 24px; color: #fff;
    -webkit-text-stroke: 1px rgba(120, 50, 0, .7); text-shadow: 0 2px 0 rgba(120, 50, 0, .6); animation: pzPop .9s ease-out forwards; }
@keyframes pzPop { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.7); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -160%); } }
.pz-start { text-align: center; }
.pz-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 13.5px; }
.pz-table th, .pz-table td { padding: 7px 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.pz-table th { background: rgba(255, 255, 255, .06); font-weight: 800; }
.pz-table .l { text-align: left; }
.pz-table .num { text-align: right; font-family: var(--gz-num); }
.pz-stake { display: flex; justify-content: center; margin: 4px 0 8px; }
.pz-modal .gz-modal-box { max-width: 420px; }
.mg-tray { position: fixed; left: 50%; transform: translateX(-50%); z-index: 26; display: flex; align-items: flex-end; gap: 14px; pointer-events: none; }
.mg-next { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 16px; background: rgba(20, 8, 50, .58);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); pointer-events: auto; }
.mg-next small { font-size: 10.5px; font-weight: 800; opacity: .8; }
.mg-next canvas { width: 64px; height: 44px; }
.mg-rot { pointer-events: auto; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 22px;
    background: radial-gradient(circle at 50% 30%, #b9a2ff, #7c5cff 60%, #4a2fc0); box-shadow: 0 4px 0 #2d1680, 0 10px 20px rgba(0, 0, 0, .35); }
.mg-rot:active { transform: translateY(3px); box-shadow: 0 1px 0 #2d1680; }
.mg-rot[disabled] { filter: grayscale(.7) brightness(.7); }
.mg-tier { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #10061f; background: var(--c); }

/* ================================================================== 추억의 뽑기 */
.gc-dock { flex-direction: column; align-items: center; gap: 8px; }
.gc-row { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.gc-any { flex-direction: column; gap: 0; line-height: 1.15; min-width: 170px; min-height: 54px; font-size: 16px; }
.gc-any small { font-family: var(--gz-body); font-size: 11.5px; font-weight: 700; opacity: .9; }
.gc-boards { height: 44px; max-width: 220px; border-radius: 14px; border: 0; padding: 0 12px; font-weight: 700; color: #3b1f0e; background: #fff8e8; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.gc-pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 92vw; }
.gc-pager button { border: 0; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 800; cursor: pointer; color: #5a3110; background: rgba(255, 248, 232, .9); box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.gc-pager button.is-on { background: #d7263d; color: #fff; }
.gc-winners { list-style: none; padding: 0; margin: 0; max-height: 240px; overflow: auto; }
.gc-winners li { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.gc-winners small { opacity: .6; margin-left: 4px; }
.gz-gacha .gz-btn.is-primary { --gz-c1: #d7263d; }

/* 최고 관리자 무제한 (core.js Wallet.unlimited) */
.gz-wallet.is-unlimited { box-shadow: inset 0 0 0 1.5px rgba(255, 214, 92, .85), 0 0 14px rgba(255, 196, 60, .35); }
.gz-wallet.is-unlimited .gz-wallet-label { color: #ffd65c; letter-spacing: .02em; }

/* 게임존 modal (hub.js iframe): the hub draws the close bar, so the HUD back button is not needed */
.gz-embed .gz-hud-back { display: none; }
.sl-auto-grid [data-n="Infinity"] { grid-column: 1 / -1; }

/* ================================================================== slot kit games (2026-10-18: 천둥의 신전 · 신들의 결투 · 하베스트 페스타) */
.sk-sides { display: flex; justify-content: center; gap: 6px; margin: 0 auto 8px; pointer-events: auto; }
.sk-side { min-width: 92px; height: 34px; padding: 0 14px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .25); background: rgba(10, 8, 30, .55);
    color: #fff; font: 800 13.5px var(--gz-sans); cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.sk-side.is-on { border-color: #fff; transform: translateY(-1px); }
.sk-side[data-side="sky"].is-on { background: linear-gradient(180deg, #7fd4ff, #2f6bff); }
.sk-side[data-side="hell"].is-on { background: linear-gradient(180deg, #ff9a4d, #c3141f); }
.th-total { position: fixed; z-index: 30; left: 50%; top: calc(var(--gz-safe-t) + 70px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center;
    padding: 6px 22px 8px; border-radius: 18px; background: linear-gradient(180deg, rgba(20, 30, 90, .9), rgba(10, 14, 50, .9)); border: 2px solid #ffd24a;
    box-shadow: 0 0 24px rgba(95, 200, 255, .55); pointer-events: none; }
.th-total small { font: 800 11px var(--gz-sans); color: #9fe8ff; letter-spacing: .5px; }
.th-total b { font: 400 30px var(--gz-num); color: #fff; text-shadow: 0 0 12px #5cc8ff, 0 2px 0 rgba(0, 0, 0, .4); }
.th-total.is-pulse { animation: thPulse .6s ease-out; }
@keyframes thPulse { 0% { transform: translateX(-50%) scale(1); } 35% { transform: translateX(-50%) scale(1.25); } 100% { transform: translateX(-50%) scale(1); } }
.th-mult { position: fixed; z-index: 40; transform: translate(-50%, -50%) scale(.4); opacity: 0; pointer-events: none; text-align: center; animation: thMult .5s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.th-mult b { display: block; font: 400 clamp(64px, 14vw, 120px) var(--gz-num); color: #fff; -webkit-text-stroke: 3px #1c2f9e;
    text-shadow: 0 0 30px #5cc8ff, 0 6px 0 #1c2f9e; }
.th-mult small { display: inline-block; margin-top: 4px; padding: 2px 12px; border-radius: 999px; background: rgba(10, 14, 50, .8); color: #ffe27a; font: 400 18px var(--gz-num); }
.th-mult.is-out { animation: thMultOut .45s ease-in forwards; }
@keyframes thMult { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes thMultOut { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(-50%, -80%) scale(.6); opacity: 0; } }
.th-fly { position: fixed; z-index: 41; margin: -14px 0 0 -30px; width: 60px; text-align: center; font: 400 24px var(--gz-num); color: #fff; text-shadow: 0 0 12px #5cc8ff;
    pointer-events: none; transition: transform .6s cubic-bezier(.5, 0, .7, 1), opacity .6s; }
.sl-pop.th-pop-big b { font-size: 46px; -webkit-text-stroke-color: #1c2f9e; text-shadow: 0 4px 0 #1c2f9e, 0 0 22px rgba(95, 200, 255, .9); }
.sl-pop.th-pop-sc b { -webkit-text-stroke-color: #1c2f9e; text-shadow: 0 3px 0 #1c2f9e, 0 0 18px rgba(255, 210, 74, .9); }
.th-wheel { position: fixed; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center; background: rgba(5, 8, 30, .55); opacity: 0; transition: opacity .3s; }
.th-wheel.is-in { opacity: 1; }
.th-wheel-box { position: relative; width: min(78vw, 360px); text-align: center; }
.th-wheel-title { margin-bottom: 12px; font: 900 20px var(--gz-sans); color: #ffe27a; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.th-wheel-disc { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 8px solid #ffd24a; box-shadow: 0 0 0 4px #7a4a00, 0 0 40px rgba(255, 210, 74, .6); }
.th-wheel-disc span { position: absolute; left: 50%; top: 0; width: 0; height: 50%; transform-origin: 0 100%; }
.th-wheel-disc em { position: absolute; left: -40px; top: 12%; width: 80px; text-align: center; font: 800 14px var(--gz-sans); font-style: normal; color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.th-wheel-pin { position: absolute; left: 50%; top: 32px; margin-left: -14px; width: 0; height: 0; border: 14px solid transparent; border-top: 26px solid #fff;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.th-wheel-out { min-height: 54px; margin-top: 14px; opacity: 0; transition: opacity .3s; }
.th-wheel.is-done .th-wheel-out { opacity: 1; }
.th-wheel-out b { display: block; font: 900 24px var(--gz-sans); color: #fff; }
.th-wheel-out small { display: block; margin-top: 4px; font: 700 13px var(--gz-sans); color: #cfe9ff; }
body.th-fs .gz-hud-logo { filter: drop-shadow(0 0 12px #5cc8ff); }
.sl-pop.du-pop-mult b { -webkit-text-stroke-color: #1c2f9e; text-shadow: 0 3px 0 #1c2f9e, 0 0 18px rgba(95, 200, 255, .9); }
.sl-pop.du-pop-mult em { background: linear-gradient(180deg, #ffe066, #ff9f1c); color: #3a1500; }
body.du-hell .sl-pop.du-pop-mult b { -webkit-text-stroke-color: #7a0a10; text-shadow: 0 3px 0 #7a0a10, 0 0 18px rgba(255, 122, 46, .9); }
body.du-hell .gz-hud-logo { filter: drop-shadow(0 0 10px #ff7a2e); }
.hv-respin { position: fixed; z-index: 30; left: 50%; top: calc(var(--gz-safe-t) + 70px); transform: translateX(-50%); display: flex; align-items: baseline; gap: 10px;
    padding: 6px 20px; border-radius: 999px; background: linear-gradient(180deg, rgba(120, 60, 10, .92), rgba(70, 30, 5, .92)); border: 2px solid #ffd24a;
    box-shadow: 0 0 22px rgba(255, 210, 74, .5); pointer-events: none; color: #fff; }
.hv-respin small { font: 800 12px var(--gz-sans); color: #ffe7a3; }
.hv-respin b { font: 400 30px var(--gz-num); text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.hv-respin span { font: 400 16px var(--gz-num); color: #ffe27a; }
.hv-respin.is-pulse { animation: thPulse .5s ease-out; }
.hv-coin { position: fixed; z-index: 41; margin: -14px 0 0 -40px; width: 80px; text-align: center; font: 400 20px var(--gz-num); color: #fff7c2;
    text-shadow: 0 0 10px #ffb300, 0 2px 0 #7a4a00; pointer-events: none; transition: transform .6s cubic-bezier(.5, 0, .7, 1), opacity .6s; }
.hv-beam { position: fixed; z-index: 39; height: 6px; margin-top: -3px; transform-origin: 0 50%; border-radius: 3px; pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--c), #fff); box-shadow: 0 0 14px var(--c); animation: hvBeam .55s ease-out forwards; }
@keyframes hvBeam { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 40% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; } }
.sl-pop.hv-pop-add b { -webkit-text-stroke-color: #1f6b2a; text-shadow: 0 3px 0 #1f6b2a, 0 0 16px rgba(124, 242, 156, .9); font-size: 24px; }
.sl-pop.hv-pop-mul b { -webkit-text-stroke-color: #7a4a00; text-shadow: 0 3px 0 #7a4a00, 0 0 16px rgba(255, 210, 74, .9); }
.sl-pop.hv-pop-sp b { font-size: 22px; -webkit-text-stroke-color: #5a2d00; text-shadow: 0 2px 0 #5a2d00, 0 0 14px rgba(255, 210, 74, .9); }
.sl-pop.hv-pop-title b { font-size: 34px; -webkit-text-stroke-color: #7a4a00; text-shadow: 0 3px 0 #7a4a00, 0 0 20px rgba(255, 210, 74, .9); }
.du-flash { position: fixed; inset: 0; z-index: 35; pointer-events: none; opacity: 0; }
.du-flash.is-on { animation: duFlash .5s ease-out; }
@keyframes duFlash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* 데모 모드 (2026-10-18): dock switch + flag */
.sl-demo.is-on { background: linear-gradient(180deg, #33d1a0, #129a72); color: #fff; box-shadow: 0 0 0 2px rgba(51, 209, 160, .35), 0 4px 14px rgba(18, 154, 114, .4); }
.gz-demo-flag.is-demo { background: rgba(18, 154, 114, .85); color: #fff; border-color: rgba(125, 255, 210, .5); }

/* 젤리 봄 2500 (2026-10-18): win popups, bomb tally, flying values */
.sl-pop.jb-pop b { -webkit-text-stroke-color: #a0105c; text-shadow: 0 3px 0 #a0105c, 0 0 16px rgba(255, 120, 200, .9); }
.sl-pop.jb-pop em { background: linear-gradient(180deg, #fff27a, #ffb52e); color: #6a2a00; }
.sl-pop.jb-pop-sc b { -webkit-text-stroke-color: #7a1fa0; text-shadow: 0 3px 0 #7a1fa0, 0 0 18px rgba(255, 138, 216, .95); }
.jb-mult { position: fixed; z-index: 40; transform: translate(-50%, -50%) scale(.5); opacity: 0; pointer-events: none; text-align: center; animation: jbIn .45s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.jb-mult b { display: block; font: 400 clamp(60px, 13vw, 116px) var(--gz-num); color: #fff; -webkit-text-stroke: 3px #a0105c;
    text-shadow: 0 5px 0 #a0105c, 0 0 30px rgba(255, 79, 154, .9), 0 0 60px rgba(255, 210, 63, .6); transition: transform .12s; }
.jb-mult.is-tick b { animation: jbTick .22s ease-out; }
.jb-mult small { display: inline-block; margin-top: 6px; padding: 3px 14px; border-radius: 999px; background: rgba(90, 0, 50, .78); color: #fff27a; font: 400 18px var(--gz-num); }
.jb-mult.is-final b { color: #fff27a; -webkit-text-stroke-color: #7a1fa0; animation: jbSlam .5s cubic-bezier(.2, 1.8, .4, 1); }
.jb-mult.is-out { animation: jbOut .45s ease-in forwards; }
@keyframes jbIn { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes jbTick { 0% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes jbSlam { 0% { transform: scale(1.7); } 100% { transform: scale(1); } }
@keyframes jbOut { to { transform: translate(-50%, -80%) scale(.7); opacity: 0; } }
.jb-fly { position: fixed; z-index: 41; margin: -15px 0 0 -34px; width: 68px; text-align: center; font: 400 26px var(--gz-num); color: #fff;
    -webkit-text-stroke: 1.5px #a0105c; text-shadow: 0 0 12px #ff8ad8; pointer-events: none; transition: transform .55s cubic-bezier(.5, 0, .7, 1), opacity .55s; }
body.jb-fs .gz-hud-logo { filter: drop-shadow(0 0 12px #ff8ad8); }

/* 황금 사자 (2026-10-18): ways counter above the board, free spin multiplier badge, popups */
.ln-ways { position: fixed; z-index: 28; transform: translate(-50%, -50%); display: flex; align-items: baseline; gap: 8px; padding: 4px 16px 5px; border-radius: 999px;
    background: linear-gradient(180deg, #7a0d0d, #3a0505); border: 2px solid #f2b632; box-shadow: 0 4px 14px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 230, 160, .4);
    pointer-events: none; white-space: nowrap; }
.ln-ways small { font: 800 11px var(--gz-sans); letter-spacing: .12em; color: #ffd98a; }
.ln-ways b { font: 400 22px var(--gz-num); color: #fff3c4; text-shadow: 0 0 10px rgba(255, 200, 80, .7); }
.ln-ways.is-max b { color: #fff; text-shadow: 0 0 14px #ffd23f, 0 0 24px #ff4f4f; }
.ln-ways.is-pop { animation: lnPop .4s cubic-bezier(.2, 1.6, .4, 1); }
.ln-mult { --c: #ffd23f; position: fixed; z-index: 30; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 6px 12px 8px;
    border-radius: 18px; background: rgba(40, 4, 8, .82); border: 2px solid var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 55%, transparent); pointer-events: none; }
.ln-mult small { font: 800 11px var(--gz-sans); color: #ffd98a; letter-spacing: .08em; }
.ln-mult b { font: 400 34px var(--gz-num); color: #fff; text-shadow: 0 0 14px var(--c), 0 2px 0 rgba(0, 0, 0, .4); }
.ln-mult.is-pop { animation: lnPop .45s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes lnPop { 0% { transform: translate(-50%, -50%) scale(1.35); } 100% { transform: translate(-50%, -50%) scale(1); } }
.sl-pop.ln-pop b { -webkit-text-stroke-color: #7a0d0d; text-shadow: 0 3px 0 #7a0d0d, 0 0 16px rgba(255, 200, 80, .9); }
.sl-pop.ln-pop em { background: linear-gradient(180deg, #ffe27a, #f2b632); color: #5a1500; font-size: 13px; }
body.ln-fs .gz-hud-logo { filter: drop-shadow(0 0 12px #ffd23f); }
.ln-mult.is-compact { min-width: 62px; padding: 4px 9px 6px; border-radius: 14px; }
.ln-mult.is-compact b { font-size: 26px; }

/* 황야의 결투 (2026-10-18): gunfire flash, win popups, 보물 상자 고르기 */
.ww-flash { position: fixed; inset: 0; z-index: 35; pointer-events: none; opacity: 0; }
.ww-flash.is-on { animation: duFlash .45s ease-out; }
.sl-pop.ww-pop b { -webkit-text-stroke-color: #5a2a00; text-shadow: 0 3px 0 #5a2a00, 0 0 16px rgba(255, 190, 90, .9); }
.sl-pop.ww-pop em { background: linear-gradient(180deg, #ffe7b0, #e0a050); color: #3a1800; }
.sl-pop.ww-pop-mult b { -webkit-text-stroke-color: #7a1a08; text-shadow: 0 3px 0 #7a1a08, 0 0 18px rgba(255, 120, 60, .9); }
.sl-pop.ww-pop-mult em { background: linear-gradient(180deg, #ffe066, #ff9f1c); color: #3a1500; }
body.ww-fs .gz-hud-logo { filter: drop-shadow(0 0 12px #ffb347); }
.ww-pick { position: fixed; inset: 0; z-index: 44; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: radial-gradient(circle at 50% 40%, rgba(70, 30, 8, .62), rgba(12, 5, 2, .86)); opacity: 0; transition: opacity .3s; }
.ww-pick.is-in { opacity: 1; }
.ww-pick.is-out { opacity: 0; }
.ww-pick-box { width: min(560px, 100%, calc((100vh - 170px) * 1.33)); text-align: center; }
.ww-pick-box h3 { margin: 0; font: 400 clamp(24px, 5vw, 34px) var(--gz-num); color: #ffe27a; -webkit-text-stroke: 2px #5a2a00; text-shadow: 0 3px 0 #5a2a00, 0 0 18px rgba(255, 170, 60, .7); }
.ww-pick-box p { margin: 6px 0 14px; font: 700 14px var(--gz-sans); color: #ffe7c2; }
.ww-pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ww-chest { position: relative; aspect-ratio: 1; border: 0; border-radius: 16px; padding: 6px; cursor: pointer; background: radial-gradient(circle at 50% 60%, rgba(255, 200, 110, .2), rgba(255, 200, 110, 0) 70%);
    transition: transform .18s, opacity .3s, filter .3s; -webkit-tap-highlight-color: transparent; }
.ww-chest img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); animation: wwBob 2.4s ease-in-out infinite; }
.ww-chest:nth-child(2n) img { animation-delay: -.6s; }
.ww-chest:nth-child(3n) img { animation-delay: -1.2s; }
.ww-chest:hover { transform: translateY(-3px) scale(1.04); }
.ww-chest span { position: absolute; left: 0; right: 0; bottom: 4px; pointer-events: none; }
.ww-chest span b { display: block; font: 400 clamp(15px, 3.6vw, 21px) var(--gz-num); color: #fff; -webkit-text-stroke: 1.5px #7a1a08; text-shadow: 0 2px 0 #7a1a08, 0 0 12px rgba(255, 200, 80, .9); }
.ww-chest span small { display: block; font: 800 11px var(--gz-sans); color: #ffe7b0; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.ww-chest.is-open { cursor: default; animation: wwOpen .45s cubic-bezier(.2, 1.6, .4, 1); background: radial-gradient(circle at 50% 55%, rgba(255, 220, 120, .55), rgba(255, 200, 110, 0) 72%); }
.ww-chest.is-open img { animation: none; }
.ww-chest.is-off { opacity: .35; filter: grayscale(.6); pointer-events: none; }
.ww-pick-got { display: flex; justify-content: center; gap: 8px; min-height: 34px; margin-top: 14px; }
.ww-pick-got em { padding: 4px 14px; border-radius: 999px; font: 400 18px var(--gz-num); font-style: normal; color: #3a1500; background: linear-gradient(180deg, #ffe066, #ff9f1c);
    box-shadow: 0 0 14px rgba(255, 170, 60, .6); animation: wwOpen .4s cubic-bezier(.2, 1.6, .4, 1); }
.ww-pick-got em.is-spins { background: linear-gradient(180deg, #b6f5ff, #4fc3f7); color: #062a3a; }
@keyframes wwBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes wwOpen { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
@media (max-width: 420px) { .ww-pick-grid { gap: 6px; } }

/* 젬 레벨업 (2026-10-18): win popups */
.sl-pop.gu-pop b { -webkit-text-stroke-color: #2a1680; text-shadow: 0 3px 0 #2a1680, 0 0 16px rgba(127, 243, 255, .9); }
.sl-pop.gu-pop em { background: linear-gradient(180deg, #b6f5ff, #4fc3f7); color: #062a3a; }
.sl-pop.gu-pop-mult b { -webkit-text-stroke-color: #6a0a5a; text-shadow: 0 3px 0 #6a0a5a, 0 0 18px rgba(255, 120, 220, .95); }
.sl-pop.gu-pop-mult em { background: linear-gradient(180deg, #ffe066, #ff9f1c); color: #3a1500; }
body.gu-fs .gz-hud-logo { filter: drop-shadow(0 0 12px #7ff3ff); }

/* 황금 사자 2판 (2026-10-18 밤): MAX MEGAWAYS, WILD multipliers, free spin choice, level meter */
.ln-ways.is-big b { color: #fff; text-shadow: 0 0 14px #ffd23f; }
.ln-ways.is-max { background: linear-gradient(180deg, rgba(200, 20, 20, .95), rgba(110, 8, 8, .95)); border-color: #ffe27a; box-shadow: 0 0 26px rgba(255, 210, 63, .8); }
.ln-ways.is-max small { color: #fff3b0; letter-spacing: .08em; }
.ln-ways.is-max b { color: #fff; text-shadow: 0 0 14px #ffd23f, 0 0 26px #ff4f4f; }
.sl-pop.ln-pop-wild em { background: linear-gradient(180deg, #fff3b0, #ffb52e); color: #5a1500; }
.ln-level { --c: #ffd23f; position: fixed; z-index: 30; transform: translate(-50%, -50%); width: 118px; padding: 8px 10px 10px; border-radius: 16px; text-align: center;
    background: linear-gradient(180deg, rgba(80, 8, 8, .92), rgba(40, 4, 4, .92)); border: 2px solid var(--c); box-shadow: 0 0 18px rgba(255, 180, 60, .45); color: #fff; pointer-events: none; }
.ln-level-top small { display: block; font: 800 11px var(--gz-sans); letter-spacing: .12em; color: #ffd98a; }
.ln-level-top b { display: block; font: 400 30px var(--gz-num); color: #fff; text-shadow: 0 0 12px var(--c); line-height: 1.05; }
.ln-coins { display: flex; justify-content: center; gap: 6px; margin: 6px 0 4px; }
.ln-coins i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 210, 63, .55); background: rgba(0, 0, 0, .35); }
.ln-coins i.is-on { background: radial-gradient(circle at 35% 35%, #fff6c0, #ffc93a 55%, #b07400); border-color: #ffe27a; box-shadow: 0 0 10px #ffd23f; }
.ln-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.ln-pool span { padding: 1px 6px; border-radius: 999px; font: 400 14px var(--gz-num); color: #3a1500; background: linear-gradient(180deg, #ffe27a, #f2b632); }
.ln-pool span.is-off { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .35); text-decoration: line-through; }
.ln-level.is-pop { animation: lnPop .45s cubic-bezier(.2, 1.8, .4, 1); }
.ln-level.is-compact { width: auto; display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; }
.ln-level.is-compact .ln-level-top b { font-size: 20px; }
.ln-level.is-compact .ln-coins { margin: 0; }
.ln-level.is-compact .ln-coins i { width: 13px; height: 13px; }
body.ln-max .gz-hud-logo { filter: drop-shadow(0 0 14px #ff3b3b); }
.ln-coin-fly { position: fixed; z-index: 41; width: 46px; height: 46px; margin: -23px 0 0 -23px; background: center / contain no-repeat; pointer-events: none;
    transition: transform .6s cubic-bezier(.5, 0, .7, 1), opacity .6s; filter: drop-shadow(0 0 8px #ffd23f); }
.ln-pick { position: fixed; inset: 0; z-index: 44; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: radial-gradient(circle at 50% 40%, rgba(90, 10, 10, .7), rgba(15, 2, 2, .9)); opacity: 0; transition: opacity .3s; }
.ln-pick.is-in { opacity: 1; }
.ln-pick.is-out { opacity: 0; }
.ln-pick-box { width: min(720px, 100%, calc((100vh - 120px) * 1.9)); text-align: center; }
.ln-pick-box h3 { margin: 0; font: 400 clamp(22px, 5vw, 34px) var(--gz-num); color: #ffe27a; -webkit-text-stroke: 2px #6a0a0a; text-shadow: 0 3px 0 #6a0a0a, 0 0 18px rgba(255, 180, 60, .7); }
.ln-pick-box p { margin: 6px 0 12px; font: 700 13px/1.5 var(--gz-sans); color: #ffe7c2; }
.ln-pick-box p b { color: #ffd23f; }
.ln-pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ln-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 16px; cursor: pointer;
    border: 2px solid #f2b632; background: linear-gradient(180deg, #8a1010, #4a0606); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .15), 0 6px 16px rgba(0, 0, 0, .4);
    transition: transform .15s, opacity .25s, filter .25s; -webkit-tap-highlight-color: transparent; }
.ln-opt:hover { transform: translateY(-3px); }
.ln-opt b { font: 400 clamp(26px, 6vw, 38px) var(--gz-num); color: #ffe27a; text-shadow: 0 2px 0 #4a0606, 0 0 12px rgba(255, 200, 80, .7); line-height: 1; }
.ln-opt b span { font-size: .5em; margin-left: 2px; color: #fff3c4; }
.ln-opt small { font: 800 10.5px var(--gz-sans); color: #ffd98a; letter-spacing: .06em; }
.ln-opt em { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; font-style: normal; }
.ln-opt em i { font: 400 13px var(--gz-num); font-style: normal; color: #fff; }
.ln-opt em i.is-off { color: rgba(255, 255, 255, .35); text-decoration: line-through; }
.ln-opt.is-mystery { background: linear-gradient(180deg, #5a2a90, #2a0a50); border-color: #c9a0ff; }
.ln-opt.is-mystery b { color: #fff; text-shadow: 0 0 16px #c07bff; }
.ln-opt.is-on { transform: scale(1.08); border-color: #fff; box-shadow: 0 0 0 3px #ffd23f, 0 0 30px rgba(255, 210, 63, .9); }
.ln-opt.is-dim { opacity: .35; filter: grayscale(.5); }
.ln-pick.is-super .ln-opt { background: linear-gradient(180deg, #b85a08, #5a2404); }
@media (max-width: 520px) { .ln-pick-grid { gap: 6px; } .ln-opt { padding: 9px 4px 8px; } .ln-opt em i { font-size: 11.5px; } }

/* 황금 사자 엽전 트랙 · 왼쪽 패널 · 맥스 MEGAWAYS (2026-10-19, 원작 화면 참고) */
.ln-track { --w: 520px; position: fixed; z-index: 29; transform: translate(-50%, -50%); width: var(--w); display: flex; align-items: center; justify-content: space-between;
    gap: 2px; padding: 4px 8px 4px 4px; border-radius: 999px; background: linear-gradient(180deg, rgba(110, 14, 14, .92), rgba(50, 4, 4, .92));
    border: 2px solid #f2b632; box-shadow: 0 0 18px rgba(255, 180, 60, .45), inset 0 2px 0 rgba(255, 255, 255, .12); pointer-events: none; }
.ln-track-orb { width: calc(var(--w) / 11); height: calc(var(--w) / 11); object-fit: contain; filter: drop-shadow(0 0 8px #ff9a2e); animation: lnOrb 3s linear infinite; }
.ln-slot, .ln-medal { position: relative; width: calc(var(--w) / 12.5); height: calc(var(--w) / 12.5); border-radius: 50%; flex: 0 0 auto; }
.ln-slot { background: radial-gradient(circle at 50% 55%, rgba(0, 0, 0, .7), rgba(30, 4, 4, .9)); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .8), 0 0 0 2px rgba(242, 182, 50, .55); }
.ln-slot img { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: contain; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s cubic-bezier(.2, 1.6, .4, 1); }
.ln-slot.is-on img { opacity: 1; transform: scale(1); }
.ln-slot.is-pop { animation: lnSlotPop .45s cubic-bezier(.2, 1.8, .4, 1); }
.ln-medal { display: flex; flex-direction: column; align-items: center; justify-content: center; width: calc(var(--w) / 9.5); height: calc(var(--w) / 9.5);
    background: radial-gradient(circle at 40% 35%, #6a5a8a, #2a2040 70%); border: 2px solid #7a6a9a; color: rgba(255, 255, 255, .55); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6); }
.ln-medal b { font: 400 calc(var(--w) / 30) var(--gz-num); line-height: 1; }
.ln-medal small { font: 800 calc(var(--w) / 62) var(--gz-sans); letter-spacing: .04em; }
.ln-medal.is-on { background: radial-gradient(circle at 40% 35%, #ff6a5a, #b0101a 70%); border-color: #ffe27a; color: #fff3b0;
    box-shadow: 0 0 14px rgba(255, 210, 63, .9), inset 0 2px 4px rgba(255, 255, 255, .35); }
.ln-medal.is-on b { text-shadow: 0 0 8px #ffd23f; }
.ln-medal.is-hit { animation: lnMedalHit .9s cubic-bezier(.2, 1.6, .4, 1); }
.ln-track.is-reset { animation: lnTrackReset .6s ease-out; }
@keyframes lnOrb { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes lnSlotPop { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes lnMedalHit { 0% { transform: scale(1) rotateY(0); } 40% { transform: scale(1.6) rotateY(180deg); } 100% { transform: scale(1) rotateY(360deg); } }
@keyframes lnTrackReset { 0% { filter: brightness(2); } 100% { filter: brightness(1); } }
.ln-plus { position: fixed; z-index: 46; transform: translate(-50%, -50%) scale(.3); opacity: 0; pointer-events: none; text-align: center;
    animation: lnPlusIn .45s cubic-bezier(.2, 1.8, .4, 1) forwards; transition: transform .45s cubic-bezier(.5, 0, .7, 1), opacity .45s; }
.ln-plus b { display: block; font: 400 clamp(54px, 11vw, 96px) var(--gz-num); color: #fff3b0; -webkit-text-stroke: 3px #7a0a0a; text-shadow: 0 4px 0 #7a0a0a, 0 0 26px #ffd23f; line-height: .95; }
.ln-plus small { display: block; font: 400 clamp(18px, 3.4vw, 28px) var(--gz-num); color: #ffe27a; -webkit-text-stroke: 1.5px #7a0a0a; letter-spacing: .08em; }
.ln-plus.is-fly { animation: none; opacity: .2; }
@keyframes lnPlusIn { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.ln-side { position: fixed; z-index: 30; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 10px; width: 122px; pointer-events: none; }
.ln-side-box { padding: 8px 8px 10px; border-radius: 14px; text-align: center; color: #fff; background: linear-gradient(180deg, rgba(90, 10, 60, .92), rgba(40, 4, 30, .92));
    border: 2px solid #f2b632; box-shadow: 0 0 16px rgba(255, 180, 60, .35); }
.ln-side-box > small { display: block; font: 800 12px var(--gz-sans); color: #ffd98a; letter-spacing: .04em; margin-bottom: 4px; }
.ln-side-box .ln-pool span.is-max { font-size: 22px; padding: 2px 10px; }
.ln-side-box .ln-pool span.is-drop { animation: lnDrop .8s ease-out; }
.ln-left b { display: block; font: 400 40px var(--gz-num); color: #fff3b0; text-shadow: 0 0 12px #ffd23f, 0 2px 0 #4a0606; line-height: 1.05; }
.ln-left b.is-pop { animation: lnLeftPop .6s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes lnDrop { 0% { transform: scale(1.4) rotate(-6deg); background: #ff4f4f; color: #fff; } 100% { transform: none; } }
@keyframes lnLeftPop { 0% { transform: scale(1.8); color: #fff; } 100% { transform: scale(1); } }
.ln-side.is-compact { flex-direction: row; width: auto; gap: 8px; }
.ln-side.is-compact .ln-side-box { padding: 4px 10px; display: flex; align-items: center; gap: 8px; }
.ln-side.is-compact .ln-side-box > small { margin: 0; font-size: 11px; }
.ln-side.is-compact .ln-left b { font-size: 24px; }
.ln-side.is-compact .ln-side-box > small { white-space: nowrap; }
.ln-side.is-compact .ln-pool { flex-wrap: nowrap; }
.ln-side.is-compact .ln-pool span { font-size: 13px; padding: 1px 5px; }
.ln-maxw { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none;
    background: radial-gradient(circle at 50% 45%, rgba(120, 60, 0, .55), rgba(20, 4, 0, .85)); opacity: 0; transition: opacity .3s; overflow: hidden; }
.ln-maxw.is-in { opacity: 1; }
.ln-maxw.is-out { opacity: 0; }
.ln-maxw-rays { position: absolute; left: 50%; top: 45%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; opacity: .35;
    background: repeating-conic-gradient(from 0deg, rgba(255, 220, 120, .6) 0 6deg, rgba(255, 220, 120, 0) 6deg 18deg); animation: lnOrb 14s linear infinite; }
.ln-maxw img { position: relative; height: min(52vh, 420px); filter: drop-shadow(0 0 30px rgba(255, 200, 60, .8)); transform: scale(.3) translateY(30%); transition: transform .6s cubic-bezier(.2, 1.4, .4, 1); }
.ln-maxw.is-in img { transform: scale(1) translateY(0); }
.ln-maxw-t { position: relative; margin-top: -4vh; font: 400 clamp(42px, 9vw, 92px) var(--gz-num); color: #ffe27a; -webkit-text-stroke: 3px #6a2a00;
    text-shadow: 0 5px 0 #6a2a00, 0 0 30px rgba(255, 200, 60, .9); letter-spacing: .02em; transform: scale(.5); opacity: 0; transition: transform .5s .25s cubic-bezier(.2, 1.8, .4, 1), opacity .3s .25s; }
.ln-maxw-t b { color: #fff3b0; }
.ln-maxw.is-in .ln-maxw-t { transform: scale(1); opacity: 1; }
.ln-maxw small { position: relative; margin-top: 6px; font: 800 clamp(14px, 2.6vw, 20px) var(--gz-sans); color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, .8); }

/* 황금 사자 와이드 (2026-10-19, "메가웨이류는 슬롯 화면을 와이드형으로"): landscape = wide reels (lion.js COLW_WIDE) and the
   free spin choice as one row of eight tall cards; portrait phones keep the 4 × 2 grid */
body.ln-wide .ln-pick-box { width: min(1200px, 100%); }
body.ln-wide .ln-pick-grid { grid-template-columns: repeat(8, 1fr); gap: clamp(6px, 1vw, 12px); }
body.ln-wide .ln-opt { justify-content: center; gap: 8px; padding: 18px 6px 16px; min-height: clamp(150px, 34vh, 240px); }
body.ln-wide .ln-opt b { font-size: clamp(28px, 3.6vw, 46px); }
body.ln-wide .ln-opt small { font-size: clamp(10px, 1vw, 12px); }
body.ln-wide .ln-opt em { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 4px 10px; }
body.ln-wide .ln-opt em i { font-size: clamp(13px, 1.4vw, 17px); }
body.ln-wide .ln-opt.is-mystery b { font-size: clamp(40px, 5vw, 64px); }
body.ln-wide .ln-pick-box p { font-size: 14px; }

/* 바이킹 뇌신 (2026-10-19): WAYS (top-left corner) and the free spin multiplier (top-right corner) inside the board's top band, popups */
.vk-corner { --cw: 120px; position: fixed; z-index: 28; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 12px; background: linear-gradient(180deg, rgba(14, 36, 80, .95), rgba(4, 12, 34, .95)); border: 2px solid #8fc4ff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(200, 230, 255, .35); pointer-events: none; white-space: nowrap; overflow: hidden; }
.vk-corner small { font: 800 clamp(8px, calc(var(--cw) * .1), 12px) var(--gz-sans); letter-spacing: .1em; color: #9fd0ff; }
.vk-corner b { font: 400 clamp(12px, calc(var(--cw) * .2), 28px) var(--gz-num); color: #eef8ff; text-shadow: 0 0 10px rgba(92, 200, 255, .75); line-height: 1.05; }
.vk-ways.is-max { background: linear-gradient(180deg, rgba(40, 90, 200, .95), rgba(10, 30, 90, .95)); border-color: #ffe27a; box-shadow: 0 0 24px rgba(92, 200, 255, .8); }
.vk-ways.is-max b { color: #fff; text-shadow: 0 0 14px #5cc8ff, 0 0 24px #ffd23f; }
.vk-corner.is-pop { animation: lnPop .4s cubic-bezier(.2, 1.6, .4, 1); }
.vk-mult img { width: min(70%, calc(var(--cw) * .5)); height: 70%; object-fit: contain; opacity: .85; filter: drop-shadow(0 0 8px rgba(92, 200, 255, .7)); }
.vk-mult small, .vk-mult b { display: none; }
body.vk-fs .vk-mult img { display: none; }
body.vk-fs .vk-mult small, body.vk-fs .vk-mult b { display: block; }
body.vk-fs .vk-mult { border-color: #ffd23f; box-shadow: 0 0 18px rgba(255, 210, 63, .55); }
body.vk-fs .vk-mult b { font-size: clamp(16px, calc(var(--cw) * .32), 40px); color: #fff3b0; text-shadow: 0 0 14px #ffd23f, 0 2px 0 rgba(0, 0, 0, .4); }
.vk-mult.is-hot b { color: #fff; text-shadow: 0 0 16px #ff8a3c, 0 0 28px #ffd23f; }
.sl-pop.vk-pop b { -webkit-text-stroke-color: #0a2a6a; text-shadow: 0 3px 0 #0a2a6a, 0 0 16px rgba(92, 200, 255, .9); }
.sl-pop.vk-pop em { background: linear-gradient(180deg, #bfe6ff, #5cc8ff); color: #06204a; font-size: 13px; }
.sl-pop.vk-pop-m em { background: linear-gradient(180deg, #fff3b0, #ffb52e); color: #4a2200; }
.vk-plus { position: fixed; left: 50%; top: 42%; z-index: 46; transform: translate(-50%, -50%) scale(.3); opacity: 0; pointer-events: none; text-align: center;
    animation: lnPlusIn .45s cubic-bezier(.2, 1.8, .4, 1) forwards, vkPlusOut .4s 1.3s ease-in forwards; }
.vk-plus b { display: block; font: 400 clamp(54px, 11vw, 96px) var(--gz-num); color: #eef8ff; -webkit-text-stroke: 3px #0a2a6a; text-shadow: 0 4px 0 #0a2a6a, 0 0 26px #5cc8ff; line-height: .95; }
.vk-plus small { display: block; font: 400 clamp(18px, 3.4vw, 28px) var(--gz-num); color: #9fd0ff; -webkit-text-stroke: 1.5px #0a2a6a; letter-spacing: .08em; }
@keyframes vkPlusOut { to { transform: translate(-50%, -70%) scale(.8); opacity: 0; } }
body.vk-fs .gz-hud-logo { filter: drop-shadow(0 0 12px #5cc8ff); }

/* 대마법사 (2026-10-19): ways counter, free spin multiplier panel, lightning label, 맥스 MEGAWAYS, gamble wheel */
.mg-ways { position: fixed; z-index: 28; transform: translate(-50%, -50%); display: flex; align-items: baseline; gap: 8px; padding: 4px 16px 5px; border-radius: 999px;
    background: linear-gradient(180deg, #3a1470, #160636); border: 2px solid #d8a73a; box-shadow: 0 4px 14px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(230, 200, 255, .35);
    pointer-events: none; white-space: nowrap; }
.mg-ways small { font: 800 11px var(--gz-sans); letter-spacing: .12em; color: #e3c8ff; }
.mg-ways b { font: 400 22px var(--gz-num); color: #fff3d6; text-shadow: 0 0 10px rgba(192, 123, 255, .8); }
.mg-ways.is-max { background: linear-gradient(180deg, #7a2ad0, #2a0a60); border-color: #ffe27a; box-shadow: 0 0 26px rgba(192, 123, 255, .9); }
.mg-ways.is-max b { color: #fff; text-shadow: 0 0 14px #c07bff, 0 0 26px #ffd23f; }
.mg-ways.is-pop { animation: lnPop .4s cubic-bezier(.2, 1.6, .4, 1); }
.mg-mult { position: fixed; z-index: 30; transform: translate(-50%, -50%); width: 140px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    pointer-events: none; }
.mg-mult img { position: absolute; left: 50%; top: 44%; width: 128px; height: 128px; transform: translate(-50%, -50%); filter: drop-shadow(0 0 14px rgba(192, 123, 255, .8)); }
.mg-mult b { position: relative; margin-top: -10px; font: 400 40px var(--gz-num); color: #fff3d6; text-shadow: 0 0 14px #c07bff, 0 2px 0 rgba(0, 0, 0, .5); }
.mg-mult small { position: absolute; bottom: 0; font: 800 12px var(--gz-sans); color: #e3c8ff; letter-spacing: .06em; white-space: nowrap; }
.mg-mult.is-hot b { color: #fff; text-shadow: 0 0 16px #ff8a3c, 0 0 28px #ffd23f; }
.mg-mult.is-pop { animation: lnPop .45s cubic-bezier(.2, 1.8, .4, 1); }
.mg-mult.is-compact { width: auto; height: auto; flex-direction: row; gap: 8px; padding: 4px 14px; border-radius: 999px; background: linear-gradient(180deg, #3a1470, #160636);
    border: 2px solid #d8a73a; }
.mg-mult.is-compact img { display: none; }
.mg-mult.is-compact b { margin: 0; font-size: 26px; }
.mg-mult.is-compact small { position: static; }
.sl-pop.mg-pop b { -webkit-text-stroke-color: #3a0a6a; text-shadow: 0 3px 0 #3a0a6a, 0 0 16px rgba(192, 123, 255, .9); }
.sl-pop.mg-pop em { background: linear-gradient(180deg, #e3c8ff, #b07bff); color: #240650; font-size: 13px; }
.sl-pop.mg-pop-m em { background: linear-gradient(180deg, #fff3b0, #ffb52e); color: #4a2200; }
.mg-bolt-t { position: fixed; left: 50%; top: 24%; z-index: 41; transform: translate(-50%, -50%); text-align: center; pointer-events: none; animation: lnPlusIn .35s cubic-bezier(.2, 1.8, .4, 1) forwards, vkPlusOut .4s 1.2s ease-in forwards; opacity: 0; }
.mg-bolt-t small { display: block; font: 400 clamp(16px, 3vw, 24px) var(--gz-num); color: #e3c8ff; -webkit-text-stroke: 1px #3a0a6a; }
.mg-bolt-t b { display: block; font: 400 clamp(26px, 5vw, 44px) var(--gz-num); color: #fff; -webkit-text-stroke: 2px #5a0a3a; text-shadow: 0 0 18px #ff4f6a, 0 3px 0 #5a0a3a; }
.mg-plus { position: fixed; left: 50%; top: 42%; z-index: 46; transform: translate(-50%, -50%) scale(.3); opacity: 0; pointer-events: none; text-align: center;
    animation: lnPlusIn .45s cubic-bezier(.2, 1.8, .4, 1) forwards, vkPlusOut .4s 1.3s ease-in forwards; }
.mg-plus b { display: block; font: 400 clamp(54px, 11vw, 96px) var(--gz-num); color: #fff3d6; -webkit-text-stroke: 3px #3a0a6a; text-shadow: 0 4px 0 #3a0a6a, 0 0 26px #c07bff; line-height: .95; }
.mg-plus small { display: block; font: 400 clamp(18px, 3.4vw, 28px) var(--gz-num); color: #e3c8ff; -webkit-text-stroke: 1.5px #3a0a6a; letter-spacing: .08em; }
.mg-maxw { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none;
    background: radial-gradient(circle at 50% 45%, rgba(90, 30, 170, .55), rgba(10, 2, 30, .85)); opacity: 0; transition: opacity .35s; }
.mg-maxw.is-in { opacity: 1; }
.mg-maxw.is-out { opacity: 0; }
.mg-maxw-rays { position: absolute; left: 50%; top: 45%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; opacity: .35;
    background: repeating-conic-gradient(rgba(220, 180, 255, .5) 0 6deg, transparent 6deg 18deg); animation: gzSpin 18s linear infinite; }
.mg-maxw img { position: relative; height: min(52vh, 420px); filter: drop-shadow(0 0 30px rgba(192, 123, 255, .9)); transform: scale(.3) translateY(30%); transition: transform .6s cubic-bezier(.2, 1.4, .4, 1); }
.mg-maxw.is-in img { transform: scale(1) translateY(0); }
.mg-maxw-t { position: relative; margin-top: -3vh; font: 400 clamp(40px, 8.5vw, 88px) var(--gz-num); color: #f0dcff; -webkit-text-stroke: 3px #3a0a6a;
    text-shadow: 0 5px 0 #3a0a6a, 0 0 30px rgba(192, 123, 255, .95); transform: scale(.5); opacity: 0; transition: transform .5s .25s cubic-bezier(.2, 1.8, .4, 1), opacity .3s .25s; }
.mg-maxw-t b { color: #ffe27a; }
.mg-maxw.is-in .mg-maxw-t { transform: scale(1); opacity: 1; }
.mg-maxw small { position: relative; margin-top: 6px; font: 800 clamp(14px, 2.6vw, 20px) var(--gz-sans); color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, .8); }
/* gamble: wheel on the left, choices on the right (wide); one column on portrait phones */
.mg-gamble { position: fixed; inset: 0; z-index: 44; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: radial-gradient(circle at 50% 40%, rgba(70, 24, 140, .78), rgba(8, 2, 22, .93)); opacity: 0; transition: opacity .3s; }
.mg-gamble.is-in { opacity: 1; }
.mg-gamble.is-out { opacity: 0; }
.mg-gamble-box { width: min(1000px, 100%); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "wheel title" "wheel text" "wheel btns" "wheel ladder" "wheel msg";
    column-gap: clamp(18px, 4vw, 48px); row-gap: 10px; align-items: center; align-content: center; }
.mg-gamble h3 { grid-area: title; margin: 0; font: 400 clamp(30px, 5vw, 54px) var(--gz-num); color: #f0dcff; -webkit-text-stroke: 2px #3a0a6a; text-shadow: 0 3px 0 #3a0a6a, 0 0 22px rgba(192, 123, 255, .9); }
.mg-gamble h3 b { color: #ffe27a; font-size: 1.25em; }
.mg-gamble-p { grid-area: text; margin: 0; font: 700 14px/1.55 var(--gz-sans); color: #eadcff; }
.mg-gamble-p b { color: #ffe27a; }
.mg-wheel { grid-area: wheel; position: relative; width: min(52vh, 400px, 44vw); aspect-ratio: 1; }
.mg-wheel-disc { position: absolute; inset: 10%; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 24px rgba(0, 0, 0, .6); }
.mg-wheel-disc svg { display: block; width: 100%; height: 100%; }
.mg-arc-ok { fill: #1fae6a; stroke: #b9ffd9; stroke-width: 1.5; }
.mg-arc-no { fill: #8e1a3a; stroke: #ffb3c4; stroke-width: 1.5; }
.mg-hub { fill: #2a0a60; stroke: #ffd76a; stroke-width: 3; }
.mg-t-ok, .mg-t-no { font: 400 20px var(--gz-num); fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: 4px; }
.mg-wheel-rim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 0 18px rgba(192, 123, 255, .7)); }
.mg-wheel-ptr { position: absolute; left: 50%; top: -4%; height: 22%; transform: translateX(-50%); pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.mg-gamble-btns { grid-area: btns; display: flex; gap: 12px; flex-wrap: wrap; }
.mg-gamble-btns button { flex: 1 1 180px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px 12px; border-radius: 18px; cursor: pointer;
    border: 2px solid #d8a73a; color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), 0 8px 18px rgba(0, 0, 0, .45); transition: transform .15s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.mg-gamble-btns button:hover { transform: translateY(-3px); }
.mg-gamble-btns button b { font: 400 clamp(24px, 3.4vw, 34px) var(--gz-num); line-height: 1; }
.mg-gamble-btns button small { font: 800 12.5px var(--gz-sans); opacity: .92; }
.mg-collect { background: linear-gradient(180deg, #2a9a5a, #0e5a30); }
.mg-try { background: linear-gradient(180deg, #8a3ad8, #3a0a80); }
.mg-gamble.is-busy .mg-gamble-btns button { opacity: .45; pointer-events: none; }
.mg-ladder { grid-area: ladder; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.mg-ladder li { min-width: 44px; padding: 4px 8px; border-radius: 999px; text-align: center; font: 400 16px var(--gz-num); color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); border: 1px solid rgba(216, 167, 58, .35); }
.mg-ladder li.is-past { color: #b9ffd9; background: rgba(31, 174, 106, .25); }
.mg-ladder li.is-on { color: #2a0a00; background: linear-gradient(180deg, #ffe27a, #d8a73a); border-color: #fff3b0; box-shadow: 0 0 14px rgba(255, 210, 63, .7); }
.mg-gamble-msg { grid-area: msg; font: 700 16px var(--gz-sans); color: #fff; }
.mg-gamble-msg b { font: 400 30px var(--gz-num); margin-right: 8px; }
.mg-gamble-msg.is-ok b { color: #7dffb8; text-shadow: 0 0 16px #1fae6a; }
.mg-gamble-msg.is-no b { color: #ff8aa0; text-shadow: 0 0 16px #c0283c; }
@media (max-aspect-ratio: 1/1) {
    .mg-gamble-box { grid-template-columns: 1fr; grid-template-areas: "title" "text" "wheel" "msg" "btns" "ladder"; justify-items: center; text-align: center; }
    .mg-wheel { width: min(72vw, 40vh, 340px); }
    .mg-ladder { justify-content: center; }
    .mg-gamble-btns { width: 100%; }
}
body.mg-fs .gz-hud-logo { filter: drop-shadow(0 0 12px #c07bff); }

/* 다이너마이트 광산 (2026-10-19): nugget count (free spins), popups, +2 SPINS, tier up */
.mn-hud { position: fixed; z-index: 28; transform: translate(-50%, -50%); display: flex; align-items: baseline; gap: 8px; padding: 4px 16px 5px; border-radius: 999px;
    background: linear-gradient(180deg, #6a3a10, #2a1404); border: 2px solid #ffd23f; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); pointer-events: none; white-space: nowrap; }
.mn-hud small { font: 800 11px var(--gz-sans); letter-spacing: .1em; color: #ffd98a; }
.mn-hud b { font: 400 22px var(--gz-num); color: #fff3c4; text-shadow: 0 0 10px rgba(255, 200, 80, .7); }
.sl-pop.mn-pop b { -webkit-text-stroke-color: #4a2204; text-shadow: 0 3px 0 #4a2204, 0 0 16px rgba(255, 190, 80, .9); }
.sl-pop.mn-pop em { background: linear-gradient(180deg, #ffd27a, #e08a2a); color: #3a1800; font-size: 13px; }
.sl-pop.mn-pop-nug b { font-size: 30px; color: #fff3b0; }
.sl-pop.mn-pop-nug em { background: linear-gradient(180deg, #fff3b0, #ffd23f); }
.mn-plus { position: fixed; z-index: 42; transform: translate(-50%, -50%) scale(.3); opacity: 0; pointer-events: none; text-align: center;
    animation: lnPlusIn .4s cubic-bezier(.2, 1.8, .4, 1) forwards, mnRise .5s 1s ease-in forwards; }
.mn-plus b { display: block; font: 400 34px var(--gz-num); color: #fff3b0; -webkit-text-stroke: 2px #4a2204; text-shadow: 0 3px 0 #4a2204, 0 0 16px #ffd23f; line-height: .95; }
.mn-plus small { display: block; font: 400 13px var(--gz-num); color: #ffd98a; -webkit-text-stroke: 1px #4a2204; letter-spacing: .08em; }
@keyframes mnRise { to { transform: translate(-50%, -140%) scale(.9); opacity: 0; } }
.mn-up { position: fixed; z-index: 42; transform: translate(-50%, -50%) scale(.3); opacity: 0; pointer-events: none; text-align: center;
    animation: lnPlusIn .4s cubic-bezier(.2, 1.8, .4, 1) forwards, mnRise .5s .9s ease-in forwards; }
.mn-up small { display: block; font: 400 14px var(--gz-num); color: #bff4ff; -webkit-text-stroke: 1px #0a2a4a; letter-spacing: .1em; }
.mn-up b { display: block; font: 400 30px var(--gz-num); color: #fff; -webkit-text-stroke: 2px #4a2204; text-shadow: 0 0 16px #ffd23f; }
body.mn-fs .gz-hud-logo { filter: drop-shadow(0 0 12px #ffd23f); }

/* 위 가로 릴 메가웨이 공통 화면 (바이킹 뇌신 · 대마법사 2판, 2026-10-19, mh_game_assets/game/topways.js): game colours as variables */
body.gz-viking { --tw-c1: #0e2450; --tw-c2: #041028; --tw-line: #8fc4ff; --tw-text: #eef8ff; --tw-glow: rgba(92, 200, 255, .75); --tw-accent: #ffd23f;
    --tw-dark: #0a2a6a; --tw-soft: #9fd0ff; --tw-try1: #2a6ad8; --tw-try2: #0a2a80; --tw-bg1: rgba(20, 50, 110, .8); --tw-bg2: rgba(2, 8, 24, .93); }
body.gz-mage { --tw-c1: #3a1470; --tw-c2: #160636; --tw-line: #d8a73a; --tw-text: #fff3d6; --tw-glow: rgba(192, 123, 255, .8); --tw-accent: #ffe27a;
    --tw-dark: #3a0a6a; --tw-soft: #e3c8ff; --tw-try1: #8a3ad8; --tw-try2: #3a0a80; --tw-bg1: rgba(70, 24, 140, .78); --tw-bg2: rgba(8, 2, 22, .93); }
.tw-corner { --cw: 120px; position: fixed; z-index: 28; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 12px; background: linear-gradient(180deg, var(--tw-c1), var(--tw-c2)); border: 2px solid var(--tw-line);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25); pointer-events: none; white-space: nowrap; overflow: hidden; }
.tw-corner small { font: 800 clamp(8px, calc(var(--cw) * .1), 12px) var(--gz-sans); letter-spacing: .08em; color: var(--tw-soft); }
.tw-corner b { font: 400 clamp(12px, calc(var(--cw) * .2), 28px) var(--gz-num); color: var(--tw-text); text-shadow: 0 0 10px var(--tw-glow); line-height: 1.05; }
.tw-ways.is-max { border-color: #ffe27a; box-shadow: 0 0 24px var(--tw-glow); }
.tw-ways.is-max b { color: #fff; text-shadow: 0 0 14px var(--tw-glow), 0 0 24px #ffd23f; }
.tw-corner.is-pop { animation: lnPop .4s cubic-bezier(.2, 1.6, .4, 1); }
.tw-mult img { width: min(70%, calc(var(--cw) * .5)); height: 70%; object-fit: contain; opacity: .85; filter: drop-shadow(0 0 8px var(--tw-glow)); }
.tw-mult small, .tw-mult b { display: none; }
body.tw-fs .tw-mult img { display: none; }
body.tw-fs .tw-mult small, body.tw-fs .tw-mult b { display: block; }
body.tw-fs .tw-mult { border-color: #ffd23f; box-shadow: 0 0 18px rgba(255, 210, 63, .55); }
body.tw-fs .tw-mult b { font-size: clamp(16px, calc(var(--cw) * .32), 40px); color: #fff3b0; text-shadow: 0 0 14px #ffd23f, 0 2px 0 rgba(0, 0, 0, .4); }
.tw-mult.is-hot b { color: #fff; text-shadow: 0 0 16px #ff8a3c, 0 0 28px #ffd23f; }
.sl-pop.tw-pop b { -webkit-text-stroke-color: var(--tw-dark); text-shadow: 0 3px 0 var(--tw-dark), 0 0 16px var(--tw-glow); }
.sl-pop.tw-pop em { background: linear-gradient(180deg, var(--tw-soft), var(--tw-line)); color: var(--tw-dark); font-size: 13px; }
.sl-pop.tw-pop-m em { background: linear-gradient(180deg, #fff3b0, #ffb52e); color: #4a2200; }
.tw-strike { position: fixed; left: 50%; top: 24%; z-index: 41; transform: translate(-50%, -50%); text-align: center; pointer-events: none; opacity: 0;
    animation: lnPlusIn .35s cubic-bezier(.2, 1.8, .4, 1) forwards, vkPlusOut .4s 1.2s ease-in forwards; }
.tw-strike small { display: block; font: 400 clamp(16px, 3vw, 24px) var(--gz-num); color: var(--tw-soft); -webkit-text-stroke: 1px var(--tw-dark); }
.tw-strike b { display: block; font: 400 clamp(26px, 5vw, 44px) var(--gz-num); color: #fff; -webkit-text-stroke: 2px var(--tw-dark); text-shadow: 0 0 18px var(--tw-glow), 0 3px 0 var(--tw-dark); }
.tw-plus { position: fixed; left: 50%; top: 42%; z-index: 46; transform: translate(-50%, -50%) scale(.3); opacity: 0; pointer-events: none; text-align: center;
    animation: lnPlusIn .45s cubic-bezier(.2, 1.8, .4, 1) forwards, vkPlusOut .4s 1.3s ease-in forwards; }
.tw-plus b { display: block; font: 400 clamp(54px, 11vw, 96px) var(--gz-num); color: var(--tw-text); -webkit-text-stroke: 3px var(--tw-dark); text-shadow: 0 4px 0 var(--tw-dark), 0 0 26px var(--tw-glow); line-height: .95; }
.tw-plus small { display: block; font: 400 clamp(18px, 3.4vw, 28px) var(--gz-num); color: var(--tw-soft); -webkit-text-stroke: 1.5px var(--tw-dark); letter-spacing: .08em; }
.tw-maxw { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none;
    background: radial-gradient(circle at 50% 45%, var(--tw-bg1), var(--tw-bg2)); opacity: 0; transition: opacity .35s; }
.tw-maxw.is-in { opacity: 1; }
.tw-maxw.is-out { opacity: 0; }
.tw-maxw-rays { position: absolute; left: 50%; top: 45%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; opacity: .35;
    background: repeating-conic-gradient(rgba(255, 255, 255, .35) 0 6deg, transparent 6deg 18deg); animation: gzSpin 18s linear infinite; }
.tw-maxw img { position: relative; height: min(52vh, 420px); filter: drop-shadow(0 0 30px var(--tw-glow)); transform: scale(.3) translateY(30%); transition: transform .6s cubic-bezier(.2, 1.4, .4, 1); }
.tw-maxw.is-in img { transform: scale(1) translateY(0); }
.tw-maxw-t { position: relative; margin-top: -3vh; font: 400 clamp(40px, 8.5vw, 88px) var(--gz-num); color: var(--tw-text); -webkit-text-stroke: 3px var(--tw-dark);
    text-shadow: 0 5px 0 var(--tw-dark), 0 0 30px var(--tw-glow); transform: scale(.5); opacity: 0; transition: transform .5s .25s cubic-bezier(.2, 1.8, .4, 1), opacity .3s .25s; }
.tw-maxw-t b { color: var(--tw-accent); }
.tw-maxw.is-in .tw-maxw-t { transform: scale(1); opacity: 1; }
.tw-maxw small { position: relative; margin-top: 6px; font: 800 clamp(14px, 2.6vw, 20px) var(--gz-sans); color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, .8); }
.tw-gamble { position: fixed; inset: 0; z-index: 44; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: radial-gradient(circle at 50% 40%, var(--tw-bg1), var(--tw-bg2)); opacity: 0; transition: opacity .3s; }
.tw-gamble.is-in { opacity: 1; }
.tw-gamble.is-out { opacity: 0; }
.tw-gamble-box { width: min(1000px, 100%); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "wheel title" "wheel text" "wheel btns" "wheel ladder" "wheel msg";
    column-gap: clamp(18px, 4vw, 48px); row-gap: 10px; align-items: center; align-content: center; }
.tw-gamble h3 { grid-area: title; margin: 0; font: 400 clamp(30px, 5vw, 54px) var(--gz-num); color: var(--tw-text); -webkit-text-stroke: 2px var(--tw-dark); text-shadow: 0 3px 0 var(--tw-dark), 0 0 22px var(--tw-glow); }
.tw-gamble h3 b { color: var(--tw-accent); font-size: 1.25em; }
.tw-gamble-p { grid-area: text; margin: 0; font: 700 14px/1.55 var(--gz-sans); color: var(--tw-soft); }
.tw-gamble-p b { color: var(--tw-accent); }
.tw-wheel { grid-area: wheel; position: relative; width: min(52vh, 400px, 44vw); aspect-ratio: 1; }
.tw-wheel-disc { position: absolute; inset: 10%; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 24px rgba(0, 0, 0, .6); }
.tw-wheel-disc svg { display: block; width: 100%; height: 100%; }
.tw-arc-ok { fill: #1fae6a; stroke: #b9ffd9; stroke-width: 1.5; }
.tw-arc-no { fill: #8e1a3a; stroke: #ffb3c4; stroke-width: 1.5; }
.tw-hub { fill: var(--tw-c2); stroke: #ffd76a; stroke-width: 3; }
.tw-t-ok, .tw-t-no { font: 400 20px var(--gz-num); fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: 4px; }
.tw-wheel-rim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 0 18px var(--tw-glow)); }
.tw-wheel-ptr { position: absolute; left: 50%; top: -4%; height: 22%; transform: translateX(-50%); pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.tw-gamble-btns { grid-area: btns; display: flex; gap: 12px; flex-wrap: wrap; }
.tw-gamble-btns button { flex: 1 1 180px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px 12px; border-radius: 18px; cursor: pointer;
    border: 2px solid var(--tw-line); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), 0 8px 18px rgba(0, 0, 0, .45); transition: transform .15s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.tw-gamble-btns button:hover { transform: translateY(-3px); }
.tw-gamble-btns button b { font: 400 clamp(24px, 3.4vw, 34px) var(--gz-num); line-height: 1; }
.tw-gamble-btns button small { font: 800 12.5px var(--gz-sans); opacity: .92; }
.tw-collect { background: linear-gradient(180deg, #2a9a5a, #0e5a30); }
.tw-try { background: linear-gradient(180deg, var(--tw-try1), var(--tw-try2)); }
.tw-gamble.is-busy .tw-gamble-btns button { opacity: .45; pointer-events: none; }
.tw-ladder { grid-area: ladder; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.tw-ladder li { min-width: 44px; padding: 4px 8px; border-radius: 999px; text-align: center; font: 400 16px var(--gz-num); color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); border: 1px solid var(--tw-line); }
.tw-ladder li.is-past { color: #b9ffd9; background: rgba(31, 174, 106, .25); }
.tw-ladder li.is-on { color: #2a0a00; background: linear-gradient(180deg, #ffe27a, #d8a73a); border-color: #fff3b0; box-shadow: 0 0 14px rgba(255, 210, 63, .7); }
.tw-gamble-msg { grid-area: msg; font: 700 16px var(--gz-sans); color: #fff; }
.tw-gamble-msg b { font: 400 30px var(--gz-num); margin-right: 8px; }
.tw-gamble-msg.is-ok b { color: #7dffb8; text-shadow: 0 0 16px #1fae6a; }
.tw-gamble-msg.is-no b { color: #ff8aa0; text-shadow: 0 0 16px #c0283c; }
@media (max-aspect-ratio: 1/1) {
    .tw-gamble-box { grid-template-columns: 1fr; grid-template-areas: "title" "text" "wheel" "msg" "btns" "ladder"; justify-items: center; text-align: center; }
    .tw-wheel { width: min(72vw, 40vh, 340px); }
    .tw-ladder { justify-content: center; }
    .tw-gamble-btns { width: 100%; }
}
body.tw-fs .gz-hud-logo { filter: drop-shadow(0 0 12px var(--tw-glow)); }

/* 다이너마이트 광산 2판 (2026-10-19): the four nugget tiers and their prizes above the board, the nugget count in free spins */
.mn-tiers { --w: 520px; position: fixed; z-index: 28; transform: translate(-50%, -50%); width: var(--w); display: flex; gap: 6px; justify-content: center; align-items: stretch;
    pointer-events: none; }
.mn-tier { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 12px;
    background: linear-gradient(180deg, rgba(70, 36, 10, .94), rgba(30, 14, 4, .94)); border: 2px solid var(--tc, #e08a4a); box-shadow: 0 3px 10px rgba(0, 0, 0, .45); }
.mn-tier img { width: clamp(24px, calc(var(--w) / 16), 40px); height: clamp(24px, calc(var(--w) / 16), 40px); object-fit: contain; flex: 0 0 auto; }
.mn-tier span { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.mn-tier b { font: 400 clamp(12px, calc(var(--w) / 44), 16px) var(--gz-num); color: var(--tc); text-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
.mn-tier small { font: 700 clamp(9px, calc(var(--w) / 62), 12px) var(--gz-sans); color: #fff3d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-tier.is-t0 { --tc: #e8955a; } .mn-tier.is-t1 { --tc: #e8eef8; } .mn-tier.is-t2 { --tc: #ffd23f; } .mn-tier.is-t3 { --tc: #bff4ff; }
.mn-tier.is-pop { animation: mnTierPop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes mnTierPop { 0% { transform: scale(1.18); box-shadow: 0 0 22px var(--tc); } 100% { transform: scale(1); } }
.mn-tier-n { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px 10px; border-radius: 12px;
    background: linear-gradient(180deg, #6a3a10, #2a1404); border: 2px solid #ffd23f; }
.mn-tier-n small { font: 800 10px var(--gz-sans); color: #ffd98a; }
.mn-tier-n b { font: 400 20px var(--gz-num); color: #fff3c4; line-height: 1; }
@media (max-width: 520px) { .mn-tier { padding: 3px 5px 3px 3px; gap: 3px; } }
