map.wxss 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164
  1. .page {
  2. height: 100vh;
  3. position: relative;
  4. overflow: hidden;
  5. background: #dbeed4;
  6. color: #163020;
  7. }
  8. .map-stage {
  9. position: absolute;
  10. inset: 0;
  11. overflow: hidden;
  12. background: #dbeed4;
  13. }
  14. .map-content {
  15. position: absolute;
  16. inset: 0;
  17. }
  18. .map-canvas {
  19. position: absolute;
  20. inset: 0;
  21. width: 100%;
  22. height: 100%;
  23. display: block;
  24. }
  25. .map-canvas--base {
  26. z-index: 1;
  27. }
  28. .map-canvas--labels {
  29. z-index: 2;
  30. pointer-events: none;
  31. }
  32. .map-stage__crosshair {
  33. position: absolute;
  34. left: 50%;
  35. top: 50%;
  36. width: 44rpx;
  37. height: 44rpx;
  38. transform: translate(-50%, -50%);
  39. border: 3rpx solid rgba(255, 255, 255, 0.95);
  40. border-radius: 50%;
  41. box-shadow: 0 0 0 4rpx rgba(22, 48, 32, 0.2);
  42. pointer-events: none;
  43. z-index: 3;
  44. }
  45. .map-stage__crosshair::before,
  46. .map-stage__crosshair::after {
  47. content: '';
  48. position: absolute;
  49. background: rgba(255, 255, 255, 0.95);
  50. }
  51. .map-stage__crosshair::before {
  52. left: 50%;
  53. top: -18rpx;
  54. width: 2rpx;
  55. height: 76rpx;
  56. transform: translateX(-50%);
  57. }
  58. .map-stage__crosshair::after {
  59. left: -18rpx;
  60. top: 50%;
  61. width: 76rpx;
  62. height: 2rpx;
  63. transform: translateY(-50%);
  64. }
  65. .map-stage__overlay {
  66. position: absolute;
  67. inset: 0;
  68. display: flex;
  69. flex-direction: column;
  70. justify-content: flex-end;
  71. padding: 0 24rpx 248rpx;
  72. box-sizing: border-box;
  73. pointer-events: none;
  74. z-index: 4;
  75. }
  76. .map-stage__topbar {
  77. display: flex;
  78. align-items: flex-start;
  79. justify-content: flex-start;
  80. }
  81. .map-stage__meta {
  82. max-width: 68%;
  83. padding: 18rpx 20rpx 20rpx;
  84. border-radius: 28rpx;
  85. background: rgba(248, 251, 244, 0.92);
  86. box-shadow: 0 14rpx 36rpx rgba(22, 48, 32, 0.12);
  87. backdrop-filter: blur(12rpx);
  88. }
  89. .map-stage__eyebrow {
  90. font-size: 20rpx;
  91. letter-spacing: 4rpx;
  92. color: #5f7a65;
  93. }
  94. .map-stage__title {
  95. margin-top: 8rpx;
  96. font-size: 38rpx;
  97. font-weight: 600;
  98. }
  99. .map-stage__badge {
  100. display: inline-flex;
  101. margin-top: 14rpx;
  102. padding: 8rpx 18rpx;
  103. border-radius: 999rpx;
  104. background: rgba(22, 48, 32, 0.9);
  105. color: #f7fbf2;
  106. font-size: 22rpx;
  107. }
  108. .screen-button-layer {
  109. position: absolute;
  110. width: 116rpx;
  111. min-height: 116rpx;
  112. padding: 18rpx 0 14rpx;
  113. border-radius: 30rpx;
  114. background: rgba(248, 251, 244, 0.96);
  115. box-shadow: 0 14rpx 36rpx rgba(22, 48, 32, 0.14);
  116. display: flex;
  117. flex-direction: column;
  118. align-items: center;
  119. justify-content: center;
  120. box-sizing: border-box;
  121. z-index: 20;
  122. }
  123. .screen-button-layer__icon {
  124. position: relative;
  125. width: 54rpx;
  126. height: 32rpx;
  127. margin: 0 auto;
  128. border: 4rpx solid #163020;
  129. border-radius: 8rpx;
  130. box-sizing: border-box;
  131. }
  132. .screen-button-layer__line {
  133. position: absolute;
  134. left: 8rpx;
  135. right: 8rpx;
  136. bottom: 6rpx;
  137. height: 4rpx;
  138. border-radius: 999rpx;
  139. background: rgba(22, 48, 32, 0.3);
  140. }
  141. .screen-button-layer__stand {
  142. position: absolute;
  143. left: 50%;
  144. bottom: -12rpx;
  145. width: 18rpx;
  146. height: 4rpx;
  147. margin-left: -9rpx;
  148. border-radius: 999rpx;
  149. background: #163020;
  150. }
  151. .screen-button-layer__text {
  152. margin-top: 18rpx;
  153. text-align: center;
  154. font-size: 22rpx;
  155. font-weight: 600;
  156. color: #163020;
  157. line-height: 1.2;
  158. }
  159. .map-stage__bottom {
  160. display: flex;
  161. align-items: flex-end;
  162. justify-content: center;
  163. width: 100%;
  164. }
  165. .screen-button-layer--bottom-left {
  166. left: 24rpx;
  167. bottom: 244rpx;
  168. }
  169. .screen-button-layer--start-left {
  170. left: 24rpx;
  171. bottom: 378rpx;
  172. min-height: 96rpx;
  173. padding: 0 18rpx;
  174. background: rgba(255, 226, 88, 0.96);
  175. box-shadow: 0 14rpx 36rpx rgba(120, 89, 0, 0.2), 0 0 0 3rpx rgba(255, 246, 186, 0.38);
  176. }
  177. .screen-button-layer__text--start {
  178. margin-top: 0;
  179. font-size: 30rpx;
  180. font-weight: 800;
  181. color: #6d4b00;
  182. letter-spacing: 2rpx;
  183. }
  184. .map-side-toggle {
  185. position: absolute;
  186. left: 24rpx;
  187. z-index: 19;
  188. }
  189. .map-side-column {
  190. position: absolute;
  191. display: flex;
  192. flex-direction: column;
  193. gap: 16rpx;
  194. padding-top: 12rpx;
  195. z-index: 18;
  196. }
  197. .map-side-column--left {
  198. left: 24rpx;
  199. }
  200. .map-side-column--left-group {
  201. padding-top: 106rpx;
  202. }
  203. .map-side-column--right-main {
  204. right: 118rpx;
  205. }
  206. .map-side-column--right-sub {
  207. right: 24rpx;
  208. }
  209. .map-side-button {
  210. width: 78rpx;
  211. height: 78rpx;
  212. border-radius: 22rpx;
  213. background: rgba(248, 251, 244, 0.96);
  214. box-shadow: 0 10rpx 26rpx rgba(22, 48, 32, 0.14);
  215. display: flex;
  216. align-items: center;
  217. justify-content: center;
  218. box-sizing: border-box;
  219. }
  220. .map-side-button--icon {
  221. width: 90rpx;
  222. height: 90rpx;
  223. padding: 0;
  224. background: transparent;
  225. box-shadow: none;
  226. border-radius: 0;
  227. }
  228. .map-side-button__image {
  229. width: 100%;
  230. height: 100%;
  231. }
  232. .map-side-button__rotate-image {
  233. width: 100%;
  234. height: 100%;
  235. border-radius: 16rpx;
  236. box-sizing: border-box;
  237. }
  238. .map-side-button__rotate-image--active {
  239. border: 1px solid rgba(231, 54, 33, 0.98);
  240. }
  241. .map-side-button--muted {
  242. background: rgba(229, 233, 230, 0.92);
  243. }
  244. .map-side-button__text {
  245. font-size: 18rpx;
  246. line-height: 1.1;
  247. font-weight: 700;
  248. color: #163020;
  249. text-align: center;
  250. letter-spacing: 1rpx;
  251. }
  252. .compass-widget {
  253. display: flex;
  254. flex-direction: column;
  255. align-items: center;
  256. gap: 6rpx;
  257. flex-shrink: 0;
  258. }
  259. .compass-widget__heading {
  260. font-size: 14rpx;
  261. line-height: 1;
  262. font-weight: 600;
  263. color: rgba(32, 42, 34, 0.72);
  264. text-shadow: 0 1rpx 0 rgba(255, 255, 255, 0.35);
  265. }
  266. .compass-widget__dial {
  267. position: relative;
  268. width: 196rpx;
  269. height: 196rpx;
  270. border-radius: 50%;
  271. background: radial-gradient(circle at 48% 44%, rgba(255, 255, 255, 0.3) 0%, rgba(242, 241, 214, 0.32) 46%, rgba(183, 188, 159, 0.4) 72%, rgba(64, 68, 58, 0.62) 100%);
  272. border: 2rpx solid rgba(18, 24, 18, 0.48);
  273. box-shadow: 0 6rpx 14rpx rgba(0, 0, 0, 0.14), inset 0 0 0 2rpx rgba(255, 255, 255, 0.24);
  274. overflow: hidden;
  275. }
  276. .compass-widget__dial--active {
  277. border-color: rgba(250, 252, 187, 0.98);
  278. box-shadow: 0 0 0 2rpx rgba(253, 255, 214, 0.92), 0 0 18rpx rgba(247, 255, 173, 0.46), 0 6rpx 14rpx rgba(0, 0, 0, 0.14), inset 0 0 0 2rpx rgba(255, 255, 255, 0.28);
  279. }
  280. .compass-widget__glass,
  281. .compass-widget__inner-shadow {
  282. position: absolute;
  283. inset: 0;
  284. border-radius: 50%;
  285. pointer-events: none;
  286. }
  287. .compass-widget__glass {
  288. background: radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.1) 24%, rgba(255, 255, 255, 0) 52%);
  289. }
  290. .compass-widget__inner-shadow {
  291. box-shadow: inset 0 0 0 12rpx rgba(0, 0, 0, 0.07), inset 0 0 18rpx rgba(255, 255, 255, 0.22);
  292. }
  293. .compass-widget__card {
  294. position: absolute;
  295. inset: 0;
  296. transform-origin: center;
  297. }
  298. .compass-widget__north-arrow {
  299. position: absolute;
  300. left: 50%;
  301. top: 50%;
  302. width: 54rpx;
  303. height: 176rpx;
  304. transform: translate(-50%, -52%);
  305. display: block;
  306. pointer-events: none;
  307. z-index: 1;
  308. opacity: 0.42;
  309. }
  310. .compass-widget__north-arrow-outline,
  311. .compass-widget__north-arrow-fill,
  312. .compass-widget__north-arrow-tail-outline,
  313. .compass-widget__north-arrow-tail-fill {
  314. display: none;
  315. }
  316. .compass-widget__tick-anchor,
  317. .compass-widget__mark-anchor,
  318. .compass-widget__needle-anchor {
  319. position: absolute;
  320. left: 50%;
  321. top: 50%;
  322. }
  323. .compass-widget__tick {
  324. position: absolute;
  325. left: 50%;
  326. top: 50%;
  327. width: 2rpx;
  328. border-radius: 999rpx;
  329. transform: translate(-50%, -90rpx);
  330. background: rgba(28, 33, 28, 0.72);
  331. }
  332. .compass-widget__tick--short {
  333. height: 8rpx;
  334. }
  335. .compass-widget__tick--long {
  336. height: 12rpx;
  337. }
  338. .compass-widget__tick--major {
  339. width: 3rpx;
  340. height: 18rpx;
  341. background: rgba(18, 22, 18, 0.88);
  342. }
  343. .compass-widget__mark {
  344. position: absolute;
  345. left: 50%;
  346. top: 50%;
  347. line-height: 1;
  348. color: rgba(40, 42, 37, 0.88);
  349. text-shadow: 0 1rpx 0 rgba(255, 255, 255, 0.22);
  350. white-space: nowrap;
  351. transform-origin: center;
  352. }
  353. .compass-widget__mark--cardinal {
  354. font-size: 26rpx;
  355. font-weight: 700;
  356. }
  357. .compass-widget__mark--intermediate {
  358. font-size: 14rpx;
  359. font-weight: 600;
  360. }
  361. .compass-widget__mark--north {
  362. color: #d62323;
  363. }
  364. .compass-widget__mark--northeast,
  365. .compass-widget__mark--northwest {
  366. color: #577347;
  367. }
  368. .compass-widget__needle-anchor {
  369. width: 0;
  370. height: 0;
  371. }
  372. .compass-widget__needle-north,
  373. .compass-widget__needle-south {
  374. position: absolute;
  375. left: 50%;
  376. top: 50%;
  377. }
  378. .compass-widget__needle-north {
  379. width: 0;
  380. height: 0;
  381. border-left: 8rpx solid transparent;
  382. border-right: 8rpx solid transparent;
  383. border-bottom: 64rpx solid #ef2f2f;
  384. transform: translate(-50%, -74rpx);
  385. filter: drop-shadow(0 2rpx 3rpx rgba(96, 0, 0, 0.24));
  386. }
  387. .compass-widget__needle-south {
  388. width: 7rpx;
  389. height: 72rpx;
  390. border-radius: 999rpx;
  391. background: linear-gradient(180deg, rgba(236, 238, 232, 0.98) 0%, rgba(146, 151, 143, 0.98) 100%);
  392. transform: translate(-50%, 2rpx);
  393. box-shadow: 0 1rpx 3rpx rgba(32, 34, 31, 0.18);
  394. }
  395. .compass-widget__hub {
  396. position: absolute;
  397. left: 50%;
  398. top: 50%;
  399. width: 26rpx;
  400. height: 26rpx;
  401. transform: translate(-50%, -52%);
  402. border-radius: 50%;
  403. background: radial-gradient(circle at 34% 32%, #f4f3e7 0%, #d7d2bd 40%, #928b78 72%, #5a554b 100%);
  404. box-shadow: inset 0 0 0 2rpx rgba(255, 255, 255, 0.32), 0 2rpx 5rpx rgba(0, 0, 0, 0.16);
  405. }
  406. .compass-widget__hub-core {
  407. position: absolute;
  408. left: 50%;
  409. top: 50%;
  410. width: 10rpx;
  411. height: 10rpx;
  412. transform: translate(-50%, -52%);
  413. border-radius: 50%;
  414. background: rgba(173, 170, 156, 0.92);
  415. box-shadow: inset 0 0 0 2rpx rgba(255, 255, 255, 0.2);
  416. }
  417. .compass-widget__edge-arrow {
  418. width: 0;
  419. height: 0;
  420. margin-top: -2rpx;
  421. margin-bottom: -4rpx;
  422. border-left: 8rpx solid transparent;
  423. border-right: 8rpx solid transparent;
  424. border-top: 14rpx solid rgba(58, 49, 37, 0.72);
  425. filter: drop-shadow(0 1rpx 1rpx rgba(255, 255, 255, 0.18));
  426. }
  427. .compass-widget__hint {
  428. max-width: 196rpx;
  429. font-size: 14rpx;
  430. line-height: 1.3;
  431. color: #d62828;
  432. text-align: center;
  433. font-weight: 700;
  434. text-shadow: 0 1rpx 0 rgba(255, 255, 255, 0.24);
  435. }
  436. .race-panel {
  437. position: absolute;
  438. left: 0;
  439. right: 0;
  440. bottom: 0;
  441. height: 216rpx;
  442. background: linear-gradient(180deg, #1d97ec 0%, #168ce4 100%);
  443. box-shadow: 0 -10rpx 24rpx rgba(10, 75, 125, 0.2);
  444. z-index: 15;
  445. overflow: hidden;
  446. }
  447. .race-panel__grid {
  448. position: relative;
  449. z-index: 2;
  450. display: grid;
  451. grid-template-columns: 1fr 1fr 1fr;
  452. grid-template-rows: 1fr 1fr;
  453. width: 100%;
  454. height: 100%;
  455. }
  456. .race-panel__cell {
  457. position: relative;
  458. display: flex;
  459. align-items: center;
  460. justify-content: center;
  461. color: #ffffff;
  462. box-sizing: border-box;
  463. }
  464. .race-panel__cell--action,
  465. .race-panel__cell--timer,
  466. .race-panel__cell--mileage {
  467. padding-top: 10rpx;
  468. }
  469. .race-panel__cell--distance,
  470. .race-panel__cell--progress,
  471. .race-panel__cell--speed {
  472. padding-top: 2rpx;
  473. }
  474. .race-panel__cell--action {
  475. justify-content: center;
  476. padding-left: 0;
  477. }
  478. .race-panel__cell--timer {
  479. padding-left: 0;
  480. padding-right: 0;
  481. }
  482. .race-panel__cell--mileage {
  483. justify-content: center;
  484. padding-right: 0;
  485. }
  486. .race-panel__cell--distance {
  487. justify-content: center;
  488. padding-left: 0;
  489. }
  490. .race-panel__cell--progress {
  491. padding-left: 0;
  492. padding-right: 0;
  493. }
  494. .race-panel__cell--speed {
  495. justify-content: center;
  496. padding-right: 0;
  497. }
  498. .race-panel__play {
  499. width: 0;
  500. height: 0;
  501. margin-left: 2rpx;
  502. border-top: 20rpx solid transparent;
  503. border-bottom: 20rpx solid transparent;
  504. border-left: 30rpx solid #ffffff;
  505. filter: drop-shadow(0 2rpx 0 rgba(255, 255, 255, 0.25));
  506. transform: translateX(16rpx);
  507. }
  508. .race-panel__timer {
  509. max-width: 100%;
  510. box-sizing: border-box;
  511. font-size: 50rpx;
  512. line-height: 1;
  513. letter-spacing: 2rpx;
  514. font-family: 'Courier New', monospace;
  515. text-shadow: 0 2rpx 0 rgba(255, 255, 255, 0.2);
  516. }
  517. .race-panel__mileage {
  518. max-width: 100%;
  519. box-sizing: border-box;
  520. font-size: 40rpx;
  521. line-height: 1;
  522. font-weight: 300;
  523. text-shadow: 0 2rpx 0 rgba(255, 255, 255, 0.16);
  524. }
  525. .race-panel__mileage-wrap {
  526. display: flex;
  527. align-items: center;
  528. justify-content: center;
  529. gap: 10rpx;
  530. transform: translateX(-16rpx);
  531. }
  532. .race-panel__metric-group {
  533. max-width: 100%;
  534. box-sizing: border-box;
  535. display: flex;
  536. align-items: baseline;
  537. color: #ffffff;
  538. }
  539. .race-panel__metric-group--left {
  540. justify-content: center;
  541. transform: translateX(16rpx);
  542. }
  543. .race-panel__metric-group--right {
  544. justify-content: center;
  545. transform: translateX(-16rpx);
  546. }
  547. .race-panel__metric-value {
  548. line-height: 1;
  549. text-shadow: 0 2rpx 0 rgba(255, 255, 255, 0.16);
  550. }
  551. .race-panel__metric-value--distance {
  552. font-size: 54rpx;
  553. font-weight: 700;
  554. }
  555. .race-panel__metric-value--speed {
  556. font-size: 48rpx;
  557. font-weight: 400;
  558. }
  559. .race-panel__metric-unit {
  560. line-height: 1;
  561. margin-left: 6rpx;
  562. opacity: 0.95;
  563. }
  564. .race-panel__metric-unit--distance {
  565. font-size: 24rpx;
  566. font-weight: 600;
  567. }
  568. .race-panel__metric-unit--speed {
  569. font-size: 18rpx;
  570. font-weight: 500;
  571. }
  572. .race-panel__progress {
  573. max-width: 100%;
  574. box-sizing: border-box;
  575. font-size: 50rpx;
  576. line-height: 1;
  577. font-weight: 400;
  578. text-shadow: 0 2rpx 0 rgba(255, 255, 255, 0.16);
  579. }
  580. .race-panel__tag {
  581. position: absolute;
  582. z-index: 3;
  583. min-width: 56rpx;
  584. height: 32rpx;
  585. padding: 0 10rpx;
  586. background: #000000;
  587. color: #ffffff;
  588. font-size: 16rpx;
  589. line-height: 32rpx;
  590. text-align: center;
  591. letter-spacing: 2rpx;
  592. }
  593. .race-panel__tag--top-left {
  594. top: 0;
  595. left: 0;
  596. }
  597. .race-panel__tag--top-right {
  598. top: 0;
  599. right: 0;
  600. }
  601. .race-panel__tag--bottom-left {
  602. left: 0;
  603. bottom: 0;
  604. }
  605. .race-panel__tag--bottom-right {
  606. right: 0;
  607. bottom: 0;
  608. }
  609. .map-punch-button {
  610. position: absolute;
  611. right: 24rpx;
  612. bottom: 244rpx;
  613. width: 92rpx;
  614. height: 92rpx;
  615. border-radius: 50%;
  616. background: rgba(78, 92, 106, 0.82);
  617. box-shadow: 0 12rpx 28rpx rgba(22, 34, 46, 0.22), inset 0 0 0 2rpx rgba(255, 255, 255, 0.08);
  618. z-index: 18;
  619. }
  620. .map-punch-button__text {
  621. font-size: 20rpx;
  622. line-height: 92rpx;
  623. font-weight: 800;
  624. text-align: center;
  625. color: rgba(236, 241, 246, 0.88);
  626. }
  627. .map-punch-button--active {
  628. background: rgba(92, 255, 237, 0.96);
  629. box-shadow: 0 0 0 5rpx rgba(149, 255, 244, 0.18), 0 0 30rpx rgba(92, 255, 237, 0.5);
  630. animation: punch-button-ready 1s ease-in-out infinite;
  631. }
  632. .map-punch-button--active .map-punch-button__text {
  633. color: #064d46;
  634. }
  635. .race-panel__line {
  636. position: absolute;
  637. z-index: 1;
  638. height: 2rpx;
  639. box-shadow: 0 0 6rpx rgba(255, 255, 255, 0.2);
  640. }
  641. .race-panel__line--center {
  642. left: 33.3333%;
  643. right: 33.3333%;
  644. top: 50%;
  645. transform: translateY(-50%);
  646. background: rgba(255, 255, 255, 0.86);
  647. }
  648. .race-panel__line--left-mid {
  649. left: 0;
  650. width: 33.3333%;
  651. top: 50%;
  652. transform: translateY(-50%);
  653. background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.78) 100%);
  654. }
  655. .race-panel__line--right-mid {
  656. right: 0;
  657. width: 33.3333%;
  658. top: 50%;
  659. transform: translateY(-50%);
  660. background: linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.08) 100%);
  661. }
  662. .race-panel__line--left-top,
  663. .race-panel__line--left-bottom,
  664. .race-panel__line--right-top,
  665. .race-panel__line--right-bottom {
  666. width: 23%;
  667. top: 50%;
  668. }
  669. .race-panel__line--left-top {
  670. right: 66.6667%;
  671. transform-origin: right center;
  672. transform: translateY(-50%) rotate(70deg);
  673. background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.82) 100%);
  674. }
  675. .race-panel__line--left-bottom {
  676. right: 66.6667%;
  677. transform-origin: right center;
  678. transform: translateY(-50%) rotate(-70deg);
  679. background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.82) 100%);
  680. }
  681. .race-panel__line--right-top {
  682. left: 66.6667%;
  683. transform-origin: left center;
  684. transform: translateY(-50%) rotate(-70deg);
  685. background: linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.08) 100%);
  686. }
  687. .race-panel__line--right-bottom {
  688. left: 66.6667%;
  689. transform-origin: left center;
  690. transform: translateY(-50%) rotate(70deg);
  691. background: linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.08) 100%);
  692. }
  693. .race-panel__chevrons {
  694. position: relative;
  695. width: 24rpx;
  696. height: 24rpx;
  697. opacity: 0.5;
  698. flex-shrink: 0;
  699. }
  700. .race-panel__chevron {
  701. position: absolute;
  702. right: 6rpx;
  703. top: 50%;
  704. width: 10rpx;
  705. height: 10rpx;
  706. border-top: 3rpx solid rgba(255, 255, 255, 0.78);
  707. border-right: 3rpx solid rgba(255, 255, 255, 0.78);
  708. transform: translateY(-50%) rotate(45deg);
  709. }
  710. .race-panel__chevron--offset {
  711. right: 0;
  712. }
  713. .debug-modal {
  714. position: absolute;
  715. inset: 0;
  716. display: flex;
  717. align-items: flex-end;
  718. justify-content: center;
  719. padding: 0 20rpx 28rpx;
  720. box-sizing: border-box;
  721. background: rgba(7, 18, 12, 0.34);
  722. z-index: 30;
  723. }
  724. .debug-modal__dialog {
  725. width: 100%;
  726. max-height: 72vh;
  727. border-radius: 36rpx;
  728. background: rgba(248, 251, 244, 0.98);
  729. box-shadow: 0 20rpx 60rpx rgba(7, 18, 12, 0.24);
  730. overflow: hidden;
  731. }
  732. .debug-modal__header {
  733. display: flex;
  734. align-items: center;
  735. justify-content: flex-end;
  736. gap: 20rpx;
  737. padding: 28rpx 28rpx 20rpx;
  738. border-bottom: 1rpx solid rgba(22, 48, 32, 0.08);
  739. }
  740. .debug-modal__eyebrow {
  741. font-size: 20rpx;
  742. letter-spacing: 4rpx;
  743. color: #5f7a65;
  744. }
  745. .debug-modal__title {
  746. margin-top: 8rpx;
  747. font-size: 34rpx;
  748. font-weight: 600;
  749. color: #163020;
  750. }
  751. .debug-modal__close {
  752. flex-shrink: 0;
  753. padding: 14rpx 22rpx;
  754. border-radius: 999rpx;
  755. background: #163020;
  756. color: #f7fbf2;
  757. font-size: 24rpx;
  758. }
  759. .debug-modal__content {
  760. max-height: calc(72vh - 108rpx);
  761. padding: 12rpx 28rpx 30rpx;
  762. box-sizing: border-box;
  763. }
  764. .info-panel__row {
  765. display: flex;
  766. align-items: flex-start;
  767. justify-content: space-between;
  768. gap: 24rpx;
  769. padding: 10rpx 0;
  770. border-bottom: 1rpx solid rgba(22, 48, 32, 0.08);
  771. }
  772. .info-panel__row--stack {
  773. align-items: flex-start;
  774. }
  775. .info-panel__row:last-of-type {
  776. border-bottom: none;
  777. }
  778. .info-panel__label {
  779. width: 148rpx;
  780. flex-shrink: 0;
  781. font-size: 22rpx;
  782. letter-spacing: 2rpx;
  783. color: #5f7a65;
  784. text-align: left;
  785. text-transform: uppercase;
  786. }
  787. .info-panel__value {
  788. flex: 1;
  789. min-width: 0;
  790. font-size: 25rpx;
  791. line-height: 1.45;
  792. color: #163020;
  793. text-align: right;
  794. word-break: break-all;
  795. }
  796. .info-panel__row--stack .info-panel__value {
  797. margin-top: 0;
  798. text-align: right;
  799. color: #45624b;
  800. }
  801. .control-row {
  802. display: flex;
  803. gap: 14rpx;
  804. margin-top: 18rpx;
  805. }
  806. .control-row--triple .control-chip {
  807. font-size: 23rpx;
  808. }
  809. .control-chip {
  810. flex: 1;
  811. min-width: 0;
  812. padding: 20rpx 16rpx;
  813. border-radius: 999rpx;
  814. background: #d7e8da;
  815. color: #163020;
  816. font-size: 26rpx;
  817. text-align: center;
  818. box-sizing: border-box;
  819. }
  820. .control-chip--primary {
  821. background: #2d6a4f;
  822. color: #f7fbf2;
  823. }
  824. .control-chip--secondary {
  825. background: #eef6ea;
  826. color: #45624b;
  827. }
  828. .control-chip--active {
  829. background: #2d6a4f;
  830. color: #f7fbf2;
  831. }
  832. .race-panel__cell--action {
  833. justify-content: flex-start;
  834. padding-left: 44rpx;
  835. }
  836. .race-panel__cell--timer {
  837. padding-left: 12rpx;
  838. padding-right: 12rpx;
  839. }
  840. .race-panel__cell--mileage {
  841. justify-content: flex-end;
  842. padding-right: 56rpx;
  843. }
  844. .race-panel__cell--distance {
  845. justify-content: flex-start;
  846. padding-left: 28rpx;
  847. }
  848. .race-panel__cell--progress {
  849. padding-left: 8rpx;
  850. padding-right: 8rpx;
  851. }
  852. .race-panel__cell--speed {
  853. justify-content: flex-end;
  854. padding-right: 32rpx;
  855. }
  856. .race-panel__timer,
  857. .race-panel__progress,
  858. .race-panel__mileage,
  859. .race-panel__metric-group {
  860. max-width: 100%;
  861. box-sizing: border-box;
  862. }
  863. .game-punch-hint {
  864. position: absolute;
  865. left: 50%;
  866. bottom: 280rpx;
  867. transform: translateX(-50%);
  868. max-width: 72vw;
  869. padding: 14rpx 24rpx;
  870. border-radius: 999rpx;
  871. background: rgba(18, 33, 24, 0.78);
  872. color: #f7fbf2;
  873. font-size: 24rpx;
  874. line-height: 1.2;
  875. text-align: center;
  876. z-index: 16;
  877. pointer-events: none;
  878. }
  879. .game-punch-feedback {
  880. position: absolute;
  881. left: 50%;
  882. top: 18%;
  883. transform: translateX(-50%);
  884. min-width: 240rpx;
  885. padding: 20rpx 28rpx;
  886. border-radius: 24rpx;
  887. color: #ffffff;
  888. font-size: 24rpx;
  889. font-weight: 700;
  890. text-align: center;
  891. box-shadow: 0 16rpx 36rpx rgba(0, 0, 0, 0.18);
  892. z-index: 17;
  893. pointer-events: none;
  894. }
  895. .game-punch-feedback--neutral {
  896. background: rgba(27, 109, 189, 0.92);
  897. }
  898. .game-punch-feedback--success {
  899. background: rgba(37, 134, 88, 0.94);
  900. }
  901. .game-punch-feedback--warning {
  902. background: rgba(196, 117, 18, 0.94);
  903. }
  904. .game-content-card {
  905. position: absolute;
  906. left: 50%;
  907. top: 26%;
  908. width: 440rpx;
  909. max-width: calc(100vw - 72rpx);
  910. transform: translateX(-50%);
  911. padding: 28rpx 28rpx 24rpx;
  912. border-radius: 28rpx;
  913. background: rgba(248, 251, 244, 0.96);
  914. box-shadow: 0 18rpx 48rpx rgba(22, 48, 32, 0.18);
  915. box-sizing: border-box;
  916. z-index: 17;
  917. }
  918. .game-content-card__title {
  919. font-size: 34rpx;
  920. line-height: 1.2;
  921. font-weight: 700;
  922. color: #163020;
  923. }
  924. .game-content-card__body {
  925. margin-top: 12rpx;
  926. font-size: 24rpx;
  927. line-height: 1.5;
  928. color: #45624b;
  929. }
  930. .game-content-card__hint {
  931. margin-top: 16rpx;
  932. font-size: 20rpx;
  933. color: #809284;
  934. }
  935. .race-panel__action-button {
  936. display: flex;
  937. align-items: center;
  938. justify-content: center;
  939. min-width: 116rpx;
  940. min-height: 72rpx;
  941. padding: 0 20rpx;
  942. border-radius: 999rpx;
  943. background: rgba(78, 92, 106, 0.54);
  944. border: 2rpx solid rgba(210, 220, 228, 0.18);
  945. box-sizing: border-box;
  946. box-shadow: inset 0 0 0 2rpx rgba(255, 255, 255, 0.06);
  947. }
  948. .race-panel__action-button--active {
  949. background: rgba(255, 226, 88, 0.98);
  950. border-color: rgba(255, 247, 194, 0.98);
  951. box-shadow: 0 0 0 4rpx rgba(255, 241, 158, 0.18), 0 0 28rpx rgba(255, 239, 122, 0.42);
  952. animation: punch-button-ready 1s ease-in-out infinite;
  953. }
  954. .race-panel__action-button-text {
  955. font-size: 24rpx;
  956. line-height: 1;
  957. font-weight: 700;
  958. color: rgba(236, 241, 246, 0.86);
  959. }
  960. .race-panel__action-button--active .race-panel__action-button-text {
  961. color: #775000;
  962. }
  963. @keyframes punch-button-ready {
  964. 0% {
  965. transform: scale(1);
  966. box-shadow: 0 0 0 0 rgba(255, 241, 158, 0.22), 0 0 18rpx rgba(255, 239, 122, 0.28);
  967. }
  968. 50% {
  969. transform: scale(1.06);
  970. box-shadow: 0 0 0 8rpx rgba(255, 241, 158, 0.08), 0 0 34rpx rgba(255, 239, 122, 0.52);
  971. }
  972. 100% {
  973. transform: scale(1);
  974. box-shadow: 0 0 0 0 rgba(255, 241, 158, 0.22), 0 0 18rpx rgba(255, 239, 122, 0.28);
  975. }
  976. }