@ntmats/hc-ui 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/styles.css CHANGED
@@ -1441,3 +1441,1202 @@
1441
1441
  font-size: var(--hc-font-size-2xs);
1442
1442
  }
1443
1443
  [data-hc-ds] .hc-ui-command-palette__footer .hc-ui-command-palette__kbd { margin-right: 2px; }
1444
+
1445
+ /* ==========================================================================
1446
+ HeroClix game pieces — HCUI's src/heroclix-ui, as it is. Colors that stay the
1447
+ same in both themes (the dial paper, the dark outlines, the translucent rings
1448
+ of the symbols) are HeroClix tokens; black symbols turn white or gray through
1449
+ the `filter-symbol-*` tokens.
1450
+ ========================================================================== */
1451
+
1452
+ /* Border-box sizing, as HCUI's global rule, inside every piece. */
1453
+ [data-hc-ds] :is(.hc-ui-mini-dial, .hc-ui-power-icon, .hc-ui-special-icon, .hc-ui-equipment-icon, .hc-ui-combat-dial),
1454
+ [data-hc-ds] :is(.hc-ui-mini-dial, .hc-ui-power-icon, .hc-ui-special-icon, .hc-ui-equipment-icon, .hc-ui-combat-dial) :is(*, ::before, ::after),
1455
+ [data-hc-ds] .hc-ui-combat-dial::before,
1456
+ [data-hc-ds] .hc-ui-combat-dial::after { box-sizing: border-box; }
1457
+
1458
+ /* MiniDialView — HCUI `.mini-dial`. The cell size is `--hc-mini-dial-cell` (7px),
1459
+ set on the dial or any ancestor; the top margin has zero specificity. */
1460
+ :where([data-hc-ds] .hc-ui-mini-dial) { margin-top: 5px; }
1461
+ [data-hc-ds] .hc-ui-mini-dial {
1462
+ display: grid;
1463
+ grid-auto-rows: var(--hc-mini-dial-cell, 7px);
1464
+ gap: 1px;
1465
+ width: fit-content;
1466
+ max-width: 100%;
1467
+ padding: 2px;
1468
+ overflow: hidden;
1469
+ border-radius: 3px;
1470
+ background-color: var(--hc-color-bg-muted);
1471
+ }
1472
+ [data-hc-ds] .hc-ui-mini-dial__cell { display: block; border-radius: 1.5px; }
1473
+ /* In play: past clicks fade and the current one is outlined. */
1474
+ [data-hc-ds] .hc-ui-mini-dial__cell[data-past] { opacity: .22; }
1475
+ [data-hc-ds] .hc-ui-mini-dial__cell[data-round] { border-radius: 50%; }
1476
+ [data-hc-ds] .hc-ui-mini-dial__cell[data-now] { outline: 1.5px solid var(--hc-color-danger); }
1477
+ /* No power: the paper. Special power: the paper with a dark 1px ring (thicker
1478
+ rings swallow the paper in 5–7px cells). Both themes. */
1479
+ [data-hc-ds] .hc-ui-mini-dial__cell[data-empty] { background-color: var(--hc-color-dial-paper); }
1480
+ [data-hc-ds] .hc-ui-mini-dial__cell[data-special] {
1481
+ background-color: var(--hc-color-dial-paper);
1482
+ box-shadow: inset 0 0 0 1px var(--hc-color-dial-outline);
1483
+ }
1484
+
1485
+ /* PowerIconView and StatGlyphView — HCUI `.power-icon` and `.stat-glyph`. */
1486
+ [data-hc-ds] .hc-ui-power-icon {
1487
+ display: inline-flex;
1488
+ align-items: center;
1489
+ justify-content: center;
1490
+ flex-shrink: 0;
1491
+ border-radius: var(--hc-radius-full);
1492
+ box-shadow: inset 0 0 0 1px var(--hc-color-symbol-outline);
1493
+ }
1494
+ [data-hc-ds] .hc-ui-power-icon__glyph {
1495
+ display: block;
1496
+ width: 60%;
1497
+ height: 60%;
1498
+ object-fit: contain;
1499
+ }
1500
+ /* The symbol is black; inverted it turns white, for contrast on dark colors. */
1501
+ [data-hc-ds] .hc-ui-power-icon__glyph[data-invert] { filter: var(--hc-filter-symbol-light); }
1502
+ /* The black symbol turns neutral gray (dial legend). */
1503
+ [data-hc-ds] .hc-ui-stat-glyph {
1504
+ display: inline-block;
1505
+ flex-shrink: 0;
1506
+ object-fit: contain;
1507
+ filter: var(--hc-filter-symbol-muted);
1508
+ }
1509
+
1510
+ /* SpecialIconView — HCUI `.sp-icon`. */
1511
+ [data-hc-ds] .hc-ui-special-icon {
1512
+ position: relative;
1513
+ display: inline-flex;
1514
+ flex-shrink: 0;
1515
+ box-sizing: border-box;
1516
+ border: 1px solid var(--hc-color-symbol-outline-strong);
1517
+ }
1518
+ [data-hc-ds] :is(.hc-ui-special-icon__bg, .hc-ui-special-icon__glyph) {
1519
+ position: absolute;
1520
+ inset: 0;
1521
+ box-sizing: border-box;
1522
+ width: 100%;
1523
+ height: 100%;
1524
+ object-fit: contain;
1525
+ }
1526
+ /* Keeps the circle's edge visible even on white. */
1527
+ [data-hc-ds] .hc-ui-special-icon__bg {
1528
+ border-radius: var(--hc-radius-full);
1529
+ box-shadow: inset 0 0 0 1.5px var(--hc-color-symbol-outline-soft);
1530
+ }
1531
+ [data-hc-ds] .hc-ui-special-icon__glyph { padding: 22%; }
1532
+
1533
+ /* EquipmentIcon — HCUI `.equip-icon`: a white diamond on the purple power. */
1534
+ [data-hc-ds] .hc-ui-equipment-icon {
1535
+ display: inline-flex;
1536
+ align-items: center;
1537
+ justify-content: center;
1538
+ flex-shrink: 0;
1539
+ border-radius: var(--hc-radius-full);
1540
+ background-color: var(--hc-power-purple);
1541
+ box-shadow: inset 0 0 0 1px var(--hc-color-symbol-outline);
1542
+ }
1543
+ [data-hc-ds] .hc-ui-equipment-icon path { fill: var(--hc-color-symbol-light); }
1544
+
1545
+ /* AvatarView — HCUI `img.avatar-os`, `img.avatar-sq`, `img.avatar-sq--fit` and
1546
+ `img.default-avatar--fallback`. Without `size` the caller's class sizes and crops
1547
+ it (the defaults below have zero specificity); the shapes win over that class. */
1548
+ :where([data-hc-ds] .hc-ui-avatar) { display: block; box-sizing: border-box; max-width: 100%; }
1549
+ [data-hc-ds] .hc-ui-avatar[data-sized] {
1550
+ width: var(--hc-avatar-size);
1551
+ height: var(--hc-avatar-size);
1552
+ object-fit: cover;
1553
+ }
1554
+ [data-hc-ds] .hc-ui-avatar[data-sized][data-shape='round'] { border-radius: 50%; }
1555
+ /* One-shot: the landscape proportion of the search (avatar width, height ÷ 1.42, proportional corners). */
1556
+ [data-hc-ds] .hc-ui-avatar[data-shape='card'] {
1557
+ height: auto;
1558
+ aspect-ratio: 1.42 / 1;
1559
+ border-radius: 13.6% / 19.4%;
1560
+ object-fit: cover;
1561
+ }
1562
+ /* Maps fill the square; terrain markers show whole, fitted by width or height. */
1563
+ [data-hc-ds] .hc-ui-avatar:is([data-shape='square'], [data-shape='square-fit']) {
1564
+ aspect-ratio: 1 / 1;
1565
+ border-radius: 21%;
1566
+ object-fit: cover;
1567
+ }
1568
+ [data-hc-ds] .hc-ui-avatar[data-shape='square-fit'] { object-fit: contain; background-color: var(--hc-color-bg-muted); }
1569
+ [data-hc-ds] .hc-ui-avatar[data-fallback] { background-color: var(--hc-color-bg-muted); }
1570
+
1571
+ /* CombatDialView — HCUI `.combat-dial`. `--hc-dial-bleed` (and `--hc-dial-bleed-end`)
1572
+ is the container's padding, so the tracks run to the panel's edge;
1573
+ `--hc-dial-surface` is the fill behind the sticky legend. */
1574
+ [data-hc-ds] .hc-ui-combat-dial,
1575
+ [data-hc-ds] .hc-ui-combat-dial * { font-variation-settings: 'ROND' var(--hc-rond); }
1576
+ [data-hc-ds] .hc-ui-combat-dial__header {
1577
+ display: flex;
1578
+ flex-direction: column;
1579
+ gap: var(--hc-space-3);
1580
+ }
1581
+ [data-hc-ds] .hc-ui-combat-dial__header-top {
1582
+ display: flex;
1583
+ align-items: center;
1584
+ justify-content: space-between;
1585
+ flex-wrap: wrap;
1586
+ gap: var(--hc-space-3);
1587
+ }
1588
+ /* HCUI's `eyebrow`. */
1589
+ [data-hc-ds] :is(.hc-ui-combat-dial__label, .hc-ui-combat-dial__status) {
1590
+ font-family: var(--hc-font-display);
1591
+ font-weight: 620;
1592
+ font-stretch: 125%;
1593
+ font-size: var(--hc-font-size-2xs);
1594
+ line-height: var(--hc-line-height-xs);
1595
+ letter-spacing: 0.07em;
1596
+ text-transform: uppercase;
1597
+ }
1598
+ [data-hc-ds] .hc-ui-combat-dial__label { color: var(--hc-color-text-muted); letter-spacing: var(--hc-letter-spacing-wide); }
1599
+ [data-hc-ds] .hc-ui-combat-dial__status {
1600
+ display: inline-flex;
1601
+ align-items: center;
1602
+ gap: var(--hc-space-2);
1603
+ font-weight: var(--hc-font-weight-semibold);
1604
+ color: var(--hc-color-text-secondary);
1605
+ }
1606
+ [data-hc-ds] .hc-ui-combat-dial__status-ko { color: var(--hc-color-danger); }
1607
+
1608
+ /* Point value chips, on one line that scrolls sideways. */
1609
+ [data-hc-ds] .hc-ui-combat-dial__points {
1610
+ display: flex;
1611
+ align-items: center;
1612
+ flex-wrap: nowrap;
1613
+ gap: var(--hc-space-2);
1614
+ margin-inline: calc(var(--hc-dial-bleed, 0px) * -1) calc(var(--hc-dial-bleed-end, var(--hc-dial-bleed, 0px)) * -1);
1615
+ padding: var(--hc-space-2) 0;
1616
+ /* Condensed as HCUI's numbers (its `__points` rule); the chips inherit it. */
1617
+ font-stretch: 86%;
1618
+ -webkit-overflow-scrolling: touch;
1619
+ }
1620
+ [data-hc-ds] .hc-ui-combat-dial__points > .hc-ui-combat-dial__chip:first-child { margin-left: var(--hc-dial-bleed, 0px); }
1621
+ [data-hc-ds] .hc-ui-combat-dial__points > .hc-ui-combat-dial__chip:last-child { margin-right: var(--hc-dial-bleed-end, var(--hc-dial-bleed, 0px)); }
1622
+ [data-hc-ds] .hc-ui-combat-dial__chip {
1623
+ appearance: none;
1624
+ position: relative;
1625
+ display: inline-flex;
1626
+ align-items: center;
1627
+ gap: var(--hc-space-2);
1628
+ min-height: var(--hc-control-height-chip);
1629
+ margin: 0;
1630
+ padding: 0 14px;
1631
+ border: none;
1632
+ border-radius: var(--hc-radius-full);
1633
+ background-color: var(--hc-color-bg-surface);
1634
+ color: var(--hc-color-text-primary);
1635
+ font: inherit;
1636
+ font-family: var(--hc-font-body);
1637
+ font-weight: var(--hc-font-weight-semibold);
1638
+ font-size: var(--hc-font-size-sm);
1639
+ font-variation-settings: 'ROND' var(--hc-rond);
1640
+ white-space: nowrap;
1641
+ box-shadow: inset 0 0 0 1px var(--hc-color-border-strong);
1642
+ cursor: pointer;
1643
+ -webkit-tap-highlight-color: transparent;
1644
+ touch-action: manipulation;
1645
+ transition-property: transform, background-color, box-shadow, color, opacity;
1646
+ transition-duration: var(--hc-dur-short);
1647
+ transition-timing-function: var(--hc-ease-standard);
1648
+ }
1649
+ /* HCUI's state layer: a veil of the text color on hover (with a mouse) and press. */
1650
+ [data-hc-ds] .hc-ui-combat-dial__chip::after {
1651
+ content: '';
1652
+ position: absolute;
1653
+ inset: 0;
1654
+ border-radius: inherit;
1655
+ background-color: currentColor;
1656
+ opacity: 0;
1657
+ pointer-events: none;
1658
+ transition: opacity var(--hc-dur-short) var(--hc-ease-standard);
1659
+ }
1660
+ @media (hover: hover) {
1661
+ [data-hc-ds] .hc-ui-combat-dial__chip:hover:not(:disabled)::after { opacity: 0.05; }
1662
+ }
1663
+ [data-hc-ds] .hc-ui-combat-dial__chip:active:not(:disabled)::after { opacity: 0.09; }
1664
+ [data-hc-ds] .hc-ui-combat-dial__chip:hover:not(:disabled) { background-color: var(--hc-color-bg-muted); }
1665
+ [data-hc-ds] .hc-ui-combat-dial__chip:active:not(:disabled) { transform: scale(0.97); }
1666
+ [data-hc-ds] .hc-ui-combat-dial__chip:disabled { cursor: default; opacity: 0.75; }
1667
+ [data-hc-ds] .hc-ui-combat-dial__chip[aria-pressed='true'] {
1668
+ background-color: var(--hc-color-bg-muted);
1669
+ box-shadow: inset 0 0 0 1.5px var(--hc-dial-chip-color, var(--hc-color-success));
1670
+ }
1671
+ [data-hc-ds] .hc-ui-combat-dial__chip-bar {
1672
+ display: inline-block;
1673
+ flex-shrink: 0;
1674
+ width: 2px;
1675
+ height: 16px;
1676
+ border-radius: var(--hc-radius-full);
1677
+ background-color: var(--hc-dial-chip-color, var(--hc-color-success));
1678
+ }
1679
+ [data-hc-ds] :is(.hc-ui-combat-dial__chip-value, .hc-ui-combat-dial__chip-clicks) { color: inherit; font-size: var(--hc-font-size-sm); }
1680
+ [data-hc-ds] .hc-ui-combat-dial__chip-clicks { opacity: 0.8; }
1681
+ [data-hc-ds] .hc-ui-combat-dial__chip[aria-pressed='true'] .hc-ui-combat-dial__chip-clicks { opacity: 0.92; }
1682
+ [data-hc-ds] .hc-ui-combat-dial__chip[aria-pressed='true'] .hc-ui-combat-dial__chip-value { color: var(--hc-color-text-primary); }
1683
+
1684
+ /* The dial track: one row that scrolls sideways (hidden scrollbar). */
1685
+ [data-hc-ds] .hc-ui-combat-dial__grid-wrap {
1686
+ position: relative;
1687
+ margin-inline: calc(var(--hc-dial-bleed, 0px) * -1) calc(var(--hc-dial-bleed-end, var(--hc-dial-bleed, 0px)) * -1);
1688
+ padding: var(--hc-space-4) 0;
1689
+ }
1690
+ [data-hc-ds] :is(.hc-ui-combat-dial__points, .hc-ui-combat-dial__grid-wrap) { overflow-x: auto; scrollbar-width: none; }
1691
+ [data-hc-ds] :is(.hc-ui-combat-dial__points, .hc-ui-combat-dial__grid-wrap)::-webkit-scrollbar { display: none; }
1692
+ /* With a mouse on HCUI's desktop (960px and up) the tracks show a thin 8px bar,
1693
+ whose thumb appears while the pointer is over the track or focus is inside it;
1694
+ the negative margin gives the bar's height back to the layout. */
1695
+ @media (min-width: 960px) and (hover: hover) and (forced-colors: none) {
1696
+ [data-hc-ds] :is(.hc-ui-combat-dial__points, .hc-ui-combat-dial__grid-wrap) {
1697
+ overflow: scroll hidden;
1698
+ margin-block-end: -8px;
1699
+ scrollbar-width: auto;
1700
+ }
1701
+ [data-hc-ds] :is(.hc-ui-combat-dial__points, .hc-ui-combat-dial__grid-wrap)::-webkit-scrollbar { display: block; width: 8px; height: 8px; }
1702
+ [data-hc-ds] :is(.hc-ui-combat-dial__points, .hc-ui-combat-dial__grid-wrap)::-webkit-scrollbar-track { margin: var(--hc-space-3); background: transparent; }
1703
+ [data-hc-ds] :is(.hc-ui-combat-dial__points, .hc-ui-combat-dial__grid-wrap)::-webkit-scrollbar-thumb {
1704
+ min-width: var(--hc-space-8);
1705
+ border: 2px solid transparent;
1706
+ border-radius: var(--hc-radius-full);
1707
+ background: transparent padding-box;
1708
+ }
1709
+ [data-hc-ds] :is(.hc-ui-combat-dial__points, .hc-ui-combat-dial__grid-wrap):is(:hover, :has(:focus-visible))::-webkit-scrollbar-thumb {
1710
+ background-color: color-mix(in srgb, var(--hc-color-text-primary) 26%, transparent);
1711
+ }
1712
+ [data-hc-ds] :is(.hc-ui-combat-dial__points, .hc-ui-combat-dial__grid-wrap)::-webkit-scrollbar-thumb:is(:hover, :active) {
1713
+ border-width: 1px;
1714
+ background-color: color-mix(in srgb, var(--hc-color-text-primary) 46%, transparent);
1715
+ }
1716
+ /* Without ::-webkit-scrollbar (Firefox) the system's thin bar takes no room to give back. */
1717
+ @supports not selector(::-webkit-scrollbar) {
1718
+ [data-hc-ds] :is(.hc-ui-combat-dial__points, .hc-ui-combat-dial__grid-wrap) {
1719
+ margin-block-end: 0;
1720
+ scrollbar-width: thin;
1721
+ scrollbar-color: transparent transparent;
1722
+ }
1723
+ [data-hc-ds] :is(.hc-ui-combat-dial__points, .hc-ui-combat-dial__grid-wrap):is(:hover, :has(:focus-visible)) {
1724
+ scrollbar-color: color-mix(in srgb, var(--hc-color-text-primary) 26%, transparent) transparent;
1725
+ }
1726
+ }
1727
+ }
1728
+ [data-hc-ds] .hc-ui-combat-dial__grid {
1729
+ display: flex;
1730
+ align-items: stretch;
1731
+ gap: 8px;
1732
+ min-width: max-content;
1733
+ padding-right: var(--hc-dial-bleed-end, var(--hc-dial-bleed, 0px));
1734
+ }
1735
+ [data-hc-ds] .hc-ui-combat-dial__col {
1736
+ position: relative;
1737
+ display: grid;
1738
+ grid-template-rows: repeat(5, 40px);
1739
+ gap: 8px;
1740
+ margin: 0;
1741
+ padding: 0;
1742
+ border: none;
1743
+ border-radius: 0;
1744
+ background: transparent;
1745
+ color: inherit;
1746
+ font: inherit;
1747
+ cursor: pointer;
1748
+ -webkit-tap-highlight-color: transparent;
1749
+ touch-action: manipulation;
1750
+ transition: transform var(--hc-transition-fast), box-shadow var(--hc-transition-fast);
1751
+ }
1752
+ /* The legend stays put and covers the bleed: nothing shows to its left. */
1753
+ [data-hc-ds] .hc-ui-combat-dial__col[data-kind='legend'] {
1754
+ position: sticky;
1755
+ left: 0;
1756
+ z-index: 4;
1757
+ padding-left: var(--hc-dial-bleed, 0px);
1758
+ padding-right: var(--hc-space-2);
1759
+ color: var(--hc-color-text-secondary);
1760
+ background: var(--hc-dial-surface, var(--hc-color-bg-surface));
1761
+ }
1762
+ [data-hc-ds] .hc-ui-combat-dial__col[data-kind='click']:hover { background-color: var(--hc-color-bg-muted-2); }
1763
+ /* Clicks outside the selected point value fade. */
1764
+ [data-hc-ds] .hc-ui-combat-dial__col[data-dimmed] { opacity: 0.32; filter: saturate(0.7); }
1765
+ /* Starting line: a colored bar at the left edge of the point value's first click. */
1766
+ [data-hc-ds] .hc-ui-combat-dial__col[data-start]::before {
1767
+ content: '';
1768
+ position: absolute;
1769
+ top: 48px;
1770
+ bottom: 0;
1771
+ left: -5px;
1772
+ width: 2px;
1773
+ border-radius: 2px;
1774
+ background-color: var(--hc-dial-start-color, var(--hc-color-success));
1775
+ }
1776
+ [data-hc-ds] .hc-ui-combat-dial__col[data-current] {
1777
+ background-color: var(--hc-color-bg-muted-2);
1778
+ box-shadow: inset 0 3px 0 0 var(--hc-color-accent);
1779
+ }
1780
+ [data-hc-ds] .hc-ui-combat-dial__col[data-kind='ko'] { color: var(--hc-color-danger); }
1781
+ [data-hc-ds] .hc-ui-combat-dial[data-static] .hc-ui-combat-dial__col[data-kind='click'] { cursor: default; }
1782
+ [data-hc-ds] .hc-ui-combat-dial__cell {
1783
+ appearance: none;
1784
+ display: flex;
1785
+ align-items: center;
1786
+ justify-content: center;
1787
+ width: 40px;
1788
+ height: 40px;
1789
+ margin: 0;
1790
+ padding: 0;
1791
+ border: none;
1792
+ border-radius: 2px;
1793
+ background: transparent;
1794
+ color: inherit;
1795
+ font: inherit;
1796
+ cursor: pointer;
1797
+ -webkit-tap-highlight-color: transparent;
1798
+ touch-action: manipulation;
1799
+ }
1800
+ [data-hc-ds] .hc-ui-combat-dial__cell:focus-visible {
1801
+ outline: 2px solid var(--hc-focus-ring);
1802
+ outline-offset: var(--hc-focus-ring-offset, 2px);
1803
+ }
1804
+ [data-hc-ds] .hc-ui-combat-dial__cell[data-round] { border-radius: 50%; }
1805
+ [data-hc-ds] .hc-ui-combat-dial__cell[data-kind='legend'] { color: var(--hc-color-text-secondary); }
1806
+ /* HCUI's `mono-value`. */
1807
+ [data-hc-ds] :is(.hc-ui-combat-dial__cell:is([data-kind='number'], [data-kind='value']), .hc-ui-combat-dial__range) {
1808
+ font-family: var(--hc-font-display);
1809
+ font-weight: 640;
1810
+ font-stretch: 86%;
1811
+ font-variant-numeric: tabular-nums;
1812
+ }
1813
+ [data-hc-ds] .hc-ui-combat-dial__cell[data-kind='number'] { font-size: var(--hc-font-size-sm); color: var(--hc-color-text-muted); }
1814
+ [data-hc-ds] .hc-ui-combat-dial__col[data-current] .hc-ui-combat-dial__cell[data-kind='number'] { color: var(--hc-color-text-primary); font-weight: var(--hc-font-weight-bold); }
1815
+ [data-hc-ds] .hc-ui-combat-dial__cell[data-kind='value'] {
1816
+ font-size: var(--hc-font-size-md);
1817
+ font-weight: var(--hc-font-weight-bold);
1818
+ color: var(--hc-color-text-primary);
1819
+ background-color: transparent;
1820
+ }
1821
+ /* Special powers: a dark outline, as on the printed card. The cell is the paper in
1822
+ both themes, so the fixed outline shows in light and dark. */
1823
+ [data-hc-ds] .hc-ui-combat-dial__cell[data-outlined] { box-shadow: inset 0 0 0 2px var(--hc-color-dial-outline); }
1824
+ [data-hc-ds] .hc-ui-combat-dial__cell[data-kind='ko'] {
1825
+ font-family: var(--hc-font-display);
1826
+ font-weight: 620;
1827
+ font-stretch: 125%;
1828
+ font-size: var(--hc-font-size-sm);
1829
+ line-height: var(--hc-line-height-xs);
1830
+ letter-spacing: 0.07em;
1831
+ text-transform: uppercase;
1832
+ color: var(--hc-color-danger);
1833
+ }
1834
+ /* Cells with a tip grow their hit area by half the gap on each side (about 48px),
1835
+ without changing their 40px look; neighbors split the gap. */
1836
+ [data-hc-ds] .hc-ui-combat-dial__cell[data-tip] { position: relative; cursor: pointer; }
1837
+ [data-hc-ds] .hc-ui-combat-dial__cell[data-tip]::after { content: ''; position: absolute; inset: -4px; }
1838
+ [data-hc-ds] .hc-ui-combat-dial__special-icon { width: 20px; height: 20px; object-fit: contain; }
1839
+ /* Range (number) and targets (bolts) in the top legend cell. */
1840
+ [data-hc-ds] .hc-ui-combat-dial__rangebox { flex-direction: column; gap: 1px; }
1841
+ [data-hc-ds] .hc-ui-combat-dial__range { font-size: var(--hc-font-size-md); line-height: 1; color: var(--hc-color-text-primary); }
1842
+ [data-hc-ds] .hc-ui-combat-dial__bolts { display: inline-flex; align-items: center; gap: 2px; }
1843
+ /* `max-width` lets the bolts squeeze into the printed card's 28px legend, as in HCUI. */
1844
+ [data-hc-ds] .hc-ui-combat-dial__bolt { width: auto; max-width: 100%; height: 16px; object-fit: contain; filter: var(--hc-filter-symbol-muted); }
1845
+
1846
+ /* `presentation="printed"`: the physical card's dial, at HCUnits' measures (20px
1847
+ cells, 23px between clicks, 24px between rows); the white legend sits on the
1848
+ card's dark window. Its numbers keep HCUI's `font` shorthand, without ROND. */
1849
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__grid-wrap {
1850
+ display: flex;
1851
+ flex-direction: column;
1852
+ gap: 4px;
1853
+ margin-block-end: 0;
1854
+ padding: 0;
1855
+ overflow: visible;
1856
+ }
1857
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__grid { gap: 3px; min-width: 0; }
1858
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__col { grid-template-rows: repeat(5, 20px); gap: 4px; }
1859
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__col[data-kind='click']:hover { background: none; }
1860
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__col[data-kind='legend'] {
1861
+ position: static;
1862
+ width: 28px;
1863
+ padding: 0;
1864
+ background: none;
1865
+ color: var(--hc-color-dial-legend-printed);
1866
+ }
1867
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__col[data-start]::before { top: 22px; bottom: -2px; left: -2px; width: 2px; border-radius: 0; }
1868
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__col[data-current] { background: none; box-shadow: none; }
1869
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__col[data-dimmed] { opacity: .45; filter: none; }
1870
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__cell { width: 20px; height: 20px; border-radius: 0; }
1871
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__cell[data-round] { border-radius: 50%; }
1872
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__col[data-kind='legend'] .hc-ui-combat-dial__cell { width: 28px; color: var(--hc-color-dial-legend-printed); }
1873
+ /* Condensed, so two digits fit the 20px cell; no tracking, so they stay centered. */
1874
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__cell[data-kind='value'] {
1875
+ font: 600 17px/1 var(--hc-font-body);
1876
+ font-stretch: 50%;
1877
+ letter-spacing: 0;
1878
+ font-variant-numeric: tabular-nums;
1879
+ }
1880
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__cell[data-outlined] { box-shadow: inset 0 0 0 2px var(--hc-color-dial-outline-printed); }
1881
+ /* Top numbers and KO in red with a paper outline, as on the card. */
1882
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__cell:is([data-kind='number'], [data-kind='ko']) {
1883
+ color: var(--hc-color-dial-number-printed);
1884
+ background: none;
1885
+ -webkit-text-stroke: 3px var(--hc-color-dial-paper);
1886
+ paint-order: stroke fill;
1887
+ font-family: var(--hc-font-body);
1888
+ font-stretch: 75%;
1889
+ }
1890
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__cell[data-kind='number'] { font-size: 16px; font-weight: 800; font-stretch: 62%; letter-spacing: 0; }
1891
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__cell[data-kind='ko'] { font-size: 15px; font-weight: 800; letter-spacing: -1px; text-transform: uppercase; }
1892
+ /* Only play marks the click: a red circle over the number, like a pen on the card. */
1893
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__col[data-current] .hc-ui-combat-dial__cell[data-kind='number'] {
1894
+ color: var(--hc-color-dial-number-printed);
1895
+ background: var(--hc-color-dial-paper);
1896
+ -webkit-text-stroke: 0;
1897
+ border-radius: 50%;
1898
+ box-shadow: 0 0 0 2px var(--hc-color-dial-number-printed);
1899
+ }
1900
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__cell[data-tip]::after { inset: -2px -1.5px; }
1901
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__rangebox { flex-direction: row; gap: 0; align-items: center; }
1902
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__range { margin-right: 2px; color: var(--hc-color-dial-legend-printed); font: 300 14px/1 var(--hc-font-body); }
1903
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__bolt { height: 14px; margin-right: -1px; filter: var(--hc-filter-symbol-light); }
1904
+ /* The legend symbols are 18px tall at their own width, at most 26px, and white. */
1905
+ [data-hc-ds] .hc-ui-combat-dial[data-presentation='printed'] .hc-ui-combat-dial__col[data-kind='legend'] .hc-ui-stat-glyph {
1906
+ width: auto;
1907
+ max-width: 26px;
1908
+ height: 18px;
1909
+ filter: var(--hc-filter-symbol-light);
1910
+ }
1911
+
1912
+ @media (prefers-reduced-motion: reduce) {
1913
+ [data-hc-ds] :is(.hc-ui-combat-dial__chip, .hc-ui-combat-dial__chip::after, .hc-ui-combat-dial__col) { transition: none; }
1914
+ [data-hc-ds] .hc-ui-combat-dial__chip:active:not(:disabled) { transform: none; }
1915
+ }
1916
+
1917
+ /* PhysicalCardView — HCUI `.physical-cards`: the printed card in HCUnits' format,
1918
+ 375×525 px with absolute positions, scaled to the panel's width. HCUI's fonts
1919
+ (Google Sans Flex, condensed in the titles) with the original card's sizes and
1920
+ positions. The paper and ink follow the theme (`color-card-*`, `filter-card-*`,
1921
+ `blend-card-*`, `opacity-card-*`); seals, dial cells and symbols keep their
1922
+ official colors; the black and white printed parts are the same in both themes. */
1923
+ [data-hc-ds] .hc-ui-physical-cards {
1924
+ display: flex;
1925
+ flex-wrap: wrap;
1926
+ justify-content: center;
1927
+ gap: 16px;
1928
+ width: 100%;
1929
+ min-width: 0;
1930
+ grid-column: 1 / -1;
1931
+ }
1932
+ /* HCUI's global rules the card counts on, inside the card only and at zero
1933
+ specificity: border-box, block images and SVGs that never pass their box, no
1934
+ heading or paragraph margin, words that break only when they overflow, the
1935
+ slightly condensed titles. Upright letters, as on the printed card: the card
1936
+ sets `--hc-rond` to 0, so the printed dial inside reads it too. */
1937
+ [data-hc-ds] :is(.hc-ui-physical-cards, .hc-ui-card-focus),
1938
+ [data-hc-ds] :is(.hc-ui-physical-cards, .hc-ui-card-focus) *,
1939
+ [data-hc-ds] :is(.hc-ui-physical-cards, .hc-ui-card-focus) *::before,
1940
+ [data-hc-ds] :is(.hc-ui-physical-cards, .hc-ui-card-focus) *::after { box-sizing: border-box; }
1941
+ :where([data-hc-ds] .hc-ui-physical-card) :is(img, svg) { display: block; max-width: 100%; }
1942
+ :where([data-hc-ds] .hc-ui-physical-card) :is(h2, h3, p) { margin: 0; }
1943
+ :where([data-hc-ds] .hc-ui-physical-card) :is(p, span, h2, h3) { overflow-wrap: break-word; }
1944
+ :where([data-hc-ds] .hc-ui-physical-card) :is(h2, h3, .hc-ui-physical-card__title, .hc-ui-physical-card__bystander-name) { font-stretch: 92%; }
1945
+ [data-hc-ds] .hc-ui-physical-card { --hc-rond: 0; }
1946
+ [data-hc-ds] .hc-ui-physical-card,
1947
+ [data-hc-ds] .hc-ui-physical-card * { font-variation-settings: 'ROND' var(--hc-rond); }
1948
+
1949
+ [data-hc-ds] .hc-ui-physical-card-slot {
1950
+ flex: none;
1951
+ width: calc(var(--hc-card-width) * var(--hc-card-scale));
1952
+ height: calc(var(--hc-card-height) * var(--hc-card-scale));
1953
+ }
1954
+ [data-hc-ds] .hc-ui-physical-card-tilt { width: 100%; height: 100%; }
1955
+ [data-hc-ds] .hc-ui-physical-card {
1956
+ position: relative;
1957
+ width: var(--hc-card-width);
1958
+ height: var(--hc-card-height);
1959
+ overflow: hidden;
1960
+ transform: scale(var(--hc-card-scale));
1961
+ transform-origin: top left;
1962
+ border-radius: 15px;
1963
+ background: var(--hc-color-card-paper);
1964
+ box-shadow: var(--hc-color-card-edge) 0 0 2px;
1965
+ color: var(--hc-color-card-ink);
1966
+ font-family: var(--hc-font-body);
1967
+ text-align: left;
1968
+ user-select: text;
1969
+ }
1970
+ [data-hc-ds] .hc-ui-physical-card img { user-select: none; }
1971
+ /* Paper grain: gray noise in tiles, static, no blur. Under the dial (z-index 2),
1972
+ so the official cell colors do not change. The SVG namespace is percent-encoded:
1973
+ the package source carries no web address. */
1974
+ [data-hc-ds] .hc-ui-physical-card::after {
1975
+ content: '';
1976
+ position: absolute;
1977
+ inset: 0;
1978
+ z-index: 1;
1979
+ pointer-events: none;
1980
+ background: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 200px 200px;
1981
+ opacity: var(--hc-opacity-card-grain);
1982
+ mix-blend-mode: var(--hc-blend-card-grain);
1983
+ }
1984
+ /* The backgrounds come from the app, as gray images: the filter takes them to the
1985
+ paper's tone in each theme, with no seam where the image ends. */
1986
+ [data-hc-ds] :is(.hc-ui-physical-card__bg, .hc-ui-physical-card__legacy, .hc-ui-physical-card__rarity, .hc-ui-physical-card__dial-bg) { position: absolute; left: 0; pointer-events: none; }
1987
+ [data-hc-ds] .hc-ui-physical-card__bg[data-side='front'] { top: 0; width: 375px; filter: var(--hc-filter-card-background); }
1988
+ [data-hc-ds] .hc-ui-physical-card__bg[data-side='back'] { bottom: 75px; width: 375px; filter: var(--hc-filter-card-background); }
1989
+ [data-hc-ds] .hc-ui-physical-card__legacy { top: 0; width: 375px; opacity: 0.2; filter: saturate(0.6); }
1990
+ [data-hc-ds] .hc-ui-physical-card__rarity { left: auto; right: 0; top: 0; width: 80px; }
1991
+ [data-hc-ds] .hc-ui-physical-card__dial-bg { bottom: 0; width: 100%; filter: var(--hc-filter-card-background); }
1992
+ [data-hc-ds] .hc-ui-physical-card__team-up { position: absolute; inset: 0 0 auto; height: 70px; background: var(--hc-color-card-team-up); }
1993
+
1994
+ /* Header: name and team abilities, with the keywords or the object's type below. */
1995
+ [data-hc-ds] .hc-ui-physical-card__header { position: absolute; left: 10px; top: 2px; width: 305px; }
1996
+ [data-hc-ds] .hc-ui-physical-card__header[data-team-up] { --hc-color-card-ink: var(--hc-color-card-print-white); }
1997
+ [data-hc-ds] .hc-ui-physical-card__title { display: flex; align-items: center; height: 30px; overflow: hidden; white-space: nowrap; color: var(--hc-color-card-ink); }
1998
+ [data-hc-ds] .hc-ui-physical-card h2 {
1999
+ margin: 0 5px 0 0;
2000
+ font-family: var(--hc-font-display);
2001
+ font-weight: 900;
2002
+ font-stretch: 40%;
2003
+ font-size: 24px;
2004
+ line-height: 1;
2005
+ letter-spacing: 0.2px;
2006
+ color: inherit;
2007
+ white-space: nowrap;
2008
+ }
2009
+ [data-hc-ds] .hc-ui-physical-card__ability {
2010
+ appearance: none;
2011
+ position: relative;
2012
+ display: grid;
2013
+ place-items: center;
2014
+ flex: none;
2015
+ width: 20px;
2016
+ height: 20px;
2017
+ margin: 0 0 0 1px;
2018
+ padding: 0;
2019
+ border: none;
2020
+ border-radius: 50%;
2021
+ background: var(--hc-color-card-print-black);
2022
+ color: var(--hc-color-card-print-white);
2023
+ font: inherit;
2024
+ cursor: pointer;
2025
+ -webkit-tap-highlight-color: transparent;
2026
+ touch-action: manipulation;
2027
+ }
2028
+ /* A hit area larger than the 20px symbol. */
2029
+ [data-hc-ds] .hc-ui-physical-card__ability::after { content: ''; position: absolute; inset: -6px -1px; }
2030
+ [data-hc-ds] .hc-ui-physical-card__ability img { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; }
2031
+ [data-hc-ds] .hc-ui-physical-card__gear { width: 20px; height: 20px; margin-left: 1px; }
2032
+ [data-hc-ds] .hc-ui-physical-card__header-line {
2033
+ position: absolute;
2034
+ top: 26px;
2035
+ left: 0;
2036
+ display: flex;
2037
+ align-items: center;
2038
+ width: 305px;
2039
+ height: 32px;
2040
+ margin: 0;
2041
+ color: var(--hc-color-card-ink);
2042
+ line-height: 1;
2043
+ /* Slanted by the font's axis: less than the italic the browser would fake. */
2044
+ font-variation-settings: 'ROND' var(--hc-rond), 'slnt' -7;
2045
+ font-weight: 600;
2046
+ }
2047
+ [data-hc-ds] .hc-ui-physical-card__header-line[data-kind='keywords'] { font-size: 12px; font-weight: 500; font-stretch: 80%; }
2048
+ [data-hc-ds] .hc-ui-physical-card__header-line[data-kind='type'] { font-size: 16px; font-stretch: 70%; }
2049
+
2050
+ /* Collection number and set symbol over the rarity seal. */
2051
+ [data-hc-ds] .hc-ui-physical-card__collection {
2052
+ position: absolute;
2053
+ top: 15px;
2054
+ right: 3px;
2055
+ width: 65px;
2056
+ display: flex;
2057
+ flex-direction: column;
2058
+ align-items: center;
2059
+ }
2060
+ [data-hc-ds] .hc-ui-physical-card__collection strong {
2061
+ font: 800 20px/1 var(--hc-font-display);
2062
+ font-stretch: 62%;
2063
+ min-height: 19px;
2064
+ color: var(--hc-color-card-print-white);
2065
+ -webkit-text-stroke: 3px var(--hc-color-card-print-black);
2066
+ paint-order: stroke fill;
2067
+ }
2068
+ [data-hc-ds] .hc-ui-physical-card__set { width: 34px; height: 34px; object-fit: contain; }
2069
+ [data-hc-ds] .hc-ui-physical-card__dimensions {
2070
+ position: absolute;
2071
+ top: 85px;
2072
+ right: 5px;
2073
+ display: grid;
2074
+ place-items: center;
2075
+ width: 20px;
2076
+ height: 20px;
2077
+ border-radius: 10px;
2078
+ background: var(--hc-color-card-print-black);
2079
+ color: var(--hc-color-card-print-white);
2080
+ font-size: 11px;
2081
+ }
2082
+ [data-hc-ds] .hc-ui-physical-card__dimensions[data-oval] { width: 28px; height: 18px; border-radius: 9px; }
2083
+
2084
+ /* Text columns: the front (its height follows the dial) and the back's two. */
2085
+ [data-hc-ds] .hc-ui-physical-card__table {
2086
+ position: absolute;
2087
+ overflow: hidden;
2088
+ font-size: 13px;
2089
+ line-height: 1.4;
2090
+ color: var(--hc-color-card-ink-soft);
2091
+ }
2092
+ [data-hc-ds] .hc-ui-physical-card__table[data-column='front'] { left: 5px; right: 5px; top: 75px; height: var(--hc-card-front-table-height); }
2093
+ [data-hc-ds] .hc-ui-physical-card__table:is([data-column='left'], [data-column='right']) { top: 10px; width: 49%; height: var(--hc-card-back-table-height); }
2094
+ [data-hc-ds] .hc-ui-physical-card__table[data-column='left'] { left: 5px; }
2095
+ [data-hc-ds] .hc-ui-physical-card__table[data-column='right'] { right: 3px; }
2096
+
2097
+ /* The portrait (the app's image, with this class) or the object's token. */
2098
+ [data-hc-ds] .hc-ui-physical-card__token {
2099
+ float: right;
2100
+ display: block;
2101
+ width: 150px;
2102
+ height: 150px;
2103
+ margin: 10px 0 5px 5px;
2104
+ shape-outside: circle();
2105
+ border-radius: 50%;
2106
+ object-fit: cover;
2107
+ overflow: hidden;
2108
+ background: var(--hc-color-card-token-placeholder);
2109
+ }
2110
+ [data-hc-ds] .hc-ui-physical-card__table[data-small-token] .hc-ui-physical-card__token { width: 134px; height: 134px; }
2111
+ [data-hc-ds] .hc-ui-physical-card__token img { width: 100%; height: 100%; object-fit: cover; }
2112
+ /* Objects: a ring in the color of the object's size. */
2113
+ [data-hc-ds] .hc-ui-physical-card__token[data-object] img { border-radius: 50%; outline: 8px solid var(--hc-card-object-color, transparent); outline-offset: -8px; }
2114
+
2115
+ /* Bystander: a replica of the 195px physical token (HCUnits' `largeCardBystander*`
2116
+ and `smallCard*`). The token has its own colors and does not follow the theme. */
2117
+ [data-hc-ds] .hc-ui-physical-card__bystander { display: flex; justify-content: center; }
2118
+ [data-hc-ds] .hc-ui-physical-card__bystander-token { position: relative; flex: none; width: 195px; height: 195px; color: var(--hc-color-card-print-white); }
2119
+ [data-hc-ds] .hc-ui-physical-card__bystander-clip { position: relative; width: 195px; height: 195px; border-radius: 50%; overflow: hidden; }
2120
+ [data-hc-ds] .hc-ui-physical-card__bystander-art {
2121
+ position: absolute;
2122
+ inset: 0;
2123
+ border: 7px solid var(--hc-color-card-print-black);
2124
+ border-radius: 50%;
2125
+ background: var(--hc-color-card-print-black);
2126
+ overflow: hidden;
2127
+ }
2128
+ /* The art's window: a gray cut-out to the right of the dial's stripe. */
2129
+ [data-hc-ds] .hc-ui-physical-card__bystander-window {
2130
+ position: absolute;
2131
+ left: 30px;
2132
+ top: 40px;
2133
+ right: 0;
2134
+ bottom: 16px;
2135
+ background: var(--hc-color-card-token-placeholder);
2136
+ overflow: hidden;
2137
+ }
2138
+ [data-hc-ds] .hc-ui-physical-card__bystander-window img { position: absolute; left: -35px; top: -45px; width: 195px; max-width: none; height: 195px; }
2139
+ [data-hc-ds] .hc-ui-physical-card__bystander-stripe {
2140
+ position: absolute;
2141
+ left: 23px;
2142
+ top: 46px;
2143
+ width: 72px;
2144
+ height: 126px;
2145
+ border: 5px solid var(--hc-color-card-print-black);
2146
+ border-left: 0;
2147
+ border-radius: 0 15px 20px 0;
2148
+ background: var(--hc-color-card-print-white);
2149
+ transform: skew(15deg);
2150
+ }
2151
+ [data-hc-ds] .hc-ui-physical-card__bystander-symbols { position: absolute; left: 7px; top: 47px; }
2152
+ [data-hc-ds] .hc-ui-physical-card__bystander-tab {
2153
+ position: absolute;
2154
+ top: 0;
2155
+ height: 24px;
2156
+ border-radius: 0 10px 12px 0 / 0 12px 12px 0;
2157
+ background: var(--hc-color-card-print-black);
2158
+ }
2159
+ [data-hc-ds] .hc-ui-physical-card__bystander-tab img { position: absolute; right: 7px; top: 2px; width: 18px; height: 18px; filter: var(--hc-filter-symbol-light); }
2160
+ [data-hc-ds] .hc-ui-physical-card__bystander-tab[data-stat='range'] { width: 73px; }
2161
+ [data-hc-ds] .hc-ui-physical-card__bystander-tab[data-stat='speed'] { width: 35px; top: 24px; }
2162
+ [data-hc-ds] .hc-ui-physical-card__bystander-tab[data-stat='attack'] { width: 43px; top: 48px; }
2163
+ [data-hc-ds] .hc-ui-physical-card__bystander-tab[data-stat='defense'] { width: 51px; top: 72px; }
2164
+ [data-hc-ds] .hc-ui-physical-card__bystander-tab[data-stat='damage'] { width: 59px; top: 96px; }
2165
+ [data-hc-ds] .hc-ui-physical-card__bystander-tab[data-stat='range'] span { position: absolute; right: 58px; top: 4px; font: 300 11px/1.2 var(--hc-font-body); }
2166
+ [data-hc-ds] .hc-ui-physical-card__bystander-tab[data-stat='range'] img.hc-ui-physical-card__bystander-bolt { right: auto; top: 6px; width: 6px; height: 12px; }
2167
+ [data-hc-ds] .hc-ui-physical-card__bystander-name {
2168
+ position: absolute;
2169
+ left: 45px;
2170
+ top: 2px;
2171
+ display: flex;
2172
+ align-items: center;
2173
+ justify-content: center;
2174
+ width: 105px;
2175
+ height: 45px;
2176
+ font: 500 13px/1 var(--hc-font-body);
2177
+ font-stretch: 80%;
2178
+ text-align: center;
2179
+ }
2180
+ [data-hc-ds] .hc-ui-physical-card__bystander-abilities {
2181
+ position: absolute;
2182
+ top: 50px;
2183
+ left: 30px;
2184
+ display: flex;
2185
+ align-items: center;
2186
+ justify-content: flex-end;
2187
+ gap: 2px;
2188
+ width: 48px;
2189
+ height: 20px;
2190
+ }
2191
+ [data-hc-ds] .hc-ui-physical-card__bystander-abilities .hc-ui-physical-card__ability { width: 14px; height: 14px; margin: 0; background: none; }
2192
+ [data-hc-ds] .hc-ui-physical-card__bystander-abilities .hc-ui-physical-card__ability img { top: 0; left: 0; width: 14px; height: 14px; }
2193
+ [data-hc-ds] .hc-ui-physical-card__bystander-abilities .hc-ui-physical-card__ability svg { display: none; }
2194
+ [data-hc-ds] .hc-ui-physical-card__bystander-trait { width: 18px; height: 18px; margin-top: -3px; filter: var(--hc-filter-symbol-light); }
2195
+ [data-hc-ds] .hc-ui-physical-card__bystander-extra {
2196
+ position: absolute;
2197
+ left: 80px;
2198
+ bottom: 2px;
2199
+ display: flex;
2200
+ align-items: center;
2201
+ justify-content: center;
2202
+ width: 40px;
2203
+ font: 500 14px/1 var(--hc-font-body);
2204
+ }
2205
+ [data-hc-ds] .hc-ui-physical-card__bystander-extra img { width: 20px; height: 20px; filter: var(--hc-filter-symbol-light); }
2206
+ [data-hc-ds] .hc-ui-physical-card__bystander-extra[data-kind='passengers'] img { width: auto; height: auto; margin-right: 5px; }
2207
+ [data-hc-ds] .hc-ui-physical-card__bystander-extra[data-kind='construct'] img { width: 18px; height: auto; }
2208
+ [data-hc-ds] .hc-ui-physical-card__bystander-improved { position: absolute; left: 97px; top: 97px; }
2209
+ [data-hc-ds] .hc-ui-physical-card__bystander-improved > :is(img, button) { position: absolute; width: 18px; height: 18px; }
2210
+ [data-hc-ds] .hc-ui-physical-card__bystander-improved-ability {
2211
+ appearance: none;
2212
+ margin: 0;
2213
+ padding: 0;
2214
+ border: none;
2215
+ border-radius: 50%;
2216
+ background: transparent;
2217
+ color: inherit;
2218
+ font: inherit;
2219
+ cursor: pointer;
2220
+ -webkit-tap-highlight-color: transparent;
2221
+ touch-action: manipulation;
2222
+ }
2223
+ [data-hc-ds] .hc-ui-physical-card__bystander-improved-ability img { display: block; width: 18px; height: 18px; }
2224
+ [data-hc-ds] .hc-ui-physical-card__bystander-dial { position: absolute; left: 48px; top: 72px; }
2225
+ [data-hc-ds] .hc-ui-physical-card__bystander-value {
2226
+ position: absolute;
2227
+ display: flex;
2228
+ align-items: center;
2229
+ justify-content: center;
2230
+ box-sizing: border-box;
2231
+ width: 18px;
2232
+ height: 18px;
2233
+ margin: 2px;
2234
+ padding: 0;
2235
+ /* Without a power color the cell is the white stripe itself (dark theme too). */
2236
+ background-color: var(--hc-color-dial-paper);
2237
+ color: var(--hc-color-card-print-black);
2238
+ /* The card's dial, in proportion to the 18px cell. */
2239
+ font: 600 16px/1 var(--hc-font-body);
2240
+ font-stretch: 50%;
2241
+ letter-spacing: 0;
2242
+ font-variant-numeric: tabular-nums;
2243
+ }
2244
+ [data-hc-ds] .hc-ui-physical-card__bystander-value[data-special] { box-shadow: inset 0 0 0 2px var(--hc-color-dial-outline-printed); }
2245
+ [data-hc-ds] .hc-ui-physical-card__bystander-value[data-tip] {
2246
+ appearance: none;
2247
+ border: none;
2248
+ cursor: pointer;
2249
+ -webkit-tap-highlight-color: transparent;
2250
+ touch-action: manipulation;
2251
+ }
2252
+ /* A hit area larger than the 18px square. */
2253
+ [data-hc-ds] .hc-ui-physical-card__bystander-value[data-tip]::after { content: ''; position: absolute; inset: -3px; }
2254
+ [data-hc-ds] :is(.hc-ui-physical-card__ability, .hc-ui-physical-card__bystander-improved-ability, .hc-ui-physical-card__bystander-value[data-tip], .hc-ui-physical-card__improved, .hc-ui-physical-card__point):focus-visible {
2255
+ outline: 2px solid var(--hc-focus-ring);
2256
+ outline-offset: var(--hc-focus-ring-offset, 2px);
2257
+ }
2258
+
2259
+ [data-hc-ds] .hc-ui-physical-card__terrain-art { display: block; max-width: min(360px, 100%); max-height: 335px; margin: 5px auto 0; }
2260
+
2261
+ /* Rules: tapping the paragraph copies it (`onCopy`). */
2262
+ [data-hc-ds] .hc-ui-physical-card__rule { overflow-wrap: anywhere; }
2263
+ [data-hc-ds] .hc-ui-physical-card__rule h3 {
2264
+ display: flex;
2265
+ align-items: center;
2266
+ gap: 3px;
2267
+ min-height: 22px;
2268
+ margin: 0 0 1px;
2269
+ font: 700 16px/1.1 var(--hc-font-display);
2270
+ font-stretch: 65%;
2271
+ text-transform: uppercase;
2272
+ color: var(--hc-color-card-ink);
2273
+ }
2274
+ /* As in HCUI's detailed view: without the icon's square border; the symbol's own
2275
+ white circle is the ring, as on HCUnits. */
2276
+ [data-hc-ds] .hc-ui-physical-card__rule h3 .hc-ui-special-icon { flex: none; border: none; }
2277
+ [data-hc-ds] .hc-ui-physical-card__rule h3 .hc-ui-special-icon__bg { box-shadow: none; }
2278
+ [data-hc-ds] .hc-ui-physical-card__rule p { margin: 0 0 2px 5px; white-space: pre-line; }
2279
+ /* HCUI's `.copyable`: no selection, a quick fade while pressed. */
2280
+ [data-hc-ds] .hc-ui-physical-card__copy {
2281
+ cursor: pointer;
2282
+ -webkit-user-select: none;
2283
+ user-select: none;
2284
+ -webkit-tap-highlight-color: transparent;
2285
+ transition: opacity var(--hc-transition-fast);
2286
+ }
2287
+ [data-hc-ds] .hc-ui-physical-card__copy:active { opacity: 0.6; }
2288
+ [data-hc-ds] .hc-ui-physical-card__keyphrase { min-height: 22px; display: flex; align-items: center; font: 700 16px/1.1 var(--hc-font-display); font-stretch: 75%; color: var(--hc-color-card-ink); }
2289
+ [data-hc-ds] .hc-ui-physical-card__relic { margin: 0; }
2290
+
2291
+ /* Improved abilities right above the dial's window. */
2292
+ [data-hc-ds] .hc-ui-physical-card__improved-row { position: absolute; left: 18px; display: flex; gap: 2px; }
2293
+ [data-hc-ds] .hc-ui-physical-card__improved-group { display: contents; }
2294
+ [data-hc-ds] :is(.hc-ui-physical-card__improved-kind, .hc-ui-physical-card__improved) {
2295
+ width: 30px;
2296
+ height: 30px;
2297
+ border-radius: 50%;
2298
+ box-shadow: 0 0 6px 2px var(--hc-color-card-print-white);
2299
+ margin-right: 2px;
2300
+ }
2301
+ [data-hc-ds] .hc-ui-physical-card__improved {
2302
+ appearance: none;
2303
+ margin: 0;
2304
+ padding: 0;
2305
+ border: none;
2306
+ background: transparent;
2307
+ color: inherit;
2308
+ font: inherit;
2309
+ cursor: pointer;
2310
+ -webkit-tap-highlight-color: transparent;
2311
+ touch-action: manipulation;
2312
+ }
2313
+ [data-hc-ds] .hc-ui-physical-card__improved img { display: block; width: 30px; height: 30px; }
2314
+
2315
+ /* Above the shine: the cell colors do not change on hover. */
2316
+ [data-hc-ds] .hc-ui-physical-card__dial { position: absolute; left: 10px; bottom: 10px; z-index: 2; }
2317
+ [data-hc-ds] .hc-ui-physical-card__shine { display: none; }
2318
+
2319
+ /* Points on the black bar right of the dial; pressing one changes the point value. */
2320
+ [data-hc-ds] .hc-ui-physical-card__points {
2321
+ position: absolute;
2322
+ right: 15px;
2323
+ display: flex;
2324
+ flex-direction: column;
2325
+ align-items: flex-end;
2326
+ font-stretch: 86%;
2327
+ }
2328
+ [data-hc-ds] .hc-ui-physical-card__points[data-table='normal'] { top: 386px; }
2329
+ [data-hc-ds] .hc-ui-physical-card__points[data-table='long'] { top: 266px; }
2330
+ [data-hc-ds] .hc-ui-physical-card__points[data-table='short'] { bottom: 35px; }
2331
+ [data-hc-ds] .hc-ui-physical-card__point {
2332
+ appearance: none;
2333
+ margin: 0;
2334
+ padding: 0;
2335
+ border: none;
2336
+ background: transparent;
2337
+ color: inherit;
2338
+ font: 600 18px/23px var(--hc-font-display);
2339
+ font-stretch: 75%;
2340
+ font-variant-numeric: tabular-nums;
2341
+ text-align: right;
2342
+ cursor: pointer;
2343
+ -webkit-tap-highlight-color: transparent;
2344
+ touch-action: manipulation;
2345
+ }
2346
+ [data-hc-ds] .hc-ui-physical-card__point:disabled { cursor: default; opacity: 1; }
2347
+ [data-hc-ds] .hc-ui-physical-card__point[data-active] { text-decoration: underline 2px; text-underline-offset: 3px; }
2348
+ [data-hc-ds] .hc-ui-physical-card__object-points {
2349
+ position: absolute;
2350
+ left: 15px;
2351
+ bottom: 10px;
2352
+ font: 20px var(--hc-font-mono);
2353
+ color: var(--hc-color-card-print-white);
2354
+ text-shadow: -1px -1px 0 var(--hc-color-card-print-black), 1px -1px 0 var(--hc-color-card-print-black), -1px 1px 0 var(--hc-color-card-print-black), 1px 1px 0 var(--hc-color-card-print-black);
2355
+ }
2356
+
2357
+ [data-hc-ds] .hc-ui-physical-card__terrain-dial {
2358
+ position: absolute;
2359
+ bottom: 0;
2360
+ left: 94px;
2361
+ display: grid;
2362
+ grid-template-columns: repeat(3, 62px);
2363
+ grid-template-rows: 43px 30px;
2364
+ width: 188px;
2365
+ height: 80px;
2366
+ border-radius: 40px 40px 0 0;
2367
+ background: linear-gradient(to right, var(--hc-color-card-terrain-panel), var(--hc-color-card-terrain-panel) 28%, var(--hc-color-card-terrain-panel-groove) 31%, var(--hc-color-card-terrain-panel) 37%, var(--hc-color-card-terrain-panel) 65%, var(--hc-color-card-terrain-panel-groove) 68%, var(--hc-color-card-terrain-panel) 74%);
2368
+ color: var(--hc-color-card-print-black);
2369
+ text-align: center;
2370
+ }
2371
+ [data-hc-ds] .hc-ui-physical-card__terrain-dial span { align-self: end; font: 700 24px/1 var(--hc-font-display); }
2372
+ [data-hc-ds] .hc-ui-physical-card__terrain-dial img { height: 22px; vertical-align: middle; }
2373
+ [data-hc-ds] .hc-ui-physical-card__terrain-dial b { font: 700 24px/30px var(--hc-font-display); font-stretch: 75%; letter-spacing: -1px; }
2374
+
2375
+ [data-hc-ds] .hc-ui-physical-card__back-bar {
2376
+ position: absolute;
2377
+ left: 0;
2378
+ bottom: 0;
2379
+ width: 375px;
2380
+ height: 75px;
2381
+ padding: 10px 10px 0;
2382
+ background: var(--hc-color-card-print-black);
2383
+ color: var(--hc-color-card-print-white);
2384
+ font-size: 12px;
2385
+ line-height: 19px;
2386
+ }
2387
+ [data-hc-ds] .hc-ui-physical-card__back-bar p { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
2388
+ [data-hc-ds] .hc-ui-physical-card__back-bar b { font-size: 10px; font-weight: 700; }
2389
+
2390
+ /* 3D effect: by the mouse on the desktop and by the motion sensor only in the
2391
+ phone's focus view. Without a mouse over the card or a sensor reading there is
2392
+ no transform here; `[data-tilt]` is set by the view while it moves. */
2393
+ @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
2394
+ [data-hc-ds] .hc-ui-physical-card-tilt { transition: transform 0.18s ease-out; }
2395
+ [data-hc-ds] .hc-ui-physical-card { transition: box-shadow 0.18s ease-out; }
2396
+ [data-hc-ds] :is(.hc-ui-physical-card__token, .hc-ui-physical-card__terrain-art, .hc-ui-physical-card__bystander-token, .hc-ui-physical-card__header) { transition: translate 0.18s ease-out; }
2397
+ [data-hc-ds] .hc-ui-physical-card__shine {
2398
+ display: block;
2399
+ position: absolute;
2400
+ inset: 0;
2401
+ z-index: 1;
2402
+ opacity: 0;
2403
+ pointer-events: none;
2404
+ background: radial-gradient(circle at var(--hc-card-shine-at, 50% 50%), var(--hc-color-card-shine), transparent 60%);
2405
+ mix-blend-mode: var(--hc-blend-card-shine);
2406
+ transition: opacity 0.18s ease-out;
2407
+ }
2408
+ [data-hc-ds] .hc-ui-physical-card-slot[data-tilt] .hc-ui-physical-card { box-shadow: var(--hc-color-card-edge) 0 0 2px, var(--hc-color-card-lift) 0 14px 28px -10px; }
2409
+ [data-hc-ds] .hc-ui-physical-card-slot[data-tilt] .hc-ui-physical-card__shine { opacity: 1; }
2410
+ /* The front column lets the portrait pass the edge a little instead of cutting it. */
2411
+ [data-hc-ds] .hc-ui-physical-card-slot[data-tilt] .hc-ui-physical-card__table[data-column='front'] { overflow: clip; overflow-clip-margin: 5px; }
2412
+ }
2413
+ @media (hover: none) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
2414
+ [data-hc-ds] .hc-ui-physical-cards[data-focus] .hc-ui-physical-card__shine {
2415
+ display: block;
2416
+ position: absolute;
2417
+ inset: 0;
2418
+ z-index: 1;
2419
+ opacity: 0;
2420
+ pointer-events: none;
2421
+ background: radial-gradient(circle at var(--hc-card-shine-at, 50% 50%), var(--hc-color-card-shine), transparent 60%);
2422
+ mix-blend-mode: var(--hc-blend-card-shine);
2423
+ transition: opacity 0.18s ease-out;
2424
+ }
2425
+ /* The sensor is already smoothed and updates every frame: no transition. */
2426
+ [data-hc-ds] .hc-ui-physical-cards[data-focus][data-tilt] .hc-ui-physical-card { box-shadow: var(--hc-color-card-edge) 0 0 2px, var(--hc-color-card-lift) 0 14px 28px -10px; }
2427
+ [data-hc-ds] .hc-ui-physical-cards[data-focus][data-tilt] .hc-ui-physical-card__shine { opacity: 1; }
2428
+ [data-hc-ds] .hc-ui-physical-cards[data-focus][data-tilt] .hc-ui-physical-card__table[data-column='front'] { overflow: clip; overflow-clip-margin: 5px; }
2429
+ [data-hc-ds] .hc-ui-physical-cards[data-focus][data-tilt] .hc-ui-physical-card-tilt { will-change: transform; }
2430
+ }
2431
+ /* Holding the card opens the focus view: no text selection and no image menu. */
2432
+ @media (hover: none) and (pointer: coarse) {
2433
+ [data-hc-ds] .hc-ui-physical-cards {
2434
+ -webkit-user-select: none;
2435
+ user-select: none;
2436
+ -webkit-touch-callout: none;
2437
+ }
2438
+ [data-hc-ds] .hc-ui-physical-cards img { -webkit-touch-callout: none; }
2439
+ [data-hc-ds] .hc-ui-physical-card { -webkit-user-select: none; user-select: none; }
2440
+ /* Outside the focus view the grain stays without blending, which weighs on
2441
+ phones with several cards mounted. */
2442
+ [data-hc-ds] .hc-ui-physical-cards:not([data-focus]) .hc-ui-physical-card::after {
2443
+ opacity: var(--hc-opacity-card-grain-flat);
2444
+ mix-blend-mode: normal;
2445
+ }
2446
+ }
2447
+
2448
+ /* PhysicalCardFocusView — HCUI `.card-focus`. The blurred background was asked for
2449
+ by HCUI and applies only here. */
2450
+ [data-hc-ds] .hc-ui-card-focus {
2451
+ position: fixed;
2452
+ inset: 0;
2453
+ width: 100%;
2454
+ max-width: none;
2455
+ height: 100%;
2456
+ max-height: none;
2457
+ margin: 0;
2458
+ padding: calc(env(safe-area-inset-top, 0px) + 16px) 8px calc(max(env(safe-area-inset-bottom, 0px), var(--hc-space-3)) + 8px);
2459
+ border: 0;
2460
+ background: none;
2461
+ color: var(--hc-color-text-primary);
2462
+ overscroll-behavior: contain;
2463
+ touch-action: none;
2464
+ }
2465
+ [data-hc-ds] .hc-ui-card-focus[open] { display: flex; align-items: center; justify-content: center; }
2466
+ /* Darker than the overlay token, so the card stands out. Above ~24px of blur
2467
+ Chromium shows sharp edges and text behind again. */
2468
+ [data-hc-ds] .hc-ui-card-focus::backdrop {
2469
+ background-color: var(--hc-color-card-focus-backdrop);
2470
+ -webkit-backdrop-filter: blur(22px);
2471
+ backdrop-filter: blur(22px);
2472
+ }
2473
+ @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
2474
+ [data-hc-ds] .hc-ui-card-focus::backdrop { background-color: var(--hc-color-bg-elevated); }
2475
+ }
2476
+ [data-hc-ds] .hc-ui-card-focus__actions {
2477
+ grid-row: 2;
2478
+ display: flex;
2479
+ justify-content: center;
2480
+ gap: 12px;
2481
+ margin-top: 24px;
2482
+ }
2483
+ /* Quiet: the card is what shows. The outline Button keeps its border and only
2484
+ gets the surface fill, which that variant leaves transparent. */
2485
+ [data-hc-ds] .hc-ui-card-focus .hc-ui-card-focus__actions .hc-ui-button[data-variant] { background-color: var(--hc-color-bg-surface); }
2486
+ [data-hc-ds] .hc-ui-physical-cards[data-focus] {
2487
+ display: grid;
2488
+ justify-items: center;
2489
+ gap: 0;
2490
+ animation: hc-ui-card-focus-in 0.24s ease-out both;
2491
+ }
2492
+ /* Front and backs in the same place: flipping turns both faces together, swapping
2493
+ halfway, with the card edge-on. `backface-visibility` is not enough: the back
2494
+ face showed mirrored during the first half of the turn. */
2495
+ [data-hc-ds] .hc-ui-physical-cards[data-focus] > .hc-ui-physical-card-slot {
2496
+ grid-area: 1 / 1;
2497
+ transform: perspective(1400px) rotateY(0deg);
2498
+ transition: transform 0.5s ease-in-out, visibility 0s 0.25s;
2499
+ }
2500
+ [data-hc-ds] .hc-ui-physical-cards[data-focus] > .hc-ui-physical-card-slot[data-away] { visibility: hidden; pointer-events: none; }
2501
+ [data-hc-ds] .hc-ui-physical-cards[data-focus] > .hc-ui-physical-card-slot[data-side='front'][data-away] { transform: perspective(1400px) rotateY(-180deg); }
2502
+ [data-hc-ds] .hc-ui-physical-cards[data-focus] > .hc-ui-physical-card-slot[data-side='back'][data-away] { transform: perspective(1400px) rotateY(180deg); }
2503
+ @keyframes hc-ui-card-focus-in {
2504
+ from { opacity: 0; transform: scale(0.94); }
2505
+ to { opacity: 1; transform: scale(1); }
2506
+ }
2507
+
2508
+ @media (prefers-reduced-motion: reduce) {
2509
+ [data-hc-ds] .hc-ui-physical-cards[data-focus] { animation: none; }
2510
+ [data-hc-ds] .hc-ui-physical-cards[data-focus] > .hc-ui-physical-card-slot { transition: none; }
2511
+ [data-hc-ds] .hc-ui-physical-card__copy { transition: none; }
2512
+ }
2513
+
2514
+ /* Map — HCUI `.map-board`, `.map-tooltip`, `.map-swatch`, `.map-scene__legend` and
2515
+ `.map-environment`. The board's white, the selection's shading and the swatch's
2516
+ text are HeroClix tokens, the same in both themes; the environment's black line
2517
+ icons turn light in the dark theme (`filter-map-environment-icon`). */
2518
+ [data-hc-ds] :is(.hc-ui-map-board, .hc-ui-map-tooltip, .hc-ui-map-swatch, .hc-ui-map-legend, .hc-ui-map-environment),
2519
+ [data-hc-ds] :is(.hc-ui-map-board, .hc-ui-map-tooltip, .hc-ui-map-legend, .hc-ui-map-environment) *,
2520
+ [data-hc-ds] :is(.hc-ui-map-board, .hc-ui-map-tooltip, .hc-ui-map-legend, .hc-ui-map-environment) *::before,
2521
+ [data-hc-ds] :is(.hc-ui-map-board, .hc-ui-map-tooltip, .hc-ui-map-legend, .hc-ui-map-environment) *::after { box-sizing: border-box; }
2522
+ /* ROND everywhere, and HCUI's long words that break only when they overflow. */
2523
+ [data-hc-ds] :is(.hc-ui-map-tooltip, .hc-ui-map-swatch, .hc-ui-map-legend, .hc-ui-map-environment),
2524
+ [data-hc-ds] :is(.hc-ui-map-tooltip, .hc-ui-map-legend, .hc-ui-map-environment) * { font-variation-settings: 'ROND' var(--hc-rond); }
2525
+ :where([data-hc-ds] :is(.hc-ui-map-tooltip, .hc-ui-map-legend, .hc-ui-map-environment)) span,
2526
+ :where([data-hc-ds]) :is(.hc-ui-map-swatch, .hc-ui-map-environment) { overflow-wrap: break-word; }
2527
+ /* Square corners: the map is a board with its grid and labels up to the edge. The
2528
+ hcmaps canvas draws on white, in both themes. */
2529
+ [data-hc-ds] .hc-ui-map-board {
2530
+ position: relative;
2531
+ width: 100%;
2532
+ box-shadow: var(--hc-shadow-card);
2533
+ background-color: var(--hc-color-map-board);
2534
+ cursor: crosshair;
2535
+ }
2536
+ [data-hc-ds] .hc-ui-map-board:focus-visible { outline: 2px solid var(--hc-color-outline); outline-offset: 4px; }
2537
+ [data-hc-ds] .hc-ui-map-board canvas {
2538
+ display: block;
2539
+ width: 100%;
2540
+ height: auto;
2541
+ }
2542
+ [data-hc-ds] .hc-ui-map-board[data-loading] {
2543
+ aspect-ratio: 2 / 3;
2544
+ background-color: var(--hc-color-bg-muted-2);
2545
+ background-image: linear-gradient(var(--hc-color-border) 1px, transparent 1px), linear-gradient(90deg, var(--hc-color-border) 1px, transparent 1px);
2546
+ background-size: 12.5% 12.5%;
2547
+ }
2548
+ /* Read by screen readers only. */
2549
+ [data-hc-ds] .hc-ui-map-board__status {
2550
+ position: absolute;
2551
+ width: 1px;
2552
+ height: 1px;
2553
+ padding: 0;
2554
+ margin: -1px;
2555
+ overflow: hidden;
2556
+ clip: rect(0, 0, 0, 0);
2557
+ white-space: nowrap;
2558
+ border: 0;
2559
+ }
2560
+ [data-hc-ds] .hc-ui-map-board__selection {
2561
+ position: absolute;
2562
+ inset: 0;
2563
+ display: block;
2564
+ width: 100%;
2565
+ max-width: 100%;
2566
+ height: 100%;
2567
+ pointer-events: none;
2568
+ }
2569
+ [data-hc-ds] .hc-ui-map-board__selection rect { fill: var(--hc-color-map-selection); stroke: var(--hc-color-map-selection-edge); stroke-width: .07; }
2570
+ [data-hc-ds] .hc-ui-map-board__selection line { stroke: var(--hc-color-map-selection-line); stroke-width: .14; stroke-linecap: round; }
2571
+
2572
+ /* MapSwatch: the board's square, with the terrain's fill and border, in both themes. */
2573
+ [data-hc-ds] .hc-ui-map-swatch {
2574
+ display: inline-flex;
2575
+ align-items: center;
2576
+ justify-content: center;
2577
+ flex: 0 0 auto;
2578
+ width: 16px;
2579
+ height: 16px;
2580
+ border: 2px solid;
2581
+ border-radius: 3px;
2582
+ font-size: 10px;
2583
+ font-weight: var(--hc-font-weight-bold);
2584
+ line-height: 1;
2585
+ color: var(--hc-color-map-swatch-text);
2586
+ }
2587
+ [data-hc-ds] .hc-ui-map-swatch[data-light-text] { color: var(--hc-color-map-swatch-text-light); }
2588
+ [data-hc-ds] .hc-ui-map-swatch[data-wall] { height: 5px; border-width: 0; border-radius: 1px; outline: 1px solid var(--hc-color-border-strong); }
2589
+
2590
+ [data-hc-ds] .hc-ui-map-tooltip {
2591
+ position: fixed;
2592
+ z-index: var(--hc-z-tooltip);
2593
+ pointer-events: none;
2594
+ width: max-content;
2595
+ max-width: min(320px, calc(100vw - 16px));
2596
+ padding: var(--hc-space-3);
2597
+ border: 1px solid var(--hc-color-border-strong);
2598
+ border-radius: var(--hc-radius-md);
2599
+ background: var(--hc-color-bg-elevated);
2600
+ color: var(--hc-color-text-primary);
2601
+ box-shadow: var(--hc-shadow-card);
2602
+ font-size: var(--hc-font-size-xs);
2603
+ line-height: var(--hc-line-height-md);
2604
+ }
2605
+ /* HCUI's slightly condensed titles, at zero specificity. */
2606
+ :where([data-hc-ds] .hc-ui-map-tooltip__title) { font-stretch: 92%; }
2607
+ [data-hc-ds] .hc-ui-map-tooltip__title { display: flex; align-items: center; gap: var(--hc-space-2); margin-bottom: var(--hc-space-2); font-size: var(--hc-font-size-sm); font-weight: var(--hc-font-weight-bold); }
2608
+ [data-hc-ds] .hc-ui-map-tooltip__squares { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--hc-space-3); }
2609
+ [data-hc-ds] .hc-ui-map-tooltip__square { display: flex; flex-direction: column; gap: var(--hc-space-1); min-width: 0; color: var(--hc-color-text-secondary); }
2610
+ [data-hc-ds] .hc-ui-map-tooltip__square + .hc-ui-map-tooltip__square { padding-left: var(--hc-space-3); border-left: 1px solid var(--hc-color-border); }
2611
+ [data-hc-ds] .hc-ui-map-tooltip__coordinate { color: var(--hc-color-text-primary); font-weight: var(--hc-font-weight-bold); }
2612
+ [data-hc-ds] .hc-ui-map-tooltip__row { display: flex; align-items: center; gap: var(--hc-space-2); min-height: 18px; }
2613
+ [data-hc-ds] .hc-ui-map-tooltip__row[data-kind='terrain'] { color: var(--hc-color-text-primary); }
2614
+ [data-hc-ds] .hc-ui-map-tooltip__note { color: var(--hc-color-text-secondary); }
2615
+ [data-hc-ds] .hc-ui-map-tooltip .hc-ui-map-environment__item { gap: var(--hc-space-2); }
2616
+ [data-hc-ds] .hc-ui-map-tooltip .hc-ui-map-environment img { width: 16px; height: 16px; }
2617
+
2618
+ /* MapLegendView: the icons follow the text's size. */
2619
+ [data-hc-ds] .hc-ui-map-legend {
2620
+ display: flex;
2621
+ flex-wrap: wrap;
2622
+ align-items: center;
2623
+ gap: var(--hc-space-1) var(--hc-space-3);
2624
+ margin-top: var(--hc-space-2);
2625
+ font-size: var(--hc-font-size-xs);
2626
+ line-height: var(--hc-line-height-md);
2627
+ color: var(--hc-color-text-secondary);
2628
+ }
2629
+ [data-hc-ds] .hc-ui-map-legend .hc-ui-map-environment img { width: 16px; height: 16px; }
2630
+ [data-hc-ds] .hc-ui-map-legend__key { display: inline-flex; align-items: center; gap: var(--hc-space-1); }
2631
+
2632
+ [data-hc-ds] .hc-ui-map-environment {
2633
+ display: inline-flex;
2634
+ align-items: center;
2635
+ flex-wrap: wrap;
2636
+ gap: var(--hc-space-2);
2637
+ color: var(--hc-color-text-secondary);
2638
+ font-size: var(--hc-font-size-xs);
2639
+ line-height: var(--hc-line-height-md);
2640
+ }
2641
+ [data-hc-ds] .hc-ui-map-environment__item { display: inline-flex; align-items: center; gap: var(--hc-space-1); white-space: nowrap; }
2642
+ [data-hc-ds] .hc-ui-map-environment img { display: block; flex-shrink: 0; width: 18px; max-width: 100%; height: 18px; filter: var(--hc-filter-map-environment-icon); }