Music with a live player, Last.fm, video downloads, games, AI chat, moderation, logging, a web dashboard and a Game Boy Activity. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
182 lines
11 KiB
CSS
182 lines
11 KiB
CSS
:root {
|
|
--bg: #15161c;
|
|
--bg2: #1d1f28;
|
|
--panel: #252835;
|
|
--line: #343849;
|
|
--text: #eceef6;
|
|
--muted: #9aa0b8;
|
|
--accent: #8bd450;
|
|
--accent2: #c9f27a;
|
|
--a: #d6336c;
|
|
--b: #9c36b5;
|
|
--shell: #3b3f52;
|
|
--radius: 14px;
|
|
color-scheme: dark;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
|
|
body {
|
|
font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
|
|
-webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
|
|
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
|
|
}
|
|
[hidden] { display: none !important; }
|
|
button { font: inherit; color: inherit; cursor: pointer; }
|
|
select, input { font: inherit; }
|
|
|
|
/* ---- boot ---------------------------------------------------------------- */
|
|
.boot { position: fixed; inset: 0; display: grid; place-content: center; gap: 14px; text-align: center; background: var(--bg); z-index: 50; }
|
|
.boot-logo { font-weight: 800; letter-spacing: .18em; font-size: 22px; color: var(--muted); }
|
|
.boot-logo b, .brand b { color: var(--accent); }
|
|
.boot-text { color: var(--muted); max-width: 420px; padding: 0 16px; }
|
|
.boot-text.error { color: #ff8787; }
|
|
.signin { justify-self: center; text-decoration: none; padding: 8px 16px; font-weight: 600; }
|
|
|
|
/* ---- library --------------------------------------------------------------- */
|
|
.library { height: 100%; overflow-y: auto; padding: 14px 16px 24px; }
|
|
.lib-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
|
|
.brand { font-weight: 800; letter-spacing: .14em; font-size: 15px; display: flex; align-items: center; gap: 8px; }
|
|
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--a); box-shadow: 0 0 10px var(--a); }
|
|
.who { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
|
|
.cat { border: 1px solid var(--line); background: var(--bg2); border-radius: 999px; padding: 5px 13px; font-size: 13px; color: var(--muted); }
|
|
.cat.on { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 600; }
|
|
.shelves { display: grid; gap: 22px; }
|
|
.shelf-head {
|
|
display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: 800; letter-spacing: .04em;
|
|
}
|
|
.shelf-head::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--c); }
|
|
.shelf-head span { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg2); border-radius: 999px; padding: 1px 8px; }
|
|
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
|
|
.cart {
|
|
position: relative; text-align: left; border: 0; padding: 0 0 12px; border-radius: 10px 10px 6px 6px; background: var(--c, #6c757d);
|
|
display: flex; flex-direction: column; overflow: hidden;
|
|
box-shadow: inset 0 -6px 0 rgba(0,0,0,.25), 0 6px 16px rgba(0,0,0,.35); transition: transform .12s ease, box-shadow .12s ease;
|
|
}
|
|
.cart:hover, .cart:focus-visible { transform: translateY(-3px); box-shadow: inset 0 -6px 0 rgba(0,0,0,.25), 0 10px 22px rgba(0,0,0,.45); outline: none; }
|
|
.cart:active { transform: translateY(0) scale(.98); }
|
|
.cart-grip { height: 18px; flex: none; background: repeating-linear-gradient(90deg, rgba(0,0,0,.2) 0 6px, transparent 6px 10px); opacity: .7; }
|
|
.cart-label {
|
|
margin: 0 8%; border-radius: 6px 6px 3px 3px; background: #f3f3f8; color: #1b1b25; padding: 6px 6px 7px;
|
|
display: flex; flex-direction: column; gap: 5px; min-height: 0;
|
|
}
|
|
.cart-cover {
|
|
position: relative; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden;
|
|
background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 65%, #fff));
|
|
display: grid; place-items: center;
|
|
}
|
|
.cart-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
|
|
.cart-cover.has-art img { opacity: 1; }
|
|
.cart-cover.has-art .cart-title-big { visibility: hidden; }
|
|
.cart-title-big { padding: 10px; font-weight: 800; font-size: 16px; line-height: 1.15; text-align: center; color: #1b1b25; }
|
|
.cart-title { font-weight: 700; font-size: 12.5px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.4em; }
|
|
.cart-meta { display: flex; gap: 4px; flex-wrap: wrap; }
|
|
.tag { font-size: 10.5px; font-weight: 700; border-radius: 4px; padding: 1px 5px; background: #e4e6ef; color: #50566e; }
|
|
.tag.cgb { background: linear-gradient(90deg, #ff6b6b, #ffd43b, #69db7c, #4dabf7); color: #111; }
|
|
.tag.save { background: #d3f9d8; color: #2b8a3e; }
|
|
.tag.resume { background: #fff3bf; color: #946200; }
|
|
.lib-hint { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 18px; }
|
|
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
|
|
|
|
/* ---- player ------------------------------------------------------------------ */
|
|
.player { height: 100%; display: flex; flex-direction: column; background: radial-gradient(120% 90% at 50% 0%, #22253a 0%, var(--bg) 70%); }
|
|
.topbar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; flex: none; }
|
|
.now { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; overflow: hidden; }
|
|
#game-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.status { color: var(--muted); font-size: 12px; white-space: nowrap; }
|
|
.chip {
|
|
border: 1px solid var(--line); background: var(--panel); border-radius: 9px; padding: 5px 10px; font-size: 13px; white-space: nowrap;
|
|
}
|
|
.chip:hover { border-color: #4a5068; }
|
|
.chip:active { transform: scale(.97); }
|
|
.chip.on { background: var(--accent); color: #111; border-color: var(--accent); }
|
|
|
|
.body {
|
|
flex: 1; min-height: 0; display: grid; gap: 6px 10px; padding: 0 10px 10px;
|
|
grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto auto;
|
|
grid-template-areas: "stage stage" "left right" "sys sys";
|
|
}
|
|
.stage { grid-area: stage; min-height: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
|
|
.bezel { background: #0d0e12; padding: 10px; border-radius: 10px 10px 28px 10px; box-shadow: 0 8px 28px rgba(0,0,0,.5), inset 0 0 0 1px #2b2e3d; }
|
|
#screen { display: block; image-rendering: pixelated; image-rendering: crisp-edges; background: #9bbc0f; outline: none; width: 320px; height: 288px; }
|
|
.keys-hint { color: var(--muted); font-size: 11.5px; text-align: center; }
|
|
.side { display: flex; align-items: center; justify-content: center; touch-action: none; }
|
|
.side.left { grid-area: left; }
|
|
.side.right { grid-area: right; }
|
|
.sysrow { grid-area: sys; display: flex; gap: 18px; justify-content: center; touch-action: none; }
|
|
|
|
.player.no-touch .body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); grid-template-areas: "stage"; }
|
|
.player.no-touch .side, .player.no-touch .sysrow { display: none; }
|
|
.player.touch .keys-hint { display: none; }
|
|
|
|
@media (orientation: landscape) {
|
|
.player.touch .body {
|
|
grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr); grid-template-rows: minmax(0, 1fr) auto;
|
|
grid-template-areas: "left stage right" "left sys right";
|
|
}
|
|
}
|
|
|
|
/* d-pad */
|
|
.dpad { position: relative; width: var(--pad, 150px); height: var(--pad, 150px); touch-action: none; }
|
|
.dp { position: absolute; background: var(--shell); box-shadow: inset 0 -4px 0 rgba(0,0,0,.35); }
|
|
.dp.up, .dp.down { left: 33.3%; width: 33.4%; height: 36%; }
|
|
.dp.left, .dp.right { top: 33.3%; height: 33.4%; width: 36%; }
|
|
.dp.up { top: 0; border-radius: 8px 8px 0 0; }
|
|
.dp.down { bottom: 0; border-radius: 0 0 8px 8px; }
|
|
.dp.left { left: 0; border-radius: 8px 0 0 8px; }
|
|
.dp.right { right: 0; border-radius: 0 8px 8px 0; }
|
|
.dp.mid { left: 33.3%; top: 33.3%; width: 33.4%; height: 33.4%; background: var(--shell); }
|
|
.dp.mid::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: rgba(0,0,0,.25); }
|
|
.dp.pressed { background: #5b6180; box-shadow: inset 0 2px 0 rgba(0,0,0,.35); }
|
|
|
|
.ab { position: relative; width: calc(var(--pad, 150px) * 1.1); height: var(--pad, 150px); }
|
|
.gbtn {
|
|
position: absolute; width: 44%; aspect-ratio: 1; border-radius: 50%; border: 0; font-weight: 800; font-size: 20px; color: #fff;
|
|
box-shadow: inset 0 -5px 0 rgba(0,0,0,.3), 0 4px 10px rgba(0,0,0,.35); touch-action: none;
|
|
}
|
|
.gbtn.a { background: var(--a); right: 0; top: 8%; }
|
|
.gbtn.b { background: var(--b); left: 0; bottom: 8%; }
|
|
.gbtn.pressed { transform: translateY(2px) scale(.96); box-shadow: inset 0 2px 0 rgba(0,0,0,.3); filter: brightness(1.15); }
|
|
.pill {
|
|
border: 0; border-radius: 999px; background: var(--shell); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em;
|
|
padding: 7px 16px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.3); touch-action: none;
|
|
}
|
|
.pill.pressed { filter: brightness(1.4); transform: translateY(1px); }
|
|
|
|
/* ---- menu / dialog --------------------------------------------------------------- */
|
|
.menu, .dialog { position: fixed; inset: 0; background: rgba(8,9,13,.72); display: grid; place-items: center; z-index: 20; padding: 16px; }
|
|
.menu-card, .dialog-card {
|
|
width: min(460px, 100%); max-height: 100%; overflow-y: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
|
|
padding: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
|
|
}
|
|
.menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 16px; }
|
|
.menu-sec { border-top: 1px solid var(--line); padding: 10px 0; }
|
|
.menu-label { color: var(--muted); font-size: 12px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }
|
|
.slots { display: grid; gap: 6px; }
|
|
.slot { display: flex; align-items: center; gap: 6px; background: var(--panel); border-radius: 10px; padding: 6px 8px; }
|
|
.slot-name { flex: 1; min-width: 0; font-size: 13px; }
|
|
.slot-name small { color: var(--muted); display: block; }
|
|
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
|
|
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
|
|
.row input[type=range] { width: 100px; accent-color: var(--accent); }
|
|
.row select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; }
|
|
.pal { display: flex; align-items: center; gap: 4px; }
|
|
#pal-name { min-width: 26px; text-align: center; color: var(--text); }
|
|
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.menu-foot { color: var(--muted); font-size: 11.5px; padding-top: 4px; }
|
|
.dialog-card { width: min(380px, 100%); }
|
|
#dialog-text { margin-bottom: 12px; }
|
|
.dialog-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
|
|
|
|
.toast {
|
|
position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 20px); background: #2d3142; color: var(--text); border: 1px solid var(--line);
|
|
padding: 7px 14px; border-radius: 999px; font-size: 13px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 40;
|
|
max-width: calc(100% - 32px); text-align: center;
|
|
}
|
|
.toast.show { opacity: 1; transform: translate(-50%, 0); }
|
|
|
|
@media (max-width: 420px) {
|
|
.grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
|
|
.grid2 { grid-template-columns: 1fr; }
|
|
.chip { padding: 5px 8px; }
|
|
}
|