/* === v0.8.6: compact progression, readable combat and dynamic Ruins === */
[hidden] { display: none !important; }

body.theme-ashen .battle-action-row {
  grid-template-columns: minmax(105px, 1fr) minmax(0, 1.8fr);
}

body.theme-ashen .attack-meter {
  height: 24px;
  border-radius: 3px 18px 18px 3px;
  border-color: rgba(198,170,101,.62);
  background: linear-gradient(180deg,#202724 0%,#090d0c 48%,#1a211e 52%,#080b0a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -4px 8px rgba(0,0,0,.8), 0 0 15px rgba(80,174,158,.12);
}
body.theme-ashen .attack-meter::before {
  content:''; position:absolute; inset:2px 12px 2px 2px; z-index:2; pointer-events:none;
  background:linear-gradient(90deg,transparent 0%,rgba(222,242,228,.09) 32%,rgba(235,210,126,.35) 53%,rgba(90,228,194,.28) 76%,transparent 100%);
  filter:blur(2px); animation:bladeLightSweep 2.4s linear infinite;
}
body.theme-ashen .attack-meter::after {
  content:''; position:absolute; right:2px; top:5px; width:16px; height:12px; z-index:3;
  clip-path:polygon(0 0,100% 50%,0 100%); background:rgba(218,202,157,.55); pointer-events:none;
}
body.theme-ashen .attack-meter-marker {
  z-index:5; width:7px; background:#fff8c9;
  box-shadow:0 0 4px #fff,0 0 11px #ffe87f,0 0 24px rgba(72,232,201,.82),-12px 0 20px rgba(87,216,191,.25);
}
@keyframes bladeLightSweep { from{transform:translateX(-55%)} to{transform:translateX(55%)} }

body.theme-ashen .combatant.enemy-windup { animation:enemyWindup .54s ease-in-out both; }
body.theme-ashen .combatant.enemy-windup-power { animation:enemyPowerWindup .78s cubic-bezier(.2,.75,.2,1) both; }
@keyframes enemyWindup { 0%{transform:translateX(0)} 55%{transform:translateX(7px) scale(1.015);filter:brightness(1.22)} 100%{transform:translateX(0)} }
@keyframes enemyPowerWindup { 0%{transform:translateX(0);box-shadow:inherit} 55%{transform:translateX(10px) scale(1.035);filter:brightness(1.45) saturate(1.35);box-shadow:inset 0 0 38px rgba(205,88,55,.28),0 0 22px rgba(205,88,55,.25)} 100%{transform:translateX(0)} }

body.theme-ashen .damage-float.critical,
body.theme-ashen .damage-float.crit { animation-duration:1.8s !important; }
body.theme-ashen .enemy-defeat-banner { animation-duration:1.05s; }

body.theme-ashen .ruins-rules { margin:8px 0 10px; border:1px solid rgba(79,119,108,.34); border-radius:10px; background:rgba(7,14,13,.55); }
body.theme-ashen .ruins-rules summary { padding:10px 12px; color:#b9c8c4; font-weight:800; cursor:pointer; }
body.theme-ashen .ruins-rules p { margin:0; padding:0 12px 12px; color:var(--muted); font-size:13px; line-height:1.5; }
body.theme-ashen .ruins-floor-list { gap:8px; }
body.theme-ashen .ruins-floor-card.compact { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; padding:11px 12px; min-height:0; }
body.theme-ashen .ruins-floor-card.compact .ruins-floor-title { font-size:17px; }
body.theme-ashen .ruins-floor-card.compact .ruins-floor-meta { margin-top:3px; font-size:11px; }
body.theme-ashen .ruins-floor-card.compact .ruins-floor-status { margin-top:5px; font-size:11px; }
body.theme-ashen .ruins-route-map { max-height:none; overflow:visible; }
body.theme-ashen .ruins-route-row { min-width:0; }
body.theme-ashen .ruins-route-node { min-height:64px; }

body.theme-ashen .ruins-result-detailed { max-height:none !important; overflow:visible !important; padding:10px; }
body.theme-ashen .ruins-result-loot { margin-top:9px; border:1px solid rgba(99,132,123,.32); border-radius:9px; background:rgba(5,10,9,.55); }
body.theme-ashen .ruins-result-loot summary { padding:10px 11px; color:#c6d1cd; font-size:12px; font-weight:800; cursor:pointer; }
body.theme-ashen .ruins-result-loot-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:0 9px 10px; }
body.theme-ashen .ruins-result-loot-grid h4 { margin:4px 0 6px; color:#cbb57b; font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
body.theme-ashen .ruins-result-loot-grid ul { list-style:none; margin:0; padding:0; display:grid; gap:5px; }
body.theme-ashen .ruins-result-loot-grid li { display:flex; flex-direction:column; padding:6px 7px; border:1px solid rgba(110,120,116,.22); border-radius:7px; font-size:11px; }
body.theme-ashen .ruins-result-loot-grid li small { color:var(--muted); }
body.theme-ashen .ruins-result-loot-grid li.muted { color:var(--muted); }

body.theme-ashen .quest-footer { display:flex; align-items:end; justify-content:space-between; gap:8px; margin-top:6px; }
body.theme-ashen .quest-footer small { margin:0; }
body.theme-ashen .quest-card.ready { border-color:#c8a84f; box-shadow:0 0 18px rgba(200,168,79,.16),inset 3px 0 0 #c8a84f; }
body.theme-ashen .quest-card.ready .quest-title { color:#f1df9d; }
body.theme-ashen .quest-claim { min-height:32px; padding:5px 9px; font-size:11px; }
body.theme-ashen .quest-claimed { color:#7fa98a; font-size:11px; font-weight:800; }

@media (max-width:620px) {
  body.theme-ashen .battle-action-row { grid-template-columns:minmax(92px,1fr) minmax(0,1.65fr); }
  body.theme-ashen .ruins-floor-card.compact { grid-template-columns:1fr; }
  body.theme-ashen .ruins-floor-card.compact button { width:100%; }
  body.theme-ashen .ruins-result-loot-grid { grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-ashen .attack-meter::before,
  body.theme-ashen .combatant.enemy-windup,
  body.theme-ashen .combatant.enemy-windup-power { animation:none !important; }
}

/* v0.8.9 — сворачиваемый итог последней экспедиции */
body.theme-ashen .ruins-result-detailed {
  display: block;
  padding: 0;
  overflow: hidden;
}
body.theme-ashen .ruins-result-collapse {
  width: 100%;
}
body.theme-ashen .ruins-result-summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
body.theme-ashen .ruins-result-summary::-webkit-details-marker { display: none; }
body.theme-ashen .ruins-result-summary-title {
  min-width: 0;
}
body.theme-ashen .ruins-result-summary span {
  display: block;
  color: #9eaa9f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.theme-ashen .ruins-result-summary strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #eee7d7;
  font: 700 18px/1.15 Georgia, serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.theme-ashen .ruins-result-summary-meta {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto 14px;
  align-items: center;
  column-gap: 10px;
  text-align: right;
}
body.theme-ashen .ruins-result-summary-meta b {
  grid-column: 1;
  color: #76c5b1;
  font-size: 15px;
  line-height: 1;
}
body.theme-ashen .ruins-result-summary-meta span {
  grid-column: 1;
  margin-top: 4px;
  color: #b9b39f;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}
body.theme-ashen .ruins-result-summary-meta i {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 8px;
  height: 8px;
  border-right: 2px solid #8fa79d;
  border-bottom: 2px solid #8fa79d;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
body.theme-ashen .ruins-result-collapse[open] .ruins-result-summary-meta i {
  transform: rotate(225deg) translate(-2px, -2px);
}
body.theme-ashen .ruins-result-collapse[open] .ruins-result-summary {
  border-bottom: 1px solid rgba(91, 124, 113, .28);
}
body.theme-ashen .ruins-result-body {
  display: grid;
  gap: 12px;
  padding: 12px 14px 14px;
}
@media (max-width: 420px) {
  body.theme-ashen .ruins-result-summary { min-height: 62px; padding: 10px 12px; }
  body.theme-ashen .ruins-result-summary strong { font-size: 17px; }
  body.theme-ashen .ruins-result-summary-meta { column-gap: 8px; }
}


/* === v0.8.9: loot cards, quest notice and readable rewards === */
body.theme-ashen .ruins-loot-item-card{position:relative;border-left:3px solid rgba(170,170,170,.55)!important;padding:8px 9px!important;background:linear-gradient(90deg,rgba(35,40,38,.54),rgba(5,10,9,.65))}
body.theme-ashen .ruins-loot-item-card.uncommon{border-left-color:#69aa70!important}body.theme-ashen .ruins-loot-item-card.rare{border-left-color:#4a9fcf!important}body.theme-ashen .ruins-loot-item-card.epic{border-left-color:#c35cf0!important}
body.theme-ashen .ruins-loot-item-slot{color:#94a29d;font-size:9px;text-transform:uppercase;letter-spacing:.08em}body.theme-ashen .ruins-loot-item-card em{margin-top:3px;color:#71b8ac;font-size:10px;font-style:normal}
body.theme-ashen .quest-nav-badge{background:#c79e42;color:#17130a}


/* v0.8.10: compact shop hierarchy and grouped equipment catalog */


/* === v0.8.13: separate showcase/catalog and robust final Ruins reward === */

/* The icon is hidden in compact Ruins rewards, so the copy must occupy the full grid width. */


/* === v0.8.13: readable reward card, separated map and smoother combat === */
body.theme-ashen .map-chapters-stack{display:grid;gap:8px;margin-top:10px}
body.theme-ashen .map-chapter-details{display:block;margin:0;border:1px solid rgba(117,101,67,.38);border-radius:11px;background:rgba(7,11,10,.6);overflow:hidden}
body.theme-ashen .map-chapter-details>.map-chapter-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:56px;padding:9px 12px;border:0;cursor:pointer;list-style:none}
body.theme-ashen .map-chapter-details>.map-chapter-summary::-webkit-details-marker{display:none}
body.theme-ashen .map-chapter-summary>span{display:grid;gap:2px;min-width:0}
body.theme-ashen .map-chapter-summary>span b{color:#8b9a93;font-size:9px;letter-spacing:.14em;text-transform:uppercase}
body.theme-ashen .map-chapter-summary>span strong{color:#d7c48f;font:700 17px/1.15 Georgia,serif}
body.theme-ashen .map-chapter-summary>em{display:flex;align-items:center;gap:8px;color:#85a99f;font-size:10px;font-style:normal;white-space:nowrap}
body.theme-ashen .map-chapter-summary>em::after{content:'›';font-size:20px;line-height:1;transition:transform .18s ease}
body.theme-ashen .map-chapter-details[open]>.map-chapter-summary>em::after{transform:rotate(90deg)}
body.theme-ashen .map-chapter-details>.chapter-map-list,body.theme-ashen .map-chapter-details>.future-chapter-card{margin:0 8px 8px}
body.theme-ashen .map-activity-hub{display:grid;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid rgba(83,128,116,.4)}
body.theme-ashen .activity-section-head{padding:0 3px 5px}
body.theme-ashen .activity-map-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
body.theme-ashen .activity-map-card{min-height:96px;padding:12px 10px}
body.theme-ashen .activity-map-card strong{font-size:15px}
body.theme-ashen .activity-map-card small{font-size:10px;line-height:1.35}
body.theme-ashen .map-quest-panel{margin-top:16px;padding-top:14px;border-top:1px solid rgba(117,101,67,.35)}
body.theme-ashen .combatant{backface-visibility:hidden;transform:translateZ(0)}
body.theme-ashen .damage-float{will-change:transform,opacity}
body.theme-ashen .combatant.hit{animation:ffHitLite .46s ease-out both !important}
body.theme-ashen .combatant.hit-strong{animation:ffHitStrongLite .58s ease-out both !important}
body.theme-ashen .combatant.hit-perfect{animation:ffHitPerfectLite .62s ease-out both !important}
body.theme-ashen .combatant.hit-critical{animation:ffHitCriticalLite .68s ease-out both !important}
body.theme-ashen .combatant.hit-power{animation:ffHitPowerLite .68s ease-out both !important}
body.theme-ashen .combatant.enemy-windup{animation:ffEnemyWindupLite .54s ease-in-out both !important}
body.theme-ashen .combatant.enemy-windup-power{animation:ffEnemyPowerWindupLite .78s cubic-bezier(.2,.75,.2,1) both !important}
@keyframes ffHitLite{0%,100%{transform:translate3d(0,0,0)}32%{transform:translate3d(7px,0,0)}58%{transform:translate3d(-3px,0,0)}}
@keyframes ffHitStrongLite{0%,100%{transform:translate3d(0,0,0) scale(1)}24%{transform:translate3d(11px,0,0) scale(1.025);box-shadow:inset 0 0 30px rgba(227,182,91,.2)}52%{transform:translate3d(-6px,0,0) scale(1.01)}}
@keyframes ffHitPerfectLite{0%,100%{transform:translate3d(0,0,0) scale(1)}22%{transform:translate3d(13px,0,0) scale(1.035);box-shadow:inset 0 0 38px rgba(232,211,123,.25)}48%{transform:translate3d(-8px,0,0) scale(1.015)}}
@keyframes ffHitCriticalLite{0%,100%{transform:translate3d(0,0,0) scale(1)}18%{transform:translate3d(15px,0,0) scale(1.045);box-shadow:inset 0 0 42px rgba(255,163,55,.3),0 0 16px rgba(255,92,42,.2)}42%{transform:translate3d(-10px,0,0) scale(1.02)}66%{transform:translate3d(5px,0,0)}}
@keyframes ffHitPowerLite{0%,100%{transform:translate3d(0,0,0)}22%{transform:translate3d(-9px,0,0);box-shadow:inset 0 0 42px rgba(255,74,48,.28)}48%{transform:translate3d(5px,0,0)}}
@keyframes ffEnemyWindupLite{0%,100%{transform:translate3d(0,0,0)}55%{transform:translate3d(7px,0,0) scale(1.015)}}
@keyframes ffEnemyPowerWindupLite{0%,100%{transform:translate3d(0,0,0)}55%{transform:translate3d(10px,0,0) scale(1.035);box-shadow:inset 0 0 34px rgba(205,88,55,.24),0 0 16px rgba(205,88,55,.18)}}
@media(max-width:620px){body.theme-ashen .activity-map-list{grid-template-columns:1fr}body.theme-ashen .activity-map-card{min-height:0;padding:10px 12px}}


/* === v0.8.13: left-aligned mobile map and compact loot dialog === */
body.theme-ashen .map-chapter-details>.map-chapter-summary,
body.theme-ashen .map-chapter-summary>span,
body.theme-ashen .map-chapter-summary>span b,
body.theme-ashen .map-chapter-summary>span strong,
body.theme-ashen .chapter-map-list .map-card,
body.theme-ashen .future-chapter-card,
body.theme-ashen .activity-section-head,
body.theme-ashen .activity-map-card,
body.theme-ashen .activity-map-card strong,
body.theme-ashen .activity-map-card small{
  text-align:left;
}
body.theme-ashen .map-chapter-summary>span{justify-items:start}
body.theme-ashen .chapter-map-list .map-card,
body.theme-ashen .future-chapter-card{justify-items:start}
body.theme-ashen .activity-section-head{align-items:start;justify-items:start}
body.theme-ashen .activity-map-card{
  display:block;
  min-height:72px;
  padding:11px 12px 11px 70px;
}
body.theme-ashen .activity-map-card strong,
body.theme-ashen .activity-map-card small{display:block;min-width:0;max-width:100%}
body.theme-ashen .activity-map-card strong{margin:0 0 3px;font-size:16px;line-height:1.15}
body.theme-ashen .activity-map-card small{line-height:1.35}

@media(max-width:620px){
  body.theme-ashen .activity-map-card{min-height:66px;padding:10px 11px 10px 62px}
  body.theme-ashen .activity-map-card::before{left:10px;width:38px;height:38px;font-size:20px}
  body.theme-ashen .map-chapter-details>.map-chapter-summary{padding:9px 10px}
  body.theme-ashen .map-chapter-summary>span strong{font-size:16px}
}
body.theme-ashen .runes-map-card::before{content:'◇';color:#80cfc2;border-color:rgba(98,180,163,.48);font-size:24px}


/* === v0.8.14: unified item metadata and left-aligned item content === */
body.theme-ashen .item-card-name,
body.theme-ashen .item-card-meta,
body.theme-ashen .inventory-item-stats,
body.theme-ashen .item-detail-card,
body.theme-ashen .item-detail-meta,
body.theme-ashen .item-detail-stats,
body.theme-ashen .slot-item,
body.theme-ashen .equipment-item-stats,
body.theme-ashen .rune-installed-item,
body.theme-ashen .rune-installed-head,
body.theme-ashen .ruins-loot-item-card,
body.theme-ashen .battle-result-card .reward-loot-card-copy,
body.theme-ashen .battle-result-card .reward-item-name,
body.theme-ashen .battle-result-card .reward-item-kicker,
body.theme-ashen .battle-result-card .reward-item-stat,
body.theme-ashen .battle-result-card .reward-stat-list,
body.theme-ashen .battle-result-card .reward-stat-line {
  text-align:left !important;
  justify-items:start !important;
}
body.theme-ashen .item-open-button>div,
body.theme-ashen .inventory-item-stats,
body.theme-ashen .item-detail-stats,
body.theme-ashen .equipment-item-stats,
body.theme-ashen .battle-result-card .reward-loot-card-copy,
body.theme-ashen .battle-result-card .reward-item-stat,
body.theme-ashen .battle-result-card .reward-stat-list,
body.theme-ashen .battle-result-card .reward-stat-line {
  width:100%;
  min-width:0;
}
body.theme-ashen .reward-stat-list {
  display:grid;
  gap:3px;
  justify-items:start !important;
}
body.theme-ashen .reward-stat-line {
  display:flex !important;
  flex-wrap:wrap;
  justify-content:flex-start !important;
  align-items:baseline;
  gap:2px 5px;
  width:100%;
  min-width:0;
  text-align:left !important;
}
body.theme-ashen .reward-stat-base,
body.theme-ashen .reward-stat-comparison {
  min-width:0;
  text-align:left !important;
  white-space:normal;
  overflow-wrap:break-word;
  word-break:normal;
}
body.theme-ashen .item-card-meta {
  display:block;
  margin-top:2px;
  text-align:left !important;
}
body.theme-ashen .slot-item { display:grid; gap:2px; min-width:0; }
body.theme-ashen .slot-item>strong { display:block; min-width:0; }
body.theme-ashen .slot-item>small { display:block; }
body.theme-ashen .equipment-item-stats { color:#c9cecb; line-height:1.35; }
body.theme-ashen .rune-installed-head { align-items:start; }
body.theme-ashen .rune-installed-head strong,
body.theme-ashen .rune-installed-head small {
  text-align:left !important;
}
body.theme-ashen .ruins-loot-item-card strong,
body.theme-ashen .ruins-loot-item-card small,
body.theme-ashen .ruins-loot-item-card em { display:block; text-align:left; }
body.theme-ashen .map-chapter-details>.map-chapter-summary {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  justify-content:stretch;
  gap:10px;
  width:100%;
  text-align:left !important;
}
body.theme-ashen .map-chapter-summary>span {
  width:100%;
  min-width:0;
  justify-items:start !important;
  text-align:left !important;
}
body.theme-ashen .map-chapter-summary>span b,
body.theme-ashen .map-chapter-summary>span strong,
body.theme-ashen .chapter-map-list .map-card,
body.theme-ashen .chapter-map-list .map-card strong,
body.theme-ashen .chapter-map-list .map-card small,
body.theme-ashen .future-chapter-card,
body.theme-ashen .future-chapter-card strong,
body.theme-ashen .future-chapter-card small {
  text-align:left !important;
}
body.theme-ashen .map-chapter-summary>em { justify-self:end; }
body.theme-ashen .chapter-map-list .map-card,
body.theme-ashen .future-chapter-card { justify-items:start !important; }
@media(max-width:390px){
  body.theme-ashen .map-chapter-details>.map-chapter-summary{gap:7px}
  body.theme-ashen .map-chapter-summary>em{font-size:9px}
  body.theme-ashen .reward-stat-line{gap:1px 4px}
}

/* v0.8.14-r2: hero equipment cards use the same left column as other item cards */
body.theme-ashen .equipment-slot.has-item {
  grid-template-columns:minmax(0,1fr) !important;
  align-items:start;
  justify-items:start;
}
body.theme-ashen .equipment-slot.has-item .slot-item {
  width:100%;
  min-width:0;
  justify-items:start;
  align-content:start;
  text-align:left !important;
}
body.theme-ashen .equipment-slot.has-item .slot-item>strong,
body.theme-ashen .equipment-slot.has-item .slot-item>small,
body.theme-ashen .equipment-slot.has-item .equipment-item-stats,
body.theme-ashen .equipment-slot.has-item .equipment-stat-line,
body.theme-ashen .equipment-slot.has-item .item-socket-summary,
body.theme-ashen .equipment-slot.has-item .item-rune-bonuses {
  text-align:left !important;
  justify-content:flex-start;
}
body.theme-ashen .equipment-slot.has-item .slot-item>strong {
  overflow-wrap:anywhere;
}
body.theme-ashen .equipment-slot.has-item .equipment-item-stats {
  display:grid;
  gap:2px;
  justify-items:start !important;
  width:100%;
}
body.theme-ashen .equipment-slot.has-item .equipment-stat-line {
  display:block;
  width:100%;
}
body.theme-ashen .equipment-slot.empty {
  grid-template-columns:58px minmax(0,1fr);
}


