.pass-face {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  width: 100%;
  min-height: max(230px, 64cqi);
  gap: 16px;
  padding: 6.2% 7%;
  color: #f9f1d9;
  background:
    repeating-radial-gradient(ellipse at -30% 135%, transparent 0 4px, #c2d4ff22 4.3px 4.8px, transparent 5.1px 8px),
    radial-gradient(ellipse at 78% 50%, #284fb0 0, #163c91 26%, transparent 65%),
    linear-gradient(115deg, #172d6c, #0a1c59 48%, #172f80);
  box-shadow: inset 0 1px #bddaff68;
}
.pass-face::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid #d3ddff52;
  border-radius: 9px 9px 1px 1px;
  pointer-events: none;
}
.pass-imprint {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #f1edd8;
  font: 500 clamp(9px, 2.1cqi, 11px)/1.4 var(--mono);
  letter-spacing: .095em;
  text-transform: uppercase;
}
.pass-imprint span:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #dcc899;
}
.pass-imprint span:last-child::before { content: ''; width: 16px; height: 1px; background: currentColor; }
.pass-face h2 {
  position: relative;
  width: fit-content;
  margin: 0;
  font: 500 clamp(48px, 14.5cqi, 84px)/.88 Geist, sans-serif;
  letter-spacing: -.085em;
}
.pass-face h2 em {
  display: block;
  margin: .12em 0 0 .04em;
  color: #ece2b9;
  font: italic 400 .61em/1 Georgia, 'Times New Roman', serif;
  letter-spacing: -.055em;
}
.holder-plate {
  z-index: 1; position: relative; width: 100%; padding-top: 11px;
  border-top: 1px solid #c1cded5c;
}
.holder-label {
  display: block; margin-bottom: 4px; font: 10px/1.2 var(--mono);
  text-transform: uppercase; letter-spacing: .14em; color: #d2defd;
}
.holder-plate b {
  display: block; width: fit-content; max-width: 100%; color: #dce5f7;
  font: 550 clamp(17px, 4.7cqi, 27px)/1.20 var(--mono); letter-spacing: .065em;
  text-transform: uppercase; overflow-wrap: anywhere;
  text-shadow: 0 -1px 0 #fff, 0 1px 0 #6175a7, 0 2px 0 #0a1743, 1px 3px 2px #020a24;
}
.holder-plate b.long-name { font-size: clamp(14px, 3.6cqi, 21px); }
.pass-crest {
  position: absolute;
  width: 54%;
  aspect-ratio: 1;
  right: 0;
  top: 35%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.pass-crest::before, .pass-crest::after {
  content: '';
  position: absolute;
  inset: 0;
  mask: url('/art/pass-guilloche.svg') center / contain no-repeat;
}
.pass-crest::before {
  background: conic-gradient(from -38deg, #e7bf78, #fff8da 12%, #cadeff 23%, #7c9cdb 32%, #ffdca0 45%, #d38a60 54%, #f6e3ac 64%, #b8d6ff 75%, #6f90d4 89%, #e7bf78);
}
.pass-crest img {
  width: 34%;
  height: auto;
  filter: sepia(.29) drop-shadow(0 3px 3px #051039);
}
/* Light sweeps the engraved lines on arrival, then follows the club spotlight. */
@media (prefers-reduced-motion: no-preference) {
  .pass-crest::after {
    background: linear-gradient(108deg, transparent 34%, #c7ddff80 43%, #ffffef 50%, #f2cfa794 56%, transparent 66%) no-repeat;
    background-size: 170% 100%;
    background-position: calc(var(--px, 70cqi) - 92cqi) center;
    opacity: var(--presence, 0);
    animation: pass-foil 1.4s cubic-bezier(.3,.06,.3,1) backwards;
  }
  @keyframes pass-foil {
    0% { background-position: 260% center; opacity: 0; }
    24%, 72% { opacity: 1; }
    100% { background-position: -160% center; opacity: 0; }
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .pass-face::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 40% 100% at var(--px, 75%) var(--py, 30%), #fbecd766, transparent);
    mix-blend-mode: soft-light;
    opacity: var(--presence, 0);
  }
}
.pass-face {
  container-type: inline-size;
  display: grid;
  grid-template-areas: 'imprint' 'title' 'crest' 'holder';
  grid-template-rows: auto auto 1fr auto;
  justify-content: stretch;
  min-height: 121cqi;
  padding: 24px 7% 22px;
  gap: 12px;
}
.pass-imprint {
  grid-area: imprint;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
}
.pass-face h2 { grid-area: title; }
.pass-crest {
  grid-area: crest; position: relative; inset: auto;
  align-self: center; justify-self: center; transform: none;
}
.holder-plate { grid-area: holder; }
[data-model="margem"] .pass-face {
  grid-template-areas: 'imprint' 'crest' 'title' 'holder';
  grid-template-rows: auto minmax(110px,1fr) auto auto;
  padding-left: 21%; gap: 15px;
  background:
    linear-gradient(90deg, #9babc3, #e7edf7 5%, #b1bed3 13.5%, #12204e 13.7%, transparent 14%),
    repeating-linear-gradient(119deg, transparent 0 4px, #b6cfff12 4.3px 4.8px, transparent 5px 8px),
    linear-gradient(145deg,#1a3e9b,#0b205f 58%,#071438);
}
[data-model="margem"] .pass-face::before {
  inset: 0 auto 0 3%; width: 1px; border: 0; border-radius: 0;
  background: repeating-linear-gradient(0deg,#66789b 0 2px,transparent 2px 6px);
}
[data-model="margem"] .pass-imprint { display: contents; }
[data-model="margem"] .pass-imprint span:first-child {
  position: absolute; top: 7%; left: 5.7%; writing-mode: vertical-rl; transform: rotate(180deg);
  color: #182a4c; letter-spacing: .17em;
}
[data-model="margem"] .pass-imprint span:last-child { grid-area: imprint; color: #cfdef8; }
[data-model="margem"] .pass-crest {
  position: absolute; grid-area: auto; top: -7%; right: -17%; width: 88%;
  transform: rotate(-13deg);
}
[data-model="margem"] .pass-crest::before {
  background: conic-gradient(from 40deg,#e3e9ff,#77a5ff,#edf6ff,#8296bc,#fff,#839ee3,#e3e9ff);
}
[data-model="margem"] .pass-crest img { width: 39%; filter: drop-shadow(0 3px 4px #040d24); }
[data-model="margem"] .pass-face h2 { font-weight: 640; letter-spacing: -.085em; font-size: clamp(44px, 21cqi, 68px); }
[data-model="margem"] .pass-face h2 em { font-size: .56em; color: #cfdcff; }
[data-model="margem"] .holder-plate { border-top: 3px double #aec2f4a6; }
@media (max-width: 730px) {
  .pass-face {
    grid-area: face; border-radius: 14px; justify-self: center; width: min(100%, 282px); min-height: min(121cqi,342px);
    padding: 18px min(7%,20px);
  }
  [data-model="margem"] .pass-face { padding-left: min(21%,59px); grid-template-rows: auto minmax(84px,1fr) auto auto; }
  [data-model="margem"] .pass-crest { width: 80%; right: -15%; }
}
