/* Treino de mira 3D */
.aim { display: grid; gap: 12px; }
.aim__view {
  position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; isolation: isolate; cursor: crosshair;
  background: radial-gradient(60% 70% at 50% 40%, #151b20, #06080a 80%);
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -40px rgba(0, 0, 0, .95);
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
@media (max-width: 640px) { .aim__view { aspect-ratio: 4 / 4.4; } }
.aim__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s var(--ease); }
.aim.is-3d .aim__cv { opacity: 1; }
.aim__dom { position: absolute; inset: 0; }
.aim__target { position: absolute; padding: 0; border: 0; border-radius: 50%; cursor: crosshair;
  background: radial-gradient(circle at 35% 30%, #e6fff1 0, #2ff08c 42%, #0b5a31 100%);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .18), 0 0 30px rgba(var(--accent-rgb), .45); }
.aim__hud {
  position: absolute; left: 12px; right: 12px; top: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none;
}
.aim__hud span { display: grid; padding: 6px 12px; border-radius: 12px; background: rgba(6, 8, 10, .66); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.aim__hud small { font-size: .66rem; color: var(--text-dim); font-weight: 600; }
.aim__hud b { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.aim__hud span:first-child b { color: var(--accent); }
@media (max-width: 640px) { .aim__hud span { padding: 4px 9px; } .aim__hud b { font-size: .9rem; } .aim__hud span:nth-child(4) { display: none; } }
.aim__demo { position: absolute; right: 12px; bottom: 12px; z-index: 3; margin: 0; font-size: .72rem; font-weight: 700; color: var(--steel); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 2px 10px; background: rgba(6, 8, 10, .6); display: none; }
.aim.is-demo .aim__demo { display: block; }
.aim__ghost { position: absolute; left: -14px; top: -14px; z-index: 2; width: 28px; height: 28px; pointer-events: none; display: none;
  background: no-repeat center / 28px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14 2v7M14 19v7M2 14h7M19 14h7'/%3E%3Ccircle cx='14' cy='14' r='1.4' fill='white'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 3px rgba(0, 0, 0, .8)); }
.aim.is-demo .aim__ghost { display: block; }
.aim__cross { position: absolute; left: 50%; top: 50%; z-index: 2; width: 28px; height: 28px; margin: -14px 0 0 -14px; pointer-events: none; display: none;
  background: inherit; background: no-repeat center / 28px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14 2v7M14 19v7M2 14h7M19 14h7'/%3E%3C/svg%3E"); }
.aim.is-fps.is-playing .aim__cross { display: block; }
.aim.is-fps.is-playing .aim__view { cursor: none; }
.aim__overlay {
  position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 20px; text-align: center;
  background: radial-gradient(60% 60% at 50% 50%, rgba(5, 6, 7, .55), rgba(5, 6, 7, .82)); cursor: default;
}
.aim:not(.is-done) .aim__overlay { place-content: end center; padding-bottom: 28px; background: linear-gradient(180deg, transparent 40%, rgba(5, 6, 7, .78)); }
.aim:not(.is-done) .aim__title { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.aim__title { margin: 0; font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.4rem); letter-spacing: -0.03em; }
.aim__msg { margin: 0 0 10px; color: var(--text-dim); max-width: 46ch; }
.aim__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.seg button { font: inherit; font-size: .88rem; font-weight: 600; color: var(--text-dim); background: transparent; border: 0; border-radius: 9px; min-height: 36px; padding: 0 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { color: var(--text); background: var(--graphite-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.aim__sens { display: inline-flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: .88rem; font-weight: 600; }
.aim__sens input { accent-color: var(--accent); width: 120px; }
.aim__sens output { min-width: 2.4em; color: var(--text); font-variant-numeric: tabular-nums; }
.aim:not(.is-fps) .aim__sens { opacity: .5; }
.aim__sound { font: inherit; font-size: .86rem; font-weight: 600; color: var(--text-dim); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; min-height: 44px; padding: 0 14px; cursor: pointer; }
.aim__sound[aria-pressed="true"] { color: var(--text); border-color: rgba(var(--accent-rgb), .5); }
