/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #1a1a2e;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ===== SCREENS ===== */
.screen { position: fixed; inset: 0; display: none; z-index: 1; }
.screen.active { display: flex; }

/* ===== MAIN MENU ===== */
.menu-bg {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0f3460 0%, #16213e 40%, #1a1a2e 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.menu-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.menu-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(229,57,53,0.15) 0%, transparent 70%);
}
.menu-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 32px;
  padding: 20px;
  width: 100%; max-width: 420px;
}
.logo-area { text-align: center; }
.logo-icon {
  font-size: 72px; line-height: 1;
  filter: drop-shadow(0 0 20px rgba(255,200,0,0.8));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.game-title {
  font-size: clamp(28px, 8vw, 48px);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 30px rgba(255,200,0,0.6), 2px 2px 0 #c62828;
  letter-spacing: 2px;
  line-height: 1.1;
}
.game-title span {
  color: #ffc107;
  font-size: 1.2em;
  display: block;
}
.game-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-top: 8px;
  letter-spacing: 1px;
}
.menu-buttons {
  display: flex; flex-direction: column;
  gap: 12px; width: 100%; max-width: 300px;
}
.btn-menu {
  padding: 16px 24px;
  border: none; border-radius: 50px;
  font-size: 16px; font-weight: 700;
  cursor: pointer; letter-spacing: 1px;
  transition: all 0.2s ease;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.btn-menu:active { transform: scale(0.96); }
.btn-play {
  background: linear-gradient(135deg, #e53935, #b71c1c);
  color: #fff;
  box-shadow: 0 4px 20px rgba(229,57,53,0.5);
}
.btn-play:hover { box-shadow: 0 6px 25px rgba(229,57,53,0.7); transform: translateY(-2px); }
.btn-online {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(21,101,192,0.5);
}
.btn-online:hover { box-shadow: 0 6px 25px rgba(21,101,192,0.7); transform: translateY(-2px); }
.btn-rules {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}
.btn-rules:hover { background: rgba(255,255,255,0.2); }
.btn-credits {
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}
.btn-icon { font-size: 18px; }
.version-tag {
  color: rgba(255,255,255,0.3);
  font-size: 11px;
  letter-spacing: 2px;
}

/* ===== ONLINE LOBBY ===== */
#online-screen { justify-content: center; align-items: center; background: #1a1a2e; }
.online-section { display: flex; flex-direction: column; }
.online-input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #fff;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.online-input:focus { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.12); }
.code-input { font-size: 20px; font-weight: 800; }
.setup-label { color: rgba(255,255,255,0.6); font-size: 12px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* ===== ROOM LIST ===== */
.room-list-item {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.room-list-item:hover { background: rgba(255,255,255,0.14); }
.rli-token { font-size: 18px; flex-shrink: 0; }
.rli-host { flex: 1; font-size: 13px; font-weight: 600; color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rli-code { font-size: 13px; font-weight: 900; color: #ffd54f; letter-spacing: 2px; flex-shrink: 0; }
.rli-count { font-size: 11px; color: rgba(255,255,255,0.5); min-width: 22px; flex-shrink: 0; }
.rli-join {
  padding: 5px 12px !important; font-size: 11px !important;
  min-height: 0 !important; flex-shrink: 0;
  background: linear-gradient(135deg, #e53935, #b71c1c) !important;
  color: #fff !important;
}

/* ===== SETUP PEMAIN ===== */
#player-setup { justify-content: center; align-items: center; background: #1a1a2e; }
.setup-container {
  background: #16213e;
  border-radius: 20px;
  padding: 28px 24px;
  width: 90%; max-width: 420px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.setup-container h2 { color: #ffc107; text-align: center; margin-bottom: 24px; font-size: 22px; }
.player-count-selector { margin-bottom: 24px; }
.player-count-selector label { color: rgba(255,255,255,0.8); font-size: 14px; display: block; margin-bottom: 10px; }
.count-buttons { display: flex; gap: 10px; }
.count-btn {
  flex: 1; padding: 10px;
  background: rgba(255,255,255,0.1);
  border: 2px solid transparent;
  border-radius: 12px;
  color: #fff; font-size: 18px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.count-btn.active { background: #e53935; border-color: #ff7043; }
.player-input-group { margin-bottom: 16px; }
.player-input-group label {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.8); font-size: 13px; margin-bottom: 6px;
}
.player-color-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.player-input-group input, .player-input-group select {
  width: 100%; padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #fff; font-size: 14px;
  outline: none;
}
.player-input-group input:focus { border-color: #ffc107; }
.token-selector { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.token-btn {
  padding: 6px 10px; font-size: 20px;
  background: rgba(255,255,255,0.08);
  border: 2px solid transparent;
  border-radius: 10px; cursor: pointer;
  transition: all 0.2s;
}
.token-btn.selected { border-color: #ffc107; background: rgba(255,193,7,0.2); }
.setup-actions { display: flex; gap: 12px; margin-top: 24px; }
.btn-action {
  flex: 1; padding: 14px;
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.btn-action:active { transform: scale(0.96); }
.btn-back { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.btn-start { background: linear-gradient(135deg, #4caf50, #2e7d32); color: #fff; }

/* ===== ATURAN ===== */
#rules-screen { justify-content: center; align-items: center; background: #1a1a2e; }
.rules-container {
  background: #16213e;
  border-radius: 20px; padding: 28px 24px;
  width: 90%; max-width: 420px;
  max-height: 90vh; overflow-y: auto;
}
.rules-container h2 { color: #ffc107; text-align: center; margin-bottom: 20px; }
.rules-content { margin-bottom: 20px; }
.rule-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.rule-num {
  min-width: 28px; height: 28px;
  background: #e53935; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.rule-item p { color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.5; padding-top: 4px; }

/* ===== GAME SCREEN ===== */
#game-screen {
  flex-direction: column;
  background: #1a1a2e;
  overflow: hidden;
}
.game-layout {
  display: flex; flex-direction: column;
  width: 100%; height: 100%;
  overflow: hidden;
  position: relative;
}

/* PLAYERS BAR - kept for online stateUpdate compat, hidden in new layout */
.players-bar { display: none; }

/* TOP BAR */
.top-bar {
  display: flex; align-items: center;
  gap: 10px; padding: 8px 14px;
  background: rgba(0,0,0,0.5);
  flex-shrink: 0;
  position: relative; z-index: 51;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-player-slot {
  flex: 1; min-width: 0;
}
.top-player-slot .pc-row {
  padding: 0; border-bottom: none;
  background: transparent !important;
  box-shadow: none;
}
.top-player-slot .pc-row.active-turn {
  background: transparent !important;
}

/* Kept so .current-turn works everywhere */
.current-turn {
  flex: 1; color: rgba(255,255,255,0.8);
  font-size: 13px; font-weight: 600;
}

/* GAME BODY */
.game-body {
  flex: 1; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 0;
}

/* BOARD WRAPPER */
.board-wrapper {
  flex: 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
  min-height: 0;
}
.board {
  position: relative;
  display: grid;
  background: #e8f5e9;
  border: 3px solid #1b5e20;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  flex-shrink: 0;
}

/* PETAK (CELL) */
.cell {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.15);
  transition: transform 0.15s;
  user-select: none;
  min-width: 0; min-height: 0;
}
.cell:active { transform: scale(0.95); }
.cell-color-bar {
  width: 100%; height: 30%;
  position: absolute; top: 0; left: 0;
}
.cell-name {
  font-size: clamp(5px, 1.5vw, 10px);
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  padding: 2px;
  color: #1a1a1a;
  z-index: 1;
}
.cell-price {
  font-size: clamp(4px, 1.2vw, 8px);
  color: #555;
  z-index: 1;
}
.cell-icon {
  font-size: clamp(8px, 2.5vw, 20px);
  z-index: 1;
  margin-bottom: 2px;
}

/* CORNER CELLS */
.cell-corner {
  background: #c8e6c9;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: clamp(10px, 3vw, 22px);
}
.cell-corner .corner-label {
  font-size: clamp(6px, 1.8vw, 12px);
  font-weight: 800; text-align: center;
  color: #1b5e20; line-height: 1.2;
}

/* CENTER BOARD */
.board-center {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  overflow: hidden;
}
.center-title {
  font-size: clamp(10px, 3vw, 22px);
  font-weight: 900; color: #b71c1c;
  letter-spacing: 2px; text-align: center;
  line-height: 1.1;
}
.center-sub {
  font-size: clamp(6px, 1.8vw, 14px);
  color: #388e3c; font-weight: 600;
  text-align: center; margin-top: 4px;
}
.center-map-icon {
  font-size: clamp(20px, 6vw, 60px);
  margin-bottom: 6px;
}

/* TOKEN / PIECE */
.token-piece {
  position: absolute;
  font-size: clamp(10px, 3vw, 22px);
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
  transition: none;
  pointer-events: none;
}
.token-piece.moving {
  animation: tokenBounce 0.25s ease-out;
}
@keyframes tokenBounce {
  0% { transform: scale(1) translateY(0); }
  40% { transform: scale(1.3) translateY(-8px); }
  70% { transform: scale(0.9) translateY(2px); }
  100% { transform: scale(1) translateY(0); }
}

/* HOUSES & HOTELS */
.house-icons { font-size: clamp(5px, 1.2vw, 9px); line-height: 1; }

/* GAME CONTROLS - kept for any legacy refs */
.game-controls { display: none; }

/* PLAYER CONTROLS (bottom bar) */
.player-controls {
  flex-shrink: 0;
  background: rgba(0,0,0,0.55);
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative; z-index: 51;
}
.pc-row {
  display: flex; align-items: center;
  gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.pc-row:last-child { border-bottom: none; }
.pc-row.active-turn { background: rgba(255,193,7,0.08); }
.pc-row.bankrupt { opacity: 0.35; filter: grayscale(1); }
.pc-left {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 0;
}
.pc-token { font-size: 22px; flex-shrink: 0; }
.pc-name { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-jail-tag { font-size: 13px; flex-shrink: 0; }
.pc-lap-badge {
  font-size: 10px; font-weight: 700;
  background: rgba(255,193,7,0.25);
  border: 1px solid rgba(255,193,7,0.5);
  color: #ffc107; border-radius: 6px;
  padding: 1px 5px; flex-shrink: 0;
}
.pc-money-val {
  color: #4caf50; font-size: 14px; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
  min-width: 68px; text-align: right;
}
.pc-roll-btn {
  padding: 10px 16px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  color: rgba(255,255,255,0.35); font-size: 13px; font-weight: 700;
  cursor: not-allowed; min-width: 112px; text-align: center;
  transition: all 0.2s; flex-shrink: 0;
}
.pc-roll-btn.enabled {
  background: linear-gradient(135deg, #e53935, #b71c1c);
  border-color: transparent;
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgba(229,57,53,0.45);
}
.pc-roll-btn.enabled:active { transform: scale(0.95); }

.pc-build-btn {
  padding: 8px 10px;
  background: rgba(255,193,7,0.15);
  border: 1px solid rgba(255,193,7,0.35);
  border-radius: 8px;
  color: #ffc107; font-size: 15px;
  cursor: pointer; flex-shrink: 0;
  transition: all 0.2s;
}
.pc-build-btn:active { transform: scale(0.92); }

/* shared top-bar / btn-menu-game */
.btn-menu-game {
  padding: 9px 12px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  color: #fff; font-size: 18px;
  cursor: pointer;
}

/* ===== POPUP SYSTEM ===== */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  padding: 20px;
}
.popup-overlay.hidden { display: none; }

/* Spectator mode: popup visible but no interaction allowed */
.popup-overlay.spectator-mode {
  pointer-events: none;
  background: rgba(0,0,0,0.5);
}
.popup-overlay.spectator-mode button { display: none !important; }
.popup-overlay.spectator-mode::after {
  content: '👁️ Mode Penonton';
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  background: rgba(255,193,7,0.2);
  border: 1px solid rgba(255,193,7,0.5);
  color: #ffc107;
  font-size: 12px; font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.popup {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px 22px;
  width: 100%; max-width: 340px;
  max-height: 80vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  animation: popupIn 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
}
.popup.hidden { display: none; }
@keyframes popupIn {
  from { transform: scale(0.7) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.popup-header {
  font-size: 20px; font-weight: 800; color: #ffc107;
  text-align: center; margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* DICE POPUP */
.dice-area {
  display: flex; gap: 20px;
  justify-content: center; margin-bottom: 20px;
}
.die {
  width: 72px; height: 72px;
  perspective: 200px;
}
.die-inner {
  width: 100%; height: 100%;
  background: #fff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 0.1s;
}
.die.rolling .die-inner {
  animation: diceRoll 0.8s ease-out;
}
@keyframes diceRoll {
  0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
  20% { transform: rotateX(360deg) rotateY(180deg) rotateZ(90deg) scale(1.2); }
  40% { transform: rotateX(720deg) rotateY(360deg) rotateZ(180deg) scale(0.8); }
  60% { transform: rotateX(900deg) rotateY(540deg) rotateZ(270deg) scale(1.1); }
  80% { transform: rotateX(1080deg) rotateY(720deg) rotateZ(360deg) scale(0.95); }
  100% { transform: rotateX(1080deg) rotateY(720deg) rotateZ(360deg) scale(1); }
}
.dice-result {
  text-align: center; color: #fff;
  font-size: 16px; margin-bottom: 18px;
  min-height: 24px;
}

/* PROPERTY INFO */
.popup-property-info {
  background: rgba(255,255,255,0.05);
  border-radius: 12px; padding: 16px;
  margin-bottom: 18px;
}
.prop-name { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.prop-group { font-size: 12px; margin-bottom: 12px; }
.prop-detail { display: flex; justify-content: space-between; margin-bottom: 6px; }
.prop-detail .label { color: rgba(255,255,255,0.6); font-size: 13px; }
.prop-detail .value { color: #fff; font-weight: 700; font-size: 13px; }

/* RENT INFO */
.popup-rent-info {
  background: rgba(229,57,53,0.15);
  border: 1px solid rgba(229,57,53,0.3);
  border-radius: 12px; padding: 16px;
  margin-bottom: 18px; text-align: center;
}
.rent-amount { font-size: 28px; font-weight: 800; color: #ff7043; }
.rent-desc { color: rgba(255,255,255,0.7); font-size: 13px; margin-top: 6px; }

/* CARD */
.popup-card-content {
  background: rgba(255,255,255,0.05);
  border-radius: 12px; padding: 20px;
  text-align: center; margin-bottom: 18px;
  color: #fff; font-size: 15px; line-height: 1.6;
}

/* POPUP INFO */
.popup-info {
  color: rgba(255,255,255,0.8);
  text-align: center; line-height: 1.6;
  margin-bottom: 18px; font-size: 14px;
}
.popup-tax-info {
  text-align: center; margin-bottom: 18px;
}
.tax-amount { font-size: 28px; font-weight: 800; color: #ff7043; }

/* POPUP ACTIONS */
.popup-actions { display: flex; gap: 12px; margin-top: 4px; }
.popup-menu-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

/* BUTTONS */
.btn-popup {
  flex: 1; padding: 13px 16px;
  border: none; border-radius: 12px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  width: 100%;
}
.btn-popup:active { transform: scale(0.96); }
.btn-primary { background: linear-gradient(135deg, #1565c0, #0d47a1); color: #fff; }
.btn-success { background: linear-gradient(135deg, #2e7d32, #1b5e20); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #c62828, #b71c1c); color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.15); }

/* GAMEOVER */
.popup-gameover-content {
  text-align: center; margin-bottom: 20px;
}
.winner-icon { font-size: 64px; margin-bottom: 10px; }
.winner-name { font-size: 22px; font-weight: 800; color: #ffc107; }
.winner-money { font-size: 16px; color: #4caf50; margin-top: 6px; }

/* BUILD & SELL LISTS */
.build-item {
  background: rgba(255,255,255,0.05);
  border-radius: 10px; padding: 12px;
  margin-bottom: 10px; display: flex;
  align-items: center; justify-content: space-between;
}
.build-item .bi-name { color: #fff; font-size: 13px; font-weight: 600; }
.build-item .bi-houses { font-size: 13px; }
.build-item .bi-btn {
  padding: 6px 12px;
  background: #e53935; border: none;
  border-radius: 8px; color: #fff;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.build-item .bi-btn.btn-danger { background: linear-gradient(135deg, #c62828, #b71c1c); }
.build-item .bi-btn:disabled { background: #555; cursor: not-allowed; }
.build-item .bi-actions { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }
.build-item .bi-btn-sell {
  padding: 5px 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px; color: rgba(255,255,255,0.65);
  font-size: 10px; font-weight: 700; cursor: pointer;
  line-height: 1.4; text-align: center;
}
.build-item .bi-btn-sell:hover { background: rgba(255,255,255,0.14); }

/* ASSETS */
#assets-content .asset-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85); font-size: 13px;
}
#assets-content .asset-item:last-child { border-bottom: none; }
.asset-color { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* TOAST */
.toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff; padding: 10px 20px;
  border-radius: 50px; font-size: 13px;
  z-index: 2000; white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s;
}
.toast.hidden { opacity: 0; }

/* PROP INFO */
#prop-info-content .prop-owner {
  color: rgba(255,255,255,0.7); font-size: 13px;
  text-align: center; margin-bottom: 10px;
}

/* ===== LOG DRAWER ===== */
.log-drawer {
  position: absolute;
  bottom: 0; /* sits above nothing; inside game-body */
  left: 0; right: 0;
  max-height: 0;
  overflow: hidden;
  background: rgba(10,15,30,0.97);
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 50;
  display: flex; flex-direction: column;
}
.log-drawer.open { max-height: 220px; }
.log-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px; font-weight: 700; color: #ffc107;
  flex-shrink: 0;
}
.log-close-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.5); font-size: 16px;
  cursor: pointer; padding: 2px 6px;
}
.log-close-btn:hover { color: #fff; }
.log-entries {
  flex: 1; overflow-y: auto;
  padding: 6px 14px 10px;
  -webkit-overflow-scrolling: touch;
}
.log-entry {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px; line-height: 1.4;
  animation: logSlide 0.2s ease-out;
}
.log-entry:last-child { border-bottom: none; }
@keyframes logSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.log-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0; margin-top: 4px;
}
.log-text { color: rgba(255,255,255,0.75); }
.log-turn-marker {
  text-align: center; color: rgba(255,255,255,0.2);
  font-size: 10px; padding: 4px 0;
  letter-spacing: 1px;
  width: 100%;
}
.btn-log-toggle {
  padding: 10px 12px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: #fff; font-size: 16px;
  cursor: pointer; transition: 0.2s;
}
.btn-log-toggle.active {
  background: rgba(255,193,7,0.2);
  border-color: #ffc107;
}

/* ===== PARKING CITY PICKER ===== */
.parking-city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 2px;
}
.parking-city-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer; transition: all 0.15s;
  text-align: left;
}
.parking-city-btn:hover, .parking-city-btn:active {
  background: rgba(255,193,7,0.15);
  border-color: rgba(255,193,7,0.4);
  transform: scale(0.98);
}
.pcb-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.pcb-info { flex: 1; min-width: 0; }
.pcb-name {
  color: #fff; font-size: 12px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pcb-owner { font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* RESPONSIVE */
@media (max-width: 400px) {
  .popup { padding: 18px 14px; }
  .dice-area { gap: 14px; }
  .die { width: 60px; height: 60px; }
  .die-inner { font-size: 36px; }
  .parking-city-grid { grid-template-columns: 1fr; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .top-bar { padding: 4px 10px; }
  .pc-row { padding: 6px 10px; }
  .pc-roll-btn { padding: 7px 12px; font-size: 12px; min-width: 90px; }
  .pc-money-val { font-size: 12px; min-width: 56px; }
  .log-drawer.open { max-height: 140px; }
}
