/* Monopoly Online — board, lobby chrome and management panels */

.join-box, .lobby-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    max-width: 420px;
    margin: 20px auto;
    padding: 20px;
}

.join-box input, .lobby-box input {
    display: block;
    width: 90%;
    margin: 8px auto;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

.join-box button, .lobby-box button {
    width: 95%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #1b5e20;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
}

.join-divider { color: #999; margin: 10px 0; }
.join-error { color: #c62828; font-weight: bold; min-height: 20px; margin-top: 8px; }
.room-code-display { font-size: 40px; font-weight: bold; letter-spacing: 8px; color: #1b5e20; }
.lobby-box ul { list-style: none; padding: 0; font-size: 17px; }

/* Player strip */
.score-bar { display: flex; justify-content: center; gap: 8px; margin: 8px auto; flex-wrap: wrap; max-width: 900px; }

.player-chip {
    background: white;
    border: 3px solid transparent;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: bold;
    color: #555;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}

.player-chip.active { border-color: #f9a825; background: #fffde7; color: #333; }
.player-chip.bankrupt { opacity: 0.45; text-decoration: line-through; }
.player-chip .jail-tag { background: #ffe0b2; color: #6d4c00; border-radius: 999px; font-size: 10px; padding: 1px 6px; margin-left: 4px; }

.status-line { text-align: center; font-weight: bold; color: #444; min-height: 22px; margin: 6px 0; }

.action-bar { text-align: center; margin: 10px 0; min-height: 46px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

.action-btn {
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    background: #1b5e20;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.action-btn.secondary { background: #5d4037; }
.action-btn.danger { background: #c62828; }
.action-btn:disabled { opacity: 0.5; cursor: default; }

.event-log {
    max-width: 700px;
    margin: 8px auto;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    text-align: left;
    max-height: 90px;
    overflow-y: auto;
}

/* ===================== Board ===================== */

.board-wrap { max-width: 920px; margin: 10px auto; padding: 0 6px; }

.mono-board {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: repeat(11, 1fr);
    aspect-ratio: 1 / 1;
    background: #c8e6c9;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    gap: 1px;
    padding: 1px;
    box-sizing: border-box;
}

.mono-sq {
    background: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-size: 9px;
    line-height: 1.15;
    padding: 3px 2px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    cursor: pointer;
}

.mono-sq:hover { background: #f1f8e9; }
.mono-corner { font-size: 11px; align-items: center; justify-content: center; text-align: center; font-weight: bold; }

.mono-colorbar { height: 15%; width: 100%; flex-shrink: 0; }
.mono-sq-name { font-weight: bold; color: #222; overflow: hidden; margin-top: 1px; }
.mono-sq-price { color: #555; font-size: 0.9em; }

.mono-owner-bar { position: absolute; bottom: 0; left: 0; width: 100%; height: 5px; }
.mono-owner-bar.mono-mortgaged { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.4) 0, rgba(0,0,0,0.4) 2px, transparent 2px, transparent 4px) !important; }
.mono-houses { position: absolute; top: 2px; right: 2px; font-size: 10px; }

.mono-tokens { position: absolute; bottom: 6px; left: 2px; display: flex; gap: 1px; flex-wrap: wrap; }
.mono-token { font-size: 12px; }

.mono-center {
    grid-row: 2 / 11;
    grid-column: 2 / 11;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e8f5e9;
    gap: 6px;
}

.mono-dice { display: flex; gap: 6px; }
.mono-die {
    width: 34px; height: 34px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: bold; color: #222;
}

.mono-center-title { font-weight: bold; color: #1b5e20; font-size: 13px; }

@media (min-width: 900px) {
    .board-wrap { max-width: 980px; }
}

@media (max-width: 700px) {
    .mono-sq { font-size: 7px; padding: 2px 1px; }
    .mono-corner { font-size: 8.5px; }
    .mono-houses { font-size: 8px; }
    .mono-token { font-size: 10px; }
    .mono-die { width: 26px; height: 26px; font-size: 14px; }
    .player-chip { font-size: 11px; padding: 4px 9px; }
    .action-btn { font-size: 13px; padding: 9px 14px; }
}

/* ===================== Manage / trade panel ===================== */

.manage-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.manage-tab { flex: 1; padding: 8px; border: none; border-radius: 8px; background: #eee; font-weight: bold; cursor: pointer; }
.manage-tab.active { background: #1b5e20; color: white; }

.property-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.property-row .prop-swatch { width: 10px; height: 24px; border-radius: 2px; flex-shrink: 0; }
.property-row .prop-name { flex: 1; }
.property-row button { padding: 5px 8px; font-size: 11px; border: none; border-radius: 6px; background: #1b5e20; color: white; cursor: pointer; }
.property-row button:disabled { opacity: 0.4; cursor: default; }
.property-row button.mortgage-btn { background: #5d4037; }

.trade-columns { display: flex; gap: 10px; }
.trade-columns > div { flex: 1; }
.trade-columns h4 { margin: 6px 0 4px; font-size: 13px; }
.trade-columns select, .trade-columns input { width: 100%; margin: 3px 0; padding: 6px; border-radius: 6px; border: 1px solid #ccc; box-sizing: border-box; }
.prop-checklist { max-height: 140px; overflow-y: auto; border: 1px solid #eee; border-radius: 6px; padding: 4px; }
.prop-checklist label { display: block; font-size: 12px; padding: 2px 0; }

.pending-trade { border: 1px solid #ddd; border-radius: 8px; padding: 8px; margin: 8px 0; font-size: 12px; }
.pending-trade button { margin-right: 6px; margin-top: 6px; padding: 6px 12px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; }
.pending-trade .accept-btn { background: #2e7d32; color: white; }
.pending-trade .reject-btn { background: #c62828; color: white; }

.property-card {
    text-align: center;
}
.property-card .pc-swatch { height: 30px; border-radius: 6px 6px 0 0; margin: -25px -25px 10px -25px; }
.property-card .pc-rents { font-size: 13px; text-align: left; margin: 10px 0; }
.property-card .pc-rents div { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px dashed #eee; }
