:root {
    color-scheme: dark;
    --bg: #090b12;
    --panel: rgba(14, 18, 30, .78);
    --panel-strong: rgba(20, 24, 38, .92);
    --line: rgba(255, 255, 255, .12);
    --text: #f5f7ff;
    --muted: #aab3c7;
    --ow-blue: #40c8ff;
    --ow-orange: #ff9c2a;
    --wow-gold: #f2c46f;
    --wow-blue: #6f8cff;
    --diablo-red: #ff3c35;
    --diablo-dark: #3b1010;
    --ok: #62f7b4;
    --bad: #ff605a;
    --warn: #ffd36a;
    font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 18%, rgba(64, 200, 255, .22), transparent 26%),
        radial-gradient(circle at 82% 8%, rgba(255, 156, 42, .24), transparent 24%),
        radial-gradient(circle at 75% 68%, rgba(255, 60, 53, .2), transparent 26%),
        linear-gradient(135deg, #080a12 0%, #10162a 42%, #170b0b 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 64px;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    align-items: center;
    gap: 28px;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        linear-gradient(115deg, rgba(64, 200, 255, .18), transparent 38%),
        linear-gradient(245deg, rgba(255, 60, 53, .2), transparent 36%),
        rgba(8, 10, 18, .7);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .46), inset 0 0 70px rgba(255, 255, 255, .04);
    overflow: hidden;
}

.hero__content,
.hero__media {
    position: relative;
    z-index: 1;
}

.hero::after {
    content: "ᚱ ᚢ ᚾ ᛖ  ✦  HEX  ✦  SIGIL";
    position: absolute;
    right: -38px;
    bottom: 22px;
    color: rgba(242, 196, 111, .18);
    font-size: clamp(40px, 8vw, 98px);
    font-weight: 900;
    letter-spacing: .1em;
    transform: rotate(-7deg);
}

.hero__badge,
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ow-blue);
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
}

.hero h1 {
    margin: 12px 0;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.theme-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.theme-pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px);
}

.theme-pill--ow { box-shadow: inset 0 0 18px rgba(64, 200, 255, .18); color: #dff5ff; }
.theme-pill--wow { box-shadow: inset 0 0 18px rgba(242, 196, 111, .2); color: #ffe5a9; }
.theme-pill--diablo { box-shadow: inset 0 0 18px rgba(255, 60, 53, .22); color: #ffc4bf; }

.brand-logo-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    gap: 12px;
    margin-top: 24px;
    max-width: 620px;
}

.brand-logo-card {
    display: grid;
    place-items: center;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
        rgba(2, 5, 12, .5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 14px 30px rgba(0, 0, 0, .22);
    overflow: hidden;
}

.brand-logo-card img {
    display: block;
    width: 100%;
    max-width: 104px;
    max-height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, .2));
}

.brand-logo-card--ow {
    border-color: rgba(64, 200, 255, .34);
    background: linear-gradient(135deg, rgba(64, 200, 255, .14), rgba(255, 156, 42, .12));
}

.brand-logo-card--wow {
    border-color: rgba(242, 196, 111, .42);
    background: radial-gradient(circle at 50% 20%, rgba(242, 196, 111, .18), rgba(34, 50, 120, .12));
}

.brand-logo-card--diablo {
    border-color: rgba(255, 60, 53, .38);
    background: radial-gradient(circle at 50% 20%, rgba(255, 60, 53, .16), rgba(59, 16, 16, .22));
}

.brand-logo-card--hearthstone {
    border-color: rgba(255, 211, 106, .4);
    background: radial-gradient(circle at 50% 18%, rgba(255, 211, 106, .18), rgba(33, 82, 153, .13));
}

.brand-logo-card--starcraft {
    border-color: rgba(111, 140, 255, .38);
    background: radial-gradient(circle at 50% 18%, rgba(111, 140, 255, .18), rgba(5, 15, 34, .24));
}

.brand-emblems {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.brand-emblem {
    display: grid;
    place-items: center;
    min-width: 88px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 30px rgba(0, 0, 0, .22);
    overflow: hidden;
}

.brand-emblem img {
    max-width: 78px;
    max-height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, .22));
}

.brand-emblem--ow {
    border-color: rgba(64, 200, 255, .34);
    background: linear-gradient(135deg, rgba(64, 200, 255, .12), rgba(255, 156, 42, .13));
}

.brand-emblem--wow {
    min-width: 58px;
    border-color: rgba(242, 196, 111, .42);
    background: radial-gradient(circle, rgba(242, 196, 111, .18), rgba(34, 50, 120, .14));
}

.media-rune {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--wow-gold);
    border: 1px solid rgba(242, 196, 111, .34);
    background: radial-gradient(circle, rgba(242, 196, 111, .18), rgba(242, 196, 111, .03));
    text-shadow: 0 0 12px rgba(242, 196, 111, .55);
}

.hero__media {
    min-height: 390px;
}

.hero-media-card {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(4, 7, 16, .72);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.hero-media-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.16) contrast(1.05);
}

.hero-media-card span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 8px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(10px);
}

.hero-media-card--primary {
    inset: 0 86px 70px 0;
    transform: rotate(-3deg);
    border-color: rgba(64, 200, 255, .35);
}

.hero-media-card--secondary {
    inset: 130px 0 0 118px;
    transform: rotate(4deg);
    border-color: rgba(242, 196, 111, .38);
}

.hero-media-card--primary::after,
.hero-media-card--secondary::after,
.official-media-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .62)),
        radial-gradient(circle at 15% 8%, rgba(64, 200, 255, .22), transparent 34%);
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: 22px;
    margin-top: 22px;
}

.panel,
.result-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--panel);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(20px);
}

.input-panel {
    padding: 28px;
}

.panel__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.panel__head h2 {
    margin: 6px 0 0;
    font-size: 28px;
}

.sigil {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: var(--wow-gold);
    border: 1px solid rgba(242, 196, 111, .42);
    border-radius: 18px;
    background: radial-gradient(circle, rgba(242, 196, 111, .2), rgba(242, 196, 111, .04));
    font-size: 26px;
}

.query-form label {
    display: block;
    margin-bottom: 8px;
    color: #dbe4ff;
    font-weight: 800;
}

textarea,
select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    color: var(--text);
    background: rgba(2, 5, 12, .62);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

textarea {
    min-height: 260px;
    resize: vertical;
    padding: 18px;
    line-height: 1.55;
    font-size: 15px;
}

select {
    min-height: 50px;
    padding: 0 14px;
}

textarea:focus,
select:focus {
    border-color: rgba(64, 200, 255, .7);
    box-shadow: 0 0 0 4px rgba(64, 200, 255, .12);
    background: rgba(2, 5, 12, .82);
}

.form-row {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-top: 16px;
}

.form-row label {
    margin-bottom: 13px;
}

button {
    min-height: 50px;
    border: 0;
    border-radius: 16px;
    padding: 0 22px;
    color: #15110a;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: .04em;
    background: linear-gradient(135deg, var(--ow-orange), var(--wow-gold));
    box-shadow: 0 16px 34px rgba(255, 156, 42, .25);
}

button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.form-message {
    margin: 14px 0 0;
    color: var(--warn);
}

.lore-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(64, 200, 255, .08), transparent),
        var(--panel);
}

.announcement-board {
    position: relative;
    min-height: 100%;
    padding: 24px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(242, 196, 111, .12), transparent 32%),
        radial-gradient(circle at 82% 0%, rgba(255, 60, 53, .12), transparent 34%),
        var(--panel);
}

.announcement-board::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(242, 196, 111, .24);
    border-radius: 22px;
    pointer-events: none;
}

.announcement-board::after {
    content: "NOTICE";
    position: absolute;
    right: -12px;
    bottom: 10px;
    color: rgba(242, 196, 111, .1);
    font-size: 70px;
    font-weight: 1000;
    letter-spacing: .08em;
    transform: rotate(-8deg);
}

.announcement-board__head,
.announcement-board__content {
    position: relative;
    z-index: 1;
}

.announcement-board__head {
    margin-bottom: 18px;
}

.announcement-board__head h2 {
    margin: 8px 0 0;
    font-size: 30px;
}

.announcement-board__content {
    min-height: 330px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    background: rgba(2, 5, 12, .46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
    color: #dce5f8;
    line-height: 1.75;
}

.announcement-placeholder {
    margin: 0;
    color: var(--muted);
}

.official-media-card {
    position: relative;
    min-height: 184px;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.official-media-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.18) contrast(1.08);
}

.official-media-card__body {
    position: absolute;
    z-index: 1;
    inset: auto 14px 14px 14px;
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(2, 5, 12, .62);
    backdrop-filter: blur(12px);
}

.official-media-card__body .media-rune {
    width: 34px;
    height: 34px;
}

.official-media-card__body b {
    font-size: 18px;
}

.official-media-card__body small {
    color: var(--muted);
    line-height: 1.45;
}

.official-media-card--ow {
    border-color: rgba(64, 200, 255, .3);
}

.official-media-card--wow {
    border-color: rgba(242, 196, 111, .38);
}

.lore-card {
    min-height: 128px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
}

.lore-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    opacity: .5;
    transform: rotate(18deg);
}

.lore-card b,
.lore-card span {
    position: relative;
    z-index: 1;
}

.lore-card b {
    font-size: 19px;
}

.lore-card span {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.5;
}

.lore-card--ow {
    background: linear-gradient(135deg, rgba(64, 200, 255, .12), rgba(255, 156, 42, .08));
}

.lore-card--ow::before {
    background: repeating-linear-gradient(60deg, rgba(64, 200, 255, .18) 0 2px, transparent 2px 18px);
}

.lore-card--wow {
    background: linear-gradient(135deg, rgba(242, 196, 111, .14), rgba(111, 140, 255, .1));
}

.lore-card--wow::before {
    background: radial-gradient(circle, rgba(242, 196, 111, .3), transparent 42%);
}

.lore-card--diablo {
    background: linear-gradient(135deg, rgba(255, 60, 53, .18), rgba(59, 16, 16, .38));
}

.lore-card--diablo::before {
    background: repeating-linear-gradient(120deg, rgba(255, 60, 53, .22) 0 3px, transparent 3px 22px);
}

.summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 22px;
    padding: 16px;
}

.summary div {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    background: rgba(255, 255, 255, .04);
}

.summary span {
    display: block;
    color: var(--muted);
}

.summary strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
}

.ok { color: var(--ok); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }

.exports {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 22px;
    padding: 18px;
}

.export-box {
    border: 1px solid rgba(98, 247, 180, .22);
    border-radius: 22px;
    padding: 16px;
    background: rgba(98, 247, 180, .055);
}

.export-box--danger {
    border-color: rgba(255, 96, 90, .28);
    background: rgba(255, 96, 90, .06);
}

.export-box__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.export-box h3 {
    margin: 0;
}

.export-box button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
}

.export-box textarea {
    min-height: 150px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.result-card {
    padding: 18px;
}

.result-card__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.result-card h3 {
    margin: 0;
}

.result-card__head span {
    color: var(--muted);
}

.result-card--normal { border-color: rgba(98, 247, 180, .2); }
.result-card--banned { border-color: rgba(255, 96, 90, .26); }
.result-card--unknown { border-color: rgba(255, 211, 106, .24); }
.result-card--error { border-color: rgba(255, 255, 255, .2); }

.result-list {
    display: grid;
    gap: 10px;
    max-height: 430px;
    overflow-y: auto;
    padding-right: 6px;
    overscroll-behavior: contain;
    scrollbar-color: rgba(64, 200, 255, .55) rgba(255, 255, 255, .06);
    scrollbar-width: thin;
}

.result-list::-webkit-scrollbar {
    width: 9px;
}

.result-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
}

.result-list::-webkit-scrollbar-thumb {
    border: 2px solid rgba(2, 5, 12, .55);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(64, 200, 255, .75), rgba(242, 196, 111, .55));
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .045);
}

.result-row strong {
    display: block;
    word-break: break-all;
}

.result-row small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    word-break: break-word;
}

.result-row em {
    flex: 0 0 auto;
    color: var(--muted);
    font-style: normal;
}

.empty {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero__media {
        min-height: 300px;
    }

    .hero-media-card--primary {
        inset: 0 56px 60px 0;
    }

    .hero-media-card--secondary {
        inset: 110px 0 0 76px;
    }

    .grid,
    .exports,
    .results-grid,
    .summary {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row label {
        margin-bottom: -4px;
    }

    .hero,
    .input-panel {
        padding: 24px;
    }

    .brand-logo-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .announcement-board {
        min-height: 360px;
    }
}
