/* Forever portal home */
.dmj-portal {
    --portal-cream: #f0e1cf;
    --portal-gold: #e0b84a;
    --portal-sky: #7ec8e3;
    --portal-ink: #0a1018;
    --portal-panel: rgba(10, 16, 24, 0.78);
    --portal-panel-border: rgba(126, 200, 227, 0.16);
    --portal-line: rgba(224, 184, 74, 0.32);
    --portal-muted: rgba(240, 225, 207, 0.74);
    --portal-banner: url('https://static.damijing.com/wow/assets/forever-banner-02.png');
    position: relative;
    color: var(--portal-cream);
    padding-bottom: 56px;
    overflow-x: hidden;
}

.dmj-portal-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(90% 55% at 70% -5%, rgba(90, 170, 210, 0.22), transparent 55%),
        radial-gradient(70% 45% at 10% 30%, rgba(0, 75, 97, 0.2), transparent 50%),
        linear-gradient(180deg, #071018 0%, #0c1420 42%, #0a1018 100%);
}

/* —— Hero banner —— */
.dmj-portal-hero {
    position: relative;
    width: 100%;
    min-height: clamp(200px, calc(36vw - 160px), 300px);
    margin: 0 0 32px;
    overflow: hidden;
    isolation: isolate;
}

.dmj-portal-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        var(--portal-banner) center 28% / cover no-repeat;
    transform: scale(1.03);
    animation: dmj-portal-hero-drift 22s ease-in-out infinite alternate;
}

.dmj-portal-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(6, 12, 18, 0.88) 0%, rgba(6, 12, 18, 0.42) 38%, rgba(6, 12, 18, 0.12) 62%, rgba(6, 12, 18, 0.35) 100%),
        linear-gradient(180deg, rgba(6, 12, 18, 0.15) 0%, transparent 35%, rgba(6, 12, 18, 0.55) 100%);
}

@keyframes dmj-portal-hero-drift {
    from { transform: scale(1.03) translate3d(0, 0, 0); }
    to { transform: scale(1.07) translate3d(-1%, -0.5%, 0); }
}

.dmj-portal-hero-inner {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 24px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dmj-portal-brand {
    max-width: 520px;
    flex: 1 1 auto;
    min-width: 0;
}

.dmj-portal-hero-aside {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: auto auto;
    align-items: stretch;
    gap: 16px;
}

.dmj-portal-i3d {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 360px;
    height: 100%;
    min-height: 100%;
    padding: 18px 22px 18px 18px;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: var(--portal-cream) !important;
    border: 1px solid rgba(126, 200, 227, 0.34);
    background:
        linear-gradient(155deg, rgba(18, 42, 56, 0.42) 0%, rgba(8, 16, 24, 0.28) 55%, rgba(10, 22, 32, 0.38) 100%);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(224, 184, 74, 0.12),
        inset 0 1px 0 rgba(240, 225, 207, 0.16),
        inset 0 -1px 0 rgba(126, 200, 227, 0.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    backdrop-filter: blur(18px) saturate(1.35);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    animation: dmj-portal-i3d-in 0.55s ease-out both;
}

.dmj-portal-i3d::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, transparent 0%, var(--portal-gold) 28%, var(--portal-sky) 72%, transparent 100%);
    opacity: 0.85;
    pointer-events: none;
}

.dmj-portal-i3d::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(224, 184, 74, 0.16), transparent 55%),
        radial-gradient(90% 70% at 100% 100%, rgba(126, 200, 227, 0.12), transparent 50%);
    pointer-events: none;
}

.dmj-portal-i3d:hover {
    transform: translateY(-2px);
    border-color: rgba(224, 184, 74, 0.55);
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.46),
        0 0 0 1px rgba(224, 184, 74, 0.18),
        0 0 28px rgba(126, 200, 227, 0.14),
        inset 0 1px 0 rgba(240, 225, 207, 0.2);
}

.dmj-portal-i3d-glow {
    position: absolute;
    inset: -35% -25%;
    background:
        radial-gradient(circle at 22% 35%, rgba(255, 226, 138, 0.16), transparent 42%),
        radial-gradient(circle at 78% 70%, rgba(126, 200, 227, 0.14), transparent 48%);
    pointer-events: none;
    animation: dmj-portal-i3d-shimmer 5s ease-in-out infinite;
}

.dmj-portal-i3d-emblem {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    flex: 0 0 auto;
    /* 与右侧二维码外框一致：148 图 + 8*2 内边距 */
    width: 164px;
    height: 164px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 42%, rgba(126, 200, 227, 0.22), transparent 58%),
        linear-gradient(160deg, rgba(22, 38, 52, 0.98), rgba(8, 14, 22, 0.99));
    border: 1px solid rgba(224, 184, 74, 0.38);
    box-shadow:
        0 0 0 1px rgba(126, 200, 227, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(240, 225, 207, 0.12);
    overflow: hidden;
}

.dmj-portal-i3d-emblem-ring {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px dashed rgba(126, 200, 227, 0.28);
    animation: dmj-portal-i3d-spin 18s linear infinite;
    pointer-events: none;
}

.dmj-portal-i3d-emblem-core {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffe28a;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.dmj-portal-i3d-emblem-label {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 2px 7px 1px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #0c1920;
    background: linear-gradient(180deg, #b8e6f5, #5aa8c4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.dmj-portal-i3d-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    max-width: 11em;
    padding-right: 4px;
}

.dmj-portal-i3d-kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--portal-sky);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.dmj-portal-i3d-copy strong {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.25;
    color: var(--portal-cream);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.dmj-portal-i3d-copy em {
    font-style: normal;
    font-size: 13px;
    line-height: 1.55;
    color: var(--portal-muted);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.dmj-portal-i3d-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--portal-gold);
}

.dmj-portal-i3d-cta b {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #1a1408;
    background: linear-gradient(180deg, #ffe28a, #d4a84a);
    padding: 2px 6px 1px;
    border-radius: 7px;
    line-height: 1.1;
}

@keyframes dmj-portal-i3d-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dmj-portal-i3d-shimmer {
    0%, 100% { opacity: 0.55; transform: translateX(-4%) rotate(0deg); }
    50% { opacity: 1; transform: translateX(6%) rotate(1.5deg); }
}

@keyframes dmj-portal-i3d-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dmj-portal-mp {
    display: flex;
    height: 100%;
    min-height: 100%;
}

.dmj-portal-mp-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    min-width: 360px;
    padding: 18px 22px 18px 18px;
    border-radius: 14px;
    background:
        linear-gradient(155deg, rgba(18, 42, 56, 0.42) 0%, rgba(8, 16, 24, 0.28) 55%, rgba(10, 22, 32, 0.38) 100%);
    border: 1px solid rgba(126, 200, 227, 0.34);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(224, 184, 74, 0.12),
        inset 0 1px 0 rgba(240, 225, 207, 0.16),
        inset 0 -1px 0 rgba(126, 200, 227, 0.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    backdrop-filter: blur(18px) saturate(1.35);
    animation: dmj-portal-mp-in 0.55s ease-out both;
    overflow: hidden;
}

.dmj-portal-mp-card::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, transparent 0%, var(--portal-gold) 28%, var(--portal-sky) 72%, transparent 100%);
    opacity: 0.85;
    pointer-events: none;
}

.dmj-portal-mp-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(126, 200, 227, 0.16), transparent 55%),
        radial-gradient(90% 70% at 0% 100%, rgba(224, 184, 74, 0.1), transparent 50%);
    pointer-events: none;
}

@keyframes dmj-portal-mp-in {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dmj-portal-mp-qr-wrap {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 0 0 1px rgba(224, 184, 74, 0.35),
        0 8px 20px rgba(0, 0, 0, 0.28);
}

.dmj-portal-mp-qr {
    width: 148px;
    height: 148px;
    display: block;
    border-radius: 6px;
}

.dmj-portal-mp-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    max-width: 11em;
    padding-right: 4px;
}

.dmj-portal-mp-kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--portal-sky);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.dmj-portal-mp-copy strong {
    font-size: 22px;
    font-weight: 700;
    color: var(--portal-cream);
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.dmj-portal-mp-copy em {
    font-style: normal;
    font-size: 13px;
    line-height: 1.55;
    color: var(--portal-muted);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.dmj-portal-brand img {
    width: min(200px, 48vw);
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.5));
}

.dmj-portal-brand h1 {
    margin: 16px 0 10px;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    line-height: 1.25;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.dmj-portal-brand p {
    margin: 0 0 20px;
    max-width: 28em;
    font-size: 15px;
    line-height: 1.7;
    color: var(--portal-muted);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.dmj-portal-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dmj-portal-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dmj-portal-cta a:hover {
    transform: translateY(-1px);
}

.dmj-portal-cta-primary {
    background: linear-gradient(180deg, #1f8aa4 0%, #0a5a70 100%);
    border: 1px solid rgba(240, 225, 207, 0.38);
    color: #f0e1cf !important;
    box-shadow: 0 8px 22px rgba(0, 40, 55, 0.35);
}

.dmj-portal-cta-primary:hover {
    background: linear-gradient(180deg, #279db9 0%, #0d6a84 100%);
}

.dmj-portal-cta-ghost {
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(240, 225, 207, 0.28);
    color: var(--portal-cream) !important;
    backdrop-filter: blur(4px);
}

.dmj-portal-cta-ghost:hover {
    border-color: rgba(224, 184, 74, 0.55);
    background: rgba(0, 0, 0, 0.52);
}

/* 视频 — 无外框面板 */
.dmj-portal-panel--video {
    padding: 0 !important;
    margin-bottom: 16px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    overflow: visible;
}

.dmj-portal-video-card {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

button.dmj-portal-video-trigger,
.dmj-portal-video-trigger {
    position: relative;
    display: block;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(224, 184, 74, 0.35) !important;
    border-radius: 8px !important;
    overflow: hidden;
    cursor: pointer;
    background: #0a1016 !important;
    color: inherit !important;
    white-space: normal !important;
    line-height: 0 !important;
    font-size: 0 !important;
    text-align: left !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.dmj-portal-video-trigger:hover {
    border-color: rgba(240, 225, 207, 0.6) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    transform: translateY(-2px);
    opacity: 1;
}

.dmj-portal-video-trigger img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    pointer-events: none;
}

.dmj-portal-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    line-height: 0;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
    transition: transform 0.2s ease;
    pointer-events: none;
}

.dmj-portal-video-trigger:hover .dmj-portal-video-play {
    transform: translate(-50%, -50%) scale(1.08);
}

.dmj-portal-video-caption {
    position: absolute;
    left: 10px;
    bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3 !important;
    color: #f0e1cf !important;
    background: rgba(0, 20, 30, 0.72);
    border: 1px solid rgba(240, 225, 207, 0.28);
    pointer-events: none;
}

/* —— Content shell —— */
.dmj-portal-shell {
    box-sizing: border-box;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.dmj-portal-body {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.dmj-portal-l {
    flex: 1 1 auto;
    min-width: 0;
    width: calc(100% - 348px);
}

.dmj-portal-r {
    flex: 0 0 324px;
    width: 324px;
}

.dmj-portal-panel {
    margin-bottom: 20px;
    padding: 18px 20px 20px;
    background:
        linear-gradient(165deg, rgba(18, 28, 40, 0.92) 0%, rgba(10, 16, 24, 0.88) 100%);
    border: 1px solid var(--portal-panel-border);
    border-radius: 10px;
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}

.dmj-portal-panel-head {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(126, 200, 227, 0.12);
}

.dmj-portal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.dmj-portal-title a {
    color: inherit !important;
    text-decoration: none !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
    line-height: inherit !important;
}

.dmj-portal-title a:hover {
    color: var(--portal-gold) !important;
}

.dmj-portal-title--plain {
    color: #fff !important;
}

.dmj-portal-sub {
    margin: 4px 0 0;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: rgba(126, 200, 227, 0.7);
}

/* Feature cards */
.dmj-portal-feature {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dmj-portal-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 148px;
    padding: 16px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    border: 1px solid rgba(240, 225, 207, 0.14);
    color: var(--portal-cream) !important;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dmj-portal-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(4, 10, 16, 0.82) 100%);
    z-index: 0;
}

.dmj-portal-feature-card > * {
    position: relative;
    z-index: 1;
}

.dmj-portal-feature-card:hover {
    border-color: rgba(224, 184, 74, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.dmj-portal-feature-card--changes {
    background:
        linear-gradient(135deg, rgba(8, 24, 34, 0.55), rgba(0, 75, 97, 0.35)),
        var(--portal-banner) 20% 40% / cover no-repeat;
}

.dmj-portal-feature-card--map {
    background:
        linear-gradient(160deg, rgba(8, 14, 22, 0.45), rgba(12, 22, 34, 0.4)),
        url('/front/statics/worldmap/preview-painted.webp') center / cover no-repeat;
}

.dmj-portal-feature-card--talent {
    background:
        linear-gradient(145deg, rgba(20, 12, 32, 0.5), rgba(40, 20, 60, 0.4)),
        radial-gradient(circle at 70% 30%, rgba(224, 184, 74, 0.25), transparent 55%),
        #12101c;
}

.dmj-portal-feature-card--i3d {
    background:
        radial-gradient(120% 80% at 85% 10%, rgba(224, 184, 74, 0.28), transparent 50%),
        radial-gradient(90% 70% at 15% 90%, rgba(126, 200, 227, 0.2), transparent 55%),
        linear-gradient(150deg, rgba(18, 34, 46, 0.9), rgba(8, 14, 22, 0.95));
    border-color: rgba(224, 184, 74, 0.28);
}

.dmj-portal-feature-card--i3d:hover {
    border-color: rgba(255, 226, 138, 0.55);
}

.dmj-portal-feature-card--tier {
    background:
        radial-gradient(100% 80% at 80% 0%, rgba(224, 184, 74, 0.32), transparent 55%),
        linear-gradient(145deg, rgba(42, 28, 12, 0.72), rgba(12, 14, 20, 0.92));
    border-color: rgba(224, 184, 74, 0.22);
}

.dmj-portal-feature-card--tier:hover {
    border-color: rgba(255, 226, 138, 0.5);
}

.dmj-portal-feature-kicker {
    font-size: 10px;
    letter-spacing: 0.16em;
    color: rgba(126, 200, 227, 0.85);
    margin-bottom: 6px;
}

.dmj-portal-feature-card strong {
    display: block;
    font-size: 17px;
    margin-bottom: 4px;
}

.dmj-portal-feature-card em {
    font-style: normal;
    font-size: 12px;
    color: rgba(240, 225, 207, 0.72);
    line-height: 1.45;
    margin-bottom: 10px;
}

.dmj-portal-feature-cta {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--portal-gold);
}

.dmj-portal-leveling {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin-top: 12px;
    border-radius: 8px;
    text-decoration: none !important;
    border: 1px solid rgba(94, 150, 210, 0.45);
    background:
        radial-gradient(120% 140% at 0% 50%, rgba(94, 150, 210, 0.32), transparent 55%),
        linear-gradient(90deg, rgba(18, 42, 72, 0.55), rgba(14, 18, 28, 0.5));
    color: var(--portal-cream) !important;
    box-shadow: 0 0 0 1px rgba(126, 200, 227, 0.08) inset, 0 10px 28px rgba(12, 40, 72, 0.28);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dmj-portal-leveling:hover {
    border-color: rgba(126, 200, 227, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(126, 200, 227, 0.16) inset, 0 14px 32px rgba(12, 48, 80, 0.38);
}

.dmj-portal-leveling-badge {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(160deg, #5e96d2, #1c3a5c);
    border: 1px solid rgba(126, 200, 227, 0.4);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.dmj-portal-leveling-badge strong {
    font-size: 13px;
    letter-spacing: 0.02em;
    color: #e8f4ff;
    line-height: 1.1;
}

.dmj-portal-leveling-badge span {
    font-size: 9px;
    letter-spacing: 0.16em;
    color: rgba(232, 244, 255, 0.7);
}

.dmj-portal-leveling-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.dmj-portal-leveling-copy strong {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
}

.dmj-portal-leveling-copy em {
    font-style: normal;
    font-size: 12px;
    color: rgba(240, 225, 207, 0.78);
    line-height: 1.45;
}

.dmj-portal-leveling-cta {
    flex: 0 0 auto;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: #7ec8e3;
    white-space: nowrap;
}

.dmj-portal-pvp {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin-top: 12px;
    border-radius: 8px;
    text-decoration: none !important;
    border: 1px solid rgba(196, 72, 54, 0.45);
    background:
        radial-gradient(120% 140% at 0% 50%, rgba(196, 72, 54, 0.35), transparent 55%),
        linear-gradient(90deg, rgba(72, 18, 14, 0.55), rgba(14, 18, 28, 0.5));
    color: var(--portal-cream) !important;
    box-shadow: 0 0 0 1px rgba(224, 184, 74, 0.08) inset, 0 10px 28px rgba(80, 12, 8, 0.28);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dmj-portal-pvp:hover {
    border-color: rgba(255, 140, 96, 0.65);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255, 196, 120, 0.16) inset, 0 14px 32px rgba(100, 16, 10, 0.38);
}

.dmj-portal-pvp-badge {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(160deg, #c44836, #6a1c14);
    border: 1px solid rgba(255, 196, 120, 0.35);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.dmj-portal-pvp-badge strong {
    font-size: 14px;
    letter-spacing: 0.04em;
    color: #ffe8c8;
    line-height: 1.1;
}

.dmj-portal-pvp-badge span {
    font-size: 9px;
    letter-spacing: 0.16em;
    color: rgba(255, 232, 200, 0.7);
}

.dmj-portal-pvp-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.dmj-portal-pvp-copy strong {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
}

.dmj-portal-pvp-copy em {
    font-style: normal;
    font-size: 12px;
    color: rgba(240, 225, 207, 0.78);
    line-height: 1.45;
}

.dmj-portal-pvp-cta {
    flex: 0 0 auto;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: #ffc478;
    white-space: nowrap;
}

.dmj-portal-chronicle {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-top: 12px;
    border-radius: 8px;
    text-decoration: none !important;
    border: 1px solid rgba(126, 200, 227, 0.18);
    background: linear-gradient(90deg, rgba(0, 75, 97, 0.28), rgba(14, 18, 28, 0.45));
    color: var(--portal-cream) !important;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dmj-portal-chronicle:hover {
    border-color: rgba(126, 200, 227, 0.4);
    transform: translateY(-1px);
}

.dmj-portal-chronicle-badge {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(126, 200, 227, 0.35);
}

.dmj-portal-chronicle-badge strong {
    font-size: 14px;
    line-height: 1.1;
}

.dmj-portal-chronicle-badge span {
    font-size: 9px;
    letter-spacing: 0.14em;
    opacity: 0.75;
}

.dmj-portal-chronicle-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.dmj-portal-chronicle-copy strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.dmj-portal-chronicle-copy em {
    font-style: normal;
    font-size: 12px;
    color: rgba(240, 225, 207, 0.7);
    line-height: 1.45;
}

.dmj-portal-chronicle-cta {
    flex: 0 0 auto;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--portal-sky);
}

/* Quick links */
.dmj-portal-qklink ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.dmj-portal-qklink a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 6px;
    text-align: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(126, 200, 227, 0.1);
    color: var(--portal-cream) !important;
    text-decoration: none !important;
    font-size: 13px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.dmj-portal-qklink a:hover {
    background: rgba(0, 90, 110, 0.28);
    border-color: rgba(126, 200, 227, 0.32);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Specs grouped by class */
.dmj-portal-spec-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dmj-portal-spec-group {
    padding: 12px 12px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(126, 200, 227, 0.1);
}

.dmj-portal-spec-class {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(240, 225, 207, 0.1);
}

.dmj-portal-spec-class img {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    border: 1px solid rgba(240, 225, 207, 0.28);
    object-fit: cover;
    flex: 0 0 auto;
}

.dmj-portal-spec-class strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.dmj-portal-spec-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dmj-portal-spec-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px;
    border-radius: 6px;
    color: var(--portal-cream) !important;
    text-decoration: none !important;
    min-width: 0;
    transition: background 0.15s ease;
}

.dmj-portal-spec-list a:hover {
    background: rgba(126, 200, 227, 0.1);
}

.dmj-portal-spec-list img {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 1px solid rgba(240, 225, 207, 0.28);
    object-fit: cover;
    flex: 0 0 auto;
}

.dmj-portal-spec-list span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.dmj-portal-spec-list b {
    font-size: 13px;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dmj-portal-spec-list em {
    font-style: normal;
    font-size: 11px;
    color: var(--portal-muted);
}

/* Dungeon cards */
.dmj-portal-dungeons--cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dmj-portal-dungeons--cards a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    width: auto;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(126, 200, 227, 0.12);
    color: var(--portal-cream) !important;
    text-decoration: none !important;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.dmj-portal-dungeons--cards a:hover {
    background: rgba(126, 200, 227, 0.08);
    border-color: rgba(126, 200, 227, 0.35);
    transform: translateY(-2px);
}

.dmj-portal-dungeon-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
}

.dmj-portal-dungeon-media img {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
    display: block;
}

.dmj-portal-dungeon-name {
    display: block;
    padding: 0 10px 10px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Raid tiles — dense image grid with title overlay */
.dmj-portal-raid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 10px;
}

.dmj-portal-raid-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(126, 200, 227, 0.16);
    background: rgba(0, 0, 0, 0.35);
    text-decoration: none !important;
    color: #fff !important;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.dmj-portal-raid-tile:hover {
    border-color: rgba(224, 184, 74, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.dmj-portal-raid-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.dmj-portal-raid-tile:hover img {
    transform: scale(1.06);
}

.dmj-portal-raid-tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(6, 10, 16, 0.88) 100%);
    pointer-events: none;
}

.dmj-portal-raid-tile-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 10px 10px 11px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

/* Profs / specs (list layout) */
.dmj-portal-profs,
.dmj-portal-specs,
.dmj-portal-dungeons:not(.dmj-portal-dungeons--cards) {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
}

.dmj-portal-profs a,
.dmj-portal-specs a,
.dmj-portal-dungeons:not(.dmj-portal-dungeons--cards) a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 6px 8px 6px 4px;
    margin: 2px 0;
    border-radius: 6px;
    color: var(--portal-cream) !important;
    text-decoration: none !important;
    font-size: 13px;
    min-width: 0;
    transition: background 0.15s ease;
}

.dmj-portal-profs a { width: 50%; }
.dmj-portal-specs a { width: 33.33%; }
.dmj-portal-dungeons:not(.dmj-portal-dungeons--cards) a { width: 50%; }

.dmj-portal-profs a:hover,
.dmj-portal-specs a:hover,
.dmj-portal-dungeons:not(.dmj-portal-dungeons--cards) a:hover {
    background: rgba(126, 200, 227, 0.08);
}

.dmj-portal-profs img,
.dmj-portal-specs img,
.dmj-portal-dungeons:not(.dmj-portal-dungeons--cards) img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid rgba(240, 225, 207, 0.28);
    object-fit: cover;
    flex: 0 0 auto;
}

.dmj-portal-profs span,
.dmj-portal-specs span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tools */
.dmj-portal-tools a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 10px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: var(--portal-cream) !important;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.dmj-portal-tools a:hover {
    background: rgba(0, 90, 110, 0.2);
    border-color: rgba(126, 200, 227, 0.2);
}

.dmj-portal-tools-ico {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(26, 110, 130, 0.55), rgba(0, 55, 72, 0.7));
    border: 1px solid rgba(240, 225, 207, 0.2);
    color: var(--portal-cream);
    flex: 0 0 auto;
}

.dmj-portal-tools strong {
    display: block;
    font-size: 14px;
}

.dmj-portal-tools em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: rgba(240, 225, 207, 0.62);
    margin-top: 1px;
}

.dmj-portal-tier-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.dmj-portal-tier-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 10px;
    border-radius: 6px;
    background: rgba(255, 209, 0, 0.08);
    border: 1px solid rgba(255, 209, 0, 0.28);
    color: #ffd100 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.dmj-portal-tier-links a:hover {
    background: rgba(255, 209, 0, 0.16);
    border-color: rgba(255, 209, 0, 0.5);
}

.dmj-portal-classes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dmj-portal-classes a {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(126, 200, 227, 0.12);
    color: var(--portal-cream) !important;
    text-decoration: none !important;
    font-size: 13px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dmj-portal-classes a:hover {
    border-color: rgba(224, 184, 74, 0.45);
    background: rgba(224, 184, 74, 0.08);
}

.dmj-portal-maplist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.dmj-portal-maplist a {
    color: rgba(240, 225, 207, 0.86) !important;
    text-decoration: none !important;
    font-size: 13px;
}

.dmj-portal-maplist a:hover,
.dmj-portal-maplist a.is-accent {
    color: var(--portal-gold) !important;
}

.dmj-portal-maplist a.is-accent {
    font-weight: 600;
}

/* Video modal */
.dmj-portal-video-modal[hidden] {
    display: none !important;
}

.dmj-portal-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.dmj-portal-video-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(3px);
}

.dmj-portal-video-modal-panel {
    position: relative;
    z-index: 1;
    width: min(960px, 96vw);
    max-height: min(90vh, 90dvh);
    background: #0b0f14;
    border: 1px solid rgba(224, 184, 74, 0.35);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.dmj-portal-video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #f0e1cf;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.dmj-portal-video-modal-panel video {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(90vh, 90dvh);
    background: #000;
    object-fit: contain;
}

@media (max-width: 980px) {
    .dmj-portal-body {
        flex-direction: column;
    }
    .dmj-portal-l,
    .dmj-portal-r {
        width: 100%;
        flex: none;
    }
    .dmj-portal-feature {
        grid-template-columns: repeat(2, 1fr);
    }
    .dmj-portal-qklink ul {
        grid-template-columns: repeat(2, 1fr);
    }
    .dmj-portal-hero-inner {
        padding: 24px 16px 32px;
        flex-wrap: wrap;
    }
    .dmj-portal-hero-aside {
        width: 100%;
        justify-content: flex-end;
        grid-template-columns: auto auto;
    }
    .dmj-portal-i3d {
        min-width: 300px;
        padding: 14px 16px 14px 14px;
        gap: 14px;
    }
    .dmj-portal-i3d-emblem {
        width: 132px;
        height: 132px;
    }
    .dmj-portal-i3d-emblem-core svg {
        width: 64px;
        height: 64px;
    }
    .dmj-portal-i3d-copy strong {
        font-size: 18px;
    }
    .dmj-portal-mp {
        margin-left: 0;
    }
    .dmj-portal-mp-card {
        min-width: 300px;
        padding: 14px 16px 14px 14px;
        gap: 14px;
    }
    .dmj-portal-mp-qr-wrap {
        padding: 6px;
    }
    .dmj-portal-mp-qr {
        width: 120px;
        height: 120px;
    }
    .dmj-portal-mp-copy strong {
        font-size: 18px;
    }
    .dmj-portal-spec-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dmj-portal-dungeons--cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .dmj-portal-raid-grid {
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    }
    .dmj-portal-specs a,
    .dmj-portal-dungeons:not(.dmj-portal-dungeons--cards) a {
        width: 50%;
    }
}

@media (max-width: 640px) {
    .dmj-portal-shell {
        padding: 0 14px;
    }
    .dmj-portal-hero-inner {
        padding: 20px 14px 28px;
        flex-direction: column;
        align-items: stretch;
    }
    .dmj-portal-hero-aside {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .dmj-portal-i3d {
        width: 100%;
        min-width: 0;
        min-height: 0;
        box-sizing: border-box;
        justify-content: flex-start;
        padding: 14px;
        gap: 14px;
        -webkit-backdrop-filter: blur(14px) saturate(1.25);
        backdrop-filter: blur(14px) saturate(1.25);
    }
    .dmj-portal-i3d-emblem {
        width: 120px;
        height: 120px;
    }
    .dmj-portal-i3d-emblem-core svg {
        width: 58px;
        height: 58px;
    }
    .dmj-portal-i3d-copy {
        max-width: none;
    }
    .dmj-portal-i3d-copy strong {
        font-size: 17px;
    }
    .dmj-portal-feature {
        grid-template-columns: 1fr;
    }
    .dmj-portal-mp {
        margin-left: 0;
        width: 100%;
    }
    .dmj-portal-mp-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        justify-content: flex-start;
        padding: 14px;
        gap: 14px;
        -webkit-backdrop-filter: blur(14px) saturate(1.25);
        backdrop-filter: blur(14px) saturate(1.25);
    }
    .dmj-portal-mp-qr {
        width: 108px;
        height: 108px;
    }
    .dmj-portal-mp-copy {
        max-width: none;
    }
    .dmj-portal-mp-copy strong {
        font-size: 17px;
    }
    .dmj-portal-qklink ul {
        grid-template-columns: 1fr 1fr;
    }
    .dmj-portal-spec-groups {
        grid-template-columns: 1fr;
    }
    .dmj-portal-dungeons--cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .dmj-portal-raid-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .dmj-portal-specs a,
    .dmj-portal-profs a,
    .dmj-portal-dungeons:not(.dmj-portal-dungeons--cards) a {
        width: 100%;
    }
}
