432 lines
7.0 KiB
CSS
432 lines
7.0 KiB
CSS
:root {
|
|
--bg: #0b0f1e;
|
|
--bg-deep: #070a14;
|
|
--ink: #ece8f6;
|
|
--muted: #9c98bc;
|
|
--accent: #ffb866;
|
|
--accent-deep: #e0782a;
|
|
--card: #141a31;
|
|
--card-hi: #1c2342;
|
|
--line: #2b3256;
|
|
--pixel: 4px;
|
|
--title-font: 'Silkscreen', ui-monospace, monospace;
|
|
--body-font: 'Pixelify Sans', ui-monospace, monospace;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
height: 100%;
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
font-family: var(--body-font);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
#app {
|
|
position: fixed;
|
|
inset: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
button {
|
|
font: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
.pixel-canvas {
|
|
display: block;
|
|
image-rendering: pixelated;
|
|
image-rendering: crisp-edges;
|
|
}
|
|
|
|
/* ---------- Pixel buttons ---------- */
|
|
|
|
.btn {
|
|
font-family: var(--title-font);
|
|
font-size: 14px;
|
|
letter-spacing: 0.06em;
|
|
background: var(--card-hi);
|
|
color: var(--ink);
|
|
border: none;
|
|
padding: 12px 20px;
|
|
cursor: pointer;
|
|
box-shadow:
|
|
0 calc(-1 * var(--pixel)) 0 0 var(--line),
|
|
0 var(--pixel) 0 0 var(--line),
|
|
calc(-1 * var(--pixel)) 0 0 0 var(--line),
|
|
var(--pixel) 0 0 0 var(--line);
|
|
transition:
|
|
background 0.4s ease,
|
|
color 0.4s ease;
|
|
}
|
|
|
|
.btn:hover,
|
|
.btn:focus-visible {
|
|
background: var(--line);
|
|
outline: none;
|
|
}
|
|
|
|
.btn.primary {
|
|
background: var(--accent);
|
|
color: #2a1608;
|
|
box-shadow:
|
|
0 calc(-1 * var(--pixel)) 0 0 var(--accent-deep),
|
|
0 var(--pixel) 0 0 var(--accent-deep),
|
|
calc(-1 * var(--pixel)) 0 0 0 var(--accent-deep),
|
|
var(--pixel) 0 0 0 var(--accent-deep);
|
|
}
|
|
|
|
.btn.primary:hover,
|
|
.btn.primary:focus-visible {
|
|
background: #ffcb8a;
|
|
}
|
|
|
|
.icon-btn {
|
|
background: none;
|
|
border: none;
|
|
padding: 8px;
|
|
cursor: pointer;
|
|
color: var(--ink);
|
|
opacity: 0.8;
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.icon-btn:hover,
|
|
.icon-btn:focus-visible {
|
|
opacity: 1;
|
|
outline: none;
|
|
}
|
|
|
|
.icon-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
shape-rendering: crispEdges;
|
|
}
|
|
|
|
/* ---------- Menu ---------- */
|
|
|
|
.menu {
|
|
position: absolute;
|
|
inset: 0;
|
|
overflow-y: auto;
|
|
animation: fade-in 1.2s ease both;
|
|
}
|
|
|
|
.menu-sky {
|
|
position: fixed;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
z-index: 0;
|
|
}
|
|
|
|
.menu-inner {
|
|
position: relative;
|
|
z-index: 1;
|
|
max-width: 1040px;
|
|
margin: 0 auto;
|
|
padding: clamp(40px, 9vh, 96px) 16px 64px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.menu-title {
|
|
font-family: var(--title-font);
|
|
font-weight: 400;
|
|
font-size: clamp(34px, 7vw, 72px);
|
|
letter-spacing: 0.04em;
|
|
margin: 0;
|
|
color: var(--ink);
|
|
text-shadow:
|
|
0 var(--pixel) 0 #3b2a6a,
|
|
0 calc(2 * var(--pixel)) 0 #1c1838;
|
|
}
|
|
|
|
.menu-title .glow {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.menu-welcome {
|
|
margin: 28px 0 6px;
|
|
font-size: clamp(18px, 2.4vw, 22px);
|
|
color: var(--ink);
|
|
}
|
|
|
|
.menu-sub {
|
|
margin: 0 0 clamp(32px, 6vh, 56px);
|
|
font-size: 16px;
|
|
color: var(--muted);
|
|
max-width: 34em;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.breath {
|
|
display: inline-block;
|
|
width: 10px;
|
|
height: 10px;
|
|
margin-right: 10px;
|
|
vertical-align: middle;
|
|
background: var(--accent);
|
|
animation: breathe 8s ease-in-out infinite;
|
|
}
|
|
|
|
.cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 360px));
|
|
justify-content: center;
|
|
gap: 28px;
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
.card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--card);
|
|
border: none;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
box-shadow:
|
|
0 calc(-1 * var(--pixel)) 0 0 var(--line),
|
|
0 var(--pixel) 0 0 var(--line),
|
|
calc(-1 * var(--pixel)) 0 0 0 var(--line),
|
|
var(--pixel) 0 0 0 var(--line);
|
|
transition:
|
|
transform 0.6s ease,
|
|
box-shadow 0.6s ease;
|
|
}
|
|
|
|
.card:hover,
|
|
.card:focus-visible {
|
|
outline: none;
|
|
transform: translateY(-4px);
|
|
box-shadow:
|
|
0 calc(-1 * var(--pixel)) 0 0 var(--accent),
|
|
0 var(--pixel) 0 0 var(--accent),
|
|
calc(-1 * var(--pixel)) 0 0 0 var(--accent),
|
|
var(--pixel) 0 0 0 var(--accent);
|
|
}
|
|
|
|
.card canvas {
|
|
width: 100%;
|
|
aspect-ratio: 16 / 9;
|
|
height: auto;
|
|
}
|
|
|
|
.card-body {
|
|
padding: 16px 18px 18px;
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
|
|
.card-title {
|
|
font-family: var(--title-font);
|
|
font-size: 18px;
|
|
margin: 0;
|
|
}
|
|
|
|
.card-sub {
|
|
color: var(--muted);
|
|
font-size: 15px;
|
|
margin: 0;
|
|
}
|
|
|
|
.card-meta {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 6px;
|
|
font-size: 13px;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.card.soon {
|
|
cursor: default;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
border: var(--pixel) dashed var(--line);
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 220px;
|
|
color: var(--muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.card.soon:hover {
|
|
transform: none;
|
|
}
|
|
|
|
.menu-foot {
|
|
margin-top: 56px;
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* ---------- Player ---------- */
|
|
|
|
.player {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: #000;
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.player.idle {
|
|
cursor: none;
|
|
}
|
|
|
|
.overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 16px;
|
|
background: rgba(4, 6, 14, 0.82);
|
|
transition: opacity 1.6s ease;
|
|
text-align: center;
|
|
z-index: 3;
|
|
}
|
|
|
|
.overlay.hidden {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.overlay-box {
|
|
max-width: 34em;
|
|
display: grid;
|
|
gap: 18px;
|
|
justify-items: center;
|
|
}
|
|
|
|
.overlay h2 {
|
|
font-family: var(--title-font);
|
|
font-weight: 400;
|
|
font-size: clamp(24px, 4vw, 36px);
|
|
margin: 0;
|
|
}
|
|
|
|
.overlay p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
line-height: 1.55;
|
|
font-size: 17px;
|
|
}
|
|
|
|
.overlay .hint {
|
|
font-size: 14px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.overlay .row {
|
|
display: flex;
|
|
gap: 24px;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.controls {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
padding: 28px 16px 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
background: linear-gradient(to top, rgba(4, 6, 14, 0.7), transparent);
|
|
transition: opacity 1.2s ease;
|
|
z-index: 2;
|
|
}
|
|
|
|
.player.idle .controls,
|
|
.controls.hidden {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.progress {
|
|
flex: 1;
|
|
height: var(--pixel);
|
|
background: rgba(255, 255, 255, 0.14);
|
|
position: relative;
|
|
}
|
|
|
|
.progress > div {
|
|
position: absolute;
|
|
inset: 0 auto 0 0;
|
|
background: var(--accent);
|
|
}
|
|
|
|
.time {
|
|
font-size: 15px;
|
|
color: var(--muted);
|
|
min-width: 3.2em;
|
|
text-align: right;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.paused-label {
|
|
position: absolute;
|
|
top: 24px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
font-family: var(--title-font);
|
|
font-size: 14px;
|
|
letter-spacing: 0.2em;
|
|
color: var(--muted);
|
|
transition: opacity 0.8s ease;
|
|
z-index: 2;
|
|
}
|
|
|
|
.dev-time {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 10px;
|
|
font-size: 12px;
|
|
color: #7f7;
|
|
opacity: 0.7;
|
|
z-index: 2;
|
|
}
|
|
|
|
@keyframes fade-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes breathe {
|
|
0%,
|
|
100% {
|
|
transform: scale(0.6);
|
|
opacity: 0.5;
|
|
}
|
|
50% {
|
|
transform: scale(1.3);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.breath {
|
|
animation: none;
|
|
}
|
|
.card,
|
|
.card:hover {
|
|
transition: none;
|
|
transform: none;
|
|
}
|
|
}
|