/* CSNITE — vzhled ve stylu menu CS:GO (Panorama) */
:root {
  --bg: #0c0f13;
  --glass: rgba(14, 17, 22, .82);
  --glass2: rgba(28, 32, 39, .78);
  --panel: #1c2027;
  --panel2: #262b33;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .16);
  --text: #e9edf2;
  --dim: #c4cad3;
  --muted: #8a929e;
  --gold: #e4ae39;
  --st: #cf6a32;          /* barva „Kapitánské edice" (jako StatTrak) */
  --go1: #63a12f; --go2: #457a1d; --go3: #2f5a12;
  --blue: #5ea2d6;
  --pos: #7ad15b;
  --neg: #eb4b4b;
  --tile: 150px;
  --side: 250px;
  --fh: "Barlow Condensed", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 "Barlow Semi Condensed", "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.pos { color: var(--pos); } .neg { color: var(--neg); }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #3a4049; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- pozadí: rozmazaný přístav za soumraku (jako 3D scéna v menu) ---------- */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, #141c26 0%, #22303d 38%, #4a4038 56%, #1a2129 57%, #0f151b 100%); }
.scene .sun { position: absolute; left: 62%; top: 40%; width: 380px; height: 380px; margin: -190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 90, .55), rgba(255, 120, 60, .15) 40%, transparent 70%); filter: blur(10px); }
.scene .sea { position: absolute; left: 0; right: 0; top: 57%; bottom: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px), linear-gradient(180deg, rgba(255,150,80,.12), transparent 40%); }
.scene .ship { position: absolute; left: 14%; top: 31%; width: 260px; height: 230px; background: #070a0d; opacity: .85; filter: blur(2.5px);
  clip-path: polygon(5% 78%, 95% 78%, 86% 100%, 14% 100%, 5% 78%, 22% 78%, 22% 20%, 24% 20%, 24% 30%, 44% 34%, 24% 60%, 24% 78%, 50% 78%, 50% 0, 52% 0, 52% 10%, 80% 16%, 52% 50%, 52% 78%, 72% 78%, 72% 32%, 74% 32%, 74% 40%, 88% 46%, 74% 66%, 74% 78%); }
.scene .vignette { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(0,0,0,.75) 100%),
  linear-gradient(90deg, rgba(0,0,0,.55), transparent 30%, transparent 70%, rgba(0,0,0,.55)); }

/* ---------- horní lišta ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: stretch; gap: 18px;
  height: 64px; padding: 0 0 0 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.92), rgba(6,8,11,.82));
  border-bottom: 1px solid var(--line2);
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
}
.logo { align-self: center; font-family: var(--fh); font-style: italic; font-weight: 800; font-size: 34px; line-height: 1;
  letter-spacing: -.5px; cursor: pointer; user-select: none; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.6); }
.logo .colon { color: var(--gold); margin: 0 1px; }
.logo .nite { color: #f2f2f2; }
.tabs { display: flex; gap: 0; flex: 1; }
.tab { position: relative; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0 18px;
  color: rgba(255,255,255,.55); font-family: var(--fh); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: .8px;
  transition: color .15s, background .15s; }
.tab svg { width: 24px; height: 24px; fill: currentColor; }
.tab:hover { color: #fff; background: rgba(255,255,255,.05); }
.tab.on { color: #fff; background: linear-gradient(0deg, rgba(94,162,214,.22), transparent 70%); }
.tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.pill { font-style: normal; min-width: 20px; padding: 0 5px; background: var(--neg); color: #fff; font-size: 12px; line-height: 18px; text-align: center; border-radius: 2px; font-family: "Barlow Semi Condensed", sans-serif; }
.wallet { display: flex; align-items: stretch; }
.bonus { align-self: center; margin-right: 14px; background: rgba(255,255,255,.07); border: 1px solid var(--line2); border-radius: 2px; padding: 6px 12px;
  font-size: 13px; color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.bonus.ready { color: #fff; background: linear-gradient(180deg, var(--go1), var(--go2)); border-color: var(--go1); }
.bonus.ready:hover { filter: brightness(1.12); }
.balance { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 0 16px; border-left: 1px solid var(--line); white-space: nowrap; }
.balance small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.balance b { font-size: 19px; color: #fff; font-variant-numeric: tabular-nums; font-weight: 700; }
.balance .coin { color: var(--gold); }
.balance.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.08); } }
.profile { display: flex; align-items: center; gap: 10px; padding: 0 16px 0 14px; border-left: 1px solid var(--line); background: rgba(255,255,255,.03); }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, #3a4452, #1d232b); border: 1px solid var(--line2); }
.pinfo { display: flex; flex-direction: column; min-width: 96px; }
.pinfo b { font-size: 14px; line-height: 1.1; }
.pinfo small { color: var(--muted); font-size: 12px; line-height: 1.2; }
.xp { height: 3px; background: rgba(255,255,255,.12); margin-top: 4px; }
.xp i { display: block; height: 100%; width: 0; background: var(--blue); box-shadow: 0 0 6px var(--blue); transition: width .4s; }
.rankbadge { width: 34px; height: 34px; display: grid; place-items: center; font-family: var(--fh); font-weight: 700; font-size: 18px; color: #fff;
  background: linear-gradient(180deg, #4d6f8f, #24384d); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* ---------- rozložení ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); min-height: calc(100vh - 64px); }
main { padding: 26px 32px; min-width: 0; }
.view { display: none; max-width: 1180px; margin: 0 auto; }
.view.on { display: block; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
.sec-head { margin-bottom: 18px; }
.sec-head h1 { font-family: var(--fh); font-weight: 700; font-size: 30px; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.sec-head h1 span { color: var(--muted); font-weight: 500; }
.sec-head p { margin: 2px 0 0; }
h2 { margin: 0; }
.sec { margin: 28px 0 10px; font-family: var(--fh); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); }

/* ---------- postranní panel (jako seznam přátel) ---------- */
.side { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; flex-direction: column;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.8)); border-left: 1px solid var(--line2); backdrop-filter: blur(6px); }
.side-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-family: var(--fh); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--line); }
.side-head small { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 13px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 6px var(--pos); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.feed-track { flex: 1; min-width: 0; overflow: hidden; display: flex; flex-direction: column; mask-image: linear-gradient(180deg, #000 80%, transparent); }
.feed-item { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-bottom: 1px solid rgba(255,255,255,.04); animation: feedIn .45s; }
.feed-item:hover { background: rgba(255,255,255,.04); }
.feed-item.me { background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 25%, transparent), transparent); }
.feed-item .fi { flex: 0 0 auto; width: 46px; height: 36px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(180deg, #353a42, color-mix(in srgb, var(--rc) 35%, #24282e)); border-bottom: 2px solid var(--rc); }
.feed-item .fi img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.feed-item .fi .token-svg { width: 26px; height: 26px; }
.feed-item .ft { min-width: 0; }
.feed-item .ft small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.feed-item .ft small i { font-style: normal; color: var(--pos); }
.feed-item .ft b { display: block; font-weight: 600; font-size: 13px; color: var(--rc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes feedIn { from { opacity: 0; transform: translateX(30px); } }

/* ---------- tlačítka ---------- */
.btn { background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06)); border: 1px solid var(--line2); border-radius: 2px;
  color: var(--dim); padding: 9px 18px; font-family: var(--fh); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; transition: .12s; }
.btn:hover { color: #fff; background: rgba(255,255,255,.18); }
.btn.go { color: #fff; background: linear-gradient(180deg, var(--go1), var(--go2)); border-color: #75b83d; box-shadow: 0 0 0 1px var(--go3), 0 4px 14px rgba(70,130,30,.35);
  text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.btn.go:hover { filter: brightness(1.12); }
.btn.go:active { transform: translateY(1px); }
.btn:disabled { filter: grayscale(.7) brightness(.65); cursor: wait; }
.btn.danger { color: var(--neg); margin-top: 22px; }
select { background: #1a1e24; color: var(--text); border: 1px solid var(--line2); border-radius: 2px; padding: 7px 10px; font: inherit; font-size: 14px; }

/* ---------- obchod s truhlami ---------- */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.case { position: relative; text-align: left; padding: 0; overflow: hidden; border: 1px solid var(--line2); border-radius: 2px;
  background: var(--glass); box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: border-color .15s, transform .15s, box-shadow .15s; }
.case:hover { border-color: color-mix(in srgb, var(--cc) 70%, #fff); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.55), 0 0 0 1px var(--cc); }
.case .case-art { height: 190px; background: radial-gradient(ellipse at 50% 75%, color-mix(in srgb, var(--cc) 55%, transparent), transparent 65%), linear-gradient(180deg, #3d434c, #22262c); }
.case:hover .chest .lid { transform: translateY(-6px) rotate(-4deg); }
.case-body { padding: 12px 14px 14px; border-top: 3px solid var(--cc); }
.case-name { font-family: var(--fh); font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: .5px; }
.case-desc { color: var(--muted); font-size: 14px; min-height: 38px; margin: 2px 0 10px; }
.case-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.case-peek { display: flex; gap: 3px; }
.case-peek img, .h-ic img { width: 100%; height: 100%; object-fit: contain; }
.case-peek span { width: 30px; height: 26px; padding: 1px; display: grid; place-items: center; font-size: 15px; background: #2b3037; border-bottom: 2px solid var(--rc, var(--gold)); }
.case-price { background: linear-gradient(180deg, var(--go1), var(--go2)); color: #fff; font-family: var(--fh); font-weight: 700; font-size: 17px; padding: 5px 14px; border: 1px solid #75b83d; white-space: nowrap; }
.case-tag { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.6); color: var(--dim); font-size: 12px; padding: 2px 8px; text-transform: uppercase; letter-spacing: 1px; border-left: 2px solid var(--cc); }

/* CSS truhla */
.case-art { display: grid; place-items: end center; padding-bottom: 14px; }
.case-art.big { height: 120px; width: 150px; padding-bottom: 4px; flex: 0 0 auto; }
.chest { position: relative; width: 130px; height: 100px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); }
.chest .lid { position: absolute; left: 0; right: 0; top: 0; height: 40px; border-radius: 60px 60px 6px 6px / 40px 40px 6px 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 80%, #fff), var(--cc)); border: 4px solid #3a2a14; transition: transform .25s; transform-origin: 10% 100%; }
.chest .lid::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 14px; margin-left: -7px; background: linear-gradient(180deg, #ffd36b, #b8860b); }
.chest .body { position: absolute; left: 0; right: 0; top: 38px; bottom: 0; border-radius: 6px;
  background: linear-gradient(180deg, var(--cc), color-mix(in srgb, var(--cc) 60%, #000)); border: 4px solid #3a2a14; }
.chest .body::before, .chest .body::after { content: ""; position: absolute; top: 0; bottom: 0; width: 10px; background: linear-gradient(180deg, #ffd36b, #b8860b); }
.chest .body::before { left: 12px; } .chest .body::after { right: 12px; }
.chest .lock { position: absolute; left: 50%; top: 32px; width: 22px; height: 26px; margin-left: -11px; border-radius: 4px; background: linear-gradient(180deg, #ffe28a, #c8901a); border: 2px solid #5a3d00; }
.chest .fan { position: absolute; bottom: 58px; width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); transition: transform .25s; }
.chest .fan.f0 { left: -22px; transform: rotate(-16deg); }
.chest .fan.f1 { left: 23px; bottom: 66px; z-index: 0; }
.chest .fan.f2 { right: -22px; transform: rotate(16deg); }
.case:hover .chest .fan.f0 { transform: rotate(-22deg) translateY(-10px); }
.case:hover .chest .fan.f1 { transform: translateY(-12px); }
.case:hover .chest .fan.f2 { transform: rotate(22deg) translateY(-10px); }
.chest .lid, .chest .body { z-index: 1; } .chest .lock { z-index: 2; }
.case-art.big .chest { transform: scale(.82); transform-origin: 50% 100%; }

/* ---------- okno „Odemknout truhlu" ---------- */
.unlock { background: var(--glass); border: 1px solid var(--line2); box-shadow: 0 20px 60px rgba(0,0,0,.6); backdrop-filter: blur(10px); }
.unlock-head { position: relative; display: flex; align-items: center; gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,255,255,.06), transparent 60%); }
.uh-text small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; }
.uh-text h2 { font-family: var(--fh); font-weight: 700; font-size: 32px; text-transform: uppercase; letter-spacing: .5px; line-height: 1.05; }
.uh-text p { margin: 4px 0 0; font-size: 14px; }
.x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; background: none; border: 0; color: var(--muted); font-size: 18px; }
.x:hover { color: #fff; background: rgba(255,255,255,.08); }

.roller { position: relative; height: 0; overflow: hidden; transition: height .35s ease; background: linear-gradient(180deg, #101317, #1a1e24 50%, #101317);
  box-shadow: inset 0 0 40px rgba(0,0,0,.9); }
.unlock.rolling .roller { height: calc(var(--tile) * .8 + 44px); border-bottom: 1px solid var(--line); }
.strip { position: absolute; left: 0; top: 22px; display: flex; gap: 4px; will-change: transform; }
.marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #f5c542; z-index: 5; box-shadow: 0 0 8px rgba(245,197,66,.9); }
.roller::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(90deg, #0c0f13 0%, transparent 18%, transparent 82%, #0c0f13 100%); }
.contents-wrap { padding: 16px 20px 6px; }
.unlock.rolling .contents-wrap { opacity: .25; pointer-events: none; filter: grayscale(.6); transition: opacity .3s; }
.contains { margin: 0 0 12px; color: var(--dim); font-size: 15px; }
.rare-note { margin: 14px 0 8px; font-size: 16px; color: var(--gold); }
.rare-note b { text-shadow: 0 0 10px rgba(228,174,57,.6); }
.odds { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 10px; font-size: 13px; color: var(--muted); }
.odds span, .rbar span { display: flex; align-items: center; gap: 6px; }
.odds i, .rbar i { width: 10px; height: 10px; background: var(--rc); }
.odds b { color: var(--dim); font-weight: 600; }
.unlock-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); background: rgba(0,0,0,.35); }
.keyinfo { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--dim); }
.key { width: 46px; height: 36px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(180deg, #3d434c, #2a2f36); border-bottom: 2px solid var(--gold); }
.chk { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; cursor: pointer; }
.chk input { accent-color: var(--go1); }
#openBtn { padding: 10px 26px; font-size: 18px; }

/* ---------- dlaždice předmětů ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile), 1fr)); gap: 6px; }
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #24282e; border: 1px solid rgba(255,255,255,.05); }
.tile .art { position: relative; height: calc(var(--tile) * .72); display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 60%, rgba(255,255,255,.08), transparent 70%), linear-gradient(180deg, #454b54 0%, #33383f 100%);
  border-bottom: 3px solid var(--rc); }
.tile .art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(0deg, color-mix(in srgb, var(--rc) 30%, transparent), transparent); pointer-events: none; }
.tile .pic { position: relative; z-index: 1; width: 84%; height: 88%; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(0,0,0,.55)); user-select: none; }
.tile .emo { position: relative; z-index: 1; font-size: 50px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.tile .token-svg { position: relative; z-index: 1; width: 64px; height: 64px; filter: drop-shadow(0 0 12px rgba(228,174,57,.6)); }
.tile .info { padding: 5px 8px 7px; min-height: 42px; }
.tile .ty { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.tile .nm { font-weight: 600; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.tile .ed, .modal-name .ed { color: var(--st); }
.tile:hover { border-color: rgba(255,255,255,.22); }
.tile:hover .art { background: radial-gradient(ellipse at 50% 60%, rgba(255,255,255,.14), transparent 70%), linear-gradient(180deg, #4e555f 0%, #383d45 100%); }
.tile.mystery .art { background: radial-gradient(ellipse at 50% 55%, rgba(255,215,100,.55), transparent 65%), linear-gradient(180deg, #6b5419, #3a2c0c); }
.tile.mystery .q { position: relative; z-index: 1; font-size: 54px; color: #ffd86b; text-shadow: 0 0 18px rgba(255,210,90,.9); animation: shine 2s infinite; }
.tile.mystery .nm { color: var(--gold); }
@keyframes shine { 50% { filter: brightness(1.4); } }
.tint-gold { filter: sepia(1) saturate(4) hue-rotate(-10deg) brightness(1.1) drop-shadow(0 0 8px #e4ae39) !important; }
.r-mythic .pic, .r-mythic .emo { animation: wob 2.4s ease-in-out infinite; }
@keyframes wob { 50% { transform: scale(1.06) rotate(-4deg); } }

/* v pásu: jen obrázek s barevným spodkem, jako v CS:GO */
.strip .tile { flex: 0 0 var(--tile); width: var(--tile); border: 0; background: none; }
.strip .tile .art { height: calc(var(--tile) * .8); border-bottom-width: 4px;
  background: linear-gradient(180deg, #3e434b 0%, #3a3f47 45%, color-mix(in srgb, var(--rc) 55%, #2c3036) 100%); }
.strip .tile .art::after { display: none; }
.strip .tile .info { display: none; }
.strip .tile.mystery .art { background: radial-gradient(ellipse at 50% 55%, rgba(255,215,100,.6), transparent 65%), linear-gradient(180deg, #7a6020, #4a3810); }
.strip .tile.winner .art { box-shadow: inset 0 0 0 2px var(--rc), inset 0 0 30px color-mix(in srgb, var(--rc) 60%, transparent); }

/* ---------- inventář ---------- */
.inv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--line2); }
.subtabs { display: flex; flex-wrap: wrap; }
.subtabs button { background: none; border: 0; padding: 10px 16px; color: var(--muted); font-family: var(--fh); font-weight: 600; font-size: 17px;
  text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs button:hover { color: #fff; }
.subtabs button.on { color: #fff; border-color: var(--blue); }
.inv-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 8px; }
.grid.inv { background: rgba(0,0,0,.35); padding: 8px; border: 1px solid var(--line); min-height: 120px; }
.inv-item { position: relative; }
.inv-item .tile { height: 100%; }
.inv-item .sell { position: absolute; left: 6px; right: 6px; top: calc(var(--tile) * .72 - 34px); z-index: 3; opacity: 0; transition: opacity .15s;
  background: linear-gradient(180deg, var(--go1), var(--go2)); color: #fff; border: 1px solid #75b83d; padding: 4px; font-family: var(--fh); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.inv-item:hover .sell, .inv-item:focus-within .sell { opacity: 1; }
@media (hover: none) { .inv-item .sell { opacity: .95; position: static; width: 100%; margin-top: 2px; } }
.empty { text-align: center; padding: 40px 0; }

/* ---------- statistiky ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.stat { background: var(--glass); border: 1px solid var(--line); border-top: 2px solid var(--blue); padding: 12px 16px; }
.stat.wide { grid-column: 1 / -1; border-top-color: var(--gold); }
.stat small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.stat b { font-family: var(--fh); font-size: 26px; font-weight: 600; }
.rbar { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.rbar b { font-size: 15px; font-family: inherit; }
.history { display: flex; flex-direction: column; gap: 2px; }
.h-row { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 12px; align-items: center; background: var(--glass); padding: 4px 12px 4px 4px; border-left: 3px solid var(--rc); }
.h-row:nth-child(even) { background: var(--glass2); }
.h-ic { font-size: 20px; width: 52px; height: 38px; display: grid; place-items: center; background: linear-gradient(180deg, #3e434b, color-mix(in srgb, var(--rc) 35%, #2a2e34)); }
.h-ic .token-svg { width: 28px; height: 28px; }
.h-nm { color: var(--rc); font-weight: 600; } .h-nm small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.h-cs { color: var(--muted); font-size: 13px; }

/* ---------- výsledek ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); padding: 16px; animation: fadeIn .2s; }
.modal-card { width: min(560px, 100%); background: #15181d; border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0,0,0,.8), 0 0 80px -20px var(--rc);
  animation: pop .4s cubic-bezier(.2, 1.4, .4, 1); overflow: hidden; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.modal-top { padding: 10px 18px; font-family: var(--fh); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: 2px; color: var(--dim);
  background: linear-gradient(90deg, rgba(255,255,255,.08), transparent); border-bottom: 1px solid var(--line); }
.modal-art { height: 250px; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 85%, color-mix(in srgb, var(--rc) 55%, transparent), transparent 60%), radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.08), transparent 60%), linear-gradient(180deg, #2a2f36, #1b1f24); }
.modal-art .pic { width: 220px; height: 220px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.7)); animation: float 2.5s ease-in-out infinite; }
.modal-art .emo { font-size: 120px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.6)); animation: float 2.5s ease-in-out infinite; }
.modal-art .token-svg { width: 160px; height: 160px; animation: spinCoin 2.2s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(255,200,80,.9)); }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes spinCoin { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg) scale(1.05); } }
.modal-bar { height: 4px; background: var(--rc); box-shadow: 0 0 16px var(--rc); }
.modal-info { padding: 14px 20px 4px; }
.modal-name { font-family: var(--fh); font-size: 28px; font-weight: 700; line-height: 1.1; color: #fff; }
.modal-name .ed { font-size: 18px; display: block; }
.modal-rarity { color: var(--rc); font-weight: 600; font-size: 15px; margin-top: 2px; }
.modal-meta { color: var(--muted); font-size: 14px; margin: 2px 0 6px; }
.modal-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 20px 16px; }
.modal-value { margin-right: auto; font-family: var(--fh); font-size: 28px; font-weight: 700; color: var(--gold); }
.modal-card.r-token { border-color: var(--gold); animation: pop .4s cubic-bezier(.2, 1.4, .4, 1), goldPulse 1.2s infinite alternate .4s; }
.modal-card.r-token .modal-rarity { text-shadow: 0 0 12px var(--gold); }
@keyframes goldPulse { to { box-shadow: 0 0 120px 0 var(--gold); } }
body.jackpot::before { content: ""; position: fixed; inset: 0; z-index: 49; pointer-events: none; background: radial-gradient(circle, rgba(255,210,90,.35), transparent 70%); animation: flash .6s 4 alternate; }
@keyframes flash { from { opacity: 0; } }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.toast { position: fixed; right: calc(var(--side) + 20px); top: 80px; transform: translateX(30px); background: rgba(16,19,24,.95); border: 1px solid var(--line2);
  border-left: 3px solid var(--blue); padding: 10px 16px; opacity: 0; transition: .25s; z-index: 70; pointer-events: none; max-width: min(380px, calc(100% - 32px)); box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.toast.on { opacity: 1; transform: none; }
.foot { text-align: center; font-size: 12px; padding: 24px 16px 30px; margin-right: var(--side); }

/* ---------- menší obrazovky ---------- */
@media (max-width: 1100px) {
  .pinfo { display: none; }
  .tab { padding: 0 12px; }
}
@media (max-width: 900px) {
  :root { --side: 0px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: 60px; min-width: 0; order: -1; flex-direction: row; border-left: 0; border-bottom: 1px solid var(--line2); }
  .side-head { border-bottom: 0; border-right: 1px solid var(--line); padding: 0 12px; font-size: 13px; }
  .side-head small { display: none; }
  .feed-track { flex-direction: row; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .feed-item { min-width: 170px; max-width: 200px; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.04); }
  .toast { right: 16px; }
}
@media (max-width: 760px) {
  :root { --tile: 112px; }
  .top { flex-wrap: wrap; height: auto; padding: 8px 0 0 12px; gap: 6px 10px; }
  .logo { font-size: 26px; }
  .tabs { order: 3; flex-basis: 100%; margin-left: -12px; overflow-x: auto; border-top: 1px solid var(--line); }
  .tab { padding: 8px 12px; font-size: 15px; flex: 1; justify-content: center; }
  .tab svg { width: 20px; height: 20px; }
  .wallet { margin-left: auto; }
  .bonus { padding: 5px 8px; font-size: 12px; margin-right: 8px; }
  .balance { padding: 0 10px; }
  .balance small { display: none; }
  .profile { padding: 0 10px; }
  .avatar { width: 32px; height: 32px; font-size: 18px; }
  .rankbadge { width: 28px; height: 28px; font-size: 15px; }
  .side { top: 0; }
  main { padding: 16px; }
  .sec-head h1 { font-size: 24px; }
  .unlock-head { gap: 8px; padding: 10px 12px; }
  .case-art.big { width: 116px; height: 90px; }
  .case-art.big .chest { transform: scale(.6); }
  .uh-text h2 { font-size: 22px; }
  .uh-text p { display: none; }
  .contents-wrap { padding: 12px; }
  .unlock-foot { padding: 12px; gap: 10px; }
  .keyinfo { flex-basis: 100%; }
  #openBtn { flex: 1; }
  .tile .emo { font-size: 38px; }
  .tile .token-svg { width: 48px; height: 48px; }
  .tile.mystery .q { font-size: 42px; }
  .tile .nm { font-size: 13px; }
  .modal-art { height: 200px; }
  .modal-art .pic { width: 170px; height: 170px; }
  .modal-value { flex-basis: 100%; }
  .h-row { grid-template-columns: 44px 1fr auto; }
  .h-ic { width: 44px; }
  .h-cs { display: none; }
  .inv-actions { width: 100%; }
}
