/* Wanasa kingdom scenes and their presentation. */
body[data-pve-view="family"],
body[data-pve-view="home"],
body[data-pve-view="map"],
body[data-pve-view="honor"],
body[data-pve-view="public"]{
  --pve-emerald: #0d453c;
  --pve-sand: #e4d7bc;
  --pve-secondary: #577068;
}
body:is([data-pve-view="family"], [data-pve-view="home"], [data-pve-view="map"], [data-pve-view="honor"], [data-pve-view="public"]) {
  --pve-emerald: #0d453c;
  --pve-sand: #e4d7bc;
  --pve-secondary: #577068;
}

#result-notice.has-territory-incident {
  border-bottom-color: #d5a896;
  background: linear-gradient(90deg, #f7dfd3, #f9f0e4 85%);
  color: #652f25;
}

.result-notice.has-territory-incident .result-notice-icon {
  background: #994e38;
  color: #fff5e7;
}

.result-notice.has-territory-incident small { color: #70483c; }

.map-legend .legend-dot.rebellion { background: #a95036; }

.pve-scene-image {
  display: block;
  width: 100%;
  height: auto;
}

.province-art--isometric {
  position: relative;
  align-items: center;
  height: auto;
  aspect-ratio: 3 / 2;
  border: 1px solid #c9b78a;
  background: radial-gradient(ellipse at 50% 63%, #fae9bb, #d5bd86 66%, #91a58a);
}

.province-art--isometric::before { content: none; }

.province-art--isometric .pve-scene-image {
  height: 100%;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px #4b3a2940);
}

.province-art--royal {
  background: radial-gradient(ellipse at 50% 68%, #f9dfa0, #d3b77e 60%, #56766c);
  border-color: #b59a5b;
}

.province-art--royal .pve-scene-image {
  max-width: 96%;
  max-height: 96%;
}

.province-owner-mark {
  position: absolute;
  z-index: 1;
  inset-block-start: 10px;
  inset-inline-end: 10px;
}

.province-rebellion-note { margin-top: 12px; }

.action-event-details { margin: 9px 0 13px; border: 1px solid #e3dac4; border-radius: 8px; background: #fbf8ee; font-size: 12px; }
.action-event-details summary { padding: 7px 9px; color: #446956; cursor: pointer; }
.action-event-details ul { margin: 0; padding: 0 9px 7px; list-style: none; }
.action-event-details li { display: grid; grid-template-columns: minmax(0, 1fr) 3em minmax(5.6em, auto); gap: 7px; align-items: baseline; padding: 4px 0; border-top: 1px solid #ebe3d0; }
.action-event-details li small { color: #536c60; }

body[data-pve-view="home"] .page-heading,
body[data-pve-view="map"] .page-heading,
body[data-pve-view="honor"] .page-heading{
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--pve-sand);
}
body:is([data-pve-view="home"], [data-pve-view="map"], [data-pve-view="honor"]) .page-heading {
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--pve-sand);
}

body[data-pve-view="home"] .page-heading h1,
body[data-pve-view="map"] .page-heading h1,
body[data-pve-view="honor"] .page-heading h1{
  margin-bottom: 5px;
  color: var(--pve-emerald);
  font-size: clamp(24px, 4vw, 39px);
  line-height: 1.16;
}
body:is([data-pve-view="home"], [data-pve-view="map"], [data-pve-view="honor"]) .page-heading h1 {
  margin-bottom: 5px;
  color: var(--pve-emerald);
  font-size: clamp(24px, 4vw, 39px);
  line-height: 1.16;
}

body[data-pve-view="home"] .page-heading p,
body[data-pve-view="map"] .page-heading p,
body[data-pve-view="honor"] .page-heading p{
  color: var(--pve-secondary);
  font-size: 13px;
}
body:is([data-pve-view="home"], [data-pve-view="map"], [data-pve-view="honor"]) .page-heading p {
  color: var(--pve-secondary);
  font-size: 13px;
}

[data-pve-view="home"] .resource {
  overflow: hidden;
  border-color: #d9e4d8;
  background: linear-gradient(145deg, #fffef7 10%, #edf3e9);
}

[data-pve-view="home"] .resource label,
[data-pve-view="home"] .resource small{
  color: var(--pve-secondary);
}
[data-pve-view="home"] .resource :is(label, small) {
  color: var(--pve-secondary);
}

[data-pve-view="home"] .resource strong {
  position: relative;
  z-index: 1;
  color: var(--pve-emerald);
  overflow-wrap: anywhere;
}

[data-pve-view="home"] .resource .resource-icon {
  color: #6e8c77;
  opacity: .29;
}

[data-pve-view="home"] .family-hero,
[data-pve-view="public"] .family-hero{
  display: grid;
  grid-template-areas: 'copy art';
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  min-height: clamp(246px, 28vw, 320px);
  padding: clamp(16px, 2.2vw, 28px);
  border-color: #b8894880;
  background: #0c3d34;
}
:is([data-pve-view="home"], [data-pve-view="public"]) .family-hero {
  display: grid;
  grid-template-areas: 'copy art';
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  min-height: clamp(246px, 28vw, 320px);
  padding: clamp(16px, 2.2vw, 28px);
  border-color: #b8894880;
  background: #0c3d34;
}

[data-pve-view="home"] .family-hero::after,
[data-pve-view="public"] .family-hero::after{
  z-index: -1;
  background: radial-gradient(ellipse at 85% 30%, #4c705080, transparent 70%);
}
:is([data-pve-view="home"], [data-pve-view="public"]) .family-hero::after {
  z-index: -1;
  background: radial-gradient(ellipse at 85% 30%, #4c705080, transparent 70%);
}

[data-pve-view="home"] .family-hero .pve-hero-art,
[data-pve-view="public"] .family-hero .pve-hero-art{
  position: relative;
  grid-area: art;
  align-self: center;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border: 1px solid #dbbe8766;
  border-radius: 13px;
  overflow: hidden;
  mask-image: none;
  background: radial-gradient(ellipse, #a77a4f50, #082d26 80%);
  mix-blend-mode: normal;
  opacity: 1;
}
:is([data-pve-view="home"], [data-pve-view="public"]) .family-hero .pve-hero-art {
  position: relative;
  grid-area: art;
  align-self: center;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border: 1px solid #dbbe8766;
  border-radius: 13px;
  overflow: hidden;
  mask-image: none;
  background: radial-gradient(ellipse, #a77a4f50, #082d26 80%);
  mix-blend-mode: normal;
  opacity: 1;
}

[data-pve-view="home"] .family-hero .pve-hero-art .pve-scene-image,
[data-pve-view="public"] .family-hero .pve-hero-art .pve-scene-image{
  height: 100%;
  object-fit: contain;
}
:is([data-pve-view="home"], [data-pve-view="public"]) .family-hero .pve-hero-art .pve-scene-image {
  height: 100%;
  object-fit: contain;
}

[data-pve-view="home"] .family-hero .hero-copy,
[data-pve-view="public"] .family-hero .hero-copy{
  grid-area: copy;
  width: 100%;
  min-width: 0;
  justify-content: flex-end;
}
:is([data-pve-view="home"], [data-pve-view="public"]) .family-hero .hero-copy {
  grid-area: copy;
  width: 100%;
  min-width: 0;
  justify-content: flex-end;
}

[data-pve-view="home"] .family-hero h2,
[data-pve-view="public"] .family-hero h2{
  overflow-wrap: anywhere;
  font-size: clamp(25px, 3.9vw, 38px);
  line-height: 1.15;
}
:is([data-pve-view="home"], [data-pve-view="public"]) .family-hero h2 {
  overflow-wrap: anywhere;
  font-size: clamp(25px, 3.9vw, 38px);
  line-height: 1.15;
}

[data-pve-view="home"] .family-hero p,
[data-pve-view="public"] .family-hero p{
  color: #e2eee3;
  font-size: 12px;
}
:is([data-pve-view="home"], [data-pve-view="public"]) .family-hero p {
  color: #e2eee3;
  font-size: 12px;
}

[data-pve-view="home"] .family-hero .hero-flag,
[data-pve-view="public"] .family-hero .hero-flag{
  background: #142e25db;
  backdrop-filter: blur(5px);
}
:is([data-pve-view="home"], [data-pve-view="public"]) .family-hero .hero-flag {
  background: #142e25db;
  backdrop-filter: blur(5px);
}

.public-building .pve-public-building-art {
  flex: 0 0 clamp(52px, 8vw, 105px);
  aspect-ratio: 3 / 2;
  border-radius: 7px;
  background: #f1e8d5;
  overflow: hidden;
}

.pve-public-building-art .pve-scene-image { height: 100%; object-fit: contain; }
.public-building .pve-public-building-label { display: grid; gap: 4px; padding-inline-start: 8px; }

[data-pve-view="home"] .goal-card {
  border-color: var(--pve-sand);
  background: radial-gradient(ellipse at 100% 4%, #ebd8aa7d, transparent 54%),
    linear-gradient(150deg, #fffdf4, #f6eddb);
}

[data-pve-view="home"] .goal-card p {
  color: var(--pve-secondary);
  font-size: 12px;
}

[data-pve-view="home"] .building-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-color: var(--pve-sand);
  background: linear-gradient(168deg, #fffdf5, #f7f0df);
  box-shadow: 0 7px 22px #22443712;
}

[data-pve-view="home"] .building-card > .art-tile {
  isolation: isolate;
  overflow: hidden;
  border-bottom-color: #bc8d4e;
  box-shadow: 0 3px 8px #3c2c1d17;
}

[data-pve-view="home"] .building-card > .pve-building-art,
[data-pve-view="home"] .building-card > .pve-unit-art{
  height: auto;
  aspect-ratio: 3 / 2;
  background: radial-gradient(ellipse, #daa875, #a67e56);
}
[data-pve-view="home"] .building-card > :is(.pve-building-art, .pve-unit-art) {
  height: auto;
  aspect-ratio: 3 / 2;
  background: radial-gradient(ellipse, #daa875, #a67e56);
}

[data-pve-view="home"] .building-card > .art-tile .pve-scene-image {
  height: 100%;
  object-fit: contain;
}

[data-pve-view="home"] .building-card > .art-tile::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(0deg, #0b281f72, transparent 28%);
  pointer-events: none;
  content: "";
}

[data-pve-view="home"] .building-card .art-tile .level {
  z-index: 2;
  bottom: 11px;
  left: 12px;
  padding: 5px 8px;
  border-color: #c69c5c;
  border-radius: 7px;
  color: #fff0d0;
  background: #102d25ed;
  box-shadow: 0 2px 10px #08221cc0;
  font-size: 11px;
}

[data-pve-view="home"] .building-card.is-upgrading {
  border-color: #ca9c54;
  box-shadow: 0 6px 20px #a0743d28;
}

.building-card.is-upgrading > .pve-building-art::before {
  position: absolute;
  z-index: 1;
  inset: 57% 2% 7% 65%;
  border-block: 1px solid #ffdfa346;
  background: radial-gradient(circle at 65% 20%, #fff3b6, #e4aa567a 5%, transparent 31%),
    repeating-linear-gradient(125deg, #f6d4935c 0 1px, transparent 1px 8px);
  opacity: .42;
  pointer-events: none;
  content: '';
}

[data-pve-view="home"] .building-card .building-title .chip.gold {
  border-color: #e0bd7b;
  color: #684519;
  background: #fff0c8;
}

[data-pve-view="home"] .building-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 14px 15px 0;
}

[data-pve-view="home"] .building-body h3 {
  margin: 0;
  color: var(--pve-emerald);
  font-size: clamp(15px, 2vw, 19px);
  overflow-wrap: anywhere;
}

[data-pve-view="home"] .building-body p {
  color: var(--pve-secondary);
  font-size: 12px;
}

[data-pve-view="home"] .building-body .btn.full {
  min-height: 42px;
  margin-top: auto;
  padding: 8px 9px;
  font-size: 12px;
}

[data-pve-view="home"] .building-info {
  flex-wrap: wrap;
  border-color: var(--pve-sand);
  color: var(--pve-secondary);
  font-size: 11px;
}

#family-army { scroll-margin-top: 12px; }

#family-army > .notice { margin-bottom: 9px; }

#family-army .unit-card > .pve-unit-art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  max-height: 360px;
  background: radial-gradient(ellipse at 50% 42%, #ebdec0, #c7a778);
}

#family-army .unit-card > .pve-unit-art::after { content: none; }

#family-army .pve-unit-art .pve-scene-image {
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
}

.pve-army-appearance-note {
  margin: 0 0 11px;
  color: #4d695d;
  font-size: 12px;
}

.unit-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 5px 10px;
}

.pve-equipment-stage {
  max-width: 100%;
  padding: 3px 6px;
  border: 1px solid #c5d9ca;
  border-radius: 6px;
  background: #e9f2e7;
  color: #275443;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.pve-equipment-stage.is-preview {
  border-color: #dfc89b;
  background: #f7edd7;
  color: #70521f;
}

#family-army .unit-card .unit-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 9px 0 11px;
  border: 0;
}

#family-army .unit-stats > div {
  min-width: 0;
  padding: 7px 5px;
  border: 1px solid #dce6d8;
  border-radius: 7px;
  background: #f1f6ed;
  text-align: center;
}

#family-army .unit-stats strong {
  display: block;
  margin: 0 0 2px;
  color: var(--pve-emerald);
  font-size: clamp(13px, 2vw, 17px);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

#family-army .unit-stats span {
  color: var(--pve-secondary);
  font-size: 10px;
}

body[data-pve-view="family"] .result-notice:not([hidden]),
body[data-pve-view="home"] .result-notice:not([hidden]),
body[data-pve-view="map"] .result-notice:not([hidden]){
  border-bottom-color: #d4b77b;
  background: linear-gradient(100deg, #fbf3de, #fbf8e8 65%, #edf5e9);
}
body:is([data-pve-view="family"], [data-pve-view="home"], [data-pve-view="map"]) .result-notice:not([hidden]) {
  border-bottom-color: #d4b77b;
  background: linear-gradient(100deg, #fbf3de, #fbf8e8 65%, #edf5e9);
}

body[data-pve-view="family"] .result-notice-icon,
body[data-pve-view="home"] .result-notice-icon,
body[data-pve-view="map"] .result-notice-icon{
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #cfb370;
  border-radius: 9px;
  color: #fce0a5;
  background: #1a5142;
  font-size: 20px;
}
body:is([data-pve-view="family"], [data-pve-view="home"], [data-pve-view="map"]) .result-notice-icon {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #cfb370;
  border-radius: 9px;
  color: #fce0a5;
  background: #1a5142;
  font-size: 20px;
}

dialog.results-dialog {
  border-color: #c6aa74;
  background: #fffaf0;
  box-shadow: 0 28px 85px #082e2570;
}

dialog.results-dialog .completion-card {
  background: linear-gradient(145deg, #fdfbf2, #eef4e9);
}

dialog.results-dialog .pve-build-complete {
  position: relative;
  isolation: isolate;
}

dialog.results-dialog .pve-build-complete::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 4% 4%, #e7c47770, transparent 57%);
  opacity: .45;
  pointer-events: none;
  content: '';
}

.pve-stage-change {
  margin: 11px 0;
  padding: 10px;
  border: 1px solid #e1cfa7;
  border-radius: 10px;
  background: #faf4e7;
  color: #234b3e;
}

.pve-stage-change h4 { margin: 0 0 8px; font-size: 13px; }

.pve-stage-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pve-stage-compare figure {
  min-width: 0;
  margin: 0;
  border: 1px solid #dfd1b5;
  border-radius: 7px;
  background: #faf8ee;
  overflow: hidden;
}

.pve-stage-compare .pve-stage-after { border-color: #ba984f; background: #fff2d1; }

.pve-stage-compare .pve-scene-image {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #e8d7b5;
}

.pve-stage-compare figcaption { padding: 5px 6px; font-size: 11px; font-weight: 600; }
.pve-stage-change p { margin: 8px 0 0; font-size: 11px; }

dialog.results-dialog .completion-card.failure {
  background: linear-gradient(145deg, #fcf2e9, #f6e5df);
}

dialog.results-dialog .completion-card.unified-result {
  background: linear-gradient(143deg, #fff4d4, #f8e7ba);
}

dialog.results-dialog .completion-actions {
  background: #fffaf0;
}

dialog.war-results-dialog .war-result-hero {
  height: auto;
  border: 1px solid #c39756;
  background: #0c342a;
}

dialog.war-results-dialog .war-result-hero .pve-scene-image {
  position: relative;
  z-index: 0;
  inset: auto;
  width: 100%;
  height: auto;
  max-height: min(48vh, 390px);
  object-fit: contain;
  background: #213f31;
}

dialog.war-results-dialog .war-result-hero.defeat {
  border-color: #bb8064;
  background: #302923;
}

dialog.war-results-dialog .war-result-hero.defeat .pve-scene-image { background: #48372e; }

dialog.war-results-dialog .war-result-hero::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 66%;
  opacity: .34;
  pointer-events: none;
  background: radial-gradient(circle at 78% 26%, #ffe9a9 0 1px, transparent 3px),
    radial-gradient(circle at 68% 41%, #fff3ba 0 2px, transparent 5px),
    radial-gradient(circle at 88% 44%, #ffe9a9 0 1px, transparent 3px),
    radial-gradient(ellipse at 88% 17%, #ffe1a04f, transparent 53%);
  content: "";
}

dialog.war-results-dialog .war-result-hero.defeat::before {
  background: radial-gradient(circle at 22% 62%, #e6c7acaa 0 1px, transparent 4px),
    radial-gradient(circle at 45% 72%, #ccb39fbb 0 2px, transparent 6px),
    radial-gradient(circle at 68% 66%, #eed2ac99 0 1px, transparent 5px),
    linear-gradient(22deg, #dcc0a134, transparent 57%);
}

dialog.war-results-dialog .war-result-hero::after { content: none; }

dialog.war-results-dialog .war-hero-copy {
  position: relative;
  z-index: 2;
  inset: auto;
  padding: 12px clamp(12px, 4vw, 25px) 15px;
  border-top: 1px solid #d0ac6659;
  background: linear-gradient(110deg, #113a2e, #26513f);
}

dialog.war-results-dialog .war-result-hero.defeat .war-hero-copy {
  border-top-color: #c7917f70;
  background: linear-gradient(110deg, #31271f, #49372c);
}

dialog.war-results-dialog .war-hero-copy h2 {
  font-size: clamp(28px, 5vw, 39px);
  line-height: 1.17;
}

dialog.war-results-dialog .war-result-hero.unified {
  border-color: #d9ab58;
  background: #163d30;
}

dialog.war-results-dialog .unified .pve-scene-image { background: #223f33; }

dialog.war-results-dialog .war-unity-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(11px, 3vw, 22px);
  border-top-color: #edc17aa6;
  background: radial-gradient(ellipse at 8% 15%, #346445, transparent 60%), #10372c;
}

.war-unity-crest {
  display: grid;
  place-items: center;
  padding: 4px;
  border: 1px solid #f5d595;
  border-radius: 22%;
  background: linear-gradient(145deg, #f9e4a6, #9b6329 56%, #ebc574);
  box-shadow: 0 0 18px #f6d18530;
}

.war-unity-crest .family-emblem-unity {
  width: clamp(58px, 17vw, 88px);
  height: clamp(58px, 17vw, 88px);
  border-color: #ffdf95;
  border-radius: 17%;
}

.war-unity-crest .family-emblem-image {
  z-index: 0;
  object-fit: contain;
  background: #123f32;
}

.war-unity-copy > strong {
  display: inline-block;
  color: #ffda89;
  font-size: clamp(14px, 3.8vw, 19px);
  letter-spacing: .12em;
}

dialog.war-results-dialog .war-unity-copy h2 {
  margin: 4px 0;
  font-size: clamp(21px, 5.9vw, 38px);
  letter-spacing: 0;
}

.war-unity-copy > p { overflow-wrap: anywhere; }

dialog.war-results-dialog .war-unity-story {
  margin: 12px 0;
  color: #284a3c;
  font-size: clamp(14px, 2.75vw, 16px);
  line-height: 1.65;
}

.war-unity-story strong {
  display: block;
  margin-top: .35em;
  color: #69470d;
}

dialog.war-results-dialog .battle-result-numbers > div {
  border: 1px solid #d8e3ce;
  background: #fffaf0;
}

dialog.war-results-dialog .battle-result-numbers span,
dialog.war-results-dialog .battle-result-breakdown {
  color: #4f6456;
  font-size: 11px;
}

.province-road-summary {
  margin-block: 14px;
}

.province-road-summary p {
  margin: 7px 0 4px;
}

.province-road-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.province-road-links .text-btn {
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid #d8e3ce;
  border-radius: 7px;
  background: #eff5ea;
}

[data-pve-view="honor"] .honor-archive-card {
  border-color: var(--pve-sand);
  background: linear-gradient(160deg, #fffaf0, #f3e6cb);
}

@media (prefers-reduced-motion: no-preference) {
  .building-card.is-upgrading > .pve-building-art::before {
    animation: pve-construction-glow 2.8s ease-in-out infinite;
  }

  dialog.results-dialog[open] .pve-build-complete::before {
    animation: pve-construction-complete 900ms ease-out both;
  }

  dialog.results-dialog[open] .pve-stage-after {
    animation: pve-stage-reveal 540ms ease-out both;
  }

  dialog.war-results-dialog[open] .war-unity-crest {
    animation: pve-unity-reveal 780ms ease-out both;
  }

  dialog.war-results-dialog[open] .war-result-hero .pve-scene-image {
    animation: pve-reveal-result 620ms ease-out both;
  }

  dialog.war-results-dialog[open] .war-result-hero::before {
    animation: pve-result-atmosphere 1.5s ease-out both;
  }

  dialog.war-results-dialog[open] .war-result-hero.defeat::before {
    animation-duration: 2.6s;
  }
}

@keyframes pve-construction-glow {
  0%, 100% { opacity: .40; }
  52% { opacity: .70; }
}

@keyframes pve-construction-complete {
  from { opacity: .92; }
  to { opacity: .34; }
}

@keyframes pve-stage-reveal {
  from { opacity: .74; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pve-reveal-result {
  from { opacity: .62; }
  to { opacity: 1; }
}

@keyframes pve-result-atmosphere {
  0% { opacity: 0; transform: translateY(5px); }
  45% { opacity: .85; }
  100% { opacity: .32; transform: translateY(0); }
}

@media (max-width: 760px) {
  [data-pve-view="home"] .family-hero,
[data-pve-view="public"] .family-hero{
    grid-template-areas: 'art' 'copy';
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }
:is([data-pve-view="home"], [data-pve-view="public"]) .family-hero {
    grid-template-areas: 'art' 'copy';
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  [data-pve-view="home"] .family-hero .hero-copy,
[data-pve-view="public"] .family-hero .hero-copy{
    padding: 0 3px 4px;
  }
:is([data-pve-view="home"], [data-pve-view="public"]) .family-hero .hero-copy {
    padding: 0 3px 4px;
  }

  [data-pve-view="home"] .grid-3:has(> .building-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 490px) {
  [data-pve-view="home"] .grid-3:has(> .building-card) {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-pve-view="home"] .building-body p {
    min-height: 0;
  }

  #family-army .unit-card {
    display: grid;
    grid-template-columns: minmax(90px, 40%) minmax(0, 1fr);
    padding-bottom: 0;
  }

  #family-army .unit-card > .pve-unit-art {
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 5px;
    aspect-ratio: auto;
    max-height: none;
    padding: 6px;
    border-bottom: 0;
    border-inline-end: 1px solid #cfb68e;
    box-shadow: none;
  }

  #family-army .pve-unit-art .pve-scene-image {
    max-height: 200px;
  }

  #family-army .pve-unit-art .level {
    position: static;
    max-width: 100%;
    padding: 3px 5px;
    border-radius: 5px;
    font-size: 10px;
    text-align: center;
    white-space: normal;
  }

  #family-army .unit-card .building-body {
    padding: 10px;
  }

  #family-army .unit-card .unit-stats > div { padding-inline: 3px; }
  #family-army .unit-stats span { text-wrap: balance; }
}


@keyframes pve-unity-reveal {
  from { opacity: .72; transform: translateY(4px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
