add main menu

This commit is contained in:
2026-04-13 23:03:16 +02:00
parent 008c75784a
commit a85b37fe80
8 changed files with 538 additions and 6 deletions

View File

@@ -201,6 +201,34 @@ body {
inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.clock-start-button {
appearance: none;
border: 1px solid rgba(107, 69, 35, 0.34);
border-radius: 999px;
padding: 0.7em 1.8em;
min-width: 170px;
background: linear-gradient(180deg, rgba(252, 242, 226, 0.98), rgba(226, 195, 150, 0.96));
color: #342012;
font-family: "Cinzel", serif;
font-size: clamp(1rem, 1.3vw, 1.35rem);
letter-spacing: 0.08em;
text-transform: uppercase;
cursor: pointer;
box-shadow:
0 8px 18px rgba(93, 57, 25, 0.14),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}
.clock-start-button:active {
transform: scale(0.98);
filter: brightness(0.97);
}
.clock-start-button.is-hidden {
display: none;
}
.clock-time {
font-size: clamp(4.8rem, 9vw, 8.4rem);
line-height: 0.95;
@@ -267,3 +295,71 @@ body::before {
min-height: 250px;
}
}
@media (max-width: 600px) {
.clock-shell {
padding: max(14px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
gap: 16px;
}
.clock-topbar {
gap: 10px;
}
.clock-status {
font-size: clamp(1.5rem, 7vw, 2.1rem);
}
.clock-mode {
min-width: 0;
width: min(78vw, 280px);
padding: 0.35em 0.9em;
font-size: clamp(1.4rem, 6vw, 2rem);
}
.clock-start-button {
min-width: 0;
width: min(72vw, 240px);
padding: 0.75em 1em;
font-size: clamp(0.95rem, 4vw, 1.1rem);
}
.clock-board {
gap: 14px;
}
.player-zone {
gap: 10px;
}
.player-badge {
min-width: 0;
width: min(58vw, 220px);
padding: 0.5em 1em;
font-size: clamp(1.2rem, 5vw, 1.7rem);
}
.clock-panel {
width: 100%;
min-height: calc((100vh - 210px) / 2);
max-height: 280px;
padding: 18px 16px;
border-radius: 28px;
gap: 10px;
}
.clock-divider {
width: 68%;
height: 6px;
min-height: 6px;
}
.clock-time {
font-size: clamp(3.2rem, 17vw, 5.4rem);
}
.clock-moves {
max-width: 92%;
font-size: clamp(1.5rem, 8vw, 2.5rem);
}
}