@font-face { font-family: MW Condensed; src: url("RobotoCondensed.ttf?v=2") format("truetype"); font-style: normal; font-weight: 100 900; font-display: swap; }
:root { color-scheme: dark; --bg: #101415; --text: #efece3; --muted: #b6b5ae; --gold: #dcb66b; --line: #39403d; font: 16px/1.5 system-ui, sans-serif; background: var(--bg); color: var(--text); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
body::before { content: ""; position: fixed; inset: 0; background: url("nfsmw-poster.jpg") center 65% / cover; opacity: .055; pointer-events: none; z-index: -1; }
.icon-defs { width: 0; height: 0; position: absolute; }
.icon { width: 23px; height: 23px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
header { min-height: 64px; padding: 12px clamp(20px, 5vw, 80px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #101415b3; }
.brand { font: italic 700 16px/1.05 MW Condensed, sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.brand span { display: block; font-size: 24px; }
nav { display: flex; gap: 24px; align-items: center; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #f1d49b; }
.files { display: flex; gap: 12px; align-items: center; font-size: 14px; }
button { font: 600 15px/1.4 system-ui, sans-serif; border-radius: 3px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 12px; transition: background .15s, color .15s; }
button:disabled { opacity: .5; cursor: progress; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.primary { background: var(--gold); color: #12130f; border: 1px solid #edca85; min-height: 70px; padding: 12px 28px; font: 700 34px/1.2 MW Condensed, sans-serif; width: min(100%, 460px); justify-content: space-between; }
.primary .icon { width: 30px; height: 30px; stroke-width: 2.3; }
.primary:hover { background: #eccb88; }
.secondary { background: #101415b3; color: var(--gold); border: 1px solid var(--gold); min-height: 44px; padding: 10px 18px; }
.secondary:hover { background: #dcb66b18; }
.hero { max-width: 1360px; min-height: calc(100dvh - 128px); margin: auto; padding: 32px 40px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.launch-copy { padding: 12px 0; }
h1 { font: 900 clamp(42px, 4.8vw, 76px)/1.05 MW Condensed, sans-serif; letter-spacing: -.025em; margin: 0 0 18px; }
.intro { font-size: clamp(15px, 1.4vw, 20px); font-weight: 600; margin: 0 0 28px; }
.description { font-size: 18px; line-height: 1.5; color: var(--text); margin: 0 0 28px; }
#message { font-size: 14px; color: var(--gold); max-width: 460px; margin: 0; }
#message:not(:empty) { margin: 14px 0; }
.defaults { display: flex; gap: 18px; align-items: flex-start; margin-top: 24px; }
.defaults .icon { margin-top: 3px; }
.defaults p { margin: 0; font-size: 16px; }
.defaults span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.gpu-section { max-width: 460px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.gpu-name { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; font-size: 16px; }
.gpu-name .icon { color: var(--gold); }
.gpu-warning { border: 1px solid #dcb66b88; border-radius: 3px; color: var(--gold); margin: 0 0 16px; padding: 10px 12px; display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.gpu-warning .icon { width: 19px; height: 19px; }
.gpu-help { min-height: 50px; }
.poster { width: 100%; height: auto; max-width: calc((100dvh - 192px) * 1356 / 1920); max-height: calc(100dvh - 192px); justify-self: center; object-fit: contain; border: 1px solid var(--line); border-radius: 2px; background: #121617; box-shadow: 0 12px 40px #0005; }
footer { min-height: 64px; border-top: 1px solid var(--line); padding: 16px clamp(20px, 5vw, 80px); display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; }
footer span { display: flex; align-items: center; gap: 14px; }
#running { min-height: calc(100dvh - 64px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
iframe { border: 0; display: block; background: #000; width: min(1280px, calc(100vw - 40px), calc((100dvh - 160px) * 16 / 9)); aspect-ratio: 16 / 9; }
#stage { position: relative; }
#web-credit { position: absolute; right: 12px; bottom: 8px; z-index: 1; margin: 0; font: 12px/1 system-ui, sans-serif; color: #fff; text-shadow: 0 1px 3px #000; pointer-events: none; animation: web-credit 30s ease-in forwards; }
@keyframes web-credit { 0%, 20% { opacity: .55; } 100% { opacity: 0; } }
#input-hints { color: var(--muted); font-size: 13px; text-align: center; margin: 12px 0 0; max-width: 1000px; }
#graphics-info { color: var(--muted); font-size: 12px; text-align: center; margin: 4px 0 0; }
dialog { background: #171d1d; color: var(--text); border: 1px solid var(--line); border-radius: 4px; width: min(580px, calc(100vw - 32px)); padding: 34px; max-height: calc(100dvh - 32px); overflow: auto; }
dialog::backdrop { background: #050909c9; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 12px; top: 12px; padding: 4px; background: transparent; border: 0; color: var(--muted); }
h2 { font: 700 32px/1.15 MW Condensed, sans-serif; margin: 0 20px 22px 0; }
dialog p, dialog li { font-size: 15px; line-height: 1.65; }
dialog ol { padding-left: 22px; }
dialog li { padding-left: 6px; margin: 14px 0; }
code { display: block; border: 1px solid var(--line); background: #101415; padding: 12px; color: var(--gold); font-size: 13px; margin-top: 8px; overflow-wrap: anywhere; user-select: all; }
code.inline { display: inline; border: 0; padding: 0; background: none; }
kbd { font-size: 12px; border: 1px solid var(--line); border-radius: 3px; padding: 2px 5px; }
.dialog-note { color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 0; }
.defaults label { display: block; font-size: 16px; }
.defaults select { margin-top: 6px; min-height: 40px; min-width: min(100%, 300px); font: 600 15px/1.4 system-ui, sans-serif; color: var(--text); background: #101415; border: 1px solid var(--gold); border-radius: 3px; padding: 6px 10px; }
.defaults select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
body.fullscreen { background: #000; }
body.fullscreen::before, body.fullscreen header, body.fullscreen #input-hints, body.fullscreen #graphics-info { display: none; }
body.fullscreen #running { min-height: 100dvh; padding: 0; }
body.fullscreen iframe { width: 100vw; height: 100dvh; aspect-ratio: auto; }
[hidden] { display: none !important; }
@media (max-height: 800px) and (min-width: 761px) { .hero { padding-top: 24px; padding-bottom: 24px; gap: 40px; } h1 { font-size: clamp(42px, 4.4vw, 66px); } .intro, .description { margin-bottom: 20px; } .description { font-size: 16px; } .primary { min-height: 60px; font-size: 30px; } .defaults, .gpu-section { margin-top: 18px; } .gpu-section { padding-top: 16px; } .poster { max-height: calc(100dvh - 176px); } }
@media (max-width: 1000px) and (min-width: 761px) { .hero { padding: 24px; gap: 30px; } h1 { font-size: 50px; } .description { font-size: 16px; } .defaults p, .gpu-name { font-size: 14px; } }
@media (max-width: 760px) { header { padding: 12px 20px; gap: 12px; } .files { gap: 8px; font-size: 12px; max-width: 120px; } nav { gap: 12px; } .brand { font-size: 12px; } .brand span { font-size: 18px; } .hero { grid-template-columns: 1fr; padding: 36px 24px; gap: 36px; } .launch-copy { padding: 0; } h1 { font-size: clamp(38px, 8vw, 60px); letter-spacing: -.02em; } .intro { font-size: 15px; line-height: 1.5; margin-bottom: 24px; } .description { font-size: 16px; } .primary { min-height: 62px; font-size: 30px; } .defaults { gap: 12px; } .defaults p { font-size: 14px; } .defaults span { font-size: 12px; } .gpu-name { font-size: 14px; gap: 12px; } .gpu-help { font-size: 14px; } .poster { width: min(100%, 400px); max-height: none; justify-self: center; } footer { align-items: flex-start; flex-direction: column; padding: 20px 24px; font-size: 13px; gap: 14px; } #running { padding: 12px; } #stop { font-size: 12px; padding: 8px 10px; } body.playing .files span { display: none; } dialog { padding: 28px 24px; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
