body {
    background: #000 url('star-cluster.jpg') center center / cover no-repeat fixed;
    color: #e6edf5;
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.container {
    margin-top: 20px;
    background: rgba(10, 12, 18, 0.65);
    padding: 16px 24px 24px;
    border-radius: 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(102, 217, 239, 0.16);
}
.panel-block {
    background: rgba(10, 12, 18, 0.88);
    padding: 16px 20px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(102, 217, 239, 0.18);
    margin: 18px 34px 6px 34px;
}
.ship-img-frame {
    position: relative;
    background: #000;
    border: 1px solid #1c2330;
    border-radius: 6px;
    padding: 8px;
    overflow: hidden;
}
.ship-canvas {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    z-index: 1;
}
.ship-img {
    position: relative;
    max-width: 100%;
    display: block;
    z-index: 5;
}
.d-none {
    display: none !important;
}
h1, h2, h3, label {
    color: #d8e1ec;
}
 
.orbitron {
    font-family: 'Orbitron', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.06em;
}
.form-control, .table {
    background-color: #0f131a;
    color: #e6edf5;
    border: 1px solid #252c38;
}
.form-control:focus {
    border-color: #66d9ef;
    box-shadow: 0 0 0 0.2rem rgba(102, 217, 239, 0.2);
}
.table thead th {
    background: #161b24;
    border-color: #252c38;
    color: #e6edf5;
}
.table tbody tr {
    background: #0f131a;
}
.table tbody tr + tr td {
    border-top: 1px solid #1c2330;
}
.table td, .table th {
    border-color: #252c38;
}
.stat-line {
    align-items: center;
}
.stat-label {
    flex: 2;
}
.stat-value {
    flex: 1;
    text-align: right;
}
.stat-value-full {
    flex: 1;
    text-align: left;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr 1fr;
    gap: 12px;
}
.stats-col {
    padding: 6px;
}
.stats-span {
    grid-column: 1 / -1;
}
.special-bomb {
    font-size: 1.1rem;
    margin-top: 4px;
    text-align: center;
}
.special-bomb-btn {
    background: transparent;
    border: none;
    color: #e6edf5;
    cursor: pointer;
    display: block;
    margin: 4px auto 0;
}
.stats-span {
    position: relative;
}
.special-modal {
    position: absolute;
    inset: -40px 20px 40px 20px;
    background: rgba(253, 246, 227, 0.98);
    border: 3px solid #b04a3f;
    display: none;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 12px;
    z-index: 5;
    box-sizing: border-box;
    min-height: 130px;
}
.special-modal-content {
    max-width: 100%;
    font-size: 0.95rem;
    color: #586e75;
    max-height: 100%;
    overflow: auto;
    line-height: 1.4;
}
.special-close {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}
.stats-span.special-modal-open .special-modal {
    display: flex;
}
@media (max-width: 767.98px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-col-outfit {
        grid-column: 1 / -1;
    }
}
.stat-value.range-value {
    flex: 1.4;
}
#quote-box,
.quote-box {
    font-style: italic;
    font-weight: 700;
    color: #f2e066 !important;
}
.text-muted {
    color: #b4bdc9 !important;
}
.special-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.special-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.special-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(102, 217, 239, 0.15);
    border: 1px solid rgba(102, 217, 239, 0.45);
    color: #e6edf5;
}
.btn-secondary {
    background: transparent;
    border: 1px solid #66d9ef;
    color: #e6edf5;
}
.btn-secondary:hover, .btn-secondary:focus {
    background: rgba(102, 217, 239, 0.16);
    color: #f5fbff;
}
.btn-danger {
    background: #f92672;
    border: 1px solid #f92672;
    color: #0c1118;
}
.btn-danger:hover, .btn-danger:focus {
    background: #ff599a;
    border-color: #ff599a;
}
.remove-col {
    width: 48px;
}
.remove-btn {
    padding: 2px 6px;
    font-size: 0.75rem;
    line-height: 1.2;
}
