632 lines
13 KiB
CSS
632 lines
13 KiB
CSS
/* ── Reset & base ─────────────────────────────────────────────────────────── */
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
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;
|
|
}
|
|
|
|
/* ── Mobile / small-screen overlay ───────────────────────────────────────── */
|
|
|
|
.mobileOverlay {
|
|
display: none; /* hidden on desktop — shown via media query below */
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 200;
|
|
background: rgba(5, 8, 18, 0.97);
|
|
backdrop-filter: blur(16px);
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.mobileOverlayCard {
|
|
max-width: 360px;
|
|
padding: 40px 28px;
|
|
border-radius: 24px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
background: rgba(15, 22, 42, 0.9);
|
|
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
.mobileOverlayIcon {
|
|
font-size: 52px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.mobileOverlayTitle {
|
|
margin: 0 0 12px;
|
|
font-size: 22px;
|
|
font-weight: 800;
|
|
letter-spacing: 0.2px;
|
|
color: rgba(113, 199, 255, 0.95);
|
|
}
|
|
|
|
.mobileOverlayText {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
line-height: 1.7;
|
|
color: rgba(233, 238, 246, 0.75);
|
|
}
|
|
|
|
/* Show overlay on small / narrow screens */
|
|
@media (max-width: 768px), (max-height: 500px) {
|
|
.mobileOverlay {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
/* ── 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 16px;
|
|
border-radius: 14px;
|
|
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;
|
|
}
|
|
|
|
/* ── Main app layout ──────────────────────────────────────────────────────── */
|
|
|
|
.app {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ── Left information column ──────────────────────────────────────────────── */
|
|
|
|
.infoColumn {
|
|
flex: 1 1 0;
|
|
min-width: 260px;
|
|
max-width: 420px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
padding: 22px 18px 18px;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
background: rgba(7, 10, 20, 0.55);
|
|
border-right: 1px solid rgba(255, 255, 255, 0.07);
|
|
}
|
|
|
|
/* Scrollbar styling for the info column */
|
|
.infoColumn::-webkit-scrollbar {
|
|
width: 5px;
|
|
}
|
|
.infoColumn::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
.infoColumn::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.12);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.infoSection--title .h1 {
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.2px;
|
|
}
|
|
|
|
.infoSection--title .sub {
|
|
font-size: 11px;
|
|
opacity: 0.65;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* ── Info table (rows of key/value pairs) ─────────────────────────────────── */
|
|
|
|
.infoTable {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.infoRow {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
min-height: 22px;
|
|
}
|
|
|
|
.infoKey {
|
|
flex: 0 0 auto;
|
|
font-size: 11px;
|
|
opacity: 0.65;
|
|
white-space: nowrap;
|
|
min-width: 130px;
|
|
text-align: right;
|
|
}
|
|
|
|
.infoVal {
|
|
flex: 1;
|
|
font-size: 11px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.infoVal code {
|
|
font-size: 11px;
|
|
padding: 2px 7px;
|
|
border-radius: 7px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
word-break: break-all;
|
|
white-space: normal;
|
|
}
|
|
|
|
/* 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);
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
.countdownVal {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: rgba(255, 193, 113, 1);
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 2px;
|
|
}
|
|
|
|
.countdown {
|
|
font-variant-numeric: tabular-nums;
|
|
min-width: 2ch;
|
|
text-align: right;
|
|
}
|
|
|
|
.countdownUnit {
|
|
font-size: 12px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* 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.55;
|
|
}
|
|
|
|
/* ── Controls ──────────────────────────────────────────────────────────────── */
|
|
|
|
.controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
button {
|
|
padding: 9px 14px;
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.14);
|
|
background: rgba(113, 199, 255, 0.16);
|
|
color: #e9eef6;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
button:hover {
|
|
background: rgba(113, 199, 255, 0.24);
|
|
}
|
|
|
|
/* ── Selection panel ─────────────────────────────────────────────────────── */
|
|
|
|
.panel {
|
|
border-radius: 14px;
|
|
border: 1px solid rgba(255, 255, 255, 0.09);
|
|
background: rgba(255, 255, 255, 0.03);
|
|
overflow: hidden;
|
|
flex: 1 1 auto;
|
|
min-height: 80px;
|
|
}
|
|
|
|
.panelTitle {
|
|
padding: 10px 14px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
opacity: 0.7;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
|
|
}
|
|
|
|
.details {
|
|
margin: 0;
|
|
padding: 12px 14px 14px;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
color: rgba(233, 238, 246, 0.92);
|
|
}
|
|
|
|
.details--hidden {
|
|
color: rgba(233, 238, 246, 0.4);
|
|
font-style: italic;
|
|
}
|
|
|
|
/* ── Galaxy: square, pinned to the right ──────────────────────────────────── */
|
|
|
|
.galaxyMain {
|
|
/* Height fills the viewport; aspect-ratio keeps it perfectly square */
|
|
flex: 0 0 auto;
|
|
position: relative;
|
|
height: 100vh;
|
|
aspect-ratio: 1 / 1;
|
|
/* Constrain width so the canvas never exceeds available space */
|
|
max-width: calc(100vw - 260px);
|
|
background: #000;
|
|
overflow: hidden;
|
|
}
|
|
|
|
canvas {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
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.1);
|
|
background: rgba(7, 10, 20, 0.65);
|
|
backdrop-filter: blur(6px);
|
|
max-width: calc(100% - 28px);
|
|
pointer-events: none;
|
|
} |