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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #12205c;
    font-family: "Barlow", "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
    color: #e8eef8;
}

#stage {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#card {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 280px;
    background: rgba(12, 18, 36, 0.78);
    border: 1px solid rgba(210, 224, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

#card.hidden {
    display: none;
}

#card-header {
    display: flex;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid rgba(210, 224, 255, 0.12);
}

#card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    background: #dfe6f2;
}

#card-info {
    flex: 1;
}

#card-name {
    font-family: "Josefin Sans", "Barlow", sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.03em;
    margin-bottom: 3px;
}

#card-title {
    font-size: 12px;
    color: #9eb0cc;
}

#card-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #9eb0cc;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

#card-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

#card-body {
    padding: 14px;
}

#card-desc {
    font-size: 13px;
    color: #d4dceb;
    margin-bottom: 10px;
    line-height: 1.45;
}

#card-role {
    display: inline-block;
    padding: 4px 9px;
    background: rgba(120, 170, 255, 0.16);
    color: #c5d8ff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 999px;
    text-transform: uppercase;
}

#prompt-bar {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    max-width: 90vw;
    background: rgba(12, 18, 36, 0.78);
    border: 1px solid rgba(210, 224, 255, 0.18);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

#prompt-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(210, 224, 255, 0.2);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    background: rgba(8, 12, 24, 0.55);
    color: #f4f7ff;
}

#prompt-input:focus {
    border-color: rgba(180, 210, 255, 0.55);
}

#prompt-input:disabled {
    background: rgba(8, 12, 24, 0.35);
    color: #7d8aa3;
}

#prompt-status {
    margin-top: 6px;
    font-size: 12px;
    color: #9eb0cc;
    min-height: 16px;
}

#time-debug {
    position: fixed;
    top: 16px;
    left: 16px;
    background: rgba(8, 12, 24, 0.55);
    color: #d4dceb;
    padding: 5px 10px;
    font-size: 12px;
    font-family: "Barlow", sans-serif;
    letter-spacing: 0.04em;
    border-radius: 999px;
    pointer-events: none;
    border: 1px solid rgba(210, 224, 255, 0.12);
}
