:root {
    --bg: #07090d;
    --surface: rgba(13, 16, 22, .86);
    --surface-strong: rgba(18, 22, 31, .94);
    --line: rgba(244, 190, 112, .18);
    --line-hot: rgba(236, 58, 48, .45);
    --text: #f7eee0;
    --muted: #b7b0a8;
    --gold: #f4c36c;
    --red: #e23d32;
    --green: #65e58b;
    --teal: #55d6d0;
    --violet: #9d7cff;
    --radius: 18px;
    --shadow: 0 24px 80px rgba(0, 0, 0, .48);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(140deg, rgba(226, 61, 50, .20), transparent 28%),
        linear-gradient(320deg, rgba(85, 214, 208, .14), transparent 34%),
        linear-gradient(180deg, rgba(7, 9, 13, .96), rgba(7, 9, 13, .88)),
        var(--bg);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent 88%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .72), transparent 30%, transparent 70%, rgba(0, 0, 0, .72)),
        linear-gradient(180deg, transparent, rgba(0, 0, 0, .58));
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    min-height: 76px;
    padding: 14px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 13, .78);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.brand img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    box-shadow: 0 0 24px rgba(226, 61, 50, .35);
}

.brand small,
.eyebrow {
    display: block;
    color: var(--teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.brand strong {
    display: block;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: .95;
    text-shadow: 0 0 24px rgba(226, 61, 50, .35);
}

.brand strong span {
    color: var(--red);
}

.main-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
}

.main-nav a {
    position: relative;
    min-width: 82px;
    padding: 10px 15px;
    color: #d9d4cb;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(226, 61, 50, .95), rgba(244, 195, 108, .72));
    transform: translateY(-1px);
}

.session-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    color: var(--muted);
}

.session-pill span,
.session-pill a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.session-pill a {
    background: rgba(255, 255, 255, .08);
}

.site-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 32px auto 0;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--line-hot);
    border-radius: 28px;
    background:
        linear-gradient(110deg, rgba(12, 15, 21, .98) 0%, rgba(16, 20, 28, .9) 50%, rgba(20, 18, 23, .72) 100%),
        linear-gradient(135deg, rgba(226, 61, 50, .22), rgba(85, 214, 208, .16));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 22px;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 55%;
    height: 68%;
    background:
        linear-gradient(135deg, transparent 0 42%, rgba(244, 195, 108, .18) 42% 44%, transparent 44%),
        linear-gradient(45deg, transparent 0 52%, rgba(85, 214, 208, .12) 52% 54%, transparent 54%);
    opacity: .9;
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: clamp(32px, 6vw, 72px);
}

.hero h1 {
    margin: 8px 0 12px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(58px, 9vw, 112px);
    line-height: .84;
    letter-spacing: 0;
    text-shadow: 0 5px 0 rgba(75, 4, 7, .9), 0 0 44px rgba(226, 61, 50, .45);
}

.hero-text {
    max-width: 640px;
    margin: 0;
    color: #dfd8cc;
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.button.primary {
    background: linear-gradient(135deg, #f4c36c, #e23d32 58%, #781b25);
    box-shadow: 0 16px 34px rgba(226, 61, 50, .28), inset 0 1px 0 rgba(255, 255, 255, .32);
}

.button.secondary {
    border: 1px solid rgba(244, 195, 108, .36);
    background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .045));
}

.button.danger {
    background: linear-gradient(135deg, #ff665c, #9f1d22);
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 20px 42px rgba(226, 61, 50, .34);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-stats span {
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, .045);
    font-size: 13px;
}

.hero-stats b {
    color: #fff;
}

.hero-art {
    position: relative;
    z-index: 1;
    min-height: 520px;
}

.hero-character {
    position: absolute;
    bottom: 38px;
    width: clamp(145px, 19vw, 240px);
    filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .58));
}

.hero-warrior {
    right: 40px;
    z-index: 4;
}

.hero-shaman {
    right: 160px;
    bottom: 30px;
    z-index: 3;
    width: clamp(175px, 22vw, 285px);
}

.hero-sura {
    right: 285px;
    z-index: 2;
    opacity: .94;
}

.hero-ninja {
    right: 365px;
    bottom: 48px;
    z-index: 1;
    opacity: .78;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 336px;
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.main-column,
.side-column {
    display: grid;
    gap: 24px;
}

.surface,
.side-panel,
.mini-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface-strong), var(--surface));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.surface {
    padding: clamp(22px, 4vw, 34px);
}

.side-panel,
.mini-panel {
    padding: 22px;
}

.download-panel {
    position: relative;
    overflow: hidden;
}

.download-panel::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -28px;
    width: 146px;
    height: 146px;
    background: url("images/dakky_site_icon.png") center/contain no-repeat;
    opacity: .13;
    transform: rotate(-12deg);
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h1,
.section-heading h2,
.side-panel h2,
.mini-panel h2 {
    margin: 6px 0 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.section-heading h1 {
    font-size: clamp(36px, 6vw, 58px);
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 44px);
}

.side-panel h2,
.mini-panel h2 {
    font-size: 25px;
}

.lead,
.side-panel p,
.muted,
.empty-state p {
    color: var(--muted);
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.feature-card {
    min-height: 190px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .03)),
        linear-gradient(135deg, rgba(226, 61, 50, .12), rgba(85, 214, 208, .06));
}

.feature-card span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
}

.feature-card h3 {
    margin: 20px 0 10px;
    color: #fff;
    font-size: 20px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.class-showcase {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.class-showcase article {
    position: relative;
    min-height: 245px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
        rgba(13, 16, 22, .86);
}

.class-showcase img {
    position: absolute;
    left: 50%;
    bottom: 42px;
    width: 74%;
    max-height: 190px;
    object-fit: contain;
    transform: translateX(-50%);
    filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .55));
}

.class-showcase strong {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(0, 0, 0, .36);
    color: #fff;
    text-align: center;
}

.alert {
    padding: 15px 16px;
    border-radius: 14px;
    font-weight: 800;
    transition: opacity .45s ease, transform .45s ease;
}

.alert.success {
    border: 1px solid rgba(101, 229, 139, .32);
    color: #c8ffd7;
    background: rgba(23, 114, 60, .20);
}

.alert.error {
    border: 1px solid rgba(255, 102, 92, .38);
    color: #ffd4d1;
    background: rgba(159, 29, 34, .24);
}

.alert.hide {
    opacity: 0;
    transform: translateY(-8px);
}

.account-form {
    display: grid;
    gap: 16px;
}

.account-form.compact {
    gap: 12px;
}

.account-form label {
    display: grid;
    gap: 8px;
    color: #f1dfbd;
    font-size: 13px;
    font-weight: 850;
}

.account-form input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    outline: 0;
    color: #fff;
    background: rgba(0, 0, 0, .28);
    transition: border .2s ease, box-shadow .2s ease, background .2s ease;
}

.account-form input:focus {
    border-color: rgba(85, 214, 208, .72);
    background: rgba(0, 0, 0, .40);
    box-shadow: 0 0 0 4px rgba(85, 214, 208, .10);
}

.form-surface {
    max-width: 720px;
}

.side-panel .button,
.account-form .button {
    width: 100%;
}

.status-list,
.ranking-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.status-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: var(--muted);
}

.status-list li:last-child {
    border-bottom: 0;
}

.online,
.offline {
    font-size: 13px;
    font-style: normal;
    font-weight: 950;
}

.online {
    color: var(--green);
    text-shadow: 0 0 18px rgba(101, 229, 139, .45);
}

.offline {
    color: #ff746d;
    text-shadow: 0 0 18px rgba(226, 61, 50, .45);
}

.ranking-list {
    display: grid;
    gap: 10px;
    counter-reset: ranking;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
}

.ranking-list li > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: #1b1110;
    background: var(--gold);
    font-size: 12px;
    font-weight: 950;
}

.ranking-list strong {
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-list em {
    color: var(--teal);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.ranking-empty {
    grid-template-columns: 1fr !important;
    color: var(--muted);
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.account-layout h2 {
    margin: 0 0 14px;
    color: #fff;
}

.character-list {
    display: grid;
    gap: 14px;
}

.character-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(85, 214, 208, .09), rgba(226, 61, 50, .08)),
        rgba(255, 255, 255, .035);
}

.character-card img {
    width: 104px;
    height: 128px;
    object-fit: contain;
    object-position: bottom;
    border: 1px solid rgba(244, 195, 108, .24);
    border-radius: 14px;
    background: rgba(0, 0, 0, .34);
}

.character-card strong {
    display: block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 22px;
}

.character-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.character-card dl div {
    padding: 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .18);
}

.character-card dt {
    color: var(--muted);
    font-size: 12px;
}

.character-card dd {
    margin: 3px 0 0;
    color: #fff;
    font-weight: 850;
}

.account-tools {
    display: grid;
    gap: 14px;
}

.danger-panel {
    border-color: rgba(255, 102, 92, .24);
}

.empty-state {
    max-width: 620px;
}

.empty-state h1 {
    margin: 7px 0 12px;
    color: #fff;
    font-size: clamp(34px, 6vw, 52px);
    line-height: 1;
}

.site-footer {
    display: flex;
    justify-content: center;
    gap: 14px;
    width: min(1240px, calc(100% - 32px));
    margin: 24px auto 32px;
    padding: 18px;
    color: #9e988f;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    background: rgba(0, 0, 0, .22);
    font-size: 13px;
}

.fallback-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.fallback-card {
    width: min(520px, 100%);
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-strong);
    text-align: center;
    box-shadow: var(--shadow);
}

@media (max-width: 1080px) {
    .site-header {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 18px;
    }

    .hero,
    .content-grid,
    .account-layout {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 330px;
    }

    .hero-character {
        bottom: 16px;
    }

    .hero-warrior {
        right: 8%;
    }

    .hero-shaman {
        right: 28%;
    }

    .hero-sura {
        right: 50%;
    }

    .hero-ninja {
        right: 68%;
    }
}

@media (max-width: 760px) {
    .site-shell {
        width: min(100% - 20px, 1240px);
        margin-top: 14px;
    }

    .site-header {
        position: relative;
        padding: 16px 12px;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav a {
        min-width: calc(50% - 6px);
    }

    .session-pill {
        width: 100%;
        justify-content: center;
    }

    .hero {
        min-height: auto;
        border-radius: 20px;
    }

    .hero-copy {
        padding: 28px;
    }

    .hero h1 {
        font-size: 64px;
    }

    .hero-art {
        min-height: 255px;
    }

    .hero-character {
        width: 145px;
    }

    .hero-shaman {
        width: 170px;
    }

    .feature-grid,
    .class-showcase,
    .character-card dl {
        grid-template-columns: 1fr;
    }

    .class-showcase article {
        min-height: 210px;
    }

    .character-card {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .character-card img {
        width: 86px;
        height: 112px;
    }

    .site-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 52px;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .hero-stats {
        display: grid;
    }

    .hero-ninja {
        display: none;
    }

    .hero-sura {
        right: 52%;
    }

    .hero-shaman {
        right: 23%;
    }

    .hero-warrior {
        right: 0;
    }
}
.itemshop-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.itemshop-modal.show {
    display: flex;
}

.itemshop-modal-box {
    width: 980px;
    height: 620px;
    background: #07111c;
    border: 1px solid #b8873d;
    box-shadow: 0 0 60px rgba(255,80,20,.35);
    position: relative;
}

.itemshop-modal-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.itemshop-close {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 2;
    background: #250606;
    color: #ffd08a;
    border: 1px solid #b8873d;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.itemshop-body {
    margin: 0;
    background: #050911;
    font-family: Arial, sans-serif;
    color: #d8e7ff;
}

.itemshop-window {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #07111c, #0a1827 55%, #160707);
    padding: 16px;
    box-sizing: border-box;
}

.itemshop-top {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #0b1b2b;
    border: 1px solid #1e4967;
    padding: 10px;
}

.coins-box {
    width: 130px;
    color: #ffd36b;
}

.coins-box small {
    display: block;
    color: #d98f3e;
}

.shop-tabs {
    display: flex;
    gap: 8px;
}

.shop-tabs a {
    padding: 10px 16px;
    color: #c7e8ff;
    text-decoration: none;
    background: linear-gradient(#21445a, #102535);
    border: 1px solid #356b82;
    font-size: 12px;
}

.shop-tabs a.active {
    background: linear-gradient(#227b5b, #13543e);
    color: #fff;
}

.shop-search {
    margin-left: auto;
    background: #07111c;
    border: 1px solid #21445a;
    color: white;
    padding: 10px;
    width: 260px;
}

.itemshop-layout {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
    margin-top: 14px;
}

.shop-cats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-cats a {
    background: #0d2235;
    border: 1px solid #28506c;
    color: #d8e7ff;
    text-decoration: none;
    padding: 16px 10px;
    text-align: center;
    font-size: 13px;
}

.shop-cats a.active {
    background: #173b58;
    border-color: #d69a4c;
    color: #ffd36b;
}

.shop-banner {
    height: 130px;
    background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(90,20,10,.25)), url("images/itemshop/banner.jpg");
    background-size: cover;
    border: 1px solid #315d78;
    display: flex;
    align-items: center;
    padding: 0 38px;
    margin-bottom: 14px;
}

.shop-banner span {
    color: #fff;
    font-weight: bold;
}

.shop-banner h1 {
    color: #ffd36b;
    margin: 4px 0;
    letter-spacing: 2px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.shop-card {
    position: relative;
    min-height: 115px;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    background: rgba(8, 22, 35, .95);
    border: 1px solid #2a5878;
    padding: 14px;
    overflow: hidden;
}

.shop-card img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    align-self: center;
}

.shop-card h3 {
    margin: 0;
    color: #ffd36b;
    font-size: 13px;
}

.shop-card p {
    margin: 5px 0;
    color: #e8c26a;
    font-size: 12px;
}

.shop-card small {
    color: #ff5959;
}

.hot-ribbon {
    position: absolute;
    top: 10px;
    left: -28px;
    transform: rotate(-35deg);
    background: #e33434;
    color: white;
    font-weight: bold;
    font-size: 11px;
    padding: 4px 36px;
}

.shop-buy {
    position: absolute;
    right: 12px;
    bottom: 10px;
    background: #1aa077;
    color: white;
    border: 0;
    padding: 7px 18px;
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
}

.shop-buy.disabled {
    background: #666;
}
.itemshop-body
.itemshop-window
.itemshop-top
.itemshop-layout
.shop-cats
.shop-main
.shop-banner
.shop-grid
.shop-card
.shop-buy
.hot-ribbon