:root {
    --bg: #fafafa;
    --fg: #1a1a1a;
    --muted: #5a5a5a;
    --accent: #1f6feb;
    --card-bg: #ffffff;
    --border: #e3e3e3;
    --max-width: 920px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 80px;
}

header.hero {
    text-align: center;
    padding: 64px 24px 40px;
}

h1.title {
    font-size: 2.1rem;
    line-height: 1.3;
    margin: 0 0 20px;
    font-weight: 650;
}

.authors {
    font-size: 1.05rem;
    margin: 0 0 6px;
}

.authors a {
    color: var(--fg);
    text-decoration: none;
}

.affiliations {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 24px;
}

.badge-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--fg);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.badge:hover {
    border-color: var(--accent);
    box-shadow: 0 1px 6px rgba(31, 111, 235, 0.15);
}

.badge.disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

section {
    margin: 56px 0;
}

h2 {
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.abstract {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px 32px;
    font-size: 1rem;
    color: #2a2a2a;
}

figure {
    margin: 0;
    text-align: center;
}

figure img, figure video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: block;
}

figcaption {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 12px;
}

pre {
    background: #0d1117;
    color: #e6edf3;
    padding: 18px 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.5;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

p code, li code {
    background: #eef0f2;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}

.setup-steps {
    display: grid;
    gap: 18px;
}

.setup-step h3 {
    font-size: 1rem;
    margin: 0 0 8px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.8rem;
}

footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    padding: 40px 24px 60px;
}

footer a {
    color: var(--muted);
}

.note {
    font-size: 0.88rem;
    color: var(--muted);
    font-style: italic;
}

/* --- interactive explorer --- */

.scene-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.scene-btn {
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--fg);
    font-size: 0.88rem;
    cursor: pointer;
    text-transform: capitalize;
    transition: border-color 0.15s, background 0.15s;
}

.scene-btn:hover {
    border-color: var(--accent);
}

.scene-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.explorer-row, .zoom-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.zoom-row {
    margin-top: 10px;
}

.explorer-cell, .zoom-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.explorer-img-wrap {
    position: relative;
    width: 100%;
    cursor: crosshair;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.explorer-img {
    display: block;
    width: 100%;
    height: auto;
}

.crosshair {
    position: absolute;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    margin-top: -7px;
    border: 2px solid #ffcc00;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    display: none;
}

.zoom-cell canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #111;
    image-rendering: pixelated;
}

.explorer-caption {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
}

#explorer-hint {
    text-align: center;
    margin: 10px 0 0;
}

/* --- feature comparison slider --- */

.feature-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.random-btn {
    text-transform: none;
    white-space: nowrap;
}

.compare-slider {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: ew-resize;
    user-select: none;
    background: #111;
}

.compare-img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.compare-top {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(0 0 0 50%);
}

.compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.compare-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 1px 6px rgba(0, 0, 0, 0.35);
}

.compare-label {
    position: absolute;
    bottom: 10px;
    padding: 3px 10px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.78rem;
    pointer-events: none;
}

.compare-label-left {
    left: 10px;
}

.compare-label-right {
    right: 10px;
}
