.ft { display: grid; gap: 16px; container-type: inline-size; }
.ft [hidden] { display: none !important; }
.ft-start { display: grid; gap: 12px; }
.ft-drop {
  position: relative; display: grid; justify-items: center; gap: 8px; padding: 32px 24px; text-align: center; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-2);
  transition: border-color .2s;
}
.ft-drop:hover, .ft-drop.is-over { border-color: var(--accent); }
.ft-frame { position: relative; display: block; width: 180px; height: 216px; margin-bottom: 8px; color: var(--accent); }
.ft-frame::before, .ft-frame::after { content: ""; position: absolute; width: 28px; height: 28px; border: 3px solid var(--accent2); }
.ft-frame::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.ft-frame::after { bottom: -8px; right: -8px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.ft-face { width: 100%; height: 100%; }
.ft-scanline { position: absolute; left: -4px; right: -4px; top: 0; height: 2px; background: var(--accent2);
  box-shadow: 0 0 12px 2px rgba(34, 211, 238, .6); animation: ft-scan 2.8s ease-in-out infinite alternate; }
@keyframes ft-scan { from { top: 4%; } to { top: 96%; } }
@media (prefers-reduced-motion: reduce) { .ft-scanline { animation: none; top: 50%; } }
.ft-drop-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--text); }
.ft-drop-sub { font-size: 14px; color: var(--muted); }
.ft-drop-actions { display: flex; gap: 12px; margin-top: 8px; }
.ft-drop-btn { pointer-events: none; }
.ft-selfie { justify-self: center; }
.ft-private { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.ft-private strong { color: var(--text); }

.ft-work { display: grid; gap: 24px; }
.ft-stage { position: relative; background: var(--deep, #070a12); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: grid; place-items: center; min-height: 280px; }
.ft-stage canvas { display: block; max-width: 100%; height: auto; max-height: 72vh; }
.ft-status { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; border-radius: 12px; background: rgba(7, 10, 18, .88); border: 1px solid var(--line); color: var(--text); font-size: 14px; }

.ft-result { display: grid; gap: 16px; align-content: start; }
.ft-score { display: grid; gap: 4px; padding: 24px; border-radius: 24px; border: 1px solid rgba(124, 92, 255, .5);
  background: radial-gradient(80% 120% at 100% 0%, rgba(124, 92, 255, .28), transparent 70%), var(--card); }
.ft-score-label { font-size: 14px; color: var(--accent2); font-weight: 600; }
.ft-score-num { font-family: var(--font-head); font-size: 64px; font-weight: 700; line-height: 1.1; color: var(--text); }
.ft-score-num small { font-size: 28px; color: var(--muted); }
.ft-score-note { font-size: 16px; color: var(--text); }
.ft-metrics { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ft-metric { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 8px; }
.ft-metric-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.ft-metric-score { color: var(--accent2); font-variant-numeric: tabular-nums; }
.ft-bar { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 6px; overflow: hidden; }
.ft-bar span { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.ft-metric-value { font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.ft-metric-desc { margin: 0; font-size: 14px; color: var(--muted); }
.ft-notes p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.ft-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ft-disclaimer { margin: 0; font-size: 12px; color: var(--muted); }

@container (min-width: 760px) {
  .ft-work { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .ft-stage { position: sticky; top: 88px; }
  .ft-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ft-actions .btn { flex: 1 1 100%; }
  .ft-score-num { font-size: 48px; }
}
.ft-mirrors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ft-mirrors figure { margin: 0; display: grid; gap: 8px; }
.ft-mirrors canvas { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--deep, #070a12); }
.ft-mirrors figcaption { font-size: 12px; color: var(--muted); text-align: center; }
