/* ── 젤리 대소동 ── */
.jellyrun-screen{--jr-pink:#ff4f86;--jr-ink:#2d1640;--jr-glass:rgb(45 22 64 / .62);--ga-accent:#ffd84d;--ga-accent-ink:#3a2200;--ga-paper:#fffaf6;flex-direction:column;align-items:center}
.jellyrun-screen [hidden]{display:none!important}
.jellyrun-screen .play-heading{margin-bottom:12px}
.jellyrun-root{width:100%;max-width:1180px;margin:0 auto;display:flex;flex-direction:column;gap:10px;min-width:0}
.jr-status{background:linear-gradient(135deg,#ff8fc4 0%,#b58cff 55%,#7ec8ff 100%);color:#fff;border-radius:20px;padding:10px 14px 11px;display:flex;flex-direction:column;gap:6px;box-shadow:0 10px 26px rgb(120 60 160 / .28),inset 0 1px 0 #ffffff55}
.jr-steps li{background:#ffffff2e;color:#ffffffd0;border-color:#ffffff33}
.jr-steps li.is-done{background:#ffffff55;color:#fff}
.jr-steps li.is-current{background:#fff;color:var(--jr-pink);box-shadow:0 0 0 3px #ffffff40,0 6px 14px #6a2a8a55}
.jr-status-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.jr-status-title{font-size:18px;font-weight:900;letter-spacing:-.4px;line-height:1.3;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 2px 8px #6a2a8a66}
.jr-clock{flex:none;font-variant-numeric:tabular-nums;font-weight:900;font-size:14px;background:#fff;color:var(--jr-pink);border-radius:999px;padding:3px 12px;min-width:54px;text-align:center}
.jr-clock:empty{display:none}
.jr-status-desc{margin:0;font-size:13px;line-height:1.5;color:#fff;opacity:.95;min-height:1.5em;word-break:keep-all;overflow-wrap:anywhere}
.jr-stage{position:relative;width:100%;aspect-ratio:16/9;max-height:calc(100svh - 150px);min-height:420px;border-radius:24px;overflow:hidden;background:linear-gradient(#8fd3ff,#ffd6ec);box-shadow:0 18px 44px rgb(120 60 160 / .3),0 0 0 3px #fff inset;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.jr-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;outline:none}
.jr-hud{position:absolute;top:10px;left:10px;right:10px;display:flex;gap:6px;flex-wrap:wrap;pointer-events:none;z-index:3}
.jr-chip{background:var(--jr-glass);color:#fff;font-weight:900;font-size:13px;padding:6px 12px;border-radius:999px;box-shadow:0 4px 12px #0003;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);white-space:nowrap}
.jr-chip-me{background:var(--jr-pink)}
.jr-chip-time{margin-left:auto;font-variant-numeric:tabular-nums;background:#fff;color:var(--jr-ink)}
.jr-chip-time.is-urgent{background:#ff3b5c;color:#fff;animation:jr-pulse 1s ease-in-out infinite}
@keyframes jr-pulse{50%{transform:scale(1.1)}}
.jr-mc{position:absolute;left:10px;top:48px;max-width:min(460px,calc(100% - 20px));z-index:4;pointer-events:none;padding:0}
.jr-mc .ga-mc-face{width:52px;height:52px;border-color:#fff;background:#ffe3f0}
.jr-mc .ga-mc-bubble{padding:8px 13px}
.jr-mc .ga-mc-bubble p{font-size:14px;line-height:1.45}
.jr-feed{position:absolute;right:10px;top:48px;display:flex;flex-direction:column;align-items:flex-end;gap:5px;z-index:3;pointer-events:none}
.jr-feed-item{background:#fffffff0;color:var(--jr-ink);font-weight:800;font-size:12.5px;padding:5px 11px;border-radius:12px;box-shadow:0 4px 12px #0002;animation:jr-feed-in .3s cubic-bezier(.2,.9,.3,1.3) both;max-width:62vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jr-feed-item.is-goal{border-left:4px solid #3bd67f}
.jr-feed-item.is-out{border-left:4px solid #ff4f6d}
.jr-feed-item.is-cheer{border-left:4px solid #ffc63d}
.jr-feed-item.is-out,.jr-feed-item.is-goal,.jr-feed-item.is-cheer{padding-left:9px}
.jr-feed-item.is-gone{opacity:0;transition:opacity .3s}
@keyframes jr-feed-in{from{opacity:0;transform:translateX(20px) scale(.9)}}
.jr-banner{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);z-index:6;font-size:clamp(40px,9vw,92px);font-weight:900;color:#fff;letter-spacing:-2px;white-space:nowrap;pointer-events:none;-webkit-text-stroke:3px var(--jr-pink);text-shadow:0 6px 0 #c2266a,0 14px 30px #0005}
.jr-banner.is-in{animation:jr-pop .6s cubic-bezier(.2,1.6,.4,1) both}
.jr-banner.is-out{-webkit-text-stroke-color:#5b3b8c;text-shadow:0 6px 0 #3b2266,0 14px 30px #0005}
.jr-banner.is-crown{-webkit-text-stroke-color:#d18a00;text-shadow:0 6px 0 #a86a00,0 14px 30px #0005;font-size:clamp(30px,7vw,72px)}
.jr-banner.is-over{font-size:clamp(30px,6vw,60px)}
@keyframes jr-pop{from{transform:translate(-50%,-50%) scale(.3) rotate(-8deg);opacity:0}60%{transform:translate(-50%,-50%) scale(1.12) rotate(2deg);opacity:1}}
.jr-countdown{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);z-index:6;font-size:clamp(90px,20vw,190px);font-weight:900;color:#ffe14d;-webkit-text-stroke:5px #ff4f86;text-shadow:0 10px 0 #c2266a;pointer-events:none}
.jr-countdown.is-in{animation:jr-count .9s ease-out both}
.jr-countdown.is-go{color:#7dffb2;-webkit-text-stroke-color:#1e9e5a;text-shadow:0 10px 0 #127a42}
@keyframes jr-count{from{transform:translate(-50%,-50%) scale(1.8);opacity:0}25%{transform:translate(-50%,-50%) scale(1);opacity:1}80%{opacity:1}to{transform:translate(-50%,-50%) scale(.8);opacity:0}}
.jr-card{position:absolute;inset:auto 16px 16px 16px;z-index:5;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:0;background:#fffaf6;border-radius:22px;overflow:hidden;box-shadow:0 18px 40px #3a164a55;max-width:760px;margin:0 auto}
.jr-card.is-in{animation:jr-card-in .55s cubic-bezier(.2,1.2,.3,1) both}
@keyframes jr-card-in{from{transform:translateY(40px) scale(.95);opacity:0}}
.jr-card-art{position:relative;min-height:150px;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 30% 30%,#fff6 0,#fff0 40%),linear-gradient(135deg,#ff9fd0,#b58cff)}
.jr-card-art.is-hex{background:radial-gradient(circle at 30% 30%,#fff6 0,#fff0 40%),linear-gradient(135deg,#ffdc7a,#ff9fd0)}
.jr-card-art.is-crown{background:radial-gradient(circle at 30% 30%,#fff6 0,#fff0 40%),linear-gradient(135deg,#7ec8ff,#b58cff)}
.jr-card-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.jr-card-art span{font-size:72px;filter:drop-shadow(0 8px 10px #0003);animation:jr-bob 1.4s ease-in-out infinite}
@keyframes jr-bob{50%{transform:translateY(-8px) rotate(4deg)}}
.jr-card-copy{padding:14px 18px 16px;display:flex;flex-direction:column;gap:5px;color:var(--jr-ink);min-width:0}
.jr-card-copy small{font-size:12px;font-weight:900;color:var(--jr-pink);letter-spacing:1px}
.jr-card-copy h2{margin:0;font-size:22px;line-height:1.25;letter-spacing:-.6px}
.jr-card-copy p{margin:0;font-size:13.5px;line-height:1.55;color:#5a4468;word-break:keep-all}
.jr-card-goal{align-self:flex-start;margin-top:4px;background:#ffe3f0;color:var(--jr-pink);font-weight:900;font-size:12.5px;padding:4px 10px;border-radius:999px}
.jr-result,.jr-final{position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);width:min(620px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;background:#fffaf6f2;border-radius:24px;padding:16px 18px;color:var(--jr-ink);box-shadow:0 20px 50px #3a164a66;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.jr-result.is-in{animation:jr-result-in .5s cubic-bezier(.2,1.2,.3,1) both}
@keyframes jr-result-in{from{transform:translate(-50%,-40%) scale(.92);opacity:0}}
.jr-result h2,.jr-final h2{margin:0 0 4px;font-size:21px;letter-spacing:-.5px;text-align:center}
.jr-result-you{margin:0 0 10px;text-align:center;font-weight:900;font-size:14px}
.jr-result-you.is-pass{color:#1e9e5a}
.jr-result-you.is-fail{color:#d8335b}
.jr-result-you:empty{display:none}
.jr-result-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.jr-result-cols h3{margin:0 0 6px;font-size:13px;font-weight:900;letter-spacing:1px}
.jr-result-cols section:first-child h3{color:#1e9e5a}
.jr-result-cols section:last-child h3{color:#d8335b}
.jr-roll,.jr-rank{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.jr-roll li,.jr-rank li{display:flex;align-items:center;gap:8px;padding:4px 8px 4px 4px;border-radius:14px;background:#fff;box-shadow:0 2px 6px #3a164a14;animation:jr-feed-in .35s both;min-width:0}
.jr-roll li:nth-child(2){animation-delay:.05s}.jr-roll li:nth-child(3){animation-delay:.1s}.jr-roll li:nth-child(4){animation-delay:.15s}.jr-roll li:nth-child(5){animation-delay:.2s}.jr-roll li:nth-child(6){animation-delay:.25s}.jr-roll li:nth-child(n+7){animation-delay:.3s}
.jr-roll.is-fail li{background:#fff0f3;opacity:.85}
.jr-roll li.is-me,.jr-rank li.is-me{outline:3px solid var(--jr-pink)}
.jr-face{flex:none;position:relative;width:32px;height:32px;border-radius:50%;background:var(--jelly,#ff8fb8);box-shadow:inset 0 -4px 0 #0002,0 0 0 2px #fff;overflow:hidden;display:flex;align-items:center;justify-content:center}
.jr-face img{width:100%;height:100%;object-fit:cover}
.jr-face i{position:relative;width:18px;height:8px}
.jr-face i:before,.jr-face i:after{content:'';position:absolute;top:0;width:6px;height:8px;border-radius:50%;background:#241634}
.jr-face i:before{left:1px}.jr-face i:after{right:1px}
.jr-who{flex:1 1 auto;min-width:0;font-weight:800;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jr-who em,.jr-who small{font-style:normal;margin-left:5px;font-size:10px;padding:1px 6px;border-radius:999px;background:var(--jr-pink);color:#fff;vertical-align:1px}
.jr-who small{background:#e8def2;color:#6b5382}
.jr-result-next{margin:10px 0 0;text-align:center;font-size:12.5px;font-weight:800;color:#8a6aa0}
.jr-result-next:empty{display:none}
.jr-final{top:auto;bottom:12px;transform:translateX(-50%);max-height:48%}
.jr-rank li b{flex:none;width:34px;text-align:center;font-size:13px;color:#8a6aa0}
.jr-rank li.is-champ{background:linear-gradient(90deg,#fff3b8,#fff);box-shadow:0 0 0 2px #ffcf33}
.jr-rank li.is-champ b{font-size:20px}
.jr-reach{flex:none;font-size:11.5px;font-weight:800;color:#8a6aa0}
.jr-pt{flex:none;font-size:12px;font-weight:900;color:#fff;background:#3bd67f;border-radius:999px;padding:2px 8px}
.jr-watch{position:absolute;left:50%;bottom:76px;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:8px;background:var(--jr-glass);color:#fff;border-radius:999px;padding:4px;font-weight:900;font-size:13px;box-shadow:0 6px 16px #0003;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);max-width:calc(100% - 24px)}
.jr-watch span{padding:0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.jr-round-btn{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:var(--jr-pink);font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 3px 0 #d8c4e6}
.jr-round-btn:active{transform:translateY(2px);box-shadow:none}
.jr-emotes{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);z-index:4;display:flex;gap:6px;background:#ffffffd9;border-radius:999px;padding:5px;box-shadow:0 6px 18px #3a164a33}
.jr-emote{width:44px;height:44px;border:0;border-radius:50%;background:#fff;font-size:22px;line-height:1;cursor:pointer;box-shadow:0 3px 0 #ecd9f3;transition:transform .12s}
.jr-emote:hover{transform:translateY(-3px) scale(1.08)}
.jr-emote:active{transform:scale(.9)}
.jr-touch{position:absolute;inset:0;z-index:4;pointer-events:none}
.jr-stick-zone{position:absolute;left:0;bottom:0;width:52%;height:62%;pointer-events:auto;touch-action:none}
.jr-stick{position:absolute;left:78px;top:calc(100% - 96px);width:112px;height:112px;margin:-56px 0 0 -56px;border-radius:50%;background:#ffffff38;border:3px solid #ffffffb0;box-shadow:0 6px 18px #0003;opacity:.75;transition:opacity .15s}
.jr-stick.is-on{opacity:1}
.jr-stick i{position:absolute;left:50%;top:50%;width:50px;height:50px;margin:-25px 0 0 -25px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#ffb3d1);box-shadow:0 4px 10px #0004}
.jr-btn{position:absolute;pointer-events:auto;border:0;border-radius:50%;font-weight:900;color:#fff;touch-action:none;box-shadow:0 6px 0 #0003,0 10px 20px #0003;-webkit-tap-highlight-color:transparent}
.jr-btn.is-down{transform:translateY(4px);box-shadow:0 2px 0 #0003}
.jr-btn-jump{right:18px;bottom:22px;width:84px;height:84px;font-size:17px;background:radial-gradient(circle at 35% 30%,#ffd1e3,#ff4f86)}
.jr-btn-dive{right:112px;bottom:30px;width:64px;height:64px;font-size:13.5px;background:radial-gradient(circle at 35% 30%,#d8f4ff,#4fb3ff)}
.jr-keys{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);z-index:3;margin:0;background:var(--jr-glass);color:#fff;font-size:12px;font-weight:700;padding:5px 12px;border-radius:999px;white-space:nowrap;pointer-events:none;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis}
.jr-loading{position:absolute;inset:0;z-index:7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:linear-gradient(#8fd3ff,#ffd6ec);color:var(--jr-ink);font-weight:900}
.jr-loading-jelly{width:64px;height:74px;border-radius:32px 32px 26px 26px;background:radial-gradient(circle at 35% 25%,#fff8 0,#fff0 30%),#ff6f9f;animation:jr-squish .7s ease-in-out infinite alternate}
@keyframes jr-squish{from{transform:scale(1.15,.85) translateY(8px)}to{transform:scale(.9,1.1) translateY(-10px)}}
.jr-fallback{position:absolute;left:12px;right:12px;bottom:64px;z-index:6;margin:0;text-align:center;background:#fffffff0;color:var(--jr-ink);font-size:12.5px;font-weight:800;border-radius:12px;padding:6px 10px}
@media(max-width:700px){
.jellyrun-screen .play-heading{margin-bottom:8px}
.jr-status{padding:8px 10px 9px;gap:5px;border-radius:16px}
.jr-steps li{font-size:11px;padding:3px 2px}
.jr-status-title{font-size:15px}
.jr-status-desc{font-size:12px}
.jr-stage{aspect-ratio:auto;height:calc(100svh - 104px);min-height:440px;max-height:none;border-radius:20px}
.jellyrun-root{gap:6px}
.jr-chip{font-size:12px;padding:5px 10px}
.jr-mc{top:44px}
.jr-mc .ga-mc-face{width:40px;height:40px}
.jr-mc .ga-mc-bubble p{font-size:12.5px}
.jr-feed{top:auto;bottom:124px;right:8px}
.jr-card{grid-template-columns:1fr;inset:auto 10px 10px 10px}
.jr-card-art{min-height:120px}
.jr-card-copy h2{font-size:19px}
.jr-card-copy p{font-size:12.5px}
.jr-result-cols{grid-template-columns:1fr 1fr;gap:6px}
.jr-roll li,.jr-rank li{gap:5px;padding:3px 6px 3px 3px}
.jr-face{width:26px;height:26px}
.jr-who{font-size:12px}
.jr-emote{width:44px;height:44px;font-size:20px}
.jr-emotes{gap:3px;padding:4px;max-width:calc(100% - 16px)}
.jr-final{max-height:52%}
}
.jr-stage.is-racing .jr-mc{opacity:.92}
@media(prefers-reduced-motion:reduce){.jr-banner.is-in,.jr-countdown.is-in,.jr-card.is-in,.jr-result.is-in,.jr-loading-jelly,.jr-card-art span{animation:none}}
