:root {
  --ink: #130f2e; --lagoon: #0e2740; --porcelain: #f6f2ff; --line: #d7cfee;
  --text: #f1edff; --muted: #a9a1cf; --card: rgba(255, 255, 255, .07); --card-line: rgba(255, 255, 255, .12);
  --red: #ff4a5c; --green: #27d17f; --yellow: #ffc62e; --blue: #3b86ff;
  --display: "Baloo 2", "Arial Rounded MT Bold", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 400 16px/1.45 var(--body); color: var(--text); background: var(--ink); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; }
h2 { font-size: 1.25rem; font-weight: 800; }
button, input { font: inherit; color: inherit; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .grow { flex: 1; }

.bg { position: fixed; inset: 0; z-index: -1; background: linear-gradient(160deg, #1b1340 0%, #0f2a45 100%); overflow: hidden; }
.bg::before, .bg::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(80px); opacity: .32; animation: drift 38s ease-in-out infinite alternate; }
.bg::before { left: -25vmax; top: -30vmax; background: radial-gradient(circle, var(--red), transparent 60%), radial-gradient(circle at 80% 80%, var(--yellow), transparent 50%); }
.bg::after { right: -30vmax; bottom: -35vmax; background: radial-gradient(circle, var(--blue), transparent 60%), radial-gradient(circle at 20% 20%, var(--green), transparent 50%); animation-duration: 46s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) rotate(40deg); } }

.screen { min-height: 100dvh; padding: calc(16px + var(--safe-t)) 18px calc(24px + var(--safe-b)); max-width: 1320px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: 22px; padding: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 40px rgba(5, 2, 25, .28); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }

/* przyciski */
.btn { appearance: none; border: 1px solid var(--card-line); background: rgba(255, 255, 255, .09); color: var(--text); padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 700; transition: transform .12s, background .15s, box-shadow .2s, opacity .2s; }
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, #ffd23f, #ff8a3d 60%, #ff5a5f); color: #2a1200; border: 0; box-shadow: 0 8px 24px rgba(255, 138, 61, .35), inset 0 1px 0 rgba(255, 255, 255, .5); font-weight: 800; }
.btn.primary:hover:not(:disabled) { background: linear-gradient(135deg, #ffdc62, #ff9a55 60%, #ff6b6f); box-shadow: 0 12px 30px rgba(255, 138, 61, .5), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.big { padding: 14px 26px; font-size: 1.1rem; font-family: var(--display); letter-spacing: .01em; }
.btn.small { padding: 6px 14px; font-size: .9rem; }
.btn.ghost { background: transparent; }
.btn.icon { padding: 6px 11px; font-size: 1.1rem; line-height: 1; }
.btn.danger { background: rgba(255, 74, 92, .18); border-color: rgba(255, 74, 92, .5); }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.chip { appearance: none; border: 1px solid var(--card-line); background: rgba(255, 255, 255, .08); color: var(--text); border-radius: 12px; padding: 5px 12px; cursor: pointer; font-weight: 700; }
.chip b { font-family: var(--display); letter-spacing: .12em; }
.chip:hover { background: rgba(255, 255, 255, .16); }

input[type=text], input:not([type]), input[type=password] { width: 100%; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--card-line); background: rgba(10, 6, 40, .45); color: var(--text); }
input::placeholder { color: rgba(255, 255, 255, .35); }
input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 198, 46, .25); }
label { display: block; font-weight: 700; font-size: .9rem; color: var(--muted); }
label input { margin-top: 6px; }
.form { display: grid; gap: 14px; }
.hint { margin: 0; color: var(--muted); font-size: .85rem; }
.form-err { min-height: 1.4em; margin: 12px 0 0; color: #ff9aa5; font-weight: 700; }
.tabs { display: flex; gap: 4px; padding: 4px; background: rgba(10, 6, 40, .4); border-radius: 999px; margin-bottom: 16px; }
.tab { flex: 1; appearance: none; border: 0; background: transparent; color: var(--muted); padding: 8px 12px; border-radius: 999px; cursor: pointer; font-weight: 800; }
.tab.on { background: rgba(255, 255, 255, .16); color: #fff; }
.tabs.mini { margin: 0; } .tabs.mini .tab { padding: 5px 12px; font-size: .85rem; }

/* pionek jako ikona */
.pawn-ico { --c: var(--red); display: inline-block; position: relative; width: 22px; height: 28px; vertical-align: middle; flex: none; }
.pawn-ico::before { content: ""; position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--c); box-shadow: inset -2px -3px 4px rgba(0, 0, 0, .25); }
.pawn-ico::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); background: linear-gradient(90deg, rgba(255, 255, 255, .35), transparent 35%, rgba(0, 0, 0, .25)), var(--c); border-radius: 0 0 8px 8px; }
.c0 { --c: var(--red); } .c1 { --c: var(--green); } .c2 { --c: var(--yellow); } .c3 { --c: var(--blue); }

/* ekran startowy */
.auth { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: center; padding-top: 6vh; }
.auth-hero { max-width: 560px; justify-self: end; width: 100%; }
.logo-pawns { display: flex; gap: 10px; margin-bottom: 8px; height: 66px; align-items: flex-end; }
.logo-pawns .pawn-ico { width: 44px; height: 56px; animation: drop .9s cubic-bezier(.3, 1.6, .5, 1) both; }
.logo-pawns .pawn-ico::before { width: 24px; height: 24px; margin-left: -12px; } .logo-pawns .pawn-ico::after { height: 36px; }
.logo-pawns .pawn-ico:nth-child(2) { animation-delay: .12s; } .logo-pawns .pawn-ico:nth-child(3) { animation-delay: .24s; } .logo-pawns .pawn-ico:nth-child(4) { animation-delay: .36s; }
@keyframes drop { from { transform: translateY(-140px) scaleY(1.2); opacity: 0; } 60% { opacity: 1; } }
.title { font-size: clamp(3.4rem, 9vw, 6.2rem); font-weight: 800; letter-spacing: -.02em; background: linear-gradient(100deg, #fff 20%, #ffe28a 60%, #ff9aa5); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .05em; }
.lead { font-size: 1.15rem; color: #d5cff5; max-width: 34ch; margin: 10px 0 24px; }
.auth-card { padding: 20px; }
.lb-card { align-self: center; }

/* ranking */
.lb { display: grid; gap: 4px; }
.lb-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; border: 0; background: transparent; color: inherit; text-align: left; width: 100%; }
.lb-row:hover { background: rgba(255, 255, 255, .08); }
.lb-pos { font-family: var(--display); font-weight: 800; color: var(--muted); text-align: center; }
.lb-row:nth-child(1) .lb-pos { color: #ffd23f; font-size: 1.25rem; } .lb-row:nth-child(2) .lb-pos { color: #d8dcea; } .lb-row:nth-child(3) .lb-pos { color: #e5a173; }
.lb-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lb-name small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; letter-spacing: .06em; }
.lb-val { font-family: var(--display); font-weight: 800; font-size: 1.1rem; } .lb-sub { color: var(--muted); font-size: .8rem; text-align: right; min-width: 56px; }
.empty { color: var(--muted); padding: 14px 6px; }

/* góra */
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.6rem; display: inline-flex; gap: 8px; align-items: center; }
.me-chip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-chip small { color: var(--muted); font-weight: 600; margin-left: 6px; }
.room-title { font-size: 1.3rem; }

/* lobby */
.lobby-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.play-card { display: grid; gap: 12px; }
.join { display: flex; gap: 8px; } .join input { text-transform: uppercase; letter-spacing: .2em; text-align: center; font-weight: 800; }
.tables { display: grid; gap: 8px; }
.table-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--card-line); }
.table-row b { font-family: var(--display); font-size: 1.1rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dots { display: flex; gap: 5px; } .dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: transparent; } .dots i.on { background: var(--c); border-color: var(--c); } .dots i.bot { background: transparent; border-color: var(--c); border-style: dashed; }

/* stół */
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.board-col { display: flex; justify-content: center; }
.board-wrap { position: relative; width: min(100%, calc(100dvh - 120px)); aspect-ratio: 1; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(3, 1, 20, .6), 0 0 0 6px rgba(255, 255, 255, .08); background: var(--porcelain); touch-action: manipulation; }
#board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.board-banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 5vw, 2.6rem); padding: .3em .9em; border-radius: 999px; color: #fff; background: rgba(19, 15, 46, .88); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); pointer-events: none; white-space: nowrap; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } }
.side-col { display: grid; gap: 14px; }
.dice-dock { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; }
/* Kostka 3D. UWAGA: na .dice (ani na jej dzieciach) nie wolno dawać filter/opacity/overflow – to spłaszcza transform-style: preserve-3d
   i ścianki zaczynają migać (backface-visibility). Cień jest osobnym elementem pod kostką, perspektywa jest na rodzicu .toss. */
.dice-stage { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.dice-stage::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 60px; height: 12px; margin-left: -30px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .42), transparent 72%); }
.toss { display: grid; place-items: center; perspective: 520px; position: relative; z-index: 1; }
.dice { width: 64px; height: 64px; position: relative; transform-style: preserve-3d; transform: rotateX(-25deg) rotateY(30deg) rotateZ(0deg); cursor: pointer; }
.face { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 11px; border-radius: 14px; background: linear-gradient(145deg, #fff, #e5def8); box-shadow: inset 0 0 0 2px rgba(60, 40, 120, .08), inset 0 -4px 8px rgba(80, 60, 160, .12); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face i { width: 100%; height: 100%; }
.face i.pip { background: radial-gradient(circle at 35% 30%, #5c4a99, #231744 70%); border-radius: 50%; transform: scale(.72); }
.f1 { transform: translateZ(32px); } .f6 { transform: rotateY(180deg) translateZ(32px); } .f3 { transform: rotateY(90deg) translateZ(32px); }
.f4 { transform: rotateY(-90deg) translateZ(32px); } .f2 { transform: rotateX(90deg) translateZ(32px); } .f5 { transform: rotateX(-90deg) translateZ(32px); }
.f1 i.pip { background: radial-gradient(circle at 35% 30%, #ff8a97, #d91f3a 70%); transform: scale(.9); }
.dice-dock.t0 { box-shadow: 0 0 0 2px var(--red), 0 0 36px rgba(255, 74, 92, .35); } .dice-dock.t1 { box-shadow: 0 0 0 2px var(--green), 0 0 36px rgba(39, 209, 127, .3); }
.dice-dock.t2 { box-shadow: 0 0 0 2px var(--yellow), 0 0 36px rgba(255, 198, 46, .3); } .dice-dock.t3 { box-shadow: 0 0 0 2px var(--blue), 0 0 36px rgba(59, 134, 255, .35); }
.dock-right { display: grid; gap: 10px; min-width: 0; }
.turn-label { font-family: var(--display); font-weight: 800; font-size: 1.15rem; min-height: 1.3em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.roll { width: 100%; }
.btn.roll.ready { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(255, 210, 63, .18), 0 12px 34px rgba(255, 138, 61, .6); } }
.timer { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.timer i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #27d17f, #ffc62e, #ff4a5c); background-size: 300% 100%; }

.seats { display: grid; gap: 8px; }
.seat { --c: var(--red); display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid transparent; position: relative; transition: background .2s, border-color .2s; }
.seat.turn { background: color-mix(in srgb, var(--c) 22%, transparent); border-color: var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 40%, transparent); }
.seat.you { border-color: rgba(255, 255, 255, .35); }
.seat.empty { opacity: .8; border: 1px dashed rgba(255, 255, 255, .22); background: transparent; }
.seat-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-meta { font-size: .78rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seat-home { display: inline-flex; gap: 3px; } .seat-home i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); } .seat-home i.in { background: var(--c); }
.seat-actions { display: flex; gap: 6px; }
.tag { font-size: .68rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .14); color: #fff; }
.tag.warn { background: rgba(255, 74, 92, .35); } .tag.ok { background: rgba(39, 209, 127, .3); }
.medal { font-size: 1.3rem; }
.bubble { position: absolute; right: 10px; top: -14px; background: #fff; color: #231744; padding: 3px 11px; border-radius: 14px 14px 14px 4px; font-weight: 800; font-size: .9rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); animation: pop2 .35s cubic-bezier(.2, 1.6, .4, 1); z-index: 2; }
@keyframes pop2 { from { transform: scale(.4); opacity: 0; } }

.tools-card { display: grid; gap: 12px; }
.tools-card:empty { display: none; }
.rules-grid { display: grid; gap: 8px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; color: var(--text); font-size: .95rem; }
.switch small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: rgba(255, 255, 255, .2); position: relative; cursor: pointer; margin: 0; flex: none; transition: background .2s; }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--green); } .switch input:checked::after { transform: translateX(18px); }
.switch input:disabled { opacity: .6; cursor: not-allowed; }
.switch select { background: rgba(10, 6, 40, .5); color: var(--text); border: 1px solid var(--card-line); border-radius: 10px; padding: 5px 8px; font: inherit; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.note { font-size: .85rem; color: var(--muted); margin: 0; }
.log-card { padding: 12px 14px; }
.log { height: 118px; overflow: auto; font-size: .85rem; color: #d5cff5; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.log p { margin: 0; } .log b { color: #fff; }
.emotes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--card-line); }
.emotes button { appearance: none; border: 1px solid var(--card-line); background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 4px 10px; cursor: pointer; font-size: 1.1rem; }
.emotes button.say { font-size: .78rem; font-weight: 800; color: var(--text); }
.emotes button:hover { background: rgba(255, 255, 255, .18); }

/* modale i toasty */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(8, 4, 30, .72); backdrop-filter: blur(6px); padding: 16px; }
.modal-card { background: linear-gradient(160deg, #241a52, #162f4d); border: 1px solid var(--card-line); border-radius: 26px; padding: 24px; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); animation: pop3 .3s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes pop3 { from { transform: translateY(20px) scale(.96); opacity: 0; } }
.modal-card h2 { font-size: 1.6rem; margin-bottom: 12px; }
.modal-card h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.modal-card ul { margin: 6px 0; padding-left: 1.2em; } .modal-card li { margin: 4px 0; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; justify-content: flex-end; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.stat { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 10px; text-align: center; } .stat b { display: block; font-family: var(--display); font-size: 1.5rem; } .stat span { font-size: .78rem; color: var(--muted); }
.podium { display: grid; gap: 8px; margin: 10px 0; }
.pod-row { --c: var(--red); display: grid; grid-template-columns: 36px 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid transparent; }
.pod-row.first { background: color-mix(in srgb, var(--c) 25%, transparent); border-color: var(--c); }
.delta.up { color: #6ff0ac; font-weight: 800; } .delta.down { color: #ff9aa5; font-weight: 800; }
.verify { margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-size: .88rem; }
.verify code { word-break: break-all; font-size: .75rem; color: #c9c1ee; }
.recent { display: flex; gap: 6px; flex-wrap: wrap; } .recent span { padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-weight: 800; font-size: .85rem; } .recent .w { background: rgba(39, 209, 127, .35); }
.toasts { position: fixed; left: 50%; bottom: calc(20px + var(--safe-b)); transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; width: min(92vw, 420px); pointer-events: none; }
.toast { background: rgba(19, 15, 46, .94); border: 1px solid var(--card-line); padding: 11px 16px; border-radius: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: pop2 .3s; } .toast.err { border-color: rgba(255, 74, 92, .6); }
.banner { position: fixed; top: 0; left: 0; right: 0; z-index: 70; padding: calc(8px + var(--safe-t)) 12px 8px; text-align: center; font-weight: 800; background: #ff4a5c; color: #fff; }

@media (max-width: 1080px) {
  .lobby-grid { grid-template-columns: 1fr 1fr; } .lobby-grid .lb-card { grid-column: 1 / -1; }
  .auth { grid-template-columns: 1fr; padding-top: 2vh; } .auth-hero { justify-self: center; }
}
@media (max-width: 900px) {
  .room-grid { grid-template-columns: 1fr; gap: 14px; }
  .board-wrap { width: min(100%, calc(100dvh - 170px)); }
  .screen { padding-left: 10px; padding-right: 10px; }
  .side-col { max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .lobby-grid { grid-template-columns: 1fr; }
  .dice-dock { grid-template-columns: 96px minmax(0, 1fr); } .dice-stage { width: 96px; height: 96px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .table-row { grid-template-columns: 1fr auto; } .table-row .dots { grid-column: 1; }
  .card { padding: 14px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

[hidden] { display: none !important; }
/* wynik rzutu */
.die-badge { --c: var(--yellow); display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 6px; border-radius: 999px; background: color-mix(in srgb, var(--c) 22%, transparent); border: 1px solid var(--c); font-weight: 800; width: fit-content; max-width: 100%; animation: pop3 .3s cubic-bezier(.2, 1.4, .4, 1); }
.die-badge b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; color: #231744; font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.die-badge span { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* czat */
.chat-card { padding: 12px 14px; display: grid; gap: 8px; }
.chat-title { font-size: 1rem; }
.chat-list { height: 150px; overflow: auto; display: flex; flex-direction: column; gap: 3px; font-size: .88rem; scrollbar-width: thin; overflow-wrap: anywhere; }
.chat-msg { --c: #fff; line-height: 1.3; } .chat-name { color: var(--c); margin-right: 6px; } .chat-name::after { content: ":"; }
.chat-msg .tag { margin-right: 6px; } .chat-text { color: #ece8ff; }
.chat-form { display: flex; gap: 8px; } .chat-form input { flex: 1; min-width: 0; padding: 8px 12px; }
.row-actions { display: flex; gap: 8px; align-items: center; }
/* panel administratora */
.modal-card.wide { width: min(880px, 100%); }
.adm-body { display: grid; gap: 10px; margin-top: 14px; }
.adm-card { background: rgba(255, 255, 255, .06); border: 1px solid var(--card-line); border-radius: 16px; padding: 10px 14px; display: grid; gap: 8px; }
.adm-top { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; } .adm-top > div { min-width: 0; overflow-wrap: anywhere; }
.adm-players { display: grid; gap: 6px; }
.adm-player { --c: var(--red); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .9rem; } .adm-player > span:nth-of-type(1) { flex: 1; min-width: 160px; }
.adm-btns { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.adm-search { display: flex; gap: 8px; } .adm-search input { flex: 1; }
.modal-card select, .adm-body select { background: rgba(10, 6, 40, .5); color: var(--text); border: 1px solid var(--card-line); border-radius: 10px; padding: 8px 10px; font: inherit; width: 100%; }

.pw-show { font-size: 1.5rem; letter-spacing: .1em; padding: 6px 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); user-select: all; }
