.nf {
position: relative;
width: 100%;
height: clamp(340px, 62vh, 600px);
border-radius: 24px;
overflow: hidden;
background: #06101a;
border: 1px solid rgba(150, 235, 255, 0.16);
outline: none;
cursor: crosshair;
isolation: isolate;
}
.nf:focus-visible { box-shadow: 0 0 0 3px rgba(150, 235, 255, 0.55); }
.nf-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.nf [hidden] { display: none !important; }
.nf-hud { position: absolute; inset: 0; pointer-events: none; font-size: 13px; line-height: 1.3; font-weight: 500; font-family: inherit; color: #cfeff7; }
.nf-energy {
position: absolute; top: 16px; left: 16px;
display: flex; align-items: center; gap: 8px;
padding: 7px 12px; border-radius: 999px;
background: rgba(6, 16, 26, 0.72); border: 1px solid rgba(150, 235, 255, 0.18);
backdrop-filter: blur(6px);
}
.nf-energy-label { letter-spacing: .06em; text-transform: uppercase; font-size: 11px; opacity: .8; }
.nf-energy-bar { width: 88px; height: 6px; border-radius: 3px; background: rgba(150, 235, 255, 0.15); overflow: hidden; }
.nf-energy-bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #ffd66e, #ffb03a); transition: width .35s ease; }
.nf-energy-num { font-variant-numeric: tabular-nums; font-weight: 700; color: #ffe08a; }
.nf-charged .nf-energy { border-color: rgba(255, 214, 110, .7); box-shadow: 0 0 18px rgba(255, 200, 80, .35); }
.nf-stats { position: absolute; top: 16px; right: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(6, 16, 26, 0.72); border: 1px solid rgba(150, 235, 255, 0.18); font-variant-numeric: tabular-nums; }
.nf-hint {
position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
max-width: calc(100% - 32px); text-align: center;
padding: 8px 14px; border-radius: 999px;
background: rgba(6, 16, 26, 0.72); border: 1px solid rgba(150, 235, 255, 0.18);
transition: opacity .3s;
}
.nf-hint:empty { opacity: 0; }
.nf-full .nf-hint { color: #d8ff9e; }
.nf-cta {
position: absolute; left: 50%; bottom: 64px; transform: translate(-50%, 12px);
pointer-events: auto; opacity: 0;
padding: 12px 20px; border-radius: 12px;
background: #9fe8f7; color: #06101a; font-weight: 700; text-decoration: none;
box-shadow: 0 10px 40px rgba(150, 235, 255, .35);
transition: opacity .5s ease, transform .5s ease;
}
.nf-cta.nf-cta-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 600px) {
.nf { border-radius: 16px; height: clamp(300px, 56vh, 480px); }
.nf-energy-bar { width: 56px; }
.nf-stats { display: none; }
.nf-hint { font-size: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
.nf-energy-bar i, .nf-cta { transition: none; }
}