/* Shadowfall site - W13 (creator 2026-10-12: "detalii pe toate elementele, să pară cât mai reale și HD").
   Metal gold with relief (img/orn/*.svg use an SVG lighting filter; inline icons use #g-gold + #f-metal from the
   sprite in base.html), faceted rubies, real wax seals, woven banners. Loaded last, medieval / stone themes. */

/* filigree corners a little larger: the relief needs room */
:root { --orn-corners: url("../img/orn/corner-tl.svg") 0 0 / 48px no-repeat, url("../img/orn/corner-tr.svg") 100% 0 / 48px no-repeat,
                       url("../img/orn/corner-bl.svg") 0 100% / 48px no-repeat, url("../img/orn/corner-br.svg") 100% 100% / 48px no-repeat; }
.theme-medieval :is(.feature, .class-card, .panel, .chapter.open, .kingdom-card, .dl-card, .package, .table-wrap)::after { inset: 1px; opacity: 1; }
.theme-medieval :is(.feature, .class-card, .chapter.open, .package, .kingdom-card):hover::after { inset: -2px; filter: brightness(1.15) drop-shadow(0 0 6px #e9c66f55); }
.theme-medieval .feature { padding: 38px 38px 40px; }
.theme-medieval .chapter { padding: 34px 32px 36px; }
.theme-medieval .panel { padding: 34px 36px 36px; }
.theme-medieval .hero::after {
  background: url("../img/orn/corner-tl.svg") 0 0 / 120px no-repeat, url("../img/orn/corner-tr.svg") 100% 0 / 120px no-repeat,
              url("../img/orn/corner-bl.svg") 0 100% / 120px no-repeat, url("../img/orn/corner-br.svg") 100% 100% / 120px no-repeat;
  opacity: .95;
}
.theme-medieval :is(.section > h2, .section-head h2, .band-in h2, .page-hero h1, .panel > h2, .sheet h1, section.prose.narrow h1, .cta-final h2)::after {
  width: 240px; height: 20px;
}
.theme-medieval .page-hero .wrap::after { opacity: .22; width: 230px; height: 238px; margin-top: -119px; }
.theme-medieval .divider::before { height: 80px; width: min(640px, 92vw); filter: none; }
.footer-crest img { width: 96px; height: 99px; }

/* the kicker's marks: real rubies */
.theme-medieval .kicker::before, .theme-medieval .kicker::after {
  width: 14px; height: 14px; border: 0; transform: none; vertical-align: -.15em;
  background: url("../img/orn/gem.svg") center / contain no-repeat;
}

/* inline icons: embossed gold */
.theme-medieval :is(.ico, .class-ico:not(.ghost), .class-chips svg, .big-ico) {
  stroke: url(#g-gold); filter: url(#f-metal); stroke-width: 2.4;
}
.theme-medieval .package-ico { stroke: url(#g-gold); fill: #a3171e; filter: url(#f-metal); animation: none; }
.theme-medieval .class-ico.ghost { stroke: #c9a14a; }
.theme-medieval .kingdom-card .banner svg { stroke: url(#g-gold); filter: url(#f-metal); stroke-width: 2.6; }

/* wax seals: the drawn seal (irregular rim, embossed cross) */
.theme-medieval .step span {
  width: 64px; height: 64px; margin: -60px auto 12px; border-radius: 0; box-shadow: none;
  background: url("../img/orn/seal-plain.svg") center / contain no-repeat; color: #fbe3b0; font-size: 1.5rem;
  text-shadow: 0 1px 0 #3a0306, 0 0 6px #000;
}
.theme-medieval .chapter.sealed .seal {
  width: 52px; height: 52px; border-radius: 0; box-shadow: none;
  background: url("../img/orn/seal.svg") center / contain no-repeat;
}
.theme-medieval .checkbox input:checked + .box {
  background: url("../img/orn/seal.svg") center / 120% no-repeat; box-shadow: none; border-radius: 50%;
}
.theme-medieval .checkbox input:checked + .box::after { content: ""; }

/* banners: woven cloth, folds, a gold-embroidered edge, a gold pole */
.kingdom-card .banner {
  background:
    repeating-linear-gradient(0deg, #ffffff07 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, #00000014 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #00000070 0%, #ffffff1a 18%, #00000040 34%, #ffffff12 52%, #00000048 70%, #ffffff14 86%, #00000070 100%),
    linear-gradient(180deg, #00000040, transparent 18%, transparent 80%, #00000055),
    var(--k);
  filter: drop-shadow(0 8px 10px #000c);
}
.kingdom-card .banner::before { border-color: #e9c66fcc; border-width: 3px; inset: 0 9px 16px; }
.kingdom-card { overflow: visible; }
.kingdom-card .banner-pole {
  display: block; width: 140px; height: 12px; margin: -18px auto -6px; position: relative; z-index: 2; border-radius: 6px;
  background: linear-gradient(180deg, #fff1c0, #c08f3a 50%, #6b4a17); box-shadow: 0 3px 6px #000c;
}
.theme-medieval .kingdom-banner {
  background:
    repeating-linear-gradient(0deg, #ffffff07 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #00000060, #ffffff18 30%, #00000040 60%, #ffffff10 80%, #00000060),
    var(--k);
}

/* the hero numbers: a gold rim, gold figures */
.theme-piatra .hero-stats { box-shadow: inset 0 1px 0 #ffffff26, inset 0 -3px 6px #000, 0 0 0 1px #000, 0 0 0 3px #b98a35, 0 0 0 4px #000, 0 12px 30px #000d; }
.theme-medieval .hero-stats dd {
  background: linear-gradient(180deg, #fff3c4, #e9c66f 45%, #b98a35 55%, #f2d68a); -webkit-background-clip: text; background-clip: text;
  color: transparent; text-shadow: none; filter: drop-shadow(0 2px 1px #000);
}
.theme-medieval .hero-stats::before, .theme-medieval .hero-stats::after { width: 84px; height: 60px; margin-top: -30px; }
.theme-medieval .hero-stats::before { left: -92px; }
.theme-medieval .hero-stats::after { right: -92px; }

/* headings: engraved light gold */
.theme-medieval :is(.section > h2, .page-hero h1) {
  background: linear-gradient(180deg, #fff7e2 0%, #f1e2bf 55%, #c9a96a 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; filter: drop-shadow(0 2px 2px #000);
}
.theme-medieval .versus {
  background: linear-gradient(180deg, #fff3c4, #c9a14a 55%, #7a5418); -webkit-background-clip: text; background-clip: text;
  color: transparent; text-shadow: none; filter: drop-shadow(0 2px 2px #000);
}

/* rubies in prices and the account pill */
.theme-medieval .ruby-pill { border-color: #c9a14a88; background: linear-gradient(180deg, #4a0b10, #250508); box-shadow: inset 0 1px 0 #ff8a9233, 0 2px 6px #000a; }
.theme-medieval :is(.ruby-pill, .shop-price, .item-price, .ruby-balance) svg, .theme-medieval svg.ruby-ico {
  stroke: url(#g-gold); fill: #c21a24; filter: url(#f-metal);
}

@media (max-width: 620px) {
  .theme-medieval .hero::after { background-size: 64px, 64px, 64px, 64px; }
  .theme-medieval .feature, .theme-medieval .panel, .theme-medieval .chapter { padding: 34px 28px 34px; }
}

/* the right laurel is its own mirrored drawing (a CSS flip would turn the relief's light around) */
.theme-medieval .hero-stats::after { transform: none; background-image: url("../img/orn/laurel-r.svg"); }
