/* 100% Native Metin2 UI Theme for Hades Zindani HUD, 3D Gate Nameplates,
 * and Illustrated Talking Portrait Boon / Karon Choice Overlay (#187).
 *
 * Built exclusively from official extracted Metin2 `etc` pack textures:
 *   - ThinBoard 9-slice (thinboard_9slice.png / thinboard_modal_9slice.png)
 *   - Dragon-Head Bronze Chat Rail (chat_bar_left/middle/right.png)
 *   - Cloud-Scroll HorizontalBar (horizontalbar_left/center/right.png)
 *   - Target HP Metallic Gauge (gauge_slot_left/center/right.png + gauge_red/blue.png)
 *   - Embossed Skill Slot Base (slot_base.png)
 *   - Native Pixel Buttons (minimize/close/middle/large/xlarge_button_01..03.png)
 *
 * Strictly zero emojis, zero serif web fonts, zero rounded SaaS cards, zero blur.
 */

/* --- Shared Native Metin2 Typography & Surface Primitives --- */
#m2-hades-hud,
#m2-hades-gates-layer,
#m2-hades-boss-banner,
#m2-hades-sacrifice-banner,
#m2-hades-twist-banner,
#m2-hades-choice-overlay,
#m2-hades-tooltip,
#m2-hades-launcher,
#m2-hades-meta-overlay,
#m2-hades-prealpha-overlay,
#m2-hades-prealpha-toast {
  font-family: Tahoma, "Liberation Sans", Arial, sans-serif;
  color: #e8e2d5;
  text-shadow: 1px 1px 0 #000;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}
#m2-hades-hud *,
#m2-hades-gates-layer *,
#m2-hades-boss-banner *,
#m2-hades-sacrifice-banner *,
#m2-hades-twist-banner *,
#m2-hades-choice-overlay *,
#m2-hades-tooltip *,
#m2-hades-launcher *,
#m2-hades-meta-overlay *,
#m2-hades-prealpha-overlay *,
#m2-hades-prealpha-toast * {
  box-sizing: border-box;
}

.m2-thinboard {
  border-style: solid;
  border-width: 16px;
  border-image-source: url("./metin2-ui/thinboard_9slice.png");
  border-image-slice: 16 fill;
  border-image-repeat: stretch;
  image-rendering: pixelated;
}
.m2-thinboard-modal {
  border-style: solid;
  border-width: 16px;
  border-image-source: url("./metin2-ui/thinboard_modal_9slice.png");
  border-image-slice: 16 fill;
  border-image-repeat: stretch;
  image-rendering: pixelated;
}

/* Native Dragon-Head Bronze Chat Rail (chat_bar_left/middle/right: 64x22) */
.m2-dragon-rail {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 22px;
  pointer-events: none;
  image-rendering: pixelated;
}
.m2-dragon-rail .m2-dr-l {
  width: 64px;
  height: 22px;
  flex: none;
  background: url("./metin2-ui/chat_bar_left.png") no-repeat left top;
}
.m2-dragon-rail .m2-dr-m {
  flex: 1;
  height: 22px;
  min-width: 8px;
  background: url("./metin2-ui/chat_bar_middle.png") repeat-x left top;
}
.m2-dragon-rail .m2-dr-r {
  width: 64px;
  height: 22px;
  flex: none;
  background: url("./metin2-ui/chat_bar_right.png") no-repeat right top;
}

.m2-dragon-rail.compact {
  height: 16px;
}
.m2-dragon-rail.compact .m2-dr-l {
  width: 46px;
  height: 16px;
  background-size: 46px 16px;
}
.m2-dragon-rail.compact .m2-dr-m {
  height: 16px;
  background-size: auto 16px;
}
.m2-dragon-rail.compact .m2-dr-r {
  width: 46px;
  height: 16px;
  background-size: 46px 16px;
}

/* Native Carved HorizontalBar (horizontalbar_left/center/right: 32x18) */
.m2-hbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20px;
  padding: 0 8px;
  background:
    url("./metin2-ui/horizontalbar_left.png") no-repeat left center / 24px 20px,
    url("./metin2-ui/horizontalbar_right.png") no-repeat right center / 24px 20px,
    url("./metin2-ui/horizontalbar_center.png") repeat-x center center / 32px 20px;
  image-rendering: pixelated;
  font-size: 11px;
  font-weight: 700;
  color: #ffd866;
}

/* Native Target HP Metallic Gauge (gauge_slot_left/center/right + gauge_red/blue: 16x8) */
.m2-gauge {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 10px;
  image-rendering: pixelated;
}
.m2-gauge-l {
  width: 16px;
  height: 10px;
  flex: none;
  background: url("./metin2-ui/gauge_slot_left.png") no-repeat left center / 16px 10px;
}
.m2-gauge-m {
  position: relative;
  flex: 1;
  height: 10px;
  background: url("./metin2-ui/gauge_slot_center.png") repeat-x left center / 16px 10px;
  overflow: hidden;
}
.m2-gauge-r {
  width: 16px;
  height: 10px;
  flex: none;
  background: url("./metin2-ui/gauge_slot_right.png") no-repeat right center / 16px 10px;
}
.m2-gauge-fill {
  position: absolute;
  left: 0;
  top: 1px;
  bottom: 1px;
  background: url("./metin2-ui/gauge_red.png") repeat-x left center / 16px 8px;
  transition: width 0.25s linear;
}
.m2-gauge-fill.timer {
  background-image: url("./metin2-ui/gauge_blue.png");
}

/* Native Pixel Window Controls (15x15) */
.m2-btn-min {
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  background: url("./metin2-ui/minimize_button_01.png") no-repeat center center;
  image-rendering: pixelated;
  cursor: pointer;
  flex: none;
}
.m2-btn-min:hover { background-image: url("./metin2-ui/minimize_button_02.png"); }
.m2-btn-min:active { background-image: url("./metin2-ui/minimize_button_03.png"); }

.m2-btn-close {
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  background: url("./metin2-ui/close_button_01.png") no-repeat center center;
  image-rendering: pixelated;
  cursor: pointer;
  flex: none;
}
.m2-btn-close:hover { background-image: url("./metin2-ui/close_button_02.png"); }
.m2-btn-close:active { background-image: url("./metin2-ui/close_button_03.png"); }

/* Native Pixel Action Buttons (large 88x21, xlarge 180x25) */
.m2-btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 88px;
  height: 21px;
  padding: 0 6px;
  border: 0;
  background: url("./metin2-ui/large_button_01.png") no-repeat center center / 88px 21px;
  image-rendering: pixelated;
  font-family: Tahoma, "Liberation Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #e8e2d5;
  text-shadow: 1px 1px 0 #000;
  cursor: pointer;
}
.m2-btn-large:hover:not(:disabled) {
  background-image: url("./metin2-ui/large_button_02.png");
  color: #ffffff;
}
.m2-btn-large:active:not(:disabled) {
  background-image: url("./metin2-ui/large_button_03.png");
}
.m2-btn-large:disabled {
  opacity: 0.45;
  cursor: default;
}

.m2-btn-xlarge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 180px;
  height: 25px;
  padding: 0 8px;
  border: 0;
  background: url("./metin2-ui/xlarge_button_01.png") no-repeat center center / 180px 25px;
  image-rendering: pixelated;
  font-family: Tahoma, "Liberation Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #e8e2d5;
  text-shadow: 1px 1px 0 #000;
  cursor: pointer;
}
.m2-btn-xlarge:hover:not(:disabled) {
  background-image: url("./metin2-ui/xlarge_button_02.png");
  color: #ffffff;
}
.m2-btn-xlarge:active:not(:disabled) {
  background-image: url("./metin2-ui/xlarge_button_03.png");
}
.m2-btn-xlarge:disabled {
  opacity: 0.45;
  cursor: default;
}
.m2-btn-xlarge img,
.m2-btn-large img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
  display: block;
}

/* ============================================================================
 * Element A & B: Independent Movable Native Metin2 ThinBoard Chamber Panel
 * + Movable Vertical Slot_Base Boon Column (default top-left, ZERO collision
 * with top-center Target HP Bar & Duyuru notices; positions persisted!)
 * ============================================================================ */
#m2-hades-hud {
  position: fixed;
  inset: 0;
  z-index: 9350;
  pointer-events: none;
  display: none;
}
#m2-hades-hud.visible {
  display: block;
}

.m2h-chamber-dock {
  position: fixed;
  left: 10px;
  top: 50px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  z-index: 9355;
}
.m2h-boon-dock {
  position: fixed;
  left: 10px;
  top: 162px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  z-index: 9354;
}
.m2h-drag-handle {
  cursor: move;
  touch-action: none;
}
.m2h-chamber-dock.is-dragging,
.m2h-boon-dock.is-dragging {
  z-index: 9420;
  filter: brightness(1.08);
}

.m2h-boon-grip {
  width: 100%;
  min-width: 34px;
  height: 14px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    url("./metin2-ui/horizontalbar_left.png") no-repeat left center / 14px 14px,
    url("./metin2-ui/horizontalbar_right.png") no-repeat right center / 14px 14px,
    url("./metin2-ui/horizontalbar_center.png") repeat-x center center / 24px 14px;
  image-rendering: pixelated;
  font-size: 9px;
  font-weight: 700;
  color: #d8cfa8;
  letter-spacing: 0.3px;
  cursor: move;
  touch-action: none;
}
.m2h-boon-grip:hover {
  color: #ffd866;
}

.m2h-panel-wrap {
  pointer-events: auto;
  width: 282px;
  display: flex;
  flex-direction: column;
}
.m2h-panel-rail {
  margin-bottom: -5px;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.m2h-panel-box {
  width: 100%;
}
.m2h-panel-inner {
  margin: -9px -8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m2h-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.m2h-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffd866;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m2h-kat {
  color: #ff8070;
}
.m2h-top-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.m2h-heat-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #ff8578;
  cursor: default;
}
.m2h-heat-tag img,
.m2h-res-item img,
.m2h-obj-ico {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
  display: block;
  flex: none;
}

.m2h-row-obj {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #e8e2d5;
}
.m2h-obj-txt {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m2h-obj-num {
  color: #ffd866;
  font-weight: 700;
  flex: none;
}

.m2h-row-res {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 3px;
  border-top: 1px solid rgba(160, 152, 138, 0.22);
  font-size: 11px;
  font-weight: 700;
}
.m2h-res-group {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}
.m2h-res-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: default;
}
.m2h-res-item.obol { color: #ffd866; }
.m2h-res-item.revive { color: #ff9c92; }
.m2h-res-item.revive.zero { color: #8c867c; }
.m2h-res-item.dice { color: #9ad2ff; }
.m2h-res-item.potion { color: #ff8e7a; }
.m2h-res-item.potion.low { color: #ffc266; }
.m2h-res-item.potion.zero { color: #8c867c; opacity: 0.68; }
.m2h-res-item.is-flask-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px 1px 3px;
  border: 1px solid #9c5a34;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(84, 24, 18, 0.92) 0%, rgba(34, 10, 10, 0.94) 100%);
  box-shadow: inset 0 0 6px rgba(255, 166, 74, 0.28);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: border-color 0.14s ease, filter 0.14s ease, transform 0.1s ease;
}
.m2h-res-item.is-flask-btn:hover {
  border-color: #ffd866;
  filter: brightness(1.14);
}
.m2h-res-item.is-flask-btn:active {
  transform: scale(0.95);
}
.m2h-res-item.is-flask-btn.zero {
  border-color: #544c44;
  background: rgba(24, 20, 18, 0.84);
  box-shadow: none;
}
.m2h-res-pot-pct {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-res-pot-key {
  padding: 0 3px;
  border: 1px solid #7a6238;
  background: rgba(12, 9, 6, 0.9);
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  color: #ffe8a6;
  line-height: 11px;
}
.m2h-mult-txt {
  font-size: 10.5px;
  color: #c8bfa8;
  font-weight: 400;
}

/* Native Metin2 Chamber Status Strips (Chaos Curse, Rival Race, Blood Ritual, Mountain Shrine) */
.m2h-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 5px;
  font-size: 10.5px;
  line-height: 1.25;
  cursor: default;
}
.m2h-strip img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
  flex: none;
  display: block;
}
.m2h-strip-txt {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m2h-strip-chaos {
  background: rgba(40, 14, 58, 0.92);
  border: 1px solid #9d5ee0;
  color: #ebd4ff;
}
.m2h-strip-chaos b { color: #d8a2ff; }
.m2h-strip-rival {
  background: rgba(38, 25, 10, 0.92);
  border: 1px solid #b58d46;
  color: #ede2cc;
}
.m2h-strip-rival .m2h-rv-p { color: #ffd866; }
.m2h-strip-rival .m2h-rv-r { color: #ff8070; }
.m2h-strip-mountain {
  background: rgba(54, 14, 14, 0.92);
  border: 1px solid #c94c3e;
  color: #ffc8b4;
}
.m2h-strip-mountain b { color: #ffd866; }

@keyframes m2h-ritual-in-pulse {
  0%, 100% { border-color: #d4a63a; background: rgba(74, 48, 8, 0.90); color: #ffe88a; }
  50% { border-color: #fff0a8; background: rgba(102, 66, 12, 0.96); color: #ffffff; }
}
@keyframes m2h-ritual-out-pulse {
  0%, 100% { border-color: #c93b2e; background: rgba(72, 12, 12, 0.90); color: #ff9c92; }
  50% { border-color: #ff6e5e; background: rgba(108, 18, 18, 0.96); color: #ffe2dc; }
}
.m2h-ritual-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 5px;
  background: rgba(36, 10, 10, 0.90);
  border: 1px solid #a83c34;
}
.m2h-ritual-box.is-in {
  border-color: #d49c3a;
}
.m2h-ritual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
}
.m2h-ritual-lbl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffd87a;
}
.m2h-ritual-lbl img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
  display: block;
}
.m2h-ritual-hint {
  padding: 1px 4px;
  font-size: 9.5px;
  font-weight: 700;
  border: 1px solid #a83c34;
  white-space: nowrap;
}
.m2h-ritual-hint.in {
  animation: m2h-ritual-in-pulse 1.15s ease-in-out infinite;
}
.m2h-ritual-hint.out {
  animation: m2h-ritual-out-pulse 0.85s ease-in-out infinite;
}
.m2h-ritual-box.is-in .m2-gauge-fill.ritual {
  filter: brightness(1.18) drop-shadow(0 0 3px rgba(255, 200, 72, 0.65));
}

.m2h-altar-cta.is-mountain {
  color: #ffc2a8;
  box-shadow: 0 0 8px rgba(204, 48, 36, 0.45);
}
.m2h-altar-cta.is-mountain:hover {
  color: #ffffff;
}
.m2h-altar-cta {
  width: 100%;
  height: 24px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  padding: 0 8px;
  background: url("./metin2-ui/xlarge_button_01.png") no-repeat center center / 100% 24px;
  image-rendering: pixelated;
  font-family: Tahoma, "Liberation Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #ffd866;
  text-shadow: 1px 1px 0 #000;
  cursor: pointer;
}
.m2h-altar-cta:hover {
  background-image: url("./metin2-ui/xlarge_button_02.png");
  color: #ffffff;
}
.m2h-altar-cta:active {
  background-image: url("./metin2-ui/xlarge_button_03.png");
}
.m2h-altar-cta img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
  display: block;
}

/* Minimized Single-Line Native ThinBoard */
.m2h-panel-mini {
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  padding: 0;
  font-family: Tahoma, "Liberation Sans", Arial, sans-serif;
  color: #ffd866;
  text-shadow: 1px 1px 0 #000;
}
.m2h-panel-mini-in {
  margin: -11px -8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.m2h-panel-mini-in img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
}
.m2h-panel-mini:hover {
  filter: brightness(1.12);
}

/* Native Metin2 Gate Compass Fallback (only if gates off-screen) */
.m2h-gate-compass {
  pointer-events: auto;
  display: none;
  max-width: 282px;
}
.m2h-gc-item.is-clickable {
  cursor: pointer;
  color: #ffd866;
  text-decoration: underline;
}
.m2h-gc-item.is-clickable:hover {
  color: #ffffff;
}
.m2h-gate-compass.show {
  display: block;
}
.m2h-gc-in {
  margin: -10px -8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #e8e2d5;
}
.m2h-gc-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.m2h-gc-item img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
}

/* Element B: Left Vertical Boon Column using real 32x32 Slot_Base */
.m2h-boon-rail {
  pointer-events: auto;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(9, 34px);
  gap: 3px;
}
.m2h-slot {
  position: relative;
  width: 34px;
  height: 34px;
  background: url("./metin2-ui/slot_base.png") no-repeat center center / 34px 34px;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.m2h-slot:hover {
  filter: brightness(1.18);
  z-index: 10;
}
.m2h-slot img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  display: block;
}
.m2h-slot.tier-s { box-shadow: inset 0 0 0 1px #ffd866; }
.m2h-slot.tier-p { box-shadow: inset 0 0 0 1px #c58cff; }
.m2h-slot.tier-hammer { box-shadow: inset 0 0 0 1px #ffbd59; }
.m2h-slot.tier-duo { box-shadow: inset 0 0 0 1px #ff9c47; }
.m2h-slot.tier-heroic { box-shadow: inset 0 0 0 1px #e5833d; }
.m2h-slot.tier-epic { box-shadow: inset 0 0 0 1px #a66ad8; }
.m2h-slot.tier-rare { box-shadow: inset 0 0 0 1px #5fa4e6; }

.m2h-seal {
  position: absolute;
  right: 1px;
  bottom: 1px;
  padding: 0 2px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #8a8275;
  font-size: 9px;
  font-weight: 700;
  line-height: 11px;
  color: #ffd866;
}
.m2h-slot.tier-p .m2h-seal { color: #ddb8ff; border-color: #9e6bd4; }
.m2h-slot.tier-hammer .m2h-seal { color: #ffd080; border-color: #d67e28; }
.m2h-slot.tier-duo .m2h-seal { color: #ffbd70; border-color: #c96c2b; }

/* --- Authentic Native Metin2 ThinBoard Hover Tooltip --- */
#m2-hades-tooltip {
  position: fixed;
  z-index: 9650;
  pointer-events: none;
  display: none;
  max-width: 260px;
}
#m2-hades-tooltip.show {
  display: block;
}
.m2h-tt-in {
  margin: -9px -8px;
  font-size: 11px;
  line-height: 1.4;
}
.m2h-tt-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffd866;
  margin-bottom: 2px;
}
.m2h-tt-tier {
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(170, 162, 148, 0.28);
}
.m2h-tt-desc {
  color: #e8e2d5;
  white-space: pre-line;
}

/* ============================================================================
 * Element C: 60 FPS Floating 3D-Projected Native Metin2 Gate & Altar Markers
 * (Real Slot_Base Icon + Native ThinBoard Overhead Nameplate — ZERO octagons!)
 * ============================================================================ */
#m2-hades-gates-layer {
  position: fixed;
  inset: 0;
  z-index: 9300;
  pointer-events: none;
  overflow: hidden;
  display: none;
}
#m2-hades-gates-layer.visible { display: block; }

@keyframes m2h-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
}

.m2h-medallion-anchor {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  pointer-events: none;
  display: none;
}
.m2h-medallion-anchor.is-clickable {
  pointer-events: auto;
  cursor: pointer;
}
.m2h-medallion-anchor.is-clickable:hover {
  filter: brightness(1.16);
}
.m2h-medallion-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transform: translate(-50%, -100%);
  animation: m2h-float 2.6s ease-in-out infinite;
}

.m2h-gate-slot {
  width: 38px;
  height: 38px;
  background: url("./metin2-ui/slot_base.png") no-repeat center center / 38px 38px;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.9));
}
.m2h-gate-slot img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  display: block;
}
.m2h-medallion-anchor.aura-skill .m2h-gate-slot { box-shadow: inset 0 0 0 1px #c58cff; }
.m2h-medallion-anchor.aura-gold .m2h-gate-slot { box-shadow: inset 0 0 0 1px #ffd866; }
.m2h-medallion-anchor.aura-crimson .m2h-gate-slot { box-shadow: inset 0 0 0 1px #ff7a70; }
.m2h-medallion-anchor.aura-azure .m2h-gate-slot { box-shadow: inset 0 0 0 1px #7ec4ff; }
.m2h-medallion-anchor.aura-ember .m2h-gate-slot { box-shadow: inset 0 0 0 1px #f0a458; }

.m2h-gate-plate {
  white-space: nowrap;
  text-align: center;
}
.m2h-gate-plate-in {
  margin: -11px -7px;
  line-height: 1.25;
}
.m2h-ribbon-main {
  font-size: 11px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-ribbon-sub {
  font-size: 10px;
  color: #d8d1c3;
}
.m2h-medallion-anchor.is-mountain .m2h-ribbon-main {
  color: #ff9c8a;
}
.m2h-medallion-anchor.is-mountain .m2h-ribbon-sub {
  color: #ffd866;
  font-weight: 700;
}

/* ============================================================================
 * Element D: Hades v2.5 Illustrated Talking Portrait Boon & Karon Overlay
 * (Native Metin2 Dragon-Head Bronze Rail + ThinBoard Modal + Slot_Base Cards
 *  + Real Metin2 Large/XLarge/[X] Pixel Buttons!)
 * ============================================================================ */
#m2-hades-choice-overlay {
  position: fixed;
  inset: 0;
  z-index: 9520;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.68);
}
#m2-hades-choice-overlay.visible {
  display: flex;
}

@keyframes m2h-portrait-in {
  0% { opacity: 0.92; transform: translate3d(-14px, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes m2h-deck-in {
  0% { opacity: 0.94; transform: translate3d(0, 6px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

.m2h-ov-shell {
  width: min(1060px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  animation: m2h-deck-in 0.2s ease-out both;
}
.m2h-ov-rail {
  margin-bottom: -6px;
  position: relative;
  z-index: 3;
}
.m2h-ov-window {
  width: 100%;
}
.m2h-ov-window-in {
  margin: -6px -4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Native HorizontalBar Top Window Title Row */
.m2h-ov-titlebar {
  height: 24px;
  padding: 0 8px 0 10px;
}
.m2h-ov-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-ov-title-sub {
  font-size: 11px;
  font-weight: 400;
  color: #cfc8b8;
}
.m2h-ov-title-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.m2h-ov-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-ov-stat.dice { color: #9ad2ff; }
.m2h-ov-stat img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
}

/* 2-Column Body: Feathered Spirit Portrait Left + Native ThinBoard Cards Right */
.m2h-ov-body {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.m2h-ov-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 390px;
  animation: m2h-portrait-in 0.24s ease-out both;
}
.m2h-portrait-box {
  position: relative;
  flex: 1;
  min-height: 255px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.m2h-portrait-img {
  position: relative;
  z-index: 2;
  width: 266px;
  max-height: 335px;
  object-fit: contain;
  display: block;
}
.m2h-speaker-box {
  position: relative;
  z-index: 3;
  margin-top: -42px;
}
.m2h-speaker-in {
  margin: -9px -8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.m2h-sp-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-sp-name.is-chaos {
  color: #ddb0ff;
}
.m2h-sp-name.is-demirci {
  color: #ffbe66;
}
.m2h-sp-title {
  font-size: 10.5px;
  color: #bfb6a3;
}
.m2h-sp-quote {
  font-size: 11.5px;
  line-height: 1.45;
  color: #e8e2d5;
  padding-top: 4px;
  border-top: 1px solid rgba(160, 152, 138, 0.24);
}

/* Right Side: Boon Cards (3 col) or Karon Shop Cards (3x2) */
.m2h-ov-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.m2h-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
}
.m2h-card-grid.is-shop {
  gap: 8px;
}
.m2h-card-grid.is-trial,
.m2h-card-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
  gap: 16px;
}
.m2h-card-grid.cols-1 {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}
.m2h-ov-shell.is-chaos .m2h-ov-window {
  box-shadow: 0 0 22px rgba(142, 46, 224, 0.40);
}
.m2h-ov-shell.is-hammer .m2h-ov-window {
  box-shadow: 0 0 22px rgba(235, 132, 36, 0.36);
}
.m2h-ov-shell.is-mystery .m2h-ov-window {
  box-shadow: 0 0 18px rgba(164, 108, 220, 0.28);
}

.m2h-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: #e8e2d5;
  text-align: center;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.m2h-card:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.14);
}
.m2h-card:disabled {
  cursor: default;
}
.m2h-card.is-picked {
  filter: brightness(1.25);
  outline: 1px solid #ffd866;
}
.m2h-card.is-purchased {
  opacity: 0.52;
}
.m2h-card.is-locked {
  opacity: 0.62;
}

.m2h-card-in {
  margin: -10px -9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 7px;
}
.m2h-card-grid.is-shop .m2h-card-in {
  gap: 5px;
}

.m2h-card-head {
  width: 100%;
  height: 19px;
  font-size: 10.5px;
}
.m2h-card.rar-supreme .m2h-card-head { color: #ffe27a; }
.m2h-card.rar-hammer .m2h-card-head { color: #ffca74; }
.m2h-card.rar-duo .m2h-card-head { color: #ffba6b; }
.m2h-card.rar-legendary .m2h-card-head { color: #ffa65c; }
.m2h-card.rar-epic .m2h-card-head { color: #dab0ff; }
.m2h-card.rar-rare .m2h-card-head { color: #96cdff; }
.m2h-card.rar-shop .m2h-card-head { color: #ffd866; }
.m2h-card.rar-chaos .m2h-card-head { color: #e4b5ff; }
.m2h-card.rar-trial .m2h-card-head { color: #ffe285; }
.m2h-card.rar-mystery .m2h-card-head { color: #d8b4ff; }
.m2h-card.rar-common .m2h-card-head { color: #dcd4c6; }

.m2h-card-key {
  color: #e8e2d5;
  font-size: 10px;
}

.m2h-card-slot {
  width: 48px;
  height: 48px;
  background: url("./metin2-ui/slot_base.png") no-repeat center center / 48px 48px;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.m2h-card-grid.is-shop .m2h-card-slot {
  width: 40px;
  height: 40px;
  background-size: 40px 40px;
}
.m2h-card-slot img {
  width: 38px;
  height: 38px;
  image-rendering: pixelated;
  display: block;
}
.m2h-card-grid.is-shop .m2h-card-slot img {
  width: 32px;
  height: 32px;
}
.m2h-card.rar-supreme .m2h-card-slot { box-shadow: inset 0 0 0 1px #ffd866; }
.m2h-card.rar-hammer .m2h-card-slot { box-shadow: inset 0 0 0 1px #f09c38; }
.m2h-card.rar-duo .m2h-card-slot { box-shadow: inset 0 0 0 1px #ff9c47; }
.m2h-card.rar-legendary .m2h-card-slot { box-shadow: inset 0 0 0 1px #e5833d; }
.m2h-card.rar-epic .m2h-card-slot { box-shadow: inset 0 0 0 1px #b478e8; }
.m2h-card.rar-rare .m2h-card-slot { box-shadow: inset 0 0 0 1px #6db2f0; }
.m2h-card.rar-chaos .m2h-card-slot,
.m2h-card.is-chaos-card .m2h-card-slot {
  box-shadow: inset 0 0 0 1px #c278ff, 0 0 8px rgba(176, 86, 245, 0.48);
}
.m2h-card.rar-trial .m2h-card-slot,
.m2h-card.is-trial-card .m2h-card-slot {
  box-shadow: inset 0 0 0 1px #ffd866, 0 0 8px rgba(255, 200, 72, 0.35);
}
.m2h-card.rar-mystery .m2h-card-slot,
.m2h-card.is-mystery-card .m2h-card-slot {
  box-shadow: inset 0 0 0 1px #b87cf0;
}

.m2h-card.is-chaos-card {
  box-shadow: 0 0 12px rgba(154, 48, 214, 0.32);
}
.m2h-chaos-splits {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(172, 114, 224, 0.32);
  text-align: left;
}
.m2h-chaos-split {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 6px;
}
.m2h-chaos-split.curse {
  background: rgba(78, 16, 36, 0.88);
  border: 1px solid #c94462;
}
.m2h-chaos-split.reward {
  background: rgba(44, 18, 72, 0.90);
  border: 1px solid #b574f0;
}
.m2h-cs-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.m2h-chaos-split.curse .m2h-cs-tag { color: #ff94a8; }
.m2h-chaos-split.reward .m2h-cs-tag { color: #ffe27a; }
.m2h-cs-txt {
  font-size: 11px;
  line-height: 1.35;
  color: #f0e8f5;
}

.m2h-bargain-risk {
  width: 100%;
  padding: 2px 5px;
  background: rgba(72, 18, 22, 0.88);
  border: 1px solid #c45248;
  font-size: 10px;
  font-weight: 700;
  color: #ffb4a8;
  text-align: center;
}
.m2h-bargain-risk.is-safe {
  background: rgba(18, 56, 36, 0.88);
  border-color: #4eb87a;
  color: #a8f0c0;
}

.m2h-card.is-active-skill-card {
  box-shadow: 0 0 12px rgba(176, 112, 245, 0.34);
}
.m2h-card.is-active-skill-card .m2h-card-slot {
  box-shadow: inset 0 0 0 1px #d7a8ff, 0 0 8px rgba(188, 128, 255, 0.45);
}
.m2h-card.is-active-skill-card.rar-supreme .m2h-card-slot {
  box-shadow: inset 0 0 0 1px #ffd866, 0 0 8px rgba(255, 212, 92, 0.48);
}
.m2h-card-active-tag {
  width: 100%;
  padding: 2px 5px;
  background: rgba(44, 18, 66, 0.92);
  border: 1px solid #b47ce8;
  font-size: 9.5px;
  font-weight: 700;
  color: #f4dcff;
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-align: center;
}
.m2h-card.rar-supreme .m2h-card-active-tag {
  background: rgba(66, 46, 12, 0.94);
  border-color: #e6be56;
  color: #ffe89e;
}

.m2h-card-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffd866;
  line-height: 1.25;
}
.m2h-card-sub {
  font-size: 10.5px;
  color: #b8b0a0;
}
.m2h-card-desc {
  width: 100%;
  flex: 1;
  padding-top: 5px;
  border-top: 1px solid rgba(160, 152, 138, 0.22);
  font-size: 11px;
  line-height: 1.4;
  color: #e8e2d5;
}
.m2h-card-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 3px;
}
.m2h-card-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 21px;
  background: url("./metin2-ui/large_button_01.png") no-repeat center center / 100% 21px;
  image-rendering: pixelated;
  font-size: 11px;
  font-weight: 700;
  color: #e8e2d5;
}
.m2h-card:hover:not(:disabled) .m2h-card-cta-pill {
  background-image: url("./metin2-ui/large_button_02.png");
  color: #ffffff;
}
.m2h-card-cta-pill img {
  width: 13px;
  height: 13px;
  image-rendering: pixelated;
}
.m2h-card-cta-pill.sold {
  background-image: url("./metin2-ui/large_button_03.png");
  color: #9e9688;
}
.m2h-card-cta-pill.cant-afford {
  background-image: url("./metin2-ui/large_button_03.png");
  color: #ff8078;
}

/* Bottom Native Action Row */
.m2h-ov-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(160, 152, 138, 0.24);
}
.m2h-ov-hint {
  font-size: 11px;
  color: #c2bab0;
}
.m2h-ov-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

@media (max-width: 900px) {
  .m2h-ov-body {
    grid-template-columns: 1fr;
  }
  .m2h-ov-left {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .m2h-portrait-box {
    flex: none;
    width: 120px;
    min-height: 135px;
  }
  .m2h-portrait-img {
    width: 120px;
    max-height: 145px;
  }
  .m2h-speaker-box {
    margin-top: 0;
    flex: 1;
  }
}

/* ============================================================================
 * Karon Shop 7th Secret Challenge Card (Steal-Bag Boss Duel, rarity=challenge)
 * ============================================================================ */
.m2h-card.rar-challenge {
  grid-column: 1 / -1;
  text-align: left;
  box-shadow: 0 0 14px rgba(190, 32, 24, 0.45);
}
.m2h-card.rar-challenge .m2h-card-in {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 2px 4px;
}
.m2h-card.rar-challenge .m2h-card-slot {
  flex: none;
  width: 44px;
  height: 44px;
  background-size: 44px 44px;
  margin-top: 0;
  box-shadow: inset 0 0 0 1px #ff5e4d;
}
.m2h-card.rar-challenge .m2h-card-slot img {
  width: 34px;
  height: 34px;
}
.m2h-chal-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.m2h-chal-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m2h-chal-tag {
  padding: 1px 5px;
  background: rgba(138, 22, 18, 0.85);
  border: 1px solid #d95342;
  font-size: 9.5px;
  font-weight: 700;
  color: #ffd8c2;
  letter-spacing: 0.4px;
}
.m2h-card.rar-challenge .m2h-card-name {
  color: #ff8a75;
  font-size: 12.5px;
}
.m2h-card.rar-challenge .m2h-card-desc {
  padding-top: 0;
  border-top: 0;
  font-size: 11px;
  color: #e8ddd0;
}
.m2h-chal-cta {
  flex: none;
  width: 180px;
}
.m2h-chal-cta .m2h-card-cta-pill {
  height: 25px;
  background-image: url("./metin2-ui/xlarge_button_01.png");
  background-size: 180px 25px;
  color: #ff9c8a;
}
.m2h-card.rar-challenge:hover:not(:disabled) .m2h-chal-cta .m2h-card-cta-pill {
  background-image: url("./metin2-ui/xlarge_button_02.png");
  color: #ffffff;
}

/* ============================================================================
 * Element E: Top-Center Movable Native Metin2 Dragon-Head Boss Bar + Perks
 * ============================================================================ */
.m2h-boss-dock {
  position: fixed;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: min(510px, calc(100vw - 320px));
  min-width: 340px;
  pointer-events: auto;
  z-index: 9365;
  display: flex;
  flex-direction: column;
}
.m2h-boss-dock.is-custom-pos {
  transform: none;
}
.m2h-boss-dock.is-dragging {
  z-index: 9425;
  filter: brightness(1.08);
}
.m2h-boss-rail {
  margin-bottom: -6px;
  position: relative;
  z-index: 2;
  cursor: move;
  touch-action: none;
}
.m2h-boss-rail .m2-dragon-rail {
  pointer-events: auto;
}
.m2h-boss-in {
  margin: -8px -6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.m2h-boss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.m2h-boss-names {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.m2h-boss-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffd866;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m2h-boss-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m2h-boss-port {
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid #8a6c44;
  background: radial-gradient(circle at 50% 35%, rgba(92, 42, 24, 0.72), rgba(14, 10, 8, 0.94));
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
.m2h-boss-port img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.m2h-boss-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.m2h-boss-sub {
  font-size: 10.5px;
  color: #bfb6a3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m2h-boss-phase {
  flex: none;
  padding: 1px 6px;
  background: rgba(58, 16, 14, 0.88);
  border: 1px solid #a8493b;
  font-size: 10px;
  font-weight: 700;
  color: #ffba99;
  letter-spacing: 0.4px;
}
.m2h-boss-phase.enraged {
  background: rgba(88, 16, 82, 0.92);
  border-color: #d46be8;
  color: #f7c7ff;
}
.m2h-boss-phase.shield {
  background: rgba(16, 52, 92, 0.92);
  border-color: #6ab4f5;
  color: #d1ecff;
}

.m2h-boss-gauge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 18px;
  image-rendering: pixelated;
}
.m2h-boss-gauge-wrap .m2-gauge-l {
  width: 20px;
  height: 18px;
  background-size: 20px 18px;
}
.m2h-boss-gauge-wrap .m2-gauge-m {
  height: 18px;
  background-size: 20px 18px;
}
.m2h-boss-gauge-wrap .m2-gauge-r {
  width: 20px;
  height: 18px;
  background-size: 20px 18px;
}
.m2h-boss-gauge-wrap .m2-gauge-fill {
  top: 2px;
  bottom: 2px;
  background-size: 20px 14px;
}
.m2h-boss-gauge-wrap .m2-gauge-fill.enraged {
  background-image: url("./metin2-ui/gauge_purple.png");
}
.m2h-boss-gauge-wrap .m2-gauge-fill.shield {
  background-image: url("./metin2-ui/gauge_blue.png");
}
.m2h-boss-hp-txt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
  pointer-events: none;
}

@keyframes m2h-shield-pulse {
  0%, 100% { border-color: #5ca8f0; background: rgba(14, 44, 78, 0.88); }
  50% { border-color: #ffd866; background: rgba(34, 74, 118, 0.96); }
}
.m2h-boss-shield-alert {
  padding: 3px 8px;
  text-align: center;
  border: 1px solid #5ca8f0;
  font-size: 11px;
  font-weight: 700;
  color: #ffe89e;
  letter-spacing: 0.4px;
  animation: m2h-shield-pulse 1.1s ease-in-out infinite;
}
.m2h-boss-shield-alert.is-dmetin {
  border-color: #56b8ff;
  background: rgba(12, 38, 72, 0.92);
  color: #cfeaff;
}
.m2h-boss-shield-alert.is-eggs {
  border-color: #e6683c;
  background: rgba(68, 22, 12, 0.92);
  color: #ffd9a8;
  animation: none;
}
.m2h-boss-shield-alert.is-exposed {
  border-color: #5ee68a;
  background: rgba(14, 56, 30, 0.94);
  color: #d6ffe0;
  animation: none;
}
.m2h-boss-arch-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: -1px;
}
.m2h-boss-arch-pill {
  flex: none;
  padding: 1px 6px;
  border: 1px solid #8c6b36;
  background: rgba(34, 24, 14, 0.92);
  font-size: 9.5px;
  font-weight: 700;
  color: #ffd87a;
  letter-spacing: 0.25px;
}
.m2h-boss-arch-pill.is-ranged_blink_caster {
  border-color: #5fa8e6;
  background: rgba(16, 36, 62, 0.92);
  color: #b8e3ff;
}
.m2h-boss-arch-pill.is-egg_metin_summoner {
  border-color: #70b85a;
  background: rgba(20, 44, 18, 0.92);
  color: #cbf2b8;
}
.m2h-boss-arch-pill.is-dash_pouncer {
  border-color: #e09a3c;
  background: rgba(54, 32, 12, 0.92);
  color: #ffe0a3;
}
.m2h-boss-arch-pill.is-donut_meteor_titan {
  border-color: #e05a3c;
  background: rgba(58, 18, 12, 0.92);
  color: #ffc2ad;
}
.m2h-boss-arch-pill.is-scythe_reaper {
  border-color: #b868e0;
  background: rgba(44, 16, 56, 0.92);
  color: #ecc9ff;
}
.m2h-boss-arch-hint {
  flex: 1;
  min-width: 0;
  font-size: 10px;
  color: #d4cbb8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m2h-boss-perks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 2px;
}
.m2h-perk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px 1px 2px;
  background: rgba(16, 14, 12, 0.85);
  border: 1px solid #6b6254;
  font-size: 10.5px;
  font-weight: 700;
  color: #e8e2d5;
  cursor: default;
}
.m2h-perk-badge:hover {
  border-color: #ffd866;
  color: #ffd866;
}
.m2h-perk-ico {
  width: 20px;
  height: 20px;
  background: url("./metin2-ui/slot_base.png") no-repeat center center / 20px 20px;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.m2h-perk-ico img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  display: block;
}

/* (Ground traps, boss area telegraphs & Blood Ritual circles are now rendered
 *  100% natively in 3D terrain-draped Ogre ground-rune decals + authentic .mse
 *  3D particles via client-wasm `OgreHadesGroundFx` — zero HTML floor circles!) */

/* ============================================================================
 * Element G: Non-Blocking Bottom-Center Boss Talking Portrait Banner (4.5s)
 * ============================================================================ */
#m2-hades-boss-banner {
  position: fixed;
  bottom: 112px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 36px));
  z-index: 9480;
  pointer-events: none;
  display: none;
}
#m2-hades-boss-banner.visible {
  display: block;
}
#m2-hades-boss-banner.has-skillbar {
  bottom: 170px;
}
@keyframes m2h-banner-in {
  0% { opacity: 0.90; transform: translate3d(0, 12px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
.m2h-bb-shell {
  display: flex;
  flex-direction: column;
  animation: m2h-banner-in 0.2s ease-out both;
}
.m2h-bb-rail {
  margin-bottom: -5px;
  position: relative;
  z-index: 2;
}
.m2h-bb-in {
  margin: -9px -7px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.m2h-bb-port {
  width: 96px;
  height: 92px;
  margin: -6px 0 -6px -4px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.m2h-bb-port img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  object-position: center 22%;
  filter: brightness(1.22) contrast(1.06);
  display: block;
}
.m2h-bb-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.m2h-bb-speaker {
  font-size: 12.5px;
  font-weight: 700;
  color: #ff947a;
}
.m2h-bb-speaker.karon {
  color: #ffd866;
}
.m2h-bb-speaker.demirci {
  color: #ffbe66;
}
.m2h-bb-speaker.minotaur {
  color: #ff8c5a;
}
.m2h-bb-speaker.chaos {
  color: #ddb0ff;
}
.m2h-bb-speaker.spirit {
  color: #ffd87a;
}
.m2h-bb-quote {
  font-size: 12px;
  line-height: 1.4;
  color: #f0e9db;
}

/* ============================================================================
 * Element H: Draggable 100% Native Metin2 Temporary Cross-Class Skill Hotbar
 * ([5][6][7][8] Slot_Base 38x38 + ThinBoard 9-slice + 60 FPS Cooldown Sweep)
 * ============================================================================ */
.m2h-skillbar-dock {
  position: fixed;
  left: 50%;
  bottom: 112px;
  transform: translateX(-50%);
  pointer-events: auto;
  z-index: 9370;
  display: flex;
  align-items: center;
}
.m2h-skillbar-dock.is-custom-pos {
  transform: none;
  bottom: auto;
}
.m2h-skillbar-dock.is-dragging {
  z-index: 9430;
  filter: brightness(1.08);
}

.m2h-skillbar-box {
  display: block;
}
.m2h-skillbar-in {
  margin: -9px -8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Slim Native Pixel :: Grip Handle (Draggable, dblclick to reset) */
.m2h-skillbar-grip {
  width: 12px;
  height: 38px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(12, 10, 9, 0.78);
  border: 1px solid #635a4b;
  border-right-color: #2f2a23;
  border-bottom-color: #2f2a23;
  cursor: move;
  touch-action: none;
}
.m2h-skillbar-grip:hover {
  border-color: #a69572;
  background: rgba(24, 20, 16, 0.88);
}
.m2h-grip-row {
  display: flex;
  gap: 2px;
  pointer-events: none;
}
.m2h-grip-dot {
  width: 2px;
  height: 2px;
  background: #a99d88;
  box-shadow: 1px 1px 0 #000;
  display: block;
}
.m2h-skillbar-grip:hover .m2h-grip-dot {
  background: #ffd866;
}

.m2h-skillbar-slots {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 4 Real 38x38 Metin2 Slot_Base Skill Buttons */
.m2h-skill-slot {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: url("./metin2-ui/slot_base.png") no-repeat center center / 38px 38px;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  flex: none;
  font-family: Tahoma, "Liberation Sans", Arial, sans-serif;
  color: #e8e2d5;
  text-shadow: 1px 1px 0 #000;
}
.m2h-skill-slot.is-empty {
  cursor: default;
  opacity: 0.78;
}
.m2h-skill-slot:not(.is-empty):hover {
  filter: brightness(1.16);
}
.m2h-skill-slot.tier-p {
  box-shadow: inset 0 0 0 1px rgba(197, 140, 255, 0.85);
}
.m2h-skill-slot.tier-s {
  box-shadow: inset 0 0 0 1px rgba(255, 216, 102, 0.95);
}
.m2h-skill-slot img.m2h-skill-ico {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  display: block;
  pointer-events: none;
}
.m2h-skill-slot.is-on-cd img.m2h-skill-ico {
  filter: saturate(0.52) brightness(0.74);
}

/* Instant Optimistic Press Feedback & Ready Glint */
.m2h-skill-slot.is-casting {
  transform: translateY(1px);
  box-shadow: inset 0 0 0 2px #fff2b2, 0 0 8px rgba(255, 216, 102, 0.85);
  filter: brightness(1.24);
}
.m2h-skill-slot.is-cd-denied {
  box-shadow: inset 0 0 0 2px #ff5e4d;
}
@keyframes m2h-ready-glint {
  0% { box-shadow: inset 0 0 0 2px #fff4bf, 0 0 9px rgba(255, 224, 120, 0.95); filter: brightness(1.32); }
  100% { filter: brightness(1); }
}
.m2h-skill-slot.is-ready-flash {
  animation: m2h-ready-glint 0.28s ease-out both;
}

/* Active Buff Glowing Amber/Gold Rim */
@keyframes m2h-buff-rim {
  0%, 100% {
    box-shadow: inset 0 0 0 2px #ffbe3b, 0 0 6px rgba(255, 184, 48, 0.72);
  }
  50% {
    box-shadow: inset 0 0 0 2px #fff0a8, 0 0 11px rgba(255, 216, 102, 0.96);
  }
}
.m2h-skill-slot.is-buff-active {
  animation: m2h-buff-rim 1.35s ease-in-out infinite;
}
.m2h-buff-led {
  display: none;
  position: absolute;
  left: 2px;
  bottom: 2px;
  z-index: 5;
  width: 6px;
  height: 6px;
  background: #ffd866;
  border: 1px solid #4a2e04;
  box-shadow: 0 0 4px #ffae24;
  pointer-events: none;
}
.m2h-skill-slot.is-buff-active .m2h-buff-led {
  display: block;
}

/* 60 FPS Radial Cooldown Sweep + Live Countdown Numeral */
.m2h-cd-sweep {
  display: none;
  position: absolute;
  inset: 3px;
  z-index: 2;
  pointer-events: none;
  background: conic-gradient(from 0deg, rgba(6, 5, 4, 0.78) var(--m2h-cd-deg, 0deg), rgba(6, 5, 4, 0) 0deg);
}
.m2h-skill-slot.is-on-cd .m2h-cd-sweep {
  display: block;
}
.m2h-cd-txt {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffe8a6;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  pointer-events: none;
}
.m2h-skill-slot.is-on-cd .m2h-cd-txt {
  display: flex;
}

/* Crisp Corner Hotkey Numeral (5 / 6 / 7 / 8) */
.m2h-skill-key {
  position: absolute;
  left: 2px;
  top: 1px;
  z-index: 5;
  font-size: 10px;
  font-weight: 700;
  line-height: 11px;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  pointer-events: none;
}
.m2h-skill-slot.is-empty .m2h-skill-key {
  color: #827a6d;
}

/* Crisp Bottom-Right P / S Tier Crest */
.m2h-skill-seal {
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 5;
  padding: 0 2px;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid #9e6bd4;
  font-size: 9px;
  font-weight: 700;
  line-height: 11px;
  color: #ddb8ff;
  pointer-events: none;
}
.m2h-skill-slot.tier-s .m2h-skill-seal {
  color: #ffd866;
  border-color: #c89d38;
}

/* --- Native Metin2 [Shift] Hızlı Saldırı Dungeon Dodge Slot --- */
.m2h-skillbar-sep {
  width: 2px;
  height: 30px;
  margin: 0 2px;
  flex: none;
  background: linear-gradient(180deg, rgba(138, 114, 72, 0.25) 0%, #8a7248 50%, rgba(138, 114, 72, 0.25) 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.72);
}

.m2h-dodge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
}

.m2h-skill-slot.is-dodge {
  box-shadow: inset 0 0 0 1px rgba(212, 166, 86, 0.92);
}
.m2h-skill-slot.is-dodge.is-recharging .m2h-cd-sweep {
  display: block;
  background: conic-gradient(from 0deg, rgba(6, 5, 4, 0.46) var(--m2h-cd-deg, 0deg), rgba(6, 5, 4, 0) 0deg);
}
.m2h-skill-slot.is-dodge.is-on-cd .m2h-cd-sweep {
  display: block;
  background: conic-gradient(from 0deg, rgba(6, 5, 4, 0.78) var(--m2h-cd-deg, 0deg), rgba(6, 5, 4, 0) 0deg);
}
.m2h-skill-slot.is-dodge.is-invuln {
  box-shadow: inset 0 0 0 2px #f7e4b2, 0 0 7px rgba(235, 198, 108, 0.78);
  filter: brightness(1.18);
}
@keyframes m2h-perfect-dodge {
  0% {
    box-shadow: inset 0 0 0 2px #fff8cc, 0 0 14px rgba(255, 212, 84, 0.98);
    filter: brightness(1.42);
  }
  55% {
    box-shadow: inset 0 0 0 2px #ffd866, 0 0 10px rgba(255, 194, 58, 0.85);
    filter: brightness(1.22);
  }
  100% {
    box-shadow: inset 0 0 0 1px rgba(212, 166, 86, 0.92);
    filter: brightness(1);
  }
}
.m2h-skill-slot.is-dodge.is-perfect-flash {
  animation: m2h-perfect-dodge 0.72s ease-out both;
}

.m2h-dodge-key {
  position: absolute;
  left: 1px;
  top: 1px;
  z-index: 5;
  padding: 0 2px;
  background: rgba(0, 0, 0, 0.74);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 10px;
  letter-spacing: -0.2px;
  color: #f6efe0;
  text-shadow: 1px 1px 0 #000;
  pointer-events: none;
}

.m2h-dodge-charges {
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 5;
  padding: 0 2px;
  background: rgba(0, 0, 0, 0.90);
  border: 1px solid #8a6d38;
  font-size: 9px;
  font-weight: 700;
  line-height: 11px;
  color: #ffd866;
  pointer-events: none;
}
.m2h-skill-slot.is-dodge.is-partial .m2h-dodge-charges {
  color: #f0b65c;
  border-color: #7d5b2e;
}
.m2h-skill-slot.is-dodge.is-on-cd .m2h-dodge-charges {
  color: #ff8c7a;
  border-color: #7c3a32;
}

.m2h-dodge-perfect-tag {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  padding: 2px 7px;
  background: rgba(14, 10, 7, 0.94);
  border: 1px solid #cfa348;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffe27a;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease-out, transform 0.22s ease-out;
  z-index: 6;
}
.m2h-dodge-perfect-tag.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}


/* ============================================================================
 * HADES v4.0 — Selene Hex [R], Ephyra Seals, Infernal Trove, Silk Shield,
 * Karanlık Efsun Sunağı, New Modals, Route B Bosses & Village 1 Sanctuary
 * (100% Native Metin2 Dark-Gold/Obsidian Theme — Zero Emojis, Zero Blur!)
 * ============================================================================ */

/* --- [Q] Underworld Flask Slot on Combat Hotbar --- */
.m2h-flask-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
}
.m2h-skill-slot.is-flask {
  box-shadow: inset 0 0 0 1px rgba(236, 126, 74, 0.92), 0 0 8px rgba(220, 62, 42, 0.42);
  background: radial-gradient(circle at 50% 44%, #4f1410 0%, #1c0707 72%, #0c0303 100%);
}
.m2h-skill-slot.is-flask:hover {
  box-shadow: inset 0 0 0 1.5px #ffd866, 0 0 11px rgba(255, 166, 72, 0.65);
}
.m2h-skill-slot.is-flask.is-empty {
  opacity: 0.48;
  filter: grayscale(0.75);
  box-shadow: inset 0 0 0 1px rgba(120, 108, 96, 0.6);
}
.m2h-flask-key {
  position: absolute;
  left: 2px;
  top: 1px;
  z-index: 5;
  padding: 0 3px;
  background: rgba(16, 8, 6, 0.88);
  font-size: 9px;
  font-weight: 700;
  line-height: 10px;
  color: #ffe39c;
  text-shadow: 1px 1px 0 #000;
  pointer-events: none;
}
.m2h-flask-pct {
  position: absolute;
  right: 1px;
  top: 1px;
  z-index: 5;
  padding: 0 2px;
  background: rgba(42, 10, 8, 0.9);
  border: 1px solid #a85432;
  font-size: 8px;
  font-weight: 700;
  line-height: 9px;
  color: #ffd866;
  pointer-events: none;
}
.m2h-flask-cnt {
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 5;
  min-width: 14px;
  padding: 0 3px;
  background: rgba(18, 10, 6, 0.94);
  border: 1px solid #c99a44;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 11px;
  text-align: center;
  color: #fff3c6;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* --- [R] Selene Hex Ultimate Slot on Combat Hotbar --- */
.m2h-hex-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
}
.m2h-skill-slot.is-hex {
  box-shadow: inset 0 0 0 1px rgba(108, 178, 240, 0.85);
}
.m2h-hex-fill {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 0%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(130, 214, 255, 0.50) 0%, rgba(44, 118, 212, 0.72) 100%);
  border-top: 1px solid rgba(204, 240, 255, 0.75);
  transition: height 0.16s linear;
}
.m2h-skill-slot.is-hex img.m2h-skill-ico {
  position: relative;
  z-index: 2;
  opacity: 0.72;
}
.m2h-skill-slot.is-hex.is-ready img.m2h-skill-ico,
.m2h-skill-slot.is-hex.is-active img.m2h-skill-ico {
  opacity: 1;
}
@keyframes m2h-hex-ready-pulse {
  0%, 100% {
    box-shadow: inset 0 0 0 2px #78c8ff, 0 0 8px rgba(114, 200, 255, 0.78);
  }
  50% {
    box-shadow: inset 0 0 0 2px #ffe680, 0 0 13px rgba(255, 224, 118, 0.95);
  }
}
.m2h-skill-slot.is-hex.is-ready {
  animation: m2h-hex-ready-pulse 1.25s ease-in-out infinite;
}
.m2h-skill-slot.is-hex.is-active {
  box-shadow: inset 0 0 0 2px #ffe27a, 0 0 12px rgba(255, 210, 80, 0.92);
  filter: brightness(1.18);
}
.m2h-hex-key {
  position: absolute;
  left: 2px;
  top: 1px;
  z-index: 5;
  padding: 0 2px;
  background: rgba(8, 14, 26, 0.84);
  font-size: 9px;
  font-weight: 700;
  line-height: 10px;
  color: #bde6ff;
  text-shadow: 1px 1px 0 #000;
  pointer-events: none;
}
.m2h-hex-pct {
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 5;
  padding: 0 2px;
  background: rgba(6, 10, 18, 0.90);
  border: 1px solid #4c7da8;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 10px;
  color: #a6d8ff;
  pointer-events: none;
}
.m2h-skill-slot.is-hex.is-ready .m2h-hex-pct {
  color: #ffe480;
  border-color: #cca446;
}
.m2h-skill-slot.is-hex.is-active .m2h-hex-pct {
  color: #ffffff;
  border-color: #ffd866;
  background: rgba(88, 56, 10, 0.94);
}

/* --- Chamber Dock v4.0 Strips: Route Tag, Chaos Trial, Ephyra Seals, Trove, Party Rival, Silk Shield --- */
.m2h-route-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 13px;
  background: rgba(18, 42, 72, 0.92);
  border: 1px solid #5aa4e6;
  color: #a8dcff;
  vertical-align: middle;
}
.m2h-route-tag.is-trial {
  background: rgba(54, 18, 76, 0.92);
  border-color: #b46ae8;
  color: #ebd0ff;
}

.m2h-strip-trial {
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  padding: 4px 5px;
  background: rgba(34, 14, 52, 0.92);
  border: 1px solid #a864e0;
  color: #f0e0ff;
}
.m2h-trial-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
}
.m2h-trial-row .m2h-tr-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffd866;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m2h-trial-row .m2h-tr-name img {
  width: 13px;
  height: 13px;
}
.m2h-trial-row .m2h-tr-val {
  color: #d8b4ff;
  flex: none;
}

.m2h-ephyra-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(20, 24, 34, 0.92);
  border: 1px solid #7d96c4;
}
.m2h-ephyra-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #cde0ff;
}
.m2h-ephyra-pips {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.m2h-seal-pip {
  width: 11px;
  height: 11px;
  border: 1px solid #6b7b96;
  background: #10141c;
  display: inline-block;
}
.m2h-seal-pip.broken {
  border-color: #ffd866;
  background: linear-gradient(135deg, #ffe888 0%, #cc8c22 100%);
  box-shadow: 0 0 5px rgba(255, 212, 84, 0.72);
}
.m2h-ephyra-sub {
  font-size: 10px;
  color: #b8c6de;
}

.m2h-trove-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 5px;
  background: rgba(44, 30, 8, 0.94);
  border: 1px solid #d4a63a;
}
.m2h-trove-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffe280;
}
.m2h-trove-head img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
  vertical-align: -2px;
  margin-right: 4px;
}
.m2-gauge-fill.gold {
  background: linear-gradient(90deg, #b87c18 0%, #f5c84c 55%, #fff0a8 100%);
}
.m2-gauge-fill.silk {
  background: linear-gradient(90deg, #6e92ad 0%, #b8deff 60%, #eef8ff 100%);
}
.m2-gauge-fill.trial {
  background: linear-gradient(90deg, #7434b8 0%, #c47cff 100%);
}

.m2h-silk-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 5px;
  background: rgba(16, 28, 36, 0.92);
  border: 1px solid #82b4d4;
}
.m2h-silk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #d6efff;
}
.m2h-silk-head img {
  width: 13px;
  height: 13px;
  image-rendering: pixelated;
  vertical-align: -2px;
  margin-right: 4px;
}

.m2h-rival-party {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.m2h-rv-chip {
  padding: 1px 5px;
  background: rgba(14, 11, 8, 0.85);
  border: 1px solid #6e5a38;
  font-size: 10px;
  color: #e4d8c0;
}
.m2h-rv-chip.is-me {
  border-color: #ffd866;
  color: #ffd866;
  font-weight: 700;
}

.m2h-world-nodes-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.m2h-wn-btn {
  flex: 1 1 auto;
  min-width: 82px;
  height: 21px;
  padding: 0 6px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: url("./metin2-ui/large_button_01.png") no-repeat center center / 100% 21px;
  image-rendering: pixelated;
  font-family: Tahoma, "Liberation Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #e8dec8;
  text-shadow: 1px 1px 0 #000;
  cursor: pointer;
}
.m2h-wn-btn:hover {
  background-image: url("./metin2-ui/large_button_02.png");
  color: #ffd866;
}
.m2h-wn-btn img {
  width: 13px;
  height: 13px;
  image-rendering: pixelated;
  display: block;
}

/* --- Boon Column v4.0 Special Badges (Efsun, Well 3-Room Buffs, Keepsake) --- */
.m2h-slot.tier-efsun {
  box-shadow: inset 0 0 0 1px #7be088, 0 0 5px rgba(84, 212, 108, 0.45);
}
@keyframes m2h-mythic-efsun-glow {
  0%, 100% { box-shadow: inset 0 0 0 2px #ffd866, 0 0 6px rgba(255, 200, 64, 0.72); }
  50% { box-shadow: inset 0 0 0 2px #fff5b8, 0 0 12px rgba(255, 224, 96, 0.96); }
}
.m2h-slot.tier-efsun-mythic {
  animation: m2h-mythic-efsun-glow 1.4s ease-in-out infinite;
}
.m2h-slot.tier-well {
  box-shadow: inset 0 0 0 1px #52d6a8;
}
.m2h-slot.tier-well .m2h-seal {
  color: #88ffd2;
  border-color: #3da882;
}
.m2h-slot.tier-keepsake {
  box-shadow: inset 0 0 0 1px #d9a452;
}
.m2h-slot.tier-keepsake .m2h-seal {
  color: #ffe28a;
  border-color: #b08030;
}

/* --- Route B Boss Bar Accents (Razador / Nemere / Beran-Setaou) --- */
.m2h-boss-emblem {
  flex: none;
  width: 38px;
  height: 38px;
  background: url("./metin2-ui/slot_base.png") no-repeat center center / 38px 38px;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px #9c7c48;
}
.m2h-boss-emblem img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  display: block;
}
.m2h-boss-dock.is-razador .m2h-boss-name { color: #ff9e5e; }
.m2h-boss-dock.is-razador .m2h-boss-emblem { box-shadow: inset 0 0 0 1px #ff7838, 0 0 8px rgba(255, 92, 32, 0.45); }
.m2h-boss-dock.is-nemere .m2h-boss-name { color: #8ed8ff; }
.m2h-boss-dock.is-nemere .m2h-boss-emblem { box-shadow: inset 0 0 0 1px #6cc4ff, 0 0 8px rgba(80, 176, 255, 0.45); }
.m2h-boss-dock.is-dragon .m2h-boss-name { color: #84e8ff; }
.m2h-boss-dock.is-dragon .m2h-boss-emblem { box-shadow: inset 0 0 0 1px #6ee2ff, 0 0 10px rgba(72, 200, 255, 0.65); }

/* --- In-Run v4.0 Portrait Overlay Modals (Efsun, Echo, Arachne, Well, Stars, Keepsake, 2-Altar Trial) --- */
.m2h-ov-shell.is-efsun .m2h-ov-window { box-shadow: 0 0 24px rgba(232, 184, 52, 0.36); }
.m2h-ov-shell.is-echo .m2h-ov-window { box-shadow: 0 0 22px rgba(154, 128, 232, 0.38); }
.m2h-ov-shell.is-arachne .m2h-ov-window { box-shadow: 0 0 22px rgba(132, 194, 224, 0.34); }
.m2h-ov-shell.is-well .m2h-ov-window { box-shadow: 0 0 22px rgba(64, 198, 152, 0.34); }
.m2h-ov-shell.is-stars .m2h-ov-window { box-shadow: 0 0 24px rgba(96, 178, 255, 0.42); }
.m2h-ov-shell.is-keepsake .m2h-ov-window { box-shadow: 0 0 20px rgba(212, 160, 74, 0.34); }

.m2h-card.rar-echo .m2h-card-head { color: #d6c8ff; }
.m2h-card.rar-echo .m2h-card-slot { box-shadow: inset 0 0 0 1px #b69eff; }
.m2h-card.rar-arachne .m2h-card-head { color: #c4ebff; }
.m2h-card.rar-arachne .m2h-card-slot { box-shadow: inset 0 0 0 1px #8ecae8; }
.m2h-card.rar-well .m2h-card-head { color: #8af2ca; }
.m2h-card.rar-well .m2h-card-slot { box-shadow: inset 0 0 0 1px #52cca0; }
.m2h-card.rar-stars .m2h-card-head { color: #9cd6ff; }
.m2h-card.rar-stars .m2h-card-slot { box-shadow: inset 0 0 0 1px #6cb8ff, 0 0 8px rgba(84, 170, 255, 0.45); }
.m2h-card.rar-keepsake .m2h-card-head { color: #ffda80; }
.m2h-card.rar-keepsake .m2h-card-slot { box-shadow: inset 0 0 0 1px #d9a452; }

.m2h-trial-banner {
  padding: 5px 8px;
  background: rgba(66, 16, 16, 0.90);
  border: 1px solid #c95244;
  font-size: 11px;
  font-weight: 700;
  color: #ffd8b0;
  text-align: center;
}

/* #5 Karanlık Efsun Sunağı Dedicated Modal Body */
.m2h-efsun-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.m2h-efsun-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  flex: 1;
}
.m2h-efsun-grid.is-compare {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.m2h-efsun-panel {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: #0d0b09;
  border: 1px solid #6b5a42;
  gap: 7px;
}
.m2h-efsun-panel.is-candidate {
  border-color: #7ca8e0;
  background: #0c1018;
}
.m2h-efsun-panel.is-mythic {
  border-color: #ffd866;
  background: linear-gradient(180deg, #221808 0%, #120d07 100%);
  box-shadow: inset 0 0 14px rgba(255, 200, 60, 0.24), 0 0 14px rgba(255, 198, 52, 0.34);
}
.m2h-efsun-panel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(176, 154, 114, 0.32);
  font-size: 11.5px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-efsun-mythic-tag {
  padding: 1px 6px;
  background: rgba(112, 74, 10, 0.94);
  border: 1px solid #ffd866;
  color: #fff2a6;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.m2h-efsun-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.m2h-efsun-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 7px;
  background: rgba(20, 26, 18, 0.85);
  border: 1px solid rgba(92, 148, 86, 0.36);
  font-size: 11.5px;
  color: #9df08e;
}
.m2h-efsun-line.is-mythic-line {
  background: rgba(62, 44, 10, 0.90);
  border-color: #d9aa3c;
  color: #ffe888;
  font-weight: 700;
}
.m2h-efsun-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 14px;
  text-align: center;
  color: #c2b8a4;
  font-size: 11.5px;
  line-height: 1.45;
}
.m2h-efsun-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 4px;
}
.m2h-efsun-note {
  font-size: 10.5px;
  color: #a89f8e;
  text-align: center;
}

/* ============================================================================
 * Village 1 Hades Sanctuary Launcher Pill (#m2-hades-launcher)
 * ============================================================================ */
#m2-hades-launcher {
  position: fixed;
  top: 6px;
  left: 416px;
  z-index: 9389;
  display: none;
  pointer-events: auto;
}
#m2-hades-launcher.visible {
  display: block;
}
#m2-hades-launcher.is-dragging {
  z-index: 9432;
  filter: brightness(1.08);
}
.m2h-launch-in {
  margin: -12px -9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.m2h-launch-grip {
  width: 13px;
  height: 21px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: url("./metin2-ui/horizontalbar_center.png") repeat-x center center / 13px 21px;
  border: 1px solid #6b4338;
  color: #d4b8a4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -1px;
  cursor: move;
  touch-action: none;
}
.m2h-launch-grip:hover {
  color: #ffd866;
  border-color: #c47a4a;
}
.m2h-launch-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 3px 0 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: Tahoma, "Liberation Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #ffba78;
  text-shadow: 1px 1px 0 #000;
  cursor: pointer;
}
.m2h-launch-btn:hover {
  color: #ffe8a0;
}
.m2h-launch-btn img {
  width: 16px;
  height: 16px;
  display: block;
  image-rendering: pixelated;
}
.m2h-launch-key {
  color: #b8ae9b;
  font-weight: 400;
  font-size: 10px;
}
.m2h-launch-dust {
  display: none;
  align-items: center;
  gap: 3px;
  padding-left: 5px;
  border-left: 1px solid rgba(168, 152, 120, 0.35);
  color: #9ad4ff;
  font-size: 10.5px;
  font-weight: 700;
}
.m2h-launch-dust.has-dust {
  display: inline-flex;
}

/* ============================================================================
 * Village 1 Hades Sanctuary 5-Tab Window (#m2-hades-meta-overlay)
 * ============================================================================ */
#m2-hades-meta-overlay {
  position: fixed;
  inset: 0;
  z-index: 9590;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(5, 4, 3, 0.72);
  pointer-events: auto;
}
#m2-hades-meta-overlay.open {
  display: flex;
}
#m2-hades-meta-modal {
  width: min(96vw, 980px);
  max-height: min(94vh, 720px);
  display: flex;
  flex-direction: column;
}
.m2h-meta-rail {
  margin-bottom: -6px;
  position: relative;
  z-index: 3;
}
.m2h-meta-win {
  display: flex;
  flex-direction: column;
  max-height: calc(min(94vh, 720px) - 16px);
  background: #130f0c;
}
.m2h-meta-in {
  margin: -9px -7px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: calc(min(94vh, 720px) - 34px);
}
.m2h-meta-hdr-l,
.m2h-meta-hdr-r {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.m2h-meta-hdr-l img {
  width: 15px;
  height: 15px;
  image-rendering: pixelated;
  display: block;
}
.m2h-meta-cur {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  background: rgba(12, 9, 7, 0.78);
  border: 1px solid #594a36;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-meta-cur.dust { color: #9ad8ff; border-color: #3e6082; }
.m2h-meta-cur.essence { color: #ddb8ff; border-color: #6b488c; }
.m2h-meta-cur.heat { color: #ff9c7e; border-color: #7d3e34; }
.m2h-meta-cur img {
  width: 13px;
  height: 13px;
  image-rendering: pixelated;
  display: block;
}

/* #6 Reactive NPC Banter Strip inside Sanctuary Window */
.m2h-meta-banter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  background: linear-gradient(90deg, rgba(32, 22, 16, 0.96) 0%, rgba(16, 13, 11, 0.96) 100%);
  border: 1px solid #5e4b34;
}
.m2h-mb-port {
  width: 58px;
  height: 58px;
  flex: none;
  border: 1px solid #8a6c44;
  background: radial-gradient(circle at 50% 30%, rgba(82, 56, 30, 0.72), rgba(10, 8, 7, 0.96));
  overflow: hidden;
}
.m2h-mb-port img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  display: block;
}
.m2h-mb-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.m2h-mb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.m2h-mb-who {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.m2h-mb-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-mb-name.uriel { color: #ddb0ff; }
.m2h-mb-name.demirci { color: #ffbe66; }
.m2h-mb-name.karon { color: #ffe078; }
.m2h-mb-title {
  font-size: 10px;
  color: #b5ab98;
}
.m2h-mb-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.m2h-mb-sw-btn {
  padding: 1px 6px;
  border: 1px solid #594b39;
  background: #17120e;
  color: #cfc4b0;
  font-family: Tahoma, "Liberation Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.m2h-mb-sw-btn:hover { color: #ffffff; border-color: #9e8358; }
.m2h-mb-sw-btn.active {
  background: #2c2014;
  border-color: #d4a644;
  color: #ffd866;
}
.m2h-mb-quote {
  font-size: 11.5px;
  line-height: 1.38;
  color: #f0e8d8;
}
.m2h-mb-last {
  font-size: 10px;
  color: #aba18f;
}

/* 5 Native Sanctuary Tabs */
.m2h-meta-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 5px;
  border-bottom: 1px solid #3f3528;
}
.m2h-meta-tab {
  flex: 1;
  height: 24px;
  padding: 0 6px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: url("./metin2-ui/xlarge_button_01.png") no-repeat center center / 100% 24px;
  image-rendering: pixelated;
  font-family: Tahoma, "Liberation Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #cbc2b0;
  text-shadow: 1px 1px 0 #000;
  cursor: pointer;
  white-space: nowrap;
}
.m2h-meta-tab:hover {
  background-image: url("./metin2-ui/xlarge_button_02.png");
  color: #ffffff;
}
.m2h-meta-tab.active {
  background-image: url("./metin2-ui/xlarge_button_02.png");
  color: #ffd866;
  box-shadow: inset 0 0 0 1px #c89f52;
}
.m2h-meta-tab img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
  display: block;
}

.m2h-meta-feedback {
  display: none;
  padding: 4px 8px;
  border: 1px solid #6b5739;
  background: #1c1610;
  color: #ffd866;
  font-size: 11px;
  font-weight: 700;
}
.m2h-meta-feedback.show { display: block; }
.m2h-meta-feedback.ok { border-color: #46784b; background: #121c13; color: #8bf094; }
.m2h-meta-feedback.err { border-color: #823c36; background: #211110; color: #f49b8f; }

.m2h-meta-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Tab 1: Sefer & Rota */
.m2h-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.m2h-route-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  background: #17120e;
  border: 1px solid #4f4130;
  cursor: pointer;
  text-align: left;
}
.m2h-route-card:hover { border-color: #9e8254; background: #1c1610; }
.m2h-route-card.selected {
  border-color: #ffd866;
  background: linear-gradient(180deg, #271b10 0%, #16110d 100%);
  box-shadow: inset 0 0 10px rgba(255, 198, 66, 0.16);
}
.m2h-route-card.is-routeb.selected {
  border-color: #72ccff;
  background: linear-gradient(180deg, #102030 0%, #0d141d 100%);
  box-shadow: inset 0 0 10px rgba(92, 186, 255, 0.20);
}
.m2h-rc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.m2h-rc-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-route-card.is-routeb .m2h-rc-title { color: #8ad8ff; }
.m2h-rc-tag {
  padding: 1px 5px;
  font-size: 9.5px;
  font-weight: 700;
  border: 1px solid #6b583e;
  background: #100d0a;
  color: #d4cab4;
}
.m2h-route-card.selected .m2h-rc-tag {
  border-color: #ffd866;
  color: #ffd866;
}
.m2h-rc-desc {
  font-size: 11px;
  line-height: 1.38;
  color: #d8cfc0;
}
.m2h-rc-bosses {
  font-size: 10.5px;
  color: #ffb884;
}
.m2h-route-card.is-routeb .m2h-rc-bosses { color: #9ad8ff; }

.m2h-sec-box {
  padding: 8px 10px;
  background: #16110e;
  border: 1px solid #453829;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.m2h-sec-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-hex-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.m2h-hex-card {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  background: #100d0b;
  border: 1px solid #483d30;
  cursor: pointer;
  text-align: left;
  color: #e8e2d5;
  font-family: Tahoma, "Liberation Sans", Arial, sans-serif;
}
.m2h-hex-card:hover { border-color: #7ea8d4; }
.m2h-hex-card.selected {
  border-color: #78ccff;
  background: #101b28;
  box-shadow: inset 0 0 8px rgba(96, 184, 255, 0.22);
}
.m2h-hex-card .m2h-slot { flex: none; cursor: pointer; }
.m2h-hex-card-name { font-size: 11px; font-weight: 700; color: #a8dcff; }
.m2h-hex-card-desc { font-size: 10px; color: #c4bba8; line-height: 1.3; margin-top: 2px; }

.m2h-heat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.m2h-heat-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.m2h-heat-btn {
  min-width: 34px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid #5c4934;
  background: #17110d;
  color: #dfd6c4;
  font-family: Tahoma, "Liberation Sans", Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}
.m2h-heat-btn:hover { border-color: #c98642; color: #ffffff; }
.m2h-heat-btn.active {
  background: #441c12;
  border-color: #ff945c;
  color: #ffe288;
}
.m2h-launch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  background: #19130d;
  border: 1px solid #6e5738;
}
.m2h-launch-summary {
  font-size: 11px;
  color: #dcd3c2;
  line-height: 1.4;
}
.m2h-launch-summary b { color: #ffd866; }
.m2h-launch-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tab 2: Kara Metin Taşı (5 Chaos Trials) */
.m2h-trials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.m2h-trial-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  background: #161116;
  border: 1px solid #593e68;
}
.m2h-trial-card.cleared {
  border-color: #8a6c42;
  background: linear-gradient(180deg, #1b1514 0%, #131012 100%);
}
.m2h-tc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.m2h-tc-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #e4beff;
}
.m2h-tc-name img {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}
.m2h-tc-cap {
  padding: 1px 5px;
  background: rgba(14, 10, 18, 0.9);
  border: 1px solid #6b4e7d;
  font-size: 10px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-tc-desc {
  font-size: 11px;
  line-height: 1.38;
  color: #d8d0de;
  flex: 1;
}
.m2h-tc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 5px;
  border-top: 1px solid rgba(168, 140, 188, 0.22);
}
.m2h-tc-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  color: #bfb5c8;
}
.m2h-tc-stats b { color: #9ad8ff; }

/* Tab 3: Kadim Rün Tablosu (5x5 Arcana Grid) */
.m2h-grasp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 9px;
  background: #17120e;
  border: 1px solid #5e4b34;
}
.m2h-grasp-pips {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.m2h-gp {
  width: 9px;
  height: 11px;
  border: 1px solid #4a3d2d;
  background: #0d0a08;
}
.m2h-gp.avail { border-color: #7d6542; background: #261d13; }
.m2h-gp.used { border-color: #ffd866; background: linear-gradient(180deg, #ffe688 0%, #c48820 100%); }
.m2h-arcana-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.85fr);
  gap: 10px;
  align-items: start;
}
.m2h-arcana-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 7px;
  background: #0e0b09;
  border: 1px solid #4f4130;
}
.m2h-arc-orn {
  min-height: 62px;
  border: 1px solid #282119;
  background: radial-gradient(circle at center, rgba(64, 52, 36, 0.24) 0%, rgba(12, 9, 7, 0.92) 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3d3326;
  font-size: 10px;
}
.m2h-arc-cell {
  position: relative;
  min-height: 62px;
  padding: 4px 3px;
  border: 1px solid #4a3e30;
  background: #18130f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  cursor: pointer;
  color: #d4cab8;
  font-family: Tahoma, "Liberation Sans", Arial, sans-serif;
  text-align: center;
}
.m2h-arc-cell:hover { border-color: #a88d5c; background: #211a13; }
.m2h-arc-cell.is-locked { opacity: 0.56; background: #100d0b; }
.m2h-arc-cell.is-unlocked { border-color: #756244; }
.m2h-arc-cell.is-equipped {
  border-color: #ffd866;
  background: linear-gradient(180deg, #2d2010 0%, #19120b 100%);
  box-shadow: inset 0 0 8px rgba(255, 206, 72, 0.28);
}
.m2h-arc-cell.is-awakening { border-color: #784ca8; background: #181022; }
.m2h-arc-cell.is-awakening-active {
  border-color: #d69cff;
  background: linear-gradient(180deg, #32184a 0%, #1a0e28 100%);
  box-shadow: inset 0 0 10px rgba(196, 120, 255, 0.42);
}
.m2h-arc-cell.is-selected {
  outline: 2px solid #ffffff;
  outline-offset: -1px;
  z-index: 2;
}
.m2h-arc-cost {
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: 9.5px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-arc-cell.is-awakening .m2h-arc-cost { color: #ddb0ff; }
.m2h-arc-rank {
  position: absolute;
  top: 2px;
  right: 3px;
  font-size: 9px;
  font-weight: 700;
  color: #9ad4ff;
}
.m2h-arc-ico {
  width: 24px;
  height: 24px;
  margin-top: 8px;
  image-rendering: pixelated;
  display: block;
}
.m2h-arc-nm {
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.15;
  color: #ede5d4;
  word-break: break-word;
}
.m2h-arc-inspector {
  padding: 9px 10px;
  background: #16110e;
  border: 1px solid #5e4b34;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.m2h-ai-title { font-size: 13px; font-weight: 700; color: #ffd866; }
.m2h-ai-meta { font-size: 10.5px; color: #bfb4a0; }
.m2h-ai-desc {
  font-size: 11px;
  line-height: 1.45;
  color: #ebe3d4;
  padding: 6px 7px;
  background: #0f0c09;
  border: 1px solid #3c3124;
}
.m2h-ai-awk {
  padding: 5px 7px;
  background: rgba(44, 18, 66, 0.85);
  border: 1px solid #9e64d4;
  font-size: 10.5px;
  color: #ead0ff;
}
.m2h-ai-awk.active { border-color: #7ee898; color: #a6f5b8; background: rgba(18, 52, 28, 0.85); }
.m2h-ai-btns { display: flex; flex-direction: column; gap: 5px; }

/* Tab 4: Yadigarlar (4 NPC Keepsakes) */
.m2h-ks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.m2h-ks-card {
  display: flex;
  gap: 9px;
  padding: 8px 10px;
  background: #17120e;
  border: 1px solid #524230;
}
.m2h-ks-card.equipped {
  border-color: #ffd866;
  background: linear-gradient(180deg, #271c10 0%, #15100c 100%);
  box-shadow: inset 0 0 10px rgba(255, 206, 72, 0.20);
}
.m2h-ks-card.locked { opacity: 0.72; }
.m2h-ks-port {
  width: 68px;
  height: 82px;
  flex: none;
  border: 1px solid #7c6240;
  background: #0d0a08;
  overflow: hidden;
}
.m2h-ks-port img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  display: block;
}
.m2h-ks-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.m2h-ks-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.m2h-ks-name { font-size: 12px; font-weight: 700; color: #ffd866; }
.m2h-ks-rank {
  padding: 1px 5px;
  background: #100d0a;
  border: 1px solid #7d623c;
  font-size: 10px;
  font-weight: 700;
  color: #ffe28a;
}
.m2h-ks-desc { font-size: 10.5px; line-height: 1.38; color: #dcd4c4; flex: 1; }
.m2h-ks-xp { font-size: 10px; color: #b0a694; }

/* Tab 5: Yeraltı Yeminleri (Oath Bounties) */
.m2h-oath-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 8px;
  background: #16110e;
  border: 1px solid #4c3e2e;
}
.m2h-oath-grp { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.m2h-oath-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.m2h-oath-tbl th,
.m2h-oath-tbl td {
  padding: 5px 7px;
  border-bottom: 1px solid #352b20;
  text-align: left;
}
.m2h-oath-tbl th {
  background: #1c1610;
  color: #ffd866;
  font-size: 10.5px;
}
.m2h-oath-tbl tr:hover td { background: rgba(255, 216, 102, 0.05); }
.m2h-badge-done {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(24, 64, 34, 0.90);
  border: 1px solid #5cc474;
  color: #a6f5b8;
  font-size: 10px;
  font-weight: 700;
}
.m2h-badge-todo {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(42, 32, 18, 0.90);
  border: 1px solid #8a6e42;
  color: #e6d4b2;
  font-size: 10px;
  font-weight: 700;
}

/* ============================================================================
 * HADES v4.1 — Pure Metin2 Soul & Genç Baek-Go
 * (Progressive Day-1 Unfolding, Genç Uriel Araştırma Defteri, M/G/P/S Badges,
 *  Ruh Takası Sacrifice & Reveal, ? Kader Kapısı, Oda Kehaneti, Baek-Go Şebnem,
 *  Demirci 3-Tier Victory Anvil +0..+9 Talisman, Lanetli Efsun, Sealed Kaos)
 * ============================================================================ */

/* --- Day-1 (unlock_tier == 0) Zero-Overwhelm Sanctuary Card --- */
#m2-hades-meta-modal.is-day1 {
  width: min(94vw, 680px);
}
.m2h-day1-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(38, 26, 14, 0.96) 0%, rgba(16, 12, 9, 0.98) 100%);
  border: 1px solid #b58d46;
  box-shadow: inset 0 0 18px rgba(255, 198, 72, 0.14);
}
.m2h-day1-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffe27a;
  letter-spacing: 0.3px;
}
.m2h-day1-sub {
  font-size: 11.5px;
  line-height: 1.45;
  color: #e2d8c5;
  max-width: 520px;
}
.m2h-day1-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.m2h-day1-act-pill {
  padding: 2px 7px;
  background: rgba(14, 11, 8, 0.92);
  border: 1px solid #6b5638;
  font-size: 10px;
  color: #d4c8b2;
}
.m2h-day1-act-pill b {
  color: #ffd866;
}
.m2h-day1-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.m2h-day1-hint {
  font-size: 10.5px;
  color: #b5ab98;
}

/* --- Genç Uriel'in Araştırma Defteri (Biyolog Relics + M/G/P/S Mastery Meter) --- */
.m2h-research-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(24, 17, 28, 0.96) 0%, rgba(15, 12, 14, 0.98) 100%);
  border: 1px solid #7d5b96;
}
.m2h-research-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.m2h-research-title {
  font-size: 12px;
  font-weight: 700;
  color: #e4beff;
}
.m2h-research-tier-pill {
  padding: 1px 7px;
  background: rgba(34, 16, 48, 0.92);
  border: 1px solid #a874d6;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-research-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.m2h-relic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 6px 5px;
  background: #120e14;
  border: 1px solid #483a54;
}
.m2h-relic-card.is-done {
  border-color: #54b872;
  background: linear-gradient(180deg, #122419 0%, #0e1611 100%);
}
.m2h-relic-card.is-active {
  border-color: #d4a644;
  background: linear-gradient(180deg, #241b10 0%, #14100d 100%);
}
.m2h-relic-card.is-ready {
  border-color: #ffd866;
  box-shadow: inset 0 0 10px rgba(255, 212, 84, 0.25);
}
.m2h-relic-card.is-future {
  opacity: 0.54;
}
.m2h-relic-ico {
  width: 34px;
  height: 34px;
  background: url("./metin2-ui/slot_base.png") no-repeat center center / 34px 34px;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m2h-relic-ico img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  display: block;
}
.m2h-relic-name {
  font-size: 10px;
  font-weight: 700;
  color: #f0e6d2;
  line-height: 1.2;
}
.m2h-relic-bonus {
  font-size: 9.5px;
  color: #9df08e;
  line-height: 1.2;
}
.m2h-relic-prog {
  font-size: 10px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-relic-card.is-done .m2h-relic-prog {
  color: #7ee898;
}

/* Live BK / Cross-Skill Ustalık Şansı (M / G / P / S) Meter */
.m2h-mastery-meter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(12, 10, 13, 0.94);
  border: 1px solid #4e4234;
}
.m2h-mastery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-mastery-bar {
  display: flex;
  width: 100%;
  height: 12px;
  border: 1px solid #594b39;
  background: #090807;
  overflow: hidden;
}
.m2h-mb-seg {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
  overflow: hidden;
}
.m2h-mb-seg.seg-m { background: linear-gradient(180deg, #2fb868 0%, #1b7840 100%); }
.m2h-mb-seg.seg-g { background: linear-gradient(180deg, #3b8ef0 0%, #1d5aa8 100%); }
.m2h-mb-seg.seg-p { background: linear-gradient(180deg, #f2bd38 0%, #b37812 100%); }
.m2h-mb-seg.seg-s { background: linear-gradient(90deg, #a855f7 0%, #f5c84c 55%, #d946ef 100%); }
.m2h-mastery-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10px;
}

/* Fog-of-Discovery Arcana & Unmet NPC Yadigar Shroud & Boss Fog */
.m2h-arc-cell.is-fog {
  opacity: 0.48;
  border-style: dashed;
  border-color: #54465e;
  background: #0d0b10;
}
.m2h-arc-fog-q {
  font-size: 14px;
  font-weight: 700;
  color: #a890c4;
  margin-top: 8px;
}
.m2h-ks-card.is-unmet {
  border-style: dashed;
  border-color: #4f4458;
  background: #110e14;
  opacity: 0.84;
}
.m2h-ks-port.is-silhouette {
  position: relative;
  background: radial-gradient(circle at 50% 40%, #241c2c 0%, #09080c 100%);
}
.m2h-ks-port.is-silhouette img {
  filter: brightness(0) contrast(1.4);
  opacity: 0.65;
}
.m2h-ks-port.is-silhouette::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #c8a2ff;
  text-shadow: 0 0 8px rgba(176, 114, 255, 0.85), 1px 1px 0 #000;
}
.m2h-ks-rumor {
  font-size: 10.5px;
  font-style: italic;
  line-height: 1.4;
  color: #b8a8cc;
  padding: 4px 6px;
  background: rgba(20, 14, 28, 0.85);
  border: 1px solid #48385c;
}
.m2h-boss-fog {
  color: #c4a8e8;
  font-style: italic;
}

/* --- M / G / P / S Cross-Class Mastery Badges (Cards + Hotbar [5..8] + Boons) --- */
@keyframes m2h-grade-s-shimmer {
  0%, 100% {
    background-position: 0% 50%;
    box-shadow: inset 0 0 0 1px #ffd866, 0 0 8px rgba(216, 128, 255, 0.78);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: inset 0 0 0 1px #e8a2ff, 0 0 12px rgba(255, 212, 88, 0.95);
  }
}
.m2h-grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid #6b6254;
  text-shadow: 1px 1px 0 #000;
}
.m2h-grade-badge.grade-m {
  background: #10331e;
  border-color: #3ad474;
  color: #6ef5a0;
}
.m2h-grade-badge.grade-g {
  background: #102542;
  border-color: #54a8ff;
  color: #9cd4ff;
}
.m2h-grade-badge.grade-p {
  background: #3d2808;
  border-color: #ffd24d;
  color: #fff0a0;
  box-shadow: 0 0 6px rgba(255, 206, 68, 0.45);
}
.m2h-grade-badge.grade-s {
  background: linear-gradient(120deg, #5b1d8c 0%, #c98a18 48%, #7a24b5 100%);
  background-size: 200% 100%;
  border-color: #ffe27a;
  color: #fff7cc;
  animation: m2h-grade-s-shimmer 2.1s linear infinite;
}

.m2h-skill-slot.grade-m { box-shadow: inset 0 0 0 1px #3ad474; }
.m2h-skill-slot.grade-m .m2h-skill-seal { color: #6ef5a0; border-color: #34b864; background: rgba(10, 34, 18, 0.92); }
.m2h-skill-slot.grade-g { box-shadow: inset 0 0 0 1px #54a8ff; }
.m2h-skill-slot.grade-g .m2h-skill-seal { color: #9cd4ff; border-color: #3d8ce0; background: rgba(10, 26, 48, 0.92); }
.m2h-skill-slot.grade-p { box-shadow: inset 0 0 0 1px #ffd24d, 0 0 5px rgba(255, 204, 64, 0.38); }
.m2h-skill-slot.grade-p .m2h-skill-seal { color: #ffe88a; border-color: #d6a432; background: rgba(48, 32, 8, 0.94); }
.m2h-skill-slot.grade-s { animation: m2h-grade-s-shimmer 2.1s linear infinite; }
.m2h-skill-slot.grade-s .m2h-skill-seal {
  color: #fff5bf;
  border-color: #ffd866;
  background: linear-gradient(135deg, #5e1f91 0%, #b57b14 100%);
}
.m2h-slot.tier-m { box-shadow: inset 0 0 0 1px #3ad474; }
.m2h-slot.tier-m .m2h-seal { color: #6ef5a0; border-color: #34b864; }
.m2h-slot.tier-g { box-shadow: inset 0 0 0 1px #54a8ff; }
.m2h-slot.tier-g .m2h-seal { color: #9cd4ff; border-color: #3d8ce0; }

/* --- Ruh Takası (Pure-Luck Sacrifice Warning, Reveal Banner & Sealed Own-Skills Pill) --- */
.m2h-sacrifice-warn {
  padding: 7px 10px;
  background: linear-gradient(90deg, rgba(74, 14, 46, 0.95) 0%, rgba(44, 12, 62, 0.95) 100%);
  border: 1px solid #d94c7a;
  box-shadow: inset 0 0 10px rgba(220, 62, 124, 0.25);
  color: #ffd4e2;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
.m2h-sacrifice-warn b {
  color: #ffe27a;
}
.m2h-card.is-sacrifice-offer {
  box-shadow: 0 0 12px rgba(212, 56, 118, 0.38);
}
.m2h-card-cta-pill.is-sacrifice {
  color: #ffc2d4;
  box-shadow: inset 0 0 0 1px #d94c7a;
}
.m2h-card:hover:not(:disabled) .m2h-card-cta-pill.is-sacrifice {
  color: #ffffff;
}

#m2-hades-sacrifice-banner {
  position: fixed;
  top: 94px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9560;
  pointer-events: none;
  display: none;
  min-width: 340px;
  max-width: min(92vw, 580px);
}
#m2-hades-sacrifice-banner.visible {
  display: block;
  animation: m2h-deck-in 0.18s ease-out both;
}
.m2h-sac-banner-in {
  margin: -9px -7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  padding: 4px 10px;
  background: linear-gradient(180deg, rgba(46, 12, 58, 0.96) 0%, rgba(18, 8, 24, 0.98) 100%);
  border: 1px solid #c964f0;
}
.m2h-sac-banner-hdr {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffe27a;
  letter-spacing: 0.5px;
}
.m2h-sac-banner-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
}
.m2h-sac-lost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(88, 16, 44, 0.92);
  border: 1px solid #d94c7a;
  color: #ffb8cc;
}
.m2h-sac-lost.is-own {
  background: rgba(68, 18, 92, 0.95);
  border-color: #c872ff;
  color: #ebd0ff;
}
.m2h-sac-arrow {
  color: #ffd866;
}
.m2h-sac-gain {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  background: rgba(18, 52, 28, 0.92);
  border: 1px solid #52c978;
  color: #a8f5be;
}
.m2h-chain-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1px solid #c97aff;
  background: #361254;
  color: #ebd0ff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.m2h-sealed-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  background: rgba(46, 14, 68, 0.94);
  border: 1px solid #b566ee;
  font-size: 10px;
  font-weight: 700;
  color: #ebd0ff;
  cursor: default;
}
.m2h-sealed-pill-names {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffd4f2;
}

/* --- ? Kader Kapısı (Glowing Violet Mystery Door 3D Plate) --- */
@keyframes m2h-mystery-glow {
  0%, 100% { box-shadow: inset 0 0 0 2px #b86eff, 0 0 10px rgba(176, 86, 255, 0.68); }
  50% { box-shadow: inset 0 0 0 2px #f2c8ff, 0 0 18px rgba(206, 128, 255, 0.95); }
}
.m2h-medallion-anchor.is-mystery .m2h-gate-slot {
  background: radial-gradient(circle at 50% 45%, #4a1c78 0%, #160926 85%);
  animation: m2h-mystery-glow 1.45s ease-in-out infinite;
}
.m2h-mystery-q {
  font-size: 22px;
  font-weight: 700;
  color: #f3d2ff;
  text-shadow: 0 0 8px rgba(212, 134, 255, 0.95), 1px 1px 0 #000;
  line-height: 1;
}
.m2h-medallion-anchor.is-mystery .m2h-ribbon-main {
  color: #e6beff;
}
.m2h-mystery-bonus-pill {
  display: inline-block;
  margin-top: 2px;
  padding: 0 5px;
  background: rgba(66, 20, 102, 0.94);
  border: 1px solid #c97aff;
  font-size: 9.5px;
  font-weight: 700;
  color: #ffe27a;
}
.m2h-mystery-whisper {
  margin-top: 2px;
  font-size: 9.5px;
  font-style: italic;
  color: #d6c4eb;
  max-width: 210px;
  white-space: normal;
  line-height: 1.25;
}

/* --- Oda Kehaneti (Random Room Twist Strip + Atmospheric Banner) --- */
.m2h-twist-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  font-size: 10.5px;
  line-height: 1.28;
  cursor: default;
}
.m2h-twist-strip img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
  flex: none;
}
.m2h-twist-strip.twist-bloodmoon {
  background: linear-gradient(90deg, rgba(84, 12, 20, 0.95) 0%, rgba(46, 10, 16, 0.95) 100%);
  border: 1px solid #e04a58;
  color: #ffd0d4;
}
.m2h-twist-strip.twist-bloodmoon b { color: #ff8c96; }
.m2h-twist-strip.twist-metinrain {
  background: linear-gradient(90deg, rgba(56, 16, 72, 0.95) 0%, rgba(34, 14, 46, 0.95) 100%);
  border: 1px solid #b568e8;
  color: #ecd6ff;
}
.m2h-twist-strip.twist-metinrain b { color: #ffd866; }
.m2h-twist-strip.twist-treasure {
  background: linear-gradient(90deg, rgba(68, 46, 10, 0.95) 0%, rgba(38, 26, 8, 0.95) 100%);
  border: 1px solid #f0be42;
  color: #fff0b8;
}
.m2h-twist-strip.twist-treasure b { color: #ffe678; }

#m2-hades-twist-banner {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9545;
  pointer-events: none;
  display: none;
  min-width: 300px;
  max-width: min(90vw, 520px);
}
#m2-hades-twist-banner.visible {
  display: block;
  animation: m2h-deck-in 0.22s ease-out both;
}
.m2h-twist-banner-in {
  margin: -9px -7px;
  padding: 5px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.m2h-twist-banner-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: #ffd866;
}
.m2h-twist-banner-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}
.m2h-twist-banner-desc {
  font-size: 11px;
  color: #e8dec8;
}

/* --- Ejderha Tanrısı Sunağı ([R] Mid-Run Modal) --- */
.m2h-ov-shell.is-dragon-shrine .m2h-ov-window {
  box-shadow: 0 0 26px rgba(96, 184, 255, 0.45), 0 0 12px rgba(255, 208, 72, 0.35);
}
.m2h-card.rar-dragon-shrine .m2h-card-head { color: #ffe484; }
.m2h-card.rar-dragon-shrine .m2h-card-slot {
  box-shadow: inset 0 0 0 1px #7cc8ff, 0 0 10px rgba(98, 184, 255, 0.55);
}

/* --- Genç Baek-Go · Şebnem Tezgahı Modal & Keepable Badge --- */
.m2h-ov-shell.is-baekgo .m2h-ov-window {
  box-shadow: 0 0 24px rgba(58, 204, 134, 0.38);
}
.m2h-sp-name.is-baekgo,
.m2h-mb-name.baekgo,
.m2h-bb-speaker.baekgo {
  color: #82f0b0;
}
.m2h-card.rar-baekgo .m2h-card-head { color: #92f5b8; }
.m2h-card.rar-baekgo .m2h-card-slot { box-shadow: inset 0 0 0 1px #4ad488; }
.m2h-keepable-badge {
  width: 100%;
  padding: 2px 5px;
  background: rgba(14, 58, 32, 0.94);
  border: 1px solid #44cc78;
  font-size: 9.5px;
  font-weight: 700;
  color: #9af8be;
  letter-spacing: 0.25px;
  text-align: center;
}

/* --- Genç Demirci 3-Tier Victory Anvil (Şeytan Kulesi / Kutsama / Büyülü Metal) --- */
.m2h-ov-shell.is-anvil-t1 .m2h-ov-window {
  box-shadow: 0 0 24px rgba(214, 52, 48, 0.46);
}
.m2h-ov-shell.is-anvil-t2 .m2h-ov-window {
  box-shadow: 0 0 24px rgba(68, 198, 240, 0.44);
}
@keyframes m2h-anvil-gold-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(255, 204, 52, 0.52); }
  50% { box-shadow: 0 0 36px rgba(255, 228, 108, 0.85); }
}
.m2h-ov-shell.is-anvil-t3 .m2h-ov-window {
  animation: m2h-anvil-gold-pulse 1.8s ease-in-out infinite;
}
.m2h-anvil-banner {
  padding: 7px 10px;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.m2h-anvil-banner.t1 {
  background: rgba(74, 14, 16, 0.94);
  border: 1px solid #d94a42;
  color: #ffc8c2;
}
.m2h-anvil-banner.t1 b { color: #ff8a7e; }
.m2h-anvil-banner.t2 {
  background: rgba(12, 44, 64, 0.94);
  border: 1px solid #52c4ee;
  color: #ccf2ff;
}
.m2h-anvil-banner.t2 b { color: #7ee4ff; }
.m2h-anvil-banner.t3 {
  background: linear-gradient(90deg, rgba(72, 46, 8, 0.96) 0%, rgba(96, 62, 10, 0.96) 50%, rgba(72, 46, 8, 0.96) 100%);
  border: 1px solid #ffe066;
  color: #fff2b8;
}
.m2h-anvil-banner.t3 b { color: #ffe878; font-size: 12px; }
.m2h-anvil-risk-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(62, 10, 14, 0.95);
  border: 1px solid #e05248;
  font-size: 11px;
  font-weight: 700;
  color: #ffd2cc;
  cursor: pointer;
}
.m2h-anvil-risk-box input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #e05248;
  cursor: pointer;
  flex: none;
}

/* --- Mid-Run +0 -> +9 Kutsama Kağıdı Koşu Tılsımı Gamble Strip --- */
@keyframes m2h-plus9-sparkle {
  0%, 100% { border-color: #ffd866; box-shadow: inset 0 0 10px rgba(255, 212, 72, 0.35), 0 0 8px rgba(255, 216, 92, 0.55); }
  50% { border-color: #ffffff; box-shadow: inset 0 0 16px rgba(255, 244, 170, 0.65), 0 0 14px rgba(255, 232, 128, 0.92); }
}
.m2h-talisman-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  background: linear-gradient(90deg, rgba(32, 22, 10, 0.95) 0%, rgba(20, 15, 10, 0.96) 100%);
  border: 1px solid #9e7b3c;
}
.m2h-talisman-bar.is-plus9 {
  animation: m2h-plus9-sparkle 1.6s ease-in-out infinite;
}
.m2h-talisman-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.m2h-talisman-slot {
  width: 36px;
  height: 36px;
  flex: none;
  background: url("./metin2-ui/slot_base.png") no-repeat center center / 36px 36px;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.m2h-talisman-slot img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}
.m2h-talisman-lvl {
  position: absolute;
  right: 1px;
  bottom: 1px;
  padding: 0 3px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #d4a644;
  font-size: 9.5px;
  font-weight: 700;
  color: #ffe27a;
}
.m2h-talisman-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.m2h-talisman-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffd866;
}
.m2h-talisman-desc {
  font-size: 10.5px;
  color: #d8cfc0;
}
.m2h-talisman-res {
  font-size: 10px;
  font-weight: 700;
  color: #9df08e;
}
.m2h-talisman-res.fail {
  color: #ff9488;
}

/* --- Lanetli Efsun Highlight (Karanlık Efsun Sunağı) --- */
.m2h-efsun-panel.is-cursed {
  border-color: #e04452;
  background: linear-gradient(180deg, #2b0c12 0%, #14090c 100%);
  box-shadow: inset 0 0 14px rgba(224, 52, 68, 0.28), 0 0 14px rgba(224, 52, 68, 0.36);
}
.m2h-efsun-cursed-tag {
  padding: 1px 6px;
  background: rgba(128, 16, 26, 0.94);
  border: 1px solid #ff6b78;
  font-size: 9.5px;
  font-weight: 700;
  color: #ffd8dc;
  letter-spacing: 0.4px;
}
.m2h-efsun-line.is-cursed-up {
  color: #ffe27a;
  font-weight: 700;
}
.m2h-efsun-line.is-cursed-down {
  color: #ff828c;
  font-weight: 700;
  border-top: 1px dashed rgba(255, 108, 120, 0.35);
  margin-top: 2px;
  padding-top: 3px;
}

/* --- Sealed Kaos Reward (Genç Uriel — Mühürlü Efsanevi Parşömen) --- */
.m2h-chaos-split.reward.is-sealed {
  background: linear-gradient(135deg, rgba(52, 16, 84, 0.95) 0%, rgba(28, 10, 48, 0.96) 100%);
  border: 1px solid #c97aff;
  box-shadow: inset 0 0 10px rgba(190, 108, 255, 0.28);
}
.m2h-chaos-split.reward.is-sealed .m2h-cs-tag {
  color: #e4b8ff;
}
.m2h-chaos-split.reward.is-sealed .m2h-cs-txt {
  color: #f4dcff;
  font-weight: 700;
}
.m2h-sealed-sub {
  font-size: 9.5px;
  font-style: italic;
  color: #bfa4d8;
  margin-top: 2px;
}

@media (max-width: 780px) {
  .m2h-route-grid,
  .m2h-trials-grid,
  .m2h-ks-grid,
  .m2h-hex-grid,
  .m2h-arcana-layout,
  .m2h-research-grid,
  .m2h-efsun-grid.is-compare,
  .m2h-pa-lvl-grid,
  .m2h-pa-doc-grid,
  .m2h-pa-rank-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
 * HadesMT2 Pre-Alpha — Auto-Quest Onboarding Modal & Top Launcher Pill
 * ============================================================================ */
.m2h-launch-prealpha {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: linear-gradient(180deg, #1b3148 0%, #101e2e 100%);
  border: 1px solid #5aa8e8;
  color: #bce4ff;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
}
.m2h-launch-prealpha.visible {
  display: inline-flex;
}
.m2h-launch-prealpha:hover {
  border-color: #ffe27a;
  color: #ffe688;
}

#m2-hades-prealpha-overlay {
  position: fixed;
  inset: 0;
  z-index: 9740;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 10, 0.72);
  padding: 14px;
}
#m2-hades-prealpha-overlay.open {
  display: flex;
}
.m2h-pa-modal {
  width: min(94vw, 660px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: m2h-deck-in 0.18s ease-out both;
}
.m2h-pa-win {
  display: flex;
  flex-direction: column;
}
.m2h-pa-in {
  margin: -10px -8px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.m2h-pa-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: linear-gradient(90deg, rgba(16, 30, 48, 0.96) 0%, rgba(22, 18, 12, 0.96) 100%);
  border: 1px solid #638ec4;
}
.m2h-pa-port {
  width: 56px;
  height: 66px;
  flex: none;
  border: 1px solid #8a7040;
  background: #0d0b0a;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.m2h-pa-port img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.m2h-pa-btxt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.m2h-pa-btitle {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffe27a;
}
.m2h-pa-bsub {
  font-size: 11px;
  line-height: 1.38;
  color: #dcd4c4;
}
.m2h-pa-sec {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 9px;
  background: rgba(14, 12, 10, 0.94);
  border: 1px solid #4e4232;
}
.m2h-pa-sec-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #ffd866;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.m2h-pa-sec-sub {
  font-size: 10px;
  font-weight: 400;
  color: #a89f8e;
}
.m2h-pa-lvl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.m2h-pa-doc-grid,
.m2h-pa-rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.m2h-pa-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
  padding: 6px 8px;
  background: #14110e;
  border: 1px solid #524536;
  color: #e8e2d5;
  font-family: inherit;
  cursor: pointer;
}
.m2h-pa-opt:hover {
  border-color: #a8884c;
  background: #1d1812;
}
.m2h-pa-opt.selected {
  border-color: #ffd866;
  background: linear-gradient(180deg, #2d2210 0%, #17120c 100%);
  box-shadow: inset 0 0 10px rgba(255, 212, 72, 0.2);
}
.m2h-pa-opt-t {
  font-size: 12px;
  font-weight: 700;
  color: #ffe694;
}
.m2h-pa-opt-d {
  font-size: 10px;
  color: #bfb5a2;
  line-height: 1.28;
}
.m2h-pa-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}
.m2h-pa-perks {
  font-size: 10px;
  color: #a8d8ff;
}
.m2h-pa-fb {
  display: none;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.m2h-pa-fb.show { display: block; }
.m2h-pa-fb.ok { background: #102a18; border: 1px solid #44c472; color: #9cf5b8; }
.m2h-pa-fb.err { background: #361012; border: 1px solid #d94c4c; color: #ffb4b4; }

#m2-hades-prealpha-toast {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9750;
  display: none;
  pointer-events: none;
  max-width: min(92vw, 560px);
}
#m2-hades-prealpha-toast.visible {
  display: block;
  animation: m2h-deck-in 0.18s ease-out both;
}
.m2h-pa-toast-in {
  margin: -9px -7px;
  padding: 6px 14px;
  background: linear-gradient(90deg, rgba(16, 44, 28, 0.96) 0%, rgba(16, 30, 48, 0.96) 100%);
  border: 1px solid #6ad892;
  color: #d8ffe4;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}
