:root {
  --fondo: #0b0a09;
  --carta: #151311;
  --testo: #f3eee6;
  --testo-2: #a49b8f;
  --testo-3: #6b645b;
  --bordo: rgba(243, 238, 230, 0.1);
  --riga: rgba(243, 238, 230, 0.08);
  --filo: rgba(243, 238, 230, 0.62);
  --accento: #ff7a1a;
  --focus: #ff7a1a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--fondo);
  color: var(--testo);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

/* the card, on its own */
.card {
  position: relative;
  width: min(340px, calc(100vw - 32px));
  padding: clamp(16px, 3.4vh, 24px) clamp(18px, 4vw, 24px) clamp(14px, 3vh, 20px);
  background: var(--carta);
  border: 1px solid var(--bordo);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  outline: none;
  cursor: default;
}
.card:focus-visible { box-shadow: 0 0 0 2px var(--focus), 0 18px 40px -22px rgba(0, 0, 0, 0.9); }

/* a faint warm moonlight in the corner the web grows from */
.card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 196, 140, 0.07), transparent 55%);
  opacity: 0.5;
  pointer-events: none;
}

.card__kicker {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--testo-2);
}

.card__title {
  position: relative;
  margin-top: clamp(8px, 2vh, 14px);
  font-size: clamp(30px, min(11vw, 8.6vh), 42px);
  line-height: 0.92;
  font-weight: 700;
  font-stretch: 78%;
  letter-spacing: -0.02em;
}

.card__meta {
  position: relative;
  display: flex;
  gap: 18px;
  margin-top: clamp(12px, 3vh, 20px);
}
.card__meta div { display: grid; gap: 3px; }
.card__meta dt { font-size: 10px; color: var(--testo-3); letter-spacing: 0.03em; }
.card__meta dd { font-size: 13px; font-weight: 560; }
.card__date { color: var(--accento); }

.card__film {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: clamp(10px, 2.4vh, 16px);
  padding: clamp(8px, 1.8vh, 11px) 0;
  border-top: 1px solid var(--riga);
  border-bottom: 1px solid var(--riga);
  font-size: 13px;
}
.card__runtime { font-size: 11px; color: var(--testo-2); white-space: nowrap; }

.card__foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(12px, 2.8vh, 18px);
}
.card__price { font-size: 15px; font-weight: 600; }
.card__from { font-size: 11px; font-weight: 400; color: var(--testo-2); margin-right: 2px; }

/* the button: the pill fill swells from its middle on hover */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #151311;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  isolation: isolate;
}
.cta__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--testo);
  z-index: -1;
}
.cta__label { font-stretch: 100%; transition: font-stretch 0.35s cubic-bezier(.34, 1.56, .64, 1); }
.cta__arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cta:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.cta.is-hover .cta__label { font-stretch: 112%; }
@media (hover: hover) {
  .cta:hover .cta__label { font-stretch: 112%; }
}

/* the web layer covers the whole card, above the content, never catching the pointer */
.web {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.web path { fill: none; stroke: var(--filo); stroke-width: 0.7; stroke-linecap: round; }
.web .web__ring { stroke-width: 0.55; stroke: rgba(243, 238, 230, 0.5); }
.web .dew { fill: #fff; opacity: 0; }
.silk { stroke: rgba(243, 238, 230, 0.7); stroke-width: 0.6; }
.spider__body, .spider__head { fill: #f3eee6; }
.spider__mark { fill: var(--accento); }
.spider path { stroke: #f3eee6; stroke-width: 0.9; fill: none; }

.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}
.ghost path { fill: #f3eee6; stroke: #0b0a09; stroke-width: 1.4; stroke-linejoin: round; }

@media (max-height: 460px) {
  .stage { padding: 8px; }
  .card__meta { gap: 14px; }
}
