/* Tuk Tuk Wars, the website's free drive: the page around the game, and the game's HUD (hud.js lays it out on a
   1280 x 720 screen scaled to fit, as the game does). Colours are the game's (hud.gd: GOLD, PANEL_BG, OUTLINE). */
@font-face { font-family: "TT Latin"; src: url("fonts/ToktokLatinDisplay.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "TT Arabic Display"; src: url("fonts/ToktokArabicDisplay.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "TT Arabic"; src: url("fonts/ToktokArabic.woff2") format("woff2"); font-display: swap; }
:root {
	--bg: #06070b; --gold: rgb(255, 209, 51); --gold2: #ff9d1a; --text: #f5f2ea; --muted: #a7a9b8;
	--panel: rgba(10, 13, 23, 0.68); --line: rgba(255, 255, 255, 0.12);
	--display: "TT Latin", "TT Arabic Display", system-ui, sans-serif;
	--body: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, "TT Arabic", sans-serif;
	--u: 1;
	--outline: 0 0 0 rgba(0, 0, 0, 0.85);
}
html[lang="ar"] { --display: "TT Arabic Display", "TT Latin", system-ui, sans-serif; --body: "TT Arabic", "Segoe UI", Roboto, Arial, sans-serif; }
* { box-sizing: border-box; }
/* (no double-tap zoom anywhere, iPhone included: the cards and buttons too; body and the controls stay at none) */
*, *::before, *::after { touch-action: manipulation; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--body);
	overflow: hidden; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
body { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none; }
/* (owner 2026-10-14: a long press on the gas pedal offered to download its picture) the controls' pictures never
   take a touch, a drag or the long-press menu: the buttons are hit-tested by position (hud.js _hit) */
#touch img, #hud img { pointer-events: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
[hidden] { display: none !important; }
a { color: var(--gold); text-decoration: none; }
#c { display: block; position: fixed; inset: 0; width: 100%; height: 100%; outline: none; }
/* the race's colour grade's soft vignette (postfx.gd: 30 % at the corners), under the HUD */
#vignette { position: fixed; inset: 0; pointer-events: none;
	background: radial-gradient(ellipse 87% 100% at 50% 50%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.047) 40%, rgba(0, 0, 0, 0.15) 50%,
		rgba(0, 0, 0, 0.253) 60%, rgba(0, 0, 0, 0.3) 70%); }

/* ---- the HUD: base units = the game's 1280 x 720 pixels ---------------------------------------------------------------- */
#ui { position: fixed; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; pointer-events: none; }
#ui > * { pointer-events: none; }
#hud > * { position: absolute; }
.ol { text-shadow: 2px 0 0 rgba(0, 0, 0, 0.85), -2px 0 0 rgba(0, 0, 0, 0.85), 0 2px 0 rgba(0, 0, 0, 0.85), 0 -2px 0 rgba(0, 0, 0, 0.85),
	1.5px 1.5px 0 rgba(0, 0, 0, 0.85), -1.5px -1.5px 0 rgba(0, 0, 0, 0.85), 1.5px -1.5px 0 rgba(0, 0, 0, 0.85), -1.5px 1.5px 0 rgba(0, 0, 0, 0.85); }
.panel { background: var(--panel); border: 2px solid rgba(255, 209, 51, 0.4); border-radius: 16px; padding: 6px 16px; }
#plate { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; padding: 8px 16px 9px 16px; }
#p-title { font-family: var(--display); font-size: 26px; color: #fff; letter-spacing: 0.01em;
	text-shadow: 3px 0 0 rgba(0,0,0,0.85), -3px 0 0 rgba(0,0,0,0.85), 0 3px 0 rgba(0,0,0,0.85), 0 -3px 0 rgba(0,0,0,0.85), 2px 2px 0 rgba(0,0,0,0.85), -2px -2px 0 rgba(0,0,0,0.85), 2px -2px 0 rgba(0,0,0,0.85), -2px 2px 0 rgba(0,0,0,0.85); }
#ui.ar #p-title { font-size: 24px; }
#p-time { font-size: 21px; color: rgb(219, 224, 240); margin-top: 2px; direction: ltr;
	text-shadow: 2px 0 0 rgba(0,0,0,0.85), -2px 0 0 rgba(0,0,0,0.85), 0 2px 0 rgba(0,0,0,0.85), 0 -2px 0 rgba(0,0,0,0.85); }
#p-time.low { color: rgb(255, 115, 89); }
#health { width: 236px; height: 20px; border-radius: 9px; background: rgba(13, 13, 18, 0.75); border: 2px solid rgba(255, 255, 255, 0.18); }
#health i { position: absolute; left: 2px; top: 2px; bottom: 2px; border-radius: 7px; background: rgb(77, 217, 89); }
#health span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
#pause-btn { width: 62px; height: 62px; border-radius: 31px; background: rgba(10, 13, 23, 0.78); border: 2px solid rgba(255, 209, 51, 0.5);
	color: #fff; font: 700 26px var(--body); font-style: italic; letter-spacing: -2px; cursor: pointer; pointer-events: auto; padding: 0; }
#pause-btn:hover { background: rgba(31, 33, 46, 0.85); border-color: rgba(255, 209, 51, 0.7); }
/* GET THE GAME (no time limit): the store card over the road, any time; over the touch layer like the pause button */
#get-btn { height: 40px; padding: 0 18px; border-radius: 20px; background: rgba(217, 128, 26, 0.92); color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.28); font: 400 18px var(--display); letter-spacing: 0.02em; cursor: pointer;
	pointer-events: auto; white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); }
#get-btn:hover { background: rgb(232, 146, 40); }
#pause-btn, #get-btn { z-index: 3; }
/* the weapon slot (hud.gd: the weapon's picture alone; empty: NO WEAPON, dimmed) */
#weapon { padding: 6px; display: flex; align-items: center; justify-content: center; text-align: center; }
#weapon img { width: 100%; height: 100%; object-fit: contain; }
#weapon span { font-size: 15px; color: rgba(255, 255, 255, 0.4); line-height: 1.1; font-weight: 700; }
#weapon.pop { animation: wpop 0.35s ease-out; }
#weapon { position: absolute; }
#weapon .inf { position: absolute; right: 6px; bottom: 0; font-size: 26px; line-height: 1; color: var(--gold); font-weight: 700;
	text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8); }
@keyframes wpop { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
/* a tomato on the windshield */
#splat { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#splat img { position: absolute; transform: rotate(var(--rot)); pointer-events: none; }
#splat.on img { animation: splat var(--dur) linear forwards; }
@keyframes splat { 0% { transform: rotate(var(--rot)) scale(0.55); } 12% { transform: rotate(var(--rot)) scale(1); }
	65% { opacity: 1; translate: 0 2vh; } 100% { opacity: 0; translate: 0 3.5vh; transform: rotate(var(--rot)) scale(1); } }
/* the end card: a timed round's end (PLAY AGAIN), or over the road while driving (CONTINUE DRIVING) */
#end.over #again-btn, #end:not(.over) #cont-btn { display: none; }
#mirror { width: 314px; height: 104px; border-radius: 16px; border: 3px solid rgba(191, 194, 204, 0.8);
	box-shadow: inset 0 0 0 4px rgba(8, 8, 13, 0.9); }
#minimap, #speedo { display: block; }
#banner { left: 0; right: 0; top: 110px; text-align: center; font-family: var(--display); font-size: 64px; color: var(--gold);
	opacity: 0; white-space: pre-line; line-height: 1.05; }
#banner.show { animation: banner 2.35s ease forwards; }
@keyframes banner { 0% { opacity: 0; transform: scale(1.6); } 11% { opacity: 1; transform: scale(1); } 79% { opacity: 1; } 100% { opacity: 0; } }
#center { left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-family: var(--display); font-size: 150px;
	color: var(--gold); opacity: 0; line-height: 1; }
#center.show { animation: pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes pop { from { opacity: 1; transform: translateY(-50%) scale(1.6); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
#move-pop { left: 0; right: 0; top: 36%; text-align: center; font-family: var(--display); font-size: 42px; color: var(--gold); opacity: 0; }
#move-pop.big { font-size: 52px; }
#move-pop.show { animation: movepop 1.25s ease forwards; }
@keyframes movepop { 0% { opacity: 1; transform: scale(1.5) translateY(0); } 20% { transform: scale(1) translateY(-1%); }
	72% { opacity: 1; transform: scale(1) translateY(-4vh); } 100% { opacity: 0; transform: scale(1) translateY(-4vh); } }
#turn { left: 0; right: 0; top: 160px; text-align: center; display: flex; flex-direction: column; align-items: center; animation: blink 0.56s infinite; }
#turn b { font-family: var(--display); font-weight: normal; font-size: 68px; color: rgb(255, 56, 46); line-height: 1; }
#turn span { font-family: var(--display); font-size: 32px; color: #fff; margin-top: -4px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
#keys-card { width: 432px; font-size: 19px; color: rgb(237, 240, 250); line-height: 1.35; }
#keys-card.show { animation: keyscard 21.2s linear forwards; }
@keyframes keyscard { 0%, 94% { opacity: 1; } 100% { opacity: 0; } }
#fps { right: 6px; bottom: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.45); direction: ltr; }
#banner, #center, #move-pop, #turn b, #turn span {
	text-shadow: 5px 0 0 rgba(0,0,0,0.85), -5px 0 0 rgba(0,0,0,0.85), 0 5px 0 rgba(0,0,0,0.85), 0 -5px 0 rgba(0,0,0,0.85),
		3.5px 3.5px 0 rgba(0,0,0,0.85), -3.5px -3.5px 0 rgba(0,0,0,0.85), 3.5px -3.5px 0 rgba(0,0,0,0.85), -3.5px 3.5px 0 rgba(0,0,0,0.85); }

/* the touch buttons: the game's pictures, a little see-through, pushed in and lit while held */
#touch { position: absolute; inset: 0; pointer-events: auto; touch-action: none; }
.tb { position: absolute; }
.tb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0.72; transition: transform 0.05s; }
.tb.on img, .tb.lit img { opacity: 1; }
.tb.on img { transform: scale(0.93); filter: brightness(1.15); }
.tb-nitro i { position: absolute; left: 22%; right: 22%; height: 1.2%; background: rgba(210, 235, 255, 0.85); display: none; }
/* CUSTOMIZE SCREEN (editor.js): a part he hid is gone (its touch too: hud.js _hit); while editing it shows, faint */
#ui .ph { visibility: hidden !important; }
#ui.editing .ph { visibility: visible !important; opacity: 0.32; }
#editor { position: fixed; inset: 0; z-index: 16; touch-action: none; }
#editor canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ed-panel { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 12px;
	background: rgba(10, 13, 23, 0.93); border: 2px solid rgba(255, 209, 51, 0.45); border-radius: 16px; transition: opacity 0.12s;
	max-width: calc(100% - 8px); }
.ed-title { font-family: var(--display); font-weight: normal; font-size: calc(var(--u) * 26px + 3px); color: var(--gold); line-height: 1.1; }
.ed-note { margin: 0; font-size: calc(var(--u) * 15px + 2px); color: rgb(230, 230, 240); text-align: center; max-width: 520px; }
.ed-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ed-name { min-width: calc(var(--u) * 220px + 10px); text-align: center; font-family: var(--display); font-size: calc(var(--u) * 24px + 4px); color: #fff; }
.ed-size { min-width: 58px; text-align: center; font-size: calc(var(--u) * 22px + 4px); font-weight: 700; color: var(--gold); }
.ed-b { font: inherit; font-weight: 700; font-size: calc(var(--u) * 17px + 4px); color: #fff; min-height: 36px; min-width: 48px; padding: 3px 12px;
	border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgb(56, 56, 71); cursor: pointer; touch-action: manipulation; }
.ed-b.pm, .ed-b.ar { font-size: 22px; padding: 0 10px; }
.ed-b.red { background: rgb(115, 51, 51); }
.ed-b.orange { background: rgb(140, 77, 31); }
.ed-b.green { background: rgb(51, 140, 77); min-width: 120px; }
.ed-b:disabled { opacity: 0.42; cursor: default; }
/* the settings' hint as a drive starts (the first 3): under the banner, never in the way */
#hint { left: 50%; top: 196px; transform: translateX(-50%); max-width: 90%; width: max-content; text-align: center; font-size: 23px;
	color: #fff; line-height: 1.3; padding: 8px 18px; opacity: 0; }
#hint.show { animation: hint var(--dur, 5s) ease forwards; }
@keyframes hint { 0% { opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }

/* ---- the page's cards: start, pause, end ------------------------------------------------------------------------------ */
.overlay { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; text-align: center;
	padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
	overflow-y: auto; }
#start { background: linear-gradient(rgba(6, 7, 11, 0.55), rgba(6, 7, 11, 0.82)), url("data/ui/ring.webp") center / cover no-repeat, #090a12;
	transition: opacity 0.45s ease; }
/* ?night=1: the night free drive's card */
html.night #start { background-image: linear-gradient(rgba(6, 7, 11, 0.55), rgba(6, 7, 11, 0.82)), url("data/ui/night.webp"); }
#start.gone { opacity: 0; pointer-events: none; }
#start.ready { background: radial-gradient(900px 520px at 50% 40%, rgba(6, 7, 11, 0.25), rgba(6, 7, 11, 0.78)); }
.overlay.dim { background: rgba(5, 6, 10, 0.62); }
.ov-in { width: min(560px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; margin: auto; }
.logo { width: clamp(72px, 20vmin, 140px); height: auto; border-radius: 24px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); }
.title { margin: 4px 0 0; line-height: 1.05; }
.title .lat { display: block; font-family: "TT Latin", system-ui, sans-serif; color: var(--gold); font-size: clamp(28px, 7vmin, 52px); font-weight: normal;
	text-shadow: 0 3px 0 rgba(0, 0, 0, 0.6); }
.title .arb { display: block; font-family: "TT Arabic Display", "TT Arabic", sans-serif; font-weight: normal; font-size: clamp(18px, 4.4vmin, 28px); color: #fff; opacity: 0.92; }
.where { margin: 2px 0 6px; color: #fff; font-family: var(--display); font-size: clamp(15px, 3.2vmin, 20px); text-transform: uppercase; }
html[lang="ar"] .where { text-transform: none; }
.bar { position: relative; width: min(460px, 100%); height: 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 207, 46, 0.45); overflow: hidden; direction: ltr; }
.bar i { display: block; height: 100%; width: 3%; border-radius: 999px; background: linear-gradient(90deg, var(--gold2), var(--gold));
	box-shadow: 0 0 18px rgba(255, 170, 30, 0.6); transition: width 0.2s ease; }
.status { min-height: 1.4em; color: var(--muted); font-size: 15px; direction: ltr; unicode-bidi: plaintext; }
.tip { margin: 4px 0 0; color: #e9e6dd; font-size: 15px; max-width: 470px; line-height: 1.5; }
.fsoc { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 10px 0 0; }
.fsoc a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); }
.fsoc a:hover { color: #1b1205; background: #ffd133; border-color: #ffd133; }
.fsoc svg { width: 20px; height: 20px; }
.fsoc .fl { width: 100%; text-align: center; font-size: 13px; opacity: 0.8; margin: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.chip { font: inherit; font-size: 14px; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line);
	border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.chip:hover { background: rgba(255, 255, 255, 0.16); }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; font-family: var(--display);
	letter-spacing: 0.02em; border-radius: 14px; padding: 12px 26px; font-size: 18px; color: #1b1205;
	background: linear-gradient(180deg, var(--gold), var(--gold2)); box-shadow: 0 10px 30px rgba(255, 170, 30, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.btn.big { font-size: 26px; padding: 14px 54px; min-width: 220px; }
.btn.alt { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: none; border: 1px solid var(--line); }
.btn.orange { background: rgb(217, 128, 26); color: #fff; border: 2px solid rgba(255, 255, 255, 0.12); box-shadow: none; }
.btn:focus-visible, .chip:focus-visible, .store:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
#err { color: #ffd6cf; background: rgba(120, 30, 30, 0.55); border: 1px solid rgba(255, 120, 100, 0.5); border-radius: 14px; padding: 12px 16px; max-width: 470px; }
#war-btn { animation: pulse 1.6s ease-in-out infinite; }
#drive-btn { font-size: 16px; padding: 8px 22px; }
.war-tip { margin: -2px 0 4px; color: #f1e9d6; font-size: 14px; max-width: 470px; }
#best { margin: 2px 0 0; color: var(--gold); font-size: 14px; }
/* the settings (the start card and the pause): the steering's sensitivity 1-10, CUSTOMIZE SCREEN */
.sets { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding: 6px 12px; border-radius: 14px;
	background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); max-width: 100%; }
.sets-h { font-family: var(--display); font-size: 15px; color: var(--gold); }
.sens { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; font-size: 13px; color: #fff; }
.sens-ctl { display: inline-flex; align-items: center; gap: 6px; }
.sens-ctl .chip { width: 34px; height: 30px; padding: 0; font-size: 18px; line-height: 1; }
.sens-r { width: 120px; accent-color: rgb(255, 209, 51); touch-action: none; }
.sens-v { min-width: 1.4em; text-align: center; color: var(--gold); font-size: 16px; }
.edit-btn { font-weight: 700; }
#sets-btn { position: fixed; top: max(10px, env(safe-area-inset-top)); inset-inline-end: max(12px, env(safe-area-inset-right)); z-index: 2;
	font-weight: 700; background: rgba(10, 13, 23, 0.72); border-color: rgba(255, 209, 51, 0.55); padding: 7px 14px; }
#sets-btn:hover { background: rgba(31, 33, 46, 0.9); }
#settings .card { width: min(calc(var(--u) * 520px + 40px), 100%); }
#settings .sets { flex-direction: column; background: none; border: 0; }
#settings .sens { flex-direction: column; font-size: 15px; }
#settings .sens-r { width: 170px; }
#settings .edit-btn { font-size: 16px; padding: 8px 20px; }
/* the WAR's score card */
#war-end .card { width: min(560px, 100%); gap: 8px; }
#we-score { font-family: var(--display); font-size: 64px; color: var(--gold); line-height: 1; }
#we-line, #we-rank { margin: 0; color: #fff; font-size: 16px; }
#we-rank { color: var(--gold); min-height: 1.2em; }
.we-name-row { display: flex; gap: 8px; width: min(400px, 100%); }
#we-name { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 8px 12px; border-radius: 12px; border: 2px solid rgba(255, 209, 51, 0.5);
	background: rgba(0, 0, 0, 0.35); color: #fff; touch-action: auto; -webkit-user-select: text; user-select: text; }
#we-name.bad { border-color: rgb(255, 90, 70); }
#we-save { padding: 8px 18px; font-size: 16px; }
#we-tabs { display: flex; gap: 6px; }
#we-tabs.off { display: none; }
#we-tabs button { font: inherit; font-size: 13px; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line);
	border-radius: 999px; padding: 4px 12px; cursor: pointer; }
#we-tabs button.on { background: rgba(255, 209, 51, 0.25); border-color: rgba(255, 209, 51, 0.7); }
#we-list { list-style: none; margin: 0; padding: 0; width: min(400px, 100%); max-height: 34vh; overflow-y: auto; text-align: start; }
#we-list li { display: flex; gap: 10px; padding: 3px 10px; border-radius: 8px; font-size: 15px; color: #fff; }
#we-list li b { width: 2.2em; color: var(--muted); font-weight: 600; }
#we-list li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
#we-list li i { font-style: normal; color: var(--gold); direction: ltr; }
#we-list li.me { background: rgba(255, 209, 51, 0.18); }
#we-list li.gap { justify-content: center; color: var(--muted); }
#we-list p { margin: 6px 0; color: var(--muted); text-align: center; }
#we-get { text-decoration: none; }
/* «توصيل» RIDES: the job box under the plate (the arrow to the stop, how far, the fare), no weapons */
#ride-box { display: none; align-items: center; gap: 12px; padding: 8px 14px; min-width: 300px; }
#ui.rides #ride-box { display: flex; }
#ui.rides #weapon, #ui.rides .tb-fire, #ui.rides #get-btn { display: none !important; }
#ride-arrow { width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent;
	border-bottom: 34px solid rgb(255, 209, 51); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7)); transition: transform 0.08s linear; }
#ride-box.job #ride-arrow { border-bottom-color: rgb(85, 255, 136); }
#ride-box div { display: flex; flex-direction: column; line-height: 1.25; }
#ride-text { font-family: var(--display); font-weight: normal; font-size: 22px; color: #fff; white-space: nowrap; }
#ride-count { font-size: 15px; color: var(--gold); }
#rides-btn { font-size: 22px; padding: 11px 40px; min-width: 200px; }
#re-line { margin: 0; color: #fff; font-size: 20px; }
#re-get { text-decoration: none; }
.coins { color: var(--gold); font-weight: 700; }
#we-coins { margin: 0; font-size: 16px; }
#garage-btn { font-size: 15px; padding: 7px 20px; }
#garage-btn .coins { font-family: var(--body); font-size: 13px; margin-inline-start: 6px; }
/* the GARAGE: a panel on the right, the tuk-tuk turning in the road on the left */
#garage { position: fixed; inset: 0; z-index: 11; display: flex; justify-content: flex-end; pointer-events: none; }
#garage[hidden] { display: none; }
.g-panel { pointer-events: auto; width: min(460px, 100%); height: 100%; overflow-y: auto; background: rgba(9, 11, 18, 0.92);
	border-inline-start: 2px solid rgba(255, 209, 51, 0.4); padding: max(14px, env(safe-area-inset-top)) 16px 18px;
	display: flex; flex-direction: column; gap: 8px; touch-action: pan-y; }
.g-head { display: flex; align-items: center; gap: 10px; }
.g-head h2 { margin: 0; flex: 1; font-family: var(--display); font-weight: normal; font-size: 30px; color: #fff; }
#g-coins { font-size: 17px; }
#g-coins.short { animation: shake 0.4s; color: rgb(255, 110, 90); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
#g-body h3 { margin: 8px 0 4px; font-family: var(--display); font-weight: normal; font-size: 18px; color: var(--gold); }
.g-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.g-card { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px;
	display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #fff; }
.g-card.on { border-color: rgba(255, 209, 51, 0.8); background: rgba(255, 209, 51, 0.12); }
.g-card > b { font-size: 15px; }
.g-card em { font-style: normal; font-size: 11px; color: #1b1205; background: linear-gradient(90deg, #ff9d1a, #ffd133); border-radius: 6px;
	padding: 1px 6px; align-self: flex-start; font-weight: 700; }
.g-card.super { border-color: rgba(255, 157, 26, 0.6); }
.g-card small { color: rgba(255, 255, 255, 0.7); }
.g-bars { display: grid; grid-template-columns: auto 1fr; gap: 2px 6px; align-items: center; font-size: 11px; color: var(--muted); }
.g-bars i { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.g-bars i b { display: block; height: 100%; background: var(--gold); }
#g-body button { font: inherit; font-size: 13px; font-weight: 700; color: #1b1205; background: linear-gradient(180deg, var(--gold), var(--gold2));
	border: 0; border-radius: 9px; padding: 6px 10px; cursor: pointer; }
#g-body button.poor { opacity: 0.55; }
.g-on { font-size: 12px; color: var(--gold); font-weight: 700; text-align: center; padding: 6px 0; }
.g-up { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #fff; }
.g-up > span:first-child { width: 6.5em; }
.g-up .pips { flex: 1; display: flex; gap: 5px; }
.g-up .pips i { width: 22px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); }
.g-up .pips i.on { background: var(--gold); }
.g-paints { display: flex; flex-wrap: wrap; gap: 8px; }
#g-body .sw { width: 38px; height: 38px; border-radius: 50%; padding: 0; border: 2px solid rgba(255, 255, 255, 0.35); position: relative; }
#g-body .sw.on { border-color: #fff; box-shadow: 0 0 0 3px var(--gold); }
#g-body .sw small { position: absolute; inset: auto 0 -3px; font-size: 10px; color: #fff; text-shadow: 0 1px 2px #000; }
#g-body .sw.orig { width: auto; border-radius: 19px; padding: 0 12px; background: rgba(255, 255, 255, 0.1); color: #fff; }
.g-more { margin: 10px 0 0; color: rgb(224, 230, 242); font-size: 14px; line-height: 1.4; }
#g-get { text-decoration: none; align-self: center; }
/* a phone held sideways: little height - everything closer together */
@media (max-height: 500px) {
	.ov-in { gap: 6px; }
	.logo { width: 64px; border-radius: 14px; }
	.title .lat { font-size: 30px; }
	.title .arb { font-size: 17px; }
	.where { margin: 0 0 2px; font-size: 14px; }
	.btn.big { font-size: 22px; padding: 10px 44px; }
	.tip { font-size: 13px; margin: 0; line-height: 1.35; }
	.row { margin-top: 2px; }
	.chip { font-size: 13px; padding: 4px 12px; }
	.war-tip { display: none; }
	#rides-btn { font-size: 19px; padding: 8px 34px; }
	.sets { padding: 3px 10px; gap: 4px 10px; }
	.sens-ctl .chip { height: 28px; }
	.sens-r { width: 96px; }
	.card { gap: 6px; padding: 12px 18px; }
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.card { margin: auto; width: min(calc(var(--u) * 760px + 40px), 100%); background: rgba(13, 14, 22, 0.94); border: 2px solid rgba(255, 209, 51, 0.4);
	border-radius: 16px; padding: calc(var(--u) * 18px + 8px) calc(var(--u) * 22px + 8px); display: flex; flex-direction: column; align-items: center;
	gap: calc(var(--u) * 12px); }
.card h2 { margin: 0; font-family: var(--display); font-weight: normal; color: #fff; font-size: calc(var(--u) * 40px + 6px); line-height: 1.1; }
#pause .card { width: min(calc(var(--u) * 420px + 40px), 100%); }
#pause .btn { min-width: calc(var(--u) * 240px + 40px); }
.end-top { display: flex; align-items: center; justify-content: center; gap: 14px; }
.end-top img { width: calc(var(--u) * 92px + 10px); height: auto; border-radius: 18px; }
.names { display: flex; flex-direction: column; text-align: start; line-height: 1; }
.names b { font-family: "TT Latin", sans-serif; font-weight: normal; color: var(--gold); font-size: calc(var(--u) * 44px + 6px); }
.names span { font-family: "TT Arabic Display", sans-serif; color: rgba(255, 255, 255, 0.92); font-size: calc(var(--u) * 24px + 4px); margin-top: 2px; }
html[lang="ar"] .names span { font-family: "TT Latin", sans-serif; }
html[lang="ar"] .names b { font-family: "TT Arabic Display", sans-serif; }
.full { margin: 0; max-width: calc(var(--u) * 600px + 40px); color: rgb(224, 230, 242); font-size: calc(var(--u) * 20px + 3px); line-height: 1.4; }
.stores { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.store { display: flex; flex-direction: column; align-items: center; justify-content: center; width: calc(var(--u) * 250px + 20px);
	height: calc(var(--u) * 72px + 8px); border-radius: 14px; background: rgba(5, 5, 8, 0.96); border: 2px solid; color: #fff; line-height: 1.05; }
.store.gp { border-color: rgba(51, 191, 107, 0.75); }
.store.as { border-color: rgba(115, 179, 255, 0.75); }
.store:hover { background: rgba(20, 23, 31, 0.98); }
.store small { font-size: calc(var(--u) * 15px + 2px); color: rgba(255, 255, 255, 0.8); }
.store b { font-family: "TT Latin", sans-serif; font-weight: normal; font-size: calc(var(--u) * 30px + 4px); }
.stores.small .store { width: calc(var(--u) * 190px + 20px); height: calc(var(--u) * 54px + 8px); }
.stores.small .store b { font-size: calc(var(--u) * 22px + 4px); }
.stores.small .store small { font-size: calc(var(--u) * 12px + 2px); }
.when { margin: 0; color: var(--gold); font-size: 14px; }
.back { font-size: 14px; color: #fff; opacity: 0.8; }
.back:hover { opacity: 1; }

/* a phone held upright: the game is made for one held sideways (portrait still works: "Play anyway") */
#rotate { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; text-align: center;
	padding: 24px; background: rgba(6, 7, 11, 0.97); }
@media (orientation: portrait) and (max-width: 820px) { body:not(.anyway) #rotate.on { display: flex; } }
.rot-in { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 360px; }
.phone { width: 54px; height: 92px; border: 4px solid var(--gold); border-radius: 12px; position: relative; animation: turn 2.2s ease-in-out infinite; }
.phone::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 12px; height: 4px; margin-left: -6px; border-radius: 2px; background: var(--gold); }
@keyframes turn { 0%, 20% { transform: rotate(0deg); } 55%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0deg); } }
.rot-title { font-family: var(--display); font-size: 22px; color: #fff; margin: 6px 0 0; }
.rot-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
