Open History to see the last commit
1.header {
2 height: var(--header-height);
3 display: flex;
4 align-items: center;
5 justify-content: space-between;
6 padding: 0 16px;
7 background: var(--color-surface);
8 border-bottom: 2px solid var(--color-border);
9 z-index: 10;
10 gap: 12px;
11}
12
13.header-left {
14 display: flex;
15 align-items: center;
16 gap: 12px;
17 flex-shrink: 0;
18}
19
20.header-title {
21 margin: 0;
22 display: flex;
23 align-items: center;
24}
25
26.header-logo {
27 height: 22px;
28 width: auto;
29 /* A solid bottom edge avoids shadows showing through the transparent logo. */
30 border-bottom: 3px solid var(--hud-edge);
31}
32
33/* Show full logo by default, hide mini */
34.header-logo-mini {
35 display: none;
36}
37
38.header-right {
39 display: flex;
40 align-items: center;
41 gap: 8px;
42 flex-shrink: 0;
43}
44
45.header-button {
46 display: flex;
47 align-items: center;
48 gap: 6px;
49 padding: 8px 12px;
50 background: var(--color-surface);
51 border: var(--hud-border-width) solid var(--hud-outline);
52 border-radius: var(--hud-radius);
53 box-shadow: var(--hud-shadow);
54 font-size: 0.875rem;
55 font-weight: 650;
56 color: var(--color-text);
57 transition:
58 background-color var(--transition-fast),
59 box-shadow var(--transition-fast),
60 transform var(--transition-fast);
61}
62
63.header-button:hover {
64 background: var(--color-surface-hover);
65}
66
67.header-button:active {
68 background: var(--color-surface-active);
69 transform: translateY(2px);
70 box-shadow: 0 1px 0 var(--hud-edge);
71}
72
73.header-button svg {
74 flex-shrink: 0;
75}
76
77/* Floating scoreboard - hidden on desktop, shown when header scoreboard hidden */
78.floating-scoreboard {
79 display: none;
80}
81
82/* Medium screens: move scoreboard to floating island */
83@media (max-width: 1100px) {
84 /* Hide scoreboard in header */
85 .header-scoreboard {
86 display: none;
87 }
88
89 /* Show floating scoreboard */
90 .floating-scoreboard {
91 display: flex;
92 max-width: calc(100% - 16px);
93 overflow-x: auto;
94 scrollbar-width: thin;
95 position: absolute;
96 top: calc(var(--header-height) + 8px);
97 left: 50%;
98 transform: translateX(-50%);
99 background: rgba(255, 255, 255, 0.95);
100 padding: 6px;
101 border-radius: 12px;
102 border: var(--hud-border-width) solid var(--hud-outline);
103 box-shadow: var(--hud-shadow);
104 z-index: 50;
105 backdrop-filter: blur(8px);
106 }
107}
108
109/* Tablet/Mobile: icon-only buttons and layout changes */
110@media (max-width: 768px) {
111 .header {
112 padding: 0 12px;
113 gap: 6px;
114 }
115
116 .header-button-text {
117 display: none;
118 }
119
120 .header-button {
121 padding: 0;
122 width: 44px;
123 height: 40px;
124 min-width: 44px;
125 min-height: 40px;
126 justify-content: center;
127 }
128
129 .header-button svg {
130 display: block;
131 }
132
133 .header-left {
134 flex: 1;
135 gap: 12px;
136 min-width: 0;
137 }
138
139 /* Keep identity together rather than stranding the team between controls. */
140 .header-left .team-badge {
141 padding: 0;
142 flex-shrink: 0;
143 }
144
145 .header-right {
146 flex: 0 0 auto;
147 justify-content: flex-end;
148 }
149
150 /* Show mini logo, hide full logo on tablet/mobile */
151 .header-logo-full {
152 display: none;
153 }
154
155 .header-logo-mini {
156 display: block;
157 height: 22px;
158 }
159}
160
161/* Keep the logo readable while fitting the smallest phone widths. */
162@media (max-width: 360px) {
163 .header-logo {
164 height: 20px;
165 }
166
167 .header-left {
168 gap: 8px;
169 }
170
171 .header-right {
172 gap: 6px;
173 }
174}