/**
 * Monopoli Nusantara - Components Stylesheet
 * Sertifikat Tanah SHM, Galeri Portofolio Properti, Setup 2-4 Pemain,
 * dan Notifikasi Melayang Biaya Sewa (Floating Rent Toast & Cash Pop)
 */

/* --- Modal Overlay & Container --- */
.neopoly-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.neopoly-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.neopoly-modal-box {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: #FFFFFF;
  color: #0F172A;
  border: 2.5px solid #F59E0B;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26), 0 4px 18px rgba(217, 119, 6, 0.2);
  display: flex;
  flex-direction: column;
}

.animate-pop-in {
  animation: modalPopIn 0.26s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modalPopIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================================
   NOTIFIKASI MELAYANG BIAYA SEWA (FLOATING RENT TOAST)
   ======================================================== */

.floating-rent-toast-container {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  width: 90%;
  max-width: 420px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-rent-toast {
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid #F59E0B;
  border-radius: 16px;
  padding: 15px 22px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18), 0 4px 14px rgba(245, 158, 11, 0.25);
  text-align: center;
  pointer-events: auto;
  animation: rentToastPop 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@keyframes rentToastPop {
  0% {
    transform: translateY(-20px) scale(0.85);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.rent-toast-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: #B45309;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rent-toast-players {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
}

.rent-arrow {
  color: #DC2626;
  font-size: 1.1rem;
}

.rent-toast-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #DC2626;
  margin-bottom: 2px;
}

.rent-toast-loc {
  font-size: 0.74rem;
  color: #475569;
}

/* Floating Rising Cash Pop di atas Petak */
.floating-cash-pop {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  z-index: 40;
  pointer-events: none;
  white-space: nowrap;
  animation: floatCashUp 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.floating-cash-pop.is-negative {
  color: #FF5964;
  text-shadow: 0 2px 10px rgba(255, 89, 100, 0.8);
}

.floating-cash-pop.is-positive {
  color: #06D6A0;
  text-shadow: 0 2px 10px rgba(6, 214, 160, 0.8);
}

@keyframes floatCashUp {
  0% {
    transform: translate(-50%, 0) scale(0.7);
    opacity: 0;
  }
  20% {
    transform: translate(-50%, -10px) scale(1.15);
    opacity: 1;
  }
  75% {
    transform: translate(-50%, -28px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -44px) scale(0.9);
    opacity: 0;
  }
}

/* --- Sertifikat Hak Milik (SHM) Header --- */
.deed-header {
  padding: 15px 22px;
  text-align: center;
  color: #FFFFFF;
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.deed-cert-title {
  font-size: 0.65rem;
  letter-spacing: 2px;
  font-weight: 800;
  opacity: 0.9;
  display: block;
  text-transform: uppercase;
  color: #FFE6A7;
}

.deed-prop-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 2px;
}

.deed-body {
  padding: 18px 22px;
}

.deed-price-badge {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #1E293B;
}

.deed-rent-table {
  background: #F8FAFC; border: 1px solid #E2E8F0;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.rent-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.84rem;
  border-bottom: 1px dashed #CBD5E1;
}

.rent-row:last-child {
  border-bottom: none;
}

.rent-row.highlight-gold {
  color: #B45309;
  font-weight: 800;
}

.player-cash-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  color: #0F172A;
}

.modal-actions-row {
  display: flex;
  gap: 10px;
  padding: 14px 22px 18px;
  background: #F1F5F9;
  border-top: 1px solid #CBD5E1;
  flex-shrink: 0;
}

.modal-actions-row .btn {
  flex: 1;
}

/* ========================================================
   GALERI PORTOFOLIO KARTU ASET (SHM DRAWER)
   ======================================================== */

.portfolio-player-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
}
.portfolio-player-tabs::-webkit-scrollbar {
  display: none;
}

.portfolio-tab-btn {
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  color: #1E293B;
  font-family: 'Outfit', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.portfolio-tab-btn.is-active {
  background: rgba(255, 209, 102, 0.2);
  border-color: #B45309;
  color: #B45309;
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.25);
}

.portfolio-summary-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 209, 102, 0.08);
  border-bottom: 1px solid rgba(255, 209, 102, 0.2);
  flex-shrink: 0;
}

.summary-avatar-badge {
  font-size: 26px;
  line-height: 1;
}

.summary-info {
  display: flex;
  flex-direction: column;
}

.portfolio-scroll-area {
  max-height: 52vh;
  overflow-y: auto;
  padding: 12px 14px;
}

.empty-portfolio-state {
  text-align: center;
  padding: 30px 16px;
  color: #475569;
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 8px;
}

.empty-portfolio-state h4 {
  color: #0F172A;
  margin-bottom: 4px;
}

.empty-portfolio-state p {
  font-size: 0.8rem;
  line-height: 1.4;
}

.portfolio-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 10px;
}

.shm-portfolio-card {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #0F172A;
}

.shm-portfolio-card.is-mortgaged {
  opacity: 0.5;
  filter: grayscale(1);
}

.shm-card-header {
  padding: 6px 10px;
  color: #FFF;
  text-align: center;
}

.shm-region {
  font-size: 0.62rem;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  opacity: 0.9;
}

.shm-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shm-card-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  color: #0F172A;
}

.shm-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #1E293B;
}

.shm-action-box {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px dashed #CBD5E1;
}

.shm-actions-row-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #CBD5E1;
}

.shm-mortgage-pill {
  background: #E63946;
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* ========================================================
   SETUP 2-4 PEMAIN & CUSTOM NAME
   ======================================================== */

.setup-count-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.btn-count-tab {
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  color: #1E293B;
  padding: 8px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-count-tab.is-selected {
  background: rgba(255, 209, 102, 0.22);
  border-color: #B45309;
  color: #B45309;
}

.setup-players-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-config-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.player-avatar-preview {
  font-size: 1.3rem;
  line-height: 1;
}

.player-name-input {
  background: #FFFFFF !important;
  border: 1.5px solid #94A3B8 !important;
  color: #0F172A !important;
  border-radius: 8px;
  padding: 7px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  width: 100%;
  max-width: 195px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.player-name-input::placeholder {
  color: #64748B;
  font-weight: 500;
}

.player-name-input:focus {
  outline: none;
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

/* --- Pop-up Kartu Kesempatan & Dana Umum --- */
.card-draw-badge {
  padding: 16px;
  text-align: center;
  color: #FFFFFF;
}

.card-icon-big {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 2px;
}

.card-content-area {
  padding: 18px 16px;
  text-align: center;
}

.card-headline {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: #B45309;
  margin-bottom: 8px;
  font-weight: 800;
}

.card-description {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #0F172A;
}

/* --- Layar Pemenang Sultan Juara --- */
.victory-header {
  text-align: center;
  padding: 24px 16px 12px;
}

.victory-trophy {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 6px;
  animation: trophyFloat 2s ease-in-out infinite;
}

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

.rankings-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #F8FAFC;
}

.ranking-row.rank-winner {
  background: rgba(255, 209, 102, 0.15);
  border: 1.5px solid #FFD166;
}

.rank-pos {
  font-weight: 800;
  font-size: 0.95rem;
  color: #475569;
}

.rank-winner .rank-pos {
  color: #B45309;
}

.rank-avatar {
  font-size: 1.3rem;
}

.rank-name {
  flex: 1;
  font-weight: 700;
  font-size: 0.88rem;
}

.rank-cash {
  font-weight: 800;
  color: #B45309;
}

/* --- Form Setup Mode Card --- */
.setup-row {
  margin-bottom: 12px;
}

.setup-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.setup-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.setup-mode-card {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.setup-mode-card.is-selected {
  border-color: #B45309;
  background: rgba(255, 209, 102, 0.18);
}

.setup-mode-card h4 {
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.setup-mode-card p {
  font-size: 0.68rem;
  color: #475569;
}

.player-config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #F8FAFC;
  border-radius: 8px;
}

/* ========================================================
   SISTEM LELANG TERBUKA (PROPERTY AUCTION MODAL)
   ======================================================== */

.auction-modal-header {
  padding: 18px 22px;
  text-align: center;
  border-bottom: 1px solid #CBD5E1;
  position: relative;
}

.auction-gavel-badge {
  font-size: 2rem;
  display: inline-block;
  margin-bottom: 4px;
  animation: gavelSwing 1.2s infinite ease-in-out;
}

@keyframes gavelSwing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-25deg); }
  50% { transform: rotate(15deg); }
  75% { transform: rotate(-10deg); }
}

.auction-cert-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FEF3C7;
  display: block;
}

.auction-prop-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 2px 0 4px;
}

.auction-orig-price {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.auction-body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auction-current-bid-card {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 2px solid #F59E0B;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

.auction-bid-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #78350F;
  font-weight: 700;
}

.auction-bid-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: #B45309;
  margin: 4px 0 2px;
}

.auction-bid-leader {
  font-size: 0.82rem;
  color: #0F172A;
  font-weight: 700;
}

.auction-participants-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auction-participant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  transition: all 0.25s ease;
}

.auction-participant-row.is-active-turn {
  border-color: #0284C7;
  background: #E0F2FE;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.2);
}

.auction-participant-row.is-leader {
  border-color: #F59E0B;
  background: #FEF3C7;
}

.auction-participant-row.is-folded {
  opacity: 0.45;
  filter: grayscale(0.8);
}

.participant-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.participant-avatar {
  font-size: 1.25rem;
}

.participant-meta {
  display: flex;
  flex-direction: column;
}

.participant-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0F172A;
}

.participant-cash {
  font-size: 0.74rem;
  color: #047857;
  font-weight: 700;
}

.participant-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.badge-leader {
  background: #F59E0B;
  color: #FFFFFF;
}

.badge-turn {
  background: #0284C7;
  color: #FFFFFF;
  animation: pulseBadge 1s infinite alternate;
}

@keyframes pulseBadge {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

.badge-folded {
  background: #E2E8F0;
  color: #475569;
}

.auction-controls-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.bid-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.btn-bid-chip {
  padding: 8px 4px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 8px;
}

.auction-bot-thinking {
  padding: 12px;
  background: #E0F2FE;
  border: 1.5px dashed #0284C7;
  border-radius: 10px;
  text-align: center;
  color: #0369A1;
  font-size: 0.84rem;
  font-weight: 700;
}

/* ========================================================
   SISTEM BARTER & NEGOSIASI ANTAR PEMAIN (TRADE SYSTEM)
   ======================================================== */

.trade-target-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.trade-target-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #1E293B;
  transition: all 0.2s ease;
}

.trade-target-chip.is-active {
  background: rgba(255, 209, 102, 0.2);
  border-color: #B45309;
  color: #B45309;
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.25);
}

.trade-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 480px) {
  .trade-columns-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.trade-deck-column {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  color: #0F172A;
}

.trade-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #CBD5E1;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.trade-column-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trade-column-title.offer-title {
  color: #047857;
}

.trade-column-title.request-title {
  color: #B45309;
}

.trade-asset-list {
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
  padding-right: 2px;
}

.trade-asset-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.trade-asset-item:active {
  background: #F1F5F9;
}

.trade-asset-item.is-checked {
  background: #FEF3C7;
  border-color: #F59E0B;
}

.trade-item-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #B45309;
  cursor: pointer;
  pointer-events: none;
}

.trade-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.trade-item-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trade-item-sub {
  font-size: 0.66rem;
  color: #475569;
  display: flex;
  gap: 4px;
}

.trade-item-color-bar {
  width: 4px;
  height: 24px;
  border-radius: 2px;
  flex-shrink: 0;
}

.trade-cash-control {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px;
  margin-top: auto;
}

.trade-cash-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: #0F172A;
}

.trade-cash-chips-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.btn-cash-chip {
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  color: #1E293B;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cash-chip:active {
  background: #FEF3C7;
  color: #B45309;
}

.trade-summary-card {
  background: #E0F2FE;
  border: 1.5px solid #7DD3FC;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #0F172A;
}

.trade-proposal-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 440px) {
  .trade-proposal-view {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.trade-proposal-box {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 10px;
}

.trade-proposal-box.box-receive {
  border: 1.5px solid #10B981;
  background: #ECFDF5;
}

.trade-proposal-box.box-give {
  border: 1.5px solid #F59E0B;
  background: #FFFBEB;
}

.trade-proposal-header {
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trade-proposal-items-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
}

.trade-proposal-item-line {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  color: #0F172A;
}

.trade-result-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 12px auto;
}

.trade-result-badge.success {
  background: rgba(6, 214, 160, 0.2);
  border: 2px solid #06D6A0;
}

.trade-result-badge.failed {
  background: rgba(230, 57, 70, 0.2);
  border: 2px solid #E63946;
}

/* ========================================================
   FEATURE #4: GAME MODES & CUSTOM RULES STYLING
   ======================================================== */

.setup-options-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.setup-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.setup-chip-btn {
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.2s ease;
}

.setup-chip-btn:hover {
  background: #E2E8F0;
}

.setup-chip-btn.is-selected {
  background: #FFD166;
  color: #070B19;
  font-weight: 700;
  border-color: #B45309;
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.35);
}

.setup-rule-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.2s ease;
}

.setup-rule-toggle:hover {
  background: #F1F5F9;
}

.setup-rule-toggle input[type="checkbox"] {
  accent-color: #B45309;
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.bot-personality-select {
  background: #FFFFFF !important;
  border: 1.5px solid #94A3B8 !important;
  color: #0F172A !important;
  font-weight: 700;
  border-radius: 6px;
  font-size: 0.74rem;
  padding: 3px 8px;
  margin-left: 6px;
  cursor: pointer;
}

/* Turn Timer Badge in Top Bar */
.turn-timer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 209, 102, 0.18);
  border: 1px solid #FFD166;
  color: #B45309;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 2px 8px;
  margin-left: 6px;
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.25);
  transition: all 0.25s ease;
}

.turn-timer-pill.is-urgent {
  background: rgba(239, 71, 111, 0.3);
  border-color: #EF476F;
  color: #EF476F;
  box-shadow: 0 0 12px rgba(239, 71, 111, 0.6);
  animation: pulseUrgent 0.8s infinite alternate ease-in-out;
}

@keyframes pulseUrgent {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* Tile Jackpot Chip on Free Parking Corner */
.tile-jackpot-chip {
  display: inline-block;
  background: linear-gradient(135deg, #FFD166, #FB8500);
  color: #070B19;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 4px;
  padding: 2px 4px;
  margin-top: 2px;
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.5);
  animation: glowJackpot 1.8s infinite alternate ease-in-out;
}

@keyframes glowJackpot {
  0% { transform: scale(0.96); filter: brightness(0.95); }
  100% { transform: scale(1.04); filter: brightness(1.2); }
}

/* Jackpot Center Hub Badge */
.jackpot-hub-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.22), rgba(251, 133, 0, 0.25));
  border: 1px solid #FFD166;
  color: #B45309;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 2px;
}

/* Jackpot Toast */
.jackpot-toast {
  border-color: #F59E0B !important;
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7) !important;
  color: #0F172A !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3) !important;
}

/* --- Roda Keberuntungan (Fortune Lucky Wheel) --- */
.wheel-stage-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 10px auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-pointer-indicator {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
  animation: pointerPulse 1.5s infinite alternate ease-in-out;
}

@keyframes pointerPulse {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-2px); }
}

.wheel-disc-container {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(255, 209, 102, 0.3), inset 0 0 15px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.wheel-svg-disc {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.wheel-result-box {
  margin-top: 10px;
}

.wheel-prize-banner {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.15), rgba(251, 133, 0, 0.2));
  border: 1px solid #FFD166;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 16px rgba(255, 209, 102, 0.25);
}

.wheel-prize-icon {
  font-size: 2rem;
  margin-bottom: 4px;
  animation: prizeIconBounce 0.6s ease;
}

@keyframes prizeIconBounce {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.wheel-prize-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: #0F172A;
}

.wheel-prize-desc {
  font-size: 0.82rem;
  color: #1E293B;
  margin: 0;
  line-height: 1.4;
}

/* ========================================================
   MODAL RESUME GAME INTERAKTIF (FITUR #6)
   ======================================================== */
.resume-meta-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 8px;
  margin-bottom: 10px;
}

.resume-meta-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.resume-meta-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.resume-meta-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
}

.resume-meta-col small {
  font-size: 0.68rem;
  margin-top: 2px;
}

.resume-jackpot-pill {
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 8px;
  padding: 6px 12px;
  text-align: center;
  font-size: 0.8rem;
  color: #B45309;
  margin-bottom: 10px;
}

.resume-players-deck {
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resume-deck-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #B45309;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.resume-player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
}

.resume-player-item.is-bankrupt {
  opacity: 0.45;
  filter: grayscale(0.8);
}

.resume-p-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.resume-avatar {
  font-size: 1.25rem;
}

.resume-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.resume-meta strong {
  font-size: 0.82rem;
}

.resume-p-cash {
  text-align: right;
  font-size: 0.82rem;
}

.badge-bankrupt {
  background: #EF476F;
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid #EF476F;
  color: #EF476F;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-danger:active {
  background: rgba(239, 71, 111, 0.2);
}

/* ========================================================
   HALL OF FAME & STATISTIK SULTAN (FITUR #7)
   ======================================================== */
.fame-trophy-stage {
  text-align: center;
  padding: 16px 12px 10px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 209, 102, 0.2), transparent 70%);
}

.fame-crown-icon {
  font-size: 3rem;
  display: inline-block;
  animation: crownBounce 2s infinite ease-in-out;
  filter: drop-shadow(0 0 16px rgba(255, 209, 102, 0.6));
}

@keyframes crownBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.08); }
}

.fame-winner-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 6px 0 2px;
}

.fame-winner-wealth {
  font-size: 0.95rem;
  font-weight: 700;
}

.fame-tab-bar {
  display: flex;
  background: #F1F5F9;
  border-bottom: 1px solid #CBD5E1;
  padding: 4px 6px;
  gap: 6px;
}

.fame-tab-btn {
  flex: 1;
  padding: 8px 4px;
  background: transparent;
  border: none;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fame-tab-btn.is-active {
  background: #FFD166;
  color: #070B19;
  box-shadow: 0 2px 8px rgba(255, 209, 102, 0.4);
}

.fame-content-area {
  padding: 12px 10px;
  max-height: 52vh;
  overflow-y: auto;
}

/* Leaderboard cards */
.leaderboard-cards-deck {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
  transition: transform 0.15s ease;
}

.leaderboard-player-card.is-winner-card {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.15), rgba(251, 133, 0, 0.12));
  border: 1.5px solid #FFD166;
  box-shadow: 0 4px 14px rgba(255, 209, 102, 0.2);
}

.leaderboard-player-card.is-bankrupt-card {
  opacity: 0.5;
  filter: grayscale(0.8);
}

.lb-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lb-rank-badge {
  font-size: 1.25rem;
  font-weight: 800;
  min-width: 28px;
  text-align: center;
}

.lb-avatar {
  font-size: 1.5rem;
}

.lb-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.lb-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.lb-sub {
  font-size: 0.7rem;
  color: #475569;
  margin-top: 2px;
}

.lb-right {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.lb-networth {
  font-size: 0.95rem;
  font-weight: 800;
}

.lb-cash {
  font-size: 0.72rem;
  color: #475569;
}

/* Hall of Fame Awards Grid */
.fame-awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.fame-award-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fame-award-icon {
  font-size: 1.6rem;
}

.fame-award-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #B45309;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.fame-award-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}

.fame-award-desc {
  font-size: 0.7rem;
  color: #475569;
  margin: 0;
  line-height: 1.3;
}

/* Stats Summary Grid */
.fame-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.fame-stat-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.fame-stat-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #475569;
}

.fame-stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #B45309;
  margin-top: 2px;
}

/* Floating Recap Reopen Button */
.floating-recap-btn {
  position: fixed;
  bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  right: 14px;
  z-index: 100;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(255, 209, 102, 0); }
}

/* ========================================================
   FITUR MULTIPLAYER P2P & EMOTE (WebRTC)
   ======================================================== */
.room-pill {
  padding: 3px 8px;
  background: #ECFDF5;
  border: 1.5px solid #10B981;
  border-radius: 12px;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mp-network-tabs {
  display: flex;
  background: #F1F5F9;
  border-radius: 10px;
  padding: 4px;
  gap: 6px;
  margin-bottom: 12px;
  border: 1.5px solid #CBD5E1;
}

.mp-tab-btn {
  flex: 1;
  padding: 8px 6px;
  background: transparent;
  border: none;
  color: #475569;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mp-tab-btn.is-active {
  background: linear-gradient(135deg, #00B4D8, #0077B6);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 180, 216, 0.35);
}

.mp-sub-tabs {
  display: flex;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
  margin-bottom: 12px;
  border: 1.5px solid #E2E8F0;
}

.mp-sub-tab-btn {
  flex: 1;
  padding: 6px 4px;
  background: transparent;
  border: none;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mp-sub-tab-btn.is-active {
  background: #FFD166;
  color: #070B19;
  font-weight: 800;
}

.mp-room-card {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  margin-bottom: 12px;
}

.mp-room-code-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #B45309;
  letter-spacing: 2px;
  background: #FFFBEB;
  padding: 4px 16px;
  border-radius: 8px;
  border: 1.5px dashed #F59E0B;
  margin: 6px 0;
  user-select: all;
}

.mp-copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  border-radius: 16px;
  color: #1E293B;
  font-size: 0.72rem;
  cursor: pointer;
  margin-top: 4px;
}

.mp-lobby-deck {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.mp-player-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
}

.mp-player-item.is-me {
  border-color: #10B981;
  background: #ECFDF5;
}

.mp-player-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-avatar-circle {
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 50%;
}

.mp-player-tag {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 700;
}

.mp-tag-host {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #F59E0B;
}

.mp-tag-ready {
  background: #ECFDF5;
  color: #047857;
}

/* Floating Emote Speech Bubble */
.floating-emote-bubble {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #FFFFFF;
  border: 2px solid #F59E0B;
  color: #0F172A !important;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
  z-index: 80;
  pointer-events: none;
  animation: emoteBounce 2.5s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
}

.floating-emote-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #F59E0B transparent transparent transparent;
}

@keyframes emoteBounce {
  0% { opacity: 0; transform: translate(-50%, -60%) scale(0.6); }
  15% { opacity: 1; transform: translate(-50%, -100%) scale(1.1); }
  25% { transform: translate(-50%, -100%) scale(1); }
  75% { opacity: 1; transform: translate(-50%, -100%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -130%) scale(0.8); }
}

/* Emote Picker Grid */
.emote-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px 4px;
}

.emote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #1E293B;
}

.emote-btn:hover, .emote-btn:active {
  background: rgba(255, 209, 102, 0.15);
  border-color: #B45309;
  transform: scale(1.06);
}

.emote-icon {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.emote-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
}

/* --- Global High-Contrast Form Inputs & PC/Tablet Overrides --- */
input[type="text"],
input[type="number"],
input[type="search"],
select,
textarea,
.player-name-input,
.setup-player-name-input,
.bot-personality-select {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border: 1.5px solid #94A3B8 !important;
  font-weight: 700;
}

input::placeholder,
textarea::placeholder {
  color: #64748B !important;
  opacity: 1;
}

.deed-body,
.auction-body,
.fame-content-area {
  color: #0F172A;
}

.rent-toast-players,
.empty-portfolio-state h4,
.portfolio-card-body,
.shm-card-body,
.trade-item-name,
.trade-cash-display,
.floating-emote-bubble {
  color: #0F172A !important;
}

.portfolio-card,
.shm-portfolio-card {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  border-radius: 12px !important;
}

.portfolio-card-header,
.portfolio-card-header .portfolio-card-title,
.portfolio-card-header .portfolio-card-region,
.shm-card-header,
.shm-card-header .shm-name,
.shm-card-header .shm-region {
  color: #FFFFFF !important;
}

@media (min-width: 768px) {
  .neopoly-modal-box {
    max-width: 640px;
  }
  .deed-prop-name {
    font-size: 1.4rem;
  }
  .deed-rent-row,
  .rent-row {
    font-size: 0.92rem;
    padding: 6px 0;
  }
}
