/* meta.css (Oct 27): leaderboards, bestiary, camp, mastery, evolutions, near-miss results, mode buttons */
.msheet { position: fixed; inset: 0; z-index: 90; background: rgba(8, 5, 2, .72); display: flex; align-items: center; justify-content: center; padding: 14px; }
.msheet.hidden { display: none; }
.msin { width: min(440px, 100%); max-height: 88vh; overflow-y: auto; background: linear-gradient(#3a2614, #22160b); border: 3px solid #d9a441; border-radius: 12px; box-shadow: 0 8px 0 rgba(0,0,0,.45); padding: 12px 12px 16px; color: #fff3c4; }
.mhd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mhd b { font-size: 20px; color: #ffd166; letter-spacing: 1px; }
.mx { background: none; border: 0; color: #fff3c4; font-size: 20px; padding: 2px 8px; min-height: 0; box-shadow: none; }
.msub { margin: 6px 2px; font-size: 13px; opacity: .85; text-align: center; }
.mtabs { display: flex; gap: 6px; }
.mtabs button { flex: 1; padding: 8px 4px; font-size: 14px; background: #2a1b0d; border: 2px solid #6b4a22; color: #fff3c4; border-radius: 8px; min-height: 0; box-shadow: none; }
.mtabs button.on { background: #d9a441; color: #2a1b0d; border-color: #ffd166; }
.mlist { margin-top: 6px; }
.mrow { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-bottom: 1px solid rgba(217,164,65,.2); font-size: 15px; }
.mrow i { width: 30px; text-align: center; font-style: normal; font-weight: 700; }
.mrow span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow span small, .mrow b small { opacity: .65; font-weight: 400; font-size: 11px; }
.mrow b { color: #ffd166; }
.mrow.me { background: rgba(139, 211, 74, .18); border-radius: 6px; }

/* Bestiary */
.bsec { margin: 10px 2px 4px; font-weight: 700; color: #ffd166; }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bcard { background: #2a1b0d; border: 2px solid #6b4a22; border-radius: 8px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 12px; }
.bcard.boss { border-color: #b8862e; }
.bcard.unk { opacity: .6; }
.bcard b { font-size: 12px; line-height: 1.1; }
.bcard small { font-size: 10px; opacity: .8; }
.bpic { display: block; background-repeat: no-repeat; background-position: 0 0; image-rendering: pixelated; font-style: normal; }
.bpic.q { width: 48px; height: 48px; line-height: 48px; font-size: 26px; color: #6b4a22; }
.bbar { display: block; width: 100%; height: 6px; background: #120b05; border-radius: 3px; overflow: hidden; }
.bbar.big { height: 9px; margin: 2px 0 6px; }
.bbar i { display: block; height: 100%; background: linear-gradient(90deg, #8bd34a, #ffd166); }
.bstars { color: #ffd166; letter-spacing: 1px; font-size: 12px; }
.bcard button { padding: 4px 6px; font-size: 12px; min-height: 0; background: #8bd34a; color: #1a2a0a; border: 0; border-radius: 6px; animation: mpulse 1s ease-in-out infinite; }
@keyframes mpulse { 50% { transform: scale(1.07); } }

/* Camp (offline gold) on the title screen */
#campBtn { display: flex; align-items: center; gap: 10px; width: min(340px, 88vw); margin: 4px auto 8px; padding: 8px 12px; background: rgba(42, 27, 13, .88); border: 2px solid #6b4a22; border-radius: 10px; color: #fff3c4; text-align: left; min-height: 0; box-shadow: 0 4px 0 rgba(0,0,0,.35); }
#campBtn > i { font-size: 26px; font-style: normal; }
#campBtn span { flex: 1; display: flex; flex-direction: column; }
#campBtn span b { font-size: 14px; }
#campBtn span small { font-size: 11px; opacity: .75; }
#campBtn em { font-style: normal; font-weight: 700; font-size: 12px; color: #6b4a22; }
#campBtn.ready { border-color: #d9a441; }
#campBtn.ready em { color: #1a2a0a; background: #8bd34a; padding: 5px 8px; border-radius: 6px; animation: mpulse 1.2s ease-in-out infinite; }
#campBtn.full { border-color: #8bd34a; }
#moreBtn.dot::after { content: ''; position: absolute; top: 4px; right: 18px; width: 9px; height: 9px; border-radius: 50%; background: #ff5a5a; }
#moreBtn { position: relative; }

/* mastery + near-miss on the results screen */
.mmast { margin: 8px auto 4px; width: min(320px, 92%); font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.mmast em { color: #8bd34a; font-style: normal; font-weight: 700; }
.mmast small { opacity: .7; font-size: 11px; }
.nearmiss { margin: 6px auto; width: min(330px, 94%); display: flex; flex-direction: column; gap: 5px; }
.nearmiss div { background: rgba(255, 90, 90, .13); border: 1px solid rgba(255, 90, 90, .45); border-radius: 8px; padding: 6px 8px; font-size: 14px; }
.nearmiss div.good { background: rgba(139, 211, 74, .14); border-color: rgba(139, 211, 74, .5); }
.nearmiss .bbar { margin-top: 4px; }
.nearmiss .bbar i.red { background: linear-gradient(90deg, #ff5a5a, #ff9a3c); }
.rshare { display: flex; gap: 8px; justify-content: center; }
.rshare button { flex: 1; max-width: 160px; }
.bnew { color: #8bd34a; font-size: 13px; margin: 4px 0; }

/* mode buttons on the pre-game screen */
.pgmodes { display: flex; gap: 6px; margin: 4px 10px 6px; }
.pgmodes button { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 4px; min-height: 0; font-size: 13px; background: rgba(42, 27, 13, .9); border: 2px solid #6b4a22; color: #fff3c4; border-radius: 8px; box-shadow: 0 3px 0 rgba(0,0,0,.35); position: relative; }
.pgmodes button b { font-size: 14px; }
.pgmodes button small { font-size: 10px; opacity: .75; }
.pgmodes button.hot { border-color: #d9a441; }
.pgmodes button.hot::after { content: '!'; position: absolute; top: -6px; right: -4px; background: #ff5a5a; color: #fff; font-size: 11px; font-weight: 700; width: 17px; height: 17px; border-radius: 50%; line-height: 17px; }
.pgmodes button:disabled { opacity: .45; }
.modetag { display: inline-block; margin: 0 auto 4px; padding: 3px 10px; border-radius: 10px; background: #d9a441; color: #2a1b0d; font-weight: 700; font-size: 13px; }

/* evolutions */
.pcard.r-evo { border-color: #ffd166 !important; background: linear-gradient(160deg, #5a3a0a, #2a1606) !important; box-shadow: 0 0 0 2px #ffd166, 0 0 22px rgba(255, 209, 102, .7) !important; animation-name: evoglow; }
.pcard.r-evo .prar { color: #ffd166; font-weight: 700; }
.pcard.r-evo b { color: #ffd166; }
.pevo { display: block; margin-top: 3px; font-size: 10.5px; color: #ffd166; line-height: 1.15; }
.pevo.hot { color: #8bd34a; font-weight: 700; }
.evoflash { position: fixed; inset: 0; z-index: 80; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(255, 209, 102, .55), rgba(255, 209, 102, 0) 65%); animation: evof 1.6s ease-out forwards; }
.evoflash b { font-size: 46px; color: #ffd166; text-shadow: 0 4px 0 #5a3a0a, 0 0 18px #ffb000; letter-spacing: 2px; }
.evoflash span { font-size: 22px; color: #fff3c4; text-shadow: 0 3px 0 #2a1606; }
@keyframes evof { 0% { opacity: 0; transform: scale(.6); } 15% { opacity: 1; transform: scale(1.08); } 30% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.mask { font-size: 15px; line-height: 1.35; padding: 0 4px; }
.mask p { margin: 8px 0; }
.mbtns { display: flex; gap: 8px; margin-top: 10px; }
.mbtns .big { flex: 2; margin: 0; }
.mbtns .ghost { flex: 1; }

/* Advertise button on the title screen (Kevin, Oct 27: "very important") */
#title .sec2 > #advCard { height: auto !important; min-height: 56px; justify-content: flex-start; gap: 10px; padding: 8px 12px; background: linear-gradient(180deg, #ffd166, #e0952a) !important; border-color: #5a3a0a !important; box-shadow: inset 2px 2px 0 #fff3c4, inset -2px -2px 0 #a8641a, 0 4px 0 rgba(0,0,0,.4) !important; color: #2a1606 !important; animation: advwig 4s ease-in-out infinite; }
#title .sec2 > #advCard i { font-size: 26px; }
#title .sec2 > #advCard span { flex: 1; }
#title .sec2 > #advCard b { color: #2a1606 !important; font-size: 15px; letter-spacing: .5px; }
#title .sec2 > #advCard small { display: block !important; color: #4a2a08 !important; font-size: 12px; font-weight: 600; }
#title .sec2 > #advCard em { font-style: normal; font-size: 14px; color: #5a3a0a; }
@keyframes advwig { 0%, 88%, 100% { transform: none; } 91% { transform: rotate(-1.5deg) scale(1.02); } 94% { transform: rotate(1.5deg) scale(1.02); } 97% { transform: rotate(-.8deg); } }
