/* ===== Thronebound Royal Boss Arena v2 ===== */
body[data-current-page="boss"] #main{
  background:
    radial-gradient(circle at 50% 4%,rgba(61,160,255,.18),transparent 32%),
    linear-gradient(180deg,#0a1727,#08121f 66%,#07101b);
}
body[data-current-page="boss"] .page{
  max-width:1180px;
}
.boss-premium{
  --boss-gold:#e7c478;
  --boss-gold-2:#9d7b3d;
  --boss-blue:#70caff;
  --boss-panel:#0d1b2b;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.boss-royal-arena{
  position:relative;
  overflow:hidden;
  padding:20px 24px 26px;
  border:1px solid #d4b36388;
  border-radius:24px;
  background-color:#071321;
  background-image:url('assets/boss/boss-arena-bg-v2.png');
  background-position:center top;
  background-size:100% auto;
  background-repeat:no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255,231,167,.08),
    0 20px 46px rgba(0,0,0,.36);
}
.boss-royal-arena:before,
.boss-royal-arena:after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:0;
}
.boss-royal-arena:before{
  inset:8px;
  border:1px solid rgba(235,204,126,.28);
  border-radius:18px;
}
.boss-royal-arena:after{
  inset:0;
  background:linear-gradient(180deg,transparent 0 70%,rgba(4,12,22,.18) 84%,rgba(4,12,22,.38) 100%);
}
.boss-frame-corner{
  position:absolute;
  top:9px;
  width:54px;
  height:54px;
  z-index:4;
  pointer-events:none;
  border-top:2px solid #e7c478;
}
.boss-frame-corner:after{
  content:"";
  position:absolute;
  top:-3px;
  width:20px;
  height:20px;
  border:2px solid #e7c478;
  transform:rotate(45deg);
  background:#10263a;
  box-shadow:0 0 13px rgba(99,193,255,.5);
}
.boss-frame-corner.tl{left:14px;border-left:2px solid #e7c478}
.boss-frame-corner.tl:after{left:-4px}
.boss-frame-corner.tr{right:14px;border-right:2px solid #e7c478}
.boss-frame-corner.tr:after{right:-4px}

.boss-royal-head{
  position:relative;
  z-index:3;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:8px 62px 0;
}
.boss-royal-head .eyebrow{
  margin:0;
  color:#efd28d;
  letter-spacing:2px;
  font-size:9px;
}
.boss-royal-head h1{
  margin:0;
  padding:5px 22px 8px;
  color:#fff1ca;
  font-family:Georgia,"Times New Roman",serif;
  font-size:34px;
  line-height:1.15;
  text-shadow:0 3px 18px #000,0 0 22px rgba(255,213,119,.3);
}
.boss-stage-badges{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
}
.boss-stage-badges>*{
  font-style:normal;
  border:1px solid rgba(231,196,120,.5);
  border-radius:999px;
  padding:4px 9px;
  background:rgba(5,20,35,.72);
  color:#d9c18e;
  font-size:8px;
}
.boss-stage-badges em{
  color:#9edcff;
  border-color:rgba(94,190,245,.55);
}

.boss-visual-stage{
  position:relative;
  z-index:2;
  min-height:410px;
  display:grid;
  place-items:center;
  isolation:isolate;
  overflow:hidden;
  margin:-2px -10px 0;
}
.boss-visual-stage:before{
  content:"";
  position:absolute;
  left:50%;
  bottom:18px;
  width:min(86%,820px);
  height:120px;
  transform:translateX(-50%);
  border:1px solid rgba(117,205,255,.7);
  border-radius:50%;
  background:
    radial-gradient(ellipse,rgba(83,183,255,.35) 0 26%,transparent 66%),
    repeating-radial-gradient(ellipse,rgba(110,207,255,.18) 0 2px,transparent 3px 22px);
  box-shadow:0 0 62px rgba(74,182,255,.46),inset 0 0 42px rgba(241,205,112,.18);
}
.boss-arena-sigil{
  position:absolute;
  left:50%;
  bottom:1%;
  width:min(72%,720px);
  aspect-ratio:3/1;
  transform:translateX(-50%);
  border:1px solid rgba(225,192,105,.45);
  border-radius:50%;
  box-shadow:0 0 30px rgba(80,190,255,.36),inset 0 0 38px rgba(75,186,255,.28);
}
.boss-electric-haze{
  display:none;
  opacity:0;
  position:absolute;
  inset:5% 6% 10%;
  background:
    radial-gradient(circle at 23% 54%,rgba(61,174,255,.42),transparent 24%),
    radial-gradient(circle at 76% 44%,rgba(57,154,255,.38),transparent 27%),
    radial-gradient(circle at 50% 16%,rgba(179,225,255,.24),transparent 24%);
  filter:blur(16px);
  pointer-events:none;
}
.boss-royal-arena .boss-art{
  position:relative;
  z-index:2;
  display:block;
  width:min(640px,76vw);
  height:395px;
  max-width:100%;
  object-fit:contain;
  object-position:center bottom;
  margin:0 auto;
  filter:
    drop-shadow(0 26px 24px rgba(0,5,12,.62))
    drop-shadow(0 0 15px rgba(76,179,255,.54));
  animation:bossRoyalFloat 5.4s ease-in-out infinite;
}
@keyframes bossRoyalFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-7px)}
}
.boss-royal-arena.boss-hit .boss-art{animation:hit .3s ease}

.boss-hp-premium,
.boss-player-panel,
.boss-inline-reward{
  position:relative;
  z-index:3;
  width:min(930px,100%);
  margin-left:auto;
  margin-right:auto;
  border:1px solid rgba(222,188,103,.68);
  background:
    linear-gradient(180deg,rgba(11,32,51,.94),rgba(6,19,32,.95));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.025),
    0 12px 30px rgba(0,0,0,.35);
}
.boss-hp-premium{
  margin-top:-12px;
  margin-bottom:12px;
  padding:13px 15px 14px;
  border-radius:16px;
}
.boss-hp-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:8px;
}
.boss-hp-title>span{
  display:flex;
  align-items:baseline;
  gap:11px;
  min-width:0;
}
.boss-hp-title b{
  color:#f2d58e;
  font-size:14px;
  letter-spacing:.5px;
}
.boss-hp-title small{color:#e2e8eb;font-size:12px}
.boss-hp-percent{
  flex:none;
  min-width:76px;
  text-align:center;
  padding:5px 8px;
  border:1px solid rgba(100,196,255,.62);
  border-radius:999px;
  color:#dff4ff;
  background:rgba(22,74,108,.42);
  font-size:16px;
  font-family:Georgia,serif;
}
.boss-hp-track,
.boss-player-hp-track{
  overflow:hidden;
  border:1px solid rgba(191,151,77,.85);
  border-radius:999px;
  background:#07101a;
  box-shadow:inset 0 2px 7px rgba(0,0,0,.72);
}
.boss-hp-track{height:14px}
.boss-hp-track i,
.boss-player-hp-track i{
  display:block;
  height:100%;
  border-radius:inherit;
  transition:width .38s ease;
}
.boss-hp-track i{
  background:linear-gradient(90deg,#d72f46,#ff4e62 56%,#ff8f6a);
  box-shadow:0 0 15px rgba(255,66,86,.72);
}

.boss-player-panel,
.boss-inline-reward{
  padding:15px;
  border-radius:16px;
  margin-bottom:12px;
}
.boss-player-panel.is-critical{border-color:#df735e}
.boss-section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.boss-section-heading h2{
  margin:0;
  color:#f3dfad;
  font-size:17px;
}
.boss-section-heading>span{
  color:#d7bd7f;
  font-size:9px;
  text-align:right;
}
.boss-player-heading .eyebrow,
.boss-inline-reward .eyebrow{
  margin-bottom:3px;
  font-size:7px;
}
.boss-player-hp-percent{
  color:#a8e0ff!important;
  border:1px solid rgba(91,184,236,.48);
  background:rgba(27,88,128,.26);
  border-radius:999px;
  padding:4px 9px;
  white-space:nowrap;
}
.boss-player-stat-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin-bottom:9px;
}
.boss-player-stat-grid>div{
  min-width:0;
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  gap:1px 7px;
  align-items:center;
  padding:9px 10px;
  border:1px solid rgba(106,153,187,.22);
  border-radius:10px;
  background:linear-gradient(180deg,rgba(26,55,79,.68),rgba(14,35,53,.7));
}
.boss-stat-icon{
  grid-row:1/3;
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
}
.boss-stat-icon .item-art{width:24px;height:24px}
.boss-stat-icon .icon{width:21px;height:21px;color:#efcd80}
.boss-player-stat-grid small{
  color:#8ca9bb;
  font-size:7px;
  letter-spacing:.7px;
}
.boss-player-stat-grid strong{
  color:#f6f7f4;
  font-size:12px;
  overflow-wrap:anywhere;
}
.boss-player-hp-track{
  height:7px;
  border-color:rgba(82,152,120,.66);
}
.boss-player-hp-track i{
  background:linear-gradient(90deg,#4a9d7b,#93d7b3);
  box-shadow:0 0 12px rgba(112,205,161,.55);
}
.is-critical .boss-player-hp-track i{
  background:linear-gradient(90deg,#bd504a,#f18d67);
}
.boss-player-status{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px 12px;
  margin-top:7px;
  color:#8da8ba;
}
.boss-player-status small{font-size:8px}
.boss-player-status .revive-button{
  margin-left:auto;
  padding:5px 9px;
  font-size:8px;
}

.boss-inline-reward{
  background:
    linear-gradient(180deg,rgba(10,29,47,.96),rgba(6,19,32,.96));
}
.boss-reward-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}
.boss-reward-grid .loot-line{
  min-width:0;
  min-height:58px;
  margin:0;
  padding:8px 9px;
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:7px;
  border:1px solid rgba(210,178,97,.18);
  border-radius:10px;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
  color:#a9bcc8;
  font-size:8px;
}
.boss-reward-grid .loot-line>.item-art,
.boss-reward-grid .loot-line>.icon{
  grid-row:1/3;
  width:28px;
  height:28px;
}
.boss-reward-grid .loot-line strong{
  display:block;
  color:#f2d796;
  font-size:10px;
  overflow-wrap:anywhere;
}

.boss-royal-attack{
  position:relative;
  z-index:3;
  width:min(760px,100%);
  min-height:66px;
  margin:14px auto 10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px 13px;
  align-items:center;
  justify-content:center;
  color:#1a2731;
  background:
    linear-gradient(180deg,#fff0b9 0%,#efd17f 38%,#dba34a 100%);
  border:1px solid #fff1b9;
  border-radius:16px;
  box-shadow:
    0 5px 0 #8d6630,
    0 12px 28px rgba(239,193,96,.33),
    inset 0 0 0 2px rgba(112,72,18,.1);
  font-size:20px;
  font-weight:900;
  text-shadow:0 1px rgba(255,255,255,.5);
}
.boss-royal-attack:active{
  transform:translateY(3px);
  box-shadow:0 2px 0 #8d6630,0 7px 16px rgba(239,193,96,.25);
}
.boss-royal-attack .item-art{width:34px;height:34px}
.boss-royal-attack span{font-size:20px}
.boss-royal-attack small{
  color:#664b28;
  font-size:10px;
  font-weight:800;
}
.boss-attack-facts{
  position:relative;
  z-index:3;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
  margin:8px auto 0;
}
.boss-attack-facts span{
  padding:4px 8px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:999px;
  background:rgba(5,18,31,.75);
  color:#aac0ce;
  font-size:8px;
}
.boss-royal-arena .boss-log,
.boss-royal-arena .boss-regen-log{
  position:relative;
  z-index:4;
  width:min(760px,100%);
  margin:8px auto 0;
  text-align:center;
}

.boss-stage-picker,
.boss-battle-info{
  border-color:rgba(208,180,107,.36)!important;
  background:linear-gradient(145deg,#13263a,#0d1a29)!important;
}
.boss-stage-picker{padding:15px 17px!important}
.boss-stage-picker h3{color:#ecd398}
.boss-stage-picker>p{
  margin:4px 0 10px!important;
  color:#879fb1!important;
  font-size:10px!important;
}
.boss-stage-picker>div{
  display:flex!important;
  gap:7px!important;
  overflow-x:auto;
  padding-bottom:4px;
  scrollbar-width:thin;
}
.boss-stage-picker .outline-button{
  flex:0 0 auto;
  white-space:nowrap;
  border-radius:999px;
}
.boss-stage-picker .outline-button.selected{
  background:rgba(223,189,112,.13);
  border-color:rgba(230,200,123,.62);
  color:#f2d99e;
}
.boss-battle-info{padding:18px}
.boss-battle-info .boss-progression-info{
  margin:0;
  padding:13px;
  border-radius:12px;
  background:#091725;
  border:1px solid rgba(255,255,255,.07);
}
.boss-rules-compact{
  display:grid;
  gap:6px;
  margin-top:11px;
}
.boss-rules-compact p{
  color:#91a9b9;
  font-size:10px;
  line-height:1.7;
}
.boss-rules-compact b{color:#d8c493}
.boss-find-hammer{width:100%;margin-top:12px}

@media(max-width:900px){
  .boss-visual-stage{min-height:360px}
  .boss-royal-arena .boss-art{height:350px;width:min(560px,84vw)}
  .boss-reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  body[data-current-page="boss"] .page{padding-left:9px;padding-right:9px}
  .boss-premium{gap:11px}
  .boss-royal-arena{
    padding:12px 10px 16px;
    border-radius:18px;
    background-color:#071321;
    background-image:url('assets/boss/boss-arena-bg-v2.png');
    background-position:center top;
    background-size:100% auto;
    background-repeat:no-repeat;
  }
  .boss-royal-arena:before{inset:5px;border-radius:14px}
  .boss-frame-corner{width:36px;height:36px}
  .boss-frame-corner:after{width:14px;height:14px}
  .boss-royal-head{padding:4px 38px 0;gap:2px}
  .boss-royal-head .eyebrow{font-size:6.5px;letter-spacing:1.2px}
  .boss-royal-head h1{font-size:24px;padding:4px 8px 5px}
  .boss-stage-badges>*{padding:3px 6px;font-size:6.5px}

  .boss-visual-stage{
    min-height:315px;
    margin:-2px -5px 0;
  }
  .boss-visual-stage:before{
    bottom:9px;
    width:96%;
    height:78px;
  }
  .boss-royal-arena .boss-art{
    width:min(430px,102vw);
    height:315px;
    margin:0 auto;
  }

  .boss-hp-premium{
    margin-top:-7px;
    margin-bottom:9px;
    padding:9px 10px 10px;
    border-radius:12px;
  }
  .boss-hp-title{margin-bottom:6px}
  .boss-hp-title>span{gap:6px}
  .boss-hp-title b{font-size:10px}
  .boss-hp-title small{font-size:9px}
  .boss-hp-percent{min-width:62px;font-size:12px;padding:3px 6px}
  .boss-hp-track{height:10px}

  .boss-player-panel,
  .boss-inline-reward{
    padding:10px;
    margin-bottom:9px;
    border-radius:12px;
  }
  .boss-section-heading{margin-bottom:8px}
  .boss-section-heading h2{font-size:13px}
  .boss-section-heading>span{font-size:7px}
  .boss-player-hp-percent{font-size:7px!important;padding:3px 6px}

  .boss-player-stat-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:4px;
    margin-bottom:6px;
  }
  .boss-player-stat-grid>div{
    display:flex;
    flex-direction:column;
    gap:1px;
    text-align:center;
    padding:6px 3px;
  }
  .boss-stat-icon{
    width:22px;
    height:22px;
    margin:0 auto 1px;
  }
  .boss-stat-icon .item-art{width:20px;height:20px}
  .boss-stat-icon .icon{width:18px;height:18px}
  .boss-player-stat-grid small{font-size:6px}
  .boss-player-stat-grid strong{font-size:8px;line-height:1.25}
  .boss-player-status{gap:3px 7px;margin-top:5px}
  .boss-player-status small{font-size:7px}
  .boss-player-status .hp-recovery-label{display:none}

  .boss-reward-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px;
  }
  .boss-reward-grid .loot-line{
    min-height:48px;
    padding:6px;
    font-size:7px;
  }
  .boss-reward-grid .loot-line>.item-art,
  .boss-reward-grid .loot-line>.icon{
    width:23px;
    height:23px;
  }
  .boss-reward-grid .loot-line strong{font-size:8px}

  .boss-royal-attack{
    min-height:56px;
    margin:10px auto 8px;
    border-radius:12px;
    font-size:17px;
    gap:6px 9px;
  }
  .boss-royal-attack .item-art{width:28px;height:28px}
  .boss-royal-attack span{font-size:17px}
  .boss-royal-attack small{font-size:8px}
  .boss-attack-facts{gap:4px;margin-top:6px}
  .boss-attack-facts span{padding:3px 5px;font-size:6.5px}

  .boss-stage-picker{padding:11px!important}
  .boss-stage-picker>p{display:none}
  .boss-stage-picker h3{font-size:12px}
  .boss-stage-picker .outline-button{font-size:7.5px;padding:6px 8px}
  .boss-battle-info{padding:13px}
  .boss-rules-compact p{font-size:8.5px}
}
@media(max-width:380px){
  .boss-royal-head h1{font-size:21px}
  .boss-stage-badges em{display:none}
  .boss-visual-stage{min-height:285px}
  .boss-royal-arena .boss-art{height:285px}
  .boss-player-stat-grid{grid-template-columns:repeat(3,1fr)}
  .boss-player-stat-grid>div:nth-child(4),
  .boss-player-stat-grid>div:nth-child(5){grid-column:auto}
}
@media(prefers-reduced-motion:reduce){
  .boss-royal-arena .boss-art{animation:none}
  .boss-hp-track i,.boss-player-hp-track i{transition:none}
}
body.reduced .boss-royal-arena .boss-art{animation:none}
body.reduced .boss-hp-track i,
body.reduced .boss-player-hp-track i{transition:none}
