:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --title-font: 'Fredoka', 'Poppins', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg: #0d1325;
  --bg-soft: #131a38;
  --surface: rgba(255,255,255,0.06);
  --surface-strong: rgba(255,255,255,0.12);
  --text: #f6f7ff;
  --muted: #9db2d8;
  --hero-scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: #fff2df;
  color: var(--text);
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  line-height: 1.5;
}

.page-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.hero {
  display: block;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
}

.full-hero .hero-stage {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100svh;
  width: 100vw;
  transform: translateY(calc(var(--hero-scroll-progress) * -56px)) scale(calc(1 - (var(--hero-scroll-progress) * 0.035)));
  opacity: calc(1 - (var(--hero-scroll-progress) * 0.18));
  transform-origin: center top;
  will-change: transform, opacity;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #d3e0ff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-heading {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.8rem);
  line-height: 0.95;
  max-width: 770px;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.hero-text {
  max-width: 620px;
  color: rgba(255,255,255,0.8);
  font-size: 1.08rem;
}

.hero-stage {
  position: relative;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(180deg, #2d78ff 0%, #194cff 100%);
  overflow: visible;
}

.hero-stage-deco {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 22% 25%, rgba(255,255,255,0.16), transparent 12%),
                    radial-gradient(circle at 80% 14%, rgba(255,255,255,0.08), transparent 16%),
                    radial-gradient(circle at 50% 85%, rgba(255,255,255,0.1), transparent 18%);
  opacity: calc(1 - (var(--hero-scroll-progress) * 0.35));
  pointer-events: none;
}

.site-header {
  position: absolute;
  left: clamp(16px, 3vw, 34px);
  top: clamp(14px, 2.6vw, 30px);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  display: inline-flex;
  width: clamp(95px, 11vw, 148px);
  pointer-events: auto;
}

.site-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.language-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: auto;
}

.language-button {
  border: 0;
  border-radius: 999px;
  padding: 5px 8px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.language-button.active {
  background: #ffffff;
  color: #2d78ff;
}

.hero-canvas-shell.full-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-canvas-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-noise-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.hero-noise-item {
  position: absolute;
  left: var(--noise-left);
  top: var(--noise-top);
  width: var(--noise-size);
  height: var(--noise-size);
  object-fit: contain;
  opacity: var(--noise-opacity);
  transform: translate(-50%, -50%) rotate(var(--noise-rotate));
  animation: noise-float var(--noise-duration) ease-in-out var(--noise-delay) infinite;
}

@keyframes noise-float {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0) rotate(var(--noise-rotate));
  }
  50% {
    transform: translate(-50%, -50%) translateY(calc(var(--noise-drift) * -1)) rotate(calc(var(--noise-rotate) * -1));
  }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}

.hero-canvas-shell.paint-gesture-active .hero-canvas {
  touch-action: none;
}

.hero-h1 {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0;
  color: #ffffff;
  font-family: var(--title-font);
  font-weight: 700;
  text-align: center;
  line-height: 0.78;
  pointer-events: none;
  z-index: 3;
  font-size: clamp(56px, 13vw, 178px);
  letter-spacing: -0.02em;
}

.hero-line {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  justify-content: center;
}

.hero-letter {
  display: inline-block;
  pointer-events: none;
  transition: transform 0.22s ease;
}

.hero-premium-mark {
  display: inline-flex;
  width: 0.96em;
  height: 1em;
  margin: 0 0.01em 0 -0.1em;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  position: relative;
  line-height: 0;
  pointer-events: auto;
}

.hero-premium-mark img {
  position: absolute;
  left: 48%;
  top: 50%;
  width: 1.18em;
  height: 1.18em;
  display: block;
  object-fit: contain;
  transform: translate(-50%, -48%);
  transition: transform 0.18s ease;
}

.hero-premium-mark:hover img {
  transform: translate(-50%, -48%) scale(1.08);
}

.hero-premium-mark.premium-bounce-out img {
  animation: premium-bounce-out 0.34s ease;
}

@keyframes premium-bounce-out {
  0% { transform: translate(-50%, -48%) scale(1.08); }
  45% { transform: translate(-50%, -48%) scale(0.94); }
  72% { transform: translate(-50%, -48%) scale(1.03); }
  100% { transform: translate(-50%, -48%) scale(1); }
}

.hero-letter.jump {
  animation: letter-bounce-hover 0.38s ease;
}

@keyframes letter-bounce-hover {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-12px) scale(1.02); }
  60% { transform: translateY(2px) scale(0.98); }
  100% { transform: translateY(0) scale(1); }
}

.hero-cta {
  position: absolute;
  left: 50%;
  top: calc(50% + clamp(92px, 10vw, 158px) + 24px);
  width: min(560px, calc(100vw - 40px));
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  pointer-events: none;
  z-index: 4;
}

.hero-cta p {
  max-width: 520px;
  margin: 6px 0 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.98rem, 1.55vw, 1.28rem);
  font-weight: 700;
  line-height: 1.35;
}

.store-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.store-button {
  display: inline-flex;
  width: clamp(150px, 15vw, 176px);
  aspect-ratio: 2350 / 711.9;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(10, 20, 50, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  pointer-events: auto;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(10, 20, 50, 0.2);
}

.store-button img {
  width: 100%;
  height: 100%;
  display: block;
}

.paint-layer {
  z-index: 2;
}

.hero-canvas {
  z-index: 1;
}

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.paint-layer {
  pointer-events: none;
}

.hero-title-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 7vw, 6.4rem);
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.1);
  pointer-events: none;
}

.tool-panel {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(760px, 96vw);
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  z-index: 6;
}

.tool-panel .tool-card {
  display: none;
}

.tool-panel.open .tool-card {
  display: block;
}

.tool-card {
  background: #ffffff;
  border-radius: 32px;
  padding: 18px 18px 14px;
  box-shadow: 0 28px 80px rgba(10, 20, 50, 0.16);
  border: 1px solid rgba(20, 32, 66, 0.08);
}

.tool-card-title {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tool-bar {
  background: #ffffff;
  border-radius: 32px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(20, 32, 66, 0.08);
  box-shadow: 0 18px 60px rgba(10, 20, 50, 0.12);
}

.tool-button {
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: #ffffff;
  color: #09101f;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 18px;
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: none;
}

.tool-button.active {
  background: #eff6ff;
  border-color: rgba(60, 146, 255, 0.24);
  box-shadow: 0 14px 30px rgba(60, 146, 255, 0.16);
}

.tool-button .tool-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.tool-button:hover {
  transform: translateY(-1px);
}

.tool-options {
  display: grid;
  gap: 16px;
}

.tool-section {
  display: none;
  gap: 14px;
}

.tool-section.active {
  display: grid;
}

.control-group {
  display: grid;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
}

.control-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.control-label {
  color: #0f172a;
  font-weight: 700;
}

.tool-card .control-note {
  color: #64748b;
}

.tool-button.danger {
  color: #b91c1c;
  background: #fee2e2;
  border-color: rgba(185, 28, 28, 0.18);
}

.control-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.control-group.compact {
  padding: 14px;
}

.control-label {
  font-size: 0.92rem;
  color: #d7e3ff;
  font-weight: 700;
}

.tool-row,
.color-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-button,
.color-swatch,
.letter-button,
.sticker-button {
  border: none;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tool-button,
.letter-button,
.sticker-button {
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  color: #eef4ff;
  font-weight: 700;
}

.tool-button .tool-icon {
  margin-right: 8px;
  font-size: 1.1rem;
}

.tool-button.active,
.color-swatch.active,
.letter-button.active,
.sticker-button.active {
  box-shadow: 0 14px 30px rgba(60, 146, 255, 0.28);
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.10));
}

.tool-section {
  display: none;
  gap: 14px;
  margin-top: 16px;
}

.tool-section.active {
  display: block;
}

.control-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.control-note {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  margin-top: 8px;
}

.sticker-editor {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.sticker-editor.hidden {
  display: none;
}

.tool-button.danger {
  background: rgba(255, 90, 95, 0.18);
  color: #ffb4b8;
}

.tool-button {
  min-width: 110px;
}

.color-swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
}

.color-swatch.active {
  border-color: #ffffff;
}

.letters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 10px;
}

.letter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  font-size: 1.05rem;
  font-weight: 800;
  background: rgba(146, 170, 255, 0.12);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.letter-button:hover {
  animation: letter-bounce 0.35s ease;
  background: rgba(255, 255, 255, 0.14);
}

@keyframes letter-bounce {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-8px) scale(1.02); }
  60% { transform: translateY(2px) scale(0.99); }
  100% { transform: translateY(0) scale(1); }
}

.stickers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.sticker-button {
  width: 62px;
  height: 62px;
  min-height: 0;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 8px;
}

.sticker-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sticker-button,
.sticker-button:hover,
.sticker-button:active,
.sticker-button.active {
  animation: none;
  transform: none;
}

.hero-badge {
  position: absolute;
  right: clamp(16px, 3vw, 34px);
  top: clamp(18px, 2.8vw, 34px);
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  z-index: 8;
}

.hero-placeholder {
  height: 100vh;
  height: 100svh;
  width: 100%;
}

.mobile-next-section {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 54px;
  height: 54px;
  border: 2px solid rgba(32, 40, 51, 0.14);
  border-radius: 18px;
  display: none;
  place-items: center;
  background: #ffffff;
  color: #2d78ff;
  z-index: 11;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mobile-next-section svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-stage.tools-open .mobile-next-section {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@supports (height: 100dvh) {
  .hero,
  .full-hero .hero-stage,
  .hero-placeholder {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.sticker {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.16);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.sticker.sticker-selected {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.45);
}

.sticker:active {
  cursor: grabbing;
}

.sticker.sticker-dragging {
  cursor: grabbing;
  z-index: 5;
}

.second-section {
  position: relative;
  z-index: 7;
  min-height: 100vh;
  margin: 0 calc(50% - 50vw);
  padding: clamp(82px, 10vw, 132px) 24px 0;
  background: linear-gradient(180deg, #fff7ec 0%, #fff2df 100%);
  color: #11131b;
}

.second-section::before {
  content: none;
}

.second-section-inner {
  position: relative;
  width: min(1160px, 100%);
  margin: 0 auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 14px;
  color: #ed6d8f;
  font-family: var(--title-font);
  font-size: clamp(0.84rem, 1.3vw, 1rem);
  font-weight: 900;
  text-transform: uppercase;
  background-image: linear-gradient(90deg, #ed6d8f, #ff9d43, #ffe45d, #5edb73, #42b8ff, #8a6bff, #ed6d8f);
  background-size: 240% 100%;
  background-position: 0 50%;
  background-clip: text;
  -webkit-background-clip: text;
  transition: color 0.18s ease;
}

.section-kicker:hover {
  color: transparent;
  animation: kicker-rainbow 1.15s linear infinite;
}

@keyframes kicker-rainbow {
  0% { background-position: 0 50%; }
  100% { background-position: 240% 50%; }
}

.second-section h2 {
  max-width: 820px;
  margin: 0 auto clamp(34px, 5vw, 58px);
  color: #11131b;
  font-family: var(--title-font);
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 0.98;
}

.features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.features-doodle-line {
  position: absolute;
  left: 50%;
  top: clamp(180px, 24vw, 280px);
  width: 110vw;
  height: auto;
  transform: translateX(-50%);
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.features-doodle-line path {
  fill: none;
  stroke: #efd8bb;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1320;
  stroke-dashoffset: 1320;
  animation: draw-features-doodle 5.8s ease-in-out infinite;
}

@keyframes draw-features-doodle {
  0% { stroke-dashoffset: 1320; opacity: 0.25; }
  20% { opacity: 1; }
  58%, 76% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.25; }
}

.feature-card {
  position: relative;
  min-height: clamp(260px, 28vw, 330px);
  padding: clamp(14px, 1.8vw, 20px);
  border-radius: 22px;
  border: none;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  text-align: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(34px) scale(0.92) rotate(calc(var(--card-rotate, 0deg) - 3deg));
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: auto 0 -12px 0;
  height: 28px;
  background: var(--card-depth, rgba(17, 19, 27, 0.18));
  border-radius: 0 0 22px 22px;
  z-index: -1;
}

.feature-card:hover {
  transform: rotate(var(--card-rotate, 0deg)) translateY(-4px);
}

.features.features-in-view .feature-card {
  opacity: 1;
  transform: rotate(var(--card-rotate, 0deg));
  animation: feature-card-enter 0.72s cubic-bezier(.18, 1.28, .32, 1) backwards;
}

.features.features-in-view .feature-card:nth-child(2) {
  animation-delay: 0.1s;
}

.features.features-in-view .feature-card:nth-child(3) {
  animation-delay: 0.2s;
}

.features.features-in-view .feature-card:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes feature-card-enter {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.92) rotate(calc(var(--card-rotate, 0deg) - 3deg));
  }
  58% {
    opacity: 1;
    transform: translateY(-8px) scale(1.035) rotate(calc(var(--card-rotate, 0deg) + 1.5deg));
  }
  78% {
    opacity: 1;
    transform: translateY(3px) scale(0.99) rotate(calc(var(--card-rotate, 0deg) - 0.6deg));
  }
  100% {
    opacity: 1;
    transform: rotate(var(--card-rotate, 0deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .features.features-in-view .feature-card,
  .feature-mini,
  .feature-mini-grid.feature-mini-in-view .feature-mini {
    opacity: 1;
    transform: rotate(var(--card-rotate, 0deg));
    animation: none;
  }

  .feature-mini,
  .feature-mini-grid.feature-mini-in-view .feature-mini {
    transform: none;
  }
}

.feature-card-play {
  background: #f983ba;
  --card-rotate: -1.7deg;
  --card-depth: #d76599;
}

.feature-card-stickers {
  background: #62d85d;
  --card-rotate: 1.2deg;
  --card-depth: #48aa45;
}

.feature-card-share {
  background: #ff7046;
  --card-rotate: -0.8deg;
  --card-depth: #d85031;
}

.feature-card-fun {
  background: #5baff4;
  --card-rotate: 1.8deg;
  --card-depth: #408fd0;
}

.feature-art {
  position: relative;
  min-height: 176px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
  z-index: 1;
}

.feature-art::before,
.feature-art::after {
  content: "";
  position: absolute;
  border: 4px solid #10131b;
  border-color: #10131b transparent transparent transparent;
  border-radius: 50%;
  pointer-events: none;
}

.feature-art::before {
  left: -12%;
  bottom: -18%;
  width: 72%;
  height: 48%;
  transform: rotate(10deg);
}

.feature-art::after {
  right: -16%;
  top: -20%;
  width: 66%;
  height: 44%;
  transform: rotate(-12deg);
}

.feature-art img {
  position: absolute;
  width: 48%;
  height: auto;
  object-fit: contain;
  transition: transform 0.22s ease;
}

.feature-art img:first-child {
  left: 12%;
  bottom: 10%;
  transform: rotate(-8deg);
}

.feature-art img:last-child {
  right: 8%;
  top: 8%;
  transform: rotate(9deg);
}

.feature-card-play .feature-art img:first-child,
.feature-card-share .feature-art img:first-child {
  width: 54%;
}

.feature-card-play .feature-art img:first-child {
  z-index: 2;
}

.feature-card-play .feature-art img:last-child {
  z-index: 1;
}

.feature-card-fun .feature-art img:first-child {
  width: 58%;
  left: 8%;
  bottom: 2%;
}

.feature-card-play:hover .feature-art img:first-child {
  animation: brush-stroke 1.8s ease-in-out infinite;
}

.feature-card-play:hover .feature-art::before {
  animation: paint-swipe 1.8s ease-in-out infinite;
}

.feature-card-stickers:hover .feature-art img:first-child {
  animation: sticker-wiggle-left 1.7s ease-in-out infinite;
}

.feature-card-stickers:hover .feature-art img:last-child {
  animation: sticker-wiggle-right 1.7s ease-in-out 0.12s infinite;
}

.feature-card-share:hover .feature-art img:first-child {
  animation: bucket-pour 1.9s ease-in-out infinite;
}

.feature-card-share:hover .feature-art img:last-child {
  animation: create-pop 1.9s ease-in-out 0.16s infinite;
}

.feature-card-fun:hover .feature-art img:first-child {
  animation: fun-spin 2s ease-in-out infinite;
}

.feature-card-fun:hover .feature-art img:last-child {
  animation: fun-bounce 1.8s ease-in-out 0.12s infinite;
}

@keyframes brush-stroke {
  0%, 100% { transform: rotate(-8deg) translate(0, 0); }
  42% { transform: rotate(-14deg) translate(10px, -7px); }
  72% { transform: rotate(0deg) translate(18px, 4px); }
}

@keyframes paint-swipe {
  0%, 100% { transform: rotate(10deg) translateX(0) scaleX(1); opacity: 0.85; }
  48% { transform: rotate(10deg) translateX(8px) scaleX(1.06); opacity: 1; }
}

@keyframes sticker-wiggle-left {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  35% { transform: rotate(-13deg) scale(1.04); }
  68% { transform: rotate(-3deg) scale(0.99); }
}

@keyframes sticker-wiggle-right {
  0%, 100% { transform: rotate(9deg) scale(1); }
  36% { transform: rotate(14deg) scale(1.04); }
  68% { transform: rotate(4deg) scale(0.99); }
}

@keyframes bucket-pour {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  42% { transform: rotate(-20deg) translate(-4px, -5px); }
  74% { transform: rotate(-2deg) translate(6px, 2px); }
}

@keyframes create-pop {
  0%, 100% { transform: rotate(9deg) scale(1); }
  45% { transform: rotate(12deg) scale(1.07); }
  72% { transform: rotate(7deg) scale(0.99); }
}

@keyframes fun-spin {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  45% { transform: rotate(8deg) scale(1.04); }
  75% { transform: rotate(-12deg) scale(1.01); }
}

@keyframes fun-bounce {
  0%, 100% { transform: rotate(9deg) translateY(0) scale(1); }
  40% { transform: rotate(12deg) translateY(-8px) scale(1.04); }
  72% { transform: rotate(6deg) translateY(2px) scale(0.99); }
}

.feature-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #11131b;
  font-family: var(--title-font);
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  line-height: 1;
}

.section-downloads {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 28px);
}

.download-callout {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.download-callout-text {
  position: relative;
  width: min(640px, 100%);
  color: #11131b;
  font-family: var(--title-font);
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  font-weight: 900;
  line-height: 0.96;
  text-align: center;
}

.download-callout-arrow {
  display: block;
  width: clamp(92px, 14vw, 148px);
  height: auto;
  overflow: visible;
  justify-self: center;
  transform: none;
}

.download-callout-arrow path {
  fill: none;
  stroke: #2d78ff;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw-download-arrow 2.4s ease-in-out infinite;
}

.download-callout-arrow path:nth-child(2) {
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation-delay: 0.72s;
}

@keyframes draw-download-arrow {
  0% { stroke-dashoffset: 260; opacity: 0.2; }
  18% { opacity: 1; }
  58%, 78% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.2; }
}

.section-downloads .store-button {
  width: clamp(206px, 20vw, 272px);
  border-radius: 16px;
}

.photo-section {
  position: relative;
  z-index: 8;
  margin: 0 calc(50% - 50vw);
  padding: clamp(104px, 11vw, 150px) 24px clamp(80px, 9vw, 126px);
  border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, #fff9ef 0%, #fff7ec 100%);
  color: #11131b;
  overflow: hidden;
}

.photo-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  width: min(168px, 34vw);
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 19, 27, 0.12);
  transform: translateX(-50%);
}

.photo-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.photo-section.photo-shot::after {
  animation: photo-flash 0.58s ease-out;
}

.photo-section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(30px, 5vw, 58px);
  position: relative;
  z-index: 3;
}

.photo-copy {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.photo-copy h2 {
  margin: 0 auto 18px;
  color: #11131b;
  font-family: var(--title-font);
  font-size: clamp(2.25rem, 5.6vw, 5rem);
  font-weight: 900;
  line-height: 0.98;
}

.photo-copy p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(17, 19, 27, 0.7);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  line-height: 1.45;
}

.photo-demo {
  position: relative;
  min-height: clamp(260px, 34vw, 390px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

.paper-drawing,
.colored-drawing {
  min-height: clamp(220px, 28vw, 330px);
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid #11131b;
}

.paper-drawing {
  background: #ffffff;
}

.colored-drawing {
  background: #9fe7a0;
}

.paper-drawing img,
.colored-drawing img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paper-drawing img {
  filter: none;
  opacity: 1;
}

.camera-button {
  width: clamp(72px, 9vw, 106px);
  aspect-ratio: 1;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  overflow: hidden;
}

.camera-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-section.photo-shot .camera-button {
  animation: camera-pop 0.62s cubic-bezier(.22, 1.28, .38, 1);
}

.photo-section.photo-shot .photo-section-inner {
  animation: photo-section-pop 0.62s cubic-bezier(.22, 1.18, .38, 1);
}

@keyframes camera-pop {
  0% { transform: scale(1); }
  22% { transform: scale(0.78); }
  42% { transform: scale(1.1); }
  68% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

@keyframes photo-section-pop {
  0% { transform: scale(1); filter: brightness(1); }
  18% { transform: scale(0.985); filter: brightness(1.25); }
  42% { transform: scale(1.015); filter: brightness(1.08); }
  72% { transform: scale(0.995); filter: brightness(1); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes photo-flash {
  0% { opacity: 0; }
  12% { opacity: 0.82; }
  42% { opacity: 0.24; }
  100% { opacity: 0; }
}

.feature-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.feature-mini {
  min-height: 206px;
  padding: clamp(34px, 4vw, 46px) clamp(22px, 3vw, 30px) clamp(18px, 2.4vw, 24px);
  border-radius: 24px;
  display: grid;
  align-content: start;
  text-align: left;
  opacity: 0;
  transform: translateY(22px) scale(0.94) rotate(-1.5deg);
}

.feature-mini-grid.feature-mini-in-view .feature-mini {
  opacity: 1;
  transform: none;
  animation: feature-mini-enter 0.48s cubic-bezier(.22, 1.24, .36, 1) backwards;
}

.feature-mini-grid.feature-mini-in-view .feature-mini:nth-child(2) {
  animation-delay: 0.08s;
}

.feature-mini-grid.feature-mini-in-view .feature-mini:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes feature-mini-enter {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.94) rotate(-1.5deg);
  }
  62% {
    opacity: 1;
    transform: translateY(-5px) scale(1.025) rotate(0.8deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.feature-mini-paint {
  background: #ffe676;
}

.feature-mini-stickers {
  background: #f6a5ce;
}

.feature-mini-photo {
  background: #8bd6ff;
}

.feature-mini h3 {
  margin: 0;
  color: #11131b;
  font-family: var(--title-font);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1;
}

.feature-mini p {
  margin: 10px 0 0;
  color: rgba(17, 19, 27, 0.72);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.site-footer {
  position: relative;
  z-index: 8;
  margin: 0 calc(50% - 50vw);
  min-height: 100vh;
  padding: 0 24px clamp(18px, 3vw, 34px);
  display: grid;
  justify-items: center;
  background: #fff2df;
  color: #11131b;
}

.footer-inner {
  width: min(980px, 100%);
  min-height: calc(100vh - clamp(18px, 3vw, 34px));
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(64px, 9vw, 112px);
  transform: translateY(clamp(28px, 5vh, 64px));
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.footer-social-link {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: none;
  color: #9c7d5c;
  transition: transform 0.18s ease, color 0.18s ease;
}

.footer-social-link:hover {
  transform: translateY(-2px);
  color: #765d42;
}

.footer-social-link svg {
  width: 48px;
  height: 48px;
  display: block;
  fill: currentColor;
}

.zentto-credit {
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 25px;
  display: inline-flex;
  transform: translateX(-50%);
  opacity: 0.72;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.zentto-credit:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.zentto-credit img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 900px) {
  .site-header {
    left: max(18px, env(safe-area-inset-left, 0px));
    top: max(16px, env(safe-area-inset-top, 0px));
  }

  .hero-badge {
    right: max(18px, env(safe-area-inset-right, 0px));
    top: max(18px, env(safe-area-inset-top, 0px));
  }

  .hero-h1 {
    font-size: clamp(64px, 15vw, 132px);
  }

  .hero-cta {
    top: calc(50% + clamp(112px, 14vw, 168px));
  }

  .photo-demo {
    gap: clamp(14px, 2vw, 22px);
  }

  .paper-drawing,
  .colored-drawing {
    min-height: clamp(210px, 25vw, 300px);
  }

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

  .second-section {
    padding-inline: 18px;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(680px, 100%);
    margin: 0 auto;
  }

  .features-doodle-line {
    top: clamp(190px, 36vw, 280px);
    width: 120vw;
  }

  .feature-card {
    min-height: 250px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 0 14px 40px;
  }

  .mobile-next-section {
    display: grid;
  }

  .site-header {
    left: max(12px, env(safe-area-inset-left, 0px));
    top: max(12px, env(safe-area-inset-top, 0px));
    gap: 7px;
  }

  .site-logo {
    width: 88px;
  }

  .language-button {
    padding: 4px 6px;
    font-size: 0.66rem;
  }

  .hero-badge {
    display: none;
  }

  .hero-cta {
    top: calc(50% + clamp(126px, 32vw, 154px));
    width: min(340px, calc(100vw - 28px));
    transform: translate(-50%, -34px);
    gap: 10px;
  }

  .hero-cta p {
    font-size: 0.95rem;
  }

  .store-buttons {
    gap: 9px;
  }

  .store-button {
    width: min(142px, calc((100vw - 48px) / 2));
    border-radius: 10px;
  }

  .hero-stage {
    border-radius: 0;
  }

  .hero-h1 {
    font-size: clamp(72px, 21vw, 104px);
    line-height: 0.72;
    padding: 0 12px;
    transform: translateY(-34px);
  }

  .hero-premium-mark {
    width: 1.08em;
    height: 1em;
    margin-left: -0.08em;
  }

  .hero-premium-mark img {
    width: 1.28em;
    height: 1.28em;
  }

  .second-section {
    padding-top: 74px;
  }

  .photo-section {
    border-radius: 26px 26px 0 0;
    padding: 86px 16px 70px;
  }

  .photo-copy h2 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .photo-demo {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 0;
    gap: 14px;
  }

  .paper-drawing,
  .colored-drawing {
    width: min(360px, 100%);
    min-height: 240px;
    border-radius: 22px;
  }

  .camera-button {
    width: 76px;
    border-radius: 22px;
  }

  .second-section h2 {
    margin-bottom: 28px;
  }

  .feature-card {
    min-height: 198px;
    border-radius: 20px;
  }

  .features {
    grid-template-columns: 1fr;
    width: min(360px, 100%);
  }

  .features-doodle-line {
    display: none;
  }

  .feature-art {
    min-height: 140px;
    border-radius: 14px;
  }

  .download-callout {
    gap: 30px;
  }

  .download-callout-text {
    width: min(320px, 100%);
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .download-callout-arrow {
    width: 82px;
    transform: none;
  }

  .section-downloads {
    gap: 12px;
  }

  .section-downloads .store-button {
    width: min(218px, 82vw);
  }

  .hero-screen {
    padding: 24px;
  }

  .feature-mini-grid {
    grid-template-columns: 1fr;
    width: min(360px, 100%);
    margin: 0 auto;
  }

  .feature-mini {
    min-height: 156px;
  }

  .letters {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 0 16px 40px;
  }

  .control-group {
    padding: 18px;
  }

  .letters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Compact app-style editor dock */
.tool-panel {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: calc(clamp(14px, 2.4vw, 28px) + env(safe-area-inset-bottom, 0px));
  left: auto;
  transform: none;
  width: min(304px, calc(100vw - 28px));
  max-width: none;
  align-items: flex-end;
  gap: 10px;
  z-index: 10;
}

.tool-hint {
  position: absolute;
  right: 118px;
  bottom: 132px;
  width: min(460px, calc(100vw - 170px));
  color: #ffffff;
  font-family: var(--title-font);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: right;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  animation: tool-hint-float 1.8s ease-in-out infinite;
}

.tool-hint span {
  display: block;
  white-space: nowrap;
  transform: translateY(-30px);
}

.tool-hint-arrow {
  position: absolute;
  right: -30px;
  bottom: -42px;
  width: 66px;
  height: 42px;
  overflow: visible;
  transform: rotate(-10deg);
  transform-origin: right bottom;
}

.tool-hint-arrow path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-panel.hint-hidden .tool-hint {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  animation: none;
}

@keyframes tool-hint-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

.tool-panel .tool-card {
  width: min(304px, calc(100vw - 28px));
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(32, 40, 51, 0.06);
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.14), inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(18px);
}

.tool-card-title {
  display: none;
}

.tool-options {
  gap: 10px;
}

.tool-section {
  margin-top: 0;
  gap: 10px;
}

.tool-section.active {
  display: grid;
}

.tool-card .control-label,
.tool-card .control-row label {
  color: #272832;
  font-size: 0.76rem;
  font-weight: 800;
}

.tool-card .control-note {
  margin-top: 2px;
  color: #767989;
  font-size: 0.78rem;
}

.control-row {
  gap: 8px;
}

.color-row {
  gap: 6px;
}

.control-slider-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  width: 100%;
}

.tool-card input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.tool-card input[type="range"]::-webkit-slider-runnable-track {
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 42%),
    linear-gradient(90deg, #ff6f8f 0%, #ffd85a 36%, #60d96c 68%, #52b7ff 100%);
  border: 2px solid rgba(32, 40, 51, 0.12);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.58),
    inset 0 -3px 0 rgba(25, 32, 48, 0.12),
    0 4px 8px rgba(16, 24, 40, 0.08);
}

.tool-card input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -9px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95) 0 16%, rgba(255, 255, 255, 0) 17%),
    linear-gradient(180deg, #ffffff 0%, #f7f0ff 38%, #d8c9ff 100%);
  border: 2px solid #202833;
  box-shadow:
    0 5px 0 #8f7bcd,
    0 9px 14px rgba(38, 43, 62, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.tool-card input[type="range"]:hover::-webkit-slider-thumb {
  transform: translateY(-1px) scale(1.05);
  box-shadow:
    0 6px 0 #8f7bcd,
    0 12px 18px rgba(38, 43, 62, 0.2);
}

.tool-card input[type="range"]:active::-webkit-slider-thumb {
  transform: translateY(3px) scale(0.98);
  box-shadow:
    0 2px 0 #8f7bcd,
    0 5px 10px rgba(38, 43, 62, 0.16);
}

.tool-card input[type="range"]::-moz-range-track {
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 42%),
    linear-gradient(90deg, #ff6f8f 0%, #ffd85a 36%, #60d96c 68%, #52b7ff 100%);
  border: 2px solid rgba(32, 40, 51, 0.12);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.58),
    inset 0 -3px 0 rgba(25, 32, 48, 0.12),
    0 4px 8px rgba(16, 24, 40, 0.08);
}

.tool-card input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95) 0 16%, rgba(255, 255, 255, 0) 17%),
    linear-gradient(180deg, #ffffff 0%, #f7f0ff 38%, #d8c9ff 100%);
  border: 2px solid #202833;
  box-shadow:
    0 5px 0 #8f7bcd,
    0 9px 14px rgba(38, 43, 62, 0.18);
}

.color-swatch {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  border: 1px solid rgba(32, 40, 51, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 5px rgba(16, 24, 40, 0.08);
}

.color-swatch.active {
  border-color: #202833;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #202833, 0 5px 10px rgba(15, 23, 42, 0.14);
}

.tool-bar {
  width: auto;
  padding: 7px;
  gap: 7px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(32, 40, 51, 0.06);
  box-shadow: 0 18px 34px rgba(16, 24, 40, 0.16), inset 0 1px 0 rgba(255,255,255,0.82);
  backdrop-filter: blur(18px);
}

.tool-bar .tool-button {
  position: relative;
  width: 58px;
  height: 58px;
  min-width: 0;
  padding: 5px;
  border-radius: 16px;
  border: 1px solid rgba(32, 40, 51, 0.12);
  background: #fff8dc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.66), 0 3px 8px rgba(15, 23, 42, 0.08);
}

.tool-bar .tool-button:nth-child(1) {
  background: #b8dcff;
}

.tool-bar .tool-button:nth-child(2) {
  background: #f9e4a2;
}

.tool-bar .tool-button:nth-child(3) {
  background: #f2d8e9;
}

.tool-bar .tool-button.active {
  border-color: #202833;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72), 0 0 0 2px #ffffff, 0 0 0 4px #202833, 0 8px 16px rgba(15, 23, 42, 0.14);
}

.tool-bar .tool-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.tool-bar .tool-icon {
  width: 44px;
  height: 44px;
  margin: 0;
  object-fit: contain;
}

.stickers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sticker-button {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 16px;
  padding: 7px;
  border-color: rgba(32, 40, 51, 0.1);
  box-shadow: 0 3px 8px rgba(16, 24, 40, 0.08);
}

.sticker-editor {
  gap: 8px;
  padding-top: 8px;
}

.tool-card .tool-button.danger {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 12px 14px 13px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ff7c89 0%, #ff4e62 72%);
  color: #ffffff;
  border: 2px solid rgba(122, 18, 36, 0.18);
  box-shadow:
    0 8px 0 #c92f43,
    0 15px 24px rgba(166, 35, 56, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.46);
  text-shadow: 0 1px 0 rgba(117, 15, 31, 0.24);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.tool-card .tool-button.danger::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 5px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.tool-card .tool-button.danger:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow:
    0 10px 0 #c92f43,
    0 18px 28px rgba(166, 35, 56, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.tool-card .tool-button.danger:active {
  transform: translateY(5px) scale(0.99);
  box-shadow:
    0 3px 0 #c92f43,
    0 8px 14px rgba(166, 35, 56, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.38);
}

@media (max-width: 900px) {
  .tool-panel {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: min(268px, calc(100vw - 24px));
    margin: 0;
  }

  .tool-hint {
    right: 100px;
    bottom: 120px;
    width: 190px;
    font-size: 0.9rem;
  }

  .tool-hint-arrow {
    right: -28px;
    bottom: -38px;
    width: 58px;
    height: 38px;
  }
}

@media (max-width: 620px) {
  .tool-panel {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }

  .tool-hint {
    right: calc(100% + 22px);
    bottom: 58px;
    width: min(148px, calc(100vw - 224px));
    font-size: 0.82rem;
    text-align: right;
  }

  .tool-hint span {
    white-space: normal;
    transform: none;
  }

  .tool-hint-arrow {
    right: -18px;
    bottom: -34px;
    width: 42px;
    height: 28px;
    transform: rotate(-6deg);
  }

  .tool-panel .tool-card {
    width: min(286px, calc(100vw - 20px));
    padding: 10px;
    border-radius: 22px;
  }

  .tool-bar {
    padding: 7px;
    border-radius: 23px;
  }

  .tool-bar .tool-button {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .tool-bar .tool-icon {
    width: 40px;
    height: 40px;
  }

  .color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 9px;
  }

  .stickers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .sticker-button {
    width: 100%;
    height: auto;
    border-radius: 15px;
  }
}

/* Keep decorative assets and buttons flat, closer to the app reference. */
.hero-noise-item,
.hero-premium-mark img {
  filter: none;
}

.store-button,
.store-button:hover,
.tool-card,
.tool-bar,
.tool-button,
.tool-button:hover,
.tool-button.active,
.color-swatch,
.color-swatch.active,
.sticker-button,
.sticker-button:hover,
.sticker-button:active,
.sticker-button.active {
  box-shadow: none;
}

@media (max-width: 620px) {
  .hero-noise-item {
    opacity: calc(var(--noise-opacity) * 0.72);
  }

  .hero-noise-nuvem {
    --noise-size: 190px;
  }
}
