@font-face { font-family: 'PS2P'; src: url('assets/fonts/ps2p-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PS2P'; src: url('assets/fonts/ps2p-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #f4ead0;
  --dim: #c8b896;
  --green: #4dff80;
  --red: #ff4a3a;
  --gold: #ffd060;
  --sh: 2px 2px 0 #000;
  --out: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 2px 2px 0 #000;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #070504; color: var(--ink); font-family: 'PS2P', monospace; font-size: 10px; line-height: 1.4; user-select: none; -webkit-user-select: none; touch-action: none; -webkit-font-smoothing: none; }
#view, #view canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.hidden { display: none !important; }

.btn {
  font-family: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
  background: linear-gradient(#7a4520, #4a2410); border: 3px solid #0e0603;
  box-shadow: inset 0 0 0 2px #a8642e, inset 0 -4px 0 2px #3a1c0a, 0 4px 0 #0e0603;
  padding: 12px 20px; text-shadow: var(--sh);
  transition: transform 0.06s, filter 0.1s;
}
.btn:hover:not(:disabled) { filter: brightness(1.2); transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 0 0 2px #a8642e, 0 1px 0 #0e0603; }
.btn.big { font-size: 18px; padding: 16px 28px; background: linear-gradient(#c8441e, #6a1608); box-shadow: inset 0 0 0 2px #ff8a50, inset 0 -4px 0 2px #4a0c04, 0 4px 0 #0e0603; }
.btn.ghost, .btn:disabled { opacity: 0.45; cursor: default; }
.btn b { color: var(--gold); font-weight: normal; }

.screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; z-index: 10; }

#menu { background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 70%); }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; transform: rotate(-3deg); gap: 10px; margin-bottom: 6px; }
.logo .l1 { font-size: clamp(40px, 8vw, 88px); color: var(--ink); text-shadow: 5px 5px 0 #6a1608, 9px 9px 0 #0e0603; }
.logo .l2 { font-size: clamp(30px, 6vw, 66px); color: #ff5a2a; text-shadow: 4px 4px 0 #3a0804, 8px 8px 0 #0e0603; animation: wob 1.6s ease-in-out infinite; }
@keyframes wob { 50% { transform: translateY(-6px) rotate(2deg); } }
.sub { font-size: 10px; opacity: 0.6; letter-spacing: 4px; margin-bottom: 18px; }

#draft { background: linear-gradient(rgba(7,5,4,0.85), rgba(7,5,4,0.45) 40%, rgba(7,5,4,0.92)); justify-content: center; gap: clamp(8px, 1.8vh, 18px); padding: 12px 20px; }
#draft .title { font-size: clamp(16px, 2.6vh, 22px); text-shadow: 3px 3px 0 #0e0603; }
.cards { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.row { display: flex; gap: 16px; align-items: center; }

.card {
  width: 210px; height: 320px; position: relative; cursor: pointer;
  background: #1a100a; border: 3px solid #0e0603;
  box-shadow: inset 0 0 0 4px var(--rc), 0 6px 0 #0e0603, 0 0 24px rgba(0,0,0,0.6);
  display: flex; flex-direction: column; padding: 9px; gap: 6px;
  transition: transform 0.12s, filter 0.15s, opacity 0.2s;
  animation: dealIn 0.35s backwards;
}
@keyframes dealIn { from { transform: translateY(60px) rotate(-8deg) scale(0.6); opacity: 0; } }
.card.rainbow { border-image: linear-gradient(90deg, #ff3030, #ff9a20, #ffe830, #40e060, #30b0ff, #7a50ff, #ff40c0) 1; border-width: 5px; }
.card:hover:not(.used):not(.locked) { transform: translateY(-10px) rotate(-1deg); filter: brightness(1.12); }
.card.used { opacity: 0.25; filter: grayscale(1); cursor: default; }
.card.locked { cursor: default; }
.card .art { flex: 1; min-height: 0; background-size: cover; background-position: center 20%; border: 2px solid #0e0603; position: relative; }
.card .rar { position: absolute; top: 4px; right: 4px; font-size: 8px; padding: 3px 5px; background: var(--rc); color: #fff; text-shadow: 1px 1px 0 #000; border: 2px solid #0e0603; }
.card .cls { position: absolute; top: 4px; left: 4px; font-size: 8px; padding: 3px 5px; background: #0e0603; color: var(--dim); border: 2px solid #3a2414; }
.card .nm { font-size: 10px; text-align: center; color: var(--ink); text-shadow: var(--sh); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 2px; }
.card .st { display: flex; justify-content: center; gap: 14px; font-size: 10px; }
.st .hp { color: #6fe070; } .st .at { color: #ffb040; }
.ico { display: inline-block; width: 1em; height: 1em; background-size: contain; background-repeat: no-repeat; image-rendering: pixelated; vertical-align: -0.1em; margin-right: 0.35em; }
.ico.ih { background-image: var(--ico-hp); }
.ico.ia { background-image: var(--ico-at); }
.card .ab { font-size: 8px; line-height: 1.6; color: var(--dim); text-align: center; min-height: 50px; }
.ab b { display: block; color: var(--gold); font-weight: normal; margin-bottom: 2px; }
.cards.small .card { width: 92px; height: 124px; padding: 4px; gap: 3px; }
.cards.small .card .nm { font-size: 6px; }
.cards.small .card .st, .cards.small .card .ab, .cards.small .card .rar, .cards.small .card .cls { display: none; }
.card.rolling .art { animation: shuffle 0.08s steps(1) infinite; }
@keyframes shuffle { 50% { filter: hue-rotate(90deg) brightness(1.4); } }

#hud { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 14px; z-index: 5; pointer-events: none; gap: 10px; }
.plate { display: flex; gap: 10px; align-items: flex-start; width: min(40vw, 460px); }
.plate.op { flex-direction: row-reverse; text-align: right; }
.plate .ava { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--rc, #888); overflow: hidden; box-shadow: 0 0 0 3px #0e0603, 0 4px 0 3px #0e0603; flex: none; background: #222; }
.plate.me .ava { outline: 3px solid var(--green); outline-offset: 3px; }
.plate.op .ava { outline: 3px solid var(--red); outline-offset: 3px; }
.plate .ava img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.plate .info { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.plate .nm { font-size: 12px; text-shadow: var(--sh); line-height: 1.4; }
.plate .abl { font-size: 8px; color: var(--dim); text-shadow: var(--sh); line-height: 1.6; }
.plate .abl b { color: var(--gold); font-weight: normal; }
.plate .bar { height: 22px; background: #1a0806; border: 3px solid #0e0603; position: relative; overflow: hidden; box-shadow: 0 3px 0 #0e0603; }
.plate .bar .fill, .plate .bar .ghost, .plate .bar .shield { position: absolute; top: 0; bottom: 0; left: 0; }
.plate.op .bar .fill, .plate.op .bar .ghost, .plate.op .bar .shield { left: auto; right: 0; }
.plate .bar .ghost { background: #fff3c0; transition: width 0.5s 0.25s; }
.plate .bar .fill { background: linear-gradient(#7af08a, #2a9a3a); }
.plate.op .bar .fill { background: linear-gradient(#ff8a70, #b02a1a); }
.plate .bar .shield { background: repeating-linear-gradient(45deg, rgba(140,200,255,0.8) 0 5px, rgba(80,140,220,0.8) 5px 10px); }
.plate .bar .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; text-shadow: var(--out); }
.mid { display: flex; align-items: center; gap: 12px; padding-top: 14px; }
.clock { font-size: 20px; min-width: 56px; text-align: center; text-shadow: 3px 3px 0 #000; }
.clock.sudden { color: var(--red); animation: pulse 0.5s infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.hearts { display: flex; gap: 6px; }
.heart { width: 16px; height: 16px; background: #2a1408; border: 3px solid #0e0603; transform: rotate(45deg); }
.heart.on { background: var(--gold); box-shadow: 0 0 8px #ffb030; }

#pops, #labels { position: fixed; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.pop { position: absolute; transform: translate(-50%, -50%); font-size: 16px; text-shadow: var(--out); animation: popUp 0.9s ease-out forwards; white-space: nowrap; }
.pop.crit { font-size: 24px; color: #ffe030; }
.pop.heal { color: #6fe070; }
.pop.proc { color: var(--gold); font-size: 12px; animation-duration: 1.2s; }
.pop.mogged { font-size: 40px; color: #fff; text-shadow: 4px 4px 0 #d8302a, 8px 8px 0 #000; animation: mog 1.3s ease-out forwards; }
.pop.dodge { color: #9fd8ff; font-size: 12px; }
.pop.dmg { color: var(--red); }
.pop.out { color: #fff3a0; }
.pop.crit.out { color: #ffe030; }
.pop.fire { color: #ff9a30; font-size: 10px; }
.pop.poison { color: #9ae040; font-size: 10px; }
.pop.shield { color: #9fd8ff; font-size: 10px; }
.pop.buff { font-size: 12px; color: #fff; }
.pop.buff i { font-style: normal; display: block; font-size: 8px; color: var(--rc, var(--gold)); text-align: center; margin-bottom: 4px; }
@keyframes popUp { 0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; } 15% { transform: translate(-50%, -80%) scale(1.25); opacity: 1; } 100% { transform: translate(-50%, -240%) scale(1); opacity: 0; } }
@keyframes mog { 0% { transform: translate(-50%, -50%) scale(3) rotate(-10deg); opacity: 0; } 12% { transform: translate(-50%, -50%) scale(1) rotate(-6deg); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -120%) scale(1.1) rotate(-6deg); opacity: 0; } }

.lbl { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.lbl .ln { font-size: 8px; text-shadow: var(--out); color: #b8ffc8; white-space: nowrap; }
.lbl.op .ln { color: #ffb8a8; }
.lbl .mini { width: 84px; height: 16px; background: #1a0806; border: 2px solid #0e0603; position: relative; box-shadow: 0 2px 0 #0e0603; }
.lbl .mini i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#7af08a, #2a9a3a); }
.lbl.op .mini i { background: linear-gradient(#ff8a70, #b02a1a); }
.lbl .mini s { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, rgba(140,200,255,0.85) 0 4px, rgba(80,140,220,0.85) 4px 8px); }
.lbl .mini em { position: absolute; inset: 0; font-style: normal; font-size: 8px; display: flex; align-items: center; justify-content: center; text-shadow: var(--out); color: #fff; }
.buffs { display: flex; gap: 3px; justify-content: center; min-height: 22px; }
.bf { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rc, #fff); background: #0e0603 center / cover no-repeat; box-shadow: 0 0 0 2px #0e0603, 0 0 6px var(--rc, #fff); animation: bfIn 0.3s cubic-bezier(.3,1.8,.5,1); image-rendering: auto; }
.bf.px { image-rendering: pixelated; background-size: 70%; }
@keyframes bfIn { from { transform: scale(0); } }

#aim { position: fixed; left: 0; right: 0; bottom: 6vh; display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 8; pointer-events: none; }
.aim-t { font-size: 18px; text-shadow: 3px 3px 0 #000; animation: pulse 1s infinite; }
.aim-timer { font-size: 12px; opacity: 0.75; text-shadow: var(--sh); }

#banner { position: fixed; left: 0; right: 0; top: 40%; z-index: 13; pointer-events: none; display: flex; justify-content: center; }
#banner .strip { background: linear-gradient(90deg, transparent, rgba(14,6,3,0.92) 15%, rgba(14,6,3,0.92) 85%, transparent); padding: 18px 120px; animation: strip 0.25s ease-out; }
#banner span { font-size: clamp(26px, 5vw, 54px); text-shadow: 4px 4px 0 #6a1608, 7px 7px 0 #000; display: inline-block; animation: slam 0.3s ease-out; }
@keyframes strip { from { transform: scaleY(0); } }
@keyframes slam { from { transform: scale(2.4); opacity: 0; } }

#end { background: rgba(7,5,4,0.7); }
#end .res { font-size: clamp(40px, 8vw, 80px); text-shadow: 5px 5px 0 #6a1608, 10px 10px 0 #000; animation: slam 0.4s ease-out; }
#end .res.win { color: var(--gold); }
#end .res.lose { color: var(--red); }
#end .coins { font-size: 14px; color: var(--gold); text-shadow: var(--sh); }

#vs { position: fixed; inset: 0; z-index: 11; display: flex; align-items: center; justify-content: center; gap: 3vw; background: linear-gradient(105deg, rgba(10,40,18,0.94) 0 49.6%, #0e0603 49.6% 50.4%, rgba(50,10,8,0.94) 50.4%); pointer-events: none; }
#vs.in { animation: vsBg 0.25s ease-out; }
#vs.out { animation: vsOut 0.3s ease-in forwards; }
@keyframes vsBg { from { opacity: 0; } }
@keyframes vsOut { to { opacity: 0; transform: scale(1.08); } }
.vs-side { width: min(32vw, 320px); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
#vs.in .vs-side.me { animation: vsL 0.45s cubic-bezier(.2,1.4,.4,1) backwards; }
#vs.in .vs-side.op { animation: vsR 0.45s cubic-bezier(.2,1.4,.4,1) 0.08s backwards; }
@keyframes vsL { from { transform: translateX(-70vw) rotate(-12deg); } }
@keyframes vsR { from { transform: translateX(70vw) rotate(12deg); } }
.vs-side .ph { width: min(24vw, 230px); aspect-ratio: 1; border-radius: 50%; background-size: cover; background-position: center 20%; border: 8px solid var(--rc); box-shadow: 0 0 0 5px #0e0603, 0 0 60px var(--rc), 0 10px 0 5px #0e0603; }
.vs-side.me .ph { outline: 4px solid var(--green); outline-offset: 8px; }
.vs-side.op .ph { outline: 4px solid var(--red); outline-offset: 8px; }
.vs-side .rr { font-size: 8px; padding: 4px 8px; background: var(--rc); border: 2px solid #0e0603; text-shadow: 1px 1px 0 #000; margin-top: 12px; }
.vs-side .nm { font-size: clamp(14px, 2vw, 22px); text-shadow: 3px 3px 0 #000; line-height: 1.2; }
.vs-side .st { display: flex; gap: 16px; font-size: 14px; }
.vs-side .ab { font-size: 10px; color: var(--ink); max-width: 300px; line-height: 1.6; text-shadow: var(--sh); }
.vs-mid { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vs-t { font-size: clamp(56px, 9vw, 120px); color: var(--gold); text-shadow: 6px 6px 0 #a02010, 12px 12px 0 #000; }
#vs.in .vs-t { animation: vsSlam 0.4s cubic-bezier(.3,1.6,.5,1) 0.4s backwards; }
@keyframes vsSlam { from { transform: scale(4) rotate(-20deg); opacity: 0; } }
.rnd { font-size: 12px; letter-spacing: 3px; opacity: 0.85; }

.plbl { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 3px; white-space: nowrap; animation: plIn 0.3s ease-out; }
.plbl b { font-weight: normal; font-size: 8px; color: var(--rc); text-shadow: var(--out); }
.plbl span { font-size: 8px; color: #fff; background: rgba(14,6,3,0.9); border: 2px solid var(--rc); padding: 4px 6px; }
@keyframes plIn { from { transform: translate(-50%, -60%) scale(0.3); opacity: 0; } }

.counter { position: absolute; transform: translate(-50%, -50%); font-size: 20px; color: #ffb040; text-shadow: var(--out); white-space: nowrap; }

@media (max-width: 760px) {
  .vs-side .ab { display: none; }
  .card { width: 30vw; height: 46vw; padding: 5px; }
  .card .ab, .card .cls { display: none; }
  .card .nm { font-size: 7px; }
  .card .st { font-size: 7px; gap: 6px; }
  .plate .ava { width: 40px; height: 40px; }
  .plate .nm { font-size: 8px; }
  .plate .abl { display: none; }
  .clock { font-size: 12px; min-width: 32px; }
  .heart { width: 10px; height: 10px; }
}

.btn.alt { background: linear-gradient(#2a6ac8, #123a7a); box-shadow: inset 0 0 0 2px #6ab0ff, inset 0 -4px 0 2px #0a1e44, 0 4px 0 #0e0603; }
.btn.gold { background: linear-gradient(#f0b030, #a86010); color: #2a1004; text-shadow: 1px 1px 0 #ffe8a0; box-shadow: inset 0 0 0 2px #ffe080, inset 0 -4px 0 2px #6a3a08, 0 4px 0 #0e0603; }
.btn.small { font-size: 10px; padding: 8px 12px; }
.btn.pulse { animation: btnPulse 1s ease-in-out infinite; }
@keyframes btnPulse { 50% { filter: brightness(1.35); transform: scale(1.05); } }
.corner { position: absolute; right: 16px; bottom: 16px; }
.panel { background: rgba(14,6,3,0.88); border: 3px solid #0e0603; box-shadow: inset 0 0 0 2px #6a3a1a, 0 6px 0 #0e0603; padding: 18px 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cap { font-size: 12px; color: var(--gold); text-shadow: var(--sh); letter-spacing: 1px; }
.sub2 { font-size: 10px; color: var(--dim); text-align: center; line-height: 1.8; text-shadow: var(--sh); }
.sub2 b { color: var(--gold); font-weight: normal; }
.title { font-size: 20px; text-shadow: 3px 3px 0 #0e0603; text-align: center; }
.err { min-height: 14px; font-size: 10px; color: var(--red); text-shadow: var(--sh); }
input { font-family: inherit; font-size: 16px; color: var(--ink); background: #0a0402; border: 3px solid #3a2414; padding: 12px; width: 280px; text-align: center; outline: none; }
input:focus { border-color: var(--gold); }
#room-code { width: 160px; font-size: 24px; letter-spacing: 8px; }
.dots::after { content: ''; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

#login, #menu, #pvp, #welcome, #summary { background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 75%); }
.menu-btns { display: flex; flex-direction: column; align-items: stretch; gap: 14px; min-width: 320px; }
.menu-btns .row { justify-content: stretch; }
.menu-btns .row .btn { flex: 1; }
.hint { font-size: 10px; color: var(--gold); text-align: center; min-height: 14px; text-shadow: var(--sh); animation: pulse 1.2s infinite; }

#topbar { position: fixed; top: 12px; left: 14px; z-index: 20; display: flex; gap: 10px; align-items: center; pointer-events: none; }
#topbar > div { background: rgba(14,6,3,0.9); border: 3px solid #0e0603; box-shadow: inset 0 0 0 2px #6a3a1a; padding: 8px 12px; font-size: 12px; text-shadow: var(--sh); }
.tb-coins { color: var(--gold); display: flex; align-items: center; }
.tb-coins.bump { animation: bump 0.4s ease-out; }
@keyframes bump { 40% { transform: scale(1.25); } }
.tb-free { color: #6fe070; animation: pulse 1s infinite; }
.ico.ic { background-image: var(--ico-coin); width: 14px; height: 14px; }

.pvp-cols { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.pvp-cols .panel { width: 300px; }
.code { font-size: 48px; letter-spacing: 10px; color: var(--gold); text-shadow: 4px 4px 0 #6a1608; }
.link { color: #9fd8ff; }

#gacha-ui { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#gacha-ui > * { pointer-events: auto; }
.odds { position: absolute; top: 70px; right: 14px; align-items: stretch; gap: 8px; font-size: 10px; width: 270px; }
.odds .oh { font-size: 12px; color: var(--gold); text-align: center; margin-bottom: 4px; }
.odds .orow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.odds .orow .pct { color: var(--ink); text-align: right; min-width: 52px; }
.odds .orow .got { color: var(--dim); text-align: right; min-width: 40px; }
.odds .obar { grid-column: 1 / -1; height: 6px; background: #1a0806; border: 1px solid #0e0603; position: relative; }
.odds .obar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--rc); }
.odds .ofoot { font-size: 8px; color: var(--dim); text-align: center; line-height: 1.8; margin-top: 4px; }
.g-bottom { position: absolute; left: 0; right: 0; bottom: 3vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.g-bottom.off .g-btns, .g-bottom.off #btn-g-back { visibility: hidden; }
.g-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn.spin { min-width: 250px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.btn.spin small { font-size: 10px; opacity: 0.85; }
.g-rules { font-size: 8px; color: var(--dim); text-shadow: var(--sh); display: flex; align-items: center; gap: 4px; }
.g-hint { position: absolute; left: 0; right: 0; bottom: 8vh; text-align: center; font-size: 14px; text-shadow: 3px 3px 0 #000; animation: pulse 0.8s infinite; pointer-events: none; }
.g-tease { position: absolute; left: 0; right: 0; top: 16vh; text-align: center; font-size: clamp(28px, 5vw, 56px); color: var(--rc); text-shadow: 4px 4px 0 #000, 0 0 30px var(--rc); pointer-events: none; animation: tease 0.5s cubic-bezier(.3,1.8,.5,1), flick 0.12s steps(2) infinite; }
@keyframes tease { from { transform: scale(3) rotate(-8deg); opacity: 0; } }
@keyframes flick { 50% { filter: brightness(1.6); } }

#reveal { position: fixed; left: 5vw; top: 50%; transform: translateY(-50%); z-index: 12; display: flex; flex-direction: column; align-items: center; gap: 14px; pointer-events: none; width: 380px; }
#reveal .btn { pointer-events: auto; min-width: 200px; }
.rv-card { position: relative; width: 100%; background: rgba(14,6,3,0.94); border: 4px solid #0e0603; box-shadow: inset 0 0 0 4px var(--rc), 0 0 40px var(--rc), 0 8px 0 #0e0603; padding: 22px 20px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: rvIn 0.45s cubic-bezier(.2,1.4,.4,1); overflow: hidden; }
@keyframes rvIn { from { transform: translateX(-60vw) rotate(-8deg); } }
.rv-rays { position: absolute; inset: -60%; background: repeating-conic-gradient(from 0deg, var(--rc) 0deg 6deg, transparent 6deg 18deg); opacity: 0.12; animation: spinR 12s linear infinite; pointer-events: none; }
@keyframes spinR { to { transform: rotate(360deg); } }
.rv-card > *:not(.rv-rays) { position: relative; }
.rv-rar { font-size: 12px; padding: 6px 12px; background: var(--rc); border: 3px solid #0e0603; text-shadow: 2px 2px 0 #000; }
.rv-name { font-size: 18px; line-height: 1.3; text-align: center; text-shadow: 3px 3px 0 #000; min-height: 24px; }
.rv-cls { font-size: 8px; color: var(--dim); letter-spacing: 2px; }
.rv-st { display: flex; gap: 18px; font-size: 14px; text-shadow: var(--sh); }
.rv-ab { width: 100%; height: 86px; font-size: 9px; text-align: center; line-height: 1.8; text-shadow: var(--sh); background: rgba(0,0,0,0.45); padding: 10px 12px; border: 2px solid #3a2414; display: flex; flex-direction: column; justify-content: center; }
.rv-tag { font-size: 18px; text-shadow: 3px 3px 0 #000; animation: stamp 0.45s cubic-bezier(.3,1.8,.5,1) 0.3s backwards; display: flex; align-items: center; gap: 6px; min-height: 22px; }
.rv-tag.new { color: var(--gold); }
.rv-tag.dupe { color: #9fd8ff; font-size: 12px; }
@keyframes stamp { from { transform: scale(3) rotate(-15deg); opacity: 0; } }

#collection { background: rgba(7,5,4,0.94); justify-content: flex-start; padding: 70px 20px 20px; gap: 14px; }
.coll-head { display: flex; align-items: center; gap: 20px; }
.coll-head .title span { color: var(--gold); }
.coll-body { overflow-y: auto; width: 100%; max-width: 1200px; padding: 0 10px 40px; display: flex; flex-direction: column; gap: 22px; }
.coll-sec .sec-h { font-size: 12px; margin-bottom: 12px; text-shadow: var(--sh); color: var(--rc); display: flex; gap: 12px; align-items: center; }
.coll-sec .sec-h span { color: var(--dim); }
.coll-sec .cards { justify-content: flex-start; }
.coll-sec .card { width: 160px; height: 246px; animation: none; }
.coll-sec .card .ab { display: none; }
.card .cnt { position: absolute; bottom: 4px; right: 4px; font-size: 10px; padding: 3px 5px; background: #0e0603; color: var(--gold); border: 2px solid var(--gold); }
.card.lock, .card.lock:hover, .card.lock:hover:not(.used):not(.locked) { filter: grayscale(1) brightness(0.45); box-shadow: inset 0 0 0 4px #555, 0 6px 0 #0e0603; }
.card.lock:hover:not(.used):not(.locked) { transform: translateY(-4px); }
#detail { background: rgba(0,0,0,0.8); z-index: 14; }
.detail-box { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; max-width: 820px; }
.detail-box .card { width: 260px; height: 390px; animation: none; cursor: default; }
.detail-box .card .ab { display: none; }
.detail-info { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.detail-info .nm { font-size: 22px; text-shadow: 3px 3px 0 #000; }
.detail-info .ab { font-size: 10px; line-height: 1.8; color: var(--ink); text-shadow: var(--sh); }
.detail-info .meta { font-size: 10px; color: var(--dim); line-height: 1.8; }

.welcome-box { max-width: 520px; }
#summary .card { width: 170px; height: 262px; }
#summary .card .ab { display: none; }
.card .newtag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-4deg); font-size: 10px; padding: 3px 6px; background: var(--gold); color: #2a1004; border: 2px solid #0e0603; z-index: 2; }

#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 30; background: rgba(14,6,3,0.95); border: 3px solid var(--red); padding: 10px 16px; font-size: 10px; text-shadow: var(--sh); }
#fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 40; transition: opacity 0.25s; }
#fade.on { opacity: 1; }
.arena-n { font-size: 10px; color: var(--dim); letter-spacing: 2px; }

@supports not selector(::-webkit-scrollbar) { .coll-body { scrollbar-width: thin; scrollbar-color: #a8642e #140a06; } }
.coll-body::-webkit-scrollbar { width: 16px; }
.coll-body::-webkit-scrollbar-track { background: #140a06; border: 3px solid #0e0603; box-shadow: inset 0 0 0 2px #3a2414; }
.coll-body::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #7a4520, #a8642e 50%, #7a4520); border: 3px solid #0e0603; box-shadow: inset 0 2px 0 #d8904a, inset 0 -2px 0 #4a2410; }
.coll-body::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #a8642e, #d8904a 50%, #a8642e); }
.coll-body::-webkit-scrollbar-button { display: none; }

.card .art, .vs-side .ph, .plate .ava img, .detail-box .art { image-rendering: pixelated; }
.card.rainbow { border: 5px solid transparent; border-image: none; background: linear-gradient(#1a100a, #1a100a) padding-box, var(--rbg) border-box; box-shadow: 0 6px 0 #0e0603, 0 0 24px rgba(0,0,0,0.6); }
.vs-side .ph.rb { border-color: transparent; background: var(--img) center 20% / cover no-repeat padding-box, var(--rbg) border-box; box-shadow: 0 0 0 5px #0e0603, 0 0 60px #ff40c0, 0 10px 0 5px #0e0603; }
.plate .ava.rb { border-color: transparent; background: var(--rbg) border-box; }
.vs-side .tags { display: flex; gap: 8px; margin-top: 12px; }
.vs-side .tags span { font-size: 8px; padding: 4px 8px; border: 2px solid #0e0603; text-shadow: 1px 1px 0 #000; }
.vs-side .tags .t1 { background: var(--rc); }
.vs-side .tags .t2 { background: #2a1408; color: var(--dim); }
.vs-side .rr { display: none; }
.detail-info .tags { display: flex; gap: 8px; }
.detail-info .tags span { font-size: 8px; padding: 4px 8px; border: 2px solid #0e0603; }

.arena-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.arena-pick .btn { font-size: 14px; padding: 10px 14px; }
.ar-box { flex: 1; text-align: center; background: rgba(14,6,3,0.85); border: 3px solid #0e0603; box-shadow: inset 0 0 0 2px #3a2414; padding: 8px 6px; }
.ar-cap { font-size: 8px; color: var(--dim); margin-bottom: 6px; }
.ar-name { font-size: 12px; color: var(--gold); text-shadow: var(--sh); }

.end-note { font-size: 10px; color: var(--dim); min-height: 14px; text-shadow: var(--sh); }
.dice-row { display: flex; align-items: center; gap: 22px; }
.dice-row .base, .dice-row .mult { font-size: 22px; text-shadow: 3px 3px 0 #000; color: var(--gold); min-width: 90px; display: flex; align-items: center; gap: 6px; }
.dice-row .base { justify-content: flex-end; }
.dice-row .mult { color: #fff; }
.dice-row .mult.stamped { animation: stamp 0.4s cubic-bezier(.3,1.8,.5,1); color: var(--gold); }
.die { width: 84px; height: 84px; background: #f4ead0; border: 4px solid #0e0603; box-shadow: inset -6px -6px 0 #c8b896, inset 4px 4px 0 #fffbe8, 0 6px 0 #0e0603; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 10px; gap: 4px; }
.die.roll { animation: dieRoll 0.18s linear infinite; }
.die.land { animation: dieLand 0.45s cubic-bezier(.3,1.8,.5,1); }
.die i { display: block; width: 14px; height: 14px; margin: auto; background: transparent; }
.die i.on { background: #1a0a04; box-shadow: inset 2px 2px 0 #4a2a1a; }
.die.six i.on { background: #c82a1a; }
@keyframes dieRoll { 0% { transform: rotate(0) translateY(0); } 25% { transform: rotate(90deg) translateY(-14px); } 50% { transform: rotate(180deg) translateY(0); } 75% { transform: rotate(270deg) translateY(-10px); } 100% { transform: rotate(360deg); } }
@keyframes dieLand { from { transform: scale(1.5) rotate(-20deg); } }
#end .coins { min-height: 30px; font-size: 20px; display: flex; align-items: center; gap: 8px; }

.prow { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.plate.op .prow { align-items: flex-end; }
.patk { font-size: 12px; display: flex; align-items: center; color: #ffb040; text-shadow: var(--sh); white-space: nowrap; }
.patk em { font-style: normal; color: #6fe070; margin-left: 4px; }
.pbuffs { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.plate.op .pbuffs { align-items: flex-end; }
.chip { display: flex; align-items: center; gap: 8px; font-size: 10px; line-height: 1.3; background: rgba(14,6,3,0.88); border-left: 4px solid var(--rc); padding: 4px 10px 4px 4px; min-width: 200px; text-shadow: 1px 1px 0 #000; animation: bfIn 0.3s cubic-bezier(.3,1.8,.5,1); white-space: nowrap; }
.chip i { width: 26px; height: 26px; border-radius: 50%; background: #0e0603 center / cover no-repeat; image-rendering: pixelated; border: 1px solid #0e0603; flex: none; }
.chip i.px { background-size: 80%; border-radius: 0; border: none; }

.btn.boost { font-size: 12px; padding: 8px 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.btn.boost small { font-size: 8px; opacity: 0.8; }
.btn.boost.on { background: linear-gradient(#b0662a, #6a3010); box-shadow: inset 0 0 0 2px #ffc070, inset 0 -4px 0 2px #3a1806, 0 4px 0 #0e0603, 0 0 14px rgba(255,160,60,0.5); }
.odds .oh.boosted { color: #ffb060; text-shadow: var(--sh); }

.card.slot { animation: slotSpin 0.16s linear infinite !important; filter: brightness(1.2) blur(0.6px); }
@keyframes slotSpin { 0% { transform: translateY(0) rotateY(0); } 50% { transform: translateY(-10px) rotateY(25deg); } 100% { transform: translateY(0) rotateY(0); } }
.card.landin { animation: landIn 0.5s cubic-bezier(.2,1.6,.4,1) backwards !important; }
@keyframes landIn { 0% { transform: translateY(-80px) rotateY(90deg) scale(1.3); filter: brightness(3); box-shadow: 0 0 60px var(--rc); } 60% { filter: brightness(1.6); box-shadow: 0 0 40px var(--rc); } }

#ost { position: fixed; top: 110px; left: 50%; transform: translateX(-50%); z-index: 9; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; animation: slam 0.3s ease-out; }
.ost-cap { font-size: 12px; color: var(--gold); text-shadow: var(--sh); }
.ost-row { display: flex; align-items: center; gap: 14px; background: rgba(14,6,3,0.9); border: 3px solid #0e0603; box-shadow: inset 0 0 0 2px #6a3a1a; padding: 10px 14px; }
.ost-ph { width: 48px; height: 48px; border-radius: 50%; background: #222 center 20% / cover no-repeat; image-rendering: pixelated; border: 3px solid #555; transition: transform 0.2s, filter 0.2s; }
.ost-ph.win { border-color: var(--gold); transform: scale(1.25); box-shadow: 0 0 18px var(--gold); }
.ost-ph.lose { filter: grayscale(1) brightness(0.5); }
.die.small { width: 48px; height: 48px; padding: 6px; gap: 2px; border-width: 3px; }
.die.small i { width: 8px; height: 8px; }

.plate.op .chip { flex-direction: row-reverse; border-left: none; border-right: 4px solid var(--rc); padding: 4px 4px 4px 10px; }

#evt { position: fixed; top: 96px; left: 50%; transform: translateX(-50%); z-index: 7; pointer-events: none; font-size: 14px; color: var(--gold); background: rgba(14,6,3,0.88); border: 3px solid #0e0603; box-shadow: inset 0 0 0 2px #6a3a1a; padding: 8px 14px; text-shadow: var(--sh); animation: slam 0.3s ease-out; }

.pop.tool { font-size: 11px; color: #ffd0b8; background: rgba(20,10,6,0.92); border: 2px solid #d97757; padding: 4px 8px; text-shadow: none; }
.pop.coinpop { font-size: 14px; color: var(--gold); display: flex; align-items: center; gap: 4px; }
#rose { position: fixed; top: 96px; left: 50%; transform: translateX(-50%); z-index: 7; pointer-events: none; display: flex; gap: 14px; align-items: center; background: rgba(20,4,6,0.9); border: 3px solid #0e0603; box-shadow: inset 0 0 0 2px #a01828, 0 0 20px rgba(255,30,40,0.4); padding: 8px 14px; font-size: 10px; text-shadow: var(--sh); }
#rose b { font-weight: normal; font-size: 20px; color: #ff4050; min-width: 40px; text-align: center; }
#rose span.ok { color: #6fe070; }
#sandbox { background: rgba(7,5,4,0.88); gap: 14px; }
.sbx-cols { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.sbx-cols .panel { width: min(44vw, 520px); }
.sbx-name { font-size: 12px; min-height: 16px; text-shadow: var(--sh); }
.sbx-grid { display: grid; grid-template-columns: repeat(auto-fill, 44px); gap: 6px; max-height: 40vh; overflow-y: auto; justify-content: center; padding: 4px; width: 100%; align-self: stretch; }
.sbx-grid::-webkit-scrollbar { width: 14px; }
.sbx-grid::-webkit-scrollbar-track { background: #140a06; border: 3px solid #0e0603; }
.sbx-grid::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #7a4520, #a8642e 50%, #7a4520); border: 3px solid #0e0603; }
.sbx-grid::-webkit-scrollbar-button { display: none; }
.sbx-it { width: 44px; height: 44px; border-radius: 50%; background: #222 center 20% / cover no-repeat; image-rendering: pixelated; border: 3px solid var(--rc); cursor: pointer; transition: transform 0.08s; }
.sbx-it:hover { transform: scale(1.12); }
.sbx-it.sel { outline: 3px solid #fff; outline-offset: 2px; transform: scale(1.12); }
.sbx-arena { width: 360px; }
#sbx-bar { position: fixed; left: 0; right: 0; bottom: 10px; z-index: 9; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 10px; }
.sbx-picks { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; max-width: 70vw; background: rgba(14,6,3,0.85); border: 3px solid #0e0603; padding: 4px; }
.sbx-pk { width: 32px; height: 40px; background: #222 center / cover no-repeat; image-rendering: pixelated; border: 2px solid var(--rc); cursor: pointer; }
.sbx-pk:hover { transform: translateY(-3px); }

#chat { position: fixed; left: 14px; bottom: 14px; z-index: 25; width: min(560px, 46vw); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.chat-log { display: flex; flex-direction: column; gap: 5px; max-height: 42vh; overflow: hidden; }
#chat.open .chat-log { overflow-y: auto; background: rgba(14,6,3,0.85); border: 3px solid #0e0603; box-shadow: inset 0 0 0 2px #3a2414; padding: 10px; pointer-events: auto; min-height: 120px; }
.chat-row { font-size: 13px; line-height: 1.6; text-shadow: var(--out); color: var(--ink); word-break: break-word; transition: opacity 0.6s; }
.chat-row b { font-weight: normal; color: #ff8a70; }
.chat-row.me b { color: #6fe070; }
.chat-row.old { opacity: 0; }
#chat.open .chat-row.old { opacity: 0.75; }
#chat-in { pointer-events: auto; width: 100%; font-size: 14px; padding: 12px; text-align: left; }

.card.back { background: repeating-linear-gradient(45deg, #2a1408 0 8px, #1a0c06 8px 16px); box-shadow: inset 0 0 0 4px #6a3a1a, 0 6px 0 #0e0603; display: flex; align-items: center; justify-content: center; }
.card.back .bk { font-size: 34px; color: #a8642e; text-shadow: 3px 3px 0 #0e0603; }
.opp-status { font-size: 10px; color: var(--dim); text-shadow: var(--sh); min-height: 14px; }

.pnick { font-size: 9px; color: #9fd8ff; text-shadow: var(--sh); display: flex; align-items: center; gap: 5px; }
.plate.op .pnick { justify-content: flex-end; color: #ffb0a0; }
.ico.ip { background-image: var(--ico-person); width: 12px; height: 12px; margin: 0; }
.card.sel { outline: 3px solid var(--green); outline-offset: 3px; filter: brightness(1.15); }

#party { position: fixed; right: 16px; top: 70px; z-index: 11; width: 300px; align-items: stretch; gap: 12px; }
#party .cap { text-align: center; }
#party-out, #party-in { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
#party-out.hidden, #party-in.hidden { display: none; }
.pj { display: flex; gap: 8px; }
.pj input { width: auto; flex: 1; min-width: 0; font-size: 16px; letter-spacing: 6px; padding: 8px; }
.pcode { font-size: 10px; color: var(--dim); text-align: center; }
.pcode b { font-weight: normal; font-size: 22px; color: var(--gold); letter-spacing: 6px; margin-left: 8px; text-shadow: var(--sh); }
.plist { display: flex; flex-direction: column; gap: 6px; }
.pm { display: flex; align-items: center; gap: 8px; font-size: 10px; background: rgba(0,0,0,0.35); border: 2px solid #3a2414; padding: 8px; }
.pm .pm-n { flex: 1; text-shadow: var(--sh); }
.pm .pm-s { font-size: 8px; color: var(--dim); }
.pm.ready { border-color: #4dff80; }
.pm.ready .pm-s { color: #6fe070; }
.pm.off { opacity: 0.5; }
.pm.wait { justify-content: center; color: var(--dim); }
#btn-pvp.on { background: linear-gradient(#2aa84a, #126a2a); box-shadow: inset 0 0 0 2px #7aff9a, inset 0 -4px 0 2px #0a3a14, 0 4px 0 #0e0603; }
@media (max-width: 900px) { #party { top: auto; bottom: 60px; right: 10px; width: 240px; } }

.ico.icr { background-image: var(--ico-crown); width: 14px; height: 14px; margin: 0 4px 0 0; }
.ar-cap { display: flex; align-items: center; justify-content: center; }

.dr-top { width: min(1100px, 100%); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.dr-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dr-side.me { align-items: flex-start; }
.dr-side.op { align-items: flex-end; }
.dr-who { display: flex; align-items: center; gap: 8px; font-size: 13px; text-shadow: var(--sh); max-width: 100%; }
.dr-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-side.me .dr-who { color: #9fffb8; }
.dr-side.op .dr-who { color: #ffb0a0; }
.dr-st { --c: var(--gold); font-size: 11px; padding: 7px 10px; color: var(--c); background: rgba(14,6,3,0.92); border: 3px solid #0e0603; box-shadow: inset 0 0 0 2px var(--c), 0 4px 0 #0e0603; text-shadow: var(--sh); white-space: nowrap; }
.dr-st.think::after { content: ''; display: inline-block; width: 3ch; text-align: left; animation: dots 1.2s steps(4) infinite; }
.dr-st.ok { --c: var(--green); }
.dr-st.warn { --c: #ff9a40; }
.dr-st.bump { animation: bump 0.35s; }
.dr-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 60px; justify-content: center; }
.dr-timer { position: relative; width: clamp(64px, 10vh, 92px); height: clamp(64px, 10vh, 92px); display: grid; place-items: center; }
.dr-timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dr-timer circle { stroke-width: 9; }
.dr-timer .trk { fill: rgba(14,6,3,0.9); stroke: #2a1408; }
.dr-timer .arc { fill: none; stroke: var(--gold); stroke-dasharray: 276.46; transition: stroke 0.2s; }
.dr-timer b { position: relative; font-weight: normal; font-size: clamp(20px, 3.2vh, 30px); color: var(--ink); text-shadow: 3px 3px 0 #000; }
.dr-timer.low .arc { stroke: var(--red); }
.dr-timer.low b { color: var(--red); animation: pulse 0.5s infinite; }
.dr-score { display: flex; gap: 10px; align-items: center; font-size: 22px; text-shadow: 3px 3px 0 #000; }
.dr-score b { font-weight: normal; }
.dr-score b:first-child { color: var(--green); }
.dr-score b:last-child { color: var(--red); }
.dr-head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dr-sub { font-size: 10px; color: var(--dim); text-shadow: var(--sh); min-height: 14px; text-align: center; }
.dr-btns { min-height: 62px; }
#my-cards .card { width: min(210px, 25vh); height: min(320px, 38vh); }
#opp-cards .card { width: min(92px, 11vh); height: min(124px, 15vh); }
#opp-cards.ready .card { box-shadow: inset 0 0 0 4px var(--green), 0 6px 0 #0e0603, 0 0 18px rgba(77,255,128,0.35); }
#opp-cards.shuf .card { animation: oppShuf 0.7s ease-in-out !important; }
@keyframes oppShuf { 20% { transform: translateY(-14px) rotate(-8deg); } 50% { transform: translateY(4px) rotate(6deg) scaleX(-1); } 80% { transform: translateY(-6px) rotate(-3deg); } }
#draft .card.used { opacity: 0.7; filter: grayscale(1) brightness(0.55); }
#draft .card.used::after { content: 'СЫГРАН'; position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-12deg); font-size: 13px; color: #ff6a50; background: rgba(14,6,3,0.85); border: 3px solid #ff6a50; padding: 5px 9px; text-shadow: var(--sh); }
#opp-cards .card.used::after { font-size: 7px; padding: 3px 4px; border-width: 2px; }
.card.dimmed { filter: brightness(0.4) grayscale(0.6); transform: scale(0.94); }
.card.sel { transform: translateY(-12px) scale(1.04); }
.card.sel::after { content: 'ВЫБРАН'; position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); font-size: 11px; color: #0e2a14; background: var(--green); border: 3px solid #0e0603; padding: 4px 8px; white-space: nowrap; }
.card.landin.hot { animation: landIn 0.5s cubic-bezier(.2,1.6,.4,1) backwards, hotGlow 1.4s ease-out 0.15s !important; }
@keyframes hotGlow { 0% { box-shadow: inset 0 0 0 4px var(--rc), 0 0 90px 24px var(--rc); filter: brightness(1.8); } 100% { box-shadow: inset 0 0 0 4px var(--rc), 0 6px 0 #0e0603, 0 0 24px rgba(0,0,0,0.6); filter: brightness(1); } }
#wait-note { position: fixed; top: 96px; left: 50%; transform: translateX(-50%); z-index: 7; pointer-events: none; font-size: 12px; color: var(--ink); background: rgba(14,6,3,0.88); border: 3px solid #0e0603; box-shadow: inset 0 0 0 2px #6a3a1a; padding: 8px 14px; text-shadow: var(--sh); }
#btn-skip { position: fixed; right: 3vw; bottom: 3vh; z-index: 32; font-family: inherit; font-size: 14px; letter-spacing: 2px; color: #fff; background: #000; border: 3px solid #fff; box-shadow: 0 0 0 3px #000; padding: 12px 18px; cursor: pointer; transition: transform 0.06s, background 0.15s, color 0.15s; animation: skipIn 0.4s ease-out; }
#btn-skip:hover { transform: translateY(-2px); background: #fff; color: #000; }
#btn-skip.on { background: #fff; color: #000; }
@keyframes skipIn { from { opacity: 0; transform: translateY(12px); } }
.chat-log::-webkit-scrollbar { width: 12px; }
.chat-log::-webkit-scrollbar-track { background: #140a06; border: 2px solid #0e0603; }
.chat-log::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #7a4520, #a8642e 50%, #7a4520); border: 2px solid #0e0603; }
.chat-log::-webkit-scrollbar-button { display: none; }

.mlbl { position: absolute; transform: translate(-50%, -100%); pointer-events: none; }
.mlbl .mini { width: 44px; height: 7px; background: #1a0806; border: 2px solid #0e0603; position: relative; }
.mlbl .mini i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#7af08a, #2a9a3a); }
.mlbl.op .mini i { background: linear-gradient(#ff8a70, #b02a1a); }

.g-toggles { display: flex; gap: 10px; }
#reveal.shine .rv-card { animation: rvIn 0.45s cubic-bezier(.2,1.4,.4,1), rvGlow 1.2s ease-out; }
#reveal.shine .rv-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%); transform: translateX(-120%); animation: rvSweep 0.9s ease-out 0.25s forwards; pointer-events: none; }
#reveal[data-tier="4"] .rv-card, #reveal[data-tier="5"] .rv-card, #reveal[data-tier="6"] .rv-card, #reveal[data-tier="7"] .rv-card, #reveal[data-tier="8"] .rv-card, #reveal[data-tier="9"] .rv-card { animation: rvIn 0.45s cubic-bezier(.2,1.4,.4,1), rvGlow 1.2s ease-out, rvBob 2.4s ease-in-out 1.2s infinite; }
#reveal[data-tier="5"] .rv-rar, #reveal[data-tier="8"] .rv-rar, #reveal[data-tier="9"] .rv-rar { animation: rvHue 1.5s linear infinite; }
@keyframes rvGlow { 0% { box-shadow: inset 0 0 0 4px var(--rc), 0 0 120px var(--rc), 0 8px 0 #0e0603; filter: brightness(2); } 100% { filter: brightness(1); } }
@keyframes rvSweep { to { transform: translateX(120%); } }
@keyframes rvBob { 50% { transform: translateY(-6px) rotate(-0.5deg); } }
@keyframes rvHue { to { filter: hue-rotate(360deg); } }

#gs-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 28; }
.gs-bar { position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 30; }
.gs-bar.top { top: 0; }
.gs-bar.bot { bottom: 0; }
#gs-layer.bars .gs-bar { height: 10vh; }
.gs-void { position: absolute; inset: 0; background: #000; opacity: 0; z-index: 1; }
.gs-face { position: absolute; left: 50%; top: 50%; height: 100vh; transform: translate(-50%, -50%) scale(1.1); opacity: 0; z-index: 2; filter: grayscale(1) contrast(1.35); }
.gs-face.on { animation: gsFaceGlitch 0.9s steps(1) infinite; }
@keyframes gsFaceGlitch { 0%, 100% { filter: grayscale(1) contrast(1.35); } 31% { filter: grayscale(1) contrast(2) invert(1); } 33% { filter: grayscale(1) contrast(1.35); } 62% { filter: grayscale(1) contrast(1.8) brightness(1.6); clip-path: inset(10% 0 60% 0); } 64% { clip-path: none; } }
.gs-flash { position: absolute; inset: 0; background: #fff; opacity: 0; z-index: 12; }
.gs-split { position: absolute; inset: 0; z-index: 8; }
.gs-piece { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; image-rendering: pixelated; filter: drop-shadow(0 0 6px #fff); }
.gs-crack { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 13; opacity: 0; }
.gs-wins { position: absolute; inset: 0; z-index: 14; }
.gs-win { position: absolute; width: 380px; max-width: 90vw; background: #c0c0c0; border: 2px solid; border-color: #fff #404040 #404040 #fff; font-family: Tahoma, Verdana, sans-serif; font-size: 13px; line-height: 1.35; color: #000; box-shadow: 4px 4px 0 #000; filter: grayscale(1); animation: gsPop 0.12s steps(3) both; -webkit-font-smoothing: auto; }
.gs-win .t { background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-weight: bold; padding: 3px 6px; display: flex; justify-content: space-between; }
.gs-win .b { padding: 14px; display: flex; gap: 12px; align-items: center; }
.gs-win .ic { width: 34px; height: 34px; border-radius: 50%; background: #c00; color: #fff; font-weight: bold; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.gs-win .btns { display: flex; justify-content: center; gap: 10px; padding: 0 0 12px; }
.gs-win .btns span { border: 2px solid; border-color: #fff #404040 #404040 #fff; padding: 3px 18px; }
@keyframes gsPop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.gs-slash { position: absolute; background: #fff; box-shadow: 0 0 24px #fff, 0 0 6px #fff, 0 0 0 2px #000; transform-origin: 0 50%; z-index: 25; }
.gs-caption { position: absolute; left: 0; right: 0; bottom: 15vh; padding: 0 4vw; text-align: center; font-size: clamp(14px, 2.4vw, 32px); line-height: 1.5; color: #fff; letter-spacing: 3px; text-shadow: 3px 3px 0 #000, -2px 0 0 #000, 0 0 18px rgba(255, 255, 255, 0.5); z-index: 20; opacity: 0; }
.gs-caption.on { opacity: 1; }
.gs-big { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); color: #fff; white-space: nowrap; z-index: 22; line-height: 1; opacity: 0; text-shadow: 5px 5px 0 #000, -5px -5px 0 #000, 5px -5px 0 #000, -5px 5px 0 #000, 0 0 50px rgba(255, 255, 255, 0.8); }
.gs-big::before, .gs-big::after { content: attr(data-t); position: absolute; left: 0; top: 0; opacity: 0; }
.gs-big.on { opacity: 1; animation: gsSlam 0.22s cubic-bezier(0.2, 1.8, 0.4, 1) both, gsShake 0.07s steps(2) infinite; }
.gs-big.out { opacity: 0; transition: opacity 0.25s; animation: none; }
.gs-big.small { top: 22%; }
.gs-big.counter { top: 20%; animation: gsShake 0.05s steps(2) infinite; }
.gs-big.counter.final { animation: gsSlam 0.2s cubic-bezier(0.2, 1.8, 0.4, 1) both; }
.gs-big.domain { top: 36%; }
.gs-big.zw { color: #000; text-shadow: 5px 5px 0 #fff, -5px -5px 0 #fff, 5px -5px 0 #fff, -5px 5px 0 #fff, 0 0 40px #fff; }
.gs-big.final { top: 40%; animation: gsSlam 0.3s cubic-bezier(0.2, 1.8, 0.4, 1) both; }
.gs-big.title::before, .gs-big.title::after, .gs-big.stut::before, .gs-big.stut::after { opacity: 0.8; }
.gs-big.title::before, .gs-big.stut::before { color: #000; text-shadow: none; animation: gsGlitchA 0.3s steps(1) infinite; }
.gs-big.title::after, .gs-big.stut::after { color: #fff; text-shadow: none; mix-blend-mode: difference; animation: gsGlitchB 0.23s steps(1) infinite; }
@keyframes gsGlitchA { 0% { clip-path: inset(10% 0 70% 0); transform: translate(-8px, 0); } 33% { clip-path: inset(55% 0 20% 0); transform: translate(10px, 0); } 66% { clip-path: inset(30% 0 45% 0); transform: translate(-4px, 0); } }
@keyframes gsGlitchB { 0% { clip-path: inset(70% 0 5% 0); transform: translate(9px, 0); } 50% { clip-path: inset(5% 0 80% 0); transform: translate(-11px, 0); } }
@keyframes gsSlam { from { transform: translate(-50%, -50%) scale(2.6) rotate(-4deg); filter: blur(4px); } to { transform: translate(-50%, -50%) scale(1) rotate(0); filter: none; } }
@keyframes gsShake { 0% { translate: 3px -2px; } 100% { translate: -3px 2px; } }
.gs-sub { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); letter-spacing: 0.35em; color: #fff; white-space: nowrap; text-shadow: 3px 3px 0 #000, 0 0 16px #fff; z-index: 22; opacity: 0; }
.gs-sub.on { opacity: 1; animation: gsSub 0.6s steps(12) both; }
@keyframes gsSub { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
.gs-clock { position: absolute; left: 50%; top: 46%; width: min(52vh, 52vw); height: min(52vh, 52vw); border-radius: 50%; transform: translate(-50%, -50%) scale(1.6); opacity: 0; z-index: 3; border: 6px solid #fff; box-shadow: 0 0 0 4px #000, inset 0 0 0 4px #000, 0 0 60px rgba(255, 255, 255, 0.4); transition: opacity 0.3s, transform 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); }
.gs-clock::before { content: ''; position: absolute; inset: 4%; border-radius: 50%; background: repeating-conic-gradient(from -1.5deg, rgba(255, 255, 255, 0.95) 0 3deg, transparent 3deg 30deg); -webkit-mask: radial-gradient(circle, transparent 0 80%, #000 81%); mask: radial-gradient(circle, transparent 0 80%, #000 81%); }
.gs-clock.on { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
.gs-hand { position: absolute; left: 50%; bottom: 50%; width: 8px; height: 44%; margin-left: -4px; background: #fff; box-shadow: 0 0 0 2px #000; transform-origin: 50% 100%; }
.gs-hand.m { width: 14px; margin-left: -7px; height: 28%; }
#gs-layer.frozen::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.55)); z-index: 2; }
body.gs-cine #hud, body.gs-cine #labels, body.gs-cine #rose, body.gs-cine #ost { opacity: 0 !important; transition: opacity 0.3s; }

#topbar { left: 0; right: 0; top: 0; padding: 10px 14px; gap: 14px; justify-content: space-between; pointer-events: auto; background: linear-gradient(rgba(7,5,4,0.92), rgba(7,5,4,0.55) 75%, rgba(7,5,4,0)); }
#topbar > div, #topbar > button { background: none; border: none; box-shadow: none; padding: 0; }
.tb-me { display: flex; align-items: center; gap: 10px; cursor: pointer; font-family: inherit; color: var(--ink); background: rgba(14,6,3,0.9) !important; border: 3px solid #0e0603 !important; box-shadow: inset 0 0 0 2px #6a3a1a !important; padding: 6px 12px 6px 8px !important; min-width: 200px; }
.tb-me:hover { filter: brightness(1.15); }
.tb-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
#tb-nick { font-size: 12px; text-shadow: var(--sh); max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tb-coins { font-size: 12px; color: var(--gold); display: flex; align-items: center; text-shadow: var(--sh); }
.tb-coins b { font-weight: normal; }
.tabs { display: flex; gap: 6px; background: rgba(14,6,3,0.9); border: 3px solid #0e0603; box-shadow: inset 0 0 0 2px #3a2414, 0 4px 0 #0e0603; padding: 5px; }
.tabs button { position: relative; font-family: inherit; font-size: 12px; color: var(--dim); background: transparent; border: none; padding: 11px 14px; cursor: pointer; text-shadow: var(--sh); transition: color 0.1s, background 0.1s; }
.tabs button:hover { color: var(--ink); background: rgba(168,100,46,0.18); }
.tabs button.on { color: #fff; background: linear-gradient(#c8441e, #6a1608); box-shadow: inset 0 0 0 2px #ff8a50, 0 2px 0 #0e0603; }
.tabs.lock button:not(.on) { opacity: 0.35; pointer-events: none; }
.tabs .dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; background: var(--green); border: 2px solid #0e0603; animation: pulse 1s infinite; }
.tb-music { display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--dim); background: rgba(14,6,3,0.9) !important; border: 3px solid #0e0603 !important; box-shadow: inset 0 0 0 2px #3a2414 !important; padding: 6px 8px !important; min-width: 200px; justify-content: space-between; }
.tb-music button { font-family: inherit; font-size: 10px; color: var(--gold); background: #2a1408; border: 2px solid #0e0603; padding: 4px 7px; cursor: pointer; }
.tb-music button:hover { filter: brightness(1.3); }
#mu-name { text-align: center; flex: 1; white-space: nowrap; }

#lobby { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#lobby .tab-pane { position: absolute; inset: 88px 0 0 0; display: none; pointer-events: auto; padding: 10px 24px 24px; overflow-y: auto; }
#lobby .tab-pane.on { display: flex; flex-direction: column; align-items: center; gap: 16px; }
#lobby #tab-play.on { background: radial-gradient(ellipse at 30% 50%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%); align-items: flex-start; padding-left: 5vw; pointer-events: none; }
#tab-play .play-col { pointer-events: auto; display: flex; flex-direction: column; gap: 14px; width: min(440px, 92vw); }
.logo.small { transform: rotate(-3deg) scale(0.62); transform-origin: left center; margin: -14px 0 -20px; align-items: flex-start; }
.modes { display: flex; flex-direction: column; gap: 8px; }
.mode { font-family: inherit; text-align: left; display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; background: rgba(14,6,3,0.88); color: var(--ink); border: 3px solid #0e0603; box-shadow: inset 0 0 0 2px #3a2414, 0 4px 0 #0e0603; cursor: pointer; transition: transform 0.08s, box-shadow 0.12s; }
.mode b { font-weight: normal; font-size: 14px; text-shadow: var(--sh); }
.mode span { font-size: 8px; color: var(--dim); line-height: 1.6; }
.mode:hover:not(:disabled) { transform: translateX(4px); }
.mode.on { box-shadow: inset 0 0 0 3px var(--gold), 0 4px 0 #0e0603, 0 0 18px rgba(255,200,80,0.25); }
.mode.on b { color: var(--gold); }
.mode:disabled { cursor: default; opacity: 0.55; }
.mode.on:disabled { opacity: 1; }
.play-btns { display: flex; flex-direction: column; gap: 10px; }
.hint { font-size: 9px; color: var(--gold); text-shadow: var(--sh); min-height: 12px; }

#party { top: 100px; width: 330px; max-height: calc(100vh - 120px); overflow-y: auto; }
.pmode { font-size: 9px; color: var(--dim); text-align: center; }
.pmode b { font-weight: normal; color: var(--gold); }
.pm { flex-direction: column; align-items: stretch; padding: 0; background: none; border: none; }
.pm .pcard { width: 100%; }
.pm.ready .pcard { box-shadow: inset 0 0 0 3px var(--green), 0 0 14px rgba(77,255,128,0.3), 0 6px 0 #0e0603 !important; }
.pm.wait { padding: 12px; border: 2px dashed #3a2414; align-items: center; color: var(--dim); }
.pm-s { font-size: 8px; color: var(--dim); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.pm.ready .pm-s { color: var(--green); }

#auth { background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 75%); }
.auth-box { width: min(400px, 92vw); align-items: stretch; }
.auth-box input { width: 100%; }
.seg { display: flex; gap: 4px; background: #0a0402; border: 3px solid #0e0603; padding: 4px; }
.seg button { flex: 1; font-family: inherit; font-size: 10px; color: var(--dim); background: transparent; border: none; padding: 10px 8px; cursor: pointer; text-shadow: var(--sh); }
.seg button.on { color: #fff; background: linear-gradient(#7a4520, #4a2410); box-shadow: inset 0 0 0 2px #a8642e; }
.seg.wrap { flex-wrap: wrap; }
.seg.wrap button { flex: 1 1 auto; }

#tab-shop.on, #tab-coll.on, #tab-friends.on, #tab-profile.on { background: rgba(7,5,4,0.86); }
.rchip { font-size: 8px; padding: 3px 6px; background: var(--rc); border: 2px solid #0e0603; text-shadow: 1px 1px 0 #000; }

.coll-body { width: min(1180px, 100%); display: flex; flex-direction: column; gap: 22px; padding-bottom: 30px; }
.ci-prev { width: 110px; height: 80px; }

.fr-rows { display: flex; flex-direction: column; gap: 10px; }
.fr-row { display: flex; align-items: center; gap: 10px; }
.fr-row .pcard { flex: 1; }
.fr-row:not(.on) .pcard { filter: grayscale(0.7) brightness(0.7); }
.fr-btns { display: flex; flex-direction: column; gap: 6px; }
.fr-req { display: flex; flex-direction: column; gap: 8px; }
.fr-reqrow { display: flex; align-items: center; gap: 8px; font-size: 10px; background: rgba(0,0,0,0.35); padding: 6px; border: 2px solid #3a2414; }
.fr-reqrow span { flex: 1; text-shadow: var(--sh); }
.btn.ghost2 { background: linear-gradient(#3a2414, #1a0c06); box-shadow: inset 0 0 0 2px #5a3a1a, 0 3px 0 #0e0603; }

.sub2.wide { grid-column: 1 / -1; }

.ava2 { --s: 48px; position: relative; display: inline-block; width: var(--s); height: var(--s); border-radius: 50%; flex: none; background: #222; }
.ava2 img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; image-rendering: pixelated; display: block; z-index: 1; }
.ava2 .fr-ring { position: absolute; inset: -6px; border-radius: 50%; z-index: 0; }
.ava2.cosSpin .fr-ring { animation: cosSpin 3s linear infinite; }
.ava2.cosGlint { animation: cosGlint 2.4s ease-in-out infinite; }
.ava2.cosPulse { animation: cosPulseF 1.4s ease-in-out infinite; }
.ava2.cosFire { animation: cosFireF 0.5s steps(2) infinite; }
@keyframes cosSpin { to { transform: rotate(360deg); } }
@keyframes cosGlint { 50% { filter: brightness(1.35); } }
@keyframes cosPulseF { 50% { filter: brightness(1.4) saturate(1.3); } }
@keyframes cosFireF { 50% { filter: brightness(1.2) hue-rotate(-12deg); } }
.nk { display: inline-block; white-space: nowrap; }
@keyframes cosNick { to { background-position: 200% 0; } }
.pcard { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.pc-ban { height: 38px; }
.pcard.big .pc-ban { height: 92px; }
.pc-body { display: flex; align-items: flex-end; gap: 10px; padding: 0 10px 10px; margin-top: -22px; position: relative; }
.pcard.big .pc-body { margin-top: -48px; gap: 14px; padding: 0 16px 16px; }
.pc-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-bottom: 2px; }
.pc-nick { font-size: 12px; text-shadow: var(--sh); overflow: hidden; text-overflow: ellipsis; }
.pcard.big .pc-nick { font-size: 18px; }
.pc-sub { font-size: 8px; color: var(--dim); display: flex; gap: 10px; }
.cosScroll { animation: cosScroll 2s linear infinite; }
.cosHeat { animation: cosHeat 1.6s ease-in-out infinite; }
.cosDrift { animation: cosDrift 18s linear infinite; }
.cosSpinBg { animation: cosHeat 3s ease-in-out infinite; }
.cosShine { background-size: 200% 100% !important; animation: cosShine 3s linear infinite; }
.cosStatic { animation: cosStatic 0.2s steps(3) infinite; }
.cosHolo { animation: cosHolo 4s linear infinite; }
@keyframes cosScroll { to { background-position: 0 40px; } }
@keyframes cosHeat { 50% { filter: brightness(1.25) saturate(1.2); } }
@keyframes cosDrift { to { background-position: 200px 0; } }
@keyframes cosShine { to { background-position: -200% 0; } }
@keyframes cosStatic { 33% { background-position: 0 1px; } 66% { background-position: 0 2px; } }
@keyframes cosHolo { to { filter: hue-rotate(360deg); } }
.pv-ban { width: 110px; height: 56px; border: 3px solid #0e0603; display: block; }
.pv-card { width: 92px; height: 70px; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 2px solid #0e0603; }
.pv-card i { display: block; width: 26px; height: 26px; border-radius: 50%; background: #3a2414; }
.pv-card b { display: block; height: 8px; width: 60%; background: rgba(255,255,255,0.4); }
.pv-font { font-size: 22px; text-shadow: none; white-space: nowrap; }
.pv-kill { font-size: 10px; color: #fff; text-shadow: 2px 2px 0 #000; padding: 14px 8px; background: radial-gradient(circle, rgba(255,120,40,0.6), transparent 70%); }
.pv-kill.k-coins { background: radial-gradient(circle, rgba(255,210,60,0.7), transparent 70%); }
.pv-kill.k-lightning, .pv-kill.k-ice { background: radial-gradient(circle, rgba(140,210,255,0.7), transparent 70%); }
.pv-kill.k-hole, .pv-kill.k-mogged, .pv-kill.k-skull { background: radial-gradient(circle, rgba(160,40,255,0.6), transparent 70%); }
.pv-trail { width: 100px; height: 30px; position: relative; display: block; }
.pv-trail i { position: absolute; left: 0; right: 30px; top: 9px; height: 12px; background: linear-gradient(90deg, transparent, var(--tc)); filter: drop-shadow(0 0 6px var(--tc)); }
.pv-trail::after { content: ''; position: absolute; right: 8px; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: #c8b896; border: 3px solid #0e0603; }
.pv-trail.rb i { background: linear-gradient(90deg, transparent, #ff3030, #ffe830, #40e060, #30b0ff, #ff40c0); }
.pv-rim { width: 56px; height: 56px; border-radius: 50%; display: block; background: radial-gradient(circle at 35% 30%, #fff 0 6%, #8a7a63 20%, #3a2a1a 70%); box-shadow: inset 0 0 0 6px var(--rc2), 0 0 14px var(--rc2); }
.pv-rim.holo { box-shadow: inset 0 0 0 6px #fff, 0 0 16px #c080ff; animation: cosHolo 3s linear infinite; }

.g-banners { position: absolute; top: 96px; left: 14px; display: flex; flex-direction: column; gap: 8px; width: 230px; }
.odds { top: 96px; }
.g-pity { font-size: 10px; color: var(--dim); text-shadow: var(--sh); background: rgba(14,6,3,0.85); border: 3px solid #0e0603; padding: 8px 12px; }
.g-pity b { font-weight: normal; color: var(--gold); }
.rv-prev { display: none; }
.rv-prev.cos, .rv-prev.st { display: flex; width: 160px; height: 110px; align-items: center; justify-content: center; position: relative; }
.rv-prev.cos .pv-ban { width: 150px; height: 80px; }
.rv-prev.cos .ava2 { --s: 80px !important; }
.card.cos-card .cos-art { display: flex; align-items: center; justify-content: center; background: #120a06; position: relative; }
.card.cos-card .ab { min-height: 0; }

#hud .team { display: flex; flex-direction: column; gap: 8px; width: min(40vw, 460px); }
#hud .team.op { align-items: flex-end; }
#hud .team .plate { width: 100%; }
#hud.multi .plate { gap: 8px; }
#hud.multi .plate .ava { width: 44px; height: 44px; border-width: 3px; }
#hud.multi .plate .abl, #hud.multi .plate .pnick { display: none; }
#hud.multi .plate .nm { font-size: 10px; }
#hud.multi .plate .bar { height: 16px; }
#hud.multi .plate .bar .num { font-size: 8px; }
#hud.multi .plate .prow { display: none; }
#hud .plate.bench { opacity: 0.45; filter: grayscale(0.6); transform: scale(0.88); transform-origin: left top; }
#hud .team.op .plate.bench { transform-origin: right top; }
#hud .plate.dead { opacity: 0.3; filter: grayscale(1); transform: scale(0.8); }
#hud .plate.dead .ava::after { content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, transparent 45%, #d82a1a 45% 55%, transparent 55%); }
#hud .plate .ava { position: relative; }
.mid-c { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.xspd { font-size: 10px; color: #fff; background: #c82a1a; border: 2px solid #0e0603; padding: 3px 6px; animation: pulse 0.8s infinite; }
.rsc { font-size: 26px; text-shadow: 3px 3px 0 #000; color: var(--gold); min-width: 30px; text-align: center; }
#hearts0 .rsc { color: var(--green); }
#hearts1 .rsc { color: var(--red); }


#stk-wheel { position: fixed; z-index: 33; width: 0; height: 0; pointer-events: none; }
#stk-wheel .ew-ring { position: absolute; left: -168px; top: -168px; width: 336px; height: 336px; border-radius: 50%; background: radial-gradient(circle, rgba(14,6,3,0) 0 52px, rgba(14,6,3,0.82) 53px 160px, rgba(14,6,3,0) 161px); animation: ewIn 0.16s cubic-bezier(.3,1.6,.5,1); }
#stk-wheel .ew-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 3px solid #6a3a1a; box-shadow: 0 0 0 3px #0e0603, inset 0 0 0 3px #0e0603; }
#stk-wheel .ew-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from calc(var(--ang, 0deg) - 22deg), rgba(255,170,60,0.32) 0 44deg, transparent 44deg); -webkit-mask: radial-gradient(circle, transparent 0 54px, #000 55px 158px, transparent 159px); mask: radial-gradient(circle, transparent 0 54px, #000 55px 158px, transparent 159px); opacity: 0; transition: opacity 0.1s; }
#stk-wheel.aim .ew-ring::after { opacity: 1; }
#stk-wheel .ew-hub { position: absolute; left: -50px; top: -50px; width: 100px; height: 100px; border-radius: 50%; background: #120a06; box-shadow: 0 0 0 3px #0e0603, 0 0 0 5px #a8642e; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; animation: ewIn 0.16s cubic-bezier(.3,1.6,.5,1); }
#stk-wheel .ew-hub b { font-weight: normal; font-size: 8px; line-height: 1.5; color: var(--gold); text-shadow: 2px 2px 0 #000; padding: 0 8px; }
#stk-wheel .ew-hub span { font-size: 6px; color: var(--dim); line-height: 1.5; padding: 0 8px; }
#stk-wheel .ew-slot { position: absolute; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(0,0,0,0.4); box-shadow: 0 0 0 2px #0e0603, 0 0 0 4px var(--rc); pointer-events: auto; cursor: pointer; animation: ewSlot 0.22s cubic-bezier(.3,1.7,.5,1) both; transition: transform 0.1s, box-shadow 0.1s; }
#stk-wheel .ew-slot i { position: absolute; inset: 6px; display: block; }
#stk-wheel .ew-slot.on { transform: scale(1.28); box-shadow: 0 0 0 2px #0e0603, 0 0 0 5px #fff, 0 0 26px var(--rc); z-index: 2; }
@keyframes ewIn { from { transform: scale(0.5); opacity: 0; } }
@keyframes ewSlot { from { transform: scale(0.2); opacity: 0; } }
#stk-layer { position: fixed; inset: 0; pointer-events: none; z-index: 27; }
.stk-pop { position: absolute; width: 132px; height: 132px; top: 150px; animation: stkIn 0.35s cubic-bezier(.3,1.8,.5,1); }
.stk-pop.me { left: 6vw; }
.stk-pop.op { right: 6vw; }
.stk-pop.out { opacity: 0; transform: scale(0.6); transition: opacity 0.35s, transform 0.35s; }
@keyframes stkIn { from { transform: scale(0.2); opacity: 0; } }

#invite { position: fixed; right: 16px; bottom: 16px; z-index: 35; width: 320px; align-items: stretch; animation: slam 0.3s ease-out; }
#invite .pcard { width: 100%; }

.cap.small { font-size: 9px; margin-top: 6px; }
@media (max-width: 1100px) { .rg-cols { grid-template-columns: 1fr; } .tabs button { padding: 9px 8px; font-size: 10px; } .tb-music { display: none !important; } }
.chat-row b .nk { font-size: 13px; filter: drop-shadow(1px 1px 0 #000) drop-shadow(-1px 0 0 #000); }
