Improve CSS formatting

Reviewed-on: #7
This commit is contained in:
Niklas Peng 2026-06-12 03:07:21 +02:00
commit 233f7e809a
11 changed files with 436 additions and 613 deletions

View File

@ -147,4 +147,4 @@
<script type="module" src="scripts/game.js"></script> <script type="module" src="scripts/game.js"></script>
</body> </body>
</html> </html>

View File

@ -12,6 +12,7 @@
<p class="noscript-msg">GeoDraw requires JavaScript. Please enable it in your browser settings.</p> <p class="noscript-msg">GeoDraw requires JavaScript. Please enable it in your browser settings.</p>
</noscript> </noscript>
<div class="wrap"> <div class="wrap">
<header class="header"> <header class="header">
<div class="container header__inner"> <div class="container header__inner">
<a href="#hero" class="logo"> <a href="#hero" class="logo">
@ -33,6 +34,8 @@
</header> </header>
<main> <main>
<!-- ─── HERO ─── -->
<section class="hero" id="hero"> <section class="hero" id="hero">
<div class="container hero__inner"> <div class="container hero__inner">
@ -61,23 +64,23 @@
<div class="globe-card reveal reveal-delay-1"> <div class="globe-card reveal reveal-delay-1">
<div class="globe"> <div class="globe">
<div class="continent c1"></div> <div class="continent continent--a"></div>
<div class="continent c2"></div> <div class="continent continent--b"></div>
<div class="continent c3"></div> <div class="continent continent--c"></div>
<div class="continent c4"></div> <div class="continent continent--d"></div>
<div class="globe-line gl1"></div> <div class="globe-line globe-line--meridian-sm"></div>
<div class="globe-line gl2"></div> <div class="globe-line globe-line--meridian-lg"></div>
<div class="globe-line gl3"></div> <div class="globe-line globe-line--parallel-sm"></div>
<div class="globe-line gl4"></div> <div class="globe-line globe-line--parallel-lg"></div>
</div> </div>
<div class="globe-badge gb--score"> <div class="globe-badge globe-badge--score">
<span class="gb__dot gb__dot--green"></span> <span class="globe-badge__dot globe-badge__dot--green"></span>
<span>Score: 94%</span> <span>Score: 94%</span>
</div> </div>
<div class="globe-badge gb--country"> <div class="globe-badge globe-badge--country">
<span class="gb__dot gb__dot--blue"></span> <span class="globe-badge__dot globe-badge__dot--blue"></span>
<span>Norway — Round 3</span> <span>Norway — Round 3</span>
</div> </div>
</div> </div>
@ -85,6 +88,7 @@
</div> </div>
</section> </section>
<!-- ─── ABOUT ─── -->
<section class="about" id="about"> <section class="about" id="about">
<div class="container about__inner"> <div class="container about__inner">
@ -95,36 +99,32 @@
GeoDraw is a competitive browser game built on memory and precision. You get a country name, sketch its outline, and the system calculates how close you were to the real border. GeoDraw is a competitive browser game built on memory and precision. You get a country name, sketch its outline, and the system calculates how close you were to the real border.
</p> </p>
<div class="mini-globe-wrap reveal reveal-delay-3"> <div class="game-preview reveal reveal-delay-3">
<svg class="game-preview-svg" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> <svg class="game-preview__svg" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<!-- Grid lines --> <!-- Grid lines -->
<line x1="0" y1="66" x2="200" y2="66" stroke="rgba(11,31,42,.06)" stroke-width="1"/> <line x1="0" y1="66" x2="200" y2="66" stroke="rgba(11,31,42,.06)" stroke-width="1"/>
<line x1="0" y1="133" x2="200" y2="133" stroke="rgba(11,31,42,.06)" stroke-width="1"/> <line x1="0" y1="133" x2="200" y2="133" stroke="rgba(11,31,42,.06)" stroke-width="1"/>
<line x1="66" y1="0" x2="66" y2="200" stroke="rgba(11,31,42,.06)" stroke-width="1"/> <line x1="66" y1="0" x2="66" y2="200" stroke="rgba(11,31,42,.06)" stroke-width="1"/>
<line x1="133" y1="0" x2="133" y2="200" stroke="rgba(11,31,42,.06)" stroke-width="1"/> <line x1="133" y1="0" x2="133" y2="200" stroke="rgba(11,31,42,.06)" stroke-width="1"/>
<!-- Reference outline (filled) --> <!-- Reference outline (filled) -->
<path d="M100 22 L148 40 L162 76 L150 112 L124 148 L80 142 L52 108 L54 66 Z" <path d="M100 22 L148 40 L162 76 L150 112 L124 148 L80 142 L52 108 L54 66 Z"
fill="rgba(26,127,196,.10)" fill="rgba(26,127,196,.10)"
stroke="rgba(26,127,196,.5)" stroke="rgba(26,127,196,.5)"
stroke-width="2" stroke-width="2"
stroke-linejoin="round"/> stroke-linejoin="round"/>
<!-- Player's drawn path -->
<!-- Player's drawn path (slightly off, freehand feel) -->
<path d="M96 26 L152 44 L164 82 L146 118 L120 152 L76 144 L48 106 L52 62 Z" <path d="M96 26 L152 44 L164 82 L146 118 L120 152 L76 144 L48 106 L52 62 Z"
fill="none" fill="none"
stroke="#1a7fc4" stroke="#1a7fc4"
stroke-width="2.5" stroke-width="2.5"
stroke-linejoin="round" stroke-linejoin="round"
stroke-linecap="round"/> stroke-linecap="round"/>
<!-- City dot: Bern --> <!-- City dot: Bern -->
<circle cx="96" cy="100" r="4" fill="rgba(240,180,40,.9)"/> <circle cx="96" cy="100" r="4" fill="rgba(240,180,40,.9)"/>
<circle cx="96" cy="100" r="4" fill="none" stroke="white" stroke-width="1.5"/> <circle cx="96" cy="100" r="4" fill="none" stroke="white" stroke-width="1.5"/>
<!-- City dot: Zurich --> <!-- City dot: Zurich -->
<circle cx="118" cy="72" r="4" fill="rgba(240,180,40,.9)"/> <circle cx="118" cy="72" r="4" fill="rgba(240,180,40,.9)"/>
<circle cx="118" cy="72" r="4" fill="none" stroke="white" stroke-width="1.5"/> <circle cx="118" cy="72" r="4" fill="none" stroke="white" stroke-width="1.5"/>
<!-- Score badge --> <!-- Score badge -->
<rect x="118" y="22" width="62" height="26" rx="8" fill="white" filter="url(#shadow)"/> <rect x="118" y="22" width="62" height="26" rx="8" fill="white" filter="url(#shadow)"/>
<defs> <defs>
@ -181,13 +181,11 @@
<div class="register__card reveal reveal-delay-1"> <div class="register__card reveal reveal-delay-1">
<!-- Toggle switch -->
<div class="lobby-toggle" role="group" aria-label="Lobby action"> <div class="lobby-toggle" role="group" aria-label="Lobby action">
<button type="button" class="lobby-toggle__btn lobby-toggle__btn--active" id="toggle-create-btn">Create</button> <button type="button" class="lobby-toggle__btn lobby-toggle__btn--active" id="toggle-create-btn">Create</button>
<button type="button" class="lobby-toggle__btn" id="toggle-join-btn">Join</button> <button type="button" class="lobby-toggle__btn" id="toggle-join-btn">Join</button>
</div> </div>
<!-- Create form (shown by default) -->
<div id="form-create"> <div id="form-create">
<p class="card-title">Create a game</p> <p class="card-title">Create a game</p>
<div class="form"> <div class="form">
@ -203,7 +201,6 @@
</div> </div>
</div> </div>
<!-- Join form (hidden by default) -->
<div id="form-join" hidden> <div id="form-join" hidden>
<p class="card-title">Join a game</p> <p class="card-title">Join a game</p>
<div class="form"> <div class="form">
@ -228,18 +225,10 @@
<footer class="footer"> <footer class="footer">
<div class="container footer__inner"> <div class="container footer__inner">
<div class="footer__left">
</div>
<div class="footer__center"> <div class="footer__center">
<a href="#hero" class="footer__brand">GeoDraw</a> <a href="#hero" class="footer__brand">GeoDraw</a>
<p class="footer__sub">Browser geography game</p> <p class="footer__sub">Browser geography game</p>
</div> </div>
<div class="footer__right">
</div>
</div> </div>
</footer> </footer>
@ -247,4 +236,4 @@
<script type="module" src="scripts/index.js"></script> <script type="module" src="scripts/index.js"></script>
</body> </body>
</html> </html>

View File

@ -91,4 +91,4 @@
<script type="module" src="scripts/leaderboard.js"></script> <script type="module" src="scripts/leaderboard.js"></script>
</body> </body>
</html> </html>

View File

@ -116,4 +116,4 @@
<script type="module" src="scripts/lobby.js"></script> <script type="module" src="scripts/lobby.js"></script>
</body> </body>
</html> </html>

View File

@ -60,12 +60,8 @@
</div> </div>
<div class="results-actions"> <div class="results-actions">
<a href="lobby.html" class="btn btn--primary"> <a href="lobby.html" class="btn btn--primary">Play Again →</a>
Play Again → <a href="leaderboard.html" class="btn btn--ghost">🏆 Leaderboard</a>
</a>
<a href="leaderboard.html" class="btn btn--ghost">
🏆 Leaderboard
</a>
</div> </div>
</div> </div>
@ -74,7 +70,7 @@
<footer class="footer"> <footer class="footer">
<div class="container footer__inner"> <div class="container footer__inner">
<div> <div class="footer__left">
<a href="index.html" class="footer__brand">GeoDraw</a> <a href="index.html" class="footer__brand">GeoDraw</a>
<p class="footer__sub">© 2026 · Browser geography game</p> <p class="footer__sub">© 2026 · Browser geography game</p>
</div> </div>
@ -98,4 +94,4 @@
<script type="module" src="scripts/results.js"></script> <script type="module" src="scripts/results.js"></script>
</body> </body>
</html> </html>

View File

@ -1,5 +1,8 @@
/* game.css */ /* game.css */
/*
GAME LAYOUT
*/
.game-layout { .game-layout {
min-height: calc(100vh - var(--hh)); min-height: calc(100vh - var(--hh));
display: grid; display: grid;
@ -8,7 +11,10 @@
gap: 16px; gap: 16px;
} }
/* ── Top bar */
/*
TOP BAR
*/
.game-topbar { .game-topbar {
display: grid; display: grid;
grid-template-columns: 1fr auto 1fr; grid-template-columns: 1fr auto 1fr;
@ -16,6 +22,7 @@
gap: 16px; gap: 16px;
} }
/* Round pips */
.game-round { .game-round {
display: flex; display: flex;
align-items: center; align-items: center;
@ -30,12 +37,8 @@
transition: background 0.3s; transition: background 0.3s;
} }
.round-pip.active { .round-pip--active { background: var(--sea); }
background: var(--sea); .round-pip--done { background: var(--leaf); }
}
.round-pip.done {
background: var(--leaf);
}
.round-label { .round-label {
font-family: "Syne", sans-serif; font-family: "Syne", sans-serif;
@ -113,29 +116,20 @@
width: 100%; width: 100%;
background: linear-gradient(90deg, var(--sea), var(--leaf)); background: linear-gradient(90deg, var(--sea), var(--leaf));
border-radius: 999px; border-radius: 999px;
transition: transition: width 1s linear, background 0.4s ease;
width 1s linear,
background 0.4s ease;
} }
/* Timer urgency states — applied via JS classList */ /* Timer urgency states — toggled via JS */
.timer--warning .timer-bar, .timer--warning .timer-num { color: var(--gold); }
.timer--warning .timer-num { .timer--warning .timer-bar { background: var(--gold); }
color: var(--gold);
}
.timer--warning .timer-bar {
background: var(--gold);
}
.timer--danger .timer-bar, .timer--danger .timer-num { color: var(--danger); }
.timer--danger .timer-num { .timer--danger .timer-bar { background: var(--danger); }
color: var(--danger);
}
.timer--danger .timer-bar {
background: var(--danger);
}
/* ── Canvas area */
/*
CANVAS AREA
*/
.canvas-area { .canvas-area {
display: grid; display: grid;
grid-template-columns: 1fr 220px; grid-template-columns: 1fr 220px;
@ -193,15 +187,16 @@
font-size: 2rem; font-size: 2rem;
font-weight: 800; font-weight: 800;
opacity: 0; opacity: 0;
transition: transition: opacity 0.4s ease, transform 0.4s ease;
opacity 0.4s ease,
transform 0.4s ease;
pointer-events: none; pointer-events: none;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
white-space: nowrap; white-space: nowrap;
} }
/* Sidebar */
/*
SIDEBAR
*/
.game-sidebar { .game-sidebar {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -226,7 +221,7 @@
margin-bottom: 10px; margin-bottom: 10px;
} }
/* Round scores */ /* Round score rows */
.round-scores { .round-scores {
display: grid; display: grid;
gap: 8px; gap: 8px;
@ -256,7 +251,7 @@
color: var(--sea); color: var(--sea);
} }
/* Player name in sidebar */ /* Player info */
.player-name-display { .player-name-display {
font-family: "Syne", sans-serif; font-family: "Syne", sans-serif;
font-weight: 700; font-weight: 700;
@ -271,13 +266,19 @@
line-height: 1.55; line-height: 1.55;
} }
/* Controls */
/*
CONTROLS
*/
.game-controls { .game-controls {
display: flex; display: flex;
gap: 10px; gap: 10px;
} }
/* ─── Responsive ─── */
/*
RESPONSIVE
*/
@media (max-width: 900px) { @media (max-width: 900px) {
.canvas-area { .canvas-area {
grid-template-columns: 1fr; grid-template-columns: 1fr;
@ -289,17 +290,9 @@
flex-wrap: wrap; flex-wrap: wrap;
} }
.sidebar-card { .sidebar-card { flex: 1 1 140px; }
flex: 1 1 140px; .canvas-wrap { width: min(100%, 72vh); }
} .game-topbar { grid-template-columns: auto 1fr auto; }
.canvas-wrap {
width: min(100%, 72vh);
}
.game-topbar {
grid-template-columns: auto 1fr auto;
}
} }
@media (max-width: 600px) { @media (max-width: 600px) {
@ -314,36 +307,17 @@
gap: 10px; gap: 10px;
} }
.game-country { .game-country { text-align: left; }
text-align: left; .game-timer { align-items: flex-start; }
} .timer-track { width: 100%; }
.game-timer { .canvas-wrap { width: 100%; }
align-items: flex-start;
}
.timer-track {
width: 100%;
}
.canvas-wrap { .game-controls { flex-direction: column; }
width: 100%; .game-controls .btn { width: 100%; }
}
.game-controls {
flex-direction: column;
}
.game-controls .btn {
width: 100%;
}
} }
@media (max-width: 360px) { @media (max-width: 360px) {
.country-name { .country-name { font-size: 1.4rem; }
font-size: 1.4rem; .timer-num { font-size: 1.6rem; }
} .canvas-wrap { min-height: 0; }
.timer-num { }
font-size: 1.6rem;
}
.canvas-wrap {
min-height: 0;
}
}

View File

@ -1,6 +1,8 @@
/* index.css — landing page specific styles */ /* index.css — landing page specific styles */
/* ─── EYEBROW ─── */ /*
EYEBROW BADGE
*/
.eyebrow { .eyebrow {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@ -26,8 +28,7 @@
} }
@keyframes pulse { @keyframes pulse {
0%, 0%, 100% {
100% {
transform: scale(1); transform: scale(1);
opacity: 1; opacity: 1;
} }
@ -37,7 +38,10 @@
} }
} }
/* ─── HERO ─── */
/*
HERO SECTION
*/
.hero { .hero {
min-height: calc(100vh - var(--hh)); min-height: calc(100vh - var(--hh));
display: grid; display: grid;
@ -84,7 +88,10 @@
flex-wrap: wrap; flex-wrap: wrap;
} }
/* ─── GLOBE CARD ─── */
/*
GLOBE CARD
*/
.globe-card { .globe-card {
background: var(--glass); background: var(--glass);
backdrop-filter: blur(12px); backdrop-filter: blur(12px);
@ -106,18 +113,11 @@
inset: 0; inset: 0;
border-radius: var(--r-xl); border-radius: var(--r-xl);
background: background:
radial-gradient( radial-gradient(circle at 30% 25%, rgba(65, 184, 105, 0.18), transparent 50%),
circle at 30% 25%, radial-gradient(circle at 75% 75%, rgba(26, 127, 196, 0.15), transparent 50%);
rgba(65, 184, 105, 0.18),
transparent 50%
),
radial-gradient(
circle at 75% 75%,
rgba(26, 127, 196, 0.15),
transparent 50%
);
} }
/* Globe sphere */
.globe { .globe {
position: relative; position: relative;
z-index: 1; z-index: 1;
@ -137,20 +137,22 @@
0 30px 60px rgba(7, 47, 82, 0.28); 0 30px 60px rgba(7, 47, 82, 0.28);
} }
/* Continents */
.continent { .continent {
position: absolute; position: absolute;
background: #52c870; background: #52c870;
border-radius: 46% 54% 58% 42%; border-radius: 46% 54% 58% 42%;
} }
.c1 { .continent--a {
width: 30%; width: 30%;
height: 22%; height: 22%;
top: 18%; top: 18%;
left: 12%; left: 12%;
transform: rotate(-14deg); transform: rotate(-14deg);
} }
.c2 {
.continent--b {
width: 18%; width: 18%;
height: 28%; height: 28%;
top: 30%; top: 30%;
@ -158,14 +160,16 @@
transform: rotate(8deg); transform: rotate(8deg);
border-radius: 40% 60% 50% 50%; border-radius: 40% 60% 50% 50%;
} }
.c3 {
.continent--c {
width: 22%; width: 22%;
height: 16%; height: 16%;
top: 56%; top: 56%;
right: 15%; right: 15%;
transform: rotate(22deg); transform: rotate(22deg);
} }
.c4 {
.continent--d {
width: 12%; width: 12%;
height: 18%; height: 18%;
top: 68%; top: 68%;
@ -174,6 +178,7 @@
border-radius: 50%; border-radius: 50%;
} }
/* Globe grid lines */
.globe-line { .globe-line {
position: absolute; position: absolute;
border: 1px solid rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.12);
@ -183,25 +188,12 @@
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
.gl1 { .globe-line--meridian-sm { width: 60%; height: 100%; }
width: 60%; .globe-line--meridian-lg { width: 88%; height: 100%; }
height: 100%; .globe-line--parallel-sm { width: 100%; height: 55%; top: 50%; }
} .globe-line--parallel-lg { width: 100%; height: 80%; top: 50%; }
.gl2 {
width: 88%;
height: 100%;
}
.gl3 {
width: 100%;
height: 55%;
top: 50%;
}
.gl4 {
width: 100%;
height: 80%;
top: 50%;
}
/* Globe floating badges */
.globe-badge { .globe-badge {
position: absolute; position: absolute;
z-index: 2; z-index: 2;
@ -214,43 +206,30 @@
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: 8px;
animation: floatBadge 3s ease-in-out infinite; animation: float-badge 3s ease-in-out infinite;
} }
.gb--score { .globe-badge--score { top: 14%; right: 6%; animation-delay: 0s; }
top: 14%; .globe-badge--country { bottom: 14%; left: 4%; animation-delay: 1.2s; }
right: 6%;
animation-delay: 0s; @keyframes float-badge {
} 0%, 100% { transform: translateY(0); }
.gb--country { 50% { transform: translateY(-8px); }
bottom: 14%;
left: 4%;
animation-delay: 1.2s;
} }
@keyframes floatBadge { .globe-badge__dot {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-8px);
}
}
.gb__dot {
width: 8px; width: 8px;
height: 8px; height: 8px;
border-radius: 50%; border-radius: 50%;
} }
.gb__dot--green {
background: var(--leaf);
}
.gb__dot--blue {
background: var(--sea);
}
/* ─── ABOUT ─── */ .globe-badge__dot--green { background: var(--leaf); }
.globe-badge__dot--blue { background: var(--sea); }
/*
ABOUT SECTION
*/
.about { .about {
padding: 100px 0; padding: 100px 0;
} }
@ -269,7 +248,8 @@
margin-bottom: 36px; margin-bottom: 36px;
} }
.mini-globe-wrap { /* Game preview card */
.game-preview {
background: var(--glass); background: var(--glass);
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.8);
@ -285,26 +265,25 @@
overflow: hidden; overflow: hidden;
} }
.mini-globe-wrap::before { .game-preview::before {
content: ""; content: "";
position: absolute; position: absolute;
inset: 0; inset: 0;
border-radius: var(--r-xl); border-radius: var(--r-xl);
background: radial-gradient( background: radial-gradient(circle at 60% 40%, rgba(26, 127, 196, 0.1), transparent 50%);
circle at 60% 40%,
rgba(26, 127, 196, 0.1),
transparent 50%
);
} }
.game-preview-svg { .game-preview__svg {
width: 100%; width: 100%;
height: auto; height: auto;
position: relative; position: relative;
z-index: 1; z-index: 1;
} }
/* ─── STEPS ─── */
/*
STEPS LIST
*/
.steps { .steps {
display: grid; display: grid;
gap: 16px; gap: 16px;
@ -321,9 +300,7 @@
border-radius: var(--r-lg); border-radius: var(--r-lg);
padding: 22px 26px; padding: 22px 26px;
box-shadow: 0 4px 20px rgba(11, 31, 42, 0.06); box-shadow: 0 4px 20px rgba(11, 31, 42, 0.06);
transition: transition: transform 0.2s, box-shadow 0.2s;
transform 0.2s,
box-shadow 0.2s;
} }
.step:hover { .step:hover {
@ -359,7 +336,10 @@
line-height: 1.5; line-height: 1.5;
} }
/* ─── REGISTER ─── */
/*
REGISTER SECTION
*/
.register { .register {
padding: 100px 0; padding: 100px 0;
} }
@ -401,7 +381,7 @@
text-align: center; text-align: center;
} }
/* ─── LOBBY TOGGLE SWITCH ─── */ /* Lobby toggle */
.lobby-toggle { .lobby-toggle {
display: flex; display: flex;
background: var(--cream); background: var(--cream);
@ -431,7 +411,10 @@
color: var(--white); color: var(--white);
} }
/* ─── RESPONSIVE ─── */
/*
RESPONSIVE
*/
@media (max-width: 960px) { @media (max-width: 960px) {
.hero__inner, .hero__inner,
.about__inner, .about__inner,
@ -440,35 +423,20 @@
gap: 40px; gap: 40px;
} }
.globe-card { .globe-card { min-height: 360px; }
min-height: 360px; .game-preview { max-width: 260px; }
}
.mini-globe-wrap {
max-width: 260px;
}
} }
@media (max-width: 680px) { @media (max-width: 680px) {
.hero { .hero { padding: 50px 0 40px; }
padding: 50px 0 40px;
}
.about, .about,
.register { .register { padding: 70px 0; }
padding: 70px 0; .register__card { padding: 28px 22px; }
} .globe-card { padding: 24px; min-height: 280px; }
.register__card {
padding: 28px 22px;
}
.globe-card {
padding: 24px;
min-height: 280px;
}
} }
@media (max-width: 420px) { @media (max-width: 420px) {
.hero__title { .hero__title { font-size: 3rem; }
font-size: 3rem;
}
} }
@media (max-width: 360px) { @media (max-width: 360px) {
@ -476,49 +444,28 @@
padding: 36px 0 32px; padding: 36px 0 32px;
min-height: auto; min-height: auto;
} }
.hero__title { .hero__title {
font-size: 2.6rem; font-size: 2.6rem;
letter-spacing: -0.03em; letter-spacing: -0.03em;
} }
.hero__desc { .hero__desc {
font-size: 0.95rem; font-size: 0.95rem;
margin-bottom: 28px; margin-bottom: 28px;
} }
.globe-card {
padding: 16px; .globe-card { padding: 16px; min-height: 240px; }
min-height: 240px; .globe-badge { padding: 7px 10px; font-size: 0.72rem; }
}
.globe-badge {
padding: 7px 10px;
font-size: 0.72rem;
}
.about, .about,
.register { .register { padding: 52px 0; }
padding: 52px 0; .about__desc { font-size: 0.95rem; }
}
.about__desc { .step { padding: 16px 18px; gap: 14px; }
font-size: 0.95rem; .step__num { width: 46px; height: 46px; font-size: 0.88rem; border-radius: 12px; }
}
.step { .register__card { padding: 22px 16px; border-radius: var(--r-lg); }
padding: 16px 18px; .card-title { font-size: 1.25rem; margin-bottom: 22px; }
gap: 14px; .btn--full { padding: 14px 18px; font-size: 0.95rem; }
} }
.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;
}
}

View File

@ -1,5 +1,8 @@
/* leader.css — leaderboard page styles */ /* leader.css — leaderboard page styles */
/*
PAGE LAYOUT
*/
.lb-page { .lb-page {
min-height: calc(100vh - var(--hh)); min-height: calc(100vh - var(--hh));
padding: 60px 0; padding: 60px 0;
@ -41,7 +44,10 @@
flex-wrap: wrap; flex-wrap: wrap;
} }
/* ─── TABLE ─── */
/*
TABLE
*/
.lb-table { .lb-table {
background: var(--white); background: var(--white);
border: 1px solid var(--line); border: 1px solid var(--line);
@ -66,9 +72,7 @@
color: var(--ink-muted); color: var(--ink-muted);
} }
.lb-th.right { .lb-th--right { text-align: right; }
text-align: right;
}
.lb-body { .lb-body {
display: grid; display: grid;
@ -81,38 +85,23 @@
padding: 16px 24px; padding: 16px 24px;
border-bottom: 1px solid var(--line); border-bottom: 1px solid var(--line);
transition: background 0.15s; transition: background 0.15s;
animation: fadeRow 0.4s ease both; animation: fade-row 0.4s ease both;
} }
.lb-row:last-child { .lb-row:last-child { border-bottom: none; }
border-bottom: none; .lb-row:hover { background: var(--cream); }
}
.lb-row:hover { @keyframes fade-row {
background: var(--cream); from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
} }
@keyframes fadeRow { /* Top 3 row highlights */
from { .lb-row--rank-1 { background: rgba(240, 180, 40, 0.07); }
opacity: 0; .lb-row--rank-2 { background: rgba(180, 180, 195, 0.06); }
transform: translateY(8px); .lb-row--rank-3 { background: rgba(205, 130, 70, 0.05); }
}
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);
}
/* Rank number */
.lb-rank { .lb-rank {
font-family: "Syne", sans-serif; font-family: "Syne", sans-serif;
font-weight: 800; font-weight: 800;
@ -120,20 +109,13 @@
color: var(--ink-muted); color: var(--ink-muted);
} }
.lb-row.rank-1 .lb-rank { .lb-row--rank-1 .lb-rank { color: var(--gold); }
color: var(--gold); .lb-row--rank-2 .lb-rank { color: #a0a0b0; }
} .lb-row--rank-3 .lb-rank { color: #c07840; }
.lb-row.rank-2 .lb-rank {
color: #a0a0b0;
}
.lb-row.rank-3 .lb-rank {
color: #c07840;
}
.lb-medal { .lb-medal { font-size: 1.1rem; }
font-size: 1.1rem;
}
/* Player name */
.lb-name { .lb-name {
font-family: "Syne", sans-serif; font-family: "Syne", sans-serif;
font-weight: 700; font-weight: 700;
@ -144,7 +126,7 @@
white-space: nowrap; white-space: nowrap;
} }
.lb-name.is-you::after { .lb-name--you::after {
content: " (you)"; content: " (you)";
font-weight: 400; font-weight: 400;
font-family: "DM Sans", sans-serif; font-family: "DM Sans", sans-serif;
@ -164,6 +146,7 @@
text-align: right; text-align: right;
} }
/* Score value */
.lb-score { .lb-score {
font-family: "Syne", sans-serif; font-family: "Syne", sans-serif;
font-weight: 800; font-weight: 800;
@ -172,17 +155,14 @@
text-align: right; text-align: right;
} }
.lb-score.gold { .lb-score--gold { color: var(--gold); }
color: var(--gold); .lb-score--silver { color: #888898; }
} .lb-score--bronze { color: #c07840; }
.lb-score.silver {
color: #888898;
}
.lb-score.bronze {
color: #c07840;
}
/* ─── EMPTY STATE ─── */
/*
EMPTY STATE
*/
.lb-empty { .lb-empty {
padding: 64px 24px; padding: 64px 24px;
text-align: center; text-align: center;
@ -199,7 +179,10 @@
margin-bottom: 20px; margin-bottom: 20px;
} }
/* ─── CURRENT PLAYER BAR ─── */
/*
CURRENT PLAYER BAR
*/
.your-score-bar { .your-score-bar {
margin-top: 20px; margin-top: 20px;
padding: 16px 24px; padding: 16px 24px;
@ -217,31 +200,26 @@
font-size: 0.9rem; font-size: 0.9rem;
color: var(--ink-soft); color: var(--ink-soft);
} }
.your-score-bar__text strong {
color: var(--ink);
}
/* ─── RESPONSIVE ─── */ .your-score-bar__text strong { color: var(--ink); }
.your-score-bar__text--score strong { color: var(--sea); }
/*
RESPONSIVE
*/
@media (max-width: 640px) { @media (max-width: 640px) {
.lb-page { .lb-page { padding: 40px 0; }
padding: 40px 0;
}
.lb-table-head, .lb-table-head,
.lb-row { .lb-row { grid-template-columns: 44px 1fr 72px; }
grid-template-columns: 44px 1fr 72px;
}
.lb-th.hide-sm, .lb-th--hide-sm,
.lb-rounds, .lb-rounds,
.lb-date { .lb-date { display: none; }
display: none;
}
} }
@media (max-width: 360px) { @media (max-width: 360px) {
.lb-table-head, .lb-table-head,
.lb-row { .lb-row { padding: 12px 16px; }
padding: 12px 16px; }
}
}

View File

@ -1,5 +1,8 @@
/* lobby.css */ /* lobby.css */
/*
LOBBY LAYOUT
*/
.lobby { .lobby {
min-height: calc(100vh - var(--hh)); min-height: calc(100vh - var(--hh));
display: grid; display: grid;
@ -15,33 +18,12 @@
width: 100%; width: 100%;
} }
/* ─── Lobby name badge ─── */
.lobby__name-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 18px;
border-radius: var(--r-lg);
background: var(--glass);
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; PROMO (LEFT COLUMN)
} */
#lobby-name-display { /* Eyebrow badge — mirrors index.css for standalone page loading */
font-family: "Syne", sans-serif;
font-weight: 700;
font-size: 1rem;
color: var(--ink);
letter-spacing: -0.01em;
}
/* ─── EYEBROW ─── */
.eyebrow { .eyebrow {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@ -67,17 +49,35 @@
} }
@keyframes pulse { @keyframes pulse {
0%, 0%, 100% { transform: scale(1); opacity: 1; }
100% { 50% { transform: scale(1.45); opacity: 0.7; }
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.45);
opacity: 0.7;
}
} }
/* Lobby name badge */
.lobby__name-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 18px;
border-radius: var(--r-lg);
background: var(--glass);
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-display {
font-family: "Syne", sans-serif;
font-weight: 700;
font-size: 1rem;
color: var(--ink);
letter-spacing: -0.01em;
}
/* Title */
.lobby__title { .lobby__title {
font-family: "Syne", sans-serif; font-family: "Syne", sans-serif;
font-weight: 800; font-weight: 800;
@ -95,6 +95,7 @@
background-clip: text; background-clip: text;
} }
/* Description */
.lobby__desc { .lobby__desc {
font-size: 1.02rem; font-size: 1.02rem;
line-height: 1.72; line-height: 1.72;
@ -103,6 +104,7 @@
margin-bottom: 32px; margin-bottom: 32px;
} }
/* Info badges */
.lobby__badges { .lobby__badges {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
@ -124,11 +126,12 @@
backdrop-filter: blur(8px); backdrop-filter: blur(8px);
} }
.badge__icon { .badge__icon { font-size: 1rem; }
font-size: 1rem;
}
/* Right side card */
/*
FORM CARD (RIGHT COLUMN)
*/
.lobby__card { .lobby__card {
background: var(--white); background: var(--white);
border: 1px solid var(--line); border: 1px solid var(--line);
@ -151,30 +154,22 @@
margin-bottom: 30px; margin-bottom: 30px;
} }
/* Form and field styles are defined in main.css */ /* Form and field styles live in main.css */
/* ─── Responsive ─── */
/*
RESPONSIVE
*/
@media (max-width: 900px) { @media (max-width: 900px) {
.lobby__inner { .lobby__inner { grid-template-columns: 1fr; gap: 40px; }
grid-template-columns: 1fr;
gap: 40px;
}
} }
@media (max-width: 680px) { @media (max-width: 680px) {
.lobby { .lobby { padding: 44px 0; }
padding: 44px 0; .lobby__card { padding: 28px 22px; }
}
.lobby__card {
padding: 28px 22px;
}
} }
@media (max-width: 360px) { @media (max-width: 360px) {
.lobby__card { .lobby__card { padding: 22px 16px; }
padding: 22px 16px; .lobby__title { font-size: 2.4rem; }
} }
.lobby__title {
font-size: 2.4rem;
}
}

View File

@ -2,30 +2,49 @@
@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");
/*
DESIGN TOKENS
*/
:root { :root {
--ink: #0b1f2a; /* Colors */
--ink-soft: #3d5563; --ink: #0b1f2a;
--ink-soft: #3d5563;
--ink-muted: #7a9aaa; --ink-muted: #7a9aaa;
--sea: #1a7fc4;
--sea: #1a7fc4;
--sea-light: #4faae0; --sea-light: #4faae0;
--sea-dim: rgba(26, 127, 196, 0.12); --sea-dim: rgba(26, 127, 196, 0.12);
--leaf: #41b869;
--leaf-dim: rgba(65, 184, 105, 0.13); --leaf: #41b869;
--gold: #f0b429; --leaf-dim: rgba(65, 184, 105, 0.13);
--danger: #e05c5c;
--cream: #f4f9f6; --gold: #f0b429;
--white: #ffffff; --danger: #e05c5c;
--cream: #f4f9f6;
--white: #ffffff;
--glass: rgba(255, 255, 255, 0.72); --glass: rgba(255, 255, 255, 0.72);
--line: rgba(11, 31, 42, 0.09); --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); /* Shadows */
--shadow: 0 24px 60px rgba(11, 31, 42, 0.10);
--shadow-sm: 0 4px 20px rgba(11, 31, 42, 0.07);
/* Radii */
--r-xl: 32px; --r-xl: 32px;
--r-lg: 22px; --r-lg: 22px;
--r-md: 14px; --r-md: 14px;
--r-sm: 8px; --r-sm: 8px;
/* Layout */
--hh: 72px; --hh: 72px;
} }
/*
RESET
*/
*, *,
*::before, *::before,
*::after { *::after {
@ -34,9 +53,7 @@
padding: 0; padding: 0;
} }
html { html { scroll-behavior: smooth; }
scroll-behavior: smooth;
}
body { body {
font-family: "DM Sans", sans-serif; font-family: "DM Sans", sans-serif;
@ -47,25 +64,28 @@ body {
min-width: 320px; min-width: 320px;
} }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
/*
BACKGROUND DECORATIONS
*/
/* Ambient colour blobs */
body::before { body::before {
content: ""; content: "";
position: fixed; position: fixed;
inset: 0; inset: 0;
background: background:
radial-gradient( radial-gradient(ellipse 60% 50% at 10% 0%, rgba(65, 184, 105, 0.1), transparent 60%),
ellipse 60% 50% at 10% 0%, radial-gradient(ellipse 50% 60% at 90% 100%, rgba(26, 127, 196, 0.1), transparent 60%);
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; pointer-events: none;
z-index: 0; z-index: 0;
} }
/* Grid overlay */
body::after { body::after {
content: ""; content: "";
position: fixed; position: fixed;
@ -78,25 +98,15 @@ body::after {
z-index: 0; z-index: 0;
} }
a {
color: inherit;
text-decoration: none;
}
img,
svg {
display: block;
max-width: 100%;
}
button,
input {
font: inherit;
}
.wrap { .wrap {
position: relative; position: relative;
z-index: 1; z-index: 1;
} }
/*
LAYOUT
*/
.container { .container {
width: 100%; width: 100%;
max-width: 1280px; max-width: 1280px;
@ -104,6 +114,10 @@ input {
padding: 0 28px; padding: 0 28px;
} }
/*
HEADER
*/
.header { .header {
position: sticky; position: sticky;
top: 0; top: 0;
@ -124,6 +138,7 @@ input {
gap: 24px; gap: 24px;
} }
/* Logo */
.logo { .logo {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@ -155,6 +170,7 @@ input {
letter-spacing: -0.02em; letter-spacing: -0.02em;
} }
/* Nav */
.nav { .nav {
display: flex; display: flex;
align-items: center; align-items: center;
@ -167,9 +183,7 @@ input {
font-size: 0.92rem; font-size: 0.92rem;
font-weight: 500; font-weight: 500;
color: var(--ink-soft); color: var(--ink-soft);
transition: transition: background 0.18s, color 0.18s;
background 0.18s,
color 0.18s;
} }
.nav__link:hover { .nav__link:hover {
@ -185,9 +199,7 @@ input {
font-weight: 600; font-weight: 600;
color: var(--white); color: var(--white);
background: var(--ink); background: var(--ink);
transition: transition: opacity 0.18s, transform 0.18s;
opacity 0.18s,
transform 0.18s;
} }
.nav__cta:hover { .nav__cta:hover {
@ -195,7 +207,10 @@ input {
transform: translateY(-1px); transform: translateY(-1px);
} }
/* ─── BUTTONS ─── */
/*
BUTTONS
*/
.btn { .btn {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@ -208,48 +223,29 @@ input {
font-weight: 600; font-weight: 600;
border: none; border: none;
cursor: pointer; cursor: pointer;
transition: transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
transform 0.2s,
box-shadow 0.2s,
opacity 0.2s;
line-height: 1; line-height: 1;
} }
.btn:hover:not(:disabled) { .btn:hover:not(:disabled) { transform: translateY(-2px); }
transform: translateY(-2px); .btn:disabled { opacity: 0.45; cursor: not-allowed; }
}
.btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.btn--primary { .btn--primary {
color: var(--white); color: var(--white);
background: linear-gradient( background: linear-gradient(135deg, var(--sea) 0%, #159fd4 50%, var(--leaf) 100%);
135deg,
var(--sea) 0%,
#159fd4 50%,
var(--leaf) 100%
);
background-size: 200% 200%; background-size: 200% 200%;
box-shadow: 0 8px 24px rgba(26, 127, 196, 0.28); box-shadow: 0 8px 24px rgba(26, 127, 196, 0.28);
animation: gradShift 4s ease infinite; animation: grad-shift 4s ease infinite;
} }
.btn--primary:hover:not(:disabled) { .btn--primary:hover:not(:disabled) {
box-shadow: 0 12px 32px rgba(26, 127, 196, 0.4); box-shadow: 0 12px 32px rgba(26, 127, 196, 0.4);
} }
@keyframes gradShift { @keyframes grad-shift {
0% { 0% { background-position: 0% 50%; }
background-position: 0% 50%; 50% { background-position: 100% 50%; }
} 100% { background-position: 0% 50%; }
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
} }
.btn--ghost { .btn--ghost {
@ -269,17 +265,13 @@ input {
box-shadow: 0 6px 18px rgba(224, 92, 92, 0.25); box-shadow: 0 6px 18px rgba(224, 92, 92, 0.25);
} }
.btn--full { .btn--full { width: 100%; }
width: 100%; .btn--sm { padding: 10px 20px; font-size: 0.88rem; border-radius: var(--r-md); }
}
.btn--sm {
padding: 10px 20px;
font-size: 0.88rem;
border-radius: var(--r-md);
}
/* ─── CARD ─── */ /*
CARD
*/
.card { .card {
background: var(--glass); background: var(--glass);
backdrop-filter: blur(12px); backdrop-filter: blur(12px);
@ -288,7 +280,10 @@ input {
box-shadow: var(--shadow); box-shadow: var(--shadow);
} }
/* ─── SECTION LABELS ─── */
/*
SECTION TYPOGRAPHY
*/
.section-label { .section-label {
display: inline-block; display: inline-block;
padding: 5px 13px; padding: 5px 13px;
@ -311,16 +306,12 @@ input {
margin-bottom: 16px; margin-bottom: 16px;
} }
/* ─── FORM ─── */
.form {
display: grid;
gap: 20px;
}
.field { /*
display: grid; FORM
gap: 8px; */
} .form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { .field label {
font-size: 0.84rem; font-size: 0.84rem;
@ -338,14 +329,10 @@ input {
background: var(--cream); background: var(--cream);
color: var(--ink); color: var(--ink);
font-size: 0.98rem; font-size: 0.98rem;
transition: transition: border-color 0.18s, box-shadow 0.18s;
border-color 0.18s,
box-shadow 0.18s;
} }
.field input::placeholder { .field input::placeholder { color: var(--ink-muted); }
color: var(--ink-muted);
}
.field input:focus { .field input:focus {
outline: none; outline: none;
@ -365,7 +352,10 @@ input {
min-height: 1.2em; min-height: 1.2em;
} }
/* ─── FOOTER ─── */
/*
FOOTER
*/
.footer { .footer {
border-top: 1px solid var(--line); border-top: 1px solid var(--line);
background: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.5);
@ -393,9 +383,7 @@ input {
margin-top: 4px; margin-top: 4px;
} }
.footer__center { .footer__center { text-align: center; }
text-align: center;
}
.footer__label { .footer__label {
font-size: 0.7rem; font-size: 0.7rem;
@ -420,34 +408,27 @@ input {
transition: color 0.18s; transition: color 0.18s;
} }
.footer__link:hover { .footer__link:hover { color: var(--ink); }
color: var(--ink);
}
/* ─── SCROLL REVEAL ─── */
/*
SCROLL REVEAL
*/
.reveal { .reveal {
opacity: 0; opacity: 0;
transform: translateY(24px); transform: translateY(24px);
transition: transition: opacity 0.55s ease, transform 0.55s ease;
opacity 0.55s ease,
transform 0.55s ease;
} }
.reveal.visible { .reveal.visible { opacity: 1; transform: translateY(0); }
opacity: 1; .reveal-delay-1 { transition-delay: 0.10s; }
transform: translateY(0); .reveal-delay-2 { transition-delay: 0.20s; }
} .reveal-delay-3 { transition-delay: 0.32s; }
.reveal-delay-1 {
transition-delay: 0.1s;
}
.reveal-delay-2 {
transition-delay: 0.2s;
}
.reveal-delay-3 {
transition-delay: 0.32s;
}
/* ─── NOSCRIPT ─── */
/*
NOSCRIPT
*/
.noscript-msg { .noscript-msg {
padding: 1.5rem 2rem; padding: 1.5rem 2rem;
background: var(--danger); background: var(--danger);
@ -456,39 +437,31 @@ input {
text-align: center; text-align: center;
} }
/* ─── REDUCED MOTION ─── */
/*
REDUCED MOTION
*/
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
*, *, *::before, *::after {
*::before,
*::after {
animation-duration: 0.01ms !important; animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important; animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important; transition-duration: 0.01ms !important;
} }
} }
/* ─── RESPONSIVE BASE ─── */
/*
RESPONSIVE
*/
@media (max-width: 680px) { @media (max-width: 680px) {
.container { .container { padding: 0 18px; }
padding: 0 18px; .nav__link { display: none; }
}
.nav__link { .footer__inner { grid-template-columns: 1fr; }
display: none;
}
.footer__inner {
grid-template-columns: 1fr;
}
.footer__center, .footer__center,
.footer__right { .footer__right { justify-self: start; text-align: left; }
justify-self: start; .socials { justify-content: flex-start; }
text-align: left; .footer__right { justify-content: flex-start; }
}
.socials {
justify-content: flex-start;
}
.footer__right {
justify-content: flex-start;
}
} }
@media (max-width: 360px) { @media (max-width: 360px) {
@ -496,18 +469,9 @@ input {
--r-xl: 22px; --r-xl: 22px;
--r-lg: 16px; --r-lg: 16px;
} }
.container {
padding: 0 14px; .container { padding: 0 14px; }
} .logo__mark { width: 34px; height: 34px; }
.logo__mark { .logo__text { font-size: 1.05rem; }
width: 34px; .nav__cta { padding: 7px 12px; font-size: 0.82rem; }
height: 34px; }
}
.logo__text {
font-size: 1.05rem;
}
.nav__cta {
padding: 7px 12px;
font-size: 0.82rem;
}
}

View File

@ -1,5 +1,8 @@
/* results.css — results page styles */ /* results.css — results page styles */
/*
PAGE LAYOUT
*/
.results-page { .results-page {
min-height: calc(100vh - var(--hh)); min-height: calc(100vh - var(--hh));
display: grid; display: grid;
@ -14,7 +17,10 @@
gap: 24px; gap: 24px;
} }
/* ─── HEADER ─── */
/*
HEADER
*/
.results-header { .results-header {
text-align: center; text-align: center;
} }
@ -23,18 +29,12 @@
font-size: 3.5rem; font-size: 3.5rem;
margin-bottom: 16px; margin-bottom: 16px;
display: block; display: block;
animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
} }
@keyframes popIn { @keyframes pop-in {
from { from { transform: scale(0); opacity: 0; }
transform: scale(0); to { transform: scale(1); opacity: 1; }
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
} }
.results-title { .results-title {
@ -46,40 +46,26 @@
margin-bottom: 8px; margin-bottom: 8px;
} }
.results-player { .results-player { font-size: 1rem; color: var(--ink-soft); }
font-size: 1rem; .results-player strong { color: var(--ink); }
color: var(--ink-soft);
}
.results-player strong {
color: var(--ink);
}
/* ─── TOTAL SCORE ─── */ /*
TOTAL SCORE CARD
*/
.score-total-card { .score-total-card {
background: linear-gradient( background: linear-gradient(135deg, var(--sea) 0%, #159fd4 50%, var(--leaf) 100%);
135deg,
var(--sea) 0%,
#159fd4 50%,
var(--leaf) 100%
);
border-radius: var(--r-xl); border-radius: var(--r-xl);
padding: 36px 40px; padding: 36px 40px;
text-align: center; text-align: center;
color: var(--white); color: var(--white);
box-shadow: 0 16px 40px rgba(26, 127, 196, 0.3); box-shadow: 0 16px 40px rgba(26, 127, 196, 0.3);
animation: slideUp 0.5s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation: slide-up 0.5s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
} }
@keyframes slideUp { @keyframes slide-up {
from { from { transform: translateY(30px); opacity: 0; }
transform: translateY(30px); to { transform: translateY(0); opacity: 1; }
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
} }
.score-total-label { .score-total-label {
@ -117,14 +103,17 @@
letter-spacing: 0.04em; letter-spacing: 0.04em;
} }
/* ─── ROUND BREAKDOWN ─── */
/*
ROUND BREAKDOWN CARD
*/
.rounds-card { .rounds-card {
background: var(--white); background: var(--white);
border: 1px solid var(--line); border: 1px solid var(--line);
border-radius: var(--r-xl); border-radius: var(--r-xl);
padding: 28px 32px; padding: 28px 32px;
box-shadow: var(--shadow-sm); box-shadow: var(--shadow-sm);
animation: slideUp 0.5s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation: slide-up 0.5s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
} }
.rounds-card-title { .rounds-card-title {
@ -136,10 +125,7 @@
color: var(--ink-soft); color: var(--ink-soft);
} }
.round-rows { .round-rows { display: grid; gap: 14px; }
display: grid;
gap: 14px;
}
.round-row { .round-row {
display: grid; display: grid;
@ -178,7 +164,7 @@
text-align: right; text-align: right;
} }
/* ─── COUNTRY TAGS ─── */ /* Country tags */
.countries-row { .countries-row {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
@ -195,36 +181,30 @@
font-weight: 600; font-weight: 600;
} }
/* ─── ACTIONS ─── */
/*
ACTIONS
*/
.results-actions { .results-actions {
display: flex; display: flex;
gap: 12px; gap: 12px;
flex-wrap: wrap; flex-wrap: wrap;
animation: slideUp 0.5s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation: slide-up 0.5s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
} }
.results-actions .btn { .results-actions .btn { flex: 1 1 180px; }
flex: 1 1 180px;
}
/* ─── RESPONSIVE ─── */
/*
RESPONSIVE
*/
@media (max-width: 600px) { @media (max-width: 600px) {
.results-page { .results-page { padding: 40px 0; }
padding: 40px 0; .score-total-card { padding: 28px 24px; }
} .rounds-card { padding: 22px 20px; }
.score-total-card { .results-actions .btn { flex-basis: 100%; }
padding: 28px 24px;
}
.rounds-card {
padding: 22px 20px;
}
.results-actions .btn {
flex-basis: 100%;
}
} }
@media (max-width: 360px) { @media (max-width: 360px) {
.score-total-num { .score-total-num { font-size: 3.4rem; }
font-size: 3.4rem; }
}
}