/* ===== γ-World Project Page (Lyra/TokenGS-aligned) ===== */

:root {
    --header-height: 74px;
    --dark-background: #0a0a0a;
    --card-background: #141414;
    --text-color: #e0e0e0;
    --heading-color: #f5f5f5;
    --subtle-text-color: #a0a0a0;
    --border-color: #2a2a2a;
    --nvidia-green: #76B900;
    --accent-green: var(--nvidia-green);
    --accent-glow: rgba(118, 185, 0, 0.35);
}

* { box-sizing: border-box; }

body {
    font-family: 'Google Sans', sans-serif;
    background: radial-gradient(ellipse at top, #121712 0%, #0a0a0a 50%) fixed;
    color: var(--text-color);
    margin: 0;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    padding-top: var(--header-height);
}

/* ===== Header ===== */

gemini-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    color: #fff;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 60px;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.header-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: color 0.3s;
}

.header-nav a:hover { color: var(--accent-green); }

/* ===== Typography ===== */

h1, h2, h3 {
    color: var(--heading-color);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.6em;
    line-height: 1.1;
    margin: 60px 0 30px;
}
h2 {
    font-size: 2.6em;
    line-height: 1.2;
    margin-top: 80px;
}
h3 {
    font-size: 1.7em;
    line-height: 1.3;
    margin-top: 50px;
}
h4 {
    color: var(--heading-color);
    font-weight: 600;
    font-size: 1.15em;
    margin: 0 0 12px;
}

.accent-text {
    color: var(--accent-green);
    text-shadow: 0 0 30px var(--accent-glow);
}

p, .caption-center {
    font-size: 1.05em;
    line-height: 1.7;
    max-width: 900px;
    margin: 15px auto;
    color: var(--text-color);
    text-align: left;
}

.caption-center {
    text-align: center;
    color: var(--subtle-text-color);
}

.tldr {
    max-width: 950px;
    background: linear-gradient(135deg, rgba(118, 185, 0, 0.06), rgba(118, 185, 0, 0.02));
    border: 1px solid rgba(118, 185, 0, 0.25);
    border-radius: 14px;
    padding: 22px 30px;
    margin: 30px auto 50px;
    font-size: 1.05em;
    line-height: 1.7;
    text-align: left;
}

#abstract p { text-align: justify; }

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color) 30%, var(--border-color) 70%, transparent);
    margin: 30px auto;
    width: 80%;
}

section { padding: 0; }

/* ===== Authors ===== */

#authors { margin: 30px auto; }

.author-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin-bottom: 12px;
}

.author-item {
    text-align: center;
    font-size: 1.05em;
    font-weight: 500;
}

.author-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.author-item a:hover { color: var(--accent-green); }

.author-item sup {
    font-size: 0.7em;
    vertical-align: super;
    color: var(--subtle-text-color);
    margin-left: 1px;
}

.affil-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    text-align: center;
    margin-top: 18px;
    font-size: 1em;
    font-weight: 500;
    color: var(--text-color);
}

.affil-row span sup {
    font-size: 0.75em;
    margin-right: 2px;
    color: var(--subtle-text-color);
}

.author-footnote {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    text-align: center;
    margin-top: 12px;
    font-size: 0.9em;
    font-style: italic;
    color: var(--subtle-text-color);
}

.author-footnote sup {
    font-size: 0.8em;
    margin-right: 2px;
}

.submission-badge {
    display: block;
    width: fit-content;
    margin: 12px auto 0;
    padding: 6px 16px;
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    border-radius: 20px;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.5px;
    text-align: center;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== Pill Buttons ===== */

.pill-btn {
    display: inline-flex;
    align-items: center;
    background: var(--accent-green);
    color: #000;
    padding: 11px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(118, 185, 0, 0.3);
}

.pill-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(118, 185, 0, 0.5);
}

/* ===== Teaser Figure ===== */

.teaser-figure-container {
    width: 100%;
    text-align: center;
    margin: 30px auto;
    padding: 0 10px;
}

.teaser-figure {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    background: #fff;
    padding: 8px;
}

.hero-video-single {
    width: 100%;
    max-width: 1200px;
    margin: 28px auto 20px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    border: 1px solid var(--border-color);
    background: #000;
}

.hero-video-single video {
    width: 100%;
    height: auto;
    display: block;
}

.hero-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 1200px;
    margin: 20px auto 16px;
}

.hero-video-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    background: #000;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-color);
}

/* Crop bottom HUD (e.g. Minecraft hotbar) — video taller than frame, aligned to top */
.hero-video-item video {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 114%;
    object-fit: cover;
    object-position: center top;
}

/* ===== Tab Navigation ===== */

.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 30px;
    justify-content: center;
}

.tab-button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--subtle-text-color);
    padding: 11px 22px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.95em;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-button:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.tab-button.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 16px var(--accent-glow);
}

#gallery > .container:first-child h2 {
    margin-top: 28px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Video Grid ===== */

.video-grid {
    display: grid;
    gap: 16px;
    max-width: 1280px;
    margin: 30px auto;
}

.video-grid-1 { grid-template-columns: 1fr; }
.video-grid-2 { grid-template-columns: repeat(2, 1fr); }
.video-grid-3 { grid-template-columns: repeat(3, 1fr); }
.video-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Two-agent videos: keep natural aspect ratio (avoid cropping) */
.video-grid-natural .video-item {
    aspect-ratio: auto;
    background: #000;
}
.video-grid-natural .video-item video {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.video-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    background: #000;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(118, 185, 0, 0.2);
    border-color: rgba(118, 185, 0, 0.4);
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Figures ===== */

.figure-container {
    width: 100%;
    text-align: center;
    margin: 30px auto;
}

.figure-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    background: #fff;
    padding: 8px;
}

/* ===== Method Cards ===== */

.method-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 1100px;
    margin: 35px auto;
}

.method-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-green);
    border-radius: 12px;
    padding: 24px 28px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.method-card:hover {
    transform: translateY(-3px);
    border-color: rgba(118, 185, 0, 0.4);
    border-left-color: var(--accent-green);
}

.method-card p {
    margin: 0;
    font-size: 1em;
    text-align: left;
    color: var(--text-color);
}

/* ===== Citation Card ===== */

#citation {
    margin-top: 80px;
    padding: 40px 0;
}

.contributors-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.contributors-card {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 20px 24px;
    border-radius: 10px;
    border-left: 3px solid var(--accent-green);
}

.contributors-card pre {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-color);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ===== Footer ===== */

footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin-top: 40px;
}

footer p { margin: 0; }

.container-fullwidth {
    width: 100%;
    text-align: center;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
    h1 { font-size: 2.4em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.4em; }

    .header-content { gap: 14px; }
    .header-nav ul { gap: 14px; }
    .header-nav a { font-size: 0.85em; }

    .hero-video-grid { grid-template-columns: 1fr; }
    .video-grid-2, .video-grid-3, .video-grid-4 { grid-template-columns: 1fr; }
    .method-cards { grid-template-columns: 1fr; }

    .author-row { gap: 8px 18px; }
    .author-item { font-size: 0.95em; }
}
