/* Bear Hunt / Endless Trials Full ↔ Minimal presentation.
   Presentation-only: no battle inputs, optimizer coverage, or server payloads change. */
.pve-presentation-shell{
  margin:12px 0 18px;
  padding:10px 12px;
  border:1px solid rgba(102,205,239,.20);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(7,31,49,.56),rgba(5,24,39,.44));
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
.pve-presentation-control{
  width:100%;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) 1px minmax(0,1fr);
  align-items:center;
  gap:22px;
  border:0;
  background:transparent;
  box-shadow:none;
}
.pve-presentation-group{display:flex;align-items:center;justify-content:flex-start;gap:16px;min-width:0}.pve-presentation-label{display:flex;align-items:center;gap:9px;min-width:0;color:#e7f7ff;font-size:.98rem;font-weight:900;letter-spacing:.02em}
.pve-presentation-label::before{content:"▦";display:grid;place-items:center;width:28px;height:28px;border:1px solid rgba(108,207,239,.24);border-radius:8px;color:#89dcf7;background:rgba(21,74,101,.26);font-size:.9rem}
.pve-presentation-label>span,.pve-presentation-label>small{display:block}.pve-presentation-label>small{color:#7898aa;font-size:.68rem;font-weight:750}
.pve-presentation-actions{display:grid;grid-template-columns:1fr 1fr;min-width:230px;border:1px solid rgba(89,183,222,.20);border-radius:9px;overflow:hidden;background:rgba(3,20,33,.72)}
.pve-presentation-btn{min-height:40px;padding:0 18px;border:0;border-right:1px solid rgba(89,183,222,.14);background:transparent;color:#91aebe;font:850 .84rem/1 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer}
.pve-control-separator{width:1px;height:44px;background:linear-gradient(180deg,transparent,rgba(103,207,235,.46),transparent)}
.pve-presentation-btn:last-child{border-right:0}.pve-presentation-btn:hover{color:#edfaff;background:rgba(49,142,183,.10)}.pve-presentation-btn.active{color:#fff;background:linear-gradient(180deg,#2fb8ed,#1486c2);box-shadow:inset 0 0 16px rgba(126,226,255,.15)}
body.light-theme .pve-presentation-shell{background:linear-gradient(180deg,rgba(250,254,255,.88),rgba(232,246,251,.78));border-color:rgba(47,145,181,.20);box-shadow:inset 0 1px rgba(255,255,255,.7)}
body.light-theme .pve-presentation-label{color:#214d60}body.light-theme .pve-presentation-label::before{color:#176c8c;background:#e7f7fc;border-color:#9fcfe0}body.light-theme .pve-presentation-label>small{color:#668896}body.light-theme .pve-presentation-actions{background:#f7fcfe;border-color:#a9d2df}.light-theme .pve-presentation-btn{color:#4f7484;border-color:#c4dee7}.light-theme .pve-presentation-btn.active{color:#fff;background:linear-gradient(180deg,#28a9d8,#187dab)}

/* Minimal deliberately mirrors the Battle Simulator card contract: portrait plus
   a snowflake Stars selector/readout and the hero's own widget icon + level.
   Full progression art, skills, stat strips and verbose widget copy collapse away. */
.pve-minimal-levels{display:none}
body.pve-minimal-view .pve-battle-hero{padding:8px!important;border-radius:13px!important}
body.pve-minimal-view .pve-battle-hero .hero-progression{margin:0!important;padding:10px!important;border-radius:11px!important;overflow:visible!important}
body.pve-minimal-view .pve-battle-hero .hero-compact-grid{grid-template-columns:82px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;overflow:visible!important}
body.pve-minimal-view .pve-battle-hero .pve-hero-photo{min-height:104px!important;padding-top:16px!important;overflow:visible!important}
body.pve-minimal-view .pve-battle-hero .hero-portrait{width:68px!important;height:68px!important}
body.pve-minimal-view .pve-battle-hero .hero-gen-badge{top:3px!important;z-index:6!important}
body.pve-minimal-view .pve-battle-hero .hero-progression-top,
body.pve-minimal-view .pve-battle-hero .snowflake-row,
body.pve-minimal-view .pve-battle-hero .hero-stat-strip,
body.pve-minimal-view .pve-battle-hero .pve-skill-grid,
body.pve-minimal-view .pve-battle-hero .widget-box-v4,
body.pve-minimal-view .pve-battle-hero .hero-widget-corner{display:none!important}
body.pve-minimal-view .pve-battle-hero .pve-minimal-levels{display:grid;grid-template-columns:1fr 1fr;gap:7px;align-items:center;min-height:62px}
body.pve-minimal-view .pve-battle-hero .pve-minimal-level{display:grid;grid-template-rows:auto 1fr;align-items:center;justify-items:center;gap:5px;min-width:0;padding:6px;border:1px solid rgba(115,176,191,.15);border-radius:9px;background:rgba(7,29,41,.66);color:#dbeafe;font-size:.76rem;font-weight:900}
body.pve-minimal-view .pve-battle-hero .pve-minimal-field-heading{display:block;color:#86aabb;font-size:.52rem;font-weight:900;line-height:1;text-transform:uppercase;letter-spacing:.07em;text-align:center}
body.pve-minimal-view .pve-battle-hero .pve-minimal-level-copy{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}
body.pve-minimal-view .pve-battle-hero .pve-minimal-level :is(select,b){min-width:36px}
body.pve-minimal-view .pve-battle-hero .pve-minimal-level select{width:48px;min-height:29px;border:1px solid rgba(102,180,200,.26);border-radius:7px;background:#071a26;color:#effbff;font-weight:850;text-align:center}
body.pve-minimal-view .pve-battle-hero .pve-minimal-star-icon.snowflake{position:relative!important;display:block!important;width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;flex:0 0 30px!important;transform:scale(.62)!important;transform-origin:center!important}
body.pve-minimal-view .pve-battle-hero .pve-minimal-star-icon .snowflake-leaf{pointer-events:none!important}
body.pve-minimal-view .pve-battle-hero .pve-minimal-widget .pve-minimal-level-copy>img{width:28px;height:28px;border-radius:7px;object-fit:contain;background:#142c3b;flex:0 0 28px}
body.light-theme.pve-minimal-view .pve-battle-hero .pve-minimal-level{background:#f5fafb;border-color:#d6e4e8;color:#214d60}
body.light-theme.pve-minimal-view .pve-battle-hero .pve-minimal-field-heading{color:#688b99}
body.light-theme.pve-minimal-view .pve-battle-hero .pve-minimal-level select{background:#fff;color:#173847;border-color:#b8d6e1}

/* Full-view result cards are three-up on desktop. Their readonly progression does not have
   star-control buttons, so do not reserve that space; shrink the decorative snowflakes just
   enough to keep the progression, GEN badge, portrait and widget in their own columns. */
.pve-heroes .hero-progression{padding-top:13px;overflow:visible}
.pve-heroes .hero-progression-top{padding-right:0;justify-content:center;flex-wrap:wrap;gap:4px 8px}
.pve-heroes .hero-compact-grid{grid-template-columns:86px minmax(0,1fr) 100px;gap:8px;overflow:visible}
.pve-heroes .pve-hero-photo{padding-top:15px;overflow:visible}
.pve-heroes .hero-gen-badge{top:2px;z-index:6}
.pve-heroes .snowflake-row{gap:1px;overflow:visible}
.pve-heroes .snowflake{width:36px;height:36px;flex:0 0 36px;transform:scale(.86);transform-origin:center}
.pve-heroes .hero-widget-corner{min-width:0}
.pve-heroes .hero-widget-corner :is(select,.pve-widget-readout){min-width:0}

@media(max-width:1180px){
  body.pve-minimal-view .pve-hero-editor-row,body.pve-minimal-view .pve-heroes{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:960px){
  body.pve-minimal-view .pve-hero-editor-row,body.pve-minimal-view .pve-heroes{grid-template-columns:1fr!important}
}
@media(max-width:680px){
  body.pve-minimal-view .pve-battle-hero .hero-compact-grid{grid-template-columns:80px minmax(0,1fr)!important}
  body.pve-minimal-view .pve-battle-hero .pve-minimal-levels{grid-template-columns:1fr!important}
}
@media(max-width:560px){
  .pve-presentation-shell{padding:10px}.pve-presentation-control{align-items:stretch;flex-direction:column}.pve-presentation-actions{min-width:0;width:100%}
}

/* Presentation help + profile-collection filter. The tooltip is rendered at body level
   by pve_presentation.js so it cannot be clipped by the presentation container. */
.pve-presentation-label{position:relative}.pve-info-trigger{width:22px;height:22px;display:inline-grid;place-items:center;padding:0;border:1px solid rgba(111,211,238,.35);border-radius:50%;background:rgba(14,67,90,.72);color:#bfefff;font:900 .64rem/1 Inter,system-ui;cursor:help}.pve-info-trigger.pve-tooltip-anchor{anchor-name:--pve-tooltip-anchor}.pve-info-trigger:hover,.pve-info-trigger:focus-visible{border-color:#70dcf6;color:#fff;outline:none;box-shadow:0 0 0 3px rgba(72,196,230,.10)}
.pve-my-heroes-toggle{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-width:0;cursor:pointer;color:#e7f7ff}.pve-my-heroes-toggle>input{position:absolute;opacity:0;pointer-events:none}.pve-my-heroes-toggle>span:last-of-type{display:grid;gap:3px}.pve-my-heroes-toggle b{font-size:1.02rem;line-height:1.1}.pve-my-heroes-toggle small{font-size:.74rem;color:#799aaa;line-height:1.15}.pve-toggle-switch{position:relative;width:50px;height:28px;flex:0 0 50px;border:1px solid rgba(104,198,226,.32);border-radius:999px;background:#0b2232;transition:.15s}.pve-toggle-switch::after{content:"";position:absolute;left:4px;top:4px;width:18px;height:18px;border-radius:50%;background:#7899a8;transition:.15s}.pve-my-heroes-toggle>input:checked+.pve-toggle-switch{background:linear-gradient(180deg,#1d9dca,#116b94);border-color:#57d8f8}.pve-my-heroes-toggle>input:checked+.pve-toggle-switch::after{left:26px;background:#fff;box-shadow:0 0 8px rgba(111,231,255,.7)}
.pve-tooltip-portal{position:fixed;position-anchor:--pve-tooltip-anchor;position-area:bottom center;position-try-fallbacks:flip-block;inset:auto;margin:10px;z-index:2147482100;display:none;box-sizing:border-box;width:min(430px,calc(100vw - 32px));max-width:min(430px,calc(100vw - 32px));padding:10px 12px;border:1px solid rgba(89,218,246,.54);border-radius:10px;background:rgba(3,20,32,.98);color:#dff8ff;box-shadow:0 16px 38px rgba(0,0,0,.48);font:750 .74rem/1.45 Inter,system-ui;white-space:normal;overflow-wrap:normal;word-break:normal;pointer-events:none}.pve-tooltip-portal.show{display:block}
body.light-theme .pve-my-heroes-toggle{color:#214d60}body.light-theme .pve-my-heroes-toggle small{color:#668896}body.light-theme .pve-toggle-switch{background:#d9edf3;border-color:#a7d0dd}body.light-theme .pve-info-trigger{background:#e4f6fa;color:#176c8c;border-color:#9bcddd}body.light-theme .pve-tooltip-portal{background:rgba(249,254,255,.99);color:#214d60;border-color:#8ec9db;box-shadow:0 16px 38px rgba(44,80,97,.24)}
@media(max-width:800px){.pve-presentation-control{grid-template-columns:1fr 1px 1fr;gap:14px}.pve-presentation-group{align-items:flex-start;flex-direction:column;gap:8px}.pve-presentation-actions{min-width:190px;width:100%}.pve-control-separator{height:58px}}
@media(max-width:560px){.pve-presentation-control{grid-template-columns:1fr;gap:12px}.pve-presentation-group{width:100%}.pve-presentation-label{width:100%}.pve-presentation-actions{width:100%}.pve-control-separator{width:100%;height:1px}.pve-my-heroes-toggle{min-width:0}}
