:root {
  --home-ink: #23252f;
  --home-brown: #6d4c3e;
  --home-brown-deep: #4e352b;
  --home-red: #a52d24;
  --home-red-deep: #7d2119;
  --home-gold: #d8bc79;
  --home-cream: #f3ead2;
  --home-paper: #f6f1e5;
  --home-line: rgba(74, 52, 39, 0.16);
  --home-shadow: rgba(30, 20, 15, 0.18);
  
  /* Texture variables */
  --texture-parchment: url("img/textures/background-role.png");
  --texture-paper: url("img/textures/background-compo.png");
  --texture-leather: linear-gradient(135deg, #2c3e50 0%, #000000 100%); /* Deep dark leather-like */
  
  /* Premium Glows */
  --glow-gold: 0 0 15px rgba(229, 198, 132, 0.3);
  --glow-red: 0 0 15px rgba(165, 45, 36, 0.4);
  --card-frame-dark: #120e0a;
  --card-frame-bronze: #4e352b;
  --card-frame-highlight: rgba(255, 255, 255, 0.28);
  --card-frame-glow: rgba(255, 255, 255, 0.12);
  --card-frame-shadow: rgba(0, 0, 0, 0.5);
  --card-premium-surface: linear-gradient(180deg, rgba(18, 12, 9, 0.96), rgba(31, 20, 14, 0.96));
  --card-premium-ornaments:
    linear-gradient(45deg, transparent 34%, rgba(255, 255, 255, 0.98) 34% 50%, transparent 50% 66%, rgba(255, 255, 255, 0.72) 66% 70%, transparent 70%) top 8px center / 9px 9px no-repeat,
    linear-gradient(-45deg, transparent 34%, rgba(255, 255, 255, 0.98) 34% 50%, transparent 50% 66%, rgba(255, 255, 255, 0.72) 66% 70%, transparent 70%) top 8px center / 9px 9px no-repeat,
    linear-gradient(45deg, transparent 34%, rgba(255, 255, 255, 0.98) 34% 50%, transparent 50% 66%, rgba(255, 255, 255, 0.72) 66% 70%, transparent 70%) bottom 8px center / 9px 9px no-repeat,
    linear-gradient(-45deg, transparent 34%, rgba(255, 255, 255, 0.98) 34% 50%, transparent 50% 66%, rgba(255, 255, 255, 0.72) 66% 70%, transparent 70%) bottom 8px center / 9px 9px no-repeat,
    linear-gradient(45deg, transparent 34%, rgba(255, 255, 255, 0.98) 34% 50%, transparent 50% 66%, rgba(255, 255, 255, 0.72) 66% 70%, transparent 70%) left 8px center / 9px 9px no-repeat,
    linear-gradient(-45deg, transparent 34%, rgba(255, 255, 255, 0.98) 34% 50%, transparent 50% 66%, rgba(255, 255, 255, 0.72) 66% 70%, transparent 70%) left 8px center / 9px 9px no-repeat,
    linear-gradient(45deg, transparent 34%, rgba(255, 255, 255, 0.98) 34% 50%, transparent 50% 66%, rgba(255, 255, 255, 0.72) 66% 70%, transparent 70%) right 8px center / 9px 9px no-repeat,
    linear-gradient(-45deg, transparent 34%, rgba(255, 255, 255, 0.98) 34% 50%, transparent 50% 66%, rgba(255, 255, 255, 0.72) 66% 70%, transparent 70%) right 8px center / 9px 9px no-repeat;

  /* Mode colors [NEW from Video] */
  --color-carnage: #ff00ff;
  --color-fun: #00ccff;
  --color-normal: #44cc44;
  --color-serious: #ff66aa;

  --bg-parchment: #f4e9d5;

  /* Glassmorphism Tokens */
  --glass-bg: rgba(13, 17, 23, 0.72);
  --glass-bg-deep: rgba(13, 17, 23, 0.85);
  --glass-bg-light: rgba(255, 255, 255, 0.05);
  --glass-blur: blur(12px);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-bright: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.premium-card-frame {
  position: relative;
  overflow: visible;
}

.premium-card-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
  z-index: 2;
}

.premium-card-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: none;
  pointer-events: none;
  z-index: 1;
}

html,
body {
  margin: 0;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at center, #1a2332 0%, #0d1117 100%);
  background-attachment: fixed;
  color: var(--home-ink);
  font-family: "Montserrat", sans-serif;
  line-height: 1.45;
  position: relative;
  overflow-x: hidden;
}

/* Atmospheric Particles */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  animation: drift 60s linear infinite;
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 500px 500px; }
}

body.mode-home {
  background: linear-gradient(180deg, #0f1621 0%, #182436 34%, #d7c39a 34.1%, #efe6d2 100%);
  font-family: "Source Sans Pro", sans-serif;
}

body.mode-lobby,
body.mode-game {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

body.mode-lobby .site-header,
body.mode-game .site-header,
body.mode-lobby .site-footer,
body.mode-game .site-footer {
  display: none;
}

body.mode-home .site-footer {
  background: #182436;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Acme", sans-serif;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

.view {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(17, 24, 37, 0.92);
  border-bottom: 1px solid rgba(229, 198, 132, 0.26);
  box-shadow: 0 10px 24px rgba(4, 5, 8, 0.2);
}

.header-support-link {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  background: rgba(229, 198, 132, 0.15);
  border: 1px solid rgba(229, 198, 132, 0.4);
  color: #fff2df;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.header-support-link:hover {
  background: rgba(229, 198, 132, 0.3);
  border-color: rgba(229, 198, 132, 0.7);
  transform: translateY(-52%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-lang-selector {
  display: flex;
  gap: 8px;
  margin-left: 12px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: rgba(229, 198, 132, 0.2);
  border-color: rgba(229, 198, 132, 0.5);
  box-shadow: 0 0 10px rgba(229, 198, 132, 0.2);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

body.mode-lobby .shell,
body.mode-game .shell {
  padding: 0;
  background: none;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.header-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 228, 171, 0.34);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

.header-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-kicker {
  color: rgba(255, 227, 161, 0.82);
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-title {
  color: #fff2df;
  font-family: "Acme", sans-serif;
  font-size: 1.3rem;
}

.header-stats {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.header-chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 231, 0.08);
  border: 1px solid rgba(244, 207, 131, 0.22);
  color: rgba(255, 242, 215, 0.88);
  font-size: 0.82rem;
}

.header-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}

.header-card-btn:hover,
.header-card-btn:focus-visible {
  background: rgba(255, 248, 231, 0.14);
  border-color: rgba(244, 207, 131, 0.38);
  transform: translateY(-1px);
}

.header-card-btn.is-active {
  background: rgba(244, 207, 131, 0.16);
  border-color: rgba(244, 207, 131, 0.48);
}

.header-card-btn.is-active .header-card-icon {
  filter: brightness(1.2);
}

.header-card-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.flash {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 141;
  width: min(360px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(7, 10, 16, 0.32);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.network-flash {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
  width: min(360px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(7, 10, 16, 0.32);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.flash-error {
  background: rgba(109, 31, 22, 0.9);
  color: #ffe5df;
}

.flash-success {
  background: rgba(26, 86, 44, 0.9);
  color: #e6ffe9;
}

.flash-info {
  background: rgba(27, 74, 115, 0.9);
  color: #e4f0fb;
}

.network-flash-error {
  background: rgba(109, 31, 22, 0.9);
  color: #ffe5df;
}

.network-flash-success {
  background: rgba(26, 86, 44, 0.9);
  color: #e6ffe9;
}

.network-flash-info {
  background: rgba(27, 74, 115, 0.9);
  color: #e4f0fb;
}

.afk-warning-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 10, 16, 0.7);
  backdrop-filter: blur(12px);
}

body.afk-warning-visible {
  overflow: hidden;
}

.afk-warning-card {
  width: min(440px, calc(100vw - 32px));
  padding: 24px 24px 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(41, 49, 69, 0.98), rgba(20, 24, 38, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  text-align: center;
  color: #f5ebd1;
}

.afk-warning-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 221, 154, 0.82);
}

.afk-warning-card h2 {
  margin: 10px 0 8px;
  font-size: 1.7rem;
  line-height: 1.1;
}

.afk-warning-card p {
  margin: 0;
  color: rgba(244, 233, 210, 0.8);
  line-height: 1.5;
}

.afk-warning-timer {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 245, 215, 0.08);
  border: 1px solid rgba(255, 222, 156, 0.18);
  font-weight: 800;
  color: #ffd98f;
}

#afk-warning-countdown {
  font-size: 2.2rem;
  line-height: 1;
  min-width: 2ch;
}

.quit-confirm-kicker {
  color: rgba(255, 130, 100, 0.9);
}

.quit-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}

.quit-confirm-btn-leave {
  background: rgba(200, 60, 60, 0.75);
  border-color: rgba(200, 60, 60, 0.5);
}

.quit-confirm-btn-leave:not(:disabled):hover {
  background: rgba(200, 60, 60, 0.95);
}

.quit-confirm-btn-leave:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lg-field-label {
  color: currentColor;
  opacity: 0.78;
  font-size: 0.86rem;
}

.lg-field-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(89, 57, 37, 0.16);
  border-radius: 12px;
  background: rgba(255, 252, 245, 0.96);
  color: var(--home-ink);
  padding: 10px 14px;
  font: inherit;
}

.lg-field-input:focus {
  outline: none;
  border-color: rgba(166, 117, 50, 0.7);
  box-shadow: 0 0 0 3px rgba(217, 188, 121, 0.22);
}

.btn {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* --- LANDING LGEL 2020 --- */
.landing {
  padding-bottom: 30px;
}

.landing-main-grid {
  display: flex;
  margin: 15px 0;
  gap: 15px;
  align-items: stretch;
}

.landing-camp-section {
  flex: 3 1 75%;
  background: url("img/scenes/village-day.png") center bottom / cover no-repeat,
    url("img/scenes/clouds1.png") top center / contain no-repeat #f4e5c2;
  border: 1px solid #c9b0a0;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 30px 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.camp-card {
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.camp-card-img-wrap {
  position: relative;
  width: 140px;
  height: 200px;
  margin-bottom: 15px;
}

.camp-card-img {
  width: 130px;
  position: absolute;
  top: 0;
  left: 5px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.img-left {
  transform: rotate(-8deg);
  z-index: 1;
}

.img-right {
  transform: rotate(8deg);
  z-index: 2;
}

.camp-card:hover .img-left {
  transform: rotate(-15deg) scale(1.05);
}

.camp-card:hover .img-right {
  transform: rotate(15deg) scale(1.05);
}

.camp-title {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 1.8rem;
  color: #5a3530;
  margin-bottom: 6px;
}

.camp-villagers {
  color: #fff6e6;
  text-shadow:
    0 2px 0 rgba(58, 31, 18, 0.92),
    0 0 10px rgba(0, 0, 0, 0.4);
}

.camp-wolves {
  color: #ffe7d9;
  text-shadow:
    0 2px 0 rgba(44, 14, 14, 0.96),
    0 0 12px rgba(0, 0, 0, 0.48);
}

.camp-desc {
  font-family: "Montserrat", sans-serif;
  color: #444;
  font-weight: 500;
  font-size: 0.95rem;
  max-width: 180px;
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.camp-center {
  text-align: center;
  z-index: 2;
  max-width: 260px;
  padding: 0 10px;
}

.camp-center-title {
  font-family: 'Boogaloo', sans-serif;
  font-size: 3.8rem;
  color: #000;
  line-height: 1;
  text-shadow: 2px 2px 0px #fff, -2px -2px 0px #fff, 2px -2px 0px #fff, -2px 2px 0px #fff;
}

.camp-center-title strong {
  display: block;
  text-align: center;
}

.camp-center-title span {
  display: block;
  font-size: 2.4rem;
  color: #b45f06;
}

.camp-center-desc {
  margin-top: 20px;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
  border-radius: 8px;
  font-family: "Source Sans Pro", sans-serif;
  color: #222;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.color-loup {
  color: #900;
}

.landing-access-section {
  flex: 1 1 25%;
  background: #d3bfab url("img/textures/background-role.png") center / cover;
  border: 1px solid #c9b0a0;
  border-radius: 5px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.access-header {
  text-align: center;
  font-family: 'Acme', sans-serif;
  font-size: 2rem;
  color: #3e261d;
  margin-bottom: 5px;
}

.access-divider {
  display: flex;
  align-items: center;
  margin: 10px 0 20px;
}

.divider-line {
  flex: auto;
  border-top: 1px dotted rgba(62, 38, 29, 0.4);
}

.divider-hr {
  width: 120px;
  height: 14px;
  border: none;
  background: url("img/textures/hr.png") center / contain no-repeat;
  margin: 0 10px;
}

.access-form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  gap: 15px;
}

.access-form-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access-input {
  padding: 12px;
  border: 1px inset #a08c7a;
  border-radius: 4px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.05rem;
  background: #f8f1e5;
  color: #333;
  width: 100%;
}

.access-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(155, 30, 25, 0.4);
}

.access-form-row {
  display: flex;
  gap: 8px;
}

.access-input-code {
  flex: 1;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(to bottom, #9b1e19, #67100c);
  color: white;
  border: 1px solid #4a0b08;
  padding: 10px 18px;
  font-family: 'Acme', sans-serif;
  font-size: 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-shadow: 1px 1px 2px #000;
  transition: filter 0.2s;
}

.btn-primary:empty {
  display: none;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.15);
}

.access-create-row {
  margin-top: 15px;
  text-align: center;
}

.btn-create-room {
  width: 100%;
  padding: 14px;
}

.home-panel-hint {
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(62, 38, 29, 0.8);
}

.landing-cards-gallery-shell {
  position: relative;
  margin-bottom: 20px;
  overflow: visible;
}

.landing-cards-gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.6fr 1fr 0.55fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}

.gallery-col {
  min-width: 0;
  background: rgba(193, 154, 118, 0.64);
  border: 1px solid rgba(110, 79, 56, 0.18);
  border-radius: 6px;
  padding: 10px 10px 12px;
}

.gallery-header {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 1.12rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-thiercelieux {
  color: #5a3530;
}

.header-nouvelle-lune {
  color: #576b87;
}

.header-personnages {
  color: #92aa63;
}

.header-site {
  color: #c4a84f;
}

.header-village {
  color: #c27e31;
}

.gallery-header div {
  flex: 1;
  height: 2px;
  background: currentColor;
  opacity: 0.15;
}

.gallery-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gallery-col-20 .gallery-cards {
  grid-template-columns: 1fr;
}

.gallery-card-button {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: transform 0.18s ease;
}

.gallery-card-button.premium-card-frame {
  border-radius: 8px;
}

.gallery-card-button:hover,
.gallery-card-button:focus-visible {
  transform: translateY(-4px) scale(1.12);
  z-index: 3;
}

.gallery-card-button.is-active {
  transform: translateY(-4px) scale(1.12);
  z-index: 4;
}

.gallery-card {
  width: 100%;
  border-radius: 6px;
  border: 3px solid #1c1411;
  box-shadow: 0 4px 10px rgba(14, 10, 8, 0.32);
  background: #f4ead2;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.gallery-card-button:hover .gallery-card,
.gallery-card-button:focus-visible .gallery-card {
  box-shadow: 0 10px 18px rgba(14, 10, 8, 0.4);
}

.gallery-card-button.is-active .gallery-card {
  border-color: #8e1f15;
  box-shadow: 0 0 0 3px rgba(224, 188, 122, 0.72), 0 6px 14px rgba(14, 10, 8, 0.32);
}

.role-detail-panel {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid rgba(96, 68, 49, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.98), rgba(242, 229, 198, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 18px rgba(40, 24, 18, 0.08);
}

.role-detail-panel-home {
  position: absolute;
  z-index: 8;
  width: min(320px, calc(100vw - 36px));
  max-width: 320px;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(14px) scale(0.98);
  box-shadow: 0 8px 18px rgba(40, 24, 18, 0.12);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.role-detail-panel-home.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(0) scale(1);
  box-shadow: 0 12px 28px rgba(40, 24, 18, 0.18);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.role-detail-panel-home.is-opening {
  animation: landing-role-popup-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes landing-role-popup-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
    filter: saturate(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

.landing-role-popup-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #8d6f58;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
}

.landing-role-popup-close:hover {
  color: #4a2c1f;
  background: rgba(96, 68, 49, 0.1);
}

.role-detail-kicker {
  margin-bottom: 6px;
  color: #8d6f58;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-detail-title {
  color: #4a2c1f;
  font-family: "Acme", sans-serif;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.role-detail-text {
  color: #5e4a3d;
  line-height: 1.5;
}

.role-detail-text strong {
  color: #4a2c1f;
}

.role-detail-text b {
  font-weight: 700;
  color: #4a2c1f;
}

.landing-facts {
  background: #fffdf9;
  border: 1px solid #e8decb;
  border-left: 4px solid var(--hybrid-gold);
  border-radius: var(--hybrid-radius-lg);
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 18px;
}

.facts li {
  position: relative;
  padding-left: 30px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.4;
}

.facts li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--hybrid-gold);
  font-size: 0.75rem;
  top: 4px;
}

.facts-font {
  font-family: 'Acme', sans-serif;
  font-size: 1.2rem;
}

.facts-color-3 {
  color: #c44032;
}

.facts-color-2 {
  color: #3273c4;
}

[data-tooltip] {
  direction: ltr;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 120px;
  max-width: 230px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #1f2d4d;
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.26);
}

[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: #1f2d4d;
  pointer-events: none;
  z-index: 19;
}

@media (max-width: 1040px) {
  .landing-main-grid {
    flex-direction: column;
  }

  .role-detail-panel-home {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 16px;
    transform: translateY(14px) scale(0.98);
  }

  .role-detail-panel-home.is-visible {
    transform: translateY(0) scale(1);
  }

  .landing-cards-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-col-20 {
    grid-column: span 2;
  }
}

@media (max-width: 780px) {

  .shell,
  .header-inner,
  .footer-inner,
  .flash {
    width: min(100%, calc(100% - 24px));
  }

  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .camp-card-img-wrap {
    width: 100px;
    height: 140px;
  }

  .camp-card-img {
    width: 90px;
  }

  .camp-center-title {
    font-size: 2.8rem;
  }

  .camp-center-title span {
    font-size: 1.8rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 8px 14px;
  }
}

/* --- FUN/CARNAGE UI ADDITIONS --- */

.parchment-bg {
  background-color: var(--home-paper);
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  border: 1px solid var(--home-line);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.05), var(--home-shadow);
}

/* Game List Section */
.home-game-list {
  margin: 40px 0;
}

.game-list-tabs {
  display: flex;
  gap: 4px;
}

.game-tab {
  padding: 10px 24px;
  border: 1px solid var(--home-line);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s;
}

.game-tab.is-active {
  background: var(--home-paper);
  padding-top: 12px;
  margin-top: -2px;
}

.game-list-content {
  padding: 0;
  border-radius: 0 8px 8px 8px;
  overflow: hidden;
}

.game-table {
  width: 100%;
  border-collapse: collapse;
}

.game-table th {
  text-align: left;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid var(--home-line);
  font-size: 0.9rem;
  color: var(--home-brown);
}

.game-table td {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.game-list-footer {
  padding: 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.02);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  overflow-y: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.modal-content {
  position: relative;
  width: min(840px, 95%);
  padding: 0;
  border-radius: 12px;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  z-index: 1;
  pointer-events: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-advanced {
  background: #2a1d17;
  border: 1px solid rgba(230, 197, 133, 0.3);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--home-brown);
}

.modal-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2rem;
  color: var(--home-red);
}

.mode-selection {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 14px;
}

.mode-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-item:hover {
  background: white;
}

.mode-item.is-selected {
  background: white;
  border-color: var(--home-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mode-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.mode-carnage .mode-icon {
  background: var(--color-carnage);
}

.mode-fun .mode-icon {
  background: var(--color-fun);
}

.mode-normal .mode-icon {
  background: var(--color-normal);
}

.mode-serious .mode-icon {
  background: var(--color-serious);
}

.mode-copy strong {
  display: block;
  font-size: 0.95rem;
}

.mode-copy p {
  font-size: 0.75rem;
  opacity: 0.8;
}

.modal-buttons {
  margin-top: 24px;
  text-align: center;
}

/* In-Game Grid 2x8 */
.player-grid-2x8 {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* --- ARENA PLAYER CARDS --- */

.arena-player-card {
  position: relative;
  background: var(--home-paper);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  max-height: 120px;
}

.arena-player-card.is-dead {
  opacity: 0.5;
  filter: grayscale(0.7);
}

.arena-player-card.is-me {
  border-color: var(--home-gold);
  border-width: 2px;
  box-shadow: 0 0 8px rgba(200, 168, 92, 0.4);
}

.arena-portrait {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
}

.arena-badge {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--home-gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: bold;
  z-index: 2;
}

.arena-name {
  padding: 4px 2px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0, 0, 0, 0.04);
  color: var(--home-brown-deep);
}

.arena-tombstone {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  font-size: 2rem;
}

.arena-tombstone::after {
  content: '\2020';
  color: white;
  font-size: 2rem;
}

/* --- GAME LIST TAB COLORS (from video) --- */

.game-tab.tab-detente {
  color: white;
  background: #3a7bd5;
  border-color: #3a7bd5;
}

.game-tab.tab-detente.is-active {
  background: #2c5ea8;
  border-color: #2c5ea8;
}

.game-tab.tab-reflexion {
  color: white;
  background: #4caf50;
  border-color: #4caf50;
}

.game-tab.tab-reflexion.is-active {
  background: #388e3c;
  border-color: #388e3c;
}

/* --- PHASE HEADER REFINEMENT --- */

.phase-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 8px 0 16px;
  padding: 12px 20px;
  background: linear-gradient(90deg, rgba(230, 218, 200, 0.4), transparent);
  border-left: 4px solid var(--home-red);
  border-radius: 0 8px 8px 0;
  position: relative;
}

.phase-countdown-circle {
  width: 218px;
  height: 58px;
  min-width: 218px;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.2rem;
  background: url("img/textures/background-chrono.png") no-repeat center;
  color: #5e1717;
  box-shadow: none;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
  letter-spacing: 1px;
}

.phase-titles h2 {
  margin: 0;
  font-size: 1.6rem;
  color: #563c2d;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.phase-titles p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--home-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- ADVANCED CREATION MODAL --- */

.modal-advanced {
  width: min(1120px, calc(100vw - 40px));
  max-width: 1120px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: calc(100dvh - env(safe-area-inset-bottom, 0px));
  color: #4f3125;
  border-radius: 0;
  opacity: 1;
}

.modal-header-advanced {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 10px;
  padding: 26px 32px 16px;
  background: transparent;
  border-bottom: 2px dashed rgba(112, 84, 56, 0.24);
}

.btn-back {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 252, 244, 0.95);
  color: #6a4330;
  border: 1px solid rgba(121, 86, 57, 0.36);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: "Acme", sans-serif;
  font-weight: 400;
  cursor: pointer;
  font-size: 0.95rem;
  max-width: 210px;
  box-shadow: 0 2px 6px rgba(58, 38, 27, 0.12);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-back:hover {
  background: #fff;
  transform: translateY(calc(-50% - 1px));
}

.modal-header-advanced .modal-title {
  margin: 0;
  background: transparent;
  padding: 8px 32px;
  border: none;
  box-shadow: none;
  text-align: center;
  color: #25324e;
  font-size: 3.05rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  font-family: "Boogaloo", sans-serif;
}

.modal-warning {
  font-size: 0.88rem;
  text-align: center;
  padding: 14px 28px;
  color: #6a4430;
  background: #fcf3e2;
  border-bottom: 2px dashed rgba(112, 84, 56, 0.18);
  text-shadow: none;
}

.creation-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 22px 0;
}

.creation-summary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(112, 84, 56, 0.18);
  background: rgba(255, 251, 242, 0.78);
  color: #5b392b;
  font-family: "Acme", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 10px rgba(86, 59, 37, 0.08);
}

.wizard-step {
  padding: 20px 22px;
  background: #fffaf0;
  margin: 14px 22px 0;
  border-radius: 6px;
  border: 1px solid rgba(118, 85, 58, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 4px 12px rgba(86, 59, 37, 0.05);
}

.step-title {
  font-size: 1.16rem;
  font-weight: 400;
  margin: 0 0 14px 0;
  color: #8e2b1f;
  text-shadow: none;
  font-family: "Acme", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.name-input-wrap {
  margin-bottom: 16px;
}

.modal-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.modal-control-row-stacked {
  margin-top: 14px;
}

.modal-control-label {
  flex: 0 0 auto;
  font-family: "Acme", sans-serif;
  font-size: 1.05rem;
  color: #5e3b2c;
  letter-spacing: 0.02em;
}

.mode-btn {
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff6e6;
  opacity: 0.8;
  cursor: pointer;
  transition: all 0.2s;
  white-space: normal;
  text-shadow: 0 1px 0 rgba(51, 25, 18, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -4px 8px rgba(0, 0, 0, 0.22);
  font-family: "Acme", sans-serif;
  letter-spacing: 0.02em;
}

.mode-btn:hover {
  transform: translateY(-1px);
}

.mode-btn.is-selected {
  text-shadow: 0 1px 0 rgba(51, 25, 18, 0.8);
  box-shadow:
    0 0 0 3px rgba(202, 164, 102, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -4px 8px rgba(0, 0, 0, 0.24);
  border: 1px solid #6e402e;
  opacity: 1;
}

.mode-btn.mode-carnage {
  background: linear-gradient(180deg, #bc3021 0%, #86180f 100%);
}

.mode-btn.mode-normal {
  background: linear-gradient(180deg, #7b9551 0%, #567133 100%);
}

.carnage-variant-picker {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.carnage-variant-picker.hidden {
  display: none;
}

.mode-btn.mode-carnage-classic {
  background: linear-gradient(180deg, #bc3021 0%, #86180f 100%);
}

.mode-btn.mode-carnage-degen {
  background: linear-gradient(180deg, #5c2d8c 0%, #3a1a5e 100%);
}

.mode-desc {
  margin-top: 12px;
  text-align: center;
  font-size: 0.8rem;
  color: #fff;
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  opacity: 0.8;
}

.advanced-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px inset rgba(160, 140, 122, 0.8);
  border-radius: 4px;
  font-size: 1.05rem;
  background: #f8f1e5;
  color: #333;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: bold;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.advanced-input:focus {
  outline: none;
  border-color: #a33;
  box-shadow: 0 0 0 2px rgba(153, 51, 51, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.advanced-input::placeholder {
  color: rgba(100, 80, 70, 0.4);
  font-weight: normal;
}

.time-selection,
.players-selection,
.timer-selection {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.time-btn,
.player-btn,
.setting-btn {
  background: linear-gradient(180deg, #fffaf0 0%, #ead4ae 100%);
  color: #6a4430;
  min-width: 96px;
  padding: 10px 18px;
  border: 1px solid rgba(112, 84, 56, 0.4);
  border-radius: 4px;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.time-btn:hover,
.player-btn:hover,
.setting-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #fffdf8 0%, #f4e3c3 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.time-btn.is-selected,
.player-btn.is-selected,
.setting-btn.is-selected {
  background: linear-gradient(180deg, #9f241b 0%, #67100c 100%);
  border-color: rgba(0, 0, 0, 0.4);
  color: #ffefbc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.player-btn-custom {
  background: rgba(112, 84, 56, 0.05);
  border-color: rgba(112, 84, 56, 0.3);
}

.extra-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.extra-options-grid-spaced {
  margin-bottom: 16px;
}

.wizard-step-roles {
  margin-bottom: 18px;
}

.creation-role-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.creation-role-summary {
  color: #6b513f;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: right;
}

.creation-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 14px;
}

.creation-role-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(118, 85, 58, 0.4);
  background: linear-gradient(180deg, #fffaf1 0%, #f4e2bf 100%);
  box-shadow: 0 4px 12px rgba(86, 59, 37, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.creation-role-card:hover,
.creation-role-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(139, 106, 76, 0.8);
  box-shadow: 0 8px 24px rgba(86, 59, 37, 0.2);
}

.creation-role-card.is-active {
  background: linear-gradient(180deg, #fffdf8 0%, #d8e5b6 100%);
  border-color: #7b9551;
  box-shadow: 0 0 0 2px rgba(123, 149, 81, 0.4), 0 12px 28px rgba(86, 59, 37, 0.15);
}

.creation-role-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #e9e0cd;
  border: 2px solid rgba(86, 59, 37, 0.8);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.creation-role-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creation-role-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.creation-role-title {
  color: #3e261d;
  font-family: "Acme", sans-serif;
  font-size: 1.15rem;
  line-height: 1.1;
  text-align: center;
  text-shadow: none;
}

.creation-role-counter {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 8px;
  align-items: center;
}

.creation-role-counter.is-locked {
  grid-template-columns: 1fr auto;
}

.creation-role-counter-btn {
  min-height: 34px;
  border: 1px solid rgba(139, 106, 76, 0.6);
  border-radius: 6px;
  background: linear-gradient(180deg, #fffaf0 0%, #ead4ae 100%);
  color: #5b392b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.creation-role-counter-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #fffdf8 0%, #f4e3c3 100%);
  color: #8e2b1f;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.creation-role-counter-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.creation-role-counter-value {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #8d2419;
  color: #ffefbc;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.creation-role-counter-note {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  background: rgba(112, 84, 56, 0.09);
  color: #735341;
  font-family: "Acme", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.role-detail-panel-creation {
  margin-top: 18px;
  background: linear-gradient(180deg, #fffaf1 0%, #f4e2bf 100%);
  border-color: rgba(107, 76, 51, 0.2);
}

.options-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-toggle {
  background: linear-gradient(180deg, #fffaf0 0%, #ead4ae 100%);
  color: #6b513f;
  border: 1px solid rgba(118, 85, 58, 0.4);
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 4px;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.option-toggle:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #fffdf8 0%, #f4e3c3 100%);
  color: #5b392b;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.option-toggle.is-active-green {
  background: linear-gradient(180deg, #7b9551 0%, #567133 100%);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cards-section-note {
  margin-bottom: 16px;
  color: #6b5549;
  text-align: center;
}

.role-catalog-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.role-catalog-grid-home {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.role-catalog-grid-modal {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.role-catalog-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(80, 54, 40, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 239, 223, 0.94));
  box-shadow: 0 12px 22px rgba(40, 23, 15, 0.1);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.role-catalog-card:hover {
  transform: translateY(-2px);
}

.role-catalog-card.is-active {
  border-color: #8e1f15;
  box-shadow: 0 0 0 3px rgba(224, 188, 122, 0.5), 0 14px 24px rgba(40, 23, 15, 0.14);
}

.role-catalog-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid rgba(80, 54, 40, 0.12);
}

.role-catalog-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.role-catalog-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-catalog-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-catalog-title {
  color: #42281f;
  font-family: "Acme", sans-serif;
  font-size: 1.08rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.role-catalog-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-catalog-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.role-catalog-badge-live {
  background: rgba(61, 118, 71, 0.14);
  color: #2e6840;
}

.role-catalog-badge-archive {
  background: rgba(122, 93, 72, 0.12);
  color: #6a4d3a;
}

.role-catalog-badge-card {
  background: rgba(159, 44, 33, 0.12);
  color: #8f2c24;
}

.role-catalog-description {
  color: #5f4d3f;
  font-size: 0.87rem;
  line-height: 1.45;
}

.role-catalog-description-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.role-catalog-footer {
  color: #8c6d58;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-content {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-footer-advanced {
  position: sticky;
  bottom: env(safe-area-inset-bottom, 0px);
  z-index: 2;
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  background: transparent;
  margin: auto auto 0;
}

.btn-create-massive {
  background: linear-gradient(180deg, #9f241b 0%, #67100c 100%);
  color: #ffefbc;
  border: solid 2px rgba(0, 0, 0, 0.5);
  padding: 12px 48px;
  font-size: 1.78rem;
  font-family: "Acme", sans-serif;
  font-weight: normal;
  border-radius: 6px;
  text-shadow: 0 1px 0 rgba(31, 11, 8, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(19, 11, 8, 0.3);
  cursor: pointer;
  transition: transform 0.1s, filter 0.15s ease;
}

.btn-create-massive:hover {
  filter: brightness(1.04);
}

.btn-create-massive:active {
  transform: translateY(2px);
}

@media (max-width: 920px) {
  .modal-advanced {
    width: min(760px, calc(100vw - 20px));
  }

  .modal-header-advanced {
    align-items: stretch;
    padding: 16px 18px;
  }

  .btn-back {
    position: static;
    transform: none;
    max-width: none;
    align-self: flex-start;
  }

  .modal-header-advanced .modal-title {
    padding: 8px 18px;
    font-size: 2.5rem;
  }

  .wizard-step {
    margin: 8px 16px;
    padding: 16px;
  }

  .creation-role-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .extra-options-grid,
  .role-catalog-grid-modal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .modal-advanced {
    width: 100vw;
    height: 100vh;
    height: calc(100dvh - env(safe-area-inset-bottom, 0px));
  }

  .modal {
    padding: 0;
  }

  .modal-warning {
    padding: 12px 16px;
  }

  .wizard-step {
    margin: 6px 10px;
    padding: 14px;
  }

  .creation-role-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .creation-role-summary {
    text-align: left;
  }

  .creation-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-control-row {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-control-label {
    margin-bottom: 2px;
  }

  .mode-selection,
  .extra-options-grid,
  .role-catalog-grid-modal {
    grid-template-columns: 1fr;
  }

  .landing-cards-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-col-20 {
    grid-column: auto;
  }

  .time-selection,
  .timer-selection {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .players-selection {
    display: grid;
    grid-template-columns: 1fr;
  }

  .setting-btn {
    min-width: 0;
  }

  .time-btn,
  .player-btn,
  .btn-create-massive {
    width: 100%;
    min-width: 0;
  }

  .modal-footer-advanced {
    width: calc(100% - 20px);
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

/* --- ROLE REVEAL SUSPENSE ANIMATION --- */
#role-reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  overflow: hidden;
}

#role-reveal-overlay::before,
#role-reveal-overlay::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
  opacity: 0;
}

#role-reveal-overlay::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 233, 154, 0.26) 0%, rgba(255, 187, 70, 0.16) 18%, rgba(0, 0, 0, 0) 56%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 48%);
  filter: blur(12px);
}

#role-reveal-overlay::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.82) 0%, rgba(255, 231, 173, 0.34) 16%, rgba(255, 196, 92, 0.1) 28%, rgba(255, 255, 255, 0) 44%);
}

#role-reveal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#role-reveal-overlay.is-charging::before {
  opacity: 1;
  animation: reveal-charge-glow 1.35s ease-in-out infinite;
}

#role-reveal-overlay.is-flashing::after {
  animation: reveal-impact-flash 0.85s ease-out forwards;
}

.reveal-card-container {
  --reveal-frame-pad: 5px;
  width: 318px;
  height: 300px;
  box-sizing: border-box;
  margin-top: 20px;
  position: relative;
  transform-style: preserve-3d;
  border-radius: 8px;
  background:
    var(--card-premium-surface) padding-box,
    var(--card-premium-ornaments),
    linear-gradient(145deg, #71503a 0%, #19120d 55%, rgba(255, 255, 255, 0.88) 100%) border-box;
  border: 2px solid transparent;
  box-shadow:
    inset 0 0 0 1px var(--card-frame-highlight),
    0 0 0 1px var(--card-frame-bronze),
    0 0 0 3px rgba(255, 255, 255, 0.1),
    0 12px 28px rgba(0, 0, 0, 0.55),
    0 0 18px var(--card-frame-glow);
  transition: transform 0.1s linear;
}

.reveal-card {
  width: auto;
  height: auto;
  border-radius: 5px;
  border: 0;
  box-shadow: none;
  background-size: cover;
  background-position: center;
  backface-visibility: hidden;
  position: absolute;
  inset: var(--reveal-frame-pad);
}

.reveal-card-back {
  transform: rotateY(180deg);
  background-image: url('img/cards/archive/carte0.png');
}

.reveal-card-front {
  transform: rotateY(0deg);
}

.reveal-card-container.is-rotating {
  animation: suspense-rotate 1.15s infinite linear;
}

@keyframes suspense-rotate {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.reveal-card-container.is-revealing {
  animation: card-reveal-boom 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes card-reveal-boom {
  0% { transform: scale(1) rotateY(0deg); filter: brightness(1); }
  45% { transform: scale(1.5) rotateY(1080deg); filter: brightness(2.5); box-shadow: 0 0 40px #fff; }
  100% { transform: scale(1.3) rotateY(1080deg); filter: brightness(1); box-shadow: 0 0 30px rgba(255, 255, 255, 0.6); }
}

.reveal-card-container.is-moving {
  position: fixed;
  margin-top: 0;
  animation: none;
  transition:
    left 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 10001;
}

#reveal-message {
  margin-top: 50px;
  text-align: center;
  color: #fff;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 2.5rem;
  text-shadow: 0 0 15px rgba(0,0,0,0.9);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

#reveal-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-intro {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-ligatures: none;
}

#reveal-role-name {
  font-family: "Acme", sans-serif;
}

#reveal-role-objective,
.reveal-objective {
  display: block;
  font-size: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  opacity: 0.85;
  margin-top: 12px;
  font-weight: 500;
  font-variant-ligatures: none;
}

.is-revealing-role .legacy-action-card {
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.is-revealing-role .legacy-action-role-copy {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.is-revealing-role .legacy-action-icon-wrapper {
  opacity: 0;
  transition: opacity 0.2s ease;
}

@keyframes reveal-charge-glow {
  0% {
    transform: scale(0.92);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.52;
  }
  100% {
    transform: scale(0.92);
    opacity: 0.2;
  }
}

@keyframes reveal-impact-flash {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  18% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}




/* Premium Player Cards */
.player-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--glass-border);
}

.player-card.is-alive {
  border-left: 3px solid var(--status-alive);
}

.player-card.is-dead {
  opacity: 0.6;
  filter: grayscale(0.8);
  border-left: 3px solid var(--status-dead);
}

.player-card.is-selected {
  background: rgba(242, 211, 140, 0.15);
  border-color: var(--status-selected);
  box-shadow: 0 0 15px rgba(242, 211, 140, 0.2);
}

/* Premium Chat */
.chat-message {
  padding: 8px 12px;
  margin-bottom: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid transparent;
  animation: message-in 0.3s ease-out;
}

@keyframes message-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.chat-message-system {
  background: rgba(216, 188, 121, 0.05);
  border-left-color: var(--premium-gold);
  font-style: italic;
}

.chat-message-wolf {
  background: rgba(165, 45, 36, 0.05);
  border-left-color: var(--premium-crimson);
}
/* Premium Card Reveal v2 - Cinematic Flip */
.role-reveal-container {
  perspective: 1000px;
}

.role-reveal-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.role-reveal-container.is-revealed .role-reveal-card-inner {
  transform: rotateY(180deg);
}

.role-reveal-front, .role-reveal-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
}

.role-reveal-back {
  background: var(--card-premium-surface);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--premium-gold);
}

.role-reveal-front {
  background: url("img/cards/archive/carte1.png") center/cover no-repeat;
  border: 2px solid var(--glass-border);
}

/* Premium organic glass shimmer — 300% tile scrolls through the card viewport, no overflow needed */
.role-reveal-container.is-revealed .role-reveal-back::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    transparent 43%,
    rgba(255, 255, 255, 0.03) 47%,
    rgba(255, 255, 255, 0.12) 49%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.12) 51%,
    rgba(255, 255, 255, 0.03) 53%,
    transparent 57%
  );
  background-size: 300% 300%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 10;
  animation: premium-glass-shimmer 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes premium-glass-shimmer {
  0%, 40% { background-position: 150% 150%; opacity: 0; }
  50%      { background-position:  50%  50%; opacity: 1; }
  60%      { background-position: -50% -50%; opacity: 0; }
  100%     { background-position: -50% -50%; opacity: 0; }
}

/* Pulsing Premium Border */
.legacy-panel-burgundy {
  position: relative;
}

/* Subtler Atmospheric Border Pulse */
.legacy-panel-burgundy::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 25px rgba(255, 227, 171, 0.08);
  border: 1px solid rgba(255, 227, 171, 0.1);
  pointer-events: none;
  animation: atmosphere-pulse 6s ease-in-out infinite;
}

@keyframes atmosphere-pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.005); }
}

/* ── Lobby Public — style Wolfy ── */
.landing-lobby-section {
  width: 100%;
  margin: 0 0 20px;
  padding: 18px;
  background: rgba(20, 16, 36, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.lobby-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}

.lobby-title {
  font-family: "Acme", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e0cdb0;
  margin: 0;
}

.btn-quick-join {
  font-size: 0.78rem;
  padding: 5px 14px;
  white-space: nowrap;
}

.btn-quick-join.hidden {
  display: none;
}

.lobby-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: none;
}
.lobby-list::-webkit-scrollbar { display: none; }

/* ── Row Wolfy ── */
.wf-lobby-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(20, 16, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  color: #e8e0f0;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
  backdrop-filter: blur(6px);
}

.wf-lobby-row:hover:not(.wf-lobby-full) {
  background: rgba(40, 32, 64, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
}

.wf-lobby-full {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Avatar circulaire */
.wf-lobby-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a3a7a, #2a2060);
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Bloc info central */
.wf-lobby-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wf-lobby-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-lobby-mode {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--hybrid-gold);
  background: rgba(201, 164, 106, 0.12);
  border: 1px solid rgba(201, 164, 106, 0.25);
  border-radius: 20px;
  padding: 1px 7px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  text-transform: lowercase;
}

  .wf-lobby-mode--carnage {
    color: #ff7070;
    background: rgba(165, 45, 36, 0.18);
    border-color: rgba(165, 45, 36, 0.45);
  }

  .wf-lobby-row--carnage {
    border-color: rgba(165, 45, 36, 0.35);
    background: linear-gradient(90deg, rgba(165, 45, 36, 0.10) 0%, rgba(20, 16, 36, 0.72) 100%);
  }

  .wf-lobby-row--carnage:hover:not(.wf-lobby-full) {
    border-color: rgba(165, 45, 36, 0.6);
    background: linear-gradient(90deg, rgba(165, 45, 36, 0.18) 0%, rgba(40, 32, 64, 0.85) 100%);
  }

.wf-lobby-chip {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.wf-lobby-chips {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.wf-lobby-chip-more {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  padding-left: 2px;
  flex-shrink: 0;
}

/* Droite */
.wf-lobby-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.wf-lobby-round {
  font-size: 0.68rem;
  color: rgba(255, 200, 100, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wf-lobby-count {
  background: rgba(40, 180, 160, 0.85);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.wf-lobby-count-full {
  background: rgba(120, 120, 140, 0.6);
}

.wf-lobby-lang {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  padding: 2px 0;
}

.wf-lobby-join-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: none;
  background: rgba(40, 180, 160, 0.85);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.wf-lobby-join-btn:hover:not(:disabled) {
  background: rgba(40, 200, 180, 1);
}

.wf-lobby-join-btn-full,
.wf-lobby-join-btn:disabled {
  background: rgba(120, 120, 140, 0.4);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

.lobby-empty {
  text-align: center;
  color: rgba(220, 200, 255, 0.4);
  font-size: 0.85rem;
  margin: 0;
  padding: 20px 0;
  font-style: italic;
}
