/* Aukuro – village banners (assets/js/banner.js): village cards, the village view and the profile backdrop. */
.ab-canvas, .ab-img { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }

/* village card: the composited banner replaces the plain CSS banner + shield */
.vbanner.ab-on { background: none; clip-path: none; box-shadow: none; padding: 0; height: auto; min-height: 112px; cursor: pointer; }
.vbanner.ab-on .ab-canvas, .vbanner.ab-on .ab-img { filter: drop-shadow(2px 3px 0 rgba(0,0,0,.4)); }
.vbanner.ab-on .ab-img { width: 60px; height: 120px; }
.vbanner.ab-on:focus-visible { outline: 2px solid #fff; outline-offset: 8px; }

/* village view: big banner on its pole, waving */
dialog.vview { --vc: #8a7bd8; width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 32px); padding: 26px 28px; color: var(--text);
  border: 2px solid #000; overflow: auto;
  background: radial-gradient(110% 70% at 18% 0%, color-mix(in srgb, var(--vc) 22%, transparent), transparent 64%), #12101c;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--vc) 60%, #000), 0 20px 60px rgba(0,0,0,.6), 0 0 46px color-mix(in srgb, var(--vc) 26%, transparent); }
dialog.vview[open] { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; animation: modal-in .28s cubic-bezier(.2,.9,.3,1.1); }
dialog.vview::backdrop { background: rgba(4, 4, 10, .72); backdrop-filter: blur(3px); }
.vview .close { position: absolute; top: 10px; right: 10px; padding: 6px 12px; }
.vview-flag { display: grid; place-items: end center; min-width: 144px; padding-bottom: 6px;
  background: radial-gradient(closest-side ellipse at 50% 100%, rgba(0,0,0,.45), transparent) bottom / 120px 14px no-repeat; }
.vview-flag.has-biome { padding: 18px 14px 6px; border: 2px solid #000; image-rendering: pixelated;
  background-image: var(--biome), linear-gradient(180deg, color-mix(in srgb, var(--vc) 38%, #0c0b16) 0%,
    color-mix(in srgb, var(--vc) 55%, #fff 18%) 100%);
  background-repeat: repeat-x, no-repeat; background-position: left bottom, 0 0; background-size: 480px 96px, 100% 100%; }
.vview-flag .ab-canvas { filter: drop-shadow(5px 8px 5px rgba(0,0,0,.45)); }
.vview-flag .ab-img { width: 120px; height: 240px; }
.vview h2.vname { font: 600 28px/1.15 var(--font-head); color: #fff; text-shadow: 2px 2px 0 var(--mc-shadow); margin: 0 0 4px; padding-right: 40px; overflow-wrap: anywhere; }
.vview dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0 0; }
.vview dt { color: var(--muted); }
.vview dd { margin: 0; font: 600 18px var(--font-head); color: #fff; text-shadow: 2px 2px 0 var(--mc-shadow); }
.vview dd.vcol { color: color-mix(in srgb, var(--vc) 55%, #fff); }
.vview .torn-note { margin: 12px 0 0; color: #e0a39c; }
@media (max-width: 520px) {
  dialog.vview { padding: 22px 16px 20px; }
  dialog.vview[open] { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .vview h2.vname { padding: 0 32px; }
  .vview dl { text-align: left; width: max-content; max-width: 100%; margin: 12px auto 0; }
}

/* profile: the player's village banner as a large, faint, blurred backdrop behind the 3D skin */
.pf-side.has-banner { isolation: isolate; }
.pf-banner-bg { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(340px, 100%); transform: translate(-50%, -58%);
  pointer-events: none; opacity: .18; filter: blur(3px) saturate(1.15);
  -webkit-mask-image: radial-gradient(closest-side ellipse at 50% 46%, #000 46%, transparent 100%);
  mask-image: radial-gradient(closest-side ellipse at 50% 46%, #000 46%, transparent 100%); animation: ab-in .9s ease-out both .15s; }
.pf-banner-bg .ab-canvas, .pf-banner-bg .ab-img { width: 100%; height: auto; }
@keyframes ab-in { from { opacity: 0; } }
@media (max-width: 760px) {
  .pf-side.has-banner { position: relative; }
  .pf-banner-bg { top: -8px; width: min(230px, 80%); transform: translateX(-50%); opacity: .15; filter: blur(2.5px) saturate(1.15); }
}
@media (prefers-reduced-motion: reduce) { .pf-banner-bg { animation: none; } }

/* Kryžiuočių žygis (raids) on the village card and the village view */
.vraid { font-size: 14px; color: #d9c7c0; margin: 4px 0 2px; user-select: none; }
.vraid-ico { color: #e05050; margin-right: 6px; }
.vraid-live { color: #ff6b5a; }
.vraid-box { margin: 12px 0 0; }
.vraid-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; }
.vraid-list li { padding: 3px 0 3px 10px; border-left: 3px solid #5a5a7a; margin: 3px 0; color: #ddd; }
.vraid-list li.win { border-color: #6fcf6f; }
.vraid-list li.loss { border-color: #e05050; }

/* Žynio apeigos (site.js riteBlock / riteJournal) */
.vrites { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 2px; }
.rite-chip { font-size: 13px; color: #d8d4ee; background: rgba(140, 110, 220, .14); border: 1px solid rgba(160, 130, 240, .35); border-radius: 10px; padding: 1px 8px; }
.rite-chip .rite-txt { color: #b8b4cc; }
.rite-ico { margin-right: 4px; }
.vrites-box { margin: 12px 0 0; }
.vrites-h { font-size: 15px; margin: 0 0 6px; color: #e8dcff; }
.vrites-sub { font-size: 13px; color: #9a96b0; margin: 8px 0 0; }
.vrites-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; color: #ddd; }
.vrites-list li { padding: 2px 0; }
.rite-on { color: #9fe8ff; }
.rite-ready { color: #8fe388; }
.rite-led { display: flex; flex-wrap: wrap; gap: 6px; }
