/* Vermillion City Exotics: placeholder page. System fonts, no library.
   Colours come from the logo: aqua letters, charcoal, and the purple-to-blue dusk sky. */
:root {
  --bg: #131517;          /* charcoal */
  --panel: #1b1e21;
  --line: #2c3236;
  --aqua: #9be5e2;        /* the logo's letters */
  --aqua-bright: #b7f0ee;
  --dusk: #4b3a78;        /* purple dusk */
  --dusk-blue: #48557c;
  --white: #f4f7f7;
  --muted: #a3adb1;
}
* { box-sizing: border-box; }
html { background: #0d0f10; color: var(--white); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  font: 16px/1.5 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.page { width: 100%; max-width: 480px; flex: 1; display: flex; flex-direction: column; background: var(--bg); }
@media (min-width: 520px) {
  .page { margin: 28px 0; flex: none; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
}
@media (min-width: 800px) { .page { max-width: 740px; } }

/* The cover: a dusk sky that fades down into the page. */
.cover {
  height: 160px;
  background: linear-gradient(to bottom, rgba(19, 21, 23, 0) 35%, var(--bg) 100%),
              radial-gradient(90% 120% at 85% 0, rgba(155, 229, 226, .38), rgba(155, 229, 226, 0) 60%),
              linear-gradient(115deg, var(--dusk) 0%, var(--dusk-blue) 55%, #2f6f78 100%);
}

/* His logo, as it is. */
.who { margin-top: -96px; padding: 0 22px; text-align: center; }
.logo {
  display: block; width: 172px; height: 172px; margin: 0 auto 14px; border-radius: 50%;
  background: #fff; border: 4px solid var(--bg); box-shadow: 0 0 0 3px var(--aqua);
}
h1 { margin: 0; font-size: 27px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.handle { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.bio { margin: 12px auto 0; max-width: 34ch; white-space: pre-line; }
.soon {
  display: inline-block; margin: 16px 0 0; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.soon::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--aqua); }

.links { display: grid; gap: 10px; padding: 20px 22px 4px; max-width: 480px; width: 100%; margin: 0 auto; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 18px;
  border-radius: 999px; background: var(--aqua); color: #0c1416; font-weight: 800; font-size: 17px; text-decoration: none;
}
.btn:hover { background: var(--aqua-bright); }
.btn.quiet { background: transparent; border: 2px solid var(--line); color: var(--white); }
.btn.quiet:hover { background: var(--panel); }
.btn svg { width: 22px; height: 22px; flex: none; }
a:focus-visible, .card:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* ---- The cards ---------------------------------------------------------------------------------------------------
   The deck is a binder page: each pocket (.slot) holds one card. cards.js builds the cards from cards.json. */
.deck-head[hidden], .deck-note[hidden], .deck[hidden] { display: none; }
.deck-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 18px 10px; }
.deck-head h2 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); }
.deck-head p { margin: 0; font-size: 13px; color: var(--muted); }
.deck { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0 12px; list-style: none; }
@media (min-width: 800px) { .deck { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 18px; } }
.slot {
  container-type: inline-size; padding: 6px; border-radius: 16px;
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.card {
  position: relative; display: block; width: 100%; aspect-ratio: 5 / 7; cursor: pointer; border-radius: 12px;
  transform-style: preserve-3d; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))) rotate(var(--lean, 0deg));
  transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}
.card.flipped { --flip: 180deg; }
.card.tilting { transition-duration: .12s; }
.face {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit; border: 2px solid var(--aqua);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.front {
  display: flex; flex-direction: column; padding: 9px; padding: 5cqw;
  background: linear-gradient(165deg, #262b30 0%, #171a1d 60%, #1d1b2b 100%);
}
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; margin-bottom: 3.6cqw; }
.card-no { font-size: 11px; font-size: max(11px, 6.4cqw); line-height: 1; font-weight: 800; letter-spacing: .04em; color: var(--aqua); }
.card-pip { width: 9px; width: 5.4cqw; aspect-ratio: 1; transform: rotate(45deg); border-radius: 22%; background: linear-gradient(135deg, var(--aqua), #8d7bd6); }
.card-art { display: block; flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; border-radius: 6px; border-radius: 3.4cqw; outline: 1px solid rgba(155, 229, 226, .45); outline-offset: -1px; background: var(--panel); }
.card-name { margin-top: 7px; margin-top: 4.2cqw; font-size: 14px; font-size: max(12px, 8.4cqw); line-height: 1.15; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot {
  margin-top: 5px; margin-top: 3cqw; padding-top: 5px; padding-top: 2.8cqw; overflow: hidden; text-overflow: ellipsis;
  border-top: 1px solid rgba(255, 255, 255, .12); color: var(--muted);
  font-size: 10px; font-size: max(10px, 5cqw); line-height: 1.2; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
/* The foil: a band of light across the card. cards.js moves it with the pointer, or as the page scrolls. */
.foil {
  position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 28%, rgba(155, 229, 226, .22) 43%, rgba(170, 140, 255, .20) 50%, rgba(255, 255, 255, .14) 57%, rgba(255, 255, 255, 0) 72%);
  background-size: 300% 300%; background-position: calc(var(--px, 30) * 1%) calc(var(--py, 30) * 1%);
}
/* The back of every card: his logo, as it is, on the dusk sky. */
.back {
  display: flex; align-items: center; justify-content: center; transform: rotateY(180deg);
  background: radial-gradient(120% 90% at 80% 0, rgba(155, 229, 226, .30), rgba(155, 229, 226, 0) 60%), linear-gradient(140deg, var(--dusk), var(--dusk-blue) 60%, #2f6f78);
}
.card-logo { width: 74%; height: auto; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(19, 21, 23, .55); }
.deck-note { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.deck-note a { color: var(--aqua); }

@media (prefers-reduced-motion: no-preference) {
  .slot { animation: deal .5s cubic-bezier(.2, .8, .2, 1) both; }
  .slot:nth-child(2) { animation-delay: .06s; } .slot:nth-child(3) { animation-delay: .12s; }
  .slot:nth-child(4) { animation-delay: .18s; } .slot:nth-child(5) { animation-delay: .24s; }
  .slot:nth-child(n+6) { animation-delay: .3s; }
  @keyframes deal { from { opacity: 0; transform: translateY(18px) rotate(-3deg); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}

footer { margin-top: auto; padding: 24px 22px 26px; text-align: center; color: var(--muted); font-size: 13px; }

/* The "page not found" page. */
.lost { margin-top: -40px; padding: 0 22px 4px; text-align: center; }
.lost p { margin: 12px 0 0; color: var(--muted); }
