:root {
  --bg: #f0ead6;
  --text: #222;
  --muted: #666;
  --line: rgba(34, 34, 34, 0.3);
  --card: rgba(255, 252, 246, 0.9);
  --hero-progress: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  overflow-x: hidden;
  overflow-x: clip;
}

main {
  min-height: 100vh;
}

.hero-shell {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: clamp(0.75rem, 1.5vw, 1.5rem);
  display: grid;
  place-items: center;
  z-index: 0;
}

.hero-shell-2 {
  padding: 0;
  place-items: stretch;
}

.hero-card {
  position: relative;
  width: min(1100px, 100%);
  height: min(94vh, 960px);
  border-radius: calc(6px + (18px * var(--hero-progress)));
  overflow: hidden;
  border: 1px solid rgba(255, 248, 238, 0.8);
  box-shadow: 0 28px 75px rgba(0, 0, 0, calc(0.1 + (0.2 * var(--hero-progress))));
  transform-origin: center top;
  transform: none;
  will-change: border-radius;
  touch-action: pan-y;
}

.hero-shell-2 .hero-card {
  width: 100%;
  height: 100vh;
  border-radius: 0;
  border: 0;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background: #111;
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0) scale(1.08);
  -webkit-transform: translateZ(0) scale(1.08);
  filter: brightness(0.86);
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  height: 100%;
  display: grid;
  align-content: end;
  justify-items: center;
  text-align: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  color: #f7f7f7;
  gap: 0.4rem;
  z-index: 2;
}

.eyebrow {
  font-family: "Allura", cursive;
  font-size: clamp(2.5rem, 6.6vw, 5rem);
  margin: 0;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.82);
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.8),
    1px -1px 0 rgba(0, 0, 0, 0.8),
    -1px 1px 0 rgba(0, 0, 0, 0.8),
    1px 1px 0 rgba(0, 0, 0, 0.8);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
}

.details-grid h3 {
  font-family: "Audiowide", sans-serif;
}

h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 600;
}

.hero-subtitle {
  font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  max-width: 650px;
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 2rem);
  letter-spacing: 0.05em;
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.78);
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.78),
    1px -1px 0 rgba(0, 0, 0, 0.78),
    -1px 1px 0 rgba(0, 0, 0, 0.78),
    1px 1px 0 rgba(0, 0, 0, 0.78);
}

.scroll-hint {
  margin-top: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(28, 28, 28, 0.22);
  color: #fff;
  border-radius: 999px;
  padding: 0.36rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  animation: scrollHintBob 1500ms ease-in-out infinite;
  transition: opacity 220ms ease, transform 220ms ease;
}

.scroll-hint-chevron {
  display: inline-block;
  font-size: 1rem;
  transform: translateY(-4px);
}

.scroll-hint.is-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  animation: none;
}

@keyframes scrollHintBob {
  0% { transform: translateY(0); }
  50% { transform: translateY(7px); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint {
    animation: none;
  }

  .hero-nav-icon {
    animation: none;
  }

  .slide-in-box {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero-dots {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.hero-dot {
  border: 1px solid rgba(247, 247, 247, 0.9);
  background: rgba(255, 255, 255, 0.3);
  width: 11px;
  height: 11px;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.hero-dot:hover,
.hero-dot.is-active {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.hero-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(3rem, 8vw, 4.8rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 3;
  transition: background-color 180ms ease;
}

.hero-nav:hover {
  background: transparent;
}

.hero-nav-icon {
  width: clamp(1.8rem, 4.6vw, 3rem);
  height: auto;
  opacity: 1;
  animation: heroNavPulse 1600ms ease-in-out infinite;
}

@keyframes heroNavPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

.hero-nav-prev {
  left: 0;
}

.hero-nav-next {
  right: 0;
}

.actions {
  position: relative;
  z-index: 2;
  min-height: auto;
  width: 100%;
  padding: 0;
  margin-top: 0;
  display: flex;
  align-items: flex-end;
  border-radius: 18px 18px 0 0;
  overflow: visible;
  overflow-x: clip;
}

.content-card {
  position: static;
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  background: #fff9ef;
  backdrop-filter: blur(5px);
  padding: 0 clamp(1.2rem, 4vw, 2.4rem) clamp(1.2rem, 4vw, 2.4rem);
  opacity: 0.22;
  transform: none;
  transition: opacity 90ms linear;
  overflow: visible;
  overflow-x: clip;
}

.content-inner {
  width: min(1100px, 100%);
  margin-inline: auto;
  padding-top: 0.85rem;
}

.content-box {
  border: 1px solid rgba(87, 75, 54, 0.22);
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.9);
  padding: 1.2rem 1.2rem 0.65rem;
  position: relative;
  z-index: 1;
  overflow: visible;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.intro-text {
  margin-top: 0.6rem;
  color: #2a2a2a;
  max-width: 680px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.location-item {
  display: grid;
  gap: 0.6rem;
  text-align: center;
}

.location-card {
  border: 1px solid rgba(87, 75, 54, 0.22);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.92);
  padding: 0.75rem 0.85rem 0.85rem;
}

.location-date {
  margin: 0;
  font-family: "Kapakana", "Sour Gummy", cursive;
  font-size: clamp(1rem, 1.9vw, 1.4rem);
  font-weight: 600;
  color: #433826;
}

.location-box {
  margin-top: 0.85rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.button-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.action-btn,
.network-btn {
  border: 1px solid #d8ccb3;
  background: #fffaf0;
  color: #574b36;
  font-weight: 500;
  font-size: clamp(0.66rem, 1.35vw, 0.95rem);
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 0.03em;
  padding: 0.82rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  text-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.network-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  min-width: 0;
}

.network-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  font-family: "Times New Roman", Times, serif;
  font-weight: 600;
}

.iban-owner {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  margin-bottom: 0.15rem;
}

.iban-copy-btn {
  font-family: "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: clamp(0.8rem, 0.95vw, 0.92rem);
  padding: 0.34rem 0.64rem;
}

.network-icon {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.action-btn:hover,
.network-btn:hover {
  transform: translateY(-2px);
  background: #f6eddc;
  color: #4d412d;
  border-color: #ccb994;
}

.usdt-accordion {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
  overflow: visible;
  transition: max-height 320ms ease, opacity 260ms ease, transform 260ms ease;
}

.usdt-accordion.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  margin-top: 0;
  overflow: hidden;
  pointer-events: none;
}

.details-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.details-grid article {
  padding-top: 1rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.usdt-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.8rem;
  padding-inline: 0.85rem;
  white-space: nowrap;
  font-family: "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: clamp(1rem, 1.65vw, 1.3rem);
}

.slide-in-box {
  opacity: var(--slide-opacity, 1);
  transform: translateX(var(--slide-shift, 0px));
  transition: transform 90ms linear, opacity 90ms linear;
  will-change: transform, opacity;
  position: relative;
  z-index: 2;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: center top;
}

.slide-in-box.from-left {
  --slide-dir: -1;
}

.slide-in-box.from-right {
  --slide-dir: 1;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.55rem;
  row-gap: 0.42rem;
  margin-top: 0.25rem;
  margin-bottom: 0.4rem;
  word-break: break-all;
}

.muted {
  color: var(--muted);
}

.qr-section {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.hidden {
  display: none;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 6vh, 2.2rem);
  transform: translateX(-50%);
  background: rgba(36, 36, 36, 0.9);
  color: #fff;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  z-index: 60;
  opacity: 0;
  transition: opacity 260ms ease, transform 260ms ease;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

@media (max-width: 760px) {
  .hero-card {
    height: 92vh;
  }

  .hero-shell.hero-shell-2 {
    height: 100vh;
  }

  .hero-shell.hero-shell-2 .hero-card {
    height: 100vh;
  }

  .hero-slide-img {
    transform: translateZ(0) scale(1.14);
    -webkit-transform: translateZ(0) scale(1.14);
  }

  .hero-subtitle {
    -webkit-text-stroke: 0.28px rgba(0, 0, 0, 0.72);
    text-shadow:
      -1px -1px 0 rgba(0, 0, 0, 0.58),
      1px -1px 0 rgba(0, 0, 0, 0.58),
      -1px 1px 0 rgba(0, 0, 0, 0.58),
      1px 1px 0 rgba(0, 0, 0, 0.58);
  }

  .actions {
    min-height: auto;
    margin-top: 0;
    border-radius: 14px 14px 0 0;
  }

  .content-card {
    border-radius: 14px 14px 0 0;
  }

  .button-grid,
  .details-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .details-grid article {
    min-height: auto;
  }


  .hero-nav {
    width: 2.15rem;
  }

}

@media (min-width: 1100px) {
  .hero-slide-img {
    transform: translateZ(0) scale(1.03);
    -webkit-transform: translateZ(0) scale(1.03);
  }
}

@media (hover: none) and (pointer: coarse) {
  .hero-card {
    transform: none;
    will-change: auto;
  }
}
