@font-face { font-family: 'Lilita'; src: url(fonts/lilita-one-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url(fonts/cinzel-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url(fonts/cinzel-latin-900-normal.woff2) format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --s: 1;
  --gold1: #fff2b0; --gold2: #f2c14e; --gold3: #a86d16;
  --ink: #1a0f3a;
  --panel: #241a5c;
  --panel2: #34267a;
  --txt: #fff;
  --muted: #b9b0e6;
  --green: #3fbf3f; --blue: #2f7ff0; --orange: #f08a24; --red: #e2443a; --purple: #8a4ae0;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0c0626; color: var(--txt); font-family: 'Lilita', 'Trebuchet MS', system-ui, sans-serif; letter-spacing: 0.02em; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; }
.hidden { display: none !important; }

/* ---------- screens & stage scaling ---------- */
.screen { position: fixed; inset: 0; display: none; overflow: hidden; }
.screen.active { display: block; }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--s)); }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.title-royal { font-family: 'Cinzel', serif; font-weight: 900; letter-spacing: 0.06em; background: linear-gradient(180deg, #fff8d0 0%, #ffd866 45%, #c88a1e 70%, #ffe9a0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #5a2e00) drop-shadow(0 6px 10px rgba(0,0,0,.5)); }

/* ---------- loading ---------- */
.loading { background: radial-gradient(ellipse at 50% 40%, #3b2a9a 0%, #160b4a 60%, #08031f 100%); }
.load-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: 520px; }
.load-logo { width: 190px; height: 190px; border-radius: 40px; box-shadow: 0 0 0 6px #e8b64a, 0 20px 50px rgba(0,0,0,.6), 0 0 80px rgba(255,200,80,.35); animation: float 3s ease-in-out infinite; }
.load-box h1 { font-size: 58px; margin: 22px 0 18px; }
.load-bar { height: 18px; border-radius: 10px; background: #0d0730; box-shadow: inset 0 2px 4px #000, 0 0 0 3px #e8b64a; overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; background: linear-gradient(180deg, #fff3a0, #f2b230 60%, #c07a10); transition: width .3s; }
#loadText { color: var(--muted); font-size: 20px; margin-top: 14px; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- common widgets ---------- */
.ico { display: inline-block; width: 1.25em; height: 1.25em; background: center/contain no-repeat; vertical-align: -0.25em; flex: none; }
.ico.big { width: 46px; height: 46px; }
.avatar-box { display: inline-block; background: #5b2fb0 center/cover no-repeat; border-radius: 18px; }
.round-btn { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(180deg, #3d7bea, #1d48b0); box-shadow: inset 0 3px 0 rgba(255,255,255,.35), 0 0 0 4px #0d2766, 0 6px 0 4px #0a1d4d; display: grid; place-items: center; position: relative; }
.round-btn .ico { width: 38px; height: 38px; }
.round-btn:active, .big-btn:active, .mode-tile:active, .sub-tile:active, .side-btn:active, .hud-btn:active, .pill-btn:active { transform: translateY(3px) scale(.97); }
.badge { position: absolute; top: -8px; right: -8px; min-width: 26px; height: 26px; border-radius: 13px; background: #ff3b3b; border: 3px solid #fff; font-size: 15px; display: grid; place-items: center; padding: 0 5px; }
.pill-btn { padding: 10px 22px; border-radius: 30px; background: linear-gradient(180deg, #5a4ad0, #33269a); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 4px 0 #1a1060; font-size: 22px; }
.pill-btn.tiny { padding: 6px 14px; font-size: 18px; }
.big-btn { padding: 16px 40px; border-radius: 22px; font-size: 30px; text-shadow: 0 3px 0 rgba(0,0,0,.35); box-shadow: inset 0 4px 0 rgba(255,255,255,.35), inset 0 -6px 0 rgba(0,0,0,.2), 0 7px 0 rgba(0,0,0,.35); transition: filter .15s; }
.big-btn.small { padding: 10px 26px; font-size: 22px; border-radius: 16px; }
.big-btn.green { background: linear-gradient(180deg, #6fe05a, #2f9a2a); }
.big-btn.blue { background: linear-gradient(180deg, #5aa0ff, #1f5ad0); }
.big-btn.gold { background: linear-gradient(180deg, #ffe27a, #e09a1a); color: #4a2400; text-shadow: 0 2px 0 rgba(255,255,255,.4); }
.big-btn.red { background: linear-gradient(180deg, #ff7a6a, #c42a20); }
.big-btn.purple { background: linear-gradient(180deg, #b07aff, #6a2ad0); }
.big-btn:disabled { filter: grayscale(.9) brightness(.7); }
.x-btn { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(180deg, #ff6a5a, #c42a20); box-shadow: 0 0 0 3px #fff, 0 4px 0 3px #6a0e08; font-size: 22px; }

.currency-bar { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 22px; }
.cur { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 8px 0 4px; border-radius: 26px; background: rgba(10, 20, 60, .75); box-shadow: inset 0 2px 6px rgba(0,0,0,.6), 0 0 0 2px rgba(255,255,255,.15); font-size: 26px; min-width: 190px; }
.cur .ico { width: 54px; height: 54px; margin-left: -10px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.4)); }
.cur b { flex: 1; text-align: center; }
.cur .plus { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(180deg, #7ee25a, #2f9a2a); display: grid; place-items: center; font-size: 30px; box-shadow: inset 0 2px 0 rgba(255,255,255,.4); }
.currency-bar.small .cur { min-width: 150px; height: 44px; font-size: 22px; }
.currency-bar.small .cur .ico { width: 46px; height: 46px; }

/* ---------- home ---------- */
.home { background: #3a8ae0 url(img/home.jpg) center/cover no-repeat; }
.profile-card { position: absolute; left: 18px; top: 14px; display: flex; gap: 14px; align-items: center; padding: 10px 26px 10px 10px; border-radius: 22px; background: linear-gradient(180deg, rgba(20,40,110,.85), rgba(12,24,80,.85)); box-shadow: 0 0 0 3px rgba(255,255,255,.18), 0 8px 18px rgba(0,0,0,.35); text-align: left; }
.pc-avatar { width: 92px; height: 92px; box-shadow: 0 0 0 4px #f2c14e, 0 0 0 7px #8a5a10; }
.pc-info { display: flex; flex-direction: column; gap: 4px; }
.pc-info b { font-size: 26px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-level { display: flex; align-items: center; gap: 6px; }
.lv-badge { width: 38px; height: 42px; display: grid; place-items: center; font-size: 20px; background: center/contain no-repeat; color: #5a2e00; text-shadow: 0 1px 0 #fff6; }
.xp-bar { position: relative; width: 150px; height: 22px; border-radius: 11px; background: #0a1440; box-shadow: inset 0 2px 3px #000; overflow: hidden; }
.xp-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(180deg, #ffe680, #f0a020); border-radius: 11px; transition: width .6s; }
.xp-bar em { position: relative; display: block; text-align: center; font-style: normal; font-size: 15px; line-height: 22px; text-shadow: 0 1px 2px #000; }
.pc-country { font-size: 17px; color: #d8e4ff; }
.top-right { position: absolute; right: 20px; top: 18px; display: flex; gap: 20px; }

.mode-tiles { position: absolute; left: 50%; top: 112px; transform: translateX(-50%); display: flex; gap: 28px; }
.mode-tile { position: relative; width: 300px; height: 300px; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 20px; box-shadow: 0 0 0 6px #fff, 0 0 0 9px rgba(0,0,0,.25), 0 16px 0 6px rgba(0,0,0,.25), 0 22px 36px rgba(0,0,0,.4); transition: transform .15s; }
.mode-tile.quick { background: radial-gradient(circle at 50% 35%, #8af06a 0%, #3cb83a 45%, #1f8a2a 100%); }
.mode-tile.room { background: radial-gradient(circle at 50% 35%, #ffc05a 0%, #f58a1f 50%, #c85a10 100%); }
.mode-tile::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 38%, rgba(255,255,255,.09) 0 8deg, transparent 8deg 18deg); }
.mode-tile::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 45%; background: linear-gradient(180deg, rgba(255,255,255,.25), transparent); border-radius: 30px 30px 50% 50% / 30px 30px 20% 20%; }
.tile-art { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: 210px; height: 170px; background: center/contain no-repeat; filter: drop-shadow(0 8px 6px rgba(0,0,0,.35)); animation: bob 3.2s ease-in-out infinite; z-index: 1; }
.room-art { animation-delay: -1.6s; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-8px) rotate(1deg); } }
.tile-text { position: relative; z-index: 1; font-size: 52px; line-height: .95; text-align: center; color: #fff; text-shadow: 0 4px 0 rgba(0,60,0,.55), 0 0 2px #000; -webkit-text-stroke: 2px rgba(0,0,0,.25); }
.room .tile-text { text-shadow: 0 4px 0 rgba(120,40,0,.6); }
.tile-sub { position: relative; z-index: 1; font-size: 18px; color: #fff8; margin-top: 4px; color: rgba(255,255,255,.9); }
.lock-tag { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(0,0,0,.55); padding: 6px 12px; border-radius: 14px; font-size: 18px; }
.sub-tiles { position: absolute; left: 50%; top: 440px; transform: translateX(-50%); display: flex; gap: 18px; }
.sub-tile { width: 182px; height: 118px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 21px; box-shadow: 0 0 0 4px #fff, 0 9px 0 4px rgba(0,0,0,.25); text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.sub-tile .ico.big { width: 54px; height: 54px; }
.sub-tile.purple { background: linear-gradient(180deg, #b06aff, #6a2ad0); }
.sub-tile.blue { background: linear-gradient(180deg, #4aa0ff, #1d5ad0); }
.sub-tile.red { background: linear-gradient(180deg, #ff6a5a, #c8301e); }
.daily-sign { position: absolute; left: 22px; bottom: 30px; width: 150px; display: flex; flex-direction: column; align-items: center; }
.sign-board { background: linear-gradient(180deg, #a8743e, #7a4a1e); border: 4px solid #4a2a0e; border-radius: 10px; padding: 6px 10px; font-size: 18px; box-shadow: 0 6px 10px rgba(0,0,0,.35); }
.chest { width: 110px; height: 90px; background: center/contain no-repeat; margin-top: -4px; animation: wiggle 2.5s infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-6deg); } 90% { transform: rotate(6deg); } 95% { transform: rotate(-3deg); } }
.claim-pill { margin-top: -6px; background: linear-gradient(180deg, #7ee25a, #2f9a2a); border-radius: 14px; padding: 4px 18px; font-size: 20px; box-shadow: 0 0 0 3px #fff, 0 4px 0 3px #1a5a10; }
.claim-pill.done { background: linear-gradient(180deg, #9a9ab0, #5a5a70); box-shadow: 0 0 0 3px #ddd, 0 4px 0 3px #333; }
.side-col { position: absolute; right: 22px; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.side-btn { width: 92px; height: 92px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 15px; gap: 0; box-shadow: 0 0 0 4px #fff, 0 6px 0 4px rgba(0,0,0,.25); text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.side-btn .ico.big { width: 46px; height: 46px; }
.side-btn.orange { background: linear-gradient(180deg, #ffb24a, #e0701a); }
.side-btn.blue { background: linear-gradient(180deg, #4a90ff, #1d4fc0); }
.side-btn.arrow { background: linear-gradient(180deg, #6fe05a, #2a8a2a); }
.music-toggle.off .ico { opacity: .4; }
.net-pill { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: rgba(0,0,0,.55); padding: 6px 18px; border-radius: 16px; font-size: 17px; white-space: nowrap; }
.net-pill button { color: #ffd866; text-decoration: underline; margin-left: 8px; }

/* ---------- lobby ---------- */
.lobby { background: radial-gradient(ellipse at 50% 30%, #3a2a9a 0%, #1a0e5a 55%, #0a0430 100%); }
.lobby::before { content: ''; position: absolute; inset: 0; background: url(img/arena.jpg) center/cover; opacity: .2; }
.lobby-top { position: absolute; left: 20px; right: 20px; top: 16px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.lobby-top .currency-bar { position: static; transform: none; }
.room-code { font-size: 22px; background: rgba(0,0,0,.4); padding: 8px 10px 8px 18px; border-radius: 16px; display: flex; gap: 12px; align-items: center; }
.room-code b { font-size: 30px; letter-spacing: .2em; color: #ffd866; }
.lobby-title { position: absolute; left: 0; right: 0; top: 76px; text-align: center; margin: 0; font-family: 'Cinzel', serif; font-weight: 900; font-size: 40px; color: #ffd866; text-shadow: 0 3px 0 #5a2e00; }
.slots { position: absolute; left: 50%; top: 140px; transform: translateX(-50%); display: flex; gap: 18px; }
.slot { width: 150px; height: 220px; border-radius: 22px; background: linear-gradient(180deg, rgba(80,60,180,.6), rgba(30,20,90,.7)); box-shadow: inset 0 0 0 3px rgba(255,255,255,.18), 0 10px 20px rgba(0,0,0,.4); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; position: relative; transition: transform .3s; }
.slot.filled { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.slot.me { background: linear-gradient(180deg, rgba(255,200,80,.5), rgba(140,70,10,.6)); box-shadow: inset 0 0 0 3px #ffd866, 0 0 24px rgba(255,200,80,.4); }
.slot .avatar-box { width: 104px; height: 104px; box-shadow: 0 0 0 4px rgba(255,255,255,.5); }
.slot .sl-name { font-size: 20px; max-width: 136px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .sl-lv { font-size: 15px; color: var(--muted); }
.slot .sl-host { position: absolute; top: -12px; background: #ffd866; color: #5a2e00; font-size: 14px; padding: 3px 10px; border-radius: 10px; }
.slot .sl-item { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; background: center/contain no-repeat; }
.slot .searching { width: 104px; height: 104px; border-radius: 18px; border: 4px dashed rgba(255,255,255,.35); display: grid; place-items: center; font-size: 46px; color: rgba(255,255,255,.5); }
.slot.wait .searching { animation: spinDash 2.4s linear infinite; }
@keyframes spinDash { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.item-pick { position: absolute; left: 50%; top: 390px; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; }
.item-label { font-size: 24px; color: #ffd866; }
.item-slot { width: 100px; height: 100px; border-radius: 22px; background: rgba(0,0,0,.35) center/80% no-repeat; box-shadow: inset 0 0 0 3px #ffd866, 0 0 20px rgba(255,216,102,.3); display: grid; place-items: center; }
.plus-big { font-size: 56px; color: #ffd866; }
.item-name { font-size: 20px; width: 260px; color: #fff; }
.lobby-bottom { position: absolute; left: 30px; right: 30px; bottom: 26px; display: flex; align-items: center; justify-content: space-between; }
.fee { font-size: 24px; background: rgba(0,0,0,.35); padding: 10px 20px; border-radius: 16px; }
.lobby-status { font-size: 22px; color: #ffd866; }
.invite-box { position: absolute; right: 20px; top: 90px; width: 250px; max-height: 280px; overflow: auto; background: rgba(0,0,0,.45); border-radius: 16px; padding: 10px; font-size: 18px; }
.invite-box h4 { margin: 0 0 6px; }
.invite-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }

/* ---------- game ---------- */
.game { background: #120a36; }
.arena-bg { position: absolute; background: url(img/arena.jpg) center/100% 100% no-repeat; }
.pillar { position: absolute; top: 0; background: url(img/pillar.webp) center/100% 100% no-repeat; pointer-events: none; }
.pillar.l { left: 0; }
.pillar.r { right: 0; transform: scaleX(-1); }
.hud-clock { position: absolute; left: 18px; top: 16px; display: flex; align-items: center; height: 64px; padding: 0 22px 0 6px; border-radius: 34px; background: linear-gradient(180deg, #1a1450, #0a0830); box-shadow: 0 0 0 4px #e8b64a, 0 0 0 7px #6a4208, 0 8px 14px rgba(0,0,0,.5); }
.hourglass { width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle, #2a2070, #120c40) ; box-shadow: 0 0 0 3px #e8b64a; display: grid; place-items: center; margin-right: 12px; position: relative; }
.hourglass::after { content: ''; width: 34px; height: 34px; background: center/contain no-repeat; background-image: var(--hourglass); }
.hud-clock.urgent { animation: urgent .5s infinite alternate; }
.hud-clock.urgent b { color: #ff6a5a; }
@keyframes urgent { to { box-shadow: 0 0 0 4px #ff4a3a, 0 0 0 7px #6a0808, 0 0 30px #ff4a3a; } }
#clock { font-size: 32px; min-width: 84px; }
.round-banner { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); text-align: center; padding: 6px 30px 10px; background: linear-gradient(180deg, rgba(60,20,110,.9), rgba(30,10,70,.9)); border-radius: 0 0 26px 26px; box-shadow: 0 0 0 3px #e8b64a, 0 8px 18px rgba(0,0,0,.5); font-family: 'Cinzel', serif; font-weight: 900; font-size: 22px; color: #ffe08a; white-space: nowrap; }
.pips { display: flex; gap: 8px; justify-content: center; margin-bottom: 4px; }
.pips i { width: 34px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.2); }
.pips i.done { background: #ffd866; }
.pips i.now { background: #fff; box-shadow: 0 0 10px #ffd866; }
.hud-settings { position: absolute; right: 20px; top: 16px; }
.hud-left { position: absolute; left: 22px; bottom: 18px; display: flex; flex-direction: column; gap: 16px; }
.hud-right { position: absolute; right: 22px; bottom: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.hud-btn { width: 84px; display: flex; flex-direction: column; align-items: center; gap: 0; font-size: 15px; }
.hud-btn .ico.big { width: 74px; height: 74px; border-radius: 50%; background-color: #1d4fc0; background-size: 58%; box-shadow: 0 0 0 4px #0d2766, inset 0 4px 0 rgba(255,255,255,.3), 0 6px 0 4px #0a1d4d; }
.hud-btn span:last-child { margin-top: 2px; background: rgba(10,10,40,.8); padding: 1px 10px; border-radius: 10px; }
.betting-btn { display: flex; align-items: center; gap: 12px; padding: 12px 26px; border-radius: 18px; background: linear-gradient(180deg, #8a3ad0, #4a1a8a); box-shadow: 0 0 0 4px #e8b64a, 0 0 0 7px #5a3a08, 0 8px 12px rgba(0,0,0,.5); font-family: 'Cinzel', serif; font-weight: 900; font-size: 28px; color: #ffd866; text-shadow: 0 2px 0 #3a1a00; animation: glowPulse 1.6s infinite alternate; position: absolute; right: 128px; bottom: 34px; z-index: 6; }
.betting-btn .ico { width: 44px; height: 44px; }
@keyframes glowPulse { to { box-shadow: 0 0 0 4px #ffe680, 0 0 0 7px #5a3a08, 0 0 26px rgba(255,216,102,.8); } }
.wallet-chip { position: absolute; display: flex; align-items: center; gap: 6px; padding: 4px 14px 4px 6px; border-radius: 16px; background: rgba(10,8,40,.85); box-shadow: 0 0 0 2px #e8b64a; font-size: 20px; }
.wallet-chip small { font-size: 13px; color: var(--muted); }
.wallet-chip .ico { width: 30px; height: 30px; }

.seat { position: absolute; display: flex; align-items: flex-end; gap: 14px; transform: translate(-50%, -50%); transition: filter .3s; }
.seat .who { display: flex; flex-direction: column; align-items: center; position: relative; }
.seat .pic { width: 104px; height: 104px; border-radius: 18px; background: #5b2fb0 center/cover no-repeat; box-shadow: 0 0 0 4px #c9a0ff, 0 0 0 7px #3a1a7a, 0 10px 16px rgba(0,0,0,.5); position: relative; }
.seat .nm { margin-top: -12px; position: relative; z-index: 2; min-width: 120px; max-width: 160px; text-align: center; padding: 5px 14px; border-radius: 16px; background: linear-gradient(180deg, #221a4a, #0c0828); box-shadow: 0 0 0 2px rgba(255,255,255,.25); font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat .lv { position: absolute; left: -10px; top: -10px; width: 34px; height: 38px; background: center/contain no-repeat; display: grid; place-items: center; font-size: 16px; color: #5a2e00; z-index: 3; }
.seat.me .pic { width: 128px; height: 128px; }
.seat.me .nm { font-size: 24px; min-width: 150px; }
.seat.hunter .pic { box-shadow: 0 0 0 5px #ffd866, 0 0 0 9px #8a5a10, 0 0 36px rgba(255,216,102,.8), 0 10px 16px rgba(0,0,0,.5); }
.seat .crown-top { position: absolute; left: 50%; top: -42px; width: 70px; height: 50px; transform: translateX(-50%); background: center/contain no-repeat; display: none; filter: drop-shadow(0 4px 4px rgba(0,0,0,.5)); z-index: 3; animation: crownBob 1.6s ease-in-out infinite; }
.seat.hunter .crown-top { display: block; }
@keyframes crownBob { 50% { transform: translateX(-50%) translateY(-5px); } }
.seat.away .pic { filter: grayscale(1) brightness(.6); }
.seat .ring { position: absolute; inset: -14px; pointer-events: none; display: none; }
.seat.hunter .ring { display: block; }
.seat .ring circle { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.seat .bubble { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) scale(0); margin-bottom: 30px; background: #fff; color: #222; padding: 8px 16px; border-radius: 18px; font-size: 22px; white-space: nowrap; transition: transform .25s cubic-bezier(.2, 1.6, .4, 1); z-index: 6; box-shadow: 0 6px 12px rgba(0,0,0,.4); }
.seat .bubble.emoji { font-size: 46px; padding: 2px 10px; background: rgba(255,255,255,.95); }
.seat .bubble::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -10px; border: 10px solid transparent; border-top-color: #fff; }
.seat .bubble.show { transform: translateX(-50%) scale(1); }
.seat .bet-tag { position: absolute; top: -14px; right: -16px; background: linear-gradient(180deg, #ffe27a, #e09a1a); color: #4a2400; font-size: 15px; padding: 2px 8px; border-radius: 10px; z-index: 4; box-shadow: 0 2px 4px #000; }

.card { position: relative; width: 82px; height: 115px; perspective: 700px; flex: none; }
.seat.me .card { width: 110px; height: 154px; }
.card .inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.card.up .inner { transform: rotateY(180deg); }
.card .face, .card .back { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: center/100% 100% no-repeat; box-shadow: 0 8px 14px rgba(0,0,0,.5); }
.card .back { background-image: url(img/cards/back.webp); }
.card .face { transform: rotateY(180deg); }
.card .face .ttl { position: absolute; left: 6%; right: 6%; bottom: 7%; text-align: center; font-family: 'Cinzel', serif; font-weight: 900; font-size: 13px; color: #fff; padding: 3px 0; border-radius: 6px; text-shadow: 0 1px 2px #000; }
.seat.me .card .face .ttl { font-size: 17px; }
.card.pick { cursor: pointer; animation: pickPulse 1s ease-in-out infinite alternate; }
.card.pick .back { box-shadow: 0 0 0 3px #fff, 0 0 22px 6px rgba(255,236,140,.9); }
@keyframes pickPulse { to { transform: translateY(-8px); } }
.card.chosen .back { box-shadow: 0 0 0 4px #4af0ff, 0 0 26px 8px rgba(80,220,255,.9); }
.card.locked::after { content: '✔'; position: absolute; right: -10px; top: -10px; width: 30px; height: 30px; border-radius: 50%; background: #2f9a2a; display: grid; place-items: center; font-size: 18px; box-shadow: 0 0 0 3px #fff; }
.card .cleared { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); font-size: 12px; background: rgba(0,0,0,.75); padding: 2px 8px; border-radius: 8px; white-space: nowrap; display: none; color: #aef; }
.card.is-cleared .cleared { display: block; }
.card.hunter-card .face { box-shadow: 0 0 0 3px #ffd866, 0 0 24px rgba(255,216,102,.85); }
.card .shield-fx { position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(120,180,255,.0) 40%, rgba(120,180,255,.6) 70%, rgba(120,180,255,0) 72%); animation: shieldFx 1.4s ease-out forwards; pointer-events: none; }
@keyframes shieldFx { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

.center-msg { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(0); text-align: center; pointer-events: none; z-index: 8; transition: transform .45s cubic-bezier(.2, 1.5, .4, 1), opacity .3s; opacity: 0; }
.center-msg.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.center-msg .big { font-family: 'Cinzel', serif; font-weight: 900; font-size: 64px; white-space: nowrap; background: linear-gradient(180deg, #fff8d0 0%, #ffd866 45%, #c88a1e 70%, #ffe9a0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #3a1a00) drop-shadow(0 0 20px rgba(0,0,0,.6)); }
.center-msg .small { font-size: 26px; margin-top: 4px; text-shadow: 0 2px 4px #000, 0 0 10px #000; white-space: nowrap; }
.center-msg .role-card { width: 150px; height: 210px; margin: 0 auto 10px; background: center/100% 100%; border-radius: 14px; box-shadow: 0 0 40px rgba(255,216,102,.8); }
.hint { position: absolute; left: 50%; bottom: 236px; transform: translateX(-50%); background: rgba(10,6,40,.82); box-shadow: 0 0 0 2px rgba(255,216,102,.5); padding: 8px 22px; border-radius: 20px; font-size: 22px; white-space: nowrap; z-index: 5; transition: opacity .3s; }
.hint:empty { opacity: 0; }
.hint b { color: #ffd866; }
.spy-bar { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); background: rgba(10,60,50,.9); padding: 8px 10px 8px 20px; border-radius: 20px; display: flex; gap: 14px; align-items: center; font-size: 20px; box-shadow: 0 0 0 2px #4ad0a0; z-index: 7; }
.react-panel { position: absolute; left: 124px; bottom: 30px; width: 400px; padding: 14px; border-radius: 20px; background: rgba(15,10,50,.95); box-shadow: 0 0 0 3px #e8b64a, 0 10px 30px rgba(0,0,0,.6); display: flex; flex-wrap: wrap; gap: 8px; z-index: 12; }
.react-panel button { font-size: 38px; width: 58px; height: 58px; border-radius: 14px; background: rgba(255,255,255,.08); }
.react-panel.text button { font-size: 20px; width: auto; height: auto; padding: 10px 14px; }
.bet-drawer { position: absolute; top: 90px; right: 0; width: 360px; padding: 18px; border-radius: 24px 0 0 24px; background: linear-gradient(180deg, rgba(60,20,110,.97), rgba(25,8,60,.97)); box-shadow: 0 0 0 3px #e8b64a, -10px 0 30px rgba(0,0,0,.6); transform: translateX(110%); visibility: hidden; transition: transform .35s cubic-bezier(.2, 1.2, .4, 1), visibility 0s .35s; z-index: 11; }
.bet-drawer.open { transform: translateX(0); visibility: visible; transition: transform .35s cubic-bezier(.2, 1.2, .4, 1); }
.bd-head { display: flex; justify-content: space-between; align-items: center; font-family: 'Cinzel', serif; font-size: 26px; color: #ffd866; }
.bd-sub { margin: 6px 0; font-size: 19px; color: var(--muted); }
.bd-wallet { font-size: 20px; margin: 6px 0 12px; }
.bd-targets { display: flex; gap: 10px; margin-bottom: 12px; }
.bd-targets button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px; background: rgba(255,255,255,.08); font-size: 15px; }
.bd-targets button .avatar-box { width: 54px; height: 54px; border-radius: 12px; }
.bd-targets button.sel { background: rgba(255,216,102,.3); box-shadow: inset 0 0 0 3px #ffd866; }
.bd-amounts { display: flex; gap: 8px; margin-bottom: 14px; }
.bd-amounts button { flex: 1; padding: 10px 0; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 20px; }
.bd-amounts button.sel { background: linear-gradient(180deg, #ffe27a, #e09a1a); color: #4a2400; }
.bd-amounts button:disabled { opacity: .35; }
.bet-drawer .big-btn { width: 100%; }
.bd-mine { margin-top: 10px; font-size: 17px; color: #ffe9a0; }
.bd-lock { font-size: 19px; padding: 12px; background: rgba(0,0,0,.35); border-radius: 12px; }
.fly-layer { position: absolute; inset: 0; pointer-events: none; z-index: 9; }
.fly-card { position: absolute; border-radius: 10px; background: url(img/cards/back.webp) center/100% 100%; box-shadow: 0 14px 24px rgba(0,0,0,.6); }
.coin-fly { position: absolute; width: 34px; height: 34px; background: center/contain no-repeat; }

/* ---------- results ---------- */
.results { background: radial-gradient(ellipse at 50% 30%, #4a2aaa 0%, #1a0b5a 60%, #08031f 100%); }
.results::before { content: ''; position: absolute; inset: 0; background: url(img/arena.jpg) center/cover; opacity: .3; }
.res-title { position: absolute; left: 0; right: 0; top: 18px; text-align: center; margin: 0; font-size: 50px; }
.res-cards { position: absolute; left: 50%; top: 100px; transform: translateX(-50%); display: flex; gap: 18px; }
.res-card { width: 188px; border-radius: 20px; padding: 10px; background: linear-gradient(180deg, rgba(40,25,110,.9), rgba(15,8,50,.9)); box-shadow: 0 0 0 3px rgba(255,255,255,.18), 0 12px 24px rgba(0,0,0,.5); text-align: center; animation: pop .5s cubic-bezier(.2, 1.5, .4, 1) backwards; }
.res-card.me { box-shadow: 0 0 0 4px #ffd866, 0 0 30px rgba(255,216,102,.5), 0 12px 24px rgba(0,0,0,.5); }
.res-card .rc-role { font-family: 'Cinzel', serif; font-weight: 900; font-size: 22px; color: #ffd866; }
.res-card .rc-art { width: 120px; height: 168px; margin: 6px auto; background: center/100% 100%; border-radius: 10px; }
.res-card .rc-name { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-card .rc-row { display: flex; justify-content: center; gap: 12px; font-size: 21px; margin-top: 4px; }
.res-card .neg { color: #ff8a7a; }
.res-mine { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); font-size: 24px; background: rgba(0,0,0,.4); padding: 10px 26px; border-radius: 18px; white-space: nowrap; }
.res-actions { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; gap: 30px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(5, 2, 25, .72); z-index: 50; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 960px; max-width: calc(100% - 40px); height: 560px; max-height: calc(100% - 30px); display: flex; flex-direction: column; border-radius: 28px; background: linear-gradient(180deg, #3a2a9a, #1e1260); box-shadow: 0 0 0 5px #e8b64a, 0 0 0 9px #5a3a08, 0 24px 60px rgba(0,0,0,.7); animation: pop .3s cubic-bezier(.2, 1.4, .4, 1); }
.modal-box.compact { width: 620px; height: auto; }
.modal-head { display: flex; align-items: center; justify-content: center; position: relative; padding: 14px 20px 6px; }
.modal-head h3 { margin: 0; font-family: 'Cinzel', serif; font-weight: 900; font-size: 32px; color: #ffd866; text-shadow: 0 3px 0 #3a1a00; }
.modal-head .x-btn { position: absolute; right: 14px; top: 12px; }
.modal-tabs { display: flex; justify-content: center; gap: 10px; padding: 4px 20px 8px; }
.modal-tabs:empty { display: none; }
.modal-tabs button { padding: 8px 22px; border-radius: 16px; background: rgba(255,255,255,.1); font-size: 20px; }
.modal-tabs button.on { background: linear-gradient(180deg, #ffe27a, #e09a1a); color: #4a2400; }
.modal-body { flex: 1; overflow: auto; padding: 6px 24px 22px; font-size: 20px; -webkit-overflow-scrolling: touch; }
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 4px; }
.panel { background: rgba(0,0,0,.25); border-radius: 18px; padding: 14px 18px; margin-bottom: 12px; }
.row { display: flex; align-items: center; gap: 14px; }
.row.between { justify-content: space-between; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 14px; }
.grid.items { grid-template-columns: repeat(3, 1fr); }
.shop-card { background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border-radius: 18px; padding: 12px; display: flex; gap: 12px; align-items: center; box-shadow: inset 0 0 0 2px rgba(255,255,255,.1); }
.shop-card .pic { width: 84px; height: 84px; flex: none; background: center/contain no-repeat; }
.shop-card h4 { margin: 0 0 2px; font-size: 21px; color: #ffe08a; }
.shop-card p { margin: 0 0 8px; font-size: 15px; color: #d8d0ff; line-height: 1.2; }
.price-btn { padding: 6px 14px; border-radius: 12px; background: linear-gradient(180deg, #6fe05a, #2f9a2a); font-size: 19px; display: inline-flex; align-items: center; gap: 4px; box-shadow: 0 3px 0 #1a5a10; }
.owned { font-size: 15px; color: #aef; margin-left: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 17px; color: var(--muted); }
.field input, .field select, .field textarea { background: #120a40; color: #fff; border: 2px solid #5a4ad0; border-radius: 12px; padding: 10px 14px; font-size: 20px; font-family: system-ui, sans-serif; outline: none; }
.field input:focus, .field textarea:focus { border-color: #ffd866; }
.av-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.av-grid button { aspect-ratio: 1; border-radius: 14px; background: center/cover; box-shadow: inset 0 0 0 3px transparent; }
.av-grid button.sel { box-shadow: 0 0 0 4px #ffd866; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: rgba(0,0,0,.3); border-radius: 14px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 28px; color: #ffd866; }
.stat span { font-size: 15px; color: var(--muted); }
.list-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,.22); margin-bottom: 8px; }
.list-row .avatar-box { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row.me { box-shadow: inset 0 0 0 3px #ffd866; }
.rank { width: 46px; text-align: center; font-size: 26px; color: #ffd866; }
.status-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #777; margin-right: 6px; }
.status-dot.on { background: #4ae04a; box-shadow: 0 0 8px #4ae04a; }
.history-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 18px; }
.history-table th, .history-table td { padding: 6px 8px; text-align: center; background: rgba(0,0,0,.25); }
.history-table th { color: #ffd866; font-family: 'Cinzel', serif; font-size: 16px; }
.history-table td.me { color: #ffd866; }
.history-table tr td:first-child, .history-table tr th:first-child { text-align: left; border-radius: 10px 0 0 10px; }
.history-table tr td:last-child, .history-table tr th:last-child { border-radius: 0 10px 10px 0; }
.road { position: relative; height: 420px; overflow-x: auto; overflow-y: hidden; }
.road-inner { position: relative; height: 100%; }
.road svg { position: absolute; left: 0; top: 0; }
.node { position: absolute; width: 96px; transform: translate(-50%, -50%); text-align: center; font-size: 14px; }
.node .disc { width: 74px; height: 74px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: #3a3470; box-shadow: 0 0 0 4px #6a62a8, 0 6px 0 4px rgba(0,0,0,.3); }
.node.claimable .disc { background: radial-gradient(circle, #8af06a, #2f9a2a); box-shadow: 0 0 0 4px #fff, 0 0 26px #8af06a; animation: pickPulse .8s infinite alternate; }
.node.claimed .disc { background: radial-gradient(circle, #ffe27a, #c88a1e); box-shadow: 0 0 0 4px #fff3b0; }
.node.milestone .disc { width: 90px; height: 90px; font-size: 34px; }
.node .rw { margin-top: 8px; color: #e8e0ff; line-height: 1.15; }
.daily-strip { display: flex; gap: 10px; margin-bottom: 14px; }
.day { flex: 1; text-align: center; border-radius: 14px; padding: 8px 4px; background: rgba(0,0,0,.25); font-size: 16px; }
.day.today { background: linear-gradient(180deg, #6fe05a, #2f9a2a); box-shadow: 0 0 0 3px #fff; }
.day .ico { width: 36px; height: 36px; display: block; margin: 4px auto; }
.quest { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(0,0,0,.25); margin-bottom: 8px; }
.quest .qbar { flex: 1; }
.quest .qtrack { height: 14px; border-radius: 7px; background: #0a0630; overflow: hidden; margin-top: 6px; }
.quest .qtrack i { display: block; height: 100%; background: linear-gradient(90deg, #ffe27a, #e09a1a); }
.guide h4 { color: #ffd866; margin: 14px 0 6px; font-family: 'Cinzel', serif; }
.guide p, .guide li { font-family: system-ui, sans-serif; font-size: 17px; line-height: 1.45; color: #ece8ff; }
.role-strip { display: flex; gap: 12px; justify-content: center; margin: 10px 0; }
.role-strip div { width: 120px; text-align: center; font-size: 15px; }
.role-strip i { display: block; width: 100px; height: 140px; margin: 0 auto 4px; background: center/100% 100%; border-radius: 8px; }
.toggle { width: 70px; height: 38px; border-radius: 19px; background: #3a3470; position: relative; transition: background .2s; flex: none; }
.toggle::after { content: ''; position: absolute; left: 4px; top: 4px; width: 30px; height: 30px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle.on { background: #2f9a2a; }
.toggle.on::after { transform: translateX(32px); }
.google-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px; border-radius: 14px; background: #fff; color: #333; font-family: system-ui, sans-serif; font-weight: 600; font-size: 20px; box-shadow: 0 4px 0 #999; }
.item-choice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.item-choice button { border-radius: 16px; padding: 10px; background: rgba(255,255,255,.08); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 16px; position: relative; }
.item-choice button .pic { width: 74px; height: 74px; background: center/contain no-repeat; }
.item-choice button.sel { box-shadow: inset 0 0 0 3px #ffd866; background: rgba(255,216,102,.2); }
.item-choice button:disabled { opacity: .4; }
.item-choice .cnt { position: absolute; top: 6px; right: 8px; background: #000a; border-radius: 10px; padding: 0 8px; font-size: 15px; }

.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 100; background: rgba(15,8,50,.95); box-shadow: 0 0 0 2px #e8b64a, 0 10px 20px rgba(0,0,0,.5); padding: 12px 24px; border-radius: 18px; font-size: 18px; max-width: 80%; text-align: center; animation: toastIn .3s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes toastIn { from { transform: translate(-50%, -30px); opacity: 0; } }
.reward-pop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(5,2,25,.6); }
.reward-pop .rp-box { text-align: center; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); padding: 30px 50px; border-radius: 30px; background: radial-gradient(circle, rgba(90,60,200,.95), rgba(30,15,80,.95)); box-shadow: 0 0 0 5px #e8b64a, 0 0 80px rgba(255,216,102,.5); }
.reward-pop h2 { margin: 0 0 10px; }
.reward-pop .rp-items { font-size: 28px; margin: 10px 0 20px; }

/* ---------- voice ---------- */
.voice-box { position: absolute; display: flex; align-items: center; gap: 12px; z-index: 6; }
.mic-btn { position: relative; width: 78px; height: 78px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(180deg, #5c5a80, #2a2850); box-shadow: 0 0 0 4px #0d0b30, inset 0 3px 0 rgba(255,255,255,.25), 0 6px 0 4px #08061f; transition: box-shadow .1s; }
.mic-btn .ico { width: 40px; height: 40px; }
.mic-btn em { font-style: normal; font-size: 11px; margin-top: 1px; opacity: .9; }
.mic-btn:not(.live)::after { content: ''; position: absolute; left: 22px; top: 14px; width: 5px; height: 44px; border-radius: 3px; background: #ff5a4a; transform: rotate(-40deg); transform-origin: 50% 50%; left: 36px; box-shadow: 0 0 0 2px #2a2850; }
.mic-btn.live { background: linear-gradient(180deg, #6ae05a, #1f8a2a); box-shadow: 0 0 0 4px #0d3a10, 0 0 0 calc(4px + var(--lvl, 0) * 16px) rgba(110, 230, 90, .35), inset 0 3px 0 rgba(255,255,255,.3), 0 6px 0 4px #08300c; }
.spk-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #3d7bea, #1d48b0); box-shadow: 0 0 0 3px #0d2766, inset 0 3px 0 rgba(255,255,255,.3), 0 5px 0 3px #0a1d4d; }
.spk-btn .ico { width: 32px; height: 32px; }
.spk-btn.off { background: linear-gradient(180deg, #e2443a, #8a1f1a); box-shadow: 0 0 0 3px #4a0a08, 0 5px 0 3px #300806; }
.mic-btn:active, .spk-btn:active { transform: translateY(3px) scale(.97); }
.seat .vstat { position: absolute; right: -10px; bottom: 26px; width: 30px; height: 30px; border-radius: 50%; display: none; place-items: center; background: #1f8a2a center/62% no-repeat; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.5); z-index: 4; }
.seat .vstat.on { display: grid; }
.seat .vstat.muted { background-color: #b0281e; }
.seat.talking .pic { box-shadow: 0 0 0 5px #6ae05a, 0 0 0 9px #14501a, 0 0 34px rgba(110,230,90,.95), 0 10px 16px rgba(0,0,0,.5); }
.slot.talking .avatar-box { box-shadow: 0 0 0 5px #6ae05a, 0 0 26px rgba(110,230,90,.9); }
.lobby-mic.live { background: linear-gradient(180deg, #6ae05a, #1f8a2a); box-shadow: 0 4px 0 #0d3a10; }

/* ---------- guess confirmation ---------- */
.guess-bar { position: absolute; left: 50%; bottom: 228px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 22px; border-radius: 24px; background: rgba(10, 6, 40, .94); box-shadow: 0 0 0 3px #4af0ff, 0 12px 26px rgba(0,0,0,.6); font-size: 22px; white-space: nowrap; z-index: 9; animation: pop .25s cubic-bezier(.2, 1.5, .4, 1); }
.guess-bar b { color: #ffd866; }
.guess-bar .big-btn.small { padding: 8px 20px; font-size: 21px; }

/* ---------- player card ---------- */
.pcard { display: flex; gap: 20px; align-items: center; }
.pcard .avatar-box { width: 130px; height: 130px; border-radius: 26px; flex: none; box-shadow: 0 0 0 5px #ffd866, 0 10px 20px rgba(0,0,0,.4); }
.pcard .pn { font-size: 32px; }
.pcard .stat-grid { grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.pcard .stat b { font-size: 22px; }
.pc-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.slot.away .avatar-box { filter: grayscale(1) brightness(.6); }
.slot.away .sl-lv { color: #ffb36a; }

/* ---------- profiles, social & guilds ---------- */
.role-badge { display: inline-block; font-size: 13px; padding: 2px 8px; border-radius: 8px; vertical-align: 3px; letter-spacing: .06em; font-family: system-ui, sans-serif; font-weight: 800; }
.role-badge.dev { background: linear-gradient(180deg, #ff6ad5, #a12ad0); color: #fff; box-shadow: 0 0 10px rgba(255,106,213,.6); }
.role-badge.tester { background: linear-gradient(180deg, #5ad0ff, #1f6fd0); color: #fff; }
.big-av { width: 120px !important; height: 120px !important; border-radius: 24px !important; flex: none; box-shadow: 0 0 0 5px #ffd866; }
.pn { font-size: 30px; }
.pid { color: #ffd866; letter-spacing: .12em; }
.pid.big { font-size: 24px; }
.bio { font-family: system-ui, sans-serif; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { padding: 6px 14px; border-radius: 16px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); font-size: 16px; }
.chip.on { background: linear-gradient(180deg, #ffe27a, #e09a1a); color: #4a2400; box-shadow: none; }
.emblems .chip { font-size: 26px; padding: 4px 10px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.subtabs { display: flex; gap: 8px; margin: 0 0 12px; padding: 6px; border-radius: 16px; background: rgba(0,0,0,.25); }
.subtabs button { flex: 1; padding: 8px 10px; border-radius: 12px; font-size: 18px; color: #d8d0ff; }
.subtabs button.on { background: linear-gradient(180deg, #6a5ae0, #3d2fa8); color: #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,.25); }
.subtabs.small { width: 320px; }
.subtabs.small button { font-size: 16px; padding: 6px; }
.sect { margin: 14px 0 8px; color: #ffd866; font-family: 'Cinzel', serif; }
.tappable { cursor: pointer; }
.tappable:active { background: rgba(255,255,255,.12); }
.code-input { width: 200px; background: #120a40; color: #fff; border: 2px solid #5a4ad0; border-radius: 12px; padding: 8px 12px; font-size: 20px; text-transform: uppercase; letter-spacing: .1em; }
.badge.static { position: static; border: 0; }
.sub-tile { position: relative; }
.panel.notice { box-shadow: inset 0 0 0 2px #ffd866; }
.ctx-menu { position: fixed; z-index: 120; transform-origin: 0 0; min-width: 220px; padding: 8px; border-radius: 16px; background: rgba(20, 12, 60, .98); box-shadow: 0 0 0 2px #e8b64a, 0 14px 30px rgba(0,0,0,.6); display: flex; flex-direction: column; }
.ctx-menu button { text-align: left; padding: 12px 16px; border-radius: 10px; font-size: 20px; color: #fff; }
.ctx-menu button:active, .ctx-menu button:hover { background: rgba(255,255,255,.12); }
.emblem { font-size: 34px; width: 52px; text-align: center; flex: none; }
.emblem.huge { font-size: 76px; width: 110px; }
.guild-row .grow span { display: block; }
.xp-line { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.xp-bar.wide { width: 320px; }
.perks { margin: 6px 0; padding-left: 22px; font-family: system-ui, sans-serif; font-size: 17px; }
.gold-text { color: #ffd866; }
.week-track { position: relative; height: 18px; border-radius: 9px; background: #0a0630; margin: 12px 0 8px; }
.week-track > i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #6ae05a, #ffd866); }
.week-track .mark { position: absolute; top: -4px; width: 6px; height: 26px; margin-left: -3px; border-radius: 3px; background: #5a4ab0; }
.week-track .mark.on { background: #ffd866; box-shadow: 0 0 8px #ffd866; }
.log { font-family: system-ui, sans-serif; font-size: 16px; line-height: 1.7; max-height: 220px; overflow: auto; }
.lb-head, .lb-row { display: grid; grid-template-columns: 56px 1fr 80px 110px 90px; align-items: center; gap: 8px; padding: 8px 12px; }
.lb-head.players, .lb-row.players { grid-template-columns: 56px 1fr 70px 100px 110px 110px; }
.lb-head { color: #ffd866; font-size: 15px; font-family: 'Cinzel', serif; }
.lb-row { border-radius: 14px; background: rgba(0,0,0,.22); margin-bottom: 8px; font-size: 19px; }
.lb-row.me { box-shadow: inset 0 0 0 3px #ffd866; }
.lb-row .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-row .who .avatar-box { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.lb-row .who b, .lb-row .who .muted { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row .muted { font-size: 14px; }
.lb-row .neg { color: #ff8a7a; }
.room-grid .pic.stack { position: relative; }
.room-grid .pic.stack em { position: absolute; right: -4px; bottom: -4px; font-style: normal; background: #e2443a; border-radius: 10px; padding: 0 8px; font-size: 18px; box-shadow: 0 0 0 2px #fff; }
.shop-card.best { box-shadow: inset 0 0 0 3px #ffd866, 0 0 20px rgba(255,216,102,.3); }

/* ---------- settings ---------- */
.set-group { margin-bottom: 16px; }
.set-group h4 { margin: 0 0 6px; color: #ffd866; font-family: 'Cinzel', serif; font-size: 18px; letter-spacing: .06em; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: rgba(0,0,0,.22); border-radius: 14px; margin-bottom: 6px; }
.set-row .grow { flex: 1; min-width: 0; }
.set-row .grow b { display: block; }
.set-row .grow .muted { display: block; font-size: 15px; }
.set-select { background: #120a40; color: #fff; border: 2px solid #5a4ad0; border-radius: 12px; padding: 8px 12px; font-size: 18px; }
.slider { width: 240px; accent-color: #ffd866; height: 28px; }
.vol { width: 52px; text-align: right; color: #ffd866; }
.fb-btn { padding: 10px 18px; border-radius: 12px; background: #1877f2; color: #fff; font-family: system-ui, sans-serif; font-weight: 700; font-size: 18px; opacity: .45; }

/* ---------- chat box (home) ---------- */
.chat-handle { position: absolute; left: 0; top: 214px; pointer-events: auto; width: 64px; padding: 12px 0 8px; border-radius: 0 18px 18px 0; background: linear-gradient(180deg, #3d7bea, #1d48b0); box-shadow: 0 0 0 3px #fff, 0 6px 0 3px rgba(0,0,0,.25); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; z-index: 6; }
.chat-handle .ico { width: 36px; height: 36px; }
.chat-handle .badge { top: -10px; right: -10px; }
.chat-handle .badge.dot { min-width: 16px; height: 16px; padding: 0; font-size: 0; }
.chat-panel { position: absolute; left: 10px; top: 84px; bottom: 14px; width: 450px; z-index: 30; pointer-events: auto; display: flex; flex-direction: column; border-radius: 24px; background: linear-gradient(180deg, rgba(40,26,110,.98), rgba(18,10,60,.98)); box-shadow: 0 0 0 4px #e8b64a, 0 20px 40px rgba(0,0,0,.6); transform: translateX(-120%); visibility: hidden; transition: transform .3s cubic-bezier(.2, 1.1, .4, 1), visibility 0s .3s; }
.chat-panel.open { transform: translateX(0); visibility: visible; transition: transform .3s cubic-bezier(.2, 1.1, .4, 1); }
.cp-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 8px; }
.cp-tabs { flex: 1; display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(0,0,0,.3); }
.cp-tabs button { flex: 1; padding: 8px 4px; border-radius: 10px; font-size: 17px; color: #d8d0ff; position: relative; }
.cp-tabs button.on { background: linear-gradient(180deg, #ffe27a, #e09a1a); color: #4a2400; }
.cp-tabs i { position: absolute; top: -6px; right: -2px; font-style: normal; font-size: 12px; min-width: 18px; padding: 0 4px; border-radius: 9px; background: #ff3b3b; color: #fff; }
.cp-tabs i:empty { display: none; }
.cp-head .x-btn { width: 40px; height: 40px; font-size: 18px; flex: none; }
.cp-body { flex: 1; overflow-y: auto; padding: 4px 14px 10px; -webkit-overflow-scrolling: touch; }
.cp-body .list-row .avatar-box { width: 44px; height: 44px; }
.cp-input { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid rgba(255,255,255,.1); }
.cp-input input { flex: 1; min-width: 0; background: #120a40; color: #fff; border: 2px solid #5a4ad0; border-radius: 14px; padding: 10px 14px; font-size: 18px; font-family: system-ui, sans-serif; outline: none; }
.cp-input input:focus { border-color: #ffd866; }
.msg { display: flex; gap: 10px; align-items: flex-end; margin: 10px 0; }
.msg .avatar-box { width: 38px; height: 38px; border-radius: 12px; flex: none; }
.bubble-msg { max-width: 80%; padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: rgba(255,255,255,.1); font-family: system-ui, sans-serif; font-size: 16px; line-height: 1.35; }
.bubble-msg .who { display: block; font-family: 'Lilita', sans-serif; color: #ffd866; font-size: 15px; cursor: pointer; }
.bubble-msg .txt { overflow-wrap: anywhere; }
.bubble-msg .t { display: block; font-size: 11px; opacity: .6; text-align: right; }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .bubble-msg { background: linear-gradient(180deg, #3d7bea, #2a56c0); border-radius: 16px 16px 4px 16px; }
.msg.mine .who { cursor: default; }
.dm-head { position: sticky; top: 0; display: flex; align-items: center; gap: 12px; padding: 8px 0; background: rgba(28,18,80,.98); z-index: 1; }
.chat-empty { text-align: center; margin-top: 60px; font-size: 48px; }
.chat-empty p { font-size: 20px; }
.chat-hint { text-align: center; font-size: 15px; }

/* ---------- round cooldown clock ---------- */
.clock-col { display: flex; flex-direction: column; align-items: center; line-height: 1; }
#clockLabel { font-size: 12px; letter-spacing: .12em; color: #ffd866; margin-top: 2px; }
.hud-clock.cool { box-shadow: 0 0 0 4px #5ac8ff, 0 0 0 7px #0d3a6a, 0 8px 14px rgba(0,0,0,.5); }
.hud-clock.cool #clockLabel { color: #5ac8ff; }

/* ---------- notification cards (bottom-right) ---------- */
.notify-stack { position: fixed; right: calc(14px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 110; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; transform: scale(var(--s)); transform-origin: bottom right; pointer-events: none; }
.note { pointer-events: auto; position: relative; width: 400px; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px 16px; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, rgba(58,38,150,.98), rgba(24,14,72,.98)); box-shadow: 0 0 0 2px rgba(232,182,74,.9), 0 16px 34px rgba(0,0,0,.55); animation: noteIn .35s cubic-bezier(.2, 1.3, .4, 1); }
.note.out { animation: noteOut .25s ease-in forwards; }
.note.err { box-shadow: 0 0 0 2px #ff6a5a, 0 16px 34px rgba(0,0,0,.55); }
.note.invite { box-shadow: 0 0 0 3px #6ae05a, 0 0 26px rgba(106,224,90,.45), 0 16px 34px rgba(0,0,0,.55); }
.note .n-ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; font-size: 28px; border-radius: 14px; background: rgba(255,255,255,.12); }
.note .n-body { flex: 1; min-width: 0; font-size: 18px; line-height: 1.3; }
.note .n-body > b:first-child { display: block; color: #ffd866; font-size: 19px; margin-bottom: 2px; }
.note .n-text { display: block; font-family: system-ui, sans-serif; font-size: 16px; color: #f0ecff; overflow-wrap: anywhere; }
.note .n-text b { color: #fff; }
.note .n-x { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border-radius: 50%; font-size: 14px; color: #c9c0ff; background: rgba(255,255,255,.08); }
.note .n-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.note .n-btn { padding: 8px 16px; border-radius: 12px; font-size: 16px; background: linear-gradient(180deg, #5a4ad0, #33269a); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 3px 0 #1a1060; }
.note .n-btn.green { background: linear-gradient(180deg, #6fe05a, #2f9a2a); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 3px 0 #1a5a10; }
.note .n-btn.red { background: linear-gradient(180deg, #ff7a6a, #c42a20); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 3px 0 #6a0e08; }
.note .n-btn:active { transform: translateY(2px); }
.note .n-timer { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: linear-gradient(90deg, #ffd866, #f2a020); transform-origin: left; animation: noteTimer linear forwards; }
@keyframes noteIn { from { transform: translateX(120%); opacity: 0; } }
@keyframes noteOut { to { transform: translateX(120%); opacity: 0; } }
@keyframes noteTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- styled confirmation ---------- */
.ask { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; background: rgba(5, 2, 25, .7); animation: fadeIn .15s; }
.ask-card { width: 520px; text-align: center; padding: 26px 30px 24px; border-radius: 26px; background: linear-gradient(180deg, #3a2a9a, #1e1260); box-shadow: 0 0 0 4px #e8b64a, 0 0 0 8px #5a3a08, 0 24px 60px rgba(0,0,0,.7); animation: pop .25s cubic-bezier(.2, 1.4, .4, 1); }
.ask-ico { font-size: 50px; }
.ask-card h3 { margin: 6px 0 8px; font-family: 'Cinzel', serif; font-weight: 900; font-size: 28px; color: #ffd866; }
.ask-card p { margin: 0 0 20px; font-family: system-ui, sans-serif; font-size: 18px; line-height: 1.45; color: #ece8ff; }
.ask-actions { display: flex; justify-content: center; gap: 18px; }
.ask-actions .big-btn { min-width: 150px; }

/* ---------- lobby voice (Quick Play matching and Room) ---------- */
.lobby-voice { position: absolute; left: 30px; bottom: 96px; display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 12px; border-radius: 44px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.lobby-voice .mic-btn { width: 70px; height: 70px; }
.lobby-voice .lv-label { font-size: 18px; line-height: 1.15; }
.lobby-voice .lv-label small { color: var(--muted); font-size: 14px; }

/* ---------- home tiles: friends online, clan name ---------- */
.sub-tile.teal { background: linear-gradient(180deg, #3ad0b8, #128a7a); }
.sub-tile .st-sub { font-size: 13px; font-family: system-ui, sans-serif; font-weight: 600; color: rgba(255,255,255,.92); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.sub-tile .st-emblem { font-size: 42px; line-height: 50px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }

/* ---------- chat layer (home, lobby, quick replies in a match) ---------- */
.chat-layer { position: fixed; inset: 0; z-index: 40; pointer-events: none; display: none; }
.chat-layer.active { display: block; }
.cp-clans { display: flex; gap: 6px; padding: 0 12px 6px; overflow-x: auto; }
.cp-clans button { flex: none; padding: 5px 12px; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 15px; white-space: nowrap; }
.cp-clans button.on { background: linear-gradient(180deg, #3ad0b8, #128a7a); }
.vm-btn { width: 46px; height: 46px; flex: none; border-radius: 50%; font-size: 22px; background: linear-gradient(180deg, #ff7ad9, #a12ad0); box-shadow: 0 0 0 2px #fff4, 0 3px 0 #5a0a70; }
.vm-rec { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; border-top: 1px solid rgba(255,255,255,.1); font-size: 18px; }
.vm-rec .muted { flex: 1; font-size: 14px; }
.vm-dot { width: 14px; height: 14px; border-radius: 50%; background: #ff4a3a; box-shadow: 0 0 10px #ff4a3a; animation: recBlink 1s infinite; }
@keyframes recBlink { 50% { opacity: .25; } }
.vm-msg { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.vm-play { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, #ffe27a, #e09a1a); color: #4a2400; font-size: 14px; flex: none; }
.vm-wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.vm-wave i { width: 3px; border-radius: 2px; background: rgba(255,255,255,.75); height: 8px; }
.vm-wave i:nth-child(2n) { height: 16px; }
.vm-wave i:nth-child(3n) { height: 12px; }
.vm-wave i:nth-child(5n) { height: 20px; }
.vm-msg.playing .vm-wave i { animation: wave .6s ease-in-out infinite alternate; }
.vm-msg.playing .vm-wave i:nth-child(2n) { animation-delay: .15s; }
.vm-msg.playing .vm-wave i:nth-child(3n) { animation-delay: .3s; }
@keyframes wave { to { transform: scaleY(.35); } }
.vm-len { font-size: 13px; opacity: .8; }

/* ---------- lobby: friends on the left, bet purse, chat bubbles ---------- */
.lobby-friends { position: absolute; left: 16px; top: 86px; bottom: 196px; width: 204px; display: flex; flex-direction: column; border-radius: 18px; background: rgba(8,4,36,.62); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); padding: 8px; z-index: 3; }
.lf-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 4px 6px; font-size: 15px; }
.lf-chat { position: relative; padding: 5px 10px; border-radius: 12px; background: linear-gradient(180deg, #3d7bea, #1d48b0); font-size: 14px; box-shadow: 0 3px 0 #0a1d4d; }
.lf-chat .badge { top: -10px; right: -10px; min-width: 22px; height: 22px; font-size: 12px; border-width: 2px; }
.lf-list { flex: 1; overflow-y: auto; }
.lf-row { display: flex; align-items: center; gap: 6px; padding: 5px 4px; border-radius: 10px; }
.lf-row + .lf-row { border-top: 1px solid rgba(255,255,255,.06); }
.lf-row.off { opacity: .55; }
.lf-row .avatar-box { width: 34px; height: 34px; border-radius: 9px; flex: none; cursor: pointer; }
.lf-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lf-name b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-name small { font-size: 11px; color: var(--muted); font-family: system-ui, sans-serif; white-space: nowrap; }
.lf-name .status-dot { width: 8px; height: 8px; margin-right: 4px; }
.lf-btn { flex: none; padding: 5px 7px; border-radius: 9px; font-size: 12px; background: rgba(255,255,255,.12); }
.lf-btn.inv { background: linear-gradient(180deg, #6fe05a, #2f9a2a); }
.lf-btn:disabled { opacity: .45; }
.lf-empty { font-size: 13px; font-family: system-ui, sans-serif; margin: 6px; }
.purse-box { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 18px; background: rgba(0,0,0,.38); }
.purse-box .fee { background: none; padding: 0 10px 0 0; font-size: 20px; border-radius: 0; border-right: 1px solid rgba(255,255,255,.18); }
.purse-label { display: flex; flex-direction: column; font-size: 17px; color: #ffd866; line-height: 1.1; }
.purse-label small { font-size: 11px; color: var(--muted); font-family: system-ui, sans-serif; max-width: 170px; }
.purse-chips { display: flex; gap: 6px; }
.pchip { min-width: 56px; padding: 7px 8px; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 17px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.pchip.on { background: linear-gradient(180deg, #ffe27a, #e09a1a); color: #4a2400; box-shadow: 0 0 12px rgba(255,216,102,.6); }
.pchip.short { opacity: .55; }
.pill-btn.green { background: linear-gradient(180deg, #6fe05a, #2f9a2a); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 4px 0 #1a5a10; }
.room-input { width: 220px; text-align: center; letter-spacing: .25em; background: #120a40; color: #fff; border: 2px solid #5a4ad0; border-radius: 12px; padding: 8px; font-size: 28px; }
.sl-bubble { position: absolute; left: 50%; top: -14px; transform: translate(-50%, -100%) scale(0); max-width: 220px; padding: 6px 12px; border-radius: 14px; background: #fff; color: #222; font-family: system-ui, sans-serif; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 12px rgba(0,0,0,.4); transition: transform .25s cubic-bezier(.2, 1.6, .4, 1); z-index: 4; }
.sl-bubble.show { transform: translate(-50%, -100%) scale(1); }

/* ---------- cooldown bar (replaces the hint while the round's cooldown runs) ---------- */
.cool-bar { position: absolute; left: 50%; bottom: 220px; transform: translateX(-50%); width: 560px; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 16px 0 12px; border-radius: 32px; overflow: hidden; background: linear-gradient(180deg, rgba(14,44,110,.94), rgba(8,22,64,.94)); box-shadow: 0 0 0 3px #5ac8ff, 0 0 24px rgba(90,200,255,.45), 0 10px 20px rgba(0,0,0,.5); z-index: 6; pointer-events: none; }
.cool-bar .cb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left; background: linear-gradient(90deg, rgba(90,200,255,.38), rgba(90,200,255,.12)); transition: transform .25s linear; }
.cool-bar > span { position: relative; }
.cool-bar .cb-ico { font-size: 30px; animation: hgSpin 2s ease-in-out infinite; }
@keyframes hgSpin { 0%, 70% { transform: rotate(0); } 85%, 100% { transform: rotate(180deg); } }
.cool-bar .cb-text { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.cool-bar .cb-text b { font-family: 'Cinzel', serif; font-weight: 900; font-size: 20px; color: #bfe8ff; letter-spacing: .06em; }
.cool-bar .cb-text small { font-family: system-ui, sans-serif; font-size: 15px; color: #fff; }
.cool-bar .cb-num { min-width: 64px; height: 48px; border-radius: 24px; display: grid; place-items: center; font-size: 36px; color: #fff; background: rgba(90,200,255,.25); box-shadow: inset 0 0 0 2px #5ac8ff; }
.cool-bar.mine { box-shadow: 0 0 0 3px #ffd866, 0 0 24px rgba(255,216,102,.5), 0 10px 20px rgba(0,0,0,.5); }
.cool-bar.mine .cb-text b { color: #ffe9a0; }
.cool-bar.last { animation: coolLast .5s ease-in-out infinite alternate; }
.cool-bar.last .cb-num { background: #ff6a3a; box-shadow: inset 0 0 0 2px #fff; }
@keyframes coolLast { to { box-shadow: 0 0 0 3px #ff8a5a, 0 0 34px rgba(255,120,80,.8), 0 10px 20px rgba(0,0,0,.5); } }
.hint.under-cool { opacity: 0 !important; }

/* ---------- daily bonus strip ---------- */
.day { position: relative; display: flex; flex-direction: column; align-items: center; background: linear-gradient(180deg, rgba(90,74,208,.55), rgba(40,26,110,.6)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.14); color: #fff; }
.day small { font-size: 11px; font-family: system-ui, sans-serif; min-height: 14px; color: #ffe9a0; }
.day.claimed { background: linear-gradient(180deg, #6c6a80, #46445a); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); color: #c9c7d8; }
.day.claimed .ico { filter: grayscale(1) opacity(.6); }
.day.claimed small { color: #d0cede; }
.day .day-tick { position: absolute; top: -8px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: #2f9a2a; color: #fff; font-size: 14px; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.day.next { box-shadow: inset 0 0 0 2px #ffd866; }

/* ---------- clans: switcher, membership types, invites ---------- */
.clan-switch { display: flex; gap: 8px; margin-bottom: 10px; overflow-x: auto; padding-bottom: 2px; }
.clan-switch button { flex: none; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 6px 14px 6px 10px; border-radius: 14px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); text-align: left; }
.clan-switch button span { grid-row: span 2; font-size: 26px; }
.clan-switch button b { font-size: 16px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clan-switch button small { font-size: 12px; color: var(--muted); font-family: system-ui, sans-serif; }
.clan-switch button.on { background: linear-gradient(180deg, #3ad0b8, #128a7a); box-shadow: 0 0 0 2px #fff; }
.clan-switch button.on small { color: #e6fffb; }
.clan-switch button.add { background: rgba(255,255,255,.06); border: 2px dashed rgba(255,255,255,.3); box-shadow: none; }
.type-tag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 15px; background: rgba(255,255,255,.12); }
.type-tag.primary { background: linear-gradient(180deg, #ffe27a, #e09a1a); color: #4a2400; }
.type-tag.secondary { background: linear-gradient(180deg, #9ad0ff, #3d7bea); }
.type-tag.temporary { background: linear-gradient(180deg, #c9a0ff, #6a2ad0); }
.ask-card.wide { width: 640px; }
.type-pick { display: flex; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }
.type-btn { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; border-radius: 16px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); }
.type-btn b { font-size: 19px; }
.type-btn small { font-family: system-ui, sans-serif; font-size: 13px; color: #d8d0ff; line-height: 1.3; }
.type-btn.primary { box-shadow: inset 0 0 0 2px #ffd866; }
.type-btn:active, .type-btn:hover { background: rgba(255,216,102,.18); }
.req { color: #ff9a8a; font-size: 13px; }
.guild-row.invite { box-shadow: inset 0 0 0 2px #6ae05a; }
.inv-left { font-size: 13px; text-align: right; line-height: 1.25; }

/* ---------- gifts ---------- */
.gift-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.gift-head .avatar-box { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 0 0 4px #ffd866; }
.gift-amounts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 8px 0 6px; }
.gift-amounts button { min-width: 84px; padding: 12px 10px; border-radius: 14px; background: rgba(255,255,255,.1); font-size: 22px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.gift-amounts button.on { background: linear-gradient(180deg, #ffe27a, #e09a1a); color: #4a2400; }
.gift-amounts button:disabled { opacity: .35; }
.gift-amounts input { width: 110px; padding: 10px 6px; text-align: center; background: #120a40; color: #fff; border: 2px solid #5a4ad0; border-radius: 14px; font-size: 20px; }

/* ---------- lists ---------- */
.list-note { margin: 0 0 8px; font-size: 16px; }
.lb-gap { text-align: center; color: var(--muted); margin: -4px 0 4px; }

/* ---------- royal guide: colour-coded cards ---------- */
.guide .g-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.guide .g-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); box-shadow: inset 4px 0 0 var(--tone, #ffd866), inset 0 0 0 1px rgba(255,255,255,.08); }
.guide .g-card.gold { --tone: #ffd866; }
.guide .g-card.blue { --tone: #6aaeff; }
.guide .g-card.teal { --tone: #3ad0b8; }
.guide .g-card.red { --tone: #ff7a6a; }
.guide .g-card.purple { --tone: #c88aff; }
.guide .g-card.green { --tone: #7ae86a; }
.guide .g-card.item { --tone: #ffd866; }
.guide .g-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 2px var(--tone, #ffd866); }
.guide .g-body { flex: 1; min-width: 0; }
.guide .g-body h4 { margin: 0 0 4px; font-size: 18px; color: var(--tone, #ffd866); font-family: 'Cinzel', serif; font-weight: 900; letter-spacing: .03em; }
.guide .g-body p, .guide .g-body li { margin: 0; font-family: system-ui, sans-serif; font-size: 16px; line-height: 1.5; color: #fff; }
.guide .g-body b { color: #ffe9a0; }
.guide .g-body ul, .guide .g-body ol { margin: 0; padding-left: 20px; }
.guide .g-steps { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 6px; }
.guide .g-steps li b { display: inline-block; min-width: 72px; color: var(--tone); }
.guide .g-role { display: inline-block; padding: 1px 9px; margin: 1px 0; border-radius: 10px; background: var(--rc); color: #fff; font-size: 14px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); white-space: nowrap; }
.guide .g-lead { font-family: system-ui, sans-serif; font-size: 17px; color: #fff; margin: 0 0 12px; }
.guide .g-item { flex: none; width: 60px; height: 60px; background: center/contain no-repeat; }
.guide .g-price { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 10px; background: rgba(0,0,0,.3); font-size: 15px; }
.guide .g-rolecard { width: 132px; padding: 8px; border-radius: 14px; background: linear-gradient(180deg, var(--rc), rgba(0,0,0,.35)); box-shadow: 0 0 0 2px rgba(255,255,255,.2); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 15px; }
.guide .g-rolecard b { font-size: 18px; color: #fff; }
.guide .g-rolecard span { font-family: system-ui, sans-serif; font-size: 14px; }
.guide .role-strip { margin-bottom: 14px; }

/* ---------- clover road scenery ---------- */
.road { border-radius: 18px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); height: 440px; }
.road .rd-svg { position: absolute; left: 0; top: 0; }
.node .disc { background: radial-gradient(circle at 40% 35%, #8a84d0, #3a3470); }
.node .rw { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 10px; background: rgba(20,12,60,.78); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.rd-flag { transform-box: fill-box; transform-origin: left center; animation: rdWave 1.4s ease-in-out infinite alternate; }
@keyframes rdWave { from { transform: skewY(-6deg) scaleX(1); } to { transform: skewY(6deg) scaleX(.86); } }
.rd-fire { transform-box: fill-box; transform-origin: center bottom; animation: rdFlicker .35s ease-in-out infinite alternate; }
.rd-fire.b { animation-duration: .27s; }
@keyframes rdFlicker { from { transform: scale(.88, .95); opacity: .85; } to { transform: scale(1.06, 1.12); opacity: 1; } }
.rd-smoke { opacity: 0; animation: rdSmoke 3.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rdSmoke { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: .75; } 100% { opacity: 0; transform: translate(10px, -46px) scale(1.8); } }
.rd-glint { animation: rdGlint 2.6s ease-in-out infinite; }
@keyframes rdGlint { 0%, 70%, 100% { fill: #dfe6f2; } 80% { fill: #ffffff; } }
.rd-guard { animation: rdMarch 7s ease-in-out infinite alternate; }
@keyframes rdMarch { from { transform: translateX(-56px); } to { transform: translateX(58px); } }
.rd-banner { transform-box: fill-box; transform-origin: center top; animation: rdSway 2.4s ease-in-out infinite alternate; }
@keyframes rdSway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.rd-cloud { animation: rdCloud 38s ease-in-out infinite alternate; }
@keyframes rdCloud { from { transform: translateX(-60px); } to { transform: translateX(160px); } }
.rd-bird { animation: rdBird 16s linear infinite; }
@keyframes rdBird { from { transform: translate(-120px, 10px); } 50% { transform: translate(200px, -14px); } to { transform: translate(520px, 6px); } }
.rd-rays { animation: rdRays 40s linear infinite; }
@keyframes rdRays { to { transform: rotate(360deg); } }
.rd-done { animation: rdGlow 1.8s ease-in-out infinite alternate; }
@keyframes rdGlow { from { opacity: .55; } to { opacity: 1; } }
.rd-arrow { animation: rdArrow 3s ease-in infinite; }
@keyframes rdArrow { 0%, 60% { transform: translateX(-30px); opacity: 0; } 75% { opacity: 1; } 90%, 100% { transform: translateX(0); opacity: 1; } }

/* ---------- notification centre (bell, top right) ---------- */
#bellBtn.ringing .ico { animation: bellRing 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes bellRing { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-5deg); } }
.daily-sign { position: absolute; }
.daily-sign .badge { top: -6px; right: 4px; z-index: 2; }
.note-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 44px 16px 14px; margin-bottom: 8px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, rgba(58,38,150,.75), rgba(24,14,72,.75)); box-shadow: inset 0 0 0 2px rgba(232,182,74,.55); }
.note-row .nr-ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; font-size: 28px; border-radius: 14px; background: rgba(255,255,255,.12); }
.note-row .nr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.note-row .nr-body > b:first-child { color: #ffd866; font-size: 19px; }
.note-row .nr-text { font-family: system-ui, sans-serif; font-size: 16px; color: #f0ecff; overflow-wrap: anywhere; }
.note-row .nr-text b { color: #fff; }
.note-row .nr-time { font-size: 12px; color: var(--muted); font-family: system-ui, sans-serif; }
.note-row .nr-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.note-row .n-btn { padding: 8px 16px; border-radius: 12px; font-size: 16px; background: linear-gradient(180deg, #5a4ad0, #33269a); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 3px 0 #1a1060; }
.note-row .n-btn.green { background: linear-gradient(180deg, #6fe05a, #2f9a2a); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 3px 0 #1a5a10; }
.note-row .n-btn.red { background: linear-gradient(180deg, #ff7a6a, #c42a20); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 3px 0 #6a0e08; }
.note-row .nr-x { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border-radius: 50%; font-size: 14px; color: #c9c0ff; background: rgba(255,255,255,.08); }
.note-row .nr-clear { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: linear-gradient(90deg, #5ac8ff, #2f7ff0); transform-origin: left; transform: scaleX(1); transition: transform 1s linear; }
.note-row .nr-left { position: absolute; right: 12px; bottom: 6px; font-size: 11px; color: #9fd8ff; font-family: system-ui, sans-serif; }
.notes-empty { text-align: center; margin-top: 70px; font-size: 56px; }
.notes-empty p { font-size: 22px; margin: 6px 0; }
.notes-empty .muted { font-size: 16px; font-family: system-ui, sans-serif; }

/* ---------- mic + speaker badges on every player (arena and lobby) ---------- */
.vbadges { position: absolute; display: flex; flex-direction: column; gap: 4px; z-index: 4; pointer-events: none; }
.seat .vbadges { right: -14px; bottom: 30px; }
.slot .vbadges { left: 8px; top: 8px; }
.vbadges i { width: 28px; height: 28px; border-radius: 50%; background-color: #5a5870; background-position: center; background-size: 60%; background-repeat: no-repeat; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.5); }
.vbadges .vb-mic.on { background-color: #1f9a2a; }
.vbadges .vb-mic.on.muted-by-me { background-color: #b0281e; }
.vbadges .vb-spk.on { background-color: #1d5ad0; }
.vbadges .vb-spk:not(.on) { background-color: #b0281e; }
.seat.me .vbadges i { width: 32px; height: 32px; }
.seat.talking .vbadges .vb-mic.on { box-shadow: 0 0 0 2px #fff, 0 0 12px #6ae05a; }

/* ---------- privacy acknowledgement + policy pages ---------- */
.ack-card { width: 660px; }
.ack-card > p { margin: 0 0 8px; }
.ack-list { list-style: none; margin: 4px 0 12px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.ack-list li { font-family: system-ui, sans-serif; font-size: 16px; line-height: 1.4; color: #fff; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.25); }
.ack-small { font-size: 15px !important; }
.ack-card a { color: #9fd0ff; text-decoration: underline; }
.ack-card .big-btn { min-width: 300px; }
.doc-box { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; background: #1a0f3a; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.doc-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; font-family: 'Cinzel', serif; font-size: 22px; color: #ffd866; box-shadow: 0 2px 0 rgba(232,182,74,.5); }
.doc-box iframe { flex: 1; width: 100%; border: 0; background: #1a0f3a; }
.cur b.inf, b.inf { font-size: 1.45em; line-height: 1; }
.ack-card { width: 760px; padding: 18px 26px 18px; }
.ack-card .ask-ico { font-size: 34px; }
.ack-card h3 { margin: 2px 0 6px; }
.ack-card > p { margin: 0 0 6px; font-size: 16px; }
.ack-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 10px; }
.ack-list li { font-size: 14.5px; line-height: 1.35; padding: 8px 10px; }
.ack-card .ask-actions .big-btn { min-width: 320px; }

/* ================= v3: setup screens, docked chat, Mail, Store, Bag, clans ================= */
.sub-tile.wide { width: 260px; }
.sub-tile.wide .st-sub { max-width: 240px; }
.fee-top { font-size: 18px; background: rgba(0,0,0,.35); padding: 8px 14px; border-radius: 14px; white-space: nowrap; }
.fee-top .ico { width: 22px; height: 22px; }

/* setup (Quick Play setup / Room setup) */
.setup-grid { position: absolute; left: 50%; top: 132px; transform: translateX(-50%); width: 980px; max-width: calc(100% - 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.setup-card { background: rgba(0,0,0,.32); border-radius: 18px; padding: 12px 16px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.1); min-width: 0; }
.setup-card h4 { margin: 0 0 8px; font-family: 'Cinzel', serif; color: #ffd866; font-size: 18px; letter-spacing: .04em; }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 2px rgba(255,255,255,.14); text-align: left; min-width: 120px; }
.opt b { font-size: 19px; }
.opt small { font-size: 12px; color: var(--muted); font-family: system-ui, sans-serif; }
.opt.num { min-width: 70px; align-items: center; text-align: center; }
.opt.num b { font-size: 24px; }
.opt.on { background: linear-gradient(180deg, #ffe27a, #e09a1a); color: #4a2400; box-shadow: 0 0 14px rgba(255,216,102,.5); }
.opt.on small { color: #6a4208; }
.opt.soon { opacity: .45; }
.setup-item { display: flex; align-items: center; gap: 14px; }
.setup-item .item-slot { width: 76px; height: 76px; }
.setup-voice { display: flex; flex-direction: column; gap: 8px; }
.sv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 18px; }
.setup .lobby-bottom .setup-note { font-size: 17px; max-width: 760px; }
.item-slot.off { opacity: .4; }

/* lobby: chat docked on the left, the lobby fills the rest */
.lobby-main { position: absolute; left: 362px; right: 16px; top: 74px; bottom: 104px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 18px; }
.lobby-main .lobby-title { position: static; margin: 0; }
.lobby-main .slots { position: static; transform: none; flex-wrap: wrap; justify-content: center; }
.lobby-main .item-pick { position: static; transform: none; }
.lobby-main .slot { width: 138px; height: 196px; }
.lobby-main .slot .avatar-box, .lobby-main .slot .searching { width: 92px; height: 92px; }
.slots[data-size="6"] .slot, .slots[data-size="7"] .slot, .slots[data-size="8"] .slot { width: 112px; height: 168px; }
.lobby .lobby-bottom { left: 362px; }
.lobby .lobby-voice { left: 16px; bottom: 16px; }
.chat-panel.docked { left: 16px; top: 86px; bottom: 104px; width: 334px; transform: none; visibility: visible; transition: none; box-shadow: 0 0 0 3px rgba(232,182,74,.8), 0 12px 26px rgba(0,0,0,.45); }
.chat-panel.docked .x-btn { display: none; }
.chat-panel.docked .cp-tabs button { font-size: 14px; padding: 7px 2px; }
.chat-panel.docked .cp-input input { font-size: 15px; }
.chat-panel.docked .cp-input .big-btn.small { padding: 8px 12px; font-size: 16px; }

/* mail */
.mail-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; height: calc(100% - 66px); min-height: 300px; }
.mail-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.mail-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.25); text-align: left; box-shadow: inset 0 0 0 2px transparent; }
.mail-row.on { box-shadow: inset 0 0 0 2px #ffd866; background: rgba(255,216,102,.12); }
.mail-row.unread .mr-body b { color: #fff; }
.mail-row .mr-ico { font-size: 26px; width: 34px; text-align: center; flex: none; }
.mail-row .mr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mail-row .mr-body b { font-size: 16px; color: #d8d0ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row .mr-body small { font-size: 12px; color: var(--muted); font-family: system-ui, sans-serif; }
.mstate { font-size: 12px; padding: 2px 8px; border-radius: 10px; flex: none; font-family: system-ui, sans-serif; font-weight: 700; }
.mstate.new { background: #ff3b3b; color: #fff; }
.mstate.claim { background: linear-gradient(180deg, #6fe05a, #2f9a2a); color: #fff; }
.mstate.done { background: rgba(255,255,255,.15); color: #c9c7d8; }
.mail-detail { overflow-y: auto; background: rgba(0,0,0,.22); border-radius: 16px; padding: 14px 18px; min-width: 0; }
.mail-detail h3 { margin: 0 0 4px; color: #ffd866; font-family: 'Cinzel', serif; }
.mail-text { font-family: system-ui, sans-serif; font-size: 16px; line-height: 1.5; color: #fff; margin: 10px 0; overflow-wrap: anywhere; }
.mail-reward { display: inline-block; margin: 6px 0; padding: 8px 14px; border-radius: 14px; background: rgba(255,216,102,.15); box-shadow: inset 0 0 0 2px rgba(255,216,102,.5); }
.mail-pick { text-align: center; margin-top: 60px; }
.mail-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.mail-bar .mb-left, .mail-bar .mb-right { display: flex; gap: 8px; flex-wrap: wrap; }
.notes-empty.small { margin-top: 30px; font-size: 40px; }
.notes-empty.small p { font-size: 18px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.tbl-wrap { overflow-x: auto; }
.dev-note { margin-top: 12px; }
#mailBtn.ringing .ico { animation: bellRing 2.4s ease-in-out infinite; transform-origin: 50% 20%; }

/* store: sub-sections as vertical rows on the right */
.wallet-head .ico.token { width: 26px; height: 26px; }
.side-split { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; align-items: start; }
.side-main { min-width: 0; }
.side-main .grid.items { grid-template-columns: repeat(2, 1fr); }
.side-rows { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; }
.side-rows button { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.08); text-align: left; font-size: 17px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.side-rows button.on { background: linear-gradient(180deg, #6a5ae0, #3d2fa8); box-shadow: inset 4px 0 0 #ffd866; }
.panel.soon { box-shadow: inset 0 0 0 2px dashed rgba(255,255,255,.2); border: 2px dashed rgba(255,255,255,.18); }
.emoji-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 32px; }
.av-grid.small { grid-template-columns: repeat(8, 1fr); margin-top: 8px; }
.av-grid.small span { aspect-ratio: 1; border-radius: 12px; background: center/cover; }
.card-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.card-row span { display: flex; flex-direction: column; align-items: center; font-size: 14px; gap: 4px; }
.card-row i { width: 70px; height: 98px; border-radius: 8px; background: center/100% 100%; }

/* bag: Clover Road on top, owned things below */
.bag-road { position: relative; background: rgba(0,0,0,.2); border-radius: 18px; padding: 8px 10px 10px; margin-bottom: 10px; }
.br-head { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; margin-bottom: 6px; }
.road.straight { height: 214px; }
.road.straight .road-inner { position: relative; }
.node.small .disc { width: 54px; height: 54px; font-size: 20px; }
.node.small.milestone .disc { width: 62px; height: 62px; font-size: 24px; }
.node.small { width: 110px; font-size: 12px; }
.node.small .rw { margin-top: 4px; }
.node.current .disc { box-shadow: 0 0 0 4px #ffd866, 0 0 22px #ffd866; }
.br-claim { position: absolute; right: 16px; bottom: 16px; z-index: 3; }
.bag-items .subtabs { margin-bottom: 8px; }
.bag-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.bag-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 2px rgba(255,255,255,.1); text-align: center; min-width: 0; }
.bag-card.none { opacity: .45; }
.bag-card.on { box-shadow: inset 0 0 0 3px #ffd866; background: rgba(255,216,102,.15); }
.bag-card .pic { width: 64px; height: 64px; background: center/contain no-repeat; display: grid; place-items: center; }
.bag-card .pic.av { border-radius: 14px; background-size: cover; }
.bag-card .pic.card-pic { width: 64px; height: 90px; background-size: 100% 100%; border-radius: 6px; }
.bag-card .big-emoji { font-size: 40px; }
.bag-card b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bag-card small { font-size: 12px; color: var(--muted); font-family: system-ui, sans-serif; }
.bag-card.text b { white-space: normal; font-size: 15px; margin-top: 18px; }

/* daily quests */
.day b { font-size: 17px; }
.streak { margin-left: 8px; padding: 2px 10px; border-radius: 12px; background: linear-gradient(180deg, #ff9a3a, #e0521a); font-size: 16px; }
.quest.claimed { opacity: .7; }

/* clans: members table, weekly goal, quests */
.member-head { display: grid; grid-template-columns: 1fr 120px 110px 110px; gap: 8px; padding: 0 14px 4px 80px; color: #ffd866; font-size: 13px; font-family: 'Cinzel', serif; }
.member-head .num, .member-cols .num { text-align: right; font-variant-numeric: tabular-nums; }
.member-cols { display: grid; grid-template-columns: 120px 110px 110px; gap: 8px; align-items: center; font-size: 17px; }
.rank-tag { font-size: 14px; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,.1); justify-self: start; }
.rank-tag.leader { background: linear-gradient(180deg, #ffe27a, #e09a1a); color: #4a2400; }
.rank-tag.elder { background: linear-gradient(180deg, #9ad0ff, #3d7bea); }
.weekly-goal.done { box-shadow: inset 0 0 0 2px #6ae05a; }
.q-kind { flex: none; width: 82px; text-align: center; font-size: 13px; padding: 4px 6px; border-radius: 10px; background: rgba(58,208,184,.25); color: #bff5ec; }

/* help */
.help-search input { width: 100%; background: #120a40; color: #fff; border: 2px solid #5a4ad0; border-radius: 14px; padding: 10px 16px; font-size: 18px; font-family: system-ui, sans-serif; }
.faq { background: rgba(0,0,0,.22); border-radius: 12px; margin-bottom: 6px; padding: 10px 14px; }
.faq summary { cursor: pointer; font-size: 17px; }
.faq p { margin: 8px 0 2px; font-family: system-ui, sans-serif; font-size: 15px; line-height: 1.5; color: #ece8ff; }
.help-contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }

/* guide (single page) */
.guide ol, .guide ul { padding-left: 22px; }
.guide .g-role { display: inline-block; padding: 0 8px; border-radius: 10px; background: var(--rc); color: #fff; font-size: 14px; }
.ack-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 14px; text-align: left; font-family: system-ui, sans-serif; font-size: 15.5px; line-height: 1.4; color: #fff; cursor: pointer; }
.ack-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: #6fe05a; }
#ackOk:disabled { filter: grayscale(.8) brightness(.75); }
body[data-screen="lobby"] .notify-stack, body[data-screen="setup"] .notify-stack { bottom: calc(110px * var(--s) + env(safe-area-inset-bottom)); }
body.modal-open .notify-stack { top: calc(10px + env(safe-area-inset-top)); bottom: auto; transform-origin: top right; flex-direction: column-reverse; }
