.hc-tiles { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; }
@media (min-width: 900px) {
    .hc-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hc-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 128px; overflow: hidden; border-radius: 24px 8px 8px 24px; background: #83573f; color: #fff; text-decoration: none; }
.hc-tile[href]:hover, .hc-tile[href]:focus-visible { outline: 2px solid var(--wa-accent-fg); outline-offset: 2px; }
.hc-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-tile-img-contain { object-fit: contain; padding: 12px 12px 48px; }
.hc-tile-label { position: relative; margin: 0 16px 8px; padding: 4px 12px; border-radius: 16px; background: rgba(0, 0, 0, .5); font-size: .9rem; font-weight: 700; text-align: center; text-shadow: 0 0 4px #000; overflow-wrap: anywhere; }
.hc-tile-stat { position: relative; display: block; padding: 6px 12px 10px; background: #83573f; text-align: center; font-size: .8rem; font-weight: 700; text-shadow: 0 0 4px #000; }
.hc-tile-stat .wa-progress { display: block; height: 4px; margin: -6px -12px 8px; border-radius: 0; background: rgba(255, 255, 255, .25); }
.hc-tile-stat .wa-progress span { display: block; height: 100%; width: 0; background: var(--hc-progress, #d3262c); }

.hc-cards { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 12px 0; }
@media (min-width: 900px) {
    .hc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hc-card { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.hc-card-head { display: flex; gap: 10px; align-items: flex-start; }
.hc-card-main { flex: 1; min-width: 0; }
.hc-card-title { font-weight: 700; overflow-wrap: anywhere; }
.hc-card-text { margin: 4px 0 0; font-size: .9rem; overflow-wrap: anywhere; }
.hc-type { width: 32px; height: 32px; flex: none; margin: 2px; background: currentColor; -webkit-mask: var(--hc-icon) center / contain no-repeat; mask: var(--hc-icon) center / contain no-repeat; }
.hc-trophy-icon { width: 64px; height: 64px; flex: none; object-fit: contain; }
.hc-image { display: block; width: 100%; height: 120px; padding: 0; border: 0; background: none; cursor: zoom-in; }
.hc-image img { width: 100%; height: 100%; object-fit: contain; }

.hc-switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.hc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.hc-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--wa-surface-2); border: 1px solid var(--wa-border); transition: background .15s; }
.hc-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s; }
.hc-switch input:checked + span { background: var(--wa-accent); border-color: var(--wa-accent); }
.hc-switch input:checked + span::after { transform: translateX(18px); }
.hc-switch input:focus-visible + span { outline: 2px solid var(--wa-accent-fg); outline-offset: 2px; }

.hc-trophy { border-width: 4px; }
.hc-rarity-bronze { border-color: #b26659; }
.hc-rarity-silver { border-color: #787d80; }
.hc-rarity-gold { border-color: #bc883f; }
.hc-rarity-platinum { border-color: #60b7d3; }

.hc-mask { display: inline-block; width: 24px; height: 24px; flex: none; background: currentColor; -webkit-mask: var(--hc-icon) center / contain no-repeat; mask: var(--hc-icon) center / contain no-repeat; }

dialog.hc-viewer { max-width: min(96vw, 1200px); }
.hc-viewer img { display: block; width: 100%; max-height: 75vh; object-fit: contain; }
.hc-viewer h2 { margin: 0 0 8px; font-size: 1.1rem; }
.hc-viewer p { margin: 8px 0 0; }
