* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@font-face {
    font-family: ZKG;
    font-weight: bold;
    src: url("../fonts/Zen_Kaku_Gothic_Antique/ZenKakuGothicAntique-Bold.ttf");
}

html,
body {
    width: 100%;
    height: 100%;
}

img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

:root {
    --text-color: #ffffff;
    --sub-text-color: #aaaaaa;
    --background-color: #101014;
    --border-color: #323232;

    --page-padding: 100px;
}

html,
body {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 0;
}

a {
    width: auto;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.icon {
    width: 36px;
    height: 36px;
}

.icon.right {
    transform: rotate(180deg);
}

.nav {
    z-index: 999;
    position: fixed;
    top: 0;
    padding: 18px var(--page-padding) 10px var(--page-padding);
    width: 100%;
    height: 52px;
    background: linear-gradient(to bottom, var(--background-color), #ffffff00);
    display: flex;
    transition: background 0.3s ease;
}

.nav.scrolled {
    background: var(--background-color);
    box-shadow: 0 5px 10px #0000004d;
}

.nav .left {
    width: auto;
}

.nav .right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav .left .logo {
    width: auto;
    height: 18px;
}

.nav .right a {
    width: auto;
    color: var(--text-color);
    text-decoration: none;
    margin-top: -5px;
    margin-left: 60px;
    font-size: 14px;
    position: relative;
}

.nav .right a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: width 0.2s ease;
}

.nav .right a:hover::after {
    width: 100%;
}

.banner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.banner.sm {
    height: 380px;
}

.banner .background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.banner .text-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    text-align: left;
    color: var(--text-color);
    background: linear-gradient(to top, var(--background-color), #ffffff00);
    padding: 0 var(--page-padding) 100px var(--page-padding);
}

.banner.sm .text-box {
    padding: 0 var(--page-padding) 70px var(--page-padding);
}

.banner .text-box .title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 10px;
}

.banner .text-box .sub {
    font-size: 18px;
    font-weight: 200;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 900px;
}

.a-btn {
    text-decoration: none;
    font-size: 14px;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.a-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: width 0.2s ease;
}

.a-btn:hover::after {
    width: 100%;
}

.a-btn .icon {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    margin-top: -3px;
    vertical-align: middle;
}

.page {
    width: 100%;
    padding: 50px var(--page-padding);
    position: relative;
}

.page-title {
    width: auto;
    height: 50px;
    margin-bottom: 24px;
}

.page .sub {
    font-size: 16px;
    font-weight: 300;
    color: var(--sub-text-color);
    margin-bottom: 24px;
}

.game-card {
    margin-left: calc(-1 * var(--page-padding));
    margin-right: calc(-1 * var(--page-padding));
    margin-bottom: 50px;
    width: calc(100% + 2 * var(--page-padding));
    height: 800px;
    position: relative;
    overflow: hidden;
}

.game-card .game-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.game-card .text-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    text-align: left;
    color: var(--text-color);
    background: linear-gradient(to top, var(--background-color), #ffffff00);
    padding: 0 var(--page-padding) 100px var(--page-padding);
}

.game-card .text-box.right {
    text-align: right;
}

.game-card .text-box.top {
    position: absolute;
    top: 0;
    left: 0;
    padding: 100px var(--page-padding) 0 var(--page-padding);
    background: linear-gradient(to right, var(--background-color) 10%, #ffffff00);
}

.game-card .text-box.right .sub {
    margin-left: auto;
}

.game-card .text-box .game-logo {
    width: auto;
    height: 60px;
    margin-bottom: 12px;
}

.game-card .text-box .game-logo.big {
    width: auto;
    height: 180px;
    margin-bottom: 12px;
}

.game-card .text-box .title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.game-card .text-box .sub {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    max-width: 800px;
    margin-bottom: 30px;
}

.page#news .read-more {
    position: absolute;
    top: 50px;
    right: var(--page-padding);
    width: auto;
    height: 50px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.news-card-group {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.news-card {
    flex: 1;
    min-width: calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    border-radius: 18px;
    border: 2px solid var(--border-color);
    padding: 0;
}

.news-card .news-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    border-radius: 18px 18px 0 0;
    margin-bottom: 12px;
}

.news-card .text-box {
    padding: 18px 40px 40px 40px;
}

.news-card .text-box .title {
    font-size: 20px;
}

.news-card .text-box .date {
    font-size: 14px;
    color: var(--sub-text-color);
    margin-bottom: 14px;
}

.news-card .text-box .sub {
    font-size: 14px;
    margin-bottom: 14px;
}

.bottom-banner {
    margin-top: 40px;
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bottom-banner.big {
    margin-top: 0;
    height: 400px;
    position: relative;
    background: none;
}

.bottom-banner.big::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to bottom, #4c126d00 0 75%, var(--background-color) 100%);
    z-index: 1;
}

.bottom-banner .background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
}

.bottom-banner .text-box {
    position: absolute;
    top: 50%;
    left: 0;
    width: 80%;
    height: auto;
    text-align: left;
    color: var(--text-color);
    padding: 0 0 0 var(--page-padding);
    transform: translateY(-50%);
}

.bottom-banner .text-box .title {
    font-size: 38px;
    font-weight: 700;
    line-height: 30px;
    margin-bottom: 6px;
}

.bottom-banner .text-box .sub {
    font-size: 28px;
    font-weight: 200;
    font-family: ZKG, sans-serif;
}

.footer {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    padding: 30px var(--page-padding);
}

.footer .top {
    width: 100%;
    margin-bottom: 20px;
}

.footer .top .logo {
    height: 24px;
}

.footer .bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer .left {
    display: flex;
    flex-wrap: wrap;
    width: auto;
    flex-shrink: 0;
    margin-right: 40px;
}

.footer .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
}

.footer .right .footer-group {
    margin-right: 0;
    margin-bottom: 20px;
    align-items: flex-end;
}

.footer .right .footer-group:last-child {
    margin-bottom: 0;
}

.footer-group.line {
    flex-direction: column;
    align-items: flex-end;
}

.footer-group.line .social-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.footer-group.line .social-links a {
    margin-right: 15px;
    margin-bottom: 0;
}

.footer-group.line .social-links a:last-child {
    margin-right: 0;
}

.footer-group {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 60px;
}

.footer-group:last-child {
    margin-right: 0;
}

.footer-group a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 10px;
    position: relative;
}

.footer-group a.title {
    font-weight: 400;
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--sub-text-color);
}

.footer-group select.region-select {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.region-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.region-dropdown {
    position: relative;
    width: 200px;
}

.dropdown-selected {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    background-color: transparent;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-selected:hover {
    border-color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-selected .region {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 2px;
}

.dropdown-selected .language {
    font-size: 12px;
    color: var(--sub-text-color);
}

.dropdown-selected .dropdown-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--sub-text-color);
    transition: transform 0.2s ease;
}

.region-dropdown.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-height: 0;
    overflow-y: auto;
    opacity: 0;
    transition: all 0.3s ease;
    margin-top: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.region-dropdown.open .dropdown-menu {
    max-height: 300px;
    opacity: 1;
}

.region-item {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.region-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.region-item.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.region-item .region {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 2px;
}

.region-item .language {
    font-size: 12px;
    color: var(--sub-text-color);
}

.footer-group .icon.social {
    width: 24px;
    height: 24px;
    pointer-events: auto;
}

.copyright {
    font-size: 14px;
    color: var(--sub-text-color);
    margin-top: 40px;
    width: 100%;
    text-align: left;
}

#news-content {
    line-height: 1.8;
    color: var(--text-color);
}

#news-content p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.8;
}

#news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    pointer-events: auto;
    transition: transform 0.2s ease;
}

#news-content img:hover {
    transform: scale(1.02);
}

#news-content figure {
    margin: 24px 0;
    text-align: center;
}

#news-content h1,
#news-content h2,
#news-content h3 {
    color: var(--text-color);
    margin: 24px 0 16px 0;
    line-height: 1.4;
}

#news-content h1 {
    font-size: 28px;
}

#news-content h2 {
    font-size: 24px;
}

#news-content h3 {
    font-size: 20px;
}

#news-content ul,
#news-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

#news-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

#news-content blockquote {
    border-left: 4px solid var(--border-color);
    padding-left: 16px;
    margin: 20px 0;
    font-style: italic;
    color: var(--sub-text-color);
}

#news-content a {
    color: #4a9eff;
    text-decoration: underline;
    pointer-events: auto;
}

#news-content a:hover {
    color: #ffffff;
}

.wp-img-maxwidth {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.wp-img-maxwidth img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
}

.wp-img-footer img:hover {
    transform: scale(1) !important;
}

.tag {
    display: inline-block;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 0 4px;
}

.empty {
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--sub-text-color);
}

.empty .icon {
    width: 48px;
    height: 48px;
    margin-right: 0;
    margin-bottom: 10px;
    vertical-align: middle;
    opacity: 0.5;
}

.empty span {
    font-size: 18px;
    font-weight: 200;
    vertical-align: middle;
}

.members {
    display: flex;
    flex-wrap: wrap;
    gap: 36px 26px;
    margin-bottom: 48px;
    align-items: flex-start;
    justify-content: center;
    margin-top: 20px;
}

.members>.title {
    text-align: center;
    flex-basis: 100%;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-color);
    letter-spacing: 1px;
}

.member {
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: 18px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.08);
    padding: 32px 28px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 190px;
    max-width: 280px;
    flex: 1 1 180px;
    transition: box-shadow 0.2s, background 0.2s;
    cursor: pointer;
}

.member:hover {
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.member .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 18px;
    border: none;
    background: #222;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.2s;
}

.member .name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.member .role {
    font-size: 14px;
    color: var(--sub-text-color);
    font-weight: 400;
    text-align: center;
    line-height: 1.6;
}

@media screen and (max-width: 900px) {
    .members {
        gap: 24px 16px;
    }

    .member {
        min-width: 140px;
        max-width: 180px;
        padding: 20px 10px 16px 10px;
    }

    .member .avatar {
        width: 60px;
        height: 60px;
    }

    .member .name {
        font-size: 15px;
    }

    .member .role {
        font-size: 12px;
    }
}

@media screen and (max-width: 1200px) {
    .news-card-group {
        gap: 20px;
    }

    .news-card {
        min-width: calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .news-card .news-image {
        height: 200px;
        margin-bottom: 10px;
    }

    .news-card .text-box {
        padding: 12px 30px 20px 30px;
    }
}

@media screen and (max-width: 910px) {
    :root {
        --page-padding: 40px;
    }

    .nav {
        padding: 10px var(--page-padding) 10px var(--page-padding);
        height: 40px;
    }

    .nav .right a {
        margin-top: 0;
        margin-left: 30px;
        font-size: 12px;
    }

    .banner .text-box {
        padding: 0 var(--page-padding) 50px var(--page-padding);
    }

    .banner .text-box .title {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .banner .text-box .sub {
        font-size: 14px;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .page {
        padding: 30px var(--page-padding);
    }

    .page-title {
        height: 40px;
        margin-bottom: 16px;
    }

    .game-card {
        height: 400px;
        margin-left: calc(-1 * var(--page-padding));
        margin-right: calc(-1 * var(--page-padding));
        width: calc(100% + 2 * var(--page-padding));
        margin-bottom: 30px;
    }

    .game-card .text-box {
        padding: 0 var(--page-padding) 50px var(--page-padding);
    }

    .game-card .text-box .game-logo {
        height: 40px;
        margin-bottom: 8px;
    }

    .game-card .text-box .game-logo.big {
        height: 120px;
        margin-bottom: 8px;
    }

    .game-card .text-box .title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .game-card .text-box .sub {
        font-size: 14px;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .page#news .read-more {
        top: 30px;
        right: var(--page-padding);
        height: 40px;
    }

    .news-card-group {
        gap: 20px;
    }

    .news-card {
        min-width: 100%;
        max-width: 100%;
    }

    .news-card .news-image {
        height: 200px;
        margin-bottom: 10px;
    }

    .news-card .text-box {
        padding: 12px 30px 20px 30px;
    }

    .footer {
        padding: 20px var(--page-padding);
        margin-top: 30px;
    }

    .footer .top {
        margin-bottom: 15px;
    }

    .footer .top .logo {
        height: 20px;
    }

    .footer .bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer .left {
        margin-right: 0;
        margin-bottom: 20px;
        flex-direction: column;
    }

    .footer .left .footer-group {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .footer .right {
        align-items: flex-start;
    }

    .footer .right .footer-group {
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .footer-group {
        margin-right: 0;
        margin-bottom: 15px;
        min-width: auto;
    }

    .footer-group.line {
        align-items: flex-start;
    }

    .footer-group.line .social-links a {
        margin-right: 10px;
    }
}