/* Combat screen v2: slim vitals, one action deck (abilities + provisions + ultimate orb), hunting grounds strip. Loaded last. */

/* ---- Header buttons: always labelled ---- */
.hunt-header-actions button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 52px; height: 46px; padding: 4px 8px; }
.hunt-header-actions .hunt-control-icon { font-size: 17px; line-height: 1; }
.hunt-header-actions .hunt-control-label { display: block !important; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: #cdbcab; line-height: 1.1; }

/* ---- Vitals: slim bars with the numbers inside ---- */
.hunt-hud { padding: 8px 10px 9px !important; gap: 5px !important; border-radius: 10px !important; background: linear-gradient(180deg, #160f0fe6, #0f0a0ae0) !important; }
.hunt-hud .hunt-hud-title { margin: 0 0 3px !important; align-items: center; }
.hunt-hud .hunt-hud-title h3 { font-size: 15px !important; line-height: 1.15; }
.hunt-hud .hunt-hud-title span { font-size: 10px !important; padding: 1px 6px !important; }
.vbar { position: relative; height: 14px; border-radius: 7px; background: #0a0606; border: 1px solid #3a2624; overflow: hidden; box-shadow: inset 0 1px 3px #000c; }
.vbar + .vbar { margin-top: 4px; }
.vbar > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; transition: width .35s ease; }
.vbar.health > i { background: linear-gradient(180deg, #ff7a63 0%, #c42a1f 55%, #8d1712 100%); box-shadow: 0 0 8px #e0533f66; }
.vbar.health.is-low > i { animation: vbar-low 1.1s ease-in-out infinite; }
@keyframes vbar-low { 50% { filter: brightness(1.35); } }
.vbar.energy { height: 8px; }
.vbar.energy > i { background: linear-gradient(180deg, #7ff0d8, #1f9c86); }
.vbar.energy > b, .vbar-label { display: none; }
.vbar > b { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000, 0 0 4px #000; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.hunt-hud .hunt-stats { margin-top: 4px !important; font-size: 11px !important; gap: 8px !important; }
.hunt-hud .hunt-cue { margin: 4px 0 0 !important; font-size: 11px !important; }
.hunt-hud .vital-label { display: none; }

/* ---- Action deck ---- */
.hunt-hotbar-row { display: block !important; }
.dk { isolation: isolate; width: 100% !important; max-width: 100% !important; justify-self: stretch !important; position: relative; display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top orb" "bottom orb" "energy energy"; gap: 8px 10px; margin: 0 !important; padding: 10px 12px 10px !important; border-radius: 16px !important; border: 1px solid #7a5a3a !important; background: linear-gradient(180deg, #2a1d17, #170f0d) !important; box-shadow: inset 0 0 0 1px #00000080, inset 0 1px 0 #ffffff14, 0 10px 26px #000a !important; }
.dk::before { content: ""; position: absolute; inset: 3px; border-radius: 13px; border: 1px solid #c8a26a33; pointer-events: none; }
.dk-top { grid-area: top; min-width: 0; }
.dk-bottom { grid-area: bottom; display: flex; align-items: flex-end; gap: 6px; min-width: 0; }
.dk-orb-wrap { grid-area: orb; display: grid; place-items: center; }
.dk-energy { grid-area: energy; }
.dk-group { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dk-label { display: flex; align-items: center; gap: 6px; font-family: var(--title); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: #d9b98a; text-shadow: 0 1px 0 #000; }
.dk-edit { min-height: 0 !important; height: 18px; padding: 0 6px !important; font-family: inherit; font-size: 9.5px !important; letter-spacing: 1px; border-radius: 5px !important; color: #e8c99a !important; background: #ffffff0d !important; border: 1px solid #c8a26a44 !important; }
.dk-row { display: flex; gap: 6px; }
.dk-gem { width: 9px; height: 9px; margin-bottom: 21px; flex: none; transform: rotate(45deg); background: linear-gradient(135deg, #f4d79a, #8a6a38); box-shadow: 0 0 6px #c8a26a66; }
/* ability cells reuse the hotbar buttons, sized as square tiles */
.dk .dk-abilities .dk-row { gap: 6px; }
.dk .hot-cell { width: auto !important; min-width: 0; flex: 1 1 0; max-width: 64px; }
.dk .hot-slot { width: 100% !important; height: auto !important; aspect-ratio: 1; border-radius: 10px !important; border: 1px solid #a07c4c !important; background: linear-gradient(180deg, #2e2119, #150e0c) !important; box-shadow: inset 0 0 10px #000c !important; }
.dk .hot-slot.is-locked { border-color: #5a4430 !important; opacity: .8; }
.dk .hot-name { display: none !important; }
.dk .hot-ult-cell, .dk .hot-gear-cell { display: none !important; }
/* provision cells */
.dk-cell { position: relative; display: grid; place-items: center; width: 50px; height: 50px; padding: 0 !important; border-radius: 10px !important; border: 1px solid #a07c4c !important; background: linear-gradient(180deg, #2e2119, #150e0c) !important; box-shadow: inset 0 0 10px #000c; overflow: hidden; }
.dk-cell.is-empty { border-style: solid !important; border-color: #5a4430 !important; }
.dk-cell.is-out { opacity: .55; }
.dk-art { display: grid; place-items: center; width: 100%; height: 100%; }
.dk-img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 2px 4px #000); }
.dk-plus { font-size: 22px; color: #8a6a44; font-weight: 700; }
.dk-count { position: absolute; right: 3px; bottom: 2px; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.dk-sub { position: absolute; left: 3px; top: 2px; padding: 0 3px; border-radius: 4px; background: #000a; font-size: 9px; font-weight: 700; color: #e8d6a8; }
.dk-time, .dk-cd { position: absolute; left: 0; bottom: 0; height: 3px; }
.dk-time { background: #e0b04a; }
.dk-cd { background: #6fb6ff; }
/* ultimate orb */
.dk-orb { position: relative; width: 104px; height: 104px; padding: 0 !important; border-radius: 50% !important; display: grid; place-items: center; overflow: hidden; border: 3px solid #b98d4e !important; background: radial-gradient(circle at 50% 35%, #2b1716, #0d0707 70%) !important; box-shadow: 0 0 0 2px #2a1b12, 0 0 0 4px #6b4b2a, inset 0 0 18px #000, 0 6px 16px #000a !important; }
.dk-orb-liquid { position: absolute; left: 0; right: 0; bottom: 0; height: var(--fill); background: radial-gradient(120% 60% at 50% 0%, #ff8a3a 0%, #d22a14 35%, #6d0d08 100%); box-shadow: 0 -2px 10px #ff6a2a88; transition: height .4s ease; }
.dk-orb-liquid::before { content: ""; position: absolute; left: -10%; right: -10%; top: -5px; height: 10px; border-radius: 50%; background: #ffb07a66; filter: blur(2px); animation: orb-wave 3s ease-in-out infinite; }
@keyframes orb-wave { 50% { transform: translateX(6%) scaleY(1.3); } }
.dk-orb-icon { position: absolute; top: 14px; width: 26px; height: 26px; opacity: .85; }
.dk-orb-icon svg { width: 100%; height: 100%; }
.dk-orb b { position: relative; margin-top: 12px; font-size: 21px; font-weight: 800; color: #fff; text-shadow: 0 2px 4px #000; }
.dk-orb small { position: absolute; bottom: 14px; font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; color: #f3dcc0; text-shadow: 0 1px 2px #000; }
.dk-orb.is-full { animation: orb-full 1.2s ease-in-out infinite; }
@keyframes orb-full { 50% { box-shadow: 0 0 0 2px #2a1b12, 0 0 0 4px #e0a84a, 0 0 26px #ff6a2a, inset 0 0 18px #000 !important; } }
.dk-orb.is-locked b { font-size: 15px; color: #cdb69a; }
.dk-energy .hot-energy, .dk-energy .hot-swing { width: 100% !important; max-width: none !important; }
.dk-energy .hot-energy { margin: 0 !important; height: 16px !important; border-radius: 8px !important; }
.dk-energy .hot-energy span { font-size: 10.5px !important; }
.dk-energy .hot-swing { margin-top: 4px !important; }

/* ---- Hunting grounds ---- */
.hg { margin-top: 10px; }
.hg-head { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 6px; }
.hg-all { min-height: 0 !important; height: 24px; padding: 0 9px !important; font-size: 11px !important; border-radius: 7px !important; }
.hg-strip { display: flex; gap: 8px; padding-top: 8px !important; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 8px; scrollbar-width: thin; }
.hg-strip::-webkit-scrollbar { height: 4px; }
.hg-strip::-webkit-scrollbar-thumb { background: #4a3530; border-radius: 2px; }
.hg-card { position: relative; flex: 0 0 168px; scroll-snap-align: start; display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 8px; align-items: center; padding: 7px 8px !important; border-radius: 12px !important; border: 1px solid #3f2c29 !important; background: linear-gradient(180deg, #1d1414, #110c0c) !important; text-align: left; min-height: 0 !important; }
.hg-card:not([disabled]):hover { border-color: #c2372a !important; transform: translateY(-1px); }
.hg-card.is-current { border-color: #e0533f !important; box-shadow: 0 0 0 1px #e0533f55, 0 0 16px #e0533f44; background: linear-gradient(180deg, #2c1312, #140d0d) !important; opacity: 1 !important; }
.hg-card.is-locked { opacity: .45; }
.hg-card[disabled] { cursor: default; }
.hg-art { grid-row: 1 / 4; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 9px; background: radial-gradient(circle at 50% 60%, #3a1d1a, #120c0c 75%); overflow: hidden; }
.hg-art img, .hg-art .sprite { max-width: 44px; max-height: 44px; object-fit: contain; }
.hg-pack { display: flex; align-items: flex-end; justify-content: center; }
.hg-pack > * { width: 22px !important; height: 34px !important; margin: 0 -4px; object-fit: contain; }
.hg-name { font-size: 12px; line-height: 1.15; color: #f1e2cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-lv { font-size: 10px; color: #9c8b80; }
.hg-stats { display: flex; gap: 6px; font-size: 10.5px; color: #d8c8b6; font-variant-numeric: tabular-nums; }
.hg-stats i { font-style: normal; white-space: nowrap; }
.hg-stats em { font-style: normal; margin-right: 2px; }
.hg-hp { color: #ef6a5a; } .hg-atk { color: #e8b45a; } .hg-def { color: #8ab4e8; }
.hg-badge { position: absolute; top: -6px; left: 8px; z-index: 1; padding: 1px 5px; border-radius: 5px; background: #6b2a24; color: #fbe0d4; font-size: 9px; font-weight: 700; letter-spacing: .5px; }
.hg-on { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: #e0533f; box-shadow: 0 0 8px #e0533f; font-size: 0; }
.hg-sep { flex: 0 0 auto; align-self: center; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--title); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #7f6f66; padding: 0 2px; border-left: 1px solid #3a2a28; }

/* ---- Phones ---- */
@media (max-width: 760px) {
 .dk { padding: 9px 9px 9px !important; gap: 7px 8px; }
 .dk .hot-cell { max-width: 54px; }
 .dk-cell { width: 44px; height: 44px; }
 .dk-bottom { gap: 4px; }
 .dk-gem { width: 7px; height: 7px; margin-bottom: 18px; }
 .dk-orb { width: 86px; height: 86px; }
 .dk-orb b { font-size: 18px; }
 .dk-label { font-size: 9.5px; letter-spacing: 1.4px; }
}
@media (max-width: 380px) {
 .dk-cell { width: 40px; height: 40px; }
 .dk-orb { width: 74px; height: 74px; }
 .dk-gem { display: none; }
}

.hunt-header { position: relative; z-index: 30; }
.dk-energy { justify-self: stretch; width: 100%; min-width: 0; }
/* Desktop: deck and hunting grounds sit below the battlefield instead of covering it */
@media (min-width: 961px) {
 .hunt-hotbar-row { margin-top: 0 !important; padding: 10px 12px 8px !important; display: block !important; pointer-events: auto !important; background: linear-gradient(180deg, #130d0d, #0e0909); border-top: 1px solid #2e2220; }
 .dk { max-width: 720px !important; margin: 0 auto !important; }
 .hunt-arena .hunt-stage { min-height: 300px; }
}
/* Phones: the orb sits beside the abilities only; provisions get the full width */
@media (max-width: 760px) {
 .dk { grid-template-areas: "top orb" "bottom bottom" "energy energy"; align-items: center; }
 .dk-bottom { justify-content: space-between; }
}
@media (min-width: 961px) {
 .dk { max-width: 980px !important; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "top bottom orb" "energy energy orb"; align-items: end; gap: 6px 14px; padding: 8px 14px !important; }
 .dk .hot-cell { flex: 0 0 52px; max-width: 52px; }
 .dk-cell { width: 52px; height: 52px; }
 .dk-bottom { padding-left: 14px; border-left: 1px solid #c8a26a33; }
 .dk-orb { width: 82px; height: 82px; }
 .dk-orb b { font-size: 17px; }
 .hunt-arena .hunt-stage { min-height: 250px; }
}

/* ===== World map ===== */
.dialog:has(.wm) { width: min(980px, calc(100vw - 16px)); padding: 18px 18px 14px; }
.wm-top h2 { margin: 2px 0 10px; font-family: var(--title); font-size: 24px; color: #f4e6d4; }
.wg-strip { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: thin; }
.wg-card { position: relative; flex: 0 0 132px; height: 84px; padding: 0 !important; overflow: hidden; scroll-snap-align: start; border-radius: 12px !important; border: 1px solid #4a3532 !important; background: #120c0c !important; text-align: left; }
.wg-art { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .3s; }
.wg-card:hover .wg-art { transform: scale(1.06); }
.wg-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #0b070700 20%, #0b0707e6 100%); }
.wg-num { position: absolute; top: 6px; left: 8px; font-family: var(--title); font-size: 13px; color: #f2c46a; text-shadow: 0 1px 3px #000; }
.wg-seal { position: absolute; top: 6px; right: 8px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #3f6b48; color: #fff; font-size: 11px; box-shadow: 0 0 8px #5fb36e; }
.wg-here { position: absolute; top: 7px; right: 8px; padding: 1px 6px; border-radius: 6px; background: #c2372a; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .4px; }
.wg-seal + .wg-here { right: 30px; }
.wg-text { position: absolute; left: 8px; right: 8px; bottom: 6px; display: grid; }
.wg-text b { font-size: 12.5px; line-height: 1.15; color: #f6e8d6; text-shadow: 0 1px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-text small { font-size: 10.5px; color: #d6c3ae; }
.wg-card.is-selected { border-color: #e0533f !important; box-shadow: 0 0 0 1px #e0533f, 0 0 16px #e0533f55; }
.wg-card.is-locked .wg-art { filter: grayscale(.85) brightness(.55); }
.wg-card.is-locked .wg-text small { color: #b9a698; }
.wm-hero { position: relative; height: 150px; margin: 4px 0 12px; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center 40%; border: 1px solid #4a3532; }
.wm-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #0b0707f0 0%, #0b0707b0 45%, #0b070720 100%); }
.wm-hero-text { position: absolute; left: 18px; right: 18px; bottom: 14px; }
.wm-hero-text h2 { margin: 2px 0 4px; font-family: var(--title); font-size: 28px; color: #f6e8d6; text-shadow: 0 2px 10px #000; }
.wm-hero-text p { margin: 0; font-size: 13px; color: #d9c8b6; }
.wm-hero-text .wm-locked { margin-top: 6px; color: #f0b3a8; }
.wm-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: #0d0909; border: 1px solid #2a201e; overflow-x: auto; scrollbar-width: none; }
.wm-tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 12px !important; border: 0 !important; border-radius: 9px !important; background: transparent !important; color: #a8968a !important; font-size: 13px; font-weight: 600; white-space: nowrap; }
.wm-tabs button small { padding: 0 6px; border-radius: 999px; background: #ffffff12; font-size: 10.5px; color: #cdbcab; }
.wm-tabs button.is-on { background: linear-gradient(180deg, #3a1714, #241010) !important; color: #fbe6d4 !important; box-shadow: inset 0 0 0 1px #6b2a24; }
.wm-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.wm-chip { flex: none; min-height: 30px !important; padding: 0 12px !important; border-radius: 999px !important; font-size: 12px !important; background: #140e0e !important; border: 1px solid #3a2a28 !important; color: #cdbcab !important; }
.wm-chip.is-on { border-color: #c2372a !important; color: #fff !important; background: #2a1110 !important; }
.wm-list { display: grid; gap: 8px; }
.wm-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid #332523; background: linear-gradient(90deg, #1b1313, #110c0c); }
.wm-card.is-current { border-color: #e0533f; box-shadow: 0 0 14px #e0533f33; }
.wm-portrait { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle at 50% 60%, #3a1d1a, #120c0c 75%); overflow: hidden; }
.wm-portrait img, .wm-portrait .sprite { max-width: 60px; max-height: 60px; object-fit: contain; }
.wm-pack { display: flex; align-items: flex-end; justify-content: center; }
.wm-pack > * { width: 28px !important; height: 44px !important; margin: 0 -5px; object-fit: contain; }
.wm-body { min-width: 0; }
.wm-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.wm-title h3 { margin: 0; font-family: var(--title); font-size: 16px; color: #f2e2cf; }
.wm-lv { font-size: 11px; font-weight: 700; color: #e9d7c4; padding: 0 6px; border-radius: 5px; background: #ffffff12; }
.wm-threat { font-size: 11px; color: #9c8b80; }
.wm-stats { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 2px; font-size: 12px; color: #d8c8b6; font-variant-numeric: tabular-nums; }
.wm-stats i { font-style: normal; white-space: nowrap; }
.wm-stats em { font-style: normal; margin-right: 3px; }
.wm-type { color: #c9b8a9; } .wm-type.magic { color: #b48cff; }
.wm-cue { margin: 2px 0; font-size: 12.5px; color: #c9b8a9; line-height: 1.4; }
.wm-cue b { color: #f1d8a6; font-weight: 600; }
.wm-tip { margin: 2px 0 0; font-size: 11.5px; color: #8f7e74; }
.wm-drops { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.wm-mat { display: inline-flex; align-items: center; gap: 5px; min-height: 26px !important; padding: 0 8px 0 4px !important; border-radius: 7px !important; font-size: 11.5px !important; background: #140e0e !important; border: 1px solid #3a2a28 !important; color: #d8c8b6 !important; }
.wm-mat img, .wm-mat .material-art { width: 18px !important; height: 18px !important; }
.wm-loot { display: inline-flex; align-items: center; padding: 0 8px; min-height: 26px; border-radius: 7px; font-size: 11.5px; color: #9fd8a8; border: 1px solid #2f4a35; background: #0f160f; }
.wm-act { align-self: center; }
.wm-go { min-width: 92px; }
.wm-fighting { font-size: 12px; font-weight: 700; color: #e0533f; white-space: nowrap; }
.wm-guardian { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px; border-radius: 14px; border: 1px solid #6b2a24; background: radial-gradient(120% 120% at 0% 0%, #2c1312, #110c0c 60%); }
.wm-guardian.is-current { box-shadow: 0 0 18px #e0533f44; }
.wm-guardian-art { display: grid; place-items: end center; min-height: 200px; border-radius: 12px; background: radial-gradient(circle at 50% 70%, #4a1d19, #120c0c 70%); overflow: hidden; }
.wm-guardian-art img, .wm-guardian-art .sprite { max-width: 100%; max-height: 220px; object-fit: contain; }
.wm-guardian-body h3 { margin: 2px 0 4px; font-family: var(--title); font-size: 22px; color: #f4e6d4; }
.wm-guardian-body > p { margin: 6px 0; font-size: 13px; color: #cdbcab; line-height: 1.5; }
.wm-phases { margin: 6px 0; padding-left: 18px; font-size: 12.5px; color: #c9b8a9; }
.wm-phases li { margin: 2px 0; }
.wm-guardian .wm-act { margin-top: 10px; }
.wm-mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.wm-mat-row { display: flex; align-items: center; gap: 10px; min-height: 52px !important; padding: 6px 12px 6px 8px !important; border-radius: 10px !important; text-align: left; background: #130e0e !important; border: 1px solid #332523 !important; }
.wm-mat-row img, .wm-mat-row .material-art { width: 34px !important; height: 34px !important; flex: none; }
.wm-mat-text { flex: 1; min-width: 0; display: grid; }
.wm-mat-text b { font-size: 13px; color: #ecdcc8; }
.wm-mat-text small { font-size: 11px; color: #8f7e74; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-mat-row em { font-style: normal; font-weight: 700; color: #e9d7c4; }
.wm-note { padding: 12px 14px; border-radius: 12px; border: 1px solid #332523; background: #120d0d; }
.wm-note h3 { margin: 2px 0 4px; font-family: var(--title); font-size: 16px; color: #ecdcc8; }
.wm-note p { margin: 0; font-size: 13px; color: #b9a89b; }
@media (max-width: 640px) {
 .dialog:has(.wm) { padding: 14px 12px 10px; }
 .wg-card { flex-basis: 118px; height: 76px; }
 .wm-hero { height: 120px; }
 .wm-hero-text h2 { font-size: 22px; }
 .wm-card { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 10px; }
 .wm-portrait { width: 52px; height: 52px; }
 .wm-act { grid-column: 1 / -1; }
 .wm-act .wm-go { width: 100%; }
 .wm-guardian { grid-template-columns: 1fr; }
 .wm-guardian-art { min-height: 150px; }
}
.wm-portrait img, .wm-portrait .sprite, .hg-art img, .hg-art .sprite { filter: brightness(1.35) contrast(1.05); }
@media (max-width: 640px) {
 .wm-card { position: relative; }
 .wm-card .wm-act { position: absolute; top: 9px; right: 9px; grid-column: auto; }
 .wm-card .wm-go { width: auto; min-width: 0; min-height: 32px !important; padding: 0 14px !important; font-size: 12.5px !important; }
 .wm-card .wm-title { padding-right: 72px; }
 .wm-guardian .wm-act .wm-go { width: 100%; }
}

/* Chat dock: Log filters */
.dock-filters { display: flex; gap: 6px; padding: 6px 2px 4px; }
.dock-filter { min-height: 26px !important; padding: 0 11px !important; border-radius: 999px !important; font-size: 11.5px !important; background: #140e0e !important; border: 1px solid #3a2a28 !important; color: #b9a89b !important; }
.dock-filter.active { border-color: #c2372a !important; background: #2a1110 !important; color: #fff !important; }
.dock-tabs [data-tab="log"] { margin-left: auto; }

/* ---- Character switch: inside the game menu on phones ---- */
@media (max-width: 760px) { .nav-switch { display: none !important; } }
.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 44px; }
.menu-head h2 { margin: 0; }
.menu-chars { white-space: nowrap; }

/* ---- Phone gear drawer ---- */
#gear-drawer { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.gd-handle { pointer-events: auto; position: fixed; right: 0; top: 46%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; width: 30px; padding: 10px 0 !important; min-height: 0 !important; border-radius: 10px 0 0 10px !important; border: 1px solid #7a5a3a !important; border-right: 0 !important; background: linear-gradient(90deg, #2a1d17, #170f0d) !important; box-shadow: -4px 0 14px #000a; color: #e8c99a !important; transition: right .28s cubic-bezier(.2,.8,.2,1); }
.gd-handle span { font-size: 14px; }
.gd-handle b { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--title); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.gd-backdrop { position: fixed; inset: 0; background: #000a; opacity: 0; transition: opacity .25s; }
.gd { position: fixed; top: 0; bottom: 0; right: 0; width: min(92vw, 420px); display: flex; flex-direction: column; background: linear-gradient(180deg, #1c1414, #110c0c); border-left: 1px solid #5a3a32; box-shadow: -18px 0 40px #000c; transform: translateX(104%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.gd-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 16px; border-bottom: 1px solid #2e2220; }
.gd-head h2 { flex: 1; margin: 0; font-family: var(--title); font-size: 20px; color: #f4e6d4; }
.gd-close { width: 34px; height: 34px; padding: 0 !important; min-height: 0 !important; border-radius: 50% !important; font-size: 18px; }
.gd-body { flex: 1; overflow-y: auto; padding: 10px 12px 90px; overscroll-behavior: contain; }
#gear-drawer.open { pointer-events: auto; }
#gear-drawer.open .gd-backdrop { opacity: 1; }
#gear-drawer.open .gd { transform: none; }
#gear-drawer.open .gd-handle { right: min(92vw, 420px); }
.gd-body .bag-heading h3 { display: none; } .gd-body .bag-heading { margin-top: -4px; }

/* Empty provision hints */
.dk-cell.is-empty .dk-art { display: flex; flex-direction: column; gap: 0; }
.dk-cell.is-empty .dk-plus { font-size: 18px; line-height: 1; }
.dk-hint { font-size: 8.5px; letter-spacing: .8px; text-transform: uppercase; color: #9c7f5a; line-height: 1.2; }

/* Monster thumbnails: zoom the full-body sprites to fill their frames */
.hg-art img, .wm-portrait img { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: contain; transform: scale(1.45); transform-origin: 50% 62%; filter: brightness(1.45) contrast(1.08) saturate(1.1); }
.hg-art .hg-pack { width: 100%; height: 100%; }
.wm-portrait.wm-pack { width: 64px; height: 64px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.hg-pack > img { width: 26px !important; height: 42px !important; flex: none; margin: 0 -4px !important; transform: scale(1.3); transform-origin: 50% 70%; }
.wm-pack > img { width: 34px !important; height: 54px !important; flex: none; margin: 0 -6px !important; transform: scale(1.3); transform-origin: 50% 70%; }
@media (max-width: 640px) { .wm-portrait.wm-pack { width: 52px; height: 52px; } .wm-pack > img { width: 28px !important; height: 46px !important; } }
