/* ParkingCell theme, used by its product page and its homepage section.
   From the game (Games/parkingcell): the candy UI with sky and grass, navy ribbons, cream
   panels, the green play pill and round booster buttons, set in Paytone One. The board
   plays the first level: two cars move aside and the red car drives out. */

@font-face {
  font-family: "Paytone One";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/paytone-one-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Paytone One";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/paytone-one-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.pc-hero,
.pc-section,
.pc-band {
  --pc-sky: #9ecdf2;
  --pc-sky-light: #d8eeff;
  --pc-grass: #78c25c;
  --pc-grass-dark: #4f9a3c;
  --pc-asphalt: #7d848e;
  --pc-asphalt-dark: #5f6670;
  --pc-curb: #c9ced6;
  --pc-navy: #1d3f8f;
  --pc-blue: #2b62d8;
  --pc-ink: #1d2f5c;
  --pc-cream: #fff4dc;
  --pc-cream-edge: #f0d59a;
  --pc-green: #5ccf3a;
  --pc-green-dark: #2f8a1c;
  --pc-yellow: #ffd23f;
  --pc-red: #e8473f;
  --pc-display: "Paytone One", "Archivo", sans-serif;
  position: relative;
  isolation: isolate;
  color: var(--pc-ink);
  font-family: var(--font);
  font-weight: 600;
}

body.theme-parkingcell {
  background: #fff4dc;
}

.pc-wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.pc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Candy type: white letters with the navy outline the game uses. */
.pc-tagline {
  margin-top: 14px;
  color: #fff;
  font-family: var(--pc-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  -webkit-text-stroke: 7px var(--pc-navy);
  paint-order: stroke fill;
}

.pc-lead {
  margin-top: 16px;
  max-width: 44ch;
  color: var(--pc-ink);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
}

/* "Coming soon" as the game's green play pill, but not a link. */
.pc-actions .soon-store,
.pc-home .soon-store {
  min-height: 60px;
  padding: 7px 34px 10px;
  border: 5px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #8ee86a 0%, var(--pc-green) 55%, #45b42a 100%);
  box-shadow: 0 7px 0 var(--pc-green-dark), 0 14px 24px rgba(29, 47, 92, 0.25);
  color: #fff;
  text-align: center;
}

.pc-actions .soon-store .label,
.pc-home .soon-store .label {
  color: #eaffdf;
  font-family: var(--pc-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pc-actions .soon-store strong,
.pc-home .soon-store strong {
  font-family: var(--pc-display);
  font-size: 22px;
  font-weight: 400;
  -webkit-text-stroke: 5px var(--pc-green-dark);
  paint-order: stroke fill;
}

.pc-actions,
.pc-home .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 26px;
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 5px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #5b8ff0 0%, var(--pc-blue) 100%);
  box-shadow: 0 6px 0 var(--pc-navy);
  color: #fff;
  font-family: var(--pc-display);
  font-size: 19px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.pc-btn svg {
  width: 18px;
  height: 18px;
}

.pc-btn:hover,
.pc-btn:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.pc-stats,
.pc-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pc-stats li,
.pc-facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 16px 9px;
  border-radius: 999px;
  background: var(--pc-navy);
  box-shadow: 0 4px 0 #132a63;
  color: var(--pc-cream);
  font-size: 16px;
}

.pc-stats strong {
  color: #fff;
  font-family: var(--pc-display);
  font-size: 24px;
  font-weight: 400;
}

/* Clouds and the road along the bottom of the sky. */
.pc-cloud {
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 56px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.85;
}

.pc-cloud::before,
.pc-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
}

.pc-cloud::before {
  left: 30px;
  bottom: 20px;
  width: 70px;
  height: 70px;
}

.pc-cloud::after {
  left: 82px;
  bottom: 16px;
  width: 54px;
  height: 54px;
}

.pc-cloud--1 {
  top: 12%;
  left: 4%;
}

.pc-cloud--2 {
  top: 26%;
  right: 6%;
  transform: scale(0.7);
}

.pc-road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 74px;
  background:
    linear-gradient(var(--pc-grass) 0 16px, var(--pc-grass-dark) 16px 20px, transparent 20px),
    repeating-linear-gradient(90deg, var(--pc-yellow) 0 44px, transparent 44px 88px) 0 45px / 100% 6px no-repeat,
    var(--pc-asphalt);
}

/* The car park board */
.pc-lot {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
  padding: 18px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--pc-curb);
  box-shadow: 0 10px 0 #9aa1ab, 0 26px 44px rgba(29, 47, 92, 0.28);
}

.pc-board {
  position: relative;
  aspect-ratio: 1;
  container-type: size;
  border-radius: 14px;
  background-color: var(--pc-asphalt);
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 2px, transparent 2px calc(100% / 6)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.5) 0 2px, transparent 2px calc(100% / 6));
}

.pc-car {
  position: absolute;
  left: calc(var(--x) * 100% / 6 + 1.4%);
  top: calc(var(--y) * 100% / 6 + 1.4%);
  width: calc(var(--w) * 100% / 6 - 2.8%);
  height: calc(var(--h) * 100% / 6 - 2.8%);
  border-radius: 14px;
  background: var(--c);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18), inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 4px 0 rgba(0, 0, 0, 0.25);
}

.pc-car::before {
  content: "";
  position: absolute;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 0 0 3px rgba(29, 47, 92, 0.25);
}

.pc-car--h::before {
  inset: 20% 26% 20% 22%;
}

.pc-car--v::before {
  inset: 22% 20% 26% 20%;
}

.pc-car--red {
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.2), inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 4px 0 rgba(0, 0, 0, 0.25), 0 0 0 3px #fff;
}

/* The way out: a gap in the right curb with yellow arrows. */
.pc-exit {
  position: absolute;
  top: calc(var(--y) * 100% / 6);
  right: -18px;
  width: 18px;
  height: calc(100% / 6);
  background: var(--pc-asphalt);
}

.pc-exit::after {
  content: "";
  position: absolute;
  inset: 30% 3px;
  background: var(--pc-yellow);
  clip-path: polygon(0 0, 60% 50%, 0 100%, 25% 100%, 85% 50%, 25% 0);
}

/* Hero */
.pc-hero {
  overflow: hidden;
  padding: 28px 0 130px;
  background: linear-gradient(180deg, var(--pc-sky) 0%, var(--pc-sky-light) 100%);
}

.pc-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--pc-ink);
  font-size: 15px;
}

.pc-crumbs a {
  color: var(--pc-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}

.pc-logo {
  margin-top: clamp(20px, 3vw, 40px);
}

.pc-logo img,
.pc-home-logo img {
  width: clamp(250px, 32vw, 470px);
  height: auto;
  filter: drop-shadow(0 6px 0 rgba(29, 63, 143, 0.25));
}

/* Sections */
.pc-section {
  overflow-x: clip;
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--pc-sky-light);
}

.pc-section--cream {
  background: var(--pc-cream);
}

.pc-section--cream + .pc-section--cream {
  padding-top: 0;
}

.pc-section--asphalt {
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 3px), rgba(255, 255, 255, 0.35) calc(25% - 3px) 25%),
    var(--pc-asphalt);
  color: #fff;
}

.pc-section--grass {
  background: linear-gradient(180deg, var(--pc-grass) 0%, #6bb44f 100%);
}

/* Section titles on the game's navy ribbon. */
.pc-head {
  display: grid;
  justify-items: start;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.pc-head h2 span {
  display: inline-block;
  padding: 10px 44px 14px;
  background: var(--pc-blue);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 0 100%, 18px 50%);
  box-shadow: inset 0 -6px 0 var(--pc-navy);
  color: #fff;
  font-family: var(--pc-display);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  -webkit-text-stroke: 6px var(--pc-navy);
  paint-order: stroke fill;
}

.pc-note {
  max-width: 58ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
}

.pc-section--asphalt .pc-note,
.pc-section--grass .pc-note {
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

/* Feature cards */
.pc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  border: 0;
}

.pc-cards li {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 24px 28px;
  border: 5px solid var(--pc-cream-edge);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 8px 0 #e3c27a;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.35;
  text-align: center;
  transition: transform 0.2s ease;
}

.pc-cards li::before {
  content: none;
}

.pc-cards li:hover {
  transform: translateY(-6px);
}

.pc-cards img {
  width: 120px;
  height: auto;
}

/* Boosters: the round buttons from the bottom bar. */
.pc-boosters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.pc-boosters li {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.pc-round {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin-bottom: 8px;
  border: 6px solid #fff;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, var(--light), var(--tone));
  box-shadow: 0 8px 0 var(--dark), 0 14px 24px rgba(0, 0, 0, 0.3);
}

.pc-round img {
  width: 76%;
  height: auto;
}

.pc-round--blue { --light: #7aa6f7; --tone: var(--pc-blue); --dark: var(--pc-navy); }
.pc-round--yellow { --light: #ffe68a; --tone: #f5b821; --dark: #b07d0c; }
.pc-round--teal { --light: #74e0d2; --tone: #22a89a; --dark: #137066; }
.pc-round--purple { --light: #c3a2ff; --tone: #8a5ce8; --dark: #5b36a8; }

.pc-boosters strong {
  color: #fff;
  font-family: var(--pc-display);
  font-size: 26px;
  font-weight: 400;
  -webkit-text-stroke: 5px var(--pc-navy);
  paint-order: stroke fill;
}

.pc-boosters span:not(.pc-round) {
  max-width: 24ch;
  font-size: 16px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

/* Zones */
.pc-zones {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.pc-zones li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.pc-zones img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 24px;
  box-shadow: 0 8px 0 rgba(29, 63, 143, 0.35);
}

.pc-zone-num {
  margin-top: -22px;
  padding: 2px 12px 4px;
  border-radius: 999px;
  background: var(--pc-yellow);
  box-shadow: 0 3px 0 #b98d00;
  color: var(--pc-ink);
  font-family: var(--pc-display);
  font-size: 13px;
}

.pc-zones strong {
  color: #fff;
  font-family: var(--pc-display);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 400;
  line-height: 1.15;
  -webkit-text-stroke: 5px var(--pc-navy);
  paint-order: stroke fill;
}

/* Phones */
.pc-phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 290px));
  justify-content: center;
  gap: clamp(16px, 3vw, 44px);
}

.pc-phones a {
  display: block;
  overflow: hidden;
  border: 10px solid var(--pc-navy);
  border-radius: 38px;
  background: var(--pc-navy);
  box-shadow: 0 12px 0 rgba(29, 63, 143, 0.3);
  transition: transform 0.2s ease;
}

.pc-phones img {
  width: 100%;
  border-radius: 28px;
}

.pc-phones a:hover {
  transform: translateY(-8px) rotate(-1.5deg);
}

.pc-phones figcaption {
  margin-top: 14px;
  font-size: 16px;
  text-align: center;
}

/* Support and related on cream */
.pc-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(28px, 5vw, 80px);
  align-items: start;
}

.pc-section .link-list {
  display: grid;
  gap: 10px;
  border: 0;
}

.pc-section .link-list a {
  padding: 16px 22px;
  border: 4px solid var(--pc-cream-edge);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 5px 0 #e3c27a;
}

.pc-section .link-list strong {
  font-family: var(--pc-display);
  font-size: 21px;
  font-weight: 400;
}

.pc-section .link-list span {
  color: #5a6680;
}

.pc-section .link-list a:hover {
  background: var(--pc-blue);
  color: #fff;
  padding-left: 22px;
  padding-right: 22px;
}

.pc-more .rows {
  border-top-color: rgba(29, 47, 92, 0.3);
}

.pc-more .row {
  border-bottom-color: rgba(29, 47, 92, 0.3);
}

.pc-more .row:hover,
.pc-more .row:focus-visible {
  background: var(--pc-blue);
  color: #fff;
}

/* Homepage section */
.pc-band {
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) 0 140px;
  background: linear-gradient(180deg, var(--pc-sky) 0%, var(--pc-sky-light) 100%);
}

/* FishyCell's water meets ParkingCell's sky on the homepage. */
.fc-band:has(+ .pc-band) > .fc-wave:not(.fc-wave--top) {
  fill: #9ecdf2;
}

.pc-band .bar {
  font-family: var(--font);
}

.pc-band .bar .label,
.pc-band .text-link {
  color: var(--pc-ink);
}

.pc-band .text-link:hover {
  color: var(--pc-blue);
}

.pc-home {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  margin-top: clamp(28px, 4vw, 48px);
}

.pc-small {
  display: inline-block;
  margin-top: 20px;
  color: var(--pc-navy);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pc-small:hover {
  color: var(--pc-blue);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .pc-hero .pc-logo img {
    animation: pc-pop 0.8s 0.15s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  }

  .pc-hero .pc-tagline,
  .pc-hero .pc-lead,
  .pc-hero .pc-actions,
  .pc-hero .pc-stats li {
    animation: pc-rise 0.6s cubic-bezier(0.25, 1.3, 0.4, 1) both;
  }

  .pc-hero .pc-tagline { animation-delay: 0.45s; }
  .pc-hero .pc-lead { animation-delay: 0.55s; }
  .pc-hero .pc-actions { animation-delay: 0.65s; }
  .pc-hero .pc-stats li { animation-delay: calc(0.75s + var(--i) * 0.1s); }

  .pc-cloud {
    animation: pc-drift 60s linear infinite;
  }

  .pc-cloud--2 {
    animation-duration: 85s;
    animation-delay: -30s;
  }

  .pc-road {
    animation: pc-lane 1.2s linear infinite;
  }

  /* The first level, solved in a loop: E down, B down, the red car out. */
  .pc-move-1 {
    animation: pc-shift-1 6s ease-in-out infinite;
  }

  .pc-move-2 {
    animation: pc-shift-2 6s ease-in-out infinite;
  }

  .pc-move-3 {
    animation: pc-out 6s ease-in infinite;
  }

  .pc-actions .soon-store,
  .pc-home .soon-store {
    animation: pc-breathe 2.4s 1.4s ease-in-out infinite;
  }
}

@keyframes pc-pop {
  from { transform: scale(0.3) rotate(-6deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes pc-rise {
  from { transform: translateY(26px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes pc-drift {
  from { translate: -30vw 0; }
  to { translate: 120vw 0; }
}

@keyframes pc-lane {
  to { background-position: 0 0, 88px 45px, 0 0; }
}

@keyframes pc-shift-1 {
  0%, 12% { translate: 0 0; }
  20%, 86% { translate: 0 calc(100cqh / 6); }
  94%, 100% { translate: 0 0; }
}

@keyframes pc-shift-2 {
  0%, 28% { translate: 0 0; }
  36%, 86% { translate: 0 calc(100cqh / 6); }
  94%, 100% { translate: 0 0; }
}

@keyframes pc-out {
  0%, 46% { translate: 0 0; opacity: 1; }
  62% { translate: calc(100cqw / 6 * 4.6) 0; opacity: 1; }
  63%, 92% { translate: calc(100cqw / 6 * 4.6) 0; opacity: 0; }
  93% { translate: 0 0; opacity: 0; }
  100% { translate: 0 0; opacity: 1; }
}

@keyframes pc-breathe {
  50% { transform: scale(1.04); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pc-head h2,
    .pc-cards li,
    .pc-boosters li,
    .pc-zones li,
    .pc-phones figure,
    .pc-band .pc-home-copy > * {
      animation: pc-rise linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--i, 0) * 5%) entry 100%;
    }

    .pc-band .pc-lot {
      animation: pc-pop linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}

/* Layout */
@media (max-width: 1024px) {
  .pc-hero-grid,
  .pc-home,
  .pc-split {
    grid-template-columns: 1fr;
  }

  .pc-boosters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-zones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pc-cards {
    grid-template-columns: 1fr;
  }

  .pc-zones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-phones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .pc-phones a {
    border-width: 5px;
    border-radius: 20px;
  }

  .pc-phones img {
    border-radius: 14px;
  }

  .pc-phones figcaption {
    font-size: 13px;
  }

  .pc-round {
    width: 108px;
    height: 108px;
  }

  .pc-lot {
    padding: 12px;
  }

  .pc-exit {
    right: -12px;
    width: 12px;
  }
}
