/**
 * Noos Freehold — game styles (assets/css/games/freehold.css). Card faces live in assets/css/cards.css.
 */
:root {
    --gap: 10px;
    --pad: 10px;
    --card-w: calc((min(100vw, 900px) - 2 * var(--pad) - 7 * var(--gap)) / 8);
    --card-h: calc(var(--card-w) * 1.4);
    --stack-gap: calc(var(--card-h) * 0.26);
    --gold-foil: #c5a059;
    --slate: #334155;
    --accent-orange: #b45309;
}
body { margin: 0; padding: 0; background: #f1f5f9; font-family: 'Quicksand', sans-serif; min-height: 100vh; overflow-x: hidden; }

.meta-bar { max-width: 900px; margin: 12px auto 6px auto; padding: 0 var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 10px; box-sizing: border-box; flex-wrap: wrap; }
.actions-group { display: flex; gap: 8px; flex-wrap: wrap; }
.stats-box { display: flex; gap: 12px; background: white; padding: 6px 12px; border-radius: 12px; border: 1px solid #e2e8f0; font-weight: 700; color: var(--slate); font-size: 0.85rem; }
.btn-action { padding: 6px 12px; background: white; border: 1px solid #e2e8f0; border-radius: 20px; color: var(--slate); font-weight: 600; cursor: pointer; transition: all 0.2s; font-size: 0.8rem; white-space: nowrap; font-family: inherit; }
.btn-action:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.btn-action:disabled { opacity: 0.4; cursor: not-allowed; border-color: #e2e8f0; color: #94a3b8; }

.board-container { max-width: 900px; margin: 0 auto; padding: 0 var(--pad) 40px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
.top-zones, .tableau-zones { display: grid; grid-template-columns: repeat(8, var(--card-w)); gap: var(--gap); justify-content: center; }
.tableau-zones { min-height: 420px; align-items: start; }

.zone-slot {
    width: var(--card-w); height: var(--card-h); border-radius: 8px; position: relative; box-sizing: border-box; cursor: pointer;
}
.zone-slot.freehold { border: 2px dashed #94a3b8; background: rgba(226, 232, 240, 0.4); }
.zone-slot.foundation { border: 2px dashed var(--gold-foil); background: rgba(253, 252, 248, 0.6); }
.zone-slot::before {
    content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 0.55rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; text-align: center; pointer-events: none;
}
.zone-slot .suit-ghost { position: absolute; inset: 22%; opacity: .22; pointer-events: none; }
.zone-slot .noos-card, .tableau-col .noos-card { position: absolute; left: 0; width: var(--card-w); height: var(--card-h); cursor: pointer; user-select: none; -webkit-user-select: none; }
.zone-slot .noos-card { top: 0; }
.tableau-col { position: relative; width: var(--card-w); min-height: var(--card-h); border-radius: 8px; }
.tableau-col.empty { border: 2px dashed rgba(148,163,184,.35); box-sizing: border-box; }

.noos-card.selected-card { outline: 3px solid #10b981; border-radius: 8px; box-shadow: 0 0 12px rgba(16,185,129,.7); }
.noos-card.child-selected { outline: 3px solid #34d399; border-radius: 8px; }
.zone-slot.drop-ok, .tableau-col.drop-ok { box-shadow: 0 0 0 3px rgba(16,185,129,.45); }

@media (max-width: 640px) {
    :root { --gap: 5px; --pad: 5px; --stack-gap: calc(var(--card-h) * 0.3); }
    .meta-bar { margin: 6px auto; }
    .stats-box { padding: 5px 8px; font-size: .75rem; gap: 8px; }
    .btn-action { padding: 5px 10px; font-size: .75rem; }
    .zone-slot::before { font-size: .42rem; letter-spacing: 0; }
    .board-container { gap: 10px; }
}
