
.rs-game-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    margin: 0 0 18px;
    border: 1px solid var(--rs-border);
    border-left: 3px solid var(--rs-green);
    background: var(--rs-panel);
    color: var(--rs-text);
    font-size: 12px;
}

.rs-game-success {
    border-left-color: var(--rs-green);
    background: rgba(111, 140, 91, .10);
}

.rs-game-error,
.rs-game-danger {
    border-left-color: var(--rs-red);
    background: rgba(189, 119, 104, .10);
}

.rs-game-warning {
    border-left-color: var(--rs-gold);
    background: rgba(196, 173, 112, .09);
}

.rs-game-info {
    border-left-color: var(--rs-blue);
    background: rgba(130, 166, 189, .09);
}

.rs-status-wrap {
    padding: 13px 0;
    background: rgba(9, 14, 10, .94);
    border-bottom: 1px solid var(--rs-border);
}

.rs-status-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(130px, .7fr);
    align-items: center;
    gap: 18px;
    padding: 13px 17px;
    background: linear-gradient(110deg, #172019, #111712);
    border: 1px solid var(--rs-border);
    border-radius: 4px;
}

.rs-status-item {
    min-width: 0;
}

.rs-status-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.rs-status-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #aeb8a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.rs-status-value {
    color: #dfe4d9;
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rs-status-icon-health {
    color: #c77b6e;
}

.rs-status-icon-stamina {
    color: #c4ad70;
}

.rs-status-icon-xp {
    color: #a4b78a;
}

.rs-status-track {
    width: 100%;
    height: 8px;
    overflow: hidden;
    background: #080d09;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 2px;
}

.rs-status-fill {
    display: block;
    height: 100%;
    min-width: 0;
    transition: width .35s ease;
}

.rs-health-fill {
    background: linear-gradient(90deg, #78433d, #c77b6e);
}

.rs-stamina-fill {
    background: linear-gradient(90deg, #8c713c, #c4ad70);
}

.rs-xp-fill {
    background: linear-gradient(90deg, #5d784c, #a4b78a);
}

.rs-level-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding-left: 15px;
    border-left: 1px solid var(--rs-border);
    text-align: center;
}

.rs-level-caption {
    color: var(--rs-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.rs-level-number {
    color: var(--rs-gold);
    font-family: var(--rs-heading);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.05;
}

.rs-level-next {
    color: var(--rs-muted);
    font-size: 9px;
}

.rs-game-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 8px 14px;
    color: #10160f;
    background: var(--rs-green);
    border: 1px solid var(--rs-green);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: .18s ease;
}

.rs-game-button:hover {
    color: #0b100b;
    background: #b7c99e;
    border-color: #b7c99e;
    transform: translateY(-1px);
}

.rs-game-button.secondary {
    color: var(--rs-text-soft);
    background: #273128;
    border-color: #3a493b;
}

.rs-game-button.secondary:hover {
    color: var(--rs-text);
    background: #344335;
    border-color: var(--rs-green-dark);
}

.rs-game-button.danger {
    color: #fff;
    background: #75423b;
    border-color: #92564c;
}

.rs-game-button.danger:hover {
    background: #92564c;
    border-color: #b66c5e;
}

.rs-game-button:disabled,
.rs-game-button[disabled] {
    color: #788174;
    background: #202720;
    border-color: #303a30;
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.rs-game-button:focus-visible {
    outline: 2px solid var(--rs-gold);
    outline-offset: 3px;
}

.rs-game-tag,
.rs-game-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    color: var(--rs-green);
    background: rgba(111, 140, 91, .12);
    border: 1px solid rgba(111, 140, 91, .25);
    border-radius: 2px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.rs-game-tag.gold,
.rs-game-badge.gold {
    color: var(--rs-gold);
    background: rgba(196, 173, 112, .1);
    border-color: rgba(196, 173, 112, .25);
}

.rs-game-tag.danger,
.rs-game-badge.danger {
    color: #d99485;
    background: rgba(189, 119, 104, .1);
    border-color: rgba(189, 119, 104, .25);
}

.rs-game-tag.blue,
.rs-game-badge.blue {
    color: var(--rs-blue);
    background: rgba(130, 166, 189, .1);
    border-color: rgba(130, 166, 189, .25);
}

.rs-game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rs-game-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rs-game-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rs-game-card {
    min-width: 0;
    padding: 16px;
    background: linear-gradient(145deg, #19221a, #131a15);
    border: 1px solid var(--rs-border);
    border-radius: 4px;
    transition: border-color .18s, background .18s;
}

.rs-game-card:hover {
    border-color: var(--rs-border-strong);
    background: linear-gradient(145deg, #202b21, #151d17);
}

.rs-game-card h2,
.rs-game-card h3 {
    margin: 0 0 9px;
    color: var(--rs-text);
    font-family: var(--rs-heading);
    font-size: 21px;
}

.rs-game-card p {
    margin: 0;
    color: var(--rs-muted);
    font-size: 11px;
}

.rs-game-card-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    color: var(--rs-gold);
    background: rgba(196, 173, 112, .08);
    border: 1px solid rgba(196, 173, 112, .2);
    font-size: 19px;
}

.rs-game-section {
    margin-bottom: 20px;
}

.rs-game-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rs-border);
}

.rs-game-section-heading h2 {
    margin: 0;
    color: var(--rs-text);
    font-family: var(--rs-heading);
    font-size: 23px;
    text-transform: uppercase;
}

.rs-game-section-heading p {
    margin: 3px 0 0;
    color: var(--rs-muted);
    font-size: 10px;
}

.rs-game-empty {
    padding: 23px 17px;
    color: var(--rs-muted);
    background: rgba(255, 255, 255, .015);
    border: 1px dashed var(--rs-border-strong);
    text-align: center;
    font-size: 11px;
}

.rs-game-empty strong {
    display: block;
    margin-bottom: 5px;
    color: var(--rs-text);
    font-family: var(--rs-heading);
    font-size: 20px;
}

.rs-game-divider {
    height: 1px;
    margin: 16px 0;
    background: var(--rs-border);
}

.rs-game-muted {
    color: var(--rs-muted);
}

.rs-game-gold {
    color: var(--rs-gold);
}

.rs-game-green {
    color: var(--rs-green);
}

.rs-game-danger {
    color: var(--rs-red);
}

.rs-game-number {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.rs-game-list {
    display: flex;
    flex-direction: column;
}

.rs-game-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rs-border);
}

.rs-game-list-item:last-child {
    border-bottom: 0;
}

.rs-game-list-item strong {
    display: block;
    color: var(--rs-text);
    font-size: 12px;
}

.rs-game-list-item small {
    display: block;
    margin-top: 3px;
    color: var(--rs-muted);
    font-size: 10px;
}

.rs-game-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rs-game-image-frame {
    overflow: hidden;
    background: #0c120d;
    border: 1px solid var(--rs-border);
}

.rs-game-rarity {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.rs-game-rarity.common {
    color: #b7bdb2;
}

.rs-game-rarity.uncommon {
    color: #8fb58b;
}

.rs-game-rarity.rare {
    color: #8fb5d5;
}

.rs-game-rarity.elite {
    color: #c49bd1;
}

.rs-game-rarity.prototype {
    color: var(--rs-gold);
}

.rs-game-condition {
    display: inline-block;
    padding: 3px 7px;
    color: var(--rs-text-soft);
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--rs-border);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.rs-game-condition.damaged {
    color: #d99485;
    border-color: rgba(189, 119, 104, .3);
}

.rs-game-condition.worn {
    color: var(--rs-gold);
}

.rs-game-condition.pristine {
    color: var(--rs-green);
}

.rs-game-tooltip {
    color: var(--rs-muted);
    font-size: 10px;
}

.rs-game-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.rs-game-action-row form {
    margin: 0;
}

.rs-game-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rs-game-form .form-label {
    color: var(--rs-text-soft);
}

.rs-game-form .form-control,
.rs-game-form .form-select {
    width: 100%;
}

.rs-game-notification {
    padding: 12px 14px;
    margin-bottom: 10px;
    background: var(--rs-panel-light);
    border: 1px solid var(--rs-border);
    border-left: 3px solid var(--rs-green-dark);
}

.rs-game-notification.unread {
    border-left-color: var(--rs-gold);
    background: rgba(196, 173, 112, .055);
}

.rs-game-notification strong {
    display: block;
    color: var(--rs-text);
    font-size: 11px;
}

.rs-game-notification p {
    margin: 4px 0 0;
    color: var(--rs-text-soft);
    font-size: 11px;
}

.rs-game-timer {
    color: var(--rs-gold);
    font-family: var(--rs-heading);
    font-size: 25px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rs-game-timer-label {
    color: var(--rs-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.rs-game-queue {
    padding: 15px;
    background: #111812;
    border: 1px solid var(--rs-border);
}

.rs-game-queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rs-border);
}

.rs-game-queue-item:last-child {
    border-bottom: 0;
}

.rs-game-queue-item strong {
    color: var(--rs-text);
    font-size: 11px;
}

.rs-game-queue-item small {
    display: block;
    color: var(--rs-muted);
    font-size: 9px;
}

.rs-game-queue-progress {
    height: 6px;
    margin-top: 7px;
    overflow: hidden;
    background: #080d09;
    border-radius: 2px;
}

.rs-game-queue-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #607c50, #a4b78a);
}

.rs-game-danger-panel {
    padding: 14px 16px;
    background: rgba(189, 119, 104, .08);
    border: 1px solid rgba(189, 119, 104, .25);
    border-left: 3px solid var(--rs-red);
}

.rs-game-danger-panel strong {
    color: #d99485;
}

.rs-game-danger-panel p {
    margin: 5px 0 0;
    color: #c5aaa4;
    font-size: 11px;
}

.rs-game-tip {
    padding: 14px 16px;
    background: linear-gradient(110deg, rgba(111, 140, 91, .12), rgba(17, 24, 18, .9));
    border: 1px solid rgba(111, 140, 91, .3);
    border-left: 3px solid var(--rs-green-dark);
}

.rs-game-tip strong {
    color: var(--rs-green);
}

.rs-game-tip p {
    margin: 5px 0 0;
    color: var(--rs-text-soft);
    font-size: 11px;
}

@media (max-width: 900px) {
    .rs-status-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rs-level-block {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 10px;
        padding: 10px 0 0;
        border-top: 1px solid var(--rs-border);
        border-left: 0;
    }

    .rs-level-number {
        font-size: 26px;
    }

    .rs-game-grid.three,
    .rs-game-grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .rs-status-wrap {
        padding: 9px 0;
    }

    .rs-status-panel {
        gap: 12px;
        padding: 11px;
    }

    .rs-status-label {
        font-size: 9px;
    }

    .rs-status-value {
        font-size: 9px;
    }

    .rs-status-track {
        height: 7px;
    }

    .rs-level-block {
        justify-content: center;
    }

    .rs-game-grid,
    .rs-game-grid.three,
    .rs-game-grid.four {
        grid-template-columns: 1fr;
    }

    .rs-game-card {
        padding: 13px;
    }

    .rs-game-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .rs-game-list-item {
        align-items: flex-start;
    }

    .rs-game-action-row {
        width: 100%;
    }

    .rs-game-action-row .rs-game-button {
        flex: 1 1 auto;
    }
}

@media (max-width: 380px) {
    .rs-status-panel {
        gap: 10px;
        padding: 9px;
    }

    .rs-status-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .rs-level-block {
        flex-wrap: wrap;
        gap: 7px;
    }

    .rs-game-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rs-game-button,
    .rs-status-fill,
    .rs-game-card {
        transition: none;
    }
}
