/* HorizonRP App – wygląd. Kolory, czcionki i zaokrąglenia przychodzą z motywu (theme.js). */
:root {
  --ink: #fff8f1; --soft: rgba(217, 204, 211, .86); --accent: #ffd329; --accent2: #ff7316; --on-accent: #1c0833;
  --glass: rgba(28, 8, 51, .68); --glass-solid: rgba(28, 8, 51, .96); --line: rgba(255, 248, 241, .16);
  --blur: 22px; --radius: 22px; --radius-s: 12px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif; --head: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --sky: linear-gradient(135deg, #5b12c9, #c4157a 50%, #ff5a1f); --dim: rgba(0, 0, 0, .35);
  --blob1: #8b2cff; --blob2: #ff7a00; --blob3: #ff1744; --blob4: #ffe12b; --speed: 1;
  --hot: linear-gradient(100deg, var(--accent), var(--accent2));
  --red: #f3234f; --green: #3ddc84; --amber: #ffb020; --grey: #6f687c;
  --ease: cubic-bezier(.22, .9, .24, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font: 500 15px/1.55 var(--font); color: var(--ink); background: #2a0b4f;
  display: flex; flex-direction: column; height: 100dvh; overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button, a { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4, .brand-name, .brand-sub { font-family: var(--head); line-height: 1.25; }

/* --- animowane tło --- */
/* Kolory tła i plam są zarejestrowane jako kolory, więc przy zmianie sekcji płynnie się przenikają. */
@property --bg1 { syntax: '<color>'; inherits: true; initial-value: #5b12c9; }
@property --bg2 { syntax: '<color>'; inherits: true; initial-value: #c4157a; }
@property --bg3 { syntax: '<color>'; inherits: true; initial-value: #ff5a1f; }
@property --bg-angle { syntax: '<angle>'; inherits: true; initial-value: 135deg; }
@property --blob1 { syntax: '<color>'; inherits: true; initial-value: #8b2cff; }
@property --blob2 { syntax: '<color>'; inherits: true; initial-value: #ff7a00; }
@property --blob3 { syntax: '<color>'; inherits: true; initial-value: #ff1744; }
@property --blob4 { syntax: '<color>'; inherits: true; initial-value: #ffe12b; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #ffd329; }
@property --accent2 { syntax: '<color>'; inherits: true; initial-value: #ff7316; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #fff8f1; }
:root { transition: --bg1 .9s ease, --bg2 .9s ease, --bg3 .9s ease, --bg-angle .9s ease, --blob1 .9s ease, --blob2 .9s ease, --blob3 .9s ease, --blob4 .9s ease, --accent .6s ease, --accent2 .6s ease, --ink .6s ease; }
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(var(--bg-angle), var(--bg1), var(--bg2) 50%, var(--bg3)); }
body[data-bg="solid"] .sky { background: var(--bg1); }
body[data-bg="image"] .sky { background: var(--sky-image) center / cover no-repeat; }
.sky::after { content: ""; position: absolute; inset: 0; background: var(--dim); pointer-events: none; }
.sky i { position: absolute; will-change: transform; display: none; }
body[data-anim="aurora"] .sky i { display: block; width: 75vmax; height: 75vmax; border-radius: 50%; }
body[data-anim="aurora"] .sky i:nth-child(1) { background: radial-gradient(circle, var(--blob1) 0%, transparent 65%); top: -30vmax; left: -20vmax; animation: drift calc(19s / var(--speed)) ease-in-out infinite alternate; }
body[data-anim="aurora"] .sky i:nth-child(2) { background: radial-gradient(circle, var(--blob2) 0%, transparent 65%); bottom: -35vmax; left: 10vw; animation: drift calc(23s / var(--speed)) -6s ease-in-out infinite alternate-reverse; }
body[data-anim="aurora"] .sky i:nth-child(3) { background: radial-gradient(circle, var(--blob3) 0%, transparent 65%); top: -10vmax; right: -30vmax; animation: drift calc(17s / var(--speed)) -3s ease-in-out infinite alternate; }
body[data-anim="aurora"] .sky i:nth-child(4) { background: radial-gradient(circle, var(--blob4) 0%, transparent 60%); bottom: -40vmax; right: -20vmax; animation: drift calc(27s / var(--speed)) -11s ease-in-out infinite alternate-reverse; }
@keyframes drift { 50% { transform: translate(18vw, 10vh) scale(1.18); } 100% { transform: translate(-12vw, 22vh) scale(.88); } }
body[data-anim="orbs"] .sky i { display: block; width: 26vmax; height: 26vmax; border-radius: 50%; filter: blur(2px); opacity: .85; }
body[data-anim="orbs"] .sky i:nth-child(1) { background: radial-gradient(circle at 30% 30%, var(--blob1), transparent 70%); left: 8%; top: 12%; animation: float calc(14s / var(--speed)) ease-in-out infinite alternate; }
body[data-anim="orbs"] .sky i:nth-child(2) { background: radial-gradient(circle at 30% 30%, var(--blob2), transparent 70%); right: 10%; top: 8%; animation: float calc(18s / var(--speed)) -4s ease-in-out infinite alternate-reverse; }
body[data-anim="orbs"] .sky i:nth-child(3) { background: radial-gradient(circle at 30% 30%, var(--blob3), transparent 70%); left: 30%; bottom: 4%; animation: float calc(16s / var(--speed)) -8s ease-in-out infinite alternate; }
body[data-anim="orbs"] .sky i:nth-child(4) { background: radial-gradient(circle at 30% 30%, var(--blob4), transparent 70%); right: 22%; bottom: 14%; width: 18vmax; height: 18vmax; animation: float calc(20s / var(--speed)) -2s ease-in-out infinite alternate-reverse; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8vw, -9vh) scale(1.15); } 100% { transform: translate(-7vw, 6vh) scale(.92); } }
body[data-anim="grid"] .sky::before {
  content: ""; position: absolute; inset: -60px; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .11) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .11) 1px, transparent 1px);
  background-size: 56px 56px; animation: grid calc(7s / var(--speed)) linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 78%);
}
body[data-anim="grid"] .sky i:nth-child(1), body[data-anim="grid"] .sky i:nth-child(3) { display: block; width: 60vmax; height: 60vmax; border-radius: 50%; opacity: .55; }
body[data-anim="grid"] .sky i:nth-child(1) { background: radial-gradient(circle, var(--blob1), transparent 65%); top: -25vmax; left: -15vmax; animation: drift calc(26s / var(--speed)) ease-in-out infinite alternate; }
body[data-anim="grid"] .sky i:nth-child(3) { background: radial-gradient(circle, var(--blob3), transparent 65%); bottom: -25vmax; right: -15vmax; animation: drift calc(30s / var(--speed)) -9s ease-in-out infinite alternate-reverse; }
@keyframes grid { to { transform: translateY(56px); } }
body[data-anim="stars"] .sky i:nth-child(1), body[data-anim="stars"] .sky i:nth-child(2) { display: block; inset: 0; width: 100%; height: 100%; }
body[data-anim="stars"] .sky i:nth-child(1) {
  background-image: radial-gradient(1.6px 1.6px at 20px 30px, #fff, transparent), radial-gradient(1.2px 1.2px at 90px 110px, #fff, transparent), radial-gradient(1.8px 1.8px at 150px 60px, var(--blob4), transparent), radial-gradient(1.2px 1.2px at 60px 170px, #fff, transparent);
  background-size: 200px 200px; animation: twinkle calc(5s / var(--speed)) ease-in-out infinite alternate, pan calc(90s / var(--speed)) linear infinite;
}
body[data-anim="stars"] .sky i:nth-child(2) {
  background-image: radial-gradient(1px 1px at 40px 70px, #fff, transparent), radial-gradient(1.4px 1.4px at 180px 200px, var(--blob2), transparent), radial-gradient(1px 1px at 250px 40px, #fff, transparent);
  background-size: 330px 330px; animation: twinkle calc(7s / var(--speed)) -2s ease-in-out infinite alternate-reverse, pan calc(140s / var(--speed)) linear infinite;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
@keyframes pan { to { background-position: -400px 800px; } }

/* --- górny pasek --- */
.top {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px;
  margin: 12px 12px 0; padding: 12px 18px; flex: none;
  background: var(--glass); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.brand { color: inherit; text-decoration: none; display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; column-gap: 8px; }
.brand-name { font-size: 21px; font-weight: 800; }
.brand-sub { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .12em; }
.logo { grid-column: 1 / -1; width: 205px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2.1; stroke-linejoin: round; stroke-linecap: round; overflow: visible; }
.logo path { stroke-dasharray: 100; }
.logo-symbol { stroke: var(--accent2); }
.logo g.on path { filter: drop-shadow(0 0 5px var(--accent)); }
.nav { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nav-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav-label { flex: none; font: 800 11px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.chip-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 4px 3px; min-width: 0; }
.chip {
  flex: none; display: inline-flex; align-items: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .07);
  border-radius: 999px; transition: transform .25s var(--ease), background .25s, box-shadow .25s; color: var(--i-color, var(--ink));
}
.chip:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .16); }
.chip-main { border: 0; background: none; padding: 8px 17px; font-weight: 700; white-space: nowrap; border-radius: 999px; color: inherit; display: inline-flex; gap: 6px; align-items: center; }
.chip.active { background: linear-gradient(100deg, var(--i-bg1, var(--i-accent, var(--accent))), var(--i-bg2, var(--i-bg1, var(--i-accent, var(--accent2))))); color: var(--i-color, var(--on-accent)); border-color: transparent; box-shadow: 0 6px 22px color-mix(in srgb, var(--i-accent, var(--accent2)) 55%, transparent); }
.chip-gear { border: 0; background: none; width: 26px; height: 26px; margin-right: 5px; border-radius: 50%; display: grid; place-items: center; color: inherit; opacity: .8; }
.chip-gear:hover { background: rgba(0, 0, 0, .18); opacity: 1; }
.emoji { font-size: 1.05em; line-height: 1; }
.account { display: flex; align-items: center; gap: 10px; justify-self: end; flex-wrap: wrap; justify-content: flex-end; }

/* --- przyciski --- */
.btn {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .08); padding: 9px 17px; border-radius: var(--radius-s); font-weight: 700;
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .2s var(--ease), background .2s, filter .2s, border-color .2s;
}
.btn:hover { background: rgba(255, 255, 255, .18); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: wait; transform: none; }
.btn.primary { background: var(--hot); color: var(--on-accent); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { background: var(--red); border-color: transparent; color: #fff; }
.btn.dashed { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 11px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn[aria-pressed="true"] { border-color: var(--accent); }
.btn.round { width: 46px; height: 46px; padding: 0; border-radius: 50%; }
.btn.round.off, .icon.off { background: var(--red); color: #fff; }
.icon {
  border: 0; background: transparent; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 9px;
  display: inline-grid; place-items: center; transition: background .2s; color: inherit;
}
.icon:hover { background: rgba(255, 255, 255, .16); }
.icon.hangup:hover { background: var(--red); }
.link { border: 0; background: none; color: var(--soft); font-size: 13px; font-weight: 700; padding: 2px 4px; border-radius: 6px; }
.link:hover { color: var(--accent); }
.ico { flex: none; }

/* --- układ --- */
.stage { flex: 1; min-height: 0; display: flex; padding: 12px; position: relative; }
.sidebar {
  flex: none; width: 290px; margin-right: 12px; overflow: hidden;
  background: var(--glass); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); border: 1px solid var(--line); border-radius: var(--radius);
  transition: width .45s var(--ease), margin .45s var(--ease), opacity .3s, visibility 0s;
}
.sidebar.folded { width: 0; margin: 0; opacity: 0; border-width: 0; visibility: hidden; transition: width .45s var(--ease), margin .45s var(--ease), opacity .3s, visibility 0s .45s; }
.sidebar-inner { width: 288px; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 12px; }
.sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sidebar-head h2 { font-size: 15px; overflow-wrap: anywhere; padding-top: 5px; }
.tools { display: flex; gap: 10px; }
.tools:empty { display: none; }
.channels { list-style: none; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; padding: 3px; min-height: 0; flex: 1; }
.ch { display: flex; flex-direction: column; flex: none; color: var(--i-color, var(--ink)); }
.ch-row { display: flex; align-items: center; gap: 2px; }
.channel {
  flex: 1; min-width: 0; text-align: left; border: 1px solid transparent; background: rgba(255, 255, 255, .06); color: inherit;
  padding: 9px 12px; border-radius: var(--radius-s); font-weight: 700; display: flex; align-items: center; gap: 9px;
  transition: background .2s, border-color .2s, padding .25s var(--ease);
}
.channel .ico { color: var(--i-accent, var(--accent)); }
.ch-name { overflow-wrap: anywhere; flex: 1; }
/* dodatkowe własne ustawienia elementów: czcionka, ramka, efekty */
.ch, .chip, .panel { font-family: var(--i-font, inherit); }
.chip.has-border, .panel.has-border { border-color: var(--i-border); }
.ch.has-border .channel { border-color: var(--i-border); }
.channel:hover { background: rgba(255, 255, 255, .15); padding-left: 16px; }
.channel.open { border-color: var(--i-accent, var(--accent2)); background: color-mix(in srgb, var(--i-accent, var(--accent2)) 24%, transparent); }
.ch.styled-bg .channel { background: linear-gradient(120deg, color-mix(in srgb, var(--i-bg1, var(--i-bg2)) 70%, transparent), color-mix(in srgb, var(--i-bg2, var(--i-bg1)) 70%, transparent)); }
.ch-gear { opacity: 0; transition: opacity .2s; }
.ch:hover .ch-gear, .ch-gear:focus-visible { opacity: 1; }
.ch-voice { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 2px 26px; }
.ch-voice:empty { display: none; }
.mini { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 3px 6px; border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 600; text-align: left; }
.mini:hover { background: rgba(255, 255, 255, .1); }
.mini-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini.speaking .avatar, .voice-tile.speaking .avatar { box-shadow: 0 0 0 3px var(--green), 0 0 16px rgba(61, 220, 132, .65); }
.hint { color: var(--soft); padding: 8px 2px; list-style: none; }
.sidebar .btn.wide { flex: none; }
.reveal {
  flex: none; width: 0; opacity: 0; visibility: hidden; overflow: hidden; border: 0; border-radius: 16px; color: inherit;
  background: var(--glass); writing-mode: vertical-rl; font-weight: 800; white-space: nowrap;
  transition: width .45s var(--ease), margin .45s var(--ease), opacity .3s;
}
.sidebar.folded + .reveal { width: 44px; margin-right: 12px; opacity: 1; visibility: visible; }
.voice-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--radius-s); background: color-mix(in srgb, var(--green) 18%, transparent); border: 1px solid color-mix(in srgb, var(--green) 45%, transparent); }
.voice-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.voice-bar-text b { font-size: 13px; color: var(--green); }
.voice-bar-text small { color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-bar-buttons { display: flex; }
.user-card { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: var(--radius-s); background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.user-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; color: inherit; padding: 2px 4px; border-radius: 10px; }
.user-info:hover { background: rgba(255, 255, 255, .1); }
.user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.user-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-text small { color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-visitor { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px; color: var(--soft); }

/* --- awatary i statusy --- */
.avatar { position: relative; display: inline-grid; place-items: center; border-radius: 50%; flex: none; font-weight: 800; color: #fff; user-select: none; transition: box-shadow .2s; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.dot { position: absolute; right: -2px; bottom: -2px; width: 32%; height: 32%; min-width: 9px; min-height: 9px; border-radius: 50%; border: 2px solid #20093a; background: var(--grey); }
.menu .dot { position: static; width: 11px; height: 11px; border: 0; flex: none; }
.dot.online { background: var(--green); }
.dot.dnd { background: var(--red); }
.dot.idle { background: var(--amber); }
.dot.offline { background: var(--grey); }

/* --- osoby (prawy panel) --- */
.people { flex: none; width: 280px; margin-left: 12px; overflow: hidden; background: var(--glass); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); border: 1px solid var(--line); border-radius: var(--radius); transition: width .45s var(--ease), margin .45s var(--ease), opacity .3s, visibility 0s; }
.people.closed { width: 0; margin-left: 0; opacity: 0; border-width: 0; visibility: hidden; transition: width .45s var(--ease), margin .45s var(--ease), opacity .3s, visibility 0s .45s; }
.people-inner { width: 278px; height: 100%; display: flex; flex-direction: column; padding: 14px 10px; gap: 6px; }
.people-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.people-head h2 { font-size: 14px; }
.people-list { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; min-height: 0; }
.people-title { font: 800 11px/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding: 4px 8px; }
.people-rows { display: flex; flex-direction: column; gap: 2px; }
.person { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; color: inherit; padding: 5px 8px; border-radius: 10px; transition: background .2s, opacity .3s; }
.person:hover { background: rgba(255, 255, 255, .1); }
.person.offline { opacity: .5; }
.person-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; flex: 1; }
.person-text .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-text small { color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duty { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--green); }

/* --- panele kanałów --- */
.deck { flex: 1; min-width: 0; display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; }
.empty { margin: auto; text-align: center; padding: 32px; max-width: 520px; background: var(--glass); border-radius: var(--radius); backdrop-filter: blur(var(--blur)); }
.empty h1 { font-size: clamp(20px, 3vw, 30px); margin-bottom: 10px; }
.empty p { color: var(--soft); }
.panel {
  flex: 1 0 380px; max-width: 100%; min-width: 0; overflow: hidden; display: flex; flex-direction: column; position: relative;
  background: var(--glass); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--i-color, var(--ink)); --local: var(--i-accent, var(--accent));
  transition: flex-basis .45s var(--ease), flex-grow .45s var(--ease), max-width .45s var(--ease), opacity .35s, transform .45s var(--ease), margin .45s var(--ease);
}
.panel.styled-bg { background: linear-gradient(160deg, color-mix(in srgb, var(--i-bg1, var(--i-bg2)) 80%, transparent), color-mix(in srgb, var(--i-bg2, var(--i-bg1)) 80%, transparent)); }
.panel.closed { flex: 0 0 0px; max-width: 0; opacity: 0; transform: translateX(40px) scale(.96); margin-left: -12px; border-width: 0; pointer-events: none; }
.panel.folded { flex: 0 0 58px; max-width: 58px; }
.panel.flash { animation: flash .8s; }
@keyframes flash { 30% { box-shadow: inset 0 0 0 3px var(--local); } }
.panel.dragging::after {
  content: "Upuść pliki tutaj"; position: absolute; inset: 8px; display: grid; place-items: center; pointer-events: none;
  border: 3px dashed var(--local); border-radius: 16px; background: var(--glass-solid); font-weight: 800;
}
.panel-head { display: flex; align-items: center; gap: 4px; padding: 12px 10px 12px 18px; border-bottom: 1px solid var(--line); }
.panel-title { flex: 1; min-width: 0; }
.panel-title h3 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.panel-title h3 .ico { color: var(--local); }
.panel-title small { display: block; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-body, .composer, .guest { transition: opacity .25s; }
.panel.folded .panel-body, .panel.folded .composer, .panel.folded .guest, .panel.folded .tools-inline, .panel.folded .close, .panel.folded .settings { display: none; }
.panel.folded .panel-head { flex-direction: column; height: 100%; padding: 10px 0; border: 0; }
.panel.folded .panel-title { writing-mode: vertical-rl; overflow: hidden; min-height: 0; }
.panel.folded .panel-title small { display: none; }
.panel.folded .fold { order: -1; }
.tools-inline { display: flex; }
.panel-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; background: rgba(255, 255, 255, .08); border-radius: 6px 18px 18px 18px; padding: 12px 14px; }
.msg.new { animation: rise .45s var(--ease); }
.msg.leaving { animation: rowOut .4s var(--ease) forwards; overflow: hidden; }
.msg.announce { border-left: 4px solid var(--local); background: linear-gradient(100deg, color-mix(in srgb, var(--local) 20%, transparent), rgba(255, 255, 255, .06)); border-radius: 6px 18px 18px 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.who-link { border: 0; background: none; padding: 0; align-self: start; border-radius: 50%; }
.who-link:hover .avatar { box-shadow: 0 0 0 2px var(--local); }
.msg-main { min-width: 0; }
.msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.name { color: var(--accent); overflow-wrap: anywhere; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.title-tag { background: var(--hot); color: var(--on-accent); border-radius: 6px; padding: 0 7px; font-size: 11px; font-weight: 800; }
.guest-tag { background: rgba(255, 255, 255, .2); border-radius: 6px; padding: 0 7px; font-size: 11px; font-weight: 800; }
.role-tag { border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; font-size: 11px; font-weight: 700; }
.banned-tag { background: var(--red); border-radius: 6px; padding: 0 7px; font-size: 11px; font-weight: 800; color: #fff; }
.note { font-size: 12px; color: var(--soft); }
.msg-head time { color: var(--soft); font-size: 12px; }
.msg-head .tools-inline { margin-left: auto; }
.msg-text { overflow-wrap: anywhere; max-width: 75ch; }
.msg-text .p { white-space: pre-wrap; }
.msg-text .md-h1, .msg-text .md-h2, .msg-text .md-h3 { margin: 8px 0 4px; }
.msg-text .md-h1 { font-size: 23px; }
.msg-text .md-h2 { font-size: 19px; }
.msg-text .md-h3 { font-size: 16px; }
.msg-text .subtext { display: block; font-size: 12px; color: var(--soft); }
.msg-text ul, .msg-text ol { padding-left: 24px; margin: 2px 0; }
.msg-text blockquote { border-left: 4px solid var(--local); padding-left: 10px; margin: 4px 0; }
.msg-text code { font-family: Consolas, "Courier New", monospace; font-size: .92em; background: rgba(10, 0, 25, .55); border-radius: 5px; padding: 1px 5px; white-space: pre-wrap; }
.codeblock { margin: 6px 0; background: rgba(10, 0, 25, .6); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 0 12px; font-size: 12px; color: var(--soft); }
.codeblock pre { padding: 6px 12px 12px; overflow-x: auto; }
.msg-text .codeblock code { background: none; padding: 0; white-space: pre; }
.stamp { background: rgba(255, 255, 255, .12); border-radius: 5px; padding: 0 4px; }
.spoiler { background: #0b0216; border-radius: 5px; padding: 0 4px; cursor: pointer; }
.spoiler > span { visibility: hidden; }
.spoiler.shown { background: rgba(255, 255, 255, .12); cursor: auto; }
.spoiler.shown > span { visibility: visible; animation: fade .35s; }
.toolbar { display: flex; flex-wrap: wrap; gap: 3px; flex: none; }
.tool { border: 0; background: rgba(255, 255, 255, .08); border-radius: 7px; min-width: 30px; height: 28px; padding: 0 8px; font-size: 13px; font-weight: 700; transition: background .2s; }
.tool:hover, .tool[aria-pressed="true"] { background: var(--hot); color: var(--on-accent); }
.tool:disabled { opacity: .5; }
.t-bold { font-weight: 800; }
.t-italic { font-style: italic; }
.t-under { text-decoration: underline; }
.t-strike { text-decoration: line-through; }
.preview, .help { max-height: 22vh; overflow: auto; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; }
.help { font-size: 12px; white-space: pre-wrap; }
.editing { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.msg-text a { color: var(--local); }
.msg textarea { width: 100%; min-height: 90px; }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumb { border: 0; background: none; border-radius: 12px; overflow: hidden; max-width: 100%; }
.thumb img { display: block; max-width: 100%; height: 160px; object-fit: cover; transition: transform .35s var(--ease); }
.thumb:hover img { transform: scale(1.06); }
.files video { width: 100%; max-height: 320px; border-radius: 12px; }
.files audio { width: 100%; }
.file { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); color: inherit; text-decoration: none; }
.file:hover { background: rgba(255, 255, 255, .12); }
.file span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.file small { color: var(--soft); white-space: nowrap; }
.composer { border-top: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.slow:empty { display: none; }
input, textarea, select { background: rgba(10, 0, 25, .45); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; color: var(--ink); }
select option { background: #20093a; color: #fff; }
textarea { resize: vertical; min-height: 64px; max-height: 40vh; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 110px; overflow-y: auto; }
.chips:empty { display: none; }
.chip-file { display: flex; align-items: center; gap: 4px; background: color-mix(in srgb, var(--accent) 20%, transparent); border-radius: 10px; padding: 2px 4px 2px 10px; font-size: 13px; max-width: 100%; }
.chip-file span { overflow-wrap: anywhere; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.guest { border-top: 1px solid var(--line); padding: 12px 18px; color: var(--soft); font-size: 13px; }

/* --- głos --- */
.voice-room { display: flex; flex-direction: column; gap: 18px; align-items: stretch; min-height: 100%; }
.voice-head { display: flex; align-items: center; gap: 12px; color: var(--local); }
.voice-head div { display: flex; flex-direction: column; color: var(--ink); line-height: 1.3; }
.voice-head small { color: var(--soft); }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.voice-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; border-radius: 16px; background: rgba(255, 255, 255, .08); cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.voice-tile:hover { background: rgba(255, 255, 255, .15); transform: translateY(-2px); }
.voice-tile b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.badge-off { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; }
.voice-empty { flex: 1; display: grid; place-items: center; color: var(--soft); opacity: .55; min-height: 120px; }
.voice-controls { display: flex; gap: 10px; justify-content: center; align-items: center; padding: 6px 0; margin-top: auto; }

/* --- zmiany --- */
.shift-room { display: flex; flex-direction: column; gap: 16px; }
.shift-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); text-align: center; }
.shift-hero.on { background: linear-gradient(135deg, color-mix(in srgb, var(--green) 22%, transparent), rgba(255, 255, 255, .06)); border-color: color-mix(in srgb, var(--green) 55%, transparent); }
.timer { font: 800 clamp(30px, 6vw, 44px)/1 var(--head); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.timer.idle { opacity: .35; }
.live-total { font-weight: 800; color: var(--ink); }
.shift-section { display: flex; flex-direction: column; gap: 6px; }
.shift-section h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-bottom: 2px; }
.shift-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.shift-row > * { position: relative; }
.shift-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift-row .timer { font-size: 15px; font-family: var(--font); font-weight: 800; color: var(--green); }
.shift-row.ranked::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0); background: linear-gradient(90deg, color-mix(in srgb, var(--local) 40%, transparent), transparent); transition: width .6s var(--ease); }
.rank { width: 20px; text-align: center; font-weight: 800; color: var(--soft); }
.shift-log { display: flex; gap: 10px; align-items: baseline; padding: 4px 6px; font-size: 13px; }
.shift-log span:first-child { flex: 1; font-weight: 700; }
.shift-log small { color: var(--soft); }

/* --- okna --- */
.card { background: var(--glass-solid); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); padding: 26px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(10, 0, 30, .55); color: var(--ink); }
.card.wide { width: min(760px, calc(100vw - 20px)); }
dialog { margin: auto; color: var(--ink); }
dialog::backdrop { background: rgba(10, 0, 30, .6); backdrop-filter: blur(5px); }
dialog[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }
dialog h2 { font-size: 19px; margin-bottom: 10px; overflow-wrap: anywhere; }
dialog p { color: var(--soft); }
dialog input:not([type="checkbox"], [type="range"], [type="color"], [type="file"]), dialog select, dialog textarea { width: 100%; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.actions.sticky { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dialog-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 76px); min-height: 0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dialog-head h2 { margin: 0; }
.dialog-body { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 6px; min-height: 0; }
.field { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 13px; }
.field.range input { padding: 0; accent-color: var(--accent); }
.field output { color: var(--accent); }
.theme-section { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 16px; }
.theme-section legend { font-weight: 800; padding: 0 6px; font-size: 13px; }
.theme-section > .note, .theme-section > .check-list, .theme-section > .check, .theme-section > .presets { grid-column: 1 / -1; }
.check-list { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.check input { width: auto; accent-color: var(--accent2); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.color-field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 13px; }
.color-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.color-field.unset input[type="color"] { opacity: .35; }
input[type="color"] { width: 64px; height: 38px; padding: 3px; cursor: pointer; }
.style-fields { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 16px; }
.style-fields legend { font-weight: 800; padding: 0 6px; font-size: 13px; }
.icon-field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 13px; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; overflow-y: auto; padding: 2px; }
.type-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: inherit; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.type-card:hover { transform: translateY(-3px); border-color: var(--accent); background: rgba(255, 255, 255, .12); }
.type-card .ico { width: 26px; height: 26px; color: var(--accent); }
.type-card small { color: var(--soft); line-height: 1.35; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.type-card { padding: 10px 12px; gap: 4px; }
.type-card .ico { width: 22px; height: 22px; }
.wide-note { grid-column: 1 / -1; }

/* --- profil --- */
.card:has(.profile-shell) { padding: 0; width: min(390px, calc(100vw - 24px)); overflow: hidden; }
.profile-shell .actions { margin: 0; padding: 10px 14px 14px; }
.profile { --card-accent: var(--accent); }
.profile-banner { height: 104px; background-size: cover; background-position: center; }
.profile-body { position: relative; padding: 50px 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.profile-avatar { position: absolute !important; top: -44px; left: 16px; box-shadow: 0 0 0 5px var(--glass-solid); }
.profile-name { font: 800 20px/1.2 var(--head); }
.profile-status { color: var(--card-accent); font-weight: 700; }
.profile-bio { color: var(--ink); background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 9px 12px; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; }
.facts dt { color: var(--soft); font-weight: 700; }
.facts dd { font-weight: 700; text-align: right; }
.profile .tags .title-tag { background: var(--card-accent); }
.profile-edit { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; overflow-y: auto; min-height: 0; }
.profile-preview { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; align-self: start; background: rgba(0, 0, 0, .18); position: sticky; top: 0; }
.color-row.wrap { flex-wrap: wrap; }
.login-page { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; overflow: auto; background: rgba(40, 8, 80, .35); backdrop-filter: blur(16px); animation: fade .35s; }
.login-page .card { display: flex; flex-direction: column; gap: 14px; animation: rise .5s var(--ease); }
.login-page label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; }
@keyframes fade { from { opacity: 0; } }
.lightbox { background: transparent; border: 0; max-width: 96vw; max-height: 96dvh; overflow: visible; }
.lightbox img { display: block; max-width: 94vw; max-height: 90dvh; border-radius: 14px; }
.lightbox button { position: absolute; top: 8px; right: 8px; background: var(--glass-solid); color: var(--ink); }
.menu { position: fixed; inset: auto; margin: 0; color: inherit; overflow: visible; z-index: 30; min-width: 230px; background: var(--glass-solid); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 18px 50px rgba(10, 0, 30, .55); animation: pop .2s var(--ease); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: inherit; text-align: left; padding: 8px 10px; border-radius: 9px; font-weight: 700; }
.menu-item:hover { background: rgba(255, 255, 255, .12); }
.menu-item.active { background: rgba(255, 255, 255, .08); }
.menu-item small { margin-left: auto; color: var(--soft); font-weight: 500; font-size: 11px; }
.toasts { position: fixed; inset: auto; margin: 0; border: 0; padding: 0; background: none; color: inherit; overflow: visible; z-index: 40; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { background: var(--ink); color: #1c0833; border-radius: 14px; padding: 12px 16px; font-weight: 700; text-align: center; box-shadow: 0 10px 30px rgba(10, 0, 30, .4); animation: rise .35s var(--ease); }
.toast.error { border-left: 6px solid var(--red); }

/* --- panel zarządzania --- */
.admin { width: min(900px, calc(100vw - 20px)); height: min(760px, calc(100dvh - 20px)); max-height: none; padding: 0; overflow: hidden; }
.admin[open] { display: flex; flex-direction: column; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.admin-head h2 { margin: 0 auto 0 0; }
.btn[aria-selected="true"] { background: var(--hot); color: var(--on-accent); }
.admin-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.item { flex: none; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.item-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--soft); font-size: 13px; overflow-wrap: anywhere; }
.buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.editor-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; animation: rise .35s var(--ease); }
.editor-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 13px; }
.editor-form fieldset { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.editor-form legend { font-weight: 800; padding: 0 4px; }
.editor-form .check { flex-direction: row; align-items: flex-start; gap: 8px; }
.editor-form .check input { width: auto; margin-top: 3px; accent-color: var(--accent2); }
.editor-form .check small { display: block; color: var(--soft); font-weight: 500; }
.editor-form .perm { flex-basis: 100%; }
.editor-form .actions { grid-column: 1 / -1; margin: 0; }
.editor-form input[type="color"] { width: 70px; height: 42px; padding: 4px; }
.with-button { display: flex; gap: 6px; }
.with-button input { flex: 1; min-width: 0; }

/* --- płynne dodawanie i usuwanie --- */
.enter { animation: rowIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.chip-list > .enter { animation-name: chipIn; }
.leaving { pointer-events: none; }
.chip-list > .leaving { animation: chipOut .4s var(--ease) forwards; overflow: hidden; }
.channels > .leaving, .people-list > .leaving, .people-rows > .leaving { animation: rowOut .4s var(--ease) forwards; overflow: hidden; }
@keyframes chipIn { from { opacity: 0; transform: scale(.4) translateY(-10px); max-width: 0; margin-inline: -4px; } to { opacity: 1; transform: none; max-width: 340px; } }
@keyframes chipOut { to { opacity: 0; transform: scale(.4); max-width: 0; margin-inline: -4px; padding: 0; } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-24px) scale(.96); max-height: 0; } to { opacity: 1; transform: none; max-height: 600px; } }
@keyframes rowOut { to { opacity: 0; transform: translateX(-24px) scale(.96); max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; } }

@media (max-width: 1000px) {
  .people { position: fixed; z-index: 8; top: 12px; right: 12px; bottom: 12px; margin: 0; box-shadow: 0 20px 60px rgba(10, 0, 30, .6); background: var(--glass-solid); }
  .people.closed { transform: translateX(110%); }
  .people-toggle span { display: none; }
}
@media (max-width: 760px) {
  .top { grid-template-columns: 1fr auto; gap: 8px 12px; margin: 8px 8px 0; padding: 10px 12px; }
  .nav { grid-column: 1 / -1; grid-row: 2; }
  .logo { width: 150px; }
  .account { gap: 6px; }
  .account .btn { padding: 7px 10px; font-size: 13px; }
  .account .btn span { display: none; }
  .stage { padding: 8px; }
  .sidebar { width: 100%; margin: 0; }
  .sidebar-inner { width: calc(100vw - 18px); }
  .stage:has(.sidebar:not(.folded)) .deck { display: none; }
  .sidebar.folded + .reveal { width: 38px; margin-right: 8px; }
  .deck { scroll-snap-type: x mandatory; gap: 8px; }
  .panel { flex-basis: 100%; scroll-snap-align: start; }
  .panel.closed { margin-left: -8px; }
  .people { top: 8px; right: 8px; bottom: 8px; width: min(300px, calc(100vw - 16px)); }
  .people-inner { width: 100%; }
  .profile-edit { grid-template-columns: 1fr; }
  .profile-preview { position: static; }
  .ch-gear { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- waluty, plusy i minusy na profilu ---------- */
.profile { position: relative; }
.wallet { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: calc(100% - 20px); }
.chip { display: inline-flex; align-items: center; gap: 0; height: 34px; padding: 0 8px; border-radius: 999px; background: rgba(12, 2, 28, .62); border: 1px solid var(--line); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; cursor: pointer; transition: background .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.chip .ico { flex: none; }
.chip-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.05; text-align: left; max-width: 0; opacity: 0; white-space: nowrap; transition: max-width .45s var(--ease), opacity .3s, margin .45s var(--ease); }
.chip-text small { font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--soft); }
.chip-text b { font-size: 13px; font-weight: 800; }
.chip:hover, .chip:focus-visible { background: rgba(12, 2, 28, .86); border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.chip:hover .chip-text, .chip:focus-visible .chip-text { max-width: 190px; opacity: 1; margin-left: 8px; }
.chip-cash .ico { color: #ffd329; }
.chip-gems .ico { color: #5ee7ff; }
.chip-marks .ico { color: #ff8ad8; }
.profile-preview .chip { cursor: default; }
.wallet.open { position: static; justify-content: flex-start; max-width: none; margin: 10px 0 6px; }
.wallet.open .chip { height: 40px; padding: 0 12px; }
.wallet.open .chip-text { max-width: 190px; opacity: 1; margin-left: 8px; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.seg .btn { display: inline-flex; align-items: center; gap: 6px; }
.wallet-body { display: flex; flex-direction: column; gap: 12px; }
.score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.score-box { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.score-box b { font: 800 24px/1 var(--head); }
.score-box small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.score-box.plus b { color: var(--green); }
.score-box.minus b { color: var(--red); }
.score-box.warn b { color: var(--amber); }
.score.big { grid-template-columns: none; justify-items: center; padding: 22px 10px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); gap: 6px; }
.score.big b { font: 800 34px/1 var(--head); }
.score.big small { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.wallet-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wallet-form input { flex: 1 1 140px; min-width: 0; }
.marks { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.mark { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); border-left: 4px solid var(--grey); animation: rowIn .35s var(--ease) both; }
.mark.plus { border-color: var(--green); } .mark.minus { border-color: var(--red); } .mark.warn { border-color: var(--amber); }
.mark-kind { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; min-width: 46px; }
.mark-text { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.mark-text small { color: var(--soft); }

/* ---------- kanał logów ---------- */
.log-room { display: flex; flex-direction: column; gap: 8px; }
.log-filters { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; top: -16px; padding: 4px 0 8px; z-index: 1; }
.log-filters select { flex: 1 1 160px; min-width: 0; }
.log-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border-left: 4px solid var(--grey); animation: rowIn .35s var(--ease) both; }
.log-row.ban { border-color: var(--red); } .log-row.mark { border-color: var(--green); } .log-row.currency { border-color: #ffd329; }
.log-row.account, .log-row.role { border-color: #8b6cff; } .log-row.structure { border-color: #5ee7ff; } .log-row.settings { border-color: var(--amber); } .log-row.content { border-color: #ff8ad8; }
.log-kind { grid-column: 1 / -1; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--soft); }
.log-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.log-row small { color: var(--soft); white-space: nowrap; align-self: end; }

/* okno „Czy masz dostęp?” i logowanie gościa */
.access { gap: 10px; }
.choices { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.choice { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); color: var(--ink); transition: transform .25s var(--ease), background .25s; }
.choice:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .15); }
.choice.primary { background: var(--hot); color: var(--on-accent); border-color: transparent; }
.choice small { opacity: .8; }
.login-tabs { margin-bottom: 0; }
.login-tabs:empty { display: none; }
.login-page label[hidden] { display: none; }

/* obrazy kanałów, kategorii i sekcji */
.panel.has-image { background-image: linear-gradient(rgba(var(--panel-rgb), .6), rgba(var(--panel-rgb), .82)), var(--i-image); background-size: cover; background-position: center; }
.chip.has-image, .chip.has-image.active { background-image: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .5)), var(--i-image); background-size: cover; background-position: center; color: #fff; }
.ch.has-image .channel { background-image: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .55)), var(--i-image); background-size: cover; background-position: center; }

/* długie liczby zawsze mieszczą się i się skalują */
.chip-text { min-width: 0; }
.chip-text b { overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.chip:hover .chip-text, .chip:focus-visible .chip-text { max-width: min(170px, 60vw); }
.score-box, .score.big { container-type: inline-size; min-width: 0; }
.score-box b { font-size: clamp(13px, 22cqw, 24px); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score.big b { font-size: clamp(18px, 14cqw, 40px); max-width: 100%; white-space: nowrap; }
.score.big .exact { font-style: normal; font-size: clamp(10px, 4cqw, 13px); color: var(--soft); max-width: 100%; overflow-wrap: anywhere; text-align: center; }

/* podium */
.stage-room { gap: 14px; }
.stage-section h4 { font: 800 11px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: 8px; }
.voice-grid.small { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.voice-grid.small .voice-tile { padding: 10px 6px 8px; }
.voice-grid.small .avatar { transform: scale(.82); }
.hand-badge { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: #1c0833; animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 50% { transform: rotate(18deg) scale(1.08); } }
.tile-actions { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.tile-actions .btn { width: 100%; justify-content: center; }
.voice-controls { flex-wrap: wrap; }

/* raporty */
.report-room { display: flex; flex-direction: column; gap: 12px; }
.report-top { display: flex; flex-direction: column; gap: 12px; }
.report-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.report-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.report-times label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 12px; }
.report-form textarea { min-height: 90px; resize: vertical; }
.report-sum { font-weight: 800; color: var(--green); }
.report-sum.bad { color: var(--amber); }
.report-list { display: flex; flex-direction: column; gap: 8px; }
.report { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border-left: 4px solid var(--local, var(--accent)); animation: rowIn .35s var(--ease) both; }
.report header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-ms { margin-left: auto; font-weight: 800; color: var(--green); }

/* role z przycisków i kategorie ról */
.rolebar { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .14); }
.rolebar-title { font-size: 13px; }
.rolebar-items { display: flex; flex-wrap: wrap; gap: 8px; }
.role-btn { --role-color: var(--accent); display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--role-color) 55%, transparent); background: rgba(255, 255, 255, .07); font-weight: 700; transition: transform .25s var(--ease), background .25s, border-color .25s; }
.role-btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .16); }
.role-btn.held { background: color-mix(in srgb, var(--role-color) 38%, transparent); border-color: var(--role-color); }
.role-btn .tick { font-style: normal; font-weight: 800; }
.role-rows { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.role-row { display: grid; grid-template-columns: 64px 1fr 1fr auto; gap: 6px; align-items: center; }
.role-cat { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px 4px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font: 800 12px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.role-blocks { display: flex; flex-wrap: wrap; gap: 8px; }
.role-block { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.role-hours { font-weight: 800; color: var(--green); font-size: 12px; }

/* awanse i degradacje */
.promote-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.promote-pick label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 12px; }
.promote-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.promote-row.current { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* Efekty elementów: po wejściu płynnie wchodzą w nieskończoną pętlę (start i koniec każdego cyklu są takie same).
   Używają osobnych właściwości scale / translate / rotate, więc nie psują najechania ani zamykania okien. */
:root { --fx-a: var(--i-accent, var(--accent)); }
@keyframes fxGlow { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 22px 2px color-mix(in srgb, var(--i-accent, var(--accent)) 70%, transparent); } }
@keyframes fxPulse { 0%, 100% { scale: 1; } 50% { scale: 1.045; } }
@keyframes fxFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes fxSway { 0%, 100% { rotate: 0deg; } 25% { rotate: -.9deg; } 75% { rotate: .9deg; } }
@keyframes fxBreathe { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }
@keyframes fxSweep { 0% { translate: -130% 0; } 55%, 100% { translate: 130% 0; } }
@keyframes fxNeon { 0%, 100% { border-color: var(--i-accent, var(--accent)); box-shadow: 0 0 5px var(--i-accent, var(--accent)), 0 0 16px color-mix(in srgb, var(--i-accent, var(--accent)) 55%, transparent); } 50% { border-color: var(--accent2); box-shadow: 0 0 5px var(--accent2), 0 0 16px color-mix(in srgb, var(--accent2) 55%, transparent); } }
@keyframes fxRainbow { 0%, 100% { box-shadow: 0 0 14px hsl(0 90% 60% / .75); } 17% { box-shadow: 0 0 14px hsl(60 90% 55% / .75); } 33% { box-shadow: 0 0 14px hsl(120 80% 55% / .75); } 50% { box-shadow: 0 0 14px hsl(180 85% 55% / .75); } 67% { box-shadow: 0 0 14px hsl(240 90% 65% / .75); } 83% { box-shadow: 0 0 14px hsl(300 85% 60% / .75); } }
.chip[data-fx="glow"]:not(.enter), .ch[data-fx="glow"]:not(.enter) .channel, .panel[data-fx="glow"]:not(.enter):not(.closed) { animation: fxGlow 3.2s ease-in-out infinite; }
.chip[data-fx="pulse"]:not(.enter), .ch[data-fx="pulse"]:not(.enter) .channel, .panel[data-fx="pulse"]:not(.enter):not(.closed) { animation: fxPulse 2.6s ease-in-out infinite; }
.chip[data-fx="float"]:not(.enter), .ch[data-fx="float"]:not(.enter) .channel, .panel[data-fx="float"]:not(.enter):not(.closed) { animation: fxFloat 3.4s ease-in-out infinite; }
.chip[data-fx="sway"]:not(.enter), .ch[data-fx="sway"]:not(.enter) .channel, .panel[data-fx="sway"]:not(.enter):not(.closed) { animation: fxSway 4s ease-in-out infinite; }
.chip[data-fx="breathe"]:not(.enter), .ch[data-fx="breathe"]:not(.enter) .channel, .panel[data-fx="breathe"]:not(.enter):not(.closed) { animation: fxBreathe 3.6s ease-in-out infinite; }
.chip[data-fx="neon"]:not(.enter), .ch[data-fx="neon"]:not(.enter) .channel, .panel[data-fx="neon"]:not(.enter):not(.closed) { animation: fxNeon 3s ease-in-out infinite; }
.chip[data-fx="rainbow"]:not(.enter), .ch[data-fx="rainbow"]:not(.enter) .channel, .panel[data-fx="rainbow"]:not(.enter):not(.closed) { animation: fxRainbow 8s linear infinite; }
.chip[data-fx="shimmer"]:not(.enter), .ch[data-fx="shimmer"]:not(.enter) .channel, .panel[data-fx="shimmer"]:not(.enter):not(.closed) { position: relative; overflow: hidden; }
.chip[data-fx="shimmer"]:not(.enter)::after, .ch[data-fx="shimmer"]:not(.enter) .channel::after, .panel[data-fx="shimmer"]:not(.enter):not(.closed)::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .3) 50%, transparent 68%); animation: fxSweep 3.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { [data-fx], [data-fx] .channel, [data-fx]::after, [data-fx] .channel::after { animation: none !important; } }

.duty-summary { margin: 0 0 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .06); }
.duty-summary[hidden] { display: none; }
.duty-summary summary { cursor: pointer; padding: 9px 12px; font-weight: 800; font-size: 13px; color: var(--green); list-style: none; }
.duty-summary summary::-webkit-details-marker { display: none; }
.duty-summary summary::after { content: '▾'; float: right; transition: transform .25s var(--ease); }
.duty-summary[open] summary::after { transform: rotate(180deg); }
.duty-rows { padding: 0 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.duty-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }

.promote-steps { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.promote-steps .btn { text-align: left; }

/* ===== ekonomia, praca i kasyno ===== */
.eco-room { display: flex; flex-direction: column; gap: 12px; padding: 14px; min-height: 100%; }
.eco-head { display: flex; flex-wrap: wrap; gap: 8px; }
.eco-chip { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); }
.eco-chip small { color: var(--soft); font-size: 11px; }
.eco-chip b { font: 800 15px var(--head); }
.eco-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.eco-tabs .btn.on { background: var(--hot); color: var(--on-accent); border-color: transparent; }
.eco-body { display: block; }
.eco-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.eco-grid > .note { grid-column: 1 / -1; }
.eco-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); min-width: 0; }
.eco-card h4 { font: 800 13px var(--head); letter-spacing: .04em; }
.eco-card ul { padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--soft); }
.eco-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.eco-big > div { display: flex; flex-direction: column; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.eco-big small { color: var(--soft); font-size: 11px; }
.eco-big b { font: 800 clamp(15px, 2.4vw, 22px) var(--head); overflow-wrap: anywhere; }
.eco-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.eco-num { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--soft); }
.eco-num input, .betbox input { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--ink); width: 130px; font: inherit; }
.eco-event { display: flex; gap: 10px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.eco-event small { color: var(--soft); white-space: nowrap; }
.rate { font: 800 18px var(--head); }
.cool { display: flex; align-items: baseline; gap: 10px; }
.cool b { font: 800 16px var(--head); color: var(--amber); }
.cool.ready b { color: var(--green); }
.daily-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px; }
.daily-hero .gift { font-size: 64px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(4deg); } }
.btn.big { padding: 12px 22px; font-size: 16px; }
.rob-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 220px; overflow: auto; }
.rob-pick { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--ink); }
.rob-pick.on { background: var(--hot); color: var(--on-accent); border-color: transparent; }
.game-banner { padding: 12px 14px; border-radius: 12px; font-weight: 800; text-align: center; border: 1px solid var(--line); }
.game-banner.win { background: rgba(61, 220, 132, .22); border-color: var(--green); }
.game-banner.lose { background: rgba(243, 35, 79, .2); border-color: var(--red); }
.game-banner.push { background: rgba(255, 255, 255, .1); }
.game-banner[hidden] { display: none; }
.note.bad { color: var(--red); font-weight: 800; }

/* minigry pracy i crime */
.mg-box { display: flex; flex-direction: column; gap: 10px; }
.mg-arena { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.mg-grid { display: grid; grid-template-columns: repeat(3, 84px); gap: 8px; }
.mg-cell { width: 84px; height: 84px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); transition: background .1s, transform .1s; }
.mg-cell.lit { background: #ffc15e; box-shadow: 0 0 22px #ffc15e; transform: scale(1.06); }
.mg-cell.hit { background: var(--green); }
.mg-pads { display: grid; grid-template-columns: repeat(2, 96px); gap: 10px; }
.mg-pad { height: 96px; border-radius: 18px; border: 0; background: color-mix(in srgb, var(--c) 35%, #1b1230); transition: filter .1s, transform .1s; }
.mg-pad.on { background: var(--c); filter: brightness(1.4); transform: scale(1.05); box-shadow: 0 0 24px var(--c); }
.mg-bar { position: relative; width: min(340px, 80vw); height: 30px; border-radius: 15px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.mg-zone { position: absolute; top: 0; bottom: 0; background: rgba(61, 220, 132, .55); border-radius: 15px; }
.mg-mark { position: absolute; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: #fff; border-radius: 3px; }
.mg-mark.good { background: var(--green); } .mg-mark.bad { background: var(--red); }
.mg-code { font: 800 34px var(--head); letter-spacing: .25em; }
.mg-input { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--ink); font: 800 22px var(--head); letter-spacing: .2em; text-align: center; width: 220px; }

/* lobby kasyna */
.tier-block.zero { border-color: rgba(94, 231, 255, .5); }
.tier-block.low { border-color: rgba(61, 220, 132, .45); }
.tier-block.mid { border-color: rgba(255, 176, 32, .5); }
.tier-block.high { border-color: rgba(243, 35, 79, .55); }
.game-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.game-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); color: var(--ink); text-align: center; transition: transform .2s var(--ease), background .2s; }
.game-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .16); }
.game-card .gi { font-size: 34px; }
.game-card small { color: var(--soft); font-size: 11px; }
.game-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.game-title h3 { font: 800 18px var(--head); }
.tier { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.tier.zero { background: rgba(94, 231, 255, .25); } .tier.low { background: rgba(61, 220, 132, .25); } .tier.mid { background: rgba(255, 176, 32, .25); } .tier.high { background: rgba(243, 35, 79, .3); }
.game-box, .session { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.game-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 160px; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .28); overflow: hidden; position: relative; }
.game-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.betbox { display: flex; flex-wrap: wrap; align-items: end; gap: 6px; }
.betbox label { display: flex; flex-direction: column; font-size: 12px; color: var(--soft); gap: 3px; }
.choices-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.choices-row .btn.on { background: var(--hot); color: var(--on-accent); border-color: transparent; }
.mult-line { font-size: 14px; } .mult-line b { font: 800 26px var(--head); color: var(--accent); }

/* karty */
.cards-row { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.pcard { width: 62px; height: 88px; border-radius: 10px; background: #fff; color: #1b1b24; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.pcard b { font-size: 24px; line-height: 1; } .pcard i { font-size: 22px; font-style: normal; }
.pcard.red { color: #d3213d; }
.pcard.back { background: repeating-linear-gradient(45deg, #3b1c8a, #3b1c8a 6px, #5b2fc9 6px, #5b2fc9 12px); }
.pcard.small { transform: scale(.72); opacity: .7; } .pcard.lost { outline: 3px solid var(--red); }
.bj-hand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.arrow { font-size: 22px; color: var(--soft); }

/* moneta */
.coin { width: 110px; height: 110px; position: relative; transform-style: preserve-3d; }
.coin.small { width: 76px; height: 76px; }
.coin .face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font: 800 36px var(--head); font-style: normal; backface-visibility: hidden; border: 5px solid #b8860b; }
.coin .heads { background: radial-gradient(circle at 30% 30%, #ffe27a, #d9a21e); color: #6b4700; }
.coin .tails { background: radial-gradient(circle at 30% 30%, #e6e6ee, #9a9aab); color: #444; transform: rotateY(180deg); }

/* koło fortuny */
.wheel-wrap { position: relative; width: 220px; height: 220px; }
.wheel-rot { position: absolute; inset: 0; border-radius: 50%; border: 6px solid #3b2a14; box-shadow: 0 0 30px rgba(0, 0, 0, .5); }
.wheel-label { position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -18px; width: 36px; text-align: center; font: 800 11px var(--head); color: #fff; text-shadow: 0 1px 2px #000; transform-origin: 50% 50%; }
.wheel-pin { position: absolute; left: 50%; top: -8px; margin-left: -10px; border: 10px solid transparent; border-top: 22px solid #fff; z-index: 2; }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: #d9a21e; border: 4px solid #3b2a14; z-index: 1; }

/* zdrapka, kamień-papier-nożyce, kości, skrzynie */
.scratch-grid { display: grid; grid-template-columns: repeat(3, 76px); gap: 8px; }
.scratch-cell { height: 76px; border-radius: 12px; display: grid; place-items: center; font-size: 34px; background: rgba(255, 255, 255, .14); }
.scratch-cell.covered { background: repeating-linear-gradient(45deg, #8d8d9c, #8d8d9c 5px, #a9a9b8 5px, #a9a9b8 10px); color: #333; font: 800 26px var(--head); }
.scratch-cell.hit { background: rgba(61, 220, 132, .45); box-shadow: 0 0 16px var(--green); }
.rps-row { display: flex; align-items: center; gap: 22px; } .rps-row > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rps-hand { font-size: 64px; } .rps-hand.flip { transform: scaleX(-1); }
.dice-row { display: flex; gap: 14px; } .die { font-size: 76px; line-height: 1; } .die.big { font-size: 96px; } .die.bad { filter: drop-shadow(0 0 10px var(--red)); }
.chest-row { display: flex; gap: 14px; }
.chest { width: 96px; height: 96px; font-size: 44px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: var(--ink); font-weight: 800; transition: transform .2s; }
.chest:hover { transform: translateY(-4px); } .chest.open.good { background: rgba(61, 220, 132, .3); } .chest.open.bad { background: rgba(243, 35, 79, .25); } .chest.picked { outline: 3px solid var(--accent); }

/* bębny: loteria, automat, jackpot */
.machine { display: flex; gap: 8px; padding: 12px; border-radius: 18px; background: linear-gradient(#2a1a4d, #150c2b); border: 3px solid #d9a21e; position: relative; overflow: hidden; }
.machine.hit { animation: flashWin .4s 3; } .machine.jackpot { box-shadow: 0 0 40px #5de0ff; }
@keyframes flashWin { 50% { box-shadow: 0 0 40px #ffd34d; } }
.reel { overflow: hidden; border-radius: 10px; background: #fff; color: #1b1b24; }
.reel-item { display: grid; place-items: center; font: 800 38px var(--head); }
.machine.slots .reel-item { font-size: 44px; }
.confetti { position: absolute; top: -20px; font-style: normal; animation: fall 2s linear forwards; }
@keyframes fall { to { transform: translateY(220px) rotate(360deg); opacity: 0; } }

/* kości procentowe */
.dice-readout { font: 800 48px var(--head); } .dice-readout.win { color: var(--green); } .dice-readout.lose { color: var(--red); }
.dice-bar { position: relative; width: min(360px, 80vw); height: 22px; border-radius: 11px; background: rgba(243, 35, 79, .35); overflow: hidden; }
.dice-zone { position: absolute; top: 0; bottom: 0; background: rgba(61, 220, 132, .6); }
.dice-marker { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; background: #fff; transition: left .5s var(--ease); left: 50%; }
.dice-controls { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(360px, 80vw); } .dice-controls input { width: 100%; }

/* ruletka */
.roulette-canvas, .plinko-canvas, .crash-canvas { max-width: 100%; height: auto; }
.roulette-table { display: flex; flex-direction: column; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.rt-top { display: flex; gap: 3px; } .rt-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; flex: 1; min-width: 420px; } .rt-cols { display: grid; gap: 3px; }
.rt-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; } .rt-row6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.rt-cell { position: relative; min-height: 34px; padding: 4px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .25); background: #1d5a3a; color: #fff; font-weight: 800; font-size: 12px; }
.rt-cell.red { background: #b32d3a; } .rt-cell.black { background: #15151b; } .rt-cell.green { background: #1f8a4c; align-self: stretch; min-width: 34px; }
.rt-cell.chip::after { content: attr(data-amount); position: absolute; right: -2px; top: -6px; padding: 1px 5px; border-radius: 999px; background: #ffd34d; color: #000; font-size: 10px; }
.bet-total { font-size: 13px; color: var(--soft); text-align: center; }

/* keno, konie */
.keno-grid { display: grid; grid-template-columns: repeat(8, 40px); gap: 5px; }
.keno-cell { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: var(--ink); font-weight: 800; }
.keno-cell.pick { outline: 2px solid var(--accent); } .keno-cell.drawn { background: #5b2fc9; } .keno-cell.hit { background: var(--green); color: #000; }
.lanes { display: flex; flex-direction: column; gap: 6px; width: min(520px, 100%); }
.lane { display: flex; flex-direction: column; gap: 3px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--ink); text-align: left; }
.lane.on { outline: 2px solid var(--accent); } .lane.won { background: rgba(61, 220, 132, .25); }
.lane-name { font-size: 12px; font-weight: 800; }
.track { position: relative; height: 26px; border-bottom: 2px dashed rgba(255, 255, 255, .25); }
.runner { position: absolute; left: 0; top: 0; font-size: 22px; transform: scaleX(-1); } .finish { position: absolute; right: 0; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(#fff 0 4px, #000 4px 8px); }

/* rakieta, miny, wieża, rewolwer, podwój */
.crash-mult { font: 800 38px var(--head); text-align: center; } .crash-mult.boom { color: var(--red); } .crash-mult.cash { color: var(--green); }
.mines-grid { display: grid; grid-template-columns: repeat(5, 54px); gap: 6px; }
.mine-tile { width: 54px; height: 54px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .1); font-size: 26px; transition: transform .15s, background .15s; }
.mine-tile:not(:disabled):hover { transform: scale(1.08); background: rgba(255, 255, 255, .22); }
.mine-tile.safe { background: rgba(61, 220, 132, .3); } .mine-tile.bomb { background: rgba(243, 35, 79, .22); } .mine-tile.boom { background: var(--red); }
.tower { display: flex; flex-direction: column; gap: 5px; }
.tower-row { display: flex; align-items: center; gap: 6px; opacity: .55; } .tower-row.now { opacity: 1; } .tower-row.done { opacity: .9; }
.tower-row small { width: 54px; text-align: right; color: var(--soft); font-size: 11px; }
.tower-tile { width: 64px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .1); font-size: 18px; }
.tower-row.now .tower-tile:not(:disabled):hover { background: rgba(255, 255, 255, .25); } .tower-tile.ok { background: rgba(61, 220, 132, .3); } .tower-tile.trap { background: var(--red); }
.cylinder-wrap { position: relative; width: 150px; height: 150px; }
.cylinder { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #555 0 22%, #2a2a33 23%); border: 5px solid #777; }
.hole { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px; border-radius: 50%; background: #0c0c10; border: 2px solid #999; }
.hole.bullet { background: #d9a21e; }
.barrel { position: absolute; left: 50%; top: -10px; margin-left: -9px; width: 18px; height: 24px; background: #aaa; border-radius: 4px; }
.cylinder-wrap.bang { filter: drop-shadow(0 0 22px var(--red)); }
.ladder { display: flex; gap: 4px; } .ladder i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .15); } .ladder i.on { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
@media (max-width: 560px) { .keno-grid { grid-template-columns: repeat(8, 34px); } .keno-cell { height: 34px; } .mines-grid { grid-template-columns: repeat(5, 46px); } .mine-tile { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .daily-hero .gift, .machine.hit { animation: none; } }

/* sklep i panel ekonomii */
.shop-wrap { grid-column: 1 / -1; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.shop-item { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); transition: transform .2s var(--ease); }
.shop-item:hover { transform: translateY(-3px); } .shop-item.owned { opacity: .65; }
.shop-role { font: 800 17px var(--head); } .shop-price { font: 800 15px var(--head); color: var(--accent); }
.shop-edit { display: flex; flex-direction: column; gap: 8px; }
.shop-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 90px 70px minmax(120px, 2fr) auto; gap: 6px; align-items: end; }
.shop-row select, .shop-row input { padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--ink); font: inherit; width: 100%; }
.shop-row label { display: flex; flex-direction: column; gap: 2px; }
.eco-role { display: grid; gap: 8px; }
@media (max-width: 700px) { .shop-row { grid-template-columns: 1fr 1fr; } }

/* ===== kolejne gry kasyna ===== */
.duel { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.duel-side { display: grid; gap: 6px; justify-items: center; }
.duel .vs { font: 800 20px var(--head); color: var(--soft); }
.die.good { color: var(--green); text-shadow: 0 0 16px var(--green); } .die.bad { color: var(--red); } .die.tie { color: var(--accent); }
.single-card { display: grid; place-items: center; min-height: 118px; }
.pcard.winner { box-shadow: 0 0 22px var(--green); transform: translateY(-4px); }
.bubble-field { display: grid; grid-template-columns: repeat(3, 84px); gap: 12px; }
.bubble { height: 84px; border-radius: 50%; border: 1px solid var(--line); background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .5), rgba(120, 200, 255, .18) 60%); font: 800 20px var(--head); color: var(--ink); transition: transform .2s; }
.bubble:not(.open):hover { transform: scale(1.08); }
.bubble.open.good { background: rgba(61, 220, 132, .3); } .bubble.open.bad { background: rgba(243, 35, 79, .22); } .bubble.picked { outline: 2px solid var(--accent); }
.safe-bar { position: relative; width: min(420px, 90%); height: 26px; border-radius: 14px; background: rgba(243, 35, 79, .25); overflow: hidden; }
.safe-zone { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(61, 220, 132, .45); transition: width .3s; }
.safe-zone.win { background: rgba(61, 220, 132, .8); } .safe-zone.lose { background: rgba(61, 220, 132, .3); }
.safe-marker { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; background: #fff; border-radius: 2px; box-shadow: 0 0 10px #fff; left: 0; }
.safe-label { display: block; margin-top: 10px; }
.lake { position: relative; width: min(360px, 92%); height: 190px; border-radius: 18px; background: linear-gradient(#1b4f7a, #0d2a4a); overflow: hidden; display: grid; place-items: center; }
.lake .wave { position: absolute; left: -10%; right: -10%; height: 3px; background: rgba(255, 255, 255, .25); border-radius: 3px; animation: lakeWave 3s ease-in-out infinite; }
.lake .w1 { top: 38%; } .lake .w2 { top: 62%; animation-delay: -1.4s; }
@keyframes lakeWave { 50% { transform: translateX(26px); } }
.bobber { font-size: 40px; position: relative; z-index: 1; } .catch { position: absolute; font-size: 64px; top: 28px; z-index: 2; }
.cup-row { display: flex; gap: 6px; justify-content: center; }
.cup-slot { width: 86px; height: 110px; display: grid; place-items: end center; position: relative; }
.cup { font-size: 64px; background: none; border: 0; transition: transform .35s; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .4)); position: relative; z-index: 1; }
.cup-slot.lift .cup { transform: translateY(-46px); }
.cup-ball { position: absolute; bottom: 4px; font-size: 28px; z-index: 0; font-style: normal; }
.g-grid { display: grid; gap: 7px; } .g-grid.g4 { grid-template-columns: repeat(4, 62px); }
.g-tile { height: 62px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .1); font: 800 15px var(--head); color: var(--ink); transition: transform .15s, background .15s; }
.g-tile:not(.open):hover { transform: scale(1.07); } .g-tile.pick { outline: 2px solid var(--accent); background: rgba(255, 211, 41, .18); }
.g-tile.open.good { background: rgba(61, 220, 132, .32); } .g-tile.open.bad { background: rgba(243, 35, 79, .22); } .g-tile.dim { opacity: .45; }
.road { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); width: min(560px, 96%); border-radius: 14px; overflow: hidden; background: #2a2a38; }
.road-lane { position: relative; height: 72px; display: grid; place-items: center; font-style: normal; font-size: 11px; color: var(--soft); border-right: 2px dashed rgba(255, 255, 255, .22); }
.road-lane.done { background: rgba(61, 220, 132, .22); } .road-lane.next { background: rgba(255, 211, 41, .14); }
.hen { position: absolute; font-size: 30px; z-index: 2; } .car { position: absolute; top: 20px; font-size: 34px; z-index: 3; }
.ball-field { display: grid; grid-template-columns: repeat(6, 46px); gap: 8px; }
.ball { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .1); font: 800 16px var(--head); color: var(--ink); transition: transform .15s, background .2s; }
.ball.pick { outline: 2px solid var(--accent); } .ball.drawn { background: rgba(94, 231, 255, .35); } .ball.hit { background: var(--green); color: #052; box-shadow: 0 0 16px var(--green); }
.bomb-body { display: grid; gap: 14px; justify-items: center; } .bomb-body > b { font-size: 54px; }
.wire-row { display: flex; gap: 10px; }
.wire { width: 22px; height: 100px; border-radius: 11px; border: 0; background: var(--c); transition: transform .2s, opacity .2s; }
.wire:not(:disabled):hover { transform: translateY(-6px); } .wire.cut { opacity: .3; height: 60px; } .wire.bad { outline: 3px solid var(--red); } .wire.boom { background: var(--red); }
.limbo-num { font: 800 54px var(--head); color: var(--ink); } .limbo-num.win { color: var(--green); } .limbo-num.lose { color: var(--red); }
.limbo-ctl { display: grid; gap: 8px; justify-items: center; } .limbo-ctl input { width: 120px; }
.storm-sky { position: relative; width: min(360px, 92%); height: 190px; border-radius: 18px; background: linear-gradient(#2a2147, #12102a); display: grid; place-items: center; overflow: hidden; }
.cloud { font-size: 64px; position: absolute; top: 8px; } .bolt { font-size: 50px; position: absolute; top: 60px; opacity: 0; }
.storm-out { position: absolute; bottom: 14px; font: 800 30px var(--head); } .storm-out.win { color: var(--green); } .storm-out.lose { color: var(--soft); }
.suit-row { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.suit-btn { width: 58px; height: 58px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .12); font-size: 30px; color: var(--ink); } .suit-btn.red { color: #ff6b81; } .suit-btn:not(:disabled):hover { transform: translateY(-3px); }
.sum-ctl { display: grid; gap: 6px; justify-items: center; }
.pcard.winner, .die.good { transition: box-shadow .3s; }
.pass-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(90px, 1fr) minmax(120px, 1.4fr) auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.pass-login { color: var(--soft); font-size: 13px; overflow-wrap: anywhere; }
.pass-secret { font: 700 14px ui-monospace, monospace; background: rgba(255, 255, 255, .08); padding: 4px 8px; border-radius: 8px; overflow-wrap: anywhere; user-select: all; }

/* ===== gry bez ryzyka ===== */
.free-stage { flex-direction: column; gap: 12px; min-height: 160px; }
.free-emoji { font-size: 54px; } .free-big { font: 800 34px var(--head); text-align: center; overflow-wrap: anywhere; } .free-big.small { font-size: 20px; max-width: 420px; }
.free-field { font-size: 30px; line-height: 1.3; max-width: 420px; text-align: center; overflow-wrap: anywhere; }
.free-grid { display: grid; gap: 8px; width: min(360px, 94%); }
.free-grid.tight { width: min(300px, 94%); gap: 5px; }
.free-cell { min-height: 56px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .1); font: 800 20px var(--head); color: var(--ink); transition: transform .15s, background .2s; }
.free-cell:not(:disabled):hover { transform: scale(1.06); } .free-cell:disabled { opacity: .4; } .free-cell.on { background: rgba(94, 231, 255, .3); } .free-cell.right { background: rgba(61, 220, 132, .45); box-shadow: 0 0 14px var(--green); }
.free-grid.simon { width: 220px; } .free-grid.simon .free-cell { min-height: 100px; }
.free-ask { display: flex; gap: 8px; align-items: center; } .free-ask input { width: 150px; }
.btn.big-opt { min-width: 92px; padding: 12px 16px; font-size: 16px; } .choices-row.big .btn { font-size: 34px; }
.scratch-cell.big { width: 120px; height: 120px; font-size: 44px; border: 0; }
.reflex-pad { width: min(320px, 90%); height: 150px; border-radius: 18px; border: 0; font: 800 26px var(--head); color: #fff; }
.reflex-pad.wait { background: #c0392b; } .reflex-pad.go { background: #27ae60; box-shadow: 0 0 30px #27ae60; }

/* --- kosmetyki: nick i ramka awatara --- */
.nx-grad { -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; }
.nx-glow { filter: drop-shadow(0 0 5px var(--nx, var(--nxc, #fff))); }
.nx-neon { filter: drop-shadow(0 0 1px var(--nx, var(--nxc, #fff))) drop-shadow(0 0 6px var(--nx, var(--nxc, #fff))) drop-shadow(0 0 13px var(--nx, var(--nxc, #fff))); }
.nx-pulse { animation: nxPulse 1.8s ease-in-out infinite; }
.nx-rainbow { background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; animation: nxRainbow 4s linear infinite; }
.nx-breathe { animation: nxBreathe 2.6s ease-in-out infinite; filter: drop-shadow(0 0 4px var(--nx, transparent)); }
.nx-float { display: inline-block; animation: nxFloat 2.2s ease-in-out infinite; filter: drop-shadow(0 0 4px var(--nx, transparent)); }
.nx-flicker { animation: nxFlicker 3.2s linear infinite; }
.nx-shadow { filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .85)) drop-shadow(2px 2px 0 var(--nx, rgba(0, 0, 0, .55))); }
/* kolejne efekty nicku */
.nx-outline { filter: drop-shadow(1px 0 0 var(--nx, var(--nxc, #fff))) drop-shadow(-1px 0 0 var(--nx, var(--nxc, #fff))) drop-shadow(0 1px 0 var(--nx, var(--nxc, #fff))) drop-shadow(0 -1px 0 var(--nx, var(--nxc, #fff))); }
.nx-double { filter: drop-shadow(2px 2px 0 var(--nx, var(--nxc, #fff))) drop-shadow(4px 4px 0 color-mix(in srgb, var(--nx, var(--nxc, #fff)) 45%, transparent)); }
.nx-heartbeat { display: inline-block; animation: nxBeat 1.5s ease-in-out infinite; filter: drop-shadow(0 0 4px var(--nx, transparent)); }
.nx-shake { display: inline-block; animation: nxShake .9s linear infinite; filter: drop-shadow(0 0 4px var(--nx, transparent)); }
.nx-blink { animation: nxBlink 1.2s steps(2, jump-none) infinite; filter: drop-shadow(0 0 4px var(--nx, transparent)); }
@keyframes nxBeat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(1.04); } }
@keyframes nxShake { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-.7px, .5px); } 40% { transform: translate(.7px, -.5px); } 60% { transform: translate(-.5px, -.6px); } 80% { transform: translate(.6px, .6px); } }
@keyframes nxBlink { 0% { opacity: 1; } 100% { opacity: .25; } }
@keyframes nxPulse { 0%, 100% { filter: drop-shadow(0 0 1px var(--nx, var(--nxc, #fff))); } 50% { filter: drop-shadow(0 0 9px var(--nx, var(--nxc, #fff))); } }
@keyframes nxRainbow { to { background-position: 220% 0; } }
@keyframes nxBreathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes nxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes nxFlicker { 0%, 100%, 44%, 48%, 52%, 90% { opacity: 1; filter: drop-shadow(0 0 7px var(--nx, var(--nxc, #fff))); } 46%, 50%, 92% { opacity: .35; filter: none; } }
.avatar.framed::before { content: ''; position: absolute; inset: calc(var(--fw) * -1); border-radius: 50%; background: var(--fbg); pointer-events: none;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--fw)), #000 calc(100% - var(--fw) + .6px)); mask: radial-gradient(farthest-side, transparent calc(100% - var(--fw)), #000 calc(100% - var(--fw) + .6px)); }
.avatar.fa-spin::before, .avatar.fa-rainbow::before { animation: faSpin calc(3.2s * var(--fm, 1)) linear infinite; }
.avatar.fa-pulse::before { animation: faPulse calc(1.8s * var(--fm, 1)) ease-in-out infinite; }
.avatar.fa-glow { animation: faGlow calc(2.2s * var(--fm, 1)) ease-in-out infinite; }
@keyframes faSpin { to { transform: rotate(360deg); } }
@keyframes faPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.07); } }
@keyframes faGlow { 0%, 100% { filter: drop-shadow(0 0 2px var(--f1)); } 50% { filter: drop-shadow(0 0 9px var(--f1)); } }
@media (prefers-reduced-motion: reduce) { [class*="nx-"], .avatar.framed, .avatar.framed::before, .avatar.framed::after { animation: none !important; } }

/* --- kosmetyki: sklep i szafa --- */
.cos-bar { display: flex; flex-direction: column; gap: 8px; }
.cos-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.cos-filters input, .cos-filters select, .wardrobe select { padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--ink); font: inherit; }
.cos-filters input { flex: 1 1 160px; min-width: 120px; }
.cos-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.cos-item.equipped { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cos-preview { display: grid; place-items: center; height: 84px; border-radius: 12px; background: rgba(0, 0, 0, .28); overflow: hidden; }
.cos-name { font: 800 17px var(--head); }
.cos-title { display: flex; flex-direction: column; gap: 4px; }
.rarity { align-self: flex-start; border-radius: 999px; padding: 0 8px; font-size: 11px; font-weight: 800; border: 1px solid currentColor; }
.r-common { color: #b9b9c9; } .r-rare { color: #5bb4ff; } .r-epic { color: #c07bff; } .r-legendary { color: #ffc94d; }
.cos-pager { display: flex; align-items: center; justify-content: center; gap: 12px; }
.wardrobe { display: grid; gap: 8px; }

/* --- kosmetyki: kolejne animacje nicku, ramek i motywy karty --- */
.nx-flow { background-size: 300% 100%; animation: nxFlow var(--nxf, 6s) linear infinite; }
.nx-hue { animation: nxHue var(--nxs, 5s) linear infinite; }
.nx-dual { animation: nxDual 2.2s ease-in-out infinite; }
.nx-swing { display: inline-block; transform-origin: 50% 100%; animation: nxSwing 2.4s ease-in-out infinite; filter: drop-shadow(0 0 4px var(--nx, transparent)); }
.nx-bounce { display: inline-block; animation: nxBounce 1.1s cubic-bezier(.3, 0, .4, 1) infinite; filter: drop-shadow(0 0 4px var(--nx, transparent)); }
.nx-zoom { display: inline-block; animation: nxZoom 2s ease-in-out infinite; filter: drop-shadow(0 0 4px var(--nx, transparent)); }
.nx-glitch { display: inline-block; animation: nxGlitch 2.6s steps(1) infinite; }
.nx-ember { display: inline-block; animation: nxEmber 1.6s ease-in-out infinite; }
.nx-frost { animation: nxFrost 2.6s ease-in-out infinite; }
.nx-sparkle { animation: nxSparkle 1.8s steps(1) infinite; }
@keyframes nxFlow { to { background-position: 300% 0; } }
@keyframes nxHue { to { filter: hue-rotate(360deg); } }
@keyframes nxDual { 0%, 100% { filter: drop-shadow(0 0 6px var(--nx)); } 50% { filter: drop-shadow(0 0 6px var(--nx2)); } }
@keyframes nxSwing { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
@keyframes nxBounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } 60% { transform: translateY(-4px); } }
@keyframes nxZoom { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes nxGlitch { 0%, 100% { filter: none; transform: none; } 90% { filter: drop-shadow(-2px 0 0 var(--nx, #ff2d55)) drop-shadow(2px 0 0 #00e5ff); transform: translateX(1px); } 94% { filter: drop-shadow(2px 0 0 var(--nx, #ff2d55)) drop-shadow(-2px 0 0 #00e5ff); transform: translateX(-1px); } 97% { filter: none; transform: skewX(-8deg); } }
@keyframes nxEmber { 0%, 100% { filter: drop-shadow(0 0 3px #ffd23d) drop-shadow(0 -2px 6px #ff7a1f); transform: translateY(0); } 50% { filter: drop-shadow(0 0 5px #ffb020) drop-shadow(0 -4px 9px #ff3d1f); transform: translateY(-1px); } }
@keyframes nxFrost { 0%, 100% { filter: drop-shadow(0 0 4px #9be7ff); } 50% { filter: drop-shadow(0 0 9px #ffffff) drop-shadow(0 0 3px #9be7ff); } }
@keyframes nxSparkle { 0%, 100% { filter: none; } 40% { filter: drop-shadow(0 0 8px var(--nx, #fff)) brightness(1.3); } 50% { filter: none; } 80% { filter: drop-shadow(0 0 5px var(--nx, #fff)); } }
.avatar.fa-dash::before, .avatar.fa-dots::before { animation: faSpin 9s linear infinite; }
.avatar.fa-blink::before { animation: faBlink 1.1s steps(2, jump-none) infinite; }
.avatar.fa-breath::before { animation: faBreath 3.2s ease-in-out infinite; }
@keyframes faBlink { 0% { opacity: 1; } 100% { opacity: .2; } }
@keyframes faBreath { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.09); opacity: 1; } }
/* motywy karty profilu */
.ct { overflow: hidden; --ct-line: color-mix(in srgb, var(--ct-b) 38%, transparent); --ct-loop: 12px; }
.ct .profile-body { isolation: isolate; background-image: linear-gradient(180deg, color-mix(in srgb, var(--ct-a) 24%, transparent), color-mix(in srgb, var(--ct-b) 16%, transparent)); }
.ct .profile-body::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--ct-pat, none); background-size: var(--ct-size, auto); background-repeat: repeat; }
.ct-p-dots { --ct-pat: radial-gradient(circle, var(--ct-line) 1.4px, transparent 1.8px); --ct-size: 12px 12px; --ct-loop: 12px; }
.ct-p-grid { --ct-pat: linear-gradient(var(--ct-line) 1px, transparent 1px), linear-gradient(90deg, var(--ct-line) 1px, transparent 1px); --ct-size: 18px 18px, 18px 18px; --ct-loop: 18px; }
.ct-p-stripes { --ct-pat: repeating-linear-gradient(90deg, var(--ct-line) 0 2px, transparent 2px 12px); --ct-size: 12px 100%; --ct-loop: 12px; }
.ct-p-diag { --ct-pat: repeating-linear-gradient(45deg, var(--ct-line) 0 2px, transparent 2px 10px); --ct-size: auto; --ct-loop: 14.142px; }
.ct-p-checks { --ct-pat: conic-gradient(var(--ct-line) 25%, transparent 0 50%, var(--ct-line) 0 75%, transparent 0); --ct-size: 24px 24px; --ct-loop: 24px; }
.ct-p-rings { --ct-pat: repeating-radial-gradient(circle at 15% 0%, transparent 0 14px, var(--ct-line) 14px 15px); --ct-size: auto; }
.ct-p-waves { --ct-pat: radial-gradient(circle at 50% 100%, transparent 6.5px, var(--ct-line) 7px, var(--ct-line) 8px, transparent 8.5px); --ct-size: 24px 12px; --ct-loop: 24px; }
.ct-a-shift .profile-banner, .ct-a-shift .mini-banner { background-size: 300% 100% !important; animation: ctShift 9s ease-in-out infinite alternate; }
.ct-a-scroll .profile-body::before { animation: ctScroll 5s linear infinite; }
.ct-a-pulse { animation: ctPulse 2.6s ease-in-out infinite; }
:is(.ct-a-shimmer, .ct-l-shimmer)::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .2) 50%, transparent 62%); background-size: 260% 100%; animation: ctShimmer 3.6s ease-in-out infinite; }
@keyframes ctShift { to { background-position: 100% 0; } }
@keyframes ctScroll { to { background-position: var(--ct-loop) var(--ct-loop); } }
@keyframes ctPulse { 0%, 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ct-b) 50%, transparent), 0 0 8px color-mix(in srgb, var(--ct-a) 35%, transparent); } 50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ct-b) 90%, transparent), 0 0 26px color-mix(in srgb, var(--ct-a) 70%, transparent); } }
@keyframes ctShimmer { from { background-position: 130% 0; } to { background-position: -130% 0; } }
/* miniatura karty w sklepie */
.cos-preview.card { display: block; height: 108px; padding: 0; width: 100%; min-width: 0; box-sizing: border-box; contain: inline-size; }
.mini-card { width: 100%; max-width: 100%; box-sizing: border-box; height: 100%; position: relative; overflow: hidden; border-radius: 12px; background: rgba(18, 6, 36, .9); }
.mini-banner { height: 38px; }
.mini-body.profile-body { padding: 24px 10px 6px; gap: 3px; height: calc(100% - 38px); }
.mini-body b { font-size: 12px; color: #fff; }
.mini-av { position: absolute; top: -16px; left: 10px; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--ct-a), var(--ct-b)); box-shadow: 0 0 0 3px #1b0a33; }
.mini-line { display: block; height: 5px; width: 80%; border-radius: 3px; background: rgba(255, 255, 255, .18); } .mini-line.short { width: 50%; }
.mini-card.ct { --card-accent: var(--ct-a); }
@media (prefers-reduced-motion: reduce) { .ct, .ct *, .ct *::before, .ct *::after { animation: none !important; } .ct::after { display: none; } }

/* kolekcje tematyczne: nowe efekty nicku */
.nx-burn { display: inline-block; animation: nxBurn 1.3s ease-in-out infinite; }
.nx-drip { display: inline-block; transform-origin: 50% 0; animation: nxDrip 2.4s ease-in-out infinite; }
.nx-shiver { display: inline-block; animation: nxShiver .35s linear infinite; filter: drop-shadow(0 0 4px var(--nx, #9be7ff)); }
.nx-corrupt { display: inline-block; animation: nxCorrupt 2.2s steps(1) infinite; }
.nx-arcane { animation: nxArcane 5s linear infinite; }
.nx-holy { display: inline-block; animation: nxHoly 3.2s ease-in-out infinite; }
.nx-void { animation: nxVoid 3.6s ease-in-out infinite; }
.nx-scan { -webkit-mask-image: linear-gradient(90deg, #000 38%, rgba(0, 0, 0, .3) 50%, #000 62%); mask-image: linear-gradient(90deg, #000 38%, rgba(0, 0, 0, .3) 50%, #000 62%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%; animation: nxScan 2.8s linear infinite; filter: drop-shadow(0 0 3px var(--nx, transparent)); }
.nx-alien { display: inline-block; animation: nxAlien 3s ease-in-out infinite; }
.nx-beast { display: inline-block; animation: nxBeast .9s ease-in-out infinite; }
.nx-inferno { display: inline-block; animation: nxInferno 1.1s steps(2, jump-none) infinite; }
@keyframes nxBurn { 0%, 100% { filter: drop-shadow(0 -2px 5px var(--nx, #ff7a1f)) drop-shadow(0 0 2px #ffd23d); transform: translateY(0); } 50% { filter: drop-shadow(0 -4px 8px var(--nx, #ff7a1f)) drop-shadow(0 0 3px #fff1a8); transform: translateY(-1px); } }
@keyframes nxDrip { 0%, 100% { transform: scaleY(1); filter: drop-shadow(0 2px 3px var(--nx, #4dc3ff)); } 50% { transform: scaleY(1.07); filter: drop-shadow(0 5px 5px var(--nx, #4dc3ff)); } }
@keyframes nxShiver { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-.6px, .3px); } 50% { transform: translate(.6px, -.3px); } 75% { transform: translate(-.3px, -.5px); } }
@keyframes nxCorrupt { 0%, 100% { filter: drop-shadow(0 0 4px var(--nx, #a64dff)); transform: none; } 20% { filter: hue-rotate(60deg) drop-shadow(-2px 0 0 var(--nx, #a64dff)); transform: translateX(1px); } 24% { filter: hue-rotate(-60deg) drop-shadow(2px 0 0 #39ff6a); transform: skewX(-10deg); } 28% { filter: drop-shadow(0 0 4px var(--nx, #a64dff)); transform: none; } 70% { filter: invert(.25) drop-shadow(0 0 5px var(--nx, #a64dff)); } 73% { filter: drop-shadow(0 0 4px var(--nx, #a64dff)); } }
@keyframes nxArcane { 0% { filter: hue-rotate(0deg) drop-shadow(0 0 5px var(--nx, #a64dff)); } 100% { filter: hue-rotate(360deg) drop-shadow(0 0 5px var(--nx, #a64dff)); } }
@keyframes nxHoly { 0%, 100% { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px var(--nx, #ffe27a)); transform: translateY(0); } 50% { filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 16px var(--nx, #ffe27a)); transform: translateY(-1.5px); } }
@keyframes nxVoid { 0%, 100% { filter: drop-shadow(0 0 3px #000) drop-shadow(0 0 5px var(--nx, #6f2fd6)); opacity: .95; } 50% { filter: drop-shadow(0 0 6px #000) drop-shadow(0 0 13px var(--nx, #6f2fd6)); opacity: .7; } }
@keyframes nxScan { from { -webkit-mask-position: 150% 0; mask-position: 150% 0; } to { -webkit-mask-position: -150% 0; mask-position: -150% 0; } }
@keyframes nxAlien { 0%, 100% { filter: hue-rotate(0deg) drop-shadow(0 0 5px var(--nx, #4dff9a)); transform: skewX(0); } 33% { filter: hue-rotate(50deg) drop-shadow(0 0 7px var(--nx, #4dff9a)); transform: skewX(-4deg); } 66% { filter: hue-rotate(-50deg) drop-shadow(0 0 7px var(--nx, #4dff9a)); transform: skewX(4deg); } }
@keyframes nxBeast { 0%, 100% { transform: scale(1) translateX(0); filter: drop-shadow(0 0 3px var(--nx, #ff2d55)); } 25% { transform: scale(1.06) translateX(-.7px); } 50% { transform: scale(1) translateX(.7px); filter: drop-shadow(0 0 8px var(--nx, #ff2d55)); } 75% { transform: scale(1.06) translateX(-.4px); } }
@keyframes nxInferno { 0% { filter: drop-shadow(0 -2px 5px var(--nx, #ff2d1f)) drop-shadow(0 0 2px #ffd23d); transform: translateY(0); } 100% { filter: drop-shadow(0 -5px 9px var(--nx, #ff2d1f)) drop-shadow(0 0 4px #ff7a1f); transform: translateY(-1px); } }
/* nowe animacje ramek */
.avatar.fa-flicker::before { animation: faFlicker calc(2.4s * var(--fm, 1)) steps(1) infinite; }
.avatar.fa-spinrev::before { animation: faSpin calc(3.4s * var(--fm, 1)) linear infinite reverse; }
@keyframes faFlicker { 0%, 100%, 42%, 48%, 70% { opacity: 1; } 44%, 46% { opacity: .25; } 72% { opacity: .5; } 74% { opacity: 1; } }
/* nowe wzory karty */
.ct-p-stars { --ct-pat: radial-gradient(circle, var(--ct-line) 1px, transparent 1.4px), radial-gradient(circle, color-mix(in srgb, var(--ct-a) 55%, transparent) 1.8px, transparent 2.3px); --ct-size: 24px 24px, 36px 36px; --ct-loop: 72px; }
.ct-p-scales { --ct-pat: radial-gradient(circle at 50% 0, transparent 9px, var(--ct-line) 9.5px, var(--ct-line) 10.5px, transparent 11px); --ct-size: 22px 11px; --ct-loop: 22px; }
.ct-p-zigzag { --ct-zz: color-mix(in srgb, var(--ct-b) 20%, transparent); --ct-pat: conic-gradient(from 45deg at 50% 100%, var(--ct-zz) 0 25%, transparent 0 50%), conic-gradient(from 45deg at 50% 0, transparent 0 25%, var(--ct-zz) 0 50%, transparent 0); --ct-size: 16px 8px, 16px 8px; --ct-loop: 16px; }

.cos-coll { color: var(--soft); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 10px; }

/* Nowe ruchy kart: przepływ w prawo, opadanie, unoszenie, płomienie i zorza */
.ct-a-drift .profile-body::before { animation: ctDrift 7s linear infinite; }
.ct-a-fall .profile-body::before { animation: ctFall 6s linear infinite; }
.ct-a-rise .profile-body::before { animation: ctRise 6s linear infinite; }
:is(.ct-a-flame, .ct-l-flame) { --ct-loop: 120px; }
:is(.ct-a-flame, .ct-l-flame).ct-p-none { --ct-pat: radial-gradient(circle, var(--ct-a) 1.3px, transparent 1.9px), radial-gradient(circle, var(--ct-b) 1px, transparent 1.5px); --ct-size: 40px 40px, 60px 60px; }
:is(.ct-a-flame, .ct-l-flame).ct-p-none .profile-body::before { animation: ctRise 3.4s linear infinite; }
:is(.ct-a-flame, .ct-l-flame)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; pointer-events: none; mix-blend-mode: screen; opacity: .62; filter: blur(1.2px); transform-origin: 50% 100%;
  background: radial-gradient(ellipse 15px 48px at 50% 100%, var(--ct-b) 0 38%, transparent 72%) 0 100% / 30px 100% repeat-x, radial-gradient(ellipse 11px 34px at 50% 100%, var(--ct-a) 0 34%, transparent 70%) 15px 100% / 30px 100% repeat-x;
  animation: ctFlame 1.15s ease-in-out infinite alternate; }
:is(.ct-a-aurora, .ct-l-aurora) .profile-banner, :is(.ct-a-aurora, .ct-l-aurora) .mini-banner { background-size: 300% 100% !important; animation: ctShift 9s ease-in-out infinite alternate; }
:is(.ct-a-aurora, .ct-l-aurora)::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 0 18%, color-mix(in srgb, var(--ct-a) 48%, transparent) 33%, transparent 48%, color-mix(in srgb, var(--ct-b) 48%, transparent) 64%, transparent 80%); background-size: 300% 100%; animation: ctAurora 8s ease-in-out infinite alternate; }
@keyframes ctDrift { to { background-position: var(--ct-loop) 0; } }
@keyframes ctFall { to { background-position: 0 var(--ct-loop); } }
@keyframes ctRise { to { background-position: 0 calc(var(--ct-loop) * -1); } }
@keyframes ctFlame { 0% { transform: scaleY(.82) skewX(-2deg); background-position: 0 100%, 15px 100%; } 50% { transform: scaleY(1.06) skewX(1.5deg); } 100% { transform: scaleY(1.2) skewX(2deg); background-position: 6px 100%, 9px 100%; } }
@keyframes ctAurora { from { background-position: 0 0; } to { background-position: 100% 0; } }
/* Wersja bez animacji: ten sam wygląd, ale nieruchomy */
.nx-still, .nx-still::before, .nx-still::after, .avatar.fa-still, .avatar.fa-still::before, .avatar.fa-still::after,
.ct-still, .ct-still::before, .ct-still::after, .ct-still *, .ct-still *::before, .ct-still *::after { animation: none !important; }

/* ===== Ruch wzoru karty (motion), warstwy (layer) i baner (bmode) ===== */
@property --fc1 { syntax: '<color>'; inherits: false; initial-value: #ffffff; }
@property --fc2 { syntax: '<color>'; inherits: false; initial-value: #ffffff; }
.ct { --ct-dur: calc(6s * var(--ct-m, 1)); }
.ct-m-r { --mx: 1; --my: 0; } .ct-m-l { --mx: -1; --my: 0; } .ct-m-d { --mx: 0; --my: 1; } .ct-m-u { --mx: 0; --my: -1; }
.ct-m-dr { --mx: 1; --my: 1; } .ct-m-ur { --mx: 1; --my: -1; } .ct-m-dl { --mx: -1; --my: 1; } .ct-m-ul { --mx: -1; --my: -1; }
:is(.ct-m-r, .ct-m-l, .ct-m-d, .ct-m-u, .ct-m-dr, .ct-m-ur, .ct-m-dl, .ct-m-ul) .profile-body::before { animation: ctMove var(--ct-dur) linear infinite; }
@keyframes ctMove { to { background-position: calc(var(--ct-loop, 0px) * var(--mx, 0)) calc(var(--ct-loop, 0px) * var(--my, 0)); } }
.ct-m-twinkle .profile-body::before { animation: ctTwinkle calc(2.4s * var(--ct-m, 1)) ease-in-out infinite alternate; }
@keyframes ctTwinkle { from { opacity: .05; } to { opacity: 1; } }
.ct-m-sweep .profile-body::before { -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 38%, #000 62%, transparent 92%); mask-image: linear-gradient(90deg, transparent 8%, #000 38%, #000 62%, transparent 92%);
  -webkit-mask-size: 240% 100%; mask-size: 240% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; animation: ctSweepX var(--ct-dur) ease-in-out infinite; }
.ct-m-sweepv .profile-body::before { -webkit-mask-image: linear-gradient(180deg, transparent 8%, #000 38%, #000 62%, transparent 92%); mask-image: linear-gradient(180deg, transparent 8%, #000 38%, #000 62%, transparent 92%);
  -webkit-mask-size: 100% 240%; mask-size: 100% 240%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; animation: ctSweepY var(--ct-dur) ease-in-out infinite; }
@keyframes ctSweepX { from { -webkit-mask-position: 130% 0; mask-position: 130% 0; } to { -webkit-mask-position: -30% 0; mask-position: -30% 0; } }
@keyframes ctSweepY { from { -webkit-mask-position: 0 130%; mask-position: 0 130%; } to { -webkit-mask-position: 0 -30%; mask-position: 0 -30%; } }
.ct-m-breathe .profile-body::before { animation: ctBreath calc(4s * var(--ct-m, 1)) ease-in-out infinite; }
@keyframes ctBreath { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.14); opacity: 1; } }

:where([class*="ct-l-"])::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.ct-l-frost::after { background: radial-gradient(ellipse 130% 60% at 50% 115%, rgba(215, 245, 255, .7), transparent 70%), radial-gradient(circle at 12% 20%, #fff 0 1.4px, transparent 2.6px), radial-gradient(circle at 82% 28%, #fff 0 1.4px, transparent 2.6px), radial-gradient(circle at 58% 72%, #fff 0 1px, transparent 2px), linear-gradient(0deg, rgba(190, 235, 255, .35), transparent 55%); animation: ctFrost calc(6s * var(--ct-m, 1)) ease-in-out infinite; }
@keyframes ctFrost { 0% { clip-path: inset(92% 0 0 0); opacity: .8; } 65%, 82% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.ct-l-embers::after { background: radial-gradient(circle, var(--ct-a) 1.4px, transparent 2.1px) 0 0 / 38px 38px, radial-gradient(circle, color-mix(in srgb, var(--ct-b) 80%, #fff) 1px, transparent 1.7px) 11px 17px / 57px 57px; animation: ctEmbers calc(5s * var(--ct-m, 1)) linear infinite; }
@keyframes ctEmbers { to { background-position: 0 -114px, 11px -97px; } }
.ct-l-snow::after { background: radial-gradient(circle, rgba(255, 255, 255, .9) 1.5px, transparent 2.2px) 0 0 / 34px 34px, radial-gradient(circle, rgba(255, 255, 255, .7) 1px, transparent 1.7px) 13px 9px / 51px 51px; animation: ctSnow calc(7s * var(--ct-m, 1)) linear infinite; }
@keyframes ctSnow { to { background-position: 0 102px, 13px 111px; } }
.ct-l-rain::after { background: linear-gradient(104deg, transparent 46%, rgba(190, 220, 255, .55) 50%, transparent 54%) 0 0 / 22px 34px; animation: ctRain calc(.9s * var(--ct-m, 1)) linear infinite; }
@keyframes ctRain { to { background-position: 0 34px; } }
.ct-l-scan::after { background: linear-gradient(180deg, transparent 0 47%, color-mix(in srgb, var(--ct-a) 75%, #fff) 50%, transparent 53% 100%) 0 0 / 100% 240% no-repeat; mix-blend-mode: screen; animation: ctScanY calc(3.6s * var(--ct-m, 1)) linear infinite; }
@keyframes ctScanY { from { background-position: 0 130%; } to { background-position: 0 -30%; } }
.ct-l-glitch::after { background: repeating-linear-gradient(0deg, transparent 0 5px, color-mix(in srgb, var(--ct-a) 28%, transparent) 5px 7px), linear-gradient(90deg, transparent 30%, color-mix(in srgb, var(--ct-b) 45%, transparent) 31% 35%, transparent 36%); opacity: 0; animation: ctGlitch calc(2.8s * var(--ct-m, 1)) steps(1) infinite; }
@keyframes ctGlitch { 0%, 100% { opacity: 0; } 10% { opacity: .8; transform: translateX(-3px); } 12% { opacity: 0; } 41% { opacity: .9; transform: translateX(4px); } 44% { opacity: 0; } 78% { opacity: .7; transform: translateY(2px); } 82% { opacity: 0; } }
.ct-l-bubbles::after { background: radial-gradient(circle, transparent 0 4px, color-mix(in srgb, var(--ct-a) 75%, #fff) 4.5px 5.5px, transparent 6px) 0 0 / 40px 40px, radial-gradient(circle, transparent 0 2.4px, color-mix(in srgb, var(--ct-b) 75%, #fff) 2.9px 3.6px, transparent 4px) 17px 9px / 30px 30px; animation: ctBubbles calc(6s * var(--ct-m, 1)) linear infinite; }
@keyframes ctBubbles { to { background-position: 0 -120px, 17px -111px; } }
.ct-l-glow::after { box-shadow: inset 0 0 26px 2px color-mix(in srgb, var(--ct-a) 75%, transparent), inset 0 0 6px color-mix(in srgb, var(--ct-b) 60%, transparent); animation: ctGlow calc(2.8s * var(--ct-m, 1)) ease-in-out infinite alternate; }
@keyframes ctGlow { from { opacity: .25; } to { opacity: 1; } }
.ct-l-bolt::after { background: radial-gradient(ellipse at 72% -5%, rgba(255, 255, 255, .85), color-mix(in srgb, var(--ct-a) 40%, transparent) 40%, transparent 70%); opacity: 0; animation: ctBolt calc(5s * var(--ct-m, 1)) steps(1) infinite; }
@keyframes ctBolt { 0%, 100% { opacity: 0; } 6% { opacity: .95; } 8% { opacity: 0; } 10% { opacity: .6; } 13% { opacity: 0; } 55% { opacity: .5; } 57% { opacity: 0; } }
.ct-l-mist::after { background: radial-gradient(ellipse 60% 40% at 20% 70%, color-mix(in srgb, var(--ct-a) 40%, transparent), transparent), radial-gradient(ellipse 50% 40% at 75% 40%, color-mix(in srgb, var(--ct-b) 35%, transparent), transparent); background-size: 200% 100%; filter: blur(8px); animation: ctAurora calc(10s * var(--ct-m, 1)) ease-in-out infinite alternate; }
.ct-l-rays::after { background: repeating-conic-gradient(from 195deg at 50% -10%, color-mix(in srgb, var(--ct-a) 50%, transparent) 0 3deg, transparent 3deg 11deg); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); animation: ctRays calc(4s * var(--ct-m, 1)) ease-in-out infinite alternate; }
@keyframes ctRays { from { opacity: .2; } to { opacity: .95; } }

/* baner: przenikanie, tęcza barw, oddech i przejeżdżający blask */
.ct-b-shift .profile-banner, .ct-b-shift .mini-banner { background-size: 300% 100% !important; animation: ctShift calc(9s * var(--ct-m, 1)) ease-in-out infinite alternate; }
.ct-b-hue .profile-banner, .ct-b-hue .mini-banner { animation: ctHue calc(12s * var(--ct-m, 1)) linear infinite; }
@keyframes ctHue { to { filter: hue-rotate(360deg); } }
.ct-b-breathe .profile-banner, .ct-b-breathe .mini-banner { animation: ctBright calc(3.2s * var(--ct-m, 1)) ease-in-out infinite alternate; }
@keyframes ctBright { from { filter: brightness(.8) saturate(.9); } to { filter: brightness(1.35) saturate(1.2); } }
.ct-b-cross .ct-banner, .ct-b-sweep .ct-banner { position: relative; overflow: hidden; }
.ct-b-cross .ct-banner::after { content: ''; position: absolute; inset: 0; background: var(--ct-rev); animation: ctFade calc(5s * var(--ct-m, 1)) ease-in-out infinite alternate; pointer-events: none; }
@keyframes ctFade { from { opacity: 0; } to { opacity: 1; } }
.ct-b-sweep .ct-banner::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%) 0 0 / 250% 100% no-repeat; animation: ctShimmer calc(3.4s * var(--ct-m, 1)) ease-in-out infinite; }

/* ===== Ramki: nowe ruchy, cząsteczki i poświata ===== */
.avatar.framed { --fc1: var(--f1); --fc2: var(--f2, var(--f1)); }
.avatar.fa-hue::before { animation: faHue calc(5s * var(--fm, 1)) linear infinite; }
@keyframes faHue { to { filter: hue-rotate(360deg); } }
.avatar.fa-cross::before { animation: faCross calc(3.4s * var(--fm, 1)) ease-in-out infinite alternate; }
@keyframes faCross { from { --fc1: var(--f1); --fc2: var(--f2); } to { --fc1: var(--f2); --fc2: var(--f1); } }
.avatar.fa-burn::before { animation: faBurn calc(1.3s * var(--fm, 1)) ease-in-out infinite alternate; }
@keyframes faBurn { 0% { filter: drop-shadow(0 -1px 2px var(--f1)) brightness(1); transform: scale(1) rotate(-2deg); } 35% { filter: drop-shadow(0 -4px 6px var(--f2)) brightness(1.25); transform: scale(1.05) rotate(2deg); } 70% { filter: drop-shadow(0 -2px 3px var(--f1)) brightness(.9); transform: scale(1.02) rotate(-1deg); } 100% { filter: drop-shadow(0 -6px 8px var(--f2)) brightness(1.35); transform: scale(1.07) rotate(1deg); } }
.avatar.fa-shiver::before { animation: faShiver calc(.9s * var(--fm, 1)) steps(1) infinite; filter: drop-shadow(0 0 4px var(--f2)) brightness(1.15); }
@keyframes faShiver { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(.6px, -.5px); } 50% { transform: translate(-.6px, .4px); } 75% { transform: translate(.4px, .6px); } }
.avatar.fa-electric::before { animation: faElectric calc(1.6s * var(--fm, 1)) steps(1) infinite; }
@keyframes faElectric { 0%, 100% { filter: drop-shadow(0 0 2px var(--f1)); } 10% { filter: drop-shadow(0 0 9px #fff) brightness(1.6); } 13% { filter: drop-shadow(0 0 1px var(--f1)); } 45% { filter: drop-shadow(0 0 7px var(--f2)) brightness(1.4); } 48% { filter: none; opacity: .6; } 52% { opacity: 1; } 80% { filter: drop-shadow(0 0 10px #fff) brightness(1.7); } 84% { filter: drop-shadow(0 0 2px var(--f1)); } }
.avatar.fa-glitch::before { animation: faGlitch calc(2.2s * var(--fm, 1)) steps(1) infinite; }
@keyframes faGlitch { 0%, 100% { transform: translate(0, 0); filter: none; } 8% { transform: translate(-2px, 0); filter: drop-shadow(2px 0 0 #00e5ff) drop-shadow(-2px 0 0 #ff2d95); } 11% { transform: translate(0, 0); filter: none; } 55% { transform: translate(2px, 1px); filter: drop-shadow(-2px 0 0 #00e5ff) drop-shadow(2px 0 0 #ff2d95); } 58% { transform: translate(0, 0); filter: none; } }
.avatar.fa-wobble::before { animation: faWobble calc(1.8s * var(--fm, 1)) ease-in-out infinite; }
@keyframes faWobble { 0%, 100% { transform: scale(1, 1); } 25% { transform: scale(1.08, .94); } 50% { transform: scale(.95, 1.07); } 75% { transform: scale(1.05, .97); } }
.avatar.fa-swing::before { animation: faSwing calc(3s * var(--fm, 1)) ease-in-out infinite alternate; }
@keyframes faSwing { from { transform: rotate(-50deg); } to { transform: rotate(50deg); } }
.avatar.fa-heart::before { animation: faHeart calc(1.4s * var(--fm, 1)) ease-in-out infinite; }
@keyframes faHeart { 0%, 40%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 26% { transform: scale(1.03); } }
.avatar.fa-strobe::before { animation: faStrobe calc(1s * var(--fm, 1)) steps(2, jump-none) infinite; }
@keyframes faStrobe { from { opacity: 1; } to { opacity: .2; } }
[class*="fp-"].avatar::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; inset: calc(var(--fw) * -1); }
.avatar.fp-orbit::after, .avatar.fp-orbitrev::after, .avatar.fp-sparkle::after { inset: calc(var(--fw) * -2.4); background: repeating-conic-gradient(from 0deg, var(--f2) 0 2.4deg, transparent 2.4deg 30deg);
  -webkit-mask: radial-gradient(farthest-side, transparent 80%, #000 82%, #000 90%, transparent 93%); mask: radial-gradient(farthest-side, transparent 80%, #000 82%, #000 90%, transparent 93%); }
.avatar.fp-orbit::after { animation: faSpin calc(5s * var(--fm, 1)) linear infinite; }
.avatar.fp-orbitrev::after { animation: faSpin calc(6s * var(--fm, 1)) linear infinite reverse; }
.avatar.fp-sparkle::after { background: repeating-conic-gradient(from 7deg, #fff 0 2deg, transparent 2deg 23deg); animation: faSparkle calc(1.6s * var(--fm, 1)) ease-in-out infinite alternate; }
@keyframes faSparkle { from { opacity: .1; transform: rotate(0deg) scale(.96); } to { opacity: 1; transform: rotate(14deg) scale(1.04); } }
.avatar.fp-comet::after, .avatar.fp-twin::after { background: conic-gradient(from 0deg, transparent 0 62%, rgba(255, 255, 255, .95) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--fw)), #000 calc(100% - var(--fw) + .6px)); mask: radial-gradient(farthest-side, transparent calc(100% - var(--fw)), #000 calc(100% - var(--fw) + .6px)); animation: faSpin calc(2.6s * var(--fm, 1)) linear infinite; }
.avatar.fp-twin::after { background: conic-gradient(from 0deg, transparent 0 20%, rgba(255, 255, 255, .9) 50%, transparent 50% 70%, rgba(255, 255, 255, .9) 100%); }
.avatar.fp-ripple::after { border: 1.5px solid var(--f1); animation: faRipple calc(2.4s * var(--fm, 1)) ease-out infinite; }
@keyframes faRipple { from { transform: scale(1); opacity: .85; } to { transform: scale(1.55); opacity: 0; } }
.avatar.fh-soft { box-shadow: 0 0 9px color-mix(in srgb, var(--f1) 60%, transparent); }
.avatar.fh-strong { box-shadow: 0 0 16px var(--f1), 0 0 4px var(--f2, var(--f1)); }
.avatar.fa-still.fa-cross::before { --fc1: var(--f1); --fc2: var(--f2); }
.older-btn { display: block; margin: 6px auto 10px; }
.cos-paused *, .cos-paused *::before, .cos-paused *::after { animation-play-state: paused !important; }

/* ---------- role: hierarchia, przeciąganie i przełączniki (v42) ---------- */
.switch { position: relative; display: inline-block; flex: none; width: 42px; height: 24px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .22); transition: background .2s ease; pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); transition: transform .22s cubic-bezier(.3, 1.4, .5, 1); }
.switch input:checked + i { background: linear-gradient(100deg, var(--accent), var(--accent2)); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + i { opacity: .45; }
.editor-form .sw-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 4px; border-bottom: 1px solid var(--line); flex-basis: 100%; cursor: pointer; font-weight: 600; }
.editor-form .sw-row:last-child { border-bottom: 0; }
.editor-form .sw-row.off { cursor: not-allowed; }
.editor-form .sw-row.off .sw-text { opacity: .6; }
.sw-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sw-text small { color: var(--soft); font-weight: 500; font-size: 12.5px; line-height: 1.35; }
.editor-form fieldset > .sw-row { width: 100%; }
.editor-form .role-pane { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.editor-form .role-pane[hidden] { display: none; }
.editor-form .role-pane fieldset { display: flex; flex-direction: column; gap: 0; }
.role-tabs { grid-column: 1 / -1; display: flex; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.role-tabs .btn[aria-selected="true"] { background: linear-gradient(100deg, var(--accent), var(--accent2)); color: var(--on-accent); border-color: transparent; }
.color-line { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.swatches { display: grid; grid-template-columns: repeat(10, 26px); gap: 6px; }
.swatch { width: 26px; height: 26px; padding: 0; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.swatch:hover:not(:disabled) { transform: scale(1.18); border-color: #fff; }
.role-editor .actions { position: sticky; bottom: -2px; padding: 10px 0 2px; background: linear-gradient(0deg, var(--glass-solid) 70%, transparent); z-index: 2; }
.role-list { display: flex; flex-direction: column; gap: 8px; }
.role-list.sorting { user-select: none; cursor: grabbing; }
.role-list.sorting .rrow .editor-form { display: none; }
.rrow { transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.rrow.dragging { background: rgba(255, 255, 255, .16); box-shadow: 0 12px 34px rgba(0, 0, 0, .45); transform: scale(1.015); position: relative; z-index: 3; }
.grip { border: 0; background: none; color: var(--soft); font-size: 20px; line-height: 1; padding: 4px 6px; border-radius: 8px; cursor: grab; touch-action: none; }
.grip:hover:not(:disabled), .grip:focus-visible { color: var(--accent); background: rgba(255, 255, 255, .1); }
.grip:disabled { opacity: .25; cursor: not-allowed; }
.role-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--soft); flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }
.rchip { display: inline-flex; align-items: center; gap: 8px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 700; color: var(--soft); }
.rchip.big { font-size: 13px; padding: 5px 6px 5px 12px; color: var(--ink); }
.role-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mini-sw { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--soft); cursor: pointer; }
.mini-sw .switch { width: 34px; height: 20px; }
.mini-sw .switch i::after { top: 2px; left: 2px; width: 16px; height: 16px; }
.mini-sw .switch input:checked + i::after { transform: translateX(14px); }

/* ---------- moderacja w karcie osoby (v42) ---------- */
.mod-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.mod-title { font: 800 12px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.mod-status { color: var(--accent); font-weight: 700; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mod-inline { display: flex; gap: 6px; }
.mod-inline input { flex: 1; min-width: 0; }

body.sorting-roles, body.sorting-roles * { user-select: none !important; cursor: grabbing !important; }

/* ---------- v43: przeceny, ekwipunek, inwestycje ---------- */
.price-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font: 800 12px var(--head); vertical-align: middle; }
.price-tag.sale { background: rgba(74, 222, 128, .2); color: #4ade80; } .price-tag.up { background: rgba(248, 113, 113, .2); color: #f87171; } .price-tag.eco { background: rgba(255, 255, 255, .12); color: inherit; }
.price-old { margin-left: 8px; opacity: .55; font-weight: 600; font-size: 12px; }
.market-note { margin: 0 0 4px; }
.inv-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 4px; border-bottom: 1px solid var(--line); } .inv-row:last-child { border-bottom: 0; }
.inv-row .grow, .inv-top .grow { flex: 1; }
.inv-list { display: flex; flex-direction: column; max-height: 420px; overflow: auto; }
.inv-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); margin: 6px 0 2px; overflow: hidden; } .meter i { display: block; height: 100%; background: #f87171; border-radius: 99px; } .meter.good i { background: #4ade80; }
.inv-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); min-width: 0; }
.inv-top { display: flex; align-items: center; gap: 8px; font-size: 17px; } .inv-icon { font-size: 22px; } .inv-price { font: 800 20px var(--head); }
.inv-meta, .inv-mine { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.inv-buy, .inv-sell { display: flex; gap: 6px; flex-wrap: wrap; } .inv-buy input { flex: 1; min-width: 90px; }
.inv-total { font-size: 16px; } .spark { width: 100%; height: 70px; display: block; }
.good { color: #4ade80; } .bad { color: #f87171; }
/* panel admina: ekonomia z podziałem na sekcje */
.eco-admin { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.eco-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; }
.eco-nav button { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid transparent; background: none; color: inherit; padding: 9px 12px; border-radius: 10px; font-weight: 700; }
.eco-nav button:hover { background: rgba(255, 255, 255, .08); } .eco-nav button[aria-selected="true"] { background: rgba(255, 255, 255, .14); border-color: var(--line); }
.eco-pane { display: flex; flex-direction: column; gap: 12px; min-width: 0; } .eco-pane h3 { margin: 0; }
.eco-pane .range { display: flex; align-items: center; gap: 10px; } .eco-pane .range input[type=range] { flex: 1; } .eco-pane .range output { min-width: 3ch; font-weight: 800; }
.mkt-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .eco-admin { grid-template-columns: 1fr; } .eco-nav { flex-direction: row; flex-wrap: wrap; position: static; } .inv-head { grid-template-columns: 1fr; } }

/* ---------- v44: przeciąganie i ustawienia kanału ---------- */
.draggable .chip, .draggable .ch { cursor: grab; touch-action: pan-y; }
.draggable.cat-list .chip, #groupList.draggable .chip, #catList.draggable .chip { touch-action: pan-x; }
.dnd-src { opacity: .3; }
.dnd-ghost { position: fixed; z-index: 70; pointer-events: none; margin: 0; opacity: .96; transform: scale(1.04) rotate(-1deg); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); border-radius: 12px; list-style: none; }
.dnd-over { outline: 2px dashed var(--accent, #ffb703); outline-offset: 2px; background: rgba(255, 255, 255, .12); }
body.dnd-active, body.dnd-active * { user-select: none !important; cursor: grabbing !important; }
.set-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.set-tabs button { border: 1px solid transparent; background: none; color: inherit; padding: 7px 14px; border-radius: 10px; font-weight: 700; }
.set-tabs button:hover { background: rgba(255, 255, 255, .08); } .set-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .14); border-color: var(--line); }
.set-pane[hidden] { display: none; } .set-pane { display: flex; flex-direction: column; gap: 14px; }
.ovr { display: grid; grid-template-columns: 220px 1fr; gap: 14px; min-height: 260px; }
.ovr-list { display: flex; flex-direction: column; gap: 4px; }
.ovr-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 1px solid transparent; background: none; color: inherit; padding: 8px 10px; border-radius: 10px; font-weight: 700; }
.ovr-item:hover { background: rgba(255, 255, 255, .08); } .ovr-item[aria-selected="true"] { background: rgba(255, 255, 255, .14); border-color: var(--line); }
.ovr-item small { margin-left: auto; opacity: .6; font-weight: 600; }
.ovr-rows { display: flex; flex-direction: column; }
.ovr-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.ovr-row .txt { flex: 1; min-width: 0; } .ovr-row .txt b { display: block; } .ovr-row .txt small { opacity: .65; }
.tri { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
.tri button { border: 0; background: none; color: inherit; width: 40px; height: 34px; font-size: 16px; font-weight: 800; opacity: .55; }
.tri button:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.tri button[aria-pressed="true"] { opacity: 1; }
.tri .deny[aria-pressed="true"] { background: #b91c1c; color: #fff; } .tri .inherit[aria-pressed="true"] { background: rgba(255, 255, 255, .22); } .tri .allow[aria-pressed="true"] { background: #15803d; color: #fff; }
.ovr-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; } .ovr-head h4 { margin: 0; flex: 1; }
.set-danger { border: 1px solid rgba(248, 113, 113, .4); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.set-danger .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .set-danger .row span { flex: 1; min-width: 200px; }
.ch-topic { font-size: 12px; opacity: .75; display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nsfw-tag { font: 800 11px var(--head); background: #b91c1c; color: #fff; padding: 1px 6px; border-radius: 6px; margin-left: 6px; }
@media (max-width: 700px) { .ovr { grid-template-columns: 1fr; } }

.ovr-wrap { display: flex; flex-direction: column; gap: 12px; } .ovr-wrap h4 { margin: 0; }
.ovr > * { min-width: 0; } .ovr-row .txt small { display: block; }
.simple-lists summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.ovr-wrap .check small { display: block; }

/* Dane serwera */
.data-tab { display: flex; flex-direction: column; gap: 22px; } .data-block h3 { margin: 0 0 4px; }
.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 10px; }
.data-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); }
.data-card h4 { margin: 0; } .data-card .note { flex: 1; margin: 0; } .data-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.forecast-box { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; } .forecast { height: 130px; color: inherit; }
.forecast-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.inv-admin + .forecast-box { margin-bottom: 8px; }

.asset-set { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }

.admin-search { width: 100%; margin: 0 0 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2, rgba(255,255,255,.06)); color: inherit; font: inherit; box-sizing: border-box; }
.ban-list { margin-top: 18px; }
.ban-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.upd-list { margin: 6px 0 0; padding-left: 18px; max-height: 180px; overflow: auto; font-size: 12px; opacity: .85; }
.data-card details { margin-top: 8px; }

.upd-progress { grid-column: 1 / -1; }
.upd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.upd-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.upd-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent, #ffc928), var(--accent2, #ff7316)); transition: width .25s ease; }
.upd-bar i.indeterminate { width: 35%; animation: upd-slide 1.1s ease-in-out infinite; }
@keyframes upd-slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .upd-bar i.indeterminate { animation: none; width: 100%; opacity: .6; } }
