:root {
  --bg: #f7f4ed;
  --paper: #fffdf9;
  --ink: #22221f;
  --muted: #817e77;
  --line: #e5e0d7;
  --accent: #ed7090;
  --accent-dark: #c74f72;
  --lavender: #dcd5eb;
  --shadow: 0 22px 70px rgba(68, 52, 48, 0.11);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: "DM Mono", monospace;
  --sans: "Karla", sans-serif;
  --serif: "Newsreader", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
  transition:
    background 0.6s var(--ease),
    color 0.6s var(--ease);
}

body[data-mood="party"] {
  --bg: #f9f2e8;
  --accent: #e85f86;
  --lavender: #e4cfe5;
}

body[data-mood="dreamy"] {
  --bg: #f2eff7;
  --accent: #a087bb;
  --lavender: #dcd3ed;
}

body[data-mood="chaotic"] {
  --bg: #f7f1e8;
  --accent: #f36f72;
  --lavender: #f5c4d4;
}

body[data-mood="midnight"] {
  --bg: #24252a;
  --paper: #303137;
  --ink: #f2eee8;
  --muted: #b5b0b5;
  --line: #48474d;
  --accent: #d59dd4;
  --accent-dark: #c87ac4;
  --lavender: #45404c;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.landing {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(20px, 5vw, 80px) 20px;
  background:
    radial-gradient(ellipse 44% 53% at 50% 49%,
      rgba(236, 196, 203, 0.48),
      transparent 76%),
    radial-gradient(ellipse 24% 31% at 68% 24%,
      rgba(209, 203, 230, 0.32),
      transparent 77%),
    var(--bg);
  isolation: isolate;
}

.landing:before,
.landing:after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(162, 143, 130, 0.16);
  border-radius: 50%;
  width: min(73vw, 830px);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.landing:after {
  width: min(57vw, 650px);
  border-style: dashed;
  opacity: 0.45;
}

.landing-nav,
.landing-footer,
.booth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.wordmark>span {
  color: var(--accent);
  font-weight: 500;
}

.wordmark i {
  font: 500 9px var(--mono);
  letter-spacing: 0;
  color: var(--muted);
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.nav-note,
.landing-footer,
.header-center {
  font: 10px var(--mono);
  letter-spacing: 0;
  color: var(--muted);
}

.nav-note span,
.landing-footer i {
  color: var(--accent);
  font-style: normal;
}

.hero-copy {
  position: relative;
  z-index: 2;
  margin: auto;
  text-align: center;
  padding: 24px 12px 18px;
}

.eyebrow {
  font: 10px var(--mono);
  letter-spacing: 0;
  color: var(--muted);
  margin: 0 0 15px;
}

.hero-copy .eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #7eae85;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(126, 174, 133, 0.15);
}

.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(70px, 12vw, 148px);
  line-height: 0.82;
  letter-spacing: 0;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

.hero-copy h1 em {
  font: italic 500 0.81em var(--serif);
  color: var(--accent);
}

.mobile-break {
  display: none;
}

.title-star {
  font: 32px var(--sans);
  color: var(--accent);
  vertical-align: top;
  margin-left: 8px;
}

.hero-subtitle {
  font: italic 500 25px var(--serif);
  margin: 23px 0 9px;
  color: var(--muted);
}

.hero-description {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 24px;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  letter-spacing: 0.03em;
  min-height: 56px;
  padding: 0 30px;
  transition:
    transform 0.35s var(--ease),
    background 0.3s,
    box-shadow 0.35s;
  box-shadow: 0 10px 26px rgba(224, 108, 141, 0.23);
  text-decoration: none;
}

.pill-button:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(224, 108, 141, 0.32);
}

.pill-button span {
  padding-left: 18px;
  font-size: 18px;
}

.ready-note {
  margin: 13px 0 0;
  font: 10px var(--mono);
  color: var(--muted);
}

.ready-note span {
  font-size: 15px;
  color: var(--accent);
  vertical-align: -1px;
  margin-right: 5px;
}

.landing-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-camera {
  position: absolute;
  left: 50%;
  top: 53%;
  width: 180px;
  height: 118px;
  border-radius: 20px;
  background: linear-gradient(145deg, #fefdfb, #dedad1);
  border: 1px solid rgba(103, 93, 87, 0.3);
  box-shadow:
    0 25px 64px rgba(72, 56, 51, 0.15),
    inset 0 2px 4px white;
  transform: translate(-50%, -50%) rotate(-7deg);
  opacity: 0.45;
  animation: cameraDrift 8s ease-in-out infinite;
}

.float-camera:before {
  content: "";
  position: absolute;
  width: 78px;
  height: 14px;
  left: 22px;
  top: -12px;
  background: #eae7e0;
  border: 1px solid rgba(103, 93, 87, 0.2);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.lens {
  position: absolute;
  width: 62px;
  aspect-ratio: 1;
  border-radius: 50%;
  left: 59px;
  top: 27px;
  background: radial-gradient(circle at 40% 35%,
      #91a5a4 0 9%,
      #434d4c 12% 23%,
      #c6bab0 25% 28%,
      #57585a 30% 58%,
      #dedad1 61% 68%,
      #797b7d 72%);
  box-shadow:
    inset 0 2px 5px white,
    0 4px 10px #aaa;
}

.camera-flash {
  position: absolute;
  width: 16px;
  height: 10px;
  border-radius: 4px;
  background: #d9b66b;
  right: 20px;
  top: 31px;
}

.camera-dial {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #f7f4ed;
  right: 20px;
  bottom: 20px;
  border: 2px solid #aaa;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 53%;
  width: min(45vw, 490px);
  aspect-ratio: 1;
  border: 1px solid rgba(178, 137, 133, 0.19);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-two {
  width: min(36vw, 400px);
  border-style: dashed;
  animation: spin 100s linear infinite;
}

.float-card {
  position: absolute;
  top: 52%;
  width: 104px;
  height: 139px;
  padding: 12px 10px;
  background: rgba(255, 253, 249, 0.7);
  border: 1px solid rgba(180, 166, 154, 0.5);
  box-shadow: 0 12px 25px rgba(66, 51, 45, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
}

.float-card span,
.float-card small {
  font: 8px var(--mono);
}

.float-card b {
  font: 42px var(--serif);
  text-align: center;
  color: var(--accent);
  font-weight: 400;
}

.card-left {
  left: calc(50% - 260px);
  transform: translateY(-50%) rotate(-12deg);
}

.card-right {
  right: calc(50% - 260px);
  transform: translateY(-50%) rotate(10deg);
}

.spark {
  position: absolute;
  color: var(--accent);
  font-size: 23px;
  animation: twinkle 3s ease-in-out infinite;
}

.spark-a {
  top: 35%;
  left: 31%;
}

.spark-b {
  top: 62%;
  right: 31%;
  animation-delay: 1.1s;
}

.spark-c {
  top: 28%;
  right: 38%;
  font-size: 32px;
  animation-delay: 0.6s;
}

.landing-footer {
  font-size: 9px;
}

.booth {
  max-width: 1480px;
  margin: auto;
  padding: 18px clamp(18px, 4vw, 58px) 0;
  min-height: 100vh;
}

.booth-header {
  height: 45px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  transition: 0.3s var(--ease);
}

.icon-button:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.memories-jump {
  position: relative;
}

.memories-jump span {
  position: absolute;
  right: -5px;
  top: -4px;
  background: var(--accent);
  color: white;
  font: 8px var(--mono);
  padding: 2px 4px;
  border-radius: 9px;
  min-width: 19px;
  text-align: center;
}

.booth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.85fr);
  gap: clamp(36px, 6vw, 96px);
  max-width: 1160px;
  margin: 48px auto 0;
  align-items: start;
}

.studio-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 17px;
}

.studio-heading .eyebrow {
  margin: 0 0 6px;
}

.studio-heading .eyebrow span {
  color: var(--accent);
}

.studio-heading h2,
.memories-heading h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
}

.studio-heading h2 i,
.memories-heading h2 i {
  font: italic 500 1em var(--serif);
  color: var(--accent);
}

.film-counter {
  font: 9px var(--mono);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.film-counter .live-dot {
  width: 6px;
  height: 6px;
}

.film-counter b {
  font-weight: 400;
  color: var(--ink);
}

.camera-shell {
  position: relative;
  padding: 10px;
  background: var(--paper);
  border: 1px solid rgba(129, 126, 119, 0.2);
  border-radius: 15px;
  box-shadow: var(--shadow);
  transform: rotate(-0.45deg);
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s;
}

.camera-shell:hover {
  transform: rotate(0) translateY(-2px);
  box-shadow: 0 27px 70px rgba(68, 52, 48, 0.15);
}

.camera-topline,
.camera-caption {
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  color: var(--muted);
  font: 8px var(--mono);
}

.camera-live {
  color: #779b7c;
}

.camera-live i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #80ad85;
  border-radius: 50%;
  margin-right: 3px;
  animation: pulse 1.5s infinite;
}

.camera-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background:
    radial-gradient(ellipse at 50% 45%,
      rgba(225, 207, 195, 0.52),
      transparent 66%),
    linear-gradient(135deg, #dedbd4, #eee8e1 50%, #d8d6d1);
  border-radius: 8px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.camera-stage:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.13),
      transparent 42%,
      rgba(30, 27, 29, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.camera-stage video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  filter: var(--video-filter, none);
  display: none;
}

.camera-stage canvas.camera-composite {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.camera-stage.has-video video {
  display: block;
}

.camera-stage.has-background-effect video {
  display: none;
}

.camera-stage.has-background-effect canvas.camera-composite {
  display: block;
}

.camera-stage.has-video .video-placeholder {
  display: none;
}

.video-placeholder {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-direction: column;
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(125, 117, 110, 0.27);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--ink);
}

.video-placeholder p {
  font: 9px var(--mono);
  letter-spacing: 0;
  margin: 0 0 5px;
}

.video-placeholder>span {
  font-size: 11px;
  max-width: 220px;
}

.text-action {
  margin-top: 14px;
  border: 0;
  border-bottom: 1px solid var(--accent);
  padding: 4px 0;
  background: transparent;
  color: var(--accent-dark);
  font: 10px var(--mono);
}

.text-action span {
  padding-left: 8px;
}

.camera-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(255, 255, 255, 0.8);
  border-style: solid;
}

.corner-tl {
  left: 12px;
  top: 12px;
  border-width: 1px 0 0 1px;
}

.corner-tr {
  right: 12px;
  top: 12px;
  border-width: 1px 1px 0 0;
}

.corner-bl {
  left: 12px;
  bottom: 12px;
  border-width: 0 0 1px 1px;
}

.corner-br {
  right: 12px;
  bottom: 12px;
  border-width: 0 1px 1px 0;
}

.focus-reticle {
  position: absolute;
  width: 31px;
  height: 31px;
  left: 50%;
  top: 48%;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 3px;
  transform: translate(-50%, -50%);
  opacity: 0.6;
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: clamp(86px, 16vw, 170px);
  font-weight: 700;
  text-shadow: 0 4px 34px rgba(23, 21, 21, 0.24);
  pointer-events: none;
}

.countdown-overlay.pop {
  animation: countPop 0.82s var(--ease) both;
}

.preview-stickers {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.preview-sticker {
  position: absolute;
  font-size: clamp(22px, 4vw, 40px);
  filter: drop-shadow(0 2px 3px #0004);
}

.camera-caption {
  height: 31px;
}

.camera-caption>span:first-child {
  font: italic 500 16px var(--serif);
  color: var(--ink);
}

.camera-caption i {
  font-style: normal;
  color: var(--accent);
}

.camera-caption>span:last-child {
  font-size: 7px;
}

.shutter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.round-control {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-size: 16px;
  color: var(--muted);
  transition:
    transform 0.3s var(--ease),
    color 0.3s,
    border-color 0.3s;
}

.round-control:hover,
.round-control[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}

.shutter-button {
  width: 70px;
  height: 70px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 50%;
  padding: 5px;
  position: relative;
  display: grid;
  place-items: center;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}

.shutter-button:hover {
  transform: scale(1.07);
  box-shadow: 0 0 0 7px rgba(237, 112, 144, 0.11);
}

.shutter-ring {
  position: absolute;
  inset: -5px;
  border: 1px dashed rgba(237, 112, 144, 0.4);
  border-radius: 50%;
  transition: transform 0.6s;
}

.shutter-button:hover .shutter-ring {
  transform: rotate(35deg);
}

.shutter-core {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 22px;
  box-shadow: inset 0 2px 3px #ffffff55;
}

.shutter-button:active {
  transform: scale(0.92);
}

.shutter-button:disabled {
  opacity: 0.55;
}

.shutter-caption {
  display: flex;
  justify-content: space-between;
  max-width: 280px;
  margin: 10px auto 0;
  color: var(--muted);
  font: 8px var(--mono);
}

.camera-message {
  min-height: 18px;
  text-align: center;
  margin: 6px auto 0;
  color: var(--accent-dark);
  font-size: 11px;
}

.controls-column {
  border-top: 1px solid var(--line);
}

.control-section {
  padding: 16px 0 17px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font: 9px var(--mono);
}

.section-mark {
  color: var(--accent);
  font-size: 14px;
}

.mood-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mood-chip {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 9px var(--mono);
  transition: all 0.3s var(--ease);
}

.mood-chip span {
  color: var(--accent);
  padding-right: 4px;
}

.mood-chip:hover,
.mood-chip.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--ink);
}

.surprise-button {
  border: 0;
  background: none;
  padding: 5px;
  color: var(--accent-dark);
  font: 9px var(--mono);
}

.filter-rail {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding: 3px 1px 9px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  overscroll-behavior-x: contain;
}

.filter-option {
  flex: 0 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 3px 2px 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.filter-swatch {
  width: 49px;
  height: 53px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px #32271a14;
  transition:
    transform 0.35s var(--ease),
    border-color 0.25s;
}

.filter-option:hover .filter-swatch {
  transform: translateY(-3px);
}

.filter-option.selected .filter-swatch {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.filter-swatch i {
  font: 21px var(--serif);
  color: #ffffffc9;
  text-shadow: 0 1px 6px #47352f66;
}

.swatch-original {
  background: linear-gradient(140deg, #95a79c, #d9b09f 52%, #667d77);
}

.swatch-film {
  background: linear-gradient(140deg, #9a8972, #c79f79 52%, #655c50);
  filter: saturate(0.75);
}

.swatch-vintage {
  background: linear-gradient(140deg, #aa9471, #d2b58e 52%, #87745b);
}

.swatch-polaroid {
  background: linear-gradient(140deg, #a4b2a4, #dbbdad 52%, #777e75);
  box-shadow:
    0 3px 0 white,
    0 4px 5px #32271a30;
}

.swatch-warm {
  background: linear-gradient(140deg, #e0a079, #d89b72 52%, #81705a);
}

.swatch-cool {
  background: linear-gradient(140deg, #7797a5, #b7b7c0 52%, #6b7c83);
}

.swatch-bw {
  background: linear-gradient(140deg, #dfdedc, #8d8b8a 52%, #454545);
}

.swatch-dreamy {
  background: linear-gradient(140deg, #d1bce0, #f2ccd4 52%, #92a1c0);
}

.swatch-y2k {
  background: linear-gradient(140deg, #ef9cc2, #a3ccec 52%, #b49adb);
}

.swatch-vhs {
  background: repeating-linear-gradient(0deg,
      #a2bac0 0 3px,
      #b99daa 4px 7px,
      #777b90 8px 12px);
}

.mode-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mode-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  padding: 8px 10px;
  min-height: 36px;
  transition: 0.3s var(--ease);
}

.mode-button:hover,
.mode-button.selected {
  color: var(--ink);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.select-label {
  display: block;
  color: var(--muted);
  font: 8px var(--mono);
  margin: 13px 0 6px;
}

.booth-select {
  height: 36px;
  border-color: var(--line);
  border-radius: 6px;
  background-color: var(--paper);
  color: var(--ink);
  font-size: 11px;
}

.booth-select:focus,
.text-entry input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent) 17%, transparent);
}

.sticker-row {
  display: flex;
  gap: 7px;
}

.sticker-row button {
  width: 38px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  font-size: 18px;
  transition:
    transform 0.3s var(--ease),
    border-color 0.25s;
}

.sticker-row button:hover {
  transform: translateY(-3px) rotate(-5deg);
  border-color: var(--accent);
}

.sticker-row button:last-child {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.text-entry {
  display: flex;
  gap: 6px;
}

.text-entry input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 10px;
  font-size: 11px;
  outline: none;
}

.text-entry button {
  width: 38px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  border-radius: 6px;
}

.timer-sound-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 11px;
}

.timer-sound-row .select-label {
  margin-top: 0;
}

.timer-list {
  display: flex;
  gap: 5px;
}

.timer-button {
  width: 42px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: 10px var(--mono);
}

.timer-button.selected {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: 8px var(--mono);
}

.sound-toggle i {
  font-size: 14px;
  color: var(--accent);
}

.upload-button {
  min-height: 41px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  font: 9px var(--mono);
  transition: 0.3s;
}

.upload-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.memories-section {
  max-width: 1160px;
  margin: 90px auto 0;
  border-top: 1px solid var(--line);
  padding: 26px 0 52px;
}

.memories-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}

.memories-heading .eyebrow {
  margin-bottom: 6px;
}

.clear-button {
  border: 0;
  background: none;
  color: var(--muted);
  font: 9px var(--mono);
  padding: 8px 0;
}

.clear-button i {
  color: var(--accent);
  margin-left: 6px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.gallery-empty {
  grid-column: 1/-1;
  color: var(--muted);
  font: italic 15px var(--serif);
  padding: 10px 0;
}

.gallery-empty span {
  color: var(--accent);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/5;
  border: 5px solid var(--paper);
  border-radius: 5px;
  background: var(--paper);
  padding: 0;
  box-shadow: 0 5px 17px #3e35251a;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.35s;
}

.gallery-item:nth-child(3n + 1) {
  transform: rotate(-2deg);
}

.gallery-item:nth-child(3n + 2) {
  transform: rotate(1.7deg);
}

.gallery-item:hover {
  transform: translateY(-5px) rotate(0) scale(1.025);
  box-shadow: 0 13px 25px #3e352527;
  z-index: 2;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booth-footer {
  min-height: 54px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font: 8px var(--mono);
}

.booth-footer i {
  color: var(--accent);
  font-style: normal;
}

.result-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: radial-gradient(ellipse 50% 65% at 50% 55%,
      color-mix(in srgb, var(--accent) 13%, var(--bg)),
      var(--bg));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  padding: 32px 20px;
  overflow-y: auto;
}

.result-screen[hidden] {
  display: none;
}

.result-copy {
  text-align: center;
  margin-bottom: 17px;
}

.result-copy .eyebrow {
  color: var(--accent-dark);
  margin-bottom: 9px;
}

.result-copy h2 {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.05;
  margin: 0;
  font-weight: 500;
}

.result-copy h2 i {
  font: italic 500 1em var(--serif);
  color: var(--accent-dark);
}

.result-copy>p:last-child {
  color: var(--muted);
  font: italic 400 17px var(--serif);
  margin: 8px 0;
}

.result-print {
  position: relative;
  max-height: min(56vh, 580px);
  max-width: min(78vw, 420px);
  padding: 8px 8px 17px;
  background: #fffdfa;
  box-shadow: 0 20px 50px #32271a20;
  transform: rotate(-1.7deg);
  animation: printIn 0.7s var(--ease) both;
}

.result-print img {
  display: block;
  max-height: calc(min(56vh, 580px) - 25px);
  max-width: min(78vw, 404px);
  object-fit: contain;
}

.print-shadow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px #76685616;
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.result-action {
  min-width: 71px;
  min-height: 59px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  transition: 0.3s var(--ease);
}

.result-action i {
  font-size: 17px;
}

.result-action span {
  font: 8px var(--mono);
}

.result-action:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-3px);
}

.result-save {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.result-save:hover {
  color: white;
  background: var(--accent-dark);
}

.result-close {
  position: absolute;
  right: 25px;
  top: 25px;
}

.share-message {
  min-height: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.flash-overlay {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
}

.flash-overlay.fire {
  animation: flash 0.24s ease-out;
}

.toast-message {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 12px;
  transition: 0.35s var(--ease);
  max-width: calc(100% - 30px);
  text-align: center;
}

.toast-message.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.memory-modal-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}

.memory-modal-content .modal-header {
  border-color: var(--line);
}

.memory-modal-content .modal-title {
  font: 10px var(--mono);
}

.memory-modal-content .modal-title i {
  color: var(--accent);
  font-style: normal;
}

.memory-modal-content .btn-close {
  filter: var(--close-filter, none);
}

body[data-mood="midnight"] .memory-modal-content .btn-close {
  filter: invert(1);
}

.memory-modal-content .modal-body {
  text-align: center;
  padding: 14px;
}

.memory-modal-content .modal-body img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.screen.active .booth-layout {
  animation: arrive 0.75s var(--ease) both;
}

.booth.flash-mode .camera-stage:before {
  content: "";
  position: absolute;
  z-index: 12;
  inset: 0;
  background: #fff;
  animation: localFlash 0.34s ease-out forwards;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countPop {
  0% {
    opacity: 0;
    transform: scale(0.45);
    filter: blur(9px);
  }

  22% {
    opacity: 1;
    transform: scale(1.15);
    filter: blur(0);
  }

  72% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}

@keyframes flash {
  0% {
    opacity: 0;
  }

  15% {
    opacity: 0.98;
  }

  100% {
    opacity: 0;
  }
}

@keyframes localFlash {
  0% {
    opacity: 0;
  }

  18% {
    opacity: 0.93;
  }

  100% {
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(1turn);
  }
}

@keyframes twinkle {

  0%,
  100% {
    transform: scale(0.84) rotate(-9deg);
    opacity: 0.65;
  }

  50% {
    transform: scale(1.17) rotate(12deg);
    opacity: 1;
  }
}

@keyframes cameraDrift {

  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-7deg);
  }

  50% {
    transform: translate(-50%, -53%) rotate(-3deg);
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 5px rgba(126, 174, 133, 0.1);
  }
}

@keyframes printIn {
  from {
    opacity: 0;
    transform: translateY(16px) rotate(2deg) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(-1.7deg) scale(1);
  }
}

@media (min-width: 1500px) {
  .booth-layout {
    margin-top: 58px;
  }

  .camera-stage {
    aspect-ratio: 1.28;
  }

  .controls-column .control-section {
    padding-top: 18px;
    padding-bottom: 19px;
  }
}

@media (max-width: 900px) {
  .booth {
    padding-right: clamp(17px, 4vw, 36px);
    padding-left: clamp(17px, 4vw, 36px);
  }

  .booth-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 660px;
    gap: 28px;
    margin-top: 30px;
  }

  .studio-heading {
    margin-bottom: 12px;
  }

  .camera-stage {
    aspect-ratio: 1.12;
  }

  .controls-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 26px;
    align-items: start;
  }

  .control-section {
    min-width: 0;
  }

  .control-section:nth-child(2) {
    grid-column: 1/-1;
    grid-row: 1;
  }

  .mood-section {
    grid-column: 1/-1;
    grid-row: 2;
  }

  .mode-section {
    grid-column: 1/-1;
    grid-row: 3;
  }

  .detail-controls {
    grid-column: 1/-1;
    grid-row: 4;
  }

  .upload-button {
    grid-column: 1/-1;
  }

  .memories-section {
    margin-top: 55px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 72px;
  }

  .landing {
    min-height: 100svh;
    padding: 19px 19px max(16px, env(safe-area-inset-bottom));
    background:
      radial-gradient(ellipse 84% 36% at 50% 46%,
        rgba(236, 196, 203, 0.51),
        transparent 78%),
      radial-gradient(ellipse 56% 26% at 74% 17%,
        rgba(209, 203, 230, 0.3),
        transparent 78%),
      var(--bg);
  }

  .landing-nav {
    position: relative;
    z-index: 3;
  }

  .wordmark {
    font-size: 17px;
  }

  .wordmark i {
    font-size: 8px;
  }

  .nav-note {
    font-size: 8px;
    max-width: 140px;
    text-align: right;
  }

  .hero-copy {
    margin: auto 0;
    padding: 0 0 4px;
  }

  .hero-copy .eyebrow {
    font-size: 8px;
    margin-bottom: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(65px, 20vw, 105px);
    line-height: 0.85;
  }

  .mobile-break {
    display: block;
  }

  .title-star {
    font-size: 23px;
    margin-left: 2px;
  }

  .hero-subtitle {
    font-size: 22px;
    margin-top: 17px;
  }

  .hero-description {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .enter-button {
    min-height: 53px;
    width: min(100%, 300px);
    font-size: 11px;
  }

  .ready-note {
    font-size: 9px;
  }

  .landing-footer {
    position: relative;
    z-index: 2;
    font-size: 7px;
    gap: 10px;
  }

  .landing-footer span:nth-child(2) {
    display: none;
  }

  .float-camera,
  .float-card {
    display: none;
  }

  .orbit {
    top: 49%;
    width: 78vw;
  }

  .orbit-two {
    width: 61vw;
  }

  .spark-a {
    left: 13%;
    top: 38%;
  }

  .spark-b {
    right: 13%;
    top: 61%;
  }

  .spark-c {
    right: 20%;
    top: 34%;
  }

  .booth {
    padding: 15px 15px max(0px, env(safe-area-inset-bottom));
  }

  .booth-header {
    height: 40px;
    padding-bottom: 10px;
  }

  .booth-header .wordmark {
    font-size: 15px;
  }

  .booth-header .wordmark i {
    font-size: 7px;
    padding-left: 5px;
  }

  .header-center {
    font-size: 7px;
    gap: 6px;
  }

  .header-center .live-dot {
    width: 6px;
    height: 6px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .memories-jump {
    width: 36px;
  }

  .booth-layout {
    margin-top: 23px;
    gap: 19px;
  }

  .studio-heading h2 {
    font-size: 28px;
  }

  .studio-heading .eyebrow {
    font-size: 8px;
  }

  .film-counter {
    font-size: 8px;
    gap: 5px;
  }

  .camera-shell {
    padding: 7px;
    border-radius: 12px;
  }

  .camera-topline,
  .camera-caption {
    height: 26px;
    padding: 0 4px;
    font-size: 7px;
  }

  .camera-stage {
    aspect-ratio: 1/1.05;
    border-radius: 6px;
  }

  .video-placeholder {
    padding: 12px;
  }

  .placeholder-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 9px;
  }

  .video-placeholder p {
    font-size: 8px;
  }

  .video-placeholder>span {
    font-size: 10px;
    max-width: 210px;
  }

  .text-action {
    font-size: 9px;
  }

  .camera-caption>span:last-child {
    font-size: 6px;
  }

  .shutter-row {
    margin-top: 12px;
    gap: 28px;
  }

  .shutter-button {
    width: 66px;
    height: 66px;
  }

  .round-control {
    width: 39px;
    height: 39px;
  }

  .shutter-caption {
    max-width: 270px;
    font-size: 7px;
    margin-top: 8px;
  }

  .camera-message {
    font-size: 10px;
    margin-top: 3px;
  }

  .controls-column {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .control-section {
    width: 100%;
    padding: 13px 0;
  }

  .section-heading {
    font-size: 8px;
    margin-bottom: 9px;
  }

  .mood-list {
    gap: 6px;
  }

  .mood-chip {
    min-height: 35px;
    padding: 0 10px;
    font-size: 8px;
  }

  .filter-rail {
    gap: 9px;
    margin-right: 0;
    padding-right: 0;
    scroll-snap-type: x proximity;
  }

  .filter-option {
    scroll-snap-align: start;
    flex-basis: 53px;
  }

  .filter-swatch {
    width: 46px;
    height: 49px;
  }

  .mode-list {
    gap: 6px;
  }

  .mode-button {
    min-height: 39px;
    padding: 8px 10px;
    font-size: 9px;
    flex: 1 1 auto;
  }

  .detail-controls {
    padding-bottom: 13px;
  }

  .select-label {
    font-size: 8px;
    margin: 11px 0 6px;
  }

  .sticker-row {
    gap: 6px;
  }

  .sticker-row button {
    width: 40px;
    height: 39px;
  }

  .timer-button {
    height: 33px;
    width: 45px;
  }

  .sound-toggle {
    padding-bottom: 7px;
  }

  .upload-button {
    min-height: 46px;
    margin: 0 0 0;
  }

  .memories-section {
    margin-top: 35px;
    padding: 21px 0 34px;
  }

  .memories-heading {
    margin-bottom: 15px;
  }

  .memories-heading h2 {
    font-size: 26px;
  }

  .memories-heading .eyebrow {
    font-size: 8px;
  }

  .clear-button {
    font-size: 8px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .gallery-empty {
    font-size: 14px;
  }

  .gallery-item {
    border-width: 4px;
  }

  .booth-footer {
    min-height: 48px;
    font-size: 7px;
    gap: 10px;
  }

  .booth-footer span:last-child {
    text-align: right;
  }

  .result-screen {
    justify-content: center;
    padding: 52px 17px max(20px, env(safe-area-inset-bottom));
  }

  .result-close {
    right: 15px;
    top: 15px;
  }

  .result-copy {
    margin-bottom: 12px;
  }

  .result-copy h2 {
    font-size: 37px;
  }

  .result-copy .eyebrow {
    font-size: 9px;
  }

  .result-print {
    max-width: min(76vw, 360px);
    max-height: 55vh;
    padding: 6px 6px 14px;
  }

  .result-print img {
    max-width: min(76vw, 348px);
    max-height: calc(55vh - 20px);
  }

  .result-actions {
    gap: 7px;
    margin-top: 19px;
  }

  .result-action {
    min-width: 67px;
    min-height: 57px;
  }

  .result-action span {
    font-size: 7px;
  }

  .share-message {
    font-size: 10px;
  }

  .toast-message {
    bottom: max(17px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .nav-note {
    max-width: 112px;
    font-size: 7px;
  }

  .booth {
    padding-left: 12px;
    padding-right: 12px;
  }

  .booth-header .wordmark i {
    display: none;
  }

  .header-center {
    font-size: 6px;
  }

  .camera-caption>span:last-child {
    font-size: 5px;
  }

  .mood-chip {
    padding: 0 8px;
    font-size: 7px;
  }

  .result-action {
    min-width: 61px;
  }

  .landing-footer {
    font-size: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Landing art direction */
.landing {
  --landing-ground: #f2f1ec;
  --landing-grid: rgba(48, 47, 43, 0.075);
  --landing-glow: rgba(237, 202, 199, 0.55);
  --landing-copy: #252522;
  min-height: 100svh;
  padding: 0 clamp(18px, 4.4vw, 72px) 18px;
  color: var(--landing-copy);
  background-color: var(--landing-ground);
  background-image:
    linear-gradient(var(--landing-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--landing-grid) 1px, transparent 1px),
    radial-gradient(ellipse at 75% 47%, var(--landing-glow), transparent 51%);
  background-size:
    32px 32px,
    32px 32px,
    100% 100%;
  transition:
    background-color 500ms var(--ease),
    color 500ms var(--ease);
}

.landing::before,
.landing::after {
  display: none;
}

.landing[data-backdrop="rose"] {
  --landing-ground: #f2e6e5;
  --landing-grid: rgba(105, 66, 68, 0.08);
  --landing-glow: rgba(230, 161, 171, 0.52);
  --landing-copy: #34272b;
  --accent: #d65676;
  --accent-dark: #ad405d;
}

.landing[data-backdrop="sage"] {
  --landing-ground: #e9eee8;
  --landing-grid: rgba(49, 72, 59, 0.085);
  --landing-glow: rgba(157, 186, 161, 0.55);
  --landing-copy: #28352e;
  --accent: #557d69;
  --accent-dark: #3f614f;
}

.landing[data-backdrop="lilac"] {
  --landing-ground: #eeebf1;
  --landing-grid: rgba(66, 58, 76, 0.08);
  --landing-glow: rgba(186, 169, 210, 0.48);
  --landing-copy: #302b38;
  --accent: #8873a7;
  --accent-dark: #6b5886;
}

.landing-announce {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--landing-grid);
  color: color-mix(in srgb, var(--landing-copy) 64%, transparent);
  font: 9px var(--mono);
}

.landing-announce i {
  color: var(--accent);
  font-style: normal;
  padding-left: 7px;
}

.landing-nav {
  min-height: 68px;
  gap: 25px;
  border-bottom: 1px solid var(--landing-grid);
}

.landing .wordmark {
  color: var(--landing-copy);
}

.landing-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  margin-left: auto;
}

.landing-links a,
.hero-text-link {
  color: color-mix(in srgb, var(--landing-copy) 80%, transparent);
  text-decoration: none;
  font: 10px var(--mono);
  transition: color 250ms ease;
}

.landing-links a:hover,
.hero-text-link:hover {
  color: var(--accent-dark);
}

.nav-enter {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  background: var(--landing-copy);
  color: #fff;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 250ms var(--ease),
    background 250ms ease;
}

.nav-enter:hover {
  color: #fff;
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.nav-enter span {
  color: var(--accent);
}

.landing-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 24px 0 40px;
}

.landing .hero-copy {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing .hero-copy .eyebrow {
  justify-content: center;
  margin-bottom: 18px;
  font-size: 9px;
}

.landing .hero-copy h1 {
  max-width: 720px;
  font-size: clamp(52px, 6vw, 84px);
  line-height: 1.05;
  font-weight: 500;
  color: var(--landing-copy);
  margin: 0 auto 16px;
  text-align: center;
}

.landing .hero-copy h1 em {
  color: var(--landing-accent, #6db882);
  font-weight: 400;
}

.landing .hero-subtitle {
  margin: 19px 0 10px;
  font-size: 25px;
  color: color-mix(in srgb, var(--landing-copy) 78%, transparent);
}

.landing .hero-description {
  max-width: 580px;
  margin: 0 auto 24px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--landing-copy) 75%, transparent);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
}

.hero-art {
  position: relative;
  min-width: 0;
  min-height: 550px;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9% 3% 6% 4%;
  background-image: radial-gradient(color-mix(in srgb, var(--landing-copy) 20%, transparent) 1px,
      transparent 1.4px);
  background-size: 9px 9px;
  mask-image: radial-gradient(ellipse, #000 14%, transparent 72%);
  opacity: 0.4;
}

.art-edition,
.art-coordinate {
  position: absolute;
  color: color-mix(in srgb, var(--landing-copy) 60%, transparent);
  font: 8px var(--mono);
}

.art-edition {
  top: 7%;
  left: 8%;
}

.art-coordinate {
  right: 4%;
  bottom: 5%;
}

.art-crosshair {
  position: absolute;
  top: 13%;
  right: 15%;
  color: var(--accent);
  font-size: 27px;
  animation: twinkle 4s ease-in-out infinite;
}

.machine-shell {
  position: absolute;
  top: 12%;
  left: 13%;
  width: 66%;
  height: 75%;
  overflow: hidden;
  border: 1px solid rgba(105, 95, 85, 0.26);
  border-radius: 44px 44px 34px 34px;
  background: linear-gradient(145deg, #fffefa, #e7e3dc 68%, #d9d5cf);
  box-shadow:
    12px 22px 36px rgba(55, 46, 42, 0.13),
    inset 2px 2px 0 #fff;
}

.machine-shell::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(110, 100, 91, 0.14);
  border-radius: 35px 35px 27px 27px;
}

.machine-light {
  position: absolute;
  top: 15%;
  width: 23px;
  height: 74px;
  border: 1px solid rgba(189, 164, 129, 0.36);
  border-radius: 9px;
  background: linear-gradient(#fffefa, #fff4dc 55%, #fffefa);
  box-shadow: 0 0 19px rgba(255, 232, 184, 0.43);
}

.machine-light-left {
  left: 12%;
}

.machine-light-right {
  right: 12%;
}

.machine-lens {
  position: absolute;
  top: 24%;
  left: 50%;
  width: 81px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 7px solid #d2cec8;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 37%,
      #5f6967 0 8%,
      #171a19 23% 62%,
      #363a38 64% 70%,
      #151716 73%);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.28),
    inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  transform: translateX(-50%);
}

.machine-lens span {
  width: 14px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #8fa3a0;
  opacity: 0.72;
}

.machine-slot {
  position: absolute;
  top: 52%;
  left: 13%;
  width: 74%;
  height: 16px;
  border: 4px solid #d7d2ca;
  border-radius: 5px;
  background: #30302e;
  box-shadow: inset 0 2px 4px #0008;
}

.machine-brand {
  position: absolute;
  right: 0;
  bottom: 7%;
  left: 0;
  color: rgba(58, 56, 53, 0.66);
  text-align: center;
  font-size: 17px;
  font-weight: 700;
}

.machine-brand small {
  display: block;
  margin-top: 3px;
  font: 7px var(--mono);
}

.hero-print {
  position: absolute;
  z-index: 2;
  top: 20%;
  right: 4%;
  width: clamp(170px, 21vw, 220px);
  margin: 0;
  padding: 11px 11px 14px;
  border: 1px solid rgba(80, 73, 66, 0.16);
  background: #fffefa;
  box-shadow: 0 18px 34px rgba(44, 38, 34, 0.2);
  transform: rotate(3.2deg);
  animation: printFloat 7s ease-in-out infinite;
}

.print-heading,
.hero-print figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #77716b;
  font: 7px var(--mono);
}

.print-heading {
  margin-bottom: 8px;
}

.print-heading span:first-child {
  color: var(--accent-dark);
  font-weight: 500;
}

.print-frames {
  display: grid;
  gap: 5px;
  padding: 5px;
  background: #222220;
}

.print-frames img {
  display: block;
  width: 100%;
  height: clamp(72px, 9vw, 94px);
  object-fit: cover;
  filter: saturate(0.78) contrast(1.03);
}

.print-frames img:nth-child(2) {
  object-position: 50% 38%;
}

.print-frames img:nth-child(3) {
  object-position: 50% 65%;
}

.hero-print figcaption {
  margin-top: 8px;
  font-size: 6px;
}

.hero-print figcaption span {
  color: var(--accent-dark);
  font: 16px var(--serif);
}

.art-stamp {
  position: absolute;
  z-index: 3;
  bottom: 13%;
  left: 4%;
  display: grid;
  width: 83px;
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
  text-align: center;
  font: 8px/1.4 var(--mono);
  transform: rotate(-11deg);
}

.art-stamp b {
  margin-top: 2px;
  font: 15px var(--serif);
}

.landing .landing-footer {
  min-height: 39px;
  border-top: 1px solid var(--landing-grid);
  color: color-mix(in srgb, var(--landing-copy) 61%, transparent);
  font-size: 8px;
}

.landing-footer i {
  color: var(--accent);
}

@keyframes printFloat {

  0%,
  100% {
    transform: translateY(0) rotate(3.2deg);
  }

  50% {
    transform: translateY(-8px) rotate(1.7deg);
  }
}

@media (max-width: 900px) {
  .landing {
    padding-right: clamp(20px, 5vw, 44px);
    padding-left: clamp(20px, 5vw, 44px);
  }

  .landing-links {
    gap: 17px;
  }

  .landing-links a {
    font-size: 8px;
  }

  .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 20px;
    min-height: calc(100svh - 142px);
  }

  .landing .hero-copy h1 {
    font-size: clamp(52px, 7vw, 70px);
  }

  .landing .hero-subtitle {
    font-size: 22px;
  }

  .hero-art {
    min-height: 460px;
  }

  .machine-shell {
    left: 7%;
    width: 73%;
  }

  .hero-print {
    right: 0;
    width: clamp(150px, 23vw, 188px);
  }
}

@media (max-width: 620px) {
  .landing {
    padding-right: 19px;
    padding-left: 19px;
  }

  .landing-announce {
    min-height: 25px;
    justify-content: center;
    font-size: 7px;
  }

  .landing-announce span:last-child {
    display: none;
  }

  .landing-nav {
    min-height: 59px;
    gap: 10px;
  }

  .landing .wordmark {
    font-size: 16px;
  }

  .landing .wordmark i {
    font-size: 7px;
    padding-left: 5px;
  }

  .landing-links {
    display: none;
  }

  .nav-enter {
    min-height: 37px;
    padding: 0 10px;
    font-size: 9px;
  }

  .landing-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-height: 0;
    width: min(100%, 460px);
    padding: 25px 0 16px;
  }

  .landing .hero-copy {
    padding: 10px 0 0;
  }

  .landing .hero-copy .eyebrow {
    margin-bottom: 15px;
    font-size: 8px;
  }

  .landing .hero-copy h1 {
    font-size: clamp(49px, 12.8vw, 69px);
    line-height: 0.98;
  }

  .landing .hero-copy h1.klikta-hero-title {
    font-size: clamp(76px, 21vw, 112px);
    line-height: 0.9;
  }

  .landing .hero-subtitle {
    margin: 14px 0 6px;
    font-size: 21px;
  }

  .landing .hero-description {
    max-width: 360px;
    margin-bottom: 16px;
    font-size: 14px;
  }

  .hero-actions {
    gap: 13px;
  }

  .landing .enter-button {
    min-height: 47px;
    padding: 0 13px;
    font-size: 9px;
  }

  .hero-text-link {
    font-size: 8px;
  }



  .hero-art {
    min-height: 400px;
    width: 100%;
    margin-top: 10px;
  }

  .art-edition {
    top: 2%;
    left: 4%;
    font-size: 7px;
  }

  .art-crosshair {
    top: 6%;
    right: 9%;
  }

  .machine-shell {
    top: 8%;
    left: 10%;
    width: 72%;
    height: 80%;
    border-radius: 38px 38px 29px 29px;
  }

  .machine-lens {
    width: 67px;
  }

  .machine-light {
    width: 18px;
    height: 57px;
  }

  .hero-print {
    top: 13%;
    right: 2%;
    width: clamp(145px, 43vw, 180px);
    padding: 8px 8px 11px;
  }

  .print-frames {
    gap: 4px;
    padding: 4px;
  }

  .print-frames img {
    height: 74px;
  }

  .print-heading {
    font-size: 6px;
  }

  .art-stamp {
    bottom: 7%;
    left: 2%;
    width: 67px;
    font-size: 7px;
  }

  .art-coordinate {
    right: 1%;
    bottom: 3%;
    font-size: 6px;
  }

  .landing .landing-footer {
    min-height: 35px;
    gap: 12px;
    font-size: 6px;
  }

  .landing-footer span:last-child {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-print {
    animation: none;
  }
}

/* ── ✿ STUDIO AMBIANCE & BACKDROP THEMES ── */
body[data-backdrop="linen"],
.landing[data-backdrop="linen"] {
  --bg: #fdf6ee;
  --paper: #fffefa;
  --line: #e0dfd8;
  --landing-ground: #fdf6ee;
  --landing-grid: rgba(139, 115, 85, 0.05);
  --landing-glow: rgba(244, 184, 193, 0.25);
  --landing-copy: #3d3529;
  --landing-copy-muted: #8a7e6f;
  --landing-card-bg: rgba(255, 252, 245, 0.88);
  --landing-card-border: #e8dfd3;
  --landing-accent: #6db882;
  --landing-bg-image:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(142, 207, 160, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(244, 184, 193, 0.16), transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(200, 228, 247, 0.12), transparent 55%),
    linear-gradient(rgba(139, 115, 85, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 115, 85, 0.05) 1px, transparent 1px);
  --landing-bg-size: 100% 100%, 100% 100%, 100% 100%, 38px 38px, 38px 38px;
}

/* 🍁 AUTUMN CHILL AMBIANCE */
body[data-backdrop="autumn"],
.landing[data-backdrop="autumn"] {
  --bg: #fbf2e8;
  --paper: #fffaf5;
  --line: #ecdccb;
  --landing-ground: #fdf5eb;
  --landing-grid: rgba(184, 98, 44, 0.07);
  --landing-glow: rgba(235, 130, 60, 0.28);
  --landing-copy: #402b1c;
  --landing-copy-muted: #947155;
  --landing-card-bg: rgba(255, 250, 244, 0.92);
  --landing-card-border: rgba(224, 158, 102, 0.38);
  --landing-accent: #d97426;
  --landing-bg-image:
    radial-gradient(circle at 18% 22%, rgba(226, 125, 63, 0.22), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(204, 85, 38, 0.18), transparent 50%),
    radial-gradient(circle at 50% 40%, rgba(247, 194, 68, 0.16), transparent 55%),
    linear-gradient(rgba(184, 98, 44, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 98, 44, 0.06) 1px, transparent 1px);
  --landing-bg-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

/* 🌲 DEEP FOREST AMBIANCE */
body[data-backdrop="forest"],
.landing[data-backdrop="forest"] {
  --bg: #edf5ee;
  --paper: #f8fcf9;
  --line: #cde4d3;
  --landing-ground: #edf5ee;
  --landing-grid: rgba(46, 107, 63, 0.07);
  --landing-glow: rgba(114, 182, 131, 0.28);
  --landing-copy: #1e3623;
  --landing-copy-muted: #64866c;
  --landing-card-bg: rgba(250, 254, 250, 0.92);
  --landing-card-border: rgba(114, 182, 131, 0.38);
  --landing-accent: #489960;
  --landing-bg-image:
    radial-gradient(circle at 20% 25%, rgba(68, 140, 93, 0.24), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(42, 102, 66, 0.2), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(142, 207, 160, 0.18), transparent 60%),
    linear-gradient(rgba(46, 107, 63, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 107, 63, 0.06) 1px, transparent 1px);
  --landing-bg-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

/* 🌙 MIDNIGHT SKY AMBIANCE (Cozy Night Starlight Mode) */
body[data-backdrop="midnight"],
.landing[data-backdrop="midnight"] {
  --bg: #131624;
  --paper: #1c2136;
  --line: #353b58;
  --landing-ground: #131624;
  --landing-grid: rgba(180, 160, 240, 0.07);
  --landing-glow: rgba(142, 120, 212, 0.35);
  --landing-copy: #f4efff;
  --landing-copy-muted: #b0a8cf;
  --landing-card-bg: rgba(25, 29, 48, 0.88);
  --landing-card-border: rgba(164, 150, 222, 0.28);
  --landing-accent: #a78bfa;
  --landing-bg-image:
    radial-gradient(circle at 22% 25%, rgba(93, 76, 145, 0.45), transparent 55%),
    radial-gradient(circle at 78% 75%, rgba(41, 72, 125, 0.4), transparent 50%),
    radial-gradient(circle at 50% 30%, rgba(142, 120, 212, 0.28), transparent 55%),
    linear-gradient(rgba(180, 160, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 160, 240, 0.05) 1px, transparent 1px);
  --landing-bg-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

body[data-backdrop="midnight"] h1,
body[data-backdrop="midnight"] h2,
body[data-backdrop="midnight"] h3,
body[data-backdrop="midnight"] .landing-links a,
body[data-backdrop="midnight"] .hero-text-link,
body[data-backdrop="midnight"] .features-title,
body[data-backdrop="midnight"] .demo-title,
body[data-backdrop="midnight"] .picker-label,
body[data-backdrop="midnight"] .fun-stat .stat-number,
body[data-backdrop="midnight"] .fun-stat .stat-label,
body[data-backdrop="midnight"] .demo-strip-header,
body[data-backdrop="midnight"] .demo-strip-footer {
  color: #f4efff !important;
}

body[data-backdrop="midnight"] .hero-description,
body[data-backdrop="midnight"] .features-subtitle,
body[data-backdrop="midnight"] .demo-description,
body[data-backdrop="midnight"] .feature-card p,
body[data-backdrop="midnight"] .picker-kicker,
body[data-backdrop="midnight"] .landing-footer {
  color: #b0a8cf !important;
}

body[data-backdrop="midnight"] .feature-card,
body[data-backdrop="midnight"] .demo-container,
body[data-backdrop="midnight"] .backdrop-picker,
body[data-backdrop="midnight"] .demo-strip-frame {
  background: rgba(25, 29, 48, 0.88) !important;
  border-color: rgba(164, 150, 222, 0.28) !important;
  box-shadow: 0 16px 40px rgba(10, 12, 24, 0.45) !important;
}

body[data-backdrop="midnight"] .backdrop-swatch {
  background: rgba(35, 40, 64, 0.8) !important;
  border-color: rgba(164, 150, 222, 0.2) !important;
}
body[data-backdrop="midnight"] .backdrop-swatch:hover,
body[data-backdrop="midnight"] .backdrop-swatch.selected {
  background: rgba(45, 52, 82, 0.95) !important;
  border-color: #a78bfa !important;
}
body[data-backdrop="midnight"] .backdrop-swatch .backdrop-name {
  color: #f4efff !important;
}
body[data-backdrop="midnight"] .leaf-toggle-pill {
  background: rgba(35, 40, 64, 0.85) !important;
  border-color: rgba(164, 150, 222, 0.35) !important;
  color: #f4efff !important;
}

/* 🌧️ RAINY DAY AMBIANCE */
body[data-backdrop="rainy"],
.landing[data-backdrop="rainy"] {
  --bg: #edf2f6;
  --paper: #f9fbfd;
  --line: #cddbe5;
  --landing-ground: #edf2f6;
  --landing-grid: rgba(78, 126, 158, 0.07);
  --landing-glow: rgba(123, 163, 190, 0.25);
  --landing-copy: #223445;
  --landing-copy-muted: #6a8296;
  --landing-card-bg: rgba(250, 253, 255, 0.92);
  --landing-card-border: rgba(123, 163, 190, 0.38);
  --landing-accent: #4e8ab3;
  --landing-bg-image:
    radial-gradient(circle at 20% 30%, rgba(116, 148, 172, 0.24), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(85, 122, 149, 0.2), transparent 50%),
    radial-gradient(circle at 50% 45%, rgba(145, 182, 204, 0.16), transparent 55%),
    linear-gradient(rgba(78, 126, 158, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 126, 158, 0.06) 1px, transparent 1px);
  --landing-bg-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

/* 🌸 ROSE / SAKURA AMBIANCE */
body[data-backdrop="rose"],
.landing[data-backdrop="rose"] {
  --bg: #fdf2f4;
  --paper: #fff9fa;
  --line: #f2d4dc;
  --landing-ground: #fdf2f4;
  --landing-grid: rgba(217, 117, 145, 0.07);
  --landing-glow: rgba(246, 165, 181, 0.32);
  --landing-copy: #3d2830;
  --landing-copy-muted: #956976;
  --landing-card-bg: rgba(255, 250, 252, 0.92);
  --landing-card-border: rgba(240, 165, 181, 0.4);
  --landing-accent: #e07a93;
  --landing-bg-image:
    radial-gradient(circle at 20% 20%, rgba(246, 165, 181, 0.3), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(230, 142, 163, 0.22), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(255, 204, 213, 0.2), transparent 55%),
    linear-gradient(rgba(217, 117, 145, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 117, 145, 0.06) 1px, transparent 1px);
  --landing-bg-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

/* 🌿 SAGE / MATCHA AMBIANCE */
body[data-backdrop="sage"],
.landing[data-backdrop="sage"] {
  --bg: #edf4ee;
  --paper: #f8fcf9;
  --line: #cde2d3;
  --landing-ground: #edf4ee;
  --landing-grid: rgba(85, 156, 107, 0.07);
  --landing-glow: rgba(142, 207, 160, 0.3);
  --landing-copy: #233628;
  --landing-copy-muted: #64866c;
  --landing-card-bg: rgba(251, 254, 251, 0.92);
  --landing-card-border: rgba(142, 207, 160, 0.4);
  --landing-accent: #6db882;
  --landing-bg-image:
    radial-gradient(circle at 30% 20%, rgba(142, 207, 160, 0.28), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(109, 184, 130, 0.22), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(180, 222, 192, 0.18), transparent 55%),
    linear-gradient(rgba(85, 156, 107, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 156, 107, 0.06) 1px, transparent 1px);
  --landing-bg-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

/* 💜 LILAC / LAVENDER AMBIANCE */
body[data-backdrop="lilac"],
.landing[data-backdrop="lilac"] {
  --bg: #f5f1fb;
  --paper: #faf8fd;
  --line: #dfd4f0;
  --landing-ground: #f5f1fb;
  --landing-grid: rgba(155, 128, 202, 0.07);
  --landing-glow: rgba(203, 183, 232, 0.32);
  --landing-copy: #2f253d;
  --landing-copy-muted: #7e6c98;
  --landing-card-bg: rgba(253, 250, 255, 0.92);
  --landing-card-border: rgba(195, 180, 230, 0.4);
  --landing-accent: #9b80ca;
  --landing-bg-image:
    radial-gradient(circle at 25% 25%, rgba(186, 169, 230, 0.3), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(217, 207, 240, 0.32), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(223, 211, 245, 0.2), transparent 55%),
    linear-gradient(rgba(155, 128, 202, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 128, 202, 0.06) 1px, transparent 1px);
  --landing-bg-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

/* 🌅 GOLDEN SUNSET AMBIANCE */
body[data-backdrop="sunset"],
.landing[data-backdrop="sunset"] {
  --bg: #fdf3e7;
  --paper: #fffaf4;
  --line: #f2decb;
  --landing-ground: #fdf3e7;
  --landing-grid: rgba(226, 117, 58, 0.07);
  --landing-glow: rgba(248, 150, 30, 0.3);
  --landing-copy: #3d2719;
  --landing-copy-muted: #95694c;
  --landing-card-bg: rgba(255, 251, 246, 0.92);
  --landing-card-border: rgba(240, 160, 110, 0.4);
  --landing-accent: #e2753a;
  --landing-bg-image:
    linear-gradient(rgba(253, 243, 231, 0.84), rgba(253, 243, 231, 0.84)),
    url("https://images.unsplash.com/photo-1470252649378-9c29740c9fa8?auto=format&fit=crop&w=1800&q=82");
  --landing-bg-size: cover;
  background-attachment: fixed !important;
}

/* 🌊 COASTAL BEACH AMBIANCE */
body[data-backdrop="beach"],
.landing[data-backdrop="beach"] {
  --bg: #ebf7f7;
  --paper: #f8fdfd;
  --line: #cbe6e6;
  --landing-ground: #ebf7f7;
  --landing-grid: rgba(56, 178, 184, 0.07);
  --landing-glow: rgba(114, 221, 247, 0.28);
  --landing-copy: #1b3537;
  --landing-copy-muted: #5e8486;
  --landing-card-bg: rgba(250, 255, 255, 0.92);
  --landing-card-border: rgba(120, 205, 210, 0.4);
  --landing-accent: #32a9af;
  --landing-bg-image:
    linear-gradient(rgba(235, 247, 247, 0.84), rgba(235, 247, 247, 0.84)),
    url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=1800&q=82");
  --landing-bg-size: cover;
  background-attachment: fixed !important;
}

/* 🌻 BOTANICAL GARDEN AMBIANCE */
body[data-backdrop="garden"],
.landing[data-backdrop="garden"] {
  --bg: #eff6ee;
  --paper: #f9fcf9;
  --line: #d1e6d1;
  --landing-ground: #eff6ee;
  --landing-grid: rgba(82, 166, 94, 0.07);
  --landing-glow: rgba(112, 224, 0, 0.26);
  --landing-copy: #1f3621;
  --landing-copy-muted: #608563;
  --landing-card-bg: rgba(251, 255, 251, 0.92);
  --landing-card-border: rgba(135, 192, 140, 0.4);
  --landing-accent: #4a9e57;
  --landing-bg-image:
    linear-gradient(rgba(239, 246, 238, 0.84), rgba(239, 246, 238, 0.84)),
    url("https://images.unsplash.com/photo-1416879595882-3373a0480b5b?auto=format&fit=crop&w=1800&q=82");
  --landing-bg-size: cover;
  background-attachment: fixed !important;
}

/* 🎬 RETRO CINEMA AMBIANCE */
body[data-backdrop="cinema"],
.landing[data-backdrop="cinema"] {
  --bg: #f4eee5;
  --paper: #fdfaf6;
  --line: #dfd4c5;
  --landing-ground: #f4eee5;
  --landing-grid: rgba(154, 107, 71, 0.07);
  --landing-glow: rgba(212, 163, 115, 0.28);
  --landing-copy: #362c26;
  --landing-copy-muted: #8b7666;
  --landing-card-bg: rgba(255, 252, 248, 0.92);
  --landing-card-border: rgba(195, 175, 155, 0.4);
  --landing-accent: #946543;
  --landing-bg-image:
    linear-gradient(rgba(244, 238, 229, 0.85), rgba(244, 238, 229, 0.85)),
    url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1800&q=82");
  --landing-bg-size: cover;
  background-attachment: fixed !important;
}

/* 💐 FLOWER FIELD AMBIANCE */
body[data-backdrop="flowers"],
.landing[data-backdrop="flowers"] {
  --bg: #fdf0f5;
  --paper: #fff8fb;
  --line: #f0d1de;
  --landing-ground: #fdf0f5;
  --landing-grid: rgba(196, 91, 142, 0.07);
  --landing-glow: rgba(244, 162, 97, 0.28);
  --landing-copy: #3b2432;
  --landing-copy-muted: #8f677f;
  --landing-card-bg: rgba(255, 250, 253, 0.92);
  --landing-card-border: rgba(225, 160, 190, 0.4);
  --landing-accent: #bd5587;
  --landing-bg-image:
    linear-gradient(rgba(253, 240, 245, 0.84), rgba(253, 240, 245, 0.84)),
    url("https://images.unsplash.com/photo-1490750967868-88aa4486c946?auto=format&fit=crop&w=1800&q=82");
  --landing-bg-size: cover;
  background-attachment: fixed !important;
}

/* 🎉 CELEBRATION / PARTY AMBIANCE */
body[data-backdrop="celebration"],
.landing[data-backdrop="celebration"] {
  --bg: #fdf0f2;
  --paper: #fff8f9;
  --line: #f2d1d6;
  --landing-ground: #fdf0f2;
  --landing-grid: rgba(216, 82, 104, 0.07);
  --landing-glow: rgba(255, 209, 102, 0.32);
  --landing-copy: #3b2326;
  --landing-copy-muted: #91666c;
  --landing-card-bg: rgba(255, 250, 251, 0.92);
  --landing-card-border: rgba(230, 160, 170, 0.4);
  --landing-accent: #d14960;
  --landing-bg-image:
    linear-gradient(rgba(253, 240, 242, 0.84), rgba(253, 240, 242, 0.84)),
    url("https://images.unsplash.com/photo-1519167758481-83f550bb49b3?auto=format&fit=crop&w=1800&q=82");
  --landing-bg-size: cover;
  background-attachment: fixed !important;
}

body[data-backdrop="original"],
body[data-backdrop="transparent"],
.landing[data-backdrop="original"],
.landing[data-backdrop="transparent"] {
  --bg: #fdf6ee;
  --paper: #fffefa;
  --line: #e0dfd8;
  --landing-ground: #fdf6ee;
}

/* ── ✿ STUDIO AMBIANCE PICKER COMPONENT ── */
.backdrop-picker {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 920px;
  margin: 32px auto 0 !important;
  padding: 26px clamp(18px, 3.5vw, 32px);
  background: var(--landing-card-bg, rgba(255, 252, 245, 0.88));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px dashed var(--landing-card-border, #e8dfd3);
  border-radius: 28px;
  box-shadow: 0 12px 36px rgba(80, 63, 48, 0.07);
  transition: all 0.5s ease;
  box-sizing: border-box;
}

.backdrop-picker-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
  margin-bottom: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.backdrop-picker-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.picker-kicker {
  font-family: var(--ghibli-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--landing-accent, #6db882);
  transition: color 0.4s ease;
}

.picker-label {
  font-family: var(--ghibli-hand);
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--landing-copy, #3d3529);
  line-height: 1.1;
  transition: color 0.4s ease;
}

.leaf-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--landing-card-border, #e8dfd3);
  border-radius: 999px;
  font-family: var(--ghibli-font);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--landing-copy, #3d3529);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(80, 63, 48, 0.06);
}

.leaf-toggle-pill:hover {
  transform: translateY(-2px);
  border-color: var(--landing-accent, #6db882);
  box-shadow: 0 6px 18px rgba(109, 184, 130, 0.25);
}

.leaf-toggle-pill .leaf-icon {
  font-size: 16px;
  display: inline-block;
  animation: leafWiggle 3s ease-in-out infinite;
}

@keyframes leafWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-14deg) scale(1.15); }
  75% { transform: rotate(12deg) scale(1.08); }
}

.backdrop-options {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .backdrop-options {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
    gap: 8px !important;
  }
}

.backdrop-swatch {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 6px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 84px !important;
  border-radius: 16px !important;
  border: 2px solid transparent !important;
  background: rgba(255, 255, 255, 0.7) !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  text-align: center;
  box-sizing: border-box;
}

.backdrop-swatch:hover {
  background: #ffffff !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 22px rgba(80, 63, 48, 0.12) !important;
}

.backdrop-swatch.selected {
  background: #ffffff !important;
  border-color: var(--landing-accent, #6db882) !important;
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 10px 26px rgba(109, 184, 130, 0.32) !important;
}

.backdrop-swatch .backdrop-thumb {
  position: relative !important;
  width: 100% !important;
  height: 48px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background-position: center !important;
  background-size: cover !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.3s ease !important;
}

.backdrop-swatch .backdrop-name {
  font-family: var(--ghibli-font) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--landing-copy, #3d3529) !important;
  white-space: nowrap !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

.backdrop-swatch:hover .backdrop-thumb {
  transform: scale(1.05);
}

.backdrop-swatch.selected .backdrop-thumb::after {
  content: "✓";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--landing-accent, #2b7a42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.backdrop-swatch .backdrop-name {
  font-family: var(--ghibli-font);
  font-size: 11px;
  font-weight: 700;
  color: var(--landing-copy, #3d3529);
  white-space: nowrap;
  text-align: center;
  transition: color 0.3s ease;
}

/* ✿ SWATCH INDEPENDENT PREVIEW THUMBNAILS */
.backdrop-swatch[data-backdrop="linen"] .backdrop-thumb {
  background: linear-gradient(135deg, #fdf6ee, #f3e5d3);
}
.backdrop-swatch[data-backdrop="autumn"] .backdrop-thumb {
  background-image: url("https://images.unsplash.com/photo-1509114397022-ed747cca3f65?auto=format&fit=crop&w=200&q=80");
}
.backdrop-swatch[data-backdrop="forest"] .backdrop-thumb {
  background-image: url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=200&q=80");
}
.backdrop-swatch[data-backdrop="midnight"] .backdrop-thumb {
  background-image: url("https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=200&q=80");
}
.backdrop-swatch[data-backdrop="rainy"] .backdrop-thumb {
  background-image: url("https://images.unsplash.com/photo-1515694346937-94d85e41e6f0?auto=format&fit=crop&w=200&q=80");
}
.backdrop-swatch[data-backdrop="rose"] .backdrop-thumb {
  background-image: url("https://images.unsplash.com/photo-1522383225653-ed111181a951?auto=format&fit=crop&w=200&q=80");
}
.backdrop-swatch[data-backdrop="sage"] .backdrop-thumb {
  background-image: url("https://images.unsplash.com/photo-1513836279014-a89f7a76ae86?auto=format&fit=crop&w=200&q=80");
}
.backdrop-swatch[data-backdrop="lilac"] .backdrop-thumb {
  background-image: url("https://images.unsplash.com/photo-1528183429752-a97d0bf99b5a?auto=format&fit=crop&w=200&q=80");
}
.backdrop-swatch[data-backdrop="beach"] .backdrop-thumb {
  background-image: url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=200&q=80");
}
.backdrop-swatch[data-backdrop="garden"] .backdrop-thumb {
  background-image: url("https://images.unsplash.com/photo-1416879595882-3373a0480b5b?auto=format&fit=crop&w=200&q=80");
}
.backdrop-swatch[data-backdrop="cinema"] .backdrop-thumb {
  background-image: url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=200&q=80");
}
.backdrop-swatch[data-backdrop="sunset"] .backdrop-thumb {
  background-image: url("https://images.unsplash.com/photo-1470252649378-9c29740c9fa8?auto=format&fit=crop&w=200&q=80");
}
.backdrop-swatch[data-backdrop="flowers"] .backdrop-thumb {
  background-image: url("https://images.unsplash.com/photo-1490750967868-88aa4486c946?auto=format&fit=crop&w=200&q=80");
}
.backdrop-swatch[data-backdrop="celebration"] .backdrop-thumb {
  background-image: url("https://images.unsplash.com/photo-1519167758481-83f550bb49b3?auto=format&fit=crop&w=200&q=80");
}
.backdrop-swatch[data-backdrop="original"] .backdrop-thumb {
  background: linear-gradient(135deg, #e8e4da, #b9b4aa);
}
.backdrop-swatch[data-backdrop="transparent"] .backdrop-thumb {
  background-color: #f6f4ef;
  background-image:
    linear-gradient(45deg, #dcd9d1 25%, transparent 25%),
    linear-gradient(-45deg, #dcd9d1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #dcd9d1 75%),
    linear-gradient(-45deg, transparent 75%, #dcd9d1 75%);
  background-size: 10px 10px;
}
.backdrop-swatch[data-backdrop="custom"] .backdrop-thumb {
  background: linear-gradient(135deg, #cfd9df, #e2ebf0);
}

/* Ambient Falling Leaves Canvas */
.ambient-leaves-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 95;
}


.booth-backdrop-section {
  padding-top: 0;
}

.booth-backdrop-section .select-label {
  margin-top: 0;
}

.booth-backdrop-section .backdrop-upload-button {
  min-height: 36px;
  margin: 8px 0 0;
}

.filter-swatch {
  position: relative;
  overflow: hidden;
  background-image: url("https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=240&q=82");
  background-position: center 38%;
  background-size: cover;
}

.filter-swatch i {
  display: none;
}

.swatch-original {
  filter: none;
}

.swatch-film {
  filter: contrast(1.06) saturate(0.79) sepia(0.12);
}

.swatch-vintage {
  filter: sepia(0.43) saturate(0.78) contrast(0.91);
}

.swatch-polaroid {
  filter: contrast(0.94) saturate(0.84) brightness(1.08);
}

.swatch-warm {
  filter: sepia(0.18) saturate(1.23) contrast(1.03);
}

.swatch-cool {
  filter: saturate(0.84) hue-rotate(12deg) contrast(1.04);
}

.swatch-bw {
  filter: grayscale(1) contrast(1.13);
}

.swatch-dreamy {
  filter: brightness(1.12) saturate(0.82) blur(0.45px);
}

.swatch-y2k {
  filter: brightness(1.07) saturate(1.23) hue-rotate(326deg);
}

.swatch-vhs {
  filter: saturate(1.4) contrast(1.08);
}

.swatch-vhs::after {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(0deg, transparent 0 4px, #fff5 5px 6px);
  pointer-events: none;
}

.mood-chip>span,
.backdrop-upload-button>i {
  display: none;
}



.klikta-wordmark {
  font-family: "Lilita One", var(--sans);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.klikta-wordmark span {
  color: var(--accent);
}

.landing .klikta-wordmark {
  font-size: 28px;
}

.brand-lockup {
  margin: 0 0 3px;
  color: var(--accent-dark);
  font-family: "Lilita One", var(--sans);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1;
}

.brand-lockup span {
  color: var(--ink);
}

.landing .hero-copy h1.klikta-hero-title {
  font-family: "Lilita One", var(--sans);
  font-size: clamp(76px, 10vw, 136px);
  line-height: 0.86;
  font-weight: 400;
  color: #252522;
  text-shadow: 3px 4px 0 #e7c94e;
}

.landing .hero-copy h1.klikta-hero-title em {
  color: #4aa49d;
  font-style: normal;
  font-weight: 400;
  text-shadow: 2px 3px 0 #f3d769;
}

.result-screen {
  display: block;
  padding: 26px clamp(18px, 4vw, 54px) 28px;
}

.result-screen[hidden] {
  display: none;
}

.editor-header {
  width: min(1160px, 100%);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 18px;
  padding-right: 44px;
}

.editor-header .eyebrow {
  margin-bottom: 3px;
}

.editor-header h2 {
  margin: 0;
  font: 500 clamp(30px, 4vw, 44px)/1.05 var(--serif);
}

.editor-header h2 em {
  color: var(--accent-dark);
  font-weight: 400;
}

.editor-note {
  margin: 0 0 4px;
  color: var(--muted);
  font: italic 17px var(--serif);
}

.editor-workspace {
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  align-items: start;
  gap: clamp(20px, 4vw, 52px);
  margin: 0 auto;
}

.editor-preview-column {
  position: sticky;
  top: 16px;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 0;
  padding: 12px 12px 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 68%, transparent);
  backdrop-filter: blur(14px);
}

.editor-preview-column .result-print {
  max-width: min(100%, 440px);
  max-height: min(68vh, 690px);
  transform: rotate(-1deg);
}

.editor-preview-column .result-print img {
  max-width: min(100%, 424px);
  max-height: min(68vh, 674px);
}

.sticker-handles {
  position: absolute;
  z-index: 3;
  inset: 8px 8px 17px;
  pointer-events: none;
}

.sticker-handle {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  padding: 2px;
  border: 1px dashed transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 29px;
  line-height: 1;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.sticker-handle:hover,
.sticker-handle:focus-visible {
  border-color: var(--accent-dark);
  background: #fff9;
  outline: none;
}

.sticker-handle:active {
  cursor: grabbing;
}

.live-photo-bar {
  width: min(100%, 440px);
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 12px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.live-photo-mark {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font: 8px var(--mono);
  white-space: nowrap;
}

.live-photo-mark i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.live-photo-bar video {
  width: 76px;
  height: 43px;
  border-radius: 3px;
  object-fit: cover;
}

.live-photo-hint {
  overflow: hidden;
  color: var(--muted);
  font: italic 13px var(--serif);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-photo-bar button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: 8px var(--mono);
}

.live-photo-bar button:disabled {
  opacity: 0.4;
}

.live-photo-bar button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.memory-editor {
  min-width: 0;
  max-height: calc(100svh - 120px);
  overflow-y: auto;
  padding: 0 3px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.editor-section {
  padding: 13px 0 15px;
  border-bottom: 1px solid var(--line);
}

.editor-section:first-child {
  padding-top: 0;
}

.editor-section .select-label {
  margin: 0 0 7px;
}

.color-control {
  width: 100%;
  height: 33px;
  display: block;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.editor-sticker-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.editor-sticker-list button {
  min-width: 0;
  aspect-ratio: 1.05;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  font-size: 20px;
  transition:
    transform 250ms var(--ease),
    border-color 250ms ease;
}

.editor-sticker-list button:hover {
  transform: translateY(-2px) rotate(-3deg);
  border-color: var(--accent);
}

.editor-sticker-list button:last-child {
  color: var(--muted);
  font: 8px var(--mono);
}

.sticker-adjustments {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 8px;
}

.remove-sticker-button,
.editor-reset {
  min-height: 33px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: 8px var(--mono);
}

.remove-sticker-button:disabled {
  opacity: 0.45;
}

.remove-sticker-button:not(:disabled):hover,
.editor-reset:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.editor-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font: italic 13px var(--serif);
}

.editor-text-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 1.2fr) 52px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.editor-text-options .color-control {
  height: 30px;
}

.editor-text-options input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.enhance-button {
  width: 100%;
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: left;
}

.enhance-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
}

.enhance-spark {
  color: var(--accent-dark);
  font-size: 21px;
}

.enhance-button b {
  display: block;
  font: 9px var(--mono);
}

.enhance-button small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.enhance-state {
  margin-left: auto;
  color: var(--muted);
  font: 8px var(--mono);
}

.enhance-button[aria-pressed="true"] .enhance-state {
  color: var(--accent-dark);
}

.ghibli-ai-btn {
  position: relative;
  background: linear-gradient(135deg, rgba(82, 138, 99, 0.06), rgba(245, 183, 73, 0.1)) !important;
  border: 1.5px solid rgba(82, 138, 99, 0.3) !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.ghibli-ai-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(82, 138, 99, 0.6) !important;
  box-shadow: 0 4px 14px rgba(82, 138, 99, 0.15);
}

.ghibli-ai-btn .enhance-spark {
  display: inline-block;
  font-size: 20px;
  animation: ghibliSparkle 2.4s infinite ease-in-out;
}

@keyframes ghibliSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50% { transform: scale(1.22) rotate(14deg); opacity: 1; }
}

.ghibli-ai-btn[aria-pressed="true"] {
  border-color: #528a63 !important;
  background: linear-gradient(135deg, rgba(82, 138, 99, 0.16), rgba(245, 183, 73, 0.22)) !important;
  box-shadow: 0 4px 16px rgba(82, 138, 99, 0.25);
}

.ghibli-ai-btn[aria-pressed="true"] .ai-ghibli-state {
  color: #2c4833 !important;
  font-weight: 800;
  background: rgba(142, 207, 160, 0.35);
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 1px;
  color: var(--muted);
  font: 8px var(--mono);
}

.adjustment-slider {
  width: 100%;
  accent-color: var(--accent);
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 14px;
}

.editor-reset {
  margin-right: auto;
}

.editor-actions .result-action {
  min-height: 52px;
  flex: 1;
}

@media (max-width: 760px) {
  .result-screen {
    padding: 21px 14px 24px;
  }

  .editor-header {
    align-items: start;
    margin-bottom: 12px;
    padding-right: 37px;
  }

  .editor-header h2 {
    font-size: 34px;
  }

  .editor-note {
    display: none;
  }

  .editor-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .editor-preview-column {
    position: relative;
    top: auto;
    padding: 9px;
  }

  .editor-preview-column .result-print {
    max-height: none;
    height: auto;
  }

  .editor-preview-column .result-print img {
    max-height: min(42vh, 400px);
  }

  .live-photo-bar {
    margin-top: 8px;
  }

  .memory-editor {
    max-height: none;
    overflow: visible;
  }

  .editor-section {
    padding: 11px 0 12px;
  }

  .editor-sticker-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .editor-sticker-list button {
    font-size: 17px;
  }

  .live-photo-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 6px;
    row-gap: 5px;
    padding: 6px 7px;
  }

  .live-photo-mark {
    grid-column: 1;
    grid-row: 1;
  }

  .live-photo-bar video {
    grid-column: 1;
    grid-row: 2;
    width: 76px;
    height: 43px;
  }

  .live-photo-hint {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .live-photo-bar #comparePhoto {
    grid-column: 2;
    grid-row: 1;
  }

  .live-photo-bar #downloadLivePhoto {
    grid-column: 3;
    grid-row: 1;
  }

  .live-photo-bar button {
    min-height: 30px;
    font-size: 7px;
  }

  .editor-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .editor-actions .editor-reset {
    grid-column: 1 / -1;
  }

  .editor-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: 10px 0 max(5px, env(safe-area-inset-bottom));
    background: var(--bg);
  }
}

/* =========================================
   ✿ GHIBLI BUBBLY THEME — COMPLETE OVERHAUL ✿
   A dreamy, nature-inspired, bubbly redesign
   ========================================= */

/* ── 0. CSS CUSTOM PROPERTY OVERRIDES ── */
:root {
  --ghibli-cream: #fdf6ee;
  --ghibli-paper: #fffcf5;
  --ghibli-ink: #3d3529;
  --ghibli-muted: #8a7e6f;
  --ghibli-green: #8ecfa0;
  --ghibli-green-dark: #6db882;
  --ghibli-pink: #f4b8c1;
  --ghibli-pink-dark: #e9949f;
  --ghibli-sky: #c8e4f7;
  --ghibli-sky-dark: #9ac8e8;
  --ghibli-lavender: #d9cff0;
  --ghibli-butter: #f7e5a0;
  --ghibli-peach: #fdd8c7;
  --ghibli-brown: #c4a882;
  --ghibli-line: #e8dfd3;
  --ghibli-radius: 22px;
  --ghibli-font: "Quicksand", "Karla", sans-serif;
  --ghibli-hand: "Caveat", cursive;
  --ghibli-shadow: 0 12px 44px rgba(80, 63, 48, 0.10);
  --ghibli-shadow-lg: 0 22px 64px rgba(80, 63, 48, 0.14);
  --ghibli-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── 1. GLOBAL FONT & BASE OVERRIDES ── */
body {
  font-family: var(--ghibli-font) !important;
  background-color: var(--landing-ground, var(--ghibli-cream));
  color: var(--landing-copy, var(--ghibli-ink));
  letter-spacing: 0.01em;
  transition: background-color 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.5s ease;
}

/* Override all mono text to use Quicksand too */
.eyebrow,
.section-heading,
.film-counter,
.camera-topline,
.camera-caption>span:last-child,
.shutter-caption,
.select-label,
.landing-announce,
.section-heading span,
.timer-button,
.sound-toggle,
.mood-chip,
.surprise-button,
.upload-button,
.clear-button,
.booth-footer,
.memories-jump span,
.header-center,
.result-action span,
.enhance-button b,
.live-photo-mark,
.landing-footer,
.nav-note,
.picker-kicker,
.art-edition,
.art-coordinate,
.machine-brand small,
.print-heading,
.hero-print figcaption,
.slider-label,
.editor-sticker-list button:last-child,
.remove-sticker-button,
.editor-reset,
.share-message,
.memory-modal-content .modal-title,
.live-photo-bar button,
.landing-links a,
.hero-text-link,
.video-placeholder p,
.text-action,
.ready-note,
.badge-mono,
.art-stamp {
  font-family: var(--ghibli-font) !important;
  letter-spacing: 0.02em;
}

/* Handwritten accent for headings */
.hero-copy h1,
.studio-heading h2,
.memories-heading h2,
.result-copy h2,
.editor-header h2,
.camera-caption>span:first-child,
.picker-label,
.gallery-empty {
  font-family: var(--ghibli-hand) !important;
}

/* ── 2. LANDING PAGE ── */
.landing {
  --landing-ground: var(--ghibli-cream);
  --landing-grid: rgba(139, 115, 85, 0.05);
  --landing-copy: var(--ghibli-ink);
  --landing-glow: rgba(244, 184, 193, 0.25);
  background-color: var(--landing-ground);
  background-image: var(--landing-bg-image,
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(142, 207, 160, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(244, 184, 193, 0.15), transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(200, 228, 247, 0.10), transparent 55%),
    linear-gradient(var(--landing-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--landing-grid) 1px, transparent 1px)
  );
  background-size: var(--landing-bg-size,
    100% 100%,
    100% 100%,
    100% 100%,
    38px 38px,
    38px 38px
  );
  transition:
    background-color 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-image 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.5s ease;
}

/* ── 3. GHIBLI CLOUDS ── */
.ghibli-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 100px;
  filter: blur(1px);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: inherit;
}

.cloud-1 {
  width: 180px;
  height: 52px;
  top: 8%;
  left: -60px;
  animation: cloudDrift 28s linear infinite;
}

.cloud-1::before {
  width: 80px;
  height: 64px;
  top: -30px;
  left: 28px;
}

.cloud-1::after {
  width: 100px;
  height: 50px;
  top: -20px;
  left: 72px;
}

.cloud-2 {
  width: 140px;
  height: 42px;
  top: 18%;
  left: -50px;
  opacity: 0.6;
  animation: cloudDrift 38s linear infinite;
  animation-delay: -12s;
}

.cloud-2::before {
  width: 60px;
  height: 50px;
  top: -25px;
  left: 22px;
}

.cloud-2::after {
  width: 75px;
  height: 40px;
  top: -18px;
  left: 55px;
}

.cloud-3 {
  width: 160px;
  height: 46px;
  top: 30%;
  left: -70px;
  opacity: 0.35;
  animation: cloudDrift 45s linear infinite;
  animation-delay: -25s;
}

.cloud-3::before {
  width: 70px;
  height: 55px;
  top: -28px;
  left: 30px;
}

.cloud-3::after {
  width: 85px;
  height: 42px;
  top: -17px;
  left: 60px;
}

@keyframes cloudDrift {
  from {
    transform: translateX(-200px);
  }

  to {
    transform: translateX(calc(100vw + 200px));
  }
}

/* ── 4. NAV ── */
.ghibli-nav {
  border-bottom: 2.5px dashed rgba(196, 168, 130, 0.35) !important;
  /* padding-bottom: 18px; */
}

.ghibli-nav .wordmark {
  font-family: "Lilita One", var(--ghibli-font) !important;
  color: var(--ghibli-green-dark) !important;
  font-size: 28px !important;
  gap: 5px !important;
}

.ghibli-nav .wordmark span {
  color: var(--ghibli-pink-dark) !important;
  font-weight: 400 !important;
}

.wordmark-tagline {
  font-family: var(--ghibli-hand) !important;
  font-size: 14px !important;
  color: var(--ghibli-muted) !important;
  font-weight: 500 !important;
  margin-left: 4px;
}

.landing-links a {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--ghibli-ink) !important;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.3s var(--ghibli-ease) !important;
}

.landing-links a:hover {
  background: rgba(142, 207, 160, 0.15) !important;
  color: var(--ghibli-green-dark) !important;
}

.nav-enter.ghibli-btn-pink {
  background: var(--ghibli-pink) !important;
  color: var(--ghibli-ink) !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 10px 22px !important;
  font-size: 12px !important;
  box-shadow: 0 4px 0 var(--ghibli-pink-dark), 0 6px 18px rgba(244, 184, 193, 0.25) !important;
  border: none !important;
  transition: all 0.25s var(--ghibli-ease) !important;
}

.nav-enter.ghibli-btn-pink:hover {
  transform: translateY(2px) !important;
  box-shadow: 0 2px 0 var(--ghibli-pink-dark), 0 4px 12px rgba(244, 184, 193, 0.3) !important;
}

/* ── 5. BADGE ── */
.ghibli-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--ghibli-peach), var(--ghibli-pink)) !important;
  color: var(--ghibli-ink) !important;
  padding: 8px 22px !important;
  border-radius: 30px !important;
  font-family: var(--ghibli-font) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(244, 184, 193, 0.25) !important;
  letter-spacing: 0.03em;
  animation: badgeBounce 3s var(--ghibli-ease) infinite;
}

@keyframes badgeBounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.02);
  }
}

/* ── 6. HERO TITLE ── */
.ghibli-title {
  font-family: var(--ghibli-hand) !important;
  color: var(--ghibli-ink) !important;
  font-size: clamp(56px, 7vw, 95px) !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}

.ghibli-title em {
  color: var(--ghibli-green) !important;
  font-style: normal !important;
  position: relative;
  display: inline-block;
  text-shadow: none !important;
}

.ghibli-title em::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: -4px;
  right: -4px;
  height: 12px;
  background: linear-gradient(90deg, rgba(142, 207, 160, 0.35), rgba(200, 228, 247, 0.3));
  border-radius: 6px;
  z-index: -1;
}

/* ── 7. HERO DESCRIPTION ── */
.hero-description {
  color: var(--ghibli-muted) !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1.8 !important;
  font-family: var(--ghibli-font) !important;
}

/* ── 8. BUTTONS ── */
.ghibli-btn-green {
  background: var(--ghibli-green) !important;
  color: var(--ghibli-ink) !important;
  font-family: var(--ghibli-font) !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  box-shadow: 0 5px 0 var(--ghibli-green-dark), 0 8px 24px rgba(142, 207, 160, 0.25) !important;
  transition: all 0.25s var(--ghibli-ease) !important;
  padding: 0 28px !important;
  font-size: 16px !important;
  border: none !important;
  min-height: 54px !important;
}

.ghibli-btn-green:hover {
  transform: translateY(3px) !important;
  box-shadow: 0 2px 0 var(--ghibli-green-dark), 0 4px 14px rgba(142, 207, 160, 0.3) !important;
  background: #7cc492 !important;
}

.ghibli-btn-green:active {
  transform: translateY(5px) !important;
  box-shadow: 0 0 0 var(--ghibli-green-dark) !important;
}

.ghibli-link-brown {
  color: var(--ghibli-ink) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  border-bottom: 2px dashed transparent !important;
  transition: all 0.3s ease !important;
  padding-bottom: 2px !important;
}

.ghibli-link-brown:hover {
  border-bottom: 2px dashed var(--ghibli-brown) !important;
  color: var(--ghibli-green-dark) !important;
}

/* ── 9. FLOATING DECORATIONS ── */
.floating-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-decor span {
  position: absolute;
  font-size: 22px;
  animation: floatDecor 6s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

.decor-1 {
  top: 10%;
  left: 6%;
  font-size: 30px !important;
  animation-duration: 5s;
}

.decor-2 {
  top: 45%;
  left: 3%;
  animation-delay: 1.5s !important;
  font-size: 20px !important;
  animation-duration: 7s;
}

.decor-3 {
  top: 15%;
  right: 5%;
  font-size: 26px !important;
  animation-delay: 2.5s !important;
  animation-duration: 6s;
}

.decor-4 {
  top: 55%;
  right: 12%;
  animation-delay: 0.8s !important;
  font-size: 24px !important;
  animation-duration: 8s;
}

.decor-5 {
  top: 70%;
  left: 15%;
  font-size: 20px !important;
  animation-delay: 3.5s !important;
  animation-duration: 9s;
}

.decor-6 {
  top: 25%;
  left: 80%;
  font-size: 22px !important;
  animation-delay: 4s !important;
  animation-duration: 7.5s;
}

.decor-7 {
  top: 75%;
  right: 25%;
  font-size: 20px !important;
  animation-delay: 1s !important;
  animation-duration: 6.5s;
}

.decor-8 {
  top: 35%;
  right: 35%;
  font-size: 18px !important;
  animation-delay: 2s !important;
  animation-duration: 5.5s;
}

@keyframes floatDecor {

  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  25% {
    transform: translateY(-12px) rotate(5deg) scale(1.05);
  }

  50% {
    transform: translateY(-20px) rotate(-3deg) scale(1.1);
  }

  75% {
    transform: translateY(-8px) rotate(7deg) scale(1.02);
  }
}

/* ── 10. VIDEO CONTAINER ── */
.hero-video-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 20px 50px rgba(74, 63, 53, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  transition: all 0.5s var(--ghibli-ease);
  z-index: 2;
  transform: rotate(1.5deg);
}

.hero-video-container:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.01);
  box-shadow: 0 28px 60px rgba(74, 63, 53, 0.16);
}

.ghibli-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  display: block;
  background-color: var(--ghibli-cream);
}

/* ── 11. CAMERA SHELL (BOOTH) ── */
.camera-shell {
  background: var(--ghibli-paper) !important;
  border: 2px solid rgba(196, 168, 130, 0.2) !important;
  border-radius: var(--ghibli-radius) !important;
  box-shadow: var(--ghibli-shadow-lg) !important;
  transform: rotate(-0.5deg);
  transition: all 0.5s var(--ghibli-ease) !important;
}

.camera-shell:hover {
  transform: rotate(0) translateY(-4px) !important;
  box-shadow: 0 30px 70px rgba(80, 63, 48, 0.16) !important;
}

.camera-stage {
  border-radius: 16px !important;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(200, 228, 247, 0.2), transparent 60%),
    linear-gradient(135deg, #f2efe8, #e8e4dc 50%, #f0ede7) !important;
}

.camera-topline,
.camera-caption {
  font-weight: 600 !important;
}

.camera-caption>span:first-child {
  font-family: var(--ghibli-hand) !important;
  font-size: 20px !important;
  color: var(--ghibli-green-dark) !important;
}

/* ── 12. SHUTTER BUTTON ── */
.shutter-button {
  border: 2px solid var(--ghibli-pink) !important;
  transition: all 0.3s var(--ghibli-ease) !important;
}

.shutter-button:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 0 0 8px rgba(244, 184, 193, 0.15) !important;
}

.shutter-core {
  background: linear-gradient(135deg, var(--ghibli-pink), var(--ghibli-pink-dark)) !important;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4) !important;
}

.shutter-ring {
  border: 2px dashed rgba(244, 184, 193, 0.4) !important;
}

.round-control {
  background: var(--ghibli-paper) !important;
  border: 1.5px solid var(--ghibli-line) !important;
  border-radius: 50% !important;
  transition: all 0.3s var(--ghibli-ease) !important;
}

.round-control:hover,
.round-control[aria-pressed="true"] {
  color: var(--ghibli-green-dark) !important;
  border-color: var(--ghibli-green) !important;
  background: rgba(142, 207, 160, 0.08) !important;
  transform: scale(1.1) !important;
}

/* ── 13. CONTROLS COLUMN ── */
.controls-column {
  border-top: 2px dashed var(--ghibli-line) !important;
}

.control-section {
  border-bottom: 1.5px dashed var(--ghibli-line) !important;
  padding: 18px 0 19px !important;
}

.section-heading {
  color: var(--ghibli-muted) !important;
  font-weight: 600 !important;
  font-size: 10px !important;
}

.section-mark {
  color: var(--ghibli-pink) !important;
}

/* ── 14. MOOD CHIPS ── */
.mood-chip {
  border-radius: 30px !important;
  border: 1.5px solid var(--ghibli-line) !important;
  font-weight: 600 !important;
  font-size: 10px !important;
  transition: all 0.3s var(--ghibli-ease) !important;
  padding: 0 14px !important;
}

.mood-chip:hover,
.mood-chip.selected {
  border-color: var(--ghibli-green) !important;
  background: rgba(142, 207, 160, 0.12) !important;
  color: var(--ghibli-ink) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(142, 207, 160, 0.15);
}

.mood-chip span {
  color: var(--ghibli-pink) !important;
}

.surprise-button {
  color: var(--ghibli-green-dark) !important;
  font-weight: 700 !important;
}

.surprise-button:hover {
  color: var(--ghibli-pink-dark) !important;
}

/* ── 15. FILTER RAIL ── */
.filter-swatch {
  border-radius: 16px !important;
  border: 2.5px solid transparent !important;
  transition: all 0.35s var(--ghibli-ease) !important;
}

.filter-option:hover .filter-swatch {
  transform: translateY(-4px) scale(1.04) !important;
}

.filter-option.selected .filter-swatch {
  border-color: var(--ghibli-green) !important;
  transform: translateY(-4px) scale(1.04) !important;
  box-shadow: 0 6px 16px rgba(142, 207, 160, 0.2);
}

.filter-option {
  font-weight: 600 !important;
}

/* ── 16. MODE BUTTONS ── */
.mode-button {
  border: 1.5px solid var(--ghibli-line) !important;
  border-radius: 14px !important;
  font-weight: 600 !important;
  transition: all 0.3s var(--ghibli-ease) !important;
}

.mode-button:hover,
.mode-button.selected {
  color: var(--ghibli-ink) !important;
  border-color: var(--ghibli-green) !important;
  background: rgba(142, 207, 160, 0.1) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(142, 207, 160, 0.12);
}

/* ── 17. FORM CONTROLS ── */
.booth-select {
  border-radius: 14px !important;
  border-color: var(--ghibli-line) !important;
  background: var(--ghibli-paper) !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.booth-select:focus,
.text-entry input:focus {
  border-color: var(--ghibli-green) !important;
  box-shadow: 0 0 0 3px rgba(142, 207, 160, 0.15) !important;
}

.text-entry input {
  border-radius: 14px !important;
  border: 1.5px solid var(--ghibli-line) !important;
  background: var(--ghibli-paper) !important;
  font-weight: 500 !important;
}

.text-entry button {
  border-radius: 14px !important;
  background: var(--ghibli-green) !important;
  border-color: var(--ghibli-green) !important;
  font-weight: 700 !important;
}

.select-label {
  font-weight: 600 !important;
  color: var(--ghibli-muted) !important;
}

/* ── 18. STICKER BUTTONS ── */
.sticker-row button {
  border-radius: 14px !important;
  border: 1.5px solid var(--ghibli-line) !important;
  background: var(--ghibli-paper) !important;
  transition: all 0.3s var(--ghibli-ease) !important;
}

.sticker-row button:hover {
  transform: translateY(-4px) rotate(-8deg) scale(1.1) !important;
  border-color: var(--ghibli-pink) !important;
  box-shadow: 0 6px 14px rgba(244, 184, 193, 0.2);
}

/* ── 19. TIMER & SOUND ── */
.timer-button {
  border-radius: 12px !important;
  border: 1.5px solid var(--ghibli-line) !important;
  font-weight: 600 !important;
}

.timer-button.selected {
  border-color: var(--ghibli-green) !important;
  color: var(--ghibli-green-dark) !important;
  background: rgba(142, 207, 160, 0.1) !important;
}

.sound-toggle i {
  color: var(--ghibli-green) !important;
}

/* ── 20. UPLOAD BUTTON ── */
.upload-button {
  border: 2px dashed var(--ghibli-line) !important;
  border-radius: 16px !important;
  font-weight: 600 !important;
  transition: all 0.3s var(--ghibli-ease) !important;
}

.upload-button:hover {
  border-color: var(--ghibli-green) !important;
  color: var(--ghibli-green-dark) !important;
  background: rgba(142, 207, 160, 0.06) !important;
  transform: translateY(-2px);
}

/* ── 21. MEMORIES SECTION ── */
.memories-section {
  border-top: 2px dashed var(--ghibli-line) !important;
}

.memories-heading h2 {
  font-size: 38px !important;
  font-weight: 700 !important;
  color: var(--ghibli-ink) !important;
}

.memories-heading h2 i {
  color: var(--ghibli-pink) !important;
}

.clear-button {
  font-weight: 600 !important;
}

.clear-button i {
  color: var(--ghibli-pink) !important;
}

.gallery-item {
  border: 5px solid var(--ghibli-paper) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 20px rgba(80, 63, 48, 0.08) !important;
  transition: all 0.45s var(--ghibli-ease) !important;
}

.gallery-item:hover {
  transform: translateY(-8px) rotate(0) scale(1.03) !important;
  box-shadow: 0 16px 36px rgba(80, 63, 48, 0.14) !important;
}

.gallery-item img {
  border-radius: 11px !important;
}

.gallery-empty {
  font-family: var(--ghibli-hand) !important;
  font-size: 18px !important;
  color: var(--ghibli-muted) !important;
}

.gallery-empty span {
  color: var(--ghibli-pink) !important;
}

/* ── 22. BOOTH FOOTER ── */
.booth-footer {
  border-top: 2px dashed var(--ghibli-line) !important;
  font-weight: 600 !important;
}

.booth-footer i {
  color: var(--ghibli-green) !important;
}

/* ── 23. RESULT/EDITOR SCREEN ── */
.result-screen {
  background:
    radial-gradient(ellipse 50% 50% at 50% 40%, rgba(142, 207, 160, 0.08), transparent),
    radial-gradient(ellipse 40% 40% at 30% 70%, rgba(244, 184, 193, 0.06), transparent),
    var(--ghibli-cream) !important;
}

.editor-header h2 {
  font-family: var(--ghibli-hand) !important;
  font-weight: 700 !important;
}

.editor-header h2 em {
  color: var(--ghibli-green-dark) !important;
}

.editor-note {
  font-family: var(--ghibli-hand) !important;
  font-size: 18px !important;
  color: var(--ghibli-muted) !important;
}

.editor-preview-column {
  border: 1.5px solid rgba(196, 168, 130, 0.15) !important;
  border-radius: 20px !important;
  background: rgba(255, 252, 245, 0.7) !important;
  backdrop-filter: blur(16px) !important;
}

.result-print {
  background: var(--ghibli-paper) !important;
  box-shadow: 0 16px 44px rgba(80, 63, 48, 0.12) !important;
  border-radius: 4px;
}

.result-action {
  border: 1.5px solid var(--ghibli-line) !important;
  border-radius: 16px !important;
  font-weight: 600 !important;
  transition: all 0.3s var(--ghibli-ease) !important;
}

.result-action:hover {
  border-color: var(--ghibli-green) !important;
  color: var(--ghibli-green-dark) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 6px 16px rgba(142, 207, 160, 0.15) !important;
}

.result-save {
  background: linear-gradient(135deg, var(--ghibli-green), var(--ghibli-green-dark)) !important;
  border-color: var(--ghibli-green) !important;
  color: #fff !important;
}

.result-save:hover {
  background: linear-gradient(135deg, var(--ghibli-green-dark), #5aab70) !important;
  color: #fff !important;
}

.result-close {
  border-color: var(--ghibli-line) !important;
}

.result-community-btn {
  background: linear-gradient(135deg, #f4a6b9, #d97591) !important;
  border-color: #d97591 !important;
  color: #fff !important;
  animation: communityBtnPulse 2.5s ease-in-out infinite;
}

.result-community-btn:hover {
  background: linear-gradient(135deg, #d97591, #b85675) !important;
  color: #fff !important;
  animation: none;
}

@keyframes communityBtnPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(217, 117, 145, 0.3) !important; }
  50% { box-shadow: 0 4px 20px rgba(217, 117, 145, 0.55) !important; }
}

/* ── 24. EDITOR CONTROLS ── */
.editor-section {
  border-bottom: 1.5px dashed var(--ghibli-line) !important;
}

.editor-sticker-list button {
  border-radius: 14px !important;
  border: 1.5px solid var(--ghibli-line) !important;
  transition: all 0.3s var(--ghibli-ease) !important;
}

.editor-sticker-list button:hover {
  transform: translateY(-3px) rotate(-5deg) !important;
  border-color: var(--ghibli-pink) !important;
  box-shadow: 0 4px 12px rgba(244, 184, 193, 0.15);
}

.editor-hint {
  font-family: var(--ghibli-hand) !important;
  font-size: 15px !important;
}

.color-control {
  border-radius: 12px !important;
  border: 1.5px solid var(--ghibli-line) !important;
}

.enhance-button {
  border-radius: 16px !important;
  border: 1.5px solid var(--ghibli-line) !important;
  transition: all 0.3s ease !important;
}

.enhance-button[aria-pressed="true"] {
  border-color: var(--ghibli-green) !important;
  background: rgba(142, 207, 160, 0.08) !important;
}

.ghibli-ai-btn {
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(82, 138, 99, 0.08), rgba(245, 183, 73, 0.14)) !important;
  border: 1.5px solid rgba(82, 138, 99, 0.35) !important;
  margin-bottom: 8px;
}

.ghibli-ai-btn[aria-pressed="true"] {
  border-color: var(--ghibli-green-dark) !important;
  background: linear-gradient(135deg, rgba(82, 138, 99, 0.18), rgba(245, 183, 73, 0.25)) !important;
  box-shadow: 0 4px 16px rgba(82, 138, 99, 0.25) !important;
}

.enhance-spark {
  color: var(--ghibli-green-dark) !important;
}

.adjustment-slider {
  accent-color: var(--ghibli-green) !important;
}

.remove-sticker-button,
.editor-reset {
  border-radius: 12px !important;
  border: 1.5px solid var(--ghibli-line) !important;
  font-weight: 600 !important;
}

.remove-sticker-button:not(:disabled):hover,
.editor-reset:hover {
  border-color: var(--ghibli-pink) !important;
  color: var(--ghibli-pink-dark) !important;
}

/* ── 25. LIVE PHOTO BAR ── */
.live-photo-bar {
  border: 1.5px solid var(--ghibli-line) !important;
  border-radius: 14px !important;
  background: var(--ghibli-paper) !important;
}

.live-photo-mark i {
  background: var(--ghibli-green) !important;
  box-shadow: 0 0 0 3px rgba(142, 207, 160, 0.2) !important;
}

.live-photo-hint {
  font-family: var(--ghibli-hand) !important;
  font-size: 14px !important;
}

.live-photo-bar button {
  color: var(--ghibli-green-dark) !important;
  font-weight: 600 !important;
}

/* ── 26. TOAST ── */
.toast-message {
  border-radius: 30px !important;
  background: var(--ghibli-paper) !important;
  border: 1.5px solid var(--ghibli-line) !important;
  box-shadow: var(--ghibli-shadow-lg) !important;
  font-weight: 600 !important;
}

/* ── 27. MODAL ── */
.memory-modal-content {
  background: var(--ghibli-paper) !important;
  border: 1.5px solid var(--ghibli-line) !important;
  border-radius: 20px !important;
}

.memory-modal-content .modal-title i {
  color: var(--ghibli-green) !important;
}

/* ── 28. FLASH & COUNTDOWN ── */
.countdown-overlay {
  font-family: var(--ghibli-hand) !important;
  text-shadow: 0 4px 40px rgba(142, 207, 160, 0.3) !important;
}

/* ── 29. STUDIO HEADINGS ── */
.studio-heading h2 {
  font-size: 36px !important;
  font-weight: 700 !important;
}

.studio-heading h2 i,
.memories-heading h2 i {
  font-family: var(--ghibli-hand) !important;
  color: var(--ghibli-pink) !important;
}

.studio-heading .eyebrow span {
  color: var(--ghibli-green) !important;
}

.camera-live {
  color: var(--ghibli-green-dark) !important;
}

.camera-live i {
  background: var(--ghibli-green) !important;
}

.film-counter .live-dot {
  background: var(--ghibli-green) !important;
  box-shadow: 0 0 0 3px rgba(142, 207, 160, 0.15) !important;
}

/* ── 30. ACCENT COLOR OVERRIDES ── */
.camera-caption i {
  color: var(--ghibli-pink) !important;
}

.text-action {
  border-color: var(--ghibli-green) !important;
  color: var(--ghibli-green-dark) !important;
}

/* ── 31. BACKDROP PICKER ── */
.backdrop-swatch {
  border-radius: 12px !important;
  transition: all 0.3s var(--ghibli-ease) !important;
}

.backdrop-swatch.selected {
  border-color: var(--ghibli-green-dark) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 4px 12px rgba(142, 207, 160, 0.15) !important;
}

.backdrop-swatch>.backdrop-thumb {
  border-radius: 8px !important;
}

.backdrop-swatch.selected>.backdrop-thumb::after {
  background: var(--ghibli-green) !important;
  color: #fff !important;
}

/* ── 32. LANDING FOOTER ── */
.landing .landing-footer {
  border-top: 1.5px dashed rgba(196, 168, 130, 0.25) !important;
  font-weight: 600 !important;
}

.landing-footer i {
  color: var(--ghibli-green) !important;
}

/* ── 33. GRAIN OVERLAY ── */
.grain {
  opacity: 0.06 !important;
}

/* ── 34. SCROLLBAR ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(196, 168, 130, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 168, 130, 0.5);
}

/* ── 35. CAMERA MESSAGE ── */
.camera-message {
  color: var(--ghibli-green-dark) !important;
  font-weight: 600 !important;
}

/* ── 36. PLACEHOLDER ── */
.placeholder-icon {
  border: 2px dashed var(--ghibli-line) !important;
  border-radius: 50% !important;
  color: var(--ghibli-green-dark) !important;
}

.video-placeholder p {
  font-weight: 600 !important;
  color: var(--ghibli-muted) !important;
}

/* ── 37. ICON BUTTON (close, memories) ── */
.icon-button {
  border: 1.5px solid var(--ghibli-line) !important;
  background: var(--ghibli-paper) !important;
  transition: all 0.3s var(--ghibli-ease) !important;
}

.icon-button:hover {
  border-color: var(--ghibli-green) !important;
  transform: translateY(-3px) rotate(-3deg) !important;
  box-shadow: 0 4px 12px rgba(142, 207, 160, 0.12);
}

/* ── 38. SELECTION COLOR ── */
::selection {
  background: rgba(142, 207, 160, 0.25);
  color: var(--ghibli-ink);
}

/* =========================================
   ✿ GHIBLI MOBILE RESPONSIVENESS ✿
   ========================================= */

@media (max-width: 900px) {
  .hero-video-container {
    max-width: 380px;
    border-width: 5px;
  }
}

@media (max-width: 768px) {
  .ghibli-title {
    font-size: clamp(42px, 12vw, 58px) !important;
    line-height: 1.1 !important;
  }

  .ghibli-title em::after {
    height: 7px;
    bottom: 4px;
  }

  /* Move floating decor to edges on mobile */
  .decor-1 {
    top: 5%;
    left: -1%;
    font-size: 22px !important;
  }

  .decor-2 {
    top: 30%;
    left: -3%;
    font-size: 16px !important;
  }

  .decor-3 {
    top: 14%;
    right: -1%;
    font-size: 18px !important;
  }

  .decor-4 {
    top: 42%;
    right: 1%;
    font-size: 20px !important;
  }

  .decor-5 {
    top: 60%;
    left: 2%;
    font-size: 16px !important;
  }

  .decor-6 {
    display: none;
  }

  .decor-7 {
    display: none;
  }

  .decor-8 {
    display: none;
  }

  /* Clouds smaller on mobile */
  .cloud-1 {
    width: 120px;
    height: 36px;
  }

  .cloud-2 {
    width: 90px;
    height: 28px;
  }

  .cloud-3 {
    display: none;
  }

  /* Backdrop picker scrollable */
  .backdrop-picker {
    flex-direction: column;
    align-items: flex-start;
  }

  .backdrop-options {
    display: flex !important;
    overflow-x: auto !important;
    padding-bottom: 14px !important;
    padding-top: 6px !important;
    gap: 12px !important;
    width: 100% !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .backdrop-options::-webkit-scrollbar {
    height: 5px;
  }

  .backdrop-options::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
  }

  .backdrop-options::-webkit-scrollbar-thumb {
    background: var(--landing-accent, #6db882);
    border-radius: 10px;
  }

  .backdrop-swatch {
    flex: 0 0 74px !important;
    width: 74px !important;
    height: auto !important;
    scroll-snap-align: start;
    box-sizing: border-box;
  }

  .backdrop-swatch>.backdrop-thumb {
    height: 48px !important;
    width: 100% !important;
  }

  /* Hero spacing */
  .hero-actions {
    justify-content: flex-start !important;
    gap: 14px !important;
    margin-bottom: 22px !important;
  }

  .ghibli-btn-green {
    padding: 0 22px !important;
    font-size: 14px !important;
    min-height: 48px !important;
  }

  .ghibli-badge {
    font-size: 11px !important;
    padding: 6px 16px !important;
  }

  .wordmark-tagline {
    display: none !important;
  }

  /* Video */
  .hero-video-container {
    width: 88%;
    max-width: 340px;
    margin: 16px auto 32px auto;
    transform: rotate(0deg);
    border-width: 4px;
  }

  .hero-video-container:hover {
    transform: translateY(-3px) scale(1.01);
  }

  /* Art/camera scaling */
  .hero-art {
    min-height: 360px !important;
    margin-top: 8px !important;
    transform: scale(0.95);
    transform-origin: top center;
  }

  .ghibli-nav .wordmark {
    font-size: 22px !important;
  }

  .nav-enter.ghibli-btn-pink {
    padding: 8px 14px !important;
    font-size: 10px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 400px) {
  .ghibli-title {
    font-size: clamp(36px, 11vw, 48px) !important;
  }

  .ghibli-nav .wordmark {
    font-size: 19px !important;
  }

  .decor-5 {
    display: none;
  }

  .cloud-1 {
    width: 90px;
    height: 28px;
  }

  .cloud-2 {
    display: none;
  }
}

/* =========================================
   ✿ GHIBLI PHOTOBOOTH ENHANCEMENTS & ANIMATIONS ✿
   ========================================= */

/* ── AESTHETIC GHIBLI BOOTH HEADER ── */
.ghibli-booth-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px clamp(14px, 3vw, 32px) !important;
  background: rgba(255, 252, 246, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 2px dashed rgba(220, 202, 180, 0.7) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  gap: 12px !important;
  height: auto !important;
  min-height: 64px !important;
  box-shadow: 0 4px 20px rgba(80, 60, 40, 0.04) !important;
  white-space: nowrap !important;
}

/* Nav Left (Brand + Home button) */
.booth-nav-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.aesthetic-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  font-family: "Lilita One", "Quicksand", cursive !important;
  font-size: 23px !important;
  line-height: 1 !important;
  color: #38332f !important;
  white-space: nowrap !important;
  transition: transform 0.25s var(--ghibli-ease);
}

.aesthetic-brand:hover {
  transform: scale(1.04);
}

.aesthetic-brand .brand-sprout {
  font-size: 22px;
  display: inline-block;
  animation: sproutSway 3s infinite ease-in-out;
}

@keyframes sproutSway {

  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(10deg);
  }
}

.aesthetic-brand .brand-text {
  color: #38332f;
  letter-spacing: -0.5px;
}

.aesthetic-brand .brand-ta {
  color: #e87382;
}

.aesthetic-brand .brand-tag {
  font-family: "Caveat", cursive;
  font-size: 15px;
  font-weight: 700;
  color: #8a7e6f;
  margin-left: 2px;
}

/* Aesthetic Home Button */
.aesthetic-home-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  background: rgba(142, 207, 160, 0.16) !important;
  border: 1.5px solid #8ecfa0 !important;
  border-radius: 999px !important;
  color: #2e663e !important;
  font-family: "Quicksand", sans-serif !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.25s var(--ghibli-ease) !important;
}

.aesthetic-home-btn:hover {
  background: #8ecfa0 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(142, 207, 160, 0.38) !important;
}

.aesthetic-home-btn i {
  font-size: 13px;
}

/* Header Center: Aesthetic Status Badge */
.header-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.aesthetic-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 16px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1.5px solid rgba(220, 202, 180, 0.75) !important;
  border-radius: 999px !important;
  font-family: "DM Mono", monospace !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  color: #443c33 !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 10px rgba(80, 60, 40, 0.04) !important;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6db882;
  box-shadow: 0 0 8px rgba(109, 184, 130, 0.7);
  animation: ghibliPulse 1.8s infinite ease-in-out;
}

.status-flower {
  color: #e87382;
  font-size: 13px;
}

/* Nav Right: Music Pill + SFX + Memories */
.booth-nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

/* Aesthetic BGM Music Pill */
.aesthetic-bgm-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  border: 1.5px solid rgba(196, 168, 130, 0.5) !important;
  background: #fffdf9 !important;
  color: #443c33 !important;
  font-family: "Quicksand", sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.25s var(--ghibli-ease) !important;
}

.aesthetic-bgm-pill:hover {
  border-color: #8ecfa0 !important;
  transform: translateY(-1px);
}

.aesthetic-bgm-pill.playing {
  background: rgba(142, 207, 160, 0.16) !important;
  border-color: #8ecfa0 !important;
  color: #265935 !important;
  box-shadow: 0 2px 10px rgba(142, 207, 160, 0.25) !important;
}

.bgm-icon {
  font-size: 14px;
}

.aesthetic-bgm-pill.playing .bgm-icon {
  animation: noteWobble 2s infinite ease-in-out;
}

@keyframes noteWobble {

  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  25% {
    transform: rotate(-10deg) scale(1.1);
  }

  75% {
    transform: rotate(10deg) scale(1.1);
  }
}

/* Animated Sound Equalizer Bars */
.bgm-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  width: 12px;
}

.eq-bar {
  width: 2.5px;
  background: #8ecfa0;
  border-radius: 2px;
  height: 4px;
}

.aesthetic-bgm-pill.playing .eq-bar.bar1 {
  animation: eqJump 0.8s infinite ease-in-out alternate;
}

.aesthetic-bgm-pill.playing .eq-bar.bar2 {
  animation: eqJump 0.6s 0.2s infinite ease-in-out alternate;
}

.aesthetic-bgm-pill.playing .eq-bar.bar3 {
  animation: eqJump 0.9s 0.4s infinite ease-in-out alternate;
}

@keyframes eqJump {
  0% {
    height: 3px;
  }

  100% {
    height: 12px;
  }
}

/* Aesthetic Circle Buttons (SFX, Memories) */
.aesthetic-circle-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(220, 202, 180, 0.75) !important;
  background: #fffdf9 !important;
  color: #443c33 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.25s var(--ghibli-ease) !important;
  position: relative !important;
}

.aesthetic-circle-btn:hover {
  border-color: #8ecfa0 !important;
  color: #2e663e !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(142, 207, 160, 0.25) !important;
}

.aesthetic-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: #e87382 !important;
  color: #fff !important;
  font-family: "DM Mono", monospace !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  padding: 1px 5px !important;
  border-radius: 999px !important;
  border: 1.5px solid #fff !important;
  box-shadow: 0 2px 6px rgba(232, 115, 130, 0.4) !important;
}

/* ── CAMERA MODE TOGGLE (FIX FOR BACKDROP CAMERA ISSUE) ── */
.camera-mode-card {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(224, 206, 184, 0.7);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(80, 63, 48, 0.04);
}

.camera-mode-title {
  display: block;
  font-family: "Caveat", cursive;
  font-size: 18px;
  font-weight: 700;
  color: var(--ghibli-green-dark);
  margin-bottom: 8px;
}

.camera-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.cam-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  font-family: "Quicksand", sans-serif;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  border: 1.5px solid rgba(196, 168, 130, 0.4);
  background: rgba(253, 246, 238, 0.7);
  color: var(--ghibli-muted);
  cursor: pointer;
  transition: all 0.25s var(--ghibli-ease);
}

.cam-mode-btn:hover {
  border-color: var(--ghibli-green);
  color: var(--ghibli-ink);
  transform: translateY(-1px);
}

.cam-mode-btn.selected {
  background: var(--ghibli-green);
  color: #fff;
  border-color: var(--ghibli-green-dark);
  box-shadow: 0 4px 12px rgba(142, 207, 160, 0.35);
}

.camera-mode-hint {
  font-family: "Quicksand", sans-serif;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ghibli-muted);
  margin: 0;
}

/* ── SHUTTER IRIS / APERTURE ANIMATION ── */
.shutter-iris {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background: transparent;
  transition: opacity 0.15s ease;
}

.shutter-iris.snapping {
  opacity: 1;
}

.shutter-iris.snapping .iris-blade {
  animation: irisBladeSnap 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shutter-iris.snapping .iris-center {
  animation: irisCenterPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.iris-blade {
  position: absolute;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(32, 33, 41, 0.96) 60%, rgba(15, 16, 20, 0.99) 100%);
  clip-path: polygon(50% 50%, 0% 0%, 100% 0%);
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
}

.iris-blade.blade-1 {
  transform: rotate(0deg) scale(0);
}

.iris-blade.blade-2 {
  transform: rotate(60deg) scale(0);
}

.iris-blade.blade-3 {
  transform: rotate(120deg) scale(0);
}

.iris-blade.blade-4 {
  transform: rotate(180deg) scale(0);
}

.iris-blade.blade-5 {
  transform: rotate(240deg) scale(0);
}

.iris-blade.blade-6 {
  transform: rotate(300deg) scale(0);
}

.iris-center {
  position: relative;
  z-index: 11;
  font-size: 42px;
  transform: scale(0);
}

@keyframes irisBladeSnap {
  0% {
    transform: rotate(var(--rot, 0deg)) scale(0);
  }

  35% {
    transform: rotate(calc(var(--rot, 0deg) + 30deg)) scale(1.15);
  }

  65% {
    transform: rotate(calc(var(--rot, 0deg) + 30deg)) scale(1.15);
  }

  100% {
    transform: rotate(calc(var(--rot, 0deg) + 60deg)) scale(0);
  }
}

.iris-blade.blade-1 {
  --rot: 0deg;
}

.iris-blade.blade-2 {
  --rot: 60deg;
}

.iris-blade.blade-3 {
  --rot: 120deg;
}

.iris-blade.blade-4 {
  --rot: 180deg;
}

.iris-blade.blade-5 {
  --rot: 240deg;
}

.iris-blade.blade-6 {
  --rot: 300deg;
}

@keyframes irisCenterPop {
  0% {
    transform: scale(0) rotate(-20deg);
    opacity: 0;
  }

  35% {
    transform: scale(1.3) rotate(0deg);
    opacity: 1;
  }

  65% {
    transform: scale(1.2) rotate(10deg);
    opacity: 1;
  }

  100% {
    transform: scale(0) rotate(30deg);
    opacity: 0;
  }
}

/* ── FILM STRIP DEVELOPING TRAY ── */
.film-strip-tray {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(36, 35, 31, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 90%;
  overflow-x: auto;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.film-strip-tray.has-shots {
  opacity: 1;
}

.film-thumb {
  width: 44px;
  height: 58px;
  border-radius: 4px;
  background: #fdfaf3;
  padding: 3px 3px 8px 3px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  animation: polaroidDrop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.film-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  animation: polaroidDevelop 1.2s ease forwards;
}

@keyframes polaroidDrop {
  0% {
    transform: translateY(-20px) scale(0.6) rotate(-8deg);
    opacity: 0;
  }

  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes polaroidDevelop {
  0% {
    filter: brightness(2.4) contrast(0.5) blur(2px);
    opacity: 0.6;
  }

  100% {
    filter: brightness(1) contrast(1) blur(0px);
    opacity: 1;
  }
}

/* ── CONFETTI & PETALS CANVAS ── */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

/* ── INTERACTIVE SOOT SPRITES (SUSUWATARI) ── */
.soot-sprite {
  position: fixed;
  z-index: 90;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.soot-sprite:hover {
  transform: scale(1.25) rotate(15deg);
}

.soot-sprite:active {
  transform: scale(0.85);
}

.soot-1 {
  bottom: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
}

.soot-2 {
  bottom: 24px;
  left: 28px;
  width: 38px;
  height: 38px;
}

.soot-body {
  width: 100%;
  height: 100%;
  background: #252321;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  animation: sootFuzz 2.5s infinite ease-in-out alternate;
}

.soot-eye {
  position: absolute;
  top: 32%;
  width: 28%;
  height: 32%;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

.soot-eye::after {
  content: "";
  position: absolute;
  top: 30%;
  left: 30%;
  width: 42%;
  height: 42%;
  background: #111;
  border-radius: 50%;
  animation: sootBlink 4s infinite;
}

.soot-eye.left {
  left: 18%;
}

.soot-eye.right {
  right: 18%;
}

@keyframes sootFuzz {
  0% {
    transform: scale(1) translateY(0);
    border-radius: 50% 48% 52% 49%;
  }

  50% {
    transform: scale(1.05) translateY(-3px);
    border-radius: 48% 52% 49% 51%;
  }

  100% {
    transform: scale(0.97) translateY(0);
    border-radius: 52% 49% 50% 50%;
  }
}

@keyframes sootBlink {

  0%,
  94%,
  98%,
  100% {
    transform: scaleY(1);
  }

  96% {
    transform: scaleY(0.1);
  }
}

/* ── BUBBLY COUNTDOWN (CENTERED) ── */
.countdown-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 25 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  font-family: "Lilita One", "Caveat", cursive, sans-serif !important;
  font-size: clamp(80px, 20vw, 150px) !important;
  color: #fff !important;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 45px rgba(255, 215, 100, 0.75) !important;
  letter-spacing: -2px;
  line-height: 1 !important;
  transform-origin: center center !important;
}

.countdown-overlay.pop {
  animation: bubblyCountPop 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

@keyframes bubblyCountPop {
  0% {
    transform: scale(0.25) rotate(-10deg);
    opacity: 0;
    filter: blur(4px);
  }

  35% {
    transform: scale(1.2) rotate(3deg);
    opacity: 1;
    filter: blur(0);
  }

  65% {
    transform: scale(0.98) rotate(-1deg);
    opacity: 1;
  }

  100% {
    transform: scale(1.0) rotate(0deg);
    opacity: 0.95;
  }
}

@media (max-width: 768px) {
  .ghibli-booth-header {
    padding: 8px 12px !important;
    gap: 8px !important;
  }

  .aesthetic-brand {
    font-size: 20px !important;
  }

  .aesthetic-brand .brand-tag {
    display: none !important;
  }

  .header-center {
    display: none !important;
  }

  .aesthetic-bgm-pill .bgm-label {
    display: none !important;
  }

  .aesthetic-bgm-pill {
    padding: 6px 10px !important;
  }

  .aesthetic-home-btn span {
    display: none !important;
  }

  .aesthetic-home-btn {
    padding: 6px 10px !important;
  }

  .soot-1,
  .soot-2 {
    display: none !important;
  }

  .camera-mode-toggle {
    grid-template-columns: 1fr !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   25. COMPREHENSIVE RESULT SCREEN CENTERING & MODAL PERFECTION
   ══════════════════════════════════════════════════════════════════════ */
.result-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background:
    radial-gradient(ellipse 65% 65% at 50% 35%, rgba(142, 207, 160, 0.16), transparent),
    radial-gradient(ellipse 55% 55% at 20% 75%, rgba(244, 184, 193, 0.12), transparent),
    #fbf7ee !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 36px clamp(16px, 4vw, 48px) 70px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
}

.result-screen[hidden] {
  display: none !important;
}

/* Close button - always visible and accessible */
.result-close {
  position: fixed !important;
  top: 18px !important;
  right: 22px !important;
  z-index: 100002 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1.5px solid rgba(196, 168, 130, 0.35) !important;
  box-shadow: 0 4px 18px rgba(61, 53, 41, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #3d3529 !important;
  font-size: 19px !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.result-close:hover {
  transform: scale(1.12) rotate(90deg) !important;
  background: #fff !important;
  border-color: #528a63 !important;
  color: #528a63 !important;
  box-shadow: 0 6px 20px rgba(82, 138, 99, 0.25) !important;
}

/* Editor header centered and clear */
.editor-header {
  width: 100% !important;
  max-width: 1080px !important;
  margin: 0 auto 22px auto !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
}

.editor-header > div {
  text-align: center !important;
}

.editor-header .eyebrow {
  text-align: center !important;
  color: #528a63 !important;
  font-size: 11px !important;
  letter-spacing: 2px !important;
  margin-bottom: 4px !important;
}

.editor-header h2 {
  text-align: center !important;
  font-family: var(--ghibli-hand), "Caveat", cursive !important;
  font-size: clamp(34px, 5.5vw, 46px) !important;
  font-weight: 700 !important;
  color: #3d3529 !important;
  margin: 0 !important;
}

.editor-header h2 em {
  color: #528a63 !important;
  font-style: italic !important;
}

.editor-note {
  text-align: center !important;
  font-family: var(--ghibli-hand), "Caveat", cursive !important;
  font-size: 19px !important;
  color: #8c8275 !important;
  margin: 4px 0 0 0 !important;
}

/* Editor workspace 2-column or centered column */
.editor-workspace {
  width: 100% !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 400px) !important;
  gap: clamp(20px, 3.5vw, 44px) !important;
  align-items: start !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* Preview column and print card */
.editor-preview-column {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: clamp(12px, 2vw, 20px) !important;
  border: 1.5px solid rgba(196, 168, 130, 0.25) !important;
  border-radius: 24px !important;
  background: rgba(255, 253, 248, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 12px 36px rgba(61, 53, 41, 0.08) !important;
  position: relative !important;
  top: auto !important;
}

.editor-preview-column .result-print {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto !important;
  transform: none !important;
  animation: none !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 8px !important;
  box-shadow: 0 14px 38px rgba(61, 53, 41, 0.2) !important;
  box-sizing: border-box !important;
  flex: 0 1 auto !important;
}

.editor-preview-column .result-print img {
  display: block !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  max-height: min(48vh, 480px) !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 6px !important;
}

.editor-preview-column .sticker-handles {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
}

.editor-preview-column .print-shadow {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  border-radius: 6px !important;
}

.live-photo-bar {
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  z-index: 2 !important;
}

/* ══════════════════════════════════════════════════════════════════════
   🪄 ONE-SCREEN EDIT DOCK (Instant Stickers, Resize, Note, Save)
   ══════════════════════════════════════════════════════════════════════ */
.editor-quick-dock {
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid var(--line, #e6decb) !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 20px rgba(61, 53, 41, 0.08) !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  z-index: 2 !important;
}

.dock-tab-bar {
  display: flex !important;
  gap: 6px !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid rgba(230, 222, 203, 0.6) !important;
  padding-bottom: 6px !important;
}

.dock-tab-btn {
  flex: 1 1 0 !important;
  padding: 6px 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  font: 600 11.5px var(--sans, sans-serif) !important;
  border: 1.5px solid transparent !important;
  border-radius: 10px !important;
  background: #fbf9f4 !important;
  color: #594d3f !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.dock-tab-btn:hover {
  background: #ffffff !important;
  color: var(--accent-dark, #2c4833) !important;
  border-color: var(--line, #e6decb) !important;
}

.dock-tab-btn.active {
  background: var(--accent, #528a63) !important;
  color: #ffffff !important;
  border-color: var(--accent, #528a63) !important;
  box-shadow: 0 2px 8px rgba(82, 138, 99, 0.35) !important;
}

.dock-panels {
  min-height: 56px !important;
}

.dock-panel {
  display: none !important;
}

.dock-panel.active {
  display: block !important;
  animation: dockPanelFadeIn 0.2s ease !important;
}

@keyframes dockPanelFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Horizontal sideways-scrolling sticker tray */
.sticker-scroll-tray {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding: 2px 2px 6px 2px !important;
  scrollbar-width: thin !important;
  -webkit-overflow-scrolling: touch !important;
  align-items: center !important;
}

.sticker-scroll-tray::-webkit-scrollbar {
  height: 4px !important;
}

.sticker-scroll-tray::-webkit-scrollbar-thumb {
  background: var(--line, #e6decb) !important;
  border-radius: 4px !important;
}

.dock-sticker-btn {
  flex: 0 0 46px !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 12px !important;
  border: 1.5px solid var(--line, #e6decb) !important;
  background: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  font-size: 24px !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
  padding: 4px !important;
  box-sizing: border-box !important;
}

.dock-sticker-btn img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18)) !important;
  pointer-events: none !important;
}

.dock-sticker-btn:hover,
.dock-sticker-btn:active {
  transform: scale(1.15) !important;
  border-color: var(--accent, #528a63) !important;
  box-shadow: 0 4px 12px rgba(82, 138, 99, 0.25) !important;
}

.dock-sticker-btn.clear-stickers {
  flex: 0 0 auto !important;
  width: auto !important;
  padding: 0 10px !important;
  font: 600 11px var(--sans, sans-serif) !important;
  color: #a84242 !important;
  border-color: #f0c5c5 !important;
  background: #fff5f5 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.dock-hint {
  font: italic 500 11px var(--serif, serif) !important;
  color: #766d62 !important;
  text-align: center !important;
  margin-top: 4px !important;
}

/* Quick Adjust Controls (Bigger, Smaller, Rotate, Delete, Slider) */
.dock-adjust-bar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.dock-adjust-preview {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  background: #fbf9f4 !important;
  border: 1.5px solid var(--line, #e6decb) !important;
  display: grid !important;
  place-items: center !important;
  font-size: 22px !important;
  flex-shrink: 0 !important;
}

.dock-adjust-controls {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  min-width: 0 !important;
}

.dock-btn-group {
  display: flex !important;
  gap: 5px !important;
}

.dock-action-btn {
  flex: 1 1 auto !important;
  padding: 5px 6px !important;
  font: 600 11px var(--sans, sans-serif) !important;
  border-radius: 8px !important;
  border: 1px solid var(--line, #e6decb) !important;
  background: #fbf9f4 !important;
  color: #3d3529 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.dock-action-btn:hover {
  background: #ffffff !important;
  border-color: var(--accent, #528a63) !important;
  transform: translateY(-1px) !important;
}

.dock-action-btn.delete-btn {
  color: #b03838 !important;
  background: #fff5f5 !important;
  border-color: #f0c5c5 !important;
}

.dock-action-btn.delete-btn:hover {
  background: #ffebeb !important;
  border-color: #b03838 !important;
}

.dock-slider-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.dock-slider-label {
  font: 500 10.5px var(--mono, monospace) !important;
  color: #766d62 !important;
  white-space: nowrap !important;
}

.dock-slider {
  flex: 1 1 auto !important;
  accent-color: var(--accent, #528a63) !important;
  height: 5px !important;
  cursor: pointer !important;
}

/* Quick Text Row */
.dock-text-row {
  display: flex !important;
  gap: 6px !important;
}

.dock-input {
  flex: 1 1 auto !important;
  padding: 6px 10px !important;
  font: 500 12.5px var(--serif, serif) !important;
  border-radius: 8px !important;
  border: 1.5px solid var(--line, #e6decb) !important;
  background: #fdfcf9 !important;
  color: #3d3529 !important;
  outline: none !important;
}

.dock-input:focus {
  border-color: var(--accent, #528a63) !important;
}

.dock-btn-accent {
  padding: 6px 12px !important;
  font: 700 11px var(--mono, monospace) !important;
  border-radius: 8px !important;
  border: none !important;
  background: var(--accent, #528a63) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.dock-text-settings {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 5px !important;
}

.dock-select {
  padding: 4px 6px !important;
  font: 500 11px var(--sans, sans-serif) !important;
  border-radius: 6px !important;
  border: 1px solid var(--line, #e6decb) !important;
  background: #ffffff !important;
}

.dock-color-picker {
  width: 28px !important;
  height: 28px !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  padding: 0 !important;
}

.dock-btn-subtle {
  font: italic 500 11px var(--serif, serif) !important;
  color: #8c8275 !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  margin-left: auto !important;
}

/* Quick Enhance Row */
.dock-enhance-row {
  display: flex !important;
  gap: 8px !important;
}

.dock-toggle-btn {
  flex: 1 1 0 !important;
  padding: 8px 10px !important;
  font: 600 12px var(--sans, sans-serif) !important;
  border-radius: 10px !important;
  border: 1.5px solid var(--line, #e6decb) !important;
  background: #fbf9f4 !important;
  color: #3d3529 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

.dock-toggle-btn[aria-pressed="true"],
.dock-toggle-btn.active {
  background: linear-gradient(135deg, rgba(142, 207, 160, 0.25), rgba(244, 184, 193, 0.25)), #ffffff !important;
  border-color: var(--accent, #528a63) !important;
  color: var(--accent-dark, #2c4833) !important;
  box-shadow: 0 2px 8px rgba(82, 138, 99, 0.2) !important;
}

/* Bottom primary action buttons in Dock */
.editor-dock-actions {
  display: flex !important;
  gap: 8px !important;
  margin-top: 8px !important;
  padding-top: 8px !important;
  border-top: 1px dashed var(--line, #e6decb) !important;
}

.editor-dock-actions .result-action {
  flex: 1 1 0 !important;
  min-height: 40px !important;
  border-radius: 12px !important;
  font-size: 12.5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

/* Tablet & Mobile layout centering */
@media (max-width: 960px) {
  .result-screen {
    padding: 16px 10px 40px !important;
  }

  .editor-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    max-width: 480px !important;
    margin: 0 auto !important;
  }

  .editor-preview-column {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 10px !important;
    gap: 8px !important;
  }

  .editor-preview-column .result-print {
    max-height: none !important;
    height: auto !important;
  }

  .editor-preview-column .result-print img {
    max-height: min(36vh, 340px) !important;
  }

  /* One-Screen Focus: Hide the massive scrolled down sidebar on mobile! */
  .memory-editor {
    display: none !important;
  }
}

@media (max-height: 720px) {
  .editor-preview-column .result-print img {
    max-height: 30vh !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   26. FULLSCREEN VIDEO PRELOADER (vid2.mp4) & FLOATING TOP CONTROLS
   ══════════════════════════════════════════════════════════════════════ */
.video-preloader {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.65s;
  overflow: hidden !important;
}

.video-preloader.dismissed {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Ambient background glow */
.preloader-backdrop-ambient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(142, 207, 160, 0.12), transparent 65%),
    radial-gradient(ellipse at 75% 80%, rgba(244, 184, 193, 0.10), transparent 55%),
    #ffffff;
  z-index: 1;
  pointer-events: none;
}

/* Main Fullscreen Video Container */
.preloader-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.preloader-main-video {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  object-fit: contain !important;
  display: block;
  margin: auto;
}

/* Buttons bar — anchored to bottom center */
.preloader-top-bar {
  position: absolute !important;
  bottom: max(36px, env(safe-area-inset-bottom, 36px)) !important;
  top: auto !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  pointer-events: auto !important;
  white-space: nowrap !important;
}

.preloader-top-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  color: #2c4833;
  font-family: var(--ghibli-sans), "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.5px;
}

.preloader-top-brand .brand-sprout {
  font-size: 16px;
}

.preloader-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.aesthetic-preloader-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #2c4833;
  font-family: var(--ghibli-sans), "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(82, 138, 99, 0.35);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.aesthetic-preloader-btn:hover {
  transform: translateY(-2px) scale(1.05);
  background: #ffffff;
  border-color: #528a63;
  color: #1b3521;
  box-shadow: 0 12px 30px rgba(82, 138, 99, 0.5);
}

.skip-pill {
  animation: topPillPulse 2.6s infinite ease-in-out;
}

@keyframes topPillPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(142, 207, 160, 0.5);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 5px rgba(142, 207, 160, 0);
  }
}

.aesthetic-preloader-btn .skip-spark {
  font-size: 16px;
  animation: ghibliSparkle 2s infinite ease-in-out;
}

.aesthetic-preloader-btn .skip-arrow {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.aesthetic-preloader-btn:hover .skip-arrow {
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .preloader-top-bar {
    bottom: max(28px, env(safe-area-inset-bottom, 28px)) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
  .preloader-top-brand {
    display: none !important;
  }
  .preloader-top-actions {
    width: 100%;
    justify-content: center;
  }
  .aesthetic-preloader-btn {
    padding: 9px 16px !important;
    font-size: 12.5px !important;
  }
}

/* ✿ Custom Photostrip & Sticker Styles ✿ */
.sticker-emoji-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.preview-sticker-img {
  width: clamp(34px, 6.5vw, 54px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.handle-sticker-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 120px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

/* 🎨 Quick Frame Switcher Pill Bar in Result Editor */
.editor-frame-bar {
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  flex-shrink: 0 !important;
  padding: 10px 14px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid var(--line, #e6decb) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 18px rgba(44, 72, 51, 0.08) !important;
  box-sizing: border-box !important;
  z-index: 2 !important;
}

.frame-bar-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
}

.frame-bar-title {
  font: 700 11px var(--mono, monospace) !important;
  letter-spacing: 0.08em !important;
  color: var(--accent-dark, #2c4833) !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.frame-bar-hint {
  font: italic 500 11.5px var(--serif, serif) !important;
  color: var(--muted, #766d62) !important;
}

.editor-frame-pills {
  display: flex !important;
  gap: 6px !important;
  overflow-x: auto !important;
  padding: 3px 2px 7px 2px !important;
  scrollbar-width: thin !important;
  -webkit-overflow-scrolling: touch !important;
}

.editor-frame-pills::-webkit-scrollbar {
  height: 4px !important;
}

.editor-frame-pills::-webkit-scrollbar-thumb {
  background: var(--line, #e6decb) !important;
  border-radius: 4px !important;
}

.editor-frame-pill {
  flex: 0 0 auto !important;
  padding: 5px 12px !important;
  font: 600 12px var(--sans, sans-serif) !important;
  color: var(--ink, #38332f) !important;
  background: #fbf9f4 !important;
  border: 1.5px solid var(--line, #e6decb) !important;
  border-radius: 18px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.editor-frame-pill:hover {
  background: #ffffff !important;
  border-color: var(--accent, #528a63) !important;
  transform: translateY(-1px) !important;
}

.editor-frame-pill.selected {
  background: var(--accent, #528a63) !important;
  color: #ffffff !important;
  border-color: var(--accent, #528a63) !important;
  box-shadow: 0 3px 10px rgba(82, 138, 99, 0.35) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   🪄 ONE-SCREEN FOCUS PHOTO PRINT & QUICK DOCK (No Scrolling Needed!)
   ══════════════════════════════════════════════════════════════════════ */

/* Exact wrap of print image so sticker handles map 1:1 to canvas coordinates */
.editor-preview-column {
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 8px 24px !important;
}

.editor-preview-column .result-print {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  max-height: min(52vh, 490px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  transform: rotate(0deg) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.editor-preview-column .result-print img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 330px) !important;
  max-height: min(52vh, 490px) !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 30px rgba(34, 52, 38, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.editor-preview-column .sticker-handles {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  border-radius: 10px !important;
  overflow: visible !important;
}

.sticker-handle.selected {
  outline: 2px dashed var(--accent, #528a63) !important;
  background: rgba(255, 255, 255, 0.45) !important;
  border-radius: 8px !important;
  box-shadow: 0 0 0 4px rgba(82, 138, 99, 0.2) !important;
}

/* 🪄 Main Quick Dock Container */
.editor-quick-dock {
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid var(--line, #e6decb) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 28px rgba(44, 72, 51, 0.1) !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  z-index: 10 !important;
}

/* Dock Tab Selector */
.dock-tab-bar {
  display: flex !important;
  gap: 5px !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.dock-tab-btn {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 6px 8px !important;
  background: #fbf9f5 !important;
  border: 1.5px solid transparent !important;
  border-radius: 10px !important;
  font: 600 11.5px var(--sans, sans-serif) !important;
  color: var(--muted, #726b60) !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  white-space: nowrap !important;
}

.dock-tab-btn:hover {
  background: #ffffff !important;
  color: var(--ink, #322d28) !important;
  border-color: var(--line, #e6decb) !important;
}

.dock-tab-btn.active {
  background: var(--accent, #528a63) !important;
  color: #ffffff !important;
  border-color: var(--accent, #528a63) !important;
  box-shadow: 0 3px 10px rgba(82, 138, 99, 0.3) !important;
}

/* Panels */
.dock-panels {
  width: 100% !important;
}

.dock-panel {
  display: none !important;
  width: 100% !important;
}

.dock-panel.active {
  display: block !important;
  animation: dockFadeIn 0.2s ease !important;
}

@keyframes dockFadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Panel 1: Stickers Sideways Tray */
.sticker-scroll-tray {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding: 4px 2px 8px !important;
  scrollbar-width: thin !important;
  -webkit-overflow-scrolling: touch !important;
}

.sticker-scroll-tray::-webkit-scrollbar {
  height: 5px !important;
}

.sticker-scroll-tray::-webkit-scrollbar-thumb {
  background: var(--line, #e6decb) !important;
  border-radius: 4px !important;
}

.dock-sticker-btn {
  flex: 0 0 50px !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 12px !important;
  background: #fbf9f4 !important;
  border: 1.5px solid var(--line, #e6decb) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  font-size: 24px !important;
}

.dock-sticker-btn:hover {
  background: #ffffff !important;
  border-color: var(--accent, #528a63) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(82, 138, 99, 0.22) !important;
}

.dock-sticker-btn:active {
  transform: scale(0.95) !important;
}

.dock-sticker-btn img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15)) !important;
}

.dock-sticker-btn.clear-stickers {
  flex: 0 0 auto !important;
  padding: 0 12px !important;
  width: auto !important;
  font: 600 11.5px var(--sans, sans-serif) !important;
  color: #b33939 !important;
  background: #fff4f4 !important;
  border-color: #f3c2c2 !important;
  gap: 5px !important;
}

.dock-sticker-btn.clear-stickers:hover {
  background: #ffe3e3 !important;
  border-color: #b33939 !important;
}

/* Panel 2: Quick Sticker Adjustment (Smaller, Bigger, Rotate, Delete) */
.dock-adjust-bar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.dock-adjust-preview {
  flex: 0 0 46px !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 12px !important;
  background: #fbf9f4 !important;
  border: 1.5px dashed var(--accent, #528a63) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
}

.dock-adjust-controls {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.dock-btn-group {
  display: flex !important;
  gap: 5px !important;
}

.dock-action-btn {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 6px 4px !important;
  border-radius: 8px !important;
  background: #fdfcf9 !important;
  border: 1.5px solid var(--line, #e6decb) !important;
  font: 600 11px var(--sans, sans-serif) !important;
  color: var(--ink, #322d28) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.dock-action-btn:hover {
  background: var(--accent, #528a63) !important;
  color: #ffffff !important;
  border-color: var(--accent, #528a63) !important;
}

.dock-action-btn:active {
  transform: scale(0.96) !important;
}

.dock-action-btn.delete-btn {
  color: #b33939 !important;
  border-color: #f3c2c2 !important;
  background: #fff6f6 !important;
}

.dock-action-btn.delete-btn:hover {
  background: #b33939 !important;
  color: #ffffff !important;
  border-color: #b33939 !important;
}

.dock-slider-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.dock-slider-label {
  font: 500 11px var(--mono, monospace) !important;
  color: var(--muted, #726b60) !important;
  white-space: nowrap !important;
}

.dock-slider {
  flex: 1 !important;
  height: 5px !important;
  accent-color: var(--accent, #528a63) !important;
  cursor: pointer !important;
}

/* Panel 3: Quick Note */
.dock-text-row {
  display: flex !important;
  gap: 6px !important;
  margin-bottom: 6px !important;
}

.dock-input {
  flex: 1 !important;
  padding: 7px 10px !important;
  border: 1.5px solid var(--line, #e6decb) !important;
  border-radius: 8px !important;
  font: 500 12px var(--sans, sans-serif) !important;
  background: #fdfcf9 !important;
  color: var(--ink, #322d28) !important;
}

.dock-input:focus {
  outline: none !important;
  border-color: var(--accent, #528a63) !important;
  box-shadow: 0 0 0 3px rgba(82, 138, 99, 0.15) !important;
}

.dock-btn-accent {
  padding: 7px 12px !important;
  border: none !important;
  border-radius: 8px !important;
  background: var(--accent, #528a63) !important;
  color: #ffffff !important;
  font: 700 11px var(--mono, monospace) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.dock-btn-accent:hover {
  background: var(--accent-dark, #2c4833) !important;
}

.dock-text-settings {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.dock-select {
  flex: 1 !important;
  padding: 5px 8px !important;
  border: 1.5px solid var(--line, #e6decb) !important;
  border-radius: 8px !important;
  font: 500 11px var(--sans, sans-serif) !important;
  background: #fdfcf9 !important;
  color: var(--ink, #322d28) !important;
}

.dock-color-picker {
  width: 32px !important;
  height: 28px !important;
  padding: 1px 2px !important;
  border: 1.5px solid var(--line, #e6decb) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  cursor: pointer !important;
}

.dock-btn-subtle {
  padding: 5px 8px !important;
  background: none !important;
  border: 1px solid var(--line, #e6decb) !important;
  border-radius: 6px !important;
  font: 500 10.5px var(--sans, sans-serif) !important;
  color: var(--muted, #726b60) !important;
  cursor: pointer !important;
}

.dock-btn-subtle:hover {
  color: #b33939 !important;
  border-color: #f3c2c2 !important;
}

/* Panel 4: Quick AI & Light */
.dock-enhance-row {
  display: flex !important;
  gap: 8px !important;
}

.dock-toggle-btn {
  flex: 1 !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  background: #fdfcf9 !important;
  border: 1.5px solid var(--line, #e6decb) !important;
  font: 600 11.5px var(--sans, sans-serif) !important;
  color: var(--ink, #322d28) !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  text-align: center !important;
}

.dock-toggle-btn:hover {
  border-color: var(--accent, #528a63) !important;
}

.dock-toggle-btn.active,
.dock-toggle-btn[aria-pressed="true"] {
  background: var(--accent, #528a63) !important;
  color: #ffffff !important;
  border-color: var(--accent, #528a63) !important;
  box-shadow: 0 3px 10px rgba(82, 138, 99, 0.3) !important;
}

/* Bottom Action Buttons in Dock */
.editor-dock-actions {
  display: flex !important;
  gap: 6px !important;
  padding-top: 6px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.editor-dock-actions .result-action {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  font: 700 11.5px var(--mono, monospace) !important;
  letter-spacing: 0.04em !important;
  border: 1.5px solid var(--line, #e6decb) !important;
  background: #fdfcf9 !important;
  color: var(--ink, #322d28) !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.editor-dock-actions .result-action:hover {
  background: #ffffff !important;
  border-color: var(--accent, #528a63) !important;
  transform: translateY(-1px) !important;
}

.editor-dock-actions .result-save {
  flex: 1.3 !important;
  background: var(--accent, #528a63) !important;
  color: #ffffff !important;
  border-color: var(--accent, #528a63) !important;
  box-shadow: 0 4px 14px rgba(82, 138, 99, 0.35) !important;
}

.editor-dock-actions .result-save:hover {
  background: var(--accent-dark, #2c4833) !important;
  border-color: var(--accent-dark, #2c4833) !important;
}

.dock-hint {
  font: italic 500 10.5px var(--serif, serif) !important;
  color: var(--muted, #726b60) !important;
  text-align: center !important;
  margin-top: 3px !important;
}

/* 📱 Responsive Single Screen Focus: Hide excessive sidebar on screens <= 960px */
@media (max-width: 960px) {
  .editor-workspace {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 6px !important;
  }

  .memory-editor {
    display: none !important;
  }

  .editor-header {
    margin-bottom: 6px !important;
    padding: 8px 12px 4px !important;
  }

  .editor-header h2 {
    font-size: 26px !important;
  }

  .editor-frame-bar {
    margin-bottom: 4px !important;
    padding: 6px 10px !important;
  }

  .live-photo-bar {
    margin-top: 4px !important;
    padding: 4px 8px !important;
    max-width: 440px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   🌟 COMMUNITY KEEPSAKES & STORIES CAROUSEL (Landing Page)
   ══════════════════════════════════════════════════════════════════════ */
.community-section {
  position: relative;
  max-width: 1200px;
  margin: 40px auto 30px;
  padding: 30px clamp(16px, 4vw, 40px);
}

.community-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.community-title-copy {
  max-width: 680px;
}

.community-title {
  font-family: "Quicksand", sans-serif;
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  color: #38332f;
  margin: 8px 0;
  letter-spacing: -0.02em;
}

.community-subtitle {
  font-family: "Quicksand", sans-serif;
  font-size: clamp(14px, 2vw, 16px);
  color: #726b60;
  line-height: 1.5;
  margin: 0;
}

.community-carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line, #e6decb);
  background: #ffffff;
  color: #38332f;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(44, 72, 51, 0.08);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.community-arrow-btn:hover {
  background: var(--accent, #528a63);
  color: #ffffff;
  border-color: var(--accent, #528a63);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(82, 138, 99, 0.3);
}

.community-arrow-btn:active {
  transform: scale(0.94);
}

/* Carousel Viewport & Track */
.community-carousel-viewport {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding: 12px 4px 24px;
}

.community-carousel-viewport::-webkit-scrollbar {
  height: 6px;
}

.community-carousel-viewport::-webkit-scrollbar-thumb {
  background: var(--line, #e6decb);
  border-radius: 6px;
}

.community-carousel-track {
  display: flex;
  gap: 22px;
  width: max-content;
  align-items: stretch;
}

/* Individual Community Card */
.community-card {
  width: 300px;
  flex: 0 0 300px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--line, #e6decb);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(44, 72, 51, 0.08);
  padding: 16px 16px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.community-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 42px rgba(44, 72, 51, 0.14);
}

.community-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.community-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: #fbf9f4;
  border: 1.5px solid var(--line, #e6decb);
  border-radius: 999px;
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: #38332f;
  transition: all 0.2s ease;
}

.community-user-pill i.bi-instagram {
  color: #e1306c;
}

.community-user-pill i.bi-tiktok {
  color: #000000;
}

.community-user-pill i.bi-facebook {
  color: #1877f2;
}

.community-user-pill i.bi-twitter-x {
  color: #000000;
}

.community-user-pill .external-icon {
  font-size: 10px;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.community-user-pill:hover {
  background: #ffffff;
  border-color: var(--accent, #528a63);
  color: var(--accent-dark, #2c4833);
  transform: translateY(-1px);
}

.community-user-pill:hover .external-icon {
  opacity: 1;
  transform: translate(1px, -1px);
}

.community-frame-tag {
  font-family: "Quicksand", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #726b60);
  background: #f4eee3;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Photo Strip in Card */
.community-photo-wrapper {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #fdfaf4;
  border: 1px solid var(--line, #e6decb);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.community-photo-strip {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.community-card:hover .community-photo-strip {
  transform: scale(1.03);
}

/* Testimonial Quote in Card */
.community-testimonial-quote {
  position: relative;
  background: #fbf9f4;
  border: 1px solid rgba(230, 222, 203, 0.8);
  border-radius: 12px;
  padding: 10px 12px 10px 24px;
  margin-bottom: 14px;
  flex: 1;
}

.quote-symbol {
  position: absolute;
  top: 4px;
  left: 6px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
  line-height: 1;
  color: var(--accent, #528a63);
  opacity: 0.8;
}

.quote-text {
  font-family: "Caveat", cursive;
  font-size: 16px;
  font-weight: 600;
  color: #4a4237;
  line-height: 1.35;
  margin: 0;
}

/* Card Bottom Footer */
.community-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.community-heart-btn {
  background: #ffffff;
  border: 1.5px solid var(--line, #e6decb);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: #635b50;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.community-heart-btn:hover,
.community-heart-btn.liked {
  border-color: #f3a6b8;
  background: #fff4f6;
  color: #d84568;
}

.community-heart-btn.liked .heart-icon {
  animation: heartBounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes heartBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.community-time-badge {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--muted, #8a8276);
}

/* Bottom CTA Box */
.community-cta-box {
  background: linear-gradient(135deg, #fdf6ec 0%, #f4fbf5 100%);
  border: 1.5px dashed var(--accent, #528a63);
  border-radius: 20px;
  padding: 20px 24px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.community-cta-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.community-cta-emoji {
  font-size: 38px;
}

.community-cta-title {
  font-family: "Quicksand", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #38332f;
  margin: 0 0 4px;
}

.community-cta-desc {
  font-family: "Quicksand", sans-serif;
  font-size: 13.5px;
  color: #6a6155;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   🌟 COMMUNITY SHARE MODAL (booth.php)
   ══════════════════════════════════════════════════════════════════════ */
.community-share-modal-content {
  border-radius: 24px !important;
  border: 1.5px solid var(--line, #e6decb) !important;
  background: #fffdf9 !important;
  box-shadow: 0 20px 60px rgba(44, 72, 51, 0.22) !important;
  overflow: hidden !important;
}

.community-modal-kicker {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent, #528a63);
  display: block;
}

.community-share-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.community-share-preview {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fbf9f4;
  border: 1px solid var(--line, #e6decb);
  box-shadow: 0 8px 24px rgba(44, 72, 51, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.community-share-preview img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
}

.community-preview-badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 999px;
  font-family: "Quicksand", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark, #2c4833);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.community-share-desc {
  font-family: "Quicksand", sans-serif;
  font-size: 13.5px;
  color: #635b50;
  line-height: 1.5;
  margin-bottom: 16px;
}

.community-field-label {
  font-family: "Quicksand", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #38332f;
  margin-bottom: 6px;
  display: block;
}

.community-platform-picker {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.platform-choice-btn {
  flex: 1;
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fbf9f4;
  border: 1.5px solid var(--line, #e6decb);
  font-family: "Quicksand", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #4a4237;
  cursor: pointer;
  transition: all 0.2s ease;
}

.platform-choice-btn:hover {
  background: #ffffff;
  border-color: var(--accent, #528a63);
}

.platform-choice-btn.active {
  background: var(--accent, #528a63);
  color: #ffffff;
  border-color: var(--accent, #528a63);
  box-shadow: 0 4px 12px rgba(82, 138, 99, 0.3);
}

.community-username-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line, #e6decb);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 4px;
}

.username-at {
  padding: 0 12px;
  font-family: "DM Mono", monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent, #528a63);
  background: #fbf9f4;
  border-right: 1.5px solid var(--line, #e6decb);
  line-height: 42px;
}

.community-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-family: "Quicksand", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #38332f;
  outline: none;
}

.community-input-hint {
  font-family: "Quicksand", sans-serif;
  font-size: 11.5px;
  color: var(--muted, #8a8276);
  display: block;
  margin-bottom: 14px;
}

.community-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid var(--line, #e6decb);
  border-radius: 12px;
  font-family: "Quicksand", sans-serif;
  font-size: 13.5px;
  color: #38332f;
  background: #ffffff;
  outline: none;
  resize: none;
}

.community-textarea:focus {
  border-color: var(--accent, #528a63);
  box-shadow: 0 0 0 3px rgba(82, 138, 99, 0.15);
}

.char-count-row {
  text-align: right;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--muted, #8a8276);
  margin-top: 4px;
  margin-bottom: 14px;
}

.community-quick-share-box {
  background: #fbf9f4;
  border: 1px solid var(--line, #e6decb);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.quick-share-title {
  font-family: "Quicksand", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #554d42;
  display: block;
  margin-bottom: 8px;
}

.quick-share-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-quick-share {
  padding: 6px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line, #e6decb);
  font-family: "Quicksand", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #4a4237;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-quick-share:hover {
  background: #f4fbf5;
  border-color: var(--accent, #528a63);
  color: var(--accent-dark, #2c4833);
}

.btn-quick-share.copy-caption-btn {
  background: #fdf5f7;
  border-color: #f3c2cd;
  color: #b84365;
}

.community-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.community-submit-btn {
  padding: 10px 20px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(82, 138, 99, 0.35) !important;
}

.community-status-msg {
  padding: 12px 14px;
  border-radius: 12px;
  margin-top: 12px;
  font-family: "Quicksand", sans-serif;
  font-size: 13px;
}

.community-status-msg.success {
  background: #eef8f1;
  border: 1.5px solid #8ecfa0;
  color: #1c5e31;
}

.community-success-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.community-success-banner .success-icon {
  font-size: 24px;
}

.community-status-msg.error {
  background: #fdf2f2;
  border: 1.5px solid #f3a6a6;
  color: #a82323;
}

@media (max-width: 768px) {
  .community-share-layout {
    grid-template-columns: 1fr;
  }
  .community-share-preview {
    max-width: 220px;
    margin: 0 auto;
  }
  .community-cta-box {
    text-align: center;
    justify-content: center;
  }
  .community-cta-content {
    flex-direction: column;
    text-align: center;
  }
}

