| 1 | |
| 2 | |
| 3 | :root { |
| 4 | |
| 5 | --font-ui: |
| 6 | -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', |
| 7 | 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif; |
| 8 | --font-display: |
| 9 | 'Songti SC', 'STSong', 'Noto Serif SC', 'Source Han Serif SC', 'Noto Serif CJK SC', 'SimSun', |
| 10 | Georgia, serif; |
| 11 | --font-card: |
| 12 | 'SF Pro Display', -apple-system, 'Segoe UI', 'Helvetica Neue', Roboto, Arial, sans-serif; |
| 13 | |
| 14 | |
| 15 | --paper: #f4f1ea; |
| 16 | --paper-2: #ece8de; |
| 17 | --surface: #fffdf9; |
| 18 | --surface-2: #f8f6f1; |
| 19 | --ink: #1c1d1f; |
| 20 | --ink-2: #5d6166; |
| 21 | --ink-3: #979ba1; |
| 22 | --line: rgba(28, 29, 31, 0.08); |
| 23 | --line-2: rgba(28, 29, 31, 0.14); |
| 24 | --accent: #1f5c4f; |
| 25 | --accent-ink: #ffffff; |
| 26 | --accent-soft: #e2ece8; |
| 27 | --gold: #b48a4e; |
| 28 | --gold-soft: #f3e9d8; |
| 29 | --danger: #b3412f; |
| 30 | --focus: rgba(31, 92, 79, 0.35); |
| 31 | |
| 32 | |
| 33 | --card-face: #fffefb; |
| 34 | --card-edge: rgba(20, 22, 26, 0.12); |
| 35 | --card-red: #c4352b; |
| 36 | --card-black: #1e2126; |
| 37 | --card-blue: #23599b; |
| 38 | --card-green: #2b7442; |
| 39 | --card-back-1: #1f5c4f; |
| 40 | --card-back-2: #17463c; |
| 41 | --card-shadow: 0 1px 1px rgba(0, 0, 0, 0.18), 0 3px 10px rgba(0, 0, 0, 0.14); |
| 42 | |
| 43 | |
| 44 | --felt-1: #2a6152; |
| 45 | --felt-2: #173a31; |
| 46 | --felt-3: #0f2822; |
| 47 | --felt-ink: #f3f1ea; |
| 48 | --felt-ink-2: rgba(243, 241, 234, 0.66); |
| 49 | --felt-ink-3: rgba(243, 241, 234, 0.4); |
| 50 | --felt-line: rgba(255, 255, 255, 0.09); |
| 51 | --felt-glass: rgba(10, 20, 17, 0.32); |
| 52 | --felt-glass-2: rgba(255, 255, 255, 0.07); |
| 53 | --felt-accent: #e7c886; |
| 54 | |
| 55 | |
| 56 | --radius-xs: 6px; |
| 57 | --radius-sm: 10px; |
| 58 | --radius: 14px; |
| 59 | --radius-lg: 20px; |
| 60 | --radius-xl: 28px; |
| 61 | --shadow-sm: 0 1px 2px rgba(28, 29, 31, 0.06), 0 1px 1px rgba(28, 29, 31, 0.04); |
| 62 | --shadow: 0 1px 2px rgba(28, 29, 31, 0.05), 0 8px 24px rgba(28, 29, 31, 0.07); |
| 63 | --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.08), 0 24px 60px rgba(0, 0, 0, 0.18); |
| 64 | --ease: cubic-bezier(0.2, 0.8, 0.2, 1); |
| 65 | --ease-out: cubic-bezier(0.16, 1, 0.3, 1); |
| 66 | |
| 67 | |
| 68 | --cw: clamp(40px, min(6.6vw, 13vh), 124px); |
| 69 | --ch: calc(var(--cw) * 1.4); |
| 70 | --cw-sm: calc(var(--cw) * 0.72); |
| 71 | --cw-xs: calc(var(--cw) * 0.5); |
| 72 | color-scheme: light; |
| 73 | } |
| 74 | *, |
| 75 | *::before, |
| 76 | *::after { |
| 77 | box-sizing: border-box; |
| 78 | } |
| 79 | |
| 80 | html, |
| 81 | body, |
| 82 | #root { |
| 83 | height: 100%; |
| 84 | } |
| 85 | |
| 86 | html { |
| 87 | -webkit-text-size-adjust: 100%; |
| 88 | -webkit-tap-highlight-color: transparent; |
| 89 | } |
| 90 | |
| 91 | body { |
| 92 | margin: 0; |
| 93 | font-family: var(--font-ui); |
| 94 | font-size: 15px; |
| 95 | line-height: 1.5; |
| 96 | color: var(--ink); |
| 97 | background: var(--paper); |
| 98 | -webkit-font-smoothing: antialiased; |
| 99 | -moz-osx-font-smoothing: grayscale; |
| 100 | text-rendering: optimizeLegibility; |
| 101 | overscroll-behavior: none; |
| 102 | } |
| 103 | |
| 104 | button, |
| 105 | input, |
| 106 | select { |
| 107 | font: inherit; |
| 108 | color: inherit; |
| 109 | } |
| 110 | |
| 111 | button { |
| 112 | cursor: pointer; |
| 113 | border: 0; |
| 114 | background: none; |
| 115 | padding: 0; |
| 116 | } |
| 117 | |
| 118 | button:disabled { |
| 119 | cursor: not-allowed; |
| 120 | white-space: nowrap; |
| 121 | } |
| 122 | |
| 123 | @media (prefers-reduced-motion: reduce) { |
| 124 | *, |
| 125 | *::before, |
| 126 | *::after { |
| 127 | animation-duration: 0.01ms !important; |
| 128 | animation-iteration-count: 1 !important; |
| 129 | transition-duration: 0.01ms !important; |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | @keyframes fade-in { |
| 134 | from { |
| 135 | opacity: 0; |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | @keyframes rise-in { |
| 140 | from { |
| 141 | opacity: 0; |
| 142 | transform: translateY(10px) scale(0.98); |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | @keyframes pop-in { |
| 147 | 0% { |
| 148 | opacity: 0; |
| 149 | transform: scale(0.85); |
| 150 | } |
| 151 | 60% { |
| 152 | opacity: 1; |
| 153 | transform: scale(1.04); |
| 154 | } |
| 155 | 100% { |
| 156 | transform: scale(1); |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | .pcard { |
| 161 | --w: var(--cw); |
| 162 | position: relative; |
| 163 | flex: none; |
| 164 | width: var(--w); |
| 165 | height: calc(var(--w) * 1.4); |
| 166 | border-radius: calc(var(--w) * 0.085); |
| 167 | background: var(--card-face); |
| 168 | box-shadow: |
| 169 | var(--card-shadow), |
| 170 | inset 0 0 0 1px var(--card-edge); |
| 171 | color: var(--card-black); |
| 172 | user-select: none; |
| 173 | -webkit-user-select: none; |
| 174 | overflow: hidden; |
| 175 | font-family: var(--font-card); |
| 176 | transition: |
| 177 | translate 0.16s var(--ease), |
| 178 | box-shadow 0.16s var(--ease), |
| 179 | filter 0.16s var(--ease); |
| 180 | } |
| 181 | .pcard[data-suit='H'] { |
| 182 | color: var(--card-red); |
| 183 | } |
| 184 | .pcard[data-suit='D'] { |
| 185 | color: var(--suit-d, var(--card-red)); |
| 186 | } |
| 187 | .pcard[data-suit='C'] { |
| 188 | color: var(--suit-c, var(--card-black)); |
| 189 | } |
| 190 | :root[data-four-color] { |
| 191 | --suit-d: var(--card-blue); |
| 192 | --suit-c: var(--card-green); |
| 193 | } |
| 194 | .pcard::before { |
| 195 | |
| 196 | content: ''; |
| 197 | position: absolute; |
| 198 | inset: 0; |
| 199 | border-radius: inherit; |
| 200 | background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 38%); |
| 201 | pointer-events: none; |
| 202 | } |
| 203 | .pcard__index { |
| 204 | position: absolute; |
| 205 | left: calc(var(--w) * 0.07); |
| 206 | top: calc(var(--w) * 0.06); |
| 207 | display: flex; |
| 208 | flex-direction: column; |
| 209 | align-items: center; |
| 210 | width: calc(var(--w) * 0.3); |
| 211 | line-height: 1; |
| 212 | } |
| 213 | .pcard__rank { |
| 214 | font-size: calc(var(--w) * 0.31); |
| 215 | font-weight: 650; |
| 216 | letter-spacing: -0.04em; |
| 217 | } |
| 218 | .pcard__rank.is-ten { |
| 219 | letter-spacing: -0.09em; |
| 220 | font-size: calc(var(--w) * 0.27); |
| 221 | margin-left: -0.06em; |
| 222 | } |
| 223 | .pcard__suit { |
| 224 | width: calc(var(--w) * 0.2); |
| 225 | height: calc(var(--w) * 0.2); |
| 226 | margin-top: calc(var(--w) * 0.035); |
| 227 | } |
| 228 | .pcard__pip { |
| 229 | position: absolute; |
| 230 | right: calc(var(--w) * 0.1); |
| 231 | bottom: calc(var(--w) * 0.12); |
| 232 | width: calc(var(--w) * 0.46); |
| 233 | height: calc(var(--w) * 0.46); |
| 234 | opacity: 0.92; |
| 235 | } |
| 236 | .pcard__pip.is-ace { |
| 237 | right: calc(var(--w) * 0.14); |
| 238 | bottom: calc(var(--w) * 0.2); |
| 239 | width: calc(var(--w) * 0.56); |
| 240 | height: calc(var(--w) * 0.56); |
| 241 | } |
| 242 | .pcard__court { |
| 243 | position: absolute; |
| 244 | right: calc(var(--w) * 0.08); |
| 245 | bottom: calc(var(--w) * 0.12); |
| 246 | width: calc(var(--w) * 0.6); |
| 247 | height: calc(var(--w) * 0.6); |
| 248 | } |
| 249 | .pcard--joker { |
| 250 | color: var(--card-black); |
| 251 | } |
| 252 | .pcard--joker.is-big { |
| 253 | color: var(--card-red); |
| 254 | } |
| 255 | .pcard__jindex { |
| 256 | position: absolute; |
| 257 | left: calc(var(--w) * 0.08); |
| 258 | top: calc(var(--w) * 0.07); |
| 259 | writing-mode: vertical-rl; |
| 260 | font-family: var(--font-display); |
| 261 | font-weight: 700; |
| 262 | font-size: calc(var(--w) * 0.2); |
| 263 | letter-spacing: 0.08em; |
| 264 | line-height: 1; |
| 265 | } |
| 266 | .pcard__jcenter { |
| 267 | position: absolute; |
| 268 | right: calc(var(--w) * 0.07); |
| 269 | bottom: calc(var(--w) * 0.12); |
| 270 | width: calc(var(--w) * 0.62); |
| 271 | height: calc(var(--w) * 0.62); |
| 272 | } |
| 273 | .pcard--joker:not(.is-big) .pcard__jcenter { |
| 274 | opacity: 0.85; |
| 275 | } |
| 276 | .pcard__wild { |
| 277 | position: absolute; |
| 278 | right: calc(var(--w) * 0.06); |
| 279 | top: calc(var(--w) * 0.06); |
| 280 | width: calc(var(--w) * 0.26); |
| 281 | height: calc(var(--w) * 0.26); |
| 282 | border-radius: 50%; |
| 283 | background: var(--gold); |
| 284 | color: #fff; |
| 285 | font-size: calc(var(--w) * 0.15); |
| 286 | font-weight: 700; |
| 287 | display: grid; |
| 288 | place-items: center; |
| 289 | font-family: var(--font-ui); |
| 290 | } |
| 291 | .pcard--back { |
| 292 | background: var(--card-face); |
| 293 | padding: calc(var(--w) * 0.05); |
| 294 | } |
| 295 | .pcard__back { |
| 296 | width: 100%; |
| 297 | height: 100%; |
| 298 | border-radius: calc(var(--w) * 0.05); |
| 299 | background: |
| 300 | repeating-linear-gradient( |
| 301 | 45deg, |
| 302 | rgba(255, 255, 255, 0.07) 0 1px, |
| 303 | transparent 1px calc(var(--w) * 0.09) |
| 304 | ), |
| 305 | repeating-linear-gradient( |
| 306 | -45deg, |
| 307 | rgba(255, 255, 255, 0.07) 0 1px, |
| 308 | transparent 1px calc(var(--w) * 0.09) |
| 309 | ), |
| 310 | linear-gradient(160deg, var(--card-back-1), var(--card-back-2)); |
| 311 | display: grid; |
| 312 | place-items: center; |
| 313 | box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); |
| 314 | } |
| 315 | .pcard__emblem { |
| 316 | font-family: var(--font-display); |
| 317 | font-size: calc(var(--w) * 0.3); |
| 318 | color: rgba(231, 200, 134, 0.75); |
| 319 | width: calc(var(--w) * 0.48); |
| 320 | height: calc(var(--w) * 0.48); |
| 321 | border-radius: 50%; |
| 322 | border: 1px solid rgba(231, 200, 134, 0.45); |
| 323 | display: grid; |
| 324 | place-items: center; |
| 325 | line-height: 1; |
| 326 | } |
| 327 | .pcard.is-selected { |
| 328 | box-shadow: |
| 329 | 0 0 0 2px var(--felt-accent), |
| 330 | 0 10px 24px rgba(0, 0, 0, 0.28); |
| 331 | } |
| 332 | .pcard.is-dim { |
| 333 | filter: brightness(0.62) saturate(0.7); |
| 334 | } |
| 335 | .pcard.is-highlight { |
| 336 | box-shadow: |
| 337 | 0 0 0 2px var(--felt-accent), |
| 338 | 0 0 18px rgba(231, 200, 134, 0.55); |
| 339 | } |
| 340 | |
| 341 | |
| 342 | .hand { |
| 343 | position: relative; |
| 344 | width: 100%; |
| 345 | touch-action: none; |
| 346 | user-select: none; |
| 347 | } |
| 348 | .hand__card { |
| 349 | position: absolute; |
| 350 | left: 0; |
| 351 | top: 0; |
| 352 | cursor: pointer; |
| 353 | animation: deal-in 0.42s var(--ease-out) both; |
| 354 | } |
| 355 | .hand.is-disabled .hand__card { |
| 356 | cursor: default; |
| 357 | } |
| 358 | @keyframes deal-in { |
| 359 | from { |
| 360 | opacity: 0; |
| 361 | transform: translateY(-36px) rotate(-4deg) scale(0.9); |
| 362 | } |
| 363 | } |
| 364 | |
| 365 | .cardrow { |
| 366 | display: flex; |
| 367 | justify-content: center; |
| 368 | align-items: flex-end; |
| 369 | padding-right: calc(var(--w) * var(--ov)); |
| 370 | } |
| 371 | .cardrow > .pcard { |
| 372 | margin-right: calc(var(--w) * var(--ov) * -1); |
| 373 | animation: play-in 0.32s var(--ease-out) both; |
| 374 | } |
| 375 | .cardrow.from-left > .pcard { |
| 376 | --dx: -40px; |
| 377 | } |
| 378 | .cardrow.from-right > .pcard { |
| 379 | --dx: 40px; |
| 380 | } |
| 381 | .cardrow.from-top > .pcard { |
| 382 | --dy: -40px; |
| 383 | } |
| 384 | .cardrow.from-bottom > .pcard { |
| 385 | --dy: 50px; |
| 386 | } |
| 387 | @keyframes play-in { |
| 388 | from { |
| 389 | opacity: 0; |
| 390 | transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.88); |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | |
| 395 | .seat { |
| 396 | position: relative; |
| 397 | display: flex; |
| 398 | align-items: center; |
| 399 | gap: 6px; |
| 400 | color: var(--felt-ink); |
| 401 | } |
| 402 | .seat--column { |
| 403 | flex-direction: column; |
| 404 | } |
| 405 | .seat--row { |
| 406 | flex-direction: row; |
| 407 | } |
| 408 | .seat.is-dim { |
| 409 | opacity: 0.45; |
| 410 | } |
| 411 | .avatar { |
| 412 | display: inline-grid; |
| 413 | place-items: center; |
| 414 | border-radius: 50%; |
| 415 | color: #fff; |
| 416 | font-weight: 600; |
| 417 | line-height: 1; |
| 418 | flex: none; |
| 419 | box-shadow: |
| 420 | inset 0 0 0 1px rgba(255, 255, 255, 0.18), |
| 421 | 0 2px 6px rgba(0, 0, 0, 0.25); |
| 422 | user-select: none; |
| 423 | } |
| 424 | .seat__avatar { |
| 425 | position: relative; |
| 426 | display: grid; |
| 427 | place-items: center; |
| 428 | border-radius: 50%; |
| 429 | padding: 3px; |
| 430 | } |
| 431 | .seat.is-active .seat__avatar { |
| 432 | box-shadow: 0 0 0 2px rgba(231, 200, 134, 0.35); |
| 433 | animation: breathe 1.6s ease-in-out infinite; |
| 434 | } |
| 435 | @keyframes breathe { |
| 436 | 50% { |
| 437 | box-shadow: 0 0 0 5px rgba(231, 200, 134, 0.12); |
| 438 | } |
| 439 | } |
| 440 | .seat__tag { |
| 441 | position: absolute; |
| 442 | top: -6px; |
| 443 | right: -10px; |
| 444 | font-size: 10px; |
| 445 | font-weight: 700; |
| 446 | padding: 2px 6px; |
| 447 | border-radius: 99px; |
| 448 | letter-spacing: 0.04em; |
| 449 | white-space: nowrap; |
| 450 | box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); |
| 451 | } |
| 452 | .seat__tag.tone-gold { |
| 453 | background: linear-gradient(180deg, #f0d59b, #c9a25b); |
| 454 | color: #3b2a10; |
| 455 | } |
| 456 | .seat__tag.tone-plain { |
| 457 | background: rgba(255, 255, 255, 0.9); |
| 458 | color: #2b2d31; |
| 459 | } |
| 460 | .seat__tag.tone-accent { |
| 461 | background: #6fc2a8; |
| 462 | color: #0e2a22; |
| 463 | } |
| 464 | .seat__badge { |
| 465 | position: absolute; |
| 466 | left: -4px; |
| 467 | bottom: -2px; |
| 468 | width: 18px; |
| 469 | height: 18px; |
| 470 | border-radius: 50%; |
| 471 | display: grid; |
| 472 | place-items: center; |
| 473 | background: #f3f1ea; |
| 474 | color: #34373c; |
| 475 | box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); |
| 476 | } |
| 477 | .seat__badge.is-off { |
| 478 | left: auto; |
| 479 | right: -4px; |
| 480 | background: #e46a55; |
| 481 | color: #fff; |
| 482 | } |
| 483 | .seat__meta { |
| 484 | display: flex; |
| 485 | flex-direction: column; |
| 486 | align-items: center; |
| 487 | line-height: 1.25; |
| 488 | min-width: 0; |
| 489 | } |
| 490 | .seat--row .seat__meta { |
| 491 | align-items: flex-start; |
| 492 | } |
| 493 | .seat__name { |
| 494 | font-size: 15px; |
| 495 | font-weight: 650; |
| 496 | max-width: 9em; |
| 497 | white-space: nowrap; |
| 498 | overflow: hidden; |
| 499 | text-overflow: ellipsis; |
| 500 | display: inline-flex; |
| 501 | align-items: center; |
| 502 | gap: 4px; |
| 503 | text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); |
| 504 | } |
| 505 | .seat__me { |
| 506 | font-size: 10px; |
| 507 | padding: 0 4px; |
| 508 | border-radius: 4px; |
| 509 | background: rgba(255, 255, 255, 0.16); |
| 510 | font-weight: 600; |
| 511 | } |
| 512 | .seat__sub { |
| 513 | font-size: 12.5px; |
| 514 | color: var(--felt-ink-2); |
| 515 | display: inline-flex; |
| 516 | align-items: center; |
| 517 | gap: 4px; |
| 518 | } |
| 519 | .seat__bubble { |
| 520 | position: absolute; |
| 521 | z-index: 30; |
| 522 | white-space: nowrap; |
| 523 | font-size: 13px; |
| 524 | font-weight: 600; |
| 525 | padding: 4px 10px; |
| 526 | border-radius: 99px; |
| 527 | background: rgba(255, 255, 255, 0.94); |
| 528 | color: #26292d; |
| 529 | box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22); |
| 530 | animation: pop-in 0.3s var(--ease-out); |
| 531 | pointer-events: none; |
| 532 | } |
| 533 | .seat__bubble.side-top { |
| 534 | bottom: 100%; |
| 535 | margin-bottom: 6px; |
| 536 | } |
| 537 | .seat__bubble.side-bottom { |
| 538 | top: 100%; |
| 539 | margin-top: 6px; |
| 540 | } |
| 541 | .seat__bubble.side-right { |
| 542 | left: 100%; |
| 543 | margin-left: 8px; |
| 544 | top: 10px; |
| 545 | } |
| 546 | .seat__bubble.side-left { |
| 547 | right: 100%; |
| 548 | margin-right: 8px; |
| 549 | top: 10px; |
| 550 | } |
| 551 | |
| 552 | |
| 553 | .count-chip { |
| 554 | display: inline-flex; |
| 555 | align-items: center; |
| 556 | gap: 4px; |
| 557 | font-weight: 650; |
| 558 | color: var(--felt-ink); |
| 559 | } |
| 560 | .count-chip i { |
| 561 | width: 9px; |
| 562 | height: 12px; |
| 563 | border-radius: 2px; |
| 564 | background: linear-gradient(160deg, var(--card-back-1), var(--card-back-2)); |
| 565 | box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); |
| 566 | } |
| 567 | .count-chip.is-warn { |
| 568 | color: #ffb39f; |
| 569 | } |
| 570 | |
| 571 | |
| 572 | .btn { |
| 573 | display: inline-flex; |
| 574 | align-items: center; |
| 575 | justify-content: center; |
| 576 | gap: 6px; |
| 577 | border-radius: 99px; |
| 578 | font-weight: 600; |
| 579 | letter-spacing: 0.02em; |
| 580 | white-space: nowrap; |
| 581 | transition: |
| 582 | transform 0.12s var(--ease), |
| 583 | background 0.16s, |
| 584 | box-shadow 0.16s, |
| 585 | opacity 0.16s; |
| 586 | user-select: none; |
| 587 | } |
| 588 | .btn:active:not(:disabled) { |
| 589 | transform: scale(0.97); |
| 590 | } |
| 591 | .btn:disabled { |
| 592 | opacity: 0.42; |
| 593 | } |
| 594 | .btn--sm { |
| 595 | height: 32px; |
| 596 | padding: 0 14px; |
| 597 | font-size: 13px; |
| 598 | } |
| 599 | .btn--md { |
| 600 | height: 40px; |
| 601 | padding: 0 20px; |
| 602 | font-size: 14.5px; |
| 603 | } |
| 604 | .btn--lg { |
| 605 | height: 50px; |
| 606 | padding: 0 28px; |
| 607 | font-size: 16px; |
| 608 | } |
| 609 | .btn--block { |
| 610 | width: 100%; |
| 611 | } |
| 612 | .btn--primary { |
| 613 | background: var(--accent); |
| 614 | color: var(--accent-ink); |
| 615 | box-shadow: |
| 616 | 0 1px 2px rgba(0, 0, 0, 0.12), |
| 617 | inset 0 1px 0 rgba(255, 255, 255, 0.12); |
| 618 | } |
| 619 | .btn--primary:hover:not(:disabled) { |
| 620 | background: color-mix(in srgb, var(--accent) 88%, #000); |
| 621 | } |
| 622 | .btn--secondary { |
| 623 | background: var(--surface); |
| 624 | color: var(--ink); |
| 625 | box-shadow: inset 0 0 0 1px var(--line-2); |
| 626 | } |
| 627 | .btn--secondary:hover:not(:disabled) { |
| 628 | background: var(--surface-2); |
| 629 | } |
| 630 | .btn--ghost { |
| 631 | color: var(--ink-2); |
| 632 | } |
| 633 | .btn--ghost:hover:not(:disabled) { |
| 634 | background: var(--line); |
| 635 | color: var(--ink); |
| 636 | } |
| 637 | .btn--gold { |
| 638 | background: linear-gradient(180deg, #f0d59b, #c9a25b); |
| 639 | color: #33240c; |
| 640 | box-shadow: |
| 641 | 0 2px 8px rgba(0, 0, 0, 0.22), |
| 642 | inset 0 1px 0 rgba(255, 255, 255, 0.45); |
| 643 | } |
| 644 | .btn--danger { |
| 645 | background: var(--danger); |
| 646 | color: #fff; |
| 647 | } |
| 648 | |
| 649 | .btn--felt { |
| 650 | background: rgba(255, 255, 255, 0.1); |
| 651 | color: var(--felt-ink); |
| 652 | box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); |
| 653 | backdrop-filter: blur(6px); |
| 654 | } |
| 655 | .btn--felt:hover:not(:disabled) { |
| 656 | background: rgba(255, 255, 255, 0.16); |
| 657 | } |
| 658 | .btn--felt-primary { |
| 659 | background: linear-gradient(180deg, #f6e1b0, #d6b06b); |
| 660 | color: #33240c; |
| 661 | box-shadow: |
| 662 | 0 4px 14px rgba(0, 0, 0, 0.25), |
| 663 | inset 0 1px 0 rgba(255, 255, 255, 0.5); |
| 664 | } |
| 665 | .btn--felt-primary:hover:not(:disabled) { |
| 666 | filter: brightness(1.04); |
| 667 | } |
| 668 | |
| 669 | .sheet-backdrop { |
| 670 | position: fixed; |
| 671 | inset: 0; |
| 672 | z-index: 200; |
| 673 | background: rgba(14, 16, 18, 0.42); |
| 674 | backdrop-filter: blur(3px); |
| 675 | display: flex; |
| 676 | align-items: center; |
| 677 | justify-content: center; |
| 678 | padding: 20px; |
| 679 | animation: fade-in 0.2s ease; |
| 680 | } |
| 681 | .sheet { |
| 682 | width: min(460px, 100%); |
| 683 | max-height: min(86dvh, 760px); |
| 684 | display: flex; |
| 685 | flex-direction: column; |
| 686 | background: var(--surface); |
| 687 | color: var(--ink); |
| 688 | border-radius: var(--radius-xl); |
| 689 | box-shadow: var(--shadow-lg); |
| 690 | animation: rise-in 0.28s var(--ease-out); |
| 691 | overflow: hidden; |
| 692 | } |
| 693 | .sheet--wide { |
| 694 | width: min(640px, 100%); |
| 695 | } |
| 696 | .sheet__head { |
| 697 | display: flex; |
| 698 | align-items: flex-start; |
| 699 | justify-content: space-between; |
| 700 | gap: 12px; |
| 701 | padding: 22px 22px 6px 24px; |
| 702 | } |
| 703 | .sheet__title { |
| 704 | font-size: 19px; |
| 705 | font-weight: 650; |
| 706 | letter-spacing: 0.01em; |
| 707 | } |
| 708 | .sheet__subtitle { |
| 709 | margin-top: 2px; |
| 710 | font-size: 13px; |
| 711 | color: var(--ink-2); |
| 712 | } |
| 713 | .sheet__close { |
| 714 | width: 32px; |
| 715 | height: 32px; |
| 716 | border-radius: 50%; |
| 717 | display: grid; |
| 718 | place-items: center; |
| 719 | color: var(--ink-2); |
| 720 | background: var(--surface-2); |
| 721 | flex: none; |
| 722 | } |
| 723 | .sheet__body { |
| 724 | padding: 12px 24px 20px; |
| 725 | overflow-y: auto; |
| 726 | } |
| 727 | .sheet__foot { |
| 728 | padding: 14px 24px 22px; |
| 729 | display: flex; |
| 730 | gap: 10px; |
| 731 | border-top: 1px solid var(--line); |
| 732 | } |
| 733 | .sheet__foot > .btn { |
| 734 | flex: 1; |
| 735 | } |
| 736 | @media (max-width: 560px) { |
| 737 | .sheet-backdrop { |
| 738 | align-items: flex-end; |
| 739 | padding: 0; |
| 740 | } |
| 741 | .sheet { |
| 742 | width: 100%; |
| 743 | border-radius: 24px 24px 0 0; |
| 744 | padding-bottom: env(safe-area-inset-bottom); |
| 745 | } |
| 746 | } |
| 747 | .table { |
| 748 | position: fixed; |
| 749 | inset: 0; |
| 750 | overflow: hidden; |
| 751 | color: var(--felt-ink); |
| 752 | background: radial-gradient( |
| 753 | 120% 90% at 50% 38%, |
| 754 | var(--felt-1) 0%, |
| 755 | var(--felt-2) 55%, |
| 756 | var(--felt-3) 100% |
| 757 | ); |
| 758 | user-select: none; |
| 759 | -webkit-user-select: none; |
| 760 | } |
| 761 | .table::before { |
| 762 | |
| 763 | content: ''; |
| 764 | position: absolute; |
| 765 | inset: 0; |
| 766 | opacity: 0.11; |
| 767 | mix-blend-mode: overlay; |
| 768 | pointer-events: none; |
| 769 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); |
| 770 | } |
| 771 | .table::after { |
| 772 | |
| 773 | content: ''; |
| 774 | position: absolute; |
| 775 | inset: max(52px, calc(env(safe-area-inset-top) + 48px)) 10px 10px; |
| 776 | border-radius: 28px; |
| 777 | border: 1px solid var(--felt-line); |
| 778 | pointer-events: none; |
| 779 | } |
| 780 | |
| 781 | .table__top { |
| 782 | position: absolute; |
| 783 | z-index: 60; |
| 784 | top: 0; |
| 785 | left: 0; |
| 786 | right: 0; |
| 787 | height: calc(52px + env(safe-area-inset-top)); |
| 788 | padding: env(safe-area-inset-top) max(8px, env(safe-area-inset-right)) 0 |
| 789 | max(8px, env(safe-area-inset-left)); |
| 790 | display: flex; |
| 791 | align-items: center; |
| 792 | justify-content: space-between; |
| 793 | } |
| 794 | .table__top-left, |
| 795 | .table__top-right { |
| 796 | display: flex; |
| 797 | align-items: center; |
| 798 | gap: 2px; |
| 799 | } |
| 800 | .table__title { |
| 801 | display: flex; |
| 802 | flex-direction: column; |
| 803 | line-height: 1.2; |
| 804 | margin-left: 2px; |
| 805 | } |
| 806 | .table__title strong { |
| 807 | font-size: 15px; |
| 808 | font-weight: 650; |
| 809 | letter-spacing: 0.04em; |
| 810 | } |
| 811 | .table__title span { |
| 812 | font-size: 11px; |
| 813 | color: var(--felt-ink-3); |
| 814 | } |
| 815 | |
| 816 | .board { |
| 817 | position: absolute; |
| 818 | top: calc(52px + env(safe-area-inset-top)); |
| 819 | left: env(safe-area-inset-left); |
| 820 | right: env(safe-area-inset-right); |
| 821 | bottom: env(safe-area-inset-bottom); |
| 822 | } |
| 823 | |
| 824 | |
| 825 | .info-chips { |
| 826 | display: flex; |
| 827 | flex-wrap: wrap; |
| 828 | justify-content: center; |
| 829 | gap: 6px; |
| 830 | } |
| 831 | .chip { |
| 832 | display: inline-flex; |
| 833 | align-items: center; |
| 834 | gap: 5px; |
| 835 | height: 26px; |
| 836 | padding: 0 10px; |
| 837 | border-radius: 99px; |
| 838 | background: var(--felt-glass); |
| 839 | box-shadow: inset 0 0 0 1px var(--felt-line); |
| 840 | font-size: 12.5px; |
| 841 | color: var(--felt-ink-2); |
| 842 | white-space: nowrap; |
| 843 | } |
| 844 | .chip b { |
| 845 | color: var(--felt-ink); |
| 846 | font-weight: 650; |
| 847 | } |
| 848 | .chip.is-gold b { |
| 849 | color: var(--felt-accent); |
| 850 | } |
| 851 | |
| 852 | .action-bar { |
| 853 | display: flex; |
| 854 | justify-content: center; |
| 855 | align-items: center; |
| 856 | gap: 10px; |
| 857 | min-height: 44px; |
| 858 | flex-wrap: wrap; |
| 859 | } |
| 860 | .action-bar .btn { |
| 861 | min-width: 84px; |
| 862 | } |
| 863 | .action-hint { |
| 864 | font-size: 13px; |
| 865 | color: var(--felt-ink-2); |
| 866 | display: flex; |
| 867 | align-items: center; |
| 868 | gap: 6px; |
| 869 | } |
| 870 | .action-hint b { |
| 871 | color: var(--felt-accent); |
| 872 | font-weight: 600; |
| 873 | } |
| 874 | .pattern-tag { |
| 875 | font-size: 12px; |
| 876 | padding: 2px 9px; |
| 877 | border-radius: 99px; |
| 878 | background: rgba(231, 200, 134, 0.16); |
| 879 | color: var(--felt-accent); |
| 880 | font-weight: 600; |
| 881 | animation: fade-in 0.2s; |
| 882 | } |
| 883 | |
| 884 | .pass-label { |
| 885 | font-size: 18px; |
| 886 | font-weight: 600; |
| 887 | letter-spacing: 0.18em; |
| 888 | color: var(--felt-ink-2); |
| 889 | font-family: var(--font-display); |
| 890 | animation: pop-in 0.3s var(--ease-out); |
| 891 | } |
| 892 | |
| 893 | |
| 894 | .result { |
| 895 | text-align: center; |
| 896 | } |
| 897 | .result__title { |
| 898 | font-family: var(--font-display); |
| 899 | font-size: 34px; |
| 900 | font-weight: 700; |
| 901 | letter-spacing: 0.16em; |
| 902 | margin-top: 4px; |
| 903 | } |
| 904 | .result__title.is-win { |
| 905 | color: var(--gold); |
| 906 | } |
| 907 | .result__title.is-lose { |
| 908 | color: var(--ink-2); |
| 909 | } |
| 910 | .result__sub { |
| 911 | margin-top: 4px; |
| 912 | color: var(--ink-2); |
| 913 | font-size: 13.5px; |
| 914 | } |
| 915 | .result__table { |
| 916 | width: 100%; |
| 917 | margin-top: 18px; |
| 918 | border-collapse: collapse; |
| 919 | font-size: 14px; |
| 920 | } |
| 921 | .result__table th { |
| 922 | font-weight: 500; |
| 923 | font-size: 12px; |
| 924 | color: var(--ink-3); |
| 925 | text-align: left; |
| 926 | padding: 0 6px 6px; |
| 927 | } |
| 928 | .result__table td { |
| 929 | padding: 10px 6px; |
| 930 | border-top: 1px solid var(--line); |
| 931 | text-align: left; |
| 932 | vertical-align: middle; |
| 933 | } |
| 934 | .result__table td.num, |
| 935 | .result__table th.num { |
| 936 | text-align: right; |
| 937 | } |
| 938 | .result__table tr.is-me td { |
| 939 | background: var(--accent-soft); |
| 940 | } |
| 941 | .result__table tr.is-me td:first-child { |
| 942 | border-radius: 10px 0 0 10px; |
| 943 | } |
| 944 | .result__table tr.is-me td:last-child { |
| 945 | border-radius: 0 10px 10px 0; |
| 946 | } |
| 947 | .result__who { |
| 948 | display: flex; |
| 949 | align-items: center; |
| 950 | gap: 8px; |
| 951 | font-weight: 600; |
| 952 | } |
| 953 | .delta-pos { |
| 954 | color: #2f7d58; |
| 955 | font-weight: 650; |
| 956 | } |
| 957 | .delta-neg { |
| 958 | color: var(--danger); |
| 959 | font-weight: 650; |
| 960 | } |
| 961 | :root[data-theme='dark'] .delta-pos { |
| 962 | color: #6fcf97; |
| 963 | } |
| 964 | .result__hands { |
| 965 | margin-top: 14px; |
| 966 | display: grid; |
| 967 | gap: 8px; |
| 968 | text-align: left; |
| 969 | } |
| 970 | .result__hand { |
| 971 | display: flex; |
| 972 | align-items: center; |
| 973 | gap: 10px; |
| 974 | padding: 8px 10px; |
| 975 | border-radius: 12px; |
| 976 | background: linear-gradient(160deg, var(--felt-1), var(--felt-2)); |
| 977 | overflow-x: auto; |
| 978 | } |
| 979 | .result__hand > span { |
| 980 | font-size: 12px; |
| 981 | color: var(--felt-ink-2); |
| 982 | flex: none; |
| 983 | width: 4em; |
| 984 | } |
| 985 | .mini-tag { |
| 986 | font-size: 11px; |
| 987 | padding: 1px 7px; |
| 988 | border-radius: 99px; |
| 989 | background: var(--gold-soft); |
| 990 | color: var(--gold); |
| 991 | font-weight: 650; |
| 992 | } |
| 993 | .mini-tag.is-plain { |
| 994 | background: var(--surface-2); |
| 995 | color: var(--ink-2); |
| 996 | } |
| 997 | .ready-note { |
| 998 | font-size: 12px; |
| 999 | color: var(--ink-3); |
| 1000 | text-align: center; |
| 1001 | margin-top: 10px; |
| 1002 | } |
| 1003 | |
| 1004 | |
| 1005 | .rotate-tip { |
| 1006 | display: none; |
| 1007 | } |
| 1008 | @media (orientation: portrait) and (max-width: 600px) { |
| 1009 | :root { |
| 1010 | --cw: clamp(40px, 14.5vw, 64px); |
| 1011 | } |
| 1012 | .rotate-tip { |
| 1013 | display: flex; |
| 1014 | position: absolute; |
| 1015 | z-index: 5; |
| 1016 | left: 50%; |
| 1017 | top: 6px; |
| 1018 | translate: -50% 0; |
| 1019 | font-size: 11px; |
| 1020 | color: var(--felt-ink-3); |
| 1021 | gap: 4px; |
| 1022 | align-items: center; |
| 1023 | white-space: nowrap; |
| 1024 | } |
| 1025 | } |
| 1026 | .ddz { |
| 1027 | position: absolute; |
| 1028 | inset: 0; |
| 1029 | display: grid; |
| 1030 | grid-template-columns: minmax(84px, 1fr) minmax(0, 4.4fr) minmax(84px, 1fr); |
| 1031 | grid-template-rows: auto minmax(0, 1fr) auto auto; |
| 1032 | grid-template-areas: |
| 1033 | 'info info info' |
| 1034 | 'left center right' |
| 1035 | 'me me me' |
| 1036 | 'hand hand hand'; |
| 1037 | padding: 2px max(14px, 2vw) 10px; |
| 1038 | } |
| 1039 | |
| 1040 | .ddz__info { |
| 1041 | grid-area: info; |
| 1042 | display: flex; |
| 1043 | align-items: center; |
| 1044 | justify-content: center; |
| 1045 | gap: 12px; |
| 1046 | flex-wrap: wrap; |
| 1047 | padding-bottom: 4px; |
| 1048 | } |
| 1049 | .ddz__bottom { |
| 1050 | display: flex; |
| 1051 | gap: 4px; |
| 1052 | } |
| 1053 | |
| 1054 | .ddz__seat { |
| 1055 | align-self: start; |
| 1056 | justify-self: center; |
| 1057 | padding-top: 6%; |
| 1058 | } |
| 1059 | .ddz__seat.is-left { |
| 1060 | grid-area: left; |
| 1061 | } |
| 1062 | .ddz__seat.is-right { |
| 1063 | grid-area: right; |
| 1064 | } |
| 1065 | .ddz__score { |
| 1066 | font-size: 11px; |
| 1067 | color: var(--felt-ink-3); |
| 1068 | } |
| 1069 | .ddz__sub { |
| 1070 | display: flex; |
| 1071 | flex-direction: column; |
| 1072 | align-items: center; |
| 1073 | line-height: 1.3; |
| 1074 | } |
| 1075 | .ddz__sub em { |
| 1076 | font-style: normal; |
| 1077 | font-size: 11px; |
| 1078 | color: var(--felt-ink-3); |
| 1079 | } |
| 1080 | |
| 1081 | .ddz__center { |
| 1082 | grid-area: center; |
| 1083 | position: relative; |
| 1084 | min-height: 0; |
| 1085 | } |
| 1086 | .ddz__zone { |
| 1087 | position: absolute; |
| 1088 | display: flex; |
| 1089 | align-items: center; |
| 1090 | } |
| 1091 | .ddz__zone.is-left { |
| 1092 | left: 0; |
| 1093 | top: 10%; |
| 1094 | } |
| 1095 | .ddz__zone.is-right { |
| 1096 | right: 0; |
| 1097 | top: 10%; |
| 1098 | } |
| 1099 | .ddz__zone.is-me { |
| 1100 | left: 50%; |
| 1101 | bottom: 2px; |
| 1102 | translate: -50% 0; |
| 1103 | } |
| 1104 | |
| 1105 | .ddz__me { |
| 1106 | grid-area: me; |
| 1107 | position: relative; |
| 1108 | display: flex; |
| 1109 | align-items: center; |
| 1110 | justify-content: center; |
| 1111 | min-height: 54px; |
| 1112 | padding: 4px 0 6px; |
| 1113 | } |
| 1114 | .ddz__myseat { |
| 1115 | position: absolute; |
| 1116 | left: 0; |
| 1117 | top: 50%; |
| 1118 | translate: 0 -50%; |
| 1119 | } |
| 1120 | .ddz__hand { |
| 1121 | grid-area: hand; |
| 1122 | padding: 0 3%; |
| 1123 | } |
| 1124 | .spectate { |
| 1125 | justify-content: center; |
| 1126 | padding: 24px; |
| 1127 | } |
| 1128 | |
| 1129 | |
| 1130 | .counter { |
| 1131 | position: absolute; |
| 1132 | z-index: 20; |
| 1133 | top: 4px; |
| 1134 | right: 12px; |
| 1135 | display: flex; |
| 1136 | gap: 1px; |
| 1137 | padding: 3px; |
| 1138 | border-radius: 10px; |
| 1139 | background: var(--felt-glass); |
| 1140 | box-shadow: inset 0 0 0 1px var(--felt-line); |
| 1141 | } |
| 1142 | .counter span { |
| 1143 | display: flex; |
| 1144 | flex-direction: column; |
| 1145 | align-items: center; |
| 1146 | min-width: 18px; |
| 1147 | padding: 1px 2px; |
| 1148 | line-height: 1.15; |
| 1149 | } |
| 1150 | .counter em { |
| 1151 | font-style: normal; |
| 1152 | font-size: 10px; |
| 1153 | color: var(--felt-ink-3); |
| 1154 | } |
| 1155 | .counter b { |
| 1156 | font-size: 12px; |
| 1157 | font-weight: 650; |
| 1158 | } |
| 1159 | .counter .is-zero b { |
| 1160 | color: var(--felt-ink-3); |
| 1161 | opacity: 0.5; |
| 1162 | } |
| 1163 | .counter .is-full b { |
| 1164 | color: var(--felt-accent); |
| 1165 | } |
| 1166 | |
| 1167 | @media (max-width: 900px) { |
| 1168 | .counter { |
| 1169 | display: none; |
| 1170 | } |
| 1171 | } |
| 1172 | @media (max-height: 460px) { |
| 1173 | .ddz__info { |
| 1174 | gap: 8px; |
| 1175 | } |
| 1176 | .ddz__seat { |
| 1177 | padding-top: 0; |
| 1178 | } |
| 1179 | .ddz__me { |
| 1180 | min-height: 46px; |
| 1181 | padding: 2px 0 4px; |
| 1182 | } |
| 1183 | } |
| 1184 | @media (orientation: portrait) and (max-width: 600px) { |
| 1185 | .ddz { |
| 1186 | grid-template-columns: 76px minmax(0, 1fr) 76px; |
| 1187 | padding: 18px 8px 8px; |
| 1188 | } |
| 1189 | .ddz__me { |
| 1190 | flex-direction: column; |
| 1191 | gap: 6px; |
| 1192 | } |
| 1193 | .ddz__myseat { |
| 1194 | position: static; |
| 1195 | translate: none; |
| 1196 | align-self: flex-start; |
| 1197 | padding-left: 4px; |
| 1198 | } |
| 1199 | .ddz__zone.is-left, |
| 1200 | .ddz__zone.is-right { |
| 1201 | top: 40%; |
| 1202 | } |
| 1203 | } |