/* Globally loaded login notification. Not related to .overlay used by deckbuilder. */
.tp-notice[hidden]{display:none!important}.tp-notice{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:18px;background:rgba(5,9,14,.85)}
.tp-notice-dialog{position:relative;width:min(100%,460px);padding:31px 26px;background:linear-gradient(145deg,#282d31,#171717 75%);border:1px solid #b3944f;border-radius:14px;color:#f0ede5;text-align:center;box-shadow:0 26px 75px #000b}
.tp-notice-mark{font-size:30px;color:#d3a951;margin-bottom:8px}.tp-notice-eyebrow{color:#d3a951;font-weight:800;font-size:11px;letter-spacing:2px}.tp-notice-dialog h2{font-size:clamp(22px,4vw,27px);font-weight:800;color:#f8e4b5;margin:10px 0}.tp-notice-dialog p{font-size:14px;color:#ddd;line-height:1.6;margin:0 0 12px}
.tp-notice-question{color:#f0d298!important;font-weight:700}.tp-notice-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:22px}.tp-notice-btn{border-radius:7px;border:1px solid #777;padding:11px 16px;cursor:pointer;font-weight:750;font-size:13px}.tp-notice-primary{background:#d3a951;color:#171717;border-color:#d3a951}.tp-notice-primary:hover{background:#efc779}.tp-notice-secondary{background:transparent;color:#eee}.tp-notice-secondary:hover{border-color:#d3a951;color:#f8e4b5}.tp-notice-close{position:absolute;right:13px;top:10px;background:transparent;border:0;color:#ddd;font-size:26px;cursor:pointer}.tp-notice-error{font-size:12px!important;color:#ffb5a4!important;margin-top:14px!important}
@media(max-width:420px){.tp-notice-dialog{padding:27px 18px}.tp-notice-btn{flex:1 1 auto}}


/* Patch Notes announcement overlay */
#tpPatchNotice {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    padding: 20px;
    background: rgba(0, 0, 0, 0.88);
    box-sizing: border-box;
}

/* Announcement window */
#tpPatchNotice .tp-patch-notice-content {
    width: min(100%, 520px);
    max-height: 90dvh;
    overflow-y: auto;

    padding: 30px;
    background: #1e1e1e;
    border: 1px solid #d3a951;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);

    color: #f1eee7;
    text-align: center;
}

/* Title */
#tpPatchNotice h2 {
    color: #f8e4b5;
    margin: 12px 0;
}

/* Subtitle */
#tpPatchNotice h3 {
    color: #d3a951;
    font-size: 18px;
}

/* Summary */
#tpPatchNotice p {
    margin: 15px 0 25px;
    line-height: 1.6;
}

/* Actions */
#tpPatchNotice .tp-patch-notice-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

#tpPatchNotice .tp-patch-notice-view,
#tpPatchNotice .tp-patch-notice-dismiss {
    display: inline-block;
    padding: 11px 18px;
    border: 1px solid #d3a951;
    border-radius: 7px;
    background: #d3a951;
    color: #171717;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

#tpPatchNotice .tp-patch-notice-dismiss {
    background: transparent;
    color: #f8e4b5;
}

/* Mobile */
@media (max-width: 540px) {
    #tpPatchNotice .tp-patch-notice-content {
        padding: 22px 18px;
    }
}


/* =========================================
   PATCH NOTES — BALANCE UPDATE DESIGN
   ========================================= */

/* Change-type color system */
.tp-type-nerf {
    --change-color: #ff7777;
    --change-bg: rgba(205, 55, 65, .12);
    --change-border: rgba(255, 110, 110, .4);
}

.tp-type-buff {
    --change-color: #65df91;
    --change-bg: rgba(35, 170, 90, .12);
    --change-border: rgba(75, 210, 125, .4);
}

.tp-type-rework {
    --change-color: #f0c36d;
    --change-bg: rgba(210, 155, 45, .12);
    --change-border: rgba(235, 185, 80, .4);
}

.tp-type-other {
    --change-color: #d3a951;
    --change-bg: rgba(211, 169, 81, .1);
    --change-border: rgba(211, 169, 81, .3);
}

/* Patch Highlights */
.tp-balance-overview {
    margin: 0 0 34px;
    padding: clamp(16px, 3vw, 26px);
    border: 1px solid #6b5736;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            rgba(211, 169, 81, .1),
            transparent 55%
        ),
        #1a1b1d;
}

.tp-overview-heading {
    margin-bottom: 22px;
}

.tp-overview-eyebrow {
    display: block;
    color: #d3a951;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tp-overview-heading h2 {
    color: #f8e4b5;
    font-size: clamp(23px, 3vw, 30px);
    margin: 5px 0 6px;
    font-weight: 800;
}

.tp-overview-heading p {
    color: #bdbdbd;
    margin: 0 0 16px;
    font-size: 13px;
}

.tp-overview-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tp-count {
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.tp-count-nerf {
    background: #422326;
    color: #ff9090;
}

.tp-count-buff {
    background: #1e3d2c;
    color: #8bedae;
}

.tp-count-rework {
    background: #443720;
    color: #f1d088;
}

/* Clickable overview cards */
.tp-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.tp-overview-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    background: var(--change-bg);
    border: 1px solid var(--change-border);
    border-radius: 10px;
    text-decoration: none !important;
    color: #f1eee7 !important;
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.tp-overview-card:hover,
.tp-overview-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--change-color);
    background: #292a2c;
}

.tp-overview-symbol {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--change-bg);
    border: 1px solid var(--change-border);
    color: var(--change-color);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.tp-overview-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tp-overview-card-content strong {
    color: #f8e4b5;
    font-size: 15px;
    line-height: 1.25;
}

.tp-overview-type {
    color: var(--change-color);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.3px;
    margin-top: 4px;
}

.tp-overview-card-content small {
    color: #c7c7c7;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 7px;
}

/* Individual changes */
.tp-detail-section.tp-type-nerf,
.tp-detail-section.tp-type-buff,
.tp-detail-section.tp-type-rework,
.tp-detail-section.tp-type-other {
    border-left: 4px solid var(--change-color);
    padding-left: 17px;
    margin-bottom: 30px;
    scroll-margin-top: 75px;
}

.tp-change-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px;
}

.tp-change-symbol {
    display: grid;
    place-items: center;
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    border: 1px solid var(--change-border);
    border-radius: 10px;
    background: var(--change-bg);
    color: var(--change-color);
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
}

.tp-change-heading-text {
    min-width: 0;
}

.tp-change-type {
    color: var(--change-color);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.tp-change-heading-text h2 {
    color: #f8e4b5;
    font-size: 24px;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
}

.tp-change-result {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 15px;
    margin: 0 0 18px;
    border: 1px solid var(--change-border);
    border-radius: 9px;
    background: var(--change-bg);
}

.tp-change-result strong {
    color: var(--change-color);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.tp-change-result span {
    color: #f0ece5;
    font-size: 13px;
    line-height: 1.55;
}

/* Mobile layouts */
@media (max-width: 700px) {
    .tp-overview-grid {
        grid-template-columns: 1fr;
    }

    .tp-balance-overview {
        padding: 17px;
    }

    .tp-detail-section.tp-type-nerf,
    .tp-detail-section.tp-type-buff,
    .tp-detail-section.tp-type-rework,
    .tp-detail-section.tp-type-other {
        padding-left: 12px;
    }

    .tp-change-heading-text h2 {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-overview-card {
        transition: none;
    }
}
