/*---------------------------------------
  OUR WORK PAGE: "STAGE SELECT"
  (same arcade look as the team page)
-----------------------------------------*/

.work-page {
  --ink:      #0b1220;
  --ink-2:    #14223b;
  --gold:     #f1c111;
  --teal:     #057a8d;
  --red:      #e63946;
  --display:  'Bangers', 'Plain-Bold', sans-serif;
}

.work {
  background: var(--ink);
  color: var(--white-color);
  overflow: hidden;
}

.work h1,
.work h2 {
  color: var(--white-color);
}

/* HERO */
.work-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 120px 0 110px;
  text-align: center;
  background: radial-gradient(circle at 50% 60%, #0e5566 0%, var(--ink) 72%);
}

.work-hero::before {
  content: "";
  position: absolute;
  inset: -60%;
  z-index: -3;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.07) 0deg 3deg, transparent 3deg 10deg);
  animation: work-spin 80s linear infinite;
}

.work-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(241,193,17,.32) 1.3px, transparent 1.8px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 55%, transparent);
}

.work-hero__eyebrow {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: .25em;
  color: var(--gold);
  margin: 0;
}

.work-hero h1 {
  font-family: var(--display);
  font-size: clamp(64px, 12vw, 150px);
  line-height: .95;
  letter-spacing: .02em;
  margin: 18px 0 28px;
  transform: rotate(-4deg);
  text-shadow: 4px 4px 0 var(--teal), 8px 8px 0 var(--ink), 0 0 50px rgba(5,122,141,.8);
  animation: work-pop .9s cubic-bezier(.2, 1.6, .4, 1) both;
}

.work-hero h1 strong {
  display: inline-block;
  color: var(--gold);
  text-shadow: 4px 4px 0 var(--red), 8px 8px 0 var(--ink), 0 0 50px rgba(241,193,17,.6);
  animation: work-wobble 3s ease-in-out infinite;
}

.work-hero__lead {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 20px;
  color: rgba(255,255,255,.85);
}

.work .press-start {
  display: inline-block;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: .12em;
  color: var(--ink);
  background: var(--gold);
  padding: 10px 28px 6px;
  border: 3px solid var(--white-color);
  border-radius: 999px;
  box-shadow: 0 0 0 4px var(--ink), 0 0 30px rgba(241,193,17,.7);
  animation: work-blink 1.2s steps(2, jump-none) infinite;
}

.work .press-start:hover,
.work .press-start:focus {
  color: var(--ink);
  text-decoration: none;
  animation: none;
  transform: scale(1.06);
}

/* floating coins */
.coins span {
  position: absolute;
  bottom: -40px;
  z-index: -1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3b0 0 18%, var(--gold) 20% 62%, #b98c00 64%);
  box-shadow: inset 0 0 0 3px #b98c00;
  opacity: .8;
  animation: work-float 12s linear infinite;
}

.coins span:nth-child(1)  { left: 5%;  animation-delay: -1s;  animation-duration: 13s; }
.coins span:nth-child(2)  { left: 14%; animation-delay: -7s;  animation-duration: 10s; transform: scale(.7); }
.coins span:nth-child(3)  { left: 23%; animation-delay: -3s;  animation-duration: 14s; }
.coins span:nth-child(4)  { left: 32%; animation-delay: -10s; animation-duration: 11s; }
.coins span:nth-child(5)  { left: 41%; animation-delay: -5s;  animation-duration: 15s; }
.coins span:nth-child(6)  { left: 50%; animation-delay: -12s; animation-duration: 12s; }
.coins span:nth-child(7)  { left: 59%; animation-delay: -2s;  animation-duration: 10s; }
.coins span:nth-child(8)  { left: 68%; animation-delay: -8s;  animation-duration: 13s; }
.coins span:nth-child(9)  { left: 77%; animation-delay: -4s;  animation-duration: 11s; }
.coins span:nth-child(10) { left: 86%; animation-delay: -9s;  animation-duration: 14s; }
.coins span:nth-child(11) { left: 94%; animation-delay: -6s;  animation-duration: 12s; }
.coins span:nth-child(12) { left: 46%; animation-delay: -11s; animation-duration: 16s; }

/* STAGE SELECT */
.work-stages {
  padding: 80px 0 120px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}

.work-stages__title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: .04em;
  text-align: center;
  margin: 0 0 40px;
}

.work-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.work-filter {
  padding: 8px 16px 5px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .06em;
  color: var(--white-color);
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 12px;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.2, 1.6, .4, 1), border-color .2s, background .2s, color .2s;
}

.work-filter span {
  color: var(--gold);
  font-size: 16px;
}

.work-filter:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.work-filter[aria-pressed="true"] {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--white-color);
  box-shadow: 4px 4px 0 var(--red);
}

.work-filter[aria-pressed="true"] span {
  color: var(--red);
}

.work-filter:focus-visible,
.work-search input:focus-visible,
.stage-card:focus-visible {
  outline: 3px solid var(--white-color);
  outline-offset: 3px;
}

.work-search {
  position: relative;
  flex: 0 1 280px;
  margin: 0;
}

.work-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  font-size: 16px;
  color: var(--white-color);
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 12px;
  -webkit-appearance: none;
          appearance: none;
}

.work-search input::placeholder {
  color: rgba(255,255,255,.5);
}

.work-search .fa {
  position: absolute;
  top: 50%;
  left: 17px;
  transform: translateY(-50%);
  color: var(--gold);
}

.work-summary {
  margin: -24px 0 28px;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.55);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
  perspective: 1200px;
}

.work-grid > li {
  min-width: 0;
}

.work-grid li[hidden] {
  display: none;
}

/* stage card */
.stage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  color: var(--white-color);
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 3px solid rgba(255,255,255,.16);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .2s ease-out, border-color .2s, box-shadow .2s;
  animation: work-rise .6s ease-out both;
  -webkit-tap-highlight-color: transparent;
}

.work-grid li:nth-child(2) .stage-card { animation-delay: .08s; }
.work-grid li:nth-child(3) .stage-card { animation-delay: .16s; }
.work-grid li:nth-child(4) .stage-card { animation-delay: .24s; }
.work-grid li:nth-child(5) .stage-card { animation-delay: .32s; }
.work-grid li:nth-child(6) .stage-card { animation-delay: .4s; }

.stage-card:hover,
.stage-card:focus {
  color: var(--white-color);
  text-decoration: none;
}

/* hover effects only where there's a real mouse: on phones a tap or scroll
   leaves the card "hovered", which made it look like it grew */
@media (hover: hover) and (pointer: fine) {
  .stage-card:hover,
  .stage-card:focus-visible {
    border-color: var(--c2);
    box-shadow: 10px 10px 0 var(--c), 0 30px 60px rgba(0,0,0,.45);
  }

  .stage-card:hover .stage-card__art img,
  .stage-card:focus-visible .stage-card__art img {
    transform: scale(1.06);
  }

  .stage-card:hover .stage-card__go,
  .stage-card:focus-visible .stage-card__go {
    transform: translateX(6px);
  }
}

.stage-card__art {
  position: relative;
  display: block;
  flex: none;
  height: 0;
  padding-top: calc(66.667% - 19px); /* 3:2 of the box, minus its margins and borders */
  overflow: hidden;
  margin: 10px 10px 0;
  background: var(--c);
  border: 3px solid var(--ink);
  border-radius: 16px;
}

.stage-card__art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

/* holographic shine */
.stage-card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.4) 45%, rgba(255,214,255,.3) 50%, transparent 62%);
  background-size: 250% 100%;
  background-position: var(--mx, 100%) 0;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.stage-card__num {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px 1px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .06em;
  color: var(--ink);
  background: var(--c2);
  border: 3px solid var(--ink);
  border-radius: 10px;
  transform: rotate(-5deg);
}

.stage-card__stamp {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 12px 0;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: .08em;
  color: var(--white-color);
  background: var(--ink);
  border: 3px solid var(--white-color);
  border-radius: 10px;
  transform: rotate(6deg);
}

.stage-card--live .stage-card__stamp {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--ink);
  animation: work-shake 2.4s ease-in-out infinite;
}

.stage-card__body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 24px 22px;
}

.stage-card__icon {
  position: absolute;
  top: -36px;
  left: 20px;
  width: 72px;
  height: 72px;
  border: 3px solid var(--white-color);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--c);
}

.stage-card__name {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: .03em;
  margin-top: 4px;
  text-shadow: 3px 3px 0 var(--c);
}

.stage-card__category {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c2);
}

.stage-card__tagline {
  margin: 10px 0 16px;
  font-size: 15px;
  color: rgba(255,255,255,.8);
}

.work-badge {
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.1);
}

.work-badge--live {
  color: #0b3a20;
  background: #7be0a4;
}

.work-badge--beta {
  color: #fff;
  background: #2f7cf6;
}

.work-badge--soon {
  color: var(--ink);
  background: var(--gold);
}

.stage-card__go {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .1em;
  color: var(--c2);
  transition: transform .2s;
}

.work-empty {
  padding: 40px 0;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: .06em;
  text-align: center;
  color: var(--gold);
}

/* SAVE FILE */
.work-save {
  padding: 100px 0 110px;
  color: var(--ink);
  background:
    radial-gradient(rgba(11,18,32,.14) 1.4px, transparent 1.9px) 0 0 / 16px 16px,
    var(--gold);
  clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.work-save[hidden] {
  display: none;
}

.work-save h2 {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 84px);
  letter-spacing: .03em;
  text-align: center;
  color: var(--ink);
  margin: 0;
}

.work-save h2 strong {
  color: var(--red);
  text-shadow: 3px 3px 0 var(--ink);
}

.work-save__lead {
  text-align: center;
  font-size: 18px;
  color: var(--ink);
  margin: 6px 0 50px;
}

.save-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 34px 34px;
  background: var(--white-color);
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-1deg);
}

.save-card__slot {
  margin: 0;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #4a5363;
}

.save-card__percent {
  margin: 4px 0 14px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: .04em;
}

.save-card__percent b {
  font-size: 64px;
  font-weight: normal;
  line-height: 1;
  color: var(--red);
  text-shadow: 3px 3px 0 var(--ink);
}

.save-card__bar {
  position: relative;
  display: block;
  height: 22px;
  background: #e3e6ea;
  border: 3px solid var(--ink);
  transform: skewX(-20deg);
}

.save-card__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--v, 0) * 1%);
  background: repeating-linear-gradient(90deg, var(--red) 0 18px, #ff5c69 18px 24px);
  transform-origin: left;
  animation: work-grow 1.4s cubic-bezier(.2, .9, .3, 1) .3s both;
}

.save-counters {
  display: grid;
  grid-auto-flow: column; /* 3 boxes, or 4 while an app is in beta */
  grid-auto-columns: minmax(0, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.save-counters li {
  padding: 14px 10px 12px;
  text-align: center;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: #f1f3f5;
}

.save-counters .save-counters--live { background: #c9f2d9; }
.save-counters .save-counters--beta { background: #d6e6ff; }
.save-counters .save-counters--soon { background: #fff3c4; }

.save-counters b {
  display: block;
  font-family: var(--display);
  font-size: 44px;
  font-weight: normal;
  line-height: 1;
  color: var(--ink);
}

.save-counters span {
  font-size: 13px;
  color: #4a5363;
}

.save-next {
  margin: 60px 0 0;
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
  color: var(--white-color);
  text-shadow: 3px 3px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 8px 8px 0 var(--red);
  transform: rotate(-3deg);
}

.save-next span {
  display: inline-block;
  color: var(--red);
  text-shadow: 3px 3px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 8px 8px 0 var(--white-color);
  animation: work-blink 1.2s steps(2, jump-none) infinite;
}

/* CTA */
.work-cta {
  padding: 110px 0 120px;
  text-align: center;
  background: radial-gradient(circle at 50% 100%, #0e5566 0%, var(--ink) 65%);
}

.work .insert-coin {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: .3em;
  color: var(--gold);
  animation: work-blink 1.2s steps(2, jump-none) infinite;
}

.work-cta h2 {
  max-width: 760px;
  margin: 10px auto 40px;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: .03em;
}

.work-cta h2 strong {
  color: var(--gold);
}

.work .btn-start {
  display: inline-block;
  padding: 14px 40px 10px;
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--gold);
  border: 4px solid var(--white-color);
  border-radius: 16px;
  box-shadow: 8px 8px 0 var(--red);
  transition: transform .15s, box-shadow .15s;
}

.work .btn-start:hover,
.work .btn-start:focus {
  color: var(--ink);
  text-decoration: none;
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 var(--red);
}

/* KEYFRAMES */
@keyframes work-spin   { to { transform: rotate(360deg); } }
@keyframes work-blink  { 50% { opacity: .35; } }
@keyframes work-pop    { from { opacity: 0; transform: rotate(-4deg) scale(.4); } }
@keyframes work-wobble { 50% { transform: rotate(3deg) scale(1.05); } }
@keyframes work-grow   { from { transform: scaleX(0); } }
@keyframes work-rise   { from { opacity: 0; translate: 0 24px; } }
@keyframes work-shake {
  0%, 80%, 100% { transform: rotate(6deg); }
  84% { transform: translate(-3px, 2px) rotate(2deg); }
  88% { transform: translate(3px, -2px) rotate(10deg); }
  92% { transform: translate(-2px, 1px) rotate(4deg); }
  96% { transform: translate(2px, -1px) rotate(8deg); }
}
@keyframes work-float {
  from { transform: translateY(0) rotateY(0); opacity: 0; }
  10%  { opacity: .8; }
  to   { transform: translateY(-900px) rotateY(720deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .work *,
  .work *::before,
  .work *::after,
  .work-hero::before {
    animation: none !important;
    transition: none !important;
  }

  .coins {
    display: none;
  }
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .work-hero {
    padding: 80px 0;
  }

  .work-search {
    flex-basis: 100%;
  }

  .work-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .stage-card__name {
    font-size: 32px;
  }

  .save-card {
    padding: 24px 20px 26px;
  }

  .save-counters {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .save-counters li {
    display: flex;
    gap: 14px;
    align-items: center;
    text-align: left;
  }

  .save-counters b {
    font-size: 34px;
  }

  .save-next span {
    display: block;
    margin-top: 8px;
  }
}
