@font-face {
  font-family: "FC Display";
  src: url("/fonts/roboto-condensed-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
}

:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; background: #030a08; }
body { color: #f1eee7; font-family: "FC Display"; }
a { color: inherit; }

.fc404 {
  --fc: #008061;
  --px: 0px;
  --py: 0px;
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: max(24px, env(safe-area-inset-top)) max(34px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(34px, env(safe-area-inset-left));
  overflow: hidden;
  background: radial-gradient(circle at 72% 38%, rgba(0,128,97,.18), transparent 29%), linear-gradient(135deg, #020705 0%, #07100d 56%, #020705 100%);
}
.fc404::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(3,10,8,.96) 0%, rgba(3,10,8,.48) 47%, rgba(3,10,8,.1) 100%); pointer-events: none; }
.fc404-atmosphere { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.fc404-grid { position: absolute; inset: -5%; opacity: .44; background-image: linear-gradient(rgba(236,243,239,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(236,243,239,.08) 1px, transparent 1px); background-size: clamp(48px,5vw,92px) clamp(48px,5vw,92px); mask-image: radial-gradient(circle at 68% 48%, #000 0 44%, transparent 78%); animation: fc404Grid .65s ease-out both; }
.fc404-scan { position: absolute; z-index: 3; top: -10%; bottom: -10%; left: 69%; width: 1px; background: linear-gradient(transparent, rgba(0,128,97,.8), transparent); box-shadow: 0 0 30px rgba(0,128,97,.55); animation: fc404Scan 12s ease-in-out 3s infinite alternate; }
.fc404-map { position: absolute; width: 112%; height: 112%; left: -4%; top: -6%; overflow: visible; transform: translate3d(var(--px),var(--py),0); transition: transform 200ms ease-out; }
.fc404-cartography { fill: none; stroke: rgba(205,225,216,.12); stroke-width: 1; }
.fc404-coordinates { fill: rgba(205,225,216,.34); font: 700 12px/1 "FC Display"; letter-spacing: 3px; }
.fc404-number { fill: rgba(0,128,97,.045); stroke: rgba(0,128,97,.42); stroke-width: 2; font: 900 770px/1 "FC Display"; letter-spacing: -62px; animation: fc404Number .85s cubic-bezier(.2,.8,.2,1) 1.25s both; }
.fc404-route { fill: none; stroke: var(--fc); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; filter: drop-shadow(0 0 9px rgba(0,128,97,.65)); }
.fc404-route-request { animation: fc404Draw 1.15s cubic-bezier(.55,.05,.25,1) .38s both; }
.fc404-route-recalculate { stroke: rgba(241,238,231,.68); stroke-width: 2; animation: fc404Draw 1s cubic-bezier(.3,.7,.2,1) 2.05s both; }
.fc404-failure { opacity: 0; animation: fc404Failure .45s ease-out 1.35s forwards; }
.fc404-failure circle { fill: #030a08; stroke: var(--fc); stroke-width: 2; }
.fc404-failure path { fill: none; stroke: #f1eee7; stroke-width: 3; }
.fc404-failure text { fill: #f1eee7; font: 800 12px/1 "FC Display"; letter-spacing: 3px; }
.fc404-destination { position: absolute; z-index: 4; right: 11%; bottom: 10%; display: grid; justify-items: center; gap: 12px; opacity: 0; transform: translate3d(calc(var(--px) * -.65),calc(var(--py) * -.65),0); animation: fc404Destination .55s ease-out 2.25s forwards; }
.fc404-destination > span { color: rgba(241,238,231,.58); font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.fc404-topbar { position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 24px; opacity: 0; animation: fc404Reveal .45s ease-out .1s forwards; }
.fc404-topbar > p, .fc404-footer p, .fc404-kicker { margin: 0; color: rgba(241,238,231,.58); font-size: 9px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.fc404-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.fc404-brand strong { font-size: 15px; font-weight: 900; letter-spacing: -.03em; }
.fc404-brand strong span { color: var(--fc); }
.fc404-mark { position: relative; display: block; width: 33px; height: 33px; overflow: hidden; background: var(--fc); }
.fc404-mark i { position: absolute; left: 6px; width: 22px; height: 5px; background: #f1eee7; transform: skewY(-28deg); }
.fc404-mark i:nth-child(1) { top: 7px; }
.fc404-mark i:nth-child(2) { top: 14px; left: 9px; }
.fc404-mark i:nth-child(3) { top: 21px; left: 13px; width: 14px; }
.fc404-mark-monumental { width: clamp(76px,7vw,118px); height: clamp(76px,7vw,118px); background: rgba(0,128,97,.18); border: 1px solid rgba(0,128,97,.75); box-shadow: 0 0 0 15px rgba(0,128,97,.06), 0 0 70px rgba(0,128,97,.24); animation: fc404Pulse 3.8s ease-in-out 3s infinite; }
.fc404-mark-monumental i { left: 20%; width: 66%; height: 12%; background: var(--fc); }
.fc404-mark-monumental i:nth-child(1) { top: 23%; }.fc404-mark-monumental i:nth-child(2) { top: 43%; left: 29%; }.fc404-mark-monumental i:nth-child(3) { top: 63%; left: 43%; width: 43%; }
.fc404-content { position: relative; z-index: 6; align-self: center; width: min(900px,64vw); padding: 7vh 0 4vh; }
.fc404-content > * { animation: fc404Reveal .6s cubic-bezier(.2,.8,.2,1) both; }
.fc404-kicker { color: var(--fc); animation-delay: 1.5s; }
.fc404 h1 { margin: clamp(20px,3vh,38px) 0 clamp(22px,3vh,38px); font-size: clamp(68px,8vw,142px); font-weight: 900; line-height: .78; letter-spacing: -.065em; text-transform: uppercase; animation-delay: 1.6s; }
.fc404-impact { margin: 0 0 18px; font-size: clamp(22px,2.2vw,38px); line-height: 1.05; letter-spacing: -.025em; animation-delay: 1.72s; }
.fc404-impact strong { color: var(--fc); font-weight: 900; }
.fc404-copy { margin: 0; color: rgba(241,238,231,.68); font-size: clamp(15px,1.2vw,19px); line-height: 1.48; animation-delay: 1.84s; }
.fc404-actions { display: flex; align-items: center; gap: 28px; margin-top: clamp(24px,4vh,42px); animation: fc404Reveal .6s cubic-bezier(.2,.8,.2,1) 1.96s both; }
.fc404-actions a { display: inline-flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 22px; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.fc404-primary { min-width: 280px; background: var(--fc); color: #fff; }
.fc404-secondary { border-bottom: 1px solid rgba(241,238,231,.45); }
.fc404-actions a:hover { transform: translateY(-2px); }
.fc404-actions a:focus-visible, .fc404-brand:focus-visible { outline: 3px solid #f1eee7; outline-offset: 5px; }
.fc404-footer { position: relative; z-index: 6; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; opacity: 0; animation: fc404Reveal .45s ease-out 1.05s forwards; }
.fc404-footer p:first-child { max-width: min(70vw,900px); overflow: hidden; color: rgba(241,238,231,.78); text-overflow: ellipsis; white-space: nowrap; }

@keyframes fc404Grid { from { opacity: 0; transform: scale(1.04); } to { opacity: .44; transform: scale(1); } }
@keyframes fc404Draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes fc404Number { from { opacity: 0; transform: translateY(45px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fc404Failure { from { opacity: 0; transform: translate(1260px,471px) scale(.65); } to { opacity: 1; transform: translate(1260px,471px) scale(1); } }
@keyframes fc404Destination { from { opacity: 0; } to { opacity: 1; } }
@keyframes fc404Reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fc404Pulse { 0%,100% { box-shadow: 0 0 0 15px rgba(0,128,97,.06),0 0 55px rgba(0,128,97,.18); } 50% { box-shadow: 0 0 0 22px rgba(0,128,97,.025),0 0 80px rgba(0,128,97,.3); } }
@keyframes fc404Scan { from { transform: translateX(-4vw); opacity: .25; } to { transform: translateX(4vw); opacity: .7; } }

@media (max-width: 900px) {
  .fc404 { padding: max(16px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(15px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); background: radial-gradient(circle at 67% 35%,rgba(0,128,97,.2),transparent 34%),#030a08; }
  .fc404::after { background: linear-gradient(0deg,rgba(3,10,8,.88) 0%,rgba(3,10,8,.18) 72%,rgba(3,10,8,.55) 100%); }
  .fc404-topbar > p { max-width: 115px; text-align: right; line-height: 1.5; }
  .fc404-brand strong { font-size: 12px; }
  .fc404-mark { width: 28px; height: 28px; }.fc404-mark i { left: 5px; width: 18px; height: 4px; }.fc404-mark i:nth-child(1){top:6px}.fc404-mark i:nth-child(2){top:12px;left:8px}.fc404-mark i:nth-child(3){top:18px;left:11px;width:12px}
  .fc404-map { width: 186%; height: 92%; left: -61%; top: 1%; }
  .fc404-number { font-size: 720px; stroke-width: 2.5; fill: rgba(0,128,97,.06); }
  .fc404-failure text { display: none; }
  .fc404-destination { right: 7%; bottom: 27%; }.fc404-destination > span { display: none; }
  .fc404-mark-monumental { width: 66px; height: 66px; }
  .fc404-scan { left: 72%; }
  .fc404-content { align-self: end; width: 100%; padding: 8vh 0 2.5vh; }
  .fc404 h1 { margin: 14px 0 17px; font-size: clamp(43px,12.2vw,58px); line-height: .8; }
  .fc404-impact { margin-bottom: 12px; font-size: clamp(20px,6vw,27px); }
  .fc404-copy { font-size: 14px; line-height: 1.36; }
  .fc404-actions { display: grid; gap: 10px; margin-top: 20px; }
  .fc404-actions a { width: 100%; min-height: 49px; padding: 0 17px; }
  .fc404-primary { min-width: 0; }
  .fc404-secondary { border: 1px solid rgba(241,238,231,.28); }
  .fc404-footer { gap: 10px; }
  .fc404-footer p { font-size: 7px; letter-spacing: .13em; }.fc404-footer p:last-child { display: none; }.fc404-footer p:first-child { max-width: 100%; }
}

@media (max-width: 430px) and (max-height: 850px) {
  .fc404-content { padding-top: 5vh; }
  .fc404 h1 { font-size: clamp(42px,11.8vw,52px); }
  .fc404-impact { font-size: clamp(19px,5.5vw,24px); }
  .fc404-copy { font-size: 13px; }
  .fc404-actions { margin-top: 15px; }.fc404-actions a { min-height: 46px; }
  .fc404-destination { bottom: 29%; transform: scale(.85); }
}

@media (prefers-reduced-motion: reduce) {
  .fc404 *, .fc404 *::before, .fc404 *::after { animation: none !important; transition: none !important; }
  .fc404-grid { opacity: .44; transform: none; }
  .fc404-topbar, .fc404-footer, .fc404-failure, .fc404-destination { opacity: 1; }
  .fc404-route { stroke-dashoffset: 0; }
  .fc404-number, .fc404-content > *, .fc404-actions { opacity: 1; transform: none; }
  .fc404-map, .fc404-destination { transform: none; }
}
