
.ty-head { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 10px; font-size: 13px; line-height: 1.6; }
.ty-head[hidden] { display: none; }
.ty-head dt { color: var(--ty-muted); white-space: nowrap; }
.ty-head dd { margin: 0; color: var(--ty-text); min-width: 0; overflow-wrap: anywhere; }
.ty-head .ty-ju { font-weight: 700; color: var(--ty-accent); }

.ty-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; background: var(--ty-line); padding: 3px; border-radius: 6px; }

.ty-cell { position: relative; min-width: 0; min-height: 76px; margin: 0; padding: 4px 4px 5px; box-sizing: border-box; border: 0; border-radius: 0; background: var(--ty-cell); color: inherit; font: inherit; text-align: left;
           cursor: pointer; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 3px; }
.ty-cell.ty-jian { background: var(--ty-cell-jian); }
.ty-cell.ty-inner { background: var(--ty-cell-inner); align-items: center; justify-content: center; }
.ty-cell.ty-zhong { justify-content: flex-start; }
.ty-cell.ty-has-taiyi { background: var(--ty-ty-bg); }
.ty-cell.ty-sel { outline: 2px solid var(--ty-sel-line); outline-offset: -2px; z-index: 1; }
.ty-cell:focus-visible { outline: 2px solid var(--ty-focus); outline-offset: -2px; z-index: 2; }
.ty-cell-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; font-size: 13px; line-height: 1.3; }
.ty-cell-pos { font-weight: 700; color: var(--ty-text); }
.ty-cell-god { font-size: 12px; color: var(--ty-sub); }
.ty-cell-gong { font-size: 11px; color: var(--ty-muted); }
.ty-inner .ty-cell-h { flex-direction: column; align-items: center; }
.ty-inner .ty-cell-pos { font-size: 18px; }
.ty-star { position: absolute; top: 1px; right: 3px; font-size: 12px; line-height: 1; color: var(--ty-mk-taiyi); font-weight: 700; }
.ty-items { display: flex; flex-wrap: wrap; gap: 2px 3px; min-width: 0; }
.ty-inner .ty-items { justify-content: center; }
.ty-mk { display: inline-flex; align-items: baseline; padding: 0 3px; border-radius: 3px; font-size: 12px; line-height: 1.5; color: var(--ty-mk-base); white-space: nowrap; }

.ty-mk-mu { font-weight: 700; border: 1px solid currentColor; }
.ty-mk-taiyi { color: var(--ty-mk-taiyi); border: 3px double currentColor; padding: 0 2px; }
.ty-mk-wc { color: var(--ty-mk-wc); }
.ty-mk-sj { color: var(--ty-mk-sj); }
.ty-mk-dm { color: var(--ty-mk-dm); }
.ty-mk-js { color: var(--ty-mk-js); }
.ty-mk-hs { color: var(--ty-mk-hs); }
.ty-mk-ts { color: var(--ty-mk-ts); }
.ty-mk-jiang { color: var(--ty-mk-jiang); border: 1px dashed currentColor; }
.ty-mk-base { color: var(--ty-mk-base); }
.ty-mk-pend { margin-left: 1px; font-size: 10px; font-weight: 600; color: var(--ty-pending); }

.ty-legend { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--ty-muted); }
.ty-legend[hidden] { display: none; }
.ty-legend-i { display: inline-flex; align-items: center; gap: 3px; }
.ty-legend-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--ty-ty-bg); outline: 1px solid var(--ty-line); position: relative; }

.ty-detail { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ty-split); font-size: 13px; line-height: 1.7; }
.ty-detail h3 { margin: 0 0 4px; font-size: 14px; color: var(--ty-sub); }
.ty-detail ul { margin: 0; padding-left: 18px; }
.ty-detail li { margin: 2px 0; }

@media (max-width: 479px) {
  .ty-board { gap: 2px; padding: 2px; }
  .ty-cell { min-height: 64px; padding: 3px 2px 4px; }
  .ty-cell-h { font-size: 12px; }
  .ty-cell-god { font-size: 11px; }
  .ty-cell-gong { font-size: 10px; }
  .ty-inner .ty-cell-pos { font-size: 15px; }
  .ty-mk { font-size: 11px; padding: 0 2px; }
  .ty-mk-taiyi { padding: 0 1px; }
  .ty-mk-pend { font-size: 9px; }
}
