/* The "Stats" tab: damage report and receipt */

/* ---------- stats ---------- */
.dgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dmg { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-width: 0; }
.dmg .k { font-size: 12px; color: var(--muted); }
.dmg .v { font-size: 22px; font-weight: 700; margin-top: 6px; }
.dmg .d { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.dfoot { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; align-items: start; }
.cubes { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; margin-top: 14px; min-height: 11px; }
.cubes i { width: 10px; height: 10px; border-radius: 2px; background: linear-gradient(135deg, #fff, #cfd4de); box-shadow: inset -1px -1px 0 rgba(0,0,0,.18); }
.cubes span { font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.tower { margin-top: 14px; font-size: 13px; color: var(--text2); display: flex; gap: 6px 8px; align-items: baseline; flex-wrap: wrap; }
.tower b { font-size: 16px; color: var(--text); }
.tower span { color: var(--muted); font-size: 12.5px; }
.pace { margin-top: 14px; font-size: 12.5px; color: var(--text2); line-height: 1.5; padding: 10px 12px; border-radius: 12px; background: rgba(255,176,32,.06); border: 1px solid rgba(255,176,32,.22); }
.pace b { color: var(--warn); }
.numsrow { display: grid; grid-template-columns: 1fr; gap: 10px; }
.receiptwrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.receipt { position: relative; width: 340px; background: #f3efe6; color: #23201b; font: 12.5px/1.6 ui-monospace, "DejaVu Sans Mono", Menlo, monospace; padding: 26px 20px 30px; transform: rotate(-.8deg); }
.receipt { margin: 2px auto 0; width: min(360px, 100%);
  --zz: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 51% repeat-x,
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 14px 51% repeat-x;
  -webkit-mask: var(--zz); mask: var(--zz); }
.rc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-item + .rc-item { margin-top: 5px; }
.rc-item .rc-row span:last-child, .rc-tot span:last-child { min-width: 64px; text-align: right; }
.rcap { text-align: center; margin: 14px 0 0; }
.rc-c { text-align: center; }
.rc-h { font-weight: 800; font-size: 14px; letter-spacing: .08em; }
.rc-sep { border-top: 1px dashed #8b857a; margin: 8px 0; }
.rc-row { display: flex; justify-content: space-between; gap: 10px; }
.rc-row span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-tot { font-weight: 800; font-size: 14px; }
.rc-bar { display: flex; justify-content: center; gap: 1px; height: 34px; margin-top: 10px; }
.rc-bar i { background: #23201b; }
.rside p { margin: 0 0 12px; color: var(--text2); line-height: 1.5; max-width: 360px; }
