.sticker-gallery {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: clamp(16px, 3vw, 32px) 0 max(18px, env(safe-area-inset-bottom));
  border: 0;
  color: #ffebd9;
  background: radial-gradient(ellipse at 50% 58%, #794131 0%, #3c241d 58%, #2a1a16 100%);
  overflow: auto;
}
.sticker-gallery[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.sticker-gallery::backdrop { background: #27170dcc; backdrop-filter: blur(7px); }
.sticker-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: clamp(16px, 4vw, 40px); }
.sticker-heading h2 { margin: 0; font: 600 clamp(20px, 3vw, 33px)/1.2 "Songti SC", SimSun, serif; letter-spacing: .08em; }
.sticker-gallery button { color: inherit; }
.sticker-gallery button:focus-visible { outline-color: #ffdabb; outline-offset: 3px; }
.sticker-close { width: 44px; height: 44px; border: 1px solid #ffebd94d; border-radius: 50%; font-size: 28px; line-height: 1; }
.sticker-cylinder {
  position: relative;
  min-height: 0;
  perspective: 2500px;
  touch-action: pan-y;
  cursor: grab;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.sticker-cylinder.is-dragging, .sticker-cylinder.is-dragging .sticker-card { cursor: grabbing; }
.sticker-card {
  position: absolute;
  inset: 50% auto auto 50%;
  width: var(--card-size, 300px);
  aspect-ratio: 1;
  margin: calc(var(--card-size, 300px) / -2) 0 0 calc(var(--card-size, 300px) / -2);
  padding: 0;
  border: 1px solid #fff0da;
  border-radius: 12px;
  background: #fbf1e4;
  overflow: hidden;
  box-shadow: 0 16px 34px #1b0d0870;
  user-select: none;
}
.sticker-card img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sticker-card.is-front { border-color: #f4c49e; box-shadow: 0 14px 45px #1b0d08b0; }
.sticker-gallery[open] .sticker-cylinder { animation: sticker-rise 560ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes sticker-rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
.sticker-controls { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; }
.sticker-controls button { min-width: 44px; min-height: 44px; border: 1px solid #ffebd94d; border-radius: 25px; padding-inline: 12px; }
.sticker-controls button:hover, .sticker-close:hover { background: #ffebd926; }
.sticker-count { width: 62px; text-align: center; font-variant-numeric: tabular-nums; }
.sticker-preview {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(16px, 4vw, 44px);
  border: 0;
  color: #ffebd9;
  background: #291916;
}
.sticker-preview[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
.sticker-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sticker-preview-heading h2 { margin: 0; font: 600 clamp(19px, 3vw, 29px)/1.2 "Songti SC", SimSun, serif; }
.sticker-preview-back { min-height: 44px; padding: 0 16px; border: 1px solid #ffebd94d; border-radius: 24px; color: inherit; }
.sticker-preview-back:hover { background: #ffebd926; }
.sticker-preview-back:focus-visible { outline-color: #ffdabb; }
.sticker-preview img { align-self: center; justify-self: center; display: block; width: min(520px, 100%, calc(100dvh - 120px)); aspect-ratio: 1; object-fit: contain; background: #fbf1e4; border-radius: 18px; }
@media (prefers-reduced-motion: reduce) { .sticker-gallery[open] .sticker-cylinder { animation: none; } }
