:root {
  --bg: #f4f1ec;          /* bianco sporco */
  --bg-2: #e9e4dc;        /* greige */
  --ink: #1c1a17;         /* quasi nero caldo */
  --ink-soft: #6f6a62;
  --gold: #b5924c;        /* accento DDA Capital, SOLO rivelazioni */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 600ms;           /* moto lento e materico */
  font-size: 16px;
}
* { margin: 0; box-sizing: border-box; }
body {
  background: #17161a; color: var(--ink);
  font-family: "Helvetica Neue", Inter, system-ui, sans-serif;
  min-height: 100dvh; display: grid; place-items: center;
}
/* frame smartphone su desktop, fullscreen su mobile */
#phone { width: 100vw; height: 100dvh; background: var(--bg); overflow: hidden; position: relative; }
@media (min-width: 700px) {
  #phone { width: 390px; height: 844px; border-radius: 44px; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
}
#app { position: absolute; inset: 0; display: flex; flex-direction: column; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  animation: fadein var(--dur) var(--ease); background: var(--bg); overflow-y: auto; }
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
h1, h2, .kicker { text-transform: uppercase; letter-spacing: .18em; font-weight: 500; }
h1 { font-size: 1.35rem; line-height: 1.5; }
h2 { font-size: 1.05rem; }
.kicker { font-size: .68rem; color: var(--ink-soft); }
.gold { color: var(--gold); }
button.cta {
  appearance: none; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  padding: 16px 28px; text-transform: uppercase; letter-spacing: .18em; font-size: .75rem;
  cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
button.cta:active, button.cta:hover { background: var(--ink); color: var(--bg); }
button.cta.primary { border-color: var(--ink); }
img.bleed { width: 100%; height: 100%; object-fit: cover; display: block; }
.progress { height: 2px; background: var(--bg-2); margin-bottom: 32px; }
.progress > i { display: block; height: 100%; background: var(--ink); transition: width var(--dur) var(--ease); }
.splash { justify-content: space-between; }
.splash-mid { display: grid; place-items: center; flex: 1; }
.options { display: flex; flex-direction: column; gap: 12px; }
button.opt {
  appearance: none; border: 1px solid var(--bg-2); background: #fff; color: var(--ink);
  padding: 18px 20px; text-align: left; font-size: .95rem; cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
button.opt.sel, button.opt:active { border-color: var(--ink); }
.card-stage { flex: 1; position: relative; margin: 8px 0 16px; }
.card { position: absolute; inset: 0; overflow: hidden; touch-action: none;
  cursor: grab; will-change: transform; background: var(--bg-2); }
.verdict-badge { position: absolute; top: 24px; left: 24px; font-size: .8rem;
  letter-spacing: .2em; padding: 8px 14px; background: rgba(255,255,255,.92); color: var(--ink); }
.verdict-badge:empty { display: none; }
.verdict-badge.love { color: var(--gold); }
.swipe-actions { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 0 0 16px; }
.sw-btn {
  appearance: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink-soft);
  background: #fff; color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.sw-btn:active, .sw-btn:hover { border-color: var(--ink); }
.sw-btn.love { border-color: var(--gold); color: var(--gold); }
label.drop { border: 1px dashed var(--ink-soft); padding: 28px 20px; margin-top: 20px;
  display: block; cursor: pointer; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
label.drop img { max-height: 120px; margin-top: 12px; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; }
.thumbs img { width: 56px; height: 56px; object-fit: cover; }
.palette { display: flex; gap: 0; margin: 32px 0; height: 56px; }
.palette i { flex: 1; }
.axes { display: flex; flex-direction: column; gap: 18px; }
.axis { display: grid; grid-template-columns: 84px 1fr 84px; align-items: center;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.axis .track { position: relative; height: 2px; background: var(--bg-2); margin: 0 10px; }
.axis .track i { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); transform: translateX(-50%); }
.axis span:last-child { text-align: right; }
.processing { justify-content: center; }
.proc-mid { display: grid; place-items: center; gap: 32px; }
.plan-glow { max-width: 70%; max-height: 40vh; animation: glow 2.4s var(--ease) infinite alternate; }
.plan-glow.ph { width: 60%; height: 30vh; background: var(--bg-2); }
@keyframes glow { from { filter: brightness(.96); } to { filter: brightness(1.12) drop-shadow(0 0 24px rgba(181,146,76,.5)); } }
.proc-label { min-height: 1.2em; transition: opacity var(--dur); }
.rooms { display: flex; flex-direction: column; gap: 28px; margin: 20px 0; }
.ba { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.ba-top { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.ba-top img { width: calc(min(100vw, 390px) - 48px); height: 100%; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; }
.ba-tag { position: absolute; bottom: 12px; left: 12px; font-size: .58rem; letter-spacing: .2em;
  background: rgba(255,255,255,.85); padding: 4px 8px; }
.ba-tag.right { left: auto; right: 12px; }
details { border-top: 1px solid var(--bg-2); }
summary { display: flex; justify-content: space-between; padding: 14px 0; cursor: pointer;
  list-style: none; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.voce { display: flex; justify-content: space-between; padding: 6px 0; font-size: .82rem;
  color: var(--ink-soft); }
.total { display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--ink); padding: 18px 0; margin-bottom: 16px; }
.total strong { font-size: 1.3rem; letter-spacing: .06em; }
.logo-hot { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
dialog.live-panel { border: none; background: var(--bg); padding: 24px; width: 88%; }
dialog.live-panel::backdrop { background: rgba(23,22,26,.7); }
dialog.live-panel textarea { width: 100%; border: 1px solid var(--bg-2); padding: 12px;
  font-size: .8rem; margin: 12px 0; font-family: inherit; }
.live-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.live-actions .cta { padding: 10px 14px; font-size: .62rem; }
