/* Preto, violeta e fotografia local. O movimento usa apenas transform/opacity. */
:root {
  --bg: #09080d;
  --surface: #141119;
  --surface-2: #201a2b;
  --sidebar: #0e0b13;
  --text: #f4f0fb;
  --muted: #b2a8bf;
  --dim: #95899f;
  --line: #30273c;
  --accent: #bc9aff;
  --accent-ink: #1b1030;
  --purple: #d6b7ff;
  --radius: 8px;
}
body { background: var(--bg); }
html, .sidebar { scrollbar-color: #604677 #100c17; }
::selection { background: #7750b2; color: white; }
input, select { background: #110e18; border-color: #3c314b; color: var(--text); }
input::placeholder { color: #95899f; opacity: 1; }
select:has(option[value=""]:checked) { color: #95899f; }
select option { background: #17121f; color: var(--text); }
label { color: #d0c6dc; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover:not(:disabled) { background: #d4bdff; }
.btn.outline { border-color: #5b476e; }
.btn.outline:hover:not(:disabled) { background: #261b35; border-color: #bc9aff; }
.btn.ghost { color: #d3c9df; }
.tag { color: #c9bfd6; }
.tag.accent, .notice { background: #bc9aff10; border-color: #bc9aff35; }
.meter { background: #33283f; }
.nav-item { color: #b2a8bf; }
.nav-item:hover { background: #20162b; }
.nav-item.active, .top-number { background: #bc9aff14; }
.nav-group > span, .season-label { color: #a89ab8; }
.save-state { color: #ad9cbd; }
.sidebar-profile, .sidebar-bottom { border-color: var(--line); }
.app-footer > span:first-child { color: #beadd3; }
.brand-color { background: var(--accent); color: var(--accent-ink); }
.profile-monogram, .session-control { background-color: #21182d; border-color: #4e3864; }
.photo-backgrounds .workspace { background: #09080d; }
.photo-backgrounds .workspace::before {
  background-image: linear-gradient(180deg, #10091de8 0%, #0e0916ee 48%, #09080dfb 100%), url('/assets/photos/hero-racing.jpg');
}
.photo-backgrounds .topbar, .photo-backgrounds .app-footer { background: #0e0b15f5; }
.photo-backgrounds .next-event {
  background-image: linear-gradient(90deg, #1b0e2df7 0%, #201033d9 43%, #130b1e77 100%), url('/assets/photos/hero-racing.jpg');
  border-color: #634480;
}
.photo-backgrounds .next-event .event-bottom { background: #160c24df; border-color: #68448666; }
.photo-backgrounds .next-event .event-round { color: #dbc0ff24; }
.photo-backgrounds .next-event-title p, .photo-backgrounds .next-event .stat > span { color: #d6c5e9; }
.photo-backgrounds .weekend-header {
  background-image: linear-gradient(90deg, #190d2bf7 0%, #1b1031d4 48%, #160b268f 100%), url('/assets/photos/hero-racing.jpg');
  border-color: #593b73;
}
.photo-backgrounds .race-status-strip {
  background-image: linear-gradient(90deg, #1a1126f7, #1a1126e8), url('/assets/photos/hero-racing.jpg');
}
.photo-backgrounds :is(.timing-panel, .strategy-panel, .panel, .season-pulse, .paddock-feed, .pilot-overview) { background-color: var(--surface); }

.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #6a508047;
  border-radius: 30px;
  padding: 9px 13px;
  color: #c4b3d6;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}
.motion-toggle:hover { border-color: #9a76c3; background: #bc9aff0c; color: #f4f0fb; }
.motion-toggle svg { flex: none; }
.motion-atmosphere { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.violet-halo {
  position: absolute;
  width: min(1100px, 100vw);
  height: 900px;
  top: -450px;
  left: 15%;
  background: radial-gradient(ellipse, #6932ad40, #49207216 42%, transparent 68%);
  animation: violet-drift 18s ease-in-out infinite alternate;
}
.velocity-line {
  position: absolute;
  width: 70%;
  height: 1px;
  right: -15%;
  top: 35%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #b179ed80, transparent);
  animation: velocity-pass 11s linear infinite;
}
.velocity-line.line-two { top: 73%; animation-delay: -6s; animation-duration: 15s; width: 50%; }
.atmosphere-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(#a16dd516 1px, transparent 1px), linear-gradient(90deg, #a16dd516 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, black, transparent 85%);
}
@keyframes violet-drift { from { transform: translate3d(-5%, 0, 0); opacity: .55; } to { transform: translate3d(15%, 12%, 0); opacity: 1; } }
@keyframes velocity-pass {
  0% { transform: translate3d(40%, 100px, 0) rotate(-23deg); opacity: 0; }
  15%, 65% { opacity: .6; }
  100% { transform: translate3d(-140%, -300px, 0) rotate(-23deg); opacity: 0; }
}
@keyframes racing-drift { from { transform: scale(1.015) translate3d(0, 0, 0); } to { transform: scale(1.075) translate3d(-1%, 1%, 0); } }
@keyframes violet-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.violet-welcome { background: #09080d; }
.violet-welcome .welcome-top { height: 95px; padding-inline: 5.5vw; background: #0a080ee8; border-color: #3b294a66; }
.violet-welcome .welcome-top > img { width: 220px; }
.violet-welcome .welcome-top > div { align-items: center; gap: 18px; }
.violet-welcome .welcome-main { min-height: 690px; isolation: isolate; }
.violet-welcome .welcome-photo {
  inset: -4% -3% -4% 23%;
  z-index: -1;
  opacity: .85;
  background-image: linear-gradient(90deg, #09080d 0%, #0d0817c2 25%, #21102a32 70%), linear-gradient(0deg, #09080d 0%, #10081a16 48%, #10081944), url('/assets/photos/hero-racing.jpg');
  background-position: center, center, 59% 50%;
  animation: racing-drift 22s ease-in-out infinite alternate;
}
.violet-welcome .motion-atmosphere { z-index: -1; }
.violet-welcome .violet-halo { top: -550px; left: 0; }
.welcome-year {
  position: absolute;
  z-index: -1;
  right: 4%;
  top: -4%;
  font: 800 clamp(260px, 34vw, 600px)/1 var(--title);
  letter-spacing: -.1em;
  color: transparent;
  -webkit-text-stroke: 1px #ddbcff22;
  user-select: none;
}
.violet-welcome .welcome-copy { padding: 68px 5.5vw 58px; animation: violet-enter .65s ease-out both; }
.violet-welcome .welcome-copy > .eyebrow { color: #d2b9ed; font-size: 9px; letter-spacing: .16em; }
.violet-welcome .welcome-copy h1 { font-size: clamp(64px, 7.2vw, 108px); max-width: 850px; line-height: 1.01; letter-spacing: -.063em; }
.violet-welcome .welcome-copy h1 em { color: #c19aff; }
.violet-welcome .welcome-sub { color: #c0b3ce; line-height: 1.9; }
.violet-welcome .welcome-ctas .primary { min-width: 210px; box-shadow: 0 6px 35px #9f60e122; }
.violet-welcome .welcome-meta > div { border-color: #ae7bdc36; }
.violet-welcome .welcome-meta > div > span { color: #ab9ab9; }
.violet-welcome .welcome-side { color: #d3b8ed; }
.violet-welcome .photo-caption { color: #b8a6c8; }
.violet-welcome .welcome-bottom { border-color: #3b294a66; color: #b19bc3; }
.violet-welcome .welcome-bottom button { color: #d4b3f6; }
.violet-welcome .welcome-bottom small { color: #a090b0; }

.violet-creation { position: relative; isolation: isolate; max-width: none; padding: 0 5.5vw 70px; }
.violet-creation > .motion-atmosphere { position: fixed; z-index: -1; background: #09080d; }
.violet-creation .violet-halo { left: -10%; top: -380px; }
.violet-creation .simple-header { max-width: 1320px; margin: 0 auto 54px; height: 96px; border-color: #59386b55; }
.violet-creation .simple-header > img { width: 216px; }
.violet-creation .back-link { color: #c5b4d4; gap: 5px; }
.violet-creation .back-link > svg { transform: rotate(180deg); }
.violet-creation .creation-layout { max-width: 1320px; margin: auto; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.35fr); gap: 84px; align-items: start; }
.violet-creation .creation-intro { position: sticky; top: 30px; padding-top: 0; }
.violet-creation .creation-intro > .eyebrow { color: #b69acb; font-size: 9px; letter-spacing: .15em; }
.violet-creation .creation-intro h1 { font-size: clamp(48px, 5vw, 70px); letter-spacing: -.05em; line-height: 1.04; margin: 23px 0 23px; }
.violet-creation .creation-intro > p:not(.eyebrow) { color: #b4a5c1; font-size: 12px; max-width: 380px; }
.violet-creation .driver-pass {
  display: block;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 390px;
  height: 277px;
  padding: 24px;
  margin: 31px 0 19px;
  background: #171020;
  border: 1px solid #654181;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 20px 70px #00000044;
}
.driver-pass .pass-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% center; opacity: .28; z-index: -2; animation: racing-drift 20s ease-in-out infinite alternate; }
.driver-pass::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #130b20 5%, #1b0d2c40 70%); z-index: -1; }
.pass-top { display: flex; align-items: center; justify-content: space-between; }
.pass-top img { width: 30px; height: 32px; }
.pass-top > span { font: 9px var(--mono); letter-spacing: .15em; color: #d1afed; }
.pass-identity { position: absolute; bottom: 58px; left: 24px; right: 24px; }
.pass-identity > span { display: block; font: 8px var(--body); letter-spacing: .15em; color: #d0b4e5; margin-bottom: 10px; }
.pass-identity > strong { position: relative; z-index: 1; font: 600 28px/1.13 var(--title); letter-spacing: -.035em; display: block; max-width: 82%; overflow-wrap: anywhere; }
.pass-identity > b { position: absolute; right: -5px; bottom: -14px; font: italic 750 97px/.9 var(--title); color: #cba2fa24; letter-spacing: -.07em; }
.pass-bottom { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; gap: 10px; justify-content: space-between; border-top: 1px solid #ba81e336; padding-top: 13px; font: 6px var(--mono); letter-spacing: .06em; color: #a995ba; }
.violet-creation .creation-intro > .creation-note { color: #a793b9; font-size: 10px; line-height: 1.8; max-width: 350px; }
.violet-creation .creation-form { padding-top: 0; min-width: 0; animation: violet-enter .55s ease-out both; }
.violet-creation fieldset { margin-bottom: 38px; }
.violet-creation legend { font-size: 21px; margin-bottom: 10px; gap: 12px; }
.violet-creation legend > span { border-color: #70518a66; border-radius: 4px; padding: 6px 7px; color: #c4a0ea; }
.fieldset-intro { color: #a99ab7; font-size: 11px; margin: 0 0 24px; }
.violet-creation .form-grid { gap: 21px 20px; align-items: start; }
.violet-creation .form-grid label { font-size: 11px; color: #d9cde5; }
.violet-creation input:not([type=radio]), .violet-creation select { min-height: 47px; background: #121018e6; border-color: #40314f; border-radius: 6px; font-size: 12px; padding: 13px; }
.violet-creation input:not([type=radio]):hover, .violet-creation select:hover { border-color: #7b5896; }
.violet-creation .optional { font-size: 9px; color: #a090ae; font-weight: 400; margin-left: 5px; }
.field-help { display: block; font-size: 9px; font-weight: 400; color: #a495b3; margin-top: 7px; }
.violet-creation .style-options { gap: 13px; margin-bottom: 12px; }
.violet-creation .style-option > input { top: 16px; right: 16px; margin: 0; width: 16px; height: 16px; min-height: 16px; z-index: 3; }
.violet-creation .style-option > .style-card-body { position: relative; height: 202px; padding: 0; overflow: hidden; border-radius: 8px; border: 1px solid #51405e; background: #17111e; transition: border-color .2s, box-shadow .2s; }
.style-driver { position: absolute; width: 76%; height: 100%; right: 0; top: 0; object-fit: cover; object-position: 50% 5%; opacity: .9; filter: saturate(.8); transition: transform .5s, filter .3s; }
.style-shade { position: absolute; inset: 0; background: linear-gradient(0deg, #0b070ff5 0%, #100917ce 32%, #160d2022 85%), linear-gradient(90deg, #190e27ea, transparent 90%); }
.style-index { position: absolute; top: 16px; left: 16px; font: 10px var(--mono); color: #e4d2f4; letter-spacing: .08em; }
.style-copy { position: absolute; left: 17px; right: 17px; bottom: 17px; }
.violet-creation .style-option .style-reference { font: 500 9px var(--body); color: #d0acef; margin-bottom: 6px; letter-spacing: .025em; }
.violet-creation .style-option b { font: 650 22px/1.1 var(--title); letter-spacing: -.03em; margin-bottom: 8px; color: #fff; }
.violet-creation .style-option .style-description { font: 400 9px/1.65 var(--body); color: #d1c6dc; max-width: 240px; }
.violet-creation .style-option:hover > .style-card-body { border-color: #c3a0e9; }
.violet-creation .style-option:hover .style-driver { transform: scale(1.055); filter: saturate(1); }
.violet-creation .style-option > input:checked + .style-card-body { border-color: #c49cff; background: #20102c; box-shadow: 0 0 0 1px #c49cff, 0 4px 22px #9049c61f; }
.violet-creation .style-option > input:checked + .style-card-body .style-reference { color: #e1c5ff; }
.violet-creation .style-option > input:focus-visible + .style-card-body { outline: 2px solid #e3cbff; outline-offset: 4px; }
.violet-creation .style-option:last-child { grid-column: 1 / -1; }
.violet-creation .style-option:last-child .style-card-body { height: 169px; }
.violet-creation .style-option:last-child .style-driver { width: 52%; object-position: 50% 7%; }
.violet-creation .style-option:last-child .style-description { max-width: 55%; }
.style-caption { display: flex; align-items: center; gap: 5px; font-size: 8px; color: #a691b5; margin: 0 0 26px; }
.style-caption a { display: inline-flex; gap: 4px; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.style-caption a:hover { color: #ddbbff; }
.traits-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.traits-heading > span { font-size: 8px; letter-spacing: .16em; color: #b69ec9; white-space: nowrap; }
.traits-heading > i { display: block; height: 1px; width: 100%; background: #3b2b4c; }
.violet-creation .form-submit { border-color: #493354; padding-top: 23px; }
.violet-creation .form-submit > span { color: #a99ab7; font-size: 10px; line-height: 1.65; }
.violet-creation .form-submit > span > b { color: #d2bddf; font-weight: 500; }
.violet-creation .form-submit .btn { min-height: 48px; min-width: 210px; justify-content: space-between; padding-inline: 20px; border-radius: 5px; }

@media (max-width: 1100px) {
  .violet-creation { padding-inline: 4vw; }
  .violet-creation .creation-layout { gap: 43px; grid-template-columns: minmax(250px, .82fr) minmax(0, 1.35fr); }
  .violet-creation .creation-intro h1 { font-size: 52px; }
  .violet-creation .style-option b { font-size: 20px; }
  .violet-welcome .welcome-top > div { gap: 10px; }
}
@media (max-width: 880px) {
  .violet-creation .creation-layout { grid-template-columns: 1fr; gap: 30px; max-width: 680px; }
  .violet-creation .creation-intro { position: static; }
  .violet-creation .creation-intro h1 { font-size: 49px; margin: 16px 0; }
  .violet-creation .creation-intro h1 br { display: none; }
  .violet-creation .creation-intro h1 em { display: block; }
  .violet-creation .creation-intro > p:not(.eyebrow) { margin-bottom: 0; }
  .violet-creation .driver-pass, .violet-creation .creation-intro > .creation-note { display: none; }
  .violet-creation .simple-header { margin-bottom: 35px; }
  .violet-welcome .welcome-top > div > .btn { font-size: 0; padding: 10px; gap: 0; }
  .violet-welcome .welcome-meta { gap: 24px; }
  .violet-welcome .welcome-meta > div { padding-right: 24px; }
}
@media (max-width: 560px) {
  .motion-toggle { padding: 10px; gap: 0; min-width: 36px; min-height: 36px; }
  .motion-toggle > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .violet-welcome .welcome-top { height: 78px; padding: 0 20px; }
  .violet-welcome .welcome-top > img { width: 156px; }
  .violet-welcome .welcome-top > div { gap: 2px; }
  .violet-welcome .welcome-main { min-height: 670px; }
  .violet-welcome .welcome-copy { padding: 62px 23px 48px; }
  .violet-welcome .welcome-copy > .eyebrow { font-size: 7px; letter-spacing: .11em; max-width: 270px; }
  .violet-welcome .welcome-copy h1 { font-size: clamp(46px, 11vw, 63px); line-height: 1.06; }
  .violet-welcome .welcome-photo { inset: 110px -100% -4% -30%; background-position: center, center, 65% 50%; opacity: .58; }
  .violet-welcome .welcome-year { right: 0; top: 8%; font-size: 310px; }
  .violet-welcome .welcome-sub { font-size: 11px; max-width: 290px; }
  .violet-welcome .welcome-ctas { gap: 10px; flex-direction: column; align-items: flex-start; }
  .violet-welcome .welcome-ctas .btn { min-width: 214px; }
  .violet-welcome .welcome-meta { margin-top: 37px; gap: 24px; }
  .violet-welcome .welcome-meta > div > span { font-size: 8px; }
  .violet-welcome .welcome-side > span { font-size: 6px; }
  .violet-welcome .photo-caption { font-size: 6px; right: 23px; }
  .violet-creation { padding: 0 21px 42px; }
  .violet-creation .simple-header { height: 80px; gap: 12px; }
  .violet-creation .simple-header > img { width: 159px; }
  .violet-creation .back-link { font-size: 10px; gap: 2px; }
  .violet-creation .creation-intro h1 { font-size: 43px; max-width: 340px; }
  .violet-creation .creation-intro > .eyebrow { font-size: 7px; }
  .violet-creation .creation-intro > p:not(.eyebrow) { font-size: 11px; }
  .violet-creation .form-grid { gap: 20px 13px; }
  .violet-creation .form-grid label { font-size: 10px; }
  .violet-creation input:not([type=radio]), .violet-creation select { font-size: 11px; padding: 12px 9px; }
  .violet-creation .optional { font-size: 8px; margin-left: 3px; }
  .field-help { font-size: 8px; }
  .fieldset-intro { font-size: 10px; }
  .violet-creation .style-options { grid-template-columns: 1fr; gap: 13px; }
  .violet-creation .style-option > .style-card-body, .violet-creation .style-option:last-child .style-card-body { height: 191px; }
  .violet-creation .style-option .style-driver, .violet-creation .style-option:last-child .style-driver { width: 69%; }
  .violet-creation .style-option b { font-size: 24px; }
  .violet-creation .style-option .style-description, .violet-creation .style-option:last-child .style-description { max-width: 230px; font-size: 10px; }
  .violet-creation .style-option .style-reference { font-size: 10px; }
  .violet-creation .creation-traits .form-grid { grid-template-columns: 1fr; }
  .violet-creation .form-submit { flex-direction: column; align-items: stretch; }
  .violet-creation .form-submit > span br { display: none; }
  .violet-creation .form-submit .btn { min-height: 51px; width: 100%; }
  .velocity-line { animation-duration: 17s; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.violet-welcome, .violet-creation) *, :is(.violet-welcome, .violet-creation) *::before, :is(.violet-welcome, .violet-creation) *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .motion-atmosphere, .welcome-year, .style-driver, .pass-photo { display: none; }
  .photo-backgrounds :is(.next-event, .weekend-header, .race-status-strip) { background-image: none; }
  .violet-creation .style-option > input:checked + .style-card-body { border: 3px solid Highlight; }
}
