@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --bg-color: #fcfcfc;
    --surface-color: #ffffff;
    --primary-color: #2c3e50;
    --primary-light: #34495e;
    --accent-color: #d35400;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --border-color: #ecf0f1;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --font-heading: 'Lora', serif;
    --font-body: 'Public Sans', sans-serif;
    --container-width: 800px;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at top right, #f8fbff 0%, var(--bg-color) 100%);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.mbti-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Navbar Modernization */
.mbti-nav {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Higher than ToC */
    box-shadow: var(--shadow-sm);
}

.mbti-nav .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mbti-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.mbti-nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.mbti-nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.mbti-nav-links a:hover {
    color: var(--primary-color);
}

/* Cards */
.mbti-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

/* --- Table of Contents Navigation --- */
.mbti-toc-container {
    position: sticky;
    top: 70px;
    /* Below main nav (approx 60-70px) */
    z-index: 900;
    background: var(--surface-color);
    /* Use a solid background */
    margin: 0 0 2rem 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

#personality-content h3 {
    scroll-margin-top: 140px;
    /* Prevents headers from being hidden under the sticky bars */
}

.mbti-toc {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.mbti-toc::-webkit-scrollbar {
    display: none;
}

.mbti-toc-item {
    white-space: nowrap;
}

.mbti-toc-item a {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding-bottom: 0.5rem;
    display: block;
    border-bottom: 2px solid transparent;
}

.mbti-toc-item a:hover,
.mbti-toc-item a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(44, 62, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
    background-color: var(--primary-light);
}

/* Progress Bar */
.progress-container {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: width 0.5s ease;
}

/* Footer (optional) */
.mbti-footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-15px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-out {
    animation: fadeOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Helper Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 3rem;
}

.hero-section {
    text-align: center;
    padding: 4rem 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.instruction-list {
    list-style: none;
    padding: 0;
}

.instruction-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.instruction-number {
    color: var(--accent-color);
    font-weight: 800;
    margin-right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.action-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
}

/* Page Specific Blocks (Moved from pages) */
.question-wrapper {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mbti-radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* Professional 4-Option Layout */
.mbti-options-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.mbti-option-item {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
    user-select: none;
}

.mbti-option-item:hover {
    border-color: var(--primary-color);
    background-color: #f8fbff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mbti-option-item input {
    position: absolute;
    opacity: 0;
}

.mbti-option-item .option-text {
    font-size: 1.05rem;
    color: var(--text-main);
    flex-grow: 1;
    line-height: 1.4;
}

.mbti-option-item .option-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mbti-option-item input:checked+.option-check {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.mbti-option-item input:checked+.option-check::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.mbti-option-item.selected {
    border-color: var(--primary-color);
    background: #f0f7ff;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* Result Detail Styling */
.result-header {
    text-align: center;
    padding: 6rem 1rem 4rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0 0 60px 60px;
    margin-bottom: -60px;
    position: relative;
    overflow: hidden;
}

.result-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.result-type-code {
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: 8px;
    margin-bottom: 0;
    font-family: var(--font-heading);
    line-height: 1;
}

.result-subtitle {
    font-size: 1.8rem;
    opacity: 0.9;
    font-weight: 300;
    margin-top: 1rem;
}

.content-card {
    background: white;
    border-radius: 24px;
    padding: 4rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
    border: 1px solid var(--border-color);
}

#personality-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 1.5rem;
    font-size: 1.6rem;
}

#personality-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #34495e;
    text-align: justify;
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition-base);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Personality Grid */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.personality-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.personality-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-image-wrapper {
    height: 180px;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.personality-card:hover .card-image-wrapper img {
    transform: scale(1.08);
    opacity: 1;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-type {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
}

.card-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding: 1rem 2rem;
    text-align: right;
    background: #fafbfc;
}

.learn-more {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.learn-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-width: 95%;
    }

    body {
        font-size: 15px;
    }

    .mbti-container {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 2rem 0 1rem;
    }

    .mbti-nav .container {
        padding: 0 1rem;
    }

    .mbti-nav-links {
        gap: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .mbti-card {
        padding: 1.5rem;
        border-radius: 16px;
        margin-bottom: 1.5rem;
    }

    .progress-container {
        margin-bottom: 1.5rem;
    }

    .instruction-item {
        margin-bottom: 1rem;
    }

    .instruction-number {
        margin-right: 1rem;
    }

    .result-header {
        padding: 4rem 1rem 3rem;
        border-radius: 0 0 40px 40px;
    }

    .result-type-code {
        font-size: 4rem;
        letter-spacing: 4px;
    }

    .result-subtitle {
        font-size: 1.4rem;
    }

    .content-card {
        padding: 2rem 1.5rem;
    }

    .types-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-type {
        font-size: 1.8rem;
    }

    .action-bar {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .mbti-toc-container {
        top: 60px;
        /* Mobile nav is usually shorter */
        margin: 0 -1rem 1.5rem -1rem;
        padding: 0.8rem 1rem;
        border-radius: 0;
        width: calc(100% + 2rem);
    }

    .mbti-toc {
        gap: 1rem;
    }
}

/* --- Share Poster Modal --- */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    padding: 2rem;
}

.share-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: center;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.generated-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* --- Poster Template (Hidden from view) --- */
.poster-template {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 450px;
    height: 600px;
    background: #fff;
    overflow: hidden;
}

.poster-body {
    width: 100%;
    height: 100%;
    padding: 2.2rem 2rem;
    background: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 12px solid #f8f9fa;
    box-sizing: border-box;
}

.poster-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.12;
    /* Slightly higher for better visibility in capture */
    z-index: 0;
}

.poster-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.poster-type-code {
    font-family: var(--font-heading);
    font-size: 4.8rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.2rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.poster-subtitle {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 2px;
}

.poster-traits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.trait-bar-group {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.trait-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e0;
}

.trait-label-group.left {
    width: 70px;
    justify-content: flex-start;
}

.trait-label-group.right {
    width: 70px;
    justify-content: flex-end;
}

.trait-letter {
    width: 14px;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
}

.trait-name {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Color Coding for Active Labels and Bars */
.bar-ei.active,
.bar-ei .active {
    color: #10b981;
}

.bar-sn.active,
.bar-sn .active {
    color: #ef4444;
}

.bar-tf.active,
.bar-tf .active {
    color: #f59e0b;
}

.bar-jp.active,
.bar-jp .active {
    color: #06b6d4;
}

.trait-bar-bg {
    flex-grow: 1;
    height: 10px;
    background: #f1f5f9;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.trait-bar-fill {
    position: absolute;
    height: 100%;
    border-radius: 7px;
    transition: all 0.3s ease;
}

/* Dimension Specific Colors */
.bar-ei .trait-bar-fill {
    background: linear-gradient(90deg, #a7f3d0, #10b981);
}

.bar-sn .trait-bar-fill {
    background: linear-gradient(90deg, #fecaca, #ef4444);
}

.bar-tf .trait-bar-fill {
    background: linear-gradient(90deg, #fef08a, #f59e0b);
}

.bar-jp .trait-bar-fill {
    background: linear-gradient(90deg, #99f6e4, #06b6d4);
}

.poster-description {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 1.2rem;
    padding: 0.8rem 1.2rem;
    background: #fcfcfc;
    border-left: 3px solid var(--primary-color);
    text-align: justify;
    position: relative;
    z-index: 1;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

.poster-description::before {
    content: '"';
    position: absolute;
    top: 0;
    left: 10px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
}

.poster-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 2px solid var(--primary-color);
    padding-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.poster-top-logo {
    position: absolute;
    top: 1.2rem;
    left: 1.5rem;
    max-height: 18px;
    width: auto;
    object-fit: contain;
    z-index: 2;
}

.poster-branding {
    text-align: left;
}

.poster-branding-text {
    display: flex;
    flex-direction: column;
}

.floating-action-bar {
    position: fixed !important;
    bottom: 50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: 90% !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    z-index: 9999 !important;
    display: flex !important;
    justify-content: center !important;
    border: none !important;
}

.floating-action-bar .btn-primary {
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.4) !important;
    padding: 1.1rem 3.5rem !important;
    border-radius: 50px !important;
    font-size: 1.1rem !important;
    white-space: nowrap !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.mbti-footer {
    padding-bottom: 4rem !important;
}

.poster-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.poster-qr {
    text-align: right;
}

/* 进度条百分比样式 */
.trait-percent {
    font-size: 14px;
    font-weight: 700;
    margin: 0 6px;
    opacity: 0.8;
}

.trait-label-group.left.active .trait-percent {
    color: inherit;
}

.trait-label-group.right.active .trait-percent {
    color: inherit;
}

.trait-label-group {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 65px; /* 增加宽度，防止拥挤 */
    white-space: nowrap; /* 强制不换行 */
}

/* 进度条百分比样式优化 */
.trait-percent {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    color: var(--primary-color);
}

/* 当进度条在左侧填充时，百分比靠左对齐并稍微偏移 */
.trait-label-group.left.active + .trait-bar-bg .trait-percent {
    left: 8px;
}

/* 当进度条从右侧填充时，百分比靠右对齐 */
.trait-label-group.right.active .trait-percent {
    right: 8px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.page-trait-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.dim-label-group {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 75px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    white-space: nowrap;
}

.dim-label-group.left { justify-content: flex-end; }
.dim-label-group.right { justify-content: flex-start; }

.dim-label-group.active {
    color: #fff;
    font-weight: 700;
}

.dim-letter {
    font-family: 'Georgia', serif;
    font-weight: 900;
    font-size: 1rem;
}

.dim-name {
    font-size: 0.8rem;
}

.page-trait-bar-bg {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.page-trait-bar-fill {
    position: absolute;
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-out;
}

/* 结果页内置进度条及文字着色 */
.page-trait-row.bar-ei .page-trait-bar-fill { background: #2ecc71; } /* 鲜绿色 */
.page-trait-row.bar-sn .page-trait-bar-fill { background: #e74c3c; } /* 鲜红色 */
.page-trait-row.bar-tf .page-trait-bar-fill { background: #f1c40f; } /* 鲜黄色 */
.page-trait-row.bar-jp .page-trait-bar-fill { background: #1abc9c; } /* 鲜青色 */

/* 文字颜色同步逻辑 */
.page-trait-row.bar-ei .dim-label-group.active { color: #2ecc71 !important; }
.page-trait-row.bar-sn .dim-label-group.active { color: #e74c3c !important; }
.page-trait-row.bar-tf .dim-label-group.active { color: #f1c40f !important; }
.page-trait-row.bar-jp .dim-label-group.active { color: #1abc9c !important; }

.page-trait-percent {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 4px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 1;
}