/* === WO5: Self-hosted font faces === */
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/inter-300-latin-ext.woff2?v=2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/inter-300-latin.woff2?v=2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400-latin-ext.woff2?v=2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400-latin.woff2?v=2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600-latin-ext.woff2?v=2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600-latin.woff2?v=2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/inter-800-latin-ext.woff2?v=2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/inter-800-latin.woff2?v=2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/outfit-400-latin-ext.woff2?v=2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/outfit-400-latin.woff2?v=2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/outfit-700-latin-ext.woff2?v=2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/outfit-700-latin.woff2?v=2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-900-latin-ext.woff2?v=2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-900-latin.woff2?v=2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-400-latin-ext.woff2?v=2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-400-latin.woff2?v=2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-700-latin-ext.woff2?v=2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-700-latin.woff2?v=2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-color: #0f1115;
    --card-bg: rgba(30, 33, 40, 0.7);
    --accent: #1DB954; /* Spotify green */
    --accent-glow: rgba(29, 185, 84, 0.3);
    --text-main: #f0f2f5;
    --text-muted: #a0a5b0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --border-color: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-image: radial-gradient(circle at 50% 0%, rgba(29,185,84,0.1) 0%, transparent 50%);
}



img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.poster-container {
    width: 100%;
    max-width: min(1200px, 100vw);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-x: hidden;
}

/* HEADER */
.poster-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}



.institution {
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    max-width: 900px;
}

.main-title .accent {
    color: var(--accent);
}

.authors {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.author-block {
    display: flex;
    flex-direction: column;
}

.author-block .role {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 600;
}

.author-block .name {
    font-size: 1.25rem;
    font-weight: 600;
}

/* MAIN GRID */
.poster-main {
    column-count: 3;
    column-gap: 2rem;
}



.col-left, .col-center, .col-right {
    display: contents;
}





/* CARDS */
.card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    color: var(--text-main);
}

.insight-panel {
    background: rgba(29, 185, 84, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(29, 185, 84, 0.2);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Visibility Helpers */
.academic-only, .visitor-only {
    display: none !important;
}

body.mode-academic .academic-only {
    display: block !important;
}
body.mode-visitor .visitor-only {
    display: block !important;
}

/* Full-width card override for Academic main layout */
body.mode-academic .poster-main > .card.academic-only.full-width {
    grid-column: 1 / -1;
    display: block !important;
}

/* Responsive Hypotheses Sub-Grid */
.hypotheses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-main);
    margin-top: 1.5rem;
}

.hyp-item {
    background: rgba(0, 0, 0, 0.15);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hyp-item:hover {
    background: rgba(29, 185, 84, 0.05);
    border-color: rgba(29, 185, 84, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(29, 185, 84, 0.05);
}


/* For flex/grid elements, use specific overrides */
body.mode-academic div.academic-only[style*="display: flex"],
body.mode-academic section.academic-only[style*="display: flex"],
body.mode-visitor div.visitor-only[style*="display: flex"],
body.mode-visitor section.visitor-only[style*="display: flex"] {
    display: flex !important;
}


/* Path Toggle Active States */
body.mode-academic .academic-option {
    background: rgba(29, 185, 84, 0.4);
    color: #fff;
}
body.mode-visitor .visitor-option {
    background: rgba(29, 185, 84, 0.4);
    color: #fff;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(29, 185, 84, 0.3);
}

.card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lead {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

/* LISTS & ITEMS */
.hypothesis-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1rem;
}

.hypothesis-list li {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.h-badge {
    background: var(--accent);
    color: #000;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* DESIGN SECTION */
.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.design-item {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.d-val {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent);
}

.d-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.design-factors {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.factor {
    background: rgba(29, 185, 84, 0.1);
    border: 1px solid rgba(29, 185, 84, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* HERO ZONE */
.hero-card {
    background: linear-gradient(145deg, rgba(30, 33, 40, 0.9), rgba(20, 22, 26, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 50%);
    opacity: 0.1;
    pointer-events: none;
}

.hero-slogan {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 80%;
}

.insight-panel {
    background: rgba(29, 185, 84, 0.08);
    border: 1px solid rgba(29, 185, 84, 0.4);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.1);
    backdrop-filter: blur(5px);
}

.insight-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.insight-arrow {
    color: var(--accent);
    font-size: 2rem;
    font-weight: 900;
}

.insight-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.main-chart {
    width: 100%;
    height: 250px;
    margin-bottom: 2rem;
}

.brain-map-container {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem; /* Removed auto to prevent pushing to extreme bottom */
}

.brain-img {
    width: 100%;
    max-width: 100%; /* Enlarged to full container width */
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 15px 45px rgba(0,0,0,0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brain-img:hover {
    transform: scale(1.05);
}

.brain-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* RIGHT COLUMN SPECIFICS */
.method-section {
    margin-bottom: 1.5rem;
}

.method-section h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.tl-item {
    display: flex;
    gap: 1rem;
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.tl-time {
    color: var(--accent);
    font-weight: 600;
    min-width: 60px;
}

.pipeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.secondary-chart {
    width: 100%;
    height: 180px;
    margin-bottom: 0.5rem;
}

.chart-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* FOOTER */
.poster-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    align-items: center;
}



.footer-col h3 {
    font-family: var(--font-heading);
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.discussion-list {
    list-style: none;
}

.discussion-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.ref-list {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 0;
}

.ref-list li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    text-indent: -2rem; /* APA 7 Hanging indent */
    line-height: 1.4;
}

/* INTERACTIVE ZONE */
.interactive-zone {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 2rem;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.qr-container {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.interactive-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.6);
    transform: translateY(-2px);
}

.qr-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* UTILS */
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* OVERLAY */
.dashboard-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dashboard-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.dashboard-content {
    background: var(--bg-color);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 3rem;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.dashboard-overlay.active .dashboard-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.dash-card {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 12px;
}

.dash-btn {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    line-height: 1.2;
}

.dash-btn:hover {
    background: var(--accent);
    color: #000;
}



/* LANGUAGE SWITCHER */
.lang-switcher {
    position: static;
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 12px;
    width: auto;
    text-align: center;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.lang-btn.active {
    background: var(--accent);
    color: #0c0d10;
    border-color: transparent;
    box-shadow: none;
}

.role-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #0c0d10;
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-y: auto;
    overflow-x: hidden;
}
.role-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}
.role-container {
    padding: 6rem 2rem 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    width: 100%;
    min-height: 100vh;
}

/* NEW LANDING UI */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: rgba(12, 13, 16, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 2500;
}

.landing-header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.landing-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -1px;
}
.landing-title .accent {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(29, 185, 84, 0.4), 0 0 40px rgba(29, 185, 84, 0.2);
}

.landing-sub {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 3.5rem;
    max-width: 800px;
    padding: 0 1rem;
}

.who-are-you {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.landing-footer {
    margin-top: 4rem;
    text-align: center;
    color: #444;
    font-size: 0.85rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding-top: 2rem;
    width: 100%;
}
.role-cards {
    display: flex;
    gap: 2rem;
    max-width: 850px;
    width: 100%;
    padding: 0;
}
.role-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.role-card:hover {
    transform: translateY(-5px);
    border-color: rgba(29, 185, 84, 0.4);
    box-shadow: 0 12px 30px rgba(29, 185, 84, 0.1);
}
.role-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.role-svg-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    filter: drop-shadow(0 0 6px rgba(29, 185, 84, 0.6));
    transition: transform 0.3s ease, filter 0.3s ease;
}
.role-card:hover .role-svg-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(29, 185, 84, 0.9));
}
.role-card h2 {
    font-family: var(--font-heading);
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
    color: #fff;
    font-weight: 700;
}
.role-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .role-cards {
        flex-direction: column;
        gap: 1.5rem;
    }
    .landing-header-center {
        display: none;
    }
    .role-container {
        padding-top: 5rem;
    }
    .role-card {
        padding: 2rem 1.5rem;
    }
}

/* VISIBILITY TOGGLES */
body.mode-visitor .academic-only {
    display: none !important;
}
body.mode-visitor .visitor-only {
    display: block !important;
}
body.mode-visitor .poster-main {
    column-count: 3;
}
body.mode-visitor .poster-footer {
    grid-template-columns: 1.5fr 1fr; /* Rebalance footer space without the references column */
}

/* ACADEMIC ENHANCEMENTS */
.academic-tooltip {
    position: relative;
    border-bottom: 1px dashed var(--accent);
    cursor: help;
    color: var(--accent);
}
.academic-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    border: 1px solid var(--accent);
    z-index: 10;
}
.academic-tooltip:hover::after {
    opacity: 1;
}

.deep-dive-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    margin-left: 10px;
    vertical-align: middle;
}
.deep-dive-btn:hover {
    background: var(--accent);
    color: #000;
}
.deep-dive-content {
    display: none;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-left: 2px solid var(--accent);
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.deep-dive-content.active {
    display: block;
}

.download-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}
.dl-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(29, 185, 84, 0.1);
    border: 1px solid rgba(29, 185, 84, 0.4);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
}
.dl-badge:hover {
    background: var(--accent);
    color: #000;
}

/* VISITOR ENHANCEMENTS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
body.mode-visitor .visitor-only.flex-container {
    display: flex !important;
}
body.mode-visitor .visitor-only[style*="display:inline"] {
    display: inline !important;
}

/* BRAIN INTERACTION & AUDIO VISUALIZER */
.brain-glow-wrapper {
    position: relative;
    border-radius: 20px;
    transition: all 0.5s ease;
    display: inline-block;
}
.brain-glow-wrapper.playing-human {
    animation: brainPulseHuman 1s infinite alternate;
    box-shadow: 0 0 50px rgba(29, 185, 84, 0.6);
}
.brain-glow-wrapper.playing-ai {
    animation: brainPulseAI 1s infinite alternate;
    box-shadow: 0 0 40px rgba(100, 150, 255, 0.4);
}

@keyframes brainPulseHuman {
    from { filter: brightness(1) saturate(1); transform: scale(1); }
    to { filter: brightness(1.3) saturate(1.5); transform: scale(1.02); }
}
@keyframes brainPulseAI {
    from { filter: brightness(0.9) saturate(0.8) hue-rotate(0deg); transform: scale(1); }
    to { filter: brightness(1.1) saturate(1) hue-rotate(30deg); transform: scale(1.01); }
}

.bar {
    width: 6px;
    background: var(--accent);
    border-radius: 3px;
    animation: soundWave 0.4s infinite alternate ease-in-out;
}
.bar:nth-child(1) { animation-delay: 0.0s; }
.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes soundWave {
    0% { height: 5px; }
    100% { height: 30px; }
}

/* ============================================================
   DENE BUTTON
   ============================================================ */
.dene-btn {
    position: relative;
    background: linear-gradient(135deg, #1DB954, #17a349);
    color: #000;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin: 1.5rem auto;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 30px rgba(29, 185, 84, 0.5);
}
.dene-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 50px rgba(29, 185, 84, 0.8);
}
.dene-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: rgba(29, 185, 84, 0.4);
    animation: denePulse 1.8s infinite;
    top: 0; left: 0;
}
@keyframes denePulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================================
   EXPERIENCE OVERLAY (FULL SCREEN SHOW)
   ============================================================ */
.exp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #050809;
    overflow-y: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.exp-overlay.active { display: flex; }

.exp-close {
    position: fixed;
    top: 1.5rem; right: 2rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 100;
    transition: background 0.2s;
}
.exp-close:hover { background: rgba(255,255,255,0.18); }

.exp-stage { 
    width: 100%; 
    max-width: 900px; 
    padding: 4rem 2rem; 
    animation: fadeIn 0.5s; 
}

.exp-stage-inner { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: center; text-align: center; }

.exp-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.exp-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
}
.exp-desc {
    font-size: 1.15rem;
    color: #a0a5b0;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* Stage 1 Choice */
.exp-choice-row {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.exp-or {
    font-size: 1rem;
    color: #555;
    font-style: italic;
}
.exp-choice-btn {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.6rem;
    padding: 2.5rem 3rem;
    border-radius: 20px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255,255,255,0.05);
    min-width: 220px;
}
.exp-choice-btn:hover { transform: translateY(-6px); }
.ai-btn { border-color: rgba(100,160,255,0.4); }
.ai-btn:hover { background: rgba(100,160,255,0.1); border-color: rgba(100,160,255,0.8); box-shadow: 0 0 30px rgba(100,160,255,0.3); }
.human-btn { border-color: rgba(29,185,84,0.4); }
.human-btn:hover { background: rgba(29,185,84,0.1); border-color: var(--accent); box-shadow: 0 0 30px rgba(29,185,84,0.3); }
.exp-choice-icon { font-size: 3rem; }
.exp-choice-label { font-size: 1.2rem; font-weight: 700; color: #fff; }
.exp-choice-sub { font-size: 0.85rem; color: #666; }

/* Stage 2 Brain + Meters */
.exp-brain-row {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.exp-brain-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.exp-brain-img {
    width: min(320px, 80vw);
    border-radius: 16px;
    transition: filter 1s;
}
.exp-scan-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scanDown 2s infinite linear;
}
@keyframes scanDown {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0.3; }
}
.exp-meters { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 1.5rem; width: 100%; max-width: 400px; min-width: 0; }
.exp-meter-row {
    display: grid;
    grid-template-columns: 120px 1fr 45px;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #a0a5b0;
}
.exp-bar-wrap {
    background: rgba(255,255,255,0.07);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}
.exp-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1DB954, #a8ff78);
    border-radius: 10px;
    transition: width 2.5s cubic-bezier(0.4,0,0.2,1);
}

/* Equalizer */
.exp-eq {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 6px;
    height: 50px;
    margin-top: 1rem;
}
.eq-bar {
    width: 10px;
    background: var(--accent);
    border-radius: 4px;
    height: 8px;
    transition: height 0.3s ease;
}
.exp-eq.playing .eq-bar {
    animation: eqWave 0.5s infinite alternate ease-in-out;
}
.eq-bar:nth-child(1) { animation-delay: 0.0s; }
.eq-bar:nth-child(2) { animation-delay: 0.07s; }
.eq-bar:nth-child(3) { animation-delay: 0.14s; }
.eq-bar:nth-child(4) { animation-delay: 0.21s; }
.eq-bar:nth-child(5) { animation-delay: 0.28s; }
.eq-bar:nth-child(6) { animation-delay: 0.35s; }
.eq-bar:nth-child(7) { animation-delay: 0.42s; }
.eq-bar:nth-child(8) { animation-delay: 0.49s; }
.eq-bar:nth-child(9) { animation-delay: 0.56s; }
@keyframes eqWave {
    0% { height: 8px; }
    100% { height: 50px; }
}

/* Stage 3 Reveal */
.exp-reveal-box {
    background: linear-gradient(145deg, rgba(29, 185, 84, 0.05), rgba(29, 185, 84, 0.15));
    border: 1px solid rgba(29, 185, 84, 0.5);
    box-shadow: 0 0 30px rgba(29, 185, 84, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    text-align: center;
    animation: fadeIn 0.5s;
}
.exp-reveal-text { font-size: 1.15rem; line-height: 1.7; color: #e0e0e0; }
.exp-compare {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.exp-compare-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    min-width: 220px;
    font-size: 0.95rem;
}
.exp-compare-card.ai-card { background: rgba(100,160,255,0.08); border: 1px solid rgba(100,160,255,0.3); color: #a0b8ff; }
.exp-compare-card.human-card { background: rgba(29,185,84,0.08); border: 1px solid rgba(29,185,84,0.4); color: var(--accent); }
.exp-compare-bar {
    width: var(--w);
    height: 10px;
    border-radius: 5px;
    background: currentColor;
    opacity: 0.7;
    transition: width 1s ease;
}
.exp-stat { font-size: 0.85rem; color: #666; margin-bottom: 2rem; font-style: italic; }
.exp-next-btn {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    margin: 0.5rem;
    transition: all 0.2s;
}
.exp-next-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(29,185,84,0.5); }

/* Stage 4 Final */
.exp-final-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #1DB954, #a8ff78, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: fadeIn 0.7s;
}
.exp-final-sub { font-size: 1.4rem; color: #c0c0c0; margin-bottom: 2rem; line-height: 1.6; }
.exp-highlight { color: var(--accent); font-weight: 800; font-size: 1.6rem; }
.exp-final-stats { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.exp-stat-pill {
    background: rgba(29,185,84,0.12);
    border: 1px solid rgba(29,185,84,0.4);
    color: var(--accent);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
}
.exp-conclusion {
    font-size: 1.2rem;
    color: #a0a5b0;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 2.5rem;
}
.exp-final-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* Genre Buttons */
.exp-genre-grid,
.genre-btns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
}
.genre-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.genre-btn:hover {
    background: rgba(29, 185, 84, 0.1);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.genre-icon { font-size: 2.5rem; }
.genre-name { font-size: 1.3rem; font-weight: 700; color: #fff; }
.genre-sub { font-size: 0.85rem; color: #666; }

.back-btn {
    align-self: flex-start;
    background: transparent;
    border: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: color 0.2s;
}
.back-btn:hover { color: #fff; }

/* Survey UI */
.survey-form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.5rem;
    text-align: left;
    margin: 0 auto;
}
.survey-q label {
    display: block;
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}
.likert-scale {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    gap: 0.5rem;
}
.likert-scale span {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    color: #a0a5b0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.likert-scale span:hover {
    background: rgba(29, 185, 84, 0.15);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}
.likert-scale span.selected {
    background: var(--accent);
    color: #000 !important;
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent);
    transform: scale(1.1);
}

/* Detailed Results UI */
.exp-results-detailed {
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.5rem;
}
.detail-row {
    background: rgba(20, 20, 25, 0.6);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.detail-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    align-items: center;
}
.detail-label {
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
}
.detail-values {
    font-size: 0.9rem;
    font-weight: 700;
}
.v-ai { color: #a0b8ff; }
.v-human { color: var(--accent); }

.detail-bars {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
}
.d-bar {
    height: 10px;
    border-radius: 5px;
    transition: width 1s ease-out;
}
.d-bar.ai { 
    background: linear-gradient(90deg, #4a74c9, #769eff);
    box-shadow: 0 0 10px rgba(74, 116, 201, 0.4);
}
.d-bar.human { 
    background: linear-gradient(90deg, #17a349, #1DB954);
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.4);
}

/* Legend */
.exp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    padding: 0.8rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.ai { background: #4a74c9; }
.dot.human { background: #1DB954; }

.v-sep {
    color: #444;
    margin: 0 0.5rem;
}

/* Per-Song Breakdown */
.breakdown-title {
    font-size: 1.1rem;
    color: #fff;
    margin: 2rem 0 1rem;
    font-weight: 700;
}
.exp-song-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
    margin-bottom: 2rem;
}
.song-card {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
.song-card:hover {
    transform: translateY(-2px);
}
.song-card.manipulated {
    border-color: rgba(255, 100, 100, 0.4);
    background: linear-gradient(145deg, rgba(20,20,25,0.6), rgba(255, 100, 100, 0.05));
    box-shadow: 0 0 15px rgba(255, 100, 100, 0.15);
}
.song-num { font-size: 0.75rem; color: #666; margin-bottom: 0.5rem; display: block; }
.song-status { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.5rem; display: block; }
.status-truth { color: #fff; }
.status-label { color: var(--accent); }

.card-meta { font-size: 0.8rem; color: #a0a5b0; }
.manip-badge {
    background: #ff6464;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    font-weight: 800;
}

/* Dashboard Layout for Stage 3 Reveal */
.exp-stage {
    max-width: 1100px; /* Make it wider to accommodate 2 columns */
}
.reveal-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    margin-bottom: 2rem;
    align-items: start;
}
.reveal-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.breakdown-title {
    margin: 0 0 1rem 0;
    text-align: left;
    font-size: 1.2rem;
    color: var(--accent);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

/* Adjust the inner layouts to fit the column */
.exp-results-detailed {
    max-width: 100%;
    margin-bottom: 0;
}
.exp-song-breakdown {
    grid-template-columns: 1fr 1fr; /* 2x2 grid inside the right column */
    margin-bottom: 0;
}



/* EXIT POSTER BUTTON */
.exit-poster-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff6b6b;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exit-poster-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border-color: #ff4444;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
}

.exit-poster-btn svg {
    transition: transform 0.2s;
}

.exit-poster-btn:hover svg {
    transform: rotate(90deg);
}



.song-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.listen-btn {
    background: rgba(29, 185, 84, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.listen-btn:hover {
    background: var(--accent);
    color: #000;
}

.listen-btn.playing {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
    animation: listenPulse 1.5s infinite;
}

@keyframes listenPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ============================================================
   CONSOLIDATED MOBILE RESPONSIVENESS
   ============================================================ */

/* Tablet breakpoint */
@media (max-width: 1100px) {
    .poster-main {
        column-count: 2;
        column-gap: 1.5rem;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .reveal-dashboard {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    body { padding: 1rem; }

    /* Header stacking */
    .poster-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 2rem;
    }
    .header-content { width: 100%; margin-bottom: 1rem; }
    .authors { flex-direction: column; gap: 1rem; }

    /* Main grid: single column */
    .poster-main {
        column-count: 1 !important;
        column-gap: 1.5rem;
    }

    .main-title {
        font-size: clamp(1.4rem, 6vw, 2rem) !important;
        line-height: 1.2;
    }

    /* Footer: single column */
    .poster-footer {
        grid-template-columns: 1fr !important;
        text-align: center;
        padding: 1.5rem;
    }
    .footer-col { width: 100%; }

    /* Touch targets */
    button, .btn, .dl-badge, .lang-btn {
        min-height: 44px;
    }

    /* Cards: full width but preserve internal layout */
    .role-card, .exp-choice-btn, .exp-compare-card, .song-card {
        width: 100% !important;
        min-width: unset !important;
    }

    /* Landing page stacking */
    .role-cards { flex-direction: column; gap: 1rem; width: 100%; }
    .role-overlay { padding: 3rem 1rem; }
    .landing-title { font-size: clamp(1.8rem, 8vw, 3rem) !important; }
    .landing-sub { font-size: 1rem; padding: 0 0.5rem; }

    /* Experience overlay */
    .exp-stage { padding: 2rem 1rem; width: 100%; }
    .exp-stage-inner { width: 100%; max-width: 100%; }
    .exp-choice-row { flex-direction: column; gap: 1rem; width: 100%; }
    .exp-choice-btn { width: 100%; min-width: 0; padding: 2rem 1rem; }
    .exp-or { display: none; }
    .exp-brain-row { flex-direction: column; gap: 1.5rem; width: 100%; }
    .exp-brain-img { width: min(300px, 90vw); height: auto; }
    .exp-meters { width: 100%; max-width: 100%; padding: 0 0.5rem; }
    .exp-meter-row { grid-template-columns: 90px 1fr 40px; font-size: 0.8rem; }
    .exp-compare { flex-direction: column; align-items: stretch; width: 100%; }
    .exp-compare-card { min-width: unset; width: 100%; margin: 0; }
    .exp-final-btns { flex-direction: column; align-items: center; width: 100%; }
    .exp-next-btn { width: 100%; max-width: 320px; margin: 0.5rem auto; }
    .survey-form { max-width: 100%; width: 100%; padding: 0 0.5rem; }
    .exp-reveal-box { padding: 1.5rem 1rem; width: 100%; }
    .exp-genre-grid { grid-template-columns: 1fr; width: 100%; }
    .genre-btn { width: 100%; }
    .exp-song-breakdown { grid-template-columns: 1fr; width: 100%; }
    .reveal-dashboard { grid-template-columns: 1fr; gap: 2rem; width: 100%; }
    .reveal-col { width: 100%; }
    .detail-row { width: 100%; }
    .detail-bars { width: 100%; }

    /* Dashboard overlay */
    .dashboard-content { padding: 2rem 1rem; width: 95vw; max-width: 100%; }
    .dashboard-grid { grid-template-columns: 1fr; width: 100%; }
    .dash-btn { padding: 1rem; width: 100%; }

    /* Charts */
    .main-chart, .secondary-chart { height: 200px; }
    .design-grid { grid-template-columns: repeat(2, 1fr); }

    /* Insight panel */
    .insight-panel { flex-direction: column; gap: 0.75rem; text-align: center; }
    .hero-sub { max-width: 100%; font-size: 1rem; }

    /* Exit button */
    .exit-poster-btn { position: static; margin-bottom: 1rem; width: fit-content; margin-left: auto; }

    /* Dene button */
    .dene-btn { font-size: 1.1rem; padding: 0.8rem 2rem; }

    /* Visitor mode footer */
    body.mode-visitor .poster-footer { grid-template-columns: 1fr; }

    /* Close button */
    .exp-close { top: 0.75rem; right: 0.75rem; font-size: 0.8rem; padding: 0.4rem 0.8rem; }

    /* Likert */
    .likert-scale span { width: 36px; height: 36px; font-size: 0.9rem; }
}

/* Small phone breakpoint */
@media (max-width: 480px) {
    body { padding: 0.5rem; }
    .role-container { padding: 1.5rem 0.5rem; }
    .landing-title { font-size: clamp(1.5rem, 10vw, 2.4rem) !important; }
    .portal-badge { font-size: 0.75rem; letter-spacing: 2px; }
    .who-are-you { font-size: 0.75rem; letter-spacing: 2px; }
    .exp-meter-row { grid-template-columns: 85px 1fr 35px; font-size: 0.75rem; }
    .exp-brain-img { width: min(220px, 85vw); }
}

.no-scroll {
    overflow: hidden !important;
}

/* Input Optimization for iOS */
input, select, textarea, .likert-scale span {
    font-size: 16px !important;
}


/* MOBILE RESPONSIVENESS (Anti-Overflow, Flex-Fix) */
@media (max-width: 768px) {
    .poster-main {
        column-count: 1;
    }
    
    .col-left, .col-center, .col-right {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        max-width: 100%;
        align-self: auto !important;
        height: auto !important;
        grid-template-rows: none !important;
    }
    
    .header-content, .header-top-bar, .reveal-dashboard, .footer-col {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .main-title {
        font-size: 2rem !important;
    }
    
    .authors {
        flex-direction: column;
        gap: 1rem;
    }
    
    .card {
        padding: 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box !important;
    }
    
    .song-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    #quiz-container, .exp-panel, .reveal-dashboard {
        min-width: 100%;
        width: 100%;
        padding: 1rem;
    }
    
    .reveal-col {
        min-width: 100% !important;
        width: 100%;
    }
    
    /* Ensure all flex containers wrap if needed */
    div[style*="display: flex"] {
        flex-wrap: wrap !important;
    }
}

/* ============================================================
   UI SPACING & LAYOUT OPTIMIZATION (merged from spacing-patch.css)
   ============================================================ */

/* Strip bottom margin on last child of key containers */
.card > *:last-child,
.col-left > *:last-child,
.col-center > *:last-child,
.col-right > *:last-child,
.reveal-col > *:last-child,
.survey-form > *:last-child,
.exp-stage-inner > *:last-child,
.likert-scale > *:last-child,
.design-grid > *:last-child,
.survey-q > *:last-child,
.detail-row > *:last-child,
.exp-results-detailed > *:last-child,
.song-card > *:last-child,
.hyp-item > *:last-child,
.timeline > *:last-child,
.tl-item > *:last-child,
.method-section > *:last-child,
.dashboard-content > *:last-child,
.exp-reveal-box > *:last-child {
    margin-bottom: 0 !important;
}

/* Proportional card padding */
.card,
.role-card,
.exp-choice-btn,
.exp-compare-card,
.song-card,
.dash-card,
.insight-panel {
    padding: clamp(8px, 2vw, 16px) !important;
}

/* Proportional overlay/box padding */
.dashboard-content,
.exp-reveal-box {
    padding: clamp(12px, 3vw, 24px) !important;
}

/* Grid rows collapse to content — eliminates phantom row gaps */
.poster-main,
.hypotheses-grid,
.design-grid,
.poster-footer,
.dashboard-grid,
.exp-meter-row,
.exp-genre-grid,
.genre-btns,
.exp-song-breakdown,
.reveal-dashboard {
    grid-auto-rows: min-content !important;
}

/* Prevent flex containers from vertically stretching children */
.authors,
.download-badges,
.pipeline-tags,
.timeline,
.exp-compare,
.exp-final-stats,
.exp-final-btns {
    align-items: flex-start !important;
}

/* Height auto + overflow visible */
section,
header,
.card,
.hypotheses-grid,
.design-grid,
.exp-genre-grid,
.exp-song-breakdown,
.reveal-dashboard {
    height: auto !important;
    overflow: visible !important;
}



/* === WO2: De-inlined styles === */
.u-text-white { color: var(--text-main); }
.u-d { display:none; }
.u-m { margin: 0 auto; }
.u-clr { color: var(--text-muted); }
.u-mt-1 { margin-top: 1rem; }
.u-fs { font-size: 1.1rem; }
.u-fs-1 { font-size:0.75rem; }
.u-clr-1 { color: var(--accent); }
.u-mr { margin-right: 0.5rem; }
.u-mb-0-5 { margin-bottom: 0.5rem; }
.u-mb { margin-bottom: 0.8rem; }
.u-mb-1 { margin-bottom: 1.5rem; }
.u-clr-2 { color: var(--text-muted); }
.u-f-mw { flex: 1; min-width: 300px; }
.u-clr-fw { color: var(--text-main); font-weight: bold; }
.u-p-clr { padding: 0.5rem 0; color: var(--text-main); }
.u-fs-clr { font-size: 1rem; color: var(--text-muted); }
.u-w-ta { width: 100%; text-align: center; }
.u-w-ta-1 { width: 30px; text-align: center; }
.u-mt-p { margin-top: 1rem; padding: 1.5rem; }
.u-mt-fs { margin-top: 2rem; font-size: 0.95rem; }
.u-fs-mb { font-size: 5rem; margin-bottom: 1rem; }
.u-fs-clr-1 { font-size: 1.1rem; color: var(--accent); }
.u-fs-ff { font-size: 0.8rem; font-family: monospace; }
.u-d-ta { display: inline-block; text-align: center; }
.u-ta-p { text-align: center; padding: 2.5rem 1.5rem; }
.u-clr-td { color: var(--accent); text-decoration: none; }
.u-p-clr-1 { padding: 0.5rem 0; color: var(--text-muted); }
.u-mb-clr { margin-bottom: 0.5rem; color: var(--accent); }
.u-fs-clr-2 { font-size: 0.95rem; color: var(--text-muted); }
.u-fs-clr-3 { font-size: 0.85rem; color: var(--text-muted); }
.u-clr-fs { color: var(--text-muted); font-size: 0.95rem; }
.u-d-ai-g { display: flex; align-items: center; gap: 1rem; }
.u-clr-mb { color: var(--text-muted); margin-bottom: 1rem; }
.u-d-g-ai { display: flex; gap: 1rem; align-items: center; }
.u-d-jc { display: flex; justify-content: space-between; }
.u-p-h-w { position: relative; height: 250px; width: 100%; }
.u-bb { border-bottom: 1px solid rgba(255,255,255,0.2); }
.u-fs-clr-lh { font-size: 1rem; color: var(--text-muted); line-height: 1.5; }
.u-fs-fs-clr { font-size: 0.8rem; font-style: italic; color: #666; }
.u-mt-p-ox { margin-top: 1rem; padding: 1.5rem; overflow-x: auto; }
.u-fs-clr-mb { font-size: 2rem; color: var(--text-main); margin-bottom: 0.5rem; }
.u-mt-p-fs { margin-top: 1rem; padding: 1.5rem; font-size: 0.9rem; }
.u-fs-clr-mt { font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; }
.u-m-w-h { margin: 0 auto 2rem auto; width: 120px; height: 120px; }
.u-clr-mb-fs { color: var(--text-main); margin-bottom: 0.5rem; font-size: 1.8rem; }
.u-fs-clr-mb-1 { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.u-c-clr-fw { cursor: pointer; color: var(--accent); font-weight: 600; }
.u-fw-fs-ls { font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; }
.u-fs-mb-lh { font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.1; }
.u-m-fs-clr { margin: 0 auto 1.5rem auto; font-size: 1.1rem; color: var(--text-main); }
.u-d-g-mt-fw { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.u-clr-d-mb { color: var(--accent); display: block; margin-bottom: 0.3rem; }
.u-clr-mb-fs-1 { color: var(--accent); margin-bottom: 0.5rem; font-size: 1rem; }
.u-mt-ta-p { margin-top: 1.5rem; text-align: center; padding: 2rem 1.5rem; }
.u-fs-lh-clr { font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); }
.u-fs-clr-fw { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.u-fs-lh-clr-1 { font-size: 0.85rem; line-height: 1.5; color: var(--text-muted); }
.u-clr-mb-fs-2 { color: var(--accent); margin-bottom: 0.5rem; font-size: 1.1rem; }
.u-w-h-br-of { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.u-mt-fs-clr { margin-top: 0.5rem; font-size: 0.95rem; color: var(--text-muted); }
.u-clr-fs-mb { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 1rem; }
.u-clr-fs-mb-1 { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.u-fs-clr-mb-2 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.u-fs-mb-clr { font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--text-muted); }
.u-clr-fs-mb-2 { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 1.5rem; }
.u-clr-fs-mb-3 { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.8rem; }
.u-w-p-fs-jc { width: 100%; padding: 12px; font-size: 1rem; justify-content: center; }
.u-fs-clr-lh-m { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.u-clr-fs-fs-mb { color: #ff9800; font-size: 0.85rem; font-style: italic; margin-bottom: 1rem; }
.u-w-ta-fs-bc { width: 100%; text-align: left; font-size: 0.9rem; border-collapse: collapse; }
.u-mt-pl-bl { margin-top: 0.5rem; padding-left: 1rem; border-left: 2px solid var(--accent); }
.u-clr-fs-lh-d { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; display: block; }
.u-b-b-clr { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.u-mt-fs-lh-clr { margin-top: 1.5rem; font-size: 0.85rem; line-height: 1.5; color: var(--text-muted); }
.u-fs-lh-mb-clr { font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; color: var(--text-muted); }
.u-fs-lh-clr-mb { font-size: 0.85rem; line-height: 1.5; color: var(--text-muted); margin-bottom: 1rem; }
.u-fs-lh-clr-mb-1 { font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 2rem; }
.u-fs-lh-ta-clr { font-size: 0.95rem; line-height: 1.6; text-align: justify; color: var(--text-muted); }
.u-fs-lh-pl-clr { font-size: 0.85rem; line-height: 1.5; padding-left: 1.2rem; color: var(--text-muted); }
.u-fs-lh-clr-mb-2 { font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 1.5rem; }
.u-mt-mb-d-fd { margin-top: 1rem; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.u-clr-ff-mb-fs { color: var(--text-main); font-family: var(--font-heading); margin-bottom: 0.5rem; font-size: 1.25rem; }
.u-clr-bb-pb { color: var(--accent); border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; }
.u-fs-clr-mb-lh { font-size: 4rem; color: var(--accent); margin-bottom: 1rem; line-height: 1; font-weight: 900; }
.u-clr-ff-mb-fs-1 { color: var(--accent); font-family: var(--font-heading); margin-bottom: 1.5rem; font-size: 2rem; }
.u-mb-b-p-br { margin-bottom: 0.5rem; background: var(--border-color); padding: 0.5rem; border-radius: 4px; }
.u-m-d-fd-ai { margin: 1.5rem 0 2rem 0; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.u-d-jc-w-mb { display: flex; justify-content: space-between; width: 100%; margin-bottom: 2rem; align-items: center; }
.u-mt-ta-bt-pt { margin-top: 3rem; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; }
.u-mt-p-bl-b { margin-top: 1rem; padding: 1.5rem; border-left: 4px solid #f39c12; background: rgba(243, 156, 18, 0.05); }
.u-mt-clr-bb-pb { margin-top: 2rem; color: var(--accent); border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; }
.u-fs-bb-pb-mb { font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.u-p-br-fs-fw { padding: 4px 12px; border-radius: 16px; font-size: 0.85rem; font-weight: 600; transition: background 0.3s, color 0.3s; }
.u-mt-fs-bb-pb { margin-top: 2rem; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.u-fd-ai-jc-ta { flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-top: 1rem; margin-bottom: 1.5rem; }
.u-fs-lh-clr-pl { font-size: 0.8rem; line-height: 1.4; color: var(--text-muted); padding-left: 1.2rem; list-style-type: square; margin-bottom: 1.5rem; }
.u-fs-bb-pb-mb-1 { font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; margin-bottom: 0.5rem; margin-top: 1.5rem; }
.u-d-jc-mb-bb { display: flex; justify-content: space-between; margin-bottom: 0.8rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.u-b-br-p-d { background: rgba(255,255,255,0.1); border-radius: 20px; padding: 4px; display: flex; cursor: pointer; border: 1px solid rgba(255,255,255,0.2); }
.u-clr-td-d-mt { color: var(--accent); text-decoration: none; display: inline-block; margin-top: 0.5rem; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.u-p-b-b-clr { padding: 10px 20px; background: rgba(29, 185, 84, 0.2); border: 1px solid var(--accent); color: var(--text-main); border-radius: 8px; cursor: pointer; opacity: 1; }
.u-ta-b-bc-p { text-align: center; background: linear-gradient(145deg, rgba(29,185,84,0.15), rgba(15,17,21,0.8)); border-color: var(--accent); padding: 2.5rem 1.5rem; }
.u-mt-ta-bc-b { margin-top: 1.5rem; text-align: center; border-color: var(--accent); background: linear-gradient(145deg, rgba(29,185,84,0.1), rgba(15,17,21,0.8)); padding: 2.5rem 1.5rem; }
.u-d-fd-ai-jc { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; margin-top: 2rem; }
.u-d-p-b-b { display: inline-block; padding: 8px 16px; background: rgba(29, 185, 84, 0.1); border: 1px solid var(--accent); color: var(--accent); text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: background 0.3s; }
.u-b-clr-b-w { background: var(--accent); color: #000; border: none; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; box-shadow: 0 0 15px var(--accent-glow); }

/* === WO3: Accessibility & Semantics === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: #000;
    padding: 8px 16px;
    z-index: 9999;
    font-weight: 800;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}


/* === WO6: Responsive QA Overrides === */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 1. Typography using clamp() for fluid scaling */
.main-title {
    font-size: clamp(1.8rem, 5vw, 3rem) !important;
}
.landing-title {
    font-size: clamp(2rem, 6vw, 3.8rem) !important;
}
.hero-slogan {
    font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
}

/* 2. Header and View Toggle at 320-430px */
@media (max-width: 480px) {
    .poster-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .header-top-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }
    .header-controls {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.5rem;
    }
    .lang-switcher {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}

/* 3. Role Cards (Mobile Stacking) */
@media (max-width: 768px) {
    .role-cards {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .role-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* 4. Quiz Likert Scale touch targets and wrapping */
.scale-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.scale-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}
.dene-btn, .action-btn, .close-modal, .exit-poster-btn, .lang-btn {
    min-height: 44px; /* Minimum touch target */
}
.close-modal {
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5. Modals internal scrolling */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
body.no-scroll {
    overflow: hidden !important;
}

/* 6. Dashboard Tables responsive */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
}
.session-means table {
    width: 100%;
    min-width: 600px;
}
.chart-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.u-mt-p-ox table { min-width: 500px; }
