html,
body,
*,
*::before,
*::after {
  touch-action: manipulation;
}

[data-warm-mode-toggle] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 6px;
  margin: 14px auto 0;
  padding: 8px 18px;
  border: 1px solid var(--line-strong, var(--tile, rgba(166, 83, 67, 0.28)));
  border-radius: 999px;
  color: var(--ink, var(--copy-ink, #45363D));
  background: var(--card, var(--foam, rgba(255, 255, 255, 0.82)));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font: 600 13.5px/1.2 system-ui, -apple-system, sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(91, 49, 32, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

[data-warm-mode-toggle]:not(.on):not([aria-pressed="true"]):hover {
  transform: translateY(-1.5px);
  color: var(--ink, var(--copy-ink, #45363D));
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(91, 49, 32, 0.12), inset 0 1px 0 #fff;
}

[data-warm-mode-toggle]:active {
  transform: translateY(0) scale(0.96);
}

[data-warm-mode-toggle]:focus-visible {
  outline: 2.5px solid var(--tile, #9D5B53);
  outline-offset: 3px;
}

[data-warm-mode-toggle].on,
[data-warm-mode-toggle][aria-pressed="true"] {
  color: #ffffff !important;
  background: var(--rose, var(--tile, #9D5B53)) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 16px rgba(157, 91, 83, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

[data-warm-mode-toggle].on:hover,
[data-warm-mode-toggle][aria-pressed="true"]:hover,
[data-warm-mode-toggle].on:focus-visible,
[data-warm-mode-toggle][aria-pressed="true"]:focus-visible {
  color: #ffffff !important;
  background: var(--ticket-accent, #8C4A42) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 6px 20px rgba(157, 91, 83, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.guide-companion {
  position: fixed;
  right: max(12px, calc((100vw - 480px) / 2 + 12px));
  bottom: calc(75px + env(safe-area-inset-bottom));
  z-index: 1000;
  width: 64px;
  height: 64px;
  pointer-events: none;
  transition: opacity .3s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.guide-companion * {
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* iOS Safari triggers a long-press callout on SVG shapes independently.
   Setting pointer-events:none on svg descendants prevents the system gesture
   from hitting the SVG content layer — the parent <button> handles all input. */
.guide-companion__avatar svg,
.guide-companion__avatar svg * {
  pointer-events: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.guide-companion__bubble {
  position: absolute;
  display: none;
  width: max-content;
  max-width: min(160px, calc(100vw - 16px));
  padding: 8px 12px;
  border: 1px solid var(--line, rgba(23, 59, 74, .18));
  border-radius: 14px;
  color: var(--ink, #41322d);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 4px 16px rgba(120, 70, 60, .12);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  line-height: 1.5;
  opacity: 0;
  transition: transform .4s cubic-bezier(.18, .89, .32, 1.28), opacity .4s ease;
}

.guide-companion__bubble.is-visible {
  display: block;
  opacity: 1;
}

.guide-companion.bubble-left .guide-companion__bubble,
.guide-companion.bubble-right .guide-companion__bubble {
  top: auto;
  bottom: 8px;
  transform: translateY(8px);
}

.guide-companion.bubble-left .guide-companion__bubble.is-visible,
.guide-companion.bubble-right .guide-companion__bubble.is-visible,
.guide-companion.bubble-top .guide-companion__bubble.is-visible,
.guide-companion.bubble-bottom .guide-companion__bubble.is-visible {
  transform: none;
}

.guide-companion.bubble-left .guide-companion__bubble::after,
.guide-companion.bubble-right .guide-companion__bubble::after,
.guide-companion.bubble-top .guide-companion__bubble::after,
.guide-companion.bubble-bottom .guide-companion__bubble::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.guide-companion.bubble-left .guide-companion__bubble::after {
  right: -6px;
  bottom: 12px;
  border-width: 6px 0 6px 6px;
  border-color: transparent transparent transparent rgba(255, 255, 255, .95);
}

.guide-companion.bubble-right .guide-companion__bubble::after {
  left: -6px;
  bottom: 12px;
  border-width: 6px 6px 6px 0;
  border-color: transparent rgba(255, 255, 255, .95) transparent transparent;
}

.guide-companion.bubble-top .guide-companion__bubble {
  top: auto;
  bottom: 72px;
  transform: translateY(-8px);
}

.guide-companion.bubble-top .guide-companion__bubble::after {
  bottom: -6px;
  left: var(--pointer-left, 50%);
  border-width: 6px 6px 0;
  border-color: rgba(255, 255, 255, .95) transparent transparent;
  transform: translateX(-50%);
}

.guide-companion.bubble-bottom .guide-companion__bubble {
  top: 72px;
  bottom: auto;
  transform: translateY(8px);
}

.guide-companion.bubble-bottom .guide-companion__bubble::after {
  top: -6px;
  left: var(--pointer-left, 50%);
  border-width: 0 6px 6px;
  border-color: transparent transparent rgba(255, 255, 255, .95);
  transform: translateX(-50%);
}

.guide-companion__avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  animation: guide-companion-float 4s ease-in-out infinite;
}

.guide-companion__avatar:active {
  cursor: grabbing;
}

.guide-companion__avatar:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--rose, var(--tile, #c4707f)) 65%, white);
  outline-offset: 3px;
}

.guide-companion__state {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
}

.guide-companion__state.is-active {
  display: block;
}

.guide-companion__state svg {
  display: block;
  width: 100%;
  height: 100%;
}

.guide-companion__badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: none;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e5484d;
  animation: guide-badge-pulse 2s ease-in-out infinite;
}

.guide-companion__badge.is-visible {
  display: block;
}

.guide-companion.has-unread {
  animation: guide-message-bounce 1.6s ease;
}

.guide-companion__avatar.poke-squish {
  animation: guide-poke-squish .28s ease;
}

.guide-companion__avatar.poke-dizzy {
  animation: guide-poke-dizzy 1.3s ease;
}

.guide-companion__state .av-dizzy,
.guide-companion__state .av-happy {
  opacity: 0;
  pointer-events: none;
}

.guide-companion__avatar.poke-dizzy .av-dizzy {
  opacity: 1;
}

.guide-companion__avatar.poke-dizzy .av-spiral path {
  transform-box: fill-box;
  transform-origin: center;
  animation: guide-spiral-spin 1.5s linear;
}

.guide-companion__avatar.is-patting .av-happy {
  opacity: 1;
}

.guide-companion__avatar.is-patting .av-dizzy {
  opacity: 0 !important;
}

.guide-companion__poke-star,
.guide-companion__heart {
  position: fixed;
  z-index: 1002;
  pointer-events: none;
}

.guide-companion__poke-star {
  color: #e8b94a;
  font-size: 14px;
  animation: guide-poke-star .9s ease forwards;
}

.guide-companion__heart {
  font-size: 22px;
  filter: drop-shadow(0 4px 10px rgba(242, 126, 155, 0.6));
  animation: guide-heart-up 1.4s ease-out forwards;
}

.guide-companion .rain-cloud {
  animation: guide-cloud-shake 3s ease-in-out infinite;
}

.guide-companion .rain-drop1 {
  animation: guide-drop-fall 1.5s linear infinite;
}

.guide-companion .rain-drop2 {
  animation: guide-drop-fall 1.5s linear .5s infinite;
}

.guide-companion .shiver {
  animation: guide-shiver .25s linear infinite;
  transform-origin: 32px 58px;
}

.guide-companion .sun-body {
  animation: guide-sun-spin 12s linear infinite;
  transform-origin: 14px 18px;
}

.guide-companion .fan-wave {
  animation: guide-fan-wave 1s ease-in-out infinite;
  transform-origin: 40px 50px;
}

.guide-companion .sleeping-cat {
  animation: guide-sleep-breathe 3.5s ease-in-out infinite;
  transform-origin: 32px 58px;
}

.guide-companion .star-blink {
  animation: guide-star-blink 2s ease-in-out infinite;
  transform-origin: 12px 12px;
}

.guide-companion .star-blink-delay {
  animation: guide-star-blink 2s ease-in-out 1s infinite;
  transform-origin: 50px 12px;
}

.guide-companion .zzz {
  animation: guide-zzz-float 3s ease-in-out infinite;
}

.guide-companion .zzz-delay {
  animation: guide-zzz-float 3s ease-in-out 1s infinite;
}

@keyframes guide-companion-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes guide-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

@keyframes guide-message-bounce {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-9px); }
  30% { transform: translateY(0); }
  45% { transform: translateY(-6px); }
  60% { transform: translateY(0); }
  75% { transform: translateY(-3px); }
  90% { transform: translateY(0); }
}

@keyframes guide-poke-squish {
  0% { transform: scale(1); }
  40% { transform: scale(1.14, .82); }
  70% { transform: scale(.94, 1.08); }
  100% { transform: scale(1); }
}

@keyframes guide-poke-dizzy {
  0% { transform: rotate(0) scale(1); }
  15% { transform: rotate(14deg) scale(1.08, .9); }
  35% { transform: rotate(-12deg); }
  55% { transform: rotate(9deg); }
  72% { transform: rotate(-6deg); }
  88% { transform: rotate(3deg); }
  100% { transform: rotate(0) scale(1); }
}

@keyframes guide-poke-star {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--effect-x), var(--effect-y)) scale(1.15) rotate(50deg); }
}

@keyframes guide-heart-up {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  25% { opacity: 1; transform: translate(calc(var(--effect-x, 0px) * 0.4), calc(var(--effect-y, -60px) * 0.4)) scale(1.1); }
  100% { opacity: 0; transform: translate(var(--effect-x, 0px), var(--effect-y, -110px)) scale(1.4); }
}

@keyframes guide-spiral-spin {
  to { transform: rotate(720deg); }
}

@keyframes guide-cloud-shake {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(1px, -2px); }
}

@keyframes guide-drop-fall {
  0% { opacity: 0; transform: translateY(-5px); }
  50% { opacity: .8; }
  100% { opacity: 0; transform: translateY(15px); }
}

@keyframes guide-shiver {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-.8px, .4px); }
  75% { transform: translate(.8px, -.4px); }
}

@keyframes guide-sun-spin {
  to { transform: rotate(360deg); }
}

@keyframes guide-fan-wave {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-22deg); }
}

@keyframes guide-sleep-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes guide-star-blink {
  0%, 100% { opacity: .2; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes guide-zzz-float {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  50% { opacity: .8; }
  100% { opacity: 0; transform: translate(-10px, -18px) scale(1.1); }
}

@media (max-width: 480px) {
  .guide-companion {
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-companion,
  .guide-companion *,
  .guide-companion__poke-star,
  .guide-companion__heart {
    animation: none !important;
    transition: none !important;
  }
}

/* Stamp Passbook & Check-in System */
.stamp-passport-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong, rgba(201, 81, 56, 0.3));
  border-radius: 999px;
  background: var(--card, rgba(255, 255, 255, 0.92));
  color: var(--ink, #173b4a);
  font: 600 13px/1.2 system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(91, 49, 32, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
}
.stamp-passport-trigger:hover {
  transform: translateY(-1.5px);
  border-color: #c95138;
  box-shadow: 0 6px 18px rgba(201, 81, 56, 0.16);
}

.stamp-checkin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-left: 8px;
  padding: 6px 14px;
  border: 1px solid #c95138;
  border-radius: 999px;
  background: rgba(201, 81, 56, 0.08);
  color: #c95138;
  font: 700 13px/1.2 system-ui, sans-serif;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.stamp-checkin-btn:hover {
  background: #c95138;
  color: #ffffff;
  transform: scale(1.03);
}
.stamp-checkin-btn.is-stamped {
  border-color: #2e7d32;
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}

.stamp-passport-modal {
  border: none;
  border-radius: 24px;
  padding: 0;
  background: transparent;
  width: min(92vw, 680px);
  margin: auto;
  box-shadow: 0 24px 54px rgba(23, 59, 74, 0.32);
}
.stamp-passport-modal::backdrop {
  background: rgba(23, 59, 74, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stamp-passport-card {
  background: linear-gradient(145deg, #fdfbf7, #f4efe6);
  border: 1px solid rgba(23, 59, 74, 0.16);
  border-radius: 24px;
  padding: 24px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.stamp-passport-card__header {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.stamp-passport-card__badge {
  background: #c95138;
  color: #fff;
  font: 700 11px/1 system-ui, sans-serif;
  padding: 4px 10px;
  border-radius: 999px;
}
.stamp-passport-card__title {
  margin: 6px 0 2px;
  font-size: 1.3rem;
  color: #173b4a;
  font-weight: 800;
}
.stamp-passport-card__subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: #667c85;
}

.stamp-passport-card__progress {
  background: rgba(23, 59, 74, 0.06);
  border-radius: 999px;
  padding: 4px 12px;
  font: 700 12px/1.4 system-ui, sans-serif;
  color: #c95138;
  position: relative;
  overflow: hidden;
}
.stamp-passport-card__progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(201, 81, 56, 0.15);
  transition: width 0.3s ease;
}

.stamp-passport-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}

.stamp-tile {
  background: #ffffff;
  border: 1px solid rgba(23, 59, 74, 0.1);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.stamp-tile.is-stamped {
  border-color: rgba(201, 81, 56, 0.35);
  box-shadow: 0 4px 14px rgba(201, 81, 56, 0.08);
}
.stamp-tile.is-locked {
  opacity: 0.65;
  filter: grayscale(0.6);
}

.stamp-tile__seal {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px dashed rgba(201, 81, 56, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(201, 81, 56, 0.04);
}
.stamp-tile.is-stamped .stamp-tile__seal {
  border: 2px solid #c95138;
  background: rgba(201, 81, 56, 0.1);
  animation: seal-pop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.stamp-tile__icon { font-size: 1.3rem; line-height: 1; }
.stamp-tile__mark { font-size: 9px; font-weight: 800; color: #c95138; margin-top: 2px; }

.stamp-tile__info { flex: 1; min-width: 0; }
.stamp-tile__city { font-size: 10px; font-weight: 700; color: #667c85; text-transform: uppercase; margin: 0; }
.stamp-tile__name { font-size: 13px; font-weight: 700; color: #173b4a; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stamp-tile__desc { font-size: 11px; color: #576d75; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stamp-tile__date { font-size: 10px; color: #c95138; font-weight: 700; margin: 4px 0 0; }

@keyframes seal-pop {
  0% { transform: scale(0.7) rotate(-15deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Floating Drifting Stamp Passport Widget */
.guide-stamp-widget {
  position: fixed;
  bottom: 24px;
  left: 18px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  animation: guide-stamp-drift 7.5s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28), filter 0.25s ease;
}
.guide-stamp-widget:hover,
.guide-stamp-widget:focus-visible {
  animation-play-state: paused;
  transform: scale(1.1) translateY(-4px);
}

.guide-stamp-widget__book {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #fdf4eb);
  border: 2px solid rgba(201, 81, 56, 0.35);
  box-shadow: 0 8px 20px rgba(201, 81, 56, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-stamp-widget__icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 4px rgba(201, 81, 56, 0.2));
}
.guide-stamp-widget__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #c95138;
  color: #ffffff;
  font: 800 10px/1.2 system-ui, sans-serif;
  padding: 3px 6px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(201, 81, 56, 0.4);
  border: 1.5px solid #ffffff;
}

.guide-stamp-widget__bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.96);
  color: #173b4a;
  font: 700 12px/1.4 system-ui, sans-serif;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(201, 81, 56, 0.3);
  box-shadow: 0 8px 24px rgba(23, 59, 74, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.guide-stamp-widget__bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 20px;
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.96) transparent transparent transparent;
}
.guide-stamp-widget__bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes guide-stamp-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(6px, -12px, 0) rotate(3deg);
  }
  50% {
    transform: translate3d(-5px, -18px, 0) rotate(-2.5deg);
  }
  75% {
    transform: translate3d(-8px, -6px, 0) rotate(2deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@media (max-width: 480px) {
  .guide-stamp-widget {
    bottom: 20px;
    left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-stamp-widget {
    animation: none !important;
  }
}

/* Full-Screen Stamping Celebration Animation */
.stamp-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.stamp-fullscreen-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 240, 210, 0.95), rgba(201, 81, 56, 0.4));
  opacity: 0;
  animation: stamp-flash-pulse 0.4s ease-out forwards;
}

.stamp-fullscreen-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 34, 43, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  animation: stamp-fade-in 0.3s ease-out forwards;
}

.stamp-fullscreen-shockwave {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 215, 0, 0.8);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
  opacity: 0;
  transform: scale(0);
  animation: stamp-shockwave-expand 0.65s cubic-bezier(0.1, 0.8, 0.3, 1) 0.15s forwards;
}

.stamp-fullscreen-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.stamp-fullscreen-seal-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stamp-fullscreen-seal {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 5px solid #c95138;
  background: radial-gradient(circle, #ffffff 0%, #fdf4eb 65%, #fae5d3 100%);
  box-shadow:
    0 20px 60px rgba(201, 81, 56, 0.45),
    0 0 0 10px rgba(255, 255, 255, 0.25),
    inset 0 0 0 4px rgba(201, 81, 56, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0) rotate(140deg);
  opacity: 0;
  animation: stamp-slam-dramatic 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.28) 0.12s forwards;
}

.stamp-fullscreen-seal__ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(201, 81, 56, 0.5);
  animation: spin-seal-ring 20s linear infinite;
}

.stamp-fullscreen-seal__icon {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(201, 81, 56, 0.3));
}

.stamp-fullscreen-seal__title {
  font: 900 18px/1.1 system-ui, sans-serif;
  color: #c95138;
  letter-spacing: 3px;
  margin-top: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stamp-fullscreen-seal__sub {
  font: 800 11px/1 system-ui, sans-serif;
  color: #173b4a;
  margin-top: 4px;
  background: rgba(201, 81, 56, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

.stamp-fullscreen-seal__shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, transparent 50%);
  pointer-events: none;
}

.stamp-fullscreen-card {
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(201, 81, 56, 0.3);
  border-radius: 24px;
  padding: 18px 32px;
  box-shadow: 0 16px 40px rgba(17, 34, 43, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  animation: stamp-card-bounce 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28) 0.35s forwards;
}

.stamp-fullscreen-card__badge {
  display: inline-block;
  font: 800 12px/1 system-ui, sans-serif;
  color: #c95138;
  background: rgba(201, 81, 56, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 81, 56, 0.2);
}

.stamp-fullscreen-card__title {
  margin: 8px 0 4px;
  font: 900 1.35rem/1.2 system-ui, sans-serif;
  color: #173b4a;
}

.stamp-fullscreen-card__progress {
  margin: 0;
  font: 600 12px/1 system-ui, sans-serif;
  color: #576d75;
}

/* Particles */
.stamp-fullscreen-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  opacity: 0;
  animation: particle-burst 0.75s ease-out var(--delay, 0s) forwards;
}

.particle--star {
  background: #f4d03f;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  box-shadow: 0 0 10px #f4d03f;
}

.particle--petal {
  background: #ff85a2;
  border-radius: 10px 0 10px 0;
}

.particle--spark {
  background: #c95138;
  border-radius: 50%;
  box-shadow: 0 0 8px #c95138;
}

.particle--ribbon {
  width: 14px;
  height: 6px;
  background: #2ecc71;
  border-radius: 2px;
}

@keyframes stamp-flash-pulse {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes stamp-fade-in {
  to { opacity: 1; }
}

@keyframes stamp-shockwave-expand {
  0% { transform: scale(0); opacity: 0.9; }
  100% { transform: scale(25); opacity: 0; }
}

@keyframes stamp-slam-dramatic {
  0% { transform: scale(3.5) rotate(160deg); opacity: 0; }
  65% { transform: scale(0.88) rotate(-8deg); opacity: 1; }
  85% { transform: scale(1.08) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes spin-seal-ring {
  to { transform: rotate(360deg); }
}

@keyframes stamp-card-bounce {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes particle-burst {
  0% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.2) rotate(var(--rot)); opacity: 0; }
}

.stamp-fullscreen-overlay.is-leaving {
  opacity: 0;
  transition: opacity 0.5s ease;
}
