:root {
  --ink: #07131d; --cream: #f7e6c2; --cyan: #2fd6ee; --gold: #ffc62e; --pink: #ff5c7a;
  --panel: rgba(255, 255, 255, 0.95); --shadow: 0 10px 30px rgba(7, 19, 29, 0.25);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #9fd8ff; color: var(--ink); font-family: 'Fredoka', 'Jua', system-ui, sans-serif; user-select: none; -webkit-user-select: none; touch-action: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; background: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
i { display: inline-block; flex: none; font-style: normal; }
.mi { font-size: 1em; line-height: 1; }
.mi.big { font-size: 34px; }

/* 아이콘(CSS) */
.i-play { width: 0; height: 0; border-left: 22px solid currentColor; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 4px; }
.i-pause { width: 16px; height: 18px; border-left: 5px solid currentColor; border-right: 5px solid currentColor; }
.i-sound { width: 24px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn-sound.off .i-sound { opacity: .35; }
.i-out { width: 12px; height: 12px; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; margin-left: 4px; }
.i-again { width: 22px; height: 22px; border: 4px solid currentColor; border-top-color: transparent; border-radius: 50%; }
.i-share { width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16a3 3 0 0 0-2.4 1.2l-6.7-3.4a3 3 0 0 0 0-1.6l6.7-3.4A3 3 0 1 0 15 7l-6.7 3.4a3 3 0 1 0 0 3.2L15 17a3 3 0 1 0 3-1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16a3 3 0 0 0-2.4 1.2l-6.7-3.4a3 3 0 0 0 0-1.6l6.7-3.4A3 3 0 1 0 15 7l-6.7 3.4a3 3 0 1 0 0 3.2L15 17a3 3 0 1 0 3-1z'/%3E%3C/svg%3E") center/contain no-repeat; }
.i-home { width: 22px; height: 20px; background: currentColor; clip-path: polygon(50% 0, 100% 45%, 86% 45%, 86% 100%, 14% 100%, 14% 45%, 0 45%); }
.i-grid { width: 20px; height: 20px; background: radial-gradient(circle, currentColor 0 3.5px, transparent 4px) 0 0/10px 10px; }

/* 버튼 */
.big-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 220px; height: 70px; padding: 0 34px; border-radius: 999px; font-size: 30px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #ffb13b, #ff7a1a); box-shadow: 0 7px 0 #c4520a, 0 14px 28px rgba(196, 82, 10, .35); text-shadow: 0 2px 0 rgba(0,0,0,.18); transition: transform .08s; animation: pulse 1.6s ease-in-out infinite; }
.big-btn:active { transform: translateY(5px); box-shadow: 0 2px 0 #c4520a; }
.mid-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; min-width: 52px; padding: 0 18px; border-radius: 18px; font-size: 19px; font-weight: 700; background: #fff; box-shadow: 0 5px 0 rgba(7,19,29,.18), 0 8px 18px rgba(7,19,29,.12); }
.mid-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(7,19,29,.18); }
.ic-btn { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 4px 0 rgba(7,19,29,.15); position: relative; touch-action: manipulation; }
.ic-btn::before { content: ''; position: absolute; inset: -4px; }
@keyframes pulse { 50% { transform: scale(1.04); } }

/* 화면 */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; z-index: 10; }
.screen.dim { background: rgba(7, 19, 29, .45); justify-content: center; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.row { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.row.col { flex-direction: column; gap: 18px; }
@keyframes drop { from { transform: translateY(-60px) scale(.8); opacity: 0; } }
.chal-m { margin-top: 8px; display: flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: #fff; font-weight: 700; }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#hud > * { position: absolute; }
#hud .tl { left: calc(12px + env(safe-area-inset-left, 0px)); top: calc(14px + var(--safe-t)); display: flex; flex-direction: column; gap: 10px; pointer-events: auto; }
#hud .tl .ic-btn { position: relative; }
#dayBox { left: 50%; top: calc(12px + var(--safe-t)); transform: translateX(-50%); width: 62px; height: 62px; display: grid; place-items: center; }
#dayBox svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
#dayBox circle { fill: none; stroke-width: 5; }
#dayBox .bg { fill: rgba(7,19,29,.6); stroke: rgba(255,255,255,.25); }
#clockArc { stroke: #ffd23f; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
#dayBox.late #clockArc { stroke: #ff5c7a; }
#dayBox b { position: relative; color: #fff; font-size: 26px; font-weight: 700; }
#money { right: calc(12px + env(safe-area-inset-right, 0px)); top: calc(14px + var(--safe-t)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.m-row { display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; background: rgba(7,19,29,.62); color: #fff; font-size: 22px; }
.m-row b { font-size: 26px; color: #ffe14d; font-variant-numeric: tabular-nums; }
.m-row small { font-size: 15px; opacity: .85; }
#goalBar { position: relative; width: 150px; height: 12px; border-radius: 6px; background: rgba(7,19,29,.5); margin-right: 6px; }
#goalBar span { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); border-radius: 6px; background: linear-gradient(90deg, #ffb13b, #ffd23f); transition: width .25s; }
#goalBar.done span { background: linear-gradient(90deg, #2bc46a, #9be15d); }
.st { position: absolute; top: -10px; font-size: 15px; filter: grayscale(1) brightness(1.4); opacity: .7; transition: .2s; }
.st.on { filter: none; opacity: 1; transform: scale(1.25); }
#goalBar .s1 { left: calc(50% - 8px); } #goalBar .s2 { left: calc(75% - 8px); } #goalBar .s3 { left: calc(100% - 8px); }
#side { right: calc(12px + env(safe-area-inset-right, 0px)); top: calc(90px + var(--safe-t)); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.chip { display: flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(7,19,29,.55); color: #fff; font-size: 18px; font-weight: 700; }
.chip b { color: #ffe14d; font-size: 20px; }
.chip.five { background: linear-gradient(90deg, #ff7a1a, #ffb13b); }
#hearts i { font-size: 18px; }
#comboB { right: calc(12px + env(safe-area-inset-right, 0px)); top: calc(160px + var(--safe-t)); display: flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(90deg, #ff5c7a, #ffb13b); color: #fff; font-size: 22px; font-weight: 700; }
#comboB.bump { animation: mbump .3s ease-out; }
@keyframes mbump { 50% { transform: scale(1.25); } }
@keyframes shakeX { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* 방 이름표 + 말풍선 */
#tags, #bubbles { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#tags { z-index: 3; } #bubbles { z-index: 4; }
.rtag { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; border: 4px solid #2bc46a; box-shadow: 0 3px 0 rgba(7,19,29,.2); justify-content: center; line-height: 1; will-change: transform; }
.rtag .ri { font-size: 22px; }
.rtag i { font-size: 8px; color: #ffa400; letter-spacing: -1px; margin-top: 1px; }
.rtag.busy { border-color: #ffb13b; opacity: .92; }
.rtag.dirty { border-color: #9a8a68; background: #e8e1d2; }
.rtag.cand { animation: candP .7s ease-in-out infinite; }
.rtag.over { transform-origin: center; box-shadow: 0 0 0 5px #fff, 0 0 18px #2bc46a; }
@keyframes candP { 50% { box-shadow: 0 0 0 6px rgba(43,196,106,.45), 0 3px 0 rgba(7,19,29,.2); } }
.bub { position: absolute; left: 0; top: 0; width: 58px; height: 58px; margin-top: -6px; pointer-events: auto; cursor: pointer; will-change: transform; --p: 1; --c: #2bc46a; touch-action: none; }
.bub::before { content: ''; position: absolute; inset: -12px; }
.bub .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1turn), rgba(7,19,29,.3) 0); box-shadow: 0 4px 0 rgba(7,19,29,.2); }
.bub.still .ring { background: #fff; }
.bub .ic { position: absolute; inset: 5px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 30px; line-height: 1; }
.bub .ic::after { content: ''; position: absolute; left: 50%; bottom: -9px; margin-left: -6px; border: 6px solid transparent; border-top: 8px solid #fff; border-bottom: 0; }
.bub .amt { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); font-size: 14px; font-weight: 700; color: #fff; background: #2bc46a; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.bub:not(.k-pay):not(.k-food):not(.k-spa):not(.k-bag) .amt { display: none; }
.bub.warn { --c: #ffb13b; } .bub.hot { --c: #ff3b5c; animation: shakeX .5s infinite; }
.bub.k-wait { width: 48px; height: 48px; }
.bub.k-wait .ic { font-size: 26px; }
.bub.k-wait.vip .ring { background: conic-gradient(#ffc62e calc(var(--p) * 1turn), rgba(7,19,29,.3) 0); }
.bub.sel .ic { box-shadow: 0 0 0 4px #2fd6ee; }
.bub.k-pay .ic { background: #fff6c8; } .bub.k-clean .ic { background: #dff4ff; }
.bub.gone { opacity: 0; transition: opacity .25s; pointer-events: none; }
.mood { position: absolute; left: 0; top: 0; display: flex; gap: 0; pointer-events: none; will-change: transform; }
.mood i { font-size: 13px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(7,19,29,.35)); }

/* 효과 */
#pops { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 6; pointer-events: none; }
.pop { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-size: 26px; font-weight: 700; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; white-space: nowrap; animation: popUp 1s ease-out forwards; }
.pop.emoP { -webkit-text-stroke: 0; font-size: 34px; animation: popUp 1.1s ease-out forwards; }
.pop .emo { font-size: 38px; }
.pop.comic, .pop.comicB { font-family: 'Jua', 'Fredoka', sans-serif; font-size: 28px; transform: translate(-50%, -50%) rotate(var(--r, -6deg)); animation: comic .9s ease-out forwards; }
@keyframes popUp { from { opacity: 0; margin-top: 10px; } 15% { opacity: 1; } to { opacity: 0; margin-top: -50px; } }
@keyframes comic { 0% { opacity: 0; scale: .4; } 18% { opacity: 1; scale: 1.25; } 40% { scale: 1; } 100% { opacity: 0; margin-top: -40px; } }
.fly { position: fixed; left: 0; top: 0; z-index: 8; pointer-events: none; font-size: 22px; font-weight: 700; color: #ffe14d; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; transition: transform .62s cubic-bezier(.5,0,.8,.6), opacity .62s; white-space: nowrap; }
.fly.big { font-size: 30px; }
.conf { position: fixed; top: -40px; z-index: 30; pointer-events: none; animation: fall 2.2s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }
#banner { position: fixed; left: 50%; top: 36%; transform: translate(-50%, -50%); z-index: 7; pointer-events: none; opacity: 0; font-family: 'Jua', 'Fredoka', sans-serif; font-size: 58px; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; white-space: nowrap; display: flex; align-items: center; gap: 12px; }
#banner.show { animation: banner 1.8s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -62%) scale(.9); } }
#toast { position: fixed; left: 50%; bottom: calc(30px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; padding: 10px 18px; border-radius: 16px; background: #fff; font-weight: 700; z-index: 40; pointer-events: none; transition: .3s; box-shadow: 0 6px 20px rgba(7,19,29,.25); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#nogl { display: none; }
body.nogl #nogl { display: grid; position: fixed; inset: 0; place-items: center; font-size: 24px; }

/* 패널·결과 */
.panel { width: min(100%, 400px); background: var(--panel); border-radius: 28px; padding: 20px 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: var(--shadow); animation: pop .45s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.badge { padding: 4px 14px; border-radius: 999px; background: linear-gradient(90deg, #ff5c7a, #ffb13b); color: #fff; font-weight: 700; }
.mini { display: flex; gap: 20px; font-size: 20px; }
.mini span { display: flex; align-items: center; gap: 6px; }

/* 하루 끝 */
#dayEnd { overflow-y: auto; justify-content: flex-start; padding: calc(12px + var(--safe-t)) 12px calc(14px + var(--safe-b)); }
#dayEnd .panel { margin: auto 0; gap: 8px; width: min(100%, 420px); }
.de-h { display: flex; align-items: center; gap: 8px; font-family: 'Jua', 'Fredoka', sans-serif; font-size: 26px; }
.de-h em { font-style: normal; font-weight: 700; font-size: 18px; padding: 2px 12px; border-radius: 999px; color: #fff; }
.de-h em.win { background: #2bc46a; } .de-h em.lose { background: #ff3b5c; }
.de-earn { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.de-earn b { font-size: 46px; line-height: 1; } .de-earn small { font-size: 20px; opacity: .55; }
.de-bar { position: relative; width: 100%; height: 14px; border-radius: 7px; background: #e7ebf1; margin: 8px 0 2px; }
.de-bar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: 7px; background: linear-gradient(90deg, #2bc46a, #9be15d); }
.de-bar.lose span { background: linear-gradient(90deg, #ff7a1a, #ff3b5c); }
.de-bar .s1 { left: calc(50% - 8px); } .de-bar .s2 { left: calc(75% - 8px); } .de-bar .s3 { left: calc(100% - 8px); }
.de-stars { display: flex; gap: 6px; font-size: 34px; }
.de-stars i { filter: grayscale(1) brightness(1.5); opacity: .5; }
.de-stars i.on { filter: none; opacity: 1; animation: starPop .5s both; }
.de-stars i:nth-child(2).on { animation-delay: .15s; } .de-stars i:nth-child(3).on { animation-delay: .3s; }
@keyframes starPop { from { transform: scale(0) rotate(-60deg); } 70% { transform: scale(1.3); } }
.de-hearts { display: flex; gap: 4px; font-size: 22px; }
.wallet { display: flex; align-items: center; gap: 6px; padding: 5px 16px; border-radius: 999px; background: #fff3c4; font-size: 24px; font-weight: 700; }
.wallet.bump { animation: mbump .3s; }
#upList { width: 100%; display: flex; flex-direction: column; gap: 7px; }
.up { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 10px; border-radius: 18px; background: #f3f6fb; }
.up .uic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #fff; font-size: 28px; box-shadow: 0 2px 0 rgba(7,19,29,.12); }
.up .ubody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.up .uname { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up .pips { display: flex; gap: 4px; }
.up .pips b { width: 18px; height: 9px; border-radius: 5px; background: #d6dbe6; }
.up .pips b.on { background: linear-gradient(90deg, #2bc46a, #9be15d); }
.up .buy { flex: none; min-width: 96px; height: 48px; padding: 0 12px; border-radius: 14px; font-size: 18px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #ffb13b, #ff7a1a); box-shadow: 0 4px 0 #c4520a; display: flex; align-items: center; justify-content: center; touch-action: manipulation; }
.up .buy:active { transform: translateY(3px); box-shadow: 0 1px 0 #c4520a; }
.up .buy.no { filter: grayscale(1); opacity: .55; }
.up .buy.max { background: #2bc46a; box-shadow: 0 4px 0 #1c8f4d; opacity: 1; filter: none; }
.up.flash { animation: shakeX .35s; }
#btnNext { margin-top: 4px; }
@media (max-height: 700px) { .de-earn b { font-size: 36px; } #dayEnd .panel { gap: 6px; padding: 14px 14px 12px; } .up .uic { width: 40px; height: 40px; } .up .buy { height: 42px; } }
@media (min-height: 900px) { .big-btn { height: 78px; } }
@media (max-height: 640px) { .logo span { font-size: 56px; } .big-btn { height: 60px; font-size: 26px; } .menu-bottom { gap: 12px; } .big-num { font-size: 46px; } }
@media (orientation: landscape) and (max-height: 520px) {
  #dayEnd .panel { width: min(100%, 520px); }
}

/* 스크롤 가능한 패널: 문서 스크롤 잠금(touch-action none) 속에서도 패널 안은 세로로 밀리게 */
#dayEnd { overflow: hidden; justify-content: center; }
#dayEnd .panel { margin: 0; max-height: calc(100% - 4px); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#dayEnd .panel::-webkit-scrollbar { display: none; }
#btnNext { position: sticky; bottom: 0; flex: none; z-index: 2; }
.pop .emo.big { font-size: 56px; }
.cutin { position: fixed; inset: 0; z-index: 6; pointer-events: none; background: repeating-conic-gradient(from 0deg at 50% 40%, rgba(255,255,255,.0) 0 5deg, rgba(255,255,255,.55) 5deg 7deg); -webkit-mask: radial-gradient(circle at 50% 40%, transparent 18%, #000 70%); mask: radial-gradient(circle at 50% 40%, transparent 18%, #000 70%); animation: cutin .9s ease-out forwards; }
@keyframes cutin { from { opacity: 0; transform: scale(1.5); } 20% { opacity: 1; } to { opacity: 0; transform: scale(1); } }

/* ---- 재디자인: 가로 HUD·작은 방 표지·메뉴 버튼 정리 ---- */
#hud .tl { flex-direction: row; gap: 8px; }
#hud .tl .ic-btn, .hub-link { width: 48px; height: 48px; }
#money { top: calc(16px + var(--safe-t)); }
.m-row { font-size: 20px; padding: 4px 12px 4px 8px; } .m-row b { font-size: 24px; }
#goalBar { position: absolute; left: 16px; right: 16px; top: calc(76px + var(--safe-t)); width: auto; height: 12px; margin: 0; }
#side { left: 0; right: 0; top: calc(94px + var(--safe-t)); flex-direction: row; justify-content: center; gap: 8px; }
#comboB { right: 14px; top: calc(92px + var(--safe-t)); }
.rtag { width: 32px; height: 32px; border-radius: 10px; border-width: 3px; opacity: .92; }
.rtag .ri { font-size: 17px; } .rtag i { display: none; }
.rtag.busy { opacity: .8; }
#vig { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, rgba(0,0,0,0) 55%, rgba(20,40,80,.28) 100%); }

.rtag { width: 38px; height: 38px; } .rtag .ri { font-size: 21px; }
/* 깜빡임 수정: 루트(.bub)의 transform 은 JS 위치 전용 — 흔들림 애니메이션은 안쪽 요소에만 */
.bub.hot { animation: none; }
.bub.hot .ring, .bub.hot .ic { animation: shakeX .5s infinite; }

#zones { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; pointer-events: auto; max-height: 56vh; }
.zb { position: relative; width: 40px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.9); box-shadow: 0 3px 0 rgba(7,19,29,.2); font: 700 15px 'Fredoka', sans-serif; display: grid; place-items: center; touch-action: manipulation; }
.zb::before { content: ''; position: absolute; inset: -4px; }
.zb.cur { background: #ffd23f; } .zb.hasreq i { position: absolute; right: -5px; top: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff3b5c; color: #fff; font: 700 12px/20px 'Fredoka', sans-serif; text-align: center; }
.de-stage { font: 400 18px 'Jua', 'Fredoka', sans-serif; color: #ff7a1a; margin-top: -4px; }

.uhd { width: 100%; font-size: 22px; padding: 4px 6px 0; opacity: .8; }
.lvt { font: 700 13px 'Fredoka', sans-serif; color: #2bc46a; }
.de-quests { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.q { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: #eef3fa; font: 700 15px 'Fredoka', sans-serif; }
.q i { font-size: 18px; } .q.got { background: #ffe58a; animation: starPop .5s both; }
.gtb { position: absolute; right: -8px; top: -10px; font-style: normal; font-size: 18px; filter: drop-shadow(0 1px 1px rgba(7,19,29,.4)); pointer-events: none; z-index: 2; }

.zb { width: 34px; height: 32px; font-size: 14px; opacity: .92; } #zones { right: 4px; }
#questChip { font-size: 16px; }
#side { flex-wrap: wrap; padding: 0 6px; gap: 5px 6px; }
#side .chip { padding: 2px 9px; font-size: 16px; } #side .chip b { font-size: 17px; }

#zones { position: fixed; z-index: 3; right: 4px; top: 50%; transform: translateY(-50%); }
.zb { opacity: .85; }

.gtb.reg { right: auto; left: -8px; }

.dexp { max-height: 90%; overflow-y: auto; touch-action: pan-y; gap: 8px; }
.dexrow { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.dt { width: 46px; height: 46px; border-radius: 14px; background: #dfe5ee; display: grid; place-items: center; font-size: 26px; filter: grayscale(1); opacity: .55; }
.dt.on { background: #fff6d6; filter: none; opacity: 1; box-shadow: 0 3px 0 rgba(7,19,29,.15); }
.dexx { height: 54px; min-width: 120px; font-size: 22px; }

.zb.urg { animation: zurg .5s infinite alternate; } @keyframes zurg { to { background: #ffb3b3; box-shadow: 0 0 0 3px #ff3b5c; } }
#btnPrestige { height: 48px; font-size: 22px; }

#story { position: fixed; left: 50%; top: 24%; transform: translate(-50%, 0); z-index: 9; pointer-events: none; text-align: center; padding: 14px 26px 12px; border-radius: 26px; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(7,19,29,.35); border: 5px solid #ffd23f; }
#story.show { animation: storyIn .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes storyIn { from { transform: translate(-50%, -30px) scale(.5); opacity: 0; } }
.st-ic { font-size: 54px; line-height: 1.1; letter-spacing: 4px; } .st-w { font: 400 30px 'Jua', 'Fredoka', sans-serif; color: #ff7a1a; -webkit-text-stroke: 1px #07131d; } .st-r { font: 700 20px 'Fredoka', sans-serif; color: #2bc46a; }

/* 타이틀: 명예의 전당 카드가 건물을 덮지 않게 숨기고 우상단 🏆 버튼으로 연다 */
#menu .hof-inline { display: none !important; }
#menu .kk-best.best-m { margin-bottom: auto; } /* 최고 기록 알약이 건물 위를 가리지 않게 로고 바로 밑에 붙임 */
