.tbspace-wrap, .tbspace-wrap * {
    box-sizing: border-box;
}

.tbspace-wrap {
    font-family: Inter, Arial, sans-serif;
    max-width: 720px;
    margin: 24px auto;
    padding: 0 12px;
    color: #1f2937;
}

.tbspace-card {
    background: #fff;
    border: 1px solid #dbe7f3;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(24,50,74,.10);
}

.tbspace-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    background: linear-gradient(135deg,#18324a,#24577c);
    color: #fff;
}

.tbspace-bee {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f6b93b;
    color: #1f2937;
    font-size: 28px;
    flex: 0 0 auto;
}

.tbspace-head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.tbspace-head p {
    margin: 5px 0 0;
    color: #e8f5ff;
}

.tbspace-body {
    padding: 22px;
    text-align: center;
}

.tbspace-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tbspace-stats span {
    background: #eaf6ff;
    border: 1px solid #dbe7f3;
    border-radius: 999px;
    padding: 7px 12px;
    color: #18324a;
    font-size: 13px;
    font-weight: 900;
}

.tbspace-message {
    color: #18324a;
    font-weight: 900;
    margin-bottom: 14px;
    min-height: 22px;
}

.tbspace-canvas {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;
    background: radial-gradient(circle at top,#102f4d,#071a2b 65%);
    border: 8px solid #18324a;
    border-radius: 20px;
    box-shadow: inset 0 0 0 2px #2f80ed, 0 10px 22px rgba(24,50,74,.12);
}

.tbspace-controls {
    margin: 16px auto 8px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.tbspace-controls button {
    min-width: 76px;
    height: 48px;
    border: 1px solid #dbe7f3;
    border-radius: 16px;
    background: #eaf6ff;
    color: #18324a;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    touch-action: manipulation;
}

.tbspace-controls button[data-action="fire"] {
    background: #f6b93b;
    color: #1f2937;
}

.tbspace-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tbspace-btn {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 900;
    cursor: pointer;
    background: #2f80ed;
    color: #fff;
}

.tbspace-btn.secondary {
    background: #fff;
    color: #18324a;
    border: 1px solid #dbe7f3;
}

.tbspace-help {
    margin-top: 16px;
    text-align: left;
    background: #fffdf6;
    border: 1px solid #f2dfac;
    border-radius: 16px;
    padding: 14px;
    line-height: 1.5;
}

@media(max-width:520px) {
    .tbspace-head h2 {
        font-size: 24px;
    }

    .tbspace-controls button {
        min-width: 64px;
        height: 44px;
    }
}
