/* public/css/board.css */
/* Menggunakan CSS Container Queries (cqmin) agar seluruh isi papan skalabel 1:1 di semua rasio layar */

.monopoly-board {
  --board-size: min(calc(100dvh - 14px), calc(100vw - 360px));
  width: var(--board-size);
  height: var(--board-size);
  container-type: size;
  container-name: board;
  background: #c8e3cc;
  border: 3px solid #0f172a;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1.46fr repeat(9, 1fr) 1.46fr;
  grid-template-rows: 1.46fr repeat(9, 1fr) 1.46fr;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.12);
  position: relative;
  color: #0f172a;
  user-select: none;
  overflow: hidden;
  transition: width 0.22s ease, height 0.22s ease;
}

.game-layout.sidebar-collapsed .monopoly-board {
  --board-size: min(calc(100dvh - 14px), calc(100vw - 14px));
}

/* iPad Landscape */
@media (min-width: 721px) and (max-width: 1120px) and (orientation: landscape) and (min-height: 561px) {
  .monopoly-board {
    --board-size: min(calc(100dvh - 14px), calc(100vw - 310px));
  }
}

/* iPad Portrait: Papan Raksasa di Atas */
@media (min-width: 721px) and (max-width: 1080px) and (orientation: portrait) {
  .monopoly-board {
    --board-size: min(calc(100vw - 16px), 66dvh);
  }
  .game-layout.sidebar-collapsed .monopoly-board {
    --board-size: min(calc(100vw - 16px), calc(100dvh - 16px));
  }
}

/* HP Landscape: Dinamis Memenuhi Tinggi/Lebar Layar Tanpa Batas Sempit */
body.is-phone-landscape .monopoly-board {
  --board-size: min(
    calc(100dvh - 8px - env(safe-area-inset-top) - env(safe-area-inset-bottom)),
    calc(100vw - 265px - env(safe-area-inset-left) - env(safe-area-inset-right))
  );
  border-width: 2px;
  border-radius: 8px;
}

/* ================= PETAK (TILES) ================= */
.tile {
  border: 1px solid #334155;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #edf7ef;
  cursor: pointer;
  overflow: visible;
  transition: filter 0.14s, background 0.2s, box-shadow 0.18s, transform 0.16s;
}

.tile:hover { filter: brightness(0.95); z-index: 6; }
.tile.tile-active { box-shadow: inset 0 0 0 0.4cqmin #f59e0b; background: #fef9c3; }
.tile.tile-has-me { z-index: 18; }

@keyframes tileLandmarkAura {
  0%, 100% { box-shadow: inset 0 0 0 2px #eab308, inset 0 0 8px rgba(250, 204, 21, 0.25); }
  50% { box-shadow: inset 0 0 0 2.5px #fde047, inset 0 0 14px rgba(250, 204, 21, 0.45); }
}
.tile.tile-has-landmark { animation: tileLandmarkAura 2.2s infinite ease-in-out; }

/* Status Mati Lampu */
.tile.tile-blackout { filter: brightness(0.68) contrast(1.08); background: #334155 !important; }
.tile.tile-blackout .tile-name, .tile.tile-blackout .tile-price { color: #cbd5e1; }
.tile-blackout-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid #f43f5e;
  color: #fda4af;
  font-size: clamp(5.5px, 1.05cqmin, 8.5px);
  font-weight: 900;
  letter-spacing: 0.3px;
  padding: 1px 4px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 9;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* ================= MODE PARKIR BEBAS ================= */
.monopoly-board.parking-select-mode .board-center { filter: saturate(0.85); }
.monopoly-board.parking-select-mode .tile[data-id="20"] { opacity: 0.45; cursor: not-allowed; }
.monopoly-board.parking-select-mode .tile:not([data-id="20"]) { cursor: pointer; }
.monopoly-board.parking-select-mode .tile:not([data-id="20"])::before { content: ''; position: absolute; inset: 0; border: 2px solid rgba(14, 165, 233, 0.32); pointer-events: none; z-index: 9; transition: all 0.16s ease; }
.monopoly-board.parking-select-mode .tile:not([data-id="20"]):hover { transform: scale(1.06); z-index: 25; filter: none; box-shadow: 0 10px 24px rgba(14, 165, 233, 0.45); }
.monopoly-board.parking-select-mode .tile:not([data-id="20"]):hover::before { border: 2.5px solid #0284c7; background: rgba(14, 165, 233, 0.14); }
.monopoly-board.parking-select-mode .tile:not([data-id="20"]):hover::after {
  content: '\f5b0';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(18px, 3.6cqmin, 28px);
  height: clamp(18px, 3.6cqmin, 28px);
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
  color: #ffffff;
  font-size: clamp(9px, 1.7cqmin, 13px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.65);
  z-index: 26;
  pointer-events: none;
}

/* ================= PENJARA & MASUK PENJARA ================= */
.tile.tile-jail-corner { background: repeating-linear-gradient(90deg, #1e293b 0px, #1e293b 4px, #334155 4px, #334155 12px) !important; color: #f8fafc; }
.tile.tile-jail-corner .corner-title { color: #f87171; text-shadow: 0 1px 4px rgba(0,0,0,0.85); }
.tile.tile-jail-corner .corner-sub { color: #cbd5e1; }
.tile.tile-jail-corner .tile-icon { color: #ef4444; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.75)); }
.tile.tile-gotojail-corner { background: radial-gradient(circle at center, #7f1d1d 0%, #450a0a 100%) !important; color: #fef2f2; }
.tile.tile-gotojail-corner .corner-title { color: #fca5a5; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
.tile.tile-gotojail-corner .tile-icon { color: #f87171; }

/* Status Digadai */
.tile.tile-mortgaged { background: repeating-linear-gradient(-45deg, #cbd5e1, #cbd5e1 6px, #e2e8f0 6px, #e2e8f0 12px); opacity: 0.78; }
.tile-mortgage-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  background: rgba(15, 23, 42, 0.88);
  color: #fbbf24;
  font-size: clamp(5.5px, 1.05cqmin, 8.5px);
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 4px;
  border-radius: 4px;
  z-index: 8;
  pointer-events: none;
}

/* ================= STRIP WARNA — RUMAH, HOTEL & LANDMARK TAJAM ================= */
.tile-color-bar {
  flex-shrink: 0;
  border-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px;
  overflow: hidden;
}

.build-badges-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25cqmin;
  width: 100%;
  height: 100%;
}

.build-badge-compact {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 3px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  padding: 0 3px;
  height: 88%;
  max-width: 94%;
  font-size: clamp(7px, 1.85cqmin, 10px);
}

.build-badge-compact i {
  font-size: clamp(6.5px, 1.65cqmin, 9px);
}

.build-badge {
  width: clamp(11px, 2cqmin, 17px);
  height: clamp(11px, 2cqmin, 17px);
  max-width: calc(100% - 2px);
  max-height: calc(100% - 2px);
  border-radius: 3.5px;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(6.5px, 1.15cqmin, 9.5px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  flex-shrink: 0;
}

.build-badge-hotel {
  width: clamp(15px, 2.9cqmin, 24px);
  height: clamp(11px, 2.2cqmin, 18px);
  max-width: 92%;
  max-height: 90%;
  border-radius: 4px;
  border: 1.5px solid #fef08a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(7.5px, 1.45cqmin, 12px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  flex-shrink: 0;
}

@keyframes landmarkGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(250, 204, 21, 0.85), inset 0 0 3px rgba(254, 240, 138, 0.5), 0 1px 4px rgba(0, 0, 0, 0.85); }
  50% { box-shadow: 0 0 12px rgba(253, 224, 71, 1), inset 0 0 6px rgba(255, 255, 255, 0.7), 0 1px 6px rgba(0, 0, 0, 0.95); }
}

@keyframes landmarkShimmer {
  0% { transform: translateX(-160%) skewX(-24deg); }
  45%, 100% { transform: translateX(220%) skewX(-24deg); }
}

.build-badge-landmark {
  position: relative;
  overflow: hidden;
  width: clamp(18px, 3.8cqmin, 34px);
  height: clamp(11px, 2.3cqmin, 19px);
  max-width: 92%;
  max-height: 90%;
  border-radius: 4px;
  border: 1.5px solid #fde047;
  background: linear-gradient(135deg, var(--owner-color, #b45309) 0%, #111827 145%);
  color: #fef08a;
  font-size: clamp(8px, 1.55cqmin, 12.5px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: landmarkGlow 1.9s infinite ease-in-out;
}

.build-badge-landmark i { position: relative; z-index: 2; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9)); }
.build-badge-landmark::after { content: ''; position: absolute; top: -25%; bottom: -25%; left: 0; width: 55%; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%); animation: landmarkShimmer 2.4s infinite ease-in-out; z-index: 1; pointer-events: none; }

/* Orientasi Sisi Kiri & Kanan (Vertikal Anti-Terpotong) */
.tile.side-bottom { flex-direction: column; }
.tile.side-bottom .tile-color-bar { height: 25%; width: 100%; border-bottom: 1px solid #1e293b; }

.tile.side-top { flex-direction: column-reverse; }
.tile.side-top .tile-color-bar { height: 25%; width: 100%; border-top: 1px solid #1e293b; }

.tile.side-left { flex-direction: row-reverse; }
.tile.side-left .tile-color-bar { width: 25%; height: 100%; border-left: 1px solid #1e293b; }
.tile.side-left .build-badges-full { flex-direction: column; }

.tile.side-right { flex-direction: row; }
.tile.side-right .tile-color-bar { width: 25%; height: 100%; border-right: 1px solid #1e293b; }
.tile.side-right .build-badges-full { flex-direction: column; }

.tile.side-left .build-badge-hotel,
.tile.side-right .build-badge-hotel {
  width: clamp(11px, 2.2cqmin, 18px);
  height: clamp(15px, 2.9cqmin, 24px);
}

.tile.side-left .build-badge-landmark,
.tile.side-right .build-badge-landmark {
  width: clamp(11px, 2.3cqmin, 19px);
  height: clamp(18px, 3.8cqmin, 34px);
}

.tile.side-left .build-badge-compact,
.tile.side-right .build-badge-compact {
  flex-direction: column;
  width: 88%;
  height: auto;
  max-height: 94%;
  padding: 2px 0;
  gap: 1px;
}

/* CONTAINER QUERY: Saat Papan Berukuran Mobile (<= 560px) -> Badge Kompak & Tajam! */
@container board (max-width: 560px) {
  .tile.side-bottom .tile-color-bar,
  .tile.side-top .tile-color-bar { height: 29%; }

  .tile.side-left .tile-color-bar,
  .tile.side-right .tile-color-bar { width: 29%; }

  .build-badges-full { display: none !important; }
  .build-badge-compact { display: inline-flex !important; }

  .build-badge-hotel,
  .build-badge-landmark {
    border-width: 1px;
    border-radius: 3px;
  }

  .build-badge-hotel {
    width: 82%;
    height: 88%;
    font-size: clamp(7.5px, 2.05cqmin, 11px);
  }

  .build-badge-landmark {
    width: 86%;
    height: 88%;
    font-size: clamp(8px, 2.15cqmin, 11.5px);
  }

  .tile.side-left .build-badge-hotel,
  .tile.side-right .build-badge-hotel {
    width: 88%;
    height: 82%;
  }

  .tile.side-left .build-badge-landmark,
  .tile.side-right .build-badge-landmark {
    width: 88%;
    height: 86%;
  }
}

/* ================= KONTEN PETAK (PROPORSIONAL cqmin) ================= */
.tile-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 0.45cqmin 0.25cqmin;
  overflow: hidden;
}

.tile-name {
  font-size: clamp(5.2px, 1.32cqmin, 10.5px);
  font-weight: 800;
  line-height: 1.1;
  word-break: normal;
  overflow-wrap: break-word;
  color: #0f172a;
}

.tile-icon {
  font-size: clamp(9.5px, 2.5cqmin, 21px);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-icon.icon-start { color: #dc2626; }
.tile-icon.icon-parking { color: #2563eb; }
.tile-icon.icon-station { color: #1e293b; }
.tile-icon.icon-chance { color: #ea580c; }
.tile-icon.icon-chest { color: #2563eb; }
.tile-icon.icon-tax { color: #b45309; }
.tile-icon.icon-pln { color: #ca8a04; }
.tile-icon.icon-pdam { color: #0284c7; }

.tile-price {
  font-size: clamp(5px, 1.15cqmin, 9.5px);
  font-weight: 700;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 0.35cqmin;
}

.tile-owner-inline {
  width: clamp(5.5px, 1.35cqmin, 11px);
  height: clamp(5.5px, 1.35cqmin, 11px);
  border-radius: 50%;
  border: 1px solid #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  display: inline-block;
  flex-shrink: 0;
}

.tile.corner {
  background: linear-gradient(145deg, #dff0e2, #cce5d0);
  align-items: center;
  justify-content: center;
  padding: 0.55cqmin;
  text-align: center;
  gap: 0.35cqmin;
}

.corner-title { font-size: clamp(6.5px, 1.6cqmin, 13px); font-weight: 800; text-transform: uppercase; line-height: 1.08; }
.corner-sub { font-size: clamp(5px, 1.1cqmin, 9.5px); font-weight: 700; color: #334155; }

/* ================= BIDAK & HIGHLIGHT "ME" (cqmin) ================= */
.tile-tokens {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35cqmin;
  pointer-events: none;
  z-index: 10;
  padding: 0.35cqmin;
}

.board-token {
  width: clamp(14px, 3.6cqmin, 30px);
  height: clamp(14px, 3.6cqmin, 30px);
  border-radius: 50%;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(7px, 1.75cqmin, 14px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.board-token.is-moving { transform: scale(1.24); z-index: 16; }
.board-token.in-jail::after { content: ''; position: absolute; inset: -2.5px; border-radius: 50%; border: 1.8px dashed #ef4444; }

@keyframes meRingPulse {
  0%, 100% { box-shadow: 0 0 0 2px #facc15, 0 0 9px rgba(250, 204, 21, 0.85), 0 2px 6px rgba(0, 0, 0, 0.6); }
  50% { box-shadow: 0 0 0 3.5px rgba(253, 224, 71, 0.95), 0 0 15px rgba(250, 204, 21, 1), 0 2px 6px rgba(0, 0, 0, 0.6); }
}
@keyframes meTagBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -3px); } }
@keyframes meTagBobBottom { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 3px); } }

.board-token.is-me { z-index: 14; animation: meRingPulse 1.5s infinite ease-in-out; }

.token-me-tag {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #0f172a;
  font-size: clamp(6px, 1.25cqmin, 9.5px);
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1;
  padding: 2px 4.5px;
  border-radius: 999px;
  border: 1.2px solid #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  pointer-events: none;
  z-index: 30;
  animation: meTagBob 1.15s infinite ease-in-out;
}

.token-me-tag::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border-width: 3.5px 3.5px 0 3.5px; border-style: solid; border-color: #0f172a transparent transparent transparent; }
.tile.side-top .token-me-tag, .tile[data-id="20"] .token-me-tag, .tile[data-id="30"] .token-me-tag { bottom: auto; top: calc(100% + 4px); animation: meTagBobBottom 1.15s infinite ease-in-out; }
.tile.side-top .token-me-tag::after, .tile[data-id="20"] .token-me-tag::after, .tile[data-id="30"] .token-me-tag::after { top: auto; bottom: 100%; border-width: 0 3.5px 3.5px 3.5px; border-color: transparent transparent #0f172a transparent; }

/* ================= TENGAH PAPAN ================= */
.board-center { grid-column: 2 / 11; grid-row: 2 / 11; background: radial-gradient(circle at center, #d9eedc 0%, #c1dec6 100%); display: flex; flex-direction: column; justify-content: space-between; padding: 4%; position: relative; }

body.is-phone-landscape .board-center { justify-content: center; padding: 5%; }
body.is-phone-landscape .deck-area { flex-direction: column; gap: 2.2cqmin; }
body.is-phone-landscape .card-deck { width: 58%; aspect-ratio: 2.25 / 1; }
body.is-phone-landscape .deck-chest { transform: rotate(-1.5deg); }
body.is-phone-landscape .deck-chance { transform: rotate(1.5deg); }
body.is-phone-landscape .deck-inner { flex-direction: row; gap: 1.5cqmin; font-size: clamp(7.5px, 2.2cqmin, 11px); }
body.is-phone-landscape .deck-icon { font-size: clamp(11px, 3.2cqmin, 16px); }
body.is-phone-landscape .logo-banner { font-size: clamp(13px, 4cqmin, 20px); padding: 0.8cqmin 3.2cqmin; letter-spacing: 2px; border-width: 2px; }
body.is-phone-landscape .center-logo small { font-size: clamp(6.5px, 1.85cqmin, 9px); margin-top: 0.8cqmin; }
body.is-phone-landscape .board-mode-badge { font-size: clamp(6.5px, 1.75cqmin, 8.5px); padding: 1.5px 7px; }

.deck-area { display: flex; align-items: center; justify-content: space-between; gap: 1.2cqmin; }
.card-deck { width: 24%; aspect-ratio: 1.48 / 1; border-radius: 1.2cqmin; padding: 0.5cqmin; box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18), 3px 3px 0 rgba(15, 23, 42, 0.12); transition: transform 0.25s ease, box-shadow 0.25s ease; }

@keyframes deckGlow {
  0%, 100% { transform: scale(1.04) translateY(-3px); box-shadow: 0 0 0 3px #facc15, 0 12px 26px rgba(245, 158, 11, 0.55); }
  50% { transform: scale(1.11) translateY(-7px); box-shadow: 0 0 0 6px #fde047, 0 18px 34px rgba(245, 158, 11, 0.78); }
}
.card-deck.deck-clickable { cursor: pointer; animation: deckGlow 0.9s infinite ease-in-out; z-index: 15; }
.card-deck.deck-bot-active { animation: deckGlow 0.75s infinite ease-in-out; z-index: 15; }

.deck-inner { width: 100%; height: 100%; border-radius: 0.9cqmin; border: 1.5px dashed rgba(255, 255, 255, 0.78); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6cqmin; font-weight: 800; font-size: clamp(7px, 1.35cqmin, 11px); letter-spacing: 0.5px; color: #fff; text-align: center; }
.deck-chest { background: linear-gradient(135deg, #2563eb, #1e40af); transform: rotate(-4deg); }
.deck-chance { background: linear-gradient(135deg, #f97316, #c2410c); transform: rotate(4deg); }
.deck-icon { font-size: clamp(12px, 2.8cqmin, 23px); }

.center-logo { text-align: center; }
.logo-banner { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; font-weight: 800; font-size: clamp(14px, 3.6cqmin, 28px); letter-spacing: 3px; padding: 0.7cqmin 2.2cqmin; border: 2.5px solid #fff; border-radius: 6px; box-shadow: 0 8px 20px rgba(185, 28, 28, 0.32); transform: rotate(-2.5deg); display: inline-block; }
.center-logo small { display: block; margin-top: 0.7cqmin; font-weight: 800; font-size: clamp(7px, 1.3cqmin, 10.5px); color: #1e293b; letter-spacing: 1.2px; }
.board-mode-badge { display: inline-block; margin-top: 0.5cqmin; padding: 2px 9px; border-radius: 999px; font-size: clamp(7px, 1.2cqmin, 10px); font-weight: 800; letter-spacing: 0.9px; background: #1e293b; color: #e2e8f0; }
.board-mode-badge.is-fast { background: linear-gradient(135deg, #f97316, #dc2626); color: #ffffff; box-shadow: 0 3px 10px rgba(220, 38, 38, 0.35); }

/* ================= TEMA EDISI KELILING DUNIA ================= */
.monopoly-board.theme-world { background: #0c1f38; border-color: #d97706; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(251, 191, 36, 0.3); }
.monopoly-board.theme-world .tile { background: #f8fafc; border-color: #1e3a5f; }
.monopoly-board.theme-world .tile.corner { background: linear-gradient(145deg, #e0f2fe, #bae6fd); }
.monopoly-board.theme-world .tile.tile-active { background: #fef9c3; box-shadow: inset 0 0 0 0.4cqmin #f59e0b; }
.monopoly-board.theme-world .board-center {
  background:
    radial-gradient(circle at 50% 42%, rgba(56, 189, 248, 0.16) 0%, transparent 55%),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.06) 0px, rgba(148, 163, 184, 0.06) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.06) 0px, rgba(148, 163, 184, 0.06) 1px, transparent 1px, transparent 28px),
    linear-gradient(145deg, #0f294a 0%, #091a30 100%);
}
.monopoly-board.theme-world .logo-banner { background: linear-gradient(135deg, #f59e0b, #b45309); border-color: #fef3c7; color: #ffffff; box-shadow: 0 10px 26px rgba(245, 158, 11, 0.35); }
.monopoly-board.theme-world .center-logo small { color: #fde68a; letter-spacing: 1.6px; }
.monopoly-board.theme-world .deck-chest { background: linear-gradient(135deg, #0d9488, #115e59); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45); }
.monopoly-board.theme-world .deck-chance { background: linear-gradient(135deg, #d97706, #92400e); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45); }
.monopoly-board.theme-world .dice-stage { background: rgba(248, 250, 252, 0.94); border-color: rgba(251, 191, 36, 0.45); box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45); }
.monopoly-board.theme-world .tile-icon.icon-station { color: #0369a1; }
.monopoly-board.theme-world .tile-icon.icon-parking { color: #0284c7; }

/* ================= FLOATING TOAST ================= */
.floating-toast-layer { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 6px; }
body.is-phone-landscape .floating-toast-layer { top: 50%; }

.money-toast { padding: 6px 13px; border-radius: 999px; font-size: clamp(10.5px, 2.2cqmin, 14.5px); font-weight: 800; color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); animation: toastFloat 1.6s ease-out forwards; white-space: nowrap; }
.money-toast.plus { background: linear-gradient(135deg, #16a34a, #15803d); }
.money-toast.minus { background: linear-gradient(135deg, #dc2626, #991b1b); }
.money-toast.info { background: linear-gradient(135deg, #0284c7, #1d4ed8); }
.money-toast.angel { background: linear-gradient(135deg, #0284c7, #0369a1); border: 2px solid #fde047; color: #f0f9ff; box-shadow: 0 0 22px rgba(56, 189, 248, 0.65); animation: toastFloat 2s ease-out forwards; }
.money-toast.landmark { background: linear-gradient(135deg, #0f172a 0%, #1e1b18 50%, #451a03 100%); color: #fde047; border: 2px solid #facc15; letter-spacing: 1.4px; text-transform: uppercase; padding: 7px 15px; box-shadow: 0 0 24px rgba(250, 204, 21, 0.65), 0 10px 25px rgba(0, 0, 0, 0.55); animation: toastFloat 2.1s ease-out forwards; }

@keyframes toastFloat { 0% { opacity: 0; transform: translateY(12px) scale(0.9); } 15% { opacity: 1; transform: translateY(0) scale(1); } 75% { opacity: 1; transform: translateY(-10px) scale(1); } 100% { opacity: 0; transform: translateY(-28px) scale(0.95); } }

/* ================= NAVIGASI DADU (TENGAH PAPAN / KOKPIT KANAN) ================= */
.dice-stage { background: rgba(255, 255, 255, 0.9); border: 1.5px solid rgba(15, 23, 42, 0.22); border-radius: 16px; padding: 10px 13px; backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14); display: flex; flex-direction: column; gap: 8px; }
.stage-top-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid rgba(15, 23, 42, 0.1); }
.turn-indicator { font-weight: 800; font-size: clamp(11px, 1.45dvh, 13.5px); color: #0f172a; display: flex; align-items: center; gap: 6px; min-width: 0; }
.turn-badge-dot { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stage-tools { display: flex; align-items: center; gap: 5px; }

.btn-tool { position: relative; padding: 5px 10px; border-radius: 8px; border: 1px solid #cbd5e1; background: #f8fafc; color: #0f172a; font-family: inherit; font-size: clamp(10px, 1.15dvh, 11.5px); font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: all 0.14s; }
.btn-tool:hover:not(:disabled) { background: #0f172a; color: #fff; border-color: #0f172a; }
.btn-tool:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-tool-trade:hover:not(:disabled) { background: #6d28d9; border-color: #6d28d9; }
.btn-tool-danger { background: #fee2e2; border-color: #ef4444; color: #991b1b; }
.btn-tool-danger:hover:not(:disabled) { background: #dc2626; color: #fff; }
.btn-notif-dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #16a34a; border: 1.5px solid #fff; box-shadow: 0 0 6px #16a34a; }

.prompt-banner { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; text-align: left; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12); }
.prompt-icon { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.prompt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.prompt-title { font-size: clamp(10px, 1.2dvh, 11.5px); font-weight: 800; letter-spacing: 0.3px; line-height: 1.2; }
.prompt-desc { font-size: clamp(9.5px, 1.1dvh, 11px); font-weight: 600; line-height: 1.25; opacity: 0.92; }
.prompt-banner.mode-parking { background: linear-gradient(135deg, #0f172a, #1e293b); border: 1.5px solid #38bdf8; color: #f8fafc; }
.prompt-banner.mode-parking .prompt-icon { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.prompt-banner.mode-parking .prompt-title { color: #7dd3fc; }
.prompt-banner.mode-card { background: #fffbeb; border: 1.5px solid #f59e0b; color: #78350f; }
.prompt-banner.mode-card .prompt-icon { background: #fef3c7; color: #d97706; }
.prompt-banner.mode-debt { background: #fef2f2; border: 1.5px solid #ef4444; color: #991b1b; }
.prompt-banner.mode-debt .prompt-icon { background: #fee2e2; color: #dc2626; }

.dice-hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dice-box { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.die { width: clamp(36px, 5dvh, 48px); height: clamp(36px, 5dvh, 48px); background: linear-gradient(145deg, #ffffff, #f1f5f9); border: 2px solid #0f172a; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: clamp(22px, 3.4dvh, 33px); color: #0f172a; box-shadow: 0 3px 0 #0f172a; }
@keyframes diceTumble { 0% { transform: rotate(0deg) scale(1); } 25% { transform: rotate(-16deg) scale(1.1) translateY(-3px); } 50% { transform: rotate(16deg) scale(0.95) translateY(2px); } 75% { transform: rotate(-10deg) scale(1.06) translateY(-2px); } 100% { transform: rotate(0deg) scale(1); } }
.die.rolling { animation: diceTumble 0.16s infinite; background: #fef3c7; color: #b45309; }
.die.is-double { border-color: #d97706; color: #b45309; box-shadow: 0 3px 0 #b45309, 0 0 12px rgba(245, 158, 11, 0.45); }

.power-gauge-wrap { flex: 1; display: flex; flex-direction: column; gap: 3px; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 10px; padding: 5px 8px; transition: border-color 0.15s, box-shadow 0.15s; }
.power-gauge-wrap.is-charging { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22); }
.power-header { display: flex; justify-content: space-between; align-items: center; font-size: clamp(8.5px, 1dvh, 10.5px); font-weight: 800; color: #475569; }
.power-label { color: #0f172a; }
.power-track { position: relative; width: 100%; height: 10px; background: #cbd5e1; border-radius: 999px; overflow: hidden; }
.power-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #22c55e 0%, #eab308 55%, #ef4444 100%); transition: width 0.03s linear; }
.power-divider { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.85); }
.power-zones { display: grid; grid-template-columns: 34% 34% 32%; font-size: clamp(7.5px, 0.92dvh, 9.5px); font-weight: 800; color: #64748b; text-align: center; }

.tactical-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.btn-tac { padding: 6px 8px; border-radius: 9px; border: 1.5px solid #cbd5e1; background: #f8fafc; color: #334155; font-family: inherit; font-size: clamp(9.5px, 1.15dvh, 11.5px); font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: all 0.14s ease; }
.btn-tac:hover:not(:disabled) { border-color: #2563eb; color: #1d4ed8; }
.btn-tac.active { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-color: #1e40af; color: #ffffff; box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35); }
.btn-tac.tac-reverse.active { background: linear-gradient(135deg, #9333ea, #6d28d9); border-color: #5b21b6; color: #ffffff; box-shadow: 0 3px 10px rgba(147, 51, 234, 0.35); }
.btn-tac:disabled { opacity: 0.38; cursor: not-allowed; }
.tac-count { font-size: clamp(8.5px, 1dvh, 10px); font-weight: 900; padding: 1px 5px; border-radius: 999px; background: rgba(15, 23, 42, 0.12); }
.btn-tac.active .tac-count { background: rgba(255, 255, 255, 0.25); color: #ffffff; }

.action-buttons { display: flex; gap: 8px; }
.btn-action { flex: 1; padding: 8.5px 12px; border-radius: 10px; border: 2px solid #0f172a; font-weight: 800; font-family: inherit; font-size: clamp(10.5px, 1.28dvh, 12.5px); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 3px 0 #0f172a; touch-action: none; user-select: none; transition: transform 0.1s, filter 0.15s; }
.btn-action:hover:not(:disabled) { filter: brightness(1.06); }
.btn-action:active:not(:disabled), .btn-action.is-holding { transform: translateY(2px); box-shadow: 0 1px 0 #0f172a; }
.btn-action:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn-roll { flex: 1.5; background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; }
.btn-secondary { flex: 1; background: #e2e8f0; color: #0f172a; }
.btn-warn { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.btn-info { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; }

.jail-panel { background: #fef2f2; border: 1.5px solid #fca5a5; border-radius: 10px; padding: 8px; }
.jail-notice { font-size: 11px; font-weight: 800; color: #991b1b; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* Penyesuaian Dice Stage saat berada di dalam Kokpit Kanan (HP Landscape) */
.cockpit-dice-slot .dice-stage { background: #0b1120; border: 1.5px solid #334155; color: #f8fafc; padding: 9px 11px; gap: 7px; box-shadow: none; border-radius: 12px; }
.cockpit-dice-slot .stage-top-bar { border-bottom-color: #1e293b; padding-bottom: 6px; }
.cockpit-dice-slot .turn-indicator { color: #f8fafc; font-size: 12px; }
.cockpit-dice-slot .btn-tool { background: #1e293b; border-color: #334155; color: #f8fafc; font-size: 11px; padding: 5px 9px; }
.cockpit-dice-slot .power-gauge-wrap { background: #111827; border-color: #334155; }
.cockpit-dice-slot .power-header { color: #94a3b8; font-size: 10px; }
.cockpit-dice-slot .power-label { color: #fbbf24; }
.cockpit-dice-slot .power-track { background: #334155; height: 10px; }
.cockpit-dice-slot .power-zones { color: #94a3b8; font-size: 9.5px; }
.cockpit-dice-slot .die { width: 42px; height: 42px; font-size: 27px; border-color: #334155; box-shadow: 0 3px 0 #020617; }
.cockpit-dice-slot .btn-tac { background: #1e293b; border-color: #334155; color: #e2e8f0; font-size: 11px; padding: 7px 6px; }
.cockpit-dice-slot .tac-count { background: rgba(255, 255, 255, 0.14); color: #e2e8f0; }
.cockpit-dice-slot .btn-action { padding: 10px 10px; font-size: 12.5px; border-color: #020617; box-shadow: 0 3px 0 #020617; }
.cockpit-dice-slot .jail-panel { background: rgba(153, 27, 27, 0.25); border-color: #ef4444; }
.cockpit-dice-slot .jail-notice { color: #fca5a5; }