/* Gold edition: full-surface metallic sheen plus printed crown holograms.
   Procedural optics only; original artwork, asset alpha and rarity foil stay intact. */
.card[data-finish="gold"] {
  --gold-light-x:50%;
  --gold-light-y:50%;
  --gold-phase:0deg;
  --gold-focus-x:8.335cqw;
  --gold-focus-y:8.1cqw;
  --gold-level:.28;
  --gold-sheen-x:50%;
  --gold-sheen-y:50%;
  --gold-sheen-level:.65;
}
.atelier-finish-layer {
  position:absolute;
  inset:0;
  pointer-events:none;
  mask-mode:alpha;
  mask-repeat:no-repeat;
  -webkit-mask-repeat:no-repeat;
  mix-blend-mode:normal;
  opacity:var(--finish-source-opacity,1);
}
.atelier-gold-sheen {
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:calc(var(--finish-gold-strength,1) * var(--gold-sheen-level,.65));
  /* A continuous low gold body tone and wide moving metallic highlight. */
  background-image:linear-gradient(114deg,
    #ad741b24 0%,#e6af363b 18%,#ffd96d66 33%,#fff0b88a 43%,
    #e5ac3229 52%,#b276191f 64%,#f9d16959 78%,#fff0b878 89%,#d39a2c33 100%);
  background-size:200% 180%;
  background-position:var(--gold-sheen-x) var(--gold-sheen-y);
}
.atelier-crown-sheet {
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:calc(var(--finish-crown-strength,1) * var(--gold-level,.28));
  mask-image:radial-gradient(ellipse 31% 28% at var(--gold-light-x) var(--gold-light-y),
    #000 0%,#000d 30%,#0006 60%,#0002 84%,transparent 100%);
}
.atelier-crown-field {
  position:absolute;
  inset:0;
  pointer-events:none;
  mask-image:radial-gradient(ellipse 23% 18% at 50% 29%,#0006,#000b 62%,#000 100%);
}
.atelier-crown-plane {
  position:absolute;
  display:block;
  inset:-6.6cqw -8.335cqw;
  pointer-events:none;
  --crown-offset:18deg;
  background-color:#dfac3c35;
  background-image:conic-gradient(from calc(var(--crown-offset) + var(--gold-phase)) at var(--gold-focus-x) var(--gold-focus-y),
    #d3992740 0deg 20deg,#67ded3b0 52deg,#b293f6cc 77deg,#ffe396ee 99deg,
    #ffefc1cb 117deg,#d496253d 145deg 215deg,#d1a53b90 242deg,
    #a9e5d0b0 267deg,#fff0bfe6 289deg,#ffc64bb0 307deg,#d3992740 330deg 360deg);
  background-size:16.67cqw 32.4cqw;
  /* Each crown leans 30 degrees counterclockwise within its tile; the print grid and gold sheen stay fixed. */
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 167 324'%3E%3Cpath transform='rotate(-30 83.5 71)' fill='white' fill-opacity='.55' stroke='white' stroke-width='5' stroke-linejoin='round' d='M12 40 L44 65 L83.5 23 L123 65 L155 40 L137 119 L30 119 Z'/%3E%3C/svg%3E");
  mask-size:16.67cqw 32.4cqw;
}
.atelier-crown-odd {
  --crown-offset:55deg;
  background-position:8.335cqw 16.2cqw;
  mask-position:8.335cqw 16.2cqw;
}
.atelier-finish-art {
  --finish-gold-strength:.7;
  --finish-crown-strength:1;
  clip-path:inset(2.5% 3.5% 2.6% round 10% / 6.67%);
}
.atelier-finish-frame { --finish-gold-strength:1.55; --finish-crown-strength:1.1; }
.atelier-finish-gem { --finish-gold-strength:1; --finish-crown-strength:.85; }
.atelier-finish-class,.atelier-finish-might,.atelier-finish-cost { --finish-gold-strength:1.3; --finish-crown-strength:1; }
.atelier-finish-nameplate { --finish-gold-strength:.8; --finish-crown-strength:.4; }

/* Art gold blends against its existing luminance instead of painting a pale veil.
   Metalwork keeps its stronger warm specular treatment. */
.atelier-finish-art.atelier-gold-coat { mix-blend-mode:soft-light; }
.atelier-finish-art .atelier-gold-sheen {
  opacity:calc(.7 * var(--gold-sheen-level,.65));
  background-image:linear-gradient(114deg,
    #905018b0 0%,#e9b83edd 25%,#fff1b7f0 43%,#ce8b1699 55%,
    #94590d99 65%,#f5ce67ee 80%,#fff1b7ee 90%,#c69338aa 100%);
}
