SOURCE / PINNED RELEASE
Made of little things.
Dine and Dash
- Release
- 32e37bfe002f…
- Author-recorded commit
- dce273752e95…
- License
- LICENSE
- Author’s source reference
- nostr://npub1ny7l44q0au5xkv3mjgt6zks5f0e2ydefslq4nhh2ve2xypgc2mqqat8qx2/wss%3A%2F%2Fgit.napplet.soy%2F/n-2f845a2d471
Archive hash verified: 34114f86c7bcd52e…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
/*
Dine and Dash: a retro diner at night, seen from above.
Black and white checkered floor, red tables, a purple-hoodie sneak and white-shirt waiters.
Menus and buttons use the same neon diner sign colours (pink and teal) on dark plum.
Colours are app-owned and do not follow the host theme.
*/
:root {
--plum: #1c1420;
--plum-2: #2c2032;
--pink: #ff5a8a;
--teal: #4fe3d0;
--cream: #f3ead8;
--gold: #ffd640;
color-scheme: dark;
font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
* {
box-sizing: border-box;
}
:where(html, body, body *) {
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;
}
html,
body,
#app {
height: 100%;
margin: 0;
}
body {
background: var(--plum);
color: var(--cream);
overflow: hidden;
}
.stage {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
height: 100%;
padding: 0;
}
.screen {
position: relative;
flex: none;
}
.world {
position: absolute;
left: 0;
right: 0;
bottom: 0;
display: block;
}
.game {
position: relative;
display: block;
touch-action: none;
cursor: crosshair;
width: 100%;
height: 100%;
outline: none;
}
.menu-button {
position: absolute;
top: 6px;
left: 50%;
transform: translateX(-50%);
min-height: 26px;
padding: 2px 10px;
border: 1px solid var(--pink);
border-radius: 999px;
background: rgba(28, 20, 32, 0.85);
color: var(--cream);
font: inherit;
font-size: 12px;
cursor: pointer;
}
.full-button {
position: absolute;
right: 6px;
min-width: 30px;
min-height: 30px;
border: 1px solid var(--pink);
border-radius: 8px;
background: rgba(28, 20, 32, 0.7);
color: var(--cream);
font-size: 16px;
cursor: pointer;
}
.touch {
flex: none;
display: flex;
justify-content: center;
touch-action: none;
}
.touch[hidden] {
display: none;
}
.dpad {
display: grid;
grid-template-columns: repeat(3, 52px);
grid-template-rows: repeat(2, 46px);
gap: 4px;
}
.dpad button {
border: 2px solid var(--teal);
border-radius: 10px;
background: var(--plum-2);
color: var(--teal);
font-size: 20px;
touch-action: none;
}
.dpad button.held {
background: var(--teal);
color: var(--plum);
}
.dpad .up { grid-column: 2; grid-row: 1; }
.dpad .left { grid-column: 1; grid-row: 2; }
.dpad .down { grid-column: 2; grid-row: 2; }
.dpad .right { grid-column: 3; grid-row: 2; }
.menu {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 8px;
background: rgba(28, 20, 32, 0.78);
overflow: auto;
}
.menu[hidden] {
display: none;
}
.menu-card {
width: min(420px, 100%);
max-height: 100%;
overflow: auto;
padding: 14px 16px;
border: 2px solid var(--pink);
border-radius: 14px;
background: var(--plum-2);
box-shadow: 0 0 18px rgba(255, 90, 138, 0.45);
}
.menu-title {
font-size: 26px;
font-weight: 900;
letter-spacing: 2px;
text-align: center;
color: var(--pink);
text-shadow: 0 0 10px rgba(255, 90, 138, 0.7);
}
.menu-title span {
color: var(--teal);
text-shadow: 0 0 10px rgba(79, 227, 208, 0.7);
}
.menu-result {
margin: 8px 0;
font-size: 16px;
font-weight: 700;
text-align: center;
color: var(--gold);
}
.how p {
margin: 8px 0;
}
.how b {
color: var(--teal);
}
.how b.seen {
color: var(--gold);
}
.keys {
margin: 8px 0;
padding-left: 18px;
}
kbd {
display: inline-block;
min-width: 20px;
padding: 0 4px;
border: 1px solid #6a5a72;
border-radius: 4px;
background: var(--plum);
font: inherit;
font-size: 12px;
text-align: center;
}
.touch-keys {
display: none;
}
.touch-mode .touch-keys {
display: block;
}
.touch-mode .keys {
display: none;
}
.menu-actions {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
margin-top: 10px;
}
.menu-actions button {
min-height: 40px;
padding: 6px 22px;
border: 2px solid var(--teal);
border-radius: 999px;
background: transparent;
color: var(--teal);
font: inherit;
font-size: 16px;
font-weight: 800;
cursor: pointer;
}
.menu-actions button[hidden] {
display: none;
}
.menu-actions button.primary {
background: var(--teal);
color: var(--plum);
}
.menu-actions button:focus-visible {
outline: 3px solid var(--gold);
outline-offset: 2px;
}
/* Tiny frames: squeeze the menu so Play stays reachable. */
@media (max-height: 300px), (max-width: 260px) {
.menu-card {
padding: 8px;
}
.menu-title {
font-size: 18px;
}
.how {
font-size: 11px;
}
.how {
display: none;
}
.menu-actions {
gap: 4px;
margin-top: 6px;
}
.menu-actions button {
min-height: 28px;
padding: 2px 10px;
font-size: 12px;
}
}
