/* NIK TA MER — styles */
:root {
  --bg: #0b2140;
  --bg2: #0f2d55;
  --panel: rgba(9, 18, 40, 0.86);
  --panel-b: #2b4a7a;
  --ink: #f8fafc;
  --muted: #9fb3d1;
  --yellow: #facc15;
  --orange: #f97316;
  --pink: #f472b6;
  --blue: #3b82f6;
  --red: #ef4444;
  --green: #22c55e;
  --t0: #3b82f6;
  --t1: #f97316;
  --title: "Luckiest Guy", "Bangers", Impact, "Arial Black", sans-serif;
  --ui: "Fredoka", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--ui); overflow: hidden; -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior: none; }
button { font-family: inherit; cursor: pointer; }
kbd { font-family: var(--ui); }
.hidden { display: none !important; }
.small { font-size: 12px; color: var(--muted); }

#game { position: fixed; inset: 0; display: block; touch-action: none; }

/* ============================== MENU ============================== */
#menu {
  position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; z-index: 30;
  background: radial-gradient(ellipse at 50% -10%, #1d4f8f 0%, #0f2d55 45%, #081a33 100%);
  padding: 18px 16px 40px;
}
#menu .waves { position: fixed; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none; z-index: 0; }
#menu .waves div { position: absolute; left: -50%; width: 200%; height: 100%; bottom: 0; opacity: .35;
  background: repeating-radial-gradient(circle at 50% 120%, transparent 0 38px, rgba(56,189,248,.55) 39px 44px, transparent 45px 80px);
  animation: wave 9s linear infinite; }
#menu .waves div:nth-child(2) { animation-duration: 13s; opacity: .22; bottom: 30px; animation-direction: reverse; }
#menu .waves div:nth-child(3) { animation-duration: 17s; opacity: .15; bottom: 60px; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(25%); } }
#menu > * { position: relative; z-index: 1; }
#menu header { text-align: center; margin: 4px 0 18px; }
#title { font-family: var(--title); font-weight: 400; font-size: clamp(54px, 11vw, 132px); line-height: .95; margin: 0; letter-spacing: 2px;
  color: var(--yellow); text-shadow: 0 6px 0 #b45309, 0 12px 0 rgba(0,0,0,.35); }
#title span { display: inline-block; animation: bob 2.2s ease-in-out infinite; animation-delay: calc(var(--i) * .09s); }
#title span:nth-child(odd) { color: #fde047; }
#title span:nth-child(3n) { color: #fb923c; }
#title .sp { width: .35em; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.tag { font-size: clamp(15px, 2.2vw, 20px); color: #cfe3ff; margin: 10px 0 0; }
.tag b { color: var(--yellow); }

.menu-grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 18px; max-width: 1180px; margin: 0 auto; }
.card { background: rgba(8, 20, 45, .78); border: 3px solid #2b4a7a; border-radius: 22px; padding: 18px; box-shadow: 0 10px 0 rgba(0,0,0,.25); }
.card h2 { font-family: var(--title); font-weight: 400; color: var(--yellow); margin: 0 0 12px; letter-spacing: 1px; font-size: 26px; }
.card label { display: block; font-weight: 700; margin: 6px 0 6px; color: #cfe3ff; }
.card input { width: 100%; font: 600 18px var(--ui); padding: 12px 14px; border-radius: 14px; border: 3px solid #2b4a7a; background: #061328; color: #fff; outline: none; }
.card input:focus { border-color: var(--yellow); }
#modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 16px; border: 3px solid #2b4a7a; background: #0c2346; color: #fff; transition: transform .1s; }
.mode:hover { transform: translateY(-2px); }
.mode .mi { font-size: 28px; }
.mode .mt { font-family: var(--title); font-size: 19px; letter-spacing: 1px; }
.mode small { color: var(--muted); font-size: 12px; }
.mode .count { font-size: 11px; color: #86efac; min-height: 14px; }
.mode.sel { border-color: var(--yellow); background: linear-gradient(180deg, #1e3a8a, #0c2346); box-shadow: 0 0 0 3px rgba(250,204,21,.25); }
#aramNote { display: none; margin: 10px 0 0; padding: 8px 10px; border-radius: 12px; background: rgba(250,204,21,.12); color: #fde68a; font-size: 14px; }
.big { display: block; width: 100%; margin: 16px 0 12px; font: 400 34px var(--title); letter-spacing: 2px; padding: 14px; border-radius: 18px; border: 0;
  color: #3b1d00; background: linear-gradient(180deg, #fde047, #f59e0b); box-shadow: 0 7px 0 #b45309, 0 12px 20px rgba(0,0,0,.35); transition: transform .08s, box-shadow .08s; }
.big:hover { transform: translateY(-2px) rotate(-1deg); }
.big:active { transform: translateY(5px); box-shadow: 0 2px 0 #b45309; }
.big:disabled { filter: grayscale(.6); }
.private { display: grid; gap: 8px; }
.private button, .join button { padding: 10px 12px; border-radius: 12px; border: 2px solid #2b4a7a; background: #102a52; color: #fff; font-weight: 600; font-size: 15px; }
.private button:hover { border-color: var(--yellow); }
.join { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.join input { text-transform: uppercase; letter-spacing: 4px; text-align: center; font-size: 16px; padding: 9px; }
#netstatus { margin-top: 12px; font-size: 14px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
#netstatus.on b { color: #86efac; }
#netstatus.solo { background: rgba(244,114,182,.12); }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; margin-top: 8px; font-size: 14px; padding: 4px; }

#champGrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.champ { background: #0c2346; border: 3px solid #2b4a7a; border-radius: 16px; padding: 6px; color: #fff; text-align: center; transition: transform .1s; }
.champ canvas { width: 100%; aspect-ratio: 1; border-radius: 12px; display: block; background: #08162e; }
.champ .cname { font-family: var(--title); font-size: 15px; margin-top: 4px; letter-spacing: .5px; line-height: 1.05; }
.champ .crole { font-size: 11px; color: var(--muted); }
.champ:hover { transform: translateY(-3px) rotate(-1deg); }
.champ.sel { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(250,204,21,.3); background: #1e3a8a; }
#menu.aram .champ { opacity: .55; }
#menu.aram .champ.sel { opacity: 1; }
#champDetail { margin-top: 14px; }
.dtop { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; }
.dtop canvas { width: 120px; height: 120px; border-radius: 16px; border: 3px solid var(--yellow); }
.dtop h3 { font-family: var(--title); font-weight: 400; font-size: 30px; margin: 0; color: #fff; letter-spacing: 1px; }
.dtitle { color: var(--yellow); font-weight: 600; }
.drole { color: var(--muted); font-size: 14px; }
.lore { margin: 6px 0 0; font-size: 14px; color: #dbeafe; }
ul.spells { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
ul.spells li { background: rgba(255,255,255,.04); border-radius: 12px; padding: 8px 10px 8px 46px; position: relative; font-size: 14px; }
ul.spells .ico { position: absolute; left: 8px; top: 8px; font-size: 26px; }
ul.spells kbd { background: #1e293b; border: 1px solid #475569; border-radius: 6px; padding: 0 6px; font-weight: 700; color: var(--yellow); }
ul.spells em { color: #fb7185; font-style: normal; font-weight: 700; font-size: 11px; }
ul.spells small { color: #b6c6e3; }
.howto { max-width: 1180px; margin: 18px auto 0; }
.howgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 14px; }
.howgrid div { background: rgba(255,255,255,.04); padding: 8px 10px; border-radius: 10px; }
.howgrid b { color: var(--yellow); }
.howto p { color: #cfe3ff; font-size: 14px; }
footer { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 20px; }
#menuToasts { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); display: grid; gap: 6px; z-index: 40; width: min(520px, calc(100% - 32px)); }

/* ============================== HUD ============================== */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; user-select: none; -webkit-user-select: none; }
#hud button, #hud .slot, #hud #minimap, #hud .spell { pointer-events: auto; }
#topbar { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.score { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 2px solid var(--panel-b); border-radius: 14px; padding: 5px 16px; font-size: 20px; }
.score b { font-family: var(--title); font-weight: 400; font-size: 24px; }
.score .t0 b { color: #60a5fa; } .score .t1 b { color: #fb923c; }
#clock { font-weight: 700; color: #e2e8f0; min-width: 56px; text-align: center; }
.mystats { display: flex; gap: 12px; font-size: 13px; color: #cbd5e1; background: rgba(9,18,40,.6); padding: 2px 10px; border-radius: 10px; }
#roomInfo { position: absolute; top: 10px; left: 64px; font-size: 13px; background: rgba(9,18,40,.6); padding: 4px 10px; border-radius: 10px; pointer-events: auto; }
#roomInfo button { margin-left: 6px; border: 0; border-radius: 8px; background: var(--yellow); color: #3b1d00; font-weight: 700; padding: 2px 8px; }
#sidebtns { position: absolute; top: 8px; left: 8px; display: grid; gap: 6px; }
#sidebtns button { width: 46px; height: 42px; border-radius: 12px; border: 2px solid var(--panel-b); background: var(--panel); font-size: 20px; }
#sidebtns button:hover { border-color: var(--yellow); }
#buffs { position: absolute; top: 90px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.buff { background: rgba(88,28,135,.8); border: 2px solid #c084fc; border-radius: 10px; padding: 3px 10px; font-size: 13px; }
.buff.meduse { background: rgba(157,23,77,.75); border-color: #f472b6; }
#feed { position: absolute; top: 12px; right: 12px; display: grid; gap: 4px; justify-items: end; max-width: 46vw; }
.kf { background: var(--panel); border-radius: 10px; padding: 4px 10px; font-size: 14px; border: 2px solid rgba(255,255,255,.08); transition: opacity 1s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.kf.old { opacity: .35; }
.kf .ally { color: #93c5fd; font-weight: 700; } .kf .enemy { color: #fca5a5; font-weight: 700; } .kf .neutral { color: #e9d5ff; font-weight: 700; }
#toasts { position: absolute; top: 120px; left: 12px; display: grid; gap: 6px; width: min(380px, 70vw); }
.toast { background: rgba(9,18,40,.92); border: 2px solid var(--panel-b); border-left: 6px solid var(--yellow); border-radius: 12px; padding: 8px 12px; font-size: 14px; animation: tin .25s ease-out; transition: opacity .5s, transform .5s; }
.toast.err { border-left-color: var(--red); }
.toast.out { opacity: 0; transform: translateX(-20px); }
@keyframes tin { from { opacity: 0; transform: translateY(-10px); } }

#announce { position: absolute; top: 20%; left: 50%; transform: translate(-50%, -50%); text-align: center; opacity: 0; pointer-events: none; width: 92vw; }
#announce.show { opacity: 1; }
#announce.pop .big { animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
#announce .big { font-family: var(--title); font-size: clamp(36px, 7vw, 86px); color: #fff; letter-spacing: 2px; line-height: 1; margin: 0;
  -webkit-text-stroke: 3px #111827; text-shadow: 0 6px 0 rgba(0,0,0,.45); background: none; box-shadow: none; padding: 0; width: auto; display: block; }
#announce.kill .big { color: var(--yellow); }
#announce.bad .big { color: #fb7185; }
#announce.good .big { color: #86efac; }
#announce.lvl .big { color: #7dd3fc; font-size: clamp(30px, 5vw, 60px); }
#announce .sub { font-size: clamp(14px, 2vw, 20px); margin-top: 8px; color: #fff; text-shadow: 0 2px 4px #000; font-weight: 600; }
#announce:not(.show) { transition: opacity .6s; }
@keyframes pop { 0% { transform: scale(2.6) rotate(-8deg); opacity: 0; } 60% { transform: scale(.92) rotate(2deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }

#respawn { position: absolute; top: 34%; left: 50%; transform: translateX(-50%); text-align: center; background: rgba(20,10,30,.8); border: 3px solid #fb7185; border-radius: 18px; padding: 14px 22px; font-size: 18px; }
.rbig { font-family: var(--title); font-size: 30px; color: #fb7185; letter-spacing: 1px; }
.rsmall { font-size: 13px; color: var(--muted); margin-top: 4px; }
#recallBar { position: absolute; bottom: 168px; left: 50%; transform: translateX(-50%); width: 260px; background: var(--panel); border: 2px solid #60a5fa; border-radius: 12px; padding: 4px 8px; font-size: 13px; text-align: center; }
#recallBar div { height: 6px; background: #60a5fa; border-radius: 4px; margin-top: 4px; width: 0; }

/* panneau du bas */
#panel { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto; gap: 6px 10px; align-items: end;
  background: var(--panel); border: 3px solid var(--panel-b); border-radius: 22px; padding: 8px 12px 10px; pointer-events: auto; }
#hud.team0 #panel { border-color: #2563eb; } #hud.team1 #panel { border-color: #ea580c; }
#portrait { position: relative; width: 88px; height: 88px; grid-row: 1 / 3; }
#portrait canvas { width: 88px; height: 88px; border-radius: 18px; border: 3px solid var(--yellow); display: block; background: #08162e; }
#lvl { position: absolute; bottom: -6px; right: -6px; width: 30px; height: 30px; border-radius: 50%; background: #0f172a; border: 2px solid var(--yellow); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
#passiveIco { position: absolute; top: -6px; left: -6px; width: 28px; height: 28px; border-radius: 50%; background: #0f172a; border: 2px solid #94a3b8; display: grid; place-items: center; font-size: 15px; pointer-events: auto; cursor: help; }
#center { grid-row: 1 / 3; display: grid; gap: 6px; }
#spells { display: flex; gap: 6px; align-items: end; }
.spell { position: relative; width: 58px; height: 58px; border-radius: 14px; border: 3px solid #475569; background: #1e293b; color: #fff; padding: 0; overflow: hidden; transition: transform .06s; touch-action: none; }
.spell.sum { width: 46px; height: 46px; border-radius: 12px; margin-left: 4px; }
.spell.ult { border-color: #a855f7; }
.spell.ready { border-color: var(--yellow); box-shadow: 0 0 10px rgba(250,204,21,.35); }
.spell.ult.ready { border-color: #e879f9; box-shadow: 0 0 14px rgba(232,121,249,.5); }
.spell.locked { filter: grayscale(1) brightness(.5); }
.spell.marked { border-color: #60a5fa; animation: pulse .6s infinite alternate; }
.spell.dead { filter: grayscale(.8) brightness(.6); }
.spell:active { transform: scale(.92); }
.spell .ico { font-size: 30px; line-height: 52px; display: block; }
.spell.sum .ico { font-size: 22px; line-height: 40px; }
.spell .cd { position: absolute; inset: 0; }
.spell .cdt { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 18px; text-shadow: 0 2px 3px #000; }
.spell kbd { position: absolute; bottom: 1px; right: 3px; font-size: 11px; font-weight: 700; color: var(--yellow); text-shadow: 0 1px 2px #000; }
@keyframes pulse { from { box-shadow: 0 0 4px #60a5fa; } to { box-shadow: 0 0 18px #60a5fa; } }
#bars { display: grid; gap: 4px; }
.bar { position: relative; height: 18px; background: #111827; border-radius: 8px; overflow: hidden; border: 2px solid #0b1220; }
.bar.xp { height: 7px; }
#hpfill { height: 100%; background: linear-gradient(180deg, #4ade80, #16a34a); width: 100%; transition: width .15s; }
#xpfill { height: 100%; background: linear-gradient(90deg, #a78bfa, #7c3aed); width: 0; }
#hptext { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; text-shadow: 0 1px 2px #000; }
#right { grid-row: 1 / 3; display: grid; gap: 6px; }
#items { display: grid; grid-template-columns: repeat(3, 38px); gap: 4px; }
.slot { width: 38px; height: 38px; border-radius: 10px; background: #0b1220; border: 2px solid #334155; display: grid; place-items: center; font-size: 22px; }
.slot.full { border-color: #a16207; background: #1c1917; }
#goldrow { display: flex; gap: 4px; align-items: center; }
.goldv { font-weight: 700; color: var(--yellow); min-width: 56px; font-size: 15px; }
#goldrow button { border: 2px solid #475569; background: #1e293b; color: #fff; border-radius: 10px; padding: 3px 6px; font-size: 14px; }
#goldrow button kbd { font-size: 10px; color: var(--yellow); }
#shopBtn.glow { border-color: var(--yellow); box-shadow: 0 0 10px rgba(250,204,21,.6); }
#stats { position: absolute; left: 50%; transform: translateX(-50%); top: -26px; display: flex; gap: 10px; font-size: 12px; background: var(--panel); padding: 2px 10px; border-radius: 10px 10px 0 0; white-space: nowrap; }

#mgold, #mshopBtn { display: none; }
#mmwrap { position: absolute; right: 10px; bottom: 10px; padding: 4px; background: var(--panel); border: 3px solid var(--panel-b); border-radius: 14px; }
#minimap { display: block; border-radius: 8px; cursor: pointer; touch-action: none; }
#emotes { position: absolute; left: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(2, 44px); gap: 6px; }
.emo { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--panel-b); background: var(--panel); font-size: 20px; position: relative; }
.emo kbd { position: absolute; top: 0; left: 3px; font-size: 10px; color: var(--muted); }
.emo:hover { border-color: var(--yellow); }

#tooltip { position: fixed; z-index: 60; max-width: 300px; background: rgba(5,12,28,.97); border: 2px solid var(--yellow); border-radius: 12px; padding: 8px 10px; font-size: 13px; line-height: 1.35; pointer-events: none; opacity: 0; transition: opacity .1s; }
#tooltip.show { opacity: 1; }
#tooltip em { color: #e879f9; font-style: normal; font-size: 11px; }
.tdmg { color: #fca5a5; } .theal { color: #86efac; } .tcd { color: #93c5fd; } .trg { color: #fde68a; } .tgold { color: var(--yellow); }

/* overlays */
.overlay { position: fixed; z-index: 40; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(6,14,32,.97); border: 3px solid var(--yellow); border-radius: 22px; padding: 14px 16px; width: min(760px, calc(100% - 24px)); max-height: calc(100% - 40px); overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.ohead { display: flex; align-items: center; gap: 12px; }
.ohead h2 { font-family: var(--title); font-weight: 400; color: var(--yellow); margin: 0; flex: 1; letter-spacing: 1px; }
.x { border: 0; background: #1e293b; color: #fff; width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
#shopGold { font-weight: 700; color: var(--yellow); font-size: 18px; }
#shopStatus { margin: 6px 0 10px; font-size: 14px; }
#shopList { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.item { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto auto; gap: 0 8px; text-align: left; padding: 8px; border-radius: 14px; border: 2px solid #334155; background: #0f1d38; color: #fff; }
.item:hover { border-color: var(--yellow); }
.item .iico { grid-row: 1 / 4; font-size: 30px; align-self: center; }
.item .iname { font-weight: 700; font-size: 13px; line-height: 1.1; }
.item .icost { color: var(--yellow); font-weight: 700; font-size: 13px; }
.item .ist { color: #9fb3d1; font-size: 11px; line-height: 1.2; }
.item.poor { opacity: .5; }
.item.reco { border-color: #a16207; }
.item.reco .iname::after { content: ' ⭐'; }
#shop.closed .item { filter: grayscale(.5); }
#board { width: min(920px, calc(100% - 24px)); border-color: #60a5fa; pointer-events: none; }
.bteam h3 { margin: 6px 0; font-size: 16px; }
.bteam.t0 h3 { color: #93c5fd; } .bteam.t1 h3 { color: #fdba74; }
.bteam table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.bteam th:nth-child(1) { width: 40px; } .bteam th:nth-child(3) { width: 50px; } .bteam th:nth-child(4) { width: 100px; } .bteam th:nth-child(5) { width: 50px; } .bteam th:nth-child(6) { width: 170px; }
.bteam th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; }
.bteam td { padding: 4px 6px; border-top: 1px solid rgba(255,255,255,.06); }
.bteam tr.me td { background: rgba(250,204,21,.12); }
.bteam tr.deadrow td { opacity: .55; }
.bico { font-size: 22px; width: 34px; }
.bitems { font-size: 18px; letter-spacing: 2px; }
#settingsBody label { display: grid; grid-template-columns: 140px 1fr; align-items: center; margin: 10px 0; }
#settingsBody input[type=range] { width: 100%; accent-color: var(--yellow); }

#end { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; background: radial-gradient(circle, rgba(10,20,50,.75), rgba(0,0,0,.9)); }
#end h1 { font-family: var(--title); font-weight: 400; font-size: clamp(60px, 14vw, 160px); margin: 0; letter-spacing: 3px; -webkit-text-stroke: 4px #111; animation: pop .7s cubic-bezier(.2,1.6,.4,1); }
#end.win h1 { color: var(--yellow); text-shadow: 0 10px 0 #b45309; }
#end.lose h1 { color: #fb7185; text-shadow: 0 10px 0 #7f1d1d; }
#end p { font-size: 20px; margin: 8px 0; }
#endSub { font-family: var(--title); font-size: clamp(22px, 4vw, 40px) !important; letter-spacing: 1px; }
#endTable { margin: 12px auto; border-collapse: collapse; background: rgba(6,14,32,.8); border-radius: 14px; overflow: hidden; font-size: 14px; max-width: 100%; }
#endTable th, #endTable td { padding: 5px 12px; text-align: left; }
#endTable tr.me td { background: rgba(250,204,21,.15); }
#endRank { font-size: 18px; margin: 4px 0; color: #fde68a; }
#endAwards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0; }
.award { background: rgba(6,14,32,.85); border: 2px solid var(--yellow); border-radius: 14px; padding: 6px 12px; font-size: 13px; min-width: 130px; }
.award span { font-size: 26px; display: block; }
.award b { color: var(--yellow); }
#profile { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(250,204,21,.14), rgba(244,114,182,.10)); border: 2px solid rgba(250,204,21,.35); font-size: 14px; }
#profile .rank { font-family: var(--title); font-size: 20px; letter-spacing: .5px; }
#profile .rank b { color: var(--yellow); font-weight: 400; }
#profile .pstats { color: #e2e8f0; }
#profile .pnext { color: var(--muted); font-size: 12px; margin-top: 2px; }
#endMenu { margin-top: 10px; padding: 10px 20px; border-radius: 14px; border: 2px solid #475569; background: #1e293b; color: #fff; font-size: 16px; }

/* ============================== responsive ============================== */
@media (max-width: 980px) {
  .menu-grid { grid-template-columns: 1fr; }
  #champGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  ul.spells { grid-template-columns: 1fr; }
  .howgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px), (max-height: 560px) {
  #panel { padding: 5px 7px 6px; gap: 4px 6px; border-radius: 16px; }
  #portrait, #portrait canvas { width: 56px; height: 56px; }
  .spell { width: 50px; height: 50px; }
  .spell .ico { font-size: 25px; line-height: 44px; }
  .spell.sum { width: 40px; height: 40px; }
  .spell.sum .ico { font-size: 19px; line-height: 34px; }
  #items { grid-template-columns: repeat(3, 28px); }
  .slot { width: 28px; height: 28px; font-size: 16px; border-radius: 8px; }
  #stats { display: none; }
  .goldv { font-size: 13px; min-width: 44px; }
  #mmwrap { bottom: auto; top: 86px; right: 6px; padding: 3px; border-width: 2px; }
  #feed { top: auto; bottom: 104px; right: 6px; font-size: 12px; max-width: 40vw; }
  .kf { font-size: 11px; padding: 2px 8px; }
  #sidebtns { grid-auto-flow: column; gap: 4px; top: 6px; left: 6px; }
  #sidebtns button { width: 38px; height: 34px; font-size: 16px; border-radius: 10px; }
  #mshopBtn, #mgold { display: inline-block; }
  #emotes { top: 48px; bottom: auto; left: 6px; grid-template-columns: 38px; gap: 4px; }
  .emo { width: 38px; height: 38px; font-size: 17px; }
  #toasts { top: 48px; left: 52px; width: min(300px, 55vw); }
  .score { padding: 3px 10px; font-size: 15px; gap: 8px; }
  .score b { font-size: 18px; }
  #topbar { top: 4px; }
  .mystats { font-size: 11px; gap: 8px; }
  #buffs { top: 64px; }
  #respawn { top: 26%; font-size: 14px; padding: 8px 12px; }
  .rbig { font-size: 20px; }
  #recallBar { bottom: 110px; }
  .toast { font-size: 12px; padding: 5px 8px; }
  #roomInfo { display: none; }
  .howgrid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  #champGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .dtop { grid-template-columns: 80px 1fr; }
  .dtop canvas { width: 80px; height: 80px; }
  #center { gap: 3px; }
  .spell { width: 44px; height: 44px; }
  .spell .ico { font-size: 22px; line-height: 38px; }
  .spell.sum { width: 36px; height: 36px; margin-left: 0; }
  #right { display: none; }
  #panel { grid-template-columns: auto auto; }
}
