:root {
    --bg-dark: #0b0c10;
    --panel-bg: #14161f;
    --border-color: #242938;
    --cell-bg: #1d212c;
    --cell-hover: #2b3244;
    --accent: #3a75ff;
    --white-piece: #f2f5fb;
    --black-piece: #111217;
    --black-border: #6d788d;
    --core-glow: #00d2ff;
    --target-hint: rgba(0, 210, 255, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background: var(--bg-dark); color: #fff; display: flex; justify-content: center; min-height: 100vh; }
#app { width: 100%; max-width: 580px; display: flex; flex-direction: column; padding: 15px; }

header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); }
.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: 2px; }
.header-links { display: flex; align-items: center; gap: 12px; }
.header-links a { color: #8b94a5; text-decoration: none; font-size: 0.85rem; }
.header-links a:hover { color: var(--accent); }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }

.game-container { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.player-panel { display: flex; justify-content: space-between; align-items: center; background: var(--panel-bg); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border-color); }
.player-panel.active-turn { border-color: var(--accent); box-shadow: 0 0 10px rgba(58, 117, 255, 0.25); }
.player-info { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.player-badge { width: 14px; height: 14px; border-radius: 50%; }
.white-badge { background: var(--white-piece); }
.black-badge { background: var(--black-piece); border: 2px solid var(--black-border); }
.reserve-display { font-size: 0.8rem; color: #8b94a5; }
.clock { font-size: 1.25rem; font-family: monospace; font-weight: bold; background: #08090d; padding: 4px 10px; border-radius: 4px; border: 1px solid var(--border-color); }

/* 7x7 Gitter */
.board { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); gap: 4px; aspect-ratio: 1 / 1; background: #101218; padding: 6px; border-radius: 8px; border: 1px solid var(--border-color); }
.cell { background: var(--cell-bg); border-radius: 4px; display: flex; justify-content: center; align-items: center; cursor: pointer; position: relative; transition: background 0.15s; }
.cell:hover { background: var(--cell-hover); }
.cell.selected { background: #2f374a; outline: 2px solid var(--accent); }
.cell.valid-move::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--target-hint); pointer-events: none; }

/* Steine */
.piece { width: 78%; height: 78%; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 0.75rem; font-weight: bold; user-select: none; }
.piece.white { background: var(--white-piece); color: #000; box-shadow: 0 2px 5px rgba(255,255,255,0.2); }
.piece.black { background: var(--black-piece); color: #fff; border: 2px solid var(--black-border); box-shadow: 0 2px 5px rgba(0,0,0,0.6); }
.piece.core { border: 3px solid var(--core-glow); box-shadow: 0 0 10px var(--core-glow); }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex; justify-content: center; align-items: center; z-index: 100; }
.modal.hidden { display: none; }
.modal-content { background: var(--panel-bg); padding: 25px; border-radius: 12px; width: 90%; max-width: 400px; border: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 14px; }
.btn-group { display: flex; gap: 8px; }
.btn { flex: 1; padding: 9px; background: #1c202a; border: 1px solid var(--border-color); color: #fff; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 500; }
.btn.active, .btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-primary { background: #00b074; border-color: #00b074; font-weight: 700; margin-top: 5px; }
.btn-primary:hover { background: #02c784; }
.invite-box input { width: 100%; padding: 8px; background: #08090d; border: 1px solid var(--border-color); color: #fff; border-radius: 4px; margin: 6px 0; }
.action-hint { text-align: center; color: var(--core-glow); font-size: 0.85rem; margin-bottom: 4px; }
.status-bar { text-align: center; color: #8b94a5; font-size: 0.85rem; }
.hidden { display: none !important; }