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

body {
    background-color: transparent;
    /* Allow body::before background to show */
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* More robust fixed background for mobile */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../images/talos.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: var(--z-neg);
    pointer-events: none;
}



summary {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0;
    transition: color 0.3s;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

summary::-webkit-details-marker {
    display: none;
}

details[open] summary .section-toggle-btn i,
details[open] summary .section-toggle-btn svg {
    transform: rotate(180deg);
}

h1,
h2 {
    font-family: var(--font-primary);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Base Glass Class used heavily now */
.glass-panel-frosted {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: var(--glass-shadow);
    isolation: isolate;
    transform: translateZ(0);
}

/* --- Step 3: Utility & Semantic Classes --- */

/* --- Consolidated from tokens.css (M1 Refactor) --- */

.u-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-center-gap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.glass-panel-premium {
    background: var(--surface-glass);
    border: 1px solid var(--surface-glass-border);
    border-radius: var(--radius-lg);
}

/* Prevent backdrop-filter stacking on nested glass elements to optimize rendering performance */
.glass-panel-frosted .glass-panel-premium,
.glass-panel-premium .glass-panel-premium,
.glass-panel-frosted .glass-panel-frosted,
.glass-panel-premium .glass-panel-frosted,
.glass-panel-frosted .glass-panel-premium.u-bg-surface-glass-dark,
.glass-panel-premium .glass-panel-premium.u-bg-surface-glass-dark {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 10, 12, 0.45);
}

.text-uppercase-tracked {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- End M1 Refactor --- */

.u-mt-4 {
    margin-top: calc(var(--space-xl) + var(--space-sm));
}


.u-mt-0-5 {
    margin-top: var(--space-xs);
}

.u-mt-1 {
    margin-top: var(--space-sm);
}

.u-pt-1 {
    padding-top: var(--space-sm);
}

.u-mb-1 {
    margin-bottom: var(--space-sm);
}

.u-mb-1-5 {
    margin-bottom: var(--space-md);
}

.u-mb-2 {
    margin-bottom: var(--space-lg);
}


.u-pt-2-5 {
    padding-top: calc(var(--space-md) + var(--space-sm));
}



/* .u-icon-xs = 14×14 already exists above */

.u-icon-sm {
    width: 16px;
    height: 16px;
}

.u-icon-lg {
    width: 24px;
    height: 24px;
}

.u-mt-0-25 {
    margin-top: 0.25rem;
}

.u-line-height-1-5 {
    line-height: 1.5;
}

.u-cursor-pointer {
    cursor: pointer;
}

.u-pl-1-5 {
    padding-left: var(--space-md);
}

.u-pl-1-75 {
    padding-left: calc(var(--space-xs) * 3.5);
}


.u-text-left {
    text-align: left;
}

.u-text-center {
    text-align: center;
}

.u-text-upper {
    text-transform: uppercase;
}

.u-text-accent {
    color: var(--accent-primary);
}

.u-border-accent {
    border: 1px solid color-mix(in srgb, var(--accent-primary) 70%, transparent);
}

.u-text-secondary {
    color: var(--text-secondary);
}

.u-no-underline.u-no-underline {
    text-decoration: none;
}

.u-text-warning {
    color: #f59e0b;
}

/* Layout Utilities */


.u-relative {
    position: relative;
}

.u-absolute {
    position: absolute;
}



.u-z-floor {
    z-index: var(--z-floor);
}

.u-z-max {
    z-index: var(--z-max);
}

.u-opacity-0-5 {
    opacity: 0.5;
}

.u-opacity-0-6 {
    opacity: 0.6;
}

.u-bg-black-40 {
    background: rgba(0, 0, 0, 0.4);
}

.u-bg-none {
    background: none;
}

.u-bg-surface-glass-dark {
    background: var(--surface-glass-dark);
}

.u-border-glass {
    border: 1px solid rgba(255, 255, 255, 0.05);
}



.u-p-0-5 {
    padding: var(--space-xs);
}

.u-p-1-25 {
    padding: calc(var(--space-xs) * 2.5);
}

.u-border-top-glass {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.u-border-warning {
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.u-border-danger {
    border: 1px solid #ef4444;
}

.u-border-info {
    border: 1px solid #3b82f6;
}

.u-text-white {
    color: #EAE6DF;
}

.u-text-accent-secondary {
    color: var(--accent-secondary);
}

.u-text-danger {
    color: #ef4444;
}

.u-text-info {
    color: #3b82f6;
}

.u-icon-xs {
    width: 14px;
    height: 14px;
}

.u-flex {
    display: flex;
}

.u-flex-column {
    display: flex;
    flex-direction: column;
}

.u-flex-wrap {
    flex-wrap: wrap;
}

.u-align-center {
    align-items: center;
}

.u-align-start {
    align-items: flex-start;
}



.u-justify-center {
    justify-content: center;
}

.u-p-0-0-5 {
    padding: 0 var(--space-xs);
}

.u-p-0-5-1-25 {
    padding: var(--space-xs) calc(var(--space-xs) * 2.5);
}

.u-p-0-2-0-8 {
    padding: 2px 8px;
    /* kept raw as 2px/8px are micro-paddings */
}

.u-overflow-hidden {
    overflow: hidden;
}

.u-overflow-visible {
    overflow: visible;
}

.u-transition-transform-0-3 {
    transition: transform 0.3s ease;
}

.u-opacity-0-7 {
    opacity: 0.7;
}

.u-opacity-0-8 {
    opacity: 0.8;
}

.u-italic {
    font-style: italic;
}

.u-bold {
    font-weight: 700;
}

.u-w-full {
    width: 100%;
}

.u-h-auto {
    height: auto;
}

.u-border-top-faint {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.u-border-left-accent {
    border-left: 2px solid color-mix(in srgb, var(--accent-primary) 70%, transparent);
}

.u-font-body {
    font-family: var(--font-body);
}

.u-font-primary {
    font-family: var(--font-primary);
}



.u-font-size-xs {
    font-size: 0.75rem;
}

.u-font-size-sm {
    font-size: 0.8rem;
}

.u-font-size-md {
    font-size: 0.85rem;
}

.u-font-size-base {
    font-size: 0.9rem;
}

.u-font-size-lg {
    font-size: 0.95rem;
}

.u-font-size-xl {
    font-size: 1rem;
}

.u-font-size-2xl {
    font-size: 1.15rem;
}

.u-font-size-3xl {
    font-size: 1.5rem;
}

.u-bg-accent-secondary {
    background: var(--accent-secondary);
}

.scroll-top-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.secondary-btn.scroll-top-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.15rem;
    background: linear-gradient(135deg, rgba(24, 23, 28, 0.5) 0%, rgba(12, 11, 14, 0.5) 100%);
    border: 1.5px solid rgba(162, 131, 82, 0.7);
    transition: all var(--transition-smooth);
}

.secondary-btn.scroll-top-btn:hover {
    background: linear-gradient(135deg, rgba(24, 23, 28, 0.5) 0%, rgba(12, 11, 14, 0.5) 100%);
    transform: translateY(-2px);
    border-color: rgba(162, 131, 82, 0.7);
}



.u-mx-auto {
    margin: 0 auto;
}

.u-min-h-400 {
    min-height: 400px;
}

.u-m-0.u-m-0 {
    margin: 0;
}

.u-tracking-wider {
    letter-spacing: 0.1em;
}

.u-ml-auto {
    margin-left: auto;
}

.u-icon-md {
    width: 28px;
    height: 24px;
}





.u-gap-0-1 {
    gap: 0.1rem;
}

.u-gap-0-4 {
    gap: 0.4rem;
}

.u-gap-0-5 {
    gap: var(--space-xs);
}

.u-gap-0-75 {
    gap: calc(var(--space-xs) * 1.5);
}

.u-gap-1 {
    gap: var(--space-sm);
}


.u-flex-1 {
    flex: 1;
}

.u-p-0-5-1-5 {
    padding: var(--space-xs) var(--space-md);
}

.u-p-1-5-2 {
    padding: var(--space-md) var(--space-lg);
}

.u-w-64 {
    width: 64px;
}

.u-h-64 {
    height: 64px;
}

.u-bg-black-20 {
    background: rgba(0, 0, 0, 0.2);
}

.u-bg-black-60 {
    background: rgba(0, 0, 0, 0.6);
}

.u-min-w-200 {
    min-width: 200px;
}

.u-p-1-2 {
    padding: var(--space-sm) var(--space-lg);
}

.u-pointer-events-auto {
    pointer-events: auto;
}

.u-pointer-events-none {
    pointer-events: none;
}

.u-bg-success {
    background: var(--color-success);
}



.u-w-48 {
    width: 48px;
}

.u-h-48 {
    height: 48px;
}

.u-font-weight-900 {
    font-weight: 900;
}

.u-grid-cols-2 {
    grid-template-columns: 1fr 1fr;
}

.u-grid-3col {
    grid-template-columns: repeat(3, 1fr);
}



.u-mb-0-75 {
    margin-bottom: calc(var(--space-xs) * 1.5);
}

.u-p-0-5-1 {
    padding: var(--space-xs) var(--space-sm);
}

.u-bg-danger {
    background-color: var(--color-danger) !important;
}



.u-border-none {
    border: none !important;
}

.u-border-success {
    border: 1px solid var(--color-success) !important;
}

.u-border-bottom-glass {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.u-h-40 {
    height: 40px !important;
}

.u-h-full {
    height: 100% !important;
}

.u-min-w-100 {
    min-width: 100px !important;
}

.u-flex-shrink-0 {
    flex-shrink: 0 !important;
}

.u-font-bold {
    font-weight: 700 !important;
}

.u-font-secondary {
    font-family: var(--font-secondary) !important;
}

.u-opacity-0-3 {
    opacity: 0.3 !important;
}

.u-outline-none {
    outline: none !important;
}

.u-display-block,
.u-block {
    display: block !important;
}

.u-line-height-1-6 {
    line-height: 1.6 !important;
}

.u-text-shadow-glow {
    text-shadow: 0 0 10px var(--accent-glow) !important;
}

.u-text-success {
    color: var(--color-success) !important;
}

.u-inset-0 {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
}

/* Spacings */
.u-p-1 {
    padding: var(--space-sm) !important;
}

.u-p-md {
    padding: var(--space-md) !important;
}

.u-p-0-75-1-5 {
    padding: 0.75rem 1.5rem !important;
}

.u-pt-0 {
    padding-top: 0 !important;
}

.u-pt-0-5 {
    padding-top: 0.5rem !important;
}


.u-pt-0-8 {
    padding-top: 0.8rem !important;
}



.u-pb-0-5 {
    padding-bottom: 0.5rem !important;
}

.u-pb-0-75 {
    padding-bottom: 0.75rem !important;
}

.u-pb-4 {
    padding-bottom: calc(var(--space-xl) + var(--space-sm)) !important;
}

.u-mt-0 {
    margin-top: 0 !important;
}

.u-mt-2 {
    margin-top: var(--space-lg) !important;
}

.u-mt-md {
    margin-top: var(--space-md) !important;
}

.u-mb-0-25 {
    margin-bottom: 0.25rem !important;
}

.u-mb-2-5 {
    margin-bottom: calc(var(--space-md) + var(--space-sm)) !important;
}

.u-gap-3 {
    gap: 3rem !important;
}

.verified-link {
    color: var(--accent-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.verified-link:hover {
    border-color: color-mix(in srgb, var(--accent-primary) 70%, transparent);
}

/* Component Classes */
.icon-btn-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #EAE6DF;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.icon-btn-circle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: color-mix(in srgb, var(--accent-primary) 70%, transparent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Layout Utilities */
.tour-option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.u-grid {
    display: grid;
}

.u-border-radius-lg {
    border-radius: 12px;
}

.u-border-radius-full {
    border-radius: 9999px;
}

.u-btn-reset {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.u-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Custom Select Styling removed - decommissioned */





.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Content Layout */
.content-wrapper {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1 0 auto;
}

.page-section {
    display: none;
    position: relative;
}

.page-section.active {
    display: block;
}

.trait-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.trait-desc {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Buttons */
.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.25em;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.15));
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.primary-btn {
    background: rgba(18, 17, 20, 0.85);
    color: var(--accent-primary);
    border: 1px solid color-mix(in srgb, var(--accent-primary) 70%, transparent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    position: relative;
    overflow: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), transform var(--transition-smooth);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Shimmer streak removed - moved to .u-shimmer utility */

.primary-btn:hover {
    background: rgba(162, 131, 82, 0.15);
    color: #fffbeb;
    border-color: #fffbeb;
    box-shadow: 0 0 20px var(--accent-glow), 0 4px 15px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}


.primary-btn:active,
.secondary-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--font-secondary);
    border: 1.5px solid rgba(162, 131, 82, 0.7);
    transition: transform var(--transition-smooth), backdrop-filter 0.3s ease;
}

.hero-actions .secondary-btn,
.scroll-top-btn {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(162, 131, 82, 0.7);
}

.secondary-btn.premium-interactive:hover {
    background: rgba(255, 255, 255, 0.05);
}








.stat-points-display.hidden {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-width: 0;
    pointer-events: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

#char-form label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Ensure read-only inputs don't highlight on hover/focus unless they are clickable */
#char-form select option {
    background: var(--bg-base);
    color: var(--text-primary);
}

#char-form input:read-only {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: not-allowed;
}

#char-form textarea {
    resize: vertical;
}





/* Media queries consolidated at the end of the file */


/* Relocated to combat-utilities.css */


/* Relocated to main-character-card.css */



/* Icon Toggles */
.icon-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter var(--transition-smooth), transform var(--transition-smooth);
    color: rgba(255, 255, 255, 0.15);
}

/* Clickable Inputs Indicator */
.clickable-input {
    cursor: pointer;
    transition: transform var(--transition-smooth);
}

.clickable-input:hover {
    background: var(--accent-glow);
    border-color: color-mix(in srgb, var(--accent-primary) 70%, transparent);
    box-shadow: 0 0 15px var(--accent-glow);
}



.icon-toggle i {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-toggle:hover {
    color: rgba(255, 255, 255, 0.4);
}

.icon-toggle:has(input:checked) {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.icon-toggle:has(input:checked) i {
    transform: scale(1.15);
}

/* Inspiration Specific (Talosflame Symbol) */
.inspiration-toggle .inspiration-symbol {
    width: 36px;
    height: 36px;
    display: block;
    flex-shrink: 0;
    /* Mask the PNG shape, paint theme color through it */
    -webkit-mask-image: url(../../images/talosflame.png);
    mask-image: url(../../images/talosflame.png);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    /* Dim when inactive */
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color var(--transition-smooth);
}

.inspiration-toggle:hover .inspiration-symbol {
    background-color: rgba(255, 255, 255, 0.35);
}

.inspiration-toggle:has(input:checked) .inspiration-symbol {
    /* Direct theme color — no hue math */
    background-color: var(--accent-primary);
}


/* Attunement Specific (Link/Cyan Glow) */
.hidden {
    display: none;
}

/* Relocated to hud.css */

/* --- Gothic Aesthetic Features --- */
.gothic-header {
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.survivor-quote {
    display: block;
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.survivor-quote .quote-diamond {
    font-family: sans-serif;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    color: var(--accent-primary);
}


.size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
}

.size-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    border: none;
}

/* rules-grid media query consolidated at the end of the file */











/* --- Premium Interactive Styles --- */
.premium-interactive {
    position: relative;
    overflow: hidden;
}

.premium-interactive.top-border::before {
    bottom: auto;
    top: 0;
}

.premium-interactive.secondary-btn {
    padding: 0.45rem 1.15rem;
}

.premium-interactive:hover {
    background: rgba(255, 255, 255, calc(var(--glass-alpha-light) * 1.5));
    transform: translateY(-2px);
}



body.on-test-page .mobile-bottom-nav {
    bottom: 6.5rem;
    z-index: var(--z-floating);
    /* Above HUD */
}

/* Ensure the background never scrolls on the test page */
body.on-test-page {
    overflow: hidden;
    height: 100vh;
    width: 100%;
    position: fixed;
}

/* Ensure specific buttons and summaries are always clickable */
/* Relocated to navigation.css */

body.on-test-page .form-header {
    gap: 0.75rem;
    margin-bottom: 0;
}

body.on-test-page .collapsible-section-header {
    padding: 0.2rem 0.35rem;
}

body.on-test-page .vitals-status-grid {
    gap: 0.75rem 1rem;
    margin-top: 0.25rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
}


.glass-btn-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.glass-btn-circle::after {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
}

.glass-btn-circle:hover {
    background: var(--accent-primary);
    color: black;
    transform: rotate(90deg);
}







/* --- Reusable Glass Button System --- */
.glass-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 12px;
    transition: transform var(--transition-smooth);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.glass-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   CONSOLIDATED MEDIA QUERIES (Phase 5 Refactor — F7 / M5)
   ========================================================================== */

/* Tablet & Smaller Devices */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1rem;
    }

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

    body .content-wrapper {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .page-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Universal Grid Stacking */
    body .form-header {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        margin-bottom: 0.2rem;
    }

    .inspiration-form-group {
        grid-column: span 1;
    }

    /* Stats grid: 2 columns (2x3) on tablet and mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }


    /* Tab nav: scrollable, shrink text */
}

/* Small Tablets / Large Mobiles */
@media (max-width: 900px) {
    .main-navbar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .nav-links {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* Mobiles (600px and below) */
@media (max-width: 600px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .form-header {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 1rem;
    }
}

/* Compact Mobiles (480px and below) */
@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
        width: 94%;
    }

    .modal-btn-confirm,
    .modal-btn-cancel {
        width: 100%;
        min-width: unset;
        margin-bottom: 0.5rem;
    }

    #test-multiclass-modal .modal-content>div {
        flex-direction: column;
    }
}

/* Core Stat Text Label Styling & Colors */
.stat-label {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 1px;
}

[data-stat] .stat-label {
    color: var(--accent-primary);
}

#new-lore-input {
    width: 100%;
    min-height: 60px;
    resize: vertical;
    border-radius: 8px;
    padding: 8px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #EAE6DF;
    outline: none;
    transition: border-color var(--transition-smooth);
}

#new-lore-input:focus {
    border-color: color-mix(in srgb, var(--accent-primary) 70%, transparent);
}



/* Tiny Mobiles (400px and below) */
@media (max-width: 400px) {}

/* Tiny Mobiles (380px and below) */
@media (max-width: 380px) {}

/* Narrowest Mobiles (360px and below) */
@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .social-icons {
        gap: 0.75rem;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .form-header {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .privacy-body {
        padding: 0;
        max-width: 100%;
    }

    .contact-footer-form {
        padding: 1.25rem;
    }
}