:root {
  --bg-1: #1a1428;
  --bg-2: #07070b;
  --panel: rgba(20, 18, 34, 0.72);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f2f0ff;
  --muted: #9b93b8;
  --gold: #ffd166;
  --gold-2: #ff9f1c;
  --danger: #ff4d6d;
  --cyan: #4cc9f0;
  --violet: #7b61ff;
  --green: #06d6a0;
  --card-w: 96px;
  --card-h: 144px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 50% 0%, var(--bg-1), var(--bg-2) 70%);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 300px at 15% 10%, rgba(123, 97, 255, 0.16), transparent 70%),
    radial-gradient(700px 400px at 85% 90%, rgba(255, 77, 109, 0.1), transparent 70%),
    radial-gradient(500px 350px at 80% 15%, rgba(76, 201, 240, 0.08), transparent 70%);
  z-index: 0;
}

.screen {
  position: relative;
  z-index: 1;
  height: 100vh;
}

/* ------------------------------------------------------------------ */
/* Entrada                                                             */
/* ------------------------------------------------------------------ */

.enter-screen {
  display: grid;
  place-items: center;
  padding: 24px;
}

.enter-card {
  width: min(440px, 100%);
  padding: 40px 34px 32px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(32, 26, 54, 0.9), rgba(12, 11, 20, 0.92));
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo-suits {
  font-size: 30px;
  letter-spacing: 10px;
  margin-bottom: 10px;
}

.s-red { color: #ff4d6d; text-shadow: 0 0 18px rgba(255, 77, 109, 0.8); }
.s-blue { color: #c8d4e8; text-shadow: 0 0 18px rgba(200, 212, 232, 0.7); }
.s-orange { color: #ff8a5c; text-shadow: 0 0 18px rgba(255, 138, 92, 0.8); }
.s-steel { color: #8ea4c8; text-shadow: 0 0 18px rgba(142, 164, 200, 0.7); }

.enter-card h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, #fff, #c9b8ff 45%, #7bd6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 8px 0 26px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.3px;
}

#enter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#name-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: rgba(8, 8, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#name-input:focus {
  border-color: rgba(123, 97, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.2);
}

#name-input::placeholder {
  color: #6a6383;
}

.enter-error {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 13px;
  color: #ff8fa3;
}

.hint {
  color: #6f6889;
  font-size: 12px;
  line-height: 1.5;
  margin: 14px 0 0;
}

.back-link {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Botones                                                             */
/* ------------------------------------------------------------------ */

.btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s, opacity 0.2s;
  color: #0b0b12;
  letter-spacing: 0.2px;
}

.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.btn.primary {
  background: linear-gradient(120deg, #8a6bff, #4cc9f0);
  box-shadow: 0 10px 28px rgba(123, 97, 255, 0.35);
  color: #fff;
}

.btn.primary:hover:not(:disabled) {
  box-shadow: 0 12px 34px rgba(123, 97, 255, 0.55);
}

.btn.gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  color: #221600;
  box-shadow: 0 10px 28px rgba(255, 180, 60, 0.3);
}

.btn.gold:hover:not(:disabled) {
  box-shadow: 0 12px 36px rgba(255, 180, 60, 0.5);
}

.btn.danger {
  background: linear-gradient(120deg, #ff4d6d, #ff8a5c);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 77, 109, 0.3);
}

.btn.danger:hover:not(:disabled) {
  box-shadow: 0 12px 36px rgba(255, 77, 109, 0.5);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn.ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

/* ------------------------------------------------------------------ */
/* Estructura del juego                                                */
/* ------------------------------------------------------------------ */

.game-screen {
  display: flex;
  flex-direction: column;
  padding: 14px 20px 18px;
  gap: 10px;
}

#topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 44px;
}

.brand {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: #e9e5ff;
  white-space: nowrap;
}

.brand-suit {
  color: #ff4d6d;
  text-shadow: 0 0 14px rgba(255, 77, 109, 0.8);
}

.scoreboard {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn.small {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 10px;
}

.score-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.score-chip.me {
  background: rgba(123, 97, 255, 0.16);
  border-color: rgba(123, 97, 255, 0.45);
}

.score-chip.turn {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(76, 201, 240, 0.4), 0 0 18px rgba(76, 201, 240, 0.35);
}

.chip-name {
  color: #dcd7f0;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-score {
  font-weight: 800;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.12);
  border-radius: 999px;
  padding: 1px 8px;
  min-width: 22px;
  text-align: center;
}

.mini-avatar {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------------ */
/* Mesa                                                                */
/* ------------------------------------------------------------------ */

.table {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rivals {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding: 4px 0 2px;
}

.rival {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--panel-border);
  min-width: 128px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.rival.turn {
  border-color: rgba(76, 201, 240, 0.75);
  box-shadow: 0 0 0 1px rgba(76, 201, 240, 0.25), 0 0 26px rgba(76, 201, 240, 0.28);
}

.rival.winner {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.4), 0 0 34px rgba(255, 180, 60, 0.45);
  transform: translateY(-3px);
}

.rival.offline {
  opacity: 0.5;
}

.rival-head {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
}

.rival-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.rival-name {
  font-size: 13.5px;
  font-weight: 700;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rival-score {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
}

.mini-hand {
  display: flex;
  gap: 4px;
  justify-content: center;
  min-height: 62px;
  align-items: center;
}

.mini-card {
  width: 42px;
  height: 62px;
  border-radius: 7px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.card-back {
  background:
    repeating-linear-gradient(45deg, rgba(123, 97, 255, 0.38) 0 7px, transparent 7px 14px),
    repeating-linear-gradient(-45deg, rgba(76, 201, 240, 0.24) 0 7px, transparent 7px 14px),
    linear-gradient(160deg, #18112e, #0a0a13);
  border: 1px solid rgba(150, 120, 255, 0.5);
  box-shadow: inset 0 0 16px rgba(123, 97, 255, 0.25), 0 4px 12px rgba(0, 0, 0, 0.45);
}

.mini-card svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mini-card.win-card {
  box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(255, 190, 70, 0.8);
}

/* ------------------------------------------------------------------ */
/* Centro: mazo + estado                                               */
/* ------------------------------------------------------------------ */

.table-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 6vw, 70px);
  min-height: 90px;
  position: relative;
}

.deck {
  position: relative;
  width: 64px;
  height: 92px;
  flex: 0 0 auto;
}

.deck-stack {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background:
    repeating-linear-gradient(45deg, rgba(123, 97, 255, 0.32) 0 7px, transparent 7px 14px),
    repeating-linear-gradient(-45deg, rgba(76, 201, 240, 0.22) 0 7px, transparent 7px 14px),
    linear-gradient(160deg, #18112e, #0a0a13);
  border: 1px solid rgba(150, 120, 255, 0.55);
  box-shadow: 0 0 22px rgba(123, 97, 255, 0.25), 0 8px 20px rgba(0, 0, 0, 0.5);
}

.deck-stack.s2 {
  transform: translate(5px, 4px);
  opacity: 0.6;
  z-index: -1;
}

.deck-stack.s3 {
  transform: translate(10px, 8px);
  opacity: 0.35;
  z-index: -2;
}

.deck-count {
  position: absolute;
  right: -10px;
  bottom: -10px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #0b0b12;
  background: linear-gradient(120deg, #bda9ff, #6ee7ff);
  box-shadow: 0 4px 14px rgba(76, 201, 240, 0.4);
}

.status {
  font-size: 15px;
  font-weight: 600;
  color: #cfc9e6;
  text-align: center;
  max-width: 46ch;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.status.my-turn {
  color: #d9fff7;
  border-color: rgba(6, 214, 160, 0.6);
  box-shadow: 0 0 22px rgba(6, 214, 160, 0.28);
  animation: pulseGreen 1.6s ease-in-out infinite;
}

.status.showdown {
  color: #fff3d1;
  border-color: rgba(255, 209, 102, 0.6);
  box-shadow: 0 0 24px rgba(255, 180, 60, 0.3);
}

/* ------------------------------------------------------------------ */
/* Mano                                                                */
/* ------------------------------------------------------------------ */

.hand-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
}

.hand {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(6px, 1.2vw, 14px);
  min-height: calc(var(--card-h) + 22px);
  padding-top: 18px;
  touch-action: none;
  perspective: 1200px;
}

.card {
  position: relative;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: 12px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s, filter 0.18s;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  will-change: transform;
}

.card svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.6);
}

.card.selected {
  transform: translateY(-18px);
  box-shadow: 0 0 0 2px var(--cyan), 0 0 28px rgba(76, 201, 240, 0.65), 0 16px 30px rgba(0, 0, 0, 0.55);
}

.card.selected:hover {
  transform: translateY(-22px);
}

.card.dragging {
  cursor: grabbing;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 24px 48px rgba(0, 0, 0, 0.7);
  transition: none;
  z-index: 50;
}

.card.win-card {
  box-shadow: 0 0 0 2px var(--gold), 0 0 30px rgba(255, 190, 70, 0.85), 0 14px 30px rgba(0, 0, 0, 0.55);
}

.card.flip-reveal {
  animation: flipReveal 0.55s cubic-bezier(0.3, 0.9, 0.3, 1) both;
}

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.controls .btn {
  min-width: 170px;
}

/* ------------------------------------------------------------------ */
/* Sala de espera                                                      */
/* ------------------------------------------------------------------ */

.lobby {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 5, 10, 0.55);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
}

.lobby-panel {
  width: min(460px, 100%);
  padding: 28px 28px 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(34, 28, 56, 0.96), rgba(11, 10, 18, 0.97));
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lobby-panel h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}

.lobby-count {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.lobby-players {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.lobby-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.lobby-player.me {
  border-color: rgba(123, 97, 255, 0.5);
  background: rgba(123, 97, 255, 0.12);
}

.lobby-player.offline {
  opacity: 0.5;
}

.lp-name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-name em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.14);
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 6px;
}

.lp-score {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
}

.lp-ready {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.lp-ready.on {
  background: rgba(6, 214, 160, 0.16);
  color: #7dffcf;
  box-shadow: 0 0 14px rgba(6, 214, 160, 0.25);
}

.lobby-actions {
  display: flex;
  gap: 12px;
}

.lobby-actions .btn {
  flex: 1;
}

/* ------------------------------------------------------------------ */
/* Showdown                                                            */
/* ------------------------------------------------------------------ */

.showdown-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 26px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(48, 36, 12, 0.95), rgba(16, 12, 6, 0.96));
  border: 1px solid rgba(255, 209, 102, 0.55);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 180, 60, 0.25);
  text-align: center;
  animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: min(620px, 92vw);
}

.showdown-banner.is-me {
  border-color: var(--gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 60px rgba(255, 190, 70, 0.5);
}

.sd-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

.sd-text {
  font-size: clamp(16px, 2.4vw, 21px);
  font-weight: 800;
  color: #fff4d6;
  line-height: 1.25;
}

.showdown-banner .btn {
  padding: 10px 22px;
}

.showdown-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.sd-wait {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.abort-vote {
  position: absolute;
  top: 74px;
  right: 20px;
  z-index: 45;
  width: min(330px, calc(100vw - 40px));
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(56, 20, 40, 0.97), rgba(16, 10, 20, 0.97));
  border: 1px solid rgba(255, 77, 109, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 36px rgba(255, 77, 109, 0.22);
  animation: rise 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.av-title {
  margin: 0 0 6px;
  color: #ffb3c6;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.av-text {
  margin: 0 0 12px;
  color: #ffe4ea;
  font-size: 13px;
  line-height: 1.45;
}

.av-actions {
  display: flex;
  gap: 8px;
}

.av-actions .btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 13px;
}

/* ------------------------------------------------------------------ */
/* Toast                                                               */
/* ------------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 100;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(40, 12, 20, 0.95);
  border: 1px solid rgba(255, 77, 109, 0.6);
  color: #ffd6dd;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  animation: rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: 90vw;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* Animaciones                                                         */
/* ------------------------------------------------------------------ */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.showdown-banner {
  animation-name: riseCenter;
}

@keyframes riseCenter {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 14px)) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes flipReveal {
  0% {
    transform: rotateY(180deg) scale(0.92);
    opacity: 0.15;
  }
  100% {
    transform: rotateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes pulseGreen {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(6, 214, 160, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(6, 214, 160, 0.45);
  }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 820px) {
  :root {
    --card-w: 76px;
    --card-h: 114px;
  }

  .game-screen {
    padding: 10px 12px 14px;
  }

  .brand {
    font-size: 14px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .chip-name {
    max-width: 70px;
  }

  .mini-card {
    width: 34px;
    height: 50px;
  }

  .controls .btn {
    min-width: 140px;
  }

  .status {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  :root {
    --card-w: 60px;
    --card-h: 90px;
  }

  .scoreboard {
    gap: 5px;
  }

  .chip-name {
    display: none;
  }

  .rival {
    min-width: 108px;
    padding: 8px 10px;
  }

  .controls {
    gap: 8px;
  }

  .controls .btn {
    min-width: 0;
    flex: 1;
    font-size: 13px;
    padding: 11px 14px;
  }

  .topbar-actions .btn {
    flex: 1;
  }

  .abort-vote {
    top: auto;
    right: 12px;
    bottom: 82px;
    left: 12px;
    width: auto;
  }
}
