| 1 | :root { |
| 2 | --bg: #f5f3ed; |
| 3 | --paper: #fffefb; |
| 4 | --ink: #24352d; |
| 5 | --muted: #7a8178; |
| 6 | --green: #365d45; |
| 7 | --line: #dedfd5; |
| 8 | --lime: #d6e6a4; |
| 9 | --dark-square: #8caa8c; |
| 10 | --light-square: #e9edde |
| 11 | } |
| 12 | |
| 13 | * { |
| 14 | box-sizing: border-box |
| 15 | } |
| 16 | |
| 17 | body { |
| 18 | margin: 0; |
| 19 | background: var(--bg); |
| 20 | color: var(--ink); |
| 21 | font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif |
| 22 | } |
| 23 | |
| 24 | button, |
| 25 | a, |
| 26 | input { |
| 27 | -webkit-tap-highlight-color: transparent |
| 28 | } |
| 29 | |
| 30 | button, |
| 31 | .button { |
| 32 | font: inherit; |
| 33 | cursor: pointer; |
| 34 | border: 0; |
| 35 | border-radius: 8px; |
| 36 | padding: 11px 16px; |
| 37 | font-weight: 600; |
| 38 | transition: background .15s, transform .15s |
| 39 | } |
| 40 | |
| 41 | button:hover, |
| 42 | .button:hover { |
| 43 | filter: brightness(.95) |
| 44 | } |
| 45 | |
| 46 | button:disabled { |
| 47 | cursor: default; |
| 48 | opacity: .55 |
| 49 | } |
| 50 | |
| 51 | button:focus-visible, |
| 52 | a:focus-visible, |
| 53 | input:focus-visible { |
| 54 | outline: 3px solid #c19042; |
| 55 | outline-offset: 3px |
| 56 | } |
| 57 | |
| 58 | a { |
| 59 | color: inherit |
| 60 | } |
| 61 | |
| 62 | h1, |
| 63 | h2, |
| 64 | h3, |
| 65 | p { |
| 66 | margin: 0 |
| 67 | } |
| 68 | |
| 69 | h1 { |
| 70 | font-size: 44px; |
| 71 | letter-spacing: -2px; |
| 72 | font-weight: 650; |
| 73 | line-height: 1.2 |
| 74 | } |
| 75 | |
| 76 | h2 { |
| 77 | font-size: 18px; |
| 78 | letter-spacing: -.4px |
| 79 | } |
| 80 | |
| 81 | h3 { |
| 82 | font-size: 18px |
| 83 | } |
| 84 | |
| 85 | .brand-dot { |
| 86 | color: #789254 |
| 87 | } |
| 88 | |
| 89 | .topbar { |
| 90 | height: 88px; |
| 91 | border-bottom: 1px solid var(--line); |
| 92 | display: flex; |
| 93 | align-items: center; |
| 94 | padding: 0 44px; |
| 95 | gap: 38px; |
| 96 | background: var(--paper) |
| 97 | } |
| 98 | |
| 99 | .brand { |
| 100 | display: flex; |
| 101 | align-items: center; |
| 102 | text-decoration: none; |
| 103 | font-size: 25px; |
| 104 | font-weight: 750; |
| 105 | letter-spacing: -1.2px |
| 106 | } |
| 107 | |
| 108 | .brandmark { |
| 109 | background: var(--green); |
| 110 | color: #fff; |
| 111 | border-radius: 10px; |
| 112 | width: 38px; |
| 113 | height: 38px; |
| 114 | line-height: 34px; |
| 115 | text-align: center; |
| 116 | margin-right: 12px; |
| 117 | font-family: Georgia, serif; |
| 118 | font-size: 30px; |
| 119 | font-weight: 700; |
| 120 | position: relative |
| 121 | } |
| 122 | |
| 123 | .brandmark span { |
| 124 | font: 14px system-ui; |
| 125 | position: absolute; |
| 126 | right: 2px; |
| 127 | top: 0; |
| 128 | color: var(--lime) |
| 129 | } |
| 130 | |
| 131 | .tagline { |
| 132 | font-size: 13px; |
| 133 | color: var(--muted) |
| 134 | } |
| 135 | |
| 136 | .account-nav { |
| 137 | margin-left: auto; |
| 138 | display: flex; |
| 139 | align-items: center; |
| 140 | gap: 8px |
| 141 | } |
| 142 | |
| 143 | .quiet { |
| 144 | background: transparent; |
| 145 | color: var(--muted) |
| 146 | } |
| 147 | |
| 148 | .layout { |
| 149 | display: grid; |
| 150 | grid-template-columns: minmax(0, 1fr) 300px; |
| 151 | min-height: calc(100vh - 88px) |
| 152 | } |
| 153 | |
| 154 | main { |
| 155 | padding: 44px; |
| 156 | min-width: 0 |
| 157 | } |
| 158 | |
| 159 | .page-heading { |
| 160 | display: flex; |
| 161 | justify-content: space-between; |
| 162 | align-items: center; |
| 163 | gap: 20px; |
| 164 | margin-bottom: 43px |
| 165 | } |
| 166 | |
| 167 | .eyebrow { |
| 168 | font-size: 10px; |
| 169 | font-weight: 750; |
| 170 | letter-spacing: 2px; |
| 171 | color: var(--green); |
| 172 | display: block; |
| 173 | margin-bottom: 12px |
| 174 | } |
| 175 | |
| 176 | .page-heading p { |
| 177 | color: var(--muted); |
| 178 | margin-top: 11px; |
| 179 | font-size: 14px |
| 180 | } |
| 181 | |
| 182 | .primary, |
| 183 | .button.primary { |
| 184 | background: var(--green); |
| 185 | color: white; |
| 186 | box-shadow: 0 2px 3px #24352d12; |
| 187 | text-decoration: none; |
| 188 | white-space: nowrap |
| 189 | } |
| 190 | |
| 191 | .section-heading { |
| 192 | display: flex; |
| 193 | justify-content: space-between; |
| 194 | align-items: center; |
| 195 | margin: 0 0 19px; |
| 196 | gap: 12px |
| 197 | } |
| 198 | |
| 199 | .section-heading h2 { |
| 200 | display: flex; |
| 201 | align-items: center; |
| 202 | gap: 10px |
| 203 | } |
| 204 | |
| 205 | .section-heading>span { |
| 206 | font-size: 11px; |
| 207 | color: var(--muted) |
| 208 | } |
| 209 | |
| 210 | .status-dot { |
| 211 | width: 7px; |
| 212 | height: 7px; |
| 213 | border-radius: 50%; |
| 214 | background: #688447; |
| 215 | box-shadow: 0 0 0 4px #6884470c |
| 216 | } |
| 217 | |
| 218 | .muted-dot { |
| 219 | background: #a7ada1 |
| 220 | } |
| 221 | |
| 222 | .count { |
| 223 | font-size: 11px; |
| 224 | border: 1px solid var(--line); |
| 225 | border-radius: 6px; |
| 226 | padding: 1px 7px; |
| 227 | color: var(--muted); |
| 228 | font-weight: 500 |
| 229 | } |
| 230 | |
| 231 | .game-grid { |
| 232 | display: grid; |
| 233 | grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); |
| 234 | gap: 22px |
| 235 | } |
| 236 | |
| 237 | .game-card { |
| 238 | background: var(--paper); |
| 239 | border: 1px solid #dbdfd3; |
| 240 | border-radius: 13px; |
| 241 | overflow: hidden; |
| 242 | box-shadow: 0 3px 5px #24352d04; |
| 243 | min-width: 0 |
| 244 | } |
| 245 | |
| 246 | .card-header { |
| 247 | display: flex; |
| 248 | align-items: center; |
| 249 | gap: 9px; |
| 250 | padding: 14px 16px; |
| 251 | border-bottom: 1px solid #e4e6dc |
| 252 | } |
| 253 | |
| 254 | .avatar { |
| 255 | width: 31px; |
| 256 | height: 31px; |
| 257 | display: grid; |
| 258 | place-items: center; |
| 259 | border-radius: 50%; |
| 260 | background: #e8ecdf; |
| 261 | color: #56634b; |
| 262 | font-size: 11px; |
| 263 | font-weight: 750; |
| 264 | flex-shrink: 0 |
| 265 | } |
| 266 | |
| 267 | .card-header strong { |
| 268 | font-size: 13px; |
| 269 | overflow: hidden; |
| 270 | text-overflow: ellipsis; |
| 271 | white-space: nowrap |
| 272 | } |
| 273 | |
| 274 | .color-tag { |
| 275 | margin-left: auto; |
| 276 | font-size: 10px; |
| 277 | display: flex; |
| 278 | align-items: center; |
| 279 | gap: 5px; |
| 280 | color: var(--muted) |
| 281 | } |
| 282 | |
| 283 | .color-disc { |
| 284 | width: 9px; |
| 285 | height: 9px; |
| 286 | border-radius: 50%; |
| 287 | background: white; |
| 288 | border: 1px solid #8d978b |
| 289 | } |
| 290 | |
| 291 | .color-disc.black { |
| 292 | background: #28382e; |
| 293 | border-color: #28382e |
| 294 | } |
| 295 | |
| 296 | .board-wrap { |
| 297 | padding: 15px; |
| 298 | position: relative |
| 299 | } |
| 300 | |
| 301 | .board { |
| 302 | display: grid; |
| 303 | grid-template-columns: repeat(4, 1fr); |
| 304 | border-radius: 5px; |
| 305 | overflow: hidden; |
| 306 | aspect-ratio: 4/5; |
| 307 | touch-action: pan-y |
| 308 | } |
| 309 | |
| 310 | .square { |
| 311 | position: relative; |
| 312 | aspect-ratio: 1; |
| 313 | background: var(--light-square); |
| 314 | display: grid; |
| 315 | place-items: center; |
| 316 | border: 0; |
| 317 | border-radius: 0; |
| 318 | padding: 0; |
| 319 | min-width: 0; |
| 320 | touch-action: none |
| 321 | } |
| 322 | |
| 323 | .square.dark { |
| 324 | background: var(--dark-square) |
| 325 | } |
| 326 | |
| 327 | .square:disabled { |
| 328 | opacity: 1; |
| 329 | cursor: default |
| 330 | } |
| 331 | |
| 332 | .square:hover { |
| 333 | filter: none |
| 334 | } |
| 335 | |
| 336 | .square img { |
| 337 | width: 82%; |
| 338 | height: 82%; |
| 339 | pointer-events: none; |
| 340 | user-select: none; |
| 341 | filter: drop-shadow(0 2px 1px #00000016) |
| 342 | } |
| 343 | |
| 344 | .square.selected { |
| 345 | background: #d6d98b |
| 346 | } |
| 347 | |
| 348 | .square.last:after { |
| 349 | content: ""; |
| 350 | position: absolute; |
| 351 | inset: 0; |
| 352 | background: #e6df5350; |
| 353 | pointer-events: none |
| 354 | } |
| 355 | |
| 356 | .square.selected:after { |
| 357 | background: transparent |
| 358 | } |
| 359 | |
| 360 | .square.legal:before { |
| 361 | content: ""; |
| 362 | width: 23%; |
| 363 | height: 23%; |
| 364 | background: #294d4560; |
| 365 | border-radius: 50%; |
| 366 | position: absolute; |
| 367 | z-index: 2; |
| 368 | pointer-events: none |
| 369 | } |
| 370 | |
| 371 | .square.legal.occupied:before { |
| 372 | width: 90%; |
| 373 | height: 90%; |
| 374 | border: 5px solid #294d4560; |
| 375 | background: transparent |
| 376 | } |
| 377 | |
| 378 | .square.checked { |
| 379 | background: #ce8e77 |
| 380 | } |
| 381 | |
| 382 | .coordinate { |
| 383 | position: absolute; |
| 384 | bottom: 2px; |
| 385 | right: 4px; |
| 386 | font-size: 9px; |
| 387 | font-weight: 600; |
| 388 | color: #38543c; |
| 389 | z-index: 1; |
| 390 | line-height: 1 |
| 391 | } |
| 392 | |
| 393 | .rank { |
| 394 | top: 4px; |
| 395 | left: 4px; |
| 396 | bottom: auto; |
| 397 | right: auto |
| 398 | } |
| 399 | |
| 400 | .card-footer { |
| 401 | padding: 0 16px 14px; |
| 402 | display: flex; |
| 403 | justify-content: space-between; |
| 404 | align-items: center; |
| 405 | gap: 5px; |
| 406 | color: var(--muted); |
| 407 | font-size: 11px |
| 408 | } |
| 409 | |
| 410 | .card-footer .turn-label { |
| 411 | color: var(--green); |
| 412 | font-weight: 600 |
| 413 | } |
| 414 | |
| 415 | .text-button { |
| 416 | background: transparent; |
| 417 | color: var(--green); |
| 418 | padding: 3px 0; |
| 419 | font-size: 12px |
| 420 | } |
| 421 | |
| 422 | .waiting-heading { |
| 423 | border-top: 1px solid var(--line); |
| 424 | padding-top: 30px; |
| 425 | margin-top: 34px |
| 426 | } |
| 427 | |
| 428 | .waiting .board { |
| 429 | filter: saturate(.62) |
| 430 | } |
| 431 | |
| 432 | .empty { |
| 433 | grid-column: 1/-1; |
| 434 | min-height: 200px; |
| 435 | border: 1px dashed #ced4c5; |
| 436 | border-radius: 12px; |
| 437 | display: flex; |
| 438 | flex-direction: column; |
| 439 | align-items: center; |
| 440 | justify-content: center; |
| 441 | text-align: center; |
| 442 | padding: 28px; |
| 443 | color: var(--muted); |
| 444 | gap: 10px |
| 445 | } |
| 446 | |
| 447 | .empty .empty-icon { |
| 448 | font: 40px Georgia; |
| 449 | color: #859673 |
| 450 | } |
| 451 | |
| 452 | .empty h3 { |
| 453 | color: var(--ink); |
| 454 | font-size: 16px |
| 455 | } |
| 456 | |
| 457 | .empty p { |
| 458 | font-size: 13px; |
| 459 | max-width: 340px |
| 460 | } |
| 461 | |
| 462 | .pending-content, |
| 463 | .end-content { |
| 464 | display: flex; |
| 465 | flex-direction: column; |
| 466 | align-items: center; |
| 467 | justify-content: center; |
| 468 | text-align: center; |
| 469 | gap: 15px; |
| 470 | min-height: 300px; |
| 471 | padding: 24px |
| 472 | } |
| 473 | |
| 474 | .pending-content .big-icon, |
| 475 | .end-content .big-icon { |
| 476 | font-size: 48px; |
| 477 | font-family: Georgia; |
| 478 | color: #759160 |
| 479 | } |
| 480 | |
| 481 | .pending-content p, |
| 482 | .end-content p { |
| 483 | font-size: 13px; |
| 484 | color: var(--muted) |
| 485 | } |
| 486 | |
| 487 | .actions { |
| 488 | display: flex; |
| 489 | gap: 10px; |
| 490 | flex-wrap: wrap; |
| 491 | justify-content: center |
| 492 | } |
| 493 | |
| 494 | .secondary { |
| 495 | background: #eaece3; |
| 496 | color: var(--ink) |
| 497 | } |
| 498 | |
| 499 | .danger { |
| 500 | color: #9c4c3a; |
| 501 | background: #f4e9e2 |
| 502 | } |
| 503 | |
| 504 | .end-content { |
| 505 | min-height: 0; |
| 506 | aspect-ratio: 4/5 |
| 507 | } |
| 508 | |
| 509 | .rematch-note { |
| 510 | background: #edf2df; |
| 511 | padding: 8px; |
| 512 | border-radius: 7px |
| 513 | } |
| 514 | |
| 515 | .promotion { |
| 516 | position: absolute; |
| 517 | inset: 0; |
| 518 | background: #fffefbf5; |
| 519 | z-index: 4; |
| 520 | display: flex; |
| 521 | align-items: center; |
| 522 | justify-content: center; |
| 523 | flex-direction: column; |
| 524 | text-align: center; |
| 525 | padding: 18px; |
| 526 | gap: 15px |
| 527 | } |
| 528 | |
| 529 | .promotion-options { |
| 530 | display: grid; |
| 531 | grid-template-columns: repeat(2, 1fr); |
| 532 | gap: 10px; |
| 533 | width: 100% |
| 534 | } |
| 535 | |
| 536 | .promotion-options button { |
| 537 | background: #edf0e5; |
| 538 | display: flex; |
| 539 | align-items: center; |
| 540 | flex-direction: column; |
| 541 | font-size: 11px |
| 542 | } |
| 543 | |
| 544 | .promotion-options img { |
| 545 | height: 54px; |
| 546 | width: 54px |
| 547 | } |
| 548 | |
| 549 | .promotion p { |
| 550 | font-size: 12px; |
| 551 | color: var(--muted) |
| 552 | } |
| 553 | |
| 554 | aside { |
| 555 | border-left: 1px solid var(--line); |
| 556 | padding: 39px 25px; |
| 557 | display: flex; |
| 558 | flex-direction: column; |
| 559 | background: #f0f0e8 |
| 560 | } |
| 561 | |
| 562 | .sidebar-heading { |
| 563 | display: flex; |
| 564 | align-items: center; |
| 565 | justify-content: space-between |
| 566 | } |
| 567 | |
| 568 | .sidebar-heading h2 { |
| 569 | font-size: 22px; |
| 570 | letter-spacing: -.8px |
| 571 | } |
| 572 | |
| 573 | .sidebar-intro { |
| 574 | font-size: 12px; |
| 575 | color: var(--muted); |
| 576 | margin: 8px 0 23px |
| 577 | } |
| 578 | |
| 579 | .invite-friend { |
| 580 | background: transparent; |
| 581 | border: 1px solid #cbd1bf; |
| 582 | color: var(--green); |
| 583 | text-align: left; |
| 584 | font-size: 12px; |
| 585 | width: 100% |
| 586 | } |
| 587 | |
| 588 | .invite-friend span { |
| 589 | float: right |
| 590 | } |
| 591 | |
| 592 | .friends-label { |
| 593 | font-size: 10px; |
| 594 | font-weight: 700; |
| 595 | letter-spacing: 1.5px; |
| 596 | margin: 30px 0 15px; |
| 597 | color: #858c7f; |
| 598 | display: flex; |
| 599 | justify-content: space-between |
| 600 | } |
| 601 | |
| 602 | .friend { |
| 603 | display: flex; |
| 604 | gap: 10px; |
| 605 | align-items: center; |
| 606 | width: 100%; |
| 607 | background: transparent; |
| 608 | padding: 11px 0; |
| 609 | text-align: left; |
| 610 | border-radius: 6px |
| 611 | } |
| 612 | |
| 613 | .friend .avatar { |
| 614 | width: 35px; |
| 615 | height: 35px |
| 616 | } |
| 617 | |
| 618 | .friend strong { |
| 619 | font-size: 12px; |
| 620 | display: block; |
| 621 | max-width: 165px; |
| 622 | overflow: hidden; |
| 623 | text-overflow: ellipsis |
| 624 | } |
| 625 | |
| 626 | .friend small { |
| 627 | display: block; |
| 628 | font-size: 10px; |
| 629 | color: var(--muted); |
| 630 | font-weight: 400; |
| 631 | margin-top: 2px |
| 632 | } |
| 633 | |
| 634 | .friend>span:last-child { |
| 635 | margin-left: auto; |
| 636 | color: #9aa38d |
| 637 | } |
| 638 | |
| 639 | .sidebar-note { |
| 640 | margin: auto 0 0; |
| 641 | padding: 65px 0 35px; |
| 642 | text-align: center |
| 643 | } |
| 644 | |
| 645 | .sidebar-note>span { |
| 646 | font-size: 46px; |
| 647 | color: #879777 |
| 648 | } |
| 649 | |
| 650 | .sidebar-note h3 { |
| 651 | font-size: 14px; |
| 652 | margin: 9px 0 |
| 653 | } |
| 654 | |
| 655 | .sidebar-note p { |
| 656 | font-size: 12px; |
| 657 | color: var(--muted); |
| 658 | line-height: 1.8 |
| 659 | } |
| 660 | |
| 661 | #account-summary { |
| 662 | border-top: 1px solid var(--line); |
| 663 | padding-top: 18px; |
| 664 | display: flex; |
| 665 | align-items: center; |
| 666 | gap: 10px; |
| 667 | font-size: 12px |
| 668 | } |
| 669 | |
| 670 | #account-summary small { |
| 671 | display: block; |
| 672 | font-size: 10px; |
| 673 | color: var(--muted) |
| 674 | } |
| 675 | |
| 676 | footer { |
| 677 | display: flex; |
| 678 | align-items: center; |
| 679 | gap: 10px; |
| 680 | color: #969b8f; |
| 681 | font-size: 10px; |
| 682 | margin-top: 40px |
| 683 | } |
| 684 | |
| 685 | footer button { |
| 686 | margin-left: auto |
| 687 | } |
| 688 | |
| 689 | .mobile-friends, |
| 690 | #friends-close { |
| 691 | display: none |
| 692 | } |
| 693 | |
| 694 | dialog { |
| 695 | border: 1px solid var(--line); |
| 696 | border-radius: 16px; |
| 697 | background: var(--paper); |
| 698 | color: var(--ink); |
| 699 | padding: 36px; |
| 700 | width: min(460px, calc(100% - 32px)); |
| 701 | box-shadow: 0 25px 80px #15231830 |
| 702 | } |
| 703 | |
| 704 | dialog::backdrop { |
| 705 | background: #25352c66; |
| 706 | backdrop-filter: blur(3px) |
| 707 | } |
| 708 | |
| 709 | dialog h2 { |
| 710 | font-size: 25px; |
| 711 | margin-bottom: 13px; |
| 712 | letter-spacing: -1px |
| 713 | } |
| 714 | |
| 715 | dialog p { |
| 716 | font-size: 14px; |
| 717 | color: var(--muted); |
| 718 | margin-bottom: 20px |
| 719 | } |
| 720 | |
| 721 | dialog .actions { |
| 722 | justify-content: flex-start; |
| 723 | margin-top: 20px |
| 724 | } |
| 725 | |
| 726 | .modal-close { |
| 727 | position: absolute; |
| 728 | right: 8px; |
| 729 | top: 6px |
| 730 | } |
| 731 | |
| 732 | dialog input { |
| 733 | width: 100%; |
| 734 | border: 1px solid var(--line); |
| 735 | border-radius: 6px; |
| 736 | padding: 12px; |
| 737 | background: #f5f5ee; |
| 738 | color: var(--ink) |
| 739 | } |
| 740 | |
| 741 | .stats { |
| 742 | display: grid; |
| 743 | grid-template-columns: repeat(3, 1fr); |
| 744 | background: #eff1e7; |
| 745 | border-radius: 10px; |
| 746 | padding: 20px; |
| 747 | margin: 22px 0; |
| 748 | text-align: center |
| 749 | } |
| 750 | |
| 751 | .stats strong { |
| 752 | display: block; |
| 753 | font-size: 27px |
| 754 | } |
| 755 | |
| 756 | .stats span { |
| 757 | font-size: 11px; |
| 758 | color: var(--muted) |
| 759 | } |
| 760 | |
| 761 | .settings-actions { |
| 762 | display: flex; |
| 763 | flex-direction: column; |
| 764 | gap: 10px |
| 765 | } |
| 766 | |
| 767 | .settings-actions a { |
| 768 | text-align: center; |
| 769 | text-decoration: none |
| 770 | } |
| 771 | |
| 772 | #toast { |
| 773 | position: fixed; |
| 774 | bottom: 22px; |
| 775 | left: 50%; |
| 776 | transform: translateX(-50%); |
| 777 | background: var(--ink); |
| 778 | color: white; |
| 779 | padding: 13px 20px; |
| 780 | border-radius: 9px; |
| 781 | z-index: 20; |
| 782 | max-width: calc(100% - 30px); |
| 783 | font-size: 13px; |
| 784 | box-shadow: 0 5px 25px #0002; |
| 785 | display: none |
| 786 | } |
| 787 | |
| 788 | #toast.visible { |
| 789 | display: block |
| 790 | } |
| 791 | |
| 792 | .login { |
| 793 | max-width: 900px; |
| 794 | margin: 10vh auto |
| 795 | } |
| 796 | |
| 797 | .login h1 { |
| 798 | font-size: 70px; |
| 799 | line-height: 1.05; |
| 800 | margin: 20px 0 |
| 801 | } |
| 802 | |
| 803 | .login p { |
| 804 | font-size: 18px; |
| 805 | color: var(--muted); |
| 806 | max-width: 500px; |
| 807 | margin-bottom: 32px |
| 808 | } |
| 809 | |
| 810 | .login .button { |
| 811 | display: inline-flex; |
| 812 | gap: 25px |
| 813 | } |
| 814 | |
| 815 | .login small { |
| 816 | display: block; |
| 817 | margin-top: 16px; |
| 818 | color: var(--muted) |
| 819 | } |
| 820 | |
| 821 | .drag-ghost { |
| 822 | position: fixed; |
| 823 | width: 65px; |
| 824 | height: 65px; |
| 825 | pointer-events: none; |
| 826 | z-index: 50; |
| 827 | transform: translate(-50%, -50%) |
| 828 | } |
| 829 | |
| 830 | .rules-list { |
| 831 | padding-left: 20px; |
| 832 | font-size: 14px; |
| 833 | color: var(--muted) |
| 834 | } |
| 835 | |
| 836 | .rules-list li { |
| 837 | margin-bottom: 8px |
| 838 | } |
| 839 | |
| 840 | .inline-note { |
| 841 | font-size: 11px; |
| 842 | color: var(--muted) |
| 843 | } |
| 844 | |
| 845 | @media(min-width:1450px) { |
| 846 | .layout { |
| 847 | grid-template-columns: minmax(0, 1fr) 330px |
| 848 | } |
| 849 | |
| 850 | main { |
| 851 | padding: 48px 60px |
| 852 | } |
| 853 | |
| 854 | .game-grid { |
| 855 | grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) |
| 856 | } |
| 857 | } |
| 858 | |
| 859 | @media(max-width:1050px) { |
| 860 | main { |
| 861 | padding: 30px 25px |
| 862 | } |
| 863 | |
| 864 | .topbar { |
| 865 | padding: 0 25px |
| 866 | } |
| 867 | |
| 868 | .layout { |
| 869 | grid-template-columns: minmax(0, 1fr) 260px |
| 870 | } |
| 871 | |
| 872 | aside { |
| 873 | padding: 30px 20px |
| 874 | } |
| 875 | |
| 876 | .game-grid { |
| 877 | gap: 16px; |
| 878 | grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) |
| 879 | } |
| 880 | |
| 881 | .section-heading>span { |
| 882 | display: none |
| 883 | } |
| 884 | } |
| 885 | |
| 886 | @media(max-width:760px) { |
| 887 | .topbar { |
| 888 | height: 70px; |
| 889 | padding: 0 20px; |
| 890 | position: sticky; |
| 891 | top: 0; |
| 892 | z-index: 7 |
| 893 | } |
| 894 | |
| 895 | .brand { |
| 896 | font-size: 22px |
| 897 | } |
| 898 | |
| 899 | .brandmark { |
| 900 | width: 32px; |
| 901 | height: 32px; |
| 902 | font-size: 26px; |
| 903 | line-height: 29px; |
| 904 | margin-right: 9px |
| 905 | } |
| 906 | |
| 907 | .tagline { |
| 908 | display: none |
| 909 | } |
| 910 | |
| 911 | .account-nav>.quiet { |
| 912 | font-size: 11px; |
| 913 | padding: 8px |
| 914 | } |
| 915 | |
| 916 | .mobile-friends { |
| 917 | display: block; |
| 918 | background: #e7ecde; |
| 919 | color: var(--green); |
| 920 | font-size: 12px; |
| 921 | padding: 9px 10px |
| 922 | } |
| 923 | |
| 924 | .mobile-friends span { |
| 925 | margin-left: 5px |
| 926 | } |
| 927 | |
| 928 | .layout { |
| 929 | display: block |
| 930 | } |
| 931 | |
| 932 | main { |
| 933 | padding: 30px 20px |
| 934 | } |
| 935 | |
| 936 | h1 { |
| 937 | font-size: 36px |
| 938 | } |
| 939 | |
| 940 | .page-heading { |
| 941 | align-items: flex-start; |
| 942 | margin-bottom: 30px; |
| 943 | gap: 10px |
| 944 | } |
| 945 | |
| 946 | .page-heading>.primary { |
| 947 | font-size: 12px; |
| 948 | padding: 10px 12px; |
| 949 | margin-top: 27px |
| 950 | } |
| 951 | |
| 952 | .page-heading p { |
| 953 | font-size: 12px; |
| 954 | max-width: 200px |
| 955 | } |
| 956 | |
| 957 | .eyebrow { |
| 958 | font-size: 9px; |
| 959 | letter-spacing: 1.6px |
| 960 | } |
| 961 | |
| 962 | .game-grid { |
| 963 | grid-template-columns: minmax(0, 1fr); |
| 964 | gap: 20px |
| 965 | } |
| 966 | |
| 967 | .game-card { |
| 968 | max-width: 460px; |
| 969 | width: 100%; |
| 970 | justify-self: center |
| 971 | } |
| 972 | |
| 973 | .board-wrap { |
| 974 | padding: 18px |
| 975 | } |
| 976 | |
| 977 | .card-header { |
| 978 | padding: 15px 18px |
| 979 | } |
| 980 | |
| 981 | .card-header strong { |
| 982 | font-size: 14px |
| 983 | } |
| 984 | |
| 985 | .card-footer { |
| 986 | padding: 0 18px 16px |
| 987 | } |
| 988 | |
| 989 | .layout aside { |
| 990 | position: fixed; |
| 991 | right: 0; |
| 992 | top: 0; |
| 993 | bottom: 0; |
| 994 | width: min(320px, 90vw); |
| 995 | z-index: 12; |
| 996 | transform: translateX(100%); |
| 997 | transition: transform .2s; |
| 998 | overflow-y: auto |
| 999 | } |
| 1000 | |
| 1001 | .layout aside.open { |
| 1002 | transform: translateX(0) |
| 1003 | } |
| 1004 | |
| 1005 | #friends-close { |
| 1006 | display: block |
| 1007 | } |
| 1008 | |
| 1009 | #sidebar-backdrop:not([hidden]) { |
| 1010 | display: block; |
| 1011 | position: fixed; |
| 1012 | inset: 0; |
| 1013 | background: #25352c66; |
| 1014 | z-index: 11 |
| 1015 | } |
| 1016 | |
| 1017 | footer { |
| 1018 | flex-wrap: wrap; |
| 1019 | font-size: 9px |
| 1020 | } |
| 1021 | |
| 1022 | .login { |
| 1023 | padding: 45px 25px; |
| 1024 | margin: 4vh auto |
| 1025 | } |
| 1026 | |
| 1027 | .login h1 { |
| 1028 | font-size: 52px |
| 1029 | } |
| 1030 | |
| 1031 | .login p { |
| 1032 | font-size: 16px |
| 1033 | } |
| 1034 | |
| 1035 | .sidebar-note { |
| 1036 | padding-top: 40px |
| 1037 | } |
| 1038 | |
| 1039 | .section-heading h2 { |
| 1040 | font-size: 16px |
| 1041 | } |
| 1042 | |
| 1043 | .square img { |
| 1044 | max-width: 90px |
| 1045 | } |
| 1046 | |
| 1047 | .end-content { |
| 1048 | aspect-ratio: auto; |
| 1049 | min-height: 340px |
| 1050 | } |
| 1051 | } |
| 1052 | |
| 1053 | @media(prefers-reduced-motion:reduce) { |
| 1054 | * { |
| 1055 | transition: none !important |
| 1056 | } |
| 1057 | } |
| 1058 | |
| 1059 | @media(max-width:760px) { |
| 1060 | body.sidebar-open { |
| 1061 | overflow: hidden |
| 1062 | } |
| 1063 | } |
| 1064 | |
| 1065 | .avatar img { |
| 1066 | width: 90%; |
| 1067 | height: 90%; |
| 1068 | object-fit: contain |
| 1069 | } |
| 1070 | |
| 1071 | #avatar-button { |
| 1072 | padding: 0; |
| 1073 | color: inherit; |
| 1074 | outline-offset: 4px; |
| 1075 | flex-shrink: 0 |
| 1076 | } |
| 1077 | |
| 1078 | #avatar-button:hover { |
| 1079 | background: #dce6cb; |
| 1080 | box-shadow: 0 0 0 3px #dce6cb |
| 1081 | } |
| 1082 | |
| 1083 | dialog.avatar-picker { |
| 1084 | width: min(700px, calc(100% - 28px)); |
| 1085 | max-height: calc(100dvh - 32px); |
| 1086 | overflow-y: auto |
| 1087 | } |
| 1088 | |
| 1089 | .avatar-filters { |
| 1090 | display: flex; |
| 1091 | align-items: center; |
| 1092 | justify-content: space-between; |
| 1093 | gap: 12px; |
| 1094 | flex-wrap: wrap; |
| 1095 | margin: 20px 0 |
| 1096 | } |
| 1097 | |
| 1098 | .avatar-tabs { |
| 1099 | display: flex; |
| 1100 | gap: 5px |
| 1101 | } |
| 1102 | |
| 1103 | .avatar-tabs button { |
| 1104 | font-size: 12px; |
| 1105 | padding: 8px 12px |
| 1106 | } |
| 1107 | |
| 1108 | .avatar-tabs button[aria-pressed=true] { |
| 1109 | background: var(--green); |
| 1110 | color: white |
| 1111 | } |
| 1112 | |
| 1113 | #avatar-color { |
| 1114 | font: inherit; |
| 1115 | font-size: 12px; |
| 1116 | color: var(--ink); |
| 1117 | background: var(--paper); |
| 1118 | border: 1px solid var(--line); |
| 1119 | border-radius: 7px; |
| 1120 | padding: 8px; |
| 1121 | max-width: 100% |
| 1122 | } |
| 1123 | |
| 1124 | .avatar-choices { |
| 1125 | display: grid; |
| 1126 | grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); |
| 1127 | gap: 10px; |
| 1128 | max-height: 390px; |
| 1129 | overflow-y: auto; |
| 1130 | padding: 4px |
| 1131 | } |
| 1132 | |
| 1133 | .avatar-choice { |
| 1134 | display: flex; |
| 1135 | align-items: center; |
| 1136 | flex-direction: column; |
| 1137 | justify-content: center; |
| 1138 | gap: 7px; |
| 1139 | min-height: 108px; |
| 1140 | padding: 9px 5px; |
| 1141 | background: #eff1e7; |
| 1142 | border: 2px solid transparent; |
| 1143 | font-size: 10px; |
| 1144 | line-height: 1.3; |
| 1145 | font-weight: 500 |
| 1146 | } |
| 1147 | |
| 1148 | .avatar-choice img { |
| 1149 | width: 54px; |
| 1150 | height: 54px; |
| 1151 | object-fit: contain |
| 1152 | } |
| 1153 | |
| 1154 | .avatar-choice[aria-pressed=true] { |
| 1155 | border-color: var(--green); |
| 1156 | background: #dde8cc |
| 1157 | } |
| 1158 | |
| 1159 | .avatar-picker-footer { |
| 1160 | display: flex; |
| 1161 | justify-content: space-between; |
| 1162 | align-items: center; |
| 1163 | gap: 15px; |
| 1164 | margin-top: 18px |
| 1165 | } |
| 1166 | |
| 1167 | dialog .avatar-credits { |
| 1168 | font-size: 10px; |
| 1169 | margin: 16px 0 0; |
| 1170 | line-height: 1.6 |
| 1171 | } |
| 1172 | |
| 1173 | .avatar-no-results { |
| 1174 | grid-column: 1/-1; |
| 1175 | padding: 25px 10px; |
| 1176 | text-align: center |
| 1177 | } |
| 1178 | |
| 1179 | #avatar-color:focus-visible { |
| 1180 | outline: 3px solid #c19042; |
| 1181 | outline-offset: 3px |
| 1182 | } |
| 1183 | |
| 1184 | @media(max-width:760px) { |
| 1185 | dialog.avatar-picker { |
| 1186 | padding: 30px 20px 22px |
| 1187 | } |
| 1188 | |
| 1189 | .avatar-choices { |
| 1190 | grid-template-columns: repeat(3, minmax(0, 1fr)); |
| 1191 | max-height: 42dvh |
| 1192 | } |
| 1193 | |
| 1194 | .avatar-tabs button { |
| 1195 | padding: 8px 10px; |
| 1196 | font-size: 11px |
| 1197 | } |
| 1198 | } |
| 1199 | |
| 1200 | .ended-board { |
| 1201 | position: relative |
| 1202 | } |
| 1203 | |
| 1204 | .ended-board .end-content { |
| 1205 | position: absolute; |
| 1206 | left: 15px; |
| 1207 | right: 15px; |
| 1208 | top: 50%; |
| 1209 | transform: translateY(-50%); |
| 1210 | min-height: 0; |
| 1211 | aspect-ratio: auto; |
| 1212 | padding: 12px 8px; |
| 1213 | display: flex; |
| 1214 | flex-direction: row; |
| 1215 | justify-content: space-between; |
| 1216 | gap: 8px; |
| 1217 | text-align: left; |
| 1218 | background: rgb(255 254 251 / 82%); |
| 1219 | opacity: .72; |
| 1220 | transition: opacity .72s, background .18s |
| 1221 | } |
| 1222 | |
| 1223 | .end-content:hover, |
| 1224 | .end-content:focus-within { |
| 1225 | background: rgb(255 254 251 / 94%); |
| 1226 | opacity: 1 |
| 1227 | } |
| 1228 | |
| 1229 | .end-status { |
| 1230 | min-width: 0 |
| 1231 | } |
| 1232 | |
| 1233 | .end-status h3 { |
| 1234 | font-size: 13px; |
| 1235 | line-height: 1.3 |
| 1236 | } |
| 1237 | |
| 1238 | .end-status small { |
| 1239 | display: block; |
| 1240 | font-size: 10px |
| 1241 | } |
| 1242 | |
| 1243 | .end-content .actions { |
| 1244 | flex-wrap: nowrap; |
| 1245 | gap: 4px |
| 1246 | } |
| 1247 | |
| 1248 | .end-content button { |
| 1249 | font-size: 10px; |
| 1250 | padding: 8px 6px |
| 1251 | } |
| 1252 | |
| 1253 | .stop-inactive { |
| 1254 | margin-left: auto; |
| 1255 | background: #b73535; |
| 1256 | color: white; |
| 1257 | font-size: 22px; |
| 1258 | line-height: 1; |
| 1259 | padding: 3px 7px; |
| 1260 | flex-shrink: 0 |
| 1261 | } |
| 1262 | |
| 1263 | .card-header:has(.stop-inactive) .color-tag { |
| 1264 | margin-left: auto |
| 1265 | } |
| 1266 | |
| 1267 | .card-header:has(.stop-inactive) { |
| 1268 | gap: 6px |
| 1269 | } |
| 1270 | |
| 1271 | @media(hover:none) { |
| 1272 | .ended-board .end-content { |
| 1273 | opacity: 1; |
| 1274 | background: rgb(255 254 251 / 82%) |
| 1275 | } |
| 1276 | } |
| 1277 | |
| 1278 | @media(min-width:761px) { |
| 1279 | #sidebar { |
| 1280 | position: sticky; |
| 1281 | top: 0; |
| 1282 | align-self: start; |
| 1283 | height: 100dvh; |
| 1284 | overflow-y: auto; |
| 1285 | padding-top: 24px; |
| 1286 | padding-bottom: 105px |
| 1287 | } |
| 1288 | |
| 1289 | #sidebar>* { |
| 1290 | flex-shrink: 0 |
| 1291 | } |
| 1292 | |
| 1293 | #friend-list { |
| 1294 | flex: 1 1 auto; |
| 1295 | min-height: 60px; |
| 1296 | overflow-y: auto |
| 1297 | } |
| 1298 | |
| 1299 | .sidebar-note { |
| 1300 | padding: 18px 0 |
| 1301 | } |
| 1302 | |
| 1303 | .sidebar-note>span { |
| 1304 | font-size: 30px |
| 1305 | } |
| 1306 | } |
| 1307 | |
| 1308 | /* One-time tactical move feedback. */ |
| 1309 | .game-card { |
| 1310 | position: relative |
| 1311 | } |
| 1312 | |
| 1313 | .move-feedback { |
| 1314 | position: absolute; |
| 1315 | inset: 0; |
| 1316 | z-index: 5; |
| 1317 | pointer-events: none; |
| 1318 | border-radius: 12px; |
| 1319 | border: 3px solid var(--feedback); |
| 1320 | box-shadow: inset 0 0 38px var(--feedback-glow); |
| 1321 | background: var(--feedback-tint); |
| 1322 | opacity: 0 |
| 1323 | } |
| 1324 | |
| 1325 | .move-feedback.good { |
| 1326 | --feedback: #3188ea; |
| 1327 | --feedback-glow: #3188ea77; |
| 1328 | --feedback-tint: #3188ea16 |
| 1329 | } |
| 1330 | |
| 1331 | .move-feedback.poor { |
| 1332 | --feedback: #d94a48; |
| 1333 | --feedback-glow: #d94a4890; |
| 1334 | --feedback-tint: #d94a4818 |
| 1335 | } |
| 1336 | |
| 1337 | .move-quality { |
| 1338 | position: absolute; |
| 1339 | bottom: 38px; |
| 1340 | right: 10px; |
| 1341 | padding: 6px 10px; |
| 1342 | border-radius: 7px; |
| 1343 | background: var(--paper); |
| 1344 | border-left: 4px solid var(--feedback); |
| 1345 | color: var(--ink); |
| 1346 | font-size: 12px; |
| 1347 | font-weight: 700; |
| 1348 | box-shadow: 0 2px 12px #0002 |
| 1349 | } |
| 1350 | |
| 1351 | .move-quality small { |
| 1352 | display: block; |
| 1353 | font-size: 9px; |
| 1354 | font-weight: 400; |
| 1355 | color: var(--muted) |
| 1356 | } |
| 1357 | |
| 1358 | /* Remaining material, with White always on the left. */ |
| 1359 | .opponent-info { |
| 1360 | flex: 1; |
| 1361 | min-width: 0 |
| 1362 | } |
| 1363 | |
| 1364 | .opponent-info strong { |
| 1365 | display: block |
| 1366 | } |
| 1367 | |
| 1368 | .material-bar { |
| 1369 | height: 7px; |
| 1370 | max-width: 160px; |
| 1371 | margin-top: 5px; |
| 1372 | border: 1px solid #879187; |
| 1373 | border-radius: 5px; |
| 1374 | background: #202823; |
| 1375 | overflow: hidden; |
| 1376 | direction: ltr |
| 1377 | } |
| 1378 | |
| 1379 | .material-white { |
| 1380 | display: block; |
| 1381 | width: 100%; |
| 1382 | height: 100%; |
| 1383 | background: #fffefb; |
| 1384 | transform: scaleX(.5); |
| 1385 | transform-origin: left center |
| 1386 | } |
| 1387 | |
| 1388 | .material-bar:focus-visible { |
| 1389 | outline: 2px solid #c19042; |
| 1390 | outline-offset: 3px |
| 1391 | } |
projects-timfalken-com microchess