/* ================================================
   PIRATE TREASURE HUNT — LEVITA STUDIOS
   ================================================ */

:root {
    --bg-dark: #0a0e1a;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --gold: #d4a028;
    --gold-light: #f0c850;
    --gold-dark: #a67c00;
    --parchment: #e8d5b7;
    --parchment-dark: #c4a882;
    --navy: #0c1929;
    --navy-light: #1a2d44;
    --red: #c0392b;
    --red-light: #e74c3c;
    --green: #27ae60;
    --green-light: #2ecc71;
    --blue: #2980b9;
    --blue-light: #5dade2;
    --purple: #8e44ad;
    --storm-gray: #636e72;
    --text-primary: #f0e6d3;
    --text-secondary: #a09080;
    --text-muted: #6b5b4b;
    --border: #2a3444;
    --border-gold: #6b5a20;
    --cell-size: 52px;
    --cell-gap: 2px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 0 20px rgba(212, 160, 40, 0.3);
    --transition: 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(12, 25, 41, 0.8) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 20%, rgba(26, 45, 68, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(10, 14, 26, 0.9) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ============ BUTTONS ============ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.3px;
}

.btn--gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1a1000;
    border-color: var(--gold);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--gold:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: var(--shadow-gold); transform: translateY(-1px); }
.btn--gold:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--outline { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-light); }

.btn--danger { background: rgba(192, 57, 43, 0.2); color: var(--red-light); border-color: var(--red); }
.btn--danger:hover { background: rgba(192, 57, 43, 0.4); }

.btn--small { padding: 6px 12px; font-size: 12px; }
.btn--large { padding: 16px 40px; font-size: 18px; font-family: 'Pirata One', 'Georgia', 'Times New Roman', serif; letter-spacing: 1px; }

/* ============ ROLE BUTTONS ============ */

.btn--role {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    width: 100%;
    text-align: center;
    transition: all var(--transition);
}

.btn--role:hover {
    border-color: var(--gold);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.role-icon { font-size: 36px; }
.role-label { font-size: 18px; font-weight: 700; font-family: 'Pirata One', 'Georgia', 'Times New Roman', serif; color: var(--gold); }
.role-desc { font-size: 12px; color: var(--text-muted); font-weight: 400; }

.role-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

/* ============ SCREENS ============ */

.screen { display: none; position: relative; z-index: 1; }
.screen.active { display: block; }

/* ============ SETUP / ENTRY ============ */

.setup-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.setup-logo { margin-bottom: 32px; }
.setup-logo--small { margin-bottom: 20px; }

.skull-icon {
    font-size: 72px;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}

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

.setup-title {
    font-family: 'Pirata One', 'Georgia', 'Times New Roman', serif;
    font-size: 42px;
    color: var(--gold-light);
    text-shadow: 0 2px 8px rgba(212, 160, 40, 0.4);
    line-height: 1.1;
}

.setup-title--small { font-size: 28px; }

.setup-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.setup-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.setup-card h2 {
    font-family: 'Pirata One', 'Georgia', 'Times New Roman', serif;
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 16px;
    text-align: center;
}

/* Form groups */
.form-group { margin-bottom: 12px; }

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus { border-color: var(--gold); }

.error-msg {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid var(--red);
    border-radius: var(--radius);
    color: var(--red-light);
    font-size: 13px;
    text-align: center;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span { padding: 0 12px; }

/* Room code banner */
.room-code-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(212, 160, 40, 0.1);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.room-code-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.room-code-value {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 3px;
}

/* Studio info */
.studio-info {
    padding: 12px;
    background: var(--navy);
    border-radius: var(--radius);
    margin-bottom: 12px;
    text-align: center;
}

.studio-info-label { color: var(--text-muted); font-size: 12px; }
.studio-info-value { color: var(--gold); font-weight: 700; margin-left: 6px; }

/* Waiting */
.waiting-spinner {
    font-size: 48px;
    animation: float 2s ease-in-out infinite;
    margin-bottom: 12px;
}

/* Player list */
.setup-player-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.setup-player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.setup-player-item .player-num { color: var(--gold); font-weight: 700; margin-right: 10px; min-width: 24px; }
.setup-player-item .player-name { flex: 1; font-weight: 500; }
.setup-player-item .remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    transition: color var(--transition);
}
.setup-player-item .remove-btn:hover { color: var(--red-light); }

.add-player-row { display: flex; gap: 8px; }
.add-player-row input {
    flex: 1;
    padding: 10px 14px;
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}
.add-player-row input::placeholder { color: var(--text-muted); }
.add-player-row input:focus { border-color: var(--gold); }

.setup-hint { color: var(--text-muted); font-size: 12px; text-align: center; margin-top: 12px; }

.load-notice {
    margin-top: 20px;
    padding: 16px;
    background: rgba(212, 160, 40, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
}
.load-notice p { color: var(--text-secondary); margin-bottom: 10px; font-size: 14px; }

/* ============ GAME HEADER ============ */

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left { display: flex; align-items: center; gap: 10px; }
.header-logo { font-size: 24px; }
.header-title { font-family: 'Pirata One', 'Georgia', 'Times New Roman', serif; font-size: 20px; color: var(--gold); }

.header-room-code {
    padding: 3px 10px;
    background: rgba(212, 160, 40, 0.15);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.header-center { display: flex; gap: 24px; }

.stat { display: flex; flex-direction: column; align-items: center; }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-value { font-size: 16px; font-weight: 700; color: var(--gold-light); }

.header-right { display: flex; gap: 8px; }

/* Role visibility */
.leader-only { display: none; }
.player-only { display: none; }
body.role-leader .leader-only { display: block; }
body.role-leader .player-only { display: none !important; }
body.role-player .player-only { display: block; }
body.role-player .leader-only { display: none !important; }
/* For inline/flex elements */
body.role-leader button.leader-only,
body.role-leader .header-right .leader-only { display: inline-flex; }

/* ============ GAME MAIN LAYOUT ============ */

.game-main {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 0;
    min-height: calc(100vh - 57px);
}

/* ============ SIDEBARS ============ */

.sidebar {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: calc(100vh - 57px);
}

.sidebar--left { background: rgba(17, 24, 39, 0.7); border-right: 1px solid var(--border); }
.sidebar--right { background: rgba(17, 24, 39, 0.7); border-left: 1px solid var(--border); }

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.panel-title {
    font-family: 'Pirata One', 'Georgia', 'Times New Roman', serif;
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* ============ SHOT MANAGEMENT (Leader) ============ */

.shot-management-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shot-player-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.shot-player-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shot-count {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-light);
    min-width: 32px;
    text-align: center;
}

.shot-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.shot-btn--add {
    border-color: var(--green);
    color: var(--green-light);
}
.shot-btn--add:hover {
    background: rgba(39, 174, 96, 0.2);
}

.shot-btn--remove {
    border-color: var(--red);
    color: var(--red-light);
}
.shot-btn--remove:hover {
    background: rgba(192, 57, 43, 0.2);
}

/* ============ MY STATUS (Player) ============ */

.my-status-panel { text-align: center; }

.shots-counter {
    padding: 16px;
    margin: 8px 0;
}

.shots-counter-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1;
}

.shots-counter-number.has-shots {
    color: var(--green-light);
    text-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.shots-counter-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.my-coins-display {
    padding: 8px;
    margin-bottom: 8px;
}

.my-coins-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-light);
}

.my-coins-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 4px;
}

/* ============ NO SHOTS OVERLAY ============ */

.no-shots-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(2px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.no-shots-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.no-shots-icon { font-size: 36px; }

.no-shots-hint {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ============ PLAYER SELECT ============ */

.player-select {
    width: 100%;
    padding: 10px 12px;
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    margin-bottom: 8px;
}
.player-select:focus { border-color: var(--gold); }

.status-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; justify-content: center; }

.badge { padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge--storm { background: rgba(99, 110, 114, 0.3); color: var(--storm-gray); border: 1px solid var(--storm-gray); }
.badge--shield { background: rgba(39, 174, 96, 0.2); color: var(--green-light); border: 1px solid var(--green); }
.badge--extra-shot { background: rgba(41, 128, 185, 0.2); color: var(--blue-light); border: 1px solid var(--blue); }

/* ============ LEADERBOARD ============ */

.leaderboard-panel { flex: 1; }

.leaderboard-entry {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--radius);
    margin-bottom: 4px;
    transition: background var(--transition);
}
.leaderboard-entry:hover { background: var(--bg-card-hover); }
.leaderboard-entry.top-1 { background: rgba(212, 160, 40, 0.15); border: 1px solid var(--border-gold); }

.lb-rank { font-weight: 700; min-width: 28px; color: var(--text-muted); font-size: 14px; }
.leaderboard-entry.top-1 .lb-rank { color: var(--gold); }
.lb-name { flex: 1; font-weight: 500; font-size: 14px; }
.lb-coins { font-weight: 700; color: var(--gold-light); font-size: 14px; }
.lb-shots { font-size: 11px; color: var(--text-muted); margin-left: 8px; min-width: 50px; text-align: right; }

/* ============ GAME LOG ============ */

.log-panel { flex: 1; display: flex; flex-direction: column; }

.game-log { flex: 1; overflow-y: auto; max-height: 400px; display: flex; flex-direction: column; gap: 4px; }

.log-entry {
    padding: 8px 10px;
    border-radius: var(--radius);
    font-size: 12px;
    line-height: 1.4;
    background: var(--navy);
    border-left: 3px solid var(--border);
    animation: logSlide 0.3s ease;
}

@keyframes logSlide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.log-entry--ship { border-left-color: var(--green); }
.log-entry--chest { border-left-color: var(--gold); }
.log-entry--black-mark { border-left-color: var(--red); }
.log-entry--storm { border-left-color: var(--storm-gray); }
.log-entry--map { border-left-color: var(--purple); }
.log-entry--secret { border-left-color: var(--blue); }
.log-entry--water { border-left-color: var(--blue-light); }

.log-time { color: var(--text-muted); font-size: 10px; }
.log-player { color: var(--gold); font-weight: 600; }

/* ============ LEGEND ============ */

.legend-items { display: flex; flex-direction: column; gap: 6px; }

.legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }

.legend-icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; font-size: 16px;
}

.legend-icon--water { background: rgba(41, 128, 185, 0.2); }
.legend-icon--ship { background: rgba(39, 174, 96, 0.2); }
.legend-icon--chest { background: rgba(212, 160, 40, 0.2); }
.legend-icon--black-mark { background: rgba(192, 57, 43, 0.2); }
.legend-icon--storm { background: rgba(99, 110, 114, 0.2); }
.legend-icon--map { background: rgba(142, 68, 173, 0.2); }
.legend-icon--secret { background: rgba(41, 128, 185, 0.2); }

/* ============ BOARD ============ */

.board-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow: auto;
    position: relative;
}

.board-container {
    display: grid;
    grid-template-columns: 36px repeat(10, var(--cell-size));
    grid-template-rows: 36px repeat(10, var(--cell-size));
    gap: var(--cell-gap);
    user-select: none;
}

.board-corner { /* empty */ }
.board-col-labels, .board-row-labels { display: contents; }

.board-label {
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: var(--text-muted);
}

.board { display: contents; }

.cell {
    width: var(--cell-size); height: var(--cell-size);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    border: 1px solid var(--border);
    background: var(--navy-light);
}

.cell:hover:not(.cell--revealed):not(.cell--disabled) {
    background: #243651;
    border-color: var(--gold);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 0 12px rgba(212, 160, 40, 0.3);
}

.cell--disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cell--revealed { cursor: default; transform: none; }
.cell--revealed.cell--water { background: rgba(41, 128, 185, 0.15); border-color: rgba(41, 128, 185, 0.3); }
.cell--revealed.cell--ship { background: rgba(39, 174, 96, 0.2); border-color: var(--green); }
.cell--revealed.cell--ship-sunk { background: rgba(192, 57, 43, 0.2); border-color: var(--red); }
.cell--revealed.cell--black-mark { background: rgba(192, 57, 43, 0.2); border-color: var(--red); }
.cell--revealed.cell--storm { background: rgba(99, 110, 114, 0.2); border-color: var(--storm-gray); }
.cell--revealed.cell--treasure-chest { background: rgba(212, 160, 40, 0.2); border-color: var(--gold); }
.cell--revealed.cell--treasure-map { background: rgba(142, 68, 173, 0.2); border-color: var(--purple); }
.cell--revealed.cell--secret-mission { background: rgba(41, 128, 185, 0.2); border-color: var(--blue); }

.cell--admin-peek { opacity: 0.7; }
.cell--admin-peek::after { content: ''; position: absolute; inset: 0; border-radius: 6px; border: 1px dashed var(--text-muted); }

@keyframes cellReveal {
    0% { transform: scale(0.8) rotateY(90deg); opacity: 0; }
    50% { transform: scale(1.1) rotateY(0deg); opacity: 1; }
    100% { transform: scale(1) rotateY(0deg); opacity: 1; }
}
.cell--just-revealed { animation: cellReveal 0.5s ease forwards; }

.cell:not(.cell--revealed):not(.cell--admin-peek)::before {
    content: '~';
    color: rgba(41, 128, 185, 0.3);
    font-size: 18px; font-weight: 700;
    animation: wave 2s ease-in-out infinite;
    animation-delay: var(--wave-delay, 0s);
}

@keyframes wave {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.6; transform: translateY(-2px); }
}

/* ============ MODALS ============ */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.3s ease;
}
.modal--small { max-width: 360px; }

@keyframes modalPop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-icon { font-size: 56px; margin-bottom: 12px; }
.modal-title { font-family: 'Pirata One', 'Georgia', 'Times New Roman', serif; font-size: 26px; color: var(--gold); margin-bottom: 12px; }

.modal-body { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.modal-body strong { color: var(--gold-light); }
.modal-body .coins-change { font-size: 24px; font-weight: 700; margin: 8px 0; }
.modal-body .coins-change--positive { color: var(--green-light); }
.modal-body .coins-change--negative { color: var(--red-light); }

.modal-body .task-text {
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 12px 0;
    text-align: left;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}
.modal-body .task-deadline { color: var(--text-muted); font-size: 12px; margin-top: 4px; }

.modal-body .ship-progress { display: flex; gap: 6px; justify-content: center; margin: 12px 0; }
.ship-deck { width: 36px; height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.ship-deck--hit { background: rgba(192, 57, 43, 0.3); border: 1px solid var(--red); }
.ship-deck--intact { background: var(--navy); border: 1px solid var(--border); }

.modal-actions { display: flex; gap: 8px; justify-content: center; }

.steal-player-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }

.steal-player-btn {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 10px 14px;
    background: var(--navy); border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text-primary); font-family: inherit; font-size: 14px;
    cursor: pointer; transition: all var(--transition);
}
.steal-player-btn:hover { border-color: var(--gold); background: var(--navy-light); }
.steal-player-coins { color: var(--gold); font-weight: 600; }

/* ============ RESPONSIVE ============ */

@media (max-width: 1200px) {
    .game-main { grid-template-columns: 240px 1fr 240px; }
    :root { --cell-size: 46px; }
}

@media (max-width: 1000px) {
    .game-main { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
    .sidebar--left, .sidebar--right { border: none; border-bottom: 1px solid var(--border); max-height: none; }
    .sidebar--left { flex-direction: row; flex-wrap: wrap; }
    .sidebar--left .panel { flex: 1; min-width: 200px; }
    .board-wrapper { overflow-x: auto; }
    .header-center { display: none; }
}

@media (max-width: 600px) {
    :root { --cell-size: 36px; }
    .setup-title { font-size: 30px; }
    .game-header { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
    .header-title { font-size: 16px; }
    .room-code-value { font-size: 24px; }
    .board-label { font-size: 11px; }
    .cell { font-size: 18px; }
}
