/* MC Exhibition — shared theme.
 *
 * Visual language: dark gallery, phosphor accent, mono fonts for crypto data.
 * Used by index.html, wall.html, controller.html. Each page layers its own
 * page-specific rules on top.
 */

:root {
    --bg-deep: #07090b;
    --bg: #0a0d10;
    --bg-card: #11161b;
    --line: rgba(255, 255, 255, 0.07);
    --text: #e8edee;
    --muted: #6b7984;
    --accent: #00ffd5;
    --accent-dim: #00b095;
    --warn: #ffaa3b;
    --bad: #ff5577;
    --ok: #6affb4;

    --mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
    --sans: ui-sans-serif, system-ui, "Inter", sans-serif;

    --radius: 6px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
}

button {
    font-family: var(--sans);
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
button:hover:not(:disabled) {
    background: #1a2129;
    border-color: rgba(0, 255, 213, 0.3);
}
button:active:not(:disabled) {
    background: #1f2933;
}
button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
button.primary {
    border-color: var(--accent-dim);
    color: var(--accent);
}
button.primary:hover:not(:disabled) {
    background: rgba(0, 255, 213, 0.1);
}
button.danger {
    border-color: rgba(255, 85, 119, 0.3);
    color: var(--bad);
}
button.danger:hover:not(:disabled) {
    background: rgba(255, 85, 119, 0.1);
}

.mono {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.muted {
    color: var(--muted);
}

.pill {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.pill.live {
    border-color: var(--ok);
    color: var(--ok);
}
.pill.solved {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 255, 213, 0.05);
}
.pill.expired {
    border-color: var(--bad);
    color: var(--bad);
}

/* The face mask SVG itself. Centered, scales to container. */
.face-mask {
    width: 100%;
    height: 100%;
    display: block;
}
.face-mask .region {
    transition: fill 0.4s ease, opacity 0.4s ease;
    cursor: pointer;
}
.face-mask .region.selected {
    stroke: var(--accent);
    stroke-width: 4;
}
.face-mask .feature {
    pointer-events: none;
    opacity: 0.92;
}

/* Greyscale strip — 16 swatches across the bottom. */
.grey-strip {
    display: flex;
    gap: 1px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    height: 18px;
}
.grey-strip > div {
    flex: 1;
    transition: background 0.4s ease;
}


/* Make sure HTML5 [hidden] always wins against component class rules. */
[hidden] { display: none !important; }