/* ================================================================
   ThanhLong Home v3 — Crimson + Cyan + Gold (Wuxia Esports tone)
   Angular cut-corner cards, ribbon headers, neon accents
   ================================================================ */

:root {
    --tl2-bg-0: #060810;
    --tl2-bg-1: #0c1220;
    --tl2-bg-2: #131a2c;
    --tl2-card: rgba(16, 22, 38, 0.85);
    --tl2-card-border: rgba(0, 212, 224, 0.22);

    --tl2-crimson: #e2453a;
    --tl2-crimson-deep: #8c1d18;
    --tl2-crimson-bright: #ff6258;

    --tl2-cyan: #00d4e0;
    --tl2-cyan-glow: rgba(0, 212, 224, 0.35);

    --tl2-gold: #ffcc33;
    --tl2-gold-soft: #f4c970;

    --tl2-text: #d8dde8;
    --tl2-text-dim: #8b94ad;
    --tl2-text-muted: #5a6378;
}

/* Decorative backdrop — Background.jpg centered on solid black */
.tl-bg-decor {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        url('/images/Background.jpg') center center / contain no-repeat,
        #000000;
}

.tl-bg-decor::after {
    content: none;
}

.tl-home2 {
    position: relative;
    z-index: 1;
    padding: 28px 16px 56px;
    color: var(--tl2-text);
}

/* =============================================================
   HERO SESSION (below navbar)
   ============================================================= */
.tl-hero-session {
    position: relative;
    z-index: 1;
    height: 480px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 212, 224, 0.18);
}

.tl-hs-bg {
    position: absolute;
    inset: 0;
    background: transparent;
}

.tl-hs-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.tl-hs-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, transparent 49.5%, rgba(0, 212, 224, 0.12) 50%, transparent 50.5%);
    background-size: 200px 200px;
    background-repeat: no-repeat;
    background-position: 70% 80%;
    transform: skewX(-20deg);
}

.tl-hs-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 0 24px;
}

.tl-hs-left {
    max-width: 640px;
    animation: tlSlideIn 0.8s ease;
}

@keyframes tlSlideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.tl-hs-eyebrow {
    display: inline-block;
    color: var(--tl2-cyan);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4em;
    margin-bottom: 14px;
    padding-left: 22px;
    position: relative;
}

.tl-hs-eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 1px;
    background: var(--tl2-cyan);
    box-shadow: 0 0 6px var(--tl2-cyan);
}

.tl-hs-title {
    margin: 0 0 20px;
    line-height: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tl-hs-title-main {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.2;
    padding-top: 8px;
    background: linear-gradient(180deg, #ffffff 0%, var(--tl2-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 212, 224, 0.3);
}

.tl-hs-title-accent {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--tl2-crimson-bright);
    text-shadow: 0 2px 18px rgba(226, 69, 58, 0.4), 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.tl-hs-tagline {
    color: var(--tl2-text);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 520px;
}

.tl-hs-meta {
    display: flex;
    gap: 28px;
    margin-bottom: 32px;
    padding: 14px 0;
    border-top: 1px solid rgba(0, 212, 224, 0.18);
    border-bottom: 1px solid rgba(0, 212, 224, 0.18);
}

.tl-hs-metaitem {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tl-hs-metalabel {
    color: var(--tl2-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tl-hs-metavalue {
    color: var(--tl2-gold);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
}

.tl-hs-metaonline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tl-hs-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
    animation: tlBlink 1.6s ease infinite;
}

.tl-hs-pulse.is-on { background: #6ce86c; color: #6ce86c; }
.tl-hs-pulse.is-off { background: var(--tl2-crimson); color: var(--tl2-crimson); }

@keyframes tlBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.tl-hs-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.tl-hs-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 13px 30px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, filter 0.2s ease;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.tl-hs-btn-primary {
    background: linear-gradient(135deg, var(--tl2-crimson) 0%, var(--tl2-crimson-deep) 100%);
    color: #fff;
    box-shadow: 0 0 22px rgba(226, 69, 58, 0.4);
}

.tl-hs-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    color: #fff;
}

.tl-hs-btn-ghost {
    background: rgba(0, 212, 224, 0.08);
    color: var(--tl2-cyan);
    border: 1px solid var(--tl2-cyan);
}

.tl-hs-btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(0, 212, 224, 0.18);
    color: #fff;
}

/* Right emblem */
.tl-hs-right { display: flex; align-items: center; justify-content: center; padding-right: 40px; }

.tl-hs-emblem {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-hs-emblem-ring {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(0, 212, 224, 0.4);
    border-radius: 50%;
    animation: tlSpin 30s linear infinite;
}

.tl-hs-emblem-ring-2 {
    inset: 30px;
    border: 1px solid rgba(255, 204, 51, 0.4);
    animation: tlSpin 18s linear infinite reverse;
}

@keyframes tlSpin {
    to { transform: rotate(360deg); }
}

.tl-hs-emblem-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 212, 224, 0.5));
}

.tl-hs-scroll-hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.tl-hs-scroll-arrow {
    display: block;
    width: 18px;
    height: 18px;
    border-right: 2px solid var(--tl2-cyan);
    border-bottom: 2px solid var(--tl2-cyan);
    transform: rotate(45deg);
    animation: tlBob 2s ease infinite;
}

@keyframes tlBob {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
    50% { transform: rotate(45deg) translate(4px, 4px); opacity: 0.5; }
}

/* =============================================================
   HERO CARDS — Top 3 columns with cut corners
   ============================================================= */
.tl-hero-cards { margin: -40px 0 28px; position: relative; z-index: 2; }

.tl-hc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

.tl-hc-card {
    position: relative;
    height: 138px;
    background: linear-gradient(135deg, var(--tl2-bg-2) 0%, #0a0e18 100%);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(0, 212, 224, 0.15);
    transition: transform 0.25s ease, filter 0.25s ease;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.tl-hc-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--tl2-cyan);
    opacity: 0.35;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px), 0 0,
                       2px 2px, 2px calc(100% - 18px - 1px), 18px calc(100% - 2px), calc(100% - 2px) calc(100% - 2px),
                       calc(100% - 2px) calc(18px + 1px), calc(100% - 18px - 1px) 2px, 2px 2px);
    pointer-events: none;
}

.tl-hc-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/_content/WebPage.Core/images/logo.png");
    background-size: 200px;
    background-position: right -40px center;
    background-repeat: no-repeat;
    opacity: 0.08;
    filter: hue-rotate(180deg) saturate(2);
}

.tl-hc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 8, 16, 0.85) 0%, rgba(6, 8, 16, 0.4) 70%, transparent 100%);
    z-index: 1;
}

.tl-hc-card:hover { transform: translateY(-3px); filter: brightness(1.12); }

.tl-hc-body {
    position: relative;
    z-index: 2;
    padding: 16px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tl-hc-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--tl2-cyan);
    letter-spacing: 0.1em;
    text-shadow: 0 0 14px rgba(0, 212, 224, 0.4);
    text-transform: uppercase;
}

.tl-hc-download .tl-hc-title { color: var(--tl2-gold); text-shadow: 0 0 14px rgba(255, 204, 51, 0.4); }
.tl-hc-giftcode .tl-hc-title { color: var(--tl2-crimson-bright); text-shadow: 0 0 14px rgba(226, 69, 58, 0.5); }

.tl-hc-sub {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--tl2-text-dim);
    letter-spacing: 0.04em;
}

.tl-hc-btn {
    align-self: stretch;
    text-align: center;
    padding: 9px 18px;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--tl2-crimson) 0%, var(--tl2-crimson-deep) 100%);
    box-shadow: 0 0 16px rgba(226, 69, 58, 0.35);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: filter 0.2s ease, transform 0.15s ease;
}

.tl-hc-download .tl-hc-btn {
    background: linear-gradient(135deg, var(--tl2-gold) 0%, #c89318 100%);
    color: #2a1f00;
    box-shadow: 0 0 16px rgba(255, 204, 51, 0.4);
}

.tl-hc-btn:hover { filter: brightness(1.15); transform: translateY(-1px); color: #fff; }
.tl-hc-download .tl-hc-btn:hover { color: #2a1f00; }

/* Server status card */
.tl-hc-status-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.tl-hc-status-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.tl-hc-status-text.is-online { color: #6ce86c; }
.tl-hc-status-text.is-offline { color: var(--tl2-crimson-bright); }

.tl-hc-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    animation: tlBlink 1.6s ease infinite;
}

.tl-hc-status-dot.is-online { background: #6ce86c; color: #6ce86c; }
.tl-hc-status-dot.is-offline { background: var(--tl2-crimson); color: var(--tl2-crimson); }

.tl-hc-bigvalue {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.04em;
    text-shadow: 0 0 18px rgba(0, 212, 224, 0.5);
    line-height: 1;
}

/* =============================================================
   MID GRID — slideshow + notice board (side by side)
   ============================================================= */
.tl-home2-mid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.tl-home2-slidewrap, .tl-home2-noticewrap {
    min-width: 0;
}

.tl-home2-slidewrap .tl-center-box,
.tl-home2-slidewrap .tl-slideshow {
    height: 100%;
    border-radius: 0;
    border: none;
    overflow: hidden;
    background: transparent;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.tl-home2-slidewrap .tl-slideshow {
    min-height: 380px;
    position: relative;
}

.tl-home2-slidewrap .tl-slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 380px;
}

/* =============================================================
   NOTICE BOARD — taller, ribbon header
   ============================================================= */
.tl-notice-board {
    height: 100%;
    background: var(--tl2-card);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    border: none;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    position: relative;
}

.tl-notice-board::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 212, 224, 0.08) 0%, transparent 30%),
        linear-gradient(225deg, rgba(226, 69, 58, 0.06) 0%, transparent 30%);
    pointer-events: none;
}

.tl-nb-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    background:
        linear-gradient(135deg, rgba(226, 69, 58, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, rgba(0, 212, 224, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid rgba(0, 212, 224, 0.25);
}

.tl-nb-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--tl2-crimson-bright);
    box-shadow: 0 0 8px var(--tl2-crimson-bright);
}

.tl-nb-title {
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 212, 224, 0.3);
}

.tl-nb-viewall {
    color: var(--tl2-cyan);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    background: rgba(0, 212, 224, 0.08);
    border: 1px solid var(--tl2-cyan);
    transition: all 0.2s ease;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.tl-nb-viewall:hover {
    background: var(--tl2-cyan);
    color: #060810;
}

.tl-nb-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.tl-nb-item { border-bottom: 1px dashed rgba(0, 212, 224, 0.10); }
.tl-nb-item:last-child { border-bottom: none; }

.tl-nb-link {
    display: grid;
    grid-template-columns: 70px 1fr 92px;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    color: var(--tl2-text);
    text-decoration: none;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.tl-nb-link:hover {
    background: rgba(0, 212, 224, 0.06);
    color: var(--tl2-cyan);
    padding-left: 28px;
}

.tl-nb-tag {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.tl-nb-tag-news { color: var(--tl2-cyan); }
.tl-nb-tag-event { color: var(--tl2-gold); }

.tl-nb-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13.5px;
}

.tl-nb-date {
    text-align: right;
    color: var(--tl2-text-muted);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
}

.tl-nb-empty {
    padding: 30px;
    text-align: center;
    color: var(--tl2-text-muted);
    font-size: 13px;
    font-style: italic;
}

/* =============================================================
   INFO ROW — 4 boxes separated, ribbon headers
   Override .tl-sidebar-box appearance inside .tl-home2-info
   ============================================================= */
.tl-home2-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 32px;
    align-items: start;
}

.tl-info-cell { min-width: 0; }

.tl-home2-info .tl-sidebar-box {
    --tl-info-max: 420px;
    max-height: var(--tl-info-max);
    background: var(--tl2-card);
    border: none;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    padding: 0 0 0 0;
    display: flex;
    flex-direction: column;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.tl-home2-info .tl-sidebar-box.is-expanded {
    max-height: 2400px;
}

/* Reserve room at the bottom for the toggle button when content overflows */
.tl-home2-info .tl-sidebar-box.has-overflow { padding-bottom: 44px; }

/* Fade gradient at bottom when collapsed and overflowing */
.tl-home2-info .tl-sidebar-box.has-overflow:not(.is-expanded)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 44px;
    height: 64px;
    background: linear-gradient(180deg, transparent 0%, var(--tl2-card) 90%);
    pointer-events: none;
    z-index: 2;
}

/* Toggle button */
.tl-info-toggle {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 8px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--tl2-cyan);
    background: rgba(0, 212, 224, 0.08);
    border: 1px solid rgba(0, 212, 224, 0.4);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 3;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: background 0.2s ease, color 0.2s ease;
    font-family: inherit;
}

.tl-info-toggle:hover {
    background: var(--tl2-cyan);
    color: #060810;
}

.tl-info-toggle-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 10px;
    line-height: 1;
}

.tl-info-toggle.is-up .tl-info-toggle-arrow { transform: rotate(180deg); }

.tl-home2-info .tl-sidebar-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 212, 224, 0.06) 0%, transparent 50%),
        linear-gradient(225deg, rgba(255, 204, 51, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.tl-home2-info .tl-sidebar-header {
    position: relative;
    margin: 0;
    padding: 12px 18px 12px 26px;
    background:
        linear-gradient(135deg, rgba(226, 69, 58, 0.18) 0%, transparent 70%),
        linear-gradient(180deg, rgba(0, 212, 224, 0.06) 0%, transparent 100%);
    border-bottom: 1px solid rgba(0, 212, 224, 0.22);
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1;
}

.tl-home2-info .tl-sidebar-header::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: var(--tl2-crimson-bright);
    box-shadow: 0 0 8px var(--tl2-crimson-bright);
}

.tl-home2-info .tl-header-icon {
    color: var(--tl2-cyan);
    margin-right: 6px;
    text-shadow: 0 0 8px var(--tl2-cyan);
}

/* Inner content padding wrapper */
.tl-home2-info .tl-info-list,
.tl-home2-info .tl-refining-columns,
.tl-home2-info .tl-refining-table,
.tl-home2-info .tl-cloth-refining-table,
.tl-home2-info .tl-table-scroll,
.tl-home2-info .tl-empty {
    position: relative;
    z-index: 1;
}

.tl-home2-info .tl-info-list { padding: 12px 18px; }

.tl-home2-info .tl-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 212, 224, 0.10);
    font-size: 13px;
}

.tl-home2-info .tl-info-row:last-child { border-bottom: none; }

.tl-home2-info .tl-info-label { color: var(--tl2-text-dim); }
.tl-home2-info .tl-info-value { color: var(--tl2-text); font-weight: 600; }
.tl-home2-info .tl-text-gold { color: var(--tl2-gold) !important; }
.tl-home2-info .tl-text-cyan { color: var(--tl2-cyan) !important; }
.tl-home2-info .tl-status-online { color: #6ce86c !important; }
.tl-home2-info .tl-status-offline { color: var(--tl2-crimson-bright) !important; }

/* Tables inside info */
.tl-home2-info .tl-refining-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 14px;
}

.tl-home2-info .tl-refining-table,
.tl-home2-info .tl-cloth-refining-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.tl-home2-info .tl-cloth-refining-table { margin: 8px 14px 14px; width: calc(100% - 28px); }

.tl-home2-info .tl-refining-table th,
.tl-home2-info .tl-cloth-refining-table th {
    padding: 7px 6px;
    color: var(--tl2-cyan);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(0, 212, 224, 0.06);
    border-bottom: 1px solid rgba(0, 212, 224, 0.2);
    text-align: center;
}

.tl-home2-info .tl-refining-table td,
.tl-home2-info .tl-cloth-refining-table td {
    padding: 6px;
    text-align: center;
    border-bottom: 1px dashed rgba(0, 212, 224, 0.08);
    color: var(--tl2-text);
}

.tl-home2-info .tl-refine-level {
    color: var(--tl2-gold);
    font-weight: 800;
}

.tl-home2-info .tl-rate-high { color: #6ce86c; font-weight: 700; }
.tl-home2-info .tl-rate-medium { color: var(--tl2-gold); font-weight: 700; }
.tl-home2-info .tl-rate-low { color: var(--tl2-crimson-bright); font-weight: 700; }

.tl-home2-info .tl-cloth-refining-desc {
    text-align: left !important;
    color: var(--tl2-text-dim);
    font-size: 11.5px;
}

/* Map info table */
.tl-home2-info .tl-table-scroll {
    max-height: 360px;
    overflow-y: auto;
    padding: 8px 14px 14px;
}

.tl-home2-info .tl-sidebar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.tl-home2-info .tl-sidebar-table th {
    padding: 7px 6px;
    color: var(--tl2-cyan);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(0, 212, 224, 0.06);
    border-bottom: 1px solid rgba(0, 212, 224, 0.2);
}

.tl-home2-info .tl-sidebar-table td {
    padding: 6px;
    text-align: center;
    border-bottom: 1px dashed rgba(0, 212, 224, 0.08);
    color: var(--tl2-text);
}

.tl-home2-info .tl-map-name { text-align: left !important; color: var(--tl2-gold); font-weight: 600; }
.tl-home2-info .tl-rate-value { color: #6ce86c; font-weight: 700; }

.tl-home2-info .tl-empty {
    text-align: center;
    padding: 24px;
    color: var(--tl2-text-muted);
    font-style: italic;
    font-size: 12.5px;
}

/* =============================================================
   RANKING TRIPLE
   ============================================================= */
.tl-rank-triple { margin-bottom: 32px; }

.tl-rt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

.tl-rt-card {
    background: var(--tl2-card);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    position: relative;
}

.tl-rt-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 224, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.tl-rt-banner {
    padding: 14px 20px;
    background:
        linear-gradient(135deg, rgba(226, 69, 58, 0.35) 0%, transparent 60%),
        linear-gradient(180deg, rgba(0, 212, 224, 0.08) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-bottom: 1px solid rgba(0, 212, 224, 0.25);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tl-rt-banner::before {
    content: "";
    position: absolute;
    left: -10%;
    top: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-20deg);
    animation: tlShine 4s ease infinite;
}

@keyframes tlShine {
    0%, 100% { transform: skewX(-20deg) translateX(0); }
    50% { transform: skewX(-20deg) translateX(400%); }
}

.tl-rt-title {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-shadow: 0 2px 8px rgba(226, 69, 58, 0.6), 0 0 18px rgba(0, 212, 224, 0.3);
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.tl-rt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.tl-rt-table thead th {
    padding: 9px 8px;
    background: rgba(0, 212, 224, 0.05);
    color: var(--tl2-cyan);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 212, 224, 0.18);
    text-align: center;
}

.tl-rt-table thead th:nth-child(2) { text-align: left; padding-left: 14px; }

.tl-rt-table tbody td {
    padding: 9px 8px;
    border-bottom: 1px dashed rgba(0, 212, 224, 0.10);
    color: var(--tl2-text);
    text-align: center;
    vertical-align: middle;
}

.tl-rt-table tbody tr:last-child td { border-bottom: none; }
.tl-rt-table tbody tr:hover td { background: rgba(0, 212, 224, 0.05); }

.tl-rt-rankcell { width: 70px; }

.tl-rt-medal {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    background: linear-gradient(135deg, #2a3955, #1a2538);
    border: 1px solid rgba(0, 212, 224, 0.3);
    min-width: 44px;
    justify-content: center;
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.tl-rt-medal b { font-size: 13px; color: #fff; }

.tl-rt-medal-1 {
    background: linear-gradient(135deg, var(--tl2-gold), #b88a14);
    color: #2a1f00;
    border-color: var(--tl2-gold);
    box-shadow: 0 0 10px rgba(255, 204, 51, 0.5);
}

.tl-rt-medal-1 b { color: #1a1300; }

.tl-rt-medal-2 {
    background: linear-gradient(135deg, #d8d8d8, #888);
    color: #1a1a1a;
    border-color: #d8d8d8;
}

.tl-rt-medal-2 b { color: #1a1a1a; }

.tl-rt-medal-3 {
    background: linear-gradient(135deg, var(--tl2-crimson), var(--tl2-crimson-deep));
    color: #fff;
    border-color: var(--tl2-crimson);
    box-shadow: 0 0 10px rgba(226, 69, 58, 0.5);
}

.tl-rt-name {
    text-align: left !important;
    padding-left: 14px !important;
    color: #fff;
    font-weight: 600;
}

.tl-rt-faction { color: var(--tl2-text-dim); }

.tl-rt-level, .tl-rt-asset, .tl-rt-online {
    color: var(--tl2-gold);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tl-rt-exp {
    color: #6ce86c;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tl-rt-empty {
    text-align: center !important;
    color: var(--tl2-text-muted);
    font-style: italic;
    padding: 22px !important;
}

/* =============================================================
   BOTTOM (Download + Youtube + Fanpage)
   ============================================================= */
.tl-home2-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    margin-bottom: 28px;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1200px) {
    .tl-home2-info { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
    .tl-home2-mid { grid-template-columns: 1fr; }
    .tl-hs-title-main { font-size: 48px; }
    .tl-hs-title-accent { font-size: 30px; }
    .tl-hs-emblem { width: 240px; height: 240px; }
    .tl-hs-emblem-img { width: 160px; height: 160px; }
}

@media (max-width: 900px) {
    .tl-hero-session { height: auto; padding: 60px 0 40px; }
    .tl-hs-inner { grid-template-columns: 1fr; gap: 30px; padding: 0 20px; }
    .tl-hs-right { padding-right: 0; justify-content: flex-start; }
    .tl-hs-emblem { width: 180px; height: 180px; }
    .tl-hs-emblem-img { width: 130px; height: 130px; }
    .tl-hs-meta { flex-wrap: wrap; gap: 16px 28px; }

    .tl-hc-grid, .tl-rt-grid, .tl-home2-bottom { grid-template-columns: 1fr; }
    .tl-hc-card { height: auto; min-height: 130px; }
    .tl-hero-cards { margin-top: 0; }
}

@media (max-width: 600px) {
    .tl-hs-title-main { font-size: 36px; }
    .tl-hs-title-accent { font-size: 22px; }
    .tl-hs-tagline { font-size: 14px; }
    .tl-hs-actions { flex-direction: column; }
    .tl-hs-btn { width: 100%; justify-content: center; }

    .tl-home2-info { grid-template-columns: 1fr; }

    .tl-nb-link {
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto auto;
        gap: 4px 10px;
    }

    .tl-nb-date {
        grid-column: 2;
        text-align: left;
        font-size: 11px;
    }

    .tl-rt-table { font-size: 12px; }
    .tl-rt-table thead th, .tl-rt-table tbody td { padding: 7px 5px; }
    .tl-rt-medal { min-width: 36px; padding: 2px 5px; font-size: 9px; }
}

/* =============================================================
   FACTION SHOWCASE — lift above .tl-bg-decor backdrop
   _FactionShowcase partial render outside .tl-home2 wrapper,
   so it lacks the z-index stacking context — without these rules,
   the fixed .tl-bg-decor (z-index:0) paints over it on top of the
   .tl-faction-section, making it invisible.
   ============================================================= */
.tl-faction-section {
    position: relative;
    z-index: 1;
    margin-top: 28px;
}

.tl-faction-section .container-wide {
    position: relative;
    z-index: 1;
}

