Skip to content
Source
Sign inSign up
samwillis/one-million-boxes
Open History to see the last commit

GameCompleteDialog.css

164 lines2.8 KB

1.game-complete-backdrop {
2 position: fixed;
3 inset: 0;
4 background: rgba(19, 20, 21, 0.5);
5 z-index: 200;
6 display: flex;
7 align-items: center;
8 justify-content: center;
9 animation: game-complete-fade-in 0.3s ease-out;
11​
12.game-complete-dialog {
13 background: white;
14 border: 1px solid var(--color-border);
15 border-radius: var(--radius-lg);
16 box-shadow: var(--shadow-lg);
17 padding: 32px;
18 width: 90%;
19 max-width: 400px;
20 text-align: center;
21 animation: game-complete-slide-in 0.4s ease-out;
23​
24.game-complete-title {
25 font-size: 1.75rem;
26 font-weight: 700;
27 margin: 0 0 8px 0;
28 color: var(--color-text);
30​
31.game-complete-mode {
32 font-size: 0.875rem;
33 color: var(--color-muted);
34 margin-bottom: 24px;
36​
37.game-complete-winner {
38 display: flex;
39 align-items: center;
40 justify-content: center;
41 gap: 12px;
42 margin-bottom: 24px;
44​
45.game-complete-winner-dot {
46 width: 32px;
47 height: 32px;
48 border-radius: 50%;
49 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
51​
52.game-complete-winner-name {
53 font-size: 1.5rem;
54 font-weight: 700;
56​
57.game-complete-tie {
58 font-size: 1.5rem;
59 font-weight: 700;
60 margin-bottom: 24px;
61 color: var(--color-muted);
63​
64.game-complete-scores {
65 margin-bottom: 24px;
67​
68.game-complete-scores h3 {
69 font-size: 0.875rem;
70 font-weight: 600;
71 color: var(--color-muted);
72 margin: 0 0 12px 0;
73 text-transform: uppercase;
74 letter-spacing: 0.5px;
76​
77.game-complete-score-list {
78 display: flex;
79 flex-direction: column;
80 gap: 8px;
82​
83.game-complete-score-item {
84 display: flex;
85 align-items: center;
86 gap: 10px;
87 padding: 8px 16px;
88 background: var(--color-bg);
89 border-radius: var(--radius-sm);
91​
92.game-complete-score-dot {
93 width: 14px;
94 height: 14px;
95 border-radius: 50%;
96 flex-shrink: 0;
98​
99.game-complete-score-name {
100 flex: 1;
101 text-align: left;
102 font-weight: 500;
104​
105.game-complete-score-value {
106 font-weight: 700;
107 font-variant-numeric: tabular-nums;
109​
110.game-complete-button {
111 width: 100%;
112 padding: 14px;
113 font-size: 1rem;
114 font-weight: 600;
115 background: var(--color-text);
116 color: white;
117 border-radius: var(--radius-sm);
118 transition:
119 background-color var(--transition-fast),
120 transform var(--transition-fast);
122​
123.game-complete-button:hover {
124 background: #303236;
126​
127.game-complete-button:active {
128 transform: scale(0.98);
130​
131@keyframes game-complete-fade-in {
132 from {
133 opacity: 0;
134 }
135 to {
136 opacity: 1;
137 }
139​
140@keyframes game-complete-slide-in {
141 from {
142 opacity: 0;
143 transform: translateY(-20px) scale(0.95);
144 }
145 to {
146 opacity: 1;
147 transform: translateY(0) scale(1);
148 }
150​
151/* Mobile adjustments */
152@media (max-width: 640px) {
153 .game-complete-dialog {
154 padding: 24px;
155 }
156​
157 .game-complete-title {
158 font-size: 1.5rem;
159 }
160​
161 .game-complete-winner-name {
162 font-size: 1.25rem;
163 }