/* gamexp.css: EXP strip, levels summary, toasts, level-up, leaderboard + badges sheet (2026-11-04) */
.xp-strip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #d8c69c; border-radius: 12px; background: #fffaf0; margin: 6px 0; font-family: var(--sans, system-ui); }
.xp-lv { display: grid; place-items: center; min-width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #f7d77c, #c8952e); color: #3b2a07; font-size: 13px; line-height: 1; text-align: center; }
.xp-lv b { display: block; font-size: 17px; }
.xp-mid { flex: 1; min-width: 0; }
.xp-top { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.xp-top span { color: #6b5a3a; }
.xp-bar { height: 9px; border-radius: 6px; background: #eadfc6; overflow: hidden; margin-top: 4px; }
.xp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #d9a53a, #8a5a12); transition: width .6s ease; }
.xp-boardbtn, .xp-sumbtns .gm-btn { min-height: 40px; border-radius: 10px; border: 1px solid #b39a68; background: #fffdf8; padding: 4px 10px; font: inherit; font-size: 13px; color: inherit; cursor: pointer; }
.xp-memline { font-size: 13px; margin: 2px 0 8px; color: #5a4a2a; } .xp-memline span { display: block; color: #7a6a4a; }
.xp-sum { display: flex; flex-direction: column; gap: 8px; }
.xp-sumh { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; } .xp-sumh span { color: #6b5a3a; font-size: 14px; }
.xp-chips { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; padding: 0; margin: 0; }
.xp-chips li { border: 1px solid #e0d2b0; border-radius: 10px; padding: 6px 8px; font-size: 13px; display: flex; gap: 4px; align-items: center; } .xp-chips li span { flex: 1; } 
.xp-memsum { font-size: 14px; margin: 0; } .xp-sumbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.xp-toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 9000; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.xp-toast { background: #2d2412; color: #fff6dc; padding: 9px 16px; border-radius: 22px; font: 600 14px var(--sans, system-ui); box-shadow: 0 4px 14px rgba(0,0,0,.25); animation: xpIn .35s ease; transition: opacity .4s, transform .4s; }
.xp-toast.xp-bonus { background: #6b3fa0; } .xp-toast.xp-badge { background: #8a5a12; } .xp-toast.out { opacity: 0; transform: translateY(8px); }
@keyframes xpIn { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }
.xp-cele { position: fixed; inset: 0; z-index: 9100; background: rgba(20,14,4,.55); display: grid; place-items: center; }
.xp-celec { background: #fffaf0; border-radius: 18px; padding: 22px 26px; text-align: center; max-width: 320px; animation: xpPop .45s cubic-bezier(.2,1.6,.4,1); color: #2d2412; }
.xp-celec p { margin: 0; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a5a12; } .xp-celec h3 { margin: 6px 0; } .xp-celec b { display: block; font-size: 28px; margin-bottom: 12px; }
.xp-burst { font-size: 44px; animation: xpSpin 1s ease; }
@keyframes xpPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } } @keyframes xpSpin { from { transform: rotate(-30deg) scale(.5); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .xp-toast, .xp-celec, .xp-burst { animation: none; } .xp-bar i { transition: none; } }
.xp-sheet { position: fixed; inset: 0; z-index: 8000; background: rgba(20,14,4,.45); display: flex; align-items: flex-end; justify-content: center; }
.xp-sheetc { position: relative; background: #fffaf0; color: #2d2412; width: 100%; max-width: 600px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 14px 14px calc(20px + env(safe-area-inset-bottom)); font-family: var(--sans, system-ui); }
.xp-sheetc h2 { margin: 4px 40px 10px 0; font-size: 20px; } .xp-sheetc h3 { font-size: 15px; margin: 14px 0 6px; }
.xp-close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d8c69c; background: #fff; font-size: 18px; cursor: pointer; color: inherit; }
.xp-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; } .xp-tabs button { flex: none; min-height: 40px; border-radius: 20px; border: 1px solid #c9b388; background: #fff; padding: 4px 12px; font: inherit; font-size: 13px; color: inherit; cursor: pointer; }
.xp-tabs button[aria-selected="true"] { background: #8a5a12; color: #fff; border-color: #8a5a12; }
.xp-rows { list-style: none; padding: 0; margin: 6px 0; } .xp-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid #eadfc6; }
.xp-row.me { background: #fbefcf; border-radius: 10px; } .xp-rank { width: 28px; text-align: center; font-weight: 700; }
.xp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; } .xp-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .xp-bdg { color: #6b5a3a; font-size: 12px; } .xp-bdg i { font-style: normal; margin-right: 2px; }
.xp-num { text-align: right; display: flex; flex-direction: column; } .xp-num small { color: #6b5a3a; font-size: 12px; }
.xp-hint, .xp-wait { font-size: 13px; color: #6b5a3a; }
.xp-name { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; } .xp-name label { flex: 1; display: flex; flex-direction: column; font-size: 13px; }
.xp-name input { min-height: 44px; font-size: 16px; border: 1px solid #b39a68; border-radius: 10px; padding: 6px 10px; background: #fff; color: inherit; } .xp-name .xp-hint { flex-basis: 100%; margin: 0; }
.xp-hide { display: flex; gap: 8px; align-items: center; margin: 10px 0; font-size: 14px; min-height: 44px; } .xp-hide input { width: 22px; height: 22px; }
.xp-shelf { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
.xp-shelf li { border: 1px solid #e0d2b0; border-radius: 12px; padding: 8px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.xp-shelf li span { font-size: 26px; } .xp-shelf li.off { opacity: .45; filter: grayscale(1); } .xp-shelf li.on { background: #fff3d1; border-color: #d9a53a; }
body.xp-open { overflow: hidden; }
html:not(.light) .xp-strip, html:not(.light) .xp-sheetc, html:not(.light) .xp-celec { background: #221c12; color: #f1e6cc; border-color: #4a3d24; }
html:not(.light) .xp-top span, html:not(.light) .xp-hint, html:not(.light) .xp-wait, html:not(.light) .xp-bdg, html:not(.light) .xp-num small, html:not(.light) .xp-memline, html:not(.light) .xp-memline span, html:not(.light) .xp-sumh span { color: #c8b48a; }
html:not(.light) .xp-bar { background: #3a311f; } html:not(.light) .xp-row.me, html:not(.light) .xp-shelf li.on { background: #3a2f17; } html:not(.light) .xp-tabs button, html:not(.light) .xp-close, html:not(.light) .xp-name input, html:not(.light) .xp-boardbtn, html:not(.light) .xp-sumbtns .gm-btn { background: #2b2417; color: inherit; border-color: #5a4a2a; }
html:not(.light) .xp-row, html:not(.light) .xp-chips li, html:not(.light) .xp-shelf li { border-color: #4a3d24; }
