@charset "UTF-8";
:root {
  --side-padding-s: 50px;
  --side-padding-m: 7vw;
  --side-padding-l: 10vw;
  --side-padding-xl: 24vw;
  --edge: max(var(--side-padding-s), calc((100% - 1465px) / 2));
  --edge-reviews: max(var(--side-padding-s), calc((100% - 1161px) / 2));
  --edge-shop: max(var(--side-padding-s), calc((100% - 1421px) / 2));
}
@media (max-width: 900px) {
  :root {
    --side-padding-s: 30px;
    --side-padding-m: 5vw;
    --side-padding-l: 7vw;
    --side-padding-xl: 10vw;
  }
}
@media (max-width: 700px) {
  :root {
    --side-padding-s: 20px;
    --side-padding-m: 40px;
  }
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  color: #1b1b1b;
  background-color: #ffffff;
}

/* ----------------------------------------------------------------
   WIP PASSWORD GATE
----------------------------------------------------------------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #edf9ff 0%, #bfe4fb 100%);
}

html.unlocked .gate {
  display: none;
}

.gate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 380px;
  padding: 40px 34px;
  text-align: center;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.gate-card .gate-text {
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #5a5a5a;
}
.gate-card .gate-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  color: #000;
  background: #fff;
  border: 1px solid #c1c1c1;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
}
.gate-card .gate-input::placeholder {
  color: #cfcfcf;
}
.gate-card .gate-input.invalid {
  border-color: #e0584f;
  box-shadow: inset 0 0 4px rgba(224, 88, 79, 0.4);
}
.gate-card .gate-btn {
  width: 100%;
  margin-top: 14px;
  padding: 12px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #7fce5a 0%, #54ac32 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55), 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: filter 0.2s ease-in-out;
}
.gate-card .gate-btn:hover {
  filter: brightness(1.05);
}
.gate-card .gate-error {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #e0584f;
}

/* ----------------------------------------------------------------
   SHARED SECTION HEADER
----------------------------------------------------------------- */
.section-head {
  text-align: center;
  padding: 0 var(--side-padding-s);
}
.section-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #000;
}
.section-head h2 .accent {
  color: #2867a6;
}
.section-head p {
  width: 80%;
  max-width: 460px;
  margin: 13px auto 0;
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

/* ----------------------------------------------------------------
   NAV
----------------------------------------------------------------- */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--edge);
  background: #ffffff;
  box-shadow: 0px 0px 7.2px rgba(61, 61, 61, 0.48), inset 0px 0px 35px white, inset 0px 0px 18px #cfcfcf;
  z-index: 50;
}
header.site-header .brand {
  position: relative;
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 226px;
  height: 81px;
  background: #f4f4f4;
  box-shadow: 0px 4px 9.8px rgba(0, 0, 0, 0.23);
}
header.site-header .brand .logo-rotator {
  position: relative;
  width: 170px;
  height: 60px;
}
header.site-header .brand .logo-rotator img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
header.site-header .brand .logo-rotator img.active {
  opacity: 1;
}
header.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 46px;
}
header.site-header .nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  text-shadow: 0px 0px 10.2px white;
  transition: opacity 0.2s ease-in-out;
}
header.site-header .nav-links a:hover {
  opacity: 0.55;
}
header.site-header .btn-duty-free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7fce5a 0%, #54ac32 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-shadow: none !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55), 0 1px 3px rgba(0, 0, 0, 0.25);
}
header.site-header .btn-duty-free:hover {
  opacity: 0.92;
}
header.site-header .btn-duty-free svg {
  width: 15px;
  height: 16px;
}

/* ----------------------------------------------------------------
   FOOTER
----------------------------------------------------------------- */
footer.site-footer {
  margin-top: 22px;
  padding: 46px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f4f4f4;
  border-radius: 60px 60px 0 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}
footer.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px;
}
footer.site-footer .footer-links a {
  font-size: 15px;
  font-weight: 700;
  color: #342677;
  text-decoration: underline;
  transition: opacity 0.2s ease-in-out;
}
footer.site-footer .footer-links a:hover {
  opacity: 0.6;
}
footer.site-footer .footer-copy {
  margin: 20px 0 0;
  font-size: 15px;
  font-weight: 400;
  color: #342677;
}

/* ----------------------------------------------------------------
   PRODUCT CARD + GRID (shop grid & recommended products)
----------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  row-gap: 50px;
}

.product-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.product-card .pc-img {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #fff;
}
.product-card .pc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}
.product-card .pc-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.13);
  pointer-events: none;
}
.product-card .pc-img .sold-out {
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: auto;
  z-index: 2;
}
.product-card .pc-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 11px;
}
.product-card .pc-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #272727;
  line-height: 1;
}
.product-card .pc-tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  color: #5a5a5a;
}
.product-card .pc-price {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f10000;
}
.product-card.is-sold-out {
  cursor: default;
}
.product-card.is-sold-out .pc-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}
.product-card:not(.is-sold-out):hover .pc-img img {
  transform: scale(1.03);
}

@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .product-grid {
    column-gap: 14px;
    row-gap: 28px;
  }
  .product-card .pc-name,
  .product-card .pc-tagline,
  .product-card .pc-price {
    font-size: 12px;
  }
}
/* ----------------------------------------------------------------
   PAYMENTS (shop & product detail)
----------------------------------------------------------------- */
.shop-payments {
  display: flex;
  justify-content: center;
  margin: 70px 0;
}
.shop-payments img {
  width: auto;
  height: 45px;
}

/* ----------------------------------------------------------------
   SHARED RESPONSIVE (nav / footer / section header)
----------------------------------------------------------------- */
@media (max-width: 1080px) {
  header.site-header .brand {
    width: 188px;
    height: 81px;
  }
  header.site-header .brand .logo-rotator {
    width: 152px;
    height: 45px;
  }
  header.site-header .nav-links {
    gap: 18px;
  }
  header.site-header .nav-links a {
    font-size: 13px;
  }
}
@media (max-width: 768px) {
  header.site-header .nav-links a:not(.btn-duty-free) {
    display: none;
  }
}
@media (max-width: 600px) {
  header.site-header {
    height: 40px;
  }
  header.site-header .brand {
    width: 112px;
    height: 50px;
  }
  header.site-header .brand .logo-rotator {
    width: 90px;
    height: 26px;
  }
  header.site-header .btn-duty-free {
    padding: 6px 12px;
    font-size: 11px;
    gap: 4px;
  }
  header.site-header .btn-duty-free svg {
    width: 13px;
    height: 14px;
  }
  .section-head h2 {
    font-size: 15px;
  }
  .section-head p {
    font-size: 10px;
    margin-top: 6px;
  }
  footer.site-footer {
    margin-top: 0;
    padding: 46px 50px 30px;
  }
  footer.site-footer .footer-links {
    gap: 16px 18px;
  }
  footer.site-footer .footer-links a {
    font-size: 12px;
  }
  footer.site-footer .footer-copy {
    font-size: 8px;
  }
  .shop-payments {
    margin-top: 60px;
    margin-bottom: 40px;
  }
  .shop-payments img {
    height: 34px;
  }
}
.pp-body {
  margin: 0;
  overflow: hidden;
  background: #eaf4fb;
}

.pp {
  position: fixed;
  inset: 0;
  display: flex;
  overflow: hidden;
  font-family: "Pixelify Sans", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* ----------------------------------------------------------------
   BACKGROUND — full-screen, swapped by the sparkle button
----------------------------------------------------------------- */
.pp-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* ----------------------------------------------------------------
   TOP CHROME — Home + BG switcher (+ sound on tablet / mobile)
----------------------------------------------------------------- */
.pp-top {
  position: absolute;
  top: 13px;
  left: 16px;
  right: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pp-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 126px;
  height: 48px;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff 0%, #ededed 100%);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25), inset 0 -1px 4px rgba(0, 0, 0, 0.25);
  color: #000;
  font-size: 20px;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.08s ease;
}

.pp-iconbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff 0%, #ededed 100%);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25), inset 0 -1px 4px rgba(0, 0, 0, 0.25);
  color: #1b1b1b;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.08s ease;
}

.pp-iconbtn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (hover: hover) {
  .pp-home:hover,
  .pp-iconbtn:hover {
    filter: brightness(1.06);
  }
}
.pp-home:active,
.pp-iconbtn:active {
  transform: scale(0.95);
}

/* sound icon reflects the muted state */
.pp-ico-off {
  display: none;
}

.pp[data-muted=true] .pp-ico-on {
  display: none;
}

.pp[data-muted=true] .pp-ico-off {
  display: block;
}

/* the top-bar sound button is tablet/mobile only (desktop has it in the sidebar) */
.pp-sound--top {
  display: none;
  margin-left: auto;
}

/* ----------------------------------------------------------------
   STAGE — the framed photo / live camera
----------------------------------------------------------------- */
.pp-stage {
  position: relative;
  z-index: 5;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 74px 24px 24px 50px;
}

.pp-frame {
  position: relative;
  border: 8px solid #fff;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.pp-shot {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #e0e0e0;
  isolation: isolate;
}

.pp-video,
.pp-photo,
.pp-freeze {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  user-select: none;
}

/* the held frame sits over the live feed right after a capture */
.pp.is-freezing .pp-freeze {
  display: block;
}

.pp.is-freezing .pp-shutter,
.pp.is-counting .pp-shutter {
  visibility: hidden;
}

.pp-video {
  transform: scaleX(-1);
}

.pp[data-mode=camera] .pp-video {
  display: block;
}

.pp[data-mode=photo] .pp-photo {
  display: block;
}

/* the frame is sized to the photo's own aspect, so `cover` fills it exactly —
   it absorbs the <=1px rounding of the frame size instead of letterboxing it
   into a visible gap against the white border */
.pp-photo {
  object-fit: cover;
  background: #e0e0e0;
}

/* Filter — a STACK of blended layers over the photo / feed. Each layer carries
   its own mix-blend-mode (set inline from the spec in the JS). The container is
   deliberately plain: no opacity / filter / isolation, so it does NOT create a
   stacking context and every layer blends against the photo plus the layers
   below it, contained by `.pp-shot { isolation: isolate }`. */
.pp-filter {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.pp.has-filter .pp-filter {
  display: block;
}

.pp-flayer {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Loading a full-size photo (~2 MB) is not instant on a phone. Until it is
   decoded, show the picker thumbnail — already cached, so it paints at once —
   blurred, behind a spinner. Without this the frame just sits on the PREVIOUS
   photo with no feedback. */
.pp-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  user-select: none;
  filter: blur(6px);
  transform: scale(1.05);
}

/* only when a separate thumbnail exists to stand in — see selectPhoto() */
.pp[data-mode=photo].is-loading.has-preview .pp-preview {
  display: block;
}

.pp-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  display: none;
  z-index: 9;
  border: 4px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
  animation: pp-spin 0.8s linear infinite;
  pointer-events: none;
}

/* `is-filtering` shows the spinner but NOT the blurred stand-in — the photo on
   the stage is already the right one, it just has no filter on it yet */
.pp.is-loading .pp-spinner,
.pp.is-filtering .pp-spinner {
  display: block;
}

@keyframes pp-spin {
  to {
    transform: rotate(360deg);
  }
}
/* placeholder while the camera starts (or if it is unavailable) */
.pp-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #e0e0e0;
  color: #1b1b1b;
  font-size: 15px;
  text-align: center;
  text-transform: uppercase;
  padding: 20px;
}

.pp[data-mode=camera].is-camera-idle .pp-placeholder {
  display: flex;
}

/* shutter — round button pinned to the bottom of the frame (camera mode only) */
.pp-shutter {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 6;
  transition: transform 0.08s ease, filter 0.2s ease;
}

.pp[data-mode=camera] .pp-shutter {
  display: block;
}

.pp-shutter:active {
  transform: translateX(-50%) scale(0.92);
}

.pp-shutter:disabled {
  opacity: 0.5;
  cursor: default;
}

/* photo-booth countdown + shutter flash */
.pp-count {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 7;
  color: #fff;
  font-size: 140px;
  line-height: 1;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.pp-count.is-on {
  display: flex;
  animation: pp-count-pop 1s ease-out;
}

@keyframes pp-count-pop {
  0% {
    transform: scale(1.5);
    opacity: 0;
  }
  20% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.85;
  }
}
.pp-flash {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.pp-flash.is-on {
  animation: pp-flash 0.45s ease-out;
}

@keyframes pp-flash {
  0% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}
/* ----------------------------------------------------------------
   STICKER LAYER — drag / pinch / rotate / resize
----------------------------------------------------------------- */
.pp-stickers {
  position: absolute;
  inset: 0;
  z-index: 6;
}

.pp[data-mode=camera] .pp-stickers {
  pointer-events: none;
  opacity: 0;
}

.pp-sticker {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: center center;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.pp-sticker img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.pp-sticker.is-active {
  outline: 1.5px dashed rgba(255, 41, 141, 0.9);
  outline-offset: 2px;
  cursor: grabbing;
}

/* corner handles (only on the selected sticker) */
.pp-handle {
  position: absolute;
  width: 30px;
  height: 30px;
  margin: -15px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  color: #1b1b1b;
  touch-action: none;
  cursor: pointer;
  z-index: 2;
}

.pp-sticker.is-active .pp-handle {
  display: flex;
}

.pp-handle svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  pointer-events: none;
}

.pp-handle--del {
  top: 0;
  left: 0;
  color: #e0344f;
}

.pp-handle--scale {
  bottom: 0;
  right: 0;
  cursor: nwse-resize;
}

/* ----------------------------------------------------------------
   PANEL — sidebar (desktop) / tabbed sheet (tablet + mobile)
----------------------------------------------------------------- */
.pp-panel {
  position: relative;
  z-index: 10;
  flex: 0 0 465px;
  width: 465px;
  display: flex;
  flex-direction: column;
  padding: 15px 14px 17px;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.pp-tabrow {
  display: none;
}

.pp-secs {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pp-sec {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pp-sec[data-sec=filters] {
  flex: 0 0 auto;
}

.pp-sec[data-sec=stickers] {
  flex: 1 1 42%;
}

.pp-sec[data-sec=photos] {
  flex: 1 1 58%;
}

.pp-label {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 400;
  color: #000;
  text-transform: uppercase;
}

/* -- filters: two rows of round swatches ------------------------- */
.pp-filters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}

.pp-filter-btn {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 1.5px solid #d9d9d9;
  border-radius: 50%;
  background: #efefef center/cover no-repeat;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.08s ease;
}

.pp-filter-btn:active {
  transform: scale(0.94);
}

.pp-filter-btn.is-on {
  border-color: #ff298d;
  box-shadow: 0 0 0 2px rgba(255, 41, 141, 0.28);
}

/* the picked swatch pulses until its layers have decoded — on desktop the
   sidebar is a long way from the frame, so feedback belongs in both places */
.pp.is-filtering .pp-filter-btn.is-on {
  animation: pp-pulse 0.9s ease-in-out infinite;
}

@keyframes pp-pulse {
  50% {
    opacity: 0.5;
  }
}
/* "no filter" swatch shows an X */
.pp-filter-btn--none::before,
.pp-filter-btn--none::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  top: 50%;
  height: 1.5px;
  background: #8b8b8b;
}

.pp-filter-btn--none::before {
  transform: rotate(45deg);
}

.pp-filter-btn--none::after {
  transform: rotate(-45deg);
}

/* -- scrollable grids (stickers / photos) ------------------------ */
.pp-scroll {
  flex: 1;
  min-height: 0;
  padding: 10px;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.08);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ff298d #ebebeb;
}

.pp-scroll::-webkit-scrollbar {
  width: 9px;
}

.pp-scroll::-webkit-scrollbar-track {
  background: #ebebeb;
}

.pp-scroll::-webkit-scrollbar-thumb {
  border-radius: 4.5px;
  background: linear-gradient(180deg, #ff298d 0%, #d14385 100%);
}

.pp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.pp-cell {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: #f6f6f6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}

.pp-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.pp-cell--photo img {
  object-fit: cover;
}

.pp-cell:active {
  transform: scale(0.94);
}

.pp-cell.is-on {
  box-shadow: 0 0 0 2px #ff298d;
}

/* the camera cell that opens the live feed */
.pp-cell--cam {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ededed;
  color: #3d3d3d;
}

.pp-cell--cam svg {
  width: 54%;
  height: 54%;
  fill: currentColor;
}

.pp-cell--cam.is-on {
  background: #e2e2e2;
}

/* -- actions: download + sound ----------------------------------- */
.pp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.pp-download {
  flex: 1;
  height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff298d 0%, #d14385 100%);
  box-shadow: inset 0 0 6.2px rgba(255, 255, 255, 0.74), inset 0 -4px 4px rgba(0, 0, 0, 0.1);
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.08s ease;
}

@media (hover: hover) {
  .pp-download:not(:disabled):hover {
    filter: brightness(1.06);
  }
}
.pp-download:not(:disabled):active {
  transform: scale(0.98);
}

/* nothing to save while the live camera is up */
.pp-download:disabled {
  opacity: 0.42;
  box-shadow: none;
  cursor: default;
}

.pp-actions .pp-iconbtn {
  flex: 0 0 52px;
  width: 52px;
  height: 46px;
  border-radius: 2px;
}

/* ================================================================
   TABLET (<= 1080) — stage on top, panel becomes a tabbed sheet
================================================================= */
@media (max-width: 1080px) {
  .pp {
    flex-direction: column;
  }
  .pp-sound--top {
    display: flex;
  }
  .pp-stage {
    flex: 1;
    min-height: 0;
    padding: 70px 16px 10px;
  }
  .pp-panel {
    flex: 0 0 auto;
    width: 100%;
    padding: 0 0 max(10px, env(safe-area-inset-bottom));
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
  }
  /* tab row: text tabs + the pink download button */
  .pp-tabrow {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
  }
  .pp-tabs {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .pp-tab {
    flex: 1;
    padding: 6px 4px;
    border: none;
    background: none;
    color: #1b1b1b;
    font-family: inherit;
    font-size: 19px;
    text-transform: uppercase;
    cursor: pointer;
  }
  .pp-tab.is-on {
    color: #ff298d;
  }
  .pp-tabrow .pp-download {
    flex: 0 0 auto;
    width: auto;
    height: 38px;
    border-radius: 3px;
    font-size: 19px;
  }
  /* only the active section shows */
  .pp-secs {
    flex: 0 0 auto;
    padding: 0 12px;
  }
  .pp-sec {
    display: none;
    flex: 0 0 auto;
  }
  .pp[data-tab=filters] .pp-sec[data-sec=filters],
  .pp[data-tab=stickers] .pp-sec[data-sec=stickers],
  .pp[data-tab=photos] .pp-sec[data-sec=photos] {
    display: flex;
  }
  .pp-label {
    display: none;
  }
  /* Every section is ONE swipeable row of identically sized buttons (the
     .pp-cell--photo size), so the sheet keeps the same height on every tab and
     the options that don't fit are reached by swiping sideways. */
  .pp-scroll,
  .pp-filters {
    --pp-cell: 110px;
    flex: 0 0 auto;
    height: calc(var(--pp-cell) + 16px);
    padding: 8px;
    border-radius: 4px;
    background: #fff;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .pp-scroll::-webkit-scrollbar,
  .pp-filters::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  .pp-grid,
  .pp-filters {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: var(--pp-cell);
    gap: 7px;
  }
  .pp-cell,
  .pp-filter-btn {
    width: var(--pp-cell);
    height: var(--pp-cell);
    scroll-snap-align: start;
  }
  /* desktop-only action row */
  .pp-actions {
    display: none;
  }
}
/* ================================================================
   MOBILE (<= 600) — tighter chrome
================================================================= */
@media (max-width: 600px) {
  .pp-top {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 8px;
  }
  .pp-home {
    width: 92px;
    height: 38px;
    font-size: 16px;
  }
  .pp-iconbtn {
    width: 38px;
    height: 38px;
  }
  .pp-iconbtn svg {
    width: 20px;
    height: 20px;
  }
  .pp-stage {
    padding: 58px 12px 8px;
  }
  .pp-shutter {
    width: 46px;
    height: 46px;
    bottom: 14px;
  }
  .pp-count {
    font-size: 92px;
  }
  .pp-tabrow {
    gap: 7px;
    padding: 8px 10px;
  }
  .pp-tab {
    font-size: 15px;
    padding: 5px 2px;
  }
  .pp-tabrow .pp-download {
    height: 33px;
    padding: 0 12px;
    font-size: 15px;
  }
  .pp-secs {
    padding: 0 10px;
  }
  .pp-scroll,
  .pp-filters {
    --pp-cell: 64px;
    height: calc(var(--pp-cell) + 14px);
    padding: 7px;
  }
  .pp-grid,
  .pp-filters {
    gap: 6px;
  }
  /* bigger touch targets for sticker handles on phones */
  .pp-handle {
    width: 34px;
    height: 34px;
    margin: -17px;
  }
}
/* short landscape phones: keep the sheet from eating the stage */
@media (max-height: 520px) and (max-width: 1080px) {
  .pp-scroll,
  .pp-filters {
    --pp-cell: 54px;
    height: calc(var(--pp-cell) + 14px);
  }
}
