/* Pixyl – tamna tema, ljubičasti neon, srebrni natpisi (stil Pixyl banera) */
:root {
  --bg: #0b0714;
  --bg2: #120b20;
  --card: #170f29;
  --card2: #1e1434;
  --line: #2c1f4a;
  --text: #ece8f6;
  --muted: #a69cbf;
  --accent: #a855f7;
  --accent2: #d946ef;
  --accent3: #7c3aed;
  --good: #4ade80;
  --bad: #ff4d6d;
  --warn: #fbbf24;
  --radius: 14px;
  --glow: 0 0 24px rgba(168, 85, 247, .35);
  --head: "Oxanium", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(1100px 500px at 15% -10%, rgba(124, 58, 237, .28), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(217, 70, 239, .18), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.55 var(--body);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }
h1, h2, h3 { font-family: var(--head); letter-spacing: .02em; margin: 0 0 .4em; line-height: 1.15; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; padding: 28px 0 56px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------- navigacija ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11, 7, 20, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 8px rgba(168, 85, 247, .6)); }
.brand b { font: 800 22px/1 var(--head); letter-spacing: .08em; }
.chrome {
  background: linear-gradient(180deg, #fff 0%, #dcdde8 45%, #8f91a6 55%, #f4f4fa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--muted); padding: 8px 11px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: var(--text); background: var(--card2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang a { padding: 6px 9px; font: 700 12px var(--head); color: var(--muted); }
.lang a.on { background: var(--accent3); color: #fff; }
.user { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.user img { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 7px 10px; font-size: 18px; }

/* ---------- dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  font: 700 14px var(--head); letter-spacing: .04em; cursor: pointer; text-transform: uppercase;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent2), var(--accent3)); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { color: #fff; box-shadow: 0 0 34px rgba(217, 70, 239, .55); }
.btn-ghost { background: var(--card2); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }
.btn-steam { background: #171a21; border-color: #2a475e; color: #c7d5e0; text-transform: none; font-family: var(--body); }
.btn-steam:hover { color: #fff; border-color: #66c0f4; }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }

/* ---------- kartice ---------- */
.card { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h2 { font-size: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.mt { margin-top: 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(11, 7, 20, .92) 0%, rgba(11, 7, 20, .6) 55%, rgba(11, 7, 20, .2) 100%),
    var(--hero-img, radial-gradient(700px 400px at 80% 40%, rgba(168, 85, 247, .45), transparent 70%)),
    linear-gradient(135deg, #1b0f33, #0d0818);
  background-size: cover; background-position: center right;
  padding: 48px 40px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.hero.has-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center; }
.hero-art img { display: block; width: 100%; border-radius: 16px; border: 1px solid var(--accent); box-shadow: 0 0 40px rgba(168, 85, 247, .45); }
.hero.has-art .features { grid-template-columns: repeat(3, 1fr); }
.hero-logo { display: flex; align-items: center; gap: 18px; }
.hero-logo img { width: 92px; height: 92px; filter: drop-shadow(0 0 18px rgba(217, 70, 239, .6)); }
.hero h1 { font-size: 64px; font-weight: 800; letter-spacing: .06em; margin: 0; }
.hero .sub {
  display: inline-block; margin-top: 6px; padding: 4px 16px; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent3), var(--accent2)); font: 800 15px var(--head); letter-spacing: .3em; color: #fff;
}
.hero .tag { margin: 18px 0 6px; font: 600 14px var(--head); letter-spacing: .35em; text-transform: uppercase; color: var(--muted); }
.hero .slogan { font: 600 15px var(--head); letter-spacing: .12em; color: #d9c6ff; margin-bottom: 22px; }
.connect {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(23, 15, 41, .85); border: 1px solid var(--accent); border-radius: 14px; padding: 10px 12px 10px 18px; box-shadow: var(--glow);
}
.connect .addr { font: 800 22px var(--head); letter-spacing: .04em; }
.connect .lbl { font: 700 11px var(--head); letter-spacing: .3em; color: var(--muted); display: block; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 26px; max-width: 760px; }
.feature { text-align: center; padding: 10px 6px; border-radius: 12px; background: rgba(23, 15, 41, .7); border: 1px solid var(--line); }
.feature .ico { font-size: 22px; filter: drop-shadow(0 0 6px rgba(217, 70, 239, .7)); }
.feature b { display: block; font: 800 14px var(--head); margin-top: 2px; }
.feature span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- živ status ---------- */
.live-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.dot.on { background: var(--good); box-shadow: 0 0 10px var(--good); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 700 11px var(--head); letter-spacing: .08em; background: var(--card2); border: 1px solid var(--line); }
.pill.good { color: var(--good); border-color: rgba(74, 222, 128, .4); }
.pill.bad { color: var(--bad); border-color: rgba(255, 77, 109, .4); }
.pill.warn { color: var(--warn); border-color: rgba(251, 191, 36, .4); }
.pill.accent { color: #e9d5ff; border-color: var(--accent); background: rgba(168, 85, 247, .15); }
.big-num { font: 800 34px var(--head); }
.bar { height: 8px; border-radius: 99px; background: var(--card2); overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent3), var(--accent2)); box-shadow: var(--glow); }

/* ---------- statistika ---------- */
.stat { text-align: center; padding: 18px 10px; }
.stat .big-num { display: block; background: linear-gradient(180deg, #fff, #c9a7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- tabele ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font: 700 12px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid rgba(44, 31, 74, .6); vertical-align: middle; }
tr:hover td { background: rgba(168, 85, 247, .05); }
td.num, th.num { text-align: right; white-space: nowrap; }
.pos { font: 800 15px var(--head); color: var(--muted); width: 44px; }
.pos.p1 { color: #ffd54a; } .pos.p2 { color: #d6dae6; } .pos.p3 { color: #e09a5c; }
.who { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; min-width: 0; }
.who img { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); flex: none; background: var(--card2); }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.who:hover { color: var(--accent2); }

/* ---------- rank znak ---------- */
.rank {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 8px;
  background: rgba(255, 255, 255, .04); border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent);
  font: 700 12px var(--head); color: var(--rc); white-space: nowrap;
}
.rank i {
  font-style: normal; display: inline-grid; place-items: center; min-width: 34px; height: 20px; padding: 0 5px; border-radius: 5px;
  background: color-mix(in srgb, var(--rc) 22%, #0b0714); color: #fff; font-size: 11px; letter-spacing: .04em;
  box-shadow: 0 0 10px color-mix(in srgb, var(--rc) 50%, transparent);
}
.rank.big { font-size: 16px; padding: 5px 12px 5px 6px; }
.rank.big i { height: 28px; min-width: 50px; font-size: 14px; }

/* ---------- podijum ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.podium a { display: block; text-align: center; padding: 16px 10px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); color: var(--text); }
.podium a:hover { border-color: var(--accent); }
.podium img { width: 64px; height: 64px; border-radius: 14px; border: 2px solid var(--line); }
.podium .p1 img { border-color: #ffd54a; box-shadow: 0 0 18px rgba(255, 213, 74, .45); }
.podium .medal { font-size: 22px; display: block; }
.podium b { display: block; margin: 6px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- lista kazni ---------- */
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(44, 31, 74, .6); }
.feed li:last-child { border-bottom: 0; }
.feed .what { flex: 1; min-width: 0; }
.feed .what b { color: var(--text); }
.feed .why { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- tabovi i pretraga ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); font-weight: 700; }
.tabs a.on { color: #fff; border-color: var(--accent); background: rgba(168, 85, 247, .18); }
.search { display: flex; gap: 8px; }
.search input {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 10px; }

/* ---------- profil ---------- */
.profile-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.profile-head > img { width: 112px; height: 112px; border-radius: 20px; border: 2px solid var(--accent); box-shadow: var(--glow); }
.profile-head h1 { font-size: 34px; margin-bottom: 8px; word-break: break-word; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.kv div { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kv b { display: block; font: 800 22px var(--head); }
.kv span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- VIP ---------- */
.vip { position: relative; display: flex; flex-direction: column; }
.vip h2 { font-size: 24px; }
.vip .price { font: 800 40px var(--head); margin: 6px 0 2px; }
.vip .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.vip ul { list-style: none; padding: 0; margin: 16px 0 20px; flex: 1; }
.vip li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px dashed rgba(44, 31, 74, .8); }
.vip li::before { content: "✔"; position: absolute; left: 2px; color: var(--accent2); }
.vip.hot { border-color: var(--accent); box-shadow: var(--glow); }
.vip .ribbon { position: absolute; top: -12px; right: 16px; }
.vip.classic h2 { color: #cfd6e4; } .vip.medium h2 { color: #c08bff; } .vip.high h2 { color: #f5c542; }

/* ---------- sezona ---------- */
.season { border-color: var(--accent); box-shadow: var(--glow); background: linear-gradient(135deg, rgba(124, 58, 237, .22), var(--bg2) 60%); }
.season-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.season-kicker { font: 800 22px var(--head); letter-spacing: .06em; margin-bottom: 8px; }
.countdown { display: flex; gap: 8px; margin-bottom: 6px; }
.countdown div { min-width: 64px; text-align: center; padding: 8px 6px; border-radius: 12px; background: rgba(11, 7, 20, .7); border: 1px solid var(--line); }
.countdown b { display: block; font: 800 28px/1 var(--head); background: linear-gradient(180deg, #fff, #d9b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.prizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.prize { text-align: center; padding: 14px 8px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.prize .medal { font-size: 28px; line-height: 1; }
.prize.p1 { border-color: #ffd54a; box-shadow: 0 0 18px rgba(255, 213, 74, .25); }
.prize.p2 { border-color: #d6dae6; } .prize.p3 { border-color: #e09a5c; }
.prize-tag { display: inline-block; margin-left: 6px; font-size: 11px; vertical-align: middle; }
.hof h3 { margin-top: 14px; }

/* ---------- skin studio ---------- */
.studio { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.weapons { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 12px; }
.weapons h4 { margin: 12px 4px 6px; font: 700 11px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.weapons h4:first-child { margin-top: 0; }
.weapons a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; color: var(--text); font-weight: 600; font-size: 14px; }
.weapons a:hover { background: var(--card2); color: var(--text); }
.weapons a.on { background: rgba(168, 85, 247, .2); border: 1px solid var(--accent); }
.weapons a small { color: var(--accent2); font-weight: 600; font-size: 11px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.skin { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font: 600 13px var(--body); text-align: center; width: 100%; }
.skin:hover { border-color: var(--accent); transform: translateY(-2px); transition: transform .12s; }
.skin img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.skin .noimg { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--muted); font-size: 32px; }
.skin.on { border-color: var(--accent2); box-shadow: var(--glow); background: linear-gradient(180deg, rgba(217, 70, 239, .18), var(--card)); }
.skin.on::after { content: "✔"; position: absolute; top: 8px; right: 10px; color: var(--accent2); font-weight: 800; }
.skin-form { margin: 0; }
.studio-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.studio-head img { height: 54px; }
.ok-msg { padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .08); color: #bdf5d0; margin-bottom: 14px; }
.skin-search { max-width: 280px; }

/* ---------- pravila ---------- */
.rules { counter-reset: rule; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rules li { counter-increment: rule; display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.rules li::before {
  content: counter(rule); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent2), var(--accent3)); font: 800 15px var(--head); color: #fff; box-shadow: var(--glow);
}

/* ---------- naslov stranice ---------- */
.page-title { margin-bottom: 22px; }
.page-title h1 { font-size: 38px; }
.page-title h1 .chrome { font-weight: 800; }

/* ---------- podnožje ---------- */
footer { border-top: 1px solid var(--line); background: rgba(11, 7, 20, .7); padding: 26px 0; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
footer .brand img { width: 28px; height: 28px; }
footer .brand b { font-size: 16px; }

.alert { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 77, 109, .4); background: rgba(255, 77, 109, .08); color: #ffc2cd; margin-bottom: 16px; }

/* ---------- telefon ---------- */
@media (max-width: 960px) {
  .hero.has-art { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3, .g2 { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 46px; }
  .prizes { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1180px) {
  .nav-right .user span, .nav-right .btn-steam span { display: none; }
}
@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; margin: 0; }
  .nav.open .nav-links { display: flex; }
}
@media (max-width: 760px) {
  .hero { padding: 30px 18px; }
  .hero-logo img { width: 64px; height: 64px; }
  .hero h1 { font-size: 38px; }
  .connect .addr { font-size: 18px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .podium { grid-template-columns: 1fr; }
  .prizes { grid-template-columns: repeat(2, 1fr); }
  .countdown div { min-width: 0; flex: 1; }
  .countdown b { font-size: 22px; }
  .studio { grid-template-columns: 1fr; }
  .weapons { position: static; max-height: 260px; }
  .skins { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none; }
  .page-title h1 { font-size: 30px; }
}
