@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
*:before,
*:after {
    box-sizing: inherit;
}

:root {
    --fuente-principal: 'Orbitron', sans-serif;
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --accent-color: #38bdf8;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #111c3a;
    --bg-panel: rgba(17, 24, 39, 0.92);
    --bg-surface: rgba(30, 41, 59, 0.7);
    --bg-elevated: rgba(30, 41, 59, 0.9);
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --shadow-strong: rgba(15, 23, 42, 0.6);
    --shadow-soft: rgba(15, 23, 42, 0.4);
    --border-strong: rgba(37, 99, 235, 0.45);
    --border-soft: rgba(148, 163, 184, 0.2);
    --success: #15803d;
    --warning: #ca8a04;
    --error: #dc2626;
    --log-background: rgba(15, 23, 42, 0.65);
    --pdu-active-bg: rgba(37, 99, 235, 0.15);
    --pdu-active-shadow: rgba(37, 99, 235, 0.45);
    --card-bg: rgba(15, 23, 42, 0.72);
    --card-hover-bg: rgba(17, 24, 39, 0.88);
    --card-border: rgba(59, 130, 246, 0.32);
    --card-text-strong: #e2e8f0;
    --pdu-item-bg: rgba(15, 23, 42, 0.55);
    --pdu-item-hover-bg: rgba(30, 41, 59, 0.78);
    --pdu-item-border: rgba(37, 99, 235, 0.28);
    --pdu-active-border: rgba(56, 189, 248, 0.7);
    --pdu-active-bg-1: rgba(37, 99, 235, 0.2);
    --pdu-active-bg-2: rgba(14, 165, 233, 0.16);
    --pdu-chip-bg: rgba(15, 23, 42, 0.7);
    --pdu-chip-text: #e2e8f0;
    --pdu-chip-border: rgba(14, 165, 233, 0.35);
    --pdu-current-bg: rgba(15, 23, 42, 0.65);
    --control-panel-offset: 140px;
}

[data-theme="light"] {
    --primary-color: #1d4ed8;
    --secondary-color: #0ea5e9;
    --accent-color: #2563eb;
    --bg-gradient-start: #f8fafc;
    --bg-gradient-end: #e2e8f0;
    --bg-panel: rgba(255, 255, 255, 0.88);
    --bg-surface: rgba(241, 245, 249, 0.85);
    --bg-elevated: rgba(226, 232, 240, 0.9);
    --text-light: #0f172a;
    --text-muted: #475569;
    --shadow-strong: rgba(15, 23, 42, 0.16);
    --shadow-soft: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(59, 130, 246, 0.35);
    --border-soft: rgba(148, 163, 184, 0.25);
    --success: #15803d;
    --warning: #b45309;
    --error: #b91c1c;
    --log-background: rgba(226, 232, 240, 0.65);
    --pdu-active-bg: rgba(29, 78, 216, 0.18);
    --pdu-active-shadow: rgba(37, 99, 235, 0.22);
    --card-bg: rgba(248, 250, 252, 0.88);
    --card-hover-bg: rgba(255, 255, 255, 0.96);
    --card-border: rgba(59, 130, 246, 0.18);
    --card-text-strong: #0f172a;
    --pdu-item-bg: rgba(226, 232, 240, 0.95);
    --pdu-item-hover-bg: rgba(241, 245, 249, 0.98);
    --pdu-item-border: rgba(148, 163, 184, 0.25);
    --pdu-active-border: rgba(29, 78, 216, 0.55);
    --pdu-active-bg-1: rgba(219, 234, 254, 0.9);
    --pdu-active-bg-2: rgba(224, 242, 254, 0.85);
    --pdu-chip-bg: rgba(241, 245, 249, 0.96);
    --pdu-chip-text: #1f2937;
    --pdu-chip-border: rgba(148, 163, 184, 0.35);
    --pdu-current-bg: rgba(226, 232, 240, 0.95);
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow: auto;
    min-height: 100vh;
    transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    line-height: 1.2;
}
h1 {
    font-size: 2.8rem;
}
h2 {
    font-size: 2.2rem;
}
h3 {
    font-size: 2rem;
}

img {
    max-width: 100%;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.container {
    width: 94%;
    max-width: 120rem;
    margin: 0 auto;
}

.capa {
    background-color: rgba(255, 255, 255, .04);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.capa h3 {
    margin-top: 0;
}

.boton {
    display: inline-block;
    color: #000;
    background-color: #fff;
    font-weight: 700;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 1rem;
    box-shadow: 0.4rem 0.4rem 1rem rgba(0, 0, 0, 0.7);
    cursor: pointer;
    transition: all 400ms ease;
    font-family: var(--fuente-principal);
}
.boton:hover {
    box-shadow: inset 0 0 1rem rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
}
.boton:disabled {
    color: #e1e1e1;
}

@media (min-width: 768px) {
    .btn-mini {
        padding: 0.5rem 1rem;
    }
    .btn-grande {
        padding: 1rem 3rem;
    }
}

.btn-transparente {
    color: #fff;
    background-color: transparent;
    border: 0.2rem solid #fff;
    box-shadow: none;
}
.btn-transparente:hover {
    color: #000;
    background-color: #fff;
    box-shadow: 0.4rem 0.4rem 1rem rgba(0, 0, 0, 0.7);
}

#control-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    padding: 2rem 2.8rem 2.4rem;
    z-index: 1000;
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 14px 40px var(--shadow-strong);
    overflow: hidden;
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

#particle-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: auto;
}

#control-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 35% 40%, rgba(37, 99, 235, 0.12) 0%, transparent 55%),
                radial-gradient(circle at 70% 60%, rgba(14, 165, 233, 0.1) 0%, transparent 58%);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.panel-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    margin-bottom: 1.8rem;
}

#control-panel h1 {
    flex: 1;
    text-align: left;
    font-size: 3rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 2px;
    position: relative;
    text-transform: uppercase;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes titlePulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(0, 217, 255, 0.6),
            0 0 30px rgba(0, 217, 255, 0.4),
            0 0 40px rgba(0, 217, 255, 0.2);
        transform: scale(1);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 30px rgba(0, 217, 255, 0.8),
            0 0 45px rgba(0, 217, 255, 0.6),
            0 0 60px rgba(0, 217, 255, 0.4);
        transform: scale(1.02);
    }
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin-top: 0.6rem;
}

#messageInput {
    flex: 1;
    min-width: 300px;
    padding: 1.2rem 2rem;
    font-size: 1.6rem;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--border-strong);
    border-radius: 1.2rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px var(--shadow-soft);
}

#messageInput:focus {
    outline: none;
    background: var(--bg-elevated);
    border-color: var(--primary-color);
    box-shadow: 0 12px 28px var(--shadow-strong);
}

#messageInput::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

button {
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 700;
    border: none;
    border-radius: 1.2rem;
    cursor: pointer;
    transition: all 0.4s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 12px 28px var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 320px;
    height: 320px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px var(--shadow-strong);
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 8px 30px var(--shadow-soft);
    }
    50% {
        box-shadow: 0 8px 36px var(--shadow-strong);
    }
}

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

.btn-primary:disabled {
    background: linear-gradient(135deg, #475569, #1e293b);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.btn-secondary {
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    border: 1.5px solid var(--border-strong);
    box-shadow: 0 10px 24px var(--shadow-soft);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--primary-color);
    box-shadow: 0 16px 32px var(--shadow-strong);
}

.theme-toggle {
    position: relative;
    height: 48px;
    width: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    background: var(--bg-surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 12px 28px var(--shadow-soft);
}

.theme-toggle:hover {
    background: var(--bg-elevated);
    border-color: var(--primary-color);
    box-shadow: 0 18px 36px var(--shadow-strong);
    transform: translateY(-2px);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04), 0 0 0 5px rgba(37, 99, 235, 0.35);
}

.theme-toggle .theme-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    color: var(--text-light);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.theme-toggle .theme-icon--sun {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle .theme-icon--moon {
    opacity: 0;
    transform: scale(0.6);
}

.theme-toggle.is-light .theme-icon--sun {
    opacity: 0;
    transform: scale(0.6);
}

.theme-toggle.is-light .theme-icon--moon {
    opacity: 1;
    transform: scale(1);
}

button:disabled:hover {
    transform: none;
}

#speedControl {
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    border: 1.5px solid var(--border-strong);
    border-radius: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 24px var(--shadow-soft);
}

#speedControl:hover {
    background: var(--bg-elevated);
    border-color: var(--primary-color);
    box-shadow: 0 14px 32px var(--shadow-strong);
    transform: translateY(-2px);
}

#speedControl:focus {
    outline: none;
    background: var(--bg-elevated);
    border-color: var(--primary-color);
    box-shadow: 0 16px 36px var(--shadow-strong);
}

#speedControl option {
    background: var(--bg-panel);
    color: var(--text-light);
    font-weight: 600;
    padding: 1rem;
}

#canvas-container {
    position: fixed;
    top: var(--control-panel-offset, 140px);
    left: 0;
    right: 400px;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.98) 55%, rgba(2, 6, 23, 1) 100%);
    overflow: hidden;
    transition: background 0.4s ease;
    z-index: 0;
}

[data-theme="light"] #canvas-container {
    background: radial-gradient(ellipse at center, rgba(226, 232, 240, 0.92) 0%, rgba(241, 245, 249, 0.98) 60%, rgba(248, 250, 252, 1) 100%);
}

#canvas-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.14) 0%, transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.12) 0%, transparent 58%);
    pointer-events: none;
    animation: backgroundPulse 8s ease-in-out infinite;
}

[data-theme="light"] #canvas-container::before {
    background:
        radial-gradient(circle at 25% 35%, rgba(148, 163, 184, 0.22) 0%, transparent 55%),
        radial-gradient(circle at 75% 65%, rgba(96, 165, 250, 0.18) 0%, transparent 60%);
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

#info-panel {
    position: fixed;
    top: var(--control-panel-offset, 140px);
    right: 0;
    width: 400px;
    bottom: 0;
    background: var(--bg-panel);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--border-strong);
    overflow-y: auto;
    padding: 2.2rem;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: -12px 0 32px var(--shadow-strong);
    z-index: 10;
}

.info-toggle {
    display: none;
}

.info-section {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 1.8rem;
    margin-bottom: 2.2rem;
    border: 1.5px solid var(--card-border);
    backdrop-filter: blur(12px);
    transition: all 0.35s ease;
    box-shadow: 0 12px 28px var(--shadow-soft);
}

.info-section:hover {
    background: var(--card-hover-bg);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px var(--shadow-strong);
}

.info-section h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-section p {
    margin: 1rem 0;
    font-size: 1.5rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--text-light);
}

[data-theme="light"] .info-section p {
    color: #1f2937;
}

.info-section span {
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
    color: var(--card-text-strong);
}

.info-section .status span {
    color: var(--accent-color);
}

.info-section .layer span {
    color: var(--secondary-color);
}

.info-section .data span {
    color: var(--text-light);
    opacity: 0.85;
}

[data-theme="light"] .info-section .data span {
    color: #334155;
}

#event-log {
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
}

.log-entry {
    padding: 0.8rem;
    margin: 0.8rem 0;
    background: var(--log-background);
    border-radius: 0.8rem;
    border-left: 4px solid var(--primary-color);
    animation: slideInLeft 0.4s ease-out;
    transition: all 0.3s;
}

.log-entry:hover {
    background: rgba(15, 23, 42, 0.8);
    border-left-color: var(--secondary-color);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-25px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#pdu-panel {
    background: linear-gradient(135deg, rgba(23, 37, 84, 0.32), rgba(12, 74, 110, 0.22));
    border: 1.5px solid var(--card-border);
    box-shadow: 0 12px 28px var(--shadow-soft);
}

[data-theme="light"] #pdu-panel {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.9), rgba(191, 219, 254, 0.65));
    border-color: var(--card-border);
}

.pdu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    margin: 0.8rem 0;
    background: var(--pdu-item-bg);
    border-radius: 1rem;
    border-left: 4px solid transparent;
    box-shadow: inset 0 0 0 1px var(--pdu-item-border);
    transition: all 0.35s ease;
    color: var(--card-text-strong);
}

.pdu-item:hover {
    background: var(--pdu-item-hover-bg);
    transform: translateY(-2px);
    border-left-color: var(--pdu-active-border);
    box-shadow: inset 0 0 0 1px rgba(148, 197, 255, 0.32);
}

.pdu-item.active {
    border-left-color: var(--pdu-active-border);
    background: linear-gradient(140deg, var(--pdu-active-bg-1), var(--pdu-active-bg-2));
    animation: pduPulse 2.1s ease-in-out infinite;
    box-shadow: 0 0 18px var(--pdu-active-shadow);
}

[data-theme="light"] .pdu-item:hover {
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35);
}

@keyframes pduPulse {
    0%, 100% {
        box-shadow: 0 0 12px var(--pdu-active-shadow);
    }
    50% {
        box-shadow: 0 0 22px var(--pdu-active-shadow);
    }
}

.pdu-value {
    color: var(--pdu-chip-text);
    font-weight: 700;
    font-size: 1.3rem;
    background: var(--pdu-chip-bg);
    padding: 0.5rem 1.2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--pdu-chip-border);
    box-shadow: 0 12px 24px var(--shadow-soft);
}

.current-pdu {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--pdu-current-bg);
    border: 2px solid var(--pdu-active-border);
    border-radius: 1.2rem;
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-light);
    box-shadow: 0 12px 24px var(--shadow-soft);
}

#pdu-current-name {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-top: 0.8rem;
    animation: textGlow 2.4s ease-in-out infinite;
    letter-spacing: 2px;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px var(--primary-color);
    }
    50% {
        text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    }
}

#info-panel::-webkit-scrollbar,
#event-log::-webkit-scrollbar {
    width: 10px;
}

#info-panel::-webkit-scrollbar-track,
#event-log::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.25);
    border-radius: 10px;
}

[data-theme="light"] #info-panel::-webkit-scrollbar-track,
[data-theme="light"] #event-log::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.25);
}

#info-panel::-webkit-scrollbar-thumb,
#event-log::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

#info-panel::-webkit-scrollbar-thumb:hover,
#event-log::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
}

[data-theme="light"] .log-entry:hover {
    background: rgba(226, 232, 240, 0.9);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.pulsing {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    #info-panel {
        width: 320px;
    }
    
    #canvas-container {
        right: 320px;
    }
    
    #control-panel h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 58%;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-header .theme-toggle {
        align-self: flex-end;
    }
    
    .controls {
        flex-direction: column;
    }
    
    #messageInput {
        min-width: 100%;
    }
    
    #control-panel h1 {
        font-size: 2.4rem;
    }
}

#sender-status, #receiver-status {
    max-width: 100%;
}

#sender-data, #receiver-data {
    display: block;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.4;
    max-height: 120px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    background: rgba(15, 23, 42, 0.35);
    border-radius: 5px;
    margin-top: 5px;
    border-left: 3px solid var(--primary-color);
    color: var(--card-text-strong);
}

#sender-data::-webkit-scrollbar, #receiver-data::-webkit-scrollbar {
    width: 6px;
}

#sender-data::-webkit-scrollbar-thumb, #receiver-data::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

[data-theme="light"] #sender-data,
[data-theme="light"] #receiver-data {
    background: rgba(226, 232, 240, 0.85);
}

@media (max-width: 1024px) {
    #canvas-container {
        right: 0;
    }

    #info-panel {
        left: 0;
        right: 0;
        width: auto;
        max-height: 65vh;
        border-left: none;
        border-top: 1px solid var(--border-strong);
        box-shadow: 0 -12px 32px var(--shadow-strong);
        transform: translateY(110%);
        transition: transform 0.35s ease, opacity 0.35s ease;
        opacity: 0;
        pointer-events: none;
        top: auto;
        bottom: 0;
    }

    #info-panel.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .info-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 240px;
    }

    body.info-panel-open {
        overflow: hidden;
    }

    body.info-panel-open #canvas-container {
        filter: blur(2px);
    }
}