:root{color-scheme:dark;font-family:Inter,Segoe UI,Arial,sans-serif;background:#12100d;color:#f4ead2;--ink: #12100d;--panel: #211b17;--panel-soft: #30261d;--parchment: #dac89e;--parchment-ink: #24150e;--bronze: #b27738;--gold: #d6ad4a;--red: #b33a31;--blue: #4f94c7;--green: #4f8a4f;--line: rgba(244, 234, 210, .16);--shadow: 0 4px 16px rgba(0, 0, 0, 0.35)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at top left,rgba(178,119,56,.22),transparent 34rem),linear-gradient(135deg,#11100e,#261914 48%,#0e1114)}button,input,select{font:inherit}button,select,input{border-radius:8px}button{min-height:44px;border:1px solid rgba(255,228,143,.36);background:linear-gradient(180deg,#d1a453,#8e5525);color:#160d08;font-weight:800;cursor:pointer;box-shadow:inset 0 1px #ffffff59}button:hover:not(:disabled){filter:brightness(1.08)}button:disabled{cursor:not-allowed;opacity:.54}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7fc4ff;outline-offset:2px}input,select{width:100%;min-height:44px;border:1px solid rgba(214,173,74,.34);background:#130e0b;color:#fff6df;padding:.72rem .85rem}label{display:grid;gap:.4rem;color:#f7dfad;font-weight:700}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Georgia,Times New Roman,serif;letter-spacing:0}h1{font-size:clamp(2.2rem,7vw,5rem);line-height:.95;margin-bottom:.8rem}h2{color:#ffe0a2;margin-bottom:1rem}h3{margin-bottom:.4rem}.landing{min-height:100vh;padding:clamp(1rem,4vw,3rem);display:grid;place-items:center}.landing__content,.app-shell{width:min(1480px,100%)}.lead{max-width:42rem;color:#e9d7b5;font-size:1.15rem}.eyebrow{margin-bottom:.4rem;color:#d6ad4a;font-size:.78rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.mode-switch,.actions{display:flex;flex-wrap:wrap;gap:.7rem}.topbar__actions{display:flex;flex-wrap:nowrap;gap:.7rem;align-items:center}.mode-switch{margin:1.5rem 0}.mode-switch button,.button-secondary{background:#211711;color:#f7dfad}.mode-switch .is-active{background:linear-gradient(180deg,#f0c972,#a7672e);color:#170d07}.button-danger{background:linear-gradient(180deg,#d96b58,#84271f);color:#fff2e7}.selection-grid,.dashboard,.two-column{display:grid;gap:1rem}.selection-grid{grid-template-columns:minmax(260px,360px) 1fr;align-items:stretch}.dashboard{grid-template-columns:minmax(0,1fr) minmax(340px,480px);align-items:start}.dashboard__main,.dashboard__aside{display:grid;gap:1rem}.two-column{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{border:1px solid rgba(214,173,74,.24);background:linear-gradient(180deg,#30261df2,#191310f5);box-shadow:var(--shadow);padding:clamp(1rem,2vw,1.4rem);border-radius:8px}.panel--parchment,.summary{background:linear-gradient(180deg,#e2d0a3,#b99b61);color:var(--parchment-ink)}.panel--parchment h2,.summary h2,.summary strong{color:#2f1b0f}.custom-preview{min-height:420px}.card-image,.card-fallback{width:100%;aspect-ratio: 3 / 4;object-fit:cover;border-radius:8px;border:1px solid rgba(255,231,161,.35);background:#17100b;box-shadow:inset 0 0 0 4px #0000002e}.card-fallback{display:grid;place-items:center;padding:1rem;text-align:center;color:#f8dfaa;background:linear-gradient(140deg,rgba(214,173,74,.16),transparent 45%),#18110d}.crest{width:5rem;height:5.8rem;border:3px solid #d6ad4a;border-radius:48% 48% 42% 42%;box-shadow:inset 0 -18px #d6ad4a2e}.form-grid,.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.85rem}.form-grid--inline{grid-template-columns:minmax(140px,1fr) auto;align-items:end;margin-top:1rem}.notice{padding:.85rem 1rem;border:1px solid rgba(214,173,74,.32);border-radius:8px;background:#d6ad4a1f;color:#ffe7ae}.notice--danger{border-color:#b33a3185;background:#b33a3129}.notice p:last-child,.summary p:last-child{margin-bottom:0}.summary{margin-top:1rem;padding:1rem;border-radius:8px}.empty-state{color:#e4cfaa}.hero-list,.item-grid,.slot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem}.hero-choice{display:grid;gap:.55rem;padding:.8rem;text-align:left;background:#1d1510;color:#f4ead2}.hero-choice.is-selected{border-color:#f1cf7d}.hero-choice__name{font-weight:900;color:#ffe0a2}.app-shell{margin:0 auto;padding:clamp(1rem,2.8vw,2rem)}.topbar,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.topbar{margin-bottom:1rem}.topbar h1{font-size:clamp(2rem,5vw,3.8rem)}.hero-panel{display:grid;grid-template-columns:minmax(180px,260px) 1fr;gap:1rem}.hero-panel__body{min-width:0}.stat-row,.equipped-mini span{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);padding:.65rem 0}.stat-row--attack strong{color:#8ec9ff}.stat-row--life strong{color:#ff9c91}.stat-row--gold strong,.big-number--gold{color:#ffd76e}.equipped-mini{display:grid;margin-top:.8rem}.life-bar{height:1.2rem;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:#3a3836}.life-bar span{display:block;height:100%;transition:width .18s ease}.life-bar .is-high{background:var(--green)}.life-bar .is-mid{background:#d3a638}.life-bar .is-low{background:var(--red)}.life-bar .is-empty{background:#555}.big-number{margin:.8rem 0;font-size:2.3rem;font-weight:900}.control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.slot{display:grid;gap:.6rem;padding:.85rem;border:1px solid var(--line);border-radius:8px;background:#00000026}.shop{max-height:calc(100vh - 2rem);overflow:auto;position:sticky;top:1rem}.filters{margin-bottom:1rem}.item-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}.item-card{display:grid;gap:.75rem;border:1px solid var(--line);border-radius:8px;padding:.75rem;background:#00000024}.item-card__body{display:grid;gap:.55rem}.item-card__body p,.inventory-item p,.slot p{color:#ddc9a6;margin-bottom:0}.inventory-list{display:grid;gap:.8rem}.inventory-item{display:grid;grid-template-columns:108px 1fr;gap:1rem;padding:.8rem;border:1px solid var(--line);border-radius:8px;background:#00000024}.inventory-item.is-equipped{border-color:#d6ad4aa6}.history-list{display:grid;gap:.7rem;padding-left:1.2rem;max-height:420px;overflow:auto}.history-list li{padding-bottom:.7rem;border-bottom:1px solid var(--line)}.history-list time{display:block;color:#d6ad4a;font-size:.86rem;font-weight:800}.modal-backdrop{position:fixed;inset:0;z-index:10;display:grid;place-items:center;padding:1rem;background:#040302c7}.modal{width:min(560px,100%);border:2px solid rgba(255,222,147,.42);border-radius:8px;padding:clamp(1rem,4vw,1.5rem);background:linear-gradient(180deg,#2f241a,#130e0b);box-shadow:var(--shadow)}.check-line{grid-template-columns:auto 1fr;align-items:center;margin:1rem 0}.check-line input{width:1.2rem;min-height:auto;height:1.2rem}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.dashboard--single,.dashboard--shop{grid-template-columns:1fr}.stat-adjust{display:flex;align-items:center;gap:.6rem}.btn-adjust{min-height:auto!important;height:28px!important;width:28px!important;border-radius:50%!important;border:1px solid rgba(214,173,74,.45)!important;background:#251a14!important;color:#f7dfad!important;font-size:1.1rem!important;font-weight:800!important;cursor:pointer!important;display:grid!important;place-items:center!important;box-shadow:none!important;padding:0!important}.btn-adjust:hover:not(:disabled){background:linear-gradient(180deg,#f0c972,#a7672e)!important;color:#170d07!important;border-color:#f1cf7d!important;filter:none!important}.inventory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:1rem}.inventory-card{display:flex;flex-direction:column;gap:.75rem;border:1px solid var(--line);border-radius:8px;padding:.75rem;background:#00000024;transition:all .22s ease-in-out}.inventory-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000047}.inventory-card.is-equipped{border-color:#ffd76e;box-shadow:0 0 12px #d6ad4a59;background:linear-gradient(180deg,#21171180,#140e0ab3)}.inventory-card.is-used{opacity:.5}.inventory-card__body{display:flex;flex-direction:column;flex-grow:1;gap:.55rem}.inventory-card__body h3{margin:0;font-size:1.15rem;color:#ffe0a2}.inventory-card__meta{font-size:.85rem;color:#f4ead2a6!important;margin:0!important}.inventory-card__effect{font-size:.92rem;color:#ddc9a6;flex-grow:1;margin:0!important}.inventory-card__status{font-size:.9rem;margin:.2rem 0}@media(max-width:1040px){.dashboard,.selection-grid{grid-template-columns:1fr}.shop{max-height:none;position:static}}@media(max-width:720px){.topbar,.section-heading,.hero-panel,.two-column,.inventory-item,.form-grid--inline{grid-template-columns:1fr}.topbar,.section-heading{align-items:stretch;flex-direction:column}.control-grid{grid-template-columns:1fr}}.card-preview-container{position:relative;width:100%;aspect-ratio: 3 / 4;border-radius:8px;overflow:hidden;cursor:pointer;border:1px solid rgba(255,231,161,.2);box-shadow:0 4px 12px #0006;background:#17100b}.card-preview-img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}.card-preview-container:hover .card-preview-img{transform:scale(1.04)}.card-preview-overlay{position:absolute;inset:0;background:#000000a6;display:flex;justify-content:center;align-items:center;opacity:0;transition:opacity .15s ease}.card-preview-container:hover .card-preview-overlay{opacity:1}.card-preview-overlay span{background:#251b14;border:1px solid #d6ad4a;color:#ffd76e;padding:.35rem .7rem;border-radius:6px;font-size:.8rem;font-weight:700;box-shadow:0 2px 6px #00000080}.slot-select-overlay{display:flex;flex-direction:column;gap:.5rem;background:#120e0bd9;border:1px solid rgba(214,173,74,.35);border-radius:6px;padding:.6rem;margin-top:.25rem}.slot-select-title{font-size:.8rem;font-weight:800;color:#ffd76e;margin:0 0 .25rem;text-align:center;text-transform:uppercase;letter-spacing:.05em}.slot-select-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.4rem}.slot-select-grid button{min-height:auto!important;height:28px!important;font-size:.72rem!important;padding:0 2px!important;font-weight:700!important;border-radius:4px!important}.slot-select-overlay .cancel-btn{min-height:auto!important;height:26px!important;font-size:.75rem!important;padding:0!important;border-color:#ffffff14!important;background:#231914!important;color:#e4cfaa!important}.button-full{width:100%}.button-small{min-height:auto!important;height:32px!important;font-size:.8rem!important}.status-badge{display:block;font-size:.8rem;font-weight:800;padding:.35rem .5rem;border-radius:4px;border:1px solid transparent;text-align:center}.status-available{background:#4f8a4f1f;color:#92e792;border-color:#4f8a4f40}.status-equipped{background:#d6ad4a1f;color:#ffde84;border-color:#d6ad4a59}.status-used{background:#ffffff0a;color:#9c9c9c;border-color:#ffffff14}.slot-item{display:flex;flex-direction:column;gap:.6rem;width:100%}.slot-empty{width:100%;aspect-ratio: 3 / 4;border:1.5px dashed rgba(214,173,74,.18);border-radius:8px;display:grid;place-items:center;color:#f4ead23d;font-size:.85rem;font-weight:800;background:#0000001f}.zoom-modal{position:fixed;inset:0;background:#060403f0;z-index:99999;display:grid;place-items:center;padding:1rem;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.zoom-modal__content{position:relative;background:linear-gradient(180deg, rgba(22, 14, 9, 0.22), rgba(10, 6, 4, 0.30));border:2px solid #d6ad4a;border-radius:12px;padding:1.25rem;width:100%;max-width:600px;max-height:94vh;display:flex;flex-direction:column;align-items:center;box-shadow:0 20px 60px #000000d9}.zoom-modal__close{position:absolute!important;top:10px!important;right:10px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;max-height:36px!important;aspect-ratio:1/1!important;border-radius:50%!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(135deg,#2b170e,#130a05)!important;border:1.5px solid #d6ad4a!important;color:#ff5252!important;font-size:1.1rem!important;line-height:1!important;z-index:2140000002!important}.zoom-modal__controls{display:flex;gap:.5rem;margin-bottom:1rem;margin-top:1.5rem}.zoom-modal__controls button {
  min-height: auto !important;
  height: 32px !important;
  padding: 0 14px !important;
  font-size: 0.88rem !important;
  font-weight: bold !important;
  background: rgba(37, 26, 20, 0.75) !important;
  border: 1px solid rgba(214, 173, 74, 0.65) !important;
  color: #ffd76e !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
  cursor: pointer !important;
}.zoom-modal__image-wrapper {
  overflow: auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-height: 78vh !important;
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
}.zoom-modal__image-wrapper img{max-height:68vh;max-width:100%;object-fit:contain;transition:transform .2s cubic-bezier(.1,.8,.2,1)}@media(max-width:640px){.hero-list,.item-grid,.slot-grid,.inventory-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.6rem}.zoom-modal__content{width:96vw;max-height:92vh;padding:.85rem}.zoom-modal__image-wrapper img{max-height:60vh}.topbar__actions{flex-wrap:wrap;width:100%}.topbar__actions button{flex:1 1 auto;font-size:.85rem;padding:.4rem .6rem}.hero-panel{grid-template-columns:1fr}.slot-select-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:480px){.hero-list,.item-grid,.slot-grid,.inventory-grid{grid-template-columns:repeat(2,1fr)}h1{font-size:2rem}h2{font-size:1.4rem}.panel{padding:.85rem}.landing{padding:.8rem}}.topbar-compact{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(180deg,#251b14f2,#120e0bfa);border:1px solid rgba(214,173,74,.35);border-radius:10px;padding:.5rem 1rem;box-shadow:0 4px 16px #0006;position:relative;width:100%}.topbar-compact__info{display:flex;flex-direction:column;gap:.1rem}.topbar-compact__title{margin:0;font-size:1.15rem;line-height:1.2}.topbar-compact__sub{margin:0;font-size:.78rem;color:#e4cfaa}.topbar-compact__actions-desktop{display:flex;flex-direction:column;align-items:flex-end;gap:.35rem}.btn-compact{height:32px!important;min-height:32px!important;max-height:32px!important;box-sizing:border-box!important;padding:0 .65rem!important;font-size:.8rem!important;line-height:1!important;background:#251a14!important;border:1px solid rgba(214,173,74,.4)!important;color:#ffd76e!important;border-radius:6px!important;display:inline-flex!important;align-items:center!important;gap:.3rem!important;white-space:nowrap!important;cursor:pointer!important}.btn-compact:hover{background:#38271e!important}.btn-compact-gold{height:32px!important;min-height:32px!important;max-height:32px!important;box-sizing:border-box!important;padding:0 .65rem!important;font-size:.8rem!important;line-height:1!important;background:linear-gradient(180deg,#d6ad4a,#8e6c1e)!important;color:#120e0b!important;font-weight:700!important;border: none !important;border-radius:6px!important;display:inline-flex!important;align-items:center!important;gap:.3rem!important;white-space:nowrap!important;cursor:pointer!important}.btn-compact-danger{height:32px!important;min-height:32px!important;max-height:32px!important;box-sizing:border-box!important;padding:0 .65rem!important;font-size:.8rem!important;line-height:1!important;background:#b33a31!important;color:#fff!important;border:1px solid #7a2620!important;border-radius:6px!important;display:inline-flex!important;align-items:center!important;gap:.3rem!important;white-space:nowrap!important;cursor:pointer!important}.topbar-compact__hamburger{display:none;background:#251a14;border:1px solid #d6ad4a;color:#ffd76e;font-size:1.2rem;padding:.3rem .6rem;border-radius:6px;cursor:pointer;min-height:36px}.topbar-compact__mobile-dropdown{position:absolute;top:calc(100% + 6px);right:0;left:0;background:#120e0bfa;border:1px solid #d6ad4a;border-radius:8px;padding:1rem;box-shadow:0 10px 30px #000c;z-index:9999}.topbar-compact__mobile-content{display:flex;flex-direction:column;gap:.6rem}@media(max-width:820px){.topbar-compact__actions-desktop{display:none}.topbar-compact__hamburger{display:flex;align-items:center;justify-content:center}}@keyframes confettiFall{0%{transform:translateY(0) rotate(0);opacity:1}to{transform:translateY(105vh) rotate(720deg);opacity:0}}@keyframes compassSpin{0%{transform:rotate(0) scale(.9)}50%{transform:rotate(180deg) scale(1.1)}to{transform:rotate(360deg) scale(.9)}}@keyframes cardExploreFlip{0%{transform:scale(.85) rotateY(90deg);filter:brightness(2) drop-shadow(0 0 20px #ffd76e);opacity:0}50%{transform:scale(1.05) rotateY(0);filter:brightness(1.3) drop-shadow(0 0 15px #ffd76e);opacity:.9}to{transform:scale(1) rotateY(0);filter:brightness(1) drop-shadow(0 0 0 transparent);opacity:1}}.card-explore-animated{animation:cardExploreFlip .6s cubic-bezier(.175,.885,.32,1.275) forwards}@keyframes magnifyPulse{0%{transform:scale(.9) rotate(-10deg);filter:drop-shadow(0 0 10px rgba(255,215,110,.3))}50%{transform:scale(1.25) rotate(15deg);filter:drop-shadow(0 0 30px rgba(255,215,110,.8))}to{transform:scale(.9) rotate(-10deg);filter:drop-shadow(0 0 10px rgba(255,215,110,.3))}}@keyframes logoIntroScale{0%{transform:scale(.3) rotate(-15deg);opacity:0;filter:brightness(2) blur(10px)}60%{transform:scale(1.15) rotate(5deg);opacity:1;filter:brightness(1.3) blur(0px)}to{transform:scale(1) rotate(0);opacity:1;filter:brightness(1) blur(0px)}}@keyframes titleIntroGlow{0%{opacity:0;transform:translateY(20px)}40%{opacity:1;transform:translateY(0)}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@media(max-width:650px){.landing{padding:1rem .5rem!important}.landing h1{font-size:2.1rem!important;word-break:break-word!important;line-height:1.15!important;letter-spacing:1px!important}.landing .lead{font-size:.88rem!important;padding:0 .2rem!important;margin-bottom:1.8rem!important}.welcome-card{padding:1.2rem .8rem!important}.modal-backdrop .modal{padding:1rem!important;max-width:96vw!important;width:96vw!important;box-sizing:border-box!important;max-height:90vh!important;overflow-y:auto!important}.modal-backdrop .modal h2{font-size:1.2rem!important;word-break:break-word!important}.panel{padding:1rem .8rem!important}.panel h2{font-size:1.15rem!important;word-break:break-word!important}.slot-grid{grid-template-columns:repeat(2,1fr)!important;gap:.6rem!important}.btn-adjust{width:28px!important;height:28px!important;font-size:.9rem!important}.stat-row{font-size:.82rem!important}}@media(max-width:1040px){.dashboard{display:flex!important;flex-direction:column!important;gap:1rem!important}.dashboard__main,.dashboard__aside{display:contents!important}.hero-panel{order:1!important}.exploration-panel{order:2!important}.equipment-panel{order:3!important}.inventory-panel{order:4!important}.travel-panel{order:5!important}.bosses-panel{order:6!important}}@media(max-width:720px){.landing__content,.modal,.modal-backdrop,.zoom-modal__content{text-align:center}.landing__content h1,.landing__content h2,.landing__content h3,.landing__content p,.landing__content .eyebrow,.landing__content .lead{text-align:center!important;margin-left:auto!important;margin-right:auto!important}}@media(max-width:768px){body,p,span,h1,h2,h3,h4,button,div,strong,label{overflow-wrap:anywhere;word-break:break-word}.btn-compact-gold,.btn-compact{font-size:.76rem!important;padding:.35rem .6rem!important;white-space:nowrap!important}.topbar-compact__title{font-size:.82rem!important}}img[src*=Verso],img[src*=cards-base]:not([src*="mapa"]):not([src*="Mapa"]),img[src*=HERÓIS],img[src*=GUARDIÕES],img[src*=ITENS]{aspect-ratio:3/4!important;object-fit:contain!important;object-position:center!important;border-radius:8px;overflow:hidden}@media(max-width:640px){.malgor-showdown-grid{grid-template-columns:1fr!important;gap:1rem!important}.malgor-heroes-grid{grid-template-columns:1fr!important;gap:.6rem!important}.malgor-hero-card-item{padding:.6rem!important;gap:.6rem!important}.victory-modal-content{padding:1.2rem .8rem!important;width:95%!important}.victory-heroes-grid{grid-template-columns:repeat(auto-fit,minmax(115px,1fr))!important;gap:.6rem!important}}.modal-close-btn-corner,.zoom-modal__close{position:absolute!important;top:12px!important;right:12px!important;width:36px!important;height:36px!important;min-height:36px!important;min-width:36px!important;border-radius:50%!important;background:#1e1610f2!important;border:1.5px solid #d6ad4a!important;color:#ffd76e!important;font-size:1.2rem!important;font-weight:900!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;box-shadow:0 4px 15px #000000b3!important;z-index:2140000002!important;transition:all .2s ease!important;padding:0!important;line-height:1!important}.modal-close-btn-corner:hover,.zoom-modal__close:hover{background:#d6ad4a!important;color:#110c08!important;border-color:#fff!important;transform:scale(1.12) rotate(90deg)!important;box-shadow:0 0 20px #d6ad4ae6!important}.drawer-menu-list{display:flex;flex-direction:column;gap:.38rem;width:100%}.drawer-menu-item{width:100%!important;display:flex!important;align-items:center!important;gap:.65rem!important;padding:.62rem .9rem!important;font-size:.93rem!important;font-weight:700!important;color:#ffd76e!important;background:linear-gradient(135deg,#2a1f17f2,#140f0bfa)!important;border:1px solid rgba(214,173,74,.4)!important;border-radius:8px!important;cursor:pointer!important;box-shadow:0 2px 8px #0006!important;transition:all .18s cubic-bezier(.16,1,.3,1)!important;text-align:left!important;box-sizing:border-box!important;line-height:1.2!important;min-height:auto!important;height:auto!important;max-height:none!important}.drawer-menu-item:hover{background:linear-gradient(135deg,#413022fa,#231a13fa)!important;border-color:#ffd76e!important;color:#fff!important;transform:translate(4px)!important;box-shadow:0 0 14px #ffd76e59!important}.drawer-menu-item-gold{width:100%!important;display:flex!important;align-items:center!important;gap:.65rem!important;padding:.68rem .9rem!important;font-size:.95rem!important;font-weight:900!important;color:#110c08!important;background:linear-gradient(135deg,#ffd76e,#d6ad4a)!important;border:1.5px solid #ffe194!important;border-radius:8px!important;cursor:pointer!important;box-shadow:0 4px 15px #d6ad4a66!important;transition:all .18s cubic-bezier(.16,1,.3,1)!important;text-align:left!important;box-sizing:border-box!important;line-height:1.2!important;min-height:auto!important;height:auto!important;max-height:none!important}.drawer-menu-item-gold:hover{background:linear-gradient(135deg,#fff0ba,#ffd76e)!important;transform:translate(4px) scale(1.01)!important;box-shadow:0 0 18px #ffd76e99!important}.drawer-menu-item-danger{width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:.5rem!important;padding:.65rem 1rem!important;font-size:.92rem!important;font-weight:800!important;color:#ffc9c9!important;background:linear-gradient(135deg,#6e1818,#3b0909)!important;border:1px solid #ff4d4f!important;border-radius:8px!important;cursor:pointer!important;box-shadow:0 2px 10px #ff4d4f4d!important;transition:all .18s ease!important;box-sizing:border-box!important;min-height:auto!important;height:auto!important;max-height:none!important}.drawer-menu-item-danger:hover{background:linear-gradient(135deg,#a82020,#5c0f0f)!important;color:#fff!important;box-shadow:0 0 15px #ff4d4f80!important}.card-picker-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:1.1rem!important;width:100%!important;box-sizing:border-box!important}@media(max-width:768px){.card-picker-grid{grid-template-columns:repeat(2,1fr)!important;gap:.65rem!important}}.welcome-videos-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:.85rem!important;width:100%!important;box-sizing:border-box!important}@media(max-width:768px){.welcome-videos-grid{grid-template-columns:1fr!important;gap:.8rem!important}}.zoom-modal{position:fixed!important;inset:0!important;z-index:2140000000!important;background-image:linear-gradient(rgba(8, 5, 3, 0.20), rgba(4, 2, 1, 0.38)), var(--bg-cenario-url)!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;background-attachment:fixed!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:1rem!important;box-sizing:border-box!important}.zoom-modal__content{position:relative!important;z-index:2140000001!important;background:linear-gradient(180deg, rgba(22, 14, 9, 0.28), rgba(10, 6, 4, 0.38))!important;border:2px solid #d6ad4a!important;border-radius:12px!important;box-shadow:0 15px 50px #000000f2!important}.topbar-desktop-only{display:inline-flex;align-items:center;gap:.5rem}@media(max-width:768px){.topbar-desktop-only{display:none!important}.topbar-compact{padding:.6rem .85rem!important;gap:.6rem!important}}.online-hero-picker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem;width:100%}@media(max-width:768px){.online-hero-picker-grid{grid-template-columns:1fr!important;gap:1rem!important}}.mp-desktop-table{display:block}.mp-mobile-cards{display:none}@media(max-width:768px){.mp-desktop-table{display:none!important}.mp-mobile-cards{display:flex!important;flex-direction:column!important;gap:.85rem!important;width:100%!important}.mp-filter-bar{flex-direction:column!important;align-items:stretch!important}}

.dice-roll-modal-container{position:fixed!important;inset:0!important;z-index:2147483647!important}

.deck-select-modal-content{position:relative!important;z-index:1900000001!important;background:#16120e!important;border:2px solid #d6ad4a!important;border-radius:14px!important;box-shadow:0 10px 40px rgba(0,0,0,0.9)!important}

.eldravar-connecting-overlay{position:fixed!important;inset:0!important;z-index:2147483647!important;background:rgba(8,5,3,0.94)!important;backdrop-filter:blur(10px)!important;-webkit-backdrop-filter:blur(10px)!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;padding:1.5rem!important;box-sizing:border-box!important;animation:eldravarFadeIn .3s ease-out!important}
.eldravar-connecting-box{background:linear-gradient(145deg,#241a11,#0f0a06)!important;border:2px solid #ffd76e!important;border-radius:18px!important;padding:2.2rem 2rem!important;max-width:480px!important;width:100%!important;text-align:center!important;box-shadow:0 0 45px rgba(255,215,110,0.35),0 20px 60px rgba(0,0,0,0.9)!important;position:relative!important}
.eldravar-portal-spinner{width:80px!important;height:80px!important;margin:0 auto 1.4rem auto!important;border:4px solid rgba(214,173,74,0.2)!important;border-top:4px solid #ffd76e!important;border-right:4px solid #d6ad4a!important;border-radius:50%!important;animation:eldravarSpin 1.2s linear infinite!important;box-shadow:0 0 25px rgba(255,215,110,0.5)!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:2.2rem!important}
.eldravar-progress-bar-wrap{width:100%!important;height:8px!important;background:rgba(0,0,0,0.6)!important;border:1px solid rgba(214,173,74,0.4)!important;border-radius:6px!important;overflow:hidden!important;margin-top:1.4rem!important}
.eldravar-progress-bar-fill{height:100%!important;background:linear-gradient(90deg,#d6ad4a,#ffd76e,#ffffff,#ffd76e)!important;background-size:200% 100%!important;animation:eldravarProgressFill 4.5s ease-out forwards,eldravarShimmer 1.5s infinite linear!important;border-radius:6px!important}
@keyframes eldravarSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
@keyframes eldravarFadeIn{from{opacity:0;transform:scale(0.96)}to{opacity:1;transform:scale(1)}}
@keyframes eldravarProgressFill{0%{width:5%}30%{width:45%}70%{width:85%}100%{width:100%}}
@keyframes eldravarShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* ==========================================================================
   ENGINE DE CENÁRIOS VISUAIS V2 (REGIÕES, MENU, LOBBIES E POPUP DE BATALHA)
   ========================================================================== */

:root {
  --bg-cenario-url: var(--bg-cenario-url);
}

body, html {
  transition: background-image 0.8s ease-in-out !important;
  background-image: linear-gradient(rgba(10, 6, 3, 0.45), rgba(6, 4, 2, 0.65)), var(--bg-cenario-url) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  min-height: 100vh !important;
}

#root {
  position: relative !important;
  z-index: 1 !important;
}

.zoom-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1900000000 !important;
  background-image: linear-gradient(rgba(8, 5, 3, 0.20), rgba(4, 2, 1, 0.38)), var(--bg-cenario-url) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem !important;
}

.zoom-modal__content {
    background: linear-gradient(180deg, rgba(24, 16, 11, 0.82), rgba(12, 8, 5, 0.90)) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  border: 2.5px solid #ffd76e !important;
  box-shadow: 0 0 50px rgba(255, 215, 110, 0.35), 0 20px 60px rgba(0, 0, 0, 0.95) !important;
  border-radius: 14px !important;
}

/* Transição suave nos painéis e modais */
.modal, .modal-backdrop, .exploration-modal, .panel, .victory-modal-content {
  transition: background-image 0.8s ease-in-out !important;
}


/* ==========================================================================
   MOBILE COMBAT AUTO-FIT & SCENARIO VISIBILITY ENGINE
   ========================================================================== */

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  /* Modal Overlay: transparent and unobtrusive so the background scenario is 100% visible */
  .zoom-modal {
    padding: 2px !important;
    background-image: linear-gradient(rgba(8, 5, 3, 0.20), rgba(4, 2, 1, 0.38)), var(--bg-cenario-url) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .zoom-modal__content {
    background: linear-gradient(180deg, rgba(24, 16, 11, 0.82), rgba(12, 8, 5, 0.90)) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1.5px solid rgba(255, 215, 110, 0.35) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8) !important;
    border-radius: 12px !important;
    padding: 0.4rem 0.5rem !important;
    width: 98vw !important;
    max-width: 420px !important;
    max-height: 98vh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  /* Exploration Header */
  .zoom-modal__content > h2 {
    font-size: 1.05rem !important;
    margin: 0 0 0.2rem 0 !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9) !important;
  }

  /* Monster & Hero Section Headers */
  #combat-monster-section h3,
  #combat-hero-section h3 {
    font-size: 0.92rem !important;
    margin-bottom: 0.2rem !important;
    line-height: 1.2 !important;
    gap: 4px !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9) !important;
  }

  /* Circular Action Buttons (Bag 🎒 and Dice 🎲) */
  /* Circular Dice / Bag small icons if inside text */
  .zoom-modal__content .inline-text-icon-btn {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    border-radius: 50% !important;
    font-size: 0.7rem !important;
    padding: 0 !important;
    margin: 0 0 0 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 2. Monster and Hero Section Headers: Same width & same height */
  #combat-monster-section h3,
  #combat-hero-section h3,
  .zoom-modal__content h3 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(16, 11, 7, 0.78) !important;
    border: 1px solid rgba(214, 173, 74, 0.45) !important;
    border-radius: 6px !important;
    padding: 0 10px !important;
    margin: 2px auto 3px auto !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #ffd76e !important;
    width: var(--combat-rect-w) !important;
    min-width: var(--combat-rect-w) !important;
    max-width: var(--combat-rect-w) !important;
    height: var(--combat-rect-h) !important;
    min-height: var(--combat-rect-h) !important;
    max-height: var(--combat-rect-h) !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-wrap: nowrap !important;
  }

  /* 3. Action Buttons in Headers (Bag 🎒 & Dice 🎲) */
  /* Circular Dice / Bag small icons if inside text */
  .zoom-modal__content .inline-text-icon-btn {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    border-radius: 50% !important;
    font-size: 0.7rem !important;
    padding: 0 !important;
    margin: 0 0 0 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 4. Monster & Hero HP Counters: Same width & same height */
  #combat-monster-section div[style*="justifyContent"],
  #combat-monster-section div:has(> .btn-adjust),
  #combat-hero-section div[style*="justifyContent"],
  #combat-hero-section div:has(> .btn-adjust) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(16, 11, 7, 0.78) !important;
    border: 1px solid rgba(214, 173, 74, 0.45) !important;
    border-radius: 6px !important;
    padding: 0 8px !important;
    margin: 6px auto 5px auto !important;
    position: relative !important;
    z-index: 25 !important;
    background: rgba(16, 11, 7, 0.88) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.85) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65) !important;
    font-size: 0.78rem !important;
    width: var(--combat-rect-w) !important;
    min-width: var(--combat-rect-w) !important;
    max-width: var(--combat-rect-w) !important;
    height: var(--combat-rect-h) !important;
    min-height: var(--combat-rect-h) !important;
    max-height: var(--combat-rect-h) !important;
    box-sizing: border-box !important;
    gap: 8px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  #combat-monster-section .btn-adjust,
  #combat-hero-section .btn-adjust,
  .zoom-modal__content .btn-adjust {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    font-size: 0.8rem !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #combat-monster-section strong,
  #combat-hero-section strong {
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  /* 5. Combat Stats Badge: Same width & same height */
  .combat-stats-badge,
  .zoom-modal__content div[style*="fontSize: 0.85rem"],
  .zoom-modal__content div[style*="fontSize:0.85rem"],
  #combat-hero-section div[style*="fontSize: 0.85rem"],
  #combat-hero-section div[style*="fontSize:0.85rem"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(16, 11, 7, 0.78) !important;
    border: 1px solid rgba(214, 173, 74, 0.45) !important;
    border-radius: 6px !important;
    padding: 0 8px !important;
    margin: 3px auto !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65) !important;
    width: var(--combat-rect-w) !important;
    min-width: var(--combat-rect-w) !important;
    max-width: var(--combat-rect-w) !important;
    height: var(--combat-rect-h) !important;
    min-height: var(--combat-rect-h) !important;
    max-height: var(--combat-rect-h) !important;
    box-sizing: border-box !important;
    gap: 10px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  .combat-stats-badge span,
  .zoom-modal__content div[style*="fontSize: 0.85rem"] span,
  .zoom-modal__content div[style*="fontSize:0.85rem"] span {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #ffd76e !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  /* 6. Zoom Helper Text: Same width & same height */
  .combat-zoom-tip-badge,
  .zoom-modal__content p[style*="fontSize: 0.75rem"],
  .zoom-modal__content p[style*="fontSize:0.75rem"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(16, 11, 7, 0.78) !important;
    border: 1px solid rgba(214, 173, 74, 0.35) !important;
    border-radius: 6px !important;
    padding: 0 8px !important;
    margin: 2px auto 4px auto !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
    font-size: 0.68rem !important;
    color: #ffd76e !important;
    width: var(--combat-rect-w) !important;
    min-width: var(--combat-rect-w) !important;
    max-width: var(--combat-rect-w) !important;
    height: var(--combat-rect-h) !important;
    min-height: var(--combat-rect-h) !important;
    max-height: var(--combat-rect-h) !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    line-height: 1 !important;
  }

  
}



@media (min-width: 801px) {
  .monster-side-dice-btn,
  .combat-hero-side-actions {
    display: none !important;
  }
}



/* ==========================================================================
   PERFECT HERO & MONSTER CARD DIMENSIONS + MATCHING ITEM SLOTS HEIGHT
   ========================================================================== */
:root {
  --combat-card-w: clamp(165px, 45vw, 185px);
  --combat-card-h: calc(var(--combat-card-w) * 4 / 3);
  --combat-slot-gap: 4px;
  --combat-slot-h: calc((var(--combat-card-h) - (var(--combat-slot-gap) * 2)) / 3);
  --combat-slot-w: calc(var(--combat-slot-h) * 3 / 4);
}

/* Monster and Hero Card Wrappers */
.combat-monster-card-wrapper,
.combat-hero-card-wrapper {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: var(--combat-card-w) !important;
  height: var(--combat-card-h) !important;
  min-width: var(--combat-card-w) !important;
  min-height: var(--combat-card-h) !important;
  max-width: var(--combat-card-w) !important;
  max-height: var(--combat-card-h) !important;
  aspect-ratio: 3 / 4 !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

/* Monster Card Image */
#combat-monster-card-img,
.combat-monster-card-wrapper img,
#combat-monster-section img[alt*="Carta Revelada"],
#combat-monster-section img[alt*="Malgor Card"] {
  width: var(--combat-card-w) !important;
  height: var(--combat-card-h) !important;
  min-width: var(--combat-card-w) !important;
  min-height: var(--combat-card-h) !important;
  max-width: var(--combat-card-w) !important;
  max-height: var(--combat-card-h) !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 8px !important;
  border: 2px solid #d6ad4a !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85) !important;
  flex-shrink: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* Hero Main Card Image */
#combat-hero-main-card,
.combat-hero-card-wrapper img,
.combat-hero-symmetrical-layout > img {
  width: var(--combat-card-w) !important;
  height: var(--combat-card-h) !important;
  min-width: var(--combat-card-w) !important;
  min-height: var(--combat-card-h) !important;
  max-width: var(--combat-card-w) !important;
  max-height: var(--combat-card-h) !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 8px !important;
  border: 2px solid #d6ad4a !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85) !important;
  flex-shrink: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* Symmetrical Layout Container */
.combat-hero-symmetrical-layout {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: var(--combat-card-h) !important;
  min-height: var(--combat-card-h) !important;
  max-height: var(--combat-card-h) !important;
  margin: 4px 0 !important;
  box-sizing: border-box !important;
}

/* Left and Right Slot Columns (Equal to Hero Height) */
.combat-hero-symmetrical-layout .slots-left-col,
.combat-hero-symmetrical-layout .slots-right-col {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  gap: var(--combat-slot-gap) !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

/* Each Item Slot in 3:4 Proportions */
.symmetrical-combat-slot,
.combat-hero-symmetrical-layout .symmetrical-combat-slot,
.combat-hero-symmetrical-layout div[style*="width: 52px"],
.combat-hero-symmetrical-layout div[style*="width:52px"] {
  width: var(--combat-slot-w) !important;
  height: var(--combat-slot-h) !important;
  min-width: var(--combat-slot-w) !important;
  min-height: var(--combat-slot-h) !important;
  max-width: var(--combat-slot-w) !important;
  max-height: var(--combat-slot-h) !important;
  aspect-ratio: 3 / 4 !important;
  border-radius: 5px !important;
  border: 1px solid rgba(214, 173, 74, 0.5) !important;
  background: rgba(14, 9, 6, 0.8) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.symmetrical-combat-slot img,
.combat-hero-symmetrical-layout img:not(#combat-hero-main-card) {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 4px !important;
  display: block !important;
}

.symmetrical-combat-slot span,
.combat-hero-symmetrical-layout span {
  font-size: 0.42rem !important;
  font-weight: 700 !important;
  color: #ffd76e !important;
  line-height: 1 !important;
  text-align: center !important;
  padding: 1px !important;
}

/* ==========================================================================
   BACKPACK MODAL: STANDARDIZED BEAUTIFUL CARD ACTION BUTTONS
   ========================================================================== */
#eldravar_global_bag_modal_overlay article button {
  box-sizing: border-box !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  cursor: pointer !important;
}

@media (max-width: 768px) {
  #eldravar_global_bag_modal_overlay div[style*="display:grid"],
  #eldravar_global_bag_modal_overlay div[style*="display: grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }
}

/* ==========================================================================
   COMPACT SINGLE-LINE COMBAT OUTCOME POPUP BANNER
   ========================================================================== */
#combat-outcome-banner {
  white-space: nowrap !important;
  max-width: 90vw !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

@media (max-width: 800px) {
  #combat-outcome-banner {
    font-size: 0.80rem !important;
    padding: 0.30rem 0.80rem !important;
    border-radius: 10px !important;
    border-width: 1.5px !important;
    white-space: nowrap !important;
    max-width: 90vw !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.9) !important;
  }
}

/* ==========================================================================
   MOBILE ONLY: CLEAN DICE PROMPT (NO BOX, NO STRAY LINES, 2 CLEAN LINES)
   ========================================================================== */
@media (max-width: 800px), (max-height: 920px) and (max-width: 850px) {
  /* Remove stray separator lines */
  .zoom-modal__content div[style*="borderTop"],
  .zoom-modal__content div[style*="border-top"],
  .zoom-modal__content hr {
    border-top: none !important;
    border: none !important;
    padding-top: 4px !important;
    margin-top: 4px !important;
  }

  /* Clean dice prompt text in 2 lines with NO background box */
  .combat-dice-prompt-badge,
  .zoom-modal__content p[style*="color: #ffe7ae"],
  .zoom-modal__content p[style*="color:#ffe7ae"],
  .zoom-modal__content div[style*="borderTop"] > p,
  .zoom-modal__content div[style*="border-top"] > p {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    width: auto !important;
    min-width: auto !important;
    max-width: 295px !important;
    font-size: 0.76rem !important;
    color: #fce7b2 !important;
    line-height: 1.35 !important;
    text-align: center !important;
    display: block !important;
    margin: 6px auto 10px auto !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
  }
}

/* ==========================================================================
   MOBILE ONLY: HIDE ACCUMULATED DAMAGE, SHOW ONLY DELICATE ATTACK POWER
   ========================================================================== */
@media (max-width: 800px), (max-height: 920px) and (max-width: 850px) {
  /* Hide accumulated damage on mobile */
  .combat-accumulated-damage-stat-text,
  .zoom-modal__content span:has(> strong[style*="color: #ff7b7b"]),
  .zoom-modal__content span:has(> strong[style*="color:#ff7b7b"]) {
    display: none !important;
  }

  /* Compact attack power badge */
  .combat-stats-badge,
  .zoom-modal__content div[style*="fontSize: 0.85rem"],
  .zoom-modal__content div[style*="fontSize:0.85rem"] {
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 12px !important;
    margin: 2px auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .combat-attack-stat-text,
  .combat-stats-badge span {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #ffd76e !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  .combat-attack-stat-text strong,
  .combat-stats-badge strong {
    font-size: 0.84rem !important;
    color: #fff !important;
    margin-left: 2px !important;
  }
}

/* ==========================================================================
   HP RECTANGLES: PROPER SPACING & TOP LAYER Z-INDEX
   ========================================================================== */
#combat-monster-section div[style*="justifyContent"],
#combat-monster-section div:has(> .btn-adjust),
#combat-hero-section div[style*="justifyContent"],
#combat-hero-section div:has(> .btn-adjust) {
  position: relative !important;
  z-index: 25 !important;
  margin: 6px auto 5px auto !important;
  background: rgba(16, 11, 7, 0.88) !important;
  border: 1.2px solid rgba(214, 173, 74, 0.55) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.85) !important;
}

/* ==========================================================================
   MOBILE ONLY: INLINE ATTACK POWER (⚔️ X) NEXT TO LIFE COUNTER
   ========================================================================== */
.hero-inline-atk-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  margin-left: 8px !important;
  padding-left: 8px !important;
  border-left: 1.2px solid rgba(214, 173, 74, 0.45) !important;
  font-size: 0.82rem !important;
  color: #ffd76e !important;
  line-height: 1 !important;
}

.hero-inline-atk-badge strong {
  font-size: 0.90rem !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

@media (max-width: 800px), (max-height: 920px) and (max-width: 850px) {
  /* Hide the separate bottom stats badge on mobile */
  .combat-stats-badge,
  #combat-hero-section div[style*="fontSize: 0.85rem"],
  #combat-hero-section div[style*="fontSize:0.85rem"] {
    display: none !important;
  }
}

@media (min-width: 801px) {
  .hero-inline-atk-badge {
    display: none !important;
  }
}

/* ==========================================================================
   MOBILE TEXT RECTANGLES: 36PX HEIGHT WITH COMFORTABLE PADDING
   ========================================================================== */
@media (max-width: 800px), (max-height: 920px) and (max-width: 850px) {
  :root {
    --combat-rect-w: clamp(285px, 88vw, 325px);
    --combat-rect-h: 36px;
  }

  .zoom-modal__content > h2,
  #combat-monster-section h3,
  #combat-hero-section h3,
  .zoom-modal__content h3,
  #combat-monster-section div[style*="justifyContent"],
  #combat-monster-section div:has(> .btn-adjust),
  #combat-hero-section div[style*="justifyContent"],
  #combat-hero-section div:has(> .btn-adjust) {
    height: var(--combat-rect-h) !important;
    min-height: var(--combat-rect-h) !important;
    max-height: var(--combat-rect-h) !important;
    border-radius: 8px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   DESKTOP (PC) COMBAT STYLING: EXACT MATCH WITH DESIGN SCREENSHOT
   ========================================================================== */
@media (min-width: 801px) {
  /* 1. Side Action Buttons on PC: Large, round and overlapping cards */
  .combat-monster-card-wrapper,
  .combat-hero-card-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Monster Side Dice Button: On the right side */
  .monster-side-dice-btn,
  #combat-monster-section .monster-side-dice-btn {
    display: inline-flex !important;
    position: absolute !important;
    right: -30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #3d1417, #1c0507) !important;
    border: 2.5px solid #ff7875 !important;
    color: #ffd76e !important;
    font-size: 2rem !important;
    line-height: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.95), 0 0 16px rgba(255, 77, 79, 0.6) !important;
    z-index: 60 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.15s ease !important;
  }

  .monster-side-dice-btn:hover {
    transform: translateY(-50%) scale(1.1) !important;
  }

  /* Hero Side Actions (Bag on top, Dice on bottom): On the left side */
  .combat-hero-side-actions,
  #combat-hero-section .combat-hero-side-actions {
    display: flex !important;
    position: absolute !important;
    left: -30px !important;
    top: 40% !important;
    transform: translateY(-50%) !important;
    flex-direction: column !important;
    gap: 12px !important;
    z-index: 60 !important;
  }

  .combat-hero-side-actions .combat-side-action-btn,
  #combat-hero-section .combat-side-action-btn {
    display: inline-flex !important;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #332111, #140b04) !important;
    border: 2.5px solid #d6ad4a !important;
    color: #ffd76e !important;
    font-size: 2rem !important;
    line-height: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.95), 0 0 16px rgba(214, 173, 74, 0.5) !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.15s ease !important;
  }

  .combat-hero-side-actions .combat-side-action-btn:hover {
    transform: scale(1.1) !important;
  }

  /* 2. NO RECTANGLES AROUND TEXT ON PC (Clean elegant typography) */
  .zoom-modal__content > h2 {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    font-size: 1.65rem !important;
    font-weight: 900 !important;
    color: #ffd76e !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95) !important;
    margin: 0 0 0.8rem 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  #combat-monster-section h3 {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #ff9c91 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95) !important;
    margin: 0 0 0.5rem 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  #combat-hero-section h3 {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #ffd76e !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95) !important;
    margin: 0.4rem 0 0.5rem 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  /* 3. Clean Life Pill Counter on PC */
  #combat-monster-section div[style*="justifyContent"],
  #combat-monster-section div:has(> .btn-adjust),
  #combat-hero-section div[style*="justifyContent"],
  #combat-hero-section div:has(> .btn-adjust) {
    background: rgba(14, 9, 6, 0.88) !important;
    border: 1.5px solid rgba(214, 173, 74, 0.6) !important;
    border-radius: 8px !important;
    padding: 4px 16px !important;
    margin: 8px auto !important;
    width: fit-content !important;
    min-width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.85) !important;
  }

  /* 4. Bottom Attack & Damage Stats on PC (Clean text, no box) */
  .combat-stats-badge,
  #combat-hero-section div[style*="fontSize: 0.85rem"],
  #combat-hero-section div[style*="fontSize:0.85rem"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.3rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    text-align: center !important;
    margin: 0.8rem auto !important;
    padding: 0 !important;
  }

  .combat-stats-badge .combat-attack-stat-text {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #ffd76e !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
  }

  .combat-stats-badge .combat-accumulated-damage-stat-text {
    display: block !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #ffd76e !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
  }

  /* 5. Zoom Tip & Dice Prompt on PC (Clean text, no box) */
  .combat-zoom-tip-badge,
  .zoom-modal__content p[style*="fontSize: 0.75rem"],
  .zoom-modal__content p[style*="fontSize:0.75rem"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    font-size: 0.84rem !important;
    color: #ffd76e !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
    margin: 0.5rem auto !important;
    padding: 0 !important;
    display: block !important;
    text-align: center !important;
  }

  .combat-dice-prompt-badge {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    font-size: 0.92rem !important;
    color: #ffe7ae !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
    margin: 0.8rem auto !important;
    padding: 0 !important;
    display: block !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   EXACT SIDE ACTION BUTTONS: OUTSIDE THE CARDS & 100% CENTERED (PC & MOBILE)
   ========================================================================== */
:root {
  --combat-side-btn-size: 54px;
  --combat-side-btn-offset: calc(-1 * (var(--combat-slot-w, 48px) + 38px));
}

@media (min-width: 801px) {
  :root {
    --combat-side-btn-size: 58px;
    --combat-side-btn-offset: calc(-1 * (var(--combat-slot-w, 55px) + 42px));
  }
}

.combat-monster-card-wrapper,
.combat-hero-card-wrapper {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Monster Side Dice Button: Outside the monster card on the right side */
.monster-side-dice-btn,
#combat-monster-section .monster-side-dice-btn {
  display: inline-flex !important;
  position: absolute !important;
  right: var(--combat-side-btn-offset) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: var(--combat-side-btn-size) !important;
  height: var(--combat-side-btn-size) !important;
  min-width: var(--combat-side-btn-size) !important;
  min-height: var(--combat-side-btn-size) !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #3d1417, #1c0507) !important;
  border: 2.5px solid #ff7875 !important;
  color: #ffd76e !important;
  font-size: 1.85rem !important;
  line-height: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.95), 0 0 16px rgba(255, 77, 79, 0.6) !important;
  z-index: 70 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  transition: transform 0.15s ease !important;
}

.monster-side-dice-btn:hover {
  transform: translateY(-50%) scale(1.1) !important;
}

/* Hero Side Actions (Bag on top, Dice on bottom): Outside the hero slots on the left side */
.combat-hero-side-actions,
#combat-hero-section .combat-hero-side-actions {
  display: flex !important;
  position: absolute !important;
  left: var(--combat-side-btn-offset) !important;
  top: 48% !important;
  transform: translateY(-50%) !important;
  flex-direction: column !important;
  gap: 10px !important;
  z-index: 70 !important;
}

.combat-hero-side-actions .combat-side-action-btn,
#combat-hero-section .combat-side-action-btn {
  display: inline-flex !important;
  width: var(--combat-side-btn-size) !important;
  height: var(--combat-side-btn-size) !important;
  min-width: var(--combat-side-btn-size) !important;
  min-height: var(--combat-side-btn-size) !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #332111, #140b04) !important;
  border: 2.5px solid #d6ad4a !important;
  color: #ffd76e !important;
  font-size: 1.85rem !important;
  line-height: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.95), 0 0 16px rgba(214, 173, 74, 0.5) !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  transition: transform 0.15s ease !important;
}

.combat-hero-side-actions .combat-side-action-btn:hover {
  transform: scale(1.1) !important;
}

/* ==========================================================================
   BACKPACK MODAL: 100% PERFECT RESPONSIVE LAYOUT (NO CLIPPING ON MOBILE)
   ========================================================================== */
#eldravar_global_bag_modal_overlay {
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  #eldravar_global_bag_modal_overlay {
    padding: 0.4rem !important;
  }

  #eldravar_global_bag_modal_overlay > div,
  .bag-modal-container {
    width: 98vw !important;
    max-width: 98vw !important;
    max-height: 92vh !important;
    padding: 0.8rem 0.5rem !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
  }

  #eldravar_global_bag_modal_overlay h2 {
    font-size: 1.05rem !important;
    margin: 0 0 0.6rem 0 !important;
    padding-right: 2.2rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #eldravar_global_bag_modal_overlay h3 {
    font-size: 0.85rem !important;
    margin: 0.6rem 0 0.4rem 0 !important;
    padding-top: 0.4rem !important;
  }

  #eldravar_global_bag_modal_overlay div[style*="display:grid"],
  #eldravar_global_bag_modal_overlay div[style*="display: grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #eldravar_global_bag_modal_overlay article,
  .bag-card-article {
    padding: 0.35rem !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  #eldravar_global_bag_modal_overlay article button {
    font-size: 0.65rem !important;
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #eldravar_global_bag_modal_overlay article button[style*="Desequipar"],
  #eldravar_global_bag_modal_overlay article button[style*="Equipar"],
  #eldravar_global_bag_modal_overlay article button[style*="Usar"] {
    font-size: 0.68rem !important;
    height: 28px !important;
    min-height: 28px !important;
  }
}

/* ==========================================================================
   EQUAL SIZED DICE CONTROLS: "ROLAR DADO" & "DADO FÍSICO" (IDENTICAL SIZE)
   ========================================================================== */
.combat-dice-btn-roll,
.combat-dice-box-manual,
.zoom-modal__content button[style*="Rolagem Básica"],
.zoom-modal__content div:has(> input[placeholder="1-6"]) {
  width: 148px !important;
  min-width: 148px !important;
  max-width: 148px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid #d6ad4a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

.combat-dice-btn-roll {
  background: linear-gradient(135deg, #3d2a10, #1f1405) !important;
  color: #ffd76e !important;
  font-size: 0.92rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.combat-dice-box-manual {
  background: rgba(14, 9, 6, 0.85) !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.combat-dice-box-manual span {
  font-size: 0.84rem !important;
  color: #ffd76e !important;
  font-weight: bold !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.combat-dice-box-manual input,
.zoom-modal__content input[placeholder="1-6"] {
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 !important;
  border-radius: 5px !important;
  text-align: center !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  background: #0c0805 !important;
  color: #ffd76e !important;
  border: 1px solid rgba(214, 173, 74, 0.5) !important;
  box-sizing: border-box !important;
  line-height: 28px !important;
}

/* ==========================================================================
   MOBILE ONLY: 100% UNIFORM ALIGNMENT OF ALL RECTANGLES WITHOUT EXCEPTION
   ========================================================================== */
@media (max-width: 800px), (max-height: 920px) and (max-width: 850px) {
  :root {
    --combat-rect-w: 100%;
    --combat-rect-h: 36px;
  }

  .zoom-modal__content {
    width: min(94vw, 360px) !important;
    max-width: 360px !important;
    padding: 0.85rem 0.75rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Every rectangle element spans 100% of the content container width */
  .zoom-modal__content > h2,
  #combat-monster-section,
  #combat-hero-section,
  #combat-monster-section h3,
  #combat-hero-section h3,
  .zoom-modal__content h3,
  #combat-monster-section div[style*="justifyContent"],
  #combat-monster-section div:has(> .btn-adjust),
  #combat-hero-section div[style*="justifyContent"],
  #combat-hero-section div:has(> .btn-adjust),
  .combat-zoom-tip-badge,
  .zoom-modal__content p[style*="fontSize: 0.75rem"],
  .zoom-modal__content p[style*="fontSize:0.75rem"],
  .combat-dice-result-panel,
  .combat-history-panel,
  .zoom-modal__content div:has(> .combat-dice-btn-roll),
  .zoom-modal__content button[style*="Derrotar Monstro"],
  .zoom-modal__content div:has(> button[style*="Desistir"]),
  .zoom-modal__content div:has(> button[style*="FUGIR"]) {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Single-line Text Rectangles: Height 36px */
  .zoom-modal__content > h2,
  #combat-monster-section h3,
  #combat-hero-section h3,
  .zoom-modal__content h3,
  #combat-monster-section div[style*="justifyContent"],
  #combat-monster-section div:has(> .btn-adjust),
  #combat-hero-section div[style*="justifyContent"],
  #combat-hero-section div:has(> .btn-adjust),
  .combat-zoom-tip-badge,
  .zoom-modal__content p[style*="fontSize: 0.75rem"],
  .zoom-modal__content p[style*="fontSize:0.75rem"] {
    height: var(--combat-rect-h) !important;
    min-height: var(--combat-rect-h) !important;
    max-height: var(--combat-rect-h) !important;
    border-radius: 8px !important;
    padding: 0 12px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Dice roll buttons row: perfectly spans 100% with equal 50/50 split */
  .zoom-modal__content div:has(> .combat-dice-btn-roll) {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
  }

  .combat-dice-btn-roll,
  .combat-dice-box-manual {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    box-sizing: border-box !important;
  }

  /* Victory button & bottom action buttons: 100% aligned */
  .zoom-modal__content button[style*="Derrotar Monstro"] {
    width: 100% !important;
    margin: 0.6rem 0 !important;
  }

  .zoom-modal__content div:has(> button[style*="Desistir"]) {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .zoom-modal__content div:has(> button[style*="Desistir"]) button {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
  }
}

/* ==========================================================================
   MOBILE ONLY: COMPACT TITLE AND MONSTER GAP (REDUCED SPACING)
   ========================================================================== */
@media (max-width: 800px), (max-height: 920px) and (max-width: 850px) {
  .zoom-modal__content > h2 {
    margin: 0 0 3px 0 !important;
    padding: 0 10px !important;
  }

  #combat-monster-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #combat-monster-section h3 {
    margin: 2px auto 3px auto !important;
  }
}

/* ==========================================================================
   EMPTY ITEM SLOTS: 30% OPACITY BACKGROUND FILL
   ========================================================================== */
.symmetrical-combat-slot,
.combat-hero-symmetrical-layout .symmetrical-combat-slot,
.combat-hero-symmetrical-layout div[style*="width: 52px"],
.combat-hero-symmetrical-layout div[style*="width:52px"] {
  background: rgba(18, 12, 8, 0.30) !important;
  border: 1px solid rgba(214, 173, 74, 0.45) !important;
}

.symmetrical-combat-slot:has(> img),
.combat-hero-symmetrical-layout .symmetrical-combat-slot:has(> img) {
  background: rgba(18, 12, 8, 0.85) !important;
}

/* ==========================================================================
   TRANSLUCENT PANELS & MODALS: 30% LOWER OPACITY (SCENARIO SHOWS THROUGH)
   ========================================================================== */
.panel {
  background: linear-gradient(180deg, rgba(38, 26, 17, 0.62), rgba(18, 12, 8, 0.65)) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(214, 173, 74, 0.35) !important;
}

.modal {
  background: linear-gradient(180deg, rgba(34, 23, 15, 0.65), rgba(14, 9, 6, 0.70)) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(255, 222, 147, 0.45) !important;
}

.zoom-modal__content {
  background: linear-gradient(180deg, rgba(22, 14, 9, 0.55), rgba(10, 6, 4, 0.62)) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

@media (max-width: 800px), (max-height: 920px) and (max-width: 850px) {
  .zoom-modal__content {
    background: linear-gradient(180deg, rgba(22, 14, 9, 0.55), rgba(10, 6, 4, 0.62)) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
  }
}

/* Ensure inline attack badge is only shown in combat modal, not on main dashboard */
.hero-inline-atk-badge {
  display: none !important;
}

.zoom-modal .hero-inline-atk-badge,
.zoom-modal__content .hero-inline-atk-badge {
  display: inline-flex !important;
}

/* ==========================================================================
   DARKER PANELS & CARDS: OPACITY INCREASED BY 20% (DEEPER CONTRAST & READABILITY)
   ========================================================================== */
.panel,
.hero-panel,
.exploration-panel,
.equipment-panel,
.inventory-panel,
.travel-panel,
.bosses-panel,
.welcome-card {
  background: linear-gradient(180deg, rgba(22, 14, 9, 0.58), rgba(10, 6, 4, 0.62)) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(214, 173, 74, 0.35) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65) !important;
}

.topbar-compact {
  background: linear-gradient(180deg, rgba(22, 14, 9, 0.60), rgba(10, 6, 4, 0.65)) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.slot,
.inventory-card,
.item-card,
.hero-choice,
.summary {
  background: rgba(10, 6, 4, 0.48) !important;
  border: 1px solid rgba(214, 173, 74, 0.30) !important;
}

.modal,
.victory-modal-content,
.deck-select-modal-content {
  background: linear-gradient(180deg, rgba(24, 16, 10, 0.42), rgba(10, 6, 4, 0.48)) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(255, 222, 147, 0.45) !important;
}



@media (max-width: 800px), (max-height: 920px) and (max-width: 850px) {
  
}

/* ==========================================================================
   ZOOM CARD MODAL: SOLID HIGH-CONTRAST BACKGROUND (AS REQUESTED IN EXAMPLE 2)
   ========================================================================== */
.zoom-modal__content {
  background: linear-gradient(180deg, rgba(26, 17, 12, 0.88), rgba(12, 8, 5, 0.94)) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 2px solid #d6ad4a !important;
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.95), 0 0 25px rgba(214, 173, 74, 0.2) !important;
}

@media (max-width: 800px), (max-height: 920px) and (max-width: 850px) {
  .zoom-modal__content {
    background: linear-gradient(180deg, rgba(26, 17, 12, 0.88), rgba(12, 8, 5, 0.94)) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 2px solid #d6ad4a !important;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.95), 0 0 20px rgba(214, 173, 74, 0.2) !important;
  }
}

/* ==========================================================================
   CLEAN & ELIMINATE ALL STRAY HARSH SHADOWS ACROSS THE ENTIRE SITE
   ========================================================================== */
:root {
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

/* 1. Eliminate overlapping panel bleed shadows */
.panel,
.hero-panel,
.exploration-panel,
.equipment-panel,
.inventory-panel,
.travel-panel,
.bosses-panel,
.welcome-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

/* 2. Eliminate harsh shadows slicing across slots and item cards */
.slot,
.slot-empty,
.symmetrical-combat-slot,
.inventory-card,
.item-card,
.hero-choice,
.card-preview-container,
.card-image,
.card-fallback {
  box-shadow: none !important;
}

.slot-empty {
  box-shadow: none !important;
  background: rgba(18, 12, 8, 0.25) !important;
}

/* 3. Clean and remove stray inset/cutoff gradients */
body {
  background: transparent !important;
}

/* ==========================================================================
   DASHBOARD EQUIPMENT SLOTS: 100% PERFECT EQUAL SIZE & ALIGNMENT
   ========================================================================== */
.slot-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.85rem !important;
  align-items: stretch !important;
}

.slot {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 0.6rem !important;
  border-radius: 8px !important;
  border: 1px solid rgba(214, 173, 74, 0.35) !important;
  background: rgba(18, 12, 8, 0.28) !important;
  box-sizing: border-box !important;
  height: 100% !important;
}

.slot .eyebrow {
  font-size: 0.72rem !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  line-height: 18px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
  display: block !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  width: 100% !important;
  color: #ffd76e !important;
  font-weight: 800 !important;
}

.slot img {
  width: 100% !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  display: block !important;
}

.slot .slot-empty {
  width: 100% !important;
  aspect-ratio: 3 / 4 !important;
  border: 1.5px dashed rgba(214, 173, 74, 0.3) !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(14, 9, 6, 0.25) !important;
  color: rgba(244, 234, 210, 0.45) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  box-sizing: border-box !important;
  margin-bottom: 34px !important; /* Matches height of the Desequipar button + gap so empty & full slots have identical height */
}

.slot .button-secondary {
  width: 100% !important;
  min-height: 28px !important;
  height: 28px !important;
  max-height: 28px !important;
  font-size: 0.72rem !important;
  font-weight: bold !important;
  padding: 0 !important;
  margin-top: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 5px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

@media (max-width: 650px) {
  .slot-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }

  .slot {
    padding: 0.45rem !important;
  }
}

/* ==========================================================================
   MOBILE COMBAT HEADER: TIGHT COMPACT SPACING (AS IN USER PHOTO 1)
   ========================================================================== */
@media (max-width: 800px), (max-height: 920px) and (max-width: 850px) {
  .zoom-modal__content {
    padding-top: 6px !important;
  }

  .zoom-modal__content > h2 {
    margin: 2px auto 2px auto !important;
    padding: 0 !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    line-height: 1 !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
  }

  #combat-monster-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #combat-monster-section h3 {
    margin: 2px auto 4px auto !important;
  }

  .combat-monster-card-wrapper,
  #combat-monster-card-img {
    margin-top: 0 !important;
  }
}



/* ==========================================================================
   OFFICIAL MAP: PRESERVE NATURAL ASPECT RATIO (NEVER SQUISHED OR STRETCHED)
   ========================================================================== */
img[src*="mapa"],
img[src*="Mapa"],
img[alt*="Mapa"],
img[alt*="mapa"],
.official-eldravar-map-img {
  aspect-ratio: auto !important;
  object-fit: contain !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 82vh !important;
  border-radius: 6px !important;
  display: block !important;
}

/* ==========================================================================
   PC / DESKTOP BACKPACK MODAL & INVENTORY: PERFECT TEXT SIZING (NO CLIPPING)
   ========================================================================== */
@media (min-width: 769px) {
  #eldravar_global_bag_modal_overlay .bag-modal-container,
  #eldravar_global_bag_modal_overlay > div {
    max-width: 1060px !important;
    width: 92vw !important;
    padding: 1.8rem 2rem !important;
  }

  #eldravar_global_bag_modal_overlay div[style*="display:grid"],
  #eldravar_global_bag_modal_overlay div[style*="display: grid"] {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 1.1rem !important;
  }

  #eldravar_global_bag_modal_overlay article,
  .bag-card-article {
    padding: 0.65rem !important;
    gap: 7px !important;
  }

  #eldravar_global_bag_modal_overlay article button {
    font-size: 0.80rem !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 8px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Dashboard Inventory & Shop Cards on PC */
  .inventory-card,
  .item-card {
    min-width: 0 !important;
  }

  .inventory-card__body h3,
  .item-card__body h3 {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.25 !important;
  }

  .inventory-card button,
  .item-card button {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 0.82rem !important;
  }
}

/* ==========================================================================
   SCENARIO BG 100% RESTORED ON ALL MODALS & COMBAT (LOCATION BG PRESERVED)
   ========================================================================== */
.zoom-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2140000000 !important;
  background-image: linear-gradient(rgba(8, 5, 3, 0.20), rgba(4, 2, 1, 0.38)), var(--bg-cenario-url) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem !important;
  box-sizing: border-box !important;
}

/* Combat modal on mobile: translucent with scenario background shining through */
@media (max-width: 800px), (max-height: 920px) and (max-width: 850px) {
  .zoom-modal {
    padding: 2px !important;
    background-image: linear-gradient(rgba(8, 5, 3, 0.20), rgba(4, 2, 1, 0.38)), var(--bg-cenario-url) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .zoom-modal__content {
    background: linear-gradient(180deg, rgba(22, 14, 9, 0.35), rgba(10, 6, 4, 0.42)) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
  }
}

/* ==========================================================================
   CARD INSPECTION ZOOM POPUP: 20% TRANSPARENT BROWN & COMPACT FITTING WIDTH
   ========================================================================== */
.zoom-modal__content:has(.zoom-modal__image-wrapper),
.zoom-modal__content:has(.zoom-modal__controls) {
  width: auto !important;
  max-width: min(92vw, 440px) !important;
  background: linear-gradient(180deg, rgba(28, 18, 12, 0.80) 0%, rgba(14, 9, 6, 0.80) 100%) !important;
  border: 2px solid #d6ad4a !important;
  border-radius: 14px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(214, 173, 74, 0.35) !important;
  padding: 0.85rem 1.2rem 1.2rem 1.2rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  .zoom-modal__content:has(.zoom-modal__image-wrapper),
  .zoom-modal__content:has(.zoom-modal__controls) {
    max-width: 440px !important;
  }
}

@media (max-width: 768px) {
  .zoom-modal__content:has(.zoom-modal__image-wrapper),
  .zoom-modal__content:has(.zoom-modal__controls) {
    max-width: 92vw !important;
    padding: 0.75rem 0.85rem 1rem 0.85rem !important;
  }
}

/* ==========================================================================
   TOPBAR MENU & DROPDOWN: ALWAYS ON TOP OF EVERYTHING (HIGHEST FOREGROUND)
   ========================================================================== */
.topbar,
.topbar-compact {
  position: relative !important;
  z-index: 2000000000 !important;
}

.topbar-compact__mobile-dropdown,
.topbar-compact__dropdown,
.topbar__menu {
  position: absolute !important;
  z-index: 2000000001 !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.98), 0 0 25px rgba(214, 173, 74, 0.4) !important;
}

.drawer-menu-item,
.drawer-menu-item-gold,
.drawer-menu-item-danger {
  position: relative !important;
  z-index: 2000000002 !important;
}

.panel,
.hero-panel,
.exploration-panel,
.equipment-panel,
.inventory-panel,
.travel-panel,
.bosses-panel {
  position: relative !important;
  z-index: 10 !important;
}

/* ==========================================================================
   COMBAT MODAL: NO BLUR & 50% LOWER OPACITY (CRYSTAL CLEAR SCENARIO)
   ========================================================================== */
.zoom-modal {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.zoom-modal__content {
  background: linear-gradient(180deg, rgba(24, 15, 10, 0.40), rgba(10, 6, 4, 0.44)) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 800px), (max-height: 920px) and (max-width: 850px) {
  .zoom-modal {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .zoom-modal__content {
    background: linear-gradient(180deg, rgba(24, 15, 10, 0.38), rgba(10, 6, 4, 0.42)) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ==========================================================================
   CONSISTENT HARMONIOUS SPACING (TOPBAR, PANELS & SECTIONS)
   ========================================================================== */
.topbar,
.topbar-compact {
  margin-bottom: 1.35rem !important;
}

.dashboard,
.selection-grid,
.two-column {
  gap: 1.35rem !important;
}

.dashboard__main,
.dashboard__aside {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.35rem !important;
}

@media (max-width: 1040px) {
  .dashboard {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
  }
}

/* ==========================================================================
   ZOOM CARD MODAL: PROPORTIONAL CARD DISPLAY (NEVER GIGANTIC OR OVERFLOWING)
   ========================================================================== */
.zoom-modal__image-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-height: 72vh !important;
  padding: 0.5rem !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.zoom-modal__image-wrapper img,
#eldravar_topmost_card_zoom_overlay img {
  max-width: min(85vw, 360px) !important;
  max-height: 68vh !important;
  width: auto !important;
  height: auto !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9) !important;
}

@media (min-width: 769px) {
  .zoom-modal__image-wrapper img,
  #eldravar_topmost_card_zoom_overlay img {
    max-width: 380px !important;
    max-height: 70vh !important;
  }
}

/* ==========================================================================
   SLIM MEDIEVAL SCROLLBAR: NO CORNER OVERFLOW, NO ARROW BUTTONS, 4px SLIM
   ========================================================================== */
/* Firefox */
* {
  scrollbar-width: thin !important;
  scrollbar-color: #b38933 transparent !important;
}

/* Chrome, Edge, Safari, Opera */
::-webkit-scrollbar {
  width: 4px !important;
  height: 4px !important;
}

::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-track {
  background: transparent !important;
  border-radius: 10px !important;
  margin: 12px 0 !important;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d6ad4a, #7a5416) !important;
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 0 6px rgba(214, 173, 74, 0.3) !important;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffd76e, #9c6c1c) !important;
  box-shadow: 0 0 10px rgba(255, 215, 110, 0.6) !important;
}

::-webkit-scrollbar-corner {
  display: none !important;
  background: transparent !important;
}

/* ==========================================================================
   MAP MODAL TIP BANNER: WIDE RECTANGLE & COMPACT 2-3 LINES ON MOBILE
   ========================================================================== */
.map-modal-tip-banner {
  max-width: 90% !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .map-modal-tip-banner {
    width: 92vw !important;
    max-width: 92vw !important;
    font-size: 0.67rem !important;
    line-height: 1.25 !important;
    padding: 0.35rem 0.65rem !important;
    border-radius: 10px !important;
    bottom: 8px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   MAP MODAL HEADER: CLEAN MOBILE DESIGN (NO HD BADGE, 100% ROUND CLOSE BTN)
   ========================================================================== */
.modal-close-btn-corner,
.zoom-modal__close {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
}

@media (max-width: 768px) {
  /* 1. Hide the cluttered Alta Resolução badge on mobile */
  .map-hd-badge,
  span.map-hd-badge {
    display: none !important;
  }

  /* 2. Compact clean header bar */
  .zoom-modal__content > div:has(> div > h2:has-text("Mapa")),
  .zoom-modal__content div[style*="padding: 0.8rem 1.2rem"],
  .zoom-modal__content div[style*="padding:0.8rem 1.2rem"] {
    padding: 0.5rem 0.75rem !important;
    padding-right: 46px !important;
    gap: 0.4rem !important;
  }

  .zoom-modal__content h2 {
    font-size: 1.05rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* 3. Compact mobile controls row */
  .zoom-modal__content div:has(> button:has-text("🔍 -")) {
    gap: 0.35rem !important;
  }

  .zoom-modal__content button.button-secondary {
    height: 30px !important;
    min-height: 30px !important;
    font-size: 0.82rem !important;
    padding: 0 0.55rem !important;
  }
}

/* ==========================================================================
   MASTER BATTLE LAYOUT ENGINE: 1:1 RECONSTRUCTION OF AI REFERENCE
   (FULL TRANSPARENT SCENARIO HUD, RED & GOLD GLOWING BUTTONS, STAT BARS)
   ========================================================================== */

/* 1. Transparent immersive Combat HUD */
.zoom-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2140000000 !important;
  background-image: linear-gradient(rgba(8, 5, 3, 0.15), rgba(4, 2, 1, 0.35)), var(--bg-cenario-url) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem !important;
  box-sizing: border-box !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.zoom-modal__content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0.5rem !important;
  width: 100% !important;
  max-width: 880px !important;
  max-height: 98vh !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* 2. Top Header Title & Subtitle */
.zoom-modal__content > h2 {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0 0.5rem 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

.combat-header-region-title {
  font-family: Georgia, "Cinzel", "Times New Roman", serif !important;
  font-size: clamp(1.2rem, 3.2vw, 1.85rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.14em !important;
  color: #ffd76e !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 0 10px rgba(214, 173, 74, 0.4) !important;
  text-transform: uppercase !important;
  line-height: 1.1 !important;
}

.combat-header-mode-subtitle {
  font-family: Inter, Segoe UI, sans-serif !important;
  font-size: clamp(0.68rem, 1.8vw, 0.82rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  color: #d6ad4a !important;
  opacity: 0.9 !important;
  text-transform: uppercase !important;
  margin-top: 2px !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
}

/* 3. Monster Ribbon Name */
#combat-monster-section h3 {
  background: linear-gradient(90deg, transparent, rgba(75, 12, 16, 0.85) 20%, rgba(75, 12, 16, 0.85) 80%, transparent) !important;
  border-top: 1px solid rgba(255, 77, 79, 0.5) !important;
  border-bottom: 1px solid rgba(255, 77, 79, 0.5) !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #ff9c91 !important;
  font-family: Georgia, serif !important;
  font-size: clamp(0.85rem, 2.2vw, 1.1rem) !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
  padding: 3px 25px !important;
  margin: 0 auto 6px auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

/* 4. Hero Ribbon Name */
#combat-hero-section h3 {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffd76e !important;
  font-family: Georgia, serif !important;
  font-size: clamp(0.95rem, 2.4vw, 1.25rem) !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95) !important;
  margin: 4px auto 6px auto !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  letter-spacing: 0.05em !important;
}

/* 5. Monster Card & Right-side Glowing Dice Button */
.combat-monster-card-wrapper {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

.combat-side-btn-wrapper {
  position: absolute !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  z-index: 30 !important;
}

.combat-side-btn-label {
  font-size: 0.58rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-align: center !important;
  color: #ffd76e !important;
  text-shadow: 0 2px 8px #000, 0 0 4px #000 !important;
  width: 72px !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
}

/* Monster Dice: Crimson Red Glow on the Right */
.monster-dice-wrapper {
  right: -92px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.monster-side-dice-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 35%, #5e1319, #1e0507) !important;
  border: 2.5px solid #ff4d4f !important;
  box-shadow: 0 0 22px rgba(255, 77, 79, 0.65), 0 6px 20px rgba(0, 0, 0, 0.9) !important;
  color: #ffffff !important;
  font-size: 2rem !important;
  line-height: 0 !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  padding: 0 !important;
  margin: 0 !important;
}

.monster-side-dice-btn:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 0 28px rgba(255, 77, 79, 0.85), 0 8px 25px rgba(0, 0, 0, 0.95) !important;
}

/* 6. Hero Symmetrical Layout & Side Action Buttons */
.combat-hero-symmetrical-layout {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  margin: 0.4rem 0 !important;
  width: 100% !important;
}

.hero-dice-wrapper {
  left: -88px !important;
  bottom: 0 !important;
}

.hero-bag-wrapper {
  right: -88px !important;
  bottom: 0 !important;
}

.combat-hero-side-actions .combat-side-action-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 35%, #422913, #160d06) !important;
  border: 2.5px solid #ffd76e !important;
  box-shadow: 0 0 22px rgba(255, 215, 110, 0.6), 0 6px 20px rgba(0, 0, 0, 0.9) !important;
  color: #ffd76e !important;
  font-size: 2rem !important;
  line-height: 0 !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  padding: 0 !important;
  margin: 0 !important;
}

.combat-hero-side-actions .combat-side-action-btn:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 0 28px rgba(255, 215, 110, 0.8), 0 8px 25px rgba(0, 0, 0, 0.95) !important;
}

/* 7. Health & Stats Bars (1:1 with AI Design) */
#combat-monster-section div:has(> .btn-adjust),
#combat-hero-section div:has(> .btn-adjust) {
  background: rgba(14, 9, 6, 0.88) !important;
  border: 1.5px solid rgba(214, 173, 74, 0.55) !important;
  border-radius: 8px !important;
  padding: 4px 14px !important;
  margin: 6px auto !important;
  width: 100% !important;
  max-width: 330px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8) !important;
  box-sizing: border-box !important;
}

#combat-monster-section div:has(> .btn-adjust) strong,
#combat-hero-section div:has(> .btn-adjust) strong {
  font-size: 1.15rem !important;
  font-weight: 900 !important;
}

/* 8. Symmetrical Equipment Slot Box */
.symmetrical-combat-slot-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
}

.combat-slot-header-title {
  font-size: 0.58rem !important;
  font-weight: 900 !important;
  color: #d6ad4a !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  text-align: center !important;
  text-shadow: 0 2px 4px #000 !important;
}

.symmetrical-combat-slot {
  width: var(--combat-slot-w, 48px) !important;
  height: var(--combat-slot-h, 64px) !important;
  min-width: var(--combat-slot-w, 48px) !important;
  min-height: var(--combat-slot-h, 64px) !important;
  max-width: var(--combat-slot-w, 48px) !important;
  max-height: var(--combat-slot-h, 64px) !important;
  aspect-ratio: 3 / 4 !important;
  border-radius: 6px !important;
  border: 1.2px solid rgba(214, 173, 74, 0.45) !important;
  background: rgba(18, 12, 8, 0.40) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px !important;
  overflow: hidden !important;
}

.symmetrical-combat-slot.has-item {
  border: 1.5px solid #ffd76e !important;
  box-shadow: 0 0 10px rgba(214, 173, 74, 0.4) !important;
}

.symmetrical-combat-slot img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: contain !important;
  border-radius: 4px !important;
  display: block !important;
}

/* ==========================================================================
   MOBILE SPECIFIC ADAPTATION (IMAGE 1)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --combat-slot-w: 46px;
    --combat-slot-h: 61.3px;
  }

  .monster-dice-wrapper {
    right: -70px !important;
  }

  .monster-side-dice-btn,
  .combat-hero-side-actions .combat-side-action-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    font-size: 1.8rem !important;
  }

  .combat-side-btn-label {
    font-size: 0.54rem !important;
    width: 65px !important;
  }

  .hero-dice-wrapper {
    left: -70px !important;
    bottom: -10px !important;
  }

  .hero-bag-wrapper {
    right: -70px !important;
    bottom: -10px !important;
  }

  #combat-monster-section div:has(> .btn-adjust),
  #combat-hero-section div:has(> .btn-adjust) {
    max-width: 320px !important;
    padding: 3px 10px !important;
  }
}

/* ==========================================================================
   PC / DESKTOP SPECIFIC ADAPTATION (IMAGE 2)
   ========================================================================== */
@media (min-width: 769px) {
  :root {
    --combat-slot-w: 54px;
    --combat-slot-h: 72px;
  }

  .monster-dice-wrapper {
    right: -110px !important;
  }

  .hero-dice-wrapper {
    left: -110px !important;
    bottom: 5px !important;
  }

  .hero-bag-wrapper {
    right: -110px !important;
    bottom: 5px !important;
  }

  #combat-monster-section div:has(> .btn-adjust),
  #combat-hero-section div:has(> .btn-adjust) {
    max-width: 380px !important;
    padding: 6px 18px !important;
  }
}

/* ==========================================================================
   INTRO SPLASH & LOGO ANIMATION: ELEGANT CONTROLLED CARD SIZE (NEVER GIGANTIC)
   ========================================================================== */
img[src*="logo.webp"],
img[src*="logo.png"],
img[alt*="Soul Dungeon Logo"],
img[alt*="Soul Dungeon Crystal Logo"] {
  max-width: 150px !important;
  width: 135px !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  filter: drop-shadow(0 0 25px rgba(255, 215, 110, 0.7)) !important;
}

@media (max-width: 768px) {
  img[src*="logo.webp"],
  img[src*="logo.png"],
  img[alt*="Soul Dungeon Logo"],
  img[alt*="Soul Dungeon Crystal Logo"] {
    max-width: 115px !important;
    width: 105px !important;
  }
}

/* ==========================================================================
   PERFECT BATTLE LAYOUT (PC & MOBILE) MATCHING REFERENCE IMAGE 1
   ========================================================================== */

/* 1. Main Container & Card Proportions */
.combat-monster-card-wrapper {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

#combat-monster-card-img {
  width: clamp(165px, 45vw, 185px) !important;
  max-width: 185px !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  display: block !important;
}

#combat-hero-main-card {
  width: clamp(165px, 45vw, 185px) !important;
  min-width: clamp(165px, 45vw, 185px) !important;
  max-width: 185px !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  display: block !important;
}

/* 2. Monster Dice Button (Centered to the Right of Monster Card) */
.monster-side-dice-btn {
  position: absolute !important;
  right: -58px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #420205, #1c0001) !important;
  border: 2.5px solid #ff4d4f !important;
  color: #ff9c91 !important;
  font-size: 1.6rem !important;
  line-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85), 0 0 15px rgba(255, 77, 79, 0.6) !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 25 !important;
  transition: transform 0.15s ease !important;
}

.monster-side-dice-btn:hover {
  transform: translateY(-50%) scale(1.1) !important;
}

/* 3. Hero Symmetrical Layout: Slots Shifted UP + Round Buttons at Bottom */
.combat-hero-symmetrical-layout {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 0.4rem auto !important;
}

.combat-hero-symmetrical-layout .slots-left-col,
.combat-hero-symmetrical-layout .slots-right-col {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
}

/* Slimmer Compact Symmetrical Slots */
.symmetrical-combat-slot,
.combat-hero-symmetrical-layout .symmetrical-combat-slot {
  width: 46px !important;
  height: 61.3px !important;
  min-width: 46px !important;
  min-height: 61.3px !important;
  max-width: 46px !important;
  max-height: 61.3px !important;
  aspect-ratio: 3 / 4 !important;
  border-radius: 5px !important;
  border: 1px solid rgba(214, 173, 74, 0.45) !important;
  background: rgba(18, 12, 8, 0.30) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: static !important;
}

.symmetrical-combat-slot img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  display: block !important;
}

.symmetrical-combat-slot span {
  font-size: 0.40rem !important;
  font-weight: 800 !important;
  color: #ffd76e !important;
  line-height: 1 !important;
  text-align: center !important;
  padding: 1px !important;
}

/* 4. Circular Hero Action Buttons (🎲 at bottom left, 🎒 at bottom right) */
.hero-side-dice-btn,
.hero-side-bag-btn {
  position: static !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #332111, #140b04) !important;
  border: 2.5px solid #d6ad4a !important;
  color: #ffd76e !important;
  font-size: 1.5rem !important;
  line-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85), 0 0 14px rgba(214, 173, 74, 0.5) !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: auto 0 0 0 !important;
  transition: transform 0.15s ease !important;
}

.hero-side-dice-btn:hover,
.hero-side-bag-btn:hover {
  transform: scale(1.1) !important;
}

/* Completely hide all text under side buttons on all screens */
.combat-side-btn-label {
  display: none !important;
}

/* 5. Mobile Adjustments */
@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .monster-side-dice-btn {
    right: -48px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    font-size: 1.35rem !important;
  }

  .symmetrical-combat-slot,
  .combat-hero-symmetrical-layout .symmetrical-combat-slot {
    width: 40px !important;
    height: 50.6px !important;
    min-width: 40px !important;
    min-height: 50.6px !important;
    max-width: 40px !important;
    max-height: 50.6px !important;
  }

  .hero-side-dice-btn,
  .hero-side-bag-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    font-size: 1.3rem !important;
  }

  .combat-hero-symmetrical-layout {
    gap: 4px !important;
  }
}

/* ==========================================================================
   STRICT COLUMN ALIGNMENT: 🎲 UNDER ARMADURA, 🎒 UNDER ANEL/ESCUDO
   ========================================================================== */

/* Disable any old floating container */
.combat-hero-side-actions,
.combat-side-btn-wrapper {
  display: none !important;
}

.combat-hero-symmetrical-layout {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 0.25rem auto !important;
}

.combat-hero-symmetrical-layout .slots-left-col,
.combat-hero-symmetrical-layout .slots-right-col {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 2px !important;
  flex-shrink: 0 !important;
  width: 46px !important;
}

/* Compact slots to fit perfectly above life bar */
.symmetrical-combat-slot,
.combat-hero-symmetrical-layout .symmetrical-combat-slot {
  position: static !important;
  width: 46px !important;
  height: 56px !important;
  min-width: 46px !important;
  min-height: 56px !important;
  max-width: 46px !important;
  max-height: 56px !important;
  aspect-ratio: 3 / 4 !important;
  border-radius: 5px !important;
  border: 1px solid rgba(214, 173, 74, 0.45) !important;
  background: rgba(18, 12, 8, 0.30) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Round buttons in column flow */
.hero-side-dice-btn,
.hero-side-bag-btn {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #332111, #140b04) !important;
  border: 2px solid #d6ad4a !important;
  color: #ffd76e !important;
  font-size: 1.5rem !important;
  line-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85), 0 0 12px rgba(214, 173, 74, 0.45) !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 2px 0 0 0 !important;
  z-index: 15 !important;
  box-sizing: border-box !important;
  transition: transform 0.15s ease !important;
}

.hero-side-dice-btn:hover,
.hero-side-bag-btn:hover {
  transform: scale(1.08) !important;
}

/* Mobile responsive sizing */
@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .combat-hero-symmetrical-layout .slots-left-col,
  .combat-hero-symmetrical-layout .slots-right-col {
    width: 40px !important;
    gap: 2px !important;
  }

  .symmetrical-combat-slot,
  .combat-hero-symmetrical-layout .symmetrical-combat-slot {
    width: 40px !important;
    height: 48px !important;
    min-width: 40px !important;
    min-height: 48px !important;
    max-width: 40px !important;
    max-height: 48px !important;
  }

  .hero-side-dice-btn,
  .hero-side-bag-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    font-size: 1.3rem !important;
  }
}

/* ==========================================================================
   COMBAT HEADER: HIDE REDUNDANT MONSTER TITLE & MATCH EXPLORAÇÃO GOLD COLOR
   ========================================================================== */
.combat-header-region-title {
  color: #ffd76e !important;
  font-weight: 900 !important;
  letter-spacing: 1.5px !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(214, 173, 74, 0.4) !important;
}

.combat-header-mode-subtitle {
  color: #ffd76e !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  opacity: 1 !important;
  font-size: 0.85rem !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 12px rgba(214, 173, 74, 0.35) !important;
  margin-top: 2px !important;
}

/* Hide any remaining monster title header above card */
#combat-monster-section > h3,
#combat-monster-section h3:first-child,
.combat-monster-banner-title {
  display: none !important;
}

/* ==========================================================================
   MONSTER CARD: CRIMSON RED BORDER & THREATENING GLOW
   ========================================================================== */
#combat-monster-card-img,
.combat-monster-card-wrapper img {
  border: 2px solid #ff4d4f !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.85), 0 0 16px rgba(255, 77, 79, 0.45) !important;
  border-radius: 8px !important;
}

/* ==========================================================================
   PERFECT BOTTOM ALIGNMENT: BUTTONS FLUSH WITH BOTTOM EDGE OF HERO CARD
   ========================================================================== */
.combat-hero-symmetrical-layout {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0.3rem auto !important;
}

.combat-hero-card-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

#combat-hero-main-card {
  width: clamp(160px, 44vw, 180px) !important;
  min-width: clamp(160px, 44vw, 180px) !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  display: block !important;
}

/* Columns match the EXACT height of the hero card */
.combat-hero-symmetrical-layout .slots-left-col,
.combat-hero-symmetrical-layout .slots-right-col {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 3px !important;
  flex-shrink: 0 !important;
  width: 46px !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

/* Compact slots that proportionally scale inside the column */
.symmetrical-combat-slot,
.combat-hero-symmetrical-layout .symmetrical-combat-slot {
  position: static !important;
  width: 46px !important;
  height: 52px !important;
  min-width: 46px !important;
  min-height: 52px !important;
  max-width: 46px !important;
  max-height: 52px !important;
  aspect-ratio: 3 / 4 !important;
  border-radius: 4px !important;
  border: 1px solid rgba(214, 173, 74, 0.45) !important;
  background: rgba(18, 12, 8, 0.30) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

/* Circular action buttons flush at the bottom */
.hero-side-dice-btn,
.hero-side-bag-btn {
  position: static !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #332111, #140b04) !important;
  border: 2px solid #d6ad4a !important;
  color: #ffd76e !important;
  font-size: 1.4rem !important;
  line-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85), 0 0 10px rgba(214, 173, 74, 0.4) !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  transition: transform 0.15s ease !important;
}

/* Mobile responsive sizing */
@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .combat-hero-symmetrical-layout .slots-left-col,
  .combat-hero-symmetrical-layout .slots-right-col {
    width: 36px !important;
    gap: 2px !important;
  }

  .symmetrical-combat-slot,
  .combat-hero-symmetrical-layout .symmetrical-combat-slot {
    width: 36px !important;
    height: 46px !important;
    min-width: 36px !important;
    min-height: 46px !important;
    max-width: 36px !important;
    max-height: 46px !important;
  }

  .hero-side-dice-btn,
  .hero-side-bag-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    font-size: 1.18rem !important;
  }

  .combat-hero-symmetrical-layout {
    gap: 5px !important;
  }
}

/* ==========================================================================
   MONSTER DICE POSITIONING: CLOSER TO CARD (ALIGNED WITH TITLE EDGE)
   ========================================================================== */
.monster-side-dice-btn {
  position: absolute !important;
  right: -28px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #420205, #1c0001) !important;
  border: 2.5px solid #ff4d4f !important;
  color: #ff9c91 !important;
  font-size: 1.55rem !important;
  line-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85), 0 0 16px rgba(255, 77, 79, 0.6) !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 25 !important;
  transition: transform 0.15s ease !important;
}

.monster-side-dice-btn:hover {
  transform: translateY(-50%) scale(1.1) !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .monster-side-dice-btn {
    right: -24px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    font-size: 1.3rem !important;
  }
}

/* ==========================================================================
   COMPACT SLOTS (38px x 48px) & 100% FLUSH BASE WITH HERO CARD
   ========================================================================== */
.combat-hero-symmetrical-layout {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0.25rem auto !important;
}

.combat-hero-card-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

#combat-hero-main-card {
  width: clamp(160px, 44vw, 180px) !important;
  min-width: clamp(160px, 44vw, 180px) !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  display: block !important;
}

/* Left & Right columns stretch to exact height of hero card */
.combat-hero-symmetrical-layout .slots-left-col,
.combat-hero-symmetrical-layout .slots-right-col {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 2px !important;
  flex-shrink: 0 !important;
  width: 40px !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

/* Compact slots */
.symmetrical-combat-slot,
.combat-hero-symmetrical-layout .symmetrical-combat-slot {
  position: static !important;
  width: 40px !important;
  height: 48px !important;
  min-width: 40px !important;
  min-height: 48px !important;
  max-width: 40px !important;
  max-height: 48px !important;
  aspect-ratio: 3 / 4 !important;
  border-radius: 4px !important;
  border: 1px solid rgba(214, 173, 74, 0.45) !important;
  background: rgba(18, 12, 8, 0.30) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.symmetrical-combat-slot span {
  font-size: 0.38rem !important;
  line-height: 1 !important;
  padding: 1px !important;
}

/* Circular buttons sitting flush at the bottom edge */
.hero-side-dice-btn,
.hero-side-bag-btn {
  position: static !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #332111, #140b04) !important;
  border: 2px solid #d6ad4a !important;
  color: #ffd76e !important;
  font-size: 1.3rem !important;
  line-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85), 0 0 10px rgba(214, 173, 74, 0.4) !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  transition: transform 0.15s ease !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .combat-hero-symmetrical-layout .slots-left-col,
  .combat-hero-symmetrical-layout .slots-right-col {
    width: 34px !important;
  }

  .symmetrical-combat-slot,
  .combat-hero-symmetrical-layout .symmetrical-combat-slot {
    width: 34px !important;
    height: 46px !important;
    min-width: 34px !important;
    min-height: 46px !important;
    max-width: 34px !important;
    max-height: 46px !important;
  }

  .hero-side-dice-btn,
  .hero-side-bag-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    font-size: 1.15rem !important;
  }
}

/* ==========================================================================
   COMBAT MODAL BOX: 40% OPACITY, 20% SUBTLE BLUR & ROUNDED CORNERS
   ========================================================================== */
.zoom-modal {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.zoom-modal__content {
  background: linear-gradient(180deg, rgba(28, 18, 12, 0.40), rgba(12, 8, 5, 0.40)) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  border: 1.5px solid rgba(214, 173, 74, 0.5) !important;
  border-radius: 14px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.85), 0 0 20px rgba(214, 173, 74, 0.15) !important;
}

@media (max-width: 800px), (max-height: 920px) and (max-width: 850px) {
  .zoom-modal__content {
    background: linear-gradient(180deg, rgba(28, 18, 12, 0.40), rgba(12, 8, 5, 0.40)) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border-radius: 12px !important;
  }
}

/* ==========================================================================
   MONSTER DICE: DIRECT VISIBLE ELEMENT (RIGHT: -28px / -24px MOBILE)
   ========================================================================== */
.monster-side-dice-btn {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  right: -30px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #420205, #1c0001) !important;
  border: 2.5px solid #ff4d4f !important;
  color: #ff9c91 !important;
  font-size: 1.55rem !important;
  line-height: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85), 0 0 16px rgba(255, 77, 79, 0.6) !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 50 !important;
  transition: transform 0.15s ease !important;
}

.monster-side-dice-btn:hover {
  transform: translateY(-50%) scale(1.1) !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .monster-side-dice-btn {
    right: -24px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    font-size: 1.3rem !important;
  }
}

/* ==========================================================================
   BACKPACK MODAL CARDS: PERFECT CONTAINMENT ON PC & MOBILE (NO OVERFLOW)
   ========================================================================== */
.bag-card-article {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  background: linear-gradient(180deg, rgba(28, 19, 13, 0.75), rgba(14, 9, 6, 0.90)) !important;
  padding: 0.55rem !important;
  border-radius: 8px !important;
  border: 1.5px solid #d6ad4a !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  width: 100% !important;
}

.bag-card-article button {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

@media (min-width: 769px) {
  .bag-modal-container div[style*="display:grid"],
  .bag-modal-container div[style*="display: grid"] {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)) !important;
    gap: 1.1rem !important;
  }
}

@media (max-width: 768px) {
  .bag-modal-container div[style*="display:grid"],
  .bag-modal-container div[style*="display: grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .bag-card-article button {
    font-size: 0.65rem !important;
    padding: 0 0.3rem !important;
  }
}

/* ==========================================================================
   MOBILE DASHBOARD PANEL ORDER: EXPLORATION BEFORE EQUIPMENT
   ========================================================================== */
@media (max-width: 1040px) {
  .dashboard {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
  }

  .dashboard__main,
  .dashboard__aside {
    display: contents !important;
  }

  /* 1. Status Físicos (Hero Panel) */
  .hero-panel {
    order: 1 !important;
  }

  /* 2. Explorar Região (Exploration Panel - BEFORE EQUIPMENT) */
  .exploration-panel {
    order: 2 !important;
  }

  /* 3. Equipamentos Ativos (Equipment Panel) */
  .equipment-panel {
    order: 3 !important;
  }

  /* 4. Mochila (Inventory Panel) */
  .inventory-panel {
    order: 4 !important;
  }

  /* 5. Movimentação e Viagem (Travel Panel) */
  .travel-panel {
    order: 5 !important;
  }

  /* 6. Chefes e Guardiões (Bosses Panel) */
  .bosses-panel {
    order: 6 !important;
  }
}

/* ==========================================================================
   TRAVEL SECTION: SINGLE-LINE BUTTON & UNBROKEN DIFFICULTY BADGES
   ========================================================================== */
.travel-panel button.button-full {
  white-space: nowrap !important;
  word-break: keep-all !important;
  font-size: clamp(0.72rem, 2.4vw, 0.85rem) !important;
  padding: 0.6rem 0.35rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.travel-panel span {
  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.travel-panel h3 {
  line-height: 1.2 !important;
  padding-right: 0.4rem !important;
  flex: 1 !important;
}

@media (max-width: 480px) {
  .travel-panel button.button-full {
    font-size: 0.72rem !important;
    padding: 0.55rem 0.25rem !important;
  }
}

/* Mobile travel cards: center the real content, not just the parent column. */
@media (max-width: 600px) {
  .app-shell .travel-panel {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    overflow: hidden !important;
  }

  .app-shell .travel-panel > div,
  .app-shell .travel-panel article,
  .app-shell .travel-panel [style*="background: rgba(0,0,0,0.22)"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .app-shell .travel-panel > div[style*="justify-content: space-between"],
  .app-shell .travel-panel > div[style*="justifyContent"] {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.55rem !important;
  }

  .app-shell .travel-panel h2,
  .app-shell .travel-panel h3,
  .app-shell .travel-panel p,
  .app-shell .travel-panel div {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .app-shell .travel-panel h3 {
    padding-right: 0 !important;
    flex: 1 1 auto !important;
    font-size: 0.98rem !important;
  }

  .app-shell .travel-panel span {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    word-break: normal !important;
  }

  .app-shell .travel-panel [style*="borderLeft"],
  .app-shell .travel-panel [style*="border-left"] {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0.55rem !important;
    text-align: left !important;
  }

  .app-shell .travel-panel button.button-full {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    line-height: 1.18 !important;
    padding: 0.62rem 0.45rem !important;
  }
}

/* ==========================================================================
   MOBILE UX: HIDE ALL SCROLLBARS ON MOBILE & TOUCH SCREENS (CLEAN IMMERSIVE)
   ========================================================================== */
@media (max-width: 850px), (pointer: coarse) {
  * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  ::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}

/* ==========================================================================
   CENTERED MATCH MENU MODAL: NO BLUR, CLEAN DARK OVERLAY, NO OVERFLOW/CUT OFF
   ========================================================================== */
.match-menu-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0.75rem 0.5rem !important;
  box-sizing: border-box !important;
}

.match-menu-modal-box {
  position: relative !important;
  z-index: 2147483647 !important;
  width: 94vw !important;
  max-width: 390px !important;
  max-height: 94vh !important;
  background: linear-gradient(180deg, #1f150f 0%, #120b07 100%) !important;
  border: 2px solid #d6ad4a !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.98), 0 0 30px rgba(214, 173, 74, 0.35) !important;
  padding: 1rem 0.85rem !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin: auto !important;
}

.drawer-menu-list {
  position: static !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.32rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 0 0.4rem 0 !important;
  box-shadow: none !important;
}

.drawer-menu-item,
.drawer-menu-item-gold,
.drawer-menu-item-danger {
  position: static !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  padding: 0 0.8rem !important;
  font-size: 0.88rem !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  text-align: left !important;
  box-sizing: border-box !important;
  line-height: 1.2 !important;
  min-height: 40px !important;
  height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

@media (max-width: 600px), (max-height: 800px) {
  .match-menu-modal-box {
    max-height: 96vh !important;
    padding: 0.8rem 0.65rem !important;
  }

  .drawer-menu-list {
    gap: 0.28rem !important;
    padding-bottom: 0.5rem !important;
  }

  .drawer-menu-item,
  .drawer-menu-item-gold,
  .drawer-menu-item-danger {
    min-height: 36px !important;
    height: 36px !important;
    max-height: 36px !important;
    font-size: 0.82rem !important;
    padding: 0 0.65rem !important;
    gap: 0.45rem !important;
  }
}

.symmetrical-combat-slot span {
  font-size: 0.42rem !important;
  line-height: 1.1 !important;
  padding: 1px !important;
}

/* Keep dice and backpack strictly flush at the bottom edge */
.hero-side-dice-btn,
.hero-side-bag-btn {
  position: static !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  font-size: 1.35rem !important;
  flex-shrink: 0 !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .combat-hero-symmetrical-layout .slots-left-col,
  .combat-hero-symmetrical-layout .slots-right-col {
    width: 40px !important;
    gap: 2px !important;
  }

  .symmetrical-combat-slot,
  .combat-hero-symmetrical-layout .symmetrical-combat-slot {
    width: 40px !important;
    height: 49px !important;
    min-width: 40px !important;
    min-height: 49px !important;
    max-width: 40px !important;
    max-height: 49px !important;
  }

  .hero-side-dice-btn,
  .hero-side-bag-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    font-size: 1.2rem !important;
  }
}

/* ==========================================================================
   MOBILE COMBAT REFINEMENTS: HEADER BREATHING ROOM, CLOSER MONSTER DICE,
   AND EXTRA GAP BETWEEN HERO CARD & SIDE COLUMNS
   ========================================================================== */

/* 1. Header titles sizing & padding to never cut off on mobile */
.combat-header-region-title {
  color: #ffd76e !important;
  font-weight: 900 !important;
  letter-spacing: 1.2px !important;
  font-size: clamp(1.05rem, 4.5vw, 1.45rem) !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(214, 173, 74, 0.4) !important;
}

.combat-header-mode-subtitle {
  color: #ffd76e !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  opacity: 1 !important;
  font-size: 0.75rem !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 12px rgba(214, 173, 74, 0.35) !important;
  margin-top: 1px !important;
}

/* 2. Side columns gap from Hero Card */
.combat-hero-symmetrical-layout {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0.3rem auto !important;
}

/* 3. Mobile Specific Adjustments */
@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .zoom-modal__content {
    padding: 1.2rem 0.6rem 0.8rem 0.6rem !important;
  }

  .combat-header-region-title {
    font-size: 1.15rem !important;
  }

  .combat-header-mode-subtitle {
    font-size: 0.70rem !important;
  }

  /* Monster dice brought a bit more to the left so it doesn't touch screen edge */
  .monster-side-dice-btn {
    right: -16px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    font-size: 1.3rem !important;
  }

  /* Gap between hero card and side columns (no touching) */
  .combat-hero-symmetrical-layout {
    gap: 10px !important;
  }

  .combat-hero-symmetrical-layout .slots-left-col,
  .combat-hero-symmetrical-layout .slots-right-col {
    width: 40px !important;
    gap: 3px !important;
  }

  .symmetrical-combat-slot,
  .combat-hero-symmetrical-layout .symmetrical-combat-slot {
    width: 40px !important;
    height: 48px !important;
    min-width: 40px !important;
    min-height: 48px !important;
    max-width: 40px !important;
    max-height: 48px !important;
  }

  .hero-side-dice-btn,
  .hero-side-bag-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    font-size: 1.2rem !important;
  }
}

/* ==========================================================================
   BACKPACK MODAL CARDS: SPACIOUS 200px COLUMNS (NO CLIPPING / OVERFLOW)
   ========================================================================== */
.bag-modal-container {
  max-width: 1180px !important;
  width: 95vw !important;
  box-sizing: border-box !important;
}

.bag-card-article {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  background: linear-gradient(180deg, rgba(28, 19, 13, 0.75), rgba(14, 9, 6, 0.90)) !important;
  padding: 0.6rem !important;
  border-radius: 8px !important;
  border: 1.5px solid #d6ad4a !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  width: 100% !important;
}

.bag-card-article button {
  box-sizing: border-box !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (min-width: 769px) {
  .bag-modal-container div[style*="display:grid"],
  .bag-modal-container div[style*="display: grid"] {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 1.2rem !important;
  }
}

@media (max-width: 768px) {
  .bag-modal-container div[style*="display:grid"],
  .bag-modal-container div[style*="display: grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .bag-card-article button {
    font-size: 0.68rem !important;
    padding: 0 0.35rem !important;
    height: 28px !important;
    min-height: 28px !important;
  }
}

/* ==========================================================================
   EXPLORATION POPUP & CARD BORDERS:
   - 0% BLUR, 60% OPACITY (20% DARKER)
   - HERO CARDS: GREEN BORDER (#52c41a)
   - MONSTER CARDS: RED BORDER (#ff4d4f)
   - EVENT / MERCHANT CARDS: YELLOW BORDER (#ffd76e)
   ========================================================================== */
.zoom-modal__content {
  background: linear-gradient(180deg, rgba(22, 14, 9, 0.60), rgba(10, 6, 4, 0.62)) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1.5px solid rgba(214, 173, 74, 0.5) !important;
  border-radius: 14px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.95) !important;
}

/* 1. HERO CARDS -> GREEN BORDER */
#combat-hero-main-card,
.combat-hero-card-wrapper img,
.card-border-hero {
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5) !important;
  border-radius: 8px !important;
}

/* 2. MONSTER CARDS -> RED BORDER */
#combat-monster-card-img,
.combat-monster-card-wrapper img,
.card-border-monster {
  border: 2px solid #ff4d4f !important;
  box-shadow: 0 0 16px rgba(255, 77, 79, 0.45) !important;
  border-radius: 8px !important;
}

/* 3. EVENT / MERCHANT CARDS -> YELLOW BORDER */
#combat-event-card-img,
.card-border-event {
  border: 2px solid #ffd76e !important;
  box-shadow: 0 0 16px rgba(255, 215, 110, 0.45) !important;
  border-radius: 8px !important;
}

/* ==========================================================================
   MOBILE COMBAT & MODAL TOUCH SCROLLING ENGINE (SMOOTH DRAG ON ALL ELEMENTS)
   ========================================================================== */
.zoom-modal {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
}

.zoom-modal__content {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior-y: contain !important;
}

.zoom-modal *,
.zoom-modal__content *,
.zoom-modal img,
.zoom-modal__content img,
.combat-hero-symmetrical-layout,
.combat-monster-card-wrapper,
.combat-hero-card-wrapper,
.symmetrical-combat-slot {
  -webkit-user-drag: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: pan-y !important;
}

.zoom-modal button,
.zoom-modal input,
.zoom-modal select {
  touch-action: manipulation !important;
}

@media (max-width: 768px) {
  .zoom-modal {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0.5rem 0.25rem 2rem 0.25rem !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .zoom-modal__content {
    margin: auto 0 !important;
    max-height: none !important;
    min-height: auto !important;
    height: auto !important;
    overflow-y: visible !important;
    touch-action: pan-y !important;
  }
}

/* ==========================================================================
   PERFECT HERO COMBAT LAYOUT: VERTICALLY CENTERED & PROPER LATERAL GAP
   ========================================================================== */
.combat-hero-symmetrical-layout {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  width: auto !important;
  margin: 0.4rem auto !important;
  box-sizing: border-box !important;
}

.combat-hero-card-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

#combat-hero-main-card,
.combat-hero-card-wrapper img {
  display: block !important;
  width: clamp(160px, 44vw, 185px) !important;
  aspect-ratio: 3 / 4 !important;
  height: auto !important;
  border-radius: 8px !important;
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5) !important;
  flex-shrink: 0 !important;
}

.combat-hero-symmetrical-layout .slots-left-col,
.combat-hero-symmetrical-layout .slots-right-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: 42px !important;
  height: auto !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.symmetrical-combat-slot,
.combat-hero-symmetrical-layout .symmetrical-combat-slot {
  position: static !important;
  width: 42px !important;
  height: 52px !important;
  min-width: 42px !important;
  min-height: 52px !important;
  max-width: 42px !important;
  max-height: 52px !important;
  aspect-ratio: 3 / 4 !important;
  border-radius: 5px !important;
  border: 1.2px solid rgba(214, 173, 74, 0.45) !important;
  background: rgba(18, 12, 8, 0.35) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.symmetrical-combat-slot span {
  font-size: 0.42rem !important;
  line-height: 1.1 !important;
  padding: 1px !important;
}

.hero-side-dice-btn,
.hero-side-bag-btn {
  position: static !important;
  margin: 2px 0 0 0 !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  font-size: 1.35rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .combat-hero-symmetrical-layout {
    gap: 14px !important;
    margin: 0.25rem auto !important;
  }

  .combat-hero-symmetrical-layout .slots-left-col,
  .combat-hero-symmetrical-layout .slots-right-col {
    width: 40px !important;
    gap: 4px !important;
  }

  .symmetrical-combat-slot,
  .combat-hero-symmetrical-layout .symmetrical-combat-slot {
    width: 40px !important;
    height: 48px !important;
    min-width: 40px !important;
    min-height: 48px !important;
    max-width: 40px !important;
    max-height: 48px !important;
  }

  .hero-side-dice-btn,
  .hero-side-bag-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    font-size: 1.3rem !important;
  }
}

/* ==========================================================================
   REMOVE REDUNDANT INLINE INVENTORY PANEL (MANAGED VIA GLOBAL BAG MODAL)
   ========================================================================== */
.inventory-panel {
  display: none !important;
}

/* ==========================================================================
   REMOVE REVELADO SUBTITLE FROM EXPLORATION & EVENT POPUPS
   ========================================================================== */
.zoom-modal__content .eyebrow,
.zoom-modal__content p.eyebrow {
  display: none !important;
}

/* ==========================================================================
   CARD BORDERS: HERO = BLUE (#38bdf8), MONSTER = RED (#ff4d4f), EVENT = YELLOW (#ffd76e)
   ========================================================================== */

/* 1. HERO CARDS -> BLUE BORDER */
#combat-hero-main-card,
.combat-hero-card-wrapper img,
.card-border-hero,
.hero-card-container img {
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5) !important;
  border-radius: 8px !important;
}

/* 2. MONSTER CARDS -> RED BORDER */
#combat-monster-card-img,
.combat-monster-card-wrapper img,
.card-border-monster {
  border: 2px solid #ff4d4f !important;
  box-shadow: 0 0 16px rgba(255, 77, 79, 0.5) !important;
  border-radius: 8px !important;
}

/* 3. EVENT / MERCHANT CARDS -> YELLOW BORDER */
#combat-event-card-img,
.card-border-event {
  border: 2px solid #ffd76e !important;
  box-shadow: 0 0 16px rgba(255, 215, 110, 0.45) !important;
  border-radius: 8px !important;
}

/* ==========================================================================
   COMBAT & EXPLORATION HEADER SPACING: SEPARATE TITLE/SUBTITLE FROM CARD
   ========================================================================== */
.combat-header-region-title {
  color: #ffd76e !important;
  font-weight: 900 !important;
  letter-spacing: 1.2px !important;
  font-size: clamp(1.05rem, 4.5vw, 1.45rem) !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(214, 173, 74, 0.4) !important;
  margin-bottom: 0.2rem !important;
}

.combat-header-mode-subtitle {
  color: #ffd76e !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  opacity: 1 !important;
  font-size: 0.75rem !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 12px rgba(214, 173, 74, 0.35) !important;
  margin-top: 1px !important;
  margin-bottom: 0.95rem !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .combat-header-region-title {
    font-size: 1.15rem !important;
    margin-bottom: 0.2rem !important;
  }

  .combat-header-mode-subtitle {
    font-size: 0.70rem !important;
    margin-bottom: 0.85rem !important;
  }

  .combat-monster-card-wrapper,
  #combat-monster-section {
    margin-top: 0.35rem !important;
  }
}

/* ==========================================================================
   MONSTER SIDE DICE BUTTON: 20% CLOSER TO THE CARD ON MOBILE & PC
   ========================================================================== */
.monster-side-dice-btn,
#combat-monster-section .monster-side-dice-btn {
  position: absolute !important;
  right: -10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 50 !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 35%, #521818, #200707) !important;
  border: 2px solid #ff4d4f !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.9), 0 0 16px rgba(255, 77, 79, 0.6) !important;
  font-size: 1.4rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .monster-side-dice-btn,
  #combat-monster-section .monster-side-dice-btn {
    right: -8px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    font-size: 1.3rem !important;
  }
}

/* ==========================================================================
   INTRO & TRANSITION SPLASH ANIMATIONS: 100% OPAQUE & TOP-LEVEL OVERLAY
   ========================================================================== */
.intro-splash-screen-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  background: #080503 !important;
  background: radial-gradient(circle at center, #241910 0%, #080503 100%) !important;
  pointer-events: all !important;
}

/* ==========================================================================
   MAP MODAL HINT FOOTER: OUTSIDE MAP, COMPACT 2 LINES ON MOBILE
   ========================================================================== */
.map-zoom-hint-footer {
  position: static !important;
  transform: none !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.2rem !important;
  text-align: center !important;
  color: #dac89e !important;
  font-size: 0.72rem !important;
  line-height: 1.25 !important;
  width: 100% !important;
  padding: 0 0.5rem !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: none !important;
}

@media (max-width: 600px) {
  .map-zoom-hint-footer {
    font-size: 0.58rem !important;
    line-height: 1.2 !important;
    margin-top: 0.35rem !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ==========================================================================
   SEAMLESS IMMERSIVE MAP MODAL: FULL-BLEED, NO DRY BLACK CORNERS, 100% POLISHED
   ========================================================================== */
.map-modal-content-box,
.zoom-modal__content:has(.official-eldravar-map-img) {
  width: 98vw !important;
  max-width: 1560px !important;
  height: 94vh !important;
  max-height: 94vh !important;
  background: linear-gradient(180deg, #1c140d 0%, #0a0704 100%) !important;
  border: 2px solid #d6ad4a !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.98), 0 0 35px rgba(214, 173, 74, 0.35) !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

.map-modal-content-box .official-eldravar-map-img,
.zoom-modal__content .official-eldravar-map-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  display: block !important;
}

.map-modal-content-box .map-zoom-hint-footer {
  position: absolute !important;
  bottom: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(14, 9, 6, 0.88) !important;
  border: 1px solid rgba(214, 173, 74, 0.4) !important;
  border-radius: 20px !important;
  color: #ffd76e !important;
  font-size: 0.72rem !important;
  padding: 0.25rem 0.9rem !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8) !important;
  pointer-events: none !important;
  z-index: 10 !important;
  white-space: nowrap !important;
  width: auto !important;
  margin: 0 !important;
}

@media (max-width: 640px) {
  .map-modal-content-box,
  .zoom-modal__content:has(.official-eldravar-map-img) {
    width: 98vw !important;
    height: 92vh !important;
    max-height: 92vh !important;
    border-radius: 10px !important;
  }

  .map-modal-content-box .map-zoom-hint-footer {
    font-size: 0.58rem !important;
    bottom: 6px !important;
    padding: 0.2rem 0.6rem !important;
    white-space: normal !important;
    max-width: 90% !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   EXIT & SAVE MATCH MODAL: 100% CENTERED ON TOP OF EVERYTHING (Z-INDEX MAX)
   ========================================================================== */
.exit-match-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}

.exit-match-modal-box {
  position: relative !important;
  z-index: 2147483647 !important;
  width: 92vw !important;
  max-width: 520px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  background: linear-gradient(180deg, #1c140d 0%, #0c0906 100%) !important;
  border: 2px solid #d6ad4a !important;
  border-radius: 14px !important;
  padding: 1.6rem 1.2rem !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.98), 0 0 35px rgba(214, 173, 74, 0.35) !important;
  box-sizing: border-box !important;
  margin: auto !important;
  text-align: center !important;
}

/* ==========================================================================
   EVENT / EXPLORATION MODAL ACTION BUTTONS: UNIFIED IDENTICAL RECTANGLE SIZE
   ========================================================================== */
.zoom-modal__content div[style*="1fr 1fr"] button,
.zoom-modal__content div[style*="1fr 1fr"] > button,
.zoom-modal__content div[style*="grid-template-columns"] button,
.zoom-modal__content div[style*="gridTemplateColumns"] button {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  padding: 0 0.5rem !important;
  font-size: 0.76rem !important;
  font-weight: bold !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
  width: 100% !important;
}

.zoom-modal__content button.button-full {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 0.8rem !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  width: 100% !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .zoom-modal__content div[style*="1fr 1fr"] button,
  .zoom-modal__content div[style*="1fr 1fr"] > button,
  .zoom-modal__content div[style*="grid-template-columns"] button,
  .zoom-modal__content div[style*="gridTemplateColumns"] button {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    font-size: 0.70rem !important;
    padding: 0 0.3rem !important;
  }

  .zoom-modal__content button.button-full {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    font-size: 0.80rem !important;
  }
}

/* ==========================================================================
   COMBAT SLOTS TEXT TRUNCATION: NO WRAP, ELLIPSIS (...) ON OVERFLOW
   ========================================================================== */
.symmetrical-combat-slot,
.combat-hero-symmetrical-layout .symmetrical-combat-slot {
  overflow: hidden !important;
}

.symmetrical-combat-slot span,
.symmetrical-combat-slot strong,
.symmetrical-combat-slot div,
.combat-hero-symmetrical-layout .symmetrical-combat-slot span,
.combat-hero-symmetrical-layout .symmetrical-combat-slot strong {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  padding: 0 1px !important;
  box-sizing: border-box !important;
  font-size: 0.48rem !important;
  line-height: 1.15 !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .symmetrical-combat-slot span,
  .symmetrical-combat-slot strong,
  .symmetrical-combat-slot div,
  .combat-hero-symmetrical-layout .symmetrical-combat-slot span,
  .combat-hero-symmetrical-layout .symmetrical-combat-slot strong {
    font-size: 0.42rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* ==========================================================================
   DROPPED GOLD COINS ANIMATION STYLES
   ========================================================================== */
@keyframes coinHitHeroGlow {
  0% {
    transform: scale(0.3);
    opacity: 1;
    filter: brightness(2) drop-shadow(0 0 20px #ffd76e);
  }
  50% {
    transform: scale(1.3);
    opacity: 0.9;
    filter: brightness(1.6) drop-shadow(0 0 35px #ffd76e);
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
    filter: brightness(1) drop-shadow(0 0 0px transparent);
  }
}

/* ==========================================================================
   MOBILE HERO PANEL: 2-COLUMN HORIZONTAL LAYOUT (COMPACT CARD + STATS)
   ========================================================================== */
@media (max-width: 768px) {
  .hero-panel {
    display: grid !important;
    grid-template-columns: 130px 1fr !important;
    gap: 0.85rem !important;
    align-items: start !important;
    padding: 0.9rem !important;
  }

  .hero-panel > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }

  .hero-panel > div:first-child .card-image,
  .hero-panel > div:first-child .card-preview-container,
  .hero-panel > div:first-child img {
    width: 100% !important;
    max-width: 130px !important;
    aspect-ratio: 3/4 !important;
    border-radius: 8px !important;
    object-fit: cover !important;
  }

  .hero-panel > div:first-child p {
    font-size: 0.62rem !important;
    text-align: center !important;
    margin-top: 0.35rem !important;
    line-height: 1.1 !important;
    color: #ffd76e !important;
  }

  .hero-panel__body {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.2rem !important;
  }

  .hero-panel__body .eyebrow {
    font-size: 0.65rem !important;
    margin-bottom: 0.1rem !important;
    letter-spacing: 0.08em !important;
  }

  .hero-panel__body h2 {
    font-size: 1.05rem !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.15 !important;
  }

  .hero-panel .stat-row {
    padding: 0.35rem 0 !important;
    font-size: 0.78rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.4rem !important;
    border-bottom: 1px solid rgba(244, 234, 210, 0.12) !important;
  }

  .hero-panel .stat-row strong,
  .hero-panel .stat-row span {
    font-size: 0.78rem !important;
  }

  .hero-panel .stat-adjust {
    gap: 0.35rem !important;
  }

  .hero-panel .btn-adjust {
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    font-size: 0.85rem !important;
    padding: 0 !important;
  }
}

@media (max-width: 380px) {
  .hero-panel {
    grid-template-columns: 110px 1fr !important;
    gap: 0.55rem !important;
    padding: 0.7rem !important;
  }

  .hero-panel > div:first-child .card-image,
  .hero-panel > div:first-child img {
    max-width: 110px !important;
  }

  .hero-panel .stat-row {
    font-size: 0.72rem !important;
    padding: 0.3rem 0 !important;
  }
}

/* ==========================================================================
   SINGLE CARD INTERACTIVE PAN & ZOOM STYLES
   ========================================================================== */
.single-card-drag-viewport {
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

.single-card-zoom-content {
  background: linear-gradient(180deg, rgba(26, 17, 12, 0.88), rgba(12, 8, 5, 0.94)) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 2px solid #d6ad4a !important;
  border-radius: 14px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(214, 173, 74, 0.25) !important;
}

/* ==========================================================================
   CAMPAIGN HISTORY PANEL STYLING & ORDERING
   ========================================================================== */
.history-panel {
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1040px) {
  .history-panel {
    order: 7 !important;
    margin-top: 1rem !important;
  }
}

/* ==========================================================================
   DICE BUTTONS EXACT PIXEL MATCH & PERFECT CARD SPACING
   ========================================================================== */

/* Hero slots columns unglued from hero card (+5px lateral spacing) */
.combat-hero-symmetrical-layout {
  gap: 15px !important;
  margin: 0.4rem auto !important;
}

.combat-hero-symmetrical-layout .slots-left-col {
  margin-right: 4px !important;
}

.combat-hero-symmetrical-layout .slots-right-col {
  margin-left: 4px !important;
}

/* Identical exact pixel size for both Hero and Enemy Dice / Bag Buttons */
.hero-side-dice-btn,
.hero-side-bag-btn,
.monster-side-dice-btn,
#combat-monster-section .monster-side-dice-btn {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  font-size: 1.5rem !important;
  line-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

/* Monster Dice Position: 30px away from the monster card edge */
.combat-monster-card-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.monster-side-dice-btn,
#combat-monster-section .monster-side-dice-btn {
  position: absolute !important;
  right: -52px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: linear-gradient(135deg, #420205, #1c0001) !important;
  border: 2.5px solid #ff4d4f !important;
  color: #ff9c91 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85), 0 0 15px rgba(255, 77, 79, 0.6) !important;
  cursor: pointer !important;
  z-index: 25 !important;
  transition: transform 0.15s ease !important;
}

.monster-side-dice-btn:hover {
  transform: translateY(-50%) scale(1.1) !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .combat-hero-symmetrical-layout {
    gap: 12px !important;
  }

  .combat-hero-symmetrical-layout .slots-left-col {
    margin-right: 3px !important;
  }

  .combat-hero-symmetrical-layout .slots-right-col {
    margin-left: 3px !important;
  }

  .hero-side-dice-btn,
  .hero-side-bag-btn,
  .monster-side-dice-btn,
  #combat-monster-section .monster-side-dice-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    font-size: 1.3rem !important;
  }

  .monster-side-dice-btn,
  #combat-monster-section .monster-side-dice-btn {
    right: -46px !important;
  }
}

/* ==========================================================================
   HERO PANEL MOCHILA BUTTON (LOCATED RIGHT BELOW GOLD)
   ========================================================================== */
.hero-open-bag-btn {
  width: 100% !important;
  margin-top: 0.8rem !important;
  padding: 0.65rem 0.8rem !important;
  font-size: 0.92rem !important;
  font-weight: bold !important;
  background: linear-gradient(135deg, #3d2600, #1f1300) !important;
  border: 1.5px solid #d6ad4a !important;
  color: #ffd76e !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 10px rgba(214, 173, 74, 0.2) !important;
  transition: all 0.2s ease !important;
}

.hero-open-bag-btn:hover {
  background: linear-gradient(135deg, #573700, #2b1a00) !important;
  border-color: #ffd76e !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 215, 110, 0.35) !important;
}

.hero-open-bag-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

@media (max-width: 600px) {
  .hero-open-bag-btn {
    font-size: 0.85rem !important;
    padding: 0.55rem 0.6rem !important;
    margin-top: 0.6rem !important;
  }
}

/* ==========================================================================
   CENTERED AUDIO MIXER MODAL STYLING
   ========================================================================== */
.audio-mixer-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}

.audio-mixer-modal-content {
  position: relative !important;
  width: 92vw !important;
  max-width: 380px !important;
  margin: auto !important;
  background: linear-gradient(180deg, rgba(38, 25, 18, 0.98), rgba(18, 12, 8, 0.98)) !important;
  border: 2px solid #d6ad4a !important;
  border-radius: 14px !important;
  padding: 1.4rem 1.2rem !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(214, 173, 74, 0.35) !important;
}

/* ==========================================================================
   MASTER RULE: BOTH HERO & VILLAIN LIFE BARS EXACT IDENTICAL 165px COMPACT SIZE
   ========================================================================== */
#combat-monster-section div:has(> .btn-adjust),
#combat-hero-section div:has(> .btn-adjust),
.zoom-modal__content div:has(> .btn-adjust),
.combat-life-bar-container,
#combat-monster-section .combat-life-bar-container,
#combat-hero-section .combat-life-bar-container,
.combat-monster-life-row,
.combat-hero-life-row,
#combat-monster-section .combat-life-row,
#combat-hero-section .combat-life-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.4rem !important;
  background: rgba(16, 11, 7, 0.88) !important;
  border: 1.5px solid rgba(214, 173, 74, 0.5) !important;
  border-radius: 8px !important;
  padding: 0.28rem 0.55rem !important;
  width: 165px !important;
  max-width: 165px !important;
  min-width: 165px !important;
  box-sizing: border-box !important;
  margin: 0.35rem auto !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important;
}

#combat-monster-section div:has(> .btn-adjust) strong,
#combat-hero-section div:has(> .btn-adjust) strong,
.zoom-modal__content div:has(> .btn-adjust) strong,
.combat-life-bar-container strong,
#combat-monster-section strong,
#combat-hero-section strong,
.combat-monster-life-row strong,
.combat-hero-life-row strong {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #ff9c91 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  flex: 1 !important;
  text-align: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#combat-monster-section div:has(> .btn-adjust) .btn-adjust,
#combat-hero-section div:has(> .btn-adjust) .btn-adjust,
.zoom-modal__content div:has(> .btn-adjust) .btn-adjust,
.combat-life-bar-container .btn-adjust,
#combat-monster-section .btn-adjust,
#combat-hero-section .btn-adjust,
.combat-monster-life-row .btn-adjust,
.combat-hero-life-row .btn-adjust {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

@media (max-width: 600px) {
  #combat-monster-section div:has(> .btn-adjust),
  #combat-hero-section div:has(> .btn-adjust),
  .zoom-modal__content div:has(> .btn-adjust),
  .combat-life-bar-container,
  #combat-monster-section .combat-life-bar-container,
  #combat-hero-section .combat-life-bar-container,
  .combat-monster-life-row,
  .combat-hero-life-row {
    width: 155px !important;
    max-width: 155px !important;
    min-width: 155px !important;
    padding: 0.25rem 0.45rem !important;
  }

  .combat-life-bar-container strong,
  #combat-monster-section strong,
  #combat-hero-section strong {
    font-size: 0.95rem !important;
  }

  .combat-life-bar-container .btn-adjust,
  #combat-monster-section .btn-adjust,
  #combat-hero-section .btn-adjust {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    font-size: 0.9rem !important;
  }
}

/* ==========================================================================
   COMBAT MODAL: BOTH HERO & VILLAIN LIFE BARS EXACT SAME COMPACT SIZE (165px)
   ========================================================================== */
.combat-life-bar-container,
#combat-monster-section .combat-life-bar-container,
#combat-hero-section .combat-life-bar-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.4rem !important;
  background: rgba(16, 11, 7, 0.88) !important;
  border: 1.5px solid rgba(214, 173, 74, 0.5) !important;
  border-radius: 8px !important;
  padding: 0.28rem 0.55rem !important;
  width: 165px !important;
  max-width: 165px !important;
  min-width: 165px !important;
  box-sizing: border-box !important;
  margin: 0.35rem auto !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important;
}

.combat-life-bar-container strong,
#combat-monster-section strong,
#combat-hero-section strong {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  flex: 1 !important;
  text-align: center !important;
  line-height: 1 !important;
}

.combat-life-bar-container .btn-adjust,
#combat-monster-section .btn-adjust,
#combat-hero-section .btn-adjust {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

@media (max-width: 600px) {
  .combat-life-bar-container,
  #combat-monster-section .combat-life-bar-container,
  #combat-hero-section .combat-life-bar-container {
    width: 155px !important;
    max-width: 155px !important;
    min-width: 155px !important;
    padding: 0.25rem 0.45rem !important;
  }

  .combat-life-bar-container strong {
    font-size: 0.95rem !important;
  }

  .combat-life-bar-container .btn-adjust {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    font-size: 0.9rem !important;
  }
}

/* ==========================================================================
   CENTERED MERCHANT CHOICE & SHOP SELECTION MODAL STYLING
   ========================================================================== */
.merchant-choice-modal-overlay,
.zoom-modal.merchant-choice-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}

.merchant-choice-modal-content,
.zoom-modal__content.merchant-choice-modal-content {
  position: relative !important;
  width: 92vw !important;
  max-width: 440px !important;
  margin: auto !important;
  background: linear-gradient(180deg, rgba(35, 25, 17, 0.98), rgba(18, 12, 8, 0.98)) !important;
  border: 2px solid #ffd76e !important;
  border-radius: 16px !important;
  padding: 1.8rem 1.4rem !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 215, 110, 0.4) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   TINY CORNER MAGNIFYING GLASS BUTTON IN PLAYER OVERVIEW MODAL
   ========================================================================== */
.overview-hero-zoom-btn,
button.overview-hero-zoom-btn {
  position: absolute !important;
  top: 3px !important;
  right: 3px !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  font-size: 0.55rem !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.88) !important;
  border: 1px solid #ffd76e !important;
  color: #ffd76e !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8) !important;
}

.overview-hero-zoom-btn:hover {
  background: #ffd76e !important;
  color: #000 !important;
  transform: scale(1.15) !important;
}

/* ==========================================================================
   TINY CORNER MAGNIFYING GLASS BUTTON IN PLAYER OVERVIEW MODAL
   ========================================================================== */
.overview-hero-zoom-btn,
button.overview-hero-zoom-btn {
  position: absolute !important;
  top: 3px !important;
  right: 3px !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  font-size: 0.55rem !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.88) !important;
  border: 1px solid #ffd76e !important;
  color: #ffd76e !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8) !important;
}

.overview-hero-zoom-btn:hover {
  background: #ffd76e !important;
  color: #000 !important;
  transform: scale(1.15) !important;
}

/* ==========================================================================
   BEAUTIFUL CUSTOM EDIT NICKNAME MODAL STYLING
   ========================================================================== */
.edit-nickname-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}

.edit-nickname-modal-box {
  position: relative !important;
  width: 92vw !important;
  max-width: 400px !important;
  margin: auto !important;
  background: linear-gradient(180deg, #241a12, #120c08) !important;
  border: 2px solid #ffd76e !important;
  border-radius: 16px !important;
  padding: 1.6rem 1.4rem !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 215, 110, 0.35) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   BEAUTIFUL CUSTOM EDIT NICKNAME MODAL STYLING
   ========================================================================== */
.edit-nickname-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}

.edit-nickname-modal-box {
  position: relative !important;
  width: 92vw !important;
  max-width: 400px !important;
  margin: auto !important;
  background: linear-gradient(180deg, #241a12, #120c08) !important;
  border: 2px solid #ffd76e !important;
  border-radius: 16px !important;
  padding: 1.6rem 1.4rem !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 215, 110, 0.35) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   CARD PICKER MODAL: 1:1 SQUARE CROPPED CARD THUMBNAILS (NO SQUISHING)
   ========================================================================== */
.card-picker-grid img,
.card-picker-grid div > div > img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: top center !important;
  border-radius: 6px !important;
}

/* ==========================================================================
   CARD PICKER MODAL: 1:1 SQUARE CROPPED CARD THUMBNAILS (NO SQUISHING)
   ========================================================================== */
.card-picker-grid img,
.card-picker-grid div > div > img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: top center !important;
  border-radius: 6px !important;
}

/* ==========================================================================
   MOBILE UX: ULTRA COMPACT & ELEGANT RESPONSIVE TEXT SIZES FOR MOBILE
   ========================================================================== */
@media (max-width: 768px) {
  /* Hero Status Panel */
  .hero-panel {
    display: grid !important;
    grid-template-columns: 120px 1fr !important;
    gap: 0.65rem !important;
    align-items: start !important;
    padding: 0.65rem 0.75rem !important;
  }

  .hero-panel > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-panel > div:first-child .card-image,
  .hero-panel > div:first-child .card-preview-container,
  .hero-panel > div:first-child img {
    width: 100% !important;
    max-width: 120px !important;
    aspect-ratio: 3/4 !important;
    border-radius: 8px !important;
    object-fit: cover !important;
  }

  .hero-panel > div:first-child p {
    font-size: 0.60rem !important;
    text-align: center !important;
    margin-top: 0.25rem !important;
    line-height: 1.1 !important;
    color: #ffd76e !important;
  }

  .hero-panel__body {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
  }

  .hero-panel__body .eyebrow,
  .hero-panel__body span[style*="text-transform: uppercase"],
  .hero-panel__body span[style*="textTransform: uppercase"] {
    font-size: 0.62rem !important;
    margin-bottom: 0.1rem !important;
    letter-spacing: 0.05em !important;
  }

  .hero-panel__body h2 {
    font-size: 1.05rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.15 !important;
  }

  .hero-panel .stat-row {
    padding: 0.25rem 0 !important;
    font-size: 0.74rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.35rem !important;
    border-bottom: 1px solid rgba(244, 234, 210, 0.12) !important;
  }

  .hero-panel .stat-row strong,
  .hero-panel .stat-row span {
    font-size: 0.74rem !important;
    line-height: 1.2 !important;
  }

  .hero-panel .stat-adjust {
    gap: 0.25rem !important;
  }

  .hero-panel .btn-adjust {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    font-size: 0.75rem !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-open-bag-btn {
    font-size: 0.75rem !important;
    padding: 0.45rem 0.5rem !important;
    margin-top: 0.45rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
  }

  /* Dashboard & Panels Mobile Font Tuning */
  .panel h2, .panel h3 {
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
  }

  .panel p, .panel span {
    font-size: 0.78rem !important;
  }

  .eyebrow {
    font-size: 0.65rem !important;
  }
}

@media (max-width: 480px) {
  .hero-panel {
    grid-template-columns: 105px 1fr !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.6rem !important;
  }

  .hero-panel > div:first-child .card-image,
  .hero-panel > div:first-child img {
    max-width: 105px !important;
  }

  .hero-panel__body h2 {
    font-size: 0.98rem !important;
  }

  .hero-panel .stat-row {
    font-size: 0.70rem !important;
    padding: 0.2rem 0 !important;
  }

  .hero-panel .stat-row strong,
  .hero-panel .stat-row span {
    font-size: 0.70rem !important;
  }

  .hero-open-bag-btn {
    font-size: 0.70rem !important;
    padding: 0.4rem 0.45rem !important;
  }
}

/* ==========================================================================
   MOBILE UX: ULTRA COMPACT & ELEGANT RESPONSIVE TEXT SIZES FOR MOBILE
   ========================================================================== */
@media (max-width: 768px) {
  /* Hero Status Panel */
  .hero-panel {
    display: grid !important;
    grid-template-columns: 120px 1fr !important;
    gap: 0.65rem !important;
    align-items: start !important;
    padding: 0.65rem 0.75rem !important;
  }

  .hero-panel > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-panel > div:first-child .card-image,
  .hero-panel > div:first-child .card-preview-container,
  .hero-panel > div:first-child img {
    width: 100% !important;
    max-width: 120px !important;
    aspect-ratio: 3/4 !important;
    border-radius: 8px !important;
    object-fit: cover !important;
  }

  .hero-panel > div:first-child p {
    font-size: 0.60rem !important;
    text-align: center !important;
    margin-top: 0.25rem !important;
    line-height: 1.1 !important;
    color: #ffd76e !important;
  }

  .hero-panel__body {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
  }

  .hero-panel__body .eyebrow,
  .hero-panel__body span[style*="text-transform: uppercase"],
  .hero-panel__body span[style*="textTransform: uppercase"] {
    font-size: 0.62rem !important;
    margin-bottom: 0.1rem !important;
    letter-spacing: 0.05em !important;
  }

  .hero-panel__body h2 {
    font-size: 1.05rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.15 !important;
  }

  .hero-panel .stat-row {
    padding: 0.25rem 0 !important;
    font-size: 0.74rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.35rem !important;
    border-bottom: 1px solid rgba(244, 234, 210, 0.12) !important;
  }

  .hero-panel .stat-row strong,
  .hero-panel .stat-row span {
    font-size: 0.74rem !important;
    line-height: 1.2 !important;
  }

  .hero-panel .stat-adjust {
    gap: 0.25rem !important;
  }

  .hero-panel .btn-adjust {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    font-size: 0.75rem !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-open-bag-btn {
    font-size: 0.75rem !important;
    padding: 0.45rem 0.5rem !important;
    margin-top: 0.45rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
  }

  /* Dashboard & Panels Mobile Font Tuning */
  .panel h2, .panel h3 {
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
  }

  .panel p, .panel span {
    font-size: 0.78rem !important;
  }

  .eyebrow {
    font-size: 0.65rem !important;
  }
}

@media (max-width: 480px) {
  .hero-panel {
    grid-template-columns: 105px 1fr !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.6rem !important;
  }

  .hero-panel > div:first-child .card-image,
  .hero-panel > div:first-child img {
    max-width: 105px !important;
  }

  .hero-panel__body h2 {
    font-size: 0.98rem !important;
  }

  .hero-panel .stat-row {
    font-size: 0.70rem !important;
    padding: 0.2rem 0 !important;
  }

  .hero-panel .stat-row strong,
  .hero-panel .stat-row span {
    font-size: 0.70rem !important;
  }

  .hero-open-bag-btn {
    font-size: 0.70rem !important;
    padding: 0.4rem 0.45rem !important;
  }
}

/* ==========================================================================
   100% ROUND LUPA (ZOOM BUTTON) & SMALL DELICATE PENCIL NEXT TO HERO NAME
   ========================================================================== */
.overview-hero-zoom-btn,
button.overview-hero-zoom-btn {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.88) !important;
  border: 1.5px solid #ffd76e !important;
  color: #ffd76e !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.65rem !important;
  line-height: 1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.85) !important;
}

.overview-hero-zoom-btn:hover {
  background: #ffd76e !important;
  color: #000 !important;
  transform: scale(1.15) !important;
}

.edit-nickname-pencil-btn,
button.edit-nickname-pencil-btn {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 4px !important;
  margin: 0 !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  opacity: 0.85 !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
}

.edit-nickname-pencil-btn:hover {
  opacity: 1 !important;
  transform: scale(1.2) !important;
}

/* ==========================================================================
   100% ROUND LUPA (ZOOM BUTTON) & SMALL DELICATE PENCIL NEXT TO HERO NAME
   ========================================================================== */
.overview-hero-zoom-btn,
button.overview-hero-zoom-btn {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.88) !important;
  border: 1.5px solid #ffd76e !important;
  color: #ffd76e !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.65rem !important;
  line-height: 1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.85) !important;
}

.overview-hero-zoom-btn:hover {
  background: #ffd76e !important;
  color: #000 !important;
  transform: scale(1.15) !important;
}

.edit-nickname-pencil-btn,
button.edit-nickname-pencil-btn {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 4px !important;
  margin: 0 !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  opacity: 0.85 !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
}

.edit-nickname-pencil-btn:hover {
  opacity: 1 !important;
  transform: scale(1.2) !important;
}

/* ==========================================================================
   ENEMY DIE (DADO INIMIGO) 10% SIZE INCREASE
   ========================================================================== */
.monster-side-dice-btn,
#combat-monster-section .monster-side-dice-btn,
button.monster-side-dice-btn {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  font-size: 1.75rem !important;
}

.monster-side-dice-btn img,
#combat-monster-section .monster-side-dice-btn img {
  width: 75% !important;
  height: 75% !important;
  transform: scale(1.1) !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .monster-side-dice-btn,
  #combat-monster-section .monster-side-dice-btn,
  button.monster-side-dice-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    font-size: 1.45rem !important;
  }
}

/* ==========================================================================
   ENEMY DIE (DADO INIMIGO) 10% SIZE INCREASE
   ========================================================================== */
.monster-side-dice-btn,
#combat-monster-section .monster-side-dice-btn,
button.monster-side-dice-btn {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  font-size: 1.75rem !important;
}

.monster-side-dice-btn img,
#combat-monster-section .monster-side-dice-btn img {
  width: 75% !important;
  height: 75% !important;
  transform: scale(1.1) !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .monster-side-dice-btn,
  #combat-monster-section .monster-side-dice-btn,
  button.monster-side-dice-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    font-size: 1.45rem !important;
  }
}

/* ==========================================================================
   MOBILE ONLY: PREVENT CLOSE BUTTON (✕) FROM OVERLAPPING HEADER TEXT
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Compact Close Button on Mobile */
  .modal-close-btn-corner,
  .zoom-modal__close,
  .close-button,
  button.modal-close-btn-corner,
  button.zoom-modal__close,
  button.close-button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    top: 8px !important;
    right: 8px !important;
    font-size: 0.85rem !important;
    z-index: 100 !important;
  }

  /* 2. Add padding-right to all modal header titles so text never goes under ✕ */
  .zoom-modal__title,
  .combat-header-region-title,
  .zoom-modal__content h2,
  .zoom-modal__content h3,
  .zoom-modal__content div:first-child h2,
  .zoom-modal__content div:first-child h3,
  .panel h2,
  .panel h3,
  div[style*="borderBottom"] h2,
  div[style*="border-bottom"] h2,
  div[style*="borderBottom"] h3,
  div[style*="border-bottom"] h3 {
    padding-right: 42px !important;
    padding-left: 8px !important;
    font-size: clamp(0.76rem, 3.6vw, 0.95rem) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .modal-close-btn-corner,
  .zoom-modal__close,
  .close-button {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    top: 6px !important;
    right: 6px !important;
    font-size: 0.80rem !important;
  }

  .zoom-modal__title,
  .combat-header-region-title,
  .zoom-modal__content h2,
  .zoom-modal__content h3 {
    padding-right: 38px !important;
    font-size: clamp(0.72rem, 3.4vw, 0.88rem) !important;
  }
}

/* ==========================================================================
   MOBILE ONLY: PREVENT CLOSE BUTTON (✕) FROM OVERLAPPING HEADER TEXT
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Compact Close Button on Mobile */
  .modal-close-btn-corner,
  .zoom-modal__close,
  .close-button,
  button.modal-close-btn-corner,
  button.zoom-modal__close,
  button.close-button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    top: 8px !important;
    right: 8px !important;
    font-size: 0.85rem !important;
    z-index: 100 !important;
  }

  /* 2. Add padding-right to all modal header titles so text never goes under ✕ */
  .zoom-modal__title,
  .combat-header-region-title,
  .zoom-modal__content h2,
  .zoom-modal__content h3,
  .zoom-modal__content div:first-child h2,
  .zoom-modal__content div:first-child h3,
  .panel h2,
  .panel h3,
  div[style*="borderBottom"] h2,
  div[style*="border-bottom"] h2,
  div[style*="borderBottom"] h3,
  div[style*="border-bottom"] h3 {
    padding-right: 42px !important;
    padding-left: 8px !important;
    font-size: clamp(0.76rem, 3.6vw, 0.95rem) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .modal-close-btn-corner,
  .zoom-modal__close,
  .close-button {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    top: 6px !important;
    right: 6px !important;
    font-size: 0.80rem !important;
  }

  .zoom-modal__title,
  .combat-header-region-title,
  .zoom-modal__content h2,
  .zoom-modal__content h3 {
    padding-right: 38px !important;
    font-size: clamp(0.72rem, 3.4vw, 0.88rem) !important;
  }
}

/* ==========================================================================
   MOBILE UX: 10% LARGER HERO CARD & SINGLE-LINE BACKPACK BUTTON
   ========================================================================== */
@media (max-width: 768px) {
  /* Hero Status Panel Grid: 135px left column (10% larger) */
  .hero-panel {
    display: grid !important;
    grid-template-columns: 135px 1fr !important;
    gap: 0.65rem !important;
    align-items: start !important;
    padding: 0.65rem 0.75rem !important;
  }

  .hero-panel > div:first-child .card-image,
  .hero-panel > div:first-child .card-preview-container,
  .hero-panel > div:first-child img {
    width: 100% !important;
    max-width: 135px !important;
    aspect-ratio: 3/4 !important;
    border-radius: 8px !important;
    object-fit: cover !important;
  }

  .hero-panel > div:first-child p {
    font-size: 0.65rem !important;
    text-align: center !important;
    margin-top: 0.25rem !important;
    line-height: 1.1 !important;
    color: #ffd76e !important;
    white-space: nowrap !important;
  }

  /* Single Line Backpack Button on Mobile */
  .hero-open-bag-btn,
  .hero-panel button.hero-open-bag-btn {
    font-size: clamp(0.62rem, 2.7vw, 0.72rem) !important;
    white-space: nowrap !important;
    padding: 0.45rem 0.2rem !important;
    letter-spacing: -0.02em !important;
    margin-top: 0.45rem !important;
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }
}

@media (max-width: 480px) {
  .hero-panel {
    grid-template-columns: 122px 1fr !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.6rem !important;
  }

  .hero-panel > div:first-child .card-image,
  .hero-panel > div:first-child img {
    max-width: 122px !important;
  }

  .hero-open-bag-btn,
  .hero-panel button.hero-open-bag-btn {
    font-size: clamp(0.58rem, 2.5vw, 0.68rem) !important;
    padding: 0.4rem 0.15rem !important;
  }
}

/* ==========================================================================
   MOBILE UX: 10% LARGER HERO CARD & SINGLE-LINE BACKPACK BUTTON
   ========================================================================== */
@media (max-width: 768px) {
  /* Hero Status Panel Grid: 135px left column (10% larger) */
  .hero-panel {
    display: grid !important;
    grid-template-columns: 135px 1fr !important;
    gap: 0.65rem !important;
    align-items: start !important;
    padding: 0.65rem 0.75rem !important;
  }

  .hero-panel > div:first-child .card-image,
  .hero-panel > div:first-child .card-preview-container,
  .hero-panel > div:first-child img {
    width: 100% !important;
    max-width: 135px !important;
    aspect-ratio: 3/4 !important;
    border-radius: 8px !important;
    object-fit: cover !important;
  }

  .hero-panel > div:first-child p {
    font-size: 0.65rem !important;
    text-align: center !important;
    margin-top: 0.25rem !important;
    line-height: 1.1 !important;
    color: #ffd76e !important;
    white-space: nowrap !important;
  }

  /* Single Line Backpack Button on Mobile */
  .hero-open-bag-btn,
  .hero-panel button.hero-open-bag-btn {
    font-size: clamp(0.62rem, 2.7vw, 0.72rem) !important;
    white-space: nowrap !important;
    padding: 0.45rem 0.2rem !important;
    letter-spacing: -0.02em !important;
    margin-top: 0.45rem !important;
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }
}

@media (max-width: 480px) {
  .hero-panel {
    grid-template-columns: 122px 1fr !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.6rem !important;
  }

  .hero-panel > div:first-child .card-image,
  .hero-panel > div:first-child img {
    max-width: 122px !important;
  }

  .hero-open-bag-btn,
  .hero-panel button.hero-open-bag-btn {
    font-size: clamp(0.58rem, 2.5vw, 0.68rem) !important;
    padding: 0.4rem 0.15rem !important;
  }
}

/* ==========================================================================
   CARD ZOOM MODAL ALWAYS ON TOP OF EVERYTHING (MAX Z-INDEX)
   ========================================================================== */
#single_card_zoom_overlay,
.single-card-interactive-zoom-overlay,
.single-card-zoom-content,
.zoom-modal.single-card-interactive-zoom-overlay,
div[class*="single-card-interactive-zoom-overlay"],
#single_card_zoom_overlay div {
  z-index: 2147483647 !important;
}

#single_card_zoom_overlay {
  z-index: 2147483647 !important;
  position: fixed !important;
  inset: 0 !important;
}

/* ==========================================================================
   CARD ZOOM MODAL ALWAYS ON TOP OF EVERYTHING (MAX Z-INDEX)
   ========================================================================== */
#single_card_zoom_overlay,
.single-card-interactive-zoom-overlay,
.single-card-zoom-content,
.zoom-modal.single-card-interactive-zoom-overlay,
div[class*="single-card-interactive-zoom-overlay"],
#single_card_zoom_overlay div {
  z-index: 2147483647 !important;
}

#single_card_zoom_overlay {
  z-index: 2147483647 !important;
  position: fixed !important;
  inset: 0 !important;
}

/* ==========================================================================
   DYNAMIC REGION BACKGROUND SYSTEM FOR GAME BOARD, MODALS & POPUPS
   ========================================================================== */
:root {
  --bg-cenario-url: var(--bg-cenario-url);
}

body, html {
  transition: background-image 0.6s ease-in-out !important;
  background-image: linear-gradient(rgba(10, 6, 3, 0.45), rgba(6, 4, 2, 0.65)), var(--bg-cenario-url) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Modals & Popups (Combat, Exploration, Merchant, Event, Boss, Bag) */
.zoom-modal,
#eldravar_global_bag_modal_overlay,
.audio-mixer-modal-overlay,
div[class*="modal-overlay"],
div[class*="modal_overlay"],
.deck-select-modal-container {
  background-image: linear-gradient(rgba(10, 6, 3, 0.75), rgba(6, 4, 2, 0.85)), var(--bg-cenario-url) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

/* ==========================================================================
   DYNAMIC REGION BACKGROUND SYSTEM FOR GAME BOARD, MODALS & POPUPS
   ========================================================================== */
:root {
  --bg-cenario-url: var(--bg-cenario-url);
}

body, html {
  transition: background-image 0.6s ease-in-out !important;
  background-image: linear-gradient(rgba(10, 6, 3, 0.45), rgba(6, 4, 2, 0.65)), var(--bg-cenario-url) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Modals & Popups (Combat, Exploration, Merchant, Event, Boss, Bag) */
.zoom-modal,
#eldravar_global_bag_modal_overlay,
.audio-mixer-modal-overlay,
div[class*="modal-overlay"],
div[class*="modal_overlay"],
.deck-select-modal-container {
  background-image: linear-gradient(rgba(10, 6, 3, 0.75), rgba(6, 4, 2, 0.85)), var(--bg-cenario-url) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

/* ==========================================================================
   MONSTER SIDE DICE BUTTON (SHIFTED 10PX TO THE RIGHT)
   ========================================================================== */
.monster-side-dice-btn,
#combat-monster-section .monster-side-dice-btn,
button.monster-side-dice-btn,
div.monster-side-dice-btn {
  right: -56px !important;
  margin-left: 10px !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .monster-side-dice-btn,
  #combat-monster-section .monster-side-dice-btn,
  button.monster-side-dice-btn,
  div.monster-side-dice-btn {
    right: -48px !important;
    margin-left: 8px !important;
  }
}

/* ==========================================================================
   MONSTER SIDE DICE BUTTON (SHIFTED 10PX TO THE RIGHT)
   ========================================================================== */
.monster-side-dice-btn,
#combat-monster-section .monster-side-dice-btn,
button.monster-side-dice-btn,
div.monster-side-dice-btn {
  right: -56px !important;
  margin-left: 10px !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .monster-side-dice-btn,
  #combat-monster-section .monster-side-dice-btn,
  button.monster-side-dice-btn,
  div.monster-side-dice-btn {
    right: -48px !important;
    margin-left: 8px !important;
  }
}

/* ==========================================================================
   PLAYER OVERVIEW MODAL UX: CLEAN LAYOUT, ROUND ZOOM BUTTON & INLINE PENCIL
   ========================================================================== */

/* Pencil Icon INLINE Right In Front of Name */
.edit-nickname-pencil-btn,
button.edit-nickname-pencil-btn,
.panel .edit-nickname-pencil-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 2px !important;
  margin: 0 0 0 6px !important;
  font-size: 0.88rem !important;
  cursor: pointer !important;
  line-height: 1 !important;
  float: none !important;
  clear: none !important;
  opacity: 0.9 !important;
  transition: transform 0.15s ease, opacity 0.15s ease !important;
}

.edit-nickname-pencil-btn:hover,
button.edit-nickname-pencil-btn:hover {
  opacity: 1 !important;
  transform: scale(1.2) !important;
}

/* 100% ROUND MAGNIFYING GLASS ZOOM BUTTON ON CARDS */
.zoom-modal-btn,
.card-zoom-btn,
.zoom-icon-btn,
button[title*="Zoom"],
button[title*="ampliar"],
button[title*="Ampliar"],
.card-preview-container button,

.panel .btn-adjust {
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
}

/* Clean Stat Adjuster Pills inside Container (No Overflow) */
.panel div[style*="display: flex"][style*="flexDirection: column"],
.panel div[style*="display: grid"] {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.btn-adjust {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  cursor: pointer !important;
  background: rgba(214, 173, 74, 0.2) !important;
  color: #ffd76e !important;
  border: 1px solid rgba(214, 173, 74, 0.4) !important;
  line-height: 1 !important;
}

.btn-adjust:hover {
  background: rgba(214, 173, 74, 0.4) !important;
  transform: scale(1.1) !important;
}

/* ==========================================================================
   PLAYER OVERVIEW MODAL UX: CLEAN LAYOUT, ROUND ZOOM BUTTON & INLINE PENCIL
   ========================================================================== */

/* Pencil Icon INLINE Right In Front of Name */
.edit-nickname-pencil-btn,
button.edit-nickname-pencil-btn,
.panel .edit-nickname-pencil-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 2px !important;
  margin: 0 0 0 6px !important;
  font-size: 0.88rem !important;
  cursor: pointer !important;
  line-height: 1 !important;
  float: none !important;
  clear: none !important;
  opacity: 0.9 !important;
  transition: transform 0.15s ease, opacity 0.15s ease !important;
}

.edit-nickname-pencil-btn:hover,
button.edit-nickname-pencil-btn:hover {
  opacity: 1 !important;
  transform: scale(1.2) !important;
}

/* 100% ROUND MAGNIFYING GLASS ZOOM BUTTON ON CARDS */
.zoom-modal-btn,
.card-zoom-btn,
.zoom-icon-btn,
button[title*="Zoom"],
button[title*="ampliar"],
button[title*="Ampliar"],
.card-preview-container button,

.panel .btn-adjust {
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
}

/* Clean Stat Adjuster Pills inside Container (No Overflow) */
.panel div[style*="display: flex"][style*="flexDirection: column"],
.panel div[style*="display: grid"] {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.btn-adjust {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  cursor: pointer !important;
  background: rgba(214, 173, 74, 0.2) !important;
  color: #ffd76e !important;
  border: 1px solid rgba(214, 173, 74, 0.4) !important;
  line-height: 1 !important;
}

.btn-adjust:hover {
  background: rgba(214, 173, 74, 0.4) !important;
  transform: scale(1.1) !important;
}

/* ==========================================================================
   CARD PICKER MODAL UX: 3/4 UNFLATTENED CARDS & TOP-PRIORITY ZOOM POPUP
   ========================================================================== */

/* Card Picker Modal Grid & Card Images (3/4 Aspect Ratio) */
.card-picker-grid img,
.deck-select-modal-container img,
div[class*="card-picker"] img,
div[class*="deck-select"] img {
  aspect-ratio: 3 / 4 !important;
  object-fit: contain !important;
  width: 100% !important;
  max-height: 320px !important;
  border-radius: 8px !important;
}

/* Card Picker Grid Columns */
.card-picker-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 1.2rem !important;
  align-items: stretch !important;
}

/* Lower Card Picker Container Z-Index so Zoom Overlay is ALWAYS on Top */
.deck-select-modal-container,
div[class*="deck-select-modal"] {
  z-index: 2147483500 !important;
}

/* Card Zoom Modal ALWAYS ON TOP OF EVERYTHING (MAX Z-INDEX 2147483647) */
#single_card_zoom_overlay,
.single-card-interactive-zoom-overlay,
.single-card-zoom-content,
.zoom-modal.single-card-interactive-zoom-overlay,
div[class*="single-card-interactive-zoom-overlay"],
#single_card_zoom_overlay div {
  z-index: 2147483647 !important;
}

#single_card_zoom_overlay {
  z-index: 2147483647 !important;
  position: fixed !important;
  inset: 0 !important;
}

/* ==========================================================================
   CARD PICKER MODAL UX: 3/4 UNFLATTENED CARDS & TOP-PRIORITY ZOOM POPUP
   ========================================================================== */

/* Card Picker Modal Grid & Card Images (3/4 Aspect Ratio) */
.card-picker-grid img,
.deck-select-modal-container img,
div[class*="card-picker"] img,
div[class*="deck-select"] img {
  aspect-ratio: 3 / 4 !important;
  object-fit: contain !important;
  width: 100% !important;
  max-height: 320px !important;
  border-radius: 8px !important;
}

/* Card Picker Grid Columns */
.card-picker-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 1.2rem !important;
  align-items: stretch !important;
}

/* Lower Card Picker Container Z-Index so Zoom Overlay is ALWAYS on Top */
.deck-select-modal-container,
div[class*="deck-select-modal"] {
  z-index: 2147483500 !important;
}

/* Card Zoom Modal ALWAYS ON TOP OF EVERYTHING (MAX Z-INDEX 2147483647) */
#single_card_zoom_overlay,
.single-card-interactive-zoom-overlay,
.single-card-zoom-content,
.zoom-modal.single-card-interactive-zoom-overlay,
div[class*="single-card-interactive-zoom-overlay"],
#single_card_zoom_overlay div {
  z-index: 2147483647 !important;
}

#single_card_zoom_overlay {
  z-index: 2147483647 !important;
  position: fixed !important;
  inset: 0 !important;
}

/* ==========================================================================
   100% MATHEMATICALLY CENTERED MERCHANT CHOICE POPUP MODAL
   ========================================================================== */
.merchant-choice-modal-overlay,
.zoom-modal.merchant-choice-modal-overlay,
div[class*="merchant-choice-modal-overlay"] {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.merchant-choice-modal-content,
.zoom-modal__content.merchant-choice-modal-content,
div[class*="merchant-choice-modal-content"] {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 auto !important;
  width: 92vw !important;
  max-width: 440px !important;
  box-sizing: border-box !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 215, 110, 0.25) !important;
  border: 2px solid #ffd76e !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(35, 25, 17, 0.98), rgba(18, 12, 8, 0.98)) !important;
}

/* ==========================================================================
   100% MATHEMATICALLY CENTERED MERCHANT CHOICE POPUP MODAL
   ========================================================================== */
.merchant-choice-modal-overlay,
.zoom-modal.merchant-choice-modal-overlay,
div[class*="merchant-choice-modal-overlay"] {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.merchant-choice-modal-content,
.zoom-modal__content.merchant-choice-modal-content,
div[class*="merchant-choice-modal-content"] {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 auto !important;
  width: 92vw !important;
  max-width: 440px !important;
  box-sizing: border-box !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 215, 110, 0.25) !important;
  border: 2px solid #ffd76e !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(35, 25, 17, 0.98), rgba(18, 12, 8, 0.98)) !important;
}

/* ==========================================================================
   MONSTER SIDE DICE BUTTON (SHIFTED ANOTHER 10PX TO THE RIGHT -> TOTAL 20PX)
   ========================================================================== */
.monster-side-dice-btn,
#combat-monster-section .monster-side-dice-btn,
button.monster-side-dice-btn,
div.monster-side-dice-btn,
.circular-dice-btn {
  right: -66px !important;
  margin-left: 20px !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .monster-side-dice-btn,
  #combat-monster-section .monster-side-dice-btn,
  button.monster-side-dice-btn,
  div.monster-side-dice-btn,
  .circular-dice-btn {
    right: -58px !important;
    margin-left: 18px !important;
  }
}

/* ==========================================================================
   MONSTER SIDE DICE BUTTON (SHIFTED ANOTHER 10PX TO THE RIGHT -> TOTAL 20PX)
   ========================================================================== */
.monster-side-dice-btn,
#combat-monster-section .monster-side-dice-btn,
button.monster-side-dice-btn,
div.monster-side-dice-btn,
.circular-dice-btn {
  right: -66px !important;
  margin-left: 20px !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .monster-side-dice-btn,
  #combat-monster-section .monster-side-dice-btn,
  button.monster-side-dice-btn,
  div.monster-side-dice-btn,
  .circular-dice-btn {
    right: -58px !important;
    margin-left: 18px !important;
  }
}

/* ==========================================================================
   FIX 1: RECTANGULAR HERO BACKPACK BUTTON (FULL WIDTH, NO CIRCLE STYLING)
   ========================================================================== */
.hero-open-bag-btn,
.hero-panel button.hero-open-bag-btn,
button.hero-open-bag-btn,
.hero-panel .hero-open-bag-btn {
  width: 100% !important;
  max-width: 100% !important;
  min-width: auto !important;
  height: auto !important;
  min-height: 42px !important;
  max-height: none !important;
  border-radius: 8px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.65rem 0.8rem !important;
  font-size: clamp(0.68rem, 2.8vw, 0.82rem) !important;
  font-weight: bold !important;
  text-align: center !important;
  white-space: nowrap !important;
  background: linear-gradient(180deg, #3d2600, #1f1300) !important;
  border: 1.5px solid #ffd76e !important;
  color: #ffd76e !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5) !important;
  margin-top: 0.75rem !important;
  cursor: pointer !important;
}

/* ==========================================================================
   AUDIO CONTROLLER MODAL: ALWAYS TOPMOST Z-INDEX (2147483647) ABOVE COMBAT
   ========================================================================== */
.audio-mixer-modal-overlay,
.zoom-modal.audio-mixer-modal-overlay,
div[class*="audio-mixer-modal-overlay"] {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
}

.audio-mixer-modal-content,
.panel.audio-mixer-modal-content,
div[class*="audio-mixer-modal-content"] {
  position: relative !important;
  width: 92vw !important;
  max-width: 380px !important;
  margin: auto !important;
  background: rgba(24, 17, 12, 0.97) !important;
  border: 2px solid #ffd76e !important;
  border-radius: 14px !important;
  padding: 1.4rem 1.2rem !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 215, 110, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.9rem !important;
  box-sizing: border-box !important;
  z-index: 2147483647 !important;
}

/* ==========================================================================
   AUDIO CONTROLLER MODAL: ALWAYS TOPMOST Z-INDEX (2147483647) ABOVE COMBAT
   ========================================================================== */
.audio-mixer-modal-overlay,
.zoom-modal.audio-mixer-modal-overlay,
div[class*="audio-mixer-modal-overlay"] {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
}

.audio-mixer-modal-content,
.panel.audio-mixer-modal-content,
div[class*="audio-mixer-modal-content"] {
  position: relative !important;
  width: 92vw !important;
  max-width: 380px !important;
  margin: auto !important;
  background: rgba(24, 17, 12, 0.97) !important;
  border: 2px solid #ffd76e !important;
  border-radius: 14px !important;
  padding: 1.4rem 1.2rem !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 215, 110, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.9rem !important;
  box-sizing: border-box !important;
  z-index: 2147483647 !important;
}

/* ==========================================================================
   COMBAT SOUNDTRACK TOGGLE BUTTON (FAR TOP-LEFT CORNER)
   ========================================================================== */
.combat-soundtrack-toggle-btn,
button.combat-soundtrack-toggle-btn {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  right: auto !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, rgba(35, 25, 17, 0.96), rgba(18, 12, 8, 0.96)) !important;
  border: 1.5px solid #ffd76e !important;
  color: #ffd76e !important;
  font-size: 1.3rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 12px rgba(255, 215, 110, 0.4) !important;
  z-index: 9999 !important;
  transition: all 0.2s ease !important;
}

.combat-soundtrack-toggle-btn:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.95), 0 0 18px rgba(255, 215, 110, 0.7) !important;
  border-color: #ffffff !important;
}

@media (max-width: 600px) {
  .combat-soundtrack-toggle-btn,
  button.combat-soundtrack-toggle-btn {
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    font-size: 1.1rem !important;
  }
}

/* ==========================================================================
   COMBAT SOUNDTRACK TOGGLE BUTTON (FAR TOP-LEFT CORNER)
   ========================================================================== */
.combat-soundtrack-toggle-btn,
button.combat-soundtrack-toggle-btn {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  right: auto !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, rgba(35, 25, 17, 0.96), rgba(18, 12, 8, 0.96)) !important;
  border: 1.5px solid #ffd76e !important;
  color: #ffd76e !important;
  font-size: 1.3rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 12px rgba(255, 215, 110, 0.4) !important;
  z-index: 9999 !important;
  transition: all 0.2s ease !important;
}

.combat-soundtrack-toggle-btn:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.95), 0 0 18px rgba(255, 215, 110, 0.7) !important;
  border-color: #ffffff !important;
}

@media (max-width: 600px) {
  .combat-soundtrack-toggle-btn,
  button.combat-soundtrack-toggle-btn {
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    font-size: 1.1rem !important;
  }
}

/* ==========================================================================
   AUDIO CONTROLLER MODAL BUTTONS (RECTANGULAR, FULL-WIDTH, NO CIRCULAR SQUISH)
   ========================================================================== */
#eldravar_standalone_audio_modal button:not([title="Fechar"]),
.audio-mixer-modal-overlay button:not(.close-button):not([title="Fechar"]),
.audio-mixer-modal-content button:not(.close-button):not([title="Fechar"]) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  border-radius: 6px !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.85rem !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  margin-top: 0.5rem !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

#eldravar_standalone_audio_modal button[title="Fechar"],
.audio-mixer-modal-overlay button.close-button,
.audio-mixer-modal-content button.close-button {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  color: #ffd76e !important;
  font-size: 1.3rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==========================================================================
   AUDIO CONTROLLER MODAL BUTTONS (RECTANGULAR, FULL-WIDTH, NO CIRCULAR SQUISH)
   ========================================================================== */
#eldravar_standalone_audio_modal button:not([title="Fechar"]),
.audio-mixer-modal-overlay button:not(.close-button):not([title="Fechar"]),
.audio-mixer-modal-content button:not(.close-button):not([title="Fechar"]) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  border-radius: 6px !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.85rem !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  margin-top: 0.5rem !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

#eldravar_standalone_audio_modal button[title="Fechar"],
.audio-mixer-modal-overlay button.close-button,
.audio-mixer-modal-content button.close-button {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  color: #ffd76e !important;
  font-size: 1.3rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==========================================================================
   SYSTEM NOTIFICATION TOASTS: ALWAYS ABOVE MENU BAR (Z-INDEX 2147483646)
   ========================================================================== */
div[style*="2147483646"],
div[style*="calc(100% - 40px)"],
.toast-container,
div[class*="toast"],
div[class*="notification"] {
  z-index: 2147483646 !important;
}

/* ==========================================================================
   SYSTEM NOTIFICATION TOASTS: ALWAYS ABOVE MENU BAR (Z-INDEX 2147483646)
   ========================================================================== */
div[style*="2147483646"],
div[style*="calc(100% - 40px)"],
.toast-container,
div[class*="toast"],
div[class*="notification"] {
  z-index: 2147483646 !important;
}

/* ==========================================================================
   ZOOM MODAL CONTROLS TOOLBAR BUTTONS (MAP & CARD ZOOM TOOLBAR RECTANGULAR PILLS)
   ========================================================================== */
.zoom-modal__controls,
div.zoom-modal__controls,
div[class*="zoom-modal__controls"] {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.4rem 0.7rem !important;
  background: rgba(18, 12, 8, 0.92) !important;
  border: 1px solid #d6ad4a !important;
  border-radius: 30px !important;
  margin: 0.5rem auto !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8) !important;
}

.zoom-modal__controls button,
div.zoom-modal__controls button,
.zoom-modal__content .zoom-modal__controls button {
  width: auto !important;
  min-width: 46px !important;
  max-width: none !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  border-radius: 8px !important;
  padding: 0 0.85rem !important;
  background: linear-gradient(135deg, #3d2a1a, #1a1008) !important;
  border: 1px solid #ffd76e !important;
  color: #ffd76e !important;
  font-size: 0.88rem !important;
  font-weight: bold !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
}

.zoom-modal__controls button:hover,
div.zoom-modal__controls button:hover {
  background: linear-gradient(135deg, #ffd76e, #d6ad4a) !important;
  color: #110c08 !important;
  transform: scale(1.04) !important;
}

.zoom-modal__close,
button.zoom-modal__close {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* ==========================================================================
   ZOOM MODAL CONTROLS TOOLBAR BUTTONS (MAP & CARD ZOOM TOOLBAR RECTANGULAR PILLS)
   ========================================================================== */
.zoom-modal__controls,
div.zoom-modal__controls,
div[class*="zoom-modal__controls"] {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.4rem 0.7rem !important;
  background: rgba(18, 12, 8, 0.92) !important;
  border: 1px solid #d6ad4a !important;
  border-radius: 30px !important;
  margin: 0.5rem auto !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8) !important;
}

.zoom-modal__controls button,
div.zoom-modal__controls button,
.zoom-modal__content .zoom-modal__controls button {
  width: auto !important;
  min-width: 46px !important;
  max-width: none !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  border-radius: 8px !important;
  padding: 0 0.85rem !important;
  background: linear-gradient(135deg, #3d2a1a, #1a1008) !important;
  border: 1px solid #ffd76e !important;
  color: #ffd76e !important;
  font-size: 0.88rem !important;
  font-weight: bold !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
}

.zoom-modal__controls button:hover,
div.zoom-modal__controls button:hover {
  background: linear-gradient(135deg, #ffd76e, #d6ad4a) !important;
  color: #110c08 !important;
  transform: scale(1.04) !important;
}

.zoom-modal__close,
button.zoom-modal__close {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* ==========================================================================
   VISÃO GERAL DOS JOGADORES: EXACT DASHBOARD HERO PANEL DESIGN
   ========================================================================== */
.overview-hero-panel-card {
  box-sizing: border-box !important;
  width: 100% !important;
}

.overview-player-card-grid {
  display: grid !important;
  grid-template-columns: minmax(180px, 220px) 1fr !important;
  gap: 1.4rem !important;
  align-items: start !important;
}

@media (max-width: 640px) {
  .overview-player-card-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* ==========================================================================
   COMBAT SOUNDTRACK / AUDIO CONTROLLER SPEAKER BUTTON (TOP LEFT IN ALL COMBATS)
   ========================================================================== */
.combat-soundtrack-toggle-btn,
button.combat-soundtrack-toggle-btn {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  right: auto !important;
  bottom: auto !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #3d2a1a, #1a1008) !important;
  border: 1.5px solid #ffd76e !important;
  color: #ffd76e !important;
  font-size: 1.15rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 2147483645 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 110, 0.3) !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

.combat-soundtrack-toggle-btn:hover,
button.combat-soundtrack-toggle-btn:hover {
  background: linear-gradient(135deg, #ffd76e, #d6ad4a) !important;
  color: #110c08 !important;
  transform: scale(1.1) !important;
}
/* =====================================================
   EXACT BACKUP SHOP MODAL DESIGN & STYLING
   ===================================================== */
.shop-card {
  display: flex !important;
  flex-direction: column !important;
  background: rgba(18, 12, 8, 0.85) !important;
  padding: 0.5rem !important;
  border-radius: 8px !important;
  border: 1.5px solid rgba(214, 173, 74, 0.3) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6) !important;
  transition: transform 0.15s ease, border-color 0.15s ease !important;
}

.shop-card:hover {
  transform: translateY(-2px) !important;
  border-color: #ffd76e !important;
  box-shadow: 0 6px 16px rgba(255, 215, 110, 0.25) !important;
}

.shop-card img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2.5 / 3.5 !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  cursor: pointer !important;
}
/* =====================================================
   CLEAN ALIGNED STATS & INLINE PENCIL FOR PLAYER OVERVIEW
   ===================================================== */
.overview-stats-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  font-size: 0.85rem !important;
  color: #dac89e !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.overview-stats-row .btn-adjust,
.btn-adjust {
  width: auto !important;
  min-width: 24px !important;
  height: 24px !important;
  padding: 0 0.35rem !important;
  background: linear-gradient(135deg, #3d2a1a, #1a1008) !important;
  border: 1px solid #d6ad4a !important;
  border-radius: 4px !important;
  color: #ffd76e !important;
  font-size: 0.8rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 0.2rem !important;
}

.overview-stats-row .btn-adjust:hover,
.btn-adjust:hover {
  background: #ffd76e !important;
  color: #000 !important;
}

.edit-nickname-pencil-btn {
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 0.9rem !important;
  padding: 0 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
}

/* =====================================================
   ABSOLUTE MAXIMUM TOPMOST Z-INDEX FOR CARD ZOOM OVERLAY
   ===================================================== */
.exploration-modal,
.deck-select-modal-container,
div[class*="exploration"],
div[class*="deck-select"],
.zoom-modal:not(#eldravar_global_card_zoom_overlay):not(#sd-travel-event-modal) {
  z-index: 2147483000 !important;
}

#sd-travel-event-modal {
  z-index: 2120000000 !important;
}

#eldravar_global_card_zoom_overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  background: rgba(0, 0, 0, 0.94) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#eldravar_global_card_zoom_overlay .single-card-zoom-content {
  z-index: 2147483647 !important;
  position: relative !important;
  margin: auto !important;
}
/* =====================================================
   PERFECT FIT FOR CARDS INSIDE EQUIPMENT SLOTS
   ===================================================== */
.slot {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.65rem !important;
  box-sizing: border-box !important;
  background: rgba(18, 12, 8, 0.75) !important;
  border: 1.5px solid rgba(214, 173, 74, 0.3) !important;
  border-radius: 8px !important;
}

.slot img,
.slot-grid img,
.equipment-panel img {
  width: 100% !important;
  max-width: 220px !important;
  height: auto !important;
  aspect-ratio: 2.5 / 3.5 !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  display: block !important;
  margin: 0 auto 0.5rem auto !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7) !important;
}


/* Master CSS Overrides - Soul Dungeons */
.zoom-modal {
  z-index: 2147483647 !important;
}
.zoom-modal__content {
  z-index: 2147483648 !important;
}

/* Compact symmetrical combat life bars (165px) */
.combat-hero-life-box,
.combat-monster-life-box,
.combat-life-container,
div[style*="165px"],
.combat-hp-box {
  width: 165px !important;
  max-width: 165px !important;
  min-width: 165px !important;
  box-sizing: border-box !important;
}

/* Active Equipment Slots Fill Proportions */
.slot img,
.equipment-slot img,
.equipped-card-img,
.slot-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 6px !important;
}

/* Unsquish cards in multiplayer lobby */
.online-hero-picker-grid .hero-choice,
.online-hero-picker-grid button,
.hero-list .hero-choice {
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
}

/* Edit nickname pencil inline */
.edit-nickname-pencil-btn {
  background: transparent !important;
  border: none !important;
  color: #ffd76e !important;
  cursor: pointer !important;
  font-size: 1rem !important;
  padding: 0 4px !important;
  min-height: auto !important;
}

/* Combat monster card: fill its frame when the source image has inner padding. */
#combat-monster-section .combat-monster-card-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: visible !important;
  border-radius: 8px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin-bottom: 0.85rem !important;
}

#combat-monster-section #combat-monster-card-img,
#combat-monster-section .combat-monster-card-wrapper > img {
  flex: 0 0 auto !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  #combat-monster-section #combat-monster-card-img,
  #combat-monster-section .combat-monster-card-wrapper > img {
    width: clamp(118px, 38vw, 140px) !important;
    min-width: clamp(118px, 38vw, 140px) !important;
    max-width: clamp(118px, 38vw, 140px) !important;
  }
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  #combat-monster-section .combat-monster-card-wrapper {
    width: clamp(118px, 38vw, 140px) !important;
    min-width: clamp(118px, 38vw, 140px) !important;
    max-width: clamp(118px, 38vw, 140px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin-bottom: 0.28rem !important;
  }

  #combat-monster-section #combat-monster-card-img,
  #combat-monster-section .combat-monster-card-wrapper > img {
    width: clamp(118px, 38vw, 140px) !important;
    min-width: clamp(118px, 38vw, 140px) !important;
    max-width: clamp(118px, 38vw, 140px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    clip-path: none !important;
  }

  #combat-monster-section .combat-monster-main-life,
  #combat-monster-section .combat-monster-card-wrapper + .combat-life-bar-container:not(.combat-monster-life-mobile-anchor) {
    margin: 0.28rem auto 1.05rem auto !important;
  }

  #combat-hero-section {
    margin-top: 0.9rem !important;
  }

  #combat-hero-section h3 {
    margin-top: 0.15rem !important;
    margin-bottom: 0.48rem !important;
  }
}

/* Mobile exploration actions: prevent battle and event buttons from being clipped. */
@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .zoom-modal__content.exploration-modal-content,
  .exploration-modal-content {
    width: min(calc(100vw - 28px), 360px) !important;
    max-width: min(calc(100vw - 28px), 360px) !important;
    min-width: 0 !important;
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .exploration-modal-content .combat-encounter-header,
  .exploration-modal-content .combat-encounter-header > div,
  .exploration-modal-content .combat-encounter-header section,
  .exploration-modal-content .combat-encounter-header article {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .exploration-modal-content .combat-encounter-header div:has(> .combat-dice-btn-roll) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 0.45rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .exploration-modal-content .combat-dice-btn-roll,
  .exploration-modal-content .combat-dice-box-manual {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 0.35rem !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    box-sizing: border-box !important;
  }

  .exploration-modal-content .combat-dice-box-manual {
    gap: 0.25rem !important;
  }

  .exploration-modal-content .combat-dice-box-manual span {
    font-size: 0.72rem !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

  .exploration-modal-content .combat-dice-box-manual input,
  .exploration-modal-content input[placeholder="1-6"] {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 26px !important;
    min-height: 26px !important;
    font-size: 0.82rem !important;
  }

  .exploration-modal-content .combat-encounter-header div:has(> .hero-death-rule-btn) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 0.45rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .exploration-modal-content .combat-encounter-header div:has(> .hero-death-rule-btn) > .button-full:first-child {
    grid-column: 1 / -1 !important;
  }

  .exploration-modal-content .combat-encounter-header div:has(> .hero-death-rule-btn) > button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0.45rem 0.25rem !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    box-sizing: border-box !important;
  }

  #combat-monster-section .combat-monster-defeat-action,
  .exploration-modal-content .combat-monster-defeat-action {
    align-self: center !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    width: min(calc(100vw - 64px), 250px) !important;
    max-width: min(calc(100vw - 64px), 250px) !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0.25rem auto 0.65rem auto !important;
    padding: 0.55rem 0.3rem !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    font-size: 0.68rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    box-sizing: border-box !important;
  }

  .exploration-modal-content .combat-encounter-header div[style*="grid-template-columns: 1fr 1fr"],
  .exploration-modal-content .combat-encounter-header div[style*="gridTemplateColumns"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 0.45rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .exploration-modal-content .combat-encounter-header div[style*="grid-template-columns: 1fr 1fr"] > button,
  .exploration-modal-content .combat-encounter-header div[style*="gridTemplateColumns"] > button,
  .exploration-modal-content .combat-encounter-header button {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .exploration-modal-content .combat-encounter-header div[style*="grid-template-columns: 1fr 1fr"] > button,
  .exploration-modal-content .combat-encounter-header div[style*="gridTemplateColumns"] > button {
    width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0.45rem 0.25rem !important;
    font-size: 0.68rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }

  .exploration-modal-content .combat-encounter-header > div > button.button-full {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 0.55rem 0.4rem !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
}

/* v1.2.46: keep combat top buttons tappable above mobile overlays and effects */
.zoom-modal .modal-close-btn-corner,
.zoom-modal .zoom-modal__close,
.zoom-modal .combat-soundtrack-toggle-btn,
.zoom-modal button.modal-close-btn-corner,
.zoom-modal button.zoom-modal__close,
.zoom-modal button.combat-soundtrack-toggle-btn {
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  z-index: 2147483647 !important;
}

@media (max-width: 768px) {
  .zoom-modal__content > .modal-close-btn-corner,
  .zoom-modal__content > .zoom-modal__close,
  .zoom-modal__content > .combat-soundtrack-toggle-btn,
  button.modal-close-btn-corner,
  button.zoom-modal__close,
  button.combat-soundtrack-toggle-btn {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    z-index: 2147483647 !important;
  }
}

/* v1.2.47: center the mobile monster life bar on the monster card axis */
@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  #combat-monster-section {
    align-items: center !important;
  }

  #combat-monster-section .combat-monster-card-wrapper {
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: visible !important;
  }

  #combat-monster-section .combat-monster-main-life,
  #combat-monster-section .combat-monster-card-wrapper > .combat-life-bar-container,
  #combat-monster-section .combat-monster-card-wrapper + .combat-life-bar-container:not(.combat-monster-life-mobile-anchor) {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 155px !important;
    min-width: 155px !important;
    max-width: 155px !important;
    margin: 0.28rem auto 0.78rem auto !important;
    align-self: center !important;
  }
}

/* v1.2.102: rebuilt mobile turn confirmation actions from clean buttons */
.turn-confirm-fresh-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
  width: 100% !important;
}

.turn-confirm-fresh-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.32rem !important;
  padding: 0 0.7rem !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  font-size: 0.84rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  .turn-confirm-fresh-actions {
    gap: 0.62rem !important;
  }

  .turn-confirm-fresh-btn {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 0.42rem !important;
    font-size: 0.78rem !important;
  }
}

/* v1.2.102: base hero stat controls beside active equipment */
.base-stat-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

.base-stat-header h2 {
  margin: 0 !important;
}

.base-stat-buttons {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
}

.base-stat-mini-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  border: 1.5px solid #d6ad4a !important;
  background: linear-gradient(180deg, #25180f, #0d0805) !important;
  color: #ffd76e !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 0 10px rgba(214, 173, 74, 0.22) !important;
  touch-action: manipulation !important;
}

.base-stat-mini-btn:hover {
  filter: brightness(1.18) !important;
  transform: translateY(-1px) !important;
}

.base-stat-mini-btn:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.5) !important;
  transform: none !important;
}

.base-stat-life-btn {
  border-color: #ff4d6d !important;
  color: #ffb3c4 !important;
}

@media (max-width: 640px) {
  .base-stat-header {
    gap: 0.5rem !important;
    margin-bottom: 0.6rem !important;
  }

  .base-stat-mini-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 0.95rem !important;
  }
}

/* v1.2.122: isolate Malgor layout from every other monster life bar. */
#combat-monster-section.combat-standard-enemy-active {
  align-items: center !important;
}

#combat-monster-section.combat-standard-enemy-active .combat-monster-card-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: visible !important;
}

#combat-monster-section.combat-standard-enemy-active .combat-monster-main-life {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: 155px !important;
  min-width: 155px !important;
  max-width: 155px !important;
  margin: 0.32rem auto 0.78rem auto !important;
  align-self: center !important;
}

#combat-monster-section.combat-standard-enemy-active .combat-monster-defeat-action,
#combat-monster-section.combat-malgor-active .combat-monster-defeat-action {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
}

#combat-monster-section.combat-malgor-active {
  align-items: center !important;
}

#combat-monster-section.combat-malgor-active .combat-monster-card-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 0.55rem !important;
  overflow: visible !important;
}

#combat-monster-section.combat-malgor-active .combat-monster-main-life,
#combat-monster-section.combat-malgor-active .combat-malgor-attack-control {
  width: 155px !important;
  min-width: 155px !important;
  max-width: 155px !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
}

#combat-monster-section.combat-malgor-active .combat-monster-main-life {
  margin: 0.28rem auto 0.28rem auto !important;
}

#combat-monster-section.combat-malgor-active .combat-malgor-attack-control {
  margin: 0.18rem auto 0.62rem auto !important;
}

@media (min-width: 700px) {
  #combat-monster-section.combat-malgor-active .combat-monster-card-wrapper {
    margin-bottom: 0.42rem !important;
  }

  #combat-monster-section.combat-malgor-active .combat-monster-main-life {
    transform: translateX(-82px) !important;
    margin-bottom: 0.18rem !important;
  }

  #combat-monster-section.combat-malgor-active .combat-malgor-attack-control {
    transform: translateX(82px) !important;
    margin-top: -2.9rem !important;
    margin-bottom: 0.7rem !important;
  }
}

/* v1.2.143: travel-event child popups must always open above the travel card modal. */
#sd-travel-event-modal {
  z-index: 2147482000 !important;
}

.zoom-modal:has(.players-overview-modal-content),
.zoom-modal:has(.merchant-choice-modal-content),
.zoom-modal:has(.deck-select-modal-content),
.zoom-modal.merchant-choice-modal-overlay,
.merchant-choice-modal-overlay,
.deck-select-modal-container:not(#sd-travel-event-modal) {
  z-index: 2147483647 !important;
}

.zoom-modal:has(.players-overview-modal-content) > .zoom-modal__content,
.zoom-modal:has(.merchant-choice-modal-content) > .zoom-modal__content,
.zoom-modal:has(.deck-select-modal-content) > .zoom-modal__content,
.players-overview-modal-content,
.merchant-choice-modal-content,
.deck-select-modal-content {
  position: relative !important;
  z-index: 2147483647 !important;
}

/* v1.2.143: every monster defeat/final-blow action stays centered under the monster card. */
#combat-monster-section {
  align-items: center !important;
}

#combat-monster-section .combat-monster-defeat-action,
.exploration-modal-content #combat-monster-section .combat-monster-defeat-action,
.exploration-modal-content .combat-monster-defeat-action {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  justify-self: center !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: min(360px, 82vw) !important;
  max-width: min(360px, 82vw) !important;
  min-width: 0 !important;
  margin: 0.35rem auto 0.75rem auto !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

@media (max-width: 800px) {
  #combat-monster-section .combat-monster-defeat-action,
  .exploration-modal-content #combat-monster-section .combat-monster-defeat-action,
  .exploration-modal-content .combat-monster-defeat-action {
    width: min(250px, calc(100vw - 78px)) !important;
    max-width: min(250px, calc(100vw - 78px)) !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0.45rem 0.35rem !important;
    font-size: 0.72rem !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }
}

/* v1.2.145: center the zero-life monster action on the monster card axis, not on the shifted dice column. */
#combat-monster-section .combat-monster-card-wrapper:has(> .combat-monster-defeat-action),
.exploration-modal-content #combat-monster-section .combat-monster-card-wrapper:has(> .combat-monster-defeat-action) {
  margin-bottom: 3.75rem !important;
}

#combat-monster-section .combat-monster-card-wrapper > .combat-monster-defeat-action,
.exploration-modal-content #combat-monster-section .combat-monster-card-wrapper > .combat-monster-defeat-action {
  position: absolute !important;
  top: calc(100% + 0.35rem) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  align-self: center !important;
  justify-self: center !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 800px) {
  #combat-monster-section .combat-monster-card-wrapper > .combat-monster-defeat-action,
  .exploration-modal-content #combat-monster-section .combat-monster-card-wrapper > .combat-monster-defeat-action {
    width: min(250px, calc(100vw - 78px)) !important;
    max-width: min(250px, calc(100vw - 78px)) !important;
  }
}

/* v1.2.146: card zoom can be dragged to every corner on PC and mobile. */
.zoom-modal__image-wrapper.sd-card-pan-viewport {
  overflow: hidden !important;
  cursor: grab !important;
  touch-action: none !important;
  overscroll-behavior: contain !important;
  user-select: none !important;
}

.zoom-modal__image-wrapper.sd-card-pan-viewport:active {
  cursor: grabbing !important;
}

.zoom-modal__image-wrapper.sd-card-pan-viewport img.sd-card-pan-image {
  transform-origin: center center !important;
  will-change: transform !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  touch-action: none !important;
}

/* v1.2.149: mobile monster life bar is centered on the card image, ignoring the side dice. */
@media (max-width: 600px), (max-height: 920px) and (max-width: 800px) {
  #combat-monster-section.combat-standard-enemy-active {
    align-items: center !important;
    justify-content: flex-start !important;
  }

  #combat-monster-section.combat-standard-enemy-active .combat-monster-card-wrapper {
    --sd-mobile-monster-card-width: clamp(154px, 50vw, 186px);
    width: var(--sd-mobile-monster-card-width) !important;
    min-width: var(--sd-mobile-monster-card-width) !important;
    max-width: var(--sd-mobile-monster-card-width) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
    transform: none !important;
  }

  #combat-monster-section.combat-standard-enemy-active #combat-monster-card-img,
  #combat-monster-section.combat-standard-enemy-active .combat-monster-card-wrapper > img {
    width: var(--sd-mobile-monster-card-width) !important;
    min-width: var(--sd-mobile-monster-card-width) !important;
    max-width: var(--sd-mobile-monster-card-width) !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #combat-monster-section.combat-standard-enemy-active .combat-monster-main-life {
    width: var(--sd-mobile-monster-card-width) !important;
    min-width: var(--sd-mobile-monster-card-width) !important;
    max-width: var(--sd-mobile-monster-card-width) !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0.38rem auto 0.82rem auto !important;
    align-self: center !important;
    justify-self: center !important;
  }
}
