1661 lines
24 KiB
CSS
1661 lines
24 KiB
CSS
:root {
|
|
--bg: #161512;
|
|
--surface: #21201d;
|
|
--surface-2: #2a2825;
|
|
--surface-hover: #33312d;
|
|
--border: #3a3833;
|
|
--text: #e6e4e0;
|
|
--muted: #9e9a92;
|
|
--accent: #629924;
|
|
--accent-hover: #73ad30;
|
|
--accent-text: #ffffff;
|
|
--danger: #c94040;
|
|
--danger-hover: #dd4e4e;
|
|
--warn: #d89b28;
|
|
--info: #3f87c9;
|
|
--sq-light: #f0d9b5;
|
|
--sq-dark: #b58863;
|
|
--sq-last: rgba(155, 199, 0, 0.42);
|
|
--sq-selected: rgba(20, 85, 30, 0.52);
|
|
--sq-premove: rgba(41, 121, 255, 0.45);
|
|
--sq-premove-selected: rgba(41, 121, 255, 0.52);
|
|
--coord-light: #9e7350;
|
|
--coord-dark: #f0d9b5;
|
|
}
|
|
|
|
[data-theme="light"] {
|
|
--bg: #edebe9;
|
|
--surface: #ffffff;
|
|
--surface-2: #f6f5f3;
|
|
--surface-hover: #eae8e4;
|
|
--border: #d0cdc7;
|
|
--text: #24221f;
|
|
--muted: #66625c;
|
|
--accent: #55881e;
|
|
--accent-hover: #629924;
|
|
--accent-text: #ffffff;
|
|
--danger: #bf3434;
|
|
--danger-hover: #d64444;
|
|
--warn: #c78316;
|
|
--info: #2d70b0;
|
|
}
|
|
|
|
[data-board="green"] {
|
|
--sq-light: #eeeed2;
|
|
--sq-dark: #769656;
|
|
--coord-light: #769656;
|
|
--coord-dark: #eeeed2;
|
|
}
|
|
|
|
[data-board="blue"] {
|
|
--sq-light: #dee3e6;
|
|
--sq-dark: #8ca2ad;
|
|
--coord-light: #6d8591;
|
|
--coord-dark: #eef2f5;
|
|
}
|
|
|
|
[data-board="mono"] {
|
|
--sq-light: #e4e4e4;
|
|
--sq-dark: #7c7c7c;
|
|
--coord-light: #626262;
|
|
--coord-dark: #ededed;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
font-size: 14px;
|
|
line-height: 1.45;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.mono {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
}
|
|
|
|
.small-text {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.center-text {
|
|
text-align: center;
|
|
}
|
|
|
|
/* Navbar */
|
|
#navbar {
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border);
|
|
position: relative;
|
|
z-index: 50;
|
|
}
|
|
|
|
.nav-inner {
|
|
max-width: 1240px;
|
|
margin: 0 auto;
|
|
padding: 0 12px;
|
|
min-height: 46px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.nav-brand {
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.3px;
|
|
padding: 8px 0;
|
|
margin-right: 16px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.nav-link {
|
|
padding: 12px 10px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
border-bottom: 2px solid transparent;
|
|
margin-right: 2px;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
.nav-link.active {
|
|
color: var(--text);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
|
|
.nav-badge {
|
|
display: inline-block;
|
|
margin-left: 5px;
|
|
padding: 1px 5px;
|
|
font-size: 11px;
|
|
line-height: 1.2;
|
|
background: var(--accent);
|
|
color: var(--accent-text);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.nav-resume {
|
|
margin-left: 8px;
|
|
padding: 4px 8px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
background: var(--warn);
|
|
color: #111;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.nav-right {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 6px 0;
|
|
}
|
|
|
|
.nav-right > * {
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.nav-settings-wrap {
|
|
position: relative;
|
|
}
|
|
|
|
.settings-popover {
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0;
|
|
margin-top: 6px;
|
|
width: 245px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 2px;
|
|
padding: 10px;
|
|
z-index: 80;
|
|
}
|
|
|
|
.settings-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.settings-row:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.settings-label {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.nav-user-link {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
padding: 4px 6px;
|
|
}
|
|
|
|
.nav-user-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Main container */
|
|
.main-content {
|
|
padding: 14px 12px 32px;
|
|
}
|
|
|
|
.page-container {
|
|
max-width: 1220px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.narrow-page {
|
|
max-width: 780px;
|
|
}
|
|
|
|
/* Cards */
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 2px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.card-header {
|
|
padding: 10px 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.card-title {
|
|
margin: 0;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.card-title-sm {
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.card-body {
|
|
padding: 14px;
|
|
}
|
|
|
|
.card-body.compact {
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.card-body.no-pad {
|
|
padding: 0;
|
|
}
|
|
|
|
.border-top {
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 7px 12px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
font-family: inherit;
|
|
color: var(--text);
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: 2px;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.btn:hover:not(:disabled) {
|
|
background: var(--surface-hover);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.45;
|
|
cursor: default;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: var(--accent-text);
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--danger);
|
|
border-color: var(--danger);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.btn-danger:hover:not(:disabled) {
|
|
background: var(--danger-hover);
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 5px 9px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-xs {
|
|
padding: 3px 7px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.btn-lg {
|
|
padding: 10px 16px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.btn-block {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.btn-icon {
|
|
padding: 5px 8px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.btn-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.btn-row > * {
|
|
margin-right: 6px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.btn-col > * {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.btn-col > *:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.btn-group {
|
|
display: inline-flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn-group > .btn {
|
|
margin-right: 3px;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
/* Inputs & Forms */
|
|
.input,
|
|
.select,
|
|
.textarea {
|
|
width: 100%;
|
|
padding: 7px 9px;
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
color: var(--text);
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.input-sm {
|
|
padding: 5px 7px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.select {
|
|
width: auto;
|
|
}
|
|
|
|
.textarea {
|
|
resize: vertical;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.field-label {
|
|
display: block;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
margin: 8px 0 4px;
|
|
}
|
|
|
|
.stack-form .input {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.stack-form .btn {
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.inline-inputs {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 6px 0 10px;
|
|
}
|
|
|
|
.inline-inputs > * {
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.inline-inputs .input {
|
|
width: 72px;
|
|
}
|
|
|
|
.options-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
/* Alerts & Toasts */
|
|
.alert {
|
|
padding: 9px 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 2px;
|
|
margin-bottom: 12px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.alert-error {
|
|
border-color: var(--danger);
|
|
background: rgba(201, 64, 64, 0.14);
|
|
}
|
|
|
|
.alert-info {
|
|
border-color: var(--info);
|
|
background: rgba(63, 135, 201, 0.14);
|
|
}
|
|
|
|
.resume-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.toast-container {
|
|
position: fixed;
|
|
top: 56px;
|
|
right: 12px;
|
|
z-index: 100;
|
|
width: 290px;
|
|
max-width: 90%;
|
|
}
|
|
|
|
.toast {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-left: 3px solid var(--info);
|
|
border-radius: 2px;
|
|
padding: 9px 11px;
|
|
margin-bottom: 8px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.toast-success {
|
|
border-left-color: var(--accent);
|
|
}
|
|
|
|
.toast-error {
|
|
border-left-color: var(--danger);
|
|
}
|
|
|
|
.toast-text {
|
|
margin-bottom: 6px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Auth */
|
|
.auth-wrap {
|
|
max-width: 400px;
|
|
margin: 24px auto;
|
|
}
|
|
|
|
.tab-bar {
|
|
display: flex;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.tab-btn {
|
|
flex: 1;
|
|
padding: 10px;
|
|
background: var(--surface-2);
|
|
color: var(--muted);
|
|
border: none;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
border-bottom: 2px solid var(--accent);
|
|
}
|
|
|
|
.small-note {
|
|
margin-top: 0;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Tables & Lists */
|
|
.data-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.data-table th,
|
|
.data-table td {
|
|
padding: 8px 12px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.data-table th {
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.4px;
|
|
color: var(--muted);
|
|
background: var(--surface-2);
|
|
}
|
|
|
|
.data-table tbody tr:hover {
|
|
background: var(--surface-hover);
|
|
}
|
|
|
|
.col-right {
|
|
text-align: right !important;
|
|
}
|
|
|
|
.col-right > .btn {
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.empty-state {
|
|
padding: 24px 14px;
|
|
text-align: center;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.user-link {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.user-link:hover {
|
|
text-decoration: underline;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.rating-chip {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Home / Lobby */
|
|
.hero-title {
|
|
margin: 0 0 8px;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.two-col-lobby,
|
|
.two-col-friends {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.lobby-card,
|
|
.two-col-friends > .card {
|
|
flex: 1 1 520px;
|
|
margin-right: 14px;
|
|
}
|
|
|
|
.side-col {
|
|
flex: 0 1 360px;
|
|
width: 100%;
|
|
}
|
|
|
|
.preset-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.preset-btn {
|
|
width: 23.5%;
|
|
margin: 0 1.5% 6px 0;
|
|
}
|
|
|
|
.invite-box {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.invite-box .input {
|
|
flex: 1;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.invite-headline {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
margin: 0 0 6px;
|
|
}
|
|
|
|
/* Bots */
|
|
.bot-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.bot-level-card {
|
|
width: 48.5%;
|
|
margin: 0 1.5% 8px 0;
|
|
padding: 9px 11px;
|
|
text-align: left;
|
|
background: var(--surface-2);
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
border-radius: 2px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.bot-level-card:hover {
|
|
background: var(--surface-hover);
|
|
}
|
|
|
|
.bot-level-card.active {
|
|
border-color: var(--accent);
|
|
background: rgba(98, 153, 36, 0.16);
|
|
}
|
|
|
|
.bot-level-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
.bot-level-desc {
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.bot-options-split {
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.bot-opt-block {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
/* Friends & Presence Dots */
|
|
.list-stack {
|
|
display: block;
|
|
}
|
|
|
|
.list-row {
|
|
padding: 9px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.list-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.dot {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
margin-right: 7px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.dot-online {
|
|
background: #629924;
|
|
}
|
|
|
|
.dot-ingame {
|
|
background: #d89b28;
|
|
}
|
|
|
|
.dot-offline {
|
|
background: #6e6b65;
|
|
}
|
|
|
|
.dot-bot {
|
|
background: #3f87c9;
|
|
}
|
|
|
|
.search-results {
|
|
margin-top: 8px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
/* Profile */
|
|
.profile-header-body {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.profile-title-row {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.profile-username {
|
|
margin: 0 8px 0 0;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.h2h-line {
|
|
margin-top: 3px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.inline-pw-form {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.inline-pw-form > * {
|
|
margin-right: 8px;
|
|
margin-bottom: 6px;
|
|
width: auto;
|
|
}
|
|
|
|
.ratings-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.rating-card {
|
|
width: 24%;
|
|
margin-right: 1%;
|
|
}
|
|
|
|
.rating-card:last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.rating-card-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.rating-cat-name {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.rating-big {
|
|
font-size: 19px;
|
|
}
|
|
|
|
.sparkline-svg {
|
|
width: 100%;
|
|
height: 36px;
|
|
margin-top: 6px;
|
|
display: block;
|
|
}
|
|
|
|
.sparkline-line {
|
|
stroke: var(--accent);
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.sparkline-flat {
|
|
stroke: var(--border);
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.filter-bar {
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--surface-2);
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.filter-bar > * {
|
|
margin-right: 6px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.filter-opp {
|
|
width: 150px;
|
|
}
|
|
|
|
.res-badge {
|
|
display: inline-block;
|
|
padding: 1px 5px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.res-win {
|
|
background: rgba(98, 153, 36, 0.25);
|
|
color: #8fd147;
|
|
}
|
|
|
|
.res-loss {
|
|
background: rgba(201, 64, 64, 0.25);
|
|
color: #f07575;
|
|
}
|
|
|
|
.res-draw {
|
|
background: rgba(150, 150, 150, 0.2);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.pager-bar {
|
|
padding: 8px 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.pager-bar > * {
|
|
margin: 0 6px;
|
|
}
|
|
|
|
/* Game & Analysis Layout */
|
|
.game-layout,
|
|
.analysis-layout {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
}
|
|
|
|
.board-col {
|
|
width: 560px;
|
|
max-width: 100%;
|
|
margin-right: 16px;
|
|
}
|
|
|
|
.analysis-board-col {
|
|
width: 590px;
|
|
max-width: 100%;
|
|
margin-right: 16px;
|
|
}
|
|
|
|
.analysis-board-row {
|
|
display: flex;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.analysis-board-inner {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.game-side-col,
|
|
.analysis-side-col {
|
|
flex: 1 1 320px;
|
|
max-width: 440px;
|
|
min-width: 280px;
|
|
}
|
|
|
|
/* Player bar & Clock */
|
|
.player-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
padding: 6px 10px;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.player-bar.player-turn {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.player-info {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.player-name {
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.rating-diff {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.diff-pos {
|
|
color: #8fd147;
|
|
}
|
|
|
|
.diff-neg {
|
|
color: #f07575;
|
|
}
|
|
|
|
.disconnect-badge {
|
|
margin-left: 8px;
|
|
padding: 1px 5px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
background: var(--danger);
|
|
color: #fff;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.clock-box {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
padding: 3px 9px;
|
|
min-width: 78px;
|
|
text-align: center;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
color: var(--muted);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.clock-active {
|
|
background: var(--text);
|
|
color: var(--bg);
|
|
}
|
|
|
|
.clock-low {
|
|
background: var(--warn);
|
|
color: #111;
|
|
border-color: var(--warn);
|
|
}
|
|
|
|
.clock-flag {
|
|
background: var(--danger);
|
|
color: #fff;
|
|
border-color: var(--danger);
|
|
}
|
|
|
|
/* Chessboard (100% old-browser compatible square via padding-bottom) */
|
|
.board-outer {
|
|
width: 100%;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
-webkit-touch-callout: none;
|
|
-webkit-tap-highlight-color: transparent;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.board-wrap {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 0;
|
|
padding-bottom: 100%;
|
|
border: 1px solid var(--border);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.board-grid {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.sq {
|
|
position: relative;
|
|
width: 12.5%;
|
|
height: 12.5%;
|
|
}
|
|
|
|
.sq-interactive,
|
|
.sq-target {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.sq-light {
|
|
background: var(--sq-light);
|
|
}
|
|
|
|
.sq-dark {
|
|
background: var(--sq-dark);
|
|
}
|
|
|
|
.sq-last:after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
background: var(--sq-last);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sq-selected:after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
background: var(--sq-selected);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sq-premove:after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
background: var(--sq-premove);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sq-premove-selected:after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
background: var(--sq-premove-selected);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sq-check {
|
|
background: radial-gradient(ellipse at center, #ff1111 0%, #c92020 55%, rgba(200, 0, 0, 0) 85%);
|
|
}
|
|
|
|
.coord-rank {
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 3px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
pointer-events: none;
|
|
z-index: 2;
|
|
}
|
|
|
|
.coord-file {
|
|
position: absolute;
|
|
right: 3px;
|
|
bottom: 2px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
pointer-events: none;
|
|
z-index: 2;
|
|
}
|
|
|
|
.sq-light .coord-rank,
|
|
.sq-light .coord-file {
|
|
color: var(--coord-light);
|
|
}
|
|
|
|
.sq-dark .coord-rank,
|
|
.sq-dark .coord-file {
|
|
color: var(--coord-dark);
|
|
}
|
|
|
|
.piece {
|
|
position: absolute;
|
|
top: 3%;
|
|
right: 3%;
|
|
bottom: 3%;
|
|
left: 3%;
|
|
z-index: 3;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.piece-svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.hint-dot {
|
|
position: absolute;
|
|
top: 36%;
|
|
left: 36%;
|
|
width: 28%;
|
|
height: 28%;
|
|
border-radius: 50%;
|
|
background: rgba(20, 85, 30, 0.42);
|
|
z-index: 4;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hint-capture {
|
|
position: absolute;
|
|
top: 6%;
|
|
right: 6%;
|
|
bottom: 6%;
|
|
left: 6%;
|
|
border-radius: 50%;
|
|
border: 4px solid rgba(20, 85, 30, 0.48);
|
|
z-index: 4;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hint-premove-dot {
|
|
position: absolute;
|
|
top: 36%;
|
|
left: 36%;
|
|
width: 28%;
|
|
height: 28%;
|
|
border-radius: 50%;
|
|
background: rgba(41, 121, 255, 0.58);
|
|
z-index: 4;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hint-premove-capture {
|
|
position: absolute;
|
|
top: 6%;
|
|
right: 6%;
|
|
bottom: 6%;
|
|
left: 6%;
|
|
border-radius: 50%;
|
|
border: 4px solid rgba(41, 121, 255, 0.65);
|
|
z-index: 4;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.board-arrows {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.promo-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
background: rgba(0, 0, 0, 0.58);
|
|
z-index: 15;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.promo-box {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
padding: 10px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.promo-choice {
|
|
position: relative;
|
|
width: 56px;
|
|
height: 56px;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
margin: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.promo-choice:hover {
|
|
background: var(--surface-hover);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.promo-cancel {
|
|
margin-left: 6px;
|
|
padding: 6px 10px;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
border: 1px solid var(--border);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.premove-banner,
|
|
.live-notice {
|
|
margin-top: 6px;
|
|
padding: 6px 10px;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.premove-banner {
|
|
border-left: 3px solid #2979ff;
|
|
}
|
|
|
|
.game-meta-line {
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.game-status-banner {
|
|
margin-top: 8px;
|
|
padding: 8px 10px;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.game-status-banner.finished {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
/* Move list */
|
|
.movelist-nav {
|
|
display: flex;
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 6px;
|
|
background: var(--surface-2);
|
|
}
|
|
|
|
.movelist-nav > .btn {
|
|
flex: 1;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.movelist-nav > .btn:last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.movelist-scroll {
|
|
height: 220px;
|
|
overflow-y: auto;
|
|
position: relative;
|
|
}
|
|
|
|
.movelist-empty {
|
|
padding: 20px;
|
|
text-align: center;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.movelist-row {
|
|
display: flex;
|
|
border-bottom: 1px solid rgba(128, 128, 128, 0.12);
|
|
}
|
|
|
|
.move-num {
|
|
width: 38px;
|
|
padding: 4px 6px;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
background: var(--surface-2);
|
|
text-align: right;
|
|
font-family: ui-monospace, monospace;
|
|
}
|
|
|
|
.move-cell {
|
|
flex: 1;
|
|
padding: 4px 8px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
text-align: left;
|
|
background: transparent;
|
|
color: var(--text);
|
|
border: none;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.move-cell:hover {
|
|
background: var(--surface-hover);
|
|
}
|
|
|
|
.move-empty {
|
|
cursor: default;
|
|
}
|
|
|
|
.move-active {
|
|
background: var(--accent) !important;
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
.move-nag {
|
|
margin-left: 3px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.nag-inaccuracy {
|
|
color: #56b4e9;
|
|
}
|
|
|
|
.nag-mistake {
|
|
color: #e69f00;
|
|
}
|
|
|
|
.nag-blunder {
|
|
color: #f06060;
|
|
}
|
|
|
|
.move-active .move-nag {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.game-actions {
|
|
padding: 8px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.action-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.action-row > * {
|
|
margin-right: 6px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.offer-bar {
|
|
padding: 6px 8px;
|
|
margin-bottom: 6px;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--warn);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.offer-bar > .btn {
|
|
margin-left: 4px;
|
|
}
|
|
|
|
/* Chat */
|
|
.chat-messages {
|
|
height: 130px;
|
|
overflow-y: auto;
|
|
padding: 8px 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.chat-line {
|
|
margin-bottom: 4px;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.chat-author {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.chat-form {
|
|
display: flex;
|
|
padding: 6px 8px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.chat-form .input {
|
|
flex: 1;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
/* Analysis & Eval Bar & Eval Graph */
|
|
.eval-bar {
|
|
width: 26px;
|
|
margin-right: 8px;
|
|
background: #2b2926;
|
|
border: 1px solid var(--border);
|
|
position: relative;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.eval-fill-white {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 50%;
|
|
background: #e8e6e3;
|
|
}
|
|
|
|
.eval-bar-text {
|
|
position: absolute;
|
|
top: 4px;
|
|
left: 0;
|
|
right: 0;
|
|
text-align: center;
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
color: #888;
|
|
z-index: 2;
|
|
}
|
|
|
|
.eval-graph-wrap {
|
|
margin-top: 10px;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
height: 82px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.eval-graph-svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.eval-graph-bg {
|
|
fill: #24221f;
|
|
}
|
|
|
|
.eval-graph-mid {
|
|
stroke: #555;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.eval-graph-area {
|
|
fill: rgba(235, 233, 228, 0.3);
|
|
}
|
|
|
|
.eval-graph-line {
|
|
stroke: #e8e6e3;
|
|
stroke-width: 1.8;
|
|
}
|
|
|
|
.eval-graph-cursor {
|
|
stroke: var(--accent);
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.eval-dot-inaccuracy {
|
|
fill: #56b4e9;
|
|
}
|
|
|
|
.eval-dot-mistake {
|
|
fill: #e69f00;
|
|
}
|
|
|
|
.eval-dot-blunder {
|
|
fill: #df5353;
|
|
}
|
|
|
|
.variation-bar {
|
|
margin-top: 8px;
|
|
padding: 8px 10px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--accent);
|
|
}
|
|
|
|
.var-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.var-moves {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.var-mv {
|
|
margin: 0 4px 4px 0;
|
|
}
|
|
|
|
.move-feedback {
|
|
margin-top: 8px;
|
|
padding: 8px 10px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-left: 3px solid var(--accent);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.feedback-inaccuracy {
|
|
border-left-color: #56b4e9;
|
|
}
|
|
|
|
.feedback-mistake {
|
|
border-left-color: #e69f00;
|
|
}
|
|
|
|
.feedback-blunder {
|
|
border-left-color: #df5353;
|
|
}
|
|
|
|
.analysis-title-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.pv-row {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: baseline;
|
|
text-align: left;
|
|
padding: 5px 6px;
|
|
background: var(--surface-2);
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
margin-bottom: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.pv-row:hover {
|
|
background: var(--surface-hover);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.pv-score {
|
|
font-family: ui-monospace, monospace;
|
|
font-weight: 700;
|
|
min-width: 44px;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.pv-moves {
|
|
color: var(--muted);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.progress-track {
|
|
margin-top: 6px;
|
|
height: 8px;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: var(--accent);
|
|
width: 0;
|
|
}
|
|
|
|
.summary-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.summary-table th,
|
|
.summary-table td {
|
|
padding: 4px 6px;
|
|
border-bottom: 1px solid var(--border);
|
|
text-align: left;
|
|
}
|
|
|
|
/* Mobile breakpoint */
|
|
@media (max-width: 860px) {
|
|
.board-col,
|
|
.analysis-board-col {
|
|
margin-right: 0;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.game-side-col,
|
|
.analysis-side-col {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.lobby-card,
|
|
.two-col-friends > .card {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.side-col {
|
|
flex: 1 1 100%;
|
|
}
|
|
|
|
.rating-card {
|
|
width: 49%;
|
|
margin-right: 1%;
|
|
}
|
|
|
|
.bot-level-card {
|
|
width: 100%;
|
|
margin-right: 0;
|
|
}
|
|
}
|