560 lines
11 KiB
CSS
560 lines
11 KiB
CSS
.app {
|
|
font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial,
|
|
"Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
|
|
color: #e9eef6;
|
|
background: radial-gradient(1200px 800px at 10% 10%, #16223a 0%, #0b1020 55%, #070a14 100%);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
/* ── Auth overlay ─────────────────────────────────────────────────────────── */
|
|
|
|
.authOverlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 100;
|
|
background: rgba(5, 8, 18, 0.88);
|
|
backdrop-filter: blur(12px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.authOverlay.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.authModal {
|
|
width: 360px;
|
|
border-radius: 20px;
|
|
border: 1px solid rgba(255, 255, 255, 0.14);
|
|
background: rgba(15, 22, 42, 0.95);
|
|
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.authTabs {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.authTab {
|
|
padding: 14px;
|
|
border: none;
|
|
background: transparent;
|
|
color: rgba(233, 238, 246, 0.55);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
border-radius: 0;
|
|
transition: color 0.15s, background 0.15s;
|
|
}
|
|
|
|
.authTab:hover {
|
|
color: #e9eef6;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
.authTab--active {
|
|
color: #e9eef6;
|
|
background: rgba(113, 199, 255, 0.1);
|
|
border-bottom: 2px solid rgba(113, 199, 255, 0.7);
|
|
}
|
|
|
|
.authForm {
|
|
padding: 20px 22px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.authForm.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.authField {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.authField label {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.authHint {
|
|
font-weight: 400;
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.authField input[type="text"],
|
|
.authField input[type="email"],
|
|
.authField input[type="password"] {
|
|
padding: 10px 12px;
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
background: rgba(255, 255, 255, 0.06);
|
|
color: #e9eef6;
|
|
font-size: 14px;
|
|
outline: none;
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.authField input:focus {
|
|
border-color: rgba(113, 199, 255, 0.5);
|
|
}
|
|
|
|
.authTeamChoice {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.authTeamOption {
|
|
flex: 1;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.authTeamOption input[type="radio"] {
|
|
position: absolute;
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.authTeamBadge {
|
|
display: block;
|
|
padding: 10px;
|
|
border-radius: 10px;
|
|
border: 2px solid rgba(255, 255, 255, 0.1);
|
|
text-align: center;
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
transition: border-color 0.15s, background 0.15s;
|
|
}
|
|
|
|
.authTeamBadge--blue {
|
|
color: rgba(90, 200, 255, 0.9);
|
|
}
|
|
|
|
.authTeamBadge--red {
|
|
color: rgba(220, 75, 85, 0.9);
|
|
}
|
|
|
|
.authTeamOption input:checked + .authTeamBadge--blue {
|
|
border-color: rgba(90, 200, 255, 0.8);
|
|
background: rgba(90, 200, 255, 0.12);
|
|
}
|
|
|
|
.authTeamOption input:checked + .authTeamBadge--red {
|
|
border-color: rgba(220, 75, 85, 0.8);
|
|
background: rgba(220, 75, 85, 0.12);
|
|
}
|
|
|
|
.authError {
|
|
font-size: 12px;
|
|
color: rgba(255, 130, 100, 0.95);
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
background: rgba(200, 50, 30, 0.12);
|
|
border: 1px solid rgba(200, 50, 30, 0.25);
|
|
}
|
|
|
|
.authError.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.authSubmit {
|
|
margin-top: 4px;
|
|
padding: 12px;
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(113, 199, 255, 0.3);
|
|
background: rgba(113, 199, 255, 0.18);
|
|
color: #e9eef6;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.authSubmit:hover {
|
|
background: rgba(113, 199, 255, 0.28);
|
|
}
|
|
|
|
/* ── Team corner (debug) ──────────────────────────────────────────────────── */
|
|
|
|
.teamCorner {
|
|
position: fixed;
|
|
top: 12px;
|
|
left: 12px;
|
|
z-index: 10;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 10px;
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
background: rgba(7, 10, 20, 0.85);
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.teamCornerLabel {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.teamCorner--hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.teamSegmented {
|
|
min-width: 148px;
|
|
}
|
|
|
|
.teamSegmentedTrack {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
background: rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.teamSegmentedTrack::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 2px;
|
|
bottom: 2px;
|
|
left: 2px;
|
|
width: calc(50% - 4px);
|
|
border-radius: 9px;
|
|
background: linear-gradient(180deg, rgba(90, 200, 255, 0.42), rgba(35, 95, 150, 0.55));
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
|
|
transition: left 0.22s ease, background 0.22s ease;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.teamSegmentedTrack[data-active="red"]::before {
|
|
left: calc(50% + 2px);
|
|
background: linear-gradient(180deg, rgba(255, 130, 130, 0.42), rgba(150, 45, 45, 0.55));
|
|
}
|
|
|
|
.teamSegmentedBtn {
|
|
position: relative;
|
|
z-index: 1;
|
|
margin: 0;
|
|
padding: 9px 12px;
|
|
border: none;
|
|
background: transparent;
|
|
color: #e9eef6;
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.teamSegmentedBtn:hover {
|
|
color: #ffffff;
|
|
}
|
|
|
|
/* ── Score board ──────────────────────────────────────────────────────────── */
|
|
|
|
.scoreBoard {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 10px 20px;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
font-size: 22px;
|
|
font-weight: 800;
|
|
font-variant-numeric: tabular-nums;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.scoreTeam {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.scoreTeamName {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.scoreTeam--blue .scoreTeamName {
|
|
color: rgba(90, 200, 255, 0.9);
|
|
}
|
|
|
|
.scoreTeam--blue .scoreValue {
|
|
color: rgba(90, 200, 255, 1);
|
|
text-shadow: 0 0 20px rgba(90, 200, 255, 0.4);
|
|
}
|
|
|
|
.scoreTeam--red .scoreTeamName {
|
|
color: rgba(220, 75, 85, 0.9);
|
|
}
|
|
|
|
.scoreTeam--red .scoreValue {
|
|
color: rgba(220, 75, 85, 1);
|
|
text-shadow: 0 0 20px rgba(220, 75, 85, 0.4);
|
|
}
|
|
|
|
.scoreSep {
|
|
opacity: 0.4;
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* ── Top bar ──────────────────────────────────────────────────────────────── */
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 18px 18px 12px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
background: rgba(7, 10, 20, 0.65);
|
|
backdrop-filter: blur(8px);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 2;
|
|
}
|
|
|
|
.h1 {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.2px;
|
|
}
|
|
|
|
.sub {
|
|
font-size: 12px;
|
|
opacity: 0.75;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
/* ── Top-right table ──────────────────────────────────────────────────────── */
|
|
|
|
.topRight {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 10px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.topRightTable {
|
|
display: table;
|
|
border-collapse: separate;
|
|
border-spacing: 0 4px;
|
|
}
|
|
|
|
.topRightRow {
|
|
display: table-row;
|
|
}
|
|
|
|
.trKey {
|
|
display: table-cell;
|
|
text-align: right;
|
|
padding-right: 8px;
|
|
font-size: 11px;
|
|
opacity: 0.7;
|
|
white-space: nowrap;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.trVal {
|
|
display: table-cell;
|
|
text-align: left;
|
|
font-size: 11px;
|
|
white-space: nowrap;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.trVal code {
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
border-radius: 8px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
word-break: break-all;
|
|
}
|
|
|
|
/* Countdown row */
|
|
#countdownWrap {
|
|
opacity: 1;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
#countdownWrap.hidden {
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.countdownLabel {
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: rgba(255, 193, 113, 0.9);
|
|
}
|
|
|
|
.countdownVal {
|
|
display: table-cell;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: rgba(255, 193, 113, 1);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.countdown {
|
|
font-variant-numeric: tabular-nums;
|
|
min-width: 2ch;
|
|
text-align: right;
|
|
}
|
|
|
|
.countdownUnit {
|
|
font-size: 12px;
|
|
opacity: 0.8;
|
|
margin-left: 2px;
|
|
}
|
|
|
|
/* User display */
|
|
#userDisplay {
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.logoutBtn {
|
|
margin-left: 8px;
|
|
padding: 3px 8px;
|
|
border-radius: 6px;
|
|
border: 1px solid rgba(255, 255, 255, 0.14);
|
|
background: rgba(255, 255, 255, 0.07);
|
|
color: rgba(233, 238, 246, 0.75);
|
|
font-size: 11px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.logoutBtn:hover {
|
|
background: rgba(255, 255, 255, 0.12);
|
|
color: #e9eef6;
|
|
}
|
|
|
|
.logoutBtn.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.muted {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.controls {
|
|
display: flex;
|
|
align-items: end;
|
|
gap: 10px;
|
|
}
|
|
|
|
button {
|
|
padding: 10px 12px;
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.14);
|
|
background: rgba(113, 199, 255, 0.16);
|
|
color: #e9eef6;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:hover {
|
|
background: rgba(113, 199, 255, 0.22);
|
|
}
|
|
|
|
.main {
|
|
display: grid;
|
|
grid-template-columns: 1fr 360px;
|
|
gap: 14px;
|
|
padding: 14px 18px 18px;
|
|
}
|
|
|
|
.board {
|
|
position: relative;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(255, 255, 255, 0.10);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
overflow: hidden;
|
|
min-height: 820px;
|
|
}
|
|
|
|
canvas {
|
|
display: block;
|
|
width: min(820px, calc(100vw - 420px));
|
|
height: min(820px, calc(100vw - 420px));
|
|
max-width: 820px;
|
|
max-height: 820px;
|
|
margin: 0 auto;
|
|
image-rendering: pixelated;
|
|
}
|
|
|
|
.hint {
|
|
position: absolute;
|
|
left: 14px;
|
|
bottom: 14px;
|
|
padding: 10px 12px;
|
|
font-size: 12px;
|
|
opacity: 0.8;
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(255, 255, 255, 0.10);
|
|
background: rgba(7, 10, 20, 0.65);
|
|
backdrop-filter: blur(6px);
|
|
}
|
|
|
|
.panel {
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(255, 255, 255, 0.10);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
overflow: hidden;
|
|
height: fit-content;
|
|
}
|
|
|
|
.panelTitle {
|
|
padding: 12px 14px;
|
|
font-weight: 700;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.details {
|
|
margin: 0;
|
|
padding: 12px 14px 14px;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
color: rgba(233, 238, 246, 0.92);
|
|
}
|
|
|
|
.details--hidden {
|
|
color: rgba(233, 238, 246, 0.45);
|
|
font-style: italic;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.main {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
canvas {
|
|
width: min(820px, calc(100vw - 36px));
|
|
height: min(820px, calc(100vw - 36px));
|
|
}
|
|
} |