/* MEMEPETS — extra styles on top of the shared style.css */
:root { --bg: #0b1a1c; --bg2: #11262a; --panel: rgba(12, 30, 34, 0.92); --panel2: #173236; --line: #24474c; --gold3: #3d5a20; }
#landing { background: linear-gradient(180deg, rgba(11,26,28,.1) 0%, rgba(11,26,28,.55) 55vh, var(--bg) 100vh); }
.logo-t { font-family: 'Press Start 2P', monospace; font-size: clamp(34px, 6.4vw, 78px); letter-spacing: 0; color: #fff4d6; text-shadow: 0 5px 0 #2a6a3a, 0 10px 40px rgba(0,0,0,.6); margin: 22px 0 12px; }
.logo-t span { color: var(--green); }
.brand span b { color: var(--green); }
.brand img { border-radius: 8px; }
.banner-img, .banner-crest, .loading img, .foot-crest { image-rendering: auto !important; }
.banner { margin-top: 34px; }
.earn4 { grid-template-columns: repeat(2, 1fr); }
.dot { background: var(--green); }

/* starter + tamer pickers */
.starters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.starter { background: var(--bg2); border: 2px solid var(--line); border-radius: 12px; padding: 6px 4px 8px; display: flex; flex-direction: column; align-items: center; transition: transform .15s; }
.starter:hover { transform: translateY(-2px); }
.starter.on { border-color: var(--ec); background: linear-gradient(180deg, color-mix(in srgb, var(--ec) 22%, transparent), var(--bg2)); }
.starter img { width: 76px; height: 76px; }
.starter b { font: 700 13px var(--serif); }
.starter small { font-size: 11px; color: var(--muted); }
.cls-skills em { font-style: normal; color: var(--muted); font-size: 10px; }
.faces.six { grid-template-columns: repeat(6, 1fr); gap: 6px; }
.faces.six .face { padding: 4px 2px 2px; }
.faces.six .face small { font-size: 8px; }
.outfits { display: flex; gap: 6px; margin-top: 8px; }
.outfit { width: 30px; height: 22px; border-radius: 6px; border: 2px solid rgba(255,255,255,.15); }
.outfit.on { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }
.mychar img.mc-pet { width: 72px; height: 72px; border-radius: 12px; background: var(--bg); border: 2px solid var(--gold2); }

/* landing sections */
.band4 { grid-template-columns: repeat(4, 1fr); }
.board img, .feed img { width: 26px; height: 26px; flex: none; }
.wanted-band { margin: 6px 0 26px; }
.wanted-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.wanted-card { position: relative; background: #e8d4a8; color: #3a2410; border: 3px solid #8a6a42; border-radius: 10px; padding: 12px 10px 10px; text-align: center; box-shadow: 0 6px 0 #5a3e24; }
.wanted-card img { width: 92px; height: 92px; display: block; margin: 6px auto 2px; }
.wanted-card .wp { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); background: #7a1f16; color: #fff; font: 900 11px var(--sans); letter-spacing: 2px; padding: 2px 10px; border-radius: 6px; }
.wanted-card b { display: block; font: 700 16px var(--serif); }
.wanted-card small { color: #6a4a2a; font-weight: 700; }
.wanted-card.done { filter: grayscale(.7); opacity: .8; }
.wanted-card.done .wp { background: #2a7a3a; }
.dex-sec { margin: 0 0 30px; }
.dex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.dex-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--ec); border-radius: 14px; padding: 8px 10px 10px; text-align: center; }
.dex-card img { width: 96px; height: 96px; display: block; margin: 0 auto; }
.dex-card .dn { position: absolute; left: 8px; top: 6px; font: 900 11px var(--sans); color: var(--muted); }
.dex-card b { display: block; font: 700 15px var(--serif); }
.dex-card small { color: var(--ec); font-weight: 800; font-size: 12px; }
.dex-card p { margin: 4px 0; font-size: 12px; color: #c3cbdf; min-height: 34px; }
.dex-card em { font-style: normal; font-size: 11px; color: var(--muted); }

/* HUD: tamer frame + party */
.pframe { width: 300px; align-items: flex-start; }
.pw b { color: var(--gold); }
.party { display: flex; gap: 6px; }
.pslot { position: relative; width: 62px; height: 62px; border-radius: 12px; border: 2px solid var(--line); background: radial-gradient(circle at 50% 40%, #24474c, #0b1a1c); padding: 0; overflow: hidden; }
.pslot img { width: 100%; height: 100%; display: block; }
.pslot.on { border-color: var(--gold); box-shadow: 0 0 12px rgba(255,207,90,.5); }
.pslot.ko img { filter: grayscale(1) brightness(.5); }
.pslot .pl { position: absolute; left: 2px; top: 1px; background: var(--gold); color: #2a1a02; font: 900 10px var(--sans); border-radius: 5px; padding: 0 4px; }
.pslot .pe { position: absolute; right: 2px; top: 0; font-size: 11px; }
.pslot .ph { position: absolute; left: 3px; right: 3px; bottom: 3px; height: 6px; background: rgba(0,0,0,.7); border-radius: 3px; overflow: hidden; }
.pslot .ph i { display: block; height: 100%; width: 100%; background: #3fd37a; transition: width .15s; }
.tf-catch { margin-top: 5px; font: 800 12px var(--sans); }
#tf-el { font-size: 13px; }
.quest { top: 104px; }
.q-wanted { display: flex; align-items: center; gap: 4px; margin-top: 8px; cursor: pointer; pointer-events: auto; }
.q-wanted span { font: 900 9px var(--sans); letter-spacing: 1px; color: #ff8a8a; margin-right: 2px; }
.q-wanted img { width: 30px; height: 30px; border-radius: 6px; background: #e8d4a8; }
.q-wanted img.done { filter: grayscale(1); opacity: .5; }
.purse .bags { display: flex; gap: 6px; color: var(--text); font-size: 12px; }
.purse .bags i { font-style: normal; opacity: .6; }
.purse .bags i.on { opacity: 1; color: var(--gold); }
.sk.el-pump { border-color: #ff6a3d; } .sk.el-hopium { border-color: #5be38a; } .sk.el-liq { border-color: #4cc9ff; } .sk.el-gold { border-color: #ffcf5a; }
.sk.bag { border-color: #e8dcc0; }
.sk.bag .ic { font-size: 26px; }
.sk.bag .sw { position: absolute; right: 2px; top: 0; font: 900 12px var(--sans); color: var(--muted); padding: 0 3px; }
.sk.bag.ready { box-shadow: 0 0 18px rgba(255,207,90,.8); border-color: var(--gold); animation: pulse 0.9s infinite; }
.sk.bag.empty { filter: grayscale(1); opacity: .6; }
.castbar { position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%); width: 240px; height: 20px; background: rgba(0,0,0,.65); border: 1px solid #7fe7ff; border-radius: 8px; overflow: hidden; }
.castbar i { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, #2f9ad8, #7fe7ff); }
.castbar span { position: relative; display: block; text-align: center; font: 900 12px/20px var(--sans); text-shadow: 0 1px 2px #000; }
.lbl3d .new, .lbl3d .want { display: inline-block; font: 900 9px var(--sans); letter-spacing: 1px; padding: 0 5px; border-radius: 4px; margin: 0 2px 2px; }
.lbl3d .new { background: var(--gold); color: #2a1a02; text-shadow: none; }
.lbl3d .want { background: #7a1f16; color: #fff; }
.lbl3d.mob.golden .nm { color: #fff36a; }
.lbl3d.mob.boss .nm { color: var(--gold); }
.lbl3d.pet .nm { color: #bfe6ff; font-size: 11px; }
.lbl3d.pet.mine .nm { color: var(--green); }
.lbl3d.pet .hb i { background: #3fd37a; }
.bigmsg .big-pet { display: block; width: 110px; height: 110px; margin: 0 auto -6px; }
.bigmsg.green { color: var(--green); }
.dead h2 { font-size: 20px; }
.dead-card { border-color: var(--gold2); }
.dead { background: radial-gradient(circle, rgba(0,20,30,.35), rgba(0,0,0,.6)); }

/* panels */
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs button { flex: 1; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; font-weight: 800; }
.tabs button.on { border-color: var(--gold); color: var(--gold); }
.pcard { display: flex; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-left: 4px solid var(--ec); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.pcard.on { box-shadow: 0 0 0 1px var(--gold); }
.pcard.gold { background: linear-gradient(90deg, rgba(255,207,90,.15), var(--bg2)); }
.pcard.pick { box-shadow: 0 0 0 2px var(--gold); }
.pcard img { width: 84px; height: 84px; flex: none; }
.pc-r { flex: 1; min-width: 0; }
.pc-n { display: flex; align-items: center; gap: 6px; }
.pc-n b { font: 700 16px var(--serif); }
.stars { color: var(--gold); font-size: 12px; letter-spacing: -1px; }
.stars .st0 { color: #33484c; }
.pc-s { font-size: 12px; color: #c3cbdf; margin: 2px 0; }
.pc-m { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.pc-m span { font-size: 11px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.pc-m span.lock { opacity: .45; }
.pc-b { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pc-b button { border: 1px solid var(--gold2); background: rgba(255,207,90,.12); color: var(--gold); border-radius: 8px; padding: 4px 10px; font: 900 12px var(--sans); }
.pc-b button.rel { border-color: #7a3a3a; background: rgba(255,93,108,.1); color: #ff9aa5; }
.tagon { font: 900 11px var(--sans); color: #2a1a02; background: var(--green); border-radius: 6px; padding: 3px 8px; }
.swapwith { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 8px 0; background: var(--bg2); border: 1px solid var(--gold2); border-radius: 10px; padding: 4px 10px 4px 4px; font-weight: 800; }
.swapwith img { width: 36px; height: 36px; }
.dex-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.dm { background: var(--bg2); border: 1px solid var(--line); border-top: 3px solid var(--ec); border-radius: 10px; padding: 6px; text-align: center; }
.dm img { width: 72px; height: 72px; display: block; margin: 0 auto; }
.dm b { display: block; font: 700 13px var(--serif); }
.dm small { font-size: 10px; color: var(--muted); }
.dm.no img { filter: brightness(0) opacity(.55); }
.dm.no { border-top-color: var(--line); }
.mart { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.mrow { display: flex; align-items: center; gap: 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.mrow i { font-style: normal; font-size: 26px; }
.mrow div { flex: 1; min-width: 0; }
.mrow b { display: block; }
.mrow small { color: var(--muted); font-size: 12px; }
.mrow button { border: 1px solid var(--gold2); background: rgba(255,207,90,.12); color: var(--gold); border-radius: 8px; padding: 4px 10px; font: 900 13px var(--sans); }
.mrow button small { display: block; color: var(--text); font-size: 10px; }
.mrow button:disabled { opacity: .4; cursor: not-allowed; }
.prof-pet { display: flex; gap: 12px; align-items: center; }
.prof-pet img { width: 96px; height: 96px; flex: none; }
.modal-card { border-color: rgba(91,227,138,.4); }

@media (max-width: 1100px) { .band4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .band4, .wanted-row { grid-template-columns: 1fr; } .wanted-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .wanted-row { grid-template-columns: 1fr; } .faces.six { grid-template-columns: repeat(3, 1fr); } .earn4 { grid-template-columns: 1fr; } .pcard img { width: 64px; height: 64px; } }
@media (max-width: 760px), (max-height: 520px) {
  .pframe { width: 220px; }
  .pslot { width: 44px; height: 44px; }
  .quest { top: 74px; }
  .q-wanted img { width: 22px; height: 22px; }
  .castbar { bottom: 200px; }
  .side-btns { top: 330px; }
}
