* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto+Condensed:wght@300;400;700&display=swap');

:root {
  --violet-950: #090511;
  --violet-900: #12081d;
  --violet-800: #241036;
  --violet-600: #7c3aed;
  --violet-500: #8b3dff;
  --violet-400: #a855f7;
  --violet-300: #c084fc;
  --pink-400: #d946ef;
  --cyan-300: #8af2ff;
  --surface: rgba(19, 10, 34, 0.86);
  --surface-strong: rgba(12, 8, 24, 0.94);
  --line: rgba(192, 132, 252, 0.24);
  --text: #f5edff;
  --muted: #cab8e8;
  --shadow-violet: 0 24px 70px rgba(22, 8, 40, 0.62);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Roboto Condensed', sans-serif;
  background: 
    radial-gradient(circle at 12% 16%, rgba(168, 85, 247, 0.32), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(138, 242, 255, 0.12), transparent 25%),
    radial-gradient(circle at 78% 72%, rgba(217, 70, 239, 0.16), transparent 34%),
    linear-gradient(155deg, var(--violet-950) 0%, var(--violet-900) 48%, #190c2d 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
}

::selection {
  background: rgba(192, 132, 252, 0.35);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header {
  background: rgba(10, 6, 19, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: 'Playfair Display', serif;
}

header h4 {
  font-size: 1.5rem;
  color: var(--violet-300);
  text-shadow: 0 2px 14px rgba(168, 85, 247, 0.45);
  letter-spacing: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-btn {
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--violet-400), var(--violet-600));
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(168, 85, 247, 0.45);
}

.header-icon-btn {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(168, 85, 247, 0.14)),
    linear-gradient(135deg, rgba(168, 85, 247, 0.78), rgba(92, 42, 188, 0.88));
}

.header-icon-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.finance-btn {
  color: #dbfbff;
}

.profile-btn {
  color: #ffe1fb;
}

.solde {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--pink-400);
  text-shadow: 0 0 12px rgba(217, 70, 239, 0.45);
}

.achat_logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.achat_logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

.achat_logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-panel {
  width: min(92vw, 560px);
  margin: 1rem auto 0;
  padding: 1.5rem;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(12, 15, 29, 0.96), rgba(28, 20, 54, 0.96));
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
}

.profile-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-panel-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #fff;
}

.profile-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a6b5ff;
  margin-bottom: 0.35rem;
}

.profile-close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.3rem;
}

.profile-status {
  margin-bottom: 1rem;
  color: #d8ddff;
  font-family: 'Roboto Condensed', sans-serif;
}

.profile-form {
  display: grid;
  gap: 0.85rem;
}

.profile-form label {
  font-family: 'Roboto Condensed', sans-serif;
  color: #a6b5ff;
  font-weight: 700;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="password"] {
  width: 100%;
  min-height: 48px;
  margin-top: 0.35rem;
  padding: 0 1rem;
  border-radius: 12px;
  border: 2px solid rgba(168, 85, 247, 0.25);
  background: rgba(14, 17, 32, 0.85);
  color: #fff;
  font-size: 1rem;
}

.profile-form input[readonly] {
  opacity: 0.8;
  cursor: not-allowed;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.profile-logout {
  margin-left: 0;
}

.cadreJeux {
  position: relative;
  min-height: 60vh;
  width: min(100%, 700px);
  max-width: 100%;
  margin: 0;
  padding: 1px;
  border-radius: 20px;
  background: 
    radial-gradient(ellipse at center, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 30% 20%, rgba(139, 61, 255, 0.05) 0%, transparent 50%),
    linear-gradient(145deg, #0f0f1a 0%, #1a1a2e 100%);
  border: 2px solid rgba(168, 85, 247, 0.4);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.7),
    inset 0 0 50px rgba(168, 85, 247, 0.05);
  overflow: hidden;
}

.game-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.4rem;
  width: 100%;
}

.game-head,
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.panel-heading-compact {
  justify-content: center;
  text-align: center;
}

.panel-heading-compact > div {
  width: 100%;
}

.game-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a6b5ff;
}

.game-head h1,
.panel-heading h2 {
  margin: 0;
  color: #fff;
  font-family: 'Playfair Display', serif;
}

.game-head h1 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.panel-heading h2 {
  font-size: 1.15rem;
}

.power-status {
  max-width: 240px;
  min-height: 1.2rem;
  margin: 0;
  color: #d8ddff;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: right;
}

.game-stage,
.game-powers-panel,
.commandes {
  position: relative;
  z-index: 1;
}

.interface {
  width: min(1480px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
  display: grid;
  grid-template-columns: minmax(730px, 1.72fr) minmax(230px, 0.5fr);
  gap: 1rem;
  align-items: start;
}

.world-panel {
  display: grid;
  gap: 1rem;
}

.world-card,
.historique {
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(12, 15, 29, 0.94), rgba(28, 20, 54, 0.92));
  border: 1px solid rgba(168, 85, 247, 0.24);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
  padding: 0.95rem;
}

.world-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.world-card-head h3 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.08rem;
}

.world-card-head span {
  color: #a6b5ff;
  font-size: 0.75rem;
}

.world-feed,
.world-chat-messages {
  display: grid;
  gap: 0.55rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.world-feed-item,
.world-chat-item {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.world-chat-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(217, 70, 239, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(15, 18, 34, 0.96), rgba(33, 18, 60, 0.94));
  border-color: rgba(217, 70, 239, 0.2);
}

.world-chat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    radial-gradient(circle at 15% 20%, rgba(125, 211, 252, 0.08), transparent 22%);
}

.world-chat-card .world-card-head {
  position: relative;
  z-index: 1;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.world-chat-card .world-card-head h3 {
  color: #ffd9f1;
}

.world-chat-card .world-card-head span {
  color: #c9b8ff;
}

.world-chat-messages {
  position: relative;
  z-index: 1;
  padding: 0.3rem 0.25rem 0.3rem 0;
  max-height: 280px;
  border-radius: 18px;
  background: rgba(7, 10, 22, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.world-chat-item {
  position: relative;
  margin-right: 0.3rem;
  padding: 0.85rem 0.9rem;
  border-radius: 18px 18px 18px 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(145, 158, 255, 0.18);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.world-chat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 70, 239, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(217, 70, 239, 0.12));
}

.world-feed-top,
.world-chat-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.world-player {
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}

.world-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.world-badge.bet {
  color: #ffd7a8;
  background: rgba(255, 153, 51, 0.18);
}

.world-badge.gain {
  color: #7ff0b1;
  background: rgba(38, 180, 92, 0.18);
}

.world-feed-values,
.world-chat-text {
  color: #dce3ff;
  line-height: 1.35;
  font-size: 0.88rem;
}

.world-chat-top {
  align-items: flex-start;
  margin-bottom: 0.45rem;
}

.world-chat-text {
  color: #eef2ff;
  line-height: 1.6;
  font-size: 0.92rem;
  word-break: break-word;
}

.world-feed-values strong {
  color: #fff;
}

.world-chat-form {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
  padding: 0.8rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.world-chat-form input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(217, 70, 239, 0.18);
  background: rgba(9, 12, 26, 0.92);
  color: #fff;
  padding: 0 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.world-chat-form input::placeholder {
  color: #94a0cf;
}

.world-chat-form input:hover,
.world-chat-form input:focus {
  outline: none;
  border-color: rgba(217, 70, 239, 0.4);
  box-shadow:
    0 0 0 3px rgba(217, 70, 239, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.world-chat-form .btn-mise {
  min-width: 132px;
  padding-inline: 1.1rem;
  background: linear-gradient(145deg, #d23a9e, #7d4dff);
  box-shadow: 0 10px 24px rgba(157, 70, 255, 0.28);
}

.world-chat-form .btn-mise:hover {
  box-shadow: 0 14px 30px rgba(157, 70, 255, 0.42);
}

.world-time {
  color: #8fa0de;
  font-size: 0.72rem;
}

.world-empty {
  text-align: center;
  color: #94a0cf;
  padding: 1rem 0.5rem;
}

.world-chat-messages::-webkit-scrollbar,
.world-feed::-webkit-scrollbar {
  width: 8px;
}

.world-chat-messages::-webkit-scrollbar-track,
.world-feed::-webkit-scrollbar-track {
  background: rgba(26, 26, 46, 0.35);
  border-radius: 999px;
}

.world-chat-messages::-webkit-scrollbar-thumb,
.world-feed::-webkit-scrollbar-thumb {
  background: linear-gradient(#d23a9e, #a855f7);
  border-radius: 999px;
}

@media (max-width: 980px) {
  .interface {
    grid-template-columns: 1fr;
  }

  .cadreJeux {
    margin: 2rem auto;
  }
}

@media (max-width: 640px) {
  .interface {
    width: min(100%, calc(100% - 1rem));
    margin: 1rem auto 2rem;
  }

  .world-chat-form {
    grid-template-columns: 1fr;
  }
}
.cadreJeux {
  padding: 2rem;
}
.cadreJeux::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
  animation: violetShimmer 6s infinite;
}

@keyframes violetShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.cadreJeux::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #a855f7, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(168, 85, 247, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #a855f7, transparent);
  background-repeat: repeat;
  background-size: 100px 100px;
  animation: particles 20s linear infinite;
  opacity: 0.3;
  pointer-events: none;
}

@keyframes particles {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-100px) rotate(360deg); }
}

.cote {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 
    0 0 20px rgba(168, 85, 247, 0.8),
    0 2px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  padding: 1rem 2rem;
  background: rgba(168, 85, 247, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 2px solid rgba(168, 85, 247, 0.6);
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
  animation: pulseMultiplier 2s ease-in-out infinite;
}

@keyframes pulseMultiplier {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.cote:hover {
  box-shadow: 0 15px 50px rgba(168, 85, 247, 0.5);
  border-color: #a855f7;
}

/* Preserve original .img */
.img {
  background: repeating-linear-gradient(
    to right,
    #152b7d 0,
    #152b7d 20px,
    white 20px,
    white 40px
  );
  padding: 10px 20px;
  height: 300px;
  padding-top: 100px;
  width: 100%;
  border-radius: 10px;
}

/* Preserve original Acteurs, Ghost, stick1, stick */
.Acteurs {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 20px;
}

.stick {
  margin-right: 125px;
  transform: scaleX(-1);
}

.Ghost {
  animation: float 3s ease-in-out infinite, Appar 0.5s ease-out;
  position: relative;
  right: 10px;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  box-shadow: 0 0 15px #890185;
}

@keyframes MoveEcran{
   from{
      background-position:0 0;
   }
   to {
      background-position:40px 40px;
   }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes Appar {
  0% {
    opacity: 0;
    transform: translateX(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.pouvoir {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.pouvoir > div {
  flex: 1 1 72px;
  max-width: 82px;
}

.power-slot {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.power-label {
  color: #dce3ff;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
}

.btn-pouvoir {
  width: 100%;
  min-height: 52px;
  aspect-ratio: 1;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
  backdrop-filter: blur(10px);
  border: 2px solid rgba(168, 85, 247, 0.4);
  color: #a855f7;
  font-weight: 700;
  box-shadow: 
    0 8px 25px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn-pouvoir::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-pouvoir:hover::before {
  left: 100%;
}

.btn-pouvoir:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 
    0 15px 40px rgba(168, 85, 247, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: #a855f7;
}

input[type="number"] {
  width: 100%;
  max-width: 250px;
  height: 50px;
  padding: 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  border-radius: 12px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(139, 61, 255, 0.3) 0%, rgba(217, 70, 239, 0.6) 100%);
  backdrop-filter: blur(15px);
  color: white;
  box-shadow: 0 10px 30px rgba(139, 61, 255, 0.3);
  transition: all 0.4s ease;
  font-family: 'Roboto Condensed', sans-serif;
}

input[type="number"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(139, 61, 255, 0.5);
  border-color: rgba(168, 85, 247, 0.6);
}

input[type="number"]:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 
    0 0 0 4px rgba(168, 85, 247, 0.2),
    0 15px 40px rgba(168, 85, 247, 0.3);
}

.commandes {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  width: 100%;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(11, 16, 32, 0.96), rgba(33, 21, 63, 0.92));
  border: 1px solid rgba(168, 85, 247, 0.24);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.commandes-intro {
  max-width: 560px;
  margin: -0.1rem 0 0;
  color: #cfd8ff;
  font-size: 0.94rem;
  line-height: 1.6;
  text-align: center;
}

.commandes-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.mise {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mise label {
  text-align: center;
  color: #dce3ff;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.commandes-side {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.9rem;
  padding: 1.1rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(217, 70, 239, 0.14), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(217, 70, 239, 0.22);
}

.action-label {
  margin: 0;
  color: #ffd6f0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.btn-mise {
  min-width: 180px;
  padding: 12px 24px;
  background: linear-gradient(145deg, #a855f7, #8b3dff);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.btn-mise:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.6);
}

.demarer, .retirer {
  padding: 14px 28px;
  border-radius: 16px;
  background: linear-gradient(145deg, #3d3d38, #2a2a2e);
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  font-family: 'Roboto Condensed', sans-serif;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
}

.demarer:hover, .retirer:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3);
}

.retirer:hover {
  background: linear-gradient(145deg, #d946ef, #a21caf);
}

.retirer {
  width: 100%;
  max-width: 220px;
  min-width: 160px;
  background: linear-gradient(145deg, #514866, #2d233e);
}

.historique {
  width: 90%;
  max-width: 600px;
  max-height: 400px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(13, 13, 26, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
}

.historique h3 {
  font-family: 'Playfair Display', serif;
  color: #a855f7;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  letter-spacing: 2px;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(26, 26, 46, 0.8);
  border-left: 4px solid #a855f7;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-family: 'Roboto Condensed', sans-serif;
}

.transaction-item:hover {
  transform: translateX(8px);
  background: rgba(168, 85, 247, 0.15);
}

.transaction-amount.gain {
  color: #d946ef;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(217, 70, 239, 0.5);
}

.transaction-amount.perte {
  color: #ff6b6b;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

.btn-clear-history {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
  background: linear-gradient(145deg, #ff6b6b, #ff5252);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Roboto Condensed', sans-serif;
}

.btn-clear-history:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
}

/* Scrollbar violet */
.historique::-webkit-scrollbar {
  width: 8px;
}

.historique::-webkit-scrollbar-track {
  background: rgba(26, 26, 46, 0.5);
  border-radius: 4px;
}

.historique::-webkit-scrollbar-thumb {
  background: linear-gradient(#a855f7, #8b3dff);
  border-radius: 4px;
}

.historique::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(#c084fc, #a855f7);
}

.cadreJeux,
.world-card,
.historique,
.profile-panel,
.commandes {
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.12), transparent 34%),
    linear-gradient(145deg, var(--surface), var(--surface-strong));
  border-color: var(--line);
  box-shadow: var(--shadow-violet);
}

.world-card,
.historique,
.commandes,
.mise,
.commandes-side,
.world-chat-form,
.world-feed-item,
.world-chat-item {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cote {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(217, 70, 239, 0.14));
  border-color: rgba(192, 132, 252, 0.55);
  box-shadow: 0 18px 42px rgba(124, 58, 237, 0.28);
}

.btn-mise,
.demarer,
.retirer,
.world-chat-form .btn-mise {
  background: linear-gradient(135deg, var(--violet-400), var(--violet-600));
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.32);
}

.retirer:hover {
  background: linear-gradient(135deg, var(--pink-400), var(--violet-500));
}

.btn-pouvoir,
input[type="number"],
.world-chat-form input,
.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="password"] {
  border-color: rgba(192, 132, 252, 0.28);
  background: rgba(255, 255, 255, 0.055);
}

.btn-pouvoir:hover,
input[type="number"]:focus,
.world-chat-form input:focus {
  border-color: rgba(192, 132, 252, 0.68);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14), 0 18px 36px rgba(124, 58, 237, 0.24);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .cadreJeux {
    min-height: auto;
    padding: 1rem;
  }
  
  .cote {
    font-size: 2.5rem;
  }
  
  .pouvoir {
    gap: 0.5rem;
  }

  .game-head,
  .panel-heading {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .power-status {
    max-width: none;
    text-align: center;
  }

  .img {
    height: auto;
    min-height: 260px;
    padding: 1rem;
  }

  .Acteurs {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .stick,.stick1 {
    margin-right: 200px;
    margin-top: 30px;
  }

  .transaction-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .commandes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  header {
    align-items: flex-start;
  }

  header h4 {
    font-size: 1.2rem;
  }

  .header-actions > * {
    width: 100%;
  }

  .header-btn,
  .achat_logo {
    display: flex;
    justify-content: center;
  }

  .interface {
    width: calc(100% - 1rem);
  }

  .cadreJeux,
  .world-card,
  .historique {
    border-radius: 18px;
  }

  .cote {
    width: 100%;
    padding-inline: 1rem;
    font-size: 2rem;
    text-align: center;
  }

  .img {
    min-height: 220px;
    padding-top: 1rem;
  }

  .stick1,
  .stick,
  .Ghost {
    max-width: 100%;
    margin-top: 30px;
    height: auto;
  }

  .stick {
    margin-right: 155px;
  }

  .pouvoir > div {
    flex-basis: calc(50% - 0.5rem);
    max-width: 100px;
  }
  
  .btn-pouvoir {
    min-height: 50px;
    font-size: 0.95rem;
  }

  .demarer, .retirer, .btn-mise {
    font-size: 1rem;
    width: 100%;
  }

  .retirer {
    min-width: 0;
    max-width: none;
  }

  .world-card-head,
  .world-feed-top,
  .world-chat-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .historique {
    width: 100%;
    padding: 1rem;
  }

  .profile-actions {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.6rem 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  header h4 {
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.04em;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr 42px 1fr;
    gap: 0.4rem;
    align-items: center;
    width: 100%;
  }

  .solde {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
  }

  .header-btn {
    width: 100%;
    min-height: 38px;
    padding: 0.55rem 0.5rem;
    font-size: 0.78rem;
  }

  .achat_logo {
    width: 42px;
    height: 42px;
    justify-self: center;
  }

  .interface {
    width: calc(100% - 0.8rem);
    margin: 0.7rem auto 1.2rem;
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .cadreJeux,
  .world-card,
  .historique {
    padding: 0.85rem;
    border-radius: 18px;
  }

  .cadreJeux {
    min-height: auto;
  }

  .game-shell {
    gap: 0.85rem;
  }

  .game-head,
  .panel-heading {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .power-status {
    max-width: none;
    text-align: center;
  }

  .cote {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 1.8rem;
    text-align: center;
  }

  .img {
    position: relative;
    min-height: 220px;
    padding: 0.65rem;
    padding-top: 1.3rem;
    overflow: hidden;
  }

  .Acteurs {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: 100%;
    margin: 0;
    display: block;
  }

  .stick1,
  .stick {
    position: absolute;
    left: 6px;
    bottom: 0;
    width: 94px;
    max-width: none;
    margin: 0;
  }

  .Ghost {
    position: absolute;
    right: 6px;
    bottom: 4px;
    width: 64px;
    max-width: none;
    margin: 0;
  }

  .commandes {
    padding: 0.9rem;
    gap: 0.8rem;
  }

  .commandes-intro {
    font-size: 0.85rem;
  }

  .commandes-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .mise,
  .commandes-side {
    padding: 0.75rem;
    gap: 0.6rem;
  }

  input[type="number"] {
    max-width: 100%;
    height: 42px;
    font-size: 0.95rem;
  }

  .btn-mise,
  .retirer {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0.8rem 0.9rem;
    font-size: 0.92rem;
  }

  .world-panel {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .world-card-head,
  .world-feed-top,
  .world-chat-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .world-feed,
  .world-chat-messages {
    max-height: 190px;
  }

  .world-chat-form {
    grid-template-columns: 1fr;
    padding: 0.7rem;
  }

  .world-chat-form input {
    min-height: 42px;
    font-size: 0.9rem;
  }

  .world-chat-form .btn-mise {
    width: 100%;
  }

  .historique {
    width: 100%;
    margin: 0;
    max-height: 280px;
    padding: 0.9rem;
  }

  .transaction-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.7rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.5rem;
  }

  header h4 {
    font-size: 0.9rem;
  }

  .header-actions {
    grid-template-columns: 1fr 36px 1fr;
  }

  .solde {
    font-size: 0.82rem;
  }

  .header-btn {
    min-height: 34px;
    padding: 0.45rem 0.35rem;
    font-size: 0.7rem;
  }

  .achat_logo {
    width: 36px;
    height: 36px;
  }

  .cadreJeux,
  .world-card,
  .historique {
    padding: 0.72rem;
    border-radius: 16px;
  }

  .cote {
    padding: 0.55rem;
    font-size: 1.55rem;
  }

  .img {
    min-height: 190px;
    padding: 0.5rem;
    padding-top: 1rem;
  }

  .stick1,
  .stick {
    left: 4px;
    width: 82px;
  }

  .Ghost {
    right: 4px;
    bottom: 2px;
    width: 56px;
  }

  .pouvoir {
    gap: 0.35rem;
  }

  .pouvoir > div {
    flex: 1 1 calc(25% - 0.35rem);
    max-width: none;
  }

  .btn-pouvoir {
    min-height: 44px;
    font-size: 0.85rem;
  }

  .power-label {
    font-size: 0.62rem;
  }

  .commandes {
    padding: 0.75rem;
  }

  .commandes-intro {
    font-size: 0.8rem;
  }

  input[type="number"] {
    height: 40px;
    font-size: 0.88rem;
  }

  .btn-mise,
  .retirer {
    padding: 0.72rem 0.8rem;
    font-size: 0.86rem;
  }

  .world-feed-item,
  .world-chat-item {
    padding: 0.55rem;
    font-size: 0.82rem;
  }

  .world-chat-form {
    padding: 0.6rem;
  }

  .historique {
    max-height: 240px;
    padding: 0.8rem;
  }

  .historique h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 768px) {
  .header-icon-btn {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
  }

  .header-icon-btn svg {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 480px) {
  .header-icon-btn {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .header-icon-btn svg {
    width: 19px;
    height: 19px;
  }
}

.cadreJeux {
  padding: 1.15rem;
}

.game-shell {
  gap: 0.45rem;
}

.game-head {
  align-items: center;
  gap: 0.65rem;
}

.cote {
  margin-bottom: 0;
  padding: 0.55rem 1.25rem;
  font-size: 2.35rem;
}

.game-stage {
  margin-top: -0.1rem;
}

.img {
  height: 245px;
  padding: 0.65rem 1rem;
  padding-top: 72px;
}

.Acteurs {
  margin-top: 8px;
}

.game-powers-panel {
  padding: 0.48rem 0.65rem;
  border-radius: 15px;
}

.game-powers-panel .panel-heading {
  align-items: center;
  margin-bottom: 0.18rem;
}

.game-powers-panel .game-kicker {
  margin-bottom: 0.18rem;
  font-size: 0.66rem;
}

.game-powers-panel .panel-heading h2 {
  font-size: 0.96rem;
}

.pouvoir {
  gap: 0.32rem;
  max-width: 244px;
}

.pouvoir > div {
  flex: 1 1 50px;
  max-width: 54px;
}

.power-slot {
  gap: 0.24rem;
}

.power-label {
  font-size: 0.61rem;
}

.btn-pouvoir {
  min-height: 34px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.commandes {
  margin-top: -0.15rem;
  padding: 0.85rem;
  gap: 0.65rem;
}

.commandes .panel-heading {
  margin-bottom: -0.15rem;
}

.commandes-grid {
  gap: 0.6rem;
}

.mise,
.commandes-side {
  padding: 0.75rem;
  gap: 0.55rem;
}

input[type="number"] {
  height: 44px;
}

.btn-mise,
.retirer {
  padding: 0.75rem 1.2rem;
}

@media (max-width: 768px) {
  .cadreJeux {
    padding: 0.7rem;
  }

  .game-shell {
    gap: 0.42rem;
  }

  .cote {
    padding: 0.48rem 0.65rem;
    font-size: 1.55rem;
  }

  .img {
    min-height: 190px;
    padding: 0.5rem;
    padding-top: 1rem;
  }

  .game-powers-panel {
    padding: 0.48rem;
  }

  .pouvoir {
    gap: 0.26rem;
    max-width: 224px;
  }

  .pouvoir > div {
    flex: 1 1 48px;
    max-width: 52px;
  }

  .btn-pouvoir {
    min-height: 32px;
    font-size: 0.74rem;
  }

  .commandes {
    padding: 0.62rem;
    gap: 0.5rem;
  }

  .mise,
  .commandes-side {
    padding: 0.58rem;
  }
}

@media (max-width: 480px) {
  .game-powers-panel .panel-heading h2 {
    font-size: 0.88rem;
  }

  .pouvoir {
    max-width: 204px;
  }

  .pouvoir > div {
    max-width: 48px;
  }

  .btn-pouvoir {
    min-height: 30px;
  }

  .power-label {
    font-size: 0.55rem;
  }
}

/* Responsive game stage refinements */
@media (max-width: 768px) {
  .interface {
    width: min(100% - 0.6rem, 720px);
  }

  .cadreJeux {
    padding: 0.58rem;
  }

  .game-shell {
    gap: 0.34rem;
  }

  .game-head {
    gap: 0.28rem;
  }

  .cote {
    font-size: clamp(1.65rem, 6vw, 2.25rem);
    padding: 0.42rem 0.68rem;
  }

  .img {
    position: relative;
    height: clamp(200px, 44vw, 270px);
    min-height: 200px;
    padding: 0.5rem;
    overflow: hidden;
    background-size: 42px 42px;
  }

  .game-powers-panel {
    padding: 0.38rem 0.5rem;
  }

  .game-powers-panel .panel-heading {
    margin-bottom: 0.08rem;
  }

  .Acteurs {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .stick1,
  .stick {
    position: absolute;
    left: clamp(10px, 3vw, 22px);
    bottom: 8px;
    width: clamp(122px, 26vw, 172px);
    height: auto;
    max-width: none;
    margin: 0;
  }

  .stick {
    left: -24px;
  }

  .Ghost {
    position: absolute;
    right: clamp(10px, 3vw, 22px);
    bottom: 12px;
    width: clamp(88px, 20vw, 128px);
    height: auto;
    max-width: none;
    margin: 0;
  }

  .game-powers-panel,
  .commandes {
    border-radius: 14px;
  }

  .commandes {
    margin-top: -0.08rem;
    padding: 0.5rem;
    gap: 0.38rem;
  }

  .commandes .panel-heading {
    margin-bottom: -0.22rem;
  }

  .commandes-grid {
    gap: 0.38rem;
  }

  .mise,
  .commandes-side {
    padding: 0.48rem;
    gap: 0.38rem;
  }
}

@media (max-width: 480px) {
  .interface {
    width: calc(100% - 0.5rem);
    margin-top: 0.5rem;
  }

  .cadreJeux {
    padding: 0.42rem;
  }

  .game-shell {
    gap: 0.28rem;
  }

  .game-head {
    align-items: stretch;
  }

  .img {
    height: clamp(198px, 54vw, 230px);
    min-height: 198px;
    padding: 0.38rem;
    background-size: 38px 38px;
  }

  .stick1,
  .stick {
    left: 8px;
    bottom: 8px;
    width: clamp(132px, 38vw, 152px);
  }

  .stick {
    left: -42px;
  }

  .Ghost {
    right: 8px;
    bottom: 12px;
    width: clamp(98px, 28vw, 116px);
  }

  .pouvoir {
    max-width: none;
    width: 100%;
    gap: 0.3rem;
  }

  .pouvoir > div {
    flex: 1 1 calc(25% - 0.4rem);
    max-width: none;
  }

  .btn-pouvoir {
    min-height: 42px;
  }

  .commandes-grid {
    gap: 0.32rem;
  }

  .game-powers-panel {
    padding: 0.32rem 0.42rem;
  }

  .commandes {
    padding: 0.42rem;
    gap: 0.32rem;
  }

  .mise,
  .commandes-side {
    padding: 0.42rem;
  }
}

@media (max-width: 390px) {
  .img {
    height: 206px;
    min-height: 206px;
  }

  .stick1,
  .stick {
    width: 142px;
  }

  .stick {
    left: -48px;
  }

  .Ghost {
    width: 106px;
  }
}

/* Community panels polish */
.world-panel {
  display: grid;
  gap: 0.85rem;
}

.world-card,
.historique {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.9rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(19, 10, 34, 0.92), rgba(12, 8, 24, 0.96));
  border: 1px solid rgba(192, 132, 252, 0.24);
  box-shadow: 0 18px 48px rgba(22, 8, 40, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.world-card-head h3,
.historique h3 {
  margin: 0;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
}

.world-card-head span {
  display: block;
  margin-top: 0.18rem;
  color: #b9c4ff;
  font-size: 0.76rem;
  font-weight: 700;
}

.world-live,
.world-badge {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
}

.world-live {
  color: #caffea;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.24);
}

.world-feed,
.world-chat-messages {
  display: grid;
  gap: 0.48rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.16rem;
}

.world-chat-card {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(217, 70, 239, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(19, 10, 34, 0.93), rgba(12, 8, 24, 0.97));
}

.world-chat-card .world-card-head {
  margin-bottom: 0.62rem;
  padding-bottom: 0.62rem;
}

.world-chat-messages {
  max-height: 260px;
  padding: 0.35rem;
  border-radius: 14px;
  background: rgba(7, 10, 22, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.world-feed-item,
.world-chat-item,
.transaction-item {
  padding: 0.68rem 0.72rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.world-feed-item {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.world-feed-item:hover {
  transform: translateY(-1px);
  border-color: rgba(192, 132, 252, 0.28);
  background: rgba(255, 255, 255, 0.075);
}

.world-chat-item {
  margin-right: 0;
  border-radius: 15px 15px 15px 7px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(168, 85, 247, 0.09));
}

.world-feed-top,
.world-chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.32rem;
}

.world-player {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.world-badge.bet {
  color: #ffd7a8;
  background: rgba(255, 153, 51, 0.16);
}

.world-badge.gain {
  color: #8affc7;
  background: rgba(38, 180, 92, 0.16);
}

.world-feed-values,
.world-chat-text {
  color: #e2e8ff;
  font-size: 0.84rem;
  line-height: 1.42;
}

.world-feed-values strong {
  color: #fff;
}

.world-time {
  margin-top: 0.28rem;
  color: #92a1dc;
  font-size: 0.7rem;
  font-weight: 700;
}

.world-empty {
  padding: 0.85rem 0.5rem;
  color: #9ba8d9;
  text-align: center;
}

.world-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding: 0.55rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.world-chat-form input {
  width: 100%;
  min-height: 40px;
  padding: 0 0.8rem;
  border-radius: 11px;
  border: 1px solid rgba(192, 132, 252, 0.24);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.world-chat-form .btn-mise {
  min-width: 105px;
  padding: 0.62rem 0.85rem;
  border-radius: 11px;
}

.historique {
  max-height: 340px;
  overflow-y: auto;
}

.historique h3 {
  margin-bottom: 0.78rem;
  color: #d7bcff;
  text-align: left;
  font-size: 1.02rem;
}

.transaction-item {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  border-left: 3px solid rgba(168, 85, 247, 0.8);
}

.transaction-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.transaction-type {
  color: #fff;
  font-weight: 900;
}

.transaction-time {
  color: #92a1dc;
  font-size: 0.72rem;
}

.transaction-amount {
  font-weight: 900;
}

.btn-clear-history {
  margin-top: 0.3rem;
  padding: 0.72rem 0.9rem;
  border-radius: 11px;
}

.world-feed::-webkit-scrollbar,
.world-chat-messages::-webkit-scrollbar,
.historique::-webkit-scrollbar {
  width: 7px;
}

.world-feed::-webkit-scrollbar-track,
.world-chat-messages::-webkit-scrollbar-track,
.historique::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.world-feed::-webkit-scrollbar-thumb,
.world-chat-messages::-webkit-scrollbar-thumb,
.historique::-webkit-scrollbar-thumb {
  background: linear-gradient(#d946ef, #a855f7);
  border-radius: 999px;
}

@media (max-width: 768px) {
  .world-panel {
    gap: 0.65rem;
  }

  .world-card,
  .historique {
    padding: 0.68rem;
    border-radius: 15px;
  }

  .world-card-head {
    margin-bottom: 0.55rem;
  }

  .world-feed,
  .world-chat-messages {
    max-height: 170px;
  }

  .world-chat-form {
    grid-template-columns: 1fr;
    padding: 0.45rem;
  }

  .world-chat-form .btn-mise {
    width: 100%;
  }

  .historique {
    max-height: 230px;
  }
}

@media (max-width: 390px) {
  .world-card-head,
  .world-feed-top,
  .world-chat-top,
  .transaction-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.28rem;
  }
}

/* Site polish boost */
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
.header-btn,
.btn-mise,
.demarer,
.retirer,
.btn-pouvoir {
  touch-action: manipulation;
}

.cadreJeux,
.commandes,
.world-card,
.historique,
.profile-panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 58px rgba(8, 4, 18, 0.32);
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"] {
  min-width: 0;
}

.header-actions .header-btn,
.btn-mise,
.demarer,
.retirer {
  min-height: 44px;
}

.cadreJeux {
  width: min(100% - 18px, 680px);
}

.game-grid {
  align-items: stretch;
}

@media (max-width: 980px) {
  header {
    gap: 0.8rem;
    padding-inline: 1rem;
  }

  header h4 {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .header-btn {
    padding: 0.7rem 0.9rem;
  }

  .game-grid,
  .world-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header-actions .header-btn {
    width: 100%;
    padding-inline: 0.55rem;
    font-size: 0.86rem;
  }

  .header-icon-btn {
    width: 100%;
    height: 44px;
  }

  .cadreJeux {
    width: min(100% - 10px, 760px);
    border-radius: 18px;
  }

  .transaction-info,
  .world-feed-top,
  .world-chat-top {
    min-width: 0;
  }
}

/* Compact game height + multiplier embedded in the play field */
.cadreJeux {
  min-height: 700px;
}

.game-head {
  justify-content: center;
  text-align: center;
}

.img {
  position: relative;
  height: 215px;
  min-height: 230px;
  padding-top: 70px;
  overflow: hidden;
}

.img .cote {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: auto;
  min-width: 148px;
  margin: 0;
  padding: 0.38rem 1.1rem;
  transform: translateX(-50%);
  text-align: center;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.94);
  background:
    linear-gradient(135deg, rgba(9, 5, 17, 0.72), rgba(168, 85, 247, 0.22)),
    rgba(8, 8, 18, 0.45);
  border: 1px solid rgba(192, 132, 252, 0.45);
  border-radius: 14px;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  animation: none;
}

.img .cote:hover {
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .cadreJeux {
    min-height: auto;
  }

  .img {
    height: clamp(170px, 44vw, 240px);
    min-height: 170px;
    padding-top: 58px;
  }

  .img .cote {
    top: 8px;
    min-width: 118px;
    padding: 0.32rem 0.82rem;
    font-size: 1.45rem;
  }
}

@media (max-width: 480px) {
  .img {
    height: clamp(168px, 54vw, 200px);
    min-height: 168px;
    padding-top: 52px;
  }

  .img .cote {
    min-width: 104px;
    font-size: 1.25rem;
  }
}

@media (max-width: 390px) {
  .img {
    height: 176px;
    min-height: 176px;
  }
}

/* Phone-first compact game controls */
@media (max-width: 768px) {
  .cadreJeux {
    max-height: calc(100svh - 96px);
    overflow: hidden;
  }

  .game-shell {
    gap: 0.24rem;
  }

  .game-head {
    position: absolute;
    top: 7px;
    left: 50%;
    z-index: 8;
    display: flex;
    width: auto;
    margin: 0;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .game-head > div {
    display: none;
  }

  .game-head .cote {
    min-width: 118px;
    margin: 0;
    padding: 0.32rem 0.82rem;
    font-size: 1.45rem;
    line-height: 1;
    text-align: center;
    border-radius: 10px;
  }

  .img {
    height: clamp(142px, 34svh, 205px);
    min-height: 142px;
    padding-top: 48px;
  }

  .game-powers-panel {
    padding: 0.3rem 0.38rem;
  }

  .game-powers-panel .panel-heading {
    display: none;
  }

  .pouvoir {
    gap: 0.22rem;
  }

  .power-label {
    display: none;
  }

  .btn-pouvoir {
    min-height: 34px;
    border-radius: 9px;
  }

  .commandes {
    padding: 0.38rem;
    gap: 0.28rem;
    border-radius: 12px;
  }

  .commandes .panel-heading {
    display: none;
  }

  .commandes-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(96px, 0.85fr);
    gap: 0.32rem;
    align-items: stretch;
  }

  .mise,
  .commandes-side {
    padding: 0.38rem;
    gap: 0.32rem;
    border-radius: 11px;
  }

  .mise label,
  .action-label {
    font-size: 0.68rem;
    line-height: 1;
  }

  input[type="number"] {
    height: 34px;
    min-height: 34px;
    padding: 0 0.6rem;
    font-size: 0.82rem;
    border-radius: 9px;
  }

  .btn-mise,
  .retirer {
    min-height: 34px;
    padding: 0.42rem 0.55rem;
    border-radius: 9px;
    font-size: 0.78rem;
    line-height: 1;
  }
}

@media (max-width: 480px) {
  .cadreJeux {
    max-height: calc(100svh - 82px);
  }

  .img {
    height: clamp(130px, 31svh, 176px);
    min-height: 130px;
    padding-top: 44px;
  }

  .img .cote,
  .game-head .cote {
    top: 7px;
    min-width: 92px;
    padding: 0.26rem 0.62rem;
    font-size: 1.08rem;
    border-radius: 10px;
  }

  .commandes-grid {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .mise,
  .commandes-side {
    padding: 0.32rem;
  }

  .mise label,
  .action-label {
    font-size: 0.62rem;
  }

  input[type="number"],
  .btn-mise,
  .retirer {
    min-height: 32px;
    height: 32px;
    font-size: 0.72rem;
  }
}

@media (max-width: 390px), (max-width: 768px) and (max-height: 720px) {
  .cadreJeux {
    max-height: calc(100svh - 72px);
  }

  .img {
    height: clamp(118px, 28svh, 154px);
    min-height: 118px;
  }

  .game-powers-panel {
    padding: 0.24rem;
  }

  .commandes {
    padding: 0.28rem;
  }

  .commandes-grid {
    gap: 0.24rem;
  }
}

/* Professional interface polish */
.primary-action,
.btn-mise,
.retirer,
.header-btn,
.btn-pouvoir,
.profile-copy-btn {
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 26px rgba(8, 4, 18, 0.28);
}

.btn-mise,
.retirer {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, #d946ef, #7c3aed);
}

.retirer {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
    linear-gradient(135deg, #22d3ee, #2563eb);
}

.btn-mise:hover,
.retirer:hover,
.header-btn:hover,
.btn-pouvoir:hover {
  filter: saturate(1.08);
}

.btn-mise:focus-visible,
.retirer:focus-visible,
.header-btn:focus-visible,
.btn-pouvoir:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(138, 242, 255, 0.42);
  outline-offset: 3px;
}

.cadreJeux,
.game-powers-panel,
.commandes,
.world-card,
.historique {
  border-color: rgba(192, 132, 252, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.game-powers-panel,
.commandes {
  background:
    radial-gradient(circle at 100% 0%, rgba(138, 242, 255, 0.08), transparent 28%),
    linear-gradient(145deg, rgba(15, 18, 34, 0.96), rgba(31, 17, 56, 0.93));
}

.power-slot {
  min-width: 0;
}

.power-label,
.game-kicker,
.action-label {
  letter-spacing: 0.04em;
}

/* ===== Header responsive professionnel (override final) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 1.1rem;
  background:
    linear-gradient(135deg, rgba(12, 8, 24, 0.92), rgba(29, 14, 53, 0.84));
  border-bottom: 1px solid rgba(192, 132, 252, 0.26);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 12px 28px rgba(8, 4, 18, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header .header-brand {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.site-header .header-brand h4 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 1.9vw, 1.38rem);
  letter-spacing: 0.04em;
  color: #efe6ff;
  line-height: 1.1;
}

.header-subtitle {
  margin: 0;
  color: #b8c4ff;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
}

.site-header .header-actions {
  margin-left: auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.site-header .solde {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  color: #ffe5fb;
  background: rgba(217, 70, 239, 0.14);
  border: 1px solid rgba(217, 70, 239, 0.3);
  text-shadow: none;
  white-space: nowrap;
}

.site-header .solde span {
  color: #fff;
  font-weight: 900;
}

.header-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header .header-icon-btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(192, 132, 252, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(168, 85, 247, 0.74), rgba(92, 42, 188, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 20px rgba(15, 8, 29, 0.32);
}

.site-header .header-icon-btn svg {
  width: 20px;
  height: 20px;
}

.site-header .achat_logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(192, 132, 252, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 20px rgba(15, 8, 29, 0.28);
}

.site-header .achat_logo a {
  display: block;
  width: 100%;
  height: 100%;
}

.site-header .achat_logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header .header-icon-btn:hover,
.site-header .achat_logo:hover {
  transform: translateY(-1px);
}

.site-header .header-icon-btn:focus-visible,
.site-header .achat_logo a:focus-visible {
  outline: 3px solid rgba(138, 242, 255, 0.42);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .site-header {
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    flex-wrap: nowrap;
  }

  .site-header .header-brand {
    width: auto;
    text-align: left;
    justify-items: start;
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-header .header-brand h4 {
    font-size: 0.96rem;
  }

  .header-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  .site-header .header-actions {
    flex: 0 0 auto;
    width: auto;
    gap: 0.42rem;
  }

  .site-header .solde {
    min-height: 34px;
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
    border-radius: 8px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-quick-actions {
    gap: 0.35rem;
  }

  .site-header .header-icon-btn,
  .site-header .achat_logo {
    width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 9px;
  }

  .site-header .header-icon-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0.45rem 0.45rem;
    gap: 0.42rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "solde solde";
    align-items: center;
  }

  .site-header .header-brand {
    grid-area: brand;
    min-width: 0;
  }

  .site-header .header-brand h4 {
    font-size: 0.86rem;
    line-height: 1.05;
  }

  .header-subtitle {
    display: none;
  }

  .site-header .header-actions {
    grid-area: actions;
    display: contents;
  }

  .header-quick-actions {
    grid-area: actions;
    width: auto;
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 34px;
    gap: 0.32rem;
    justify-content: end;
  }

  .site-header .solde {
    grid-area: solde;
    width: 100%;
    max-width: none;
    justify-content: center;
    min-height: 32px;
    font-size: 0.7rem;
    border-radius: 8px;
    padding: 0.3rem 0.45rem;
  }

  .site-header .header-icon-btn,
  .site-header .achat_logo {
    width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 8px;
  }

  .site-header .header-icon-btn svg {
    width: 15px;
    height: 15px;
  }
}

/* Phone game frame sizing override */
@media (max-width: 768px) {
  .interface {
    width: 100%;
    margin: 0.65rem auto 1.5rem;
    padding: 0 0.55rem;
    gap: 0.75rem;
  }

  .cadreJeux {
    width: 100%;
    max-height: none;
    min-height: 0;
    padding: 0.7rem;
    overflow: visible;
    border-radius: 18px;
  }

  .game-shell {
    gap: 0.55rem;
  }

  .game-stage {
    margin-top: 0;
  }

  .img {
    height: clamp(180px, 34svh, 250px);
    min-height: 180px;
    padding: 58px 0.65rem 0.75rem;
    border-radius: 14px;
  }

  .Acteurs {
    min-height: 118px;
    margin-top: 22px;
    align-items: center;
  }

  .stick1,
  .stick {
    width: clamp(112px, 32vw, 148px);
    height: auto;
  }

  .stick {
    margin-right: clamp(28px, 12vw, 72px);
    transform: translateY(-5px) scaleX(-1);
  }

  .Ghost {
    width: clamp(72px, 22vw, 104px);
    height: auto;
  }
}

@media (max-width: 480px) {
  .interface {
    padding: 0 0.4rem;
  }

  .cadreJeux {
    padding: 0.55rem;
    border-radius: 16px;
  }

  .img {
    height: clamp(170px, 38svh, 230px);
    min-height: 170px;
    padding-top: 54px;
  }

  .Acteurs {
    min-height: 126px;
    margin-top: 28px;
  }

  .stick1,
  .stick {
    width: clamp(104px, 34vw, 132px);
  }

  .stick {
    margin-right: clamp(18px, 9vw, 44px);
    transform: translateY(-20px) scaleX(-1);
  }

  .Ghost {
    width: clamp(66px, 23vw, 88px);
  }
}

@media (max-width: 390px) {
  .img {
    height: clamp(160px, 34svh, 210px);
    min-height: 160px;
  }

  .Acteurs {
    min-height: 112px;
    margin-top: 24px;
  }
}

/* Desktop compact game frame */
@media (min-width: 769px) {
  .interface {
    width: min(100% - 2rem, 1080px);
    margin: 1.1rem auto 2rem;
  }

  .cadreJeux {
    width: min(100%, 560px);
    min-height: 0;
    padding: 0.78rem;
  }

  .game-shell {
    gap: 0.42rem;
  }

  .game-head {
    min-height: 0;
  }

  .game-head h1 {
    font-size: 1.35rem;
  }

  .game-kicker {
    margin-bottom: 0.18rem;
    font-size: 0.64rem;
  }

  .img {
    height: 185px;
    min-height: 185px;
    padding: 46px 0.65rem 0.55rem;
    border-radius: 12px;
  }

  .img .cote {
    top: 8px;
    min-width: 112px;
    padding: 0.28rem 0.78rem;
    font-size: 1.45rem;
    border-radius: 11px;
  }

  .Acteurs {
    min-height: 100px;
    margin-top: 12px;
  }

  .stick1,
  .stick {
    width: 118px;
    height: auto;
  }

  .stick {
    margin-right: 52px;
    transform: translateY(-8px) scaleX(-1);
  }

  .Ghost {
    width: 76px;
    height: auto;
  }

  .game-powers-panel {
    padding: 0.42rem 0.5rem;
    border-radius: 12px;
  }

  .game-powers-panel .panel-heading {
    display: none;
  }

  .pouvoir {
    max-width: 232px;
    gap: 0.24rem;
  }

  .pouvoir > div {
    flex-basis: 48px;
    max-width: 52px;
  }

  .power-label {
    font-size: 0.58rem;
  }

  .btn-pouvoir {
    min-height: 32px;
    border-radius: 8px;
    font-size: 0.78rem;
  }

  .commandes {
    padding: 0.52rem;
    gap: 0.38rem;
    border-radius: 13px;
  }

  .commandes .panel-heading {
    display: none;
  }

  .commandes-grid {
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 0.38rem;
  }

  .mise,
  .commandes-side {
    padding: 0.46rem;
    gap: 0.35rem;
    border-radius: 10px;
  }

  .mise label,
  .action-label {
    font-size: 0.68rem;
    line-height: 1;
  }

  input[type="number"] {
    height: 34px;
    min-height: 34px;
    font-size: 0.86rem;
    border-radius: 9px;
  }

  .btn-mise,
  .retirer {
    min-height: 34px;
    padding: 0.46rem 0.72rem;
    border-radius: 9px;
    font-size: 0.78rem;
    line-height: 1;
  }
}

/* Floating community drawer */
.interface {
  grid-template-columns: minmax(0, 1fr);
}

.cadreJeux {
  justify-self: center;
}

.world-panel {
  position: fixed;
  top: 86px;
  right: 16px;
  z-index: 160;
  width: min(410px, calc(100vw - 24px));
  max-height: calc(100svh - 112px);
  display: grid;
  gap: 0.78rem;
  padding: 0.1rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(calc(100% + 28px), 0, 0);
  transition: transform 0.28s ease, opacity 0.22s ease;
  will-change: transform;
}

.world-panel-open .world-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.world-panel-toggle {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 170;
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(192, 132, 252, 0.46);
  border-radius: 18px;
  color: #fff;
  cursor: pointer;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    linear-gradient(135deg, #d946ef, #7c3aed);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 38px rgba(11, 5, 24, 0.48),
    0 0 30px rgba(168, 85, 247, 0.24);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.world-panel-toggle:hover {
  filter: saturate(1.08);
  transform: translateY(-2px);
}

.world-panel-toggle:focus-visible {
  outline: 3px solid rgba(138, 242, 255, 0.42);
  outline-offset: 3px;
}

.world-panel-open .world-panel-toggle {
  transform: translateY(-2px) rotate(4deg);
}

.world-panel-toggle-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.world-panel-toggle-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 0.32rem;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  border: 2px solid #130a22;
  font-size: 0.68rem;
  font-weight: 900;
}

.world-panel-toggle-badge[hidden] {
  display: none;
}

.world-card,
.historique {
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(138, 242, 255, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(15, 18, 34, 0.97), rgba(31, 17, 56, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 44px rgba(8, 4, 18, 0.4);
}

.world-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.72rem;
  max-height: 310px;
  background:
    radial-gradient(circle at 0% 0%, rgba(138, 242, 255, 0.05), transparent 32%),
    rgba(7, 10, 22, 0.46);
}

.world-chat-item {
  width: fit-content;
  max-width: 88%;
  margin-right: auto;
  padding: 0.7rem 0.82rem 0.58rem;
  border: 1px solid rgba(192, 132, 252, 0.18);
  border-radius: 17px 17px 17px 6px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(168, 85, 247, 0.1));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.world-chat-item.own-message {
  margin-right: 0;
  margin-left: auto;
  border-color: rgba(217, 70, 239, 0.28);
  border-radius: 17px 17px 6px 17px;
  background:
    linear-gradient(145deg, rgba(217, 70, 239, 0.34), rgba(124, 58, 237, 0.44));
}

.world-chat-top {
  gap: 0.55rem;
  margin-bottom: 0.28rem;
}

.world-chat-item.own-message .world-chat-top {
  justify-content: flex-end;
}

.world-chat-text {
  color: #f8f5ff;
  font-size: 0.9rem;
  line-height: 1.45;
}

.world-chat-form {
  grid-template-columns: minmax(0, 1fr) 44px;
  padding: 0.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.world-chat-form input {
  min-height: 44px;
  border-radius: 999px;
  background: rgba(9, 12, 26, 0.94);
}

.world-chat-form .btn-mise {
  min-width: 44px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
}

.world-chat-form .btn-mise::before {
  content: ">";
  font-size: 1rem;
  font-weight: 900;
}

.world-feed,
.historique,
.world-panel {
  scrollbar-width: thin;
}

@media (max-width: 900px) {
  .world-panel {
    top: 92px;
    right: 10px;
    max-height: calc(100svh - 118px);
  }
}

@media (max-width: 560px) {
  .world-panel {
    top: auto;
    right: 8px;
    bottom: 88px;
    width: calc(100vw - 16px);
    max-height: min(72svh, 620px);
  }

  .world-panel-toggle {
    right: 14px;
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .world-chat-item {
    max-width: 92%;
  }
}
