@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Nunito:wght@400;700;900&display=swap");
:root {
  color-scheme: dark;
  --bg: #0d0b26; --fg: #eef0ff; --muted: #a3a6d6; --accent: #3b9cff; --pink: #ff3ea5; --lime: #9dff3b;
  --border: #2b2a6b; --radius: 6px; --font: "Nunito", system-ui, sans-serif; --pix: "Press Start 2P", monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font); color: var(--fg);
  background: var(--bg) radial-gradient(#2b2a6b 1px, transparent 1px) 0 0/22px 22px;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wide { max-width: 78rem; margin: 0 auto; padding: 0 1rem; }
main.wide { padding-bottom: 3rem; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: .8rem; }
.muted { color: var(--muted); }
.input { width: 100%; padding: .6rem; border: 2px solid var(--border); border-radius: var(--radius); background: #15134a; color: var(--fg); font: inherit; }
.field { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; font-size: .9rem; }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 700; }
input[type=range] { accent-color: var(--pink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.top { background: linear-gradient(#3b5998, #2d4373); border-bottom: 3px solid #1b2a4e; position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; flex-wrap: wrap; }
.logo { font-family: var(--pix); font-size: 1rem; text-decoration: none; text-shadow: 3px 3px 0 #000; }
.logo span { color: var(--lime); }
.logo sup { font-family: var(--font); font-size: .6rem; background: var(--pink); padding: 1px 4px; border-radius: 3px; margin-left: 4px; }
.search { flex: 1; display: flex; min-width: 220px; }
.search input { flex: 1; padding: .5rem; border: 2px solid #1b2a4e; border-right: 0; border-radius: 4px 0 0 4px; font: inherit; min-width: 0; }
.search button { background: linear-gradient(#f8f8f8, #d8d8d8); border: 2px solid #1b2a4e; border-radius: 0 4px 4px 0; font-weight: 700; padding: 0 .8rem; cursor: pointer; }
.nav { display: flex; gap: .9rem; align-items: center; font-weight: 700; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; color: var(--lime); }
.cart-btn { background: var(--lime); border: 2px solid #000; border-radius: 20px; padding: .3rem .8rem; font-weight: 900; cursor: pointer; box-shadow: 2px 2px 0 #000; }
.cart-btn span { background: var(--pink); color: #fff; border-radius: 10px; padding: 0 6px; }

.hero { display: grid; gap: 1.5rem; padding: 2.5rem 0 1.5rem; align-items: center; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.4fr 1fr; } }
.msn { display: inline-block; background: linear-gradient(#e8f4ff, #bcdcff); color: #123; padding: .5rem .8rem; border-radius: 8px; border: 1px solid #7aa7d8; font-size: .9rem; animation: pop .6s ease; }
.hero h1 { font-family: var(--pix); font-size: clamp(1.3rem, 3.6vw, 2.3rem); line-height: 1.5; margin: 1rem 0; text-shadow: 4px 4px 0 #000; }
.hero h1 span { color: var(--pink); }
.hero p { font-size: 1.15rem; color: var(--muted); }
.hero-art { position: relative; min-height: 260px; background: linear-gradient(135deg, #6a3bff, #ff3ea5); border: 3px solid #000; border-radius: 12px; box-shadow: 8px 8px 0 #000; display: grid; place-items: center; }
.troll { font-size: 6rem; font-weight: 900; color: #fff; text-shadow: 4px 4px 0 #000; animation: float 3s ease-in-out infinite; }
.troll-ascii { font-size: .85rem; line-height: 1; font-weight: 400; margin: 0; text-shadow: none; font-family: monospace; }
@media (max-width: 600px) { .troll.troll-ascii { font-size: .6rem; } }
.bubble { position: absolute; top: 1rem; right: 1rem; background: #fff; color: #000; font-family: var(--pix); font-size: .8rem; padding: .6rem; border: 2px solid #000; border-radius: 12px; transform: rotate(6deg); }
.views { position: absolute; bottom: .8rem; left: .8rem; font-family: "VT323", monospace; font-size: 1.3rem; background: #000; padding: 0 .5rem; }
.big-btn { display: inline-block; text-align: center; padding: .8rem 1.2rem; background: var(--lime); color: #000; font-weight: 900; text-decoration: none; border: 3px solid #000; border-radius: 8px; box-shadow: 4px 4px 0 #000; cursor: pointer; font: 900 1rem var(--font); transition: transform .15s, box-shadow .15s; }
.big-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.big-btn.alt { background: var(--pink); color: #fff; }
.big-btn.wa { background: #25d366; }

.marquee { overflow: hidden; background: #ffe600; color: #000; font-family: "VT323", monospace; font-size: 1.4rem; border-block: 3px solid #000; margin: 1rem -1rem; }
.marquee div { white-space: nowrap; animation: scroll 22s linear infinite; display: inline-block; padding-left: 100%; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; margin: 1.5rem 0; }
.cat { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .9rem; background: #1a1858; border: 2px solid var(--border); border-radius: 10px; text-decoration: none; font-weight: 900; transition: transform .15s, border-color .15s; }
.cat span { font-size: 2rem; }
.cat:hover { transform: translateY(-4px) rotate(-2deg); border-color: var(--pink); }

.win { background: #ece9d8; color: #111; border: 2px solid #0a246a; border-radius: 8px 8px 4px 4px; margin: 1.5rem 0; box-shadow: 6px 6px 0 rgba(0,0,0,.5); overflow: hidden; }
.win-bar { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(#0a5fd8, #0840a8); color: #fff; padding: .4rem .7rem; font-weight: 900; }
.win-bar i { font-style: normal; letter-spacing: 3px; opacity: .8; }
.win-bar button { background: #e04a2a; color: #fff; border: 1px solid #fff; border-radius: 4px; font-weight: 900; cursor: pointer; width: 28px; height: 26px; }
.win-body { padding: 1rem; }
.win .input { background: #fff; color: #111; border-color: #7f9db9; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.pcard { background: #fff; border: 2px solid #c5c2b2; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.pcard:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 5px 5px 0 var(--pink); }
.pimg { position: relative; aspect-ratio: 1; display: block; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pcard:hover .pimg img { transform: scale(1.06); }
.sticker { position: absolute; top: .5rem; left: .5rem; font-family: var(--pix); font-size: .6rem; padding: .35rem .45rem; border: 2px solid #000; transform: rotate(-8deg); }
.sticker.hot { background: var(--pink); color: #fff; }
.sticker.new { background: #ffe600; color: #000; left: auto; right: .5rem; transform: rotate(8deg); }
.pbody { padding: .7rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.pcat { font-size: .72rem; text-transform: uppercase; color: #3b5998; font-weight: 900; }
.pname { font-weight: 900; text-decoration: none; color: #111; flex: 1; }
.pname:hover { color: #0a5fd8; text-decoration: underline; }
.prices { display: flex; gap: .5rem; align-items: baseline; }
.prices b { font-size: 1.15rem; color: #0a8a3a; }
.prices s { color: #888; font-size: .85rem; }
.prices.big b { font-size: 1.8rem; }
.xp-btn { background: linear-gradient(#fff, #dcd9c8); border: 1px solid #003c74; border-radius: 4px; padding: .45rem; font-weight: 700; cursor: pointer; }
.xp-btn:hover { background: linear-gradient(#fff6d8, #ffd56b); }

.catalog { display: grid; gap: 1.2rem; padding-top: 1rem; }
@media (min-width: 820px) { .catalog { grid-template-columns: 260px 1fr; } .filters { position: sticky; top: 80px; align-self: start; } }
.count { font-family: "VT323", monospace; font-size: 1.4rem; margin: 1.5rem 0 .5rem; }
.back { display: inline-block; margin-top: 1.2rem; font-weight: 700; }
.detail-body { display: grid; gap: 1.5rem; padding: 1rem; }
@media (min-width: 820px) { .detail-body { grid-template-columns: 1fr 1fr; } }
.detail-body img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 3px solid #000; border-radius: 8px; }
.detail-body h1 { margin: 0; font-size: 2rem; }

.overlay { position: fixed; inset: 0; background: rgba(5,4,25,.7); z-index: 50; display: flex; justify-content: flex-end; }
.cart { width: min(420px, 100%); height: 100%; margin: 0; overflow-y: auto; border-radius: 0; }
.cline { display: grid; grid-template-columns: 56px 1fr auto; gap: .6rem; align-items: center; }
.cline img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.cline small { display: block; color: #555; }
.qty { display: flex; gap: .4rem; align-items: center; font-weight: 900; }
.qty button { width: 28px; height: 28px; border: 1px solid #003c74; border-radius: 4px; background: #fff; cursor: pointer; }
.total { font-size: 1.2rem; border-top: 2px dashed #999; padding-top: .7rem; }
.cart .muted { color: #555; }

.foot { background: #070615; border-top: 3px solid var(--border); padding: 1.5rem 0 5rem; font-size: .9rem; color: var(--muted); }
.counter { font-family: "VT323", monospace; font-size: 1.3rem; margin-top: .4rem; color: var(--lime); }
.blink { color: #25d366; animation: blink 1.2s steps(2) infinite; }
.wa-float { position: fixed; right: 1rem; bottom: 1rem; width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.8rem; background: #25d366; border: 3px solid #000; border-radius: 50%; box-shadow: 3px 3px 0 #000; text-decoration: none; z-index: 30; transition: transform .15s; }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: linear-gradient(#e8f4ff, #bcdcff); color: #123; border: 1px solid #7aa7d8; padding: .7rem 1rem; border-radius: 8px; z-index: 60; font-weight: 700; animation: pop .3s; }

.empty { text-align: center; padding: 2rem; color: #555; }
.empty-title { font-weight: 900; }
.loading { padding: 2rem; text-align: center; }
.alert-error { background: #ffd6d6; color: #600; padding: .7rem; border-radius: 6px; }

@keyframes scroll { to { transform: translateX(-100%); } }
@keyframes float { 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
@keyframes blink { 50% { opacity: .3; } }
@media (max-width: 600px) { .nav { width: 100%; justify-content: space-between; } .pgrid { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .troll { font-size: 4rem; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
