/* From DeskPark (https://github.com/solitern/DeskPark, MIT, 9d0a3b7; see viewer/NOTICE): the tokens, the cards, the hand, the seats, the table and the Dou Dizhu board, cut down to what this viewer draws. */ :root { /* 字体 */ --font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif; --font-display: 'Songti SC', 'STSong', 'Noto Serif SC', 'Source Han Serif SC', 'Noto Serif CJK SC', 'SimSun', Georgia, serif; --font-card: 'SF Pro Display', -apple-system, 'Segoe UI', 'Helvetica Neue', Roboto, Arial, sans-serif; /* 大厅(浅色) */ --paper: #f4f1ea; --paper-2: #ece8de; --surface: #fffdf9; --surface-2: #f8f6f1; --ink: #1c1d1f; --ink-2: #5d6166; --ink-3: #979ba1; --line: rgba(28, 29, 31, 0.08); --line-2: rgba(28, 29, 31, 0.14); --accent: #1f5c4f; --accent-ink: #ffffff; --accent-soft: #e2ece8; --gold: #b48a4e; --gold-soft: #f3e9d8; --danger: #b3412f; --focus: rgba(31, 92, 79, 0.35); /* 卡牌 */ --card-face: #fffefb; --card-edge: rgba(20, 22, 26, 0.12); --card-red: #c4352b; --card-black: #1e2126; --card-blue: #23599b; --card-green: #2b7442; --card-back-1: #1f5c4f; --card-back-2: #17463c; --card-shadow: 0 1px 1px rgba(0, 0, 0, 0.18), 0 3px 10px rgba(0, 0, 0, 0.14); /* 牌桌(默认:墨绿) */ --felt-1: #2a6152; --felt-2: #173a31; --felt-3: #0f2822; --felt-ink: #f3f1ea; --felt-ink-2: rgba(243, 241, 234, 0.66); --felt-ink-3: rgba(243, 241, 234, 0.4); --felt-line: rgba(255, 255, 255, 0.09); --felt-glass: rgba(10, 20, 17, 0.32); --felt-glass-2: rgba(255, 255, 255, 0.07); --felt-accent: #e7c886; /* 尺寸 */ --radius-xs: 6px; --radius-sm: 10px; --radius: 14px; --radius-lg: 20px; --radius-xl: 28px; --shadow-sm: 0 1px 2px rgba(28, 29, 31, 0.06), 0 1px 1px rgba(28, 29, 31, 0.04); --shadow: 0 1px 2px rgba(28, 29, 31, 0.05), 0 8px 24px rgba(28, 29, 31, 0.07); --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.08), 0 24px 60px rgba(0, 0, 0, 0.18); --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* 卡牌尺寸(随屏幕自适应) */ --cw: clamp(40px, min(6.6vw, 13vh), 124px); --ch: calc(var(--cw) * 1.4); --cw-sm: calc(var(--cw) * 0.72); --cw-xs: calc(var(--cw) * 0.5); color-scheme: light; } *, *::before, *::after { box-sizing: border-box; } html, body, #root { height: 100%; } html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; } body { margin: 0; font-family: var(--font-ui); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overscroll-behavior: none; } button, input, select { font: inherit; color: inherit; } button { cursor: pointer; border: 0; background: none; padding: 0; } button:disabled { cursor: not-allowed; white-space: nowrap; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } @keyframes fade-in { from { opacity: 0; } } @keyframes rise-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } } @keyframes pop-in { 0% { opacity: 0; transform: scale(0.85); } 60% { opacity: 1; transform: scale(1.04); } 100% { transform: scale(1); } } /* ============================== 卡牌 ============================== */ .pcard { --w: var(--cw); position: relative; flex: none; width: var(--w); height: calc(var(--w) * 1.4); border-radius: calc(var(--w) * 0.085); background: var(--card-face); box-shadow: var(--card-shadow), inset 0 0 0 1px var(--card-edge); color: var(--card-black); user-select: none; -webkit-user-select: none; overflow: hidden; font-family: var(--font-card); transition: translate 0.16s var(--ease), box-shadow 0.16s var(--ease), filter 0.16s var(--ease); } .pcard[data-suit='H'] { color: var(--card-red); } .pcard[data-suit='D'] { color: var(--suit-d, var(--card-red)); } .pcard[data-suit='C'] { color: var(--suit-c, var(--card-black)); } :root[data-four-color] { --suit-d: var(--card-blue); --suit-c: var(--card-green); } .pcard::before { /* 纸面高光:放在内容下面,避免冲淡点数 */ content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 38%); pointer-events: none; } .pcard__index { position: absolute; left: calc(var(--w) * 0.07); top: calc(var(--w) * 0.06); display: flex; flex-direction: column; align-items: center; width: calc(var(--w) * 0.3); line-height: 1; } .pcard__rank { font-size: calc(var(--w) * 0.31); font-weight: 650; letter-spacing: -0.04em; } .pcard__rank.is-ten { letter-spacing: -0.09em; font-size: calc(var(--w) * 0.27); margin-left: -0.06em; } .pcard__suit { width: calc(var(--w) * 0.2); height: calc(var(--w) * 0.2); margin-top: calc(var(--w) * 0.035); } .pcard__pip { position: absolute; right: calc(var(--w) * 0.1); bottom: calc(var(--w) * 0.12); width: calc(var(--w) * 0.46); height: calc(var(--w) * 0.46); opacity: 0.92; } .pcard__pip.is-ace { right: calc(var(--w) * 0.14); bottom: calc(var(--w) * 0.2); width: calc(var(--w) * 0.56); height: calc(var(--w) * 0.56); } .pcard__court { position: absolute; right: calc(var(--w) * 0.08); bottom: calc(var(--w) * 0.12); width: calc(var(--w) * 0.6); height: calc(var(--w) * 0.6); } .pcard--joker { color: var(--card-black); } .pcard--joker.is-big { color: var(--card-red); } .pcard__jindex { position: absolute; left: calc(var(--w) * 0.08); top: calc(var(--w) * 0.07); writing-mode: vertical-rl; font-family: var(--font-display); font-weight: 700; font-size: calc(var(--w) * 0.2); letter-spacing: 0.08em; line-height: 1; } .pcard__jcenter { position: absolute; right: calc(var(--w) * 0.07); bottom: calc(var(--w) * 0.12); width: calc(var(--w) * 0.62); height: calc(var(--w) * 0.62); } .pcard--joker:not(.is-big) .pcard__jcenter { opacity: 0.85; } .pcard__wild { position: absolute; right: calc(var(--w) * 0.06); top: calc(var(--w) * 0.06); width: calc(var(--w) * 0.26); height: calc(var(--w) * 0.26); border-radius: 50%; background: var(--gold); color: #fff; font-size: calc(var(--w) * 0.15); font-weight: 700; display: grid; place-items: center; font-family: var(--font-ui); } .pcard--back { background: var(--card-face); padding: calc(var(--w) * 0.05); } .pcard__back { width: 100%; height: 100%; border-radius: calc(var(--w) * 0.05); background: repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px calc(var(--w) * 0.09) ), repeating-linear-gradient( -45deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px calc(var(--w) * 0.09) ), linear-gradient(160deg, var(--card-back-1), var(--card-back-2)); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); } .pcard__emblem { font-family: var(--font-display); font-size: calc(var(--w) * 0.3); color: rgba(231, 200, 134, 0.75); width: calc(var(--w) * 0.48); height: calc(var(--w) * 0.48); border-radius: 50%; border: 1px solid rgba(231, 200, 134, 0.45); display: grid; place-items: center; line-height: 1; } .pcard.is-selected { box-shadow: 0 0 0 2px var(--felt-accent), 0 10px 24px rgba(0, 0, 0, 0.28); } .pcard.is-dim { filter: brightness(0.62) saturate(0.7); } .pcard.is-highlight { box-shadow: 0 0 0 2px var(--felt-accent), 0 0 18px rgba(231, 200, 134, 0.55); } /* ============================== 手牌 ============================== */ .hand { position: relative; width: 100%; touch-action: none; user-select: none; } .hand__card { position: absolute; left: 0; top: 0; cursor: pointer; animation: deal-in 0.42s var(--ease-out) both; } .hand.is-disabled .hand__card { cursor: default; } @keyframes deal-in { from { opacity: 0; transform: translateY(-36px) rotate(-4deg) scale(0.9); } } .cardrow { display: flex; justify-content: center; align-items: flex-end; padding-right: calc(var(--w) * var(--ov)); } .cardrow > .pcard { margin-right: calc(var(--w) * var(--ov) * -1); animation: play-in 0.32s var(--ease-out) both; } .cardrow.from-left > .pcard { --dx: -40px; } .cardrow.from-right > .pcard { --dx: 40px; } .cardrow.from-top > .pcard { --dy: -40px; } .cardrow.from-bottom > .pcard { --dy: 50px; } @keyframes play-in { from { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.88); } } /* ============================== 座位 ============================== */ .seat { position: relative; display: flex; align-items: center; gap: 6px; color: var(--felt-ink); } .seat--column { flex-direction: column; } .seat--row { flex-direction: row; } .seat.is-dim { opacity: 0.45; } .avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 600; line-height: 1; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.25); user-select: none; } .seat__avatar { position: relative; display: grid; place-items: center; border-radius: 50%; padding: 3px; } .seat.is-active .seat__avatar { box-shadow: 0 0 0 2px rgba(231, 200, 134, 0.35); animation: breathe 1.6s ease-in-out infinite; } @keyframes breathe { 50% { box-shadow: 0 0 0 5px rgba(231, 200, 134, 0.12); } } .seat__tag { position: absolute; top: -6px; right: -10px; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 99px; letter-spacing: 0.04em; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); } .seat__tag.tone-gold { background: linear-gradient(180deg, #f0d59b, #c9a25b); color: #3b2a10; } .seat__tag.tone-plain { background: rgba(255, 255, 255, 0.9); color: #2b2d31; } .seat__tag.tone-accent { background: #6fc2a8; color: #0e2a22; } .seat__badge { position: absolute; left: -4px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #f3f1ea; color: #34373c; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); } .seat__badge.is-off { left: auto; right: -4px; background: #e46a55; color: #fff; } .seat__meta { display: flex; flex-direction: column; align-items: center; line-height: 1.25; min-width: 0; } .seat--row .seat__meta { align-items: flex-start; } .seat__name { font-size: 15px; font-weight: 650; max-width: 9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 4px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } .seat__me { font-size: 10px; padding: 0 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); font-weight: 600; } .seat__sub { font-size: 12.5px; color: var(--felt-ink-2); display: inline-flex; align-items: center; gap: 4px; } .seat__bubble { position: absolute; z-index: 30; white-space: nowrap; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.94); color: #26292d; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22); animation: pop-in 0.3s var(--ease-out); pointer-events: none; } .seat__bubble.side-top { bottom: 100%; margin-bottom: 6px; } .seat__bubble.side-bottom { top: 100%; margin-top: 6px; } .seat__bubble.side-right { left: 100%; margin-left: 8px; top: 10px; } .seat__bubble.side-left { right: 100%; margin-right: 8px; top: 10px; } /* 剩余张数徽标 */ .count-chip { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--felt-ink); } .count-chip i { width: 9px; height: 12px; border-radius: 2px; background: linear-gradient(160deg, var(--card-back-1), var(--card-back-2)); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); } .count-chip.is-warn { color: #ffb39f; } /* ============================== 按钮 ============================== */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 99px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; transition: transform 0.12s var(--ease), background 0.16s, box-shadow 0.16s, opacity 0.16s; user-select: none; } .btn:active:not(:disabled) { transform: scale(0.97); } .btn:disabled { opacity: 0.42; } .btn--sm { height: 32px; padding: 0 14px; font-size: 13px; } .btn--md { height: 40px; padding: 0 20px; font-size: 14.5px; } .btn--lg { height: 50px; padding: 0 28px; font-size: 16px; } .btn--block { width: 100%; } .btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12); } .btn--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 88%, #000); } .btn--secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); } .btn--secondary:hover:not(:disabled) { background: var(--surface-2); } .btn--ghost { color: var(--ink-2); } .btn--ghost:hover:not(:disabled) { background: var(--line); color: var(--ink); } .btn--gold { background: linear-gradient(180deg, #f0d59b, #c9a25b); color: #33240c; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45); } .btn--danger { background: var(--danger); color: #fff; } /* 牌桌上的按钮 */ .btn--felt { background: rgba(255, 255, 255, 0.1); color: var(--felt-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); } .btn--felt:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); } .btn--felt-primary { background: linear-gradient(180deg, #f6e1b0, #d6b06b); color: #33240c; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5); } .btn--felt-primary:hover:not(:disabled) { filter: brightness(1.04); } /* ============================== 面板 ============================== */ .sheet-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(14, 16, 18, 0.42); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade-in 0.2s ease; } .sheet { width: min(460px, 100%); max-height: min(86dvh, 760px); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); animation: rise-in 0.28s var(--ease-out); overflow: hidden; } .sheet--wide { width: min(640px, 100%); } .sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 6px 24px; } .sheet__title { font-size: 19px; font-weight: 650; letter-spacing: 0.01em; } .sheet__subtitle { margin-top: 2px; font-size: 13px; color: var(--ink-2); } .sheet__close { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--surface-2); flex: none; } .sheet__body { padding: 12px 24px 20px; overflow-y: auto; } .sheet__foot { padding: 14px 24px 22px; display: flex; gap: 10px; border-top: 1px solid var(--line); } .sheet__foot > .btn { flex: 1; } @media (max-width: 560px) { .sheet-backdrop { align-items: flex-end; padding: 0; } .sheet { width: 100%; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); } } .table { position: fixed; inset: 0; overflow: hidden; color: var(--felt-ink); background: radial-gradient( 120% 90% at 50% 38%, var(--felt-1) 0%, var(--felt-2) 55%, var(--felt-3) 100% ); user-select: none; -webkit-user-select: none; } .table::before { /* 细腻的绒布纹理 */ content: ''; position: absolute; inset: 0; opacity: 0.11; mix-blend-mode: overlay; pointer-events: none; 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"); } .table::after { /* 牌桌内框线 */ content: ''; position: absolute; inset: max(52px, calc(env(safe-area-inset-top) + 48px)) 10px 10px; border-radius: 28px; border: 1px solid var(--felt-line); pointer-events: none; } .table__top { position: absolute; z-index: 60; top: 0; left: 0; right: 0; height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; } .table__top-left, .table__top-right { display: flex; align-items: center; gap: 2px; } .table__title { display: flex; flex-direction: column; line-height: 1.2; margin-left: 2px; } .table__title strong { font-size: 15px; font-weight: 650; letter-spacing: 0.04em; } .table__title span { font-size: 11px; color: var(--felt-ink-3); } .board { position: absolute; top: calc(52px + env(safe-area-inset-top)); left: env(safe-area-inset-left); right: env(safe-area-inset-right); bottom: env(safe-area-inset-bottom); } /* ============================ 牌桌通用部件 ============================ */ .info-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; } .chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--felt-glass); box-shadow: inset 0 0 0 1px var(--felt-line); font-size: 12.5px; color: var(--felt-ink-2); white-space: nowrap; } .chip b { color: var(--felt-ink); font-weight: 650; } .chip.is-gold b { color: var(--felt-accent); } .action-bar { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; flex-wrap: wrap; } .action-bar .btn { min-width: 84px; } .action-hint { font-size: 13px; color: var(--felt-ink-2); display: flex; align-items: center; gap: 6px; } .action-hint b { color: var(--felt-accent); font-weight: 600; } .pattern-tag { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: rgba(231, 200, 134, 0.16); color: var(--felt-accent); font-weight: 600; animation: fade-in 0.2s; } .pass-label { font-size: 18px; font-weight: 600; letter-spacing: 0.18em; color: var(--felt-ink-2); font-family: var(--font-display); animation: pop-in 0.3s var(--ease-out); } /* 结算面板(牌桌风格) */ .result { text-align: center; } .result__title { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: 0.16em; margin-top: 4px; } .result__title.is-win { color: var(--gold); } .result__title.is-lose { color: var(--ink-2); } .result__sub { margin-top: 4px; color: var(--ink-2); font-size: 13.5px; } .result__table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 14px; } .result__table th { font-weight: 500; font-size: 12px; color: var(--ink-3); text-align: left; padding: 0 6px 6px; } .result__table td { padding: 10px 6px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; } .result__table td.num, .result__table th.num { text-align: right; } .result__table tr.is-me td { background: var(--accent-soft); } .result__table tr.is-me td:first-child { border-radius: 10px 0 0 10px; } .result__table tr.is-me td:last-child { border-radius: 0 10px 10px 0; } .result__who { display: flex; align-items: center; gap: 8px; font-weight: 600; } .delta-pos { color: #2f7d58; font-weight: 650; } .delta-neg { color: var(--danger); font-weight: 650; } :root[data-theme='dark'] .delta-pos { color: #6fcf97; } .result__hands { margin-top: 14px; display: grid; gap: 8px; text-align: left; } .result__hand { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: linear-gradient(160deg, var(--felt-1), var(--felt-2)); overflow-x: auto; } .result__hand > span { font-size: 12px; color: var(--felt-ink-2); flex: none; width: 4em; } .mini-tag { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); font-weight: 650; } .mini-tag.is-plain { background: var(--surface-2); color: var(--ink-2); } .ready-note { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 10px; } /* 竖屏手机提示 */ .rotate-tip { display: none; } @media (orientation: portrait) and (max-width: 600px) { :root { --cw: clamp(40px, 14.5vw, 64px); } .rotate-tip { display: flex; position: absolute; z-index: 5; left: 50%; top: 6px; translate: -50% 0; font-size: 11px; color: var(--felt-ink-3); gap: 4px; align-items: center; white-space: nowrap; } } .ddz { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(84px, 1fr) minmax(0, 4.4fr) minmax(84px, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: 'info info info' 'left center right' 'me me me' 'hand hand hand'; padding: 2px max(14px, 2vw) 10px; } .ddz__info { grid-area: info; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding-bottom: 4px; } .ddz__bottom { display: flex; gap: 4px; } .ddz__seat { align-self: start; justify-self: center; padding-top: 6%; } .ddz__seat.is-left { grid-area: left; } .ddz__seat.is-right { grid-area: right; } .ddz__score { font-size: 11px; color: var(--felt-ink-3); } .ddz__sub { display: flex; flex-direction: column; align-items: center; line-height: 1.3; } .ddz__sub em { font-style: normal; font-size: 11px; color: var(--felt-ink-3); } .ddz__center { grid-area: center; position: relative; min-height: 0; } .ddz__zone { position: absolute; display: flex; align-items: center; } .ddz__zone.is-left { left: 0; top: 10%; } .ddz__zone.is-right { right: 0; top: 10%; } .ddz__zone.is-me { left: 50%; bottom: 2px; translate: -50% 0; } .ddz__me { grid-area: me; position: relative; display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 4px 0 6px; } .ddz__myseat { position: absolute; left: 0; top: 50%; translate: 0 -50%; } .ddz__hand { grid-area: hand; padding: 0 3%; } .spectate { justify-content: center; padding: 24px; } /* 记牌器 */ .counter { position: absolute; z-index: 20; top: 4px; right: 12px; display: flex; gap: 1px; padding: 3px; border-radius: 10px; background: var(--felt-glass); box-shadow: inset 0 0 0 1px var(--felt-line); } .counter span { display: flex; flex-direction: column; align-items: center; min-width: 18px; padding: 1px 2px; line-height: 1.15; } .counter em { font-style: normal; font-size: 10px; color: var(--felt-ink-3); } .counter b { font-size: 12px; font-weight: 650; } .counter .is-zero b { color: var(--felt-ink-3); opacity: 0.5; } .counter .is-full b { color: var(--felt-accent); } @media (max-width: 900px) { .counter { display: none; } } @media (max-height: 460px) { .ddz__info { gap: 8px; } .ddz__seat { padding-top: 0; } .ddz__me { min-height: 46px; padding: 2px 0 4px; } } @media (orientation: portrait) and (max-width: 600px) { .ddz { grid-template-columns: 76px minmax(0, 1fr) 76px; padding: 18px 8px 8px; } .ddz__me { flex-direction: column; gap: 6px; } .ddz__myseat { position: static; translate: none; align-self: flex-start; padding-left: 4px; } .ddz__zone.is-left, .ddz__zone.is-right { top: 40%; } }