@font-face {
  font-family: "Bodoni Moda LApp";
  src: url("assets/fonts/bodoni-lapp.woff2") format("woff2");
  font-display: block;
}
@font-face {
  font-family: "Abril Fatface";
  src: url("assets/fonts/abril-fatface.woff2") format("woff2");
  font-display: block;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0A0808;
}

.viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.viewport.dragging { cursor: grabbing; }

/* Designfläche 1440 × 960, wird per JS auf das Fenster skaliert */
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 960px;
  transform-origin: 0 0;
}

.layer {
  position: absolute;
  inset: 0;
  width: 1440px;
  height: 960px;
  overflow: visible;
  pointer-events: none;
}

.t-lapp {
  font-family: "Bodoni Moda LApp", serif;
  font-size: 250px;
  letter-spacing: -3px;
}
.t-vient {
  font-family: "Bodoni Moda LApp", serif;
  font-size: 78px;
}

/* Karten */
.cards { position: absolute; inset: 0; }

.card {
  position: absolute;
  left: 450.13px;         /* 720 − 269.87 */
  top: 234.73px;          /* 504.6 − 269.87 */
  width: 539.74px;        /* 532 px Karte + Rand für den Außenring */
  height: 539.74px;
  border-radius: 50%;
  will-change: transform, filter;
}
.card img.base,
.card svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.card .hit {             /* runde Klickfläche */
  position: absolute;
  inset: 3.87px;
  border-radius: 50%;
}
.card-name {
  font-family: "Abril Fatface", serif;
  fill: #1D1510;
  text-transform: uppercase;
}

/* Navigationshilfe */
.nav {
  position: absolute;
  top: 918px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}
.nav span {
  width: 9px;
  height: 9px;
  box-sizing: border-box;
  border: 1px solid #16130F;
}
.nav span.active {
  background: #A9686B;
  border-color: #A9686B;
}

/* Übergang Karte → Rezeptseite */
.expander {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  visibility: hidden;
  transform-origin: 50% 50%;
  z-index: 10;
}
.ex-gold, .ex-dark {
  position: absolute;
  inset: 1.2545%;          /* Rand im Kartenkasten (14 / 1116) */
  border-radius: 50%;
}
.ex-gold { background: linear-gradient(150deg, #E4C47C 0%, #CFA955 48%, #B38C40 100%); }
.ex-dark {
  background: radial-gradient(circle, #2E2021 0%, #160F10 58%, #0A0808 100%);
  opacity: 0;
}
.ex-content { position: absolute; inset: 0; }
.ex-content img, .ex-content svg {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.recipe {
  position: fixed;
  inset: 0;
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #E4C47C;
  opacity: 0;
  transition: opacity .35s ease;
}
.recipe.show { opacity: 1; }
.recipe[hidden] { display: none; }
.recipe-title {
  margin: 0;
  font-family: "Abril Fatface", serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 88px);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
  padding: 0 24px;
}
.recipe-note {
  margin: 0;
  font-family: "Bodoni Moda LApp", serif;
  font-size: 22px;
}
.recipe-back {
  font-family: "Abril Fatface", serif;
  font-size: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #E4C47C;
  background: none;
  border: 2px solid #E4C47C;
  padding: 10px 26px;
  cursor: pointer;
}
