/* V6: viewport-sized composition with room for touch targets and card motion. */
@font-face {
  font-family: Balatro;
  src: url('assets/fonts/beleren/balatro.otf.woff2') format('woff2');
  font-display: swap;
}

.utility-nav {
  position: absolute;
  top: 18px;
  justify-content: flex-end;
  gap: 16px;
}

.utility-nav button,
.utility-nav .motion-toggle {
  min-width: 44px;
  height: 44px;
}

.language-switcher,
.theme-switcher {
  gap: 8px;
}

.motion-status {
  position: absolute;
  top: 48px;
  right: 0;
  max-width: 260px;
  padding: 10px;
  background: #17131f;
  border-radius: 8px;
}

.hero-v5 {
  min-height: 100svh;
  padding: 88px 0 30px;
  justify-content: space-evenly;
  gap: 24px;
}

.hero-v5 h1 {
  min-height: 1.2em;
  display: grid;
  place-items: center;
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: -1px;
}

.hero-v5 h1 #animatedName,
.hero-v5 h1 #nameBefore,
.hero-v5 h1 #nameAfter,
.hero-v5 h1 #nameCursor {
  color: var(--ink);
}

.hero-v5 h1 #nameAccent {
  color: #b4a3d0;
}

.hero-v5 .intro {
  position: relative;
  margin-top: 4px;
}

.hero-v5 .intro::before {
  content: attr(aria-label);
  display: block;
  visibility: hidden;
}

.hero-v5 .intro #animatedSubtitle {
  position: absolute;
  inset: 0;
  white-space: nowrap;
}

.hero-v5 .intro .subtitle-role {
  display: inline-block;
  white-space: pre;
}

.js .hero-v5 .intro .subtitle-role:not(.is-visible) {
  opacity: 0;
  transform: translateY(-22px);
}

.js .hero-v5 .intro .subtitle-role.is-visible {
  animation: subtitle-drop .5s cubic-bezier(.2, .75, .3, 1) both;
}

.hero-v5 .intro .subtitle-separator {
  white-space: pre;
  transition: opacity .5s ease;
}

.js .hero-v5 .intro .subtitle-separator:not(.is-visible) {
  opacity: 0;
}

.collection-v5 {
  margin-top: 0;
  gap: 20px;
}

.contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 4px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  transition: color .2s ease;
}

.contact-links a:hover {
  color: var(--accent);
}

.contact-links .linkedin-label {
  background: linear-gradient(90deg,
      var(--muted) 0%,
      var(--muted) 40%,
      var(--ink) 50%,
      var(--muted) 60%,
      var(--muted) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: linkedin-shimmer 7s ease-in-out infinite;
}

.contact-links a:hover .linkedin-label,
.contact-links a:focus-visible .linkedin-label {
  animation: none;
  background: none;
  -webkit-text-fill-color: currentColor;
}

@keyframes linkedin-shimmer {
  0%, 20% { background-position: 100% 0; }
  48%, 100% { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-links .linkedin-label {
    animation: none;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

.collection-v5 .card-stage {
  height: 475px;
}

.collection-v5 .player-card:hover {
  transform: none;
}

/* The card does not flip: paint its contents as one plane before tilting it. */
.collection-v5 .card-float,
.collection-v5 .player-card,
.collection-v5 .card-rotator {
  transform-style: flat;
}

/* Keep FUT lettering on a fixed pixel grid once the card has arrived. */
.collection-v5 .card-float:has(.player-card[data-format="fut"]) {
  animation: none;
}

html[lang="es"] .stat-en,
html[lang="en"] .stat-es {
  display: none;
}

.card-selector {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  width: min(100%, 390px);
  padding: 4px;
  border: 1px solid #ffffff35;
  border-radius: 12px;
  background: #1d2221;
  touch-action: none;
  user-select: none;
}

.card-selector-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px)/6);
  border-radius: 8px;
  background: #d5ec94;
  box-shadow: 0 2px 12px #d5ec9433;
  pointer-events: none;
  transition: left .42s cubic-bezier(.2, .8, .2, 1), width .42s cubic-bezier(.2, .8, .2, 1);
}

.card-selector.is-dragging .card-selector-indicator {
  transition: none;
}

.card-selector button {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #bfc8c2;
  font: 700 clamp(10px, 2.7vw, 12px)/1 "Segoe UI", sans-serif;
  cursor: pointer;
  transition: color .25s ease;
}

.card-selector button[aria-pressed="true"] {
  color: #162018;
}

.card-selector button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
  .card-selector-indicator { transition: none; }
}

.collection-v5 .card-stage {
  max-width: 390px;
  margin-inline: auto;
  touch-action: pan-y;
  user-select: none;
  overflow: clip;
}

.collection-v5 .card-stage img {
  -webkit-user-drag: none;
}

.card-transition {
  --drag-x: 0px;
  position: relative;
  transform: translateX(var(--drag-x));
}

.card-transition:not(.is-dragging):not(.is-settling) {
  transform: none;
}

.card-transition.is-dragging {
  transition: none;
}

.card-transition.is-settling {
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.card-transition>.swipe-preview {
  position: absolute;
  inset: 0;
  transform: translateX(var(--preview-offset));
  pointer-events: none;
}

.card-transition.is-settling>.player-card {
  transition: opacity .3s ease-out;
}

.swipe-hint {
  display: flex;
  visibility: hidden;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 20px;
  margin: -12px 0 0;
  color: var(--muted);
  font: 11px/1.4 "Segoe UI", sans-serif;
  letter-spacing: .2px;
}

.swipe-hint[aria-hidden="false"] {
  visibility: visible;
  animation: hint-enter .35s ease-out both;
}

.swipe-hint span {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

@keyframes hint-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .swipe-hint {
    animation: none;
  }
}

@media(max-width:390px) {
  .collection-v5 .card-stage {
    height: 410px;
  }
}

@media(max-width:580px) {
  .collection-v5 .card-stage { order: 1; }
  .collection-v5 .swipe-hint { order: 2; }
  .collection-v5 .card-selector { order: 3; }
  .collection-v5 .joker-details-slot { order: 4; }
  .collection-v5 .card-stage { perspective: none; }
  .collection-v5 .player-card:not(.swipe-preview) { transform: none !important; transition: none; }
  .card-transition.is-settling>.player-card:not(.swipe-preview) { transition: opacity .3s ease-out; }
  .collection-v5 .card-float { animation: none; }
  .card-transition.is-dragging,
  .card-transition.is-settling { will-change: transform; }
  .card-transition.is-dragging>.player-card,
  .card-transition.is-dragging>.swipe-preview,
  .card-transition.is-settling>.player-card,
  .card-transition.is-settling>.swipe-preview { will-change: opacity; }
}

@media(max-width:350px) {
  .collection-v5 .card-stage {
    height: 365px;
  }

  .utility-nav {
    left: 10px;
    right: 10px;
  }

  .language-switcher,
  .theme-switcher {
    gap: 2px;
  }
}

/* A continuous crown and curved shoulders replace the jagged FUT top. */
.player-card[data-format="fut"] {
  --card-shape: path('M 160 4 C 148 24 127 26 116 12 C 81 13 48 46 9 48 L 9 365 Q 9 397 47 407 Q 119 427 160 447 Q 201 427 273 407 Q 311 397 311 365 L 311 48 C 272 46 239 13 204 12 C 193 26 172 24 160 4 Z');
}

.player-card[data-format="fut"] .card-face {
  border: 0;
  background: linear-gradient(120deg, #93723a, #fff1ad 24%, #b88c40 45%, #fff5bf 70%, #b49248);
  box-shadow: none;
}

.player-card[data-format="fut"] .card-inner {
  inset: 0;
  transform: scale(.974, .976);
  background: repeating-linear-gradient(130deg, transparent 0 40px, #adbfff20 41px 43px, transparent 44px 68px), radial-gradient(ellipse at 70% 20%, #344de7, #101e79 48%, #070d36);
  box-shadow: none;
}

.player-card[data-format="fut"] .card-inner:after {
  inset: 0;
  border: 0;
  box-shadow: none;
}

.player-card[data-format="fut"] .fut-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fut-frame-shadow {
  stroke: #061043;
  stroke-width: 4;
}

.fut-frame-gold {
  stroke: #ffe89b;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 2px #f9d57088);
}

.fut-frame-dark {
  stroke: #091652;
  stroke-width: 3;
}

.fut-frame-highlight {
  stroke: #dbbb65;
  stroke-width: 1.4;
}

.player-card[data-format="fut"] .card-edition {
  top: 36px;
  left: 50px;
  right: 50px;
  color: #f3d980;
  text-shadow: none;
  justify-content: space-around;
}

.player-card[data-format="fut"] .player-rating::before {
  content: "";
  position: absolute;
  inset: -7px -13px -9px;
  z-index: -1;
  background: linear-gradient(transparent -1%, black, transparent 90%);
  opacity: 0.3;
  height: 170px;
  width: 80px;
  left: -5px;
}

.player-card[data-format="fut"] .player-name,
.player-card[data-format="fut"] .player-rating>strong {
  color: #f6df86;
  text-shadow: 1px 2px #071144;
}

.player-card[data-format="fut"] .player-info {
  color: #f5e3a3;
}

.player-card[data-format="fut"] .player-stats {
  border-color: #dfc87e80;
  font-size: 19px;
  letter-spacing: -.5px;
}

.player-card[data-format="fut"] .player-stats b {
  font-size: inherit;
}

.player-card[data-format="fut"] .card-bottom {
  color: #f5e3a3;
}

/* Full-art planeswalker: translucent panels, fully opaque readable lettering. */
.planeswalker-frame {
  padding: 8px;
  background: linear-gradient(#091b2522, #091b2544), url('assets/mtg-background-v7.webp') center/cover, #526957;
}

.planeswalker-heading,
.planeswalker-type {
  background: linear-gradient(110deg, #f3e2aee6, #d5ca91e6, #a7d7e9eb);
  border: 2px ridge #c6af6b;
}

.planeswalker-heading {
  font-size: 18px;
  min-height: 34px;
}

.planeswalker-heading .mana {
  display: flex;
  gap: 3px;
  font-family: "Beleren Bold", Georgia, serif;
}

.mana img {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 1px 2px #0009;
}

.planeswalker-frame .tcg-art {
  position: relative;
  z-index: 0;
  flex: 1;
  min-height: 156px;
  border: 1px solid #dfc78688;
  background: transparent;
  overflow: visible;
}

.planeswalker-frame .tcg-art>span {
  display: none;
}

.planeswalker-frame .tcg-art img {
  width: 125%;
  height: 220%;
  left: -12.5%;
  bottom: -100%;
  object-fit: contain;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
}

.planeswalker-type,
.planeswalker-abilities,
.planeswalker-footer {
  position: relative;
  z-index: 1;
}

.player-card[data-format="mtg"] .planeswalker-type {
  font-size: 14px;
  padding: 6px;
  font-family: "Beleren Bold", Georgia, serif;
}

.planeswalker-abilities {
  flex: 0;
  gap: 0;
  margin: 3px 2px 0 14px;
  padding: 4px 9px 5px 0;
  border: 2px solid #30383b;
  border-radius: 13px 11px 20px 19px;
  background: linear-gradient(125deg, #f8f6eedc, #e9e6e6d9 56%, #fffdf5db);
  box-shadow: inset 0 0 0 2px #fffcf4ab, 0 2px 3px #101b1b70;
  color: #162027;
  font: 13px/1.22 "Beleren Bold", Georgia, serif;
}

.planeswalker-abilities>span {
  min-height: 55px;
  padding: 3px 0;
  grid-template-columns: 39px 1fr;
  gap: 2px;
  align-items: center;
  border-bottom: 0;
}

.planeswalker-abilities>span+span {
  border-top: 1px solid #5a655f80;
}

.planeswalker-abilities>span>span {
  display: block;
}

.planeswalker-abilities b {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 34px;
  margin-left: -15px;
  padding: 0;
  background: linear-gradient(155deg, #fffef8 2%, #aeb4b5 27%, #f6f5eb 45%, #777f84 78%, #e3e2d7);
  color: #f9f8f1;
  clip-path: polygon(0 19%, 9% 16%, 14% 7%, 37% 1%, 68% 1%, 84% 8%, 94% 15%, 100% 19%, 96% 77%, 50% 100%, 4% 77%);
  filter: drop-shadow(1px 2px 1px #101818a6);
  font: 18px/1 "Beleren Bold", Georgia, serif;
}

.planeswalker-abilities b::before {
  content: "";
  position: absolute;
  inset: 3px 3px 4px;
  background: linear-gradient(150deg, #3e4955, #18232e 64%, #263640);
  clip-path: polygon(0 18%, 13% 14%, 18% 5%, 73% 3%, 88% 13%, 100% 18%, 94% 77%, 50% 100%, 6% 77%);
  box-shadow: inset 0 2px 3px #0009;
}

.planeswalker-abilities>span:first-child b {
  clip-path: polygon(0 81%, 9% 84%, 14% 93%, 37% 99%, 68% 99%, 84% 92%, 94% 85%, 100% 81%, 96% 23%, 50% 0, 4% 23%);
}

.planeswalker-abilities>span:first-child b::before {
  clip-path: polygon(0 82%, 13% 86%, 18% 95%, 73% 97%, 88% 87%, 100% 82%, 94% 23%, 50% 0, 6% 23%);
}

.planeswalker-abilities b>span {
  top: 2px;
  position: relative;
  z-index: 1;
  transform: translateY(-2px);
  text-shadow: 0 1px 2px #000c;
}

.player-card[data-format="mtg"] .planeswalker-footer {
  color: #fff9e6;
  text-shadow: 0 1px #000;
  font-family: "Beleren Bold", Georgia, serif;
}

.planeswalker-footer>b {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 57px;
  height: 37px;
  margin: -4px 3px -5px 0;
  border: 0;
  border-radius: 0;
  clip-path: polygon(0 16%, 19% 15%, 29% 2%, 69% 2%, 81% 15%, 100% 16%, 91% 82%, 50% 100%, 9% 82%);
  background: linear-gradient(145deg, #fffef5, #adb1ae 32%, #f8f4e6 52%, #626f75 83%, #eeeae0);
  color: #fff9e6;
  font: 21px/1 "Beleren Bold", Georgia, serif;
  text-shadow: 0 1px 2px #000b;
  filter: drop-shadow(1px 2px 1px #000b);
  transform: translate(6px, -17px)
}

.planeswalker-footer>b::before {
  content: "";
  position: absolute;
  inset: 4px 4px 5px;
  background: linear-gradient(145deg, #40525a, #192a32 65%, #2b3940);
  clip-path: polygon(0 13%, 19% 12%, 28% 0, 72% 0, 83% 12%, 100% 13%, 89% 78%, 50% 100%, 11% 78%);
}

.planeswalker-footer b>span {
  position: relative;
  z-index: 1;
}

/* The provided transparent Hearthstone artwork is the actual frame. */
.player-card[data-format="hearthstone"] .card-face {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.hs-frame {
  background: none;
  box-shadow: none;
}

.hs-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hs-portrait {
  z-index: 1;
  top: 57px;
  left: 69px;
  width: 175px;
  height: 204px;
  border: 0;
  box-shadow: none;
  border-radius: 50% 50% 42% 42%;
  background: url("assets/hearthstone-background.avif") center / cover no-repeat;
  background-size: 120%;
  background-position: 20% 10%;
}

.hs-name {
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 17px;
  transform: translateY(5px);
  pointer-events: none;
  z-index: 3;
}

.hs-name text {
  fill: #fff4d3;
  stroke: #34261a;
  stroke-width: 1.5px;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

.hs-rules {
  width: 190px;
  top: 310px;
  bottom: auto;
  left: 59px;
  right: 55px;
  padding: 4px;
  border: 0;
  background: none;
  z-index: 3;
  font-size: 14px;
  color: #f7e6b9;
  text-shadow: 0 1px 2px #000;
}

.hs-rules em {
  font-size: 10px;
  margin-top: 6px;
}

.hs-gem,
.hs-tribe,
.hs-edition,
.hs-mana,
.hs-attack,
.hs-health {
  display: none;
}

/* Pixel portrait rendered at 78 × 102, with traditional opposite Joker indices. */
.balatro-frame {
  display: block;
  position: relative;
  padding: 0;
  background: #f4f7f3;
  box-shadow: inset 0 0 0 3px #c9d4d2;
}

.joker-word {
  position: absolute;
  z-index: 1;
  font: bold 34px/.95 'Courier New', monospace;
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: #344e50;
  text-shadow: 2px 2px #aebdbc;
}

.joker-left {
  top: 15px;
  left: 10px;
}

.joker-right {
  right: 10px;
  bottom: 15px;
  transform: rotate(180deg);
}

.balatro-photo {
  position: absolute;
  inset: 65px 40px;
  background: #dfe8e1;
}

.balatro-photo img,
.balatro-photo canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.balatro-photo canvas {
  filter: contrast(1.15) saturate(.8);
}

.joker-details-slot {
  min-height: 44px;
  width: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
}

.joker-details {
  position: relative;
  width: min(100%, 260px);
  min-height: 44px;
  text-align: center;
  font-family: Balatro, 'Courier New', monospace;
  font-weight: 400;
  letter-spacing: normal;
}

.joker-details * {
  font-weight: 400;
  letter-spacing: normal;
}

.joker-popup {
  position: absolute;
  z-index: 10;
  left: 0;
  bottom: calc(100% + 12px);
  width: 100%;
  border: 3px solid #d7e0df;
  border-radius: 8px;
  background: #3e494d;
  color: #f8fbf9;
  padding: 8px;
  box-shadow: inset 0 0 0 4px #637174, inset 0 -7px #263236, 0 6px 0 #1c272b, 0 13px 28px #0008;
  font-weight: 400;
}

@media(max-width:580px) {
  /* Clear the 54px selector, 20px gap, and 12px of breathing room. */
  .joker-popup { bottom: calc(100% + 86px); }
}

.joker-details:not([hidden]) .joker-popup {
  animation: joker-popup-in 220ms cubic-bezier(.2, .8, .25, 1) both;
}

@keyframes joker-popup-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .joker-details:not([hidden]) .joker-popup {
    animation-duration: 1ms;
  }
}

.joker-popup>strong {
  display: block;
  padding: 0 2px 5px;
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 2px;
  text-shadow: 3px 3px #1b252a;
}

.joker-effect {
  border: 3px solid #e5e9e7;
  border-radius: 8px;
  background: #fbfcf8;
  color: #3c4b4f;
  padding: 6px;
  box-shadow: inset 0 -4px #d0d9d6, 0 4px #273337;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: -.9px;
  text-shadow: 1px 1px #d8dfdb;
}

.joker-effect p {
  margin: 0;
}

.joker-effect p+p {
  margin-top: 6px;
}

.joker-popup b {
  color: #ef4148;
  white-space: nowrap;
  text-shadow: none;
}

.joker-popup em {
  background: #f1434b;
  color: #fff;
  padding: 0 3px;
  font-style: normal;
  white-space: nowrap;
  text-shadow: 1px 1px #ae1a24;
  box-shadow: 2px 2px #a6242c;
}

.joker-popup .joker-rarity {
  display: table;
  margin: 7px auto 0;
  border: 3px solid #a75aaa;
  border-radius: 8px;
  padding: 3px 9px;
  background: #8c3e91;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 1.5px;
  text-shadow: 2px 2px #532459;
  box-shadow: inset 0 -4px #713475, 0 4px #532459;
}

#nameCursor {
  display: none;
  position: relative;
  width: 0;
  height: .85em;
  vertical-align: -.08em;
}

#nameCursor.is-visible {
  display: inline-block;
}

#nameCursor::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-left: 2px solid currentColor;
  animation: name-caret-blink 1s steps(1, end) infinite;
}

#nameCursor.is-editing::after {
  animation: none;
  opacity: 1;
}

@keyframes name-caret-blink {
  50% {
    opacity: 0;
  }
}

@media(prefers-reduced-motion:reduce) {
  #nameCursor {
    display: none;
  }
}

@media(max-width:580px) {
  .hero-v5 h1 {
    min-height: 2.2em;
  }
}

.js:not(.intro-complete) {
  overflow: hidden;
}

/* Reveal each part of the introduction in sequence. */
.js:not(.intro-complete) .utility-nav,
.js:not(.intro-complete) .card-selector,
.js:not(.intro-complete) .projects-toggle,
.js:not(.intro-complete) .swipe-hint,
.js:not(.intro-complete) .joker-details-slot {
  visibility: hidden;
}

.js:not(.intro-link-visible) .contact-links,
.js:not(.intro-subtitle-started) .hero-v5 .intro,
.js:not(.intro-card-visible) .card-stage {
  visibility: hidden;
}

.js.intro-link-visible .contact-links {
  animation: subtitle-drop .55s cubic-bezier(.2, .75, .3, 1) both;
}

.js.intro-card-visible .card-stage {
  animation: first-card-arrival .7s cubic-bezier(.18, .8, .25, 1) backwards;
}

.js.intro-complete .card-selector,
.js.intro-complete .projects-toggle,
.js.intro-complete .utility-nav {
  animation: first-controls-arrival .55s ease-out both;
  animation-delay: .3s;
}

@keyframes subtitle-drop {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes first-card-arrival {
  from {
    opacity: 0;
    transform: translateY(42px) scale(.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes first-controls-arrival {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media(prefers-reduced-motion:reduce) {

  .hero-v5 .intro .subtitle-separator {
    transition: none;
  }

  .js .hero-v5 .intro .subtitle-role.is-visible,
  .js.intro-link-visible .contact-links,
  .js.intro-card-visible .card-stage,
  .js.intro-complete .card-selector,
  .js.intro-complete .projects-toggle,
  .js.intro-complete .utility-nav {
    animation: none;
  }
}

@media(min-width:391px) and (max-height:850px) {
  .hero-v5 {
    padding-top: 76px;
    gap: 16px;
  }

  .collection-v5 {
    gap: 16px;
  }

  .collection-v5 .card-stage {
    height: 380px;
  }

  .collection-v5 .card-float,
  .collection-v5 .player-card {
    width: 256px;
    height: 359px;
  }

  .collection-v5 .card-rotator {
    width: 320px;
    height: 449px;
    scale: .8;
    transform-origin: top left;
    left: 0;
    top: 0;
  }
}
