:root { --bg-body: #0f172a; --bg-panel: rgba(30, 41, 59, 0.55); --bg-input: rgba(15, 23, 42, 0.6); --border-subtle: rgba(255, 255, 255, 0.12); --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.08); --border-focus: #10b981; --text-main: #f8fafc; --text-muted: #94a3b8; --primary: #10b981; --primary-hover: #059669; --secondary: rgba(255, 255, 255, 0.1); --secondary-hover: rgba(255, 255, 255, 0.2); --board-light: #ebecd0; --board-dark: #739552; --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; } * { box-sizing: border-box; margin: 0; padding: 0; } body { background-color: var(--bg-body); /* Замените на свою картинку-фон */ background-image: url('https://images.unsplash.com/photo-1529699211952-734e80c4d42b?q=80&w=2000&auto=format&fit=crop'); background-size: cover; background-position: center; background-attachment: fixed; color: var(--text-main); font-family: 'Inter', sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; padding: 20px; min-height: 100vh; } .hidden { display: none !important; } .page-shell { max-width: 1280px; margin: 0 auto; } .main-header { margin-bottom: 24px; text-align: left; } .main-header h1 { font-size: 28px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 12px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); } .chess-icon { color: var(--primary); font-size: 32px; } .app-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; } .panel { background: var(--bg-panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--glass-shadow); } .panel-head { margin-bottom: 20px; } .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; } h3 { font-size: 18px; font-weight: 600; color: #fff; } h2 { font-size: 20px; font-weight: 700; } button { font-family: inherit; cursor: pointer; border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; transition: all 0.2s ease; display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; backdrop-filter: blur(4px); } .primary-button { background-color: var(--primary); color: #fff; width: 100%; padding: 12px; font-size: 15px; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); } .primary-button:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); } .secondary-button { background-color: var(--secondary); border: 1px solid var(--border-subtle); color: #fff; } .secondary-button:hover { background-color: var(--secondary-hover); } .ghost-button { background: transparent; color: #ff5c5c; border: 1px solid rgba(255, 92, 92, 0.5); width: 100%; } .ghost-button:hover { background: rgba(255, 92, 92, 0.15); color: #ff7676; } .icon-button { background-color: var(--secondary); border: 1px solid var(--border-subtle); color: #fff; padding: 10px; } .icon-button:hover { background-color: var(--secondary-hover); } .mode-switcher { display: flex; background: rgba(0, 0, 0, 0.2); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 20px; border: 1px solid var(--border-subtle); } .mode-button { flex: 1; background: transparent; color: var(--text-muted); padding: 8px; border: none; } .mode-button.active { background: var(--secondary-hover); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2); } .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; } .field span { font-size: 13px; font-weight: 500; color: var(--text-muted); } .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } input[type="text"], select { width: 100%; background: var(--bg-input); border: 1px solid var(--border-subtle); color: #fff; padding: 12px; border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; outline: none; transition: all 0.2s; } input[type="text"]:focus, select:focus { border-color: var(--border-focus); background: rgba(15, 23, 42, 0.8); } input::placeholder { color: rgba(255,255,255,0.3); } .join-row { display: flex; gap: 8px; } .join-row input { flex: 1; } .muted-copy { font-size: 12px; color: var(--text-muted); margin-top: 12px; text-align: center; } .board-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-subtle); } .toolbar-actions { display: flex; gap: 8px; } .board-stage { width: 100%; max-width: 640px; margin: 0 auto; background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(8px); padding: 12px; border-radius: var(--radius-md); box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); border: 1px solid var(--border-subtle); } .board { width: 100%; aspect-ratio: 1 / 1; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); border: 4px solid rgba(15, 23, 42, 0.8); border-radius: var(--radius-sm); overflow: hidden; } .board > div:nth-child(even) { background-color: var(--board-dark); } .board > div:nth-child(odd) { background-color: var(--board-light); } .board > div:nth-child(16n+9), .board > div:nth-child(16n+11), .board > div:nth-child(16n+13), .board > div:nth-child(16n+15), .board > div:nth-child(16n+2), .board > div:nth-child(16n+4), .board > div:nth-child(16n+6), .board > div:nth-child(16n+8) { background-color: var(--board-dark); } .board > div:nth-child(16n+1), .board > div:nth-child(16n+3), .board > div:nth-child(16n+5), .board > div:nth-child(16n+7), .board > div:nth-child(16n+10), .board > div:nth-child(16n+12), .board > div:nth-child(16n+14), .board > div:nth-child(16n+16) { background-color: var(--board-light); } .status-strip { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding: 16px; background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); } .status-message { font-weight: 500; font-size: 15px; } .status-meta { display: flex; gap: 8px; } .status-chip { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; } .turn-white { background: rgba(255, 255, 255, 0.9); color: #000; } .turn-black { background: rgba(0, 0, 0, 0.8); color: #fff; border: 1px solid var(--border-subtle); } .connection-solo { background: var(--secondary); color: #fff; } .connection-party { background: var(--primary); color: #fff; } .roster-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; } .roster-card { background: rgba(0, 0, 0, 0.2); padding: 12px 16px; border-radius: var(--radius-sm); display: flex; flex-direction: row; justify-content: space-between; align-items: center; border: 1px solid var(--border-subtle); } .roster-card.white-player { border-left: 4px solid rgba(255,255,255,0.8); } .roster-card.black-player { border-left: 4px solid rgba(0,0,0,0.8); } .roster-info { display: flex; flex-direction: column; gap: 2px; } .roster-role { font-size: 11px; text-transform: uppercase; color: var(--text-muted); } .roster-card strong { font-size: 14px; } /* ЧАСЫ */ .player-clock { font-family: monospace, sans-serif; font-size: 20px; font-weight: 700; background: rgba(0, 0, 0, 0.4); color: var(--text-main); padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); letter-spacing: 1px; transition: all 0.3s ease; min-width: 80px; text-align: center; } .player-clock.active { background: rgba(16, 185, 129, 0.2); border-color: var(--primary); color: var(--primary); box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); } .player-clock.danger { background: rgba(239, 68, 68, 0.2); border-color: #ef4444; color: #ef4444; animation: pulse-danger 1s infinite; } @keyframes pulse-danger { 0% { box-shadow: 0 0 0 rgba(239, 68, 68, 0.4); } 50% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.8); } 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); } } /* ЗРИТЕЛИ */ .spectator-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .badge { background: var(--bg-input); border: 1px solid var(--border-subtle); padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; color: var(--text-muted); } .spectator-list { list-style: none; font-size: 13px; color: var(--text-muted); } .empty-state { font-style: italic; opacity: 0.7; } .captured-grid { display: flex; flex-direction: column; gap: 16px; } .captured-box { background: rgba(0, 0, 0, 0.2); padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); } .captured-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; } .captured-row { min-height: 24px; display: flex; gap: 4px; font-size: 20px; } .move-history { list-style-position: inside; font-size: 14px; color: var(--text-muted); max-height: 200px; overflow-y: auto; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-subtle); padding: 12px; border-radius: var(--radius-sm); } .move-history li { padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); } .move-history li:last-child { border-bottom: none; color: #fff; font-weight: 500;} /* ФУТЕР И GITHUB */ .footer { text-align: center; margin-top: 40px; padding: 20px 0; display: flex; justify-content: center; align-items: center; } .github-link { display: inline-block; opacity: 0.6; transition: all 0.3s ease; } .github-link:hover { opacity: 1; transform: translateY(-3px) scale(1.05); filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.2)); } .github-icon { width: 32px; height: 32px; object-fit: contain; filter: invert(1); /* Делает черную иконку белой. Уберите, если иконка цветная. */ } .modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal-card { background: var(--bg-panel); backdrop-filter: blur(20px); padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); box-shadow: var(--glass-shadow); text-align: center; min-width: 300px; } .promotion-options { display: flex; gap: 16px; justify-content: center; margin-top: 24px; } .promotion-options button { font-size: 32px; padding: 16px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-subtle); } .promotion-options button:hover { background: var(--primary); border-color: var(--primary); } .toast-host { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; } @media (max-width: 960px) { .app-grid { grid-template-columns: 1fr; } .board-toolbar { flex-direction: column; gap: 16px; align-items: stretch; } .toolbar-actions { justify-content: stretch; } .toolbar-actions button { flex: 1; } }