styles.css 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. :root {
  2. color-scheme: dark;
  3. --bg: #0d1318;
  4. --bg-mid: #101921;
  5. --bg-end: #18232d;
  6. --panel: rgba(19, 28, 36, 0.9);
  7. --panel-strong: rgba(24, 35, 45, 0.98);
  8. --ink: #edf4f8;
  9. --muted: #9fb0bc;
  10. --line: rgba(203, 221, 233, 0.1);
  11. --ok: #72e2a6;
  12. --ok-soft: rgba(50, 132, 86, 0.26);
  13. --bad: #ff9f93;
  14. --bad-soft: rgba(170, 61, 54, 0.28);
  15. --accent-a: rgba(61, 110, 170, 0.32);
  16. --accent-b: rgba(26, 167, 122, 0.18);
  17. --accent-c: rgba(255, 174, 102, 0.12);
  18. --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  19. --button-bg: rgba(237, 244, 248, 0.08);
  20. --button-hover: rgba(237, 244, 248, 0.14);
  21. --backdrop: rgba(6, 10, 13, 0.72);
  22. }
  23. [data-theme="light"] {
  24. color-scheme: light;
  25. --bg: #f4efe7;
  26. --bg-mid: #fbf8f3;
  27. --bg-end: #eef4ea;
  28. --panel: rgba(255, 252, 247, 0.92);
  29. --panel-strong: rgba(255, 252, 247, 0.98);
  30. --ink: #1f2933;
  31. --muted: #52606d;
  32. --line: rgba(31, 41, 51, 0.08);
  33. --ok: #1f7a4c;
  34. --ok-soft: #d7f5e5;
  35. --bad: #b42318;
  36. --bad-soft: #fee4e2;
  37. --accent-a: rgba(213, 231, 247, 0.9);
  38. --accent-b: rgba(220, 232, 200, 0.9);
  39. --accent-c: rgba(248, 217, 182, 0.9);
  40. --shadow: 0 24px 60px rgba(31, 41, 51, 0.12);
  41. --button-bg: rgba(31, 41, 51, 0.04);
  42. --button-hover: rgba(31, 41, 51, 0.08);
  43. --backdrop: rgba(31, 41, 51, 0.42);
  44. }
  45. * {
  46. box-sizing: border-box;
  47. }
  48. body {
  49. margin: 0;
  50. font-family: "Avenir Next", "Segoe UI", sans-serif;
  51. color: var(--ink);
  52. background:
  53. radial-gradient(circle at top left, var(--accent-c), transparent 28%),
  54. radial-gradient(circle at top right, var(--accent-a), transparent 24%),
  55. linear-gradient(160deg, var(--bg), var(--bg-mid) 48%, var(--bg-end));
  56. min-height: 100vh;
  57. }
  58. body.modal-open {
  59. overflow: hidden;
  60. }
  61. .shell {
  62. min-height: 100vh;
  63. padding: 20px;
  64. display: flex;
  65. flex-direction: column;
  66. }
  67. .modal-close:focus-visible {
  68. outline: 2px solid var(--muted);
  69. outline-offset: 3px;
  70. }
  71. .grid {
  72. display: grid;
  73. grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  74. gap: 20px;
  75. flex: 1;
  76. align-content: start;
  77. }
  78. .tile {
  79. background: var(--panel);
  80. border: 1px solid var(--line);
  81. border-radius: 24px;
  82. padding: 22px;
  83. box-shadow: 0 10px 30px rgba(31, 41, 51, 0.08);
  84. backdrop-filter: blur(10px);
  85. transform: translateY(0);
  86. opacity: 1;
  87. display: flex;
  88. flex-direction: column;
  89. cursor: pointer;
  90. transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  91. }
  92. .tile-enter {
  93. transform: translateY(10px);
  94. opacity: 0;
  95. animation: rise 500ms ease forwards;
  96. }
  97. .tile:hover {
  98. transform: translateY(-2px);
  99. box-shadow: 0 16px 36px rgba(31, 41, 51, 0.14);
  100. }
  101. .tile:focus-visible {
  102. outline: 2px solid var(--muted);
  103. outline-offset: 4px;
  104. }
  105. @keyframes rise {
  106. to {
  107. transform: translateY(0);
  108. opacity: 1;
  109. }
  110. }
  111. .row {
  112. display: flex;
  113. align-items: center;
  114. justify-content: space-between;
  115. gap: 12px;
  116. }
  117. .name {
  118. margin: 14px 0 8px;
  119. font-size: 1.3rem;
  120. letter-spacing: -0.03em;
  121. }
  122. .tile:hover .name,
  123. .tile:focus-visible .name {
  124. text-decoration: underline;
  125. }
  126. .category,
  127. .modal-kicker {
  128. color: var(--muted);
  129. }
  130. .pill {
  131. display: inline-flex;
  132. align-items: center;
  133. gap: 8px;
  134. padding: 8px 12px;
  135. border-radius: 999px;
  136. font-weight: 700;
  137. font-size: 0.9rem;
  138. }
  139. .pill.ok {
  140. background: var(--ok-soft);
  141. color: var(--ok);
  142. }
  143. .pill.bad {
  144. background: var(--bad-soft);
  145. color: var(--bad);
  146. }
  147. .dot {
  148. width: 10px;
  149. height: 10px;
  150. border-radius: 50%;
  151. background: currentColor;
  152. box-shadow: 0 0 0 6px rgba(255,255,255,0.4);
  153. }
  154. .stats {
  155. display: grid;
  156. grid-template-columns: repeat(2, minmax(0, 1fr));
  157. gap: 12px;
  158. margin-top: 18px;
  159. }
  160. .stat {
  161. padding: 12px;
  162. border-radius: 16px;
  163. background: var(--button-bg);
  164. }
  165. .label {
  166. display: block;
  167. font-size: 0.8rem;
  168. text-transform: uppercase;
  169. letter-spacing: 0.08em;
  170. color: var(--muted);
  171. margin-bottom: 6px;
  172. }
  173. .value {
  174. font-size: 1rem;
  175. font-weight: 700;
  176. }
  177. .modal-backdrop {
  178. position: fixed;
  179. inset: 0;
  180. background: var(--backdrop);
  181. display: flex;
  182. align-items: center;
  183. justify-content: center;
  184. padding: 20px;
  185. z-index: 20;
  186. }
  187. .modal-backdrop.hidden {
  188. display: none;
  189. }
  190. .modal {
  191. width: min(760px, 100%);
  192. max-height: min(85vh, 900px);
  193. overflow: auto;
  194. background: var(--panel-strong);
  195. border: 1px solid var(--line);
  196. border-radius: 28px;
  197. box-shadow: var(--shadow);
  198. padding: 24px;
  199. }
  200. .modal-header {
  201. display: flex;
  202. justify-content: space-between;
  203. align-items: flex-start;
  204. gap: 16px;
  205. margin-bottom: 20px;
  206. }
  207. .modal-title {
  208. margin: 6px 0 0;
  209. font-size: clamp(1.6rem, 4vw, 2.4rem);
  210. letter-spacing: -0.04em;
  211. }
  212. .modal-close {
  213. border: 1px solid var(--line);
  214. background: var(--button-bg);
  215. color: var(--ink);
  216. border-radius: 999px;
  217. padding: 10px 14px;
  218. cursor: pointer;
  219. font: inherit;
  220. }
  221. .modal-close:hover {
  222. background: var(--button-hover);
  223. }
  224. .modal-grid {
  225. display: grid;
  226. grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  227. gap: 14px;
  228. }
  229. .modal-stat {
  230. padding: 14px;
  231. border-radius: 18px;
  232. background: var(--button-bg);
  233. }
  234. .modal-stat .value {
  235. display: block;
  236. font-size: 0.98rem;
  237. line-height: 1.5;
  238. word-break: break-word;
  239. }
  240. @media (max-width: 640px) {
  241. .shell {
  242. padding: 14px 14px 24px;
  243. }
  244. .tile {
  245. border-radius: 22px;
  246. }
  247. .grid {
  248. grid-template-columns: 1fr;
  249. }
  250. .modal {
  251. padding: 18px;
  252. border-radius: 22px;
  253. }
  254. .modal-header {
  255. flex-direction: column;
  256. }
  257. }