/* details.css - the detail sheet (details.js) and the tap affordances it adds: everything that opens a sheet gets a
   pointer, a pressed state, a focus ring and a 44 px hit area. The theme frames come from themes.css (dialog); this adds
   the stage, rows, chips and lists, and each world's small touches at the end. */

/* ---------- tappable things ---------- */
/* a high-five's bigger hit area stays on its button (without this it spread over the whole feed and swallowed taps) */
.five { position: relative; }
[data-detail] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[data-detail]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
:is(.foe, .bosscard, .player, .pquest, .winner, .trophy, .beast, .tcard, .nexttier, .pf, .evbanner, .card.hero, .nextfoe, .spoil, .dt-card, .dt-tile, .dt-form)[data-detail] { transition: transform .12s ease, filter .12s ease; }
:is(.foe, .bosscard, .player, .pquest, .winner, .trophy, .beast, .tcard, .nexttier, .pf, .evbanner, .card.hero, .nextfoe, .spoil, .dt-card, .dt-tile)[data-detail]:active { transform: scale(.98); filter: brightness(.94); }
:is(.space, .wp, .lair, #flame, #hud, #me, .seal, .coop, .evline, .mo-facts, .mo-badge, .feed li, .dt-row, .dt-tasks li, .dt-team li, .dt-chip)[data-detail]:active { filter: brightness(.86); }
@media (hover: hover) { :is(.foe, .bosscard, .player, .pquest, .trophy, .beast, .tcard, .nexttier, .dt-card, .dt-tile)[data-detail]:hover { filter: brightness(1.06); } }
/* small targets grow an invisible hit area to 44 px */
.meta :is(.seal, .coop)[data-detail] { position: relative; }
.meta :is(.seal, .coop)[data-detail]::after { content: ""; position: absolute; inset: -12px -3px; }
#flame[data-detail] { position: relative; cursor: pointer; }
#flame[data-detail]::after { content: ""; position: absolute; inset: -7px -3px; }
#hud[data-detail] { position: relative; }
#hud[data-detail]::after { content: ""; position: absolute; inset: -9px -4px; }
.me[data-detail]::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; }
.evline[data-detail] { display: flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; }
.evline[data-detail]::after, .mo-facts[data-detail]::after { content: "›"; font-size: 18px; line-height: 1; opacity: .7; }
.mo-facts[data-detail] { min-height: 44px; align-items: center; padding: 4px 8px; border-radius: 99px; }
.mo-badge[data-detail] { padding: 6px; border-radius: 16px; }
.lootcard .flip[data-detail] { pointer-events: auto; cursor: pointer; }
.pf[data-detail] { min-height: 44px; }
.feed li[data-detail] { min-height: 52px; }
.space[data-detail] { min-height: 44px; }

/* ---------- the sheet ---------- */
dialog.detail { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
dialog.detail[open] { display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 641px) { dialog.detail .grab { display: none; } dialog.detail { width: min(520px, calc(100vw - 20px)); max-height: min(86dvh, 820px); padding-top: 14px; } }
.dt-top { display: flex; align-items: flex-start; gap: 4px; touch-action: none; padding-bottom: 8px; flex: none; }
.dt-top:not(:has(.dt-back))::before { content: ""; flex: none; width: 44px; }
.dt-ttl { flex: 1; min-width: 0; text-align: center; padding-top: 2px; }
.dt-kicker { display: block; color: var(--mute); font: 700 11.5px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
#detail-h { margin: 2px 0 0; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; outline: none; }
.dt-sub { display: block; margin-top: 2px; color: var(--mute); font-size: 14px; overflow-wrap: anywhere; }
.dt-x, .dt-back { flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; color: var(--fg); }
.dt-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 2px 6px; -webkit-overflow-scrolling: touch; }
.dt-body > p { margin: 8px 2px; }
.dt-load { text-align: center; padding: 36px 0; }

/* the stage: the big art */
.dt-stage { position: relative; display: grid; place-items: center; height: clamp(170px, 48vw, 236px); margin: 2px 0 10px; border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 64%), var(--sunk); }
.dt-stage.s-foe, .dt-stage.s-boss { background: radial-gradient(circle at 50% 66%, color-mix(in srgb, var(--hp) 34%, transparent), transparent 62%), var(--sunk); }
.dt-stage { grid-template-rows: minmax(0, 1fr); }   /* a definite row, so the art's 90% height is of the stage: the whole creature shows */
.dt-stage .dt-art { width: auto; height: 90%; max-width: 92%; min-height: 0; object-fit: contain; }
.dt-stage .dt-art:not(.form2, .form3, .final, .echo) { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.dt-stage.s-dead .dt-art { filter: grayscale(1) brightness(.6); }
.dt-stage.s-unseen .dt-art, .dt-stage .dt-art.missing { filter: brightness(0) opacity(.3); }
.dt-stage.s-event { height: auto; aspect-ratio: 4 / 5; max-height: 70dvh; }   /* the holiday scene shown tall, most of the portrait */
.dt-stage .dt-wide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }   /* framed on the scene; tap it for the whole picture */
.dt-stage.s-relic.r-u { background: radial-gradient(circle, color-mix(in srgb, var(--r-u) 35%, transparent), transparent 62%), var(--sunk); }
.dt-stage.s-relic.r-r { background: radial-gradient(circle, color-mix(in srgb, var(--r-r) 40%, transparent), transparent 62%), var(--sunk); }
.dt-stage.s-relic.r-l { background: radial-gradient(circle, color-mix(in srgb, var(--r-l) 50%, transparent), transparent 64%), var(--sunk); }
.dt-stage.s-relic .dt-art, .dt-stage.s-chest .dt-art, .dt-stage.s-prop .dt-art { height: 76%; }
/* the art is the star: monsters, bosses and heroes get a tall stage and show whole (contain, with room around them);
   tap the art to see it full screen */
.dt-stage.s-foe, .dt-stage.s-boss, .dt-stage.s-hero { height: clamp(240px, 74vw, 380px); }
.dt-stage.s-foe .dt-art, .dt-stage.s-boss .dt-art { height: 92%; }
.dt-stage.s-hero .dt-art { height: 96%; border-radius: 18px; }
.dt-stage:has(img) { cursor: zoom-in; }
.dt-stage.s-hero .dt-lv { left: 10px; top: 10px; bottom: auto; min-width: 0; padding: 2px 10px; font: 800 14px/1.4 var(--font); }
.dt-zoom { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--panel) 80%, transparent); color: var(--fg); font-size: 16px; }
.dt-lv { position: absolute; left: calc(50% + 46px); bottom: 12px; min-width: 46px; padding: 2px 10px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font: 900 24px/1.25 var(--title); text-align: center; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }
.dt-stage.s-lv { height: 140px; }
.dt-bignum { font: 900 76px/1 var(--title); color: var(--accent); text-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.dt-stage.s-badge { height: 196px; }
.badge.xl { width: 156px; height: 156px; border-width: 8px; } .badge.xl .glyph { font-size: 72px; }
.dt-stage.s-space { height: 140px; }
.dt-space { width: 92px; height: 92px; font-size: 30px; border-radius: 18px; }
.dt-space img { width: 80%; height: 80%; object-fit: contain; }
.dt-taunt { text-align: center; font-style: italic; color: var(--mute); margin: 0 4px 10px !important; }
.dt-blurb { text-align: center; font-size: 15.5px; }

/* chips, rows, bars */
.dt-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 10px; }
.dt-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 99px; background: var(--sunk); border: 1px solid var(--line); font: 700 12.5px/1.5 var(--font); color: var(--fg); }
.dt-chip img { width: 20px; height: 20px; object-fit: contain; }
.dt-chip.form2 { border-color: var(--accent); } .dt-chip.form3 { border-color: #ffd43b; box-shadow: 0 0 8px rgba(255, 212, 59, .45); }
.dt-chip.hot { border-color: var(--hp); color: var(--hp-text, var(--hp)); } .dt-chip.good { border-color: var(--good); color: var(--good); }
.dt-chip[data-detail] { min-height: 44px; padding: 0 12px; justify-content: center; }
.dt-wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.dt-hp { display: grid; gap: 5px; margin: 4px 0 10px; }
.dt-hp[data-detail] { padding: 6px 8px; border-radius: 12px; min-height: 44px; }
.dt-hp .hp { height: 14px; } .dt-hp .hp span { display: block; font-size: 10px; line-height: 14px; }
.dt-hp small { color: var(--mute); text-align: center; font-size: 13px; }
.dt-hp small b { color: var(--hp-text, var(--hp)); }
.dt-bar { display: block; height: 10px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.dt-bar i { display: block; height: 100%; border-radius: inherit; background: var(--good); }
.dt-bar.xp i { background: var(--xp); }
.dt-rows { display: grid; margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--sunk) 45%, transparent); }
.dt-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.dt-row:first-child { border-top: 0; }
.dt-row > span { flex: 0 0 31%; color: var(--mute); font-weight: 650; font-size: 13px; }
.dt-row > b { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.dt-chev { flex: none; font-style: normal; font-size: 22px; line-height: 1; color: var(--mute); }
em.x2 { font-style: normal; font-weight: 800; color: var(--good); margin-left: 3px; white-space: nowrap; }
.dt-switch { cursor: pointer; }
.dt-switch > span { flex: none; }
.dt-switch small { flex: 1; color: var(--mute); font-size: 12.5px; }
.dt-switch input.switch { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 15px; background: color-mix(in srgb, var(--mute) 45%, var(--sunk)); position: relative; cursor: pointer; transition: background .15s; }
.dt-switch input.switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.dt-switch input.switch:checked { background: var(--accent); }
.dt-switch input.switch:checked::before { transform: translateX(20px); }

/* sections and lists */
.dt-sec h3 { margin: 16px 2px 6px; color: var(--mute); font: 700 12px/1.3 var(--font); letter-spacing: .07em; text-transform: uppercase; }
:is(.dt-tasks, .dt-log, .dt-team, .dt-tiers, .dt-perks, .dt-how) { list-style: none; margin: 0; padding: 0; }
:is(.dt-tasks, .dt-team) li { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: var(--sunk); font-size: 14px; }
.dt-tasks .grow, .dt-team .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dt-tick { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--mute); }
.dt-tick.on { background: var(--good); border-color: var(--good); }
.dt-tasks em { flex: none; font: 800 12px var(--font); font-style: normal; color: var(--good); }
.dt-team img, .dt-av { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--panel); }
.dt-av { display: grid; place-items: center; font: 800 14px var(--font); color: var(--mute); }
.dt-team small { display: block; color: var(--mute); font-size: 12px; }
.dt-team b.good { color: var(--good); } .dt-team b.mute { color: var(--mute); font-weight: 600; }
.dt-log li { padding: 6px 2px; border-top: 1px solid var(--line); font-size: 13.5px; overflow-wrap: anywhere; }
.dt-log li:first-child { border-top: 0; }
.dt-log b { color: var(--hp-text, var(--hp)); }
.dt-how li { position: relative; padding: 4px 0 4px 20px; font-size: 14px; }
.dt-how li::before { content: "✦"; position: absolute; left: 2px; color: var(--accent); }
.dt-tiers li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 6px; border-top: 1px solid var(--line); font-size: 14px; opacity: .62; }
.dt-tiers li:first-child { border-top: 0; }
.dt-tiers li.on { opacity: 1; }
.dt-tiers .grow { flex: 1; min-width: 0; }
.dt-tiers small { color: var(--mute); font-size: 12px; text-align: right; }
.dt-pip { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--ring, var(--line)); }
.dt-tiers .bronze { --ring: #b87333; } .dt-tiers .silver { --ring: #c3cad3; } .dt-tiers .gold { --ring: #f2c14e; } .dt-tiers .crystal { --ring: #8fd8ff; } .dt-tiers .radiant { --ring: #da77f2; }
.dt-tiers li.on .dt-pip { background: var(--ring); }
.dt-perks li { padding: 7px 2px; border-top: 1px solid var(--line); }
.dt-perks li:first-child { border-top: 0; }
.dt-perks small { display: block; color: var(--mute); font-size: 13px; }

/* cards, grids and the rest */
.dt-card { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line); }
.dt-card img { flex: none; width: 56px; height: 56px; object-fit: contain; }
.dt-card .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dt-card small { display: block; color: var(--mute); font-size: 12.5px; }
.dt-card img.missing { filter: brightness(0) opacity(.3); }
.dt-card.r-u { border-color: var(--r-u); } .dt-card.r-r { border-color: var(--r-r); } .dt-card.r-l { border-color: var(--r-l); }
.dt-class { margin: 0 0 8px; } .dt-class img { width: 40px; height: 40px; }
.dt-feed img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.dt-relics { display: grid; gap: 8px; }
.dt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.dt-tile { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; background: var(--sunk); text-align: center; }
.dt-tile img { width: 84px; height: 84px; object-fit: contain; }
.dt-tile b { font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; } .dt-tile small { color: var(--mute); font-size: 12px; }
.dt-forms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 8px; }
.dt-form { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: var(--sunk); text-align: center; opacity: .55; min-width: 0; }
.dt-form.on { opacity: 1; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent); }
.dt-form img { width: 60px; height: 60px; object-fit: contain; }
.dt-form:not(.on) img { filter: brightness(0) opacity(.4); }
.dt-form b { font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; } .dt-form small { color: var(--mute); font-size: 11px; }
.dt-set { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0 4px; }
@media (max-width: 430px) { .dt-set { grid-template-columns: repeat(4, 1fr); } }
.dt-set .relic { min-height: 44px; }
.dt-set .relic.cur { outline: 3px solid var(--accent); outline-offset: 1px; }
.dt-words { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 4px; }
.dt-words span { padding: 2px 9px; border-radius: 99px; background: var(--sunk); border: 1px solid var(--line); font-size: 12.5px; }
.dt-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 8px 0 12px; text-align: center; }
.dt-week > * { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 52px; padding: 6px 0; border-radius: 10px; background: var(--sunk); color: var(--fg); text-decoration: none; }
.dt-week i { width: 18px; height: 18px; border-radius: 50%; background: var(--line); }
.dt-week .on i { background: #ffb347; box-shadow: 0 0 8px rgba(255, 179, 71, .6); }
.dt-week .now { box-shadow: inset 0 0 0 2px var(--accent); }
.dt-week small { color: var(--mute); font-size: 11px; }
.dt-week.days i { width: auto; height: auto; background: none; box-shadow: none; font: 700 12px var(--font); font-style: normal; }
.dt-week.days .on { background: color-mix(in srgb, var(--good) 24%, var(--sunk)); }
.dt-week .out { opacity: .45; }
.dt-dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 4px; }
.dt-dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .25; }
.dt-dots i.on { opacity: 1; background: #ffb347; }
.dt-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.dt-acts > :is(button, a) { flex: 1 1 140px; }
a.btn.dt-go { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
a.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dt-later .dt-shim { display: block; height: 44px; margin: 6px 0; border-radius: 10px; background: linear-gradient(90deg, var(--sunk), color-mix(in srgb, var(--sunk) 55%, var(--panel)), var(--sunk)); background-size: 200% 100%; animation: dtshim 1.2s linear infinite; }
.dt-rows .dt-later { padding: 0 12px; }
@keyframes dtshim { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .dt-later .dt-shim { animation: none; } }

/* Clean: calm and plain */
dialog.dt-calm .dt-kicker { letter-spacing: .04em; }

/* ---------- each world's touches ---------- */
:root[data-theme=retro] :is(.dt-stage, .dt-rows, .dt-card, .dt-tile, .dt-form, .dt-tasks li, .dt-team li, .dt-week > *) { border-radius: 4px; }
:root[data-theme=retro] .dt-stage { box-shadow: inset 0 0 0 3px #0e1119, inset 0 0 0 5px #4a5470; }
:root[data-theme=retro] #detail-h { text-shadow: 2px 2px 0 #000; }
:root[data-theme=crystal] .dt-stage { background: radial-gradient(circle at 50% 60%, rgba(165, 216, 255, .45), transparent 62%), linear-gradient(180deg, #0f1854, #1b2a78); box-shadow: inset 0 0 0 2px #e8ecff; }
:root[data-theme=crystal] :is(.dt-rows, .dt-card, .dt-tasks li, .dt-team li) { background: rgba(10, 17, 58, .55); border-color: #8fa3f0; }
:root[data-theme=crystal] #detail-h { text-shadow: 2px 2px 0 #050826; }
:root[data-theme=wasteland] :is(.dt-stage, .dt-rows, .dt-card, .dt-tile, .dt-form, .dt-chip, .dt-tasks li, .dt-team li, .dt-week > *, .dt-words span, .dt-bar) { border-radius: 0; }
:root[data-theme=wasteland] .dt-stage { background: repeating-linear-gradient(0deg, rgba(70, 255, 127, .05) 0 1px, transparent 1px 3px), #031a07; border: 1px solid #1f7a3a; }
:root[data-theme=wasteland] :is(#detail-h, .dt-kicker) { font-family: ui-monospace, monospace; text-transform: uppercase; }
:root[data-theme=wasteland] #detail-h::before { content: "> "; }
:root[data-theme=ashen] #detail-h { font-family: var(--title); letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
:root[data-theme=ashen] .dt-stage { background: radial-gradient(circle at 50% 70%, rgba(201, 164, 92, .22), transparent 60%), #0b0a08; border: 1px solid #3a3326; }
:root[data-theme=ashen] :is(.dt-rows, .dt-card, .dt-tasks li, .dt-team li) { border-color: #3a3326; background: #16130f; }
:root[data-theme=ashen] .dt-taunt { font-family: var(--title); }
:root[data-theme=party] .dt-stage { background: radial-gradient(circle at 50% 65%, #ffd8f0, transparent 60%), linear-gradient(180deg, #8f6bff, #5b35d5); border-radius: 22px; }
:root[data-theme=party] :is(.dt-rows, .dt-card, .dt-tile, .dt-form) { border-radius: 18px; }
:root[data-theme=party] #detail-h { font-family: var(--title); color: #3b1f8a; }
:root[data-theme=party] a.btn.primary { background: #fab005; border-color: #fab005; color: #3b2a00; box-shadow: 0 3px 0 #c77d00; border-radius: 99px; }
:root[data-theme=party] .dt-acts > :is(button, a) { border-radius: 99px; }
:root[data-theme=wild] .dt-stage { background: radial-gradient(circle at 50% 70%, rgba(255, 244, 200, .5), transparent 60%), linear-gradient(180deg, #9fd8f0, #5aa86b); border-radius: 18px; }
:root[data-theme=wild] #detail-h { font-family: var(--title); }

/* mastery: the look's own codex set, its sheet, its relics (a glyph until drawn) and the portrait frame ([data-mframe]
   draws frame.webp over the box; a gold ring shows underneath, so a frame not drawn yet still reads as earned) */
.codex.mastery { cursor: pointer; border-color: color-mix(in srgb, var(--gold) 55%, var(--line, transparent)); }
.codex.mastery .mprog { display: grid; gap: 4px; margin-bottom: 8px; }
.codex.mastery .mprog small { color: var(--mute); }
.codex.mastery .mnext { margin: 8px 0 0; }
.mextras { margin-top: 8px; }
.mrelic { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.mrelic > i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 22px; color: var(--gold); opacity: .6; }
.mrelic > img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.relic.missing .mrelic, .mrelic.missing { filter: grayscale(1) brightness(.55); opacity: .5; }
.relic .mrelic > i { right: auto; bottom: auto; font-size: 20px; }
.mrelic:has(> img:not(.nofb)) > i { visibility: hidden; }
[data-mframe] { position: relative; }
[data-mframe]::after { content: ''; position: absolute; inset: -12%; background: var(--mframe) center / contain no-repeat; pointer-events: none; z-index: 2; }
.mfbox { position: relative; display: block; flex: none; line-height: 0; }
.card.hero .mfbox[data-mframe] > img { box-shadow: 0 0 0 3px var(--gold); border-radius: 50%; }
.dt-stage.s-hero .mfbox { height: 96%; }
.dt-stage.s-hero .mfbox > .dt-art { height: 100%; }
.me.mframed { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 50%, transparent); }
.me.mframed::after { content: ''; position: absolute; inset: -9px; background: var(--mframe) center / contain no-repeat; pointer-events: none; z-index: 1; }
.me .lv { z-index: 2; }
.mframepic { display: block; width: clamp(120px, 36vw, 190px); aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 5px var(--gold), 0 0 24px color-mix(in srgb, var(--gold) 50%, transparent); }
.dt-stage.s-mastery { height: auto; min-height: 0; padding: 22px 18px; cursor: default; }
.mrelics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: 100%; }
.mrelics .mrelic { aspect-ratio: 1; }
.mlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mlist li { display: flex; align-items: center; gap: 10px; }
.mlist .mrelic { width: 40px; height: 40px; flex: none; }
.mlist li.missing span { color: var(--mute); }
.mtiers .grow { text-align: left; }
.mtiers .grow small { display: block; text-align: left; }
.mtoggle { cursor: pointer; }
.mtoggle input { width: 22px; height: 22px; accent-color: var(--accent); }
.dpic.mdecor { box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 60%, transparent); }
