/* ---- history ---- */
.item { display: grid; gap: 8px; }
.item .when { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.item .when b { font-weight: 600; font-size: 17px; }
.item .when span { color: var(--mute); font-size: 14px; }
.item .who { display: flex; align-items: center; gap: 10px; }
.item .who span { flex: 1; min-width: 0; }
.item .who em { font-style: normal; }
.item .who.won { font-weight: 600; }
.item .tile { min-width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
.detail .table { flex: none; overflow: auto hidden; padding: 0; border-radius: var(--radius); }
.detail .table :is(thead, tfoot) :is(th, td) { top: auto; bottom: auto; }
.detail .table tbody :is(th, td) { height: 30px; }

/* ---- statistics ---- */
.lead { display: flex; gap: 8px; align-items: flex-end; height: 150px; flex: none; overflow-x: auto; overflow-y: hidden; }
.lead button {
  flex: 1 0 72px;
  min-width: 0;
  height: calc(64px + 86px * var(--h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px;
  border-radius: 12px 12px 0 0;
  background: var(--c);
  color: #fff;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transform-origin: bottom;
}
.lead span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead b { font-size: 28px; line-height: 1; }
.list { width: 100%; border-collapse: collapse; font-size: 15px; }
.list th, .list td { padding: 8px 0; border-bottom: 1px solid var(--used); text-align: left; font-weight: 400; vertical-align: baseline; }
.list td { font-weight: 600; padding-left: 12px; text-align: right; overflow-wrap: anywhere; }
.list td.num { white-space: normal; }
.list .whole { white-space: nowrap; overflow-wrap: normal; }
[data-theme='paper'] .list th, [data-theme='paper'] .list td { border-color: var(--line); }

/* ---- settings ---- */
.colors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.colors button { height: 46px; border-radius: 12px; background: var(--c); }
.colors button[aria-checked='true'] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--ink); }
