/* Alien ID card, the home name form, the price list and the full-screen wizard.
   The wizard turns the screen into a black table: the ID lies on it at the left,
   a black metal question card floats above it at the right. */
:root {
  --scan: #d4e64a;
  --glow: 212, 230, 74;
  --m-bg: linear-gradient(150deg, #1b1d22 0%, #0d0e11 46%, #15171b 100%);
  --m-fg: #e9e7e1;
  --m-soft: #9a98a2;
  --m-line: rgba(255, 255, 255, .08);
}

/* Home */
.hero-card { min-width: 0; }
.home-form { display: flex; flex-direction: column; gap: 10px; max-width: 28rem; padding-top: 6px; }
.home-form input {
  width: 100%; padding: 13px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 2px;
  color: var(--text); font: 1rem var(--f-data);
}
.home-form input:focus-visible { outline: 2px solid var(--eye); outline-offset: 2px; }
.home-form .hint { min-height: 1.3em; color: var(--eye); }
.price-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-width: 46rem; }
.price-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding-block: 18px; border-top: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 1px solid var(--line); }
.price-list b { font-weight: 500; }
.price-list p { grid-column: 1; margin: 0; color: var(--soft); font-weight: 300; }
.price-list .pr { grid-row: 1; grid-column: 2; font: 1rem var(--f-data); color: var(--text); white-space: nowrap; }
.price-cta { padding-top: 28px; }

/* Alien ID card */
.ac-stage { container-type: inline-size; position: relative; width: 100%; max-width: 480px; margin-inline: auto; }
.ac-card {
  position: relative; width: 100%; aspect-ratio: 85.6 / 53.98; border-radius: 3.7cqw;
  font-size: calc(100cqw / 46); padding: 1.4em 1.6em 1.1em 2em;
  display: grid; grid-template-rows: auto 1fr auto; gap: .8em; overflow: hidden; color: var(--text);
  background: radial-gradient(120% 95% at 88% 0%, #1d1c27 0%, #0d0d12 55%, #060608 100%);
  border: 1px solid rgba(235, 231, 222, .09);
  box-shadow: 0 40px 70px -28px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(230, 178, 62, .18);
}
.ac-card > * { position: relative; min-width: 0; }
.ac-top { display: flex; align-items: center; gap: .8em; }
.ac-top svg { width: 2.6em; height: 2.6em; flex: none; }
.ac-agency { display: flex; flex-direction: column; gap: .25em; min-width: 0; }
.ac-agency b { font: 400 .76em var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.ac-agency span { font: .64em var(--f-data); color: var(--muted); }
.ac-kind { margin-left: auto; flex: none; font: .64em var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--eye); border: 1px solid currentColor; border-radius: .3em; padding: .35em .6em; }
.ac-body { display: grid; grid-template-columns: 8.6em minmax(0, 1fr); gap: 1.2em; align-items: start; }
.ac-photo { position: relative; aspect-ratio: 3 / 4; border-radius: .5em; overflow: hidden; background: #14141b; border: 1px solid rgba(235, 231, 222, .12); }
.ac-photo svg, .ac-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-photo img { filter: blur(9px) saturate(.5) brightness(.85); transform: scale(1.15); transition: filter 1.8s ease, transform 1.8s ease; }
.ac-photo.verified img { filter: none; transform: none; }
.ac-scan { position: absolute; inset: 0; pointer-events: none; }
.ac-scan i {
  position: absolute; left: -10%; right: -10%; top: 0; height: 2px; background: var(--scan);
  box-shadow: 0 0 10px 2px rgba(var(--glow), .7), 0 0 30px 6px rgba(var(--glow), .25);
  animation: ac-beam 2.2s ease-in-out infinite alternate;
}
.ac-scan span { position: absolute; left: 0; right: 0; bottom: .7em; text-align: center; font: .7em var(--f-data); letter-spacing: .3em; text-transform: uppercase; color: var(--scan); animation: ac-pulse 1.1s steps(2) infinite; }
@keyframes ac-beam { from { top: 2%; } to { top: 97%; } }
@keyframes ac-pulse { 50% { opacity: .25; } }
.ac-blink { transform-box: fill-box; transform-origin: center; animation: ac-eyeblink 5s infinite; }
@keyframes ac-eyeblink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
.ac-fields { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5em 1em; align-content: start; }
.ac-fields dt { font: .5em var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ac-fields dd { margin: .15em 0 0; font: .84em/1.25 var(--f-data); color: #5b5866; letter-spacing: .06em; overflow-wrap: anywhere; transition: color .4s; }
.ac-fields dd.on { color: var(--text); letter-spacing: 0; }
.ac-fields dd.dec { color: var(--scan); }
.ac-fields [data-f="name"] dd.on, .ac-fields [data-f="alien"] dd.on { font-family: var(--f-display); font-size: .92em; letter-spacing: .05em; text-transform: uppercase; }
.ac-fields [data-f="alien"] dd.on { color: var(--scan); }
.ac-foot { display: flex; align-items: baseline; gap: .8em; border-top: 1px dashed rgba(235, 231, 222, .14); padding-top: .55em; font: .74em var(--f-data); color: rgba(235, 231, 222, .7); }
.ac-foot b { font-weight: 400; color: #5b5866; }
.ac-foot b.on { color: var(--text); }
.ac-nov { margin-left: auto; font-size: .78em; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ac-verdict {
  position: absolute !important; right: 1.4em; top: 38%; transform: rotate(-9deg) scale(1.6); opacity: 0;
  font: 1em var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--scan);
  border: .16em solid var(--scan); padding: .35em .7em; transition: opacity .35s ease, transform .35s cubic-bezier(.2, .9, .1, 1);
}
.ac-card.done .ac-verdict { opacity: .92; transform: rotate(-9deg) scale(1); }
.ac-meta { margin: 10px 0 0; text-align: center; font: .72rem var(--f-data); color: var(--muted); }
.file-card { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.file-card .cta-row { justify-content: center; }

/* Wizard: the table */
.wiz { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: #030304; color: var(--m-fg); display: flex; flex-direction: column; animation: wiz-in .5s ease both; }
@keyframes wiz-in { from { opacity: 0; } }
html.wiz-on, html.wiz-on body { overflow: hidden; }
.wiz::before {
  content: ""; position: fixed; left: -50%; right: -50%; bottom: -12%; height: 72%; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 64px 64px;
  transform: perspective(600px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, transparent 85%);
}
.wiz::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(70% 55% at 50% 64%, rgba(255, 255, 255, .035), transparent 70%); }
.wiz-top {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: 16px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  border-bottom: 1px solid var(--m-line);
}
.wiz-brand { font: .62rem var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.wiz-prog { flex: 1; min-width: 160px; display: flex; align-items: center; gap: 12px; }
.wiz-prog span { font: .7rem var(--f-data); color: var(--soft); white-space: nowrap; }
.wiz-progbar { flex: 1; height: 3px; background: var(--m-line); position: relative; overflow: hidden; }
.wiz-progbar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--scan); transition: width .6s ease; }
.wiz-close { background: none; border: 1px solid var(--m-line); border-radius: 3px; padding: 8px 10px; font: .6rem var(--f-display); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; color: var(--soft); }
.wiz-body {
  position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1180px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: clamp(28px, 5vh, 56px) calc(40px + env(safe-area-inset-bottom, 0px));
}

/* The ID lies on the table, then rises at the reveal */
.id-col { position: relative; min-width: 0; perspective: 1100px; }
.wiz .ac-stage { z-index: 1; max-width: 500px; transform: rotateX(38deg) rotateZ(-7deg) translateY(10px); transform-origin: 50% 60%; transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.wiz .ac-stage.lifted { transform: none; }
.wiz .ac-card { box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 50px 40px -30px rgba(0, 0, 0, .95); }
.id-glow { position: absolute; left: 4%; right: 4%; top: 46%; height: 60%; transform: translateY(-50%); border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(var(--glow), .14), transparent); filter: blur(26px); opacity: .7; }
.id-glow.flash { animation: id-flash .8s ease-out; }
@keyframes id-flash { 0% { opacity: 1; transform: translateY(-50%) scale(1.15); } 100% { opacity: .7; transform: translateY(-50%) scale(1); } }
.wiz .ac-meta { position: relative; z-index: 1; margin-top: 26px; }

/* The floating metal question card */
.q-col { position: relative; min-width: 0; perspective: 1200px; padding-bottom: 76px; }
.floater { position: relative; z-index: 1; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-10px); } 50% { transform: translateY(-22px); } }
.qcard {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 3vw, 34px);
  background: var(--m-bg); color: var(--m-fg); border: 1px solid var(--m-line); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 34px 60px -24px rgba(0, 0, 0, .95);
}
.qcard::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .013) 0 1px, transparent 1px 3px); }
.qcard > * { position: relative; }
.reflex {
  position: absolute; left: 10%; right: 10%; bottom: 4px; height: 56px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--glow), .32), rgba(var(--glow), .08) 60%, transparent);
  filter: blur(14px); animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.8); opacity: .55; } }
.reflex.flare { animation: flare .7s ease-out; }
@keyframes flare { 0% { transform: scale(1.4); opacity: 1; } 100% { transform: scale(1); opacity: .9; } }

.q-kicker { margin: 0; font: .76rem var(--f-data); letter-spacing: .12em; text-transform: uppercase; color: var(--scan); }
.q-title { margin: 0; font-family: var(--f-head); font-weight: 400; font-size: clamp(1.3rem, 2.5vw, 1.85rem); line-height: 1.2; text-wrap: balance; }
.q-sub { margin: -6px 0 0; color: var(--m-soft); }
.opts { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--m-line); }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 52px; padding: 12px 6px;
  background: transparent; border: 0; border-bottom: 1px solid var(--m-line); cursor: pointer;
  font: 1rem var(--f-voice); color: var(--m-fg); transition: background-color .2s, color .2s;
}
.opt:hover { background: rgba(255, 255, 255, .025); }
.opt .k { flex: none; font: .72rem var(--f-data); color: var(--m-soft); }
.opt[aria-pressed="true"] { color: var(--scan); }
.opt[aria-pressed="true"] .k { color: var(--scan); }
.opt[aria-pressed="true"]::after { content: ""; margin-left: auto; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--scan); box-shadow: 0 0 10px rgba(var(--glow), .8); }
.opt:focus-visible, .wiz .btn:focus-visible, .wiz-close:focus-visible, .item:focus-visible { outline: 2px solid var(--scan); outline-offset: 2px; }
.seg { display: flex; flex-wrap: wrap; }
.seg .opt { flex: 1; justify-content: center; border: 1px solid var(--m-line); margin-right: -1px; }
.age { display: flex; flex-direction: column; gap: 6px; }
.age input { width: 100%; accent-color: var(--scan); }
.age output { font: 1rem var(--f-data); }
.remark { margin: 0; min-height: 1.5em; font: .95rem/1.45 var(--f-data); color: var(--scan); }
.remark.err { color: #ff9a7a; }
.note { border-top: 1px solid var(--m-line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.note p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--m-soft); }
.note .w { transition: background-color .25s ease, color .25s ease; }
.note .w.r { background: var(--m-soft); color: transparent; }
.q-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; }
.wiz .btn { border-color: var(--m-line); border-radius: 3px; color: var(--m-fg); }
.wiz .btn-primary { background: var(--scan); border-color: var(--scan); color: #000; }
.wiz .btn:disabled { opacity: .35; cursor: default; }
.q-nav .ready { animation: ready 1.6s ease-in-out infinite; }
@keyframes ready { 50% { box-shadow: 0 0 0 6px rgba(var(--glow), .15); } }
.drop { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop label { cursor: pointer; }
.drop:focus-within label { outline: 2px solid var(--scan); outline-offset: 2px; }

/* Offer */
.offer { display: flex; flex-direction: column; gap: 10px; }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--m-line); border-radius: 3px; cursor: pointer; background: transparent; text-align: left; color: var(--m-fg); font: inherit; }
.item[aria-pressed="true"] { border-color: var(--scan); background: rgba(var(--glow), .05); }
.item[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.item .tick { width: 18px; height: 18px; border: 1px solid var(--m-line); margin-top: 3px; display: grid; place-items: center; font: 12px var(--f-data); }
.item[aria-pressed="true"] .tick { background: var(--scan); border-color: var(--scan); color: #000; }
.item b { display: block; font-weight: 500; }
.item small { display: block; color: var(--m-soft); font-size: .86rem; line-height: 1.45; }
.item .pr { font: .9rem var(--f-data); white-space: nowrap; }
.engrave { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 14px; border: 1px solid var(--scan); border-radius: 6px; background: rgba(var(--glow), .05); }
.engrave .full { grid-column: 1 / -1; }
.engrave label { display: flex; flex-direction: column; gap: 4px; font: .58rem var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--m-soft); }
.engrave label.full { grid-column: 1 / -1; }
.engrave input { padding: 9px 10px; background: rgba(0, 0, 0, .25); border: 1px solid var(--m-line); border-radius: 3px; color: var(--m-fg); font: .9rem var(--f-data); }
.ship { display: flex; flex-direction: column; gap: 8px; }
.sum { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--m-line); padding-top: 12px; font: .9rem var(--f-data); }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum .tot { font-size: 1.15rem; }
.fine { margin: 0; font: .72rem var(--f-data); color: var(--m-soft); }

/* The offer card is tall and wide: keep the finished ID in view beside it. */
@media (min-width: 901px) {
  .wiz.is-offer .wiz-body { grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); }
  .wiz.is-offer .id-col { align-self: start; position: sticky; top: 32px; }
}
@media (max-width: 900px) {
  .wiz-body { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .wiz .ac-stage { max-width: 340px; transform: rotateX(28deg) rotateZ(-4deg); }
  .q-col { padding-bottom: 60px; }
}
@media (max-width: 520px) {
  .engrave { grid-template-columns: minmax(0, 1fr); }
  .shelf { grid-template-columns: minmax(0, 1fr); }
  .prod.hero { flex-direction: column; }
  .prod.hero .pv { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-scan i, .ac-blink, .q-nav .ready, .floater, .reflex, .wiz { animation: none; }
  .wiz .ac-stage, .ac-photo img { transition: none; }
}

/* Offer shelf: each item shown as the thing itself, made from the cat's own data */
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prod {
  display: flex; flex-direction: column; min-width: 0; padding: 0; text-align: left; cursor: pointer; overflow: hidden;
  background: rgba(0, 0, 0, .28); color: var(--m-fg); border: 1px solid var(--m-line); border-radius: 6px; font: inherit;
  transition: border-color .2s, box-shadow .25s, transform .15s;
}
.prod:hover { border-color: rgba(255, 255, 255, .2); }
.prod:active { transform: scale(.985); }
.prod[aria-pressed="true"] { border-color: var(--scan); box-shadow: 0 0 0 1px var(--scan), 0 0 30px -6px rgba(var(--glow), .45); }
.prod[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.prod:focus-visible { outline: 2px solid var(--scan); outline-offset: 2px; }
.prod.hero { grid-column: 1 / -1; flex-direction: row; cursor: default; }
.prod.hero .pv { width: 46%; flex: none; }
.prod-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.prod-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 4px; }
.prod-body b { font-weight: 500; }
.prod-body small { color: var(--m-soft); font-size: .84rem; line-height: 1.4; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 10px 14px 14px; }
.prod-foot .pr { font: .95rem var(--f-data); }
.prod-foot .add { padding: 7px 11px; border: 1px solid var(--m-line); border-radius: 999px; font: .56rem var(--f-display); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.prod[aria-pressed="true"] .add { background: var(--scan); border-color: var(--scan); color: #000; }

.pv {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; container-type: inline-size;
  background: radial-gradient(80% 70% at 50% 38%, #26272d 0%, #121317 55%, #08080a 100%);
}
.pv i { font-style: normal; }

/* Paper certificate */
.paper {
  position: absolute; left: 50%; top: 50%; width: 72cqw; aspect-ratio: 11 / 8.5; transform: translate(-50%, -50%) rotate(-4deg);
  background: #ece5d6; color: #1d1a16; box-shadow: 0 2cqw 4cqw rgba(0, 0, 0, .6), inset 0 0 0 .5cqw #ece5d6, inset 0 0 0 .8cqw #1d1a16;
}
.paper i { position: absolute; left: 6%; right: 6%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-head { top: 8%; font: 700 1.9cqw/1 var(--f-voice); letter-spacing: .12em; text-transform: uppercase; }
.p-title { top: 18%; font: 700 3.3cqw/1 Georgia, "Times New Roman", serif; }
.p-name { top: 32%; font: 700 5.4cqw/1 Georgia, "Times New Roman", serif; }
.p-alien { top: 48%; font: 700 3.8cqw/1 var(--f-voice); }
.p-photo { position: absolute; left: 8%; bottom: 11%; width: 17%; aspect-ratio: 3 / 4; background: #3b3a44 center / cover; border: .35cqw solid #1d1a16; }
.p-lines { position: absolute; left: 31%; right: 30%; bottom: 13%; height: 17%; opacity: .3; background: repeating-linear-gradient(#1d1a16 0 .35cqw, transparent .35cqw 3.2cqw); }
.paper .p-stamp { left: auto; right: 6%; top: auto; bottom: 30%; padding: .6cqw 1.2cqw; border: .45cqw solid #a8412c; color: #a8412c; font: 700 2.1cqw/1 var(--f-voice); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-12deg); }
.paper .p-sign { left: auto; right: 8%; top: auto; bottom: 9%; font: italic 3.4cqw/1 Georgia, serif; }

/* Covert Alien ID */
.mini {
  position: absolute; left: 50%; top: 52%; width: 70cqw; aspect-ratio: 85.6 / 53.98; border-radius: 3cqw; overflow: hidden;
  transform: translate(-50%, -50%) perspective(60cqw) rotateX(18deg) rotateZ(-8deg);
  background: radial-gradient(120% 95% at 88% 0%, #1d1c27 0%, #0d0d12 55%, #060608 100%);
  border: .3cqw solid rgba(235, 231, 222, .14); box-shadow: 0 4cqw 6cqw rgba(0, 0, 0, .75);
}
.mini::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .09) 48%, transparent 60%); }
.mc-agency { position: absolute; left: 6%; top: 8%; font: 2cqw/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: #ebe7de; }
.mc-kind { position: absolute; right: 5%; top: 6%; padding: .6cqw 1cqw; border: .25cqw solid #e6b23e; border-radius: .6cqw; font: 1.8cqw/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: #e6b23e; }
.mc-photo { position: absolute; left: 6%; top: 24%; width: 24%; aspect-ratio: 3 / 4; border-radius: 1cqw; background: #14141b center / cover; border: .25cqw solid rgba(235, 231, 222, .15); }
.mc-name { position: absolute; left: 36%; right: 6%; top: 27%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 4cqw/1 var(--f-display); text-transform: uppercase; color: #ebe7de; }
.mc-alien { position: absolute; left: 36%; right: 6%; top: 41%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 3.2cqw/1 var(--f-display); color: var(--scan); }
.mc-l { position: absolute; left: 36%; right: 10%; top: 57%; height: 1.2cqw; border-radius: 1cqw; background: rgba(235, 231, 222, .16); }
.mc-l.short { top: 67%; right: 32%; }
.mc-foot { position: absolute; left: 6%; right: 6%; bottom: 9%; border-top: .25cqw dashed rgba(235, 231, 222, .22); }

/* Metal frame */
.frame {
  position: absolute; left: 50%; top: 50%; width: 76cqw; aspect-ratio: 11 / 8.5; transform: translate(-50%, -50%); padding: 3.2cqw;
  background: linear-gradient(145deg, #4a4d55 0%, #121317 38%, #33363c 68%, #0a0b0d 100%);
  box-shadow: 0 3cqw 5cqw rgba(0, 0, 0, .7), inset 0 0 0 .4cqw rgba(255, 255, 255, .1);
}
.frame .mat { position: relative; display: block; width: 100%; height: 100%; background: #f4f1ea; box-shadow: inset 0 .5cqw 1.2cqw rgba(0, 0, 0, .35); }
.frame .paper { transform: translate(-50%, -50%) scale(.76); box-shadow: 0 0 0 .2cqw rgba(0, 0, 0, .12), inset 0 0 0 .5cqw #ece5d6, inset 0 0 0 .8cqw #1d1a16; }

/* Engraved medallion: front and back */
.medal {
  position: absolute; left: 12%; top: 54%; width: 46cqw; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4cqw; text-align: center; color: #3c4148;
  background: radial-gradient(circle at 34% 28%, #f6f7f9 0%, #cdd1d6 30%, #8f959d 72%, #5d636b 100%);
  box-shadow: 0 2.5cqw 4cqw rgba(0, 0, 0, .7), inset 0 0 0 1cqw rgba(255, 255, 255, .2), inset 0 0 0 1.4cqw rgba(0, 0, 0, .12);
}
.medal::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255, 255, 255, .07) 0 .3cqw, transparent .3cqw .9cqw); }
.medal .ring { position: absolute; top: -6.5cqw; left: 50%; width: 9cqw; height: 9cqw; transform: translateX(-50%); border: 1.6cqw solid #a3a9b1; border-radius: 50%; box-shadow: 0 .6cqw 1cqw rgba(0, 0, 0, .5); }
.medal i:not(.ring) { position: relative; max-width: 78%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 .25cqw 0 rgba(255, 255, 255, .55), 0 -.15cqw 0 rgba(0, 0, 0, .35); }
.m-earth { font: 4.6cqw/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.m-sep { width: 14cqw; height: .3cqw; background: rgba(60, 65, 72, .4); }
.m-alien { font: 3.4cqw/1 var(--f-display); }
.m-small { font: 2.7cqw/1.25 var(--f-data); }
.medal.back { left: auto; right: 7%; top: 60%; width: 36cqw; transform: translateY(-50%) rotate(9deg); gap: .8cqw; }

/* Gift box: top face as a trapezoid, the gold seal on the front */
.box3d { position: absolute; left: 50%; top: 58%; width: 60cqw; height: 30cqw; transform: translate(-50%, -50%); }
.box3d .lid {
  position: absolute; left: 0; right: 0; bottom: 100%; height: 13cqw;
  clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #3a3b42 0%, #1c1d22 100%);
}
.box3d .front {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw;
  background: linear-gradient(180deg, #1c1d22 0%, #07070a 100%);
  box-shadow: 0 4cqw 6cqw rgba(0, 0, 0, .75), inset 0 .35cqw 0 rgba(255, 255, 255, .1);
}
.box3d .front svg { width: 11cqw; height: 11cqw; filter: drop-shadow(0 0 2cqw rgba(230, 178, 62, .45)); }
.box3d .front i { font: 2.5cqw/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: #e0bb63; text-shadow: 0 0 1.5cqw rgba(230, 178, 62, .35); }
