-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
64 lines (57 loc) · 3.08 KB
/
styles.css
File metadata and controls
64 lines (57 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* 现代、简洁风格 */
:root {
--bg: #0f172a;
--panel: #111827;
--txt: #e5e7eb;
--muted: #9ca3af;
--primary: #22c55e;
--primary-600: #16a34a;
--danger: #ef4444;
--grid: #1f2937;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
background: radial-gradient(1000px 600px at 20% -10%, #1f2937, transparent),
radial-gradient(1000px 600px at 120% 10%, #0b1324, transparent),
var(--bg);
color: var(--txt);
font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica, Arial;
}
.app { max-width: 720px; margin: 24px auto; padding: 0 16px; }
.header { display: flex; align-items: center; justify-content: space-between; }
.title { margin: 0; font-size: 24px; letter-spacing: 0.5px; }
.scoreboard { display: flex; gap: 16px; color: var(--muted); }
.scoreboard span { color: var(--txt); font-weight: 700; }
.toolbar { margin: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field { color: var(--muted); display: flex; align-items: center; gap: 8px; }
select { background: var(--panel); color: var(--txt); border: 1px solid #374151; padding: 6px 10px; border-radius: 8px; }
.buttons { display: flex; gap: 8px; }
.btn { background: #1f2937; color: var(--txt); border: 1px solid #374151; padding: 8px 12px; border-radius: 10px; cursor: pointer; transition: .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--primary); border-color: var(--primary-600); color: #06270f; font-weight: 700; }
.btn.primary:hover { background: var(--primary-600); }
.board-wrap { position: relative; background: #0b1020; padding: 16px; border-radius: 16px; border: 1px solid #1f2937; box-shadow: 0 10px 30px rgba(0,0,0,.35) inset; }
#board { width: 100%; height: auto; display: block; background:
linear-gradient(transparent 49%, var(--grid) 50%, transparent 51%),
linear-gradient(90deg, transparent 49%, var(--grid) 50%, transparent 51%);
background-size: calc(100%/16) calc(100%/16);
border-radius: 10px;
}
.overlay { position: absolute; inset: 16px; display: grid; place-items: center; background: rgba(15,23,42,.74); border-radius: 12px; backdrop-filter: blur(4px); }
.overlay.hidden { display: none; }
.modal { background: #111827; border: 1px solid #1f2937; padding: 20px 16px; border-radius: 12px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.modal h2 { margin: 0 0 6px 0; }
.tip { color: var(--muted); margin: 0 0 12px 0; }
.dpad { display: grid; gap: 8px; grid-template-rows: auto auto; justify-content: center; padding: 12px 0 0; }
.d-mid { display: grid; grid-template-columns: auto auto auto; gap: 8px; }
.d { width: 56px; height: 44px; border-radius: 10px; border: 1px solid #374151; background: #111827; color: var(--txt); cursor: pointer; }
.d-up { justify-self: center; width: 64px; }
.help { margin: 10px 0; color: var(--muted); text-align: center; }
@media (max-width: 480px) {
.app { margin: 16px auto; }
.title { font-size: 20px; }
.d { width: 52px; height: 40px; }
}