/* Nostalith skin for the stock Play!.js build. Restyles its existing classes only. */
:root { --n-bg: #0b0b12; --n-panel: #15151f; --n-line: #2a2a3a; --n-fg: #ececf2; --n-muted: #9a9ab0; --n-accent: #8b7bff; --n-ok: #3ecf8e; }
html, body { background: var(--n-bg); color: var(--n-fg); }
body { font: 15px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--n-accent); }

.n-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 20px; background: var(--n-panel); border-bottom: 1px solid var(--n-line); }
.n-bar .n-brand { font-weight: 700; color: var(--n-fg); text-decoration: none; }
.n-bar .n-note { color: var(--n-muted); font-size: 13px; flex: 1 1 260px; }
.n-bar .n-note::before { content: "🔒 "; }
.n-btn { appearance: none; border: 1px solid var(--n-line); background: #1f1f2c; color: var(--n-fg); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.n-btn:hover { border-color: var(--n-accent); }

.global-row { display: flex; flex-wrap: wrap; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 20px; }
.global-column { margin: 0; }
.global-column:first-child { flex: 2 1 560px; min-width: 0; }
.global-column:last-child { flex: 1 1 300px; background: var(--n-panel); border: 1px solid var(--n-line); border-radius: 12px; padding: 4px 20px 16px; }
.global-column:last-child h1 { font-size: 1.25rem; }
.global-column:last-child h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--n-muted); margin: 20px 0 6px; }
.global-column:last-child p:empty { display: none; }

canvas { display: block; aspect-ratio: 4 / 3; width: 100%; background: #000; border-radius: 12px; box-shadow: 0 0 0 1px var(--n-line), 0 20px 50px rgba(0,0,0,.5); }
canvas:fullscreen { width: 100%; height: 100%; border-radius: 0; object-fit: contain; box-shadow: none; }

#root > div { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px 30px; background: var(--n-panel); border: 1px solid var(--n-line); border-radius: 12px; }
#root input[type=file] { flex: 1 1 260px; color: var(--n-muted); font: inherit; font-size: 14px; }
#root input[type=file]::file-selector-button { margin-right: 12px; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--n-accent); color: #0b0b12; font: inherit; font-weight: 700; cursor: pointer; }
#root input[type=file]::file-selector-button:hover { filter: brightness(1.1); }
span.stats { float: none; margin-left: auto; padding: 2px 10px; border-radius: 999px; background: #0f2a1f; color: var(--n-ok); font: 600 13px/1.6 ui-monospace, Menlo, monospace; }
span.version { left: 14px; bottom: 6px; color: #66667a; font-size: 12px; }

.controls-row { display: block; }
.controls-column + .controls-column table tr:first-child { display: none; }
table, td, th { border: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--n-muted); font-weight: 600; padding: 6px 0; }
td { padding: 5px 0; border-top: 1px solid var(--n-line); }
td + td { text-align: right; font-family: ui-monospace, Menlo, monospace; }

@media (max-width: 640px) { .global-row { padding: 12px; } .n-bar { padding: 10px 12px; } }
/* Brand mark (same-origin, so fine under COEP require-corp). */
.n-bar .n-brand { display: inline-flex; align-items: center; gap: 8px; }
.n-bar .n-brand::after { content: ""; order: -1; width: 24px; height: 24px; background: url(/logo-mark.svg) center / contain no-repeat; }
/* First-use hints and device/browser warnings (scripts/play-app-extras/nostalith.js). */
.n-hint { display: flex; gap: 12px; align-items: flex-start; max-width: 1240px; margin: 14px auto 0; padding: 12px 16px; background: #17142e; border: 1px solid #3a3470; border-radius: 12px; font-size: 14px; }
.n-hint[hidden] { display: none; }
.n-hint p { margin: 0; flex: 1; }
.n-hint.n-warn { background: rgba(240, 179, 80, .1); border-color: rgba(240, 179, 80, .55); }
@media (max-width: 1280px) { .n-hint { margin: 14px 20px 0; } }
@media (max-width: 640px) { .n-hint { margin: 12px 12px 0; } }
.n-hint.n-pass { background: rgba(62, 207, 142, .12); border-color: rgba(62, 207, 142, .6); }
