html, body{
  width: 100%;
  overflow-x: hidden;
}
*, *::before, *::after{ box-sizing: border-box; }

.mono-page{ background: #f6f7f8; min-height: 100vh; }

.mono-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.mono-brand{
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.mono-actions{
  display:flex;
  align-items:center;
  gap:.5rem;
}
.badge-market{
  border-radius: 999px;
  padding: .45rem .8rem;
  font-weight: 800;
}

/* ===== Tickers ===== */
.mono-ticker{
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.mono-ticker.values{ background: #0b2b22; color: #eaf7f2; }
.mono-ticker.news{ background: #2b1348; color: #f1eaff; }

.mono-ticker .track{
  display:flex;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 220s linear infinite;
  padding: .5rem 0;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.mono-ticker.news .track{
  animation-duration: 320s;
  font-weight: 700;
  text-transform: none;
  letter-spacing: .01em;
}
.mono-ticker .chunk{ flex: 0 0 auto; padding-right: 2rem; }

@keyframes marquee{
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mono-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
}

.mono-kicker{
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .75rem;
  color: rgba(0,0,0,.55);
}
.mono-title{
  font-weight: 900;
  font-size: 1.25rem;
}

.chart-box{
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  padding: 1rem 1rem .5rem 1rem;
}

/* ===== Bandeau tour ===== */
.turn-banner{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1.05rem;
  background: rgba(0,0,0,.06);
  border: 2px solid rgba(0,0,0,.10);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.turn-banner::before{ content:"🎲"; }

/* ===== Pills up/down ===== */
.pill{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  border-radius: 999px;
  padding: .18rem .5rem;
  font-weight: 900;
  font-size: .85rem;
  line-height: 1.1;
}
.pill-up{ background: rgba(25,135,84,.16); color:#198754; }
.pill-down{ background: rgba(220,53,69,.16); color:#dc3545; }
.pill-flat{ background: rgba(108,117,125,.18); color:#495057; }

/* ===== Flash message ===== */
.flash-msg{
  margin-top: .6rem;
  padding: .55rem .75rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,193,7,.18);
  color: #5b4600;
  font-weight: 800;
}

/* ===== Cartes sociétés (compact) ===== */
.company-card{
  background:#fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: .85rem;            /* moins haut */
  height: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.company-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: .6rem;
}

.company-name{
  font-weight: 1000;
  font-size: 1.15rem;
  letter-spacing: .06em;
}

.company-right{
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  gap: .45rem;
  flex-wrap: wrap;
  text-align:right;
}

.company-price{
  font-weight: 1000;
  font-size: 1.35rem;
  line-height: 1.1;
}
.company-price .currency{
  font-size: .9rem;
  opacity: .75;
  margin-right: .2rem;
}

.company-trend{
  font-weight: 900;
  color: rgba(0,0,0,.55);
  font-size: .9rem;
}

/* Table actions par joueur */
.table-wrap{
  margin-top: .6rem;          /* moins haut */
  overflow-x: auto;
}

.mono-table thead th{
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(0,0,0,.55);
  border-bottom: 1px solid rgba(0,0,0,.10);
  white-space: nowrap;
}
.mono-table td{
  border-color: rgba(0,0,0,.07);
  vertical-align: middle;
}

/* ===== Bloc Actifs par joueur ===== */
.player-card{
  background:#fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: .9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  height: 100%;
}
.player-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
}
.player-name{
  font-weight: 1000;
  font-size: 1.1rem;
}
.cash-controls{
  display:flex;
  align-items:center;
  gap:.4rem;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.cash-controls input{
  width: 120px;
  text-align: right;
  font-weight: 900;
}
.player-stats{
  margin-top: .65rem;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.stat{
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: .55rem .65rem;
}
.stat .k{
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .68rem;
  color: rgba(0,0,0,.55);
}
.stat .v{
  margin-top: .2rem;
  font-weight: 1000;
}

/* OVERRIDE : bandeau news 2x plus rapide */
.mono-ticker.news .track{
  animation-duration: 40s !important;
}

.trade-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.trade-modal.hidden {
  display: none;
}

.trade-modal-box {
  background: #111;
  border: 2px solid #444;
  border-radius: 12px;
  padding: 24px 28px;
  max-width: 420px;
  text-align: center;
  color: #fff;
}

.trade-modal-msg {
  font-size: 1.15rem;
  font-weight: 600;
}

.sellAllBtn svg, .buyAllBtn svg { pointer-events: none; }
