:root {
  --bg: #090909;
  --bg-elev: #111;
  --bg-card: #141414;
  --line: #222;
  --ink: #f2f2f2;
  --muted: #8e8e8e;
  --red: #e10600;
  --red-soft: #ff2a22;
  --red-deep: #9e0400;
  --green: #2ecc71;
  --radius: 10px;
  --font: "Space Grotesk", "Segoe UI", sans-serif;
  --nav-h: 72px;
  --top-h: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + 12px);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.9rem;
  background: rgba(9, 9, 9, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #151515;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  margin-right: auto;
}

.brand span {
  color: var(--red);
  margin-left: 0.15em;
}

.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(225, 6, 0, 0.35);
  background: #140a0a;
  border-radius: 999px;
  padding: 0.38rem 0.75rem 0.38rem 0.42rem;
  cursor: pointer;
}

.wallet-ico {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(225, 6, 0, 0.14);
  color: var(--red);
  flex-shrink: 0;
}

.wallet-chip strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.48rem 0.95rem;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn.login {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  color: #fff;
  border: 1px solid var(--red);
}

.btn.login svg {
  color: var(--red);
}

.btn.login:hover {
  background: rgba(225, 6, 0, 0.12);
}

.btn.primary {
  background: var(--red);
  color: #fff;
}

.btn.primary:hover {
  background: var(--red-soft);
}

.btn.full {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.btn.enter {
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.btn.enter:hover {
  background: var(--red-soft);
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 0.85rem 0.9rem 1.5rem;
}

.hero-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 168px;
  background: #101010;
  margin-bottom: 0.9rem;
  border: 1px solid #1a1a1a;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.hero-carousel.dragging {
  cursor: grabbing;
}

.slides-track {
  display: flex;
  min-height: 168px;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.slides-track.no-anim {
  transition: none;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 168px;
  height: 168px;
  background-color: #101010;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: grid;
  align-items: end;
  padding: 1.15rem 1.2rem 1.55rem;
  position: relative;
}

.slide-1 {
  background-image: url("promo/slide-1.png");
  background-position: center center;
}

.slide-2 {
  background-image: url("promo/slide-2.png");
  background-position: 65% center;
}

.slide-3 {
  background-image: url("promo/slide-3.png");
  background-position: 70% center;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 8, 8, 0.92) 0%,
    rgba(8, 8, 8, 0.72) 38%,
    rgba(8, 8, 8, 0.2) 68%,
    rgba(8, 8, 8, 0.08) 100%
  );
  pointer-events: none;
}

.slide-1::before {
  background: linear-gradient(
    90deg,
    rgba(90, 8, 8, 0.55) 0%,
    rgba(40, 4, 4, 0.25) 42%,
    transparent 70%
  );
}

.slide-copy {
  position: relative;
  max-width: 85%;
  pointer-events: none;
}

.slide-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
}

.slide h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.slide-copy p:last-child {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
}

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  z-index: 2;
  pointer-events: none;
}

.dots button {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
}

.dots button.on {
  width: 14px;
  background: var(--red);
}

.search-row {
  margin-bottom: 1.1rem;
}

.search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #121212;
  border: 1px solid #242424;
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  color: var(--muted);
}

.search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: var(--ink);
  min-width: 0;
}

.search input::placeholder {
  color: #6d6d6d;
}

.cats h2,
.markets .section-title h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.cat-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.cat {
  border: none;
  background: transparent;
  color: var(--muted);
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.cat-orb {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #141414;
  border: 1px solid #2a2a2a;
  color: #cfcfcf;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cat.active {
  color: #fff;
}

.cat.active .cat-orb {
  border-color: var(--red);
  color: #fff;
  background: #1a0a0a;
}

.wins {
  margin-bottom: 1.4rem;
}

.wins-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.15rem;
}

.wins-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.wins-head h2 strong {
  font-weight: 700;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #cfcfcf;
  background: #121212;
  border: 1px solid #242424;
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
}

.live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.wins-scroller {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  padding-bottom: 0.15rem;
}

.wins-scroller::-webkit-scrollbar {
  display: none;
}

.wins-scroller.dragging {
  cursor: grabbing;
}

.win-card {
  flex: 0 0 auto;
  width: 156px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.55rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  padding: 0.5rem;
  pointer-events: none;
}

.win-avatar {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: #151515;
  display: block;
}

.win-card .name {
  font-size: 0.78rem;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-card .amount {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.section-title .count {
  color: var(--muted);
  font-size: 0.78rem;
}

.market-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.market {
  background: var(--bg-card);
  border: 1px solid #1f1f1f;
  border-radius: var(--radius);
  padding: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.market-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.market-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
}

.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.mode-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  border: 1px solid rgba(225, 6, 0, 0.45);
  border-radius: 4px;
  padding: 0.12rem 0.35rem;
}

.market h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.market .sub {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.market .room-id {
  font-variant-numeric: tabular-nums;
  color: #cfcfcf;
}

.hint-empty {
  margin: 0;
  padding: 1.2rem 0.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr 72px 1fr 1fr;
  align-items: end;
  padding: 0.35rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom));
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  max-width: 560px;
  margin: 0 auto;
}

.nav-item {
  border: none;
  background: transparent;
  color: #7a7a7a;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.2rem;
}

.nav-item.active {
  color: var(--red);
}

.nav-deposit {
  position: relative;
  top: -16px;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 4px #0a0a0a, 0 0 0 5px rgba(225, 6, 0, 0.45);
  display: grid;
  place-items: center;
}

.nav-deposit .plus {
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
  margin-top: -2px;
}

.sheet {
  border: none;
  padding: 0;
  background: transparent;
  max-width: calc(100% - 1.5rem);
  margin: auto;
}

.sheet::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.sheet-card {
  width: min(400px, 92vw);
  background: #121212;
  border: 1px solid #242424;
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1.25rem;
  display: grid;
  gap: 0.8rem;
}

.sheet-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.remember-row {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.remember-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}

.x {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.sheet-card label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.sheet-card input {
  border: 1px solid #2a2a2a;
  background: #0c0c0c;
  border-radius: var(--radius);
  padding: 0.75rem 0.8rem;
  color: var(--ink);
  outline: none;
}

.sheet-card input:focus {
  border-color: var(--red);
}

.hint,
.join-meta,
.balance-line {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.balance-line strong {
  color: var(--green);
}

.history {
  list-style: none;
  margin: 0;
  padding: 0.65rem 0 0;
  border-top: 1px solid #222;
}

.history li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid #1c1c1c;
}

.history .empty {
  color: var(--muted);
  border: none;
  justify-content: flex-start;
}

.history .win { color: var(--green); font-weight: 700; }
.history .loss { color: var(--red); font-weight: 700; }

@media (min-width: 720px) {
  .page,
  .bottom-nav,
  .topbar {
    max-width: 680px;
  }

  .bottom-nav,
  .topbar {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
  }
}

.hidden { display: none !important; }

.panel { display: none; }
.panel.active { display: block; }

.panel-head { margin-bottom: 1.1rem; }
.panel-head h1 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 700;
}
.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.menu-list { display: grid; gap: 0.45rem; }

.menu-section {
  margin: 0.85rem 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu-section:first-child {
  margin-top: 0;
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border: 1px solid #1f1f1f;
  background: var(--bg-card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.menu-row:hover { border-color: rgba(225, 6, 0, 0.45); }
.menu-row span:last-child {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.menu-row strong {
  font-weight: 700;
  font-size: 0.92rem;
}
.menu-row small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}
.menu-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #1a0a0a;
  color: var(--red);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.menu-foot {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.rules-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
}
.rules-list strong { color: var(--ink); }
.support-line {
  margin: 0.35rem 0 0.85rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.profile-hero {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.profile-hero-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  border: none;
  background: #151515;
  flex-shrink: 0;
}
.profile-block { margin-bottom: 1.35rem; }

.profile-block .btn {
  margin-top: 1rem;
}

.profile-block .btn + .btn {
  margin-top: 0.65rem;
}
.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.field input {
  border: 1px solid #2a2a2a;
  background: #0c0c0c;
  border-radius: var(--radius);
  padding: 0.75rem 0.8rem;
  color: var(--ink);
  outline: none;
}
.field input:focus { border-color: var(--red); }

.avatar-search { margin: 0.65rem 0 0.85rem; }

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}
.avatar-opt {
  border: 1px solid #242424;
  background: #121212;
  border-radius: 10px;
  padding: 0.35rem;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  justify-items: center;
}
.avatar-opt img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #0c0c0c;
}
.avatar-opt span {
  font-size: 0.62rem;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.avatar-opt.active {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(225, 6, 0, 0.35);
}

.btn.profile-mini {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 6px;
  border: none;
  background: #140a0a;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.btn.profile-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-avatar {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
  border: none;
}

@media (min-width: 480px) {
  .avatar-grid { grid-template-columns: repeat(5, 1fr); }
}

.wallet-card {
  max-height: min(86vh, 720px);
  overflow-y: auto;
}

.wallet-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.25rem;
  background: #0c0c0c;
  border: 1px solid #242424;
  border-radius: var(--radius);
}

.wallet-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}

.wallet-tab.active {
  background: var(--red);
  color: #fff;
}

.wallet-pane {
  display: none;
  margin-top: 0.85rem;
}

.wallet-pane.active {
  display: grid;
  gap: 0.15rem;
}

.field select {
  border: 1px solid #2a2a2a;
  background: #0c0c0c;
  border-radius: var(--radius);
  padding: 0.75rem 0.8rem;
  color: var(--ink);
  outline: none;
}

.field select:focus {
  border-color: var(--red);
}

.field textarea {
  border: 1px solid #2a2a2a;
  background: #0c0c0c;
  border-radius: var(--radius);
  padding: 0.7rem 0.75rem;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.35;
  resize: vertical;
  word-break: break-all;
}

.pix-result {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #222;
  display: grid;
  gap: 0.55rem;
}

.pix-qr-wrap {
  margin: 0.25rem auto 0;
  padding: 0.65rem;
  background: #fff;
  border-radius: 10px;
  width: fit-content;
}

.pix-amount {
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: var(--green);
}

.how-room-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
}

.how-room-list strong {
  color: #fff;
}

.how-room-warn {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(225, 6, 0, 0.45);
  background: rgba(225, 6, 0, 0.12);
  color: #ffb4b0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.how-room-warn strong {
  color: #fff;
}

.pix-status.paid {
  color: var(--green);
  font-weight: 700;
}

.pix-status.failed {
  color: var(--red);
}

#pix-qr-img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
}

#pix-qr-img.hidden,
#pix-qr.hidden {
  display: none;
}

/* —— Room lobby —— */
#panel-room {
  padding-bottom: 1.25rem;
}

.room-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.65rem;
  align-items: start;
  margin-bottom: 1rem;
}

.room-back {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: #121212;
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
}

.room-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--red);
}

.room-head-text h1 {
  margin: 0.1rem 0 0.2rem;
  font-size: 1.15rem;
  line-height: 1.15;
}

.room-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.room-lobby {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.team-block {
  background: #101010;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 0.7rem;
}

.team-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.team-label.team-a { color: #5dade2; }
.team-label.team-b { color: #e74c3c; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.slot-grid.cols-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-slot {
  position: relative;
  min-height: 92px;
  border-radius: 10px;
  border: 1px dashed #2c2c2c;
  background: #0c0c0c;
  display: grid;
  place-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.4rem 0.45rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  text-align: center;
}

.player-slot:active {
  transform: scale(0.98);
}

.player-slot.empty:hover {
  border-color: var(--red);
  background: #140808;
}

.player-slot.filled {
  border-style: solid;
  border-color: #2a2a2a;
  background: #141414;
  cursor: default;
}

.player-slot.mine {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(225, 6, 0, 0.35);
}

.player-slot.ready {
  border-color: #1e8449;
}

.slot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: #1a1a1a;
  border: none;
}

.player-slot.mine .slot-avatar {
  border: none;
}

.player-slot.ready .slot-avatar {
  border: none;
}

.slot-empty-ico {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px dashed #3a3a3a;
  display: grid;
  place-items: center;
  color: #555;
  font-size: 1.35rem;
  font-weight: 500;
}

.slot-nick {
  font-size: 0.72rem;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-hint {
  font-size: 0.65rem;
  color: var(--muted);
}

.slot-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: #1e8449;
  color: #fff;
}

.slot-num {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 0.62rem;
  color: #555;
  font-weight: 700;
}

.slot-kick {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(180, 30, 40, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.player-slot.has-kick .slot-badge {
  right: 28px;
}

.room-vs {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--red);
  font-size: 0.85rem;
}

.room-chat {
  margin: 0.85rem 0 1rem;
  background: #101010;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 0.65rem;
  display: grid;
  gap: 0.5rem;
}

.room-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.room-chat-head strong {
  color: var(--ink);
  letter-spacing: 0.12em;
}

.room-chat-log {
  height: 140px;
  overflow-y: auto;
  display: grid;
  gap: 0.35rem;
  padding: 0.35rem 0.2rem;
  border-radius: 8px;
  background: #0c0c0c;
  border: 1px solid #1a1a1a;
}

.chat-line {
  font-size: 0.78rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
}

.chat-line .chat-nick {
  color: var(--red);
  font-weight: 700;
  margin-right: 0.25rem;
}

.chat-line.sys {
  color: var(--muted);
  font-style: italic;
}

.chat-empty {
  font-size: 0.78rem;
  color: #555;
  padding: 0.4rem;
}

.room-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
}

.room-chat-form input {
  border: 1px solid #2a2a2a;
  background: #0c0c0c;
  border-radius: var(--radius);
  padding: 0.65rem 0.7rem;
  color: var(--ink);
  outline: none;
  font-size: 0.84rem;
}

.room-chat-form input:focus {
  border-color: var(--red);
}

.room-chat-form .btn {
  padding: 0.65rem 0.9rem;
  min-width: 76px;
}

.room-actions {
  display: grid;
  gap: 0.55rem;
}

.room-status {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.game-creds {
  background: #101010;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.game-creds.hidden { display: none; }

.game-creds-title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
}

.game-creds-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.game-creds-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  background: #0c0c0c;
  border-radius: 8px;
  border: 1px solid #222;
  font-size: 0.85rem;
}

.game-creds-row strong {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--green);
}

.player-slot.confirmed {
  border-color: #c9a227;
}

.slot-badge.confirm {
  background: #c9a227;
  color: #111;
}
