:root {
    --asphalt: #15191f;
    --steel: #252d36;
    --panel: #323b45;
    --line: rgba(248, 250, 252, 0.12);
    --text: #f8fafc;
    --muted: #a9b4c2;
    --orange: #f97316;
    --green: #16a34a;
    --blue: #2563eb;
    --amber: #f59e0b;
    --red: #dc2626;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--asphalt);
    color: var(--text);
    font-family: Inter, Roboto, Arial, sans-serif;
}

button,
input,
select {
    font: inherit;
}

[hidden] {
    display: none !important;
}

button {
    cursor: pointer;
    touch-action: manipulation;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.fe-app {
    min-height: 100svh;
    background:
        radial-gradient(circle at 78% 10%, rgba(249, 115, 22, 0.28), transparent 24%),
        radial-gradient(circle at 8% 24%, rgba(37, 99, 235, 0.22), transparent 22%),
        linear-gradient(180deg, rgba(21, 25, 31, 0.08), rgba(21, 25, 31, 0.96)),
        url("images/freight-highway.jpg") center/cover no-repeat,
        linear-gradient(180deg, #15191f 0%, #1e252d 100%);
}

.fe-topbar {
    align-items: center;
    background: rgba(21, 25, 31, 0.92);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 5;
}

.fe-topbar h1,
.fe-panel-head h2,
.fe-card h2,
.fe-title-content h1 {
    margin: 0;
}

.fe-topbar h1 {
    font-size: 18px;
}

.fe-kicker {
    color: var(--orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.fe-cash-pill {
    background: rgba(22, 163, 74, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 8px;
    min-width: 104px;
    padding: 8px 10px;
    text-align: right;
}

.fe-cash-pill span,
.fe-card-label,
.fe-muted,
.fe-legal-small,
.fe-meta {
    color: var(--muted);
}

.fe-cash-pill span,
.fe-card-label {
    display: block;
    font-size: 12px;
}

.fe-cash-pill strong {
    color: #22c55e;
}

.fe-save-status {
    border: 1px solid rgba(248, 250, 252, 0.16);
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 950;
    padding: 8px 9px;
    text-transform: uppercase;
    white-space: nowrap;
}

.fe-save-local {
    background: rgba(96, 165, 250, 0.18);
    border-color: rgba(96, 165, 250, 0.32);
}

.fe-save-saving {
    animation: fePulse 900ms ease-in-out infinite;
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.38);
}

.fe-save-saved {
    background: rgba(22, 163, 74, 0.2);
    border-color: rgba(34, 197, 94, 0.34);
}

.fe-save-error {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(248, 113, 113, 0.38);
}

.fe-title-view {
    display: grid;
    min-height: 100svh;
    overflow: visible;
    place-items: end stretch;
    position: relative;
}

.fe-intro-splash {
    background:
        linear-gradient(180deg, rgba(6, 10, 17, 0.2), rgba(6, 10, 17, 0.94)),
        radial-gradient(circle at 72% 18%, rgba(249, 115, 22, 0.42), transparent 26%),
        radial-gradient(circle at 16% 18%, rgba(37, 99, 235, 0.42), transparent 30%),
        linear-gradient(155deg, #07111f 0%, #15191f 48%, #0b1220 100%);
    color: #fff;
    inset: 0;
    overflow: hidden;
    position: fixed;
    z-index: 40;
}

.fe-intro-splash::before {
    animation: feIntroRoad 760ms linear infinite;
    background:
        linear-gradient(90deg, transparent, rgba(248, 250, 252, 0.24), transparent),
        repeating-linear-gradient(90deg, transparent 0 40px, rgba(248, 250, 252, 0.86) 40px 76px, transparent 76px 130px);
    bottom: 22%;
    content: "";
    height: 5px;
    left: -35%;
    opacity: 0.5;
    position: absolute;
    right: -35%;
    transform: perspective(420px) rotateX(58deg) skewY(-6deg);
}

.fe-intro-splash::after {
    animation: feIntroSweep 5200ms ease-in-out both;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-100%) skewX(-12deg);
}

.fe-intro-sky {
    inset: 0;
    opacity: 0.82;
    position: absolute;
}

.fe-intro-sky i {
    animation: feIntroGlow 2600ms ease-in-out infinite;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(248, 250, 252, 0.38);
    height: 4px;
    position: absolute;
    width: 4px;
}

.fe-intro-sky i:nth-child(1) {
    left: 16%;
    top: 18%;
}

.fe-intro-sky i:nth-child(2) {
    animation-delay: 320ms;
    left: 76%;
    top: 12%;
}

.fe-intro-sky i:nth-child(3) {
    animation-delay: 680ms;
    left: 62%;
    top: 34%;
}

.fe-intro-sky i:nth-child(4) {
    animation-delay: 980ms;
    left: 28%;
    top: 38%;
}

.fe-intro-loads {
    bottom: 13%;
    display: flex;
    gap: 10px;
    left: 0;
    position: absolute;
    white-space: nowrap;
}

.fe-intro-loads span {
    animation: feIntroLoadChip 4200ms linear infinite;
    background: rgba(248, 250, 252, 0.1);
    border: 1px solid rgba(248, 250, 252, 0.16);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 950;
    padding: 9px 11px;
    text-transform: uppercase;
}

.fe-intro-loads span:nth-child(2) {
    animation-delay: -900ms;
    color: #fed7aa;
}

.fe-intro-loads span:nth-child(3) {
    animation-delay: -1800ms;
    color: #bbf7d0;
}

.fe-intro-loads span:nth-child(4) {
    animation-delay: -2700ms;
    color: #bfdbfe;
}

.fe-intro-rig {
    animation: feIntroTruck 6200ms cubic-bezier(0.11, 0.82, 0.16, 1) both;
    bottom: 24%;
    filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.45));
    height: 76px;
    left: -260px;
    position: absolute;
    width: 248px;
    z-index: 2;
}

.fe-intro-rig::before {
    background: linear-gradient(90deg, #e5e7eb 0 63%, #f97316 63% 82%, #fb923c 82%);
    border-radius: 8px 14px 5px 5px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
    content: "";
    height: 52px;
    left: 0;
    position: absolute;
    top: 8px;
    width: 214px;
}

.fe-intro-rig::after {
    background: #0f172a;
    border-radius: 999px;
    box-shadow: 64px 0 0 #0f172a, 146px 0 0 #0f172a, 196px 0 0 #0f172a;
    content: "";
    height: 22px;
    left: 18px;
    position: absolute;
    top: 51px;
    width: 22px;
}

.fe-intro-rig b {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(147, 197, 253, 0.62));
    border-radius: 3px 9px 3px 3px;
    height: 18px;
    position: absolute;
    right: 39px;
    top: 16px;
    width: 36px;
}

.fe-intro-hud {
    animation: feIntroHud 7800ms ease both;
    display: grid;
    gap: 7px;
    left: 16px;
    max-width: 154px;
    opacity: 0;
    position: absolute;
    top: calc(16px + env(safe-area-inset-top));
    width: 38vw;
}

.fe-intro-hud span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-intro-hud strong {
    background: rgba(248, 250, 252, 0.11);
    border: 1px solid rgba(248, 250, 252, 0.13);
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
    position: relative;
}

.fe-intro-hud strong::after {
    animation: feIntroMeter 2200ms ease-in-out infinite;
    background: linear-gradient(90deg, #2563eb, #16a34a, #f97316);
    border-radius: inherit;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 78%;
}

.fe-intro-stage {
    align-content: center;
    display: grid;
    gap: 14px;
    inset: 0;
    justify-items: center;
    opacity: 0;
    padding: 28px 20px 112px;
    position: absolute;
    text-align: center;
    z-index: 3;
}

.fe-intro-ad-card {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.14), rgba(248, 250, 252, 0.06)),
        rgba(15, 23, 42, 0.64);
    border: 1px solid rgba(248, 250, 252, 0.18);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 16px;
    grid-template-columns: auto minmax(0, 1fr);
    max-width: min(880px, calc(100vw - 28px));
    min-width: 0;
    padding: clamp(13px, 3.8vw, 22px);
    text-align: left;
    width: min(880px, calc(100vw - 28px));
}

.fe-intro-ad-card-tax {
    border-color: rgba(96, 165, 250, 0.28);
}

.fe-intro-brand-icon {
    animation: feIntroIconFloat 1800ms ease-in-out infinite;
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42), 0 0 38px rgba(249, 115, 22, 0.24);
    display: grid;
    height: clamp(76px, 18vw, 118px);
    overflow: hidden;
    padding: 8px;
    place-items: center;
    width: clamp(76px, 18vw, 118px);
}

.fe-intro-brand-icon img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.fe-intro-brand-icon-tax {
    background: #07111f;
    border-color: rgba(96, 165, 250, 0.42);
    padding: 10px;
}

.fe-intro-copy {
    min-width: 0;
    overflow: hidden;
}

.fe-intro-stage span {
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(251, 146, 60, 0.36);
    border-radius: 999px;
    color: #fed7aa;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
    padding: 8px 11px;
    text-transform: uppercase;
    white-space: normal;
}

.fe-intro-stage strong {
    color: #fff;
    display: block;
    font-size: clamp(38px, 11vw, 78px);
    line-height: 0.95;
    margin-top: 14px;
    max-width: 900px;
    overflow-wrap: anywhere;
    text-shadow: 0 18px 38px rgba(0, 0, 0, 0.58), 0 0 34px rgba(249, 115, 22, 0.22);
}

.fe-intro-copy strong {
    margin-top: 10px;
}

.fe-intro-nlb .fe-intro-copy strong,
.fe-intro-tax .fe-intro-copy strong {
    max-width: 100%;
    overflow-wrap: normal;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

.fe-intro-nlb .fe-intro-copy strong {
    font-size: clamp(24px, 5.3vw, 56px);
}

.fe-intro-tax .fe-intro-copy strong {
    font-size: clamp(17px, 3.65vw, 38px);
}

.fe-intro-stage p {
    color: #e5e7eb;
    font-size: clamp(15px, 3.8vw, 22px);
    font-weight: 850;
    line-height: 1.32;
    margin: 16px auto 0;
    max-width: 620px;
}

.fe-intro-copy p {
    margin-left: 0;
    margin-right: 0;
    max-width: 520px;
}

.fe-intro-proof,
.fe-intro-empire-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: calc(100vw - 28px);
}

.fe-intro-proof b,
.fe-intro-empire-stats b {
    animation: feIntroChipPop 900ms ease both;
    background: rgba(248, 250, 252, 0.12);
    border: 1px solid rgba(248, 250, 252, 0.16);
    border-radius: 999px;
    color: #f8fafc;
    font-size: 11px;
    font-weight: 950;
    padding: 8px 10px;
    text-transform: uppercase;
}

.fe-intro-proof b:nth-child(2),
.fe-intro-empire-stats b:nth-child(2) {
    animation-delay: 120ms;
}

.fe-intro-proof b:nth-child(3),
.fe-intro-empire-stats b:nth-child(3) {
    animation-delay: 240ms;
}

.fe-intro-proof b:nth-child(4),
.fe-intro-empire-stats b:nth-child(4) {
    animation-delay: 360ms;
}

.fe-intro-proof b:nth-child(5) {
    animation-delay: 480ms;
}

.fe-intro-empire-mark {
    align-items: center;
    animation: feEmpireMark 2600ms ease-in-out infinite;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 36%),
        linear-gradient(135deg, #f97316 0%, #fb923c 42%, #2563eb 100%);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 24px 24px 34px 34px;
    box-shadow: 0 30px 80px rgba(249, 115, 22, 0.34), 0 0 70px rgba(37, 99, 235, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    color: #fff;
    display: grid;
    height: clamp(104px, 25vw, 164px);
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: clamp(108px, 26vw, 170px);
}

.fe-intro-empire-mark::before {
    background:
        linear-gradient(90deg, transparent 0 24%, rgba(255, 255, 255, 0.7) 24% 31%, transparent 31% 49%, rgba(255, 255, 255, 0.7) 49% 56%, transparent 56% 74%, rgba(255, 255, 255, 0.7) 74% 81%, transparent 81%),
        linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.28));
    bottom: 0;
    content: "";
    height: 46%;
    left: 18%;
    position: absolute;
    right: 18%;
    transform: perspective(180px) rotateX(58deg);
    transform-origin: bottom;
}

.fe-intro-empire-mark::after {
    background: rgba(15, 23, 42, 0.68);
    border-radius: 999px 999px 10px 10px;
    box-shadow: 30px 9px 0 -4px rgba(15, 23, 42, 0.68), -30px 9px 0 -4px rgba(15, 23, 42, 0.68);
    content: "";
    height: 13px;
    left: 50%;
    position: absolute;
    top: 18px;
    transform: translateX(-50%);
    width: 28px;
}

.fe-intro-empire-mark i {
    background:
        linear-gradient(90deg, #fff 0 58%, #fed7aa 58% 100%);
    border-radius: 7px 10px 4px 4px;
    box-shadow: 10px 14px 0 -8px #0f172a, 42px 14px 0 -8px #0f172a, 70px 14px 0 -8px #0f172a;
    height: 31px;
    left: 50%;
    position: absolute;
    top: 46px;
    transform: translateX(-50%);
    width: 92px;
    z-index: 2;
}

.fe-intro-empire-mark b {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    height: 2px;
    left: 18px;
    position: absolute;
    right: 18px;
    top: 88px;
    z-index: 2;
}

.fe-intro-empire-mark em {
    bottom: 13px;
    color: #fff;
    font-size: clamp(9px, 2.4vw, 12px);
    font-style: normal;
    font-weight: 950;
    left: 6px;
    line-height: 1;
    position: absolute;
    right: 6px;
    text-align: center;
    text-transform: uppercase;
    z-index: 2;
}

.fe-intro-game > strong {
    font-size: clamp(46px, 13.5vw, 108px);
    letter-spacing: 0;
    max-width: calc(100vw - 24px);
    overflow-wrap: normal;
    white-space: nowrap;
    text-shadow: 0 22px 48px rgba(0, 0, 0, 0.66), 0 0 44px rgba(249, 115, 22, 0.38);
}

.fe-intro-game > p {
    font-size: clamp(17px, 4vw, 25px);
    max-width: 680px;
}

.fe-intro-empire-stats b {
    background: rgba(249, 115, 22, 0.18);
    border-color: rgba(251, 146, 60, 0.34);
}

.fe-intro-nlb {
    animation: feIntroStage 3600ms cubic-bezier(0.16, 0.8, 0.2, 1) both;
}

.fe-intro-tax {
    animation: feIntroStage 3600ms cubic-bezier(0.16, 0.8, 0.2, 1) 3600ms both;
}

.fe-intro-game {
    animation: feIntroStageFinal 4200ms cubic-bezier(0.16, 0.8, 0.2, 1) 7200ms both;
}

.fe-intro-splash.is-finished {
    animation: feIntroOut 700ms ease both;
}

.fe-hero-art {
    bottom: 0;
    height: 58%;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
}

.fe-hero-art::before {
    background:
        linear-gradient(180deg, transparent, rgba(21, 25, 31, 0.86)),
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.16), transparent 30%),
        linear-gradient(130deg, rgba(37, 99, 235, 0.18), transparent 45%);
    content: "";
    inset: 0;
    position: absolute;
}

.fe-road {
    background: linear-gradient(90deg, transparent, rgba(248, 250, 252, 0.24), transparent);
    bottom: 23%;
    height: 4px;
    left: 10%;
    position: absolute;
    right: 8%;
    transform: skewY(-8deg);
}

.fe-route-line {
    border-top: 2px solid rgba(249, 115, 22, 0.6);
    height: 120px;
    position: absolute;
    transform: rotate(-18deg);
    width: 80%;
}

.fe-route-line-a {
    left: -20%;
    top: 20%;
}

.fe-route-line-b {
    border-color: rgba(37, 99, 235, 0.55);
    right: -26%;
    top: 38%;
}

.fe-truck-shape {
    background: #f8fafc;
    border-radius: 5px 5px 2px 2px;
    box-shadow: 24px 18px 0 -14px rgba(248, 250, 252, 0.8), 66px 18px 0 -14px rgba(248, 250, 252, 0.8);
    position: absolute;
}

.fe-semi {
    bottom: 29%;
    height: 38px;
    right: 13%;
    width: 150px;
}

.fe-semi::after {
    background: var(--orange);
    border-radius: 5px 8px 2px 2px;
    content: "";
    height: 34px;
    position: absolute;
    right: -48px;
    top: 4px;
    width: 44px;
}

.fe-box {
    bottom: 40%;
    height: 30px;
    left: 12%;
    opacity: 0.72;
    width: 86px;
}

.fe-title-content {
    background: linear-gradient(180deg, transparent, rgba(21, 25, 31, 0.82) 11%, #15191f 100%);
    padding: 36px 18px calc(32px + env(safe-area-inset-bottom));
    position: relative;
    z-index: 1;
}

.fe-title-content h1 {
    font-size: 56px;
    line-height: 0.95;
    max-width: 360px;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.48);
}

.fe-subtitle {
    color: #e5e7eb;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    margin: 12px 0 24px;
    max-width: 420px;
}

.fe-account-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
    margin-top: 14px;
    max-width: 430px;
    padding: 16px;
}

.fe-install-panel {
    align-items: center;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    color: #fff;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: 0 0 16px;
    max-width: 430px;
    padding: 14px;
    position: relative;
    z-index: 2;
}

.fe-install-panel span {
    color: #facc15;
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.fe-install-panel strong {
    display: block;
    font-size: 17px;
    line-height: 1.2;
}

.fe-install-panel p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.4;
    margin: 4px 0 0;
}

.fe-install-actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.fe-install-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    min-height: 38px;
    padding: 9px 11px;
}

.fe-account-intro,
.fe-account-head {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.fe-account-intro {
    grid-template-columns: 1fr auto;
}

.fe-account-intro p {
    grid-column: 1 / -1;
}

.fe-account-head {
    align-items: center;
    grid-template-columns: 1fr auto;
}

.fe-account-intro span,
.fe-account-head span {
    color: #9a3412;
    display: block;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fe-account-intro strong,
.fe-account-head strong {
    color: #111827;
    display: block;
    font-size: 20px;
    letter-spacing: 0;
}

.fe-account-intro p {
    color: #475569;
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
}

.fe-free-badge {
    align-self: start;
    background: #16a34a;
    border-radius: 999px;
    color: #fff !important;
    display: inline-flex !important;
    font-size: 10px !important;
    justify-content: center;
    padding: 6px 8px;
    white-space: nowrap;
}

.fe-auth-tabs {
    background: #eef2f7;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    display: grid;
    gap: 4px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 12px;
    padding: 4px;
}

.fe-auth-tab {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #475569;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    min-height: 38px;
    padding: 9px 10px;
}

.fe-auth-tab.is-active {
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
    color: #111827;
}

.fe-auth-form {
    display: grid;
    gap: 10px;
}

.fe-auth-form[hidden] {
    display: none !important;
}

.fe-auth-form input {
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    color: #111827;
    font-size: 16px;
    min-height: 48px;
    padding: 12px;
    width: 100%;
}

.fe-auth-form input::placeholder {
    color: #64748b;
}

.fe-auth-form .fe-btn-secondary {
    background: #111827;
    color: #fff;
}

.fe-auth-disclaimer {
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
    margin: 11px 0 0;
}

.fe-account-status {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto;
}

.fe-account-status span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.fe-account-status strong {
    color: #fff;
    display: block;
    font-size: 17px;
    margin-top: 2px;
}

.fe-auth-message {
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    margin: 10px 0 0;
}

.fe-action-stack,
.fe-company-file,
.fe-title-profile {
    display: grid;
    gap: 8px;
}

.fe-company-file,
.fe-title-profile {
    margin-bottom: 12px;
}

.fe-title-profile {
    animation: fePop 260ms ease both;
}

.fe-title-profile .fe-profile-card {
    margin-top: 4px;
}

.fe-company-file-card {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(37, 99, 235, 0.14));
    border: 1px solid rgba(251, 146, 60, 0.32);
    border-radius: 10px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
    display: grid;
    gap: 8px;
    padding: 14px;
}

.fe-company-file-card span {
    color: #fed7aa;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-company-file-card h2 {
    color: #fff;
    font-size: 24px;
    margin: 0;
}

.fe-company-file-card p {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    margin: 0;
}

.fe-company-file-stats {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 4px;
}

.fe-company-file-stats div {
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 8px;
    min-width: 0;
    padding: 9px;
}

.fe-company-file-stats span {
    color: var(--muted);
    font-size: 10px;
}

.fe-company-file-stats strong {
    color: #fff;
    display: block;
    font-size: 14px;
    margin-top: 3px;
}

.fe-company-file-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    margin-top: 4px;
}

.fe-btn {
    align-items: center;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    font-size: 16px;
    min-height: 48px;
    padding: 12px 16px;
}

.fe-btn-primary {
    background: linear-gradient(135deg, #fb923c, var(--orange));
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.32);
    color: #fff;
}

.fe-btn-secondary {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid var(--line);
    color: var(--text);
}

.fe-btn-ghost {
    background: transparent;
    border: 1px solid rgba(248, 250, 252, 0.14);
    color: var(--muted);
}

.fe-btn-danger {
    background: rgba(220, 38, 38, 0.18);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #fecaca;
}

.fe-btn-small {
    min-height: 38px;
    padding: 8px 12px;
}

.fe-legal-small {
    font-size: 12px;
    line-height: 1.4;
    margin: 18px 0 0;
}

.fe-legal-small a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fe-view {
    padding: 16px;
    min-height: 100svh;
}

.fe-setup-view {
    padding-bottom: calc(140px + env(safe-area-inset-bottom));
}

.fe-pad-bottom {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

.fe-progress {
    background: rgba(248, 250, 252, 0.1);
    border-radius: 999px;
    height: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.fe-progress div {
    background: var(--orange);
    height: 100%;
    transition: width 180ms ease;
    width: 0;
}

.fe-panel,
.fe-card,
.fe-option {
    backdrop-filter: blur(14px);
    background: rgba(37, 45, 54, 0.88);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.fe-briefing {
    background:
        linear-gradient(135deg, rgba(21, 25, 31, 0.18), rgba(21, 25, 31, 0.82)),
        url("images/freight-yard.jpg") center/cover no-repeat;
    border: 1px solid rgba(248, 250, 252, 0.16);
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 16px;
    margin-bottom: 14px;
    min-height: 210px;
    overflow: hidden;
    padding: 18px;
    position: relative;
}

.fe-briefing::after {
    background: linear-gradient(90deg, var(--orange), rgba(37, 99, 235, 0.85));
    bottom: 0;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
}

.fe-briefing h2 {
    font-size: 30px;
    line-height: 1;
    margin: 0 0 10px;
    max-width: 320px;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.fe-briefing p:not(.fe-kicker) {
    color: #e5e7eb;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.38;
    margin: 0;
    max-width: 360px;
}

.fe-clock-strip {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 14px;
}

.fe-clock-strip div {
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.11), rgba(37, 45, 54, 0.82));
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: 8px;
    padding: 10px;
}

.fe-clock-strip span {
    color: var(--muted);
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.fe-clock-strip strong {
    color: #fff;
    display: block;
    font-size: 18px;
    margin-top: 2px;
}

.fe-health-panel {
    background:
        radial-gradient(circle at 92% 0%, rgba(34, 197, 94, 0.2), transparent 34%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.96), rgba(21, 25, 31, 0.98));
    border-color: rgba(34, 197, 94, 0.28);
    margin-bottom: 14px;
    padding: 14px;
}

.fe-health-tight {
    background:
        radial-gradient(circle at 92% 0%, rgba(245, 158, 11, 0.22), transparent 34%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.96), rgba(21, 25, 31, 0.98));
    border-color: rgba(245, 158, 11, 0.34);
}

.fe-health-trouble {
    background:
        radial-gradient(circle at 92% 0%, rgba(249, 115, 22, 0.24), transparent 34%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.96), rgba(21, 25, 31, 0.98));
    border-color: rgba(249, 115, 22, 0.4);
}

.fe-health-critical {
    background:
        radial-gradient(circle at 92% 0%, rgba(220, 38, 38, 0.28), transparent 34%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.96), rgba(21, 25, 31, 0.98));
    border-color: rgba(248, 113, 113, 0.46);
}

.fe-health-panel h2,
.fe-office-health h2 {
    color: #fff;
}

.fe-weekly-close {
    background:
        radial-gradient(circle at 90% 0%, rgba(34, 197, 94, 0.22), transparent 34%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.98), rgba(21, 25, 31, 0.98));
    border-color: rgba(34, 197, 94, 0.34);
    margin-bottom: 14px;
    padding: 14px;
}

.fe-weekly-loss {
    background:
        radial-gradient(circle at 90% 0%, rgba(249, 115, 22, 0.26), transparent 34%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.98), rgba(21, 25, 31, 0.98));
    border-color: rgba(249, 115, 22, 0.42);
}

.fe-weekly-close h2 {
    color: #fff;
}

.fe-weekly-ledger {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 12px 0;
}

.fe-weekly-ledger div {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 8px;
    min-width: 0;
    padding: 10px;
}

.fe-weekly-ledger span {
    color: var(--muted);
    display: block;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-weekly-ledger strong {
    color: #fff;
    display: block;
    font-size: 15px;
    margin-top: 4px;
}

.fe-health-score {
    align-items: center;
    background: rgba(248, 250, 252, 0.1);
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: 17px;
    font-weight: 950;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.fe-health-pills {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 12px 0;
}

.fe-health-pill {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 8px;
    min-width: 0;
    padding: 9px 8px;
}

.fe-health-pill-good {
    border-color: rgba(34, 197, 94, 0.34);
}

.fe-health-pill-watch {
    border-color: rgba(245, 158, 11, 0.34);
}

.fe-health-pill-bad {
    border-color: rgba(248, 113, 113, 0.42);
}

.fe-health-pill span,
.fe-next-action span {
    color: var(--muted);
    display: block;
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-health-pill strong {
    color: #fff;
    display: block;
    font-size: 13px;
    line-height: 1.1;
    margin-top: 4px;
}

.fe-next-action {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.13);
    border-radius: 8px;
    padding: 11px;
}

.fe-next-action p {
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.35;
    margin: 4px 0 0;
}

.fe-office-health {
    border-color: rgba(96, 165, 250, 0.26);
}

.fe-setup-card {
    border-top: 1px solid rgba(249, 115, 22, 0.42);
}

.fe-setup-card > h2,
.fe-story-scene h2 {
    font-size: 28px;
    line-height: 1.05;
    margin: 0 0 14px;
}

.fe-story-panel {
    display: grid;
    gap: 14px;
    min-height: auto;
}

.fe-story-scene {
    background:
        linear-gradient(180deg, rgba(21, 25, 31, 0.12), rgba(21, 25, 31, 0.86)),
        url("images/freight-yard.jpg") center/cover no-repeat;
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-height: 315px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.fe-story-scene p {
    color: #e5e7eb;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.42;
    margin: 0;
}

.fe-story-badge {
    align-self: flex-start;
    background: var(--orange);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: auto;
    padding: 8px 10px;
}

.fe-story-cards {
    display: grid;
    gap: 10px;
}

.fe-story-cards article,
.fe-advisor,
.fe-setup-note {
    background: rgba(248, 250, 252, 0.09);
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: 8px;
    padding: 12px;
}

.fe-story-cards strong,
.fe-advisor strong,
.fe-setup-note strong {
    color: #fff;
    display: block;
    font-size: 14px;
}

.fe-story-cards span,
.fe-advisor p,
.fe-setup-note p {
    color: #cbd5e1;
    display: block;
    font-size: 13px;
    line-height: 1.35;
    margin: 4px 0 0;
}

.fe-setup-warning {
    background: rgba(220, 38, 38, 0.16);
    border-color: rgba(248, 113, 113, 0.38);
}

.fe-panel,
.fe-option {
    padding: 16px;
}

.fe-panel-head {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.fe-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
}

.fe-card {
    padding: 14px;
}

.fe-card-highlight {
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.22), rgba(37, 45, 54, 0.9));
    border-color: rgba(249, 115, 22, 0.5);
}

.fe-inline-result {
    box-shadow: none;
    margin-bottom: 12px;
}

.fe-inline-result.is-empty {
    border-style: dashed;
}

.fe-notice-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.fe-notice {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 8px;
    padding: 10px;
}

.fe-notice-danger {
    background: rgba(220, 38, 38, 0.14);
    border-color: rgba(248, 113, 113, 0.34);
}

.fe-notice-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(251, 191, 36, 0.3);
}

.fe-notice-success {
    background: rgba(22, 163, 74, 0.14);
    border-color: rgba(34, 197, 94, 0.34);
}

.fe-notice strong,
.fe-notice span {
    color: #fff;
    display: block;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-notice span {
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px;
}

.fe-notice p {
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    margin: 7px 0 0;
}

.fe-card h2 {
    font-size: 20px;
    margin-top: 4px;
}

.fe-contract-card {
    border-color: rgba(96, 165, 250, 0.24);
}

.fe-contract-active {
    background: linear-gradient(145deg, rgba(22, 163, 74, 0.18), rgba(37, 45, 54, 0.92));
    border-color: rgba(34, 197, 94, 0.36);
}

.fe-upgrade-card {
    border-color: rgba(96, 165, 250, 0.22);
}

.fe-upgrade-owned {
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.18), rgba(37, 45, 54, 0.92));
    border-color: rgba(96, 165, 250, 0.4);
}

.fe-locked-card {
    background:
        radial-gradient(circle at 90% 0%, rgba(148, 163, 184, 0.14), transparent 34%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.82), rgba(21, 25, 31, 0.94));
    border-color: rgba(148, 163, 184, 0.24);
    opacity: 0.82;
}

.fe-locked-card h2 {
    color: #e5e7eb;
}

.fe-contract-terms {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 12px 0;
}

.fe-contract-terms span {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.11);
    border-radius: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    padding: 9px;
    text-align: center;
}

.fe-driver-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.fe-compliance-list,
.fe-compliance-mini {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.fe-compliance-list div,
.fe-compliance-mini div {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 8px;
    padding: 10px;
}

.fe-compliance-list strong,
.fe-compliance-mini strong {
    color: #fff;
    display: block;
    font-size: 12px;
    font-weight: 950;
}

.fe-compliance-list span,
.fe-compliance-mini span {
    color: var(--orange);
    display: block;
    font-size: 10px;
    font-weight: 900;
    margin-top: 3px;
    text-transform: uppercase;
}

.fe-compliance-list p {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
    margin: 6px 0 0;
}

.fe-progress-bar {
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 999px;
    height: 12px;
    margin: 12px 0;
    overflow: hidden;
}

.fe-progress-bar span {
    background: linear-gradient(90deg, #16a34a, #f97316);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.fe-business-profile {
    background:
        radial-gradient(circle at 88% 0%, rgba(37, 99, 235, 0.22), transparent 34%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.94), rgba(21, 25, 31, 0.98));
    border: 1px solid rgba(96, 165, 250, 0.26);
    border-radius: 10px;
    margin-bottom: 14px;
    padding: 14px;
}

.fe-business-profile h2 {
    color: #fff;
    font-size: 22px;
    line-height: 1.1;
    margin: 5px 0 8px;
}

.fe-business-profile p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    margin: 6px 0 0;
}

.fe-progress-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fe-progress-grid div {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.11);
    border-radius: 8px;
    padding: 10px;
}

.fe-progress-grid span {
    color: var(--muted);
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.fe-progress-grid strong {
    color: #fff;
    display: block;
    font-size: 13px;
    line-height: 1.25;
    margin-top: 4px;
}

.fe-milestone-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.fe-milestone-checklist span {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 900;
    padding: 8px 10px;
}

.fe-milestone-award {
    animation: feWinFlash 900ms ease-in-out 2;
    background:
        radial-gradient(circle at 90% 0%, rgba(34, 197, 94, 0.28), transparent 32%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.98), rgba(21, 25, 31, 0.98));
    border: 1px solid rgba(34, 197, 94, 0.42);
    border-radius: 10px;
    margin: 12px 0;
    padding: 13px;
}

.fe-milestone-award span,
.fe-milestone-top span,
.fe-milestone-req,
.fe-milestone-reward span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-milestone-award h3 {
    color: #fff;
    font-size: 22px;
    line-height: 1.05;
    margin: 5px 0 6px;
}

.fe-milestone-award p {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.35;
    margin: 0 0 10px;
}

.fe-milestone-ladder {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.fe-milestone-card {
    background: rgba(248, 250, 252, 0.07);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 10px;
    overflow: hidden;
    padding: 12px;
    position: relative;
}

.fe-milestone-card::before {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.5), rgba(249, 115, 22, 0.48));
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 4px;
}

.fe-milestone-next {
    background:
        radial-gradient(circle at 92% 0%, rgba(249, 115, 22, 0.2), transparent 36%),
        rgba(248, 250, 252, 0.08);
    border-color: rgba(249, 115, 22, 0.35);
}

.fe-milestone-done {
    border-color: rgba(34, 197, 94, 0.34);
}

.fe-milestone-done::before {
    background: #22c55e;
}

.fe-milestone-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.fe-milestone-top strong {
    color: #fff;
    font-size: 13px;
    font-weight: 950;
}

.fe-milestone-card h3 {
    color: #fff;
    font-size: 18px;
    line-height: 1.1;
    margin: 7px 0 5px;
}

.fe-milestone-card p {
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.fe-progress-bar-mini {
    height: 8px;
    margin: 10px 0;
}

.fe-milestone-req {
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(248, 250, 252, 0.09);
    border-radius: 8px;
    line-height: 1.35;
    padding: 8px;
}

.fe-milestone-reward {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
}

.fe-milestone-reward span {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 8px;
}

.fe-leader-card {
    border-color: rgba(249, 115, 22, 0.24);
}

.fe-profile-card {
    background:
        radial-gradient(circle at 92% 4%, rgba(249, 115, 22, 0.2), transparent 32%),
        linear-gradient(145deg, rgba(39, 45, 52, 0.98), rgba(17, 22, 28, 0.98));
    border-color: rgba(249, 115, 22, 0.34);
}

.fe-profile-head {
    align-items: start;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.fe-profile-head h2 {
    margin-bottom: 3px;
}

.fe-profile-head p {
    margin: 0;
}

.fe-profile-head strong {
    color: #fff;
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 950;
    line-height: 1;
    text-align: right;
}

.fe-profile-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.fe-profile-grid span {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 8px;
    color: #cbd5e1;
    display: grid;
    font-size: 11px;
    font-weight: 900;
    gap: 3px;
    min-width: 0;
    padding: 9px;
}

.fe-profile-grid b {
    color: #fff;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.fe-score-note {
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
    margin: 12px 0 0;
    padding: 10px;
}

.fe-history-list {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.fe-history-row {
    align-items: center;
    background: rgba(248, 250, 252, 0.07);
    border: 1px solid rgba(248, 250, 252, 0.1);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px;
}

.fe-history-row strong,
.fe-history-row span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fe-history-row strong {
    color: #fff;
    font-size: 13px;
    font-weight: 950;
}

.fe-history-row span,
.fe-empty-history {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 850;
}

.fe-history-row b {
    color: #fed7aa;
    font-size: 13px;
    font-weight: 950;
}

.fe-empty-history {
    background: rgba(248, 250, 252, 0.06);
    border: 1px dashed rgba(248, 250, 252, 0.16);
    border-radius: 8px;
    padding: 10px;
}

.fe-leader-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

@media (max-width: 520px) {
    .fe-profile-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .fe-profile-head strong {
        text-align: left;
    }

    .fe-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fe-roadmap-action {
        grid-template-columns: 1fr;
    }

    .fe-roadmap-action .fe-btn {
        width: 100%;
    }
}

.fe-leader-stats span {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 900;
    padding: 7px 9px;
}

.fe-leader-profile {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.fe-leader-profile h2 {
    font-size: 26px;
    margin: 2px 0 0;
}

.fe-leader-profile p {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 850;
    margin: 4px 0 0;
}

.fe-leader-profile-stats {
    display: flex;
    gap: 8px;
}

.fe-leader-profile-stats span {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 10px;
    color: #cbd5e1;
    display: grid;
    font-size: 11px;
    font-weight: 900;
    gap: 3px;
    min-width: 92px;
    padding: 9px;
    text-align: right;
}

.fe-leader-profile-stats strong {
    color: #fff;
    font-size: 16px;
}

.fe-leader-list {
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.78)),
        rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow:
        0 18px 54px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: grid;
    overflow: hidden;
}

.fe-leader-row {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 54px minmax(0, 1fr) auto auto;
    padding: 13px 14px;
}

.fe-leader-row + .fe-leader-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fe-leader-rank {
    align-items: center;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 12px;
    color: #fed7aa;
    display: flex;
    font-size: 14px;
    font-weight: 950;
    height: 42px;
    justify-content: center;
}

.fe-leader-main {
    min-width: 0;
}

.fe-leader-main strong,
.fe-leader-main span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fe-leader-main strong {
    color: #fff;
    font-size: 16px;
    font-weight: 950;
}

.fe-leader-main span,
.fe-leader-score span,
.fe-leader-mini span {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 850;
}

.fe-leader-score {
    text-align: right;
}

.fe-leader-score strong {
    color: #fff;
    display: block;
    font-size: 18px;
    line-height: 1;
}

.fe-leader-mini {
    display: flex;
    gap: 6px;
}

.fe-leader-mini span {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.1);
    border-radius: 999px;
    padding: 6px 8px;
    white-space: nowrap;
}

@media (max-width: 620px) {
    .fe-leader-profile,
    .fe-leader-row {
        grid-template-columns: 1fr;
    }

    .fe-leader-profile-stats,
    .fe-leader-mini {
        flex-wrap: wrap;
    }

    .fe-leader-profile-stats span,
    .fe-leader-score {
        text-align: left;
    }

    .fe-leader-rank {
        height: 34px;
        justify-content: flex-start;
        padding-inline: 10px;
        width: fit-content;
    }
}

.fe-objective-row {
    align-items: center;
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 12px;
    padding: 10px;
}

.fe-objective-row span {
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-roadmap-panel {
    background:
        radial-gradient(circle at 90% 0%, rgba(249, 115, 22, 0.24), transparent 32%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.98), rgba(21, 25, 31, 0.98));
    border-color: rgba(249, 115, 22, 0.32);
}

.fe-roadmap-compact {
    margin: 0;
}

.fe-roadmap-list {
    display: grid;
    gap: 9px;
    margin-top: 12px;
}

.fe-roadmap-step {
    align-items: center;
    background: rgba(248, 250, 252, 0.07);
    border: 1px solid rgba(248, 250, 252, 0.11);
    border-radius: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px;
}

.fe-roadmap-step.is-active {
    background: rgba(249, 115, 22, 0.13);
    border-color: rgba(249, 115, 22, 0.35);
}

.fe-roadmap-step.is-done {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
}

.fe-roadmap-number {
    align-items: center;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: 13px;
    font-weight: 950;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.fe-roadmap-step.is-done .fe-roadmap-number {
    background: #16a34a;
    border-color: #22c55e;
}

.fe-roadmap-copy {
    min-width: 0;
}

.fe-roadmap-copy span,
.fe-roadmap-action strong {
    color: #fdba74;
    display: block;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-roadmap-copy h3 {
    color: #fff;
    font-size: 16px;
    line-height: 1.15;
    margin: 3px 0 4px;
}

.fe-roadmap-copy p {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.fe-roadmap-meter {
    background: rgba(15, 23, 42, 0.62);
    border-radius: 999px;
    height: 7px;
    margin-top: 8px;
    overflow: hidden;
}

.fe-roadmap-meter b {
    background: linear-gradient(90deg, #2563eb, #f97316);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.fe-roadmap-step.is-done .fe-roadmap-meter b {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.fe-roadmap-action {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
}

.fe-roadmap-action strong {
    color: #e5e7eb;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fe-tutorial-panel {
    background:
        radial-gradient(circle at 85% 0%, rgba(96, 165, 250, 0.28), transparent 34%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.98), rgba(21, 25, 31, 0.98));
    border-color: rgba(96, 165, 250, 0.36);
}

.fe-tutorial-panel h2 {
    color: #fff;
}

.fe-tutorial-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 12px;
}

.fe-coach-card {
    animation: fePop 380ms ease both;
    background:
        radial-gradient(circle at 86% 0%, rgba(34, 197, 94, 0.2), transparent 34%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.98), rgba(21, 25, 31, 0.98));
    border: 1px solid rgba(34, 197, 94, 0.34);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 14px;
}

.fe-coach-card-warm {
    background:
        radial-gradient(circle at 86% 0%, rgba(249, 115, 22, 0.24), transparent 34%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.98), rgba(21, 25, 31, 0.98));
    border-color: rgba(249, 115, 22, 0.38);
    margin-bottom: 12px;
}

.fe-coach-card h2 {
    color: #fff;
    font-size: 22px;
    line-height: 1.05;
    margin: 4px 0 8px;
}

.fe-coach-card p:not(.fe-kicker) {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}

.fe-coach-steps {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.fe-coach-steps span {
    background: rgba(248, 250, 252, 0.09);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    padding: 9px 8px;
    text-align: center;
    text-transform: uppercase;
}

.fe-closure-panel,
.fe-closure-card {
    background:
        radial-gradient(circle at 80% 0%, rgba(220, 38, 38, 0.24), transparent 34%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.98), rgba(21, 25, 31, 0.98));
    border-color: rgba(248, 113, 113, 0.38);
}

.fe-closure-panel h2,
.fe-closure-card h2 {
    color: #fff;
}

.fe-load-warning {
    border-color: rgba(245, 158, 11, 0.45);
}

.fe-load-blocked {
    border-color: rgba(248, 113, 113, 0.55);
    opacity: 0.82;
}

.fe-load-gate {
    align-items: start;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    display: grid;
    gap: 3px;
    margin-top: 10px;
    padding: 9px 10px;
}

.fe-load-gate strong {
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
}

.fe-load-gate span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

.fe-distress-card {
    background:
        radial-gradient(circle at 88% 0%, rgba(220, 38, 38, 0.22), transparent 34%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.98), rgba(21, 25, 31, 0.98));
    border-color: rgba(248, 113, 113, 0.42);
}

.fe-rescue-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.fe-rescue-actions .fe-btn {
    min-height: 42px;
    white-space: normal;
}

.fe-card strong {
    color: #fff;
}

.fe-card p,
.fe-option p {
    color: var(--muted);
    line-height: 1.38;
    margin: 8px 0 0;
}

.fe-list {
    display: grid;
    gap: 12px;
}

.fe-field {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.fe-field label {
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 800;
}

.fe-field input,
.fe-field select,
.fe-field textarea {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.fe-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #f97316 50%), linear-gradient(135deg, #f97316 50%, transparent 50%);
    background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    padding-right: 34px;
}

.fe-social-panel {
    border-color: rgba(249, 115, 22, 0.28);
}

.fe-social-panel h3 {
    color: #fff7ed;
    font-size: 15px;
    margin: 16px 0 8px;
}

.fe-social-list {
    display: grid;
    gap: 8px;
}

.fe-social-row,
.fe-message-row {
    background: rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 10px;
}

.fe-social-row {
    align-items: center;
    grid-template-columns: 1fr auto;
}

.fe-social-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.fe-social-row div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.fe-message-row p {
    color: #cbd5e1;
    margin: 0;
}

@media (max-width: 480px) {
    .fe-social-row {
        grid-template-columns: 1fr;
    }

    .fe-social-row div,
    .fe-social-row button {
        justify-content: stretch;
        width: 100%;
    }
}

.fe-option {
    cursor: pointer;
    display: grid;
    gap: 12px;
    overflow: hidden;
    position: relative;
    text-align: left;
    width: 100%;
}

.fe-option::after {
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.2), transparent);
    content: "";
    height: 100%;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity 160ms ease;
    width: 5px;
}

.fe-option.is-selected {
    border-color: var(--orange);
    outline: 2px solid rgba(249, 115, 22, 0.24);
}

.fe-option.is-selected::after {
    opacity: 1;
}

.fe-option h3 {
    font-size: 18px;
    margin: 0;
}

.fe-option-title {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.fe-option-title span {
    background: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.34);
    border-radius: 999px;
    color: #bbf7d0;
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 900;
    padding: 5px 7px;
    text-transform: uppercase;
}

.fe-stat-row,
.fe-load-meta,
.fe-bottom-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.fe-badge {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #e5e7eb;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 8px;
}

.fe-badge-green {
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(34, 197, 94, 0.34);
}

.fe-badge-amber {
    background: rgba(245, 158, 11, 0.17);
    border-color: rgba(245, 158, 11, 0.36);
}

.fe-badge-red {
    background: rgba(220, 38, 38, 0.18);
    border-color: rgba(220, 38, 38, 0.42);
}

.fe-chip-row {
    display: flex;
    gap: 8px;
    margin: 0 0 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.fe-market-strip,
.fe-mission-row {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 14px;
}

.fe-market-strip div,
.fe-mission-row span {
    background: rgba(248, 250, 252, 0.09);
    border: 1px solid rgba(248, 250, 252, 0.13);
    border-radius: 8px;
    min-width: 0;
    padding: 10px;
}

.fe-market-strip span {
    color: var(--muted);
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.fe-market-strip strong {
    color: #fff;
    display: block;
    font-size: 13px;
    margin-top: 3px;
}

.fe-mission-row {
    margin: 14px 0 0;
}

.fe-mission-row span {
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
}

.fe-chip {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 11px;
}

.fe-chip.is-active {
    background: var(--orange);
    border-color: var(--orange);
}

.fe-load-pay {
    color: #fff;
    font-size: 30px;
    font-weight: 900;
}

.fe-route {
    font-size: 18px;
    font-weight: 900;
    margin-top: 3px;
}

.fe-load-tension {
    align-items: center;
    background: rgba(21, 25, 31, 0.36);
    border: 1px solid rgba(248, 250, 252, 0.1);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 9px 10px;
}

.fe-load-tension span {
    background: var(--orange);
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.14);
    flex: 0 0 auto;
    height: 8px;
    width: 8px;
}

.fe-load-tension strong {
    color: #fff;
    font-size: 12px;
}

.fe-load-market {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.fe-load-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.fe-load-tags span {
    background: rgba(34, 197, 94, 0.13);
    border: 1px solid rgba(34, 197, 94, 0.24);
    border-radius: 999px;
    color: #dcfce7;
    font-size: 10px;
    font-weight: 950;
    padding: 7px 9px;
    text-transform: uppercase;
}

.fe-load-market div {
    background: rgba(21, 25, 31, 0.38);
    border: 1px solid rgba(248, 250, 252, 0.1);
    border-radius: 8px;
    min-width: 0;
    padding: 9px;
    position: relative;
}

.fe-load-market span {
    color: var(--muted);
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.fe-load-market strong {
    color: #fff;
    display: block;
    font-size: 12px;
    margin-top: 3px;
}

.fe-load-market.fe-load-hot div:first-child::after {
    animation: fePulse 850ms ease-in-out infinite;
    background: var(--red);
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.13);
    content: "";
    height: 7px;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 7px;
}

.fe-risk-table {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.fe-load-fit {
    display: grid;
    gap: 8px;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    margin-top: 10px;
}

.fe-risk-table div,
.fe-load-fit div {
    background: rgba(21, 25, 31, 0.38);
    border: 1px solid rgba(248, 250, 252, 0.1);
    border-radius: 8px;
    min-width: 0;
    padding: 9px;
}

.fe-risk-table span,
.fe-load-fit span {
    color: var(--muted);
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.fe-risk-table strong,
.fe-load-fit strong {
    color: #fff;
    display: block;
    font-size: 13px;
    margin-top: 3px;
}

.fe-risk-meter {
    background: linear-gradient(90deg, rgba(22, 163, 74, 0.28), rgba(245, 158, 11, 0.26), rgba(220, 38, 38, 0.26));
    border: 1px solid rgba(248, 250, 252, 0.13);
    border-radius: 999px;
    height: 10px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
}

.fe-risk-meter::after {
    animation: feSweep 1.8s linear infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-100%);
}

.fe-risk-meter span {
    background: linear-gradient(90deg, #22c55e, #f59e0b, #dc2626);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.fe-risk-meter-big {
    height: 14px;
    margin: 12px 0;
}

.fe-result-reveal {
    background:
        radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.28), transparent 32%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.96), rgba(21, 25, 31, 0.98));
    border: 1px solid rgba(249, 115, 22, 0.32);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 16px;
    position: relative;
}

.fe-dispatch-lock {
    background:
        radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.3), transparent 34%),
        radial-gradient(circle at 86% 8%, rgba(249, 115, 22, 0.25), transparent 30%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.96), rgba(21, 25, 31, 0.98));
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-height: 430px;
    overflow: hidden;
    padding: 16px;
}

.fe-dispatch-lock h2 {
    animation: fePulseText 1.1s ease-in-out infinite;
    font-size: 34px;
    line-height: 1;
    margin: 18px 0 16px;
}

.fe-lock-steps {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.fe-lock-steps span {
    animation: feStepGlow 1.8s ease-in-out infinite;
    background: rgba(248, 250, 252, 0.09);
    border: 1px solid rgba(248, 250, 252, 0.13);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    padding: 12px;
    text-transform: uppercase;
}

.fe-lock-steps span:nth-child(2) {
    animation-delay: 220ms;
}

.fe-lock-steps span:nth-child(3) {
    animation-delay: 440ms;
}

.fe-lock-steps span:nth-child(4) {
    animation-delay: 660ms;
}

.fe-dispatch-ticket {
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(248, 250, 252, 0.13);
    border-radius: 10px;
    display: grid;
    gap: 4px;
    margin: 16px 0;
    padding: 12px;
}

.fe-dispatch-ticket span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-dispatch-ticket strong {
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
}

.fe-lane-run {
    border-color: rgba(249, 115, 22, 0.34);
}

.fe-route-animation {
    background:
        linear-gradient(90deg, rgba(248, 250, 252, 0.08), rgba(249, 115, 22, 0.18), rgba(248, 250, 252, 0.08));
    border: 1px solid rgba(248, 250, 252, 0.13);
    border-radius: 14px;
    height: 112px;
    margin: 18px 0;
    overflow: hidden;
    position: relative;
}

.fe-route-animation::before {
    background: repeating-linear-gradient(90deg, #e5e7eb 0 18px, transparent 18px 34px);
    content: "";
    height: 3px;
    left: 20px;
    opacity: 0.7;
    position: absolute;
    right: 20px;
    top: 54px;
}

.fe-route-animation span {
    animation: feRouteTruck 2.2s cubic-bezier(0.12, 0.75, 0.18, 1) infinite;
    background: linear-gradient(90deg, #f97316 0 62%, #e5e7eb 62% 100%);
    border-radius: 6px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
    height: 24px;
    left: 18px;
    position: absolute;
    top: 42px;
    width: 58px;
    z-index: 2;
}

.fe-route-animation span::after {
    background: #111827;
    border-radius: 999px;
    box-shadow: 36px 0 0 #111827;
    content: "";
    height: 8px;
    left: 8px;
    position: absolute;
    top: 20px;
    width: 8px;
}

.fe-route-animation i,
.fe-route-animation b {
    background: rgba(34, 197, 94, 0.92);
    border-radius: 999px;
    height: 12px;
    position: absolute;
    top: 49px;
    width: 12px;
}

.fe-route-animation i {
    left: 16px;
}

.fe-route-animation b {
    background: rgba(249, 115, 22, 0.96);
    right: 16px;
}

.fe-lane-checks,
.fe-settlement-stack {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 12px 0;
}

.fe-lane-checks div,
.fe-settlement-stack div {
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 8px;
    padding: 10px;
}

.fe-lane-checks span,
.fe-settlement-stack span {
    color: var(--muted);
    display: block;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-lane-checks strong,
.fe-settlement-stack strong {
    color: #fff;
    display: block;
    font-size: 14px;
    margin-top: 4px;
}

.fe-result-reveal h2 {
    animation: fePop 420ms ease both;
    font-size: 38px;
    line-height: 1;
    margin: 12px 0 10px;
}

.fe-result-reveal p:not(.fe-kicker) {
    color: #e5e7eb;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}

.fe-result-spinning {
    min-height: 520px;
}

.fe-result-landed {
    animation: feBoardSettle 260ms ease-out both;
    min-height: 430px;
}

.fe-jackpot-lights {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(5, 1fr);
    margin: 0 0 14px;
}

.fe-jackpot-lights span {
    animation: feLightChase 900ms linear infinite;
    background: rgba(249, 115, 22, 0.28);
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.28);
    height: 8px;
}

.fe-jackpot-lights-hold span {
    animation: none;
    opacity: 1;
}

.fe-jackpot-lights span:nth-child(2) {
    animation-delay: 120ms;
}

.fe-jackpot-lights span:nth-child(3) {
    animation-delay: 240ms;
}

.fe-jackpot-lights span:nth-child(4) {
    animation-delay: 360ms;
}

.fe-jackpot-lights span:nth-child(5) {
    animation-delay: 480ms;
}

.fe-slot-board {
    display: grid;
    gap: 10px;
    margin: 20px 0 16px;
}

.fe-slot-window {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: 10px;
    box-shadow: inset 0 18px 30px rgba(0, 0, 0, 0.28);
    height: 68px;
    overflow: hidden;
    position: relative;
}

.fe-slot-window::before,
.fe-slot-window::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), transparent);
    content: "";
    height: 18px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}

.fe-slot-window::after {
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.95), transparent);
    bottom: 0;
    top: auto;
}

.fe-slot-reel {
    animation: feSlotSpin 1100ms cubic-bezier(0.12, 0.8, 0.24, 1) 2 both;
    display: grid;
    gap: 8px;
    padding: 12px;
}

.fe-slot-reel-b {
    animation-duration: 1280ms;
}

.fe-slot-reel-c {
    animation-duration: 1460ms;
}

.fe-slot-reel span {
    align-items: center;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(37, 99, 235, 0.22));
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 8px;
    color: #fff;
    display: flex;
    font-size: 16px;
    font-weight: 950;
    height: 44px;
    justify-content: center;
    text-transform: uppercase;
}

.fe-payout-pulse {
    align-items: center;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 10px;
    display: flex;
    gap: 12px;
    padding: 12px;
}

.fe-payout-pulse span {
    animation: fePulse 850ms ease-in-out infinite;
    background: var(--orange);
    border-radius: 999px;
    box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.12);
    height: 12px;
    width: 12px;
}

.fe-payout-pulse strong {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
}

.fe-result-banner {
    animation: fePop 360ms ease both;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.14), rgba(248, 250, 252, 0.07));
    border: 1px solid rgba(248, 250, 252, 0.16);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 12px;
    padding: 11px;
    text-align: center;
    text-transform: uppercase;
}

.fe-result-banner.fe-result-win {
    animation: feWinFlash 900ms ease-in-out 2;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.34), rgba(249, 115, 22, 0.28));
    border-color: rgba(34, 197, 94, 0.45);
}

.fe-result-banner.fe-result-loss {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.3), rgba(37, 45, 54, 0.9));
    border-color: rgba(248, 113, 113, 0.42);
}

.fe-reel-track {
    animation: feReel 950ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
    background: rgba(21, 25, 31, 0.62);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 10px;
    display: flex;
    gap: 8px;
    margin: 0 0 14px;
    overflow: hidden;
    padding: 8px;
}

.fe-reel-track-hold {
    animation: none;
    border-color: rgba(249, 115, 22, 0.32);
}

.fe-reel-track span {
    background: rgba(248, 250, 252, 0.1);
    border-radius: 8px;
    color: #fff;
    flex: 1 0 auto;
    font-size: 11px;
    font-weight: 950;
    padding: 10px 12px;
    text-align: center;
}

.fe-result-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.fe-result-grid article {
    background: rgba(248, 250, 252, 0.09);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 8px;
    padding: 10px;
}

.fe-result-grid span {
    color: var(--muted);
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.fe-result-grid strong {
    color: #fff;
    display: block;
    font-size: 16px;
    margin-top: 4px;
}

.fe-settlement-ledger {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(248, 250, 252, 0.13);
    border-radius: 10px;
    display: grid;
    gap: 0;
    margin: 14px 0 10px;
    overflow: hidden;
}

.fe-settlement-ledger div {
    align-items: center;
    border-bottom: 1px solid rgba(248, 250, 252, 0.09);
    display: flex;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 12px;
}

.fe-settlement-ledger div:last-child {
    border-bottom: 0;
}

.fe-settlement-ledger span,
.fe-result-advice span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-settlement-ledger strong {
    color: #fff;
    font-size: 17px;
    font-weight: 950;
}

.fe-settlement-ledger .fe-ledger-total {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.2), rgba(34, 197, 94, 0.18));
}

.fe-settlement-ledger .fe-ledger-total strong {
    font-size: 22px;
}

.fe-result-advice {
    background:
        radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.18), transparent 36%),
        rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 10px;
    margin: 12px 0;
    padding: 12px;
}

.fe-result-advice p {
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.4;
    margin: 5px 0 0;
}

@keyframes feSweep {
    to {
        transform: translateX(100%);
    }
}

@keyframes feReel {
    0% {
        filter: blur(3px);
        transform: translateY(-24px);
    }

    100% {
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes fePop {
    0% {
        opacity: 0;
        transform: scale(0.94);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes feLightChase {
    0%,
    100% {
        opacity: 0.35;
        transform: scaleX(0.75);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes feSlotSpin {
    0% {
        transform: translateY(0);
    }

    80% {
        transform: translateY(-208px);
    }

    100% {
        transform: translateY(-156px);
    }
}

@keyframes fePulse {
    0%,
    100% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.18);
    }
}

@keyframes feBoardSettle {
    0% {
        filter: brightness(1.25);
        transform: scale(1.015);
    }

    100% {
        filter: brightness(1);
        transform: scale(1);
    }
}

@keyframes feWinFlash {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    }

    50% {
        box-shadow: 0 0 28px rgba(34, 197, 94, 0.35);
    }
}

@keyframes fePulseText {
    0%,
    100% {
        text-shadow: 0 0 0 rgba(249, 115, 22, 0);
    }

    50% {
        text-shadow: 0 0 22px rgba(249, 115, 22, 0.38);
    }
}

@keyframes feStepGlow {
    0%,
    100% {
        border-color: rgba(248, 250, 252, 0.13);
        transform: translateX(0);
    }

    50% {
        border-color: rgba(249, 115, 22, 0.45);
        transform: translateX(4px);
    }
}

@keyframes feIntroStage {
    0% {
        filter: blur(10px);
        opacity: 0;
        transform: translateY(26px) scale(0.94);
    }

    16%,
    70% {
        filter: blur(0);
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        filter: blur(6px);
        opacity: 0;
        transform: translateY(-22px) scale(1.04);
    }
}

@keyframes feIntroStageFinal {
    0% {
        filter: blur(10px);
        opacity: 0;
        transform: translateY(24px) scale(0.9);
    }

    18%,
    80% {
        filter: blur(0);
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        filter: blur(0);
        opacity: 0;
        transform: translateY(-8px) scale(1.08);
    }
}

@keyframes feIntroOut {
    to {
        opacity: 0;
        transform: scale(1.04);
    }
}

@keyframes feIntroRoad {
    to {
        transform: translateX(130px) perspective(420px) rotateX(58deg) skewY(-6deg);
    }
}

@keyframes feIntroSweep {
    0%,
    18% {
        opacity: 0;
        transform: translateX(-100%) skewX(-12deg);
    }

    36%,
    72% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(100%) skewX(-12deg);
    }
}

@keyframes feIntroTruck {
    0% {
        left: -270px;
        transform: translateY(10px) scale(0.88);
    }

    30%,
    64% {
        left: calc(50% - 124px);
        transform: translateY(0) scale(1);
    }

    100% {
        left: calc(100% + 60px);
        transform: translateY(4px) scale(0.95);
    }
}

@keyframes feIntroLoadChip {
    0% {
        opacity: 0;
        transform: translateX(100vw);
    }

    12%,
    82% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(-260px);
    }
}

@keyframes feIntroGlow {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.45);
    }
}

@keyframes feIntroIconFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.025);
    }
}

@keyframes feIntroChipPop {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.92);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes feEmpireMark {
    0%,
    100% {
        transform: translateY(0) rotate(-2deg) scale(1);
    }

    50% {
        transform: translateY(-6px) rotate(2deg) scale(1.035);
    }
}

@keyframes feIntroHud {
    0%,
    8% {
        opacity: 0;
        transform: translateY(-10px);
    }

    20%,
    86% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes feIntroMeter {
    0%,
    100% {
        width: 54%;
    }

    50% {
        width: 92%;
    }
}

@keyframes feRouteTruck {
    0% {
        opacity: 0;
        transform: translateX(0) scale(0.96);
    }

    12% {
        opacity: 1;
    }

    72% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(calc(100vw - 118px)) scale(1);
    }
}

.fe-trip-result {
    background:
        linear-gradient(145deg, rgba(22, 163, 74, 0.18), rgba(37, 45, 54, 0.9)),
        rgba(37, 45, 54, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.32);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 0 0 14px;
    padding: 14px;
}

.fe-trip-result h2 {
    font-size: 22px;
    margin: 0;
}

.fe-trip-result p:not(.fe-kicker) {
    color: #dbeafe;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    margin: 8px 0 0;
}

.fe-trip-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.fe-trip-numbers span {
    background: rgba(248, 250, 252, 0.09);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    padding: 7px 9px;
}

.fe-fleet-section {
    display: grid;
    gap: 10px;
}

.fe-fleet-section h3 {
    color: #fff7ed;
    font-size: 15px;
    margin: 8px 0 0;
}

.fe-fleet-unit,
.fe-driver-card,
.fe-shop-card {
    border-color: rgba(148, 163, 184, 0.18);
}

.fe-shop-card .fe-btn,
.fe-driver-card .fe-btn {
    margin-top: 12px;
    width: 100%;
}

.fe-expansion-advisor {
    background:
        radial-gradient(circle at 88% 0%, rgba(96, 165, 250, 0.2), transparent 34%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.96), rgba(21, 25, 31, 0.98));
    border-color: rgba(96, 165, 250, 0.3);
}

.fe-expansion-advisor h2 {
    color: #fff;
}

.fe-expansion-read {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 10px 0;
}

.fe-expansion-read div,
.fe-hire-read {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.11);
    border-radius: 8px;
    padding: 9px;
}

.fe-expansion-read span,
.fe-hire-read span {
    color: var(--muted);
    display: block;
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-expansion-read strong {
    color: #fff;
    display: block;
    font-size: 13px;
    line-height: 1.15;
    margin-top: 4px;
}

.fe-shop-warning {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(248, 250, 252, 0.09);
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    margin: 10px 0 0;
    padding: 9px;
}

.fe-assignment-field {
    margin: 12px 0 0;
}

.fe-office-card {
    backdrop-filter: blur(14px);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 16px;
}

.fe-office-hero {
    background:
        linear-gradient(145deg, rgba(37, 99, 235, 0.22), rgba(21, 25, 31, 0.92)),
        rgba(37, 45, 54, 0.9);
    border: 1px solid rgba(96, 165, 250, 0.26);
}

.fe-office-hero h2 {
    font-size: 26px;
    line-height: 1.05;
    margin: 0;
}

.fe-office-hero p:not(.fe-kicker) {
    color: #dbeafe;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.38;
    margin: 8px 0 0;
}

.fe-office-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    margin-top: 12px;
}

.fe-office-row .fe-btn {
    width: 100%;
}

.fe-share-card {
    border-color: rgba(96, 165, 250, 0.3);
}

.fe-share-reward-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.fe-share-badge {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 10px;
    margin-top: 12px;
    padding: 12px;
}

.fe-share-badge strong,
.fe-share-badge span {
    display: block;
}

.fe-share-badge span {
    color: #bbf7d0;
    font-size: 12px;
    font-weight: 800;
    margin-top: 3px;
    text-transform: uppercase;
}

.fe-feedback-card textarea {
    min-height: 96px;
    resize: vertical;
}

.fe-login-share {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.fe-share-modal {
    align-items: center;
    background: rgba(2, 6, 23, 0.76);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 18px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 40;
}

.fe-share-modal[hidden] {
    display: none;
}

.fe-share-modal-card {
    background:
        linear-gradient(145deg, rgba(37, 99, 235, 0.22), rgba(17, 24, 39, 0.96)),
        #111827;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 16px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
    max-width: 420px;
    padding: 20px;
    position: relative;
    width: 100%;
}

.fe-share-modal-card h2 {
    font-size: 28px;
    line-height: 1.05;
    margin: 7px 0 8px;
}

.fe-share-modal-card p {
    color: #dbeafe;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    margin: 0;
}

.fe-share-modal-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #f8fafc;
    cursor: pointer;
    display: flex;
    font-size: 22px;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 36px;
}

@media (max-width: 420px) {
    .fe-login-share {
        grid-template-columns: 1fr;
    }
}

.fe-bottom-nav {
    background: rgba(21, 25, 31, 0.96);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    position: fixed;
    right: 0;
    z-index: 10;
    padding-bottom: env(safe-area-inset-bottom);
}

.fe-bottom-nav::before {
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.7), transparent);
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.fe-bottom-nav button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 900;
    gap: 4px;
    justify-content: center;
    min-height: 62px;
    padding: 6px 2px;
}

.fe-bottom-nav button.is-active {
    color: var(--orange);
}

.fe-nav-mark {
    align-items: center;
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 8px;
    color: #e5e7eb;
    display: flex;
    font-size: 10px;
    height: 24px;
    justify-content: center;
    width: 30px;
}

.fe-bottom-nav button.is-active .fe-nav-mark {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.fe-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.fe-two-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

.fe-setup-card .fe-two-actions {
    background: linear-gradient(180deg, rgba(37, 45, 54, 0.82), rgba(21, 25, 31, 0.98));
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 10px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    margin: 18px -6px -4px;
    padding: 10px;
    position: sticky;
    z-index: 4;
}

.fe-setup-card .fe-btn-primary {
    order: -1;
}

.fe-story-panel > .fe-actions {
    background: linear-gradient(180deg, rgba(37, 45, 54, 0.82), rgba(21, 25, 31, 0.98));
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 10px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 10px;
    position: sticky;
    z-index: 4;
}

@media (min-width: 720px) {
    .fe-app {
        margin: 0 auto;
        max-width: 520px;
        min-height: 100svh;
    }

    .fe-bottom-nav {
        left: 50%;
        max-width: 520px;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .fe-intro-stage {
        gap: 12px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .fe-intro-ad-card {
        max-width: calc(100vw - 24px);
        width: calc(100vw - 24px);
    }

    .fe-intro-nlb .fe-intro-copy strong {
        font-size: clamp(22px, 6.1vw, 29px);
    }

    .fe-intro-tax .fe-intro-copy strong {
        font-size: clamp(15px, 4.25vw, 20px);
    }

    .fe-intro-copy p,
    .fe-intro-game > p {
        line-height: 1.25;
    }

    .fe-intro-game > strong {
        font-size: clamp(39px, 11.2vw, 54px);
    }
}

@media (max-width: 390px), (max-height: 720px) {
    .fe-intro-stage {
        padding: 22px 14px 94px;
    }

    .fe-intro-ad-card {
        gap: 11px;
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .fe-intro-brand-icon {
        border-radius: 15px;
        height: 72px;
        width: 72px;
    }

    .fe-intro-nlb .fe-intro-copy strong {
        font-size: clamp(22px, 6.5vw, 28px);
    }

    .fe-intro-tax .fe-intro-copy strong {
        font-size: clamp(15px, 4.45vw, 19px);
    }

    .fe-intro-stage span {
        font-size: 10px;
        padding: 7px 9px;
    }

    .fe-intro-copy p {
        font-size: 14px;
        margin-top: 10px;
    }

    .fe-intro-proof b,
    .fe-intro-empire-stats b {
        font-size: 10px;
        padding: 7px 9px;
    }

    .fe-intro-empire-mark {
        height: 112px;
        width: 118px;
    }

    .fe-intro-empire-mark i {
        top: 40px;
        transform: translateX(-50%) scale(0.86);
    }

    .fe-intro-empire-mark b {
        top: 78px;
    }

    .fe-intro-game > strong {
        font-size: clamp(39px, 11.6vw, 46px);
    }

    .fe-intro-game > p {
        font-size: 15px;
        max-width: 330px;
    }

    .fe-tutorial-actions {
        grid-template-columns: 1fr;
    }

    .fe-coach-card h2 {
        font-size: 20px;
    }

    .fe-coach-steps {
        grid-template-columns: 1fr;
    }

    .fe-contract-terms {
        grid-template-columns: 1fr;
    }

    .fe-milestone-reward {
        grid-template-columns: 1fr;
    }

    .fe-title-content h1 {
        font-size: 44px;
    }

    .fe-subtitle {
        font-size: 17px;
        margin-bottom: 16px;
    }

    .fe-hero-art {
        height: 46%;
    }

    .fe-story-scene {
        min-height: 245px;
    }

    .fe-briefing {
        min-height: 175px;
    }

    .fe-briefing h2 {
        font-size: 25px;
    }

    .fe-market-strip,
    .fe-mission-row,
    .fe-clock-strip,
    .fe-health-pills,
    .fe-weekly-ledger,
    .fe-expansion-read,
    .fe-load-market,
    .fe-load-fit,
    .fe-risk-table,
    .fe-result-grid,
    .fe-lane-checks,
    .fe-settlement-stack {
        grid-template-columns: 1fr;
    }

    .fe-settlement-ledger div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .fe-setup-card > h2,
    .fe-story-scene h2 {
        font-size: 24px;
    }

    .fe-two-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    body {
        -webkit-text-size-adjust: 100%;
    }

    .fe-app {
        width: 100%;
    }

    .fe-title-view {
        min-height: 100svh;
        place-items: end stretch;
    }

    .fe-title-content {
        padding: 28px 14px calc(24px + env(safe-area-inset-bottom));
    }

    .fe-title-content h1 {
        font-size: clamp(42px, 13vw, 54px);
        max-width: 100%;
    }

    .fe-subtitle {
        font-size: 17px;
        margin-bottom: 16px;
        max-width: 100%;
    }

    .fe-install-panel,
    .fe-account-panel,
    .fe-company-file-card {
        max-width: none;
        width: 100%;
    }

    .fe-install-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .fe-install-actions,
    .fe-install-actions .fe-btn {
        width: 100%;
    }

    .fe-account-panel {
        padding: 14px;
    }

    .fe-account-intro {
        grid-template-columns: 1fr;
    }

    .fe-free-badge {
        justify-self: start;
    }

    .fe-auth-tab,
    .fe-auth-form input,
    .fe-auth-form .fe-btn,
    .fe-field input,
    .fe-field select,
    .fe-field textarea {
        min-height: 48px;
    }

    .fe-view {
        padding: 12px;
    }

    .fe-setup-view {
        padding-bottom: calc(118px + env(safe-area-inset-bottom));
    }

    .fe-pad-bottom {
        padding-bottom: calc(94px + env(safe-area-inset-bottom));
    }

    .fe-topbar {
        gap: 8px;
        padding: 10px 12px;
    }

    .fe-topbar h1 {
        font-size: 15px;
        max-width: 136px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fe-cash-pill {
        min-width: 86px;
        padding: 7px 8px;
    }

    .fe-save-status {
        font-size: 9px;
        padding: 7px;
    }

    .fe-panel,
    .fe-option {
        padding: 13px;
    }

    .fe-card {
        padding: 12px;
    }

    .fe-panel-head {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .fe-panel-head .fe-btn,
    .fe-briefing .fe-btn,
    .fe-actions .fe-btn,
    .fe-two-actions .fe-btn {
        width: 100%;
    }

    .fe-grid,
    .fe-market-strip,
    .fe-mission-row,
    .fe-clock-strip,
    .fe-health-pills,
    .fe-weekly-ledger,
    .fe-load-market,
    .fe-risk-table,
    .fe-load-fit,
    .fe-result-grid,
    .fe-lane-checks,
    .fe-settlement-stack,
    .fe-expansion-read,
    .fe-progress-grid,
    .fe-profile-grid,
    .fe-contract-terms {
        grid-template-columns: 1fr;
    }

    .fe-briefing {
        gap: 12px;
        min-height: 170px;
        padding: 15px;
    }

    .fe-briefing h2 {
        font-size: 25px;
        max-width: 100%;
    }

    .fe-story-scene {
        min-height: 235px;
        padding: 16px;
    }

    .fe-story-scene h2,
    .fe-setup-card > h2 {
        font-size: 24px;
    }

    .fe-option {
        min-height: 76px;
    }

    .fe-option-title {
        display: grid;
        gap: 6px;
        grid-template-columns: 1fr;
    }

    .fe-option-title span {
        justify-self: start;
    }

    .fe-badge {
        border-radius: 8px;
        line-height: 1.2;
        white-space: normal;
    }

    .fe-chip-row {
        margin-left: -12px;
        margin-right: -12px;
        padding: 0 12px 6px;
        scroll-snap-type: x proximity;
    }

    .fe-chip {
        min-height: 40px;
        scroll-snap-align: start;
    }

    .fe-load-pay {
        font-size: 28px;
    }

    .fe-route {
        font-size: 17px;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .fe-load-tension {
        align-items: flex-start;
    }

    .fe-load-gate span,
    .fe-card p,
    .fe-muted {
        overflow-wrap: anywhere;
    }

    .fe-dispatch-lock,
    .fe-result-spinning,
    .fe-result-landed {
        min-height: auto;
    }

    .fe-dispatch-lock h2,
    .fe-result-reveal h2 {
        font-size: 30px;
    }

    .fe-route-animation {
        height: 94px;
        margin: 14px 0;
    }

    .fe-route-animation::before {
        top: 45px;
    }

    .fe-route-animation span {
        top: 33px;
    }

    .fe-slot-window {
        height: 60px;
    }

    .fe-slot-reel span {
        font-size: 14px;
        height: 40px;
    }

    .fe-reel-track {
        overflow-x: auto;
    }

    .fe-settlement-ledger div,
    .fe-objective-row,
    .fe-history-row {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .fe-settlement-ledger div,
    .fe-objective-row {
        flex-direction: column;
    }

    .fe-objective-row .fe-btn {
        width: 100%;
    }

    .fe-history-row strong,
    .fe-history-row span {
        white-space: normal;
    }

    .fe-bottom-nav button {
        font-size: 11px;
        min-height: 58px;
    }
}

@media (max-width: 360px) {
    .fe-title-content h1 {
        font-size: 40px;
    }

    .fe-account-panel,
    .fe-company-file-card,
    .fe-panel,
    .fe-option,
    .fe-card {
        padding: 11px;
    }

    .fe-bottom-nav button {
        font-size: 10px;
        min-height: 56px;
    }

    .fe-nav-mark {
        height: 22px;
        width: 28px;
    }
}

@media (max-width: 520px) and (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}

/* Cinematic intro pass: slower, darker, and more trailer-like than the game UI. */
.fe-intro-splash {
    background:
        linear-gradient(180deg, rgba(4, 7, 12, 0.18), rgba(4, 7, 12, 0.82) 52%, rgba(4, 7, 12, 0.98)),
        radial-gradient(circle at 70% 23%, rgba(245, 158, 11, 0.24), transparent 30%),
        radial-gradient(circle at 18% 10%, rgba(59, 130, 246, 0.18), transparent 32%),
        url("images/freight-highway.jpg") center/cover no-repeat,
        linear-gradient(155deg, #05070b 0%, #111827 48%, #020617 100%);
    box-shadow: inset 0 13svh 0 rgba(0, 0, 0, 0.76), inset 0 -13svh 0 rgba(0, 0, 0, 0.8);
}

.fe-intro-splash::before {
    animation: feIntroRoad 3200ms linear infinite;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent),
        repeating-linear-gradient(90deg, transparent 0 86px, rgba(255, 255, 255, 0.9) 86px 154px, transparent 154px 240px);
    bottom: 23%;
    height: 3px;
    left: -55%;
    opacity: 0.46;
    right: -55%;
    transform: perspective(520px) rotateX(61deg) skewY(-4deg);
}

.fe-intro-splash::after {
    animation: feIntroSweep 10800ms ease-in-out both;
    background:
        radial-gradient(ellipse at center, transparent 0 42%, rgba(0, 0, 0, 0.48) 100%),
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
}

.fe-intro-sky i {
    animation: feIntroGlow 5200ms ease-in-out infinite;
    background: rgba(255, 246, 214, 0.7);
    box-shadow: 0 0 36px rgba(255, 246, 214, 0.44);
    height: 3px;
    width: 3px;
}

.fe-intro-loads {
    bottom: calc(13svh + 16px);
    gap: 12px;
    left: 8vw;
}

.fe-intro-loads span {
    animation: feIntroLoadChip 10500ms linear infinite;
    background: rgba(2, 6, 23, 0.46);
    border-color: rgba(226, 232, 240, 0.18);
    border-radius: 3px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
    color: rgba(226, 232, 240, 0.76);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    padding: 8px 10px;
}

.fe-intro-rig {
    animation: feIntroTruck 11200ms cubic-bezier(0.16, 0.84, 0.22, 1) both;
    bottom: calc(23% + 4px);
    filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.62));
    height: 92px;
    left: -340px;
    width: 310px;
}

.fe-intro-rig::before {
    background:
        linear-gradient(90deg, #dbeafe 0 62%, #111827 62% 63%, #f59e0b 63% 80%, #fbbf24 80%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent);
    border-radius: 5px 18px 4px 4px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.28), 0 0 36px rgba(251, 191, 36, 0.18);
    height: 58px;
    top: 13px;
    width: 268px;
}

.fe-intro-rig::after {
    box-shadow: 78px 0 0 #0f172a, 184px 0 0 #0f172a, 244px 0 0 #0f172a;
    height: 26px;
    left: 22px;
    top: 65px;
    width: 26px;
}

.fe-intro-rig b {
    height: 22px;
    right: 50px;
    top: 24px;
    width: 44px;
}

.fe-intro-hud {
    animation: feIntroHud 10800ms ease both;
    max-width: 190px;
}

.fe-intro-stage {
    padding: calc(13svh + 26px) 20px calc(13svh + 36px);
}

.fe-intro-ad-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
        rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(18px);
    border-color: rgba(226, 232, 240, 0.22);
    border-radius: 8px;
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    max-width: min(900px, calc(100vw - 28px));
}

.fe-intro-brand-icon {
    animation: feIntroIconFloat 4200ms ease-in-out infinite;
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48), 0 0 48px rgba(245, 158, 11, 0.18);
}

.fe-intro-stage span {
    background: rgba(2, 6, 23, 0.46);
    border-color: rgba(245, 158, 11, 0.38);
    border-radius: 3px;
    color: #fef3c7;
    padding: 8px 12px;
}

.fe-intro-stage strong {
    text-shadow: 0 24px 60px rgba(0, 0, 0, 0.72), 0 0 34px rgba(245, 158, 11, 0.2);
}

.fe-intro-stage p {
    color: #e2e8f0;
}

.fe-intro-proof b,
.fe-intro-empire-stats b {
    animation: feIntroChipPop 1200ms ease both;
    background: rgba(2, 6, 23, 0.5);
    border-color: rgba(226, 232, 240, 0.16);
    border-radius: 3px;
}

.fe-intro-empire-mark {
    animation: feEmpireMark 5200ms ease-in-out infinite;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 38%),
        linear-gradient(135deg, #020617 0%, #111827 48%, #f59e0b 100%);
    border-color: rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.62), 0 0 80px rgba(245, 158, 11, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.fe-intro-game > strong {
    text-shadow: 0 28px 70px rgba(0, 0, 0, 0.82), 0 0 54px rgba(245, 158, 11, 0.28);
}

.fe-intro-empire-stats b {
    background: rgba(2, 6, 23, 0.58);
    border-color: rgba(245, 158, 11, 0.3);
}

.fe-intro-nlb {
    animation: feIntroStage 4000ms cubic-bezier(0.16, 0.8, 0.2, 1) both;
}

.fe-intro-tax {
    animation: feIntroStage 4000ms cubic-bezier(0.16, 0.8, 0.2, 1) 3800ms both;
}

.fe-intro-game {
    animation: feIntroStageFinal 4700ms cubic-bezier(0.16, 0.8, 0.2, 1) 7600ms both;
}

@keyframes feIntroRoad {
    to {
        transform: translateX(240px) perspective(520px) rotateX(61deg) skewY(-4deg);
    }
}

@keyframes feIntroSweep {
    0%,
    18% {
        opacity: 0.25;
        transform: translateX(-70%) skewX(-8deg);
    }

    36%,
    72% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.35;
        transform: translateX(70%) skewX(-8deg);
    }
}

@keyframes feIntroTruck {
    0% {
        left: -360px;
        transform: translateY(18px) scale(0.72);
    }

    24%,
    58% {
        left: calc(50% - 155px);
        transform: translateY(0) scale(1);
    }

    76% {
        left: calc(50% - 118px);
        transform: translateY(7px) scale(1.22);
    }

    100% {
        left: calc(100% + 110px);
        transform: translateY(10px) scale(1.34);
    }
}

@keyframes feIntroLoadChip {
    0% {
        opacity: 0;
        transform: translateX(82vw);
    }

    16%,
    78% {
        opacity: 0.78;
    }

    100% {
        opacity: 0;
        transform: translateX(-420px);
    }
}

@keyframes feIntroGlow {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.86;
        transform: scale(1.22);
    }
}

@keyframes feIntroIconFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-2px) scale(1.012);
    }
}

@keyframes feEmpireMark {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-3px) scale(1.018);
    }
}

@media (max-width: 480px) {
    .fe-intro-ad-card {
        width: calc(100vw - 24px);
    }

    .fe-intro-game > strong {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-intro-splash *,
    .fe-intro-splash,
    .fe-intro-splash::before,
    .fe-intro-splash::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}

/* Sponsor trailer cards: make the ad beats feel like premium film slates. */
.fe-intro-nlb,
.fe-intro-tax {
    isolation: isolate;
}

.fe-intro-nlb::before,
.fe-intro-tax::before {
    content: "";
    inset: 0;
    opacity: 0.92;
    position: absolute;
    z-index: -2;
}

.fe-intro-nlb::before {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.92)),
        radial-gradient(circle at 50% 35%, rgba(245, 158, 11, 0.22), transparent 34%),
        url("images/freight-yard.jpg") center/cover no-repeat;
}

.fe-intro-tax::before {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.94)),
        radial-gradient(circle at 50% 36%, rgba(59, 130, 246, 0.24), transparent 34%),
        url("images/coffee-first-freight.jpg") center/cover no-repeat;
}

.fe-intro-nlb::after,
.fe-intro-tax::after {
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 118px);
    content: "";
    inset: 13svh 0;
    opacity: 0.34;
    position: absolute;
    transform: skewX(-10deg);
    z-index: -1;
}

.fe-intro-nlb .fe-intro-ad-card,
.fe-intro-tax .fe-intro-ad-card {
    align-content: center;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.66)),
        rgba(2, 6, 23, 0.34);
    border-color: rgba(255, 255, 255, 0.22);
    border-radius: 0;
    box-shadow: 0 44px 120px rgba(0, 0, 0, 0.68);
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: min(58svh, 540px);
    padding: clamp(26px, 7vw, 70px);
    text-align: center;
    width: min(980px, calc(100vw - 28px));
}

.fe-intro-nlb .fe-intro-brand-icon,
.fe-intro-tax .fe-intro-brand-icon {
    height: clamp(104px, 18vw, 176px);
    margin-bottom: 6px;
    padding: clamp(10px, 2vw, 18px);
    width: clamp(104px, 18vw, 176px);
}

.fe-intro-nlb .fe-intro-brand-icon {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 90px rgba(245, 158, 11, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.fe-intro-tax .fe-intro-brand-icon {
    background: rgba(2, 6, 23, 0.92);
    box-shadow: 0 28px 90px rgba(59, 130, 246, 0.28), 0 0 0 1px rgba(147, 197, 253, 0.4);
}

.fe-intro-nlb .fe-intro-stage span,
.fe-intro-tax .fe-intro-stage span,
.fe-intro-nlb .fe-intro-copy span,
.fe-intro-tax .fe-intro-copy span {
    letter-spacing: 0.16em;
}

.fe-intro-nlb .fe-intro-copy strong,
.fe-intro-tax .fe-intro-copy strong {
    color: #fff;
    font-size: clamp(28px, 7.2vw, 82px);
    letter-spacing: 0.01em;
    line-height: 0.9;
    margin-top: 18px;
    max-width: min(920px, calc(100vw - 48px));
    overflow: visible;
    text-align: center;
    text-shadow: 0 26px 70px rgba(0, 0, 0, 0.84), 0 0 52px rgba(245, 158, 11, 0.24);
    white-space: normal;
}

.fe-intro-tax .fe-intro-copy strong {
    font-size: clamp(24px, 6.4vw, 68px);
    text-shadow: 0 26px 70px rgba(0, 0, 0, 0.84), 0 0 52px rgba(59, 130, 246, 0.28);
}

.fe-intro-nlb .fe-intro-copy p,
.fe-intro-tax .fe-intro-copy p {
    color: #f8fafc;
    font-size: clamp(16px, 3.6vw, 26px);
    font-weight: 800;
    margin: 18px auto 0;
    max-width: 680px;
    text-align: center;
}

.fe-intro-nlb .fe-intro-proof,
.fe-intro-tax .fe-intro-proof {
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.13);
    bottom: calc(13svh + 18px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
    padding: 8px;
    position: absolute;
}

.fe-intro-nlb .fe-intro-proof b,
.fe-intro-tax .fe-intro-proof b {
    background: transparent;
    border: 0;
    color: rgba(248, 250, 252, 0.9);
    letter-spacing: 0.12em;
}

@media (max-width: 480px) {
    .fe-intro-nlb .fe-intro-ad-card,
    .fe-intro-tax .fe-intro-ad-card {
        min-height: min(62svh, 520px);
        padding: 24px 16px;
    }

    .fe-intro-nlb .fe-intro-brand-icon,
    .fe-intro-tax .fe-intro-brand-icon {
        height: 116px;
        width: 116px;
    }

    .fe-intro-nlb .fe-intro-copy strong {
        font-size: clamp(32px, 10.8vw, 48px);
    }

    .fe-intro-tax .fe-intro-copy strong {
        font-size: clamp(25px, 8.6vw, 38px);
    }
}

/* Hard-fit sponsor domains so the full .com stays visible on every intro slate. */
.fe-intro-nlb .fe-intro-copy,
.fe-intro-tax .fe-intro-copy {
    box-sizing: border-box;
    max-width: min(920px, calc(100vw - 56px));
    width: 100%;
}

.fe-intro-nlb .fe-intro-copy strong,
.fe-intro-tax .fe-intro-copy strong {
    box-sizing: border-box;
    display: block;
    letter-spacing: 0;
    max-width: 100%;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: nowrap !important;
    width: 100%;
}

.fe-intro-nlb .fe-intro-copy strong {
    font-size: clamp(24px, 5.9vw, 66px);
}

.fe-intro-tax .fe-intro-copy strong {
    font-size: clamp(17px, 4.6vw, 46px);
}

@media (max-width: 480px) {
    .fe-intro-nlb .fe-intro-copy,
    .fe-intro-tax .fe-intro-copy {
        max-width: calc(100vw - 32px);
    }

    .fe-intro-nlb .fe-intro-copy strong {
        font-size: clamp(23px, 7.1vw, 34px);
    }

    .fe-intro-tax .fe-intro-copy strong {
        font-size: clamp(15px, 4.8vw, 23px);
    }
}

@media (min-width: 1200px) {
    .fe-intro-nlb .fe-intro-copy strong {
        font-size: 64px;
    }

    .fe-intro-tax .fe-intro-copy strong {
        font-size: 44px;
    }
}

@media (min-width: 900px) {
    .fe-app {
        margin: 0;
        max-width: none;
        width: 100%;
    }

    .fe-topbar {
        padding: 16px clamp(28px, 4vw, 64px);
    }

    .fe-title-view {
        align-items: center;
        gap: clamp(28px, 4vw, 72px);
        grid-template-columns: minmax(420px, 0.92fr) minmax(460px, 1.08fr);
        min-height: 100svh;
        overflow: hidden;
        padding: clamp(34px, 5vw, 76px);
        place-items: center stretch;
    }

    .fe-hero-art {
        align-self: stretch;
        background:
            radial-gradient(circle at 70% 20%, rgba(249, 115, 22, 0.16), transparent 28%),
            linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.26));
        border: 1px solid rgba(248, 250, 252, 0.12);
        border-radius: 14px;
        bottom: auto;
        box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
        grid-column: 2;
        height: min(72svh, 680px);
        left: auto;
        min-height: 500px;
        order: 2;
        position: relative;
        right: auto;
        width: 100%;
    }

    .fe-title-content {
        background: linear-gradient(90deg, rgba(21, 25, 31, 0.96), rgba(21, 25, 31, 0.82) 78%, transparent);
        grid-column: 1;
        max-width: 640px;
        padding: 0;
        width: 100%;
    }

    .fe-title-content h1 {
        font-size: clamp(58px, 6.2vw, 92px);
        max-width: 640px;
    }

    .fe-subtitle {
        font-size: 21px;
        max-width: 580px;
    }

    .fe-account-panel,
    .fe-install-panel,
    .fe-company-file-card,
    .fe-title-profile {
        max-width: 560px;
    }

    .fe-company-file-actions,
    .fe-action-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fe-action-stack .fe-btn-ghost {
        grid-column: 1 / -1;
    }

    .fe-view {
        margin: 0 auto;
        max-width: none;
        min-height: calc(100svh - 79px);
        padding: 28px 0 112px;
        width: min(1240px, calc(100vw - 56px));
    }

    .fe-setup-view {
        max-width: none;
        padding-bottom: 72px;
        width: min(920px, calc(100vw - 56px));
    }

    .fe-pad-bottom {
        padding-bottom: 116px;
    }

    .fe-briefing {
        align-items: end;
        grid-template-columns: 1fr auto;
        min-height: 260px;
        padding: 28px;
    }

    .fe-briefing h2 {
        font-size: clamp(34px, 4vw, 54px);
        max-width: 620px;
    }

    .fe-briefing p:not(.fe-kicker) {
        max-width: 620px;
    }

    .fe-grid {
        gap: 16px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fe-list,
    .fe-story-cards {
        display: grid;
        gap: 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fe-panel,
    .fe-option {
        padding: 18px;
    }

    .fe-office-row {
        grid-template-columns: 1fr auto;
    }

    .fe-office-row .fe-btn {
        width: auto;
    }

    .fe-setup-card .fe-two-actions,
    .fe-story-panel > .fe-actions {
        bottom: 18px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-left: 0;
        margin-right: 0;
    }

    .fe-bottom-nav {
        border: 1px solid rgba(248, 250, 252, 0.13);
        border-radius: 18px 18px 0 0;
        bottom: 0;
        box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.28);
        left: 50%;
        max-width: none;
        overflow: hidden;
        right: auto;
        transform: translateX(-50%);
        width: min(820px, calc(100vw - 64px));
    }

    .fe-bottom-nav button {
        min-height: 68px;
    }
}

@media (min-width: 1280px) {
    .fe-view {
        width: min(1360px, calc(100vw - 80px));
    }

    .fe-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fe-setup-view {
        width: min(1040px, calc(100vw - 80px));
    }
}

/* Premium presentation pass for the public title, intro, and main dashboard. */
.fe-intro-splash {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.38), rgba(2, 6, 23, 0.76) 48%, rgba(2, 6, 23, 0.98)),
        radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.12), transparent 28%),
        radial-gradient(circle at 74% 42%, rgba(249, 115, 22, 0.18), transparent 30%),
        url("images/freight-highway.jpg") center/cover no-repeat,
        #020617;
}

.fe-intro-splash::before {
    background:
        linear-gradient(90deg, transparent 0 24%, rgba(255, 255, 255, 0.7) 24% 26%, transparent 26% 48%, rgba(255, 255, 255, 0.86) 48% 52%, transparent 52% 74%, rgba(255, 255, 255, 0.7) 74% 76%, transparent 76%),
        linear-gradient(90deg, rgba(249, 115, 22, 0.58), transparent 18%, transparent 82%, rgba(37, 99, 235, 0.58));
    bottom: 18%;
    height: 2px;
    opacity: 0.6;
}

.fe-intro-splash::after {
    background:
        radial-gradient(ellipse at center, transparent 0 45%, rgba(0, 0, 0, 0.56) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 20%, transparent 78%, rgba(255, 255, 255, 0.05)),
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.11), transparent);
}

.fe-intro-nlb .fe-intro-ad-card,
.fe-intro-tax .fe-intro-ad-card {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(2, 6, 23, 0.88)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(226, 232, 240, 0.24);
    border-radius: 16px;
    box-shadow: 0 44px 120px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    min-height: min(58svh, 560px);
    overflow: hidden;
    position: relative;
}

.fe-intro-nlb .fe-intro-ad-card::before,
.fe-intro-tax .fe-intro-ad-card::before {
    background:
        linear-gradient(90deg, rgba(249, 115, 22, 0.95), transparent 30%),
        linear-gradient(270deg, rgba(37, 99, 235, 0.75), transparent 28%);
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.fe-intro-nlb .fe-intro-brand-icon,
.fe-intro-tax .fe-intro-brand-icon {
    background: rgba(248, 250, 252, 0.96);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52), 0 0 0 8px rgba(255, 255, 255, 0.04);
    margin-bottom: 22px;
}

.fe-intro-copy span,
.fe-intro-game > span {
    display: inline-flex;
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(251, 146, 60, 0.38);
    border-radius: 999px;
    color: #fed7aa;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.12em;
    padding: 8px 12px;
    position: relative;
    text-transform: uppercase;
    z-index: 2;
}

.fe-intro-nlb .fe-intro-copy,
.fe-intro-tax .fe-intro-copy {
    margin-top: 18px;
    overflow: visible;
}

.fe-intro-stage strong {
    text-wrap: balance;
}

.fe-intro-nlb .fe-intro-copy strong,
.fe-intro-tax .fe-intro-copy strong {
    line-height: 0.96;
    text-shadow: 0 24px 58px rgba(0, 0, 0, 0.86);
}

.fe-intro-game {
    background:
        radial-gradient(circle at 50% 38%, rgba(249, 115, 22, 0.22), transparent 26%),
        radial-gradient(circle at 50% 62%, rgba(37, 99, 235, 0.16), transparent 34%);
}

.fe-intro-game > strong {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 40%, #fed7aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 0.92;
    margin-top: 18px;
    text-shadow: none;
}

.fe-intro-empire-mark {
    border-radius: 20px;
    height: clamp(112px, 24vw, 184px);
    width: clamp(118px, 25vw, 190px);
}

.fe-title-view {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.92)),
        radial-gradient(circle at 18% 18%, rgba(249, 115, 22, 0.22), transparent 25%),
        radial-gradient(circle at 82% 36%, rgba(37, 99, 235, 0.18), transparent 30%);
}

.fe-title-content h1 {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 50%, #fed7aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0;
}

.fe-account-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.fe-company-file-card,
.fe-card,
.fe-panel,
.fe-option {
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

.fe-briefing {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.54) 58%, rgba(2, 6, 23, 0.2)),
        radial-gradient(circle at 84% 18%, rgba(249, 115, 22, 0.28), transparent 25%),
        url("images/freight-yard.jpg") center/cover no-repeat;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    isolation: isolate;
}

.fe-briefing::before {
    background:
        linear-gradient(90deg, rgba(249, 115, 22, 0.95), transparent 28%),
        linear-gradient(270deg, rgba(37, 99, 235, 0.85), transparent 25%);
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.fe-briefing h2 {
    text-wrap: balance;
}

.fe-hero-art {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.78)),
        radial-gradient(circle at 72% 18%, rgba(249, 115, 22, 0.2), transparent 28%),
        url("images/freight-highway.jpg") center/cover no-repeat;
}

.fe-hero-art::before {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.24), transparent 45%, rgba(2, 6, 23, 0.18)),
        linear-gradient(180deg, transparent 0 58%, rgba(2, 6, 23, 0.76) 100%);
}

.fe-hero-art::after {
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent),
        linear-gradient(135deg, rgba(249, 115, 22, 0.34), transparent 26%, transparent 68%, rgba(37, 99, 235, 0.34));
    content: "";
    inset: 0;
    opacity: 0.56;
    position: absolute;
}

.fe-hero-art .fe-route-line,
.fe-hero-art .fe-truck-shape,
.fe-hero-art .fe-road {
    opacity: 0;
}

.fe-grid .fe-card,
.fe-health-panel,
.fe-weekly-close,
.fe-trip-result,
.fe-office-card {
    position: relative;
}

.fe-grid .fe-card::before,
.fe-health-panel::before,
.fe-weekly-close::before {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.72), transparent 70%);
    content: "";
    height: 2px;
    left: 14px;
    opacity: 0.82;
    position: absolute;
    right: 14px;
    top: 0;
}

.fe-card h2,
.fe-panel h2,
.fe-office-card h2 {
    letter-spacing: 0;
}

@media (min-width: 900px) {
    .fe-title-view {
        background:
            linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.58) 46%, rgba(2, 6, 23, 0.1)),
            radial-gradient(circle at 16% 20%, rgba(249, 115, 22, 0.2), transparent 24%),
            radial-gradient(circle at 82% 42%, rgba(37, 99, 235, 0.2), transparent 32%);
    }

    .fe-title-content {
        background: transparent;
    }

    .fe-hero-art {
        background:
            linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.72)),
            radial-gradient(circle at 70% 20%, rgba(249, 115, 22, 0.18), transparent 28%),
            url("images/freight-highway.jpg") center/cover no-repeat;
        border-color: rgba(255, 255, 255, 0.16);
        border-radius: 22px;
        box-shadow: 0 36px 110px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    .fe-briefing {
        min-height: 300px;
    }
}

@media (max-width: 520px) {
    .fe-intro-nlb .fe-intro-ad-card,
    .fe-intro-tax .fe-intro-ad-card {
        border-radius: 14px;
    }

    .fe-intro-copy span,
    .fe-intro-game > span {
        font-size: 10px;
        letter-spacing: 0.08em;
        padding: 7px 10px;
    }
}

/* Startup simplification pass: clearer turn-based setup and stronger contrast. */
.fe-setup-card {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98)),
        #0f172a;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.fe-setup-card > .fe-kicker {
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(251, 146, 60, 0.34);
    border-radius: 999px;
    color: #fed7aa;
    display: inline-flex;
    font-size: 11px;
    padding: 7px 10px;
}

.fe-setup-card > h2 {
    color: #fff;
    font-size: clamp(28px, 8vw, 42px);
    margin-top: 10px;
}

.fe-setup-note {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.fe-setup-note strong {
    color: #fff;
}

.fe-setup-note p,
.fe-option p,
.fe-muted,
.fe-legal-small {
    color: #dbe4f0;
}

.fe-field label {
    color: #fff;
}

.fe-field input,
.fe-field select,
.fe-field textarea {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.fe-field input::placeholder,
.fe-field textarea::placeholder {
    color: #cbd5e1;
}

.fe-option {
    background:
        linear-gradient(180deg, rgba(51, 65, 85, 0.96), rgba(15, 23, 42, 0.94));
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
}

.fe-option h3 {
    color: #fff;
    font-size: 20px;
}

.fe-option.is-selected {
    background:
        linear-gradient(180deg, rgba(88, 63, 36, 0.96), rgba(30, 41, 59, 0.96));
    border-color: rgba(251, 146, 60, 0.82);
    outline: 3px solid rgba(249, 115, 22, 0.22);
}

.fe-option-title span {
    background: #16a34a;
    border-color: #22c55e;
    color: #fff;
}

.fe-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #f8fafc;
}

.fe-badge-green {
    background: rgba(22, 163, 74, 0.24);
    border-color: rgba(34, 197, 94, 0.48);
    color: #dcfce7;
}

.fe-badge-amber {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fef3c7;
}

.fe-badge-red {
    background: rgba(220, 38, 38, 0.24);
    border-color: rgba(248, 113, 113, 0.52);
    color: #fee2e2;
}

.fe-setup-card .fe-list {
    gap: 10px;
}

.fe-setup-card .fe-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
}

.fe-setup-card .fe-btn-primary {
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.34);
}

@media (min-width: 900px) {
    .fe-setup-card .fe-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Premium game-start pass: cleaner, richer, and calmer motion. */
.fe-title-view,
.fe-setup-view {
    background:
        linear-gradient(115deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.78) 42%, rgba(2, 6, 23, 0.94)),
        radial-gradient(circle at 12% 20%, rgba(249, 115, 22, 0.2), transparent 26%),
        radial-gradient(circle at 84% 18%, rgba(59, 130, 246, 0.18), transparent 30%),
        url("images/freight-highway.jpg") center/cover no-repeat;
    isolation: isolate;
    overflow-x: hidden;
    position: relative;
}

.fe-title-view::before,
.fe-setup-view::before {
    animation: fePremiumSweep 9s ease-in-out infinite;
    background:
        linear-gradient(100deg, transparent 0 28%, rgba(255, 255, 255, 0.06) 44%, transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%);
    content: "";
    inset: 0;
    opacity: 0.72;
    pointer-events: none;
    position: absolute;
    transform: translateX(-18%);
    z-index: 0;
}

.fe-title-view::after,
.fe-setup-view::after {
    background:
        linear-gradient(90deg, rgba(249, 115, 22, 0.42), transparent 30%, transparent 70%, rgba(59, 130, 246, 0.34)),
        linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.82));
    bottom: 0;
    content: "";
    height: 38%;
    left: 0;
    opacity: 0.74;
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: 0;
}

.fe-title-view > *,
.fe-setup-view > * {
    position: relative;
    z-index: 1;
}

.fe-title-content {
    animation: feScreenRise 520ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

.fe-title-content h1 {
    text-shadow: 0 18px 44px rgba(0, 0, 0, 0.44);
}

.fe-title-content .fe-btn-primary,
.fe-title-content .fe-btn-secondary {
    min-height: 52px;
}

.fe-hero-art {
    animation: feHeroFloat 8s ease-in-out infinite;
    border-radius: 18px;
    overflow: hidden;
}

.fe-hero-art::after {
    animation: feHeroLight 7s ease-in-out infinite;
}

.fe-setup-view {
    padding-bottom: calc(128px + env(safe-area-inset-bottom));
}

.fe-setup-view .fe-progress {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 14px 36px rgba(0, 0, 0, 0.26);
    height: 10px;
    margin: 2px auto 18px;
    max-width: 980px;
}

.fe-setup-view .fe-progress div {
    background: linear-gradient(90deg, #22c55e, #f59e0b 54%, #f97316);
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.48);
    overflow: hidden;
    position: relative;
    transition: width 360ms cubic-bezier(0.16, 0.84, 0.24, 1);
}

.fe-setup-view .fe-progress div::after {
    animation: feProgressShine 1.8s linear infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-100%);
}

#setupPanel {
    animation: feScreenRise 380ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
    margin-inline: auto;
    max-width: 1020px;
}

.fe-story-panel,
.fe-setup-card {
    background:
        linear-gradient(155deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9) 52%, rgba(15, 23, 42, 0.96)),
        rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    box-shadow:
        0 34px 110px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    padding: clamp(18px, 4vw, 32px);
    position: relative;
}

.fe-story-panel::before,
.fe-setup-card::before {
    background: linear-gradient(90deg, #f97316, rgba(245, 158, 11, 0.7), rgba(59, 130, 246, 0.54), transparent);
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.fe-story-panel::after,
.fe-setup-card::after {
    animation: fePanelGlow 7s ease-in-out infinite;
    background:
        radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.18), transparent 28%),
        radial-gradient(circle at 86% 14%, rgba(59, 130, 246, 0.13), transparent 24%);
    content: "";
    inset: 0;
    opacity: 0.9;
    pointer-events: none;
    position: absolute;
}

.fe-story-panel > *,
.fe-setup-card > * {
    position: relative;
    z-index: 1;
}

.fe-story-scene {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.28), rgba(2, 6, 23, 0.68)),
        url("images/freight-yard.jpg") center/cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: inset 0 -80px 90px rgba(2, 6, 23, 0.78);
    min-height: 250px;
    overflow: hidden;
    padding: clamp(18px, 4vw, 30px);
    position: relative;
}

.fe-story-scene::after {
    animation: feStoryHeadlights 4.8s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
    bottom: 34px;
    content: "";
    height: 2px;
    left: -20%;
    position: absolute;
    right: -20%;
    transform: rotate(-2deg);
}

.fe-story-scene h2,
.fe-setup-card > h2 {
    color: #fff;
    font-size: clamp(31px, 6vw, 50px);
    letter-spacing: 0;
    line-height: 0.98;
    margin-top: 12px;
    text-wrap: balance;
}

.fe-story-scene p,
.fe-setup-card > p:not(.fe-kicker),
.fe-setup-note p,
.fe-option p,
.fe-muted,
.fe-legal-small {
    color: #e2e8f0;
}

.fe-setup-card > .fe-kicker,
.fe-story-badge {
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.36);
    border-radius: 999px;
    box-shadow: 0 0 28px rgba(249, 115, 22, 0.12);
    color: #fed7aa;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 8px 11px;
    text-transform: uppercase;
}

.fe-setup-note {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fe-setup-card .fe-list {
    gap: 12px;
    margin-top: 16px;
}

.fe-setup-card .fe-option {
    animation: feOptionRise 420ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
    background:
        linear-gradient(155deg, rgba(51, 65, 85, 0.94), rgba(15, 23, 42, 0.92)),
        rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow:
        0 18px 52px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    min-height: 132px;
    padding: 16px;
    transition:
        background 170ms ease,
        border-color 170ms ease,
        box-shadow 170ms ease,
        transform 170ms ease;
}

.fe-setup-card .fe-option:nth-child(2) {
    animation-delay: 45ms;
}

.fe-setup-card .fe-option:nth-child(3) {
    animation-delay: 90ms;
}

.fe-setup-card .fe-option::before {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    bottom: 14px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.045);
    content: "";
    height: 11px;
    position: absolute;
    right: 14px;
    transition: background 170ms ease, box-shadow 170ms ease, transform 170ms ease;
    width: 11px;
}

.fe-setup-card .fe-option::after {
    background: linear-gradient(180deg, #f97316, rgba(249, 115, 22, 0));
    opacity: 0;
    width: 4px;
}

.fe-setup-card .fe-option h3 {
    color: #fff;
    font-size: 20px;
    line-height: 1.08;
}

.fe-setup-card .fe-option.is-selected {
    background:
        linear-gradient(155deg, rgba(67, 46, 28, 0.96), rgba(30, 41, 59, 0.94)),
        rgba(30, 41, 59, 0.94);
    border-color: rgba(251, 146, 60, 0.92);
    box-shadow:
        0 24px 68px rgba(0, 0, 0, 0.34),
        0 0 0 3px rgba(249, 115, 22, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    outline: none;
}

.fe-setup-card .fe-option.is-selected::before {
    background: #f97316;
    box-shadow:
        0 0 0 7px rgba(249, 115, 22, 0.18),
        0 0 28px rgba(249, 115, 22, 0.54);
    transform: scale(1.08);
}

.fe-setup-card .fe-option.is-selected::after {
    opacity: 1;
}

.fe-setup-card .fe-option-title {
    align-items: flex-start;
    gap: 10px;
}

.fe-setup-card .fe-option-title span {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(74, 222, 128, 0.44);
    color: #dcfce7;
    padding: 6px 8px;
}

.fe-setup-card .fe-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.17);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.fe-setup-card .fe-field input,
.fe-setup-card .fe-field select {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 12px 34px rgba(0, 0, 0, 0.18);
    min-height: 52px;
}

.fe-setup-card .fe-field input:focus,
.fe-setup-card .fe-field select:focus {
    border-color: rgba(251, 146, 60, 0.86);
    box-shadow:
        0 0 0 4px rgba(249, 115, 22, 0.18),
        0 16px 42px rgba(0, 0, 0, 0.24);
    outline: none;
}

.fe-setup-card .fe-actions,
.fe-story-panel .fe-actions {
    margin-top: 18px;
}

.fe-setup-card .fe-btn-primary,
.fe-story-panel .fe-btn-primary,
.fe-title-content .fe-btn-primary {
    animation: fePrimaryGlow 4s ease-in-out infinite;
    background: linear-gradient(135deg, #f97316, #f59e0b 52%, #ef4444);
    background-size: 180% 180%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 18px 46px rgba(249, 115, 22, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.fe-setup-card .fe-btn-secondary,
.fe-story-panel .fe-btn-secondary,
.fe-title-content .fe-btn-secondary {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #fff;
}

@media (hover: hover) {
    .fe-setup-card .fe-option:hover {
        border-color: rgba(251, 146, 60, 0.54);
        box-shadow:
            0 24px 70px rgba(0, 0, 0, 0.34),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transform: translateY(-3px);
    }

    .fe-setup-card .fe-btn-primary:hover,
    .fe-story-panel .fe-btn-primary:hover,
    .fe-title-content .fe-btn-primary:hover {
        transform: translateY(-2px);
    }
}

@media (min-width: 900px) {
    .fe-setup-view {
        padding: 26px 34px calc(90px + env(safe-area-inset-bottom));
    }

    .fe-story-panel,
    .fe-setup-card {
        border-radius: 22px;
    }

    .fe-title-content {
        gap: clamp(26px, 4vw, 54px);
    }
}

@media (max-width: 560px) {
    .fe-story-panel,
    .fe-setup-card {
        border-radius: 16px;
        padding: 16px;
    }

    .fe-story-scene {
        min-height: 230px;
    }

    .fe-setup-card .fe-option {
        min-height: 118px;
        padding: 14px;
    }

    .fe-setup-card .fe-option h3 {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-title-view::before,
    .fe-setup-view::before,
    .fe-title-content,
    .fe-hero-art,
    .fe-hero-art::after,
    #setupPanel,
    .fe-story-scene::after,
    .fe-story-panel::after,
    .fe-setup-card::after,
    .fe-setup-card .fe-option,
    .fe-setup-view .fe-progress div::after,
    .fe-setup-card .fe-btn-primary,
    .fe-story-panel .fe-btn-primary,
    .fe-title-content .fe-btn-primary {
        animation: none;
    }
}

@keyframes feScreenRise {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fePremiumSweep {
    0%,
    100% {
        opacity: 0.38;
        transform: translateX(-24%);
    }

    45% {
        opacity: 0.82;
        transform: translateX(18%);
    }
}

@keyframes feProgressShine {
    to {
        transform: translateX(120%);
    }
}

@keyframes fePanelGlow {
    0%,
    100% {
        opacity: 0.64;
        transform: translate3d(0, 0, 0);
    }

    50% {
        opacity: 1;
        transform: translate3d(0, -8px, 0);
    }
}

@keyframes feOptionRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fePrimaryGlow {
    0%,
    100% {
        background-position: 0% 50%;
        box-shadow:
            0 18px 46px rgba(249, 115, 22, 0.32),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    50% {
        background-position: 100% 50%;
        box-shadow:
            0 22px 58px rgba(249, 115, 22, 0.44),
            inset 0 1px 0 rgba(255, 255, 255, 0.24);
    }
}

@keyframes feHeroFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes feHeroLight {
    0%,
    100% {
        opacity: 0.34;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes feStoryHeadlights {
    0%,
    100% {
        opacity: 0.18;
        transform: translateX(-16%) rotate(-2deg);
    }

    50% {
        opacity: 0.52;
        transform: translateX(16%) rotate(-2deg);
    }
}

/* Final title and sponsor polish. */
.fe-intro-splash {
    background:
        radial-gradient(circle at 50% 18%, rgba(249, 115, 22, 0.22), transparent 28%),
        radial-gradient(circle at 84% 60%, rgba(37, 99, 235, 0.18), transparent 30%),
        radial-gradient(circle at 18% 72%, rgba(15, 118, 110, 0.14), transparent 28%),
        linear-gradient(135deg, #020617 0%, #09111f 48%, #111827 100%);
}

.fe-intro-nlb .fe-intro-ad-card,
.fe-intro-tax .fe-intro-ad-card {
    animation: feAdCardReveal 760ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03)),
        linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(2, 6, 23, 0.9));
    border-color: rgba(255, 255, 255, 0.22);
}

.fe-intro-nlb .fe-intro-ad-card::after,
.fe-intro-tax .fe-intro-ad-card::after {
    animation: feAdLightSweep 3.8s ease-in-out infinite;
    background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.18) 45%, transparent 58%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(-45%);
}

.fe-intro-nlb .fe-intro-brand-icon,
.fe-intro-tax .fe-intro-brand-icon {
    animation: feLogoSettle 900ms cubic-bezier(0.16, 0.84, 0.24, 1) 120ms both;
    transform-origin: center;
}

.fe-intro-nlb .fe-intro-copy strong,
.fe-intro-tax .fe-intro-copy strong {
    background: linear-gradient(180deg, #fff, #e2e8f0 56%, #fed7aa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.54));
}

.fe-intro-proof b,
.fe-intro-empire-stats b {
    backdrop-filter: blur(16px);
    background: rgba(15, 23, 42, 0.58);
    border-color: rgba(255, 255, 255, 0.18);
}

.fe-intro-game > strong {
    filter: drop-shadow(0 26px 64px rgba(249, 115, 22, 0.25));
}

.fe-intro-empire-mark {
    animation: feEmpireLogoSettle 1.1s cubic-bezier(0.16, 0.84, 0.24, 1) both, feEmpireLogoFloat 6s ease-in-out 1.1s infinite;
    box-shadow:
        0 34px 100px rgba(0, 0, 0, 0.56),
        0 0 72px rgba(249, 115, 22, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.fe-account-panel,
.fe-company-file-card,
.fe-title-profile {
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.84)),
        rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 14px;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
    color: #f8fafc;
}

.fe-company-file-card {
    animation: feScreenRise 460ms cubic-bezier(0.16, 0.84, 0.24, 1) 90ms both;
}

.fe-account-panel {
    animation: feScreenRise 460ms cubic-bezier(0.16, 0.84, 0.24, 1) 150ms both;
}

.fe-account-intro span,
.fe-account-head span,
.fe-company-file-card span {
    color: #fb923c;
}

.fe-account-intro strong,
.fe-account-head strong,
.fe-company-file-card h2 {
    color: #fff;
}

.fe-account-intro p,
.fe-company-file-card p,
.fe-auth-disclaimer {
    color: #dbe4f0;
}

.fe-free-badge {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.28);
}

.fe-auth-tabs {
    background: rgba(2, 6, 23, 0.42);
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
}

.fe-auth-tab {
    color: #cbd5e1;
}

.fe-auth-tab.is-active {
    background: rgba(249, 115, 22, 0.95);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.26);
    color: #fff;
}

.fe-auth-form input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    color: #fff;
}

.fe-auth-form input::placeholder {
    color: #cbd5e1;
}

.fe-auth-form input:focus {
    border-color: rgba(251, 146, 60, 0.86);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
    outline: none;
}

.fe-auth-message {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(251, 146, 60, 0.26);
    color: #fed7aa;
}

@media (min-width: 900px) {
    .fe-account-panel,
    .fe-company-file-card,
    .fe-title-profile {
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-intro-nlb .fe-intro-ad-card,
    .fe-intro-tax .fe-intro-ad-card,
    .fe-intro-nlb .fe-intro-ad-card::after,
    .fe-intro-tax .fe-intro-ad-card::after,
    .fe-intro-nlb .fe-intro-brand-icon,
    .fe-intro-tax .fe-intro-brand-icon,
    .fe-intro-empire-mark,
    .fe-company-file-card,
    .fe-account-panel {
        animation: none;
    }
}

@keyframes feAdCardReveal {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.975);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes feAdLightSweep {
    0%,
    100% {
        opacity: 0;
        transform: translateX(-44%);
    }

    44% {
        opacity: 0.7;
        transform: translateX(44%);
    }
}

@keyframes feLogoSettle {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes feEmpireLogoSettle {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes feEmpireLogoFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Desktop launch-screen rebuild. */
@media (min-width: 900px) {
    .fe-title-view {
        align-items: center;
        display: grid;
        grid-template-columns: minmax(520px, 760px);
        justify-content: start;
        min-height: 100svh;
        overflow-x: hidden;
        overflow-y: auto;
        padding: clamp(42px, 5vw, 82px) clamp(44px, 5.8vw, 92px);
    }

    .fe-title-view::before {
        background:
            linear-gradient(112deg, rgba(255, 255, 255, 0.055) 0 18%, transparent 34%),
            linear-gradient(90deg, rgba(249, 115, 22, 0.14), transparent 34%, transparent 70%, rgba(37, 99, 235, 0.16));
    }

    .fe-title-content {
        align-self: center;
        background:
            linear-gradient(145deg, rgba(2, 6, 23, 0.68), rgba(15, 23, 42, 0.52)),
            rgba(2, 6, 23, 0.46);
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 24px;
        box-shadow:
            0 40px 130px rgba(0, 0, 0, 0.44),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        display: grid;
        grid-column: 1;
        max-width: 720px;
        overflow: visible;
        padding: clamp(28px, 3vw, 42px);
    }

    .fe-title-content::before {
        background: linear-gradient(90deg, rgba(249, 115, 22, 0.86), rgba(245, 158, 11, 0.5), transparent);
        content: "";
        height: 3px;
        left: 24px;
        position: absolute;
        right: 24px;
        top: 0;
    }

    .fe-title-content h1 {
        font-size: clamp(58px, 5.2vw, 84px);
        line-height: 0.94;
        margin-bottom: 8px;
        max-width: 620px;
    }

    .fe-subtitle {
        color: rgba(248, 250, 252, 0.9);
        font-size: clamp(18px, 1.2vw, 21px);
        line-height: 1.32;
        margin: 10px 0 20px;
        max-width: 610px;
    }

    .fe-hero-art {
        display: none;
    }

    .fe-install-panel,
    .fe-company-file-card,
    .fe-account-panel,
    .fe-title-profile {
        max-width: none;
        width: 100%;
    }

    .fe-install-panel {
        background:
            linear-gradient(135deg, rgba(22, 163, 74, 0.16), rgba(15, 23, 42, 0.72)),
            rgba(15, 23, 42, 0.72);
        border-color: rgba(74, 222, 128, 0.26);
        border-radius: 16px;
        margin-bottom: 14px;
        padding: 16px;
    }

    .fe-install-panel .fe-btn-primary {
        min-height: 44px;
        padding-inline: 18px;
    }

    .fe-company-file-card {
        background:
            linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.82)),
            rgba(15, 23, 42, 0.94);
        border-color: rgba(251, 146, 60, 0.34);
        border-radius: 18px;
        gap: 12px;
        padding: 18px;
    }

    .fe-company-file-card h2 {
        font-size: 28px;
        letter-spacing: 0;
    }

    .fe-company-file-stats {
        gap: 10px;
        margin: 4px 0 2px;
    }

    .fe-company-file-stats div {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
            rgba(2, 6, 23, 0.3);
        border-color: rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        padding: 12px;
    }

    .fe-company-file-actions {
        gap: 10px;
    }

    .fe-account-panel {
        border-radius: 18px;
        margin-top: 14px;
        padding: 16px;
    }

    .fe-account-panel .fe-auth-form {
        gap: 9px;
    }

    .fe-account-panel .fe-auth-form input {
        min-height: 46px;
    }

    .fe-account-status {
        gap: 16px;
    }

    .fe-account-status strong {
        font-size: 20px;
    }

    .fe-action-stack {
        gap: 10px;
        margin-top: 2px;
    }

    .fe-action-stack .fe-btn,
    .fe-company-file-actions .fe-btn,
    .fe-account-panel .fe-btn {
        min-height: 50px;
    }

    .fe-action-stack .fe-btn-secondary {
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
        border: 1px solid rgba(255, 255, 255, 0.16);
        color: #fff;
    }

    .fe-action-stack .fe-btn-ghost {
        background: rgba(255, 255, 255, 0.055);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(226, 232, 240, 0.58);
    }

    .fe-title-content > .fe-legal-small {
        color: rgba(226, 232, 240, 0.72);
        font-size: 11px;
        margin-top: 12px;
        max-width: 620px;
    }
}

@media (min-width: 1400px) {
    .fe-title-view {
        grid-template-columns: minmax(600px, 790px);
    }

    .fe-title-content {
        max-width: 760px;
    }
}

/* Desktop no-scroll launch layout. */
@media (min-width: 900px) {
    .fe-title-view {
        grid-template-columns: minmax(0, 1180px);
        height: 100svh;
        justify-content: center;
        min-height: 0;
        overflow: hidden;
        padding: clamp(20px, 3.2vw, 48px);
        place-items: center;
    }

    .fe-title-content {
        align-items: start;
        column-gap: clamp(28px, 4vw, 56px);
        display: grid;
        grid-template-columns: minmax(340px, 1fr) minmax(360px, 430px);
        grid-template-rows: auto auto 1fr auto auto auto;
        max-height: calc(100svh - clamp(40px, 6.4vw, 96px));
        max-width: min(1180px, calc(100vw - 40px));
        overflow: hidden;
        padding: clamp(24px, 3vw, 36px);
        row-gap: 10px;
        width: 100%;
    }

    .fe-title-content > .fe-kicker {
        grid-column: 1;
        grid-row: 1;
    }

    .fe-title-content > h1 {
        font-size: clamp(54px, 5.2vw, 82px);
        grid-column: 1;
        grid-row: 2;
        margin: 4px 0 0;
        max-width: 620px;
    }

    .fe-title-content > .fe-subtitle {
        font-size: clamp(17px, 1.25vw, 20px);
        grid-column: 1;
        grid-row: 3;
        margin: 16px 0 0;
        max-width: 590px;
    }

    .fe-title-content > #installPanel {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
    }

    .fe-title-content > #companyFilePanel {
        grid-column: 2;
        grid-row: 2 / span 2;
    }

    .fe-title-content > #accountPanel {
        grid-column: 2;
        grid-row: 4;
        margin-top: 0;
    }

    .fe-title-content > #signedInMenu {
        grid-column: 2;
        grid-row: 5;
    }

    .fe-title-content > #titleProfilePanel {
        grid-column: 1;
        grid-row: 4 / span 2;
    }

    .fe-title-content > .fe-legal-small {
        grid-column: 1 / -1;
        grid-row: 6;
        margin: 6px 0 0;
    }

    .fe-install-panel {
        min-height: 72px;
        padding: 12px;
    }

    .fe-install-panel p {
        display: none;
    }

    .fe-company-file-card {
        gap: 9px;
        padding: 15px;
    }

    .fe-company-file-card h2 {
        font-size: 24px;
    }

    .fe-company-file-card p {
        font-size: 12px;
        line-height: 1.25;
    }

    .fe-company-file-stats {
        gap: 7px;
    }

    .fe-company-file-stats div {
        padding: 9px;
    }

    .fe-company-file-actions {
        gap: 8px;
    }

    .fe-account-panel {
        padding: 13px;
    }

    .fe-account-status {
        gap: 10px;
    }

    .fe-account-status strong {
        font-size: 18px;
    }

    .fe-auth-disclaimer,
    .fe-auth-message {
        font-size: 11px;
        line-height: 1.25;
    }

    .fe-action-stack {
        gap: 8px;
    }

    .fe-action-stack .fe-btn,
    .fe-company-file-actions .fe-btn,
    .fe-account-panel .fe-btn {
        min-height: 44px;
    }
}

@media (min-width: 900px) and (max-height: 760px) {
    .fe-title-content {
        padding: 22px 24px;
        row-gap: 8px;
    }

    .fe-title-content > h1 {
        font-size: clamp(48px, 5vw, 70px);
    }

    .fe-title-content > .fe-subtitle {
        font-size: 16px;
        line-height: 1.28;
        margin-top: 12px;
    }

    .fe-title-content > .fe-legal-small {
        display: none;
    }

    .fe-account-panel {
        padding: 12px;
    }
}

/* Gameplay graphics pass: clearer screens, stronger freight identity, less visual blending. */
.fe-app[data-view="home"],
.fe-app[data-view="loads"],
.fe-app[data-view="dispatch"],
.fe-app[data-view="fleet"],
.fe-app[data-view="more"],
.fe-app[data-view="leaderboard"] {
    background:
        radial-gradient(circle at 16% 10%, rgba(249, 115, 22, 0.18), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.96)),
        url("images/freight-yard.jpg") center/cover fixed no-repeat,
        #0b1120;
}

.fe-app[data-view="loads"] {
    background:
        radial-gradient(circle at 12% 10%, rgba(34, 197, 94, 0.14), transparent 24%),
        radial-gradient(circle at 92% 14%, rgba(249, 115, 22, 0.18), transparent 26%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.96)),
        url("images/freight-highway.jpg") center/cover fixed no-repeat,
        #0b1120;
}

.fe-app[data-view="dispatch"] {
    background:
        radial-gradient(circle at 52% 6%, rgba(249, 115, 22, 0.2), transparent 30%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0.96)),
        url("images/coffee-first-freight.jpg") center/cover fixed no-repeat,
        #0b1120;
}

.fe-topbar {
    backdrop-filter: blur(20px) saturate(1.25);
    background:
        linear-gradient(135deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.78));
    border-bottom-color: rgba(255, 255, 255, 0.13);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.fe-cash-pill {
    background:
        linear-gradient(135deg, rgba(22, 163, 74, 0.24), rgba(15, 23, 42, 0.74));
    border-color: rgba(74, 222, 128, 0.42);
    box-shadow: 0 12px 34px rgba(22, 163, 74, 0.12);
}

.fe-view:not(.fe-title-view):not(.fe-setup-view) {
    animation: feGameplayEnter 320ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

.fe-panel,
.fe-card {
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.78)),
        rgba(15, 23, 42, 0.88);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 18px 54px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fe-panel-head {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(30, 41, 59, 0.54));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    margin-bottom: 14px;
    padding: 14px;
}

.fe-panel-head h2,
.fe-card h2 {
    color: #fff;
    letter-spacing: 0;
}

.fe-briefing {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.58) 58%, rgba(249, 115, 22, 0.08)),
        radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.28), transparent 24%),
        url("images/freight-yard.jpg") center/cover no-repeat;
    border-color: rgba(251, 146, 60, 0.28);
    border-radius: 18px;
    box-shadow:
        0 26px 80px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.fe-briefing::before {
    animation: feDashboardSweep 5.4s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    content: "";
    height: 2px;
    left: -30%;
    position: absolute;
    right: -30%;
    top: 32%;
    transform: rotate(-2deg);
}

.fe-clock-strip div,
.fe-market-strip div,
.fe-mission-row span,
.fe-health-pill,
.fe-weekly-ledger div,
.fe-load-market div,
.fe-load-fit div,
.fe-risk-table div,
.fe-progress-grid div {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fe-health-panel {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.fe-health-panel::after {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.88), rgba(245, 158, 11, 0.78), rgba(220, 38, 38, 0.7));
    bottom: 0;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
}

.fe-health-score {
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), transparent 32%),
        linear-gradient(135deg, rgba(249, 115, 22, 0.78), rgba(245, 158, 11, 0.62));
    border-color: rgba(254, 215, 170, 0.48);
    box-shadow: 0 0 34px rgba(249, 115, 22, 0.28);
}

.fe-load-meta,
.fe-stat-row,
.fe-chip-row {
    gap: 7px;
}

.fe-chip {
    backdrop-filter: blur(14px);
    background: rgba(15, 23, 42, 0.68);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.fe-chip.is-active {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.24);
    color: #fff;
}

.fe-list > .fe-card {
    animation: feCardDeal 360ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

.fe-list > .fe-card:nth-child(2) {
    animation-delay: 45ms;
}

.fe-list > .fe-card:nth-child(3) {
    animation-delay: 90ms;
}

.fe-list > .fe-card:nth-child(4) {
    animation-delay: 135ms;
}

#loadList > .fe-card {
    background:
        linear-gradient(90deg, rgba(249, 115, 22, 0.18), transparent 7px),
        linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.86)),
        rgba(15, 23, 42, 0.94);
    border-color: rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

#loadList > .fe-card::before {
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
        linear-gradient(90deg, rgba(251, 146, 60, 0.78), rgba(59, 130, 246, 0.72));
    content: "";
    height: 3px;
    left: 18px;
    opacity: 0.85;
    position: absolute;
    right: 18px;
    top: 0;
}

.fe-load-pay {
    background: linear-gradient(180deg, #fff, #dcfce7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-size: clamp(32px, 7.5vw, 46px);
    line-height: 0.95;
    text-shadow: none;
}

.fe-load-card {
    isolation: isolate;
}

.fe-load-card.fe-lane-cold {
    border-color: rgba(125, 211, 252, 0.36);
}

.fe-load-card.fe-lane-heavy {
    border-color: rgba(251, 146, 60, 0.34);
}

.fe-load-card.fe-lane-city {
    border-color: rgba(167, 139, 250, 0.32);
}

.fe-load-card.fe-lane-weather {
    border-color: rgba(147, 197, 253, 0.38);
}

.fe-load-card.fe-lane-risk {
    border-color: rgba(248, 113, 113, 0.36);
}

.fe-load-scene,
.fe-lane-poster {
    background:
        linear-gradient(180deg, rgba(96, 165, 250, 0.26), rgba(15, 23, 42, 0.08) 48%, rgba(2, 6, 23, 0.74) 100%),
        linear-gradient(110deg, rgba(249, 115, 22, 0.16), transparent 42%),
        #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    height: 98px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.fe-load-scene::before,
.fe-lane-poster::before {
    background:
        linear-gradient(92deg, transparent 0 34%, rgba(255, 255, 255, 0.86) 35% 39%, transparent 40% 62%, rgba(255, 255, 255, 0.68) 63% 66%, transparent 67%),
        linear-gradient(176deg, transparent 0 44%, rgba(15, 23, 42, 0.92) 45% 100%);
    bottom: 0;
    content: "";
    height: 54%;
    left: 0;
    position: absolute;
    right: 0;
}

.fe-load-scene::after,
.fe-lane-poster::after {
    animation: feLaneTruck 5.2s ease-in-out infinite;
    background:
        linear-gradient(90deg, #f97316 0 38%, #f8fafc 38% 100%);
    border-radius: 5px 9px 5px 5px;
    bottom: 30px;
    box-shadow:
        9px 16px 0 -5px #020617,
        48px 16px 0 -5px #020617,
        72px 16px 0 -5px #020617,
        0 14px 26px rgba(0, 0, 0, 0.42);
    content: "";
    height: 24px;
    left: 18px;
    position: absolute;
    width: 86px;
}

.fe-load-scene span,
.fe-lane-poster span {
    background: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    box-shadow: 42px 10px 0 rgba(255, 255, 255, 0.46), 88px -5px 0 rgba(255, 255, 255, 0.34);
    height: 16px;
    left: 20px;
    opacity: 0.78;
    position: absolute;
    top: 18px;
    width: 58px;
}

.fe-load-scene i,
.fe-lane-poster i,
.fe-load-scene b,
.fe-lane-poster b {
    background: #166534;
    border-radius: 10px 10px 2px 2px;
    bottom: 36px;
    content: "";
    display: block;
    height: 26px;
    position: absolute;
    right: 32px;
    width: 13px;
}

.fe-load-scene b,
.fe-lane-poster b {
    bottom: 34px;
    height: 36px;
    right: 58px;
    width: 17px;
}

.fe-load-scene-label,
.fe-lane-headline {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin: -2px 0 8px;
}

.fe-load-scene-label span,
.fe-lane-headline span {
    color: #fed7aa;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-load-scene-label strong,
.fe-lane-headline strong {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.fe-lane-cold .fe-load-scene,
.fe-lane-cold .fe-lane-poster {
    background:
        radial-gradient(circle at 84% 18%, rgba(224, 242, 254, 0.8), transparent 15%),
        linear-gradient(180deg, rgba(14, 165, 233, 0.34), rgba(15, 23, 42, 0.18) 48%, rgba(2, 6, 23, 0.8)),
        #0f172a;
}

.fe-lane-heavy .fe-load-scene,
.fe-lane-heavy .fe-lane-poster {
    background:
        radial-gradient(circle at 74% 20%, rgba(251, 191, 36, 0.42), transparent 18%),
        linear-gradient(180deg, rgba(120, 53, 15, 0.38), rgba(15, 23, 42, 0.24) 46%, rgba(2, 6, 23, 0.84)),
        #1c1917;
}

.fe-lane-city .fe-load-scene,
.fe-lane-city .fe-lane-poster {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.7) 0 9%, transparent 9% 18%, rgba(15, 23, 42, 0.64) 18% 28%, transparent 28%),
        linear-gradient(180deg, rgba(99, 102, 241, 0.34), rgba(15, 23, 42, 0.14) 50%, rgba(2, 6, 23, 0.84)),
        #111827;
}

.fe-lane-weather .fe-load-scene,
.fe-lane-weather .fe-lane-poster {
    background:
        repeating-linear-gradient(110deg, transparent 0 12px, rgba(191, 219, 254, 0.22) 13px 15px),
        linear-gradient(180deg, rgba(59, 130, 246, 0.3), rgba(15, 23, 42, 0.38) 48%, rgba(2, 6, 23, 0.88)),
        #0f172a;
}

.fe-lane-fuel .fe-load-scene,
.fe-lane-fuel .fe-lane-poster {
    background:
        radial-gradient(circle at 82% 16%, rgba(249, 115, 22, 0.72), transparent 17%),
        linear-gradient(180deg, rgba(245, 158, 11, 0.28), rgba(15, 23, 42, 0.18) 48%, rgba(2, 6, 23, 0.86)),
        #111827;
}

.fe-lane-inspection .fe-load-scene,
.fe-lane-inspection .fe-lane-poster {
    background:
        linear-gradient(90deg, transparent 0 72%, rgba(248, 250, 252, 0.2) 72% 75%, transparent 75%),
        linear-gradient(180deg, rgba(37, 99, 235, 0.26), rgba(15, 23, 42, 0.2) 48%, rgba(2, 6, 23, 0.86)),
        #111827;
}

.fe-lane-risk .fe-load-scene,
.fe-lane-risk .fe-lane-poster {
    background:
        radial-gradient(circle at 78% 18%, rgba(248, 113, 113, 0.48), transparent 18%),
        linear-gradient(180deg, rgba(185, 28, 28, 0.22), rgba(15, 23, 42, 0.22) 48%, rgba(2, 6, 23, 0.9)),
        #111827;
}

.fe-lane-contract .fe-load-scene,
.fe-lane-contract .fe-lane-poster {
    background:
        radial-gradient(circle at 82% 18%, rgba(34, 197, 94, 0.46), transparent 17%),
        linear-gradient(180deg, rgba(22, 163, 74, 0.26), rgba(15, 23, 42, 0.18) 48%, rgba(2, 6, 23, 0.84)),
        #111827;
}

.fe-route {
    color: #fff;
    font-size: clamp(19px, 4.4vw, 27px);
    line-height: 1.08;
}

.fe-load-gate {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.5));
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
}

.fe-load-tension {
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(15, 23, 42, 0.54));
    border-color: rgba(251, 146, 60, 0.22);
    border-radius: 12px;
}

.fe-load-tension span {
    animation: fePulse 1s ease-in-out infinite;
}

.fe-badge {
    border-radius: 999px;
    font-weight: 950;
}

.fe-badge-green {
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.12);
}

.fe-badge-amber {
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.12);
}

.fe-badge-red {
    box-shadow: 0 0 22px rgba(248, 113, 113, 0.14);
}

.fe-dispatch-lock {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0.94)),
        radial-gradient(circle at 50% 20%, rgba(249, 115, 22, 0.24), transparent 32%),
        url("images/coffee-first-freight.jpg") center/cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.44);
}

.fe-dispatch-confirm {
    overflow: hidden;
    position: relative;
}

.fe-lane-poster {
    height: 132px;
    margin: 0 0 14px;
}

.fe-dispatch-lock .fe-lane-poster,
.fe-result-reveal .fe-lane-poster {
    border-color: rgba(255, 255, 255, 0.16);
    height: 150px;
}

.fe-lane-run .fe-lane-poster::after,
.fe-result-spinning .fe-lane-poster::after {
    animation-duration: 2.7s;
}

.fe-rate-confirmed {
    border-color: rgba(74, 222, 128, 0.34);
}

.fe-rate-confirmed h2 {
    animation: feConfirmPop 520ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

.fe-lock-steps-done {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fe-lock-steps-done span {
    animation: feConfirmPulse 1.4s ease-in-out infinite;
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(15, 23, 42, 0.52));
    border-color: rgba(74, 222, 128, 0.28);
}

.fe-result-shell-win {
    background:
        radial-gradient(circle at 74% 0%, rgba(34, 197, 94, 0.34), transparent 30%),
        radial-gradient(circle at 12% 12%, rgba(249, 115, 22, 0.18), transparent 24%),
        linear-gradient(145deg, rgba(6, 78, 59, 0.92), rgba(15, 23, 42, 0.98));
    border-color: rgba(74, 222, 128, 0.44);
}

.fe-result-shell-neutral {
    background:
        radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.28), transparent 32%),
        linear-gradient(145deg, rgba(37, 45, 54, 0.96), rgba(21, 25, 31, 0.98));
}

.fe-result-shell-loss {
    background:
        radial-gradient(circle at 75% 0%, rgba(220, 38, 38, 0.34), transparent 34%),
        linear-gradient(145deg, rgba(69, 10, 10, 0.88), rgba(15, 23, 42, 0.98));
    border-color: rgba(248, 113, 113, 0.46);
}

.fe-result-reveal.fe-result-win,
.fe-result-reveal:has(.fe-result-win) {
    border-color: rgba(74, 222, 128, 0.4);
}

.fe-result-reveal:has(.fe-result-loss) {
    border-color: rgba(248, 113, 113, 0.45);
}

.fe-dispatch-ticket {
    backdrop-filter: blur(18px);
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
}

.fe-trip-result {
    background:
        radial-gradient(circle at 14% 0%, rgba(34, 197, 94, 0.18), transparent 26%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.84));
    border-color: rgba(74, 222, 128, 0.28);
    border-radius: 18px;
    overflow: hidden;
}

.fe-progress-moment {
    animation: feMomentPop 560ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(34, 197, 94, 0.15)),
        rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(251, 146, 60, 0.34);
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.12);
    margin: 12px 0;
    padding: 13px;
}

.fe-progress-moment span {
    color: #fed7aa;
    display: block;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-progress-moment strong {
    color: #fff;
    display: block;
    font-size: 19px;
    line-height: 1.05;
    margin-top: 5px;
}

.fe-progress-moment p {
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
    margin: 6px 0 0;
}

.fe-trip-result::after {
    animation: feDashboardSweep 4.8s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    content: "";
    height: 100%;
    left: -80%;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: skewX(-18deg);
    width: 55%;
}

.fe-trip-numbers span {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
    border-color: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.fe-fleet-unit,
.fe-driver-card,
.fe-office-card,
.fe-upgrade-card,
.fe-contract-card {
    border-radius: 16px;
    position: relative;
}

.fe-fleet-unit::before,
.fe-driver-card::before,
.fe-upgrade-card::before,
.fe-contract-card::before {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.72), transparent);
    content: "";
    inset: 0 auto 0 0;
    position: absolute;
    width: 4px;
}

.fe-bottom-nav {
    backdrop-filter: blur(24px) saturate(1.25);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(2, 6, 23, 0.92));
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.36);
}

.fe-bottom-nav button {
    border-radius: 14px;
    transition: background 160ms ease, transform 160ms ease, color 160ms ease;
}

.fe-bottom-nav button.is-active {
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(245, 158, 11, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.fe-bottom-nav button.is-active .fe-nav-mark {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.28);
}

@media (hover: hover) {
    .fe-chip:hover,
    #loadList > .fe-card:hover,
    .fe-bottom-nav button:hover {
        transform: translateY(-2px);
    }
}

@media (min-width: 900px) {
    .fe-view:not(.fe-title-view):not(.fe-setup-view) {
        max-width: none;
        width: min(1320px, calc(100vw - 56px));
    }

    #loadList,
    #fleetPanel,
    #officePanel,
    #leaderboardList {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #loadList > .fe-card {
        min-height: 360px;
    }

    .fe-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .fe-briefing,
    .fe-health-panel,
    .fe-trip-result,
    #loadList > .fe-card {
        border-radius: 15px;
    }

    .fe-load-pay {
        font-size: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-view:not(.fe-title-view):not(.fe-setup-view),
    .fe-list > .fe-card,
    .fe-briefing::before,
    .fe-load-tension span,
    .fe-trip-result::after,
    .fe-load-scene::after,
    .fe-lane-poster::after,
    .fe-rate-confirmed h2,
    .fe-lock-steps-done span,
    .fe-progress-moment {
        animation: none;
    }
}

@keyframes feGameplayEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes feCardDeal {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes feDashboardSweep {
    0%,
    100% {
        opacity: 0;
        transform: translateX(-24%) rotate(-2deg);
    }

    42% {
        opacity: 0.72;
        transform: translateX(28%) rotate(-2deg);
    }
}

@keyframes feLaneTruck {
    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    42% {
        transform: translateX(calc(100vw * 0.025)) translateY(-2px);
    }

    68% {
        transform: translateX(calc(100vw * 0.045)) translateY(1px);
    }
}

@keyframes feConfirmPop {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes feConfirmPulse {
    0%,
    100% {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 rgba(34, 197, 94, 0);
    }

    45% {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 28px rgba(34, 197, 94, 0.16);
    }
}

@keyframes feMomentPop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Semi truck shape upgrade: applies to intro, title, load cards, and dispatch animations. */
.fe-intro-rig {
    height: 104px;
    width: 354px;
}

.fe-intro-rig::before {
    background:
        linear-gradient(90deg, transparent 0 59%, rgba(15, 23, 42, 0.8) 59% 60%, #f97316 60% 72%, #fb923c 72% 83%, #ea580c 83% 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04) 42%, rgba(15, 23, 42, 0.16) 100%),
        repeating-linear-gradient(90deg, #e5e7eb 0 26px, #cbd5e1 27px 29px);
    border-radius: 5px 22px 7px 5px;
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.32),
        inset 0 -10px 0 rgba(15, 23, 42, 0.16),
        0 0 36px rgba(251, 191, 36, 0.18);
    clip-path: polygon(0 18%, 58% 18%, 58% 0, 76% 0, 90% 19%, 100% 24%, 100% 84%, 0 84%);
    height: 70px;
    top: 10px;
    width: 318px;
}

.fe-intro-rig::after {
    background:
        radial-gradient(circle, #020617 0 44%, #64748b 45% 58%, #020617 59% 100%);
    border-radius: 999px;
    box-shadow:
        42px 0 0 0 #020617,
        43px 0 0 5px #64748b,
        44px 0 0 9px #020617,
        170px 0 0 0 #020617,
        171px 0 0 5px #64748b,
        172px 0 0 9px #020617,
        230px 0 0 0 #020617,
        231px 0 0 5px #64748b,
        232px 0 0 9px #020617;
    height: 28px;
    left: 24px;
    top: 70px;
    width: 28px;
}

.fe-intro-rig b {
    background:
        linear-gradient(125deg, rgba(219, 234, 254, 0.95), rgba(96, 165, 250, 0.62) 58%, rgba(15, 23, 42, 0.5) 59%),
        linear-gradient(90deg, transparent 0 76%, rgba(248, 250, 252, 0.8) 77% 81%, transparent 82%);
    border: 1px solid rgba(15, 23, 42, 0.28);
    border-radius: 4px 13px 3px 3px;
    box-shadow:
        -38px 23px 0 -18px #fbbf24,
        18px 23px 0 -18px #ef4444,
        27px 33px 0 -20px rgba(248, 250, 252, 0.9);
    height: 28px;
    right: 58px;
    top: 20px;
    width: 52px;
}

.fe-truck-shape {
    background:
        linear-gradient(90deg, #e5e7eb 0 66%, #111827 66% 67%, #f97316 67% 100%);
    border-radius: 4px 10px 3px 3px;
    box-shadow:
        inset 0 -7px 0 rgba(15, 23, 42, 0.18),
        20px 24px 0 -15px #020617,
        63px 24px 0 -15px #020617,
        118px 24px 0 -15px #020617,
        154px 24px 0 -15px #020617;
    clip-path: polygon(0 14%, 65% 14%, 65% 0, 86% 0, 100% 28%, 100% 88%, 0 88%);
}

.fe-semi {
    height: 48px;
    width: 218px;
}

.fe-semi::after {
    background:
        linear-gradient(125deg, rgba(219, 234, 254, 0.95), rgba(96, 165, 250, 0.58) 60%, rgba(15, 23, 42, 0.42) 61%);
    border-radius: 3px 9px 3px 3px;
    box-shadow: 18px 18px 0 -14px #fbbf24;
    height: 22px;
    right: 20px;
    top: 7px;
    width: 38px;
}

.fe-load-scene::after,
.fe-lane-poster::after,
.fe-route-animation span {
    background:
        linear-gradient(90deg, #f8fafc 0 56%, #94a3b8 56% 58%, #f97316 58% 76%, #fb923c 76% 88%, #ea580c 88% 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(15, 23, 42, 0.14));
    border-radius: 4px 12px 4px 4px;
    box-shadow:
        inset 0 -6px 0 rgba(15, 23, 42, 0.18),
        10px 18px 0 -5px #020617,
        38px 18px 0 -5px #020617,
        78px 18px 0 -5px #020617,
        101px 18px 0 -5px #020617,
        0 15px 26px rgba(0, 0, 0, 0.42);
    clip-path: polygon(0 18%, 56% 18%, 56% 0, 76% 0, 91% 24%, 100% 30%, 100% 88%, 0 88%);
    height: 32px;
    width: 126px;
}

.fe-load-scene::after,
.fe-lane-poster::after {
    bottom: 26px;
}

.fe-lane-poster::after {
    height: 38px;
    width: 154px;
}

.fe-route-animation span {
    height: 34px;
    top: 34px;
    width: 140px;
}

.fe-route-animation span::before {
    background:
        linear-gradient(125deg, rgba(219, 234, 254, 0.96), rgba(96, 165, 250, 0.58) 58%, rgba(15, 23, 42, 0.5) 59%);
    border-radius: 3px 9px 3px 3px;
    content: "";
    height: 14px;
    position: absolute;
    right: 18px;
    top: 6px;
    width: 25px;
}

.fe-route-animation span::after {
    background: #020617;
    border-radius: 999px;
    box-shadow:
        28px 0 0 #020617,
        68px 0 0 #020617,
        92px 0 0 #020617;
    height: 10px;
    left: 12px;
    top: 27px;
    width: 10px;
}

#leaderboardList {
    grid-template-columns: 1fr !important;
}

#leaderboardList > .fe-leader-list {
    width: 100%;
}

/* Fleet clarity and urgent event prompts. */
.fe-urgent-prompt {
    animation: feMomentPop 520ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
    align-items: center;
    background:
        radial-gradient(circle at 92% 0%, rgba(249, 115, 22, 0.28), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.84));
    border: 1px solid rgba(251, 146, 60, 0.38);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 0 14px;
    overflow: hidden;
    padding: 14px;
    position: relative;
}

.fe-urgent-prompt::before {
    background: linear-gradient(180deg, #f97316, #f59e0b);
    content: "";
    inset: 0 auto 0 0;
    position: absolute;
    width: 5px;
}

.fe-urgent-danger {
    border-color: rgba(248, 113, 113, 0.48);
}

.fe-urgent-danger::before {
    background: linear-gradient(180deg, #ef4444, #f97316);
}

.fe-urgent-prompt span {
    color: #fed7aa;
    display: block;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-urgent-danger span {
    color: #fecaca;
}

.fe-urgent-prompt h2 {
    color: #fff;
    font-size: 20px;
    line-height: 1.05;
    margin: 4px 0 5px;
}

.fe-urgent-prompt p {
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.fe-urgent-actions {
    display: grid;
    gap: 8px;
    min-width: 128px;
}

.fe-yard-hero {
    overflow: hidden;
}

.fe-yard-alerts {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fe-yard-alert {
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    padding: 13px;
}

.fe-yard-alert-warning {
    border-color: rgba(251, 191, 36, 0.32);
}

.fe-yard-alert-danger {
    border-color: rgba(248, 113, 113, 0.42);
}

.fe-yard-alert-success {
    border-color: rgba(74, 222, 128, 0.32);
}

.fe-yard-alert span {
    color: #fed7aa;
    display: block;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-yard-alert strong {
    color: #fff;
    display: block;
    font-size: 16px;
    line-height: 1.08;
    margin-top: 5px;
}

.fe-yard-alert p {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    margin: 7px 0 0;
}

.fe-yard-card {
    min-height: 0;
    overflow: hidden;
}

.fe-yard-card-head {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.fe-yard-card-head h2 {
    line-height: 1.05;
}

.fe-yard-truck-mark {
    background:
        linear-gradient(180deg, rgba(96, 165, 250, 0.22), rgba(15, 23, 42, 0.4)),
        #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    height: 72px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.fe-yard-truck-mark::before {
    background:
        linear-gradient(92deg, transparent 0 34%, rgba(255, 255, 255, 0.76) 35% 39%, transparent 40% 62%, rgba(255, 255, 255, 0.54) 63% 66%, transparent 67%),
        linear-gradient(176deg, transparent 0 44%, rgba(15, 23, 42, 0.92) 45% 100%);
    bottom: 0;
    content: "";
    height: 56%;
    left: 0;
    position: absolute;
    right: 0;
}

.fe-yard-truck-mark span {
    background:
        radial-gradient(circle at 97% 68%, #fde68a 0 2px, transparent 3px),
        linear-gradient(126deg, transparent 0 69%, rgba(219, 234, 254, 0.94) 70% 76%, rgba(30, 41, 59, 0.72) 77% 82%, transparent 83%),
        linear-gradient(90deg, #f8fafc 0 53%, #94a3b8 53% 55%, #f97316 55% 73%, #fb923c 73% 85%, #c2410c 85% 100%),
        repeating-linear-gradient(90deg, transparent 0 17px, rgba(15, 23, 42, 0.16) 18px 20px);
    border-radius: 4px 12px 4px 4px;
    bottom: 20px;
    box-shadow:
        10px 18px 0 -5px #020617,
        38px 18px 0 -5px #020617,
        78px 18px 0 -5px #020617,
        101px 18px 0 -5px #020617;
    clip-path: polygon(0 18%, 56% 18%, 56% 0, 76% 0, 91% 24%, 100% 30%, 100% 88%, 0 88%);
    height: 30px;
    left: 18px;
    position: absolute;
    width: 122px;
}

.fe-driver-avatar {
    align-items: center;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 34%),
        linear-gradient(135deg, #f97316, #2563eb);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    color: #fff;
    display: flex;
    font-size: 24px;
    font-weight: 950;
    height: 56px;
    justify-content: center;
    margin-bottom: 12px;
    width: 56px;
}

.fe-yard-meters {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.fe-yard-meter {
    display: grid;
    gap: 6px;
}

.fe-yard-meter div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.fe-yard-meter span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-yard-meter strong {
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.fe-yard-meter i {
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    display: block;
    height: 9px;
    overflow: hidden;
}

.fe-yard-meter b {
    background: linear-gradient(90deg, #22c55e, #84cc16);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.fe-yard-meter-watch b {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.fe-yard-meter-bad b {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.fe-yard-facts {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.fe-yard-facts div {
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    min-width: 0;
    padding: 9px;
}

.fe-yard-facts span {
    color: var(--muted);
    display: block;
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-yard-facts strong {
    color: #fff;
    display: block;
    font-size: 12px;
    line-height: 1.15;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .fe-urgent-prompt,
    .fe-yard-alerts {
        grid-template-columns: 1fr;
    }

    .fe-urgent-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
    }
}

/* Realism pass: sharper tractor-trailer details and smoother road motion. */
.fe-intro-rig {
    filter:
        drop-shadow(0 34px 34px rgba(0, 0, 0, 0.66))
        drop-shadow(0 0 18px rgba(251, 191, 36, 0.12));
}

.fe-intro-rig::before {
    background:
        radial-gradient(circle at 95% 68%, #fde68a 0 2px, transparent 3px),
        radial-gradient(circle at 86% 18%, #fca5a5 0 2px, transparent 3px),
        linear-gradient(125deg, transparent 0 68%, rgba(219, 234, 254, 0.92) 69% 76%, rgba(30, 41, 59, 0.72) 77% 82%, transparent 83%),
        linear-gradient(90deg, transparent 0 59%, rgba(15, 23, 42, 0.82) 59% 60%, #f97316 60% 71%, #fb923c 71% 82%, #c2410c 82% 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.05) 42%, rgba(15, 23, 42, 0.2) 100%),
        repeating-linear-gradient(90deg, #f8fafc 0 24px, #cbd5e1 25px 27px, #e2e8f0 28px 30px);
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.38),
        inset 0 -11px 0 rgba(15, 23, 42, 0.18),
        inset 0 3px 0 rgba(255, 255, 255, 0.28),
        0 0 38px rgba(251, 191, 36, 0.18);
}

.fe-intro-rig::after {
    animation: feWheelPulse 420ms linear infinite;
    background:
        radial-gradient(circle, #94a3b8 0 18%, #020617 19% 45%, #64748b 46% 58%, #020617 59% 100%);
    box-shadow:
        43px 0 0 0 #020617,
        43px 0 0 5px #64748b,
        43px 0 0 9px #020617,
        171px 0 0 0 #020617,
        171px 0 0 5px #64748b,
        171px 0 0 9px #020617,
        232px 0 0 0 #020617,
        232px 0 0 5px #64748b,
        232px 0 0 9px #020617;
}

.fe-truck-shape {
    background:
        radial-gradient(circle at 96% 70%, #fde68a 0 2px, transparent 3px),
        linear-gradient(125deg, transparent 0 70%, rgba(219, 234, 254, 0.94) 71% 78%, rgba(30, 41, 59, 0.7) 79% 84%, transparent 85%),
        linear-gradient(90deg, #f8fafc 0 63%, #94a3b8 63% 65%, #f97316 65% 78%, #fb923c 78% 88%, #c2410c 88% 100%),
        repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.1) 0 2px, transparent 2px 24px);
}

.fe-load-scene::after,
.fe-lane-poster::after,
.fe-route-animation span {
    background:
        radial-gradient(circle at 97% 68%, #fde68a 0 2px, transparent 3px),
        radial-gradient(circle at 86% 71%, #ef4444 0 1.5px, transparent 2px),
        linear-gradient(126deg, transparent 0 69%, rgba(219, 234, 254, 0.94) 70% 76%, rgba(30, 41, 59, 0.72) 77% 82%, transparent 83%),
        linear-gradient(90deg, #f8fafc 0 53%, #94a3b8 53% 55%, #f97316 55% 73%, #fb923c 73% 85%, #c2410c 85% 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.05) 48%, rgba(15, 23, 42, 0.2) 100%),
        repeating-linear-gradient(90deg, transparent 0 17px, rgba(15, 23, 42, 0.16) 18px 20px);
    border-bottom: 2px solid rgba(15, 23, 42, 0.52);
    box-shadow:
        inset 0 -6px 0 rgba(15, 23, 42, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.28),
        10px 18px 0 -5px #020617,
        38px 18px 0 -5px #020617,
        78px 18px 0 -5px #020617,
        101px 18px 0 -5px #020617,
        0 15px 26px rgba(0, 0, 0, 0.42);
}

.fe-lane-poster::after {
    box-shadow:
        inset 0 -7px 0 rgba(15, 23, 42, 0.22),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        13px 23px 0 -6px #020617,
        48px 23px 0 -6px #020617,
        96px 23px 0 -6px #020617,
        126px 23px 0 -6px #020617,
        0 18px 34px rgba(0, 0, 0, 0.48);
}

.fe-route-animation span {
    animation: feRouteTruckReal 2.8s cubic-bezier(0.16, 0.78, 0.18, 1) infinite;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.38));
}

.fe-route-animation span::before {
    background:
        linear-gradient(126deg, rgba(219, 234, 254, 0.98), rgba(96, 165, 250, 0.62) 52%, rgba(15, 23, 42, 0.64) 53%),
        linear-gradient(90deg, transparent 0 62%, rgba(248, 250, 252, 0.86) 63% 68%, transparent 69%);
    box-shadow:
        -15px 11px 0 -12px #f8fafc,
        20px 14px 0 -12px #fde68a;
}

.fe-route-animation::after {
    animation: feRoadRush 520ms linear infinite;
    background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, 0.18) 27px 42px, transparent 43px 78px);
    bottom: 22px;
    content: "";
    height: 2px;
    left: 0;
    opacity: 0.8;
    position: absolute;
    right: 0;
}

@keyframes feLaneTruck {
    0%,
    100% {
        transform: translateX(0) translateY(0) rotate(-0.2deg);
    }

    28% {
        transform: translateX(calc(100vw * 0.018)) translateY(-1px) rotate(0.2deg);
    }

    56% {
        transform: translateX(calc(100vw * 0.038)) translateY(1px) rotate(-0.15deg);
    }

    78% {
        transform: translateX(calc(100vw * 0.052)) translateY(-1px) rotate(0.12deg);
    }
}

@keyframes feRouteTruckReal {
    0% {
        opacity: 0;
        transform: translateX(-22px) translateY(1px) scale(0.92);
    }

    10% {
        opacity: 1;
    }

    42% {
        transform: translateX(calc(42vw - 78px)) translateY(-2px) scale(1);
    }

    74% {
        opacity: 1;
        transform: translateX(calc(78vw - 116px)) translateY(1px) scale(1.02);
    }

    100% {
        opacity: 0;
        transform: translateX(calc(100vw - 70px)) translateY(0) scale(1.04);
    }
}

@keyframes feRoadRush {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-78px);
    }
}

@keyframes feWheelPulse {
    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.28);
    }
}

/* Stronger gameplay animation and fleet readability pass. */
.fe-run-stage {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(2, 6, 23, 0.78), rgba(15, 23, 42, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    display: grid;
    gap: 7px;
    grid-template-columns: auto minmax(0, 1fr) 18px auto minmax(0, 1fr) 18px auto minmax(0, 1fr) 18px auto minmax(0, 1fr);
    margin: 0 0 14px;
    overflow: hidden;
    padding: 10px;
}

/* Studio-logo intro pass: creator marks only, no ad-card presentation. */
.fe-intro-boot {
    display: block;
    opacity: 1;
    visibility: visible;
}

.fe-intro-boot .fe-intro-nlb {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fe-title-content > .fe-kicker {
    display: none;
}

.fe-intro-nlb .fe-intro-ad-card,
.fe-intro-tax .fe-intro-ad-card {
    align-content: center;
    animation: feStudioCardIn 880ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
    background:
        radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.16), transparent 31%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.48), rgba(2, 6, 23, 0.86));
    border: 1px solid rgba(226, 232, 240, 0.22);
    border-radius: 22px;
    box-shadow:
        0 48px 130px rgba(0, 0, 0, 0.74),
        0 0 90px rgba(249, 115, 22, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    gap: 18px;
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: min(52svh, 500px);
    padding: clamp(26px, 6vw, 58px);
    text-align: center;
    width: min(760px, calc(100vw - 28px));
}

.fe-intro-nlb .fe-intro-ad-card::before,
.fe-intro-tax .fe-intro-ad-card::before {
    animation: feStudioTopLine 2400ms ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.95), rgba(248, 250, 252, 0.92), rgba(37, 99, 235, 0.82), transparent);
    height: 2px;
}

.fe-intro-nlb .fe-intro-ad-card::after,
.fe-intro-tax .fe-intro-ad-card::after {
    animation: feStudioSweep 2600ms ease-in-out infinite;
    background: linear-gradient(108deg, transparent 0 38%, rgba(255, 255, 255, 0.2) 48%, transparent 58%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(-52%);
}

.fe-intro-nlb .fe-intro-brand-icon,
.fe-intro-tax .fe-intro-brand-icon {
    animation: feStudioLogoIn 980ms cubic-bezier(0.16, 0.84, 0.24, 1) 90ms both;
    border-radius: 24px;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.56),
        0 0 0 10px rgba(255, 255, 255, 0.045),
        0 0 80px rgba(249, 115, 22, 0.18);
    height: clamp(92px, 17vw, 142px);
    margin: 0;
    width: clamp(92px, 17vw, 142px);
}

.fe-intro-tax .fe-intro-brand-icon {
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.58),
        0 0 0 10px rgba(255, 255, 255, 0.045),
        0 0 82px rgba(37, 99, 235, 0.2);
}

.fe-intro-nlb .fe-intro-copy,
.fe-intro-tax .fe-intro-copy {
    margin-top: 2px;
    max-width: 100%;
    overflow: visible;
    text-align: center;
}

.fe-intro-copy span,
.fe-intro-game > span {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: rgba(226, 232, 240, 0.72);
    display: block;
    font-size: clamp(10px, 1.8vw, 13px);
    letter-spacing: 0.16em;
    padding: 0;
}

.fe-intro-nlb .fe-intro-copy strong,
.fe-intro-tax .fe-intro-copy strong {
    background: linear-gradient(180deg, #fff 0%, #e2e8f0 64%, #fed7aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    filter: drop-shadow(0 22px 52px rgba(0, 0, 0, 0.6));
    line-height: 0.98;
    margin-top: 14px;
    max-width: calc(100vw - 56px);
    overflow: visible;
    text-align: center;
    text-overflow: clip;
    white-space: nowrap;
}

.fe-intro-nlb .fe-intro-copy strong {
    font-size: clamp(28px, 6.8vw, 64px);
}

.fe-intro-tax .fe-intro-copy strong {
    font-size: clamp(20px, 4.75vw, 48px);
}

.fe-intro-nlb .fe-intro-copy p,
.fe-intro-tax .fe-intro-copy p,
.fe-intro-nlb .fe-intro-proof,
.fe-intro-tax .fe-intro-proof {
    display: none;
}

.fe-intro-nlb {
    animation: feIntroStage 2400ms cubic-bezier(0.16, 0.8, 0.2, 1) both;
}

.fe-intro-tax {
    animation: feIntroStage 2400ms cubic-bezier(0.16, 0.8, 0.2, 1) 2400ms both;
}

.fe-intro-game {
    animation: feIntroStageFinal 3350ms cubic-bezier(0.16, 0.8, 0.2, 1) 4800ms both;
}

@media (max-width: 520px) {
    .fe-intro-nlb .fe-intro-ad-card,
    .fe-intro-tax .fe-intro-ad-card {
        border-radius: 18px;
        min-height: 44svh;
        padding: 24px 14px;
        width: calc(100vw - 24px);
    }

    .fe-intro-nlb .fe-intro-brand-icon,
    .fe-intro-tax .fe-intro-brand-icon {
        height: 88px;
        width: 88px;
    }

    .fe-intro-nlb .fe-intro-copy strong {
        font-size: clamp(25px, 7vw, 34px);
        max-width: calc(100vw - 34px);
    }

    .fe-intro-tax .fe-intro-copy strong {
        font-size: clamp(16px, 4.65vw, 23px);
        max-width: calc(100vw - 34px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-intro-splash:not(.is-finished) .fe-intro-nlb,
    .fe-intro-splash:not(.is-finished) .fe-intro-tax {
        opacity: 0;
    }

    .fe-intro-splash:not(.is-finished) .fe-intro-game {
        filter: none;
        opacity: 1;
        transform: none;
    }

    .fe-intro-splash:not(.is-finished) .fe-intro-empire-mark,
    .fe-intro-splash:not(.is-finished) .fe-intro-game > span,
    .fe-intro-splash:not(.is-finished) .fe-intro-game > strong,
    .fe-intro-splash:not(.is-finished) .fe-intro-game > p,
    .fe-intro-splash:not(.is-finished) .fe-intro-empire-stats {
        opacity: 1;
    }
}

@keyframes feStudioCardIn {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes feStudioLogoIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.82);
    }
    58% {
        opacity: 1;
        transform: translateY(0) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes feStudioSweep {
    0%, 38% {
        transform: translateX(-62%);
    }
    72%, 100% {
        transform: translateX(62%);
    }
}

@keyframes feStudioTopLine {
    0%, 100% {
        opacity: 0.48;
        transform: scaleX(0.38);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Cinematic intro refinement: full-screen studio bumpers, no clipped URLs. */
.fe-intro-splash {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.58)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.44), transparent 26%, transparent 74%, rgba(0, 0, 0, 0.44)),
        linear-gradient(135deg, #020617 0%, #07111f 50%, #0f172a 100%);
}

.fe-intro-splash::before {
    animation: feCinemaRoad 2200ms ease-in-out infinite;
    background:
        linear-gradient(90deg, transparent, rgba(248, 250, 252, 0.18), transparent),
        repeating-linear-gradient(90deg, transparent 0 92px, rgba(248, 250, 252, 0.38) 92px 118px, transparent 118px 192px);
    bottom: 18%;
    height: 2px;
    opacity: 0.48;
    transform: perspective(620px) rotateX(63deg) skewY(-5deg);
}

.fe-intro-splash::after {
    animation: feCinemaLightPan 6800ms ease-in-out both;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 14%, transparent 84%, rgba(255, 255, 255, 0.035)),
        linear-gradient(106deg, transparent 0 34%, rgba(255, 255, 255, 0.11) 46%, transparent 58%),
        radial-gradient(ellipse at 50% 44%, transparent 0 42%, rgba(0, 0, 0, 0.64) 100%);
}

.fe-intro-loads,
.fe-intro-hud {
    display: none;
}

.fe-intro-rig {
    bottom: 17%;
    opacity: 0.22;
}

.fe-intro-stage {
    padding: max(28px, env(safe-area-inset-top)) 14px max(76px, env(safe-area-inset-bottom));
}

.fe-intro-nlb .fe-intro-ad-card,
.fe-intro-tax .fe-intro-ad-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: min(50svh, 460px);
    padding: 0;
    width: min(940px, calc(100vw - 24px));
}

.fe-intro-nlb .fe-intro-ad-card::before,
.fe-intro-tax .fe-intro-ad-card::before {
    animation: feStudioTopLine 2600ms ease-in-out infinite;
    bottom: auto;
    left: 50%;
    max-width: min(460px, calc(100vw - 72px));
    right: auto;
    top: calc(50% + clamp(108px, 19vw, 162px));
    transform: translateX(-50%);
    width: 46vw;
}

.fe-intro-nlb .fe-intro-ad-card::after,
.fe-intro-tax .fe-intro-ad-card::after {
    animation: feCinemaLogoSweep 3200ms ease-in-out infinite;
    inset: -18%;
}

.fe-intro-nlb .fe-intro-brand-icon,
.fe-intro-tax .fe-intro-brand-icon {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(226, 232, 240, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    height: clamp(88px, 13vw, 144px);
    padding: clamp(8px, 1.5vw, 13px);
    width: clamp(88px, 13vw, 144px);
}

.fe-intro-tax .fe-intro-brand-icon {
    background: linear-gradient(180deg, #07111f, #0f172a);
}

.fe-intro-copy span,
.fe-intro-game > span {
    color: rgba(203, 213, 225, 0.78);
    font-size: clamp(9px, 1.35vw, 12px);
    letter-spacing: 0.18em;
}

.fe-intro-nlb .fe-intro-copy strong,
.fe-intro-tax .fe-intro-copy strong {
    filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.74));
    letter-spacing: 0;
    line-height: 1.03;
    margin-left: auto;
    margin-right: auto;
    max-width: calc(100vw - 32px);
    width: max-content;
}

.fe-intro-nlb .fe-intro-copy strong {
    font-size: clamp(25px, 5.25vw, 58px);
}

.fe-intro-tax .fe-intro-copy strong {
    font-size: clamp(18px, 3.85vw, 42px);
}

.fe-intro-game {
    background:
        linear-gradient(180deg, transparent, rgba(249, 115, 22, 0.045) 54%, transparent),
        radial-gradient(ellipse at 50% 45%, rgba(249, 115, 22, 0.18), transparent 34%);
}

.fe-intro-game > strong {
    font-size: clamp(39px, 10.5vw, 112px);
    max-width: calc(100vw - 24px);
}

@media (max-width: 520px) {
    .fe-intro-nlb .fe-intro-ad-card,
    .fe-intro-tax .fe-intro-ad-card {
        min-height: 42svh;
        width: calc(100vw - 18px);
    }

    .fe-intro-nlb .fe-intro-copy strong {
        font-size: clamp(22px, 6.4vw, 31px);
        max-width: calc(100vw - 24px);
    }

    .fe-intro-tax .fe-intro-copy strong {
        font-size: clamp(14px, 4.05vw, 20px);
        max-width: calc(100vw - 24px);
    }

    .fe-intro-game > strong {
        font-size: clamp(34px, 10vw, 52px);
        white-space: normal;
    }
}

@media (min-width: 960px) {
    .fe-intro-nlb .fe-intro-copy strong {
        font-size: clamp(42px, 4.35vw, 62px);
    }

    .fe-intro-tax .fe-intro-copy strong {
        font-size: clamp(32px, 3.15vw, 46px);
    }
}

@keyframes feCinemaLightPan {
    0% {
        opacity: 0.78;
        transform: translateX(-18%) skewX(-8deg);
    }
    48% {
        opacity: 1;
        transform: translateX(0) skewX(-8deg);
    }
    100% {
        opacity: 0.84;
        transform: translateX(18%) skewX(-8deg);
    }
}

@keyframes feCinemaLogoSweep {
    0%, 44% {
        opacity: 0;
        transform: translateX(-44%) skewX(-12deg);
    }
    62% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(44%) skewX(-12deg);
    }
}

@keyframes feCinemaRoad {
    0%, 100% {
        opacity: 0.32;
        transform: translateX(-24px) perspective(620px) rotateX(63deg) skewY(-5deg);
    }
    50% {
        opacity: 0.62;
        transform: translateX(28px) perspective(620px) rotateX(63deg) skewY(-5deg);
    }
}

/* Remove decorative tag/chip feel from the public shell. */
.fe-intro-game > span,
.fe-intro-empire-stats,
.fe-free-badge,
.fe-nav-mark {
    display: none !important;
}

.fe-bottom-nav button {
    gap: 0;
}

.fe-bottom-nav button > span:last-child,
.fe-bottom-nav button > span:only-child {
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
}

.fe-account-intro {
    align-items: start;
}

.fe-account-intro span {
    display: none;
}

.fe-run-stage span {
    align-items: center;
    background: rgba(148, 163, 184, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: #e5e7eb;
    display: flex;
    font-size: 11px;
    font-weight: 950;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.fe-run-stage b {
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 950;
    line-height: 1.1;
    text-transform: uppercase;
}

.fe-run-stage i {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.58));
    border-radius: 999px;
    display: block;
    height: 3px;
}

.fe-run-stage-call span:nth-of-type(1),
.fe-run-stage-rate span:nth-of-type(-n+2),
.fe-run-stage-road span:nth-of-type(-n+3),
.fe-run-stage-settle span {
    animation: feStagePop 480ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    border-color: rgba(254, 215, 170, 0.54);
    color: #fff;
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.22);
}

.fe-run-stage-rate i:nth-of-type(1),
.fe-run-stage-road i:nth-of-type(-n+2),
.fe-run-stage-settle i {
    background: linear-gradient(90deg, #f97316, #f59e0b);
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.18);
}

.fe-lane-poster {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -24px 40px rgba(0, 0, 0, 0.22);
}

.fe-lane-poster::before,
.fe-load-scene::before {
    animation: feRoadDepth 1.4s linear infinite;
}

.fe-lane-poster span,
.fe-load-scene span {
    animation: feCloudDrift 12s linear infinite;
}

.fe-jackpot-lights span {
    height: 10px;
}

.fe-slot-window {
    box-shadow:
        inset 0 22px 32px rgba(0, 0, 0, 0.34),
        inset 0 -18px 26px rgba(0, 0, 0, 0.28),
        0 18px 42px rgba(0, 0, 0, 0.2);
}

.fe-slot-reel span {
    min-height: 48px;
}

.fe-yard-command {
    animation: feMomentPop 520ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
    background:
        radial-gradient(circle at 90% 0%, rgba(249, 115, 22, 0.28), transparent 32%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.82));
    border: 1px solid rgba(251, 146, 60, 0.35);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    display: grid;
    gap: 8px;
    padding: 15px;
}

.fe-yard-command span {
    color: #fed7aa;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.fe-yard-command h2 {
    color: #fff;
    font-size: 23px;
    line-height: 1.04;
    margin: 0;
}

.fe-yard-command p {
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 820;
    line-height: 1.35;
    margin: 0;
}

.fe-yard-alert,
.fe-yard-card,
.fe-yard-command {
    position: relative;
}

.fe-yard-alert::after,
.fe-yard-card::after,
.fe-yard-command::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    content: "";
    height: 1px;
    left: 12px;
    position: absolute;
    right: 12px;
    top: 0;
}

.fe-yard-meter i {
    height: 11px;
}

.fe-yard-meter b {
    transition: width 320ms cubic-bezier(0.16, 0.84, 0.24, 1);
}

@media (min-width: 900px) {
    .fe-fleet-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fe-fleet-section h3 {
        grid-column: 1 / -1;
    }

    .fe-yard-alerts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .fe-run-stage {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        text-align: center;
    }

    .fe-run-stage i {
        display: none;
    }

    .fe-run-stage span {
        margin: 0 auto;
    }

    .fe-run-stage b {
        font-size: 9px;
    }

    .fe-yard-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-run-stage span,
    .fe-lane-poster::before,
    .fe-load-scene::before,
    .fe-lane-poster span,
    .fe-load-scene span,
    .fe-yard-command {
        animation: none;
    }
}

@keyframes feStagePop {
    from {
        opacity: 0.65;
        transform: scale(0.82);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes feRoadDepth {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 86px 0, 0 0;
    }
}

@keyframes feCloudDrift {
    from {
        transform: translateX(-8px);
    }

    to {
        transform: translateX(82px);
    }
}

/* Clean desktop title screen. Keep this at the end so it wins over older title rules. */
@media (min-width: 960px) {
    .fe-title-view {
        align-items: center;
        display: flex;
        justify-content: center;
        min-height: 100svh;
        overflow: hidden;
        padding: clamp(24px, 3vw, 42px);
    }

    .fe-title-content {
        align-items: center;
        display: grid;
        grid-template-columns: minmax(440px, 1.1fr) minmax(360px, 430px);
        grid-template-rows: auto auto 1fr auto;
        max-height: calc(100svh - 48px);
        max-width: 1160px;
        min-height: min(720px, calc(100svh - 48px));
        padding: clamp(34px, 4vw, 58px);
        row-gap: 14px;
        width: min(100%, 1160px);
    }

    .fe-title-content > h1 {
        align-self: end;
        font-size: clamp(64px, 6vw, 92px);
        grid-column: 1;
        grid-row: 1;
        line-height: 0.94;
        max-width: 620px;
    }

    .fe-title-content > .fe-subtitle {
        align-self: start;
        font-size: clamp(18px, 1.35vw, 22px);
        grid-column: 1;
        grid-row: 2;
        line-height: 1.25;
        margin: 12px 0 0;
        max-width: 540px;
    }

    .fe-title-content > #installPanel {
        align-self: start;
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        max-width: 430px;
        width: 100%;
    }

    .fe-title-content > #companyFilePanel {
        display: none;
    }

    .fe-title-content > #accountPanel {
        align-self: center;
        grid-column: 2;
        grid-row: 2 / span 2;
        margin: 0;
        width: 100%;
    }

    .fe-title-content > #signedInMenu {
        grid-column: 2;
        grid-row: 4;
        margin: 0;
    }

    .fe-title-content > #titleProfilePanel {
        align-self: start;
        grid-column: 2;
        grid-row: 2 / span 2;
        margin: 0;
    }

    .fe-title-content > .fe-legal-small {
        align-self: end;
        grid-column: 1 / -1;
        grid-row: 4;
        margin: 0;
        max-width: 720px;
    }

    .fe-account-panel {
        max-width: 430px;
        padding: 18px;
    }

    .fe-account-intro {
        margin-bottom: 12px;
        min-height: 0;
    }

    .fe-account-intro strong {
        font-size: 22px;
    }

    .fe-auth-form {
        gap: 10px;
    }

    .fe-auth-form input,
    .fe-account-panel .fe-btn {
        min-height: 48px;
    }

    .fe-login-share {
        display: none;
    }

    .fe-install-panel {
        box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
        min-height: 0;
    }

    .fe-install-panel p {
        display: none;
    }
}

@media (min-width: 960px) and (max-height: 760px) {
    .fe-title-content {
        min-height: calc(100svh - 40px);
        padding: 28px 34px;
    }

    .fe-title-content > h1 {
        font-size: clamp(52px, 5.2vw, 74px);
    }

    .fe-title-content > .fe-subtitle {
        font-size: 17px;
        max-width: 500px;
    }
}
