fitst version
This commit is contained in:
@@ -0,0 +1,261 @@
|
||||
:root {
|
||||
--bg1: #0b0f2a;
|
||||
--bg2: #150f33;
|
||||
--neon: #00f0ff;
|
||||
--neon2: #ff3fa4;
|
||||
--gold: #ffd93d;
|
||||
--ok: #3dff88;
|
||||
--red: #ff4d6d;
|
||||
--card: rgba(13, 16, 44, 0.82);
|
||||
--line: rgba(0, 240, 255, 0.35);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
touch-action: none;
|
||||
overscroll-behavior: none;
|
||||
background: radial-gradient(120% 90% at 50% 0%, var(--bg1), var(--bg2));
|
||||
font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
|
||||
color: #eaf4ff;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
position: fixed; inset: 0;
|
||||
}
|
||||
|
||||
#stars {
|
||||
position: fixed; inset: 0;
|
||||
background-image:
|
||||
radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.8), transparent 60%),
|
||||
radial-gradient(1px 1px at 68% 8%, rgba(255,255,255,.7), transparent 60%),
|
||||
radial-gradient(1.5px 1.5px at 82% 66%, rgba(0,240,255,.7), transparent 60%),
|
||||
radial-gradient(1px 1px at 34% 84%, rgba(255,255,255,.55), transparent 60%),
|
||||
radial-gradient(2px 2px at 44% 12%, rgba(255,63,164,.6), transparent 60%),
|
||||
radial-gradient(1px 1px at 92% 40%, rgba(255,255,255,.6), transparent 60%);
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
#game {
|
||||
position: fixed; inset: 0;
|
||||
width: 100%; height: 100%;
|
||||
display: block;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* ---- Overlays ---- */
|
||||
.overlay {
|
||||
position: fixed; inset: 0;
|
||||
z-index: 5;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
padding: 16px;
|
||||
background: radial-gradient(100% 100% at 50% 20%, rgba(11,15,42,.45), rgba(11,15,42,.9));
|
||||
backdrop-filter: blur(6px);
|
||||
}
|
||||
.hidden { display: none !important; }
|
||||
|
||||
.card {
|
||||
width: min(420px, 100%);
|
||||
background: var(--card);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 22px;
|
||||
padding: 26px 24px;
|
||||
box-shadow: 0 0 40px rgba(0, 240, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
|
||||
text-align: center;
|
||||
animation: pop .35s cubic-bezier(.2, 1.4, .4, 1);
|
||||
}
|
||||
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
|
||||
|
||||
.logo {
|
||||
font-size: 46px; font-weight: 900; letter-spacing: 3px; line-height: 1;
|
||||
color: var(--neon);
|
||||
text-shadow: 0 0 18px rgba(0,240,255,.8), 0 4px 0 rgba(255,63,164,.7);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.logo span { color: var(--neon2); text-shadow: 0 0 18px rgba(255,63,164,.9); }
|
||||
.tagline { color: #99a8d8; font-size: 13px; letter-spacing: 1px; margin-bottom: 20px; }
|
||||
|
||||
input[type=text], input:not([type]) {
|
||||
width: 100%;
|
||||
padding: 13px 16px;
|
||||
font-size: 17px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(0,240,255,.4);
|
||||
background: rgba(8, 12, 32, 0.8);
|
||||
color: #fff;
|
||||
outline: none;
|
||||
margin-bottom: 14px;
|
||||
text-align: center;
|
||||
}
|
||||
input:focus { border-color: var(--neon); box-shadow: 0 0 14px rgba(0,240,255,.45); }
|
||||
input::placeholder { color: #667; }
|
||||
|
||||
.colors { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
|
||||
.swatch {
|
||||
width: 34px; height: 34px; border-radius: 50%;
|
||||
border: 2px solid transparent;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 0 8px rgba(0,0,0,.4);
|
||||
}
|
||||
.swatch.on { border-color: #fff; box-shadow: 0 0 12px rgba(255,255,255,.8); transform: scale(1.12); }
|
||||
|
||||
.btn {
|
||||
width: 100%;
|
||||
padding: 14px;
|
||||
font-size: 18px; font-weight: 800; letter-spacing: 1px;
|
||||
color: #02131a;
|
||||
background: linear-gradient(90deg, var(--neon), #45e0ff);
|
||||
border: none; border-radius: 14px;
|
||||
box-shadow: 0 0 22px rgba(0,240,255,.55), 0 6px 0 rgba(0,120,170,.9);
|
||||
cursor: pointer;
|
||||
transition: transform .08s;
|
||||
}
|
||||
.btn:active { transform: translateY(4px); box-shadow: 0 0 16px rgba(0,240,255,.5), 0 2px 0 rgba(0,120,170,.9); }
|
||||
.btn.ghost {
|
||||
background: linear-gradient(90deg, var(--neon2), #ff7ac0); color: #25010f;
|
||||
box-shadow: 0 0 22px rgba(255,63,164,.5), 0 6px 0 rgba(150,20,90,.9);
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.msg { min-height: 20px; margin-top: 12px; font-size: 14px; color: var(--gold); }
|
||||
.msg.err { color: var(--red); }
|
||||
.hint { margin-top: 14px; font-size: 12.5px; color: #7d8ab8; line-height: 1.5; }
|
||||
|
||||
|
||||
/* ---- Kamer / HUD ---- */
|
||||
#room { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
|
||||
|
||||
#hud {
|
||||
position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 0; right: 0;
|
||||
display: flex; justify-content: space-between; align-items: flex-start;
|
||||
padding: 0 12px; pointer-events: none;
|
||||
text-shadow: 0 2px 8px rgba(0,0,0,.8);
|
||||
}
|
||||
.hud-timer {
|
||||
font-size: 30px; font-weight: 900; color: #fff;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.hud-timer.danger { color: var(--red); animation: blink 1s infinite; }
|
||||
.hud-speed { font-size: 12px; color: var(--neon); letter-spacing: 1px; margin-top: 2px; }
|
||||
.hud-pos { text-align: right; font-size: 20px; font-weight: 800; color: var(--gold); }
|
||||
.hud-dist { text-align: right; font-size: 12px; color: #b9c6f0; letter-spacing: 1px; margin-top: 2px; }
|
||||
@keyframes blink { 50% { opacity: .35; } }
|
||||
|
||||
#lead {
|
||||
position: absolute; top: calc(118px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
|
||||
padding: 6px 16px; border-radius: 999px;
|
||||
background: linear-gradient(90deg, rgba(255,63,164,.25), rgba(0,240,255,.25));
|
||||
background-color: rgba(10,14,40,.6);
|
||||
border: 1px solid var(--gold);
|
||||
color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px;
|
||||
text-shadow: 0 0 10px rgba(255,217,61,.9);
|
||||
display: flex; gap: 6px; align-items: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
#lead .crown { color: var(--gold); }
|
||||
|
||||
/* Leaderboard / aanmelderslijst */
|
||||
.board {
|
||||
position: absolute;
|
||||
top: calc(20px + env(safe-area-inset-top)); right: 12px;
|
||||
width: min(180px, 44vw);
|
||||
background: var(--card);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 14px;
|
||||
padding: 8px 10px;
|
||||
pointer-events: none;
|
||||
}
|
||||
.board-head { font-size: 10.5px; letter-spacing: 1.5px; color: var(--neon); margin-bottom: 5px; text-transform: uppercase; }
|
||||
#boardList { list-style: none; max-height: 42vh; overflow: hidden; }
|
||||
#boardList li {
|
||||
display: flex; gap: 6px; align-items: center;
|
||||
font-size: 12px; padding: 3px 4px; border-radius: 6px;
|
||||
color: #dce7ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
#boardList li .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 8px currentColor; }
|
||||
#boardList li .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; }
|
||||
#boardList li.me { background: rgba(0,240,255,.18); box-shadow: inset 0 0 0 1px rgba(0,240,255,.5); }
|
||||
#boardList li.top { background: rgba(255,217,61,.16); box-shadow: inset 0 0 0 1px rgba(255,217,61,.55); }
|
||||
#boardList li .rk { width: 14px; text-align: right; color: #7d8ab8; font-weight: 700; }
|
||||
#boardList li .st { font-size: 10px; color: #9fb0dd; }
|
||||
|
||||
/* Minimap */
|
||||
#minimapWrap {
|
||||
position: absolute;
|
||||
right: 12px; bottom: calc(84px + env(safe-area-inset-bottom));
|
||||
width: 22px; height: 34vh;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--line);
|
||||
background: rgba(8,12,32,.7);
|
||||
overflow: hidden;
|
||||
pointer-events: auto;
|
||||
cursor: pointer;
|
||||
}
|
||||
#minimap { width: 100%; height: 100%; display: block; }
|
||||
|
||||
/* Toasts */
|
||||
#toasts { position: absolute; top: calc(170px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: 86%; }
|
||||
.toast {
|
||||
background: rgba(10,14,40,.85);
|
||||
border: 1px solid rgba(0,240,255,.4);
|
||||
padding: 7px 14px; border-radius: 999px;
|
||||
font-size: 13px; font-weight: 600; color: #fff;
|
||||
box-shadow: 0 0 18px rgba(0,240,255,.25);
|
||||
animation: toastIn .25s ease-out;
|
||||
text-align: center;
|
||||
}
|
||||
.toast.gold { border-color: var(--gold); box-shadow: 0 0 18px rgba(255,217,61,.3); }
|
||||
@keyframes toastIn { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
|
||||
|
||||
/* Touch hints */
|
||||
#controls {
|
||||
position: absolute; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom));
|
||||
display: flex; justify-content: space-between; align-items: center;
|
||||
padding: 0 18px; pointer-events: none;
|
||||
}
|
||||
.ctrl { color: rgba(234,244,255,.5); font-size: 12px; letter-spacing: 1px; text-shadow: 0 1px 6px #000; }
|
||||
.arrow { color: rgba(0,240,255,.8); font-size: 16px; }
|
||||
.tipzoom { color: rgba(234,244,255,.4); font-size: 14px; }
|
||||
|
||||
/* Countdown */
|
||||
#countdown { flex-direction: column; gap: 8px; background: radial-gradient(90% 90% at 50% 50%, rgba(11,15,42,.25), rgba(11,15,42,.88)); }
|
||||
.cd-label { font-size: 15px; letter-spacing: 5px; text-transform: uppercase; color: var(--neon); text-shadow: 0 0 14px rgba(0,240,255,.8); }
|
||||
.cd-num {
|
||||
font-size: 120px; font-weight: 900; line-height: 1;
|
||||
color: #fff;
|
||||
font-variant-numeric: tabular-nums;
|
||||
text-shadow: 0 0 40px var(--neon), 0 0 80px var(--neon2);
|
||||
animation: pulse 0.5s ease-in-out infinite alternate;
|
||||
}
|
||||
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.06); } }
|
||||
.cd-sub { color: #9fb0dd; font-size: 14px; }
|
||||
|
||||
/* Uitslag */
|
||||
.results-card { max-height: 92vh; overflow: auto; }
|
||||
.res-title { font-size: 26px; letter-spacing: 3px; color: var(--gold); text-shadow: 0 0 18px rgba(255,217,61,.7); margin-bottom: 12px; }
|
||||
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
|
||||
.pod {
|
||||
width: 30%; border-radius: 12px 12px 0 0; padding: 6px 4px 10px;
|
||||
background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
|
||||
font-size: 11px; text-align: center;
|
||||
}
|
||||
.pod.g1 { height: 96px; background: linear-gradient(180deg, rgba(255,217,61,.45), rgba(255,217,61,.08)); border-color: var(--gold); order: 2; }
|
||||
.pod.g2 { height: 72px; background: linear-gradient(180deg, rgba(200,214,255,.4), rgba(200,214,255,.06)); order: 1; }
|
||||
.pod.g3 { height: 56px; background: linear-gradient(180deg, rgba(255,150,90,.4), rgba(255,150,90,.06)); order: 3; }
|
||||
.pod .medal { font-size: 22px; display: block; margin-bottom: 4px; }
|
||||
.pod .pname { font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
.results-list { list-style: none; text-align: left; margin: 0 0 16px; max-height: 32vh; overflow: auto; }
|
||||
.results-list li { display: flex; gap: 10px; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; }
|
||||
.results-list li.me { background: rgba(0,240,255,.16); border-radius: 8px; }
|
||||
.results-list .rk { width: 28px; color: var(--gold); font-weight: 800; }
|
||||
.results-list .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.results-list .tm { color: #b9c6f0; font-variant-numeric: tabular-nums; }
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.logo { font-size: 40px; }
|
||||
.hud-timer { font-size: 26px; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user