.tool-fullwidth {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Tool shell */
.game-tool {
    max-width: 100%;
    margin: 0 auto;
}

.game-tool.editor-section,
.editor-section.game-tool {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-tool .card {
    border: 1px solid var(--color-border, #e5e7eb);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
    border-radius: var(--radius, 12px);
    background: var(--color-surface, #fff);
}

.game-tool .card-body {
    padding: 1.25rem 1.35rem;
}

.game-tool .card-title {
    color: var(--color-text, #1f2937);
    font-weight: 700;
    font-size: 1.05rem;
}

.game-tool .form-control,
.game-tool .form-select,
.game-tool .select-input,
.game-tool textarea {
    border-radius: 8px;
    border: 1px solid var(--color-border, #e5e7eb);
}

.game-tool .form-control:focus,
.game-tool .form-select:focus,
.game-tool textarea:focus {
    border-color: var(--color-primary, #0d9488);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.game-tool .btn-primary {
    background: var(--color-primary, #0d9488);
    border-color: var(--color-primary, #0d9488);
}

.game-tool .btn-primary:hover {
    background: var(--color-primary-hover, #0f766e);
    border-color: var(--color-primary-hover, #0f766e);
}

.game-tool .alert {
    border-radius: 10px;
}

[data-theme="dark"] .game-tool .card {
    background: var(--color-surface, #1f2937);
    border-color: var(--color-border, #374151);
}

[data-theme="dark"] .game-tool .card-title,
[data-theme="dark"] .game-tool .form-label,
[data-theme="dark"] .game-tool {
    color: var(--color-text, #f9fafb);
}

[data-theme="dark"] .game-tool .text-muted,
[data-theme="dark"] .game-tool .form-text {
    color: var(--color-text-secondary, #9ca3af) !important;
}

[data-theme="dark"] .game-tool .form-control,
[data-theme="dark"] .game-tool .form-select,
[data-theme="dark"] .game-tool textarea {
    background: #111827;
    color: var(--color-text, #f9fafb);
    border-color: var(--color-border, #374151);
}

/* --- tool: 24points-calculator --- */
.number-input {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.number-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.number-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.number-card:hover {
    transform: translateY(-5px);
}

.solution-item {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
}

.solution-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.result-badge {
    font-size: 1.2rem;
    padding: 8px 16px;
    border-radius: 20px;
}

.animation-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.number-display {
    font-size: 2rem;
    font-weight: bold;
    color: #495057;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.operator-btn {
    font-size: 1.5rem;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 5px;
    transition: all 0.3s ease;
}

.operator-btn:hover {
    transform: scale(1.1);
}

.calculation-steps {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.step-item {
    padding: 8px 12px;
    margin-bottom: 5px;
    background: white;
    border-radius: 5px;
    border-left: 3px solid #28a745;
    font-family: 'Courier New', monospace;
}
