/* ==========================================================================
   BestSync Multi-Theme Layer
   Themes:
     - wmp-aero       : Windows Media Player 11/12 + Win7 Frutiger Aero Glass
     - terraria-pixel : 16-bit Terraria RPG (sky, pixel clouds, forest trees)
     - default        : Stock Obsidian Dark (untouched)
   ========================================================================== */

/* ── Shared Sidebar Theme Switcher Bar ─────────────────────────────────── */

.bestsync-theme-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-top: 8px;
    padding: 3px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bestsync-theme-btn {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-2);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 5px 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bestsync-theme-btn:hover {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.08);
}

.bestsync-theme-btn.is-active {
    color: #ffffff;
    background: rgba(var(--accent-rgb), 0.28);
    border-color: rgba(var(--accent-rgb), 0.55);
}

html[data-sidebar="collapsed"] .bestsync-theme-bar {
    display: none;
}

/* ==========================================================================
   THEME 1: WMP AERO (Windows Media Player 11/12 + Win7 Frutiger Aero Glass)
   ========================================================================== */

html[data-theme="wmp-aero"] {
    --aero-desktop: linear-gradient(150deg, #12588c 0%, #2480bd 34%, #55b4df 68%, #9be0d6 100%);
    --aero-glass-top: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.68) 0%,
        rgba(218, 240, 255, 0.48) 48%,
        rgba(162, 212, 246, 0.52) 50%,
        rgba(196, 232, 253, 0.62) 100%
    );
    --aero-glass-bar: linear-gradient(
        180deg,
        rgba(235, 247, 255, 0.82) 0%,
        rgba(194, 226, 250, 0.72) 48%,
        rgba(145, 200, 240, 0.76) 50%,
        rgba(179, 222, 252, 0.84) 100%
    );
    --aero-glass-border-outer: rgba(24, 78, 126, 0.62);
    --aero-glass-border-inner: rgba(255, 255, 255, 0.8);
    --aero-window-shadow: 0 12px 34px rgba(8, 42, 74, 0.34), 0 2px 6px rgba(8, 42, 74, 0.18);
    --aero-btn-neutral: linear-gradient(180deg, #f8fbfe 0%, #e8f1fa 49%, #d5e4f3 50%, #e7f2fc 100%);
    --aero-btn-primary: linear-gradient(180deg, #74c4f7 0%, #3ba0e4 49%, #1a7ec9 50%, #2a97e4 100%);
    --aero-btn-success: linear-gradient(180deg, #6de28e 0%, #31ba5a 49%, #1a9740 50%, #33c15d 100%);
    --aero-btn-danger: linear-gradient(180deg, #fef5f5 0%, #f8dada 49%, #f1c0c0 50%, #f7dada 100%);
    --aero-focus-glow: rgba(60, 164, 236, 0.48);

    /* Remap global SoulSync tokens to bright Aero desktop-utility surfaces */
    --accent-rgb: 26, 126, 201;
    --accent-light-rgb: 59, 160, 228;
    --accent-neon-rgb: 116, 196, 247;
    --accent: #1a7ec9;
    --accent-light: #3ba0e4;
    --accent-color: #1a7ec9;

    --white-a02: rgba(19, 40, 61, 0.025);
    --white-a03: rgba(19, 40, 61, 0.04);
    --white-a04: rgba(19, 40, 61, 0.055);
    --white-a05: rgba(19, 40, 61, 0.07);
    --white-a06: rgba(19, 40, 61, 0.085);
    --white-a07: rgba(19, 40, 61, 0.1);
    --white-a08: rgba(24, 78, 126, 0.14);
    --white-a09: rgba(24, 78, 126, 0.16);
    --white-a10: rgba(24, 78, 126, 0.18);
    --white-a12: rgba(24, 78, 126, 0.22);
    --white-a14: rgba(24, 78, 126, 0.25);
    --white-a15: rgba(24, 78, 126, 0.27);
    --white-a16: rgba(24, 78, 126, 0.29);
    --white-a18: rgba(24, 78, 126, 0.32);
    --white-a20: rgba(24, 78, 126, 0.35);
    --white-a25: rgba(24, 78, 126, 0.4);
    --white-a30: rgba(24, 78, 126, 0.45);
    --white-a50: #5d7892;
    --white-a60: #4a6682;
    --white-a65: #435f7a;
    --white-a70: #395570;
    --white-a80: #243f58;
    --white-a85: #1a334a;
    --white-a90: #13283d;

    --surface-1: #ffffff;
    --surface-2: #f4f8fc;
    --surface-3: #e7f0fa;
    --line: #b8cde2;
    --line-strong: #8aa7c4;

    --text-1: #13283d;
    --text-2: #395570;
    --text-3: #5d7892;
    --text-primary: #13283d;
    --text-secondary: #395570;
    --text-muted: #5d7892;
    --text-bright: #13283d;
    --text-soft: #395570;

    --bg-primary: #eef5fc;
    --bg-secondary: #ffffff;
    --bg-surface: #f4f8fc;
    --bg-raised: #ffffff;
    --bg-raised-2: #e7f0fa;

    --sa-panel: #f4f8fc;
    --sa-panel-deep: #e8f1fa;
    --sa-card: #ffffff;
    --sa-card-raised: #f8fbfe;
    --sa-sheet: #f4f8fc;
    --sa-well: #e7f0fa;
    --sa-text: #13283d;
    --help-sheet: #f4f8fc;

    --radius-xs: 3px;
    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-control: 3px;
    --radius-lg: 4px;
    --radius-card: 4px;
    --radius-xl: 7px;
    --radius-sheet: 7px;

    --font-sans: "Segoe UI", Frutiger, "Frutiger Linotype", Calibri, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: Consolas, "Cascadia Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    background: var(--aero-desktop);
}

html[data-theme="wmp-aero"] body {
    font-family: var(--font-sans);
    background:
        radial-gradient(ellipse 68% 52% at 22% 14%, rgba(255, 255, 255, 0.34) 0%, transparent 65%),
        radial-gradient(ellipse 54% 46% at 84% 86%, rgba(155, 224, 214, 0.45) 0%, transparent 70%),
        var(--aero-desktop) !important;
    color: var(--text-1) !important;
}

html[data-theme="wmp-aero"] select {
    color-scheme: light;
}

html[data-theme="wmp-aero"] select option,
html[data-theme="wmp-aero"] select optgroup {
    background-color: #ffffff;
    color: #13283d;
}

/* Aero Glass Sidebar */
html[data-theme="wmp-aero"] .sidebar {
    background: var(--aero-glass-top) !important;
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    border-right: 1px solid var(--aero-glass-border-outer) !important;
    border-top: none !important;
    border-bottom-right-radius: 0 !important;
    box-shadow:
        inset 0 1px 0 var(--aero-glass-border-inner),
        inset -1px 0 0 rgba(255, 255, 255, 0.45),
        4px 0 22px rgba(8, 42, 74, 0.24) !important;
}

html[data-theme="wmp-aero"] .sidebar .app-name,
html[data-theme="wmp-aero"] .sidebar .app-subtitle,
html[data-theme="wmp-aero"] .sidebar .nav-section-title {
    color: #0e253b !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="wmp-aero"] .sidebar .nav-button {
    color: #132c45 !important;
    border-radius: 3px !important;
    border: 1px solid transparent;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

html[data-theme="wmp-aero"] .sidebar .nav-button:hover {
    background: var(--aero-btn-neutral) !important;
    border-color: #7f9db9 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="wmp-aero"] .sidebar .nav-button.active {
    background: var(--aero-btn-primary) !important;
    border-color: #1a5c94 !important;
    color: #ffffff !important;
    text-shadow: 0 -1px 0 rgba(10, 52, 92, 0.45) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1px 3px rgba(10, 52, 92, 0.25) !important;
}

/* Aero Theme Switcher & Side Toggle */
html[data-theme="wmp-aero"] .bestsync-theme-bar,
html[data-theme="wmp-aero"] .side-toggle {
    background: rgba(255, 255, 255, 0.52) !important;
    border: 1px solid #7f9db9 !important;
    border-radius: 3px !important;
    box-shadow: inset 0 1px 2px rgba(24, 66, 108, 0.12);
}

html[data-theme="wmp-aero"] .bestsync-theme-btn {
    color: #132c45;
    border-radius: 2px;
}

html[data-theme="wmp-aero"] .bestsync-theme-btn.is-active {
    background: var(--aero-btn-primary) !important;
    border-color: #1a5c94 !important;
    color: #ffffff !important;
    text-shadow: 0 -1px 0 rgba(10, 52, 92, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Main Content Window Body (bright opaque Aero desktop utility pane) */
html[data-theme="wmp-aero"] .main-content,
html[data-theme="wmp-aero"] .content-area {
    background: rgba(244, 248, 252, 0.94) !important;
    color: #13283d !important;
    border-left: 1px solid rgba(255, 255, 255, 0.72);
}

/* Aero Cards, Panels, Modals, Inputs */
html[data-theme="wmp-aero"] .card,
html[data-theme="wmp-aero"] .stat-card,
html[data-theme="wmp-aero"] .settings-card,
html[data-theme="wmp-aero"] .launch-pin-container,
html[data-theme="wmp-aero"] .modal-content {
    background: #ffffff !important;
    color: #13283d !important;
    border: 1px solid #8aa7c4 !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 4px 14px rgba(12, 52, 90, 0.12) !important;
}

html[data-theme="wmp-aero"] input[type="text"],
html[data-theme="wmp-aero"] input[type="search"],
html[data-theme="wmp-aero"] input[type="password"],
html[data-theme="wmp-aero"] input[type="number"],
html[data-theme="wmp-aero"] textarea,
html[data-theme="wmp-aero"] select {
    background: #ffffff !important;
    color: #13283d !important;
    border: 1px solid #96b0ca !important;
    border-top-color: #7c99b8 !important;
    border-radius: 3px !important;
    box-shadow: inset 0 1px 2px rgba(24, 66, 108, 0.09);
}

html[data-theme="wmp-aero"] input:focus,
html[data-theme="wmp-aero"] textarea:focus,
html[data-theme="wmp-aero"] select:focus {
    outline: none;
    border-color: #2a97e4 !important;
    box-shadow: inset 0 1px 2px rgba(24, 66, 108, 0.08), 0 0 0 2px var(--aero-focus-glow) !important;
}

/* WMP 11/12 Media Player Bar */
html[data-theme="wmp-aero"] #media-player-bar,
html[data-theme="wmp-aero"] .media-player-bar {
    background: var(--aero-glass-bar) !important;
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border-top: 1px solid var(--aero-glass-border-outer) !important;
    box-shadow: inset 0 1px 0 var(--aero-glass-border-inner), 0 -4px 18px rgba(8, 42, 74, 0.2) !important;
    color: #13283d !important;
}

/* /player React App in WMP Aero */
html[data-theme="wmp-aero"] [data-player-root] {
    --pl-bg: transparent;
    --pl-panel: rgba(255, 255, 255, 0.9);
    --pl-panel-solid: #ffffff;
    --pl-line: #b8cde2;
    --pl-text: #13283d;
    --pl-text-2: #395570;
    --pl-text-3: #5d7892;
    --accent-rgb: 26, 126, 201 !important;
    --accent-light-rgb: 59, 160, 228 !important;
    --accent: #1a7ec9 !important;
    --accent-light: #3ba0e4 !important;
    --accent-color: #1a7ec9 !important;
    background:
        radial-gradient(ellipse 68% 52% at 22% 14%, rgba(255, 255, 255, 0.36) 0%, transparent 65%),
        var(--aero-desktop) !important;
    color: #13283d !important;
    font-family: var(--font-sans) !important;
}

html[data-theme="wmp-aero"] [data-player-root] > nav {
    background: var(--aero-glass-top) !important;
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    border-right: 1px solid var(--aero-glass-border-outer) !important;
    box-shadow: inset 0 1px 0 var(--aero-glass-border-inner);
}

html[data-theme="wmp-aero"] [data-player-root] > main {
    background: rgba(244, 248, 252, 0.92) !important;
    color: #13283d !important;
}

html[data-theme="wmp-aero"] [data-player-root] a[data-current="true"],
html[data-theme="wmp-aero"] [data-player-root] [data-bestsync-theme-switcher] button[data-active="true"] {
    background: var(--aero-btn-primary) !important;
    border-color: #1a5c94 !important;
    color: #ffffff !important;
    text-shadow: 0 -1px 0 rgba(10, 52, 92, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

html[data-theme="wmp-aero"] [data-player-root] [data-bestsync-theme-switcher] {
    background: rgba(255, 255, 255, 0.72) !important;
    border-color: #7f9db9 !important;
}

/* ==========================================================================
   THEME 2: TERRARIA PIXEL (16-bit Sky, Drifting Clouds, Forest Trees & RPG UI)
   ========================================================================== */

@keyframes bs-pixel-clouds-drift {
    from {
        background-position: 0 18px;
    }
    to {
        background-position: 640px 18px;
    }
}

html[data-theme="terraria-pixel"] {
    --px-sky: linear-gradient(180deg, #4b94e6 0%, #74bbf7 46%, #a8dbff 78%, #d6f1ff 100%);
    --px-panel: rgba(36, 48, 102, 0.92);
    --px-panel-solid: #243066;
    --px-panel-raised: #2e3e82;
    --px-panel-deep: #19224d;
    --px-border-dark: #0f1533;
    --px-border-light: #6d85d6;
    --px-gold: #f5c84c;
    --px-gold-dark: #a66c14;
    --px-grass: #58c44b;
    --px-grass-dark: #2d7a2b;
    --px-wood: #8c5a32;

    --accent-rgb: 88, 196, 75;
    --accent-light-rgb: 132, 224, 104;
    --accent-neon-rgb: 245, 200, 76;
    --accent: #58c44b;
    --accent-light: #84e068;
    --accent-color: #58c44b;

    --surface-1: rgba(36, 48, 102, 0.88);
    --surface-2: rgba(46, 62, 130, 0.9);
    --surface-3: rgba(58, 78, 158, 0.92);
    --line: rgba(109, 133, 214, 0.45);
    --line-strong: #6d85d6;

    --text-1: #f7f9ff;
    --text-2: #d0dcff;
    --text-3: #9db0eb;
    --text-primary: #f7f9ff;
    --text-secondary: #d0dcff;
    --text-muted: #9db0eb;
    --text-bright: #ffffff;
    --text-soft: #c5d4ff;

    --bg-primary: #1d2859;
    --bg-secondary: #243066;
    --bg-surface: #243066;
    --bg-raised: #2e3e82;
    --bg-raised-2: #3a4e9e;

    --sa-panel: #243066;
    --sa-panel-deep: #19224d;
    --sa-card: #2e3e82;
    --sa-card-raised: #3a4e9e;
    --sa-sheet: #243066;
    --sa-well: #141c42;
    --sa-text: #f7f9ff;
    --help-sheet: #243066;

    --radius-xs: 0px;
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-control: 0px;
    --radius-lg: 0px;
    --radius-card: 0px;
    --radius-xl: 0px;
    --radius-sheet: 0px;

    --font-sans: "Silkscreen", "Pixelify Sans", "VT323", "Courier New", ui-monospace, Menlo, Consolas, monospace;
    --font-mono: "Silkscreen", ui-monospace, Menlo, Consolas, monospace;

    background: var(--px-sky);
}

html[data-theme="terraria-pixel"] body {
    font-family: var(--font-sans);
    background: var(--px-sky) !important;
    color: var(--text-1) !important;
    image-rendering: pixelated;
}

/* Drifting 16-bit Pixel Clouds Layer */
html[data-theme="terraria-pixel"] body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.92;
    image-rendering: pixelated;
    background-repeat: repeat-x;
    background-size: 640px 180px;
    background-position: 0 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='45' shape-rendering='crispEdges'%3E%3Crect x='14' y='12' width='24' height='6' fill='%23ffffff'/%3E%3Crect x='10' y='16' width='34' height='6' fill='%23ffffff'/%3E%3Crect x='18' y='8' width='14' height='4' fill='%23ffffff'/%3E%3Crect x='12' y='22' width='30' height='3' fill='%23cde6ff'/%3E%3Crect x='84' y='6' width='30' height='6' fill='%23ffffff'/%3E%3Crect x='78' y='10' width='42' height='7' fill='%23ffffff'/%3E%3Crect x='92' y='2' width='16' height='4' fill='%23ffffff'/%3E%3Crect x='82' y='17' width='36' height='3' fill='%23cde6ff'/%3E%3Crect x='132' y='22' width='20' height='5' fill='%23ffffff'/%3E%3Crect x='128' y='25' width='28' height='5' fill='%23ffffff'/%3E%3Crect x='130' y='30' width='24' height='2' fill='%23cde6ff'/%3E%3C/svg%3E");
    animation: bs-pixel-clouds-drift 70s linear infinite;
}

/* Pixel Forest Hills & Terraria Oak/Pine Trees Horizon */
html[data-theme="terraria-pixel"] body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 190px;
    pointer-events: none;
    z-index: 0;
    image-rendering: pixelated;
    background-repeat: repeat-x;
    background-position: bottom left;
    background-size: 512px 190px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='48' shape-rendering='crispEdges'%3E%3Cpath d='M0 30h16v-4h16v-4h20v4h14v4h18v-6h22v4h22v20H0z' fill='%2354997a'/%3E%3Cpath d='M0 36h24v-4h28v4h26v-3h24v3h26v12H0z' fill='%233d8c40'/%3E%3Crect x='0' y='41' width='128' height='7' fill='%236b4423'/%3E%3Crect x='0' y='39' width='128' height='3' fill='%2358c44b'/%3E%3Crect x='18' y='25' width='4' height='14' fill='%23784c28'/%3E%3Crect x='12' y='15' width='16' height='10' fill='%232e8537'/%3E%3Crect x='14' y='11' width='12' height='6' fill='%2346ab47'/%3E%3Crect x='16' y='9' width='8' height='3' fill='%2368cc58'/%3E%3Crect x='58' y='27' width='4' height='12' fill='%236e4422'/%3E%3Crect x='52' y='21' width='16' height='6' fill='%23246b31'/%3E%3Crect x='54' y='16' width='12' height='5' fill='%232f823b'/%3E%3Crect x='56' y='12' width='8' height='4' fill='%2343a349'/%3E%3Crect x='58' y='9' width='4' height='3' fill='%235ec454'/%3E%3Crect x='98' y='23' width='4' height='16' fill='%23784c28'/%3E%3Crect x='91' y='13' width='18' height='10' fill='%232e8537'/%3E%3Crect x='94' y='9' width='12' height='5' fill='%2346ab47'/%3E%3Crect x='96' y='7' width='8' height='3' fill='%2368cc58'/%3E%3C/svg%3E");
}

html[data-theme="terraria-pixel"] .reduce-effects::before,
html[data-theme="terraria-pixel"] .max-performance::before {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme="terraria-pixel"] body::before {
        animation: none;
    }
}

html[data-theme="terraria-pixel"] .main-container {
    position: relative;
    z-index: 1;
}

/* Terraria RPG Sidebar */
html[data-theme="terraria-pixel"] .sidebar {
    background: var(--px-panel) !important;
    border-right: 3px solid var(--px-border-dark) !important;
    border-top: none !important;
    border-bottom-right-radius: 0 !important;
    box-shadow:
        inset -2px 0 0 var(--px-border-light),
        inset 2px 0 0 rgba(16, 22, 51, 0.7),
        4px 0 0 rgba(15, 21, 51, 0.45) !important;
}

html[data-theme="terraria-pixel"] .sidebar .app-name {
    color: var(--px-gold) !important;
    text-shadow: 2px 2px 0 var(--px-border-dark);
    letter-spacing: 0.04em;
}

html[data-theme="terraria-pixel"] .sidebar .nav-button {
    border-radius: 0 !important;
    border: 2px solid transparent;
    color: #dbe6ff !important;
    text-shadow: 1px 1px 0 var(--px-border-dark);
}

html[data-theme="terraria-pixel"] .sidebar .nav-button:hover {
    background: rgba(88, 114, 204, 0.48) !important;
    border-color: var(--px-border-light) !important;
    color: #ffffff !important;
}

html[data-theme="terraria-pixel"] .sidebar .nav-button.active {
    background: linear-gradient(180deg, #58c44b 0%, #3a9636 100%) !important;
    border: 2px solid var(--px-border-dark) !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 0 #1b4a1b !important;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.45),
        inset 0 -2px 0 rgba(20, 62, 22, 0.6),
        2px 2px 0 var(--px-border-dark) !important;
}

/* Terraria Theme Switcher */
html[data-theme="terraria-pixel"] .bestsync-theme-bar,
html[data-theme="terraria-pixel"] .side-toggle {
    background: var(--px-panel-deep) !important;
    border: 2px solid var(--px-border-dark) !important;
    border-radius: 0 !important;
    box-shadow: inset 0 0 0 1px var(--px-border-light);
}

html[data-theme="terraria-pixel"] .bestsync-theme-btn {
    border-radius: 0;
    color: #c5d4ff;
    text-shadow: 1px 1px 0 var(--px-border-dark);
}

html[data-theme="terraria-pixel"] .bestsync-theme-btn.is-active {
    background: var(--px-gold) !important;
    color: #1a1608 !important;
    border: 2px solid var(--px-gold-dark) !important;
    text-shadow: none;
}

/* Terraria Translucent Sky-Aware Main Area */
html[data-theme="terraria-pixel"] .main-content,
html[data-theme="terraria-pixel"] .content-area {
    background: rgba(24, 34, 78, 0.72) !important;
    color: #f7f9ff !important;
}

/* Terraria Chunky Pixel Cards & Inputs */
html[data-theme="terraria-pixel"] .card,
html[data-theme="terraria-pixel"] .stat-card,
html[data-theme="terraria-pixel"] .settings-card,
html[data-theme="terraria-pixel"] .launch-pin-container,
html[data-theme="terraria-pixel"] .modal-content {
    background: var(--px-panel) !important;
    border: 2px solid var(--px-border-dark) !important;
    border-radius: 0 !important;
    box-shadow:
        inset 0 2px 0 rgba(138, 166, 255, 0.32),
        inset 0 -2px 0 rgba(10, 14, 38, 0.55),
        3px 3px 0 rgba(12, 18, 44, 0.55) !important;
    color: #f7f9ff !important;
}

html[data-theme="terraria-pixel"] input[type="text"],
html[data-theme="terraria-pixel"] input[type="search"],
html[data-theme="terraria-pixel"] input[type="password"],
html[data-theme="terraria-pixel"] input[type="number"],
html[data-theme="terraria-pixel"] textarea,
html[data-theme="terraria-pixel"] select {
    background: var(--px-panel-deep) !important;
    color: #f7f9ff !important;
    border: 2px solid var(--px-border-dark) !important;
    border-radius: 0 !important;
    box-shadow: inset 2px 2px 0 rgba(8, 12, 32, 0.65), 0 0 0 1px rgba(109, 133, 214, 0.45);
}

html[data-theme="terraria-pixel"] input:focus,
html[data-theme="terraria-pixel"] textarea:focus,
html[data-theme="terraria-pixel"] select:focus {
    outline: none;
    border-color: var(--px-gold) !important;
    box-shadow: inset 2px 2px 0 rgba(8, 12, 32, 0.65), 0 0 0 2px var(--px-gold) !important;
}

/* Terraria Media Transport Bar */
html[data-theme="terraria-pixel"] #media-player-bar,
html[data-theme="terraria-pixel"] .media-player-bar {
    background: var(--px-panel-solid) !important;
    border-top: 3px solid var(--px-border-dark) !important;
    box-shadow:
        inset 0 2px 0 var(--px-border-light),
        0 -3px 0 rgba(15, 21, 51, 0.5) !important;
}

/* /player React App in Terraria Pixel */
html[data-theme="terraria-pixel"] [data-player-root] {
    --pl-bg: transparent;
    --pl-panel: rgba(36, 48, 102, 0.9);
    --pl-panel-solid: #243066;
    --pl-line: rgba(109, 133, 214, 0.5);
    --pl-text: #f7f9ff;
    --pl-text-2: #d0dcff;
    --pl-text-3: #9db0eb;
    --accent-rgb: 88, 196, 75 !important;
    --accent-light-rgb: 132, 224, 104 !important;
    --accent: #58c44b !important;
    --accent-light: #84e068 !important;
    --accent-color: #58c44b !important;
    background: transparent !important;
    color: #f7f9ff !important;
    font-family: var(--font-sans) !important;
}

html[data-theme="terraria-pixel"] [data-player-root] > nav {
    background: var(--px-panel) !important;
    border-right: 3px solid var(--px-border-dark) !important;
    box-shadow: inset -2px 0 0 var(--px-border-light);
}

html[data-theme="terraria-pixel"] [data-player-root] > main {
    background: rgba(24, 34, 78, 0.68) !important;
}

html[data-theme="terraria-pixel"] [data-player-root] a[data-current="true"] {
    background: linear-gradient(180deg, #58c44b 0%, #3a9636 100%) !important;
    border: 2px solid var(--px-border-dark) !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 2px 2px 0 var(--px-border-dark);
}

html[data-theme="terraria-pixel"] [data-player-root] [data-bestsync-theme-switcher] {
    background: var(--px-panel-deep) !important;
    border: 2px solid var(--px-border-dark) !important;
    border-radius: 0 !important;
}

html[data-theme="terraria-pixel"] [data-player-root] [data-bestsync-theme-switcher] button[data-active="true"] {
    background: var(--px-gold) !important;
    color: #1a1608 !important;
    border-color: var(--px-gold-dark) !important;
}
