/* VROWN cutout scenes and the saved-photo archive. */

:root {
  --va-archive-yellow: var(--szv-home-yellow, #fef019);
  --va-archive-ink: #0d0d0b;
  --va-archive-paper: #f5f0df;
}

body[data-site-page="vrown"] .va-cutout-scene {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100svh !important;
  min-height: 100svh !important;
  margin: 0 !important;
  overflow: visible;
  isolation: isolate;
  transform: translate3d(var(--tiny-x, 0), var(--tiny-y, 0), 0)
    rotate(var(--tiny-deck-rotation, 0deg)) scale(var(--tiny-scale, 1)) !important;
  transform-origin: center;
}

body[data-site-page="vrown"] .va-cutout-layer,
body[data-site-page="vrown"] .va-cutout-scene.is-portrait .va-cutout-layer,
body[data-site-page="vrown"] .va-cutout-scene.is-square .va-cutout-layer,
body[data-site-page="vrown"] .va-cutout-scene.is-landscape .va-cutout-layer {
  position: absolute;
  left: 50% !important;
  display: block;
  width: var(--cutout-width) !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(5px 7px 0 rgba(13, 13, 11, 0.11));
  transform: translate3d(calc(-50% + var(--cutout-shift-x, 0%)), 0, 0)
    rotate(var(--cutout-rotate, 0deg));
  transform-origin: center;
  will-change: transform;
}

body[data-site-page="vrown"] .va-cutout-scene.is-current .va-cutout-layer {
  animation: va-cutout-breathe var(--cutout-duration, 3.2s) ease-in-out
    var(--cutout-delay, 0s) infinite alternate;
}

body[data-site-page="vrown"]
  .va-tiny-clone.is-scroll-deck
  .va-cutout-scene:not(.is-current):not(.is-next)
  .va-cutout-layer {
  animation: none !important;
  filter: none;
  will-change: auto;
}

body[data-site-page="vrown"]
  .va-tiny-clone.is-scroll-deck
  .va-cutout-scene:is(.is-current, .is-next)
  .va-cutout-layer {
  will-change: transform;
}

body[data-site-page="vrown"]
  .va-vrown-input-stage.is-deck-moving
  .va-cutout-scene.is-current
  .va-cutout-layer {
  animation-play-state: paused;
}

@keyframes va-cutout-breathe {
  from {
    transform: translate3d(calc(-50% + var(--cutout-shift-x, 0%)), -4px, 0)
      rotate(var(--cutout-rotate, 0deg));
  }
  to {
    transform: translate3d(calc(-50% + var(--cutout-shift-x, 0%)), 5px, 0)
      rotate(calc(var(--cutout-rotate, 0deg) + 0.8deg));
  }
}

/* 01 / WALK IN */
.va-cutout-red-walk {
  --cutout-width: min(46vw, 590px);
  --cutout-rotate: -1deg;
  --cutout-duration: 2.7s;
  top: clamp(-120px, -16svh, -58px);
  left: 28vw;
}

/* 02 / TURN AROUND */
.va-cutout-green-back {
  --cutout-width: min(54vw, 690px);
  --cutout-rotate: -2deg;
  --cutout-duration: 3.5s;
  top: clamp(-150px, -23svh, -82px);
  left: -2vw;
  z-index: 1;
}

.va-cutout-car-pose {
  --cutout-width: min(40vw, 510px);
  --cutout-shift-x: 7%;
  --cutout-rotate: 2.5deg;
  --cutout-duration: 2.4s;
  --cutout-delay: -1s;
  top: -3svh;
  left: 55vw;
  z-index: 2;
}

/* 03 / KEEP RUNNING */
.va-cutout-yellow-run {
  --cutout-width: min(70vw, 960px);
  --cutout-shift-x: -23%;
  --cutout-rotate: -2deg;
  --cutout-duration: 2s;
  top: 4svh;
  left: -10vw;
  z-index: 2;
}

.va-cutout-yellow-standing {
  --cutout-width: min(78vw, 1050px);
  --cutout-rotate: 1.5deg;
  --cutout-duration: 3.8s;
  --cutout-delay: -1.4s;
  top: -4svh;
  left: 30vw;
  z-index: 1;
}

/* 04 / MASK ROOM */
.va-cutout-mask-table {
  --cutout-width: min(64vw, 840px);
  --cutout-shift-x: -4%;
  --cutout-rotate: 0deg;
  --cutout-duration: 3.7s;
  top: 20svh;
  left: -4vw;
  z-index: 2;
}

.va-cutout-mask-portrait {
  --cutout-width: min(55vw, 720px);
  --cutout-shift-x: 7%;
  --cutout-rotate: 1.8deg;
  --cutout-duration: 3s;
  --cutout-delay: -0.8s;
  top: 10svh;
  left: 49vw;
  z-index: 1;
}

.va-cutout-mask-crouch {
  --cutout-width: min(57vw, 740px);
  --cutout-shift-x: 8%;
  --cutout-rotate: -1.4deg;
  --cutout-duration: 2.6s;
  --cutout-delay: -1.6s;
  top: 27svh;
  left: 29vw;
  z-index: 3;
}

/* 05 / TINY VROWN */
.va-cutout-chair-seated {
  --cutout-width: min(96vw, 1280px);
  --cutout-shift-x: 7%;
  --cutout-rotate: -1.5deg;
  --cutout-duration: 3.2s;
  top: -5svh;
  left: -8vw;
  z-index: 1;
}

.va-cutout-rug-crouch {
  --cutout-width: min(72vw, 980px);
  --cutout-shift-x: 5%;
  --cutout-rotate: 2deg;
  --cutout-duration: 2.5s;
  --cutout-delay: -1.2s;
  top: 3svh;
  left: 34vw;
  z-index: 2;
}

.va-cutout-vintage-chair {
  --cutout-width: min(39vw, 510px);
  --cutout-shift-x: 10%;
  --cutout-rotate: 4deg;
  --cutout-duration: 3.1s;
  --cutout-delay: -1.6s;
  top: -3svh;
  left: 57vw;
  z-index: 2;
}

/* 07 / PHOTO ARCHIVE CTA */
.va-cutout-cta-scene {
  z-index: 150 !important;
}

.va-cutout-tiny-crouch {
  --cutout-width: min(88vw, 1180px);
  --cutout-rotate: -1deg;
  --cutout-duration: 2.4s;
  top: -4svh;
  left: -4vw;
  z-index: 1;
}

.va-cutout-archive-callout {
  position: absolute;
  z-index: 5;
  top: 53%;
  left: 50%;
  width: min(48vw, 580px);
  transform: translate(-50%, -50%);
}

.va-cutout-archive-callout > p {
  margin: 0 0 13px;
  color: var(--va-archive-ink);
  font-family: "Noto Sans KR", Arial, sans-serif;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 800;
}

.va-cutout-archive-callout button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  width: 100%;
  padding: clamp(17px, 2.1vw, 28px);
  border: 2px solid var(--va-archive-ink);
  border-radius: 0;
  background: var(--va-archive-paper);
  color: var(--va-archive-ink);
  text-align: left;
  box-shadow: 8px 8px 0 var(--va-archive-ink);
  cursor: pointer;
  pointer-events: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.va-cutout-cta-scene.is-current,
.va-cutout-cta-scene.is-current .va-cutout-archive-callout,
.va-cutout-cta-scene.is-current .va-cutout-archive-callout button {
  pointer-events: auto;
}

.va-cutout-archive-callout button:disabled {
  cursor: default;
  pointer-events: none;
}

.va-cutout-archive-callout button span {
  grid-column: 1;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(15px, 2.1vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.va-cutout-archive-callout button small {
  grid-column: 1;
  margin-top: 9px;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(6px, 0.65vw, 9px);
  line-height: 1.45;
}

.va-cutout-archive-callout button b {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding-left: 16px;
  font-family: Arial, sans-serif;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 400;
  transition: transform 160ms ease;
}

@media (hover: hover) {
  .va-cutout-archive-callout button:not(:disabled):hover {
    background: #fff;
    box-shadow: 3px 3px 0 var(--va-archive-ink);
    transform: translate(5px, 5px) rotate(-0.5deg);
  }

  .va-cutout-archive-callout button:not(:disabled):hover b {
    transform: translateX(8px);
  }
}

.va-cutout-archive-callout button:focus-visible,
.va-photo-archive button:focus-visible,
.va-photo-archive a:focus-visible {
  outline: 3px solid #7565ff;
  outline-offset: 4px;
}

/* Full-screen saved-photo archive. */
html.is-vrown-archive-open,
html.is-vrown-archive-open body {
  overflow: hidden !important;
}

.va-photo-archive {
  position: fixed;
  z-index: 60000;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--va-archive-paper);
  background: var(--va-archive-ink);
  overflow: auto;
  overscroll-behavior: contain;
}

.va-photo-archive:not([open]) {
  display: none;
}

.va-photo-archive[open] {
  display: block;
  animation: va-archive-enter 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.va-photo-archive::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(3px);
}

@keyframes va-archive-enter {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.va-photo-archive-shell {
  min-height: 100%;
  background: var(--va-archive-ink);
}

.va-photo-archive-bar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 14px
    max(18px, env(safe-area-inset-left));
  border-bottom: 2px solid var(--va-archive-ink);
  background: var(--va-archive-yellow);
  color: var(--va-archive-ink);
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(7px, 0.75vw, 10px);
}

.va-photo-archive-bar a,
.va-photo-archive-bar button {
  color: inherit;
  font: inherit;
}

.va-photo-archive-bar a {
  text-decoration: none;
}

.va-photo-archive-bar button {
  padding: 8px 9px;
  border: 1.5px solid currentColor;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.va-photo-archive-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.2fr);
  grid-template-rows: auto auto;
  align-items: end;
  gap: 24px;
  min-height: min(76svh, 760px);
  padding: clamp(54px, 8vw, 120px) clamp(20px, 5vw, 76px);
  background: var(--va-archive-yellow);
  color: var(--va-archive-ink);
}

.va-photo-archive-intro p {
  align-self: start;
  max-width: 320px;
  margin: 0;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(8px, 0.9vw, 12px);
  line-height: 1.7;
}

.va-photo-archive-intro h2 {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  font-family: Arial Black, Impact, sans-serif;
  font-size: clamp(72px, 13vw, 190px);
  font-weight: 900;
  line-height: 0.74;
  letter-spacing: -0.09em;
  text-align: right;
}

.va-photo-archive-intro > span {
  align-self: end;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(7px, 0.7vw, 10px);
}

.va-photo-archive-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 2.1vw, 34px);
  padding: clamp(28px, 5vw, 78px);
}

.va-photo-archive-card {
  grid-column: span 5;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(8px, 0.9vw, 13px);
  border: 0;
  border-radius: 0;
  background: var(--va-archive-paper);
  color: var(--va-archive-ink);
  text-align: left;
  box-shadow: 8px 8px 0 rgba(254, 240, 25, 0.95);
  cursor: zoom-in;
  transform: rotate(var(--archive-tilt, -0.5deg));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.va-photo-archive-card:nth-child(3n + 2) {
  --archive-tilt: 0.7deg;
}

.va-photo-archive-card:nth-child(4n) {
  --archive-tilt: -1deg;
}

.va-photo-archive-card.is-wide {
  grid-column: span 7;
}

.va-photo-archive-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #111;
}

.va-photo-archive-card span {
  display: block;
  padding: 11px 2px 2px;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(6px, 0.62vw, 9px);
  line-height: 1.45;
}

@media (hover: hover) {
  .va-photo-archive-card:hover {
    z-index: 2;
    box-shadow: 3px 3px 0 rgba(254, 240, 25, 0.95);
    transform: translate(5px, 5px) rotate(0deg);
  }
}

.va-photo-archive-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: clamp(40px, 7vw, 100px) clamp(20px, 5vw, 76px)
    max(clamp(40px, 7vw, 100px), env(safe-area-inset-bottom));
  border-top: 2px solid var(--va-archive-paper);
  font-family: "Press Start 2P", "Courier New", monospace;
}

.va-photo-archive-footer strong {
  font-size: clamp(14px, 2vw, 28px);
  line-height: 1.3;
}

.va-photo-archive-footer button {
  padding: 14px 16px;
  border: 2px solid var(--va-archive-yellow);
  border-radius: 0;
  background: var(--va-archive-yellow);
  color: var(--va-archive-ink);
  font: inherit;
  font-size: clamp(7px, 0.72vw, 10px);
  cursor: pointer;
}

.va-photo-archive-viewer {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(13, 13, 11, 0.98);
  color: var(--va-archive-paper);
}

.va-photo-archive-viewer[hidden] {
  display: none !important;
}

.va-photo-archive-viewer > button {
  justify-self: start;
  padding: 11px 12px;
  border: 1.5px solid var(--va-archive-yellow);
  border-radius: 0;
  background: var(--va-archive-yellow);
  color: var(--va-archive-ink);
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(7px, 0.72vw, 10px);
  cursor: pointer;
}

.va-photo-archive-viewer figure {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 0;
  margin: 0;
  padding: 20px 0 0;
}

.va-photo-archive-viewer img {
  display: block;
  max-width: min(92vw, 1280px);
  max-height: calc(100svh - 138px);
  object-fit: contain;
}

.va-photo-archive-viewer figcaption {
  width: min(92vw, 1280px);
  margin-top: 12px;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(6px, 0.65vw, 9px);
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 900px) {
  .va-cutout-red-walk {
    --cutout-width: min(64vw, 560px);
    left: 18vw;
  }

  .va-cutout-green-back {
    --cutout-width: min(68vw, 620px);
    left: -12vw;
  }

  .va-cutout-car-pose {
    --cutout-width: min(54vw, 480px);
    --cutout-shift-x: 6%;
    top: 0;
    left: 49vw;
  }

  .va-cutout-mask-table {
    --cutout-width: min(82vw, 740px);
    --cutout-shift-x: -4%;
    top: 23svh;
    left: -15vw;
  }

  .va-cutout-mask-portrait {
    --cutout-width: min(72vw, 640px);
    --cutout-shift-x: 6%;
    top: 11svh;
    left: 42vw;
  }

  .va-cutout-mask-crouch {
    --cutout-width: min(74vw, 660px);
    --cutout-shift-x: 7%;
    top: 29svh;
    left: 21vw;
  }

  .va-cutout-vintage-chair {
    --cutout-width: min(50vw, 450px);
    --cutout-shift-x: 8%;
    top: 0;
  }

  .va-cutout-vintage-chair {
    left: 53vw;
  }

  .va-cutout-archive-callout {
    left: 50%;
    width: min(58vw, 500px);
  }

  .va-photo-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .va-photo-archive-card,
  .va-photo-archive-card.is-wide {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .va-cutout-red-walk {
    --cutout-width: 88vw;
    top: clamp(-64px, -8svh, -28px);
    left: 6vw;
  }

  .va-cutout-green-back {
    --cutout-width: 105vw;
    top: clamp(-72px, -12svh, -38px);
    left: -30vw;
  }

  .va-cutout-car-pose {
    --cutout-width: 82vw;
    --cutout-shift-x: 5%;
    top: 2svh;
    left: 35vw;
  }

  .va-cutout-yellow-run {
    --cutout-width: 112vw;
    top: 12svh;
    left: -34vw;
  }

  .va-cutout-yellow-standing {
    --cutout-width: 130vw;
    top: 1svh;
    left: 16vw;
  }

  .va-cutout-mask-table {
    --cutout-width: 118vw;
    --cutout-shift-x: -5%;
    top: 29svh;
    left: -38vw;
  }

  .va-cutout-mask-portrait {
    --cutout-width: 100vw;
    --cutout-shift-x: 6%;
    top: 14svh;
    left: 27vw;
  }

  .va-cutout-mask-crouch {
    --cutout-width: 104vw;
    --cutout-shift-x: 7%;
    top: 35svh;
    left: 7vw;
  }

  .va-cutout-chair-seated {
    --cutout-width: 150vw;
    top: 3svh;
    left: -50vw;
  }

  .va-cutout-rug-crouch {
    --cutout-width: 118vw;
    top: 15svh;
    left: 1vw;
  }

  .va-cutout-vintage-chair {
    --cutout-width: 76vw;
    --cutout-shift-x: 9%;
    top: 10svh;
    left: 46vw;
  }

  .va-cutout-tiny-crouch {
    --cutout-width: 145vw;
    top: -2svh;
    left: -58vw;
  }

  .va-cutout-archive-callout {
    top: 56%;
    left: 50%;
    width: 78vw;
  }

  .va-cutout-archive-callout > p {
    margin-bottom: 9px;
    font-size: 11px;
  }

  .va-cutout-archive-callout button {
    padding: 16px;
    box-shadow: 6px 6px 0 var(--va-archive-ink);
  }

  .va-cutout-archive-callout button span {
    font-size: clamp(14px, 5vw, 21px);
  }

  .va-photo-archive-bar {
    min-height: 50px;
  }

  .va-photo-archive-intro {
    display: flex;
    min-height: 62svh;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    padding: 42px 18px 30px;
  }

  .va-photo-archive-intro h2 {
    font-size: clamp(72px, 26vw, 118px);
    text-align: left;
  }

  .va-photo-archive-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 26px 18px 54px;
  }

  .va-photo-archive-card,
  .va-photo-archive-card.is-wide {
    grid-column: 1;
    box-shadow: 6px 6px 0 rgba(254, 240, 25, 0.95);
  }

  .va-photo-archive-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-height: 620px) and (min-width: 621px) {
  .va-cutout-red-walk {
    --cutout-width: min(37vw, 480px);
  }

  .va-cutout-green-back {
    --cutout-width: min(44vw, 570px);
  }

  .va-cutout-mask-table {
    top: 21svh;
  }

  .va-cutout-archive-callout {
    top: 57%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-site-page="vrown"] .va-tiny-clone.is-reduced-motion,
  body[data-site-page="vrown"] .va-tiny-clone.is-reduced-motion .va-tiny-surface,
  body[data-site-page="vrown"] .va-tiny-clone.is-reduced-motion .va-tiny-canvas {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: var(--va-archive-yellow) !important;
  }

  body[data-site-page="vrown"] .va-tiny-clone.is-reduced-motion .va-cutout-scene {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 88svh !important;
    min-height: 620px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  body[data-site-page="vrown"] .va-tiny-clone.is-reduced-motion .va-cutout-layer,
  .va-photo-archive[open],
  .va-photo-archive-card,
  .va-photo-archive-card:hover {
    animation: none !important;
    transition: none !important;
  }

  body[data-site-page="vrown"] .va-tiny-clone.is-reduced-motion .va-cutout-archive-callout button {
    pointer-events: auto;
  }
}

/* Infinite cutout deck: only the current cutout is interactive. */
html.is-vrown-full-photo-open {
  overflow: hidden;
}

body[data-site-page="vrown"] .va-cutout-photo-button {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  pointer-events: none;
}

body[data-site-page="vrown"] .va-cutout-open-cue {
  display: none !important;
}

body[data-site-page="vrown"]
  .va-cutout-scene.is-current
  .va-cutout-photo-button
  .va-cutout-layer {
  pointer-events: auto;
  cursor: zoom-in;
  touch-action: manipulation;
  transition: filter 160ms ease;
}

body[data-site-page="vrown"] .va-cutout-scene.is-next {
  clip-path: inset(0 0 0 84%);
}

body[data-site-page="vrown"]
  .va-cutout-scene.is-next
  .va-cutout-layer {
  left: 102% !important;
  pointer-events: none;
  animation: none !important;
  filter: drop-shadow(3px 5px 0 rgba(13, 13, 11, 0.08));
  transform: translate3d(calc(-50% + var(--cutout-shift-x, 0%)), 0, 0)
    rotate(var(--cutout-rotate, 0deg)) scale(0.78);
}

body[data-site-page="vrown"]
  .va-cutout-scene.is-next.is-peeking
  .va-cutout-layer {
  pointer-events: auto;
  cursor: e-resize;
  touch-action: manipulation;
}

body[data-site-page="vrown"]
  .va-cutout-photo-button:focus-visible
  .va-cutout-layer {
  filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 8px var(--va-archive-ink))
    drop-shadow(5px 7px 0 rgba(13, 13, 11, 0.11));
}

body[data-site-page="vrown"]
  .va-tiny-clone.is-reduced-motion
  .va-cutout-photo-button
  .va-cutout-layer {
  pointer-events: auto;
  cursor: zoom-in;
}

@media (hover: hover) and (pointer: fine) {
  body[data-site-page="vrown"]
    .va-cutout-scene.is-current
    .va-cutout-photo-button:hover
    .va-cutout-layer {
    filter: drop-shadow(0 0 2px var(--va-archive-yellow))
      drop-shadow(0 0 9px rgba(13, 13, 11, 0.72))
      drop-shadow(5px 7px 0 rgba(13, 13, 11, 0.11));
  }

}

@media (max-width: 720px) {
  body[data-site-page="vrown"] .va-cutout-scene.is-next {
    clip-path: inset(0 0 0 88%);
  }

  body[data-site-page="vrown"]
    .va-cutout-scene.is-next
    .va-cutout-layer {
    left: 90.5% !important;
  }
}

/* Full original photo opened directly from a cutout. */
.va-cutout-full-dialog {
  position: fixed;
  z-index: 9999;
  inset: 0;
  box-sizing: border-box;
  width: min(calc(100vw - 48px), 1100px);
  max-width: 1100px;
  height: min(86svh, 820px);
  max-height: 820px;
  margin: auto;
  padding: clamp(64px, 7svh, 74px) clamp(58px, 6vw, 82px) clamp(54px, 6svh, 68px);
  border: 2px solid var(--va-archive-yellow);
  border-radius: 0;
  background: rgba(13, 13, 11, 0.97);
  color: var(--va-archive-paper);
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.va-cutout-full-dialog::backdrop {
  background: rgba(13, 13, 11, 0.68);
  backdrop-filter: blur(5px);
}

.va-cutout-full-dialog[open] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.5vw, 30px);
  animation: va-cutout-modal-enter 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.va-cutout-full-dialog[open]::backdrop {
  animation: va-cutout-backdrop-enter 180ms ease-out both;
}

@keyframes va-cutout-modal-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes va-cutout-backdrop-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.va-cutout-full-bar {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: clamp(54px, 7svh, 70px);
  padding: 0 clamp(16px, 2.4vw, 34px);
  border-bottom: 1px solid rgba(245, 240, 223, 0.3);
  background: var(--va-archive-ink);
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(7px, 0.62vw, 10px);
  letter-spacing: -0.03em;
}

.va-cutout-full-bar p,
.va-cutout-full-bar span {
  margin: 0;
}

.va-cutout-full-bar span {
  color: var(--va-archive-yellow);
}

.va-cutout-full-bar button {
  justify-self: end;
  padding: 10px 12px;
  border: 1px solid var(--va-archive-paper);
  border-radius: 0;
  background: transparent;
  color: var(--va-archive-paper);
  font: inherit;
  cursor: pointer;
}

.va-cutout-full-bar button:is(:hover, :focus-visible) {
  outline: 0;
  background: var(--va-archive-yellow);
  color: var(--va-archive-ink);
}

.va-cutout-full-figure {
  position: relative;
  z-index: 1;
  grid-column: 2;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.va-cutout-full-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(calc(86svh - 148px), 672px);
  object-fit: contain;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.va-cutout-full-dialog[data-photo-direction="previous"] .va-cutout-full-figure img.is-changing {
  --va-full-photo-enter-x: -18px;
}

.va-cutout-full-dialog[data-photo-direction="next"] .va-cutout-full-figure img.is-changing {
  --va-full-photo-enter-x: 18px;
}

.va-cutout-full-figure img.is-changing {
  animation: va-cutout-photo-change 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes va-cutout-photo-change {
  from {
    opacity: 0.18;
    transform: translateX(var(--va-full-photo-enter-x, 0)) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.va-cutout-full-figure figcaption {
  position: absolute;
  right: clamp(16px, 2.4vw, 34px);
  bottom: clamp(18px, 2.5svh, 28px);
  left: clamp(16px, 2.4vw, 34px);
  color: rgba(245, 240, 223, 0.76);
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(6px, 0.56vw, 9px);
  line-height: 1.55;
  text-align: center;
}

.va-cutout-full-nav {
  position: relative;
  z-index: 20;
  display: grid;
  place-items: center;
  width: clamp(42px, 4.2vw, 60px);
  aspect-ratio: 1;
  padding: 0;
  border: 1.5px solid var(--va-archive-yellow);
  border-radius: 50%;
  background: transparent;
  color: var(--va-archive-yellow);
  font-family: Arial, sans-serif;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.va-cutout-full-nav::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
}

.va-cutout-full-nav.is-prev {
  grid-column: 1;
}

.va-cutout-full-nav.is-next {
  grid-column: 3;
}

.va-cutout-full-nav:is(:hover, :focus-visible) {
  outline: 0;
  background: var(--va-archive-yellow);
  color: var(--va-archive-ink);
  transform: scale(1.06);
}

.va-cutout-full-nav:active {
  transform: scale(0.92);
}

@media (max-width: 620px) {
  .va-cutout-full-dialog {
    width: calc(100vw - 24px);
    height: min(86svh, 760px);
    max-height: 760px;
    padding: 60px 12px 66px;
    border-width: 1.5px;
  }

  .va-cutout-full-dialog[open] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .va-cutout-full-bar {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .va-cutout-full-bar p {
    overflow: hidden;
    white-space: nowrap;
  }

  .va-cutout-full-figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .va-cutout-full-figure img {
    max-height: min(calc(86svh - 156px), 604px);
  }

  .va-cutout-full-nav {
    width: 100%;
    height: 44px;
    aspect-ratio: auto;
    border-radius: 0;
    font-size: 24px;
  }

  .va-cutout-full-nav.is-prev {
    grid-column: 1;
    grid-row: 2;
  }

  .va-cutout-full-nav.is-next {
    grid-column: 2;
    grid-row: 2;
  }

  .va-cutout-full-figure figcaption {
    bottom: 122px;
    padding: 0 14px;
    font-size: 6px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .va-cutout-full-dialog *,
  .va-cutout-full-dialog *::before,
  .va-cutout-full-dialog *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Two-up spot-the-difference game inside the full-photo viewer. */
.va-cutout-full-dialog {
  width: min(calc(100vw - 32px), 1720px);
  max-width: 1720px;
  height: min(98svh, 1100px);
  max-height: 1100px;
  padding: clamp(48px, 5svh, 64px) clamp(54px, 5vw, 84px) clamp(30px, 3.5svh, 46px);
}

.va-cutout-full-dialog[open] {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.5vw, 22px);
}

.va-cutout-full-bar {
  min-height: clamp(52px, 6.5svh, 66px);
}

.va-cutout-full-figure {
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  overflow: visible;
}

.va-spot-game {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(8px, 1.1svh, 13px);
  width: 100%;
  min-width: 0;
  min-height: 0;
  isolation: isolate;
}

.va-spot-game::after {
  content: "";
  position: absolute;
  z-index: 18;
  inset: 30px 0 14px;
  border: 0 solid var(--va-archive-yellow);
  opacity: 0;
  pointer-events: none;
}

.va-spot-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 25px;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(6px, 0.55vw, 9px);
  line-height: 1.45;
}

.va-spot-status strong {
  color: var(--va-archive-paper);
  font-weight: 400;
}

.va-spot-status span {
  padding: 7px 9px;
  border: 1px solid var(--va-archive-yellow);
  color: var(--va-archive-yellow);
  white-space: nowrap;
}

.va-spot-status span[data-complete="true"] {
  background: var(--va-archive-yellow);
  color: var(--va-archive-ink);
}

.va-spot-boards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}

.va-spot-board {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-width: 120px;
  min-height: 120px;
  border: 1px solid rgba(254, 240, 25, 0.72);
  background: #050504;
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.va-cutout-full-figure .va-spot-board > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: fill !important;
  box-shadow: none !important;
  user-select: none;
  -webkit-user-drag: none;
}

.va-spot-board-label {
  position: absolute;
  z-index: 7;
  top: 7px;
  left: 7px;
  padding: 6px 7px;
  border: 1px solid var(--va-archive-yellow);
  background: rgba(13, 13, 11, 0.88);
  color: var(--va-archive-yellow);
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(5px, 0.44vw, 7px);
  line-height: 1;
  pointer-events: none;
}

.va-spot-hit-layer {
  position: absolute;
  inset: 0;
}

.va-spot-hit-layer {
  z-index: 5;
}

.va-spot-hotspot {
  position: absolute;
  top: var(--spot-y);
  left: var(--spot-x);
  width: max(44px, var(--spot-hit-width, var(--spot-width)));
  height: max(44px, var(--spot-hit-height, var(--spot-height)));
  transform: translate(-50%, -50%);
}

.va-spot-hotspot {
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 20%;
  outline: 0;
  background: transparent;
  color: transparent;
  opacity: 0;
  pointer-events: auto;
  touch-action: manipulation;
}

.va-spot-hotspot:focus-visible {
  opacity: 1;
  outline: 2px dashed var(--va-archive-yellow);
  outline-offset: 2px;
}

.va-spot-change {
  position: absolute;
  z-index: 1;
  top: var(--spot-y);
  left: var(--spot-x);
  display: grid;
  place-items: center;
  width: max(44px, calc(var(--spot-width) * 1.8));
  height: max(44px, calc(var(--spot-height) * 1.8));
  border: 2px solid #111;
  color: #111;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(22px, 2.8vw, 40px);
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-7deg);
  box-shadow: 3px 3px 0 rgba(13, 13, 11, 0.72);
}

.va-spot-change.is-v-sticker {
  border-radius: 50%;
  background: var(--va-archive-yellow);
}

.va-spot-change.is-signal-dot {
  border-radius: 32% 68% 54% 46%;
  background: #ef463b;
  color: #fffdf1;
  transform: translate(-50%, -50%) rotate(11deg);
}

.va-spot-change.is-paper-tab {
  background: #87d7e4;
  clip-path: polygon(12% 0, 100% 12%, 87% 100%, 0 86%);
  transform: translate(-50%, -50%) rotate(-12deg);
}

.va-spot-change.is-hinted {
  animation: va-spot-hint 900ms ease-in-out infinite alternate;
}

@keyframes va-spot-hint {
  to {
    box-shadow: 0 0 0 5px rgba(254, 240, 25, 0.46), 3px 3px 0 rgba(13, 13, 11, 0.72);
    transform: translate(-50%, -50%) scale(1.14) rotate(-7deg);
  }
}

.va-spot-marker {
  position: absolute;
  z-index: 4;
  top: var(--spot-y);
  left: var(--spot-x);
  display: grid;
  place-items: center;
  width: clamp(30px, 4.2vw, 60px);
  aspect-ratio: 1;
  color: #d51f18;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(28px, 4vw, 58px);
  line-height: 0.8;
  text-shadow: 1px 1px 0 #fff;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-8deg);
  transform-origin: center;
  filter: drop-shadow(1px 2px 0 rgba(13, 13, 11, 0.62));
}

.va-cutout-full-figure .va-spot-marker img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  box-shadow: none !important;
}

.va-spot-marker.is-new {
  animation: va-ketchup-mark 360ms cubic-bezier(0.2, 0.9, 0.25, 1.35) both;
}

@keyframes va-ketchup-mark {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-18deg) scale(2.1);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-8deg) scale(1);
  }
}

.va-spot-miss {
  position: absolute;
  z-index: 8;
  width: 15px;
  height: 15px;
  border: 3px solid #ec262c;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-10deg);
  animation: va-spot-miss 520ms ease-out both;
}

.va-spot-miss::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 21px;
  height: 2px;
  background: #ec262c;
  transform: rotate(-24deg);
}

@keyframes va-spot-miss {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4) rotate(-10deg);
  }
  24% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05) rotate(-10deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9) rotate(-10deg);
  }
}

.va-spot-timer {
  --va-timer-progress: 0;
  --va-runner-size: clamp(58px, 6.2vw, 84px);
  --va-runner-speed: 300ms;
  --va-track-half: 3px;
  position: relative;
  z-index: 10;
  min-height: clamp(56px, 7.5svh, 76px);
  padding-inline: calc(var(--va-runner-size) * 0.54);
  overflow: visible;
}

.va-spot-timer-track {
  position: absolute;
  top: 50%;
  right: calc(var(--va-runner-size) * 0.54);
  left: calc(var(--va-runner-size) * 0.54);
  height: 5px;
  background: rgba(245, 240, 223, 0.22);
  box-shadow: 0 0 0 1px rgba(245, 240, 223, 0.12);
  transform: translateY(-50%);
}

.va-spot-timer-spent,
.va-spot-timer-remaining {
  position: absolute;
  top: 0;
  bottom: 0;
}

.va-spot-timer-spent {
  left: 0;
  width: calc(var(--va-timer-progress) * 100%);
  background: rgba(245, 240, 223, 0.14);
}

.va-spot-timer-remaining {
  right: 0;
  left: calc(var(--va-timer-progress) * 100%);
  background: var(--va-archive-yellow);
  box-shadow: 0 0 12px rgba(254, 240, 25, 0.42);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.va-spot-timer-finish {
  position: absolute;
  top: 50%;
  right: -7px;
  width: 10px;
  height: 31px;
  border: 1px solid rgba(245, 240, 223, 0.75);
  background: repeating-conic-gradient(
    var(--va-archive-paper) 0 25%,
    var(--va-archive-ink) 0 50%
  ) 0 0 / 6px 6px;
  transform: translateY(-50%);
}

.va-spot-timer-runner {
  position: absolute;
  z-index: 2;
  top: auto;
  bottom: calc(50% + var(--va-track-half));
  left: calc(var(--va-timer-progress) * 100%);
  width: var(--va-runner-size);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translateX(-50%);
  transition: filter 180ms ease;
}

.va-spot-timer-runner::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 27%;
  bottom: -4px;
  width: 25%;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  filter: blur(2px);
  transform: skewX(-18deg);
}

.va-cutout-full-figure .va-spot-timer-runner img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  box-shadow: none !important;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.58));
  transform-origin: 50% 76%;
  z-index: 1;
}

.va-spot-timer-runner .is-frame-one {
  --va-foot-offset: 11.6%;
  animation: va-timer-frame-one var(--va-runner-speed) steps(1, end) infinite;
}

.va-spot-timer-runner .is-frame-two {
  --va-foot-offset: 4.7%;
  animation: va-timer-frame-two var(--va-runner-speed) steps(1, end) infinite;
}

@keyframes va-timer-frame-one {
  0%, 49% { opacity: 1; transform: translateY(var(--va-foot-offset)) rotate(-1deg); }
  50%, 100% { opacity: 0; transform: translateY(var(--va-foot-offset)) rotate(1deg); }
}

@keyframes va-timer-frame-two {
  0%, 49% { opacity: 0; transform: translateY(var(--va-foot-offset)) rotate(1deg); }
  50%, 100% { opacity: 1; transform: translateY(var(--va-foot-offset)) rotate(-1deg); }
}

.va-spot-timer[data-urgency="warning"] {
  --va-runner-speed: 240ms;
}

.va-spot-timer[data-urgency="warning"] .va-spot-timer-remaining {
  background: #ff9f1c;
  box-shadow: 0 0 15px rgba(255, 159, 28, 0.58);
}

.va-spot-timer[data-urgency="critical"] {
  --va-runner-speed: 170ms;
}

.va-spot-timer[data-urgency="critical"] .va-spot-timer-remaining {
  background: #ff3439;
  box-shadow: 0 0 18px rgba(255, 52, 57, 0.72);
  animation: va-timer-critical 620ms ease-in-out infinite alternate;
}

.va-spot-timer.is-complete .va-spot-timer-runner {
  filter: drop-shadow(0 0 9px rgba(254, 240, 25, 0.78));
}

@keyframes va-timer-critical {
  to { opacity: 0.56; }
}

.va-spot-timeout {
  position: absolute;
  z-index: 22;
  inset: 30px 0 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(7, 7, 6, 0.86);
  backdrop-filter: blur(5px);
}

.va-spot-timeout[hidden] {
  display: none;
}

.va-spot-timeout strong {
  color: var(--va-archive-yellow);
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(20px, 3.4vw, 52px);
  line-height: 1;
  text-shadow: 4px 4px 0 rgba(255, 52, 57, 0.72);
}

.va-spot-timeout > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.va-spot-timeout button {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--va-archive-yellow);
  background: var(--va-archive-ink);
  color: var(--va-archive-yellow);
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(5px, 0.55vw, 8px);
  cursor: pointer;
}

.va-spot-timeout button:is(:hover, :focus-visible) {
  outline: 0;
  background: var(--va-archive-yellow);
  color: var(--va-archive-ink);
}

.va-spot-game.is-timed-out .va-spot-board {
  pointer-events: none;
}

.va-spot-completion {
  position: absolute;
  z-index: 20;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 9px 10px;
  border: 2px solid var(--va-archive-yellow);
  background: rgba(13, 13, 11, 0.95);
  color: var(--va-archive-paper);
  font-family: "Press Start 2P", "Courier New", monospace;
  box-shadow: 5px 5px 0 rgba(254, 240, 25, 0.24);
  transform: translateX(-50%);
  transform-origin: center;
}

.va-spot-completion[hidden] {
  display: none;
}

.va-spot-completion-stamp {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 9px;
  row-gap: 5px;
  min-width: 0;
}

.va-spot-completion-mark {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: clamp(38px, 4vw, 54px);
  aspect-ratio: 1;
  color: #d51f18;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 0.8;
  text-shadow: 1px 1px 0 #fff;
  transform: rotate(-8deg);
  filter: drop-shadow(1px 2px 0 rgba(245, 240, 223, 0.35));
}

.va-cutout-full-figure .va-spot-completion-mark img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  box-shadow: none !important;
}

.va-spot-completion-stamp > span:not(.va-spot-completion-mark) {
  color: var(--va-archive-yellow);
  font-size: clamp(6px, 0.55vw, 9px);
  line-height: 1;
}

.va-spot-completion-stamp strong {
  overflow: hidden;
  font-size: clamp(7px, 0.7vw, 11px);
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}

.va-spot-completion button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--va-archive-yellow);
  border-radius: 0;
  background: var(--va-archive-yellow);
  color: var(--va-archive-ink);
  font: inherit;
  font-size: clamp(5px, 0.52vw, 8px);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.va-spot-completion button b {
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 0.7;
}

.va-spot-completion button:is(:hover, :focus-visible) {
  background: var(--va-archive-paper);
  outline: 2px solid var(--va-archive-yellow);
  outline-offset: 2px;
}

.va-spot-game.is-celebrating::after {
  animation: va-spot-frame-flash 900ms steps(2, end) both;
}

.va-spot-game.is-celebrating .va-spot-boards {
  animation: va-spot-collision 520ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.va-spot-game.is-celebrating .va-spot-completion {
  animation: va-spot-completion-land 1300ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

@keyframes va-spot-frame-flash {
  0% {
    border-width: 0;
    opacity: 0;
  }
  20% {
    border-width: 5px;
    opacity: 1;
  }
  55% {
    border-width: 2px;
    opacity: 0.8;
  }
  100% {
    border-width: 0;
    opacity: 0;
  }
}

@keyframes va-spot-collision {
  0%,
  100% {
    transform: translateX(0) rotate(0);
  }
  24% {
    transform: translateX(-5px) rotate(-0.2deg);
  }
  48% {
    transform: translateX(6px) rotate(0.2deg);
  }
  72% {
    transform: translateX(-2px) rotate(-0.08deg);
  }
}

@keyframes va-spot-completion-land {
  0% {
    bottom: 50%;
    opacity: 0;
    transform: translate(-50%, 50%) scale(1.7) rotate(-3deg);
  }
  18% {
    bottom: 50%;
    opacity: 1;
    transform: translate(-50%, 50%) scale(1.08) rotate(1deg);
  }
  62% {
    bottom: 50%;
    opacity: 1;
    transform: translate(-50%, 50%) scale(1) rotate(0);
  }
  100% {
    bottom: 18px;
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(0);
  }
}

.va-cutout-full-figure figcaption {
  position: static;
  width: 100%;
  padding-top: 8px;
  color: rgba(245, 240, 223, 0.66);
}

.va-cutout-full-dialog[data-photo-direction="previous"] .va-spot-game.is-changing {
  --va-full-photo-enter-x: -18px;
}

.va-cutout-full-dialog[data-photo-direction="next"] .va-spot-game.is-changing {
  --va-full-photo-enter-x: 18px;
}

.va-spot-game.is-changing {
  animation: va-cutout-photo-change 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (pointer: fine) {
  html.is-vrown-full-photo-open.has-space-cursor
    body[data-site-page="vrown"]
    .va-cutout-full-dialog,
  html.is-vrown-full-photo-open.has-space-cursor
    body[data-site-page="vrown"]
    .va-cutout-full-dialog * {
    cursor: default !important;
  }

  html.is-vrown-full-photo-open.has-space-cursor
    body[data-site-page="vrown"]
    .va-cutout-full-dialog
    button:not(.va-spot-hotspot) {
    cursor: pointer !important;
  }

  html.is-vrown-full-photo-open.has-space-cursor
    body[data-site-page="vrown"]
    .va-cutout-full-dialog
    .va-spot-board,
  html.is-vrown-full-photo-open.has-space-cursor
    body[data-site-page="vrown"]
    .va-cutout-full-dialog
    .va-spot-board
    * {
    cursor: url("assets/vrown-spot-difference/red-pencil-cursor.svg") 4 28, crosshair !important;
  }

  html.is-vrown-full-photo-open body[data-site-page="vrown"] .space-cursor,
  html.is-vrown-full-photo-open body[data-site-page="vrown"] .space-cursor-trails,
  html.is-vrown-spot-cursor body[data-site-page="vrown"] .space-cursor,
  html.is-vrown-spot-cursor body[data-site-page="vrown"] .space-cursor-trails,
  html.has-space-cursor:has(body[data-site-page="vrown"] .va-spot-board:hover) body[data-site-page="vrown"] .space-cursor,
  html.has-space-cursor:has(body[data-site-page="vrown"] .va-spot-board:hover) body[data-site-page="vrown"] .space-cursor-trails {
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

@media (max-width: 760px) {
  .va-cutout-full-dialog {
    width: calc(100vw - 12px);
    height: calc(100svh - 12px);
    max-height: none;
    padding: 58px 8px 52px;
  }

  .va-cutout-full-dialog[open] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
  }

  .va-cutout-full-bar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    min-height: 50px;
    padding: 0 10px;
    font-size: 5.5px;
  }

  .va-cutout-full-bar p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .va-cutout-full-bar button {
    padding: 8px 7px;
  }

  .va-cutout-full-figure {
    grid-column: 1;
    grid-row: 1;
  }

  .va-cutout-full-nav {
    position: absolute;
    z-index: 30;
    top: 50%;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 22px;
    transform: translateY(-50%);
  }

  .va-cutout-full-nav.is-prev {
    left: 4px;
    grid-column: auto;
    grid-row: auto;
  }

  .va-cutout-full-nav.is-next {
    right: 4px;
    grid-column: auto;
    grid-row: auto;
  }

  .va-cutout-full-nav:is(:hover, :focus-visible) {
    transform: translateY(-50%) scale(1.06);
  }

  .va-cutout-full-nav:active {
    transform: translateY(-50%) scale(0.92);
  }

  .va-spot-game {
    gap: 7px;
  }

  .va-spot-timer {
    --va-runner-size: clamp(48px, 15vw, 66px);
    --va-track-half: 2px;
    min-height: 50px;
  }

  .va-spot-timer-track {
    height: 4px;
  }

  .va-spot-timer-finish {
    height: 25px;
  }

  .va-spot-timeout {
    inset: 28px 0 0;
    gap: 15px;
  }

  .va-spot-status {
    gap: 8px;
    font-size: 5.5px;
  }

  .va-spot-status span {
    padding: 6px;
  }

  .va-spot-boards {
    justify-content: flex-start;
    gap: 10px;
    box-sizing: border-box;
    padding: 18px 46px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 46px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .va-spot-boards.is-mobile-landscape {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 4px 46px;
    overflow: hidden;
    scroll-padding: 0;
    scroll-snap-type: none;
    touch-action: manipulation;
  }

  .va-spot-boards::-webkit-scrollbar {
    display: none;
  }

  .va-spot-board {
    scroll-snap-align: center;
  }

  .va-spot-boards.is-mobile-landscape .va-spot-board {
    min-width: 0;
    min-height: 0;
    scroll-snap-align: none;
  }

  .va-spot-board-label {
    top: 5px;
    left: 5px;
    padding: 5px;
    font-size: 5px;
  }

  .va-spot-marker {
    width: clamp(28px, 10vw, 42px);
  }

  .va-spot-game.is-mobile-landscape .va-spot-marker {
    width: clamp(24px, 8vw, 34px);
  }

  .va-spot-completion {
    bottom: 25px;
    gap: 8px;
    max-width: calc(100% - 16px);
    padding: 7px 8px;
    box-shadow: 3px 3px 0 rgba(254, 240, 25, 0.24);
  }

  .va-spot-completion-mark {
    width: 36px;
    font-size: 34px;
  }

  .va-spot-completion-stamp {
    column-gap: 6px;
    row-gap: 4px;
  }

  .va-spot-completion-stamp > span:not(.va-spot-completion-mark),
  .va-spot-completion-stamp strong,
  .va-spot-completion button {
    font-size: 5px;
  }

  .va-spot-completion button {
    gap: 5px;
    min-height: 32px;
    padding: 7px;
  }

  .va-spot-completion button b {
    font-size: 16px;
  }

  @keyframes va-spot-completion-land {
    0% {
      bottom: 50%;
      opacity: 0;
      transform: translate(-50%, 50%) scale(1.32) rotate(-3deg);
    }
    18% {
      bottom: 50%;
      opacity: 1;
      transform: translate(-50%, 50%) scale(1.05) rotate(1deg);
    }
    62% {
      bottom: 50%;
      opacity: 1;
      transform: translate(-50%, 50%) scale(1) rotate(0);
    }
    100% {
      bottom: 25px;
      opacity: 1;
      transform: translateX(-50%) scale(1) rotate(0);
    }
  }

  .va-cutout-full-figure figcaption {
    padding: 5px 2px 0;
    font-size: 5.5px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .va-spot-timer-runner .is-frame-one {
    transform: translateY(var(--va-foot-offset));
  }

  .va-spot-timer-runner .is-frame-two {
    display: none;
  }
}
