SOURCE / PINNED RELEASE
Made of little things.
Napplet Machines V8
- Release
- b3f614e739f0…
- Author-recorded commit
- 534f19acb4ba…
- License
- LICENSE
- Author’s source reference
- nostr://npub182jczunncwe0jn6frpqwq3e0qjws7yqqnc3auccqv9nte2dnd63scjm4rf/wss%3A%2F%2Fgit.napplet.soy%2F/n-b5572362d4a
Archive hash verified: 0f7feb97e2c3d336…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
@font-face {
font-family: 'Bungee';
src: url('./fonts/Bungee-Regular.ttf?inline') format('truetype');
font-weight: 400;
font-display: swap;
}
@font-face {
font-family: 'Nunito Sans';
src: url('./fonts/NunitoSans.ttf?inline') format('truetype');
font-weight: 200 900;
font-display: swap;
}
/* App-owned midnight-violet toy-box palette, independent of the host theme. */
:root {
--bg: #282044;
--fg: #fff4e8;
--primary: #ffda45;
--ink: #17254d;
--paper: #fff8e7;
--coral: #ff596b;
--blue: #426aff;
--aqua: #25ddc6;
--lemon: #ffda45;
--lime: #bdf264;
--surface: color-mix(in srgb, var(--bg) 96%, var(--blue));
--raised: color-mix(in srgb, var(--bg) 86%, var(--fg));
--border: color-mix(in srgb, var(--fg) 25%, var(--bg));
--muted: color-mix(in srgb, var(--fg) 74%, var(--bg));
--control-h: 32px;
--display: 'Bungee', 'Impact', sans-serif;
--napplet-text-selection: none;
font:
13px/1.4 'Nunito Sans',
'Trebuchet MS',
sans-serif;
color-scheme: dark;
user-select: var(--napplet-text-selection);
}
* {
box-sizing: border-box;
}
html,
body,
#app {
height: 100%;
margin: 0;
background: var(--bg);
color: var(--fg);
}
button,
input,
select {
font: inherit;
}
button,
select,
input:not([type='range']):not([type='checkbox']) {
min-height: var(--control-h);
border: 2px solid var(--border);
border-radius: 9px;
color: var(--fg);
background: var(--raised);
}
button {
cursor: pointer;
padding: 5px 10px;
font-weight: 800;
white-space: nowrap;
transition:
background 0.15s,
transform 0.15s,
box-shadow 0.15s;
}
button:hover {
background: color-mix(in srgb, var(--aqua) 18%, var(--bg));
}
button:active {
transform: translateY(1px);
}
button:disabled {
opacity: 0.4;
cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
outline: 2px solid var(--primary);
outline-offset: 2px;
}
input,
select {
padding: 6px 8px;
min-width: 0;
width: 100%;
}
input[type='checkbox'] {
width: auto;
accent-color: var(--aqua);
}
input[type='range'] {
accent-color: var(--aqua);
padding: 0;
height: 28px;
}
input[readonly] {
font: 11px monospace;
user-select: all;
}
h2,
p {
margin: 0;
}
h2 {
font-weight: 800;
letter-spacing: -1.2px;
}
button.primary {
background: var(--lemon);
border-color: var(--ink);
color: var(--ink);
box-shadow: 0 3px 0 var(--ink);
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
font-weight: 800;
}
button.primary:hover {
filter: brightness(1.08);
}
button.big {
min-height: 42px;
margin-top: 8px;
}
button.subtle {
background: transparent;
}
.muted,
.hint {
color: var(--muted);
}
.hint {
font-size: 11px;
line-height: 1.6;
margin: 8px 0;
}
.dot {
color: #87c5a9;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}
[hidden] {
display: none !important;
}
.too-small {
display: none;
}
.app-body {
height: 100%;
display: grid;
grid-template-rows: auto minmax(0, 1fr) auto;
}
#app {
container-type: inline-size;
}
.toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 8px 12px;
border-bottom: 3px solid var(--ink);
background: var(--surface);
z-index: 3;
}
.tabs,
.toolbar-right {
display: flex;
align-items: center;
gap: 4px;
}
.tabs button {
background: var(--raised);
border-color: transparent;
padding: 6px 12px;
display: flex;
align-items: center;
gap: 6px;
}
.tabs button.active {
background: var(--tab-color);
border-color: var(--ink);
color: var(--ink);
box-shadow: 0 3px 0 var(--ink);
}
.toolbar-right {
gap: 12px;
}
.toolbar-right span,
.section-line,
.scene-kicker,
.scene-bottom,
.track-facts,
.canvas-label {
font:
800 10px/1.4 'Nunito Sans',
sans-serif;
letter-spacing: 1.1px;
}
.toolbar-right span {
color: var(--muted);
}
.toolbar-right button {
font-size: 11px;
background: transparent;
}
.workspace {
display: grid;
grid-template-columns: 254px minmax(0, 1fr);
min-height: 0;
}
#panel {
overflow: auto;
background: var(--surface);
border-right: 2px solid var(--ink);
}
.panel-content {
padding: 14px;
}
.section-line {
display: flex;
align-items: center;
justify-content: space-between;
gap: 4px;
margin: 8px 0 10px;
color: var(--muted);
}
.section-line:first-child {
margin-top: 0;
}
.car-picker {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 7px;
}
.car-picker button {
padding: 9px 3px;
background: color-mix(in srgb, var(--car) 18%, var(--bg));
border-color: color-mix(in srgb, var(--car) 55%, var(--bg));
height: 54px;
}
.car-picker button.selected {
border-color: var(--ink);
background: var(--car);
box-shadow: 0 3px 0 var(--ink);
transform: translateY(-2px);
}
.car-icon {
display: block;
position: relative;
margin: auto;
width: 21px;
height: 34px;
border-radius: 7px 7px 4px 4px;
background: var(--car);
border: 2px solid var(--ink);
box-shadow:
5px 5px 0 -3px #101b22,
-5px 5px 0 -3px #101b22,
5px -5px 0 -3px #101b22,
-5px -5px 0 -3px #101b22;
transform: rotate(-20deg);
}
.car-icon:before {
content: '';
position: absolute;
inset: 9px 2px 11px;
background: #2c4952;
border-radius: 3px;
}
.car-name {
font: 26px/1.1 var(--display);
letter-spacing: -0.5px;
margin: 0;
color: var(--ink);
}
.car-tag {
font-size: 9px;
font-weight: 900;
letter-spacing: 1px;
color: var(--ink);
margin: 5px 0 0;
}
.ride-hero {
position: relative;
min-height: 110px;
margin: 12px 0 10px;
padding: 66px 10px 10px;
background: var(--car);
border: 2px solid var(--ink);
border-radius: 10px 24px 10px 10px;
overflow: hidden;
}
.ride-hero::before {
content: '';
position: absolute;
width: 30px;
height: 160px;
right: 30px;
top: -30px;
background: #ffffff35;
transform: rotate(25deg);
box-shadow: 14px 0 0 #ffffff20;
}
.ride-number {
position: absolute;
left: 10px;
top: 8px;
font: 30px/1 var(--display);
color: var(--ink);
opacity: 0.55;
}
.ride-art {
position: absolute;
width: 146px;
height: 82px;
right: 0;
top: -1px;
color: var(--car);
filter: drop-shadow(0 4px 0 #17254d30);
}
.stat {
display: grid;
grid-template-columns: 84px 1fr;
gap: 8px;
align-items: center;
margin: 4px 0;
font-size: 11px;
color: var(--muted);
}
.bars {
display: flex;
gap: 3px;
}
.bars i {
height: 7px;
flex: 1;
background: var(--border);
border-radius: 2px;
}
.bars i.filled {
background: var(--car);
}
#carDetail {
padding-bottom: 8px;
margin-bottom: 10px;
border-bottom: 1px solid var(--border);
}
.track-facts {
display: flex;
justify-content: space-between;
font-size: 8px;
letter-spacing: 0.5px;
margin: 8px 0 12px;
color: var(--muted);
}
.field {
display: flex;
flex-direction: column;
gap: 5px;
font-size: 11px;
color: var(--muted);
margin: 10px 0;
}
.field.horizontal {
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.field.horizontal select {
width: auto;
}
.field output {
color: var(--fg);
font-weight: 900;
float: right;
}
.check {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
margin: 10px 0;
}
.button-row,
.segmented {
display: flex;
gap: 5px;
margin: 8px 0;
}
.button-row button,
.segmented button {
flex: 1;
padding-left: 5px;
padding-right: 5px;
font-size: 11px;
}
.segmented button.active {
background: var(--lemon);
border-color: var(--ink);
color: var(--ink);
box-shadow: 0 2px 0 var(--ink);
}
.control-guide {
border-top: 1px solid var(--border);
padding-top: 12px;
margin-top: 16px;
}
.control-guide > div {
display: flex;
justify-content: space-between;
align-items: center;
margin: 8px 0;
font-size: 10px;
color: var(--muted);
}
kbd {
font: 9px monospace;
border: 1px solid var(--border);
border-bottom-width: 2px;
border-radius: 3px;
padding: 3px 5px;
color: var(--fg);
}
.stage {
position: relative;
min-width: 0;
min-height: 0;
overflow: hidden;
background: var(--bg);
}
.views {
height: 100%;
display: flex;
}
.render-wrap {
position: relative;
flex: 1;
min-width: 0;
height: 100%;
}
#scene,
#plan {
display: block;
width: 100%;
height: 100%;
touch-action: none;
outline: none;
}
#scene {
cursor: grab;
}
#scene:active {
cursor: grabbing;
}
#planWrap {
position: relative;
width: 45%;
border-right: 2px solid var(--ink);
background: var(--bg);
}
#plan {
cursor: crosshair;
}
.canvas-label {
position: absolute;
bottom: 12px;
left: 12px;
color: var(--ink);
background: var(--aqua);
border: 2px solid var(--ink);
padding: 4px 7px;
border-radius: 5px;
pointer-events: none;
}
.scene-top {
position: absolute;
left: 24px;
right: 24px;
top: 20px;
display: flex;
justify-content: space-between;
z-index: 1;
pointer-events: none;
}
.scene-kicker {
display: block;
color: var(--muted);
font-size: 9px;
margin-bottom: 6px;
}
.scene-top h2 {
font: clamp(22px, 2.6vw, 36px) / 1.15 var(--display);
letter-spacing: -0.8px;
margin-bottom: 8px;
}
.scene-top #sceneSubtitle {
font-size: 11px;
color: var(--muted);
}
.scene-badge {
font-size: 30px;
font-weight: 800;
line-height: 1;
color: var(--ink);
background: var(--lemon);
border: 3px solid var(--ink);
box-shadow: 3px 3px 0 var(--ink);
transform: rotate(9deg);
border-radius: 18px;
font-family: var(--display);
width: 66px;
height: 66px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.scene-badge span {
font: 8px monospace;
letter-spacing: 1px;
margin-top: 4px;
}
.scene-bottom {
position: absolute;
bottom: 18px;
left: 24px;
right: 24px;
display: flex;
justify-content: space-between;
color: var(--muted);
font-size: 8px;
pointer-events: none;
}
.scene-bottom i {
display: inline-block;
width: 6px;
height: 6px;
background: #f7c95c;
border-radius: 50%;
margin-right: 5px;
}
#viewTools {
position: absolute;
bottom: 44px;
right: 12px;
display: flex;
gap: 4px;
}
#viewTools button {
background: color-mix(in srgb, var(--bg) 85%, transparent);
backdrop-filter: blur(8px);
font-size: 12px;
min-width: 30px;
}
.room-list {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 12px;
}
.room-item {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
white-space: normal;
text-align: left;
}
.room-item small {
color: var(--muted);
}
.room-title {
font-size: 18px;
font-weight: 700;
margin-bottom: 8px;
}
.member {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
border-bottom: 1px solid var(--border);
font-size: 11px;
}
.member b {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 5px;
}
.member small {
color: var(--muted);
}
#activeRoom > button {
margin-top: 8px;
width: 100%;
}
.text-button {
padding: 0 5px;
border: 0;
background: none;
font-size: 10px;
color: var(--primary);
}
#status {
font-size: 10px;
color: var(--muted);
padding: 4px 12px;
border-top: 1px solid var(--border);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-height: 23px;
}
#status.error {
color: #f59685;
}
.racing .workspace {
grid-template-columns: minmax(0, 1fr);
}
.racing #panel {
display: none;
}
.racing .tabs {
display: none;
}
.racing #status,
.racing #modeTag,
.racing #controllerState {
display: none;
}
.racing .app-body {
grid-template-rows: auto minmax(0, 1fr);
}
.racing #scene {
cursor: default;
}
.racing #viewTools {
bottom: auto;
top: 12px;
right: 12px;
}
.hud-primary {
position: absolute;
left: 18px;
top: 16px;
display: flex;
gap: 16px;
align-items: center;
background: var(--paper);
color: var(--ink);
border: 3px solid var(--ink);
border-radius: 10px 22px 10px 10px;
box-shadow: 4px 4px 0 #17254d60;
padding: 8px 12px;
}
.hud-primary > strong {
font: 46px/1 var(--display);
font-weight: 900;
letter-spacing: -2px;
}
.hud-primary > strong span {
font:
900 16px/1 'Nunito Sans',
sans-serif;
color: var(--ink);
letter-spacing: 0;
}
.hud-primary > div {
display: flex;
flex-direction: column;
gap: 3px;
font:
900 11px 'Nunito Sans',
sans-serif;
}
.hud-primary > div b {
font-size: 18px;
}
.speed {
position: absolute;
right: 24px;
top: 66px;
display: flex;
align-items: baseline;
gap: 6px;
background: var(--lemon);
color: var(--ink);
border: 3px solid var(--ink);
box-shadow: 4px 4px 0 #17254d60;
padding: 4px 12px;
border-radius: 18px 8px 8px 8px;
}
.speed b {
font: 34px/1.2 var(--display);
letter-spacing: -2px;
}
.speed span {
font: 9px monospace;
}
.race-actions {
position: static;
display: flex;
gap: 5px;
}
.race-actions button {
background: color-mix(in srgb, var(--bg) 80%, transparent);
font-size: 11px;
}
#raceOrder {
position: absolute;
left: 18px;
top: 105px;
list-style: none;
padding: 0;
margin: 0;
font:
800 11px/1.9 'Nunito Sans',
sans-serif;
background: #17254de8;
border: 2px solid #17254d;
color: var(--paper);
border-radius: 8px;
overflow: hidden;
}
#raceOrder li {
display: flex;
gap: 8px;
align-items: center;
padding: 1px 9px;
}
#raceOrder i {
display: block;
width: 6px;
height: 6px;
border-radius: 50%;
}
#raceOrder .you {
color: var(--ink);
background: var(--aqua);
font-weight: 900;
}
#countdown {
position: absolute;
left: 50%;
top: 40%;
transform: translate(-50%, -50%);
font: 90px/1 var(--display);
color: var(--lemon);
-webkit-text-stroke: 3px var(--ink);
letter-spacing: -4px;
pointer-events: none;
text-shadow: 5px 6px 0 var(--ink);
}
#touchControls {
position: absolute;
bottom: max(14px, env(safe-area-inset-bottom));
left: max(12px, env(safe-area-inset-left));
right: max(12px, env(safe-area-inset-right));
display: flex;
align-items: flex-end;
justify-content: space-between;
pointer-events: none;
}
#steeringPad,
#pedalPad {
pointer-events: auto;
touch-action: none;
user-select: none;
-webkit-user-select: none;
border: 3px solid var(--ink);
box-shadow: 0 4px 0 #17254d99;
background: #fff8e7ee;
position: relative;
}
#steeringPad {
width: clamp(124px, 36vw, 164px);
height: 90px;
border-radius: 25px;
cursor: ew-resize;
--thumb-x: 0px;
}
.control-caption {
position: absolute;
top: 5px;
inset-inline: 0;
text-align: center;
font: 10px var(--display);
color: var(--ink);
pointer-events: none;
}
.steering-rail {
position: absolute;
inset: 32px 12px 14px;
border: 2px solid #17254d;
border-radius: 25px;
background:
repeating-linear-gradient(90deg, #17254d00 0 13px, #17254d22 13px 15px),
#c5d1ed;
}
.steering-rail i {
position: absolute;
left: 50%;
top: 0;
bottom: 0;
border-left: 2px solid #17254d;
}
.steering-thumb {
position: absolute;
left: 50%;
top: 58%;
width: 52px;
height: 52px;
display: grid;
place-items: center;
border: 3px solid var(--ink);
border-radius: 50%;
transform: translate(calc(-50% + var(--thumb-x)), -50%);
background: var(--blue);
color: white;
font-size: 27px;
box-shadow:
inset 0 -4px 0 #17254d44,
0 3px 0 #17254d33;
pointer-events: none;
}
#steeringPad.pressed .steering-thumb {
background: var(--lemon);
color: var(--ink);
}
#pedalPad {
width: 132px;
height: 110px;
border-radius: 22px;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
padding: 0;
overflow: hidden;
}
#pedalPad button {
pointer-events: auto;
touch-action: none;
user-select: none;
margin: 0;
padding: 0;
min-width: 0;
min-height: 44px;
height: 100%;
font: 10px var(--display);
border: 0;
border-radius: 0;
box-shadow: none;
color: var(--ink);
background: #fff8e7;
}
#pedalPad [data-drive='go'] {
grid-column: 1/-1;
background: var(--aqua);
font-size: 15px;
border-bottom: 2px solid var(--ink);
}
#pedalPad [data-drive='go'] b {
margin-right: 6px;
}
#pedalPad [data-drive='stop'] {
border-right: 2px solid var(--ink);
}
#pedalPad [data-drive='drift'] {
background: var(--coral);
}
#pedalPad button.pressed {
background: var(--lemon);
box-shadow: inset 0 0 0 3px #17254d88;
}
#controllerState[data-state='connected'] {
color: var(--fg);
}
#results {
position: absolute;
inset: 0;
display: grid;
place-items: center;
background: color-mix(in srgb, var(--bg) 70%, transparent);
backdrop-filter: blur(7px);
padding: 12px;
}
.result-sheet {
width: min(100%, 350px);
padding: 20px;
background: var(--surface);
border: 3px solid var(--aqua);
box-shadow: 8px 8px 0 var(--ink);
border-radius: 8px;
}
.result-sheet h2 {
font: 28px/1.2 var(--display);
}
.result-sheet ol {
padding: 0;
list-style: none;
margin: 16px 0;
}
.result-sheet li {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid var(--border);
font-size: 12px;
}
.editor .scene-top,
.editor .scene-bottom {
display: none;
}
.editor #viewTools {
bottom: 12px;
}
.editor .workspace {
grid-template-columns: 230px minmax(0, 1fr);
}
.editor #cameraButton {
display: none;
}
[data-napplet-select='text'] {
user-select: text;
}
[data-napplet-select='all'] {
user-select: all;
}
/* Racing identity: ink outlines, numbered stickers, molded controls. */
.tabs [data-view='garage'] {
--tab-color: var(--coral);
}
.tabs [data-view='rooms'] {
--tab-color: var(--aqua);
}
.tabs [data-view='editor'] {
--tab-color: var(--lemon);
}
.nav-icon {
width: 18px;
height: 18px;
fill: none;
stroke: currentColor;
stroke-width: 2;
flex: none;
}
.section-line {
font-weight: 900;
color: var(--fg);
}
.section-line > span:first-child {
border-left: 4px solid var(--coral);
padding-left: 7px;
}
#roomsPanel .section-line > span:first-child {
border-color: var(--blue);
}
#editorPanel .section-line > span:first-child {
border-color: var(--aqua);
}
#hostButton,
#startRoom {
background: var(--blue);
color: white;
}
#testTrack {
background: var(--aqua);
}
#raceButton {
font: 14px/1.2 var(--display);
}
#raceButton > span {
font: 900 22px/1 sans-serif;
}
#trackSelect {
font-weight: 900;
border-left: 5px solid var(--aqua);
}
.track-facts span {
padding: 3px 4px;
background: var(--raised);
border-radius: 4px;
}
.dot {
color: var(--aqua);
}
.scene-top > div:first-child {
background: var(--paper);
color: var(--ink);
border: 2px solid var(--ink);
border-radius: 6px 18px 6px 6px;
padding: 10px 14px;
box-shadow: 4px 4px 0 #17254d40;
max-width: calc(100% - 90px);
}
.scene-kicker,
.scene-top #sceneSubtitle {
color: var(--ink);
}
.scene-kicker {
font-weight: 900;
}
.scene-kicker::before {
content: '';
display: inline-block;
width: 16px;
height: 10px;
margin-right: 6px;
background: repeating-conic-gradient(var(--ink) 0 25%, var(--paper) 0 50%)
0/8px 8px;
}
.scene-bottom {
color: var(--ink);
}
.scene-bottom > span {
background: var(--paper);
padding: 4px 7px;
border: 1px solid var(--ink);
border-radius: 4px;
}
#viewTools button,
.race-actions button {
background: var(--paper);
border-color: var(--ink);
color: var(--ink);
box-shadow: 0 2px 0 var(--ink);
}
#viewTools button:hover,
.race-actions button:hover {
background: var(--lemon);
}
.member {
border-bottom-style: dashed;
}
.member b {
width: 12px;
height: 12px;
border: 2px solid var(--ink);
border-radius: 4px;
}
.room-item {
border-left: 5px solid var(--blue);
}
#status.error {
color: color-mix(in srgb, var(--coral) 65%, var(--fg));
}
.hud-primary > strong {
color: #ef445b;
}
.hud-primary > div b {
font-variant-numeric: tabular-nums;
}
.result-sheet::before {
content: '';
display: block;
height: 12px;
margin: -20px -20px 16px;
background: repeating-conic-gradient(var(--paper) 0 25%, var(--ink) 0 50%)
0/24px 24px;
}
.result-sheet li:first-child {
color: var(--fg);
background: color-mix(in srgb, var(--lemon) 18%, var(--bg));
padding: 8px;
border-radius: 5px;
}
@keyframes sticker-in {
from {
opacity: 0;
transform: translateY(6px) rotate(-2deg);
}
to {
opacity: 1;
transform: none;
}
}
.ride-hero {
animation: sticker-in 220ms ease-out both;
}
@media (min-width: 1400px) {
.workspace {
grid-template-columns: 300px minmax(0, 1fr);
}
.panel-content {
padding: 20px;
}
.scene-top {
left: 32px;
top: 28px;
}
.car-picker button {
height: 76px;
}
.car-icon {
transform: rotate(-20deg) scale(1.2);
}
}
@media (max-width: 899px) {
.workspace {
grid-template-columns: 220px minmax(0, 1fr);
}
.panel-content {
padding: 12px;
}
.scene-top {
left: 16px;
right: 16px;
}
.scene-top #sceneSubtitle,
.scene-badge,
.scene-bottom span:last-child {
display: none;
}
.toolbar-right > span {
display: none;
}
.editor .views {
flex-direction: column;
}
.editor #planWrap {
width: 100%;
height: 50%;
border-bottom: 1px solid var(--border);
}
.editor .render-wrap {
height: 50%;
}
}
@media (max-width: 579px) {
.toolbar {
padding: 6px;
gap: 2px;
}
.tabs button {
padding: 6px 8px;
font-size: 11px;
}
.toolbar-right {
gap: 2px;
}
.toolbar-right button {
padding: 5px;
}
.workspace,
.editor .workspace {
display: flex;
flex-direction: column-reverse;
}
.stage {
flex: 1;
min-height: 160px;
}
#panel {
max-height: 51%;
border-right: 0;
border-top: 1px solid var(--border);
}
.panel-content {
padding: 10px 12px;
}
.car-picker {
float: left;
width: 46%;
margin-right: 12px;
}
.car-picker button {
height: 44px;
}
#carDetail {
margin: 0;
padding: 0 0 8px;
border: 0;
min-height: 100px;
}
.ride-art,
.ride-number,
.ride-hero::before {
display: none;
}
.ride-hero {
margin: 0;
min-height: 0;
padding: 7px;
border-radius: 8px;
}
.car-name {
font-size: 19px;
margin-top: 0;
}
.car-tag {
font-size: 7px;
margin: 3px 0 8px;
}
.stat {
grid-template-columns: 70px 1fr;
margin: 3px 0;
font-size: 10px;
}
.control-guide,
.scene-bottom,
.scene-badge,
#sceneSubtitle {
display: none;
}
.section-line {
margin-bottom: 8px;
}
.track-facts {
margin: 7px 0;
}
.scene-top {
top: 10px;
left: 12px;
}
.scene-top > div:first-child {
padding: 7px 10px;
max-width: 100%;
}
.scene-top h2 {
font-size: 18px;
}
.scene-kicker {
font-size: 7px;
margin-bottom: 3px;
}
.scene-top {
pointer-events: none;
}
#viewTools {
bottom: 8px;
right: 8px;
}
#viewTools button {
min-width: 28px;
padding: 4px 8px;
}
.scene-top ~ .views {
padding-top: 0;
}
.editor .views {
flex-direction: row;
}
.editor #planWrap {
width: 55%;
height: 100%;
border-bottom: 0;
}
.editor .render-wrap {
height: 100%;
}
.editor #viewTools button:nth-child(n + 3) {
display: none;
}
.editor #panel {
max-height: 50%;
}
.racing .workspace {
display: flex;
flex-direction: column;
}
.racing .stage {
height: 100%;
}
.racing .tabs {
display: none;
}
.racing .toolbar {
justify-content: space-between;
}
.hud-primary {
left: 12px;
top: 12px;
}
.hud-primary > strong {
font-size: 40px;
}
#raceOrder {
top: 90px;
left: 12px;
font-size: 10px;
}
#countdown {
font-size: 62px;
}
.racing #viewTools button:not(:last-child) {
display: none;
}
.speed {
right: 14px;
top: 65px;
bottom: auto;
}
.speed b {
font-size: 28px;
}
.race-actions {
gap: 4px;
}
.race-actions button {
font-size: 10px;
}
.canvas-label {
font-size: 7px;
left: 6px;
bottom: 5px;
}
#status {
padding: 3px 8px;
font-size: 9px;
min-height: 20px;
}
}
@media (max-width: 359px) {
.tabs .nav-icon {
display: none;
}
.tabs button {
padding-inline: 7px;
}
}
@media (max-height: 480px) and (min-width: 580px) {
.toolbar {
padding: 4px 8px;
}
.panel-content {
padding: 8px 12px;
}
.scene-top {
top: 10px;
}
.scene-top h2 {
font-size: 26px;
}
.control-guide,
.scene-bottom {
display: none;
}
.racing #touchControls {
bottom: max(10px, env(safe-area-inset-bottom));
left: max(18px, env(safe-area-inset-left));
right: max(18px, env(safe-area-inset-right));
}
#raceOrder {
display: none;
}
.hud-primary {
top: 10px;
padding: 5px 10px;
}
.hud-primary > strong {
font-size: 32px;
}
.speed {
top: 60px;
bottom: auto;
}
.car-name {
font-size: 24px;
}
.car-tag {
margin-bottom: 8px;
}
.stat {
margin: 4px 0;
}
#carDetail {
margin-bottom: 8px;
padding-bottom: 8px;
}
}
@media (pointer: coarse) {
button,
select,
input:not([type='checkbox']):not([type='range']) {
min-height: 44px;
}
.tabs button {
min-height: 40px;
}
#viewTools button {
min-height: 40px;
}
.car-picker button {
height: 52px;
}
.check {
min-height: 40px;
}
input[type='range'] {
height: 36px;
}
}
@media (max-width: 279px), (max-height: 239px) {
.app-body {
display: none;
}
.too-small {
height: 100%;
display: grid;
place-items: center;
padding: 12px;
font-size: 12px;
text-align: center;
overflow: auto;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
transition: none !important;
animation: none !important;
}
}
@media (pointer: fine) and (min-width: 580px) {
#touchControls {
display: none;
}
}
@media (max-width: 579px) {
#panel {
position: relative;
}
#garagePanel {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px 10px;
}
#garagePanel > .section-line:first-child,
#garagePanel > .car-picker,
#garagePanel > #carDetail {
grid-column: 1/-1;
}
#garagePanel > .section-line:not(:first-child),
#garagePanel > .track-facts,
#garagePanel > .hint,
#garagePanel > .control-guide {
display: none;
}
#garagePanel > .car-picker {
float: none;
width: auto;
margin: 0;
grid-column: 1;
}
#garagePanel > #carDetail {
grid-column: 2;
grid-row: 2;
min-height: 0;
padding: 0;
}
#garagePanel .car-tag {
font-size: 7px;
}
#garagePanel .stat {
display: none;
}
#garagePanel .field.horizontal {
margin: 0;
}
#garagePanel #trackSelect {
grid-column: 1/-1;
}
#garagePanel #raceButton {
margin: 0;
grid-column: 2;
}
#garagePanel .car-picker button {
height: 46px;
padding: 5px 1px;
}
.car-name {
margin-top: 5px;
}
#garagePanel {
padding-bottom: 10px;
}
}
#driftState {
position: absolute;
top: calc(100% + 6px);
right: 0;
padding: 4px 8px;
border: 2px solid #17254d;
border-radius: 5px;
background: #ffdc3f;
color: #17254d;
font-family: Bungee, sans-serif;
font-size: 12px;
font-style: normal;
transform: rotate(-4deg);
box-shadow: 2px 2px 0 #17254d;
}
.race-actions button {
min-height: 38px;
padding-inline: 10px;
}
@media (max-width: 579px) {
.racing .toolbar {
padding: 5px 6px;
}
.racing .toolbar button {
min-height: 44px;
}
.race-actions button {
padding-inline: 9px;
font-size: 11px;
}
#raceOrder {
display: none;
}
.hud-primary {
padding: 6px 9px;
gap: 9px;
}
.hud-primary > strong {
font-size: 32px;
}
.hud-primary > div b {
font-size: 14px;
}
}
@media (max-width: 319px) {
#touchControls {
left: 8px;
right: 8px;
}
#pedalPad {
width: 124px;
height: 100px;
}
#steeringPad {
width: 124px;
}
.race-actions button {
padding-inline: 6px;
font-size: 10px;
}
}
@media (max-height: 360px) and (max-width: 579px) {
#steeringPad {
height: 78px;
}
#pedalPad {
height: 94px;
}
.racing .speed {
display: none;
}
.racing #touchControls {
bottom: 8px;
}
.hud-primary {
top: 5px;
}
.hud-primary > strong {
font-size: 25px;
}
}
.plan-tools {
position: absolute;
top: 8px;
right: 8px;
z-index: 2;
display: flex;
gap: 4px;
}
.plan-tools button {
min-height: 32px;
padding: 4px 8px;
font-size: 11px;
}
#curveNotice {
color: var(--fg);
border-left: 3px solid #ffca45;
padding-left: 8px;
}
@media (pointer: coarse) {
.plan-tools button {
min-height: 44px;
}
}
