#boardgame-overheat-section .heat-mode-head,
#boardgame-blizzard-section .heat-mode-head { position: relative; padding-top: 58px; text-align: center; margin-bottom: 20px; }
.heat-custom-control { position: absolute; top: 0; left: 0; display: grid; border: 1px solid #9b3924; border-radius: 8px; overflow: hidden; z-index: 2; }
.heat-custom-control button { border: 0; background: #21110e; color: #f1c2b3; padding: 8px 12px; cursor: pointer; font: inherit; font-size: 11px; }
.heat-custom-control button + button { border-top: 1px solid #6f2b1f; }
.heat-custom-control .is-on { background: #9b321d; color: #fff; }
.heat-custom-control.is-blizzard { border-color: #5799bd; }
.heat-custom-control.is-blizzard button { background: #0b2333; color: #d6f3ff; }
.heat-custom-control.is-blizzard button + button { border-color: #376b88; }
.heat-custom-control.is-blizzard .is-on { background: #286f96; color: #fff; }
.heat-custom-dialog { --heat-accent: #f5edec; --heat-border: #873521; box-sizing: border-box; width: min(860px, calc(100vw - 20px)); max-height: 92dvh; padding: 20px; border: 1px solid var(--heat-border); border-radius: 8px; background: #160c0a; color: #f4d8cf; overflow: auto; font-family: inherit; }
.heat-custom-dialog.is-blizzard { --heat-accent: #9bdfff; --heat-border: #4c91b6; background: #071722; color: #dcf4ff; }
.heat-custom-dialog::backdrop { background: #000b; }
.heat-custom-dialog * { box-sizing: border-box; letter-spacing: 0; }
.heat-custom-heading, .heat-custom-result-head, .heat-custom-deck-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.heat-custom-heading { position: relative; min-height: 40px; padding-right: 50px; }
.heat-custom-heading h2 { margin: 0; color: var(--heat-accent); font-size: 22px; }
.heat-custom-dialog button { color: inherit; font: inherit; cursor: pointer; }
.heat-custom-heading button, .heat-custom-dialog footer button { border: 1px solid var(--heat-border); border-radius: 6px; background: #271411; padding: 8px 16px; }
.heat-custom-heading > button[data-close] { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; }
.heat-custom-dialog.is-blizzard .heat-custom-heading button,
.heat-custom-dialog.is-blizzard footer button { background: #0d2839; }
.heat-custom-search { display: grid; gap: 6px; margin: 18px 0 10px; font-size: 13px; }
.heat-custom-search input { width: 100%; padding: 12px; border: 1px solid var(--heat-border); border-radius: 6px; background: #1f1614; color: #fff; font: inherit; }
.heat-custom-dialog.is-blizzard .heat-custom-search input { background: #0b202d; }
.heat-custom-result-head { min-height: 28px; font-size: 12px; }
.heat-custom-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 124px; margin-bottom: 14px; overflow: auto; align-content: start; border-block: 1px solid var(--heat-border); }
.heat-custom-results button { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 5px; border: 1px solid transparent; background: transparent; text-align: left; }
.heat-custom-results button[aria-pressed="true"] { border-color: var(--heat-accent); background: #432018; }
.heat-custom-dialog.is-blizzard .heat-custom-results button[aria-pressed="true"] { background: #12384e; }
.heat-custom-results img { width: 38px; height: 38px; object-fit: contain; }
.heat-custom-results span { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.heat-custom-results small { display: block; color: #bd9c92; }
.heat-custom-dialog.is-blizzard .heat-custom-results small { color: #a8cbdc; }
.heat-custom-dialog button:disabled { opacity: .4; cursor: not-allowed; }
.heat-custom-empty { padding: 14px; grid-column: 1 / -1; }
.heat-custom-deck-head { margin: 4px 0 9px; color: var(--heat-accent); font-size: 13px; }
.heat-custom-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.heat-custom-slot { position: relative; min-width: 0; padding-bottom: 30px; }
.heat-custom-card { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 360 / 500; padding: 0; overflow: hidden; border: 1px dashed var(--heat-border); border-radius: 6px; background: #251310; }
.heat-custom-dialog.is-blizzard .heat-custom-card { background: #0b2637; }
.heat-custom-card.is-selected { outline: 2px solid var(--heat-accent); outline-offset: 1px; }
.heat-custom-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.heat-custom-name { position: absolute; top: 10.5%; left: 12%; width: 76%; overflow: hidden; color: #fff; font-size: 10px; text-align: center; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px #000; z-index: 2; }
.heat-custom-art { position: absolute; top: 25%; left: 20%; width: 60%; height: 42%; object-fit: contain; z-index: 1; }
.heat-custom-code { position: absolute; bottom: 14%; width: 100%; color: var(--heat-accent); font-size: 16px; font-weight: 900; text-align: center; text-shadow: 0 1px 3px #000; z-index: 2; }
.heat-custom-slot-number { color: var(--heat-accent); font-size: 18px; font-weight: 800; }
.heat-custom-remove { position: absolute; right: 0; bottom: 0; width: 28px; height: 26px; padding: 0; border: 1px solid var(--heat-border); border-radius: 5px; background: #351713; }
.heat-custom-dialog.is-blizzard .heat-custom-remove { background: #103146; }
.heat-custom-dialog footer { padding-top: 12px; text-align: right; }
.heat-custom-dialog footer p { min-height: 38px; color: inherit; font-size: 12px; line-height: 1.6; text-align: left; }
.heat-custom-dialog [data-save]:enabled { border-color: var(--heat-accent); background: #74301f; }
.heat-custom-dialog.is-blizzard [data-save]:enabled { background: #216487; }
@media (max-width: 540px) {
    #boardgame-overheat-section .heat-mode-head,
    #boardgame-blizzard-section .heat-mode-head { padding-top: 68px; }
    .heat-custom-dialog { padding: 12px; }
    .heat-custom-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .heat-custom-slots { gap: 4px; }
    .heat-custom-slot { padding-bottom: 27px; }
    .heat-custom-name { top: 11%; font-size: 5px; }
    .heat-custom-code { bottom: 10%; font-size: 8px; }
}
