niklas #2
@ -8,13 +8,16 @@
|
||||
<link rel="stylesheet" href="./styles/game.css" />
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<p class="noscript-msg">GeoDraw requires JavaScript. Please enable it in your browser settings.</p>
|
||||
</noscript>
|
||||
<div class="wrap">
|
||||
|
||||
<header class="header">
|
||||
<div class="container header__inner">
|
||||
<a href="./index.html" class="logo">
|
||||
<div class="logo__mark">
|
||||
<svg viewBox="0 0 24 24" fill="none">
|
||||
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
||||
<circle cx="12" cy="12" r="9" stroke="white" stroke-width="1.6"/>
|
||||
<path d="M3 12 Q8 8 12 12 Q16 16 21 12" stroke="white" stroke-width="1.4" fill="none"/>
|
||||
<path d="M12 3 Q14 8 12 12 Q10 16 12 21" stroke="white" stroke-width="1.4" fill="none"/>
|
||||
@ -22,7 +25,7 @@
|
||||
</div>
|
||||
<span class="logo__text">GeoDraw</span>
|
||||
</a>
|
||||
<nav class="nav">
|
||||
<nav class="nav" aria-label="Main navigation">
|
||||
<a href="lobby.html" class="nav__link">← Back to lobby</a>
|
||||
</nav>
|
||||
</div>
|
||||
@ -63,7 +66,7 @@
|
||||
<div class="canvas-area">
|
||||
|
||||
<div class="canvas-wrap" id="canvas-wrap">
|
||||
<canvas id="draw-canvas"></canvas>
|
||||
<canvas id="draw-canvas" role="application" aria-label="Drawing canvas – sketch the country border here"></canvas>
|
||||
<div id="score-feedback"></div>
|
||||
</div>
|
||||
|
||||
@ -105,7 +108,7 @@
|
||||
<!-- ── Controls ── -->
|
||||
<div class="game-controls">
|
||||
<button id="btn-clear" class="btn btn--ghost btn--sm">
|
||||
<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
|
||||
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true">
|
||||
<path d="M2 2l10 10M12 2L2 12" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/>
|
||||
</svg>
|
||||
Clear
|
||||
|
||||
@ -8,12 +8,15 @@
|
||||
<link rel="stylesheet" href="styles/index.css" />
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<p class="noscript-msg">GeoDraw requires JavaScript. Please enable it in your browser settings.</p>
|
||||
</noscript>
|
||||
<div class="wrap">
|
||||
<header class="header">
|
||||
<div class="container header__inner">
|
||||
<a href="#hero" class="logo">
|
||||
<div class="logo__mark">
|
||||
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
||||
<circle cx="12" cy="12" r="9" stroke="white" stroke-width="1.6"/>
|
||||
<path d="M3 12 Q8 8 12 12 Q16 16 21 12" stroke="white" stroke-width="1.4" fill="none"/>
|
||||
<path d="M12 3 Q14 8 12 12 Q10 16 12 21" stroke="white" stroke-width="1.4" fill="none"/>
|
||||
@ -22,7 +25,7 @@
|
||||
<span class="logo__text">GeoDraw</span>
|
||||
</a>
|
||||
|
||||
<nav class="nav">
|
||||
<nav class="nav" aria-label="Main navigation">
|
||||
<a href="#hero" class="nav__link">Play</a>
|
||||
<a href="#about" class="nav__link">How to play</a>
|
||||
<a href="#register" class="nav__cta">Login / Register</a>
|
||||
@ -51,7 +54,7 @@
|
||||
<div class="hero__actions reveal reveal-delay-3">
|
||||
<a href="#register" class="btn btn--primary">
|
||||
Start Playing
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||
</a>
|
||||
<a href="#about" class="btn btn--ghost">How it works</a>
|
||||
</div>
|
||||
@ -169,7 +172,7 @@
|
||||
|
||||
<button type="button" class="btn btn--primary btn--full" id="reg-btn">
|
||||
Create game
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||
</button>
|
||||
|
||||
<p class="form-footer"><a href="#" style="color:var(--sea);font-weight:600;">Join a game instead</a></p>
|
||||
|
||||
@ -9,13 +9,16 @@
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<p class="noscript-msg">GeoDraw requires JavaScript. Please enable it in your browser settings.</p>
|
||||
</noscript>
|
||||
<div class="wrap">
|
||||
|
||||
<header class="header">
|
||||
<div class="container header__inner">
|
||||
<a href="index.html" class="logo">
|
||||
<div class="logo__mark">
|
||||
<svg viewBox="0 0 24 24" fill="none">
|
||||
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
||||
<circle cx="12" cy="12" r="9" stroke="white" stroke-width="1.6"/>
|
||||
<path d="M3 12 Q8 8 12 12 Q16 16 21 12" stroke="white" stroke-width="1.4" fill="none"/>
|
||||
<path d="M12 3 Q14 8 12 12 Q10 16 12 21" stroke="white" stroke-width="1.4" fill="none"/>
|
||||
@ -23,7 +26,7 @@
|
||||
</div>
|
||||
<span class="logo__text">GeoDraw</span>
|
||||
</a>
|
||||
<nav class="nav">
|
||||
<nav class="nav" aria-label="Main navigation">
|
||||
<a href="index.html" class="nav__link">Home</a>
|
||||
<a href="lobby.html" class="nav__cta">Play again →</a>
|
||||
</nav>
|
||||
|
||||
@ -8,13 +8,16 @@
|
||||
<link rel="stylesheet" href="./styles/lobby.css" />
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<p class="noscript-msg">GeoDraw requires JavaScript. Please enable it in your browser settings.</p>
|
||||
</noscript>
|
||||
<div class="wrap">
|
||||
|
||||
<header class="header">
|
||||
<div class="container header__inner">
|
||||
<a href="index.html" class="logo">
|
||||
<div class="logo__mark">
|
||||
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
||||
<circle cx="12" cy="12" r="9" stroke="white" stroke-width="1.6"/>
|
||||
<path d="M3 12 Q8 8 12 12 Q16 16 21 12" stroke="white" stroke-width="1.4" fill="none"/>
|
||||
<path d="M12 3 Q14 8 12 12 Q10 16 12 21" stroke="white" stroke-width="1.4" fill="none"/>
|
||||
@ -22,7 +25,7 @@
|
||||
</div>
|
||||
<span class="logo__text">GeoDraw</span>
|
||||
</a>
|
||||
<nav class="nav">
|
||||
<nav class="nav" aria-label="Main navigation">
|
||||
<a href="index.html" class="nav__link">Home</a>
|
||||
<a href="leaderboard.html" class="nav__link">Leaderboard</a>
|
||||
</nav>
|
||||
@ -80,7 +83,7 @@
|
||||
|
||||
<button id="btn-start" class="btn btn--primary btn--full">
|
||||
Start Game
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
|
||||
<path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
@ -8,13 +8,16 @@
|
||||
<link rel="stylesheet" href="styles/results.css" />
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<p class="noscript-msg">GeoDraw requires JavaScript. Please enable it in your browser settings.</p>
|
||||
</noscript>
|
||||
<div class="wrap">
|
||||
|
||||
<header class="header">
|
||||
<div class="container header__inner">
|
||||
<a href="index.html" class="logo">
|
||||
<div class="logo__mark">
|
||||
<svg viewBox="0 0 24 24" fill="none">
|
||||
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
||||
<circle cx="12" cy="12" r="9" stroke="white" stroke-width="1.6"/>
|
||||
<path d="M3 12 Q8 8 12 12 Q16 16 21 12" stroke="white" stroke-width="1.4" fill="none"/>
|
||||
<path d="M12 3 Q14 8 12 12 Q10 16 12 21" stroke="white" stroke-width="1.4" fill="none"/>
|
||||
@ -22,7 +25,7 @@
|
||||
</div>
|
||||
<span class="logo__text">GeoDraw</span>
|
||||
</a>
|
||||
<nav class="nav">
|
||||
<nav class="nav" aria-label="Main navigation">
|
||||
<a href="index.html" class="nav__link">Home</a>
|
||||
<a href="leaderboard.html" class="nav__link">Leaderboard</a>
|
||||
<a href="lobby.html" class="nav__cta">Play again →</a>
|
||||
|
||||
@ -149,7 +149,9 @@ const Drawing = (() => {
|
||||
ctx.lineWidth = STROKE_WIDTH;
|
||||
ctx.lineJoin = "round";
|
||||
ctx.lineCap = "round";
|
||||
points.forEach((p, i) => (i === 0 ? ctx.moveTo(p.x, p.y) : ctx.lineTo(p.x, p.y)));
|
||||
points.forEach((p, i) =>
|
||||
i === 0 ? ctx.moveTo(p.x, p.y) : ctx.lineTo(p.x, p.y),
|
||||
);
|
||||
ctx.stroke();
|
||||
}
|
||||
|
||||
@ -157,10 +159,14 @@ const Drawing = (() => {
|
||||
* Return a copy of the current drawn points.
|
||||
* @returns {{ x: number, y: number }[]}
|
||||
*/
|
||||
function getPoints() { return [...points]; }
|
||||
function getPoints() {
|
||||
return [...points];
|
||||
}
|
||||
|
||||
/** Remove event listeners and clean up. */
|
||||
function destroy() { window.removeEventListener("resize", _resize); }
|
||||
function destroy() {
|
||||
window.removeEventListener("resize", _resize);
|
||||
}
|
||||
|
||||
return { init, clear, setCities, getPoints, destroy };
|
||||
})();
|
||||
|
||||
@ -57,7 +57,8 @@ function startRound() {
|
||||
timerInterval = setInterval(tickTimer, 1000);
|
||||
|
||||
elBtnSubmit.disabled = false;
|
||||
elBtnSubmit.textContent = currentRound < TOTAL_ROUNDS - 1
|
||||
elBtnSubmit.textContent =
|
||||
currentRound < TOTAL_ROUNDS - 1
|
||||
? "Submit & Next Round →"
|
||||
: "Submit & See Results →";
|
||||
}
|
||||
@ -81,7 +82,10 @@ function updateTimerUI() {
|
||||
elTimerBar.style.width = `${(timeLeft / ROUND_DURATION) * 100}%`;
|
||||
|
||||
elTimerWrap.classList.toggle("timer--danger", timeLeft <= 10);
|
||||
elTimerWrap.classList.toggle("timer--warning", timeLeft > 10 && timeLeft <= 20);
|
||||
elTimerWrap.classList.toggle(
|
||||
"timer--warning",
|
||||
timeLeft > 10 && timeLeft <= 20,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -102,14 +106,17 @@ function submitRound(auto = false) {
|
||||
|
||||
showScoreFeedback(score);
|
||||
|
||||
setTimeout(() => {
|
||||
setTimeout(
|
||||
() => {
|
||||
if (currentRound < TOTAL_ROUNDS - 1) {
|
||||
currentRound++;
|
||||
startRound();
|
||||
} else {
|
||||
finishGame();
|
||||
}
|
||||
}, auto ? 400 : 1200);
|
||||
},
|
||||
auto ? 400 : 1200,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -5,7 +5,9 @@
|
||||
* Validates the lobby name, persists it, and navigates to the lobby page.
|
||||
*/
|
||||
document.getElementById("reg-btn")?.addEventListener("click", () => {
|
||||
const lobbyInput = /** @type {HTMLInputElement|null} */ (document.getElementById("username"));
|
||||
const lobbyInput = /** @type {HTMLInputElement|null} */ (
|
||||
document.getElementById("username")
|
||||
);
|
||||
const lobbyName = lobbyInput ? lobbyInput.value.trim() : "";
|
||||
|
||||
if (lobbyName) {
|
||||
|
||||
@ -38,7 +38,10 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
const rank = index + 1;
|
||||
const isYou = entry.name === currentPlayer;
|
||||
const date = entry.date
|
||||
? new Date(entry.date).toLocaleDateString("en-CH", { day: "2-digit", month: "short" })
|
||||
? new Date(entry.date).toLocaleDateString("en-CH", {
|
||||
day: "2-digit",
|
||||
month: "short",
|
||||
})
|
||||
: "—";
|
||||
const rounds = (entry.scores || []).join(" · ") || "—";
|
||||
|
||||
|
||||
@ -18,10 +18,19 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
const avg = totalScore / 3;
|
||||
let emoji = "🌍";
|
||||
let title = "Not bad!";
|
||||
if (avg >= 85) { emoji = "🔥"; title = "Incredible!"; }
|
||||
else if (avg >= 70) { emoji = "🎉"; title = "Well done!"; }
|
||||
else if (avg >= 50) { emoji = "👏"; title = "Good effort!"; }
|
||||
else { emoji = "😅"; title = "Keep practising!"; }
|
||||
if (avg >= 85) {
|
||||
emoji = "🔥";
|
||||
title = "Incredible!";
|
||||
} else if (avg >= 70) {
|
||||
emoji = "🎉";
|
||||
title = "Well done!";
|
||||
} else if (avg >= 50) {
|
||||
emoji = "👏";
|
||||
title = "Good effort!";
|
||||
} else {
|
||||
emoji = "😅";
|
||||
title = "Keep practising!";
|
||||
}
|
||||
|
||||
document.getElementById("results-emoji").textContent = emoji;
|
||||
document.getElementById("results-title").textContent = title;
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
// scoring.js — accuracy calculation
|
||||
|
||||
const Scoring = (() => {
|
||||
|
||||
/**
|
||||
* Calculate a score from the drawn path points.
|
||||
* NOTE: Currently uses an effort-based approximation.
|
||||
|
||||
@ -23,21 +23,31 @@ const Storage = (() => {
|
||||
}
|
||||
|
||||
/** @param {string} name */
|
||||
function savePlayerName(name) { _set(KEYS.PLAYER_NAME, name.trim()); }
|
||||
function savePlayerName(name) {
|
||||
_set(KEYS.PLAYER_NAME, name.trim());
|
||||
}
|
||||
|
||||
/** @returns {string} */
|
||||
function getPlayerName() { return localStorage.getItem(KEYS.PLAYER_NAME) || "Anonymous"; }
|
||||
function getPlayerName() {
|
||||
return localStorage.getItem(KEYS.PLAYER_NAME) || "Anonymous";
|
||||
}
|
||||
|
||||
/** @param {string} name */
|
||||
function saveLobbyName(name) { _set(KEYS.LOBBY_NAME, name.trim()); }
|
||||
function saveLobbyName(name) {
|
||||
_set(KEYS.LOBBY_NAME, name.trim());
|
||||
}
|
||||
|
||||
/** @returns {string} */
|
||||
function getLobbyName() { return localStorage.getItem(KEYS.LOBBY_NAME) || "My Lobby"; }
|
||||
function getLobbyName() {
|
||||
return localStorage.getItem(KEYS.LOBBY_NAME) || "My Lobby";
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {{ scores: number[], totalScore: number, countries: string[] }} state
|
||||
*/
|
||||
function saveGameState(state) { _set(KEYS.GAME_STATE, JSON.stringify(state)); }
|
||||
function saveGameState(state) {
|
||||
_set(KEYS.GAME_STATE, JSON.stringify(state));
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {{ scores: number[], totalScore: number, countries: string[] } | null}
|
||||
@ -50,7 +60,9 @@ const Storage = (() => {
|
||||
}
|
||||
}
|
||||
|
||||
function clearGameState() { localStorage.removeItem(KEYS.GAME_STATE); }
|
||||
function clearGameState() {
|
||||
localStorage.removeItem(KEYS.GAME_STATE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add an entry to the leaderboard and keep the top 20.
|
||||
@ -74,12 +86,20 @@ const Storage = (() => {
|
||||
}
|
||||
}
|
||||
|
||||
function clearLeaderboard() { localStorage.removeItem(KEYS.LEADERBOARD); }
|
||||
function clearLeaderboard() {
|
||||
localStorage.removeItem(KEYS.LEADERBOARD);
|
||||
}
|
||||
|
||||
return {
|
||||
savePlayerName, getPlayerName,
|
||||
saveLobbyName, getLobbyName,
|
||||
saveGameState, getGameState, clearGameState,
|
||||
saveLeaderboard, getLeaderboard, clearLeaderboard,
|
||||
savePlayerName,
|
||||
getPlayerName,
|
||||
saveLobbyName,
|
||||
getLobbyName,
|
||||
saveGameState,
|
||||
getGameState,
|
||||
clearGameState,
|
||||
saveLeaderboard,
|
||||
getLeaderboard,
|
||||
clearLeaderboard,
|
||||
};
|
||||
})();
|
||||
|
||||
@ -27,18 +27,22 @@
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: var(--line);
|
||||
transition: background .3s;
|
||||
transition: background 0.3s;
|
||||
}
|
||||
|
||||
.round-pip.active { background: var(--sea); }
|
||||
.round-pip.done { background: var(--leaf); }
|
||||
.round-pip.active {
|
||||
background: var(--sea);
|
||||
}
|
||||
.round-pip.done {
|
||||
background: var(--leaf);
|
||||
}
|
||||
|
||||
.round-label {
|
||||
font-family: 'Syne', sans-serif;
|
||||
font-size: .82rem;
|
||||
font-family: "Syne", sans-serif;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 700;
|
||||
color: var(--ink-muted);
|
||||
letter-spacing: .06em;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
@ -52,15 +56,15 @@
|
||||
}
|
||||
|
||||
.country-name {
|
||||
font-family: 'Syne', sans-serif;
|
||||
font-family: "Syne", sans-serif;
|
||||
font-weight: 800;
|
||||
font-size: clamp(1.5rem, 3vw, 2.4rem);
|
||||
letter-spacing: -.03em;
|
||||
letter-spacing: -0.03em;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.country-hint {
|
||||
font-size: .82rem;
|
||||
font-size: 0.82rem;
|
||||
color: var(--ink-muted);
|
||||
margin-top: 4px;
|
||||
}
|
||||
@ -80,18 +84,18 @@
|
||||
}
|
||||
|
||||
.timer-num {
|
||||
font-family: 'Syne', sans-serif;
|
||||
font-family: "Syne", sans-serif;
|
||||
font-weight: 800;
|
||||
font-size: 2rem;
|
||||
line-height: 1;
|
||||
color: var(--ink);
|
||||
transition: color .3s;
|
||||
transition: color 0.3s;
|
||||
min-width: 2ch;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.timer-unit {
|
||||
font-size: .78rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 600;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
@ -109,17 +113,27 @@
|
||||
width: 100%;
|
||||
background: linear-gradient(90deg, var(--sea), var(--leaf));
|
||||
border-radius: 999px;
|
||||
transition: width 1s linear, background .4s ease;
|
||||
transition:
|
||||
width 1s linear,
|
||||
background 0.4s ease;
|
||||
}
|
||||
|
||||
/* Timer urgency states — applied via JS classList */
|
||||
.timer--warning .timer-bar,
|
||||
.timer--warning .timer-num { color: var(--gold); }
|
||||
.timer--warning .timer-bar { background: var(--gold); }
|
||||
.timer--warning .timer-num {
|
||||
color: var(--gold);
|
||||
}
|
||||
.timer--warning .timer-bar {
|
||||
background: var(--gold);
|
||||
}
|
||||
|
||||
.timer--danger .timer-bar,
|
||||
.timer--danger .timer-num { color: var(--danger); }
|
||||
.timer--danger .timer-bar { background: var(--danger); }
|
||||
.timer--danger .timer-num {
|
||||
color: var(--danger);
|
||||
}
|
||||
.timer--danger .timer-bar {
|
||||
background: var(--danger);
|
||||
}
|
||||
|
||||
/* ── Canvas area */
|
||||
.canvas-area {
|
||||
@ -140,21 +154,23 @@
|
||||
}
|
||||
|
||||
.canvas-wrap::before {
|
||||
content: 'Draw the border here';
|
||||
content: "Draw the border here";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: .9rem;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
color: var(--ink-muted);
|
||||
pointer-events: none;
|
||||
opacity: 1;
|
||||
transition: opacity .3s;
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
|
||||
.canvas-wrap.has-drawing::before { opacity: 0; }
|
||||
.canvas-wrap.has-drawing::before {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
#draw-canvas {
|
||||
display: block;
|
||||
@ -169,13 +185,15 @@
|
||||
top: 20px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%) translateY(-10px);
|
||||
font-family: 'Syne', sans-serif;
|
||||
font-family: "Syne", sans-serif;
|
||||
font-size: 2rem;
|
||||
font-weight: 800;
|
||||
opacity: 0;
|
||||
transition: opacity .4s ease, transform .4s ease;
|
||||
transition:
|
||||
opacity 0.4s ease,
|
||||
transform 0.4s ease;
|
||||
pointer-events: none;
|
||||
text-shadow: 0 2px 8px rgba(0,0,0,.12);
|
||||
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@ -189,23 +207,26 @@
|
||||
.sidebar-card {
|
||||
background: var(--glass);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid rgba(255,255,255,.85);
|
||||
border: 1px solid rgba(255, 255, 255, 0.85);
|
||||
border-radius: var(--r-lg);
|
||||
padding: 18px 20px;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.sidebar-card__label {
|
||||
font-size: .72rem;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: .08em;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--ink-muted);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* Round scores */
|
||||
.round-scores { display: grid; gap: 8px; }
|
||||
.round-scores {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.rscore-row {
|
||||
display: flex;
|
||||
@ -215,23 +236,25 @@
|
||||
}
|
||||
|
||||
.rscore-label {
|
||||
font-size: .82rem;
|
||||
font-size: 0.82rem;
|
||||
color: var(--ink-soft);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.rscore-val {
|
||||
font-family: 'Syne', sans-serif;
|
||||
font-family: "Syne", sans-serif;
|
||||
font-weight: 800;
|
||||
font-size: .9rem;
|
||||
font-size: 0.9rem;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.rscore-val.filled { color: var(--sea); }
|
||||
.rscore-val.filled {
|
||||
color: var(--sea);
|
||||
}
|
||||
|
||||
/* Player name in sidebar */
|
||||
.player-name-display {
|
||||
font-family: 'Syne', sans-serif;
|
||||
font-family: "Syne", sans-serif;
|
||||
font-weight: 700;
|
||||
font-size: 1rem;
|
||||
color: var(--ink);
|
||||
@ -256,9 +279,13 @@
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.sidebar-card { flex: 1 1 140px; }
|
||||
.sidebar-card {
|
||||
flex: 1 1 140px;
|
||||
}
|
||||
|
||||
.canvas-wrap { min-height: 340px; }
|
||||
.canvas-wrap {
|
||||
min-height: 340px;
|
||||
}
|
||||
|
||||
.game-topbar {
|
||||
grid-template-columns: auto 1fr auto;
|
||||
@ -266,7 +293,10 @@
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.game-layout { padding: 14px 0 20px; gap: 12px; }
|
||||
.game-layout {
|
||||
padding: 14px 0 20px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.game-topbar {
|
||||
grid-template-columns: 1fr;
|
||||
@ -274,18 +304,36 @@
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.game-country { text-align: left; }
|
||||
.game-timer { align-items: flex-start; }
|
||||
.timer-track { width: 100%; }
|
||||
.game-country {
|
||||
text-align: left;
|
||||
}
|
||||
.game-timer {
|
||||
align-items: flex-start;
|
||||
}
|
||||
.timer-track {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.canvas-wrap { min-height: 280px; }
|
||||
.canvas-wrap {
|
||||
min-height: 280px;
|
||||
}
|
||||
|
||||
.game-controls { flex-direction: column; }
|
||||
.game-controls .btn { width: 100%; }
|
||||
.game-controls {
|
||||
flex-direction: column;
|
||||
}
|
||||
.game-controls .btn {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.country-name { font-size: 1.4rem; }
|
||||
.timer-num { font-size: 1.6rem; }
|
||||
.canvas-wrap { min-height: 240px; }
|
||||
.country-name {
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
.timer-num {
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
.canvas-wrap {
|
||||
min-height: 240px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -26,8 +26,15 @@
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% { transform: scale(1); opacity: 1; }
|
||||
50% { transform: scale(1.4); opacity: 0.7; }
|
||||
0%,
|
||||
100% {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
50% {
|
||||
transform: scale(1.4);
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
|
||||
/* ─── HERO ─── */
|
||||
@ -99,8 +106,16 @@
|
||||
inset: 0;
|
||||
border-radius: var(--r-xl);
|
||||
background:
|
||||
radial-gradient(circle at 30% 25%, rgba(65, 184, 105, 0.18), transparent 50%),
|
||||
radial-gradient(circle at 75% 75%, rgba(26, 127, 196, 0.15), transparent 50%);
|
||||
radial-gradient(
|
||||
circle at 30% 25%,
|
||||
rgba(65, 184, 105, 0.18),
|
||||
transparent 50%
|
||||
),
|
||||
radial-gradient(
|
||||
circle at 75% 75%,
|
||||
rgba(26, 127, 196, 0.15),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
|
||||
.globe {
|
||||
@ -128,10 +143,36 @@
|
||||
border-radius: 46% 54% 58% 42%;
|
||||
}
|
||||
|
||||
.c1 { width: 30%; height: 22%; top: 18%; left: 12%; transform: rotate(-14deg); }
|
||||
.c2 { width: 18%; height: 28%; top: 30%; left: 46%; transform: rotate(8deg); border-radius: 40% 60% 50% 50%; }
|
||||
.c3 { width: 22%; height: 16%; top: 56%; right: 15%; transform: rotate(22deg); }
|
||||
.c4 { width: 12%; height: 18%; top: 68%; left: 20%; transform: rotate(-6deg); border-radius: 50%; }
|
||||
.c1 {
|
||||
width: 30%;
|
||||
height: 22%;
|
||||
top: 18%;
|
||||
left: 12%;
|
||||
transform: rotate(-14deg);
|
||||
}
|
||||
.c2 {
|
||||
width: 18%;
|
||||
height: 28%;
|
||||
top: 30%;
|
||||
left: 46%;
|
||||
transform: rotate(8deg);
|
||||
border-radius: 40% 60% 50% 50%;
|
||||
}
|
||||
.c3 {
|
||||
width: 22%;
|
||||
height: 16%;
|
||||
top: 56%;
|
||||
right: 15%;
|
||||
transform: rotate(22deg);
|
||||
}
|
||||
.c4 {
|
||||
width: 12%;
|
||||
height: 18%;
|
||||
top: 68%;
|
||||
left: 20%;
|
||||
transform: rotate(-6deg);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.globe-line {
|
||||
position: absolute;
|
||||
@ -142,10 +183,24 @@
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.gl1 { width: 60%; height: 100%; }
|
||||
.gl2 { width: 88%; height: 100%; }
|
||||
.gl3 { width: 100%; height: 55%; top: 50%; }
|
||||
.gl4 { width: 100%; height: 80%; top: 50%; }
|
||||
.gl1 {
|
||||
width: 60%;
|
||||
height: 100%;
|
||||
}
|
||||
.gl2 {
|
||||
width: 88%;
|
||||
height: 100%;
|
||||
}
|
||||
.gl3 {
|
||||
width: 100%;
|
||||
height: 55%;
|
||||
top: 50%;
|
||||
}
|
||||
.gl4 {
|
||||
width: 100%;
|
||||
height: 80%;
|
||||
top: 50%;
|
||||
}
|
||||
|
||||
.globe-badge {
|
||||
position: absolute;
|
||||
@ -162,17 +217,38 @@
|
||||
animation: floatBadge 3s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.gb--score { top: 14%; right: 6%; animation-delay: 0s; }
|
||||
.gb--country { bottom: 14%; left: 4%; animation-delay: 1.2s; }
|
||||
|
||||
@keyframes floatBadge {
|
||||
0%, 100% { transform: translateY(0); }
|
||||
50% { transform: translateY(-8px); }
|
||||
.gb--score {
|
||||
top: 14%;
|
||||
right: 6%;
|
||||
animation-delay: 0s;
|
||||
}
|
||||
.gb--country {
|
||||
bottom: 14%;
|
||||
left: 4%;
|
||||
animation-delay: 1.2s;
|
||||
}
|
||||
|
||||
.gb__dot { width: 8px; height: 8px; border-radius: 50%; }
|
||||
.gb__dot--green { background: var(--leaf); }
|
||||
.gb__dot--blue { background: var(--sea); }
|
||||
@keyframes floatBadge {
|
||||
0%,
|
||||
100% {
|
||||
transform: translateY(0);
|
||||
}
|
||||
50% {
|
||||
transform: translateY(-8px);
|
||||
}
|
||||
}
|
||||
|
||||
.gb__dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.gb__dot--green {
|
||||
background: var(--leaf);
|
||||
}
|
||||
.gb__dot--blue {
|
||||
background: var(--sea);
|
||||
}
|
||||
|
||||
/* ─── ABOUT ─── */
|
||||
.about {
|
||||
@ -214,7 +290,11 @@
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: var(--r-xl);
|
||||
background: radial-gradient(circle at 60% 40%, rgba(26, 127, 196, 0.1), transparent 50%);
|
||||
background: radial-gradient(
|
||||
circle at 60% 40%,
|
||||
rgba(26, 127, 196, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
|
||||
/* ─── STEPS ─── */
|
||||
@ -234,7 +314,9 @@
|
||||
border-radius: var(--r-lg);
|
||||
padding: 22px 26px;
|
||||
box-shadow: 0 4px 20px rgba(11, 31, 42, 0.06);
|
||||
transition: transform 0.2s, box-shadow 0.2s;
|
||||
transition:
|
||||
transform 0.2s,
|
||||
box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.step:hover {
|
||||
@ -321,34 +403,85 @@
|
||||
gap: 40px;
|
||||
}
|
||||
|
||||
.globe-card { min-height: 360px; }
|
||||
.mini-globe-wrap { max-width: 260px; }
|
||||
.globe-card {
|
||||
min-height: 360px;
|
||||
}
|
||||
.mini-globe-wrap {
|
||||
max-width: 260px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.hero { padding: 50px 0 40px; }
|
||||
.hero {
|
||||
padding: 50px 0 40px;
|
||||
}
|
||||
.about,
|
||||
.register { padding: 70px 0; }
|
||||
.register__card { padding: 28px 22px; }
|
||||
.globe-card { padding: 24px; min-height: 280px; }
|
||||
.register {
|
||||
padding: 70px 0;
|
||||
}
|
||||
.register__card {
|
||||
padding: 28px 22px;
|
||||
}
|
||||
.globe-card {
|
||||
padding: 24px;
|
||||
min-height: 280px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 420px) {
|
||||
.hero__title { font-size: 3rem; }
|
||||
.hero__title {
|
||||
font-size: 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.hero { padding: 36px 0 32px; min-height: auto; }
|
||||
.hero__title { font-size: 2.6rem; letter-spacing: -0.03em; }
|
||||
.hero__desc { font-size: 0.95rem; margin-bottom: 28px; }
|
||||
.globe-card { padding: 16px; min-height: 240px; }
|
||||
.globe-badge { padding: 7px 10px; font-size: 0.72rem; }
|
||||
.about,
|
||||
.register { padding: 52px 0; }
|
||||
.about__desc { font-size: 0.95rem; }
|
||||
.step { padding: 16px 18px; gap: 14px; }
|
||||
.step__num { width: 46px; height: 46px; font-size: 0.88rem; border-radius: 12px; }
|
||||
.register__card { padding: 22px 16px; border-radius: var(--r-lg); }
|
||||
.card-title { font-size: 1.25rem; margin-bottom: 22px; }
|
||||
.btn--full { padding: 14px 18px; font-size: 0.95rem; }
|
||||
.hero {
|
||||
padding: 36px 0 32px;
|
||||
min-height: auto;
|
||||
}
|
||||
.hero__title {
|
||||
font-size: 2.6rem;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
.hero__desc {
|
||||
font-size: 0.95rem;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
.globe-card {
|
||||
padding: 16px;
|
||||
min-height: 240px;
|
||||
}
|
||||
.globe-badge {
|
||||
padding: 7px 10px;
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
.about,
|
||||
.register {
|
||||
padding: 52px 0;
|
||||
}
|
||||
.about__desc {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
.step {
|
||||
padding: 16px 18px;
|
||||
gap: 14px;
|
||||
}
|
||||
.step__num {
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
font-size: 0.88rem;
|
||||
border-radius: 12px;
|
||||
}
|
||||
.register__card {
|
||||
padding: 22px 16px;
|
||||
border-radius: var(--r-lg);
|
||||
}
|
||||
.card-title {
|
||||
font-size: 1.25rem;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
.btn--full {
|
||||
padding: 14px 18px;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,7 +35,11 @@
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.lb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
|
||||
.lb-actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* ─── TABLE ─── */
|
||||
.lb-table {
|
||||
@ -62,9 +66,13 @@
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.lb-th.right { text-align: right; }
|
||||
.lb-th.right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.lb-body { display: grid; }
|
||||
.lb-body {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.lb-row {
|
||||
display: grid;
|
||||
@ -76,18 +84,34 @@
|
||||
animation: fadeRow 0.4s ease both;
|
||||
}
|
||||
|
||||
.lb-row:last-child { border-bottom: none; }
|
||||
.lb-row:hover { background: var(--cream); }
|
||||
.lb-row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.lb-row:hover {
|
||||
background: var(--cream);
|
||||
}
|
||||
|
||||
@keyframes fadeRow {
|
||||
from { opacity: 0; transform: translateY(8px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(8px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* ─── TOP 3 HIGHLIGHT ─── */
|
||||
.lb-row.rank-1 { background: rgba(240, 180, 40, 0.07); }
|
||||
.lb-row.rank-2 { background: rgba(180, 180, 195, 0.06); }
|
||||
.lb-row.rank-3 { background: rgba(205, 130, 70, 0.05); }
|
||||
.lb-row.rank-1 {
|
||||
background: rgba(240, 180, 40, 0.07);
|
||||
}
|
||||
.lb-row.rank-2 {
|
||||
background: rgba(180, 180, 195, 0.06);
|
||||
}
|
||||
.lb-row.rank-3 {
|
||||
background: rgba(205, 130, 70, 0.05);
|
||||
}
|
||||
|
||||
.lb-rank {
|
||||
font-family: "Syne", sans-serif;
|
||||
@ -96,11 +120,19 @@
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.lb-row.rank-1 .lb-rank { color: var(--gold); }
|
||||
.lb-row.rank-2 .lb-rank { color: #a0a0b0; }
|
||||
.lb-row.rank-3 .lb-rank { color: #c07840; }
|
||||
.lb-row.rank-1 .lb-rank {
|
||||
color: var(--gold);
|
||||
}
|
||||
.lb-row.rank-2 .lb-rank {
|
||||
color: #a0a0b0;
|
||||
}
|
||||
.lb-row.rank-3 .lb-rank {
|
||||
color: #c07840;
|
||||
}
|
||||
|
||||
.lb-medal { font-size: 1.1rem; }
|
||||
.lb-medal {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.lb-name {
|
||||
font-family: "Syne", sans-serif;
|
||||
@ -140,9 +172,15 @@
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.lb-score.gold { color: var(--gold); }
|
||||
.lb-score.silver { color: #888898; }
|
||||
.lb-score.bronze { color: #c07840; }
|
||||
.lb-score.gold {
|
||||
color: var(--gold);
|
||||
}
|
||||
.lb-score.silver {
|
||||
color: #888898;
|
||||
}
|
||||
.lb-score.bronze {
|
||||
color: #c07840;
|
||||
}
|
||||
|
||||
/* ─── EMPTY STATE ─── */
|
||||
.lb-empty {
|
||||
@ -150,7 +188,10 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.lb-empty__icon { font-size: 3rem; margin-bottom: 12px; }
|
||||
.lb-empty__icon {
|
||||
font-size: 3rem;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.lb-empty__text {
|
||||
font-size: 1rem;
|
||||
@ -172,22 +213,35 @@
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.your-score-bar__text { font-size: 0.9rem; color: var(--ink-soft); }
|
||||
.your-score-bar__text strong { color: var(--ink); }
|
||||
.your-score-bar__text {
|
||||
font-size: 0.9rem;
|
||||
color: var(--ink-soft);
|
||||
}
|
||||
.your-score-bar__text strong {
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
/* ─── RESPONSIVE ─── */
|
||||
@media (max-width: 640px) {
|
||||
.lb-page { padding: 40px 0; }
|
||||
.lb-page {
|
||||
padding: 40px 0;
|
||||
}
|
||||
|
||||
.lb-table-head,
|
||||
.lb-row { grid-template-columns: 44px 1fr 72px; }
|
||||
.lb-row {
|
||||
grid-template-columns: 44px 1fr 72px;
|
||||
}
|
||||
|
||||
.lb-th.hide-sm,
|
||||
.lb-rounds,
|
||||
.lb-date { display: none; }
|
||||
.lb-date {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.lb-table-head,
|
||||
.lb-row { padding: 12px 16px; }
|
||||
.lb-row {
|
||||
padding: 12px 16px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,25 +23,25 @@
|
||||
padding: 10px 18px;
|
||||
border-radius: var(--r-lg);
|
||||
background: var(--glass);
|
||||
border: 1px solid rgba(255,255,255,.9);
|
||||
border: 1px solid rgba(255, 255, 255, 0.9);
|
||||
box-shadow: var(--shadow-sm);
|
||||
backdrop-filter: blur(10px);
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.lobby__name-icon { font-size: 1.1rem; }
|
||||
.lobby__name-icon {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
#lobby-name-display {
|
||||
font-family: 'Syne', sans-serif;
|
||||
font-family: "Syne", sans-serif;
|
||||
font-weight: 700;
|
||||
font-size: 1rem;
|
||||
color: var(--ink);
|
||||
letter-spacing: -.01em;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
/* Left side promo */
|
||||
.lobby__promo {}
|
||||
|
||||
/* ─── EYEBROW ─── */
|
||||
.eyebrow {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@ -49,11 +49,11 @@
|
||||
padding: 6px 14px 6px 10px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--leaf-dim);
|
||||
background: rgba(65,184,105,.08);
|
||||
background: rgba(65, 184, 105, 0.08);
|
||||
color: #289149;
|
||||
font-size: .78rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: .05em;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
@ -67,16 +67,23 @@
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% { transform: scale(1); opacity: 1; }
|
||||
50% { transform: scale(1.45); opacity: .7; }
|
||||
0%,
|
||||
100% {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
50% {
|
||||
transform: scale(1.45);
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
|
||||
.lobby__title {
|
||||
font-family: 'Syne', sans-serif;
|
||||
font-family: "Syne", sans-serif;
|
||||
font-weight: 800;
|
||||
font-size: clamp(2.8rem, 5.5vw, 5rem);
|
||||
line-height: .94;
|
||||
letter-spacing: -.04em;
|
||||
line-height: 0.94;
|
||||
letter-spacing: -0.04em;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
@ -109,15 +116,17 @@
|
||||
padding: 8px 14px;
|
||||
border-radius: 999px;
|
||||
background: var(--glass);
|
||||
border: 1px solid rgba(255,255,255,.9);
|
||||
border: 1px solid rgba(255, 255, 255, 0.9);
|
||||
box-shadow: var(--shadow-sm);
|
||||
font-size: .82rem;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
color: var(--ink-soft);
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
.badge__icon { font-size: 1rem; }
|
||||
.badge__icon {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
/* Right side card */
|
||||
.lobby__card {
|
||||
@ -129,15 +138,15 @@
|
||||
}
|
||||
|
||||
.lobby__card-title {
|
||||
font-family: 'Syne', sans-serif;
|
||||
font-family: "Syne", sans-serif;
|
||||
font-weight: 800;
|
||||
font-size: 1.5rem;
|
||||
letter-spacing: -.02em;
|
||||
letter-spacing: -0.02em;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.lobby__card-sub {
|
||||
font-size: .9rem;
|
||||
font-size: 0.9rem;
|
||||
color: var(--ink-muted);
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
@ -146,15 +155,26 @@
|
||||
|
||||
/* ─── Responsive ─── */
|
||||
@media (max-width: 900px) {
|
||||
.lobby__inner { grid-template-columns: 1fr; gap: 40px; }
|
||||
.lobby__inner {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.lobby { padding: 44px 0; }
|
||||
.lobby__card { padding: 28px 22px; }
|
||||
.lobby {
|
||||
padding: 44px 0;
|
||||
}
|
||||
.lobby__card {
|
||||
padding: 28px 22px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.lobby__card { padding: 22px 16px; }
|
||||
.lobby__title { font-size: 2.4rem; }
|
||||
.lobby__card {
|
||||
padding: 22px 16px;
|
||||
}
|
||||
.lobby__title {
|
||||
font-size: 2.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/* main.css — shared design tokens & base */
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600&display=swap');
|
||||
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600&display=swap");
|
||||
|
||||
:root {
|
||||
--ink: #0b1f2a;
|
||||
@ -8,17 +8,17 @@
|
||||
--ink-muted: #7a9aaa;
|
||||
--sea: #1a7fc4;
|
||||
--sea-light: #4faae0;
|
||||
--sea-dim: rgba(26,127,196,.12);
|
||||
--sea-dim: rgba(26, 127, 196, 0.12);
|
||||
--leaf: #41b869;
|
||||
--leaf-dim: rgba(65,184,105,.13);
|
||||
--leaf-dim: rgba(65, 184, 105, 0.13);
|
||||
--gold: #f0b429;
|
||||
--danger: #e05c5c;
|
||||
--cream: #f4f9f6;
|
||||
--white: #ffffff;
|
||||
--glass: rgba(255,255,255,.72);
|
||||
--line: rgba(11,31,42,.09);
|
||||
--shadow: 0 24px 60px rgba(11,31,42,.10);
|
||||
--shadow-sm: 0 4px 20px rgba(11,31,42,.07);
|
||||
--glass: rgba(255, 255, 255, 0.72);
|
||||
--line: rgba(11, 31, 42, 0.09);
|
||||
--shadow: 0 24px 60px rgba(11, 31, 42, 0.1);
|
||||
--shadow-sm: 0 4px 20px rgba(11, 31, 42, 0.07);
|
||||
--r-xl: 32px;
|
||||
--r-lg: 22px;
|
||||
--r-md: 14px;
|
||||
@ -26,12 +26,20 @@
|
||||
--hh: 72px;
|
||||
}
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html { scroll-behavior: smooth; }
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
font-family: "DM Sans", sans-serif;
|
||||
color: var(--ink);
|
||||
background: var(--cream);
|
||||
overflow-x: hidden;
|
||||
@ -40,18 +48,26 @@ body {
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: '';
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background:
|
||||
radial-gradient(ellipse 60% 50% at 10% 0%, rgba(65,184,105,.10) 0%, transparent 60%),
|
||||
radial-gradient(ellipse 50% 60% at 90% 100%, rgba(26,127,196,.10) 0%, transparent 60%);
|
||||
radial-gradient(
|
||||
ellipse 60% 50% at 10% 0%,
|
||||
rgba(65, 184, 105, 0.1) 0%,
|
||||
transparent 60%
|
||||
),
|
||||
radial-gradient(
|
||||
ellipse 50% 60% at 90% 100%,
|
||||
rgba(26, 127, 196, 0.1) 0%,
|
||||
transparent 60%
|
||||
);
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
body::after {
|
||||
content: '';
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background-image:
|
||||
@ -62,11 +78,24 @@ body::after {
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
a { color: inherit; text-decoration: none; }
|
||||
img, svg { display: block; max-width: 100%; }
|
||||
button, input { font: inherit; }
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
img,
|
||||
svg {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
button,
|
||||
input {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.wrap { position: relative; z-index: 1; }
|
||||
.wrap {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 100%;
|
||||
@ -166,7 +195,6 @@ button, input { font: inherit; }
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
|
||||
/* ─── BUTTONS ─── */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
@ -175,32 +203,53 @@ button, input { font: inherit; }
|
||||
gap: 8px;
|
||||
padding: 15px 28px;
|
||||
border-radius: var(--r-lg);
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
font-family: "DM Sans", sans-serif;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
transition: transform .2s, box-shadow .2s, opacity .2s;
|
||||
transition:
|
||||
transform 0.2s,
|
||||
box-shadow 0.2s,
|
||||
opacity 0.2s;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.btn:hover:not(:disabled) { transform: translateY(-2px); }
|
||||
.btn:disabled { opacity: .45; cursor: not-allowed; }
|
||||
.btn:hover:not(:disabled) {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.btn:disabled {
|
||||
opacity: 0.45;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.btn--primary {
|
||||
color: var(--white);
|
||||
background: linear-gradient(135deg, var(--sea) 0%, #159fd4 50%, var(--leaf) 100%);
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
var(--sea) 0%,
|
||||
#159fd4 50%,
|
||||
var(--leaf) 100%
|
||||
);
|
||||
background-size: 200% 200%;
|
||||
box-shadow: 0 8px 24px rgba(26,127,196,.28);
|
||||
box-shadow: 0 8px 24px rgba(26, 127, 196, 0.28);
|
||||
animation: gradShift 4s ease infinite;
|
||||
}
|
||||
|
||||
.btn--primary:hover:not(:disabled) { box-shadow: 0 12px 32px rgba(26,127,196,.4); }
|
||||
.btn--primary:hover:not(:disabled) {
|
||||
box-shadow: 0 12px 32px rgba(26, 127, 196, 0.4);
|
||||
}
|
||||
|
||||
@keyframes gradShift {
|
||||
0% { background-position: 0% 50%; }
|
||||
50% { background-position: 100% 50%; }
|
||||
100% { background-position: 0% 50%; }
|
||||
0% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
50% {
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
100% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.btn--ghost {
|
||||
@ -209,23 +258,32 @@ button, input { font: inherit; }
|
||||
border: 1.5px solid var(--line);
|
||||
}
|
||||
|
||||
.btn--ghost:hover:not(:disabled) { border-color: var(--ink-muted); color: var(--ink); }
|
||||
.btn--ghost:hover:not(:disabled) {
|
||||
border-color: var(--ink-muted);
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.btn--danger {
|
||||
color: var(--white);
|
||||
background: var(--danger);
|
||||
box-shadow: 0 6px 18px rgba(224,92,92,.25);
|
||||
box-shadow: 0 6px 18px rgba(224, 92, 92, 0.25);
|
||||
}
|
||||
|
||||
.btn--full { width: 100%; }
|
||||
.btn--full {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.btn--sm { padding: 10px 20px; font-size: .88rem; border-radius: var(--r-md); }
|
||||
.btn--sm {
|
||||
padding: 10px 20px;
|
||||
font-size: 0.88rem;
|
||||
border-radius: var(--r-md);
|
||||
}
|
||||
|
||||
/* ─── CARD ─── */
|
||||
.card {
|
||||
background: var(--glass);
|
||||
backdrop-filter: blur(12px);
|
||||
border: 1px solid rgba(255,255,255,.8);
|
||||
border: 1px solid rgba(255, 255, 255, 0.8);
|
||||
border-radius: var(--r-xl);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
@ -237,26 +295,32 @@ button, input { font: inherit; }
|
||||
border-radius: 999px;
|
||||
background: var(--sea-dim);
|
||||
color: var(--sea);
|
||||
font-size: .78rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: .06em;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-family: 'Syne', sans-serif;
|
||||
font-family: "Syne", sans-serif;
|
||||
font-weight: 800;
|
||||
font-size: clamp(2rem, 4vw, 3.6rem);
|
||||
line-height: 1.04;
|
||||
letter-spacing: -.03em;
|
||||
letter-spacing: -0.03em;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
/* ─── FORM ─── */
|
||||
.form { display: grid; gap: 20px; }
|
||||
.form {
|
||||
display: grid;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.field { display: grid; gap: 8px; }
|
||||
.field {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.field label {
|
||||
font-size: 0.84rem;
|
||||
@ -274,10 +338,14 @@ button, input { font: inherit; }
|
||||
background: var(--cream);
|
||||
color: var(--ink);
|
||||
font-size: 0.98rem;
|
||||
transition: border-color 0.18s, box-shadow 0.18s;
|
||||
transition:
|
||||
border-color 0.18s,
|
||||
box-shadow 0.18s;
|
||||
}
|
||||
|
||||
.field input::placeholder { color: var(--ink-muted); }
|
||||
.field input::placeholder {
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.field input:focus {
|
||||
outline: none;
|
||||
@ -329,7 +397,6 @@ button, input { font: inherit; }
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
.footer__label {
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
@ -361,28 +428,86 @@ button, input { font: inherit; }
|
||||
.reveal {
|
||||
opacity: 0;
|
||||
transform: translateY(24px);
|
||||
transition: opacity .55s ease, transform .55s ease;
|
||||
transition:
|
||||
opacity 0.55s ease,
|
||||
transform 0.55s ease;
|
||||
}
|
||||
|
||||
.reveal.visible { opacity: 1; transform: translateY(0); }
|
||||
.reveal-delay-1 { transition-delay: .1s; }
|
||||
.reveal-delay-2 { transition-delay: .2s; }
|
||||
.reveal-delay-3 { transition-delay: .32s; }
|
||||
.reveal.visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
.reveal-delay-1 {
|
||||
transition-delay: 0.1s;
|
||||
}
|
||||
.reveal-delay-2 {
|
||||
transition-delay: 0.2s;
|
||||
}
|
||||
.reveal-delay-3 {
|
||||
transition-delay: 0.32s;
|
||||
}
|
||||
|
||||
/* ─── NOSCRIPT ─── */
|
||||
.noscript-msg {
|
||||
padding: 1.5rem 2rem;
|
||||
background: var(--danger);
|
||||
color: var(--white);
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* ─── REDUCED MOTION ─── */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ─── RESPONSIVE BASE ─── */
|
||||
@media (max-width: 680px) {
|
||||
.container { padding: 0 18px; }
|
||||
.nav__link { display: none; }
|
||||
.footer__inner { grid-template-columns: 1fr; }
|
||||
.footer__center, .footer__right { justify-self: start; text-align: left; }
|
||||
.socials { justify-content: flex-start; }
|
||||
.footer__right { justify-content: flex-start; }
|
||||
.container {
|
||||
padding: 0 18px;
|
||||
}
|
||||
.nav__link {
|
||||
display: none;
|
||||
}
|
||||
.footer__inner {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.footer__center,
|
||||
.footer__right {
|
||||
justify-self: start;
|
||||
text-align: left;
|
||||
}
|
||||
.socials {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.footer__right {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
:root { --r-xl: 22px; --r-lg: 16px; }
|
||||
.container { padding: 0 14px; }
|
||||
.logo__mark { width: 34px; height: 34px; }
|
||||
.logo__text { font-size: 1.05rem; }
|
||||
.nav__cta { padding: 7px 12px; font-size: .82rem; }
|
||||
:root {
|
||||
--r-xl: 22px;
|
||||
--r-lg: 16px;
|
||||
}
|
||||
.container {
|
||||
padding: 0 14px;
|
||||
}
|
||||
.logo__mark {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
}
|
||||
.logo__text {
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
.nav__cta {
|
||||
padding: 7px 12px;
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
}
|
||||
|
||||
@ -27,8 +27,14 @@
|
||||
}
|
||||
|
||||
@keyframes popIn {
|
||||
from { transform: scale(0); opacity: 0; }
|
||||
to { transform: scale(1); opacity: 1; }
|
||||
from {
|
||||
transform: scale(0);
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.results-title {
|
||||
@ -45,11 +51,18 @@
|
||||
color: var(--ink-soft);
|
||||
}
|
||||
|
||||
.results-player strong { color: var(--ink); }
|
||||
.results-player strong {
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
/* ─── TOTAL SCORE ─── */
|
||||
.score-total-card {
|
||||
background: linear-gradient(135deg, var(--sea) 0%, #159fd4 50%, var(--leaf) 100%);
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
var(--sea) 0%,
|
||||
#159fd4 50%,
|
||||
var(--leaf) 100%
|
||||
);
|
||||
border-radius: var(--r-xl);
|
||||
padding: 36px 40px;
|
||||
text-align: center;
|
||||
@ -59,8 +72,14 @@
|
||||
}
|
||||
|
||||
@keyframes slideUp {
|
||||
from { transform: translateY(30px); opacity: 0; }
|
||||
to { transform: translateY(0); opacity: 1; }
|
||||
from {
|
||||
transform: translateY(30px);
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.score-total-label {
|
||||
@ -117,7 +136,10 @@
|
||||
color: var(--ink-soft);
|
||||
}
|
||||
|
||||
.round-rows { display: grid; gap: 14px; }
|
||||
.round-rows {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.round-row {
|
||||
display: grid;
|
||||
@ -181,16 +203,28 @@
|
||||
animation: slideUp 0.5s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
||||
}
|
||||
|
||||
.results-actions .btn { flex: 1 1 180px; }
|
||||
.results-actions .btn {
|
||||
flex: 1 1 180px;
|
||||
}
|
||||
|
||||
/* ─── RESPONSIVE ─── */
|
||||
@media (max-width: 600px) {
|
||||
.results-page { padding: 40px 0; }
|
||||
.score-total-card { padding: 28px 24px; }
|
||||
.rounds-card { padding: 22px 20px; }
|
||||
.results-actions .btn { flex-basis: 100%; }
|
||||
.results-page {
|
||||
padding: 40px 0;
|
||||
}
|
||||
.score-total-card {
|
||||
padding: 28px 24px;
|
||||
}
|
||||
.rounds-card {
|
||||
padding: 22px 20px;
|
||||
}
|
||||
.results-actions .btn {
|
||||
flex-basis: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.score-total-num { font-size: 3.4rem; }
|
||||
.score-total-num {
|
||||
font-size: 3.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user