Files
advent-of-slop-05-pelican-o…/src/style.css
T
hermes f2eec57b5e Advent of AI Slop Day 5: Pelican on a Bike
Endless winter-city ride: pelican on a bicycle or reindeer on a unicycle,
procedural canvas skyline, garlands to duck, snowmen to hop, fish to hoard.
2026-12-05 23:17:21 +00:00

157 lines
3.3 KiB
CSS

:root {
--bg: #10131f;
--panel: #1b2032;
--ink: #f2ecdd;
--dim: #9aa3bd;
--accent: #ffb648;
--red: #b8232f;
--green: #2f7d5c;
}
* { box-sizing: border-box; }
body {
margin: 0;
background:
radial-gradient(1200px 500px at 50% -10%, #232c4a 0%, transparent 60%),
var(--bg);
color: var(--ink);
font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
#app {
max-width: 1240px;
margin: 0 auto;
padding: 1.2rem 1rem 2.5rem;
}
header { text-align: center; margin-bottom: 0.6rem; }
h1 {
margin: 0;
font-size: clamp(1.6rem, 4vw, 2.4rem);
letter-spacing: 0.02em;
}
h1::after { content: " 🚲"; }
.tagline { margin: 0.15rem 0 0; color: var(--dim); font-style: italic; }
#hud {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.45rem;
margin: 0.7rem 0 0.8rem;
}
.chip {
background: var(--panel);
border: 1px solid #2c3450;
border-radius: 999px;
padding: 0.25rem 0.8rem;
font-size: 0.85rem;
color: var(--dim);
}
.chip b { color: var(--ink); font-variant-numeric: tabular-nums; }
.chip.best b { color: var(--accent); }
#stage {
position: relative;
border-radius: 14px;
overflow: hidden;
border: 1px solid #2c3450;
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
background: #0b0e18;
}
canvas {
display: block;
width: 100%;
height: auto;
}
.overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(10, 13, 24, 0.62);
backdrop-filter: blur(3px);
}
.overlay.hidden { display: none; }
.panel {
background: var(--panel);
border: 1px solid #39415f;
border-radius: 14px;
padding: 1.4rem 1.8rem;
text-align: center;
max-width: 640px;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.panel h2 { margin: 0 0 0.9rem; font-size: 1.5rem; }
#cards { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.card {
display: flex;
flex-direction: column;
gap: 0.3rem;
width: 250px;
padding: 0.9rem 1rem;
background: #232a42;
color: var(--ink);
border: 1px solid #39415f;
border-radius: 12px;
cursor: pointer;
font: inherit;
text-align: center;
transition: transform 0.12s, border-color 0.12s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card .glyph { font-size: 1.9rem; }
.card b { font-size: 1.02rem; }
.card small { color: var(--dim); }
.controls { color: var(--dim); font-size: 0.88rem; margin: 1rem 0 0; }
kbd {
background: #2c3450;
border: 1px solid #465074;
border-bottom-width: 2px;
border-radius: 5px;
padding: 0.05em 0.45em;
font: 0.8em ui-monospace, monospace;
}
.score-line { margin: 0.2rem 0; font-size: 1.05rem; }
.score-line b { color: var(--accent); font-size: 1.3rem; }
.best-line { color: var(--dim); margin: 0.2rem 0 1rem; min-height: 1.2em; }
.best-line.new { color: var(--accent); font-weight: 700; }
#restart-btn, #menu-btn {
font: inherit;
border-radius: 10px;
padding: 0.5rem 1.1rem;
cursor: pointer;
margin: 0 0.3rem;
}
#restart-btn {
background: var(--red);
border: 1px solid #d4374a;
color: #fff;
font-weight: 700;
}
#restart-btn:hover { filter: brightness(1.15); }
#menu-btn { background: transparent; border: 1px solid #465074; color: var(--dim); }
#menu-btn:hover { color: var(--ink); }
.hint {
text-align: center;
color: var(--dim);
font-size: 0.85rem;
margin: 0.8rem 0 0;
}