.character-profile-link {
    color: #0f2b47 !important;
    font-weight: 700;
    text-decoration: none;
}

.character-profile-link:hover,
.character-profile-link:focus {
    color: #1f6fab !important;
    text-decoration: underline;
}

.notice-board {
    display: grid;
    gap: 16px;
    padding: 4px 0 10px;
}

.notice-board-header {
    padding: 18px 20px;
    border: 1px solid rgba(0, 204, 255, 0.2);
    border-radius: 10px;
    background: rgba(4, 12, 22, 0.72);
}

.notice-board-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 204, 255, 0.16);
    color: #9ee9ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notice-board-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
}

.notice-board-header p {
    margin: 10px 0 0;
    color: #cbeeff;
    line-height: 1.7;
}

.notice-board-list {
    display: grid;
    gap: 12px;
}

.notice-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: stretch;
    padding: 16px 18px;
    border: 1px solid rgba(0, 204, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: #1a1d22;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.notice-card-index {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    border-radius: 10px;
    background: linear-gradient(180deg, #0d2137 0%, #163c62 100%);
    color: #c8f4ff;
    font-size: 24px;
    font-weight: 800;
}

.notice-card-body h4 {
    margin: 0 0 8px;
    color: #12283d;
    font-size: 18px;
    font-weight: 700;
}

.notice-card-body p {
    margin: 0;
    color: #314252;
    line-height: 1.8;
}

.notice-card.notice-card-rich {
    grid-template-columns: 1fr;
    gap: 0;
}

.notice-card.notice-card-rich .notice-card-body {
    display: grid;
    gap: 14px;
}

.notice-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.notice-post-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0c5c91 0%, #0d99e5 100%);
    color: #f4fbff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.notice-post-date {
    color: #627587;
    font-size: 13px;
    font-weight: 600;
}

.notice-post-title {
    margin: 0 !important;
    color: #12283d !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

.notice-post-summary {
    margin: 0 !important;
    color: #526677 !important;
    font-size: 15px;
    line-height: 1.8 !important;
}

.notice-blocks {
    display: grid;
    gap: 16px;
}

.notice-block {
    min-width: 0;
}

.notice-rich-text {
    color: #314252;
    word-break: keep-all;
}

.notice-media {
    display: grid;
    gap: 10px;
}

.notice-media img,
.notice-video-frame,
.notice-video-player {
    width: min(100%, var(--notice-media-width, 100%));
    border-radius: 14px;
    display: block;
    background: #091018;
    box-shadow: 0 14px 32px rgba(7, 15, 28, 0.18);
}

.notice-video-frame,
.notice-video-player {
    aspect-ratio: 16 / 9;
    border: 0;
}

.notice-media figcaption {
    color: #617384;
    font-size: 14px;
    line-height: 1.7;
}

.notice-media-align-left {
    justify-items: flex-start;
}

.notice-media-align-center {
    justify-items: center;
}

.notice-media-align-right {
    justify-items: flex-end;
}

.notice-table-wrap {
    display: grid;
    gap: 12px;
}

.notice-table-title,
.notice-poll-title {
    color: #132a3f;
    font-size: 18px;
    font-weight: 800;
}

.notice-table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dde6ee;
    border-radius: 14px;
}

.notice-rich-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    background: #f9fbfd;
}

.notice-rich-table thead th {
    padding: 14px 16px;
    border-bottom: 1px solid #dde6ee;
    background: #eef5fb;
    color: #0e2438;
    font-size: 14px;
    font-weight: 800;
}

.notice-rich-table tbody td {
    padding: 14px 16px;
    border-top: 1px solid #e6edf3;
    color: #314252;
    font-size: 14px;
    line-height: 1.7;
}

.notice-rich-table tbody tr:nth-child(even) td {
    background: #ffffff;
}

.notice-poll {
    display: grid;
    gap: 12px;
}

.notice-poll-row {
    display: grid;
    gap: 8px;
}

.notice-poll-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notice-poll-label {
    color: #132a3f;
    font-size: 15px;
    font-weight: 700;
}

.notice-poll-value {
    color: #617384;
    font-size: 14px;
    font-weight: 700;
}

.notice-poll-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eff6;
}

.notice-poll-fill {
    height: 100%;
    border-radius: inherit;
}

.notice-board-empty {
    padding: 18px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #3d4955;
    line-height: 1.8;
}

.account-portal {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(0, 204, 255, 0.16);
    border-radius: 14px;
    background: rgba(6, 14, 26, 0.82);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.account-portal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
}

.account-portal-header p {
    margin: 10px 0 0;
    color: #c9ebff;
    line-height: 1.8;
}

.account-portal-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(0, 204, 255, 0.14);
    color: #8ee4ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.account-portal-feedback,
.account-portal-loading,
.account-portal-empty {
    padding: 14px 16px;
    border-radius: 12px;
    line-height: 1.8;
}

.account-portal-loading,
.account-portal-empty {
    background: rgba(255, 255, 255, 0.94);
    color: #304050;
}

.account-portal-feedback-info {
    background: rgba(17, 81, 126, 0.3);
    border: 1px solid rgba(72, 182, 255, 0.35);
    color: #d8f2ff;
}

.account-portal-feedback-success {
    background: rgba(18, 102, 55, 0.24);
    border: 1px solid rgba(82, 217, 137, 0.34);
    color: #dbffea;
}

.account-portal-feedback-error {
    background: rgba(123, 24, 46, 0.28);
    border: 1px solid rgba(255, 109, 141, 0.36);
    color: #ffe1e9;
}

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

.account-login-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-login-grid label {
    display: grid;
    gap: 8px;
    margin: 0;
    color: #cdeeff;
    font-size: 13px;
    font-weight: 700;
}

.account-login-grid input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(133, 181, 214, 0.26);
    border-radius: 10px;
    background: rgba(5, 12, 22, 0.9);
    color: #ffffff;
    font-size: 15px;
}

.account-login-actions {
    display: flex;
    justify-content: flex-end;
}

.account-summary-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #13273b;
}

.account-summary-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-summary-title {
    color: #132a3f;
    font-size: 20px;
    font-weight: 800;
}

.account-summary-subtitle {
    margin-top: 6px;
    color: #54687a;
    font-size: 14px;
    font-weight: 700;
}

.account-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.account-summary-pill {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid #dce7f0;
    border-radius: 12px;
    background: #f8fbfe;
}

.account-summary-pill span {
    color: #63788b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.account-summary-pill strong {
    color: #10273c;
    font-size: 16px;
    font-weight: 800;
}

.account-character-list-heading {
    color: #dff4ff;
    font-size: 18px;
    font-weight: 800;
}

.account-character-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.account-character-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(0, 204, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #1c2a39;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.account-character-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.account-character-name {
    color: #10273c;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
}

.account-character-name:hover,
.account-character-name:focus {
    color: #1a5c8c;
    text-decoration: underline;
}

.account-character-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.account-character-status.is-online {
    background: rgba(26, 180, 91, 0.16);
    color: #148a4e;
}

.account-character-status.is-offline {
    background: rgba(108, 122, 138, 0.14);
    color: #596e80;
}

.account-character-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #425365;
    font-size: 14px;
    font-weight: 700;
}

.account-character-icon img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: block;
}

.account-character-level {
    margin-left: auto;
    color: #0e2b45;
}

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

.account-character-stat {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f6fafc;
}

.account-character-stat .label {
    color: #6a7c8c;
    font-size: 12px;
    font-weight: 700;
}

.account-character-stat .value {
    color: #11293f;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    word-break: break-word;
}

.ranking-table-hint {
    margin-bottom: 12px;
    color: #607487;
    font-size: 13px;
    line-height: 1.7;
}

.site-ranking-table {
    margin-bottom: 0;
    background: #ffffff;
    color: #1f2732;
    border-radius: 10px;
    overflow: hidden;
}

.site-ranking-table thead th {
    border-bottom: 1px solid #dde6ee !important;
    background: #f6f8fb;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    vertical-align: middle !important;
}

.site-ranking-table tbody td {
    border-top: 1px solid #e8edf2 !important;
    background: #ffffff;
    color: #1f2732;
    text-align: center;
    vertical-align: middle !important;
    font-size: 15px;
}

.site-ranking-table tbody tr:nth-child(even) td {
    background: #fbfcfe;
}

.site-ranking-table tbody td:nth-child(2) {
    text-align: left;
}

@media (min-width: 1024px) {
    nav.navbar.bootsnav.brand-center .navbar-header {
        z-index: 4;
        pointer-events: none;
        overflow: visible;
    }

    nav.navbar.bootsnav.brand-center .navbar-brand {
        margin-top: -30px;
        padding: 0;
        width: 186px;
        min-height: 116px;
        display: inline-flex;
        align-items: flex-end;
        justify-content: center;
        float: none !important;
        pointer-events: auto;
        vertical-align: top;
        overflow: visible;
    }

    nav.navbar.bootsnav.brand-center .navbar-brand img.logo {
        width: 186px;
        max-width: 186px;
        height: auto;
        display: block;
        transform: translate(6px, 0);
    }

    nav.bootsnav.brand-center .navbar-collapse .col-half.left {
        padding-right: 82px;
    }

    nav.bootsnav.brand-center .navbar-collapse .col-half.right {
        padding-left: 82px;
    }
}

@media (max-width: 1100px) {
    nav.navbar.bootsnav .navbar-brand {
        padding: 6px 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    nav.navbar.bootsnav .navbar-brand img.logo {
        width: 168px;
        max-width: 168px;
        height: auto;
        display: block;
    }
}

.ranking-icon-cell img {
    width: 28px;
    height: 28px;
    margin: 0 auto;
    border-radius: 4px;
    display: block;
}

#modal-playtime .modal-content,
#modal-killers .modal-content,
#modal-honor .modal-content,
#modal-arena .modal-content,
#modal-teams .modal-content {
    background: #ffffff;
    color: #1f2732;
    border-radius: 12px;
    overflow: hidden;
}

#modal-playtime .modal-header,
#modal-killers .modal-header,
#modal-honor .modal-header,
#modal-arena .modal-header,
#modal-teams .modal-header {
    border-bottom: 1px solid #e5ebf0;
    background: #ffffff;
}

#modal-playtime .modal-title,
#modal-killers .modal-title,
#modal-honor .modal-title,
#modal-arena .modal-title,
#modal-teams .modal-title {
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

#modal-playtime .close,
#modal-killers .close,
#modal-honor .close,
#modal-arena .close,
#modal-teams .close {
    color: #6b7280;
    opacity: 1;
}

#modal-playtime .modal-body,
#modal-killers .modal-body,
#modal-honor .modal-body,
#modal-arena .modal-body,
#modal-teams .modal-body {
    background: #ffffff;
}

#modal-playtime .modal-footer,
#modal-killers .modal-footer,
#modal-honor .modal-footer,
#modal-arena .modal-footer,
#modal-teams .modal-footer {
    border-top: 1px solid #e5ebf0;
    background: #ffffff;
}

@media (max-width: 767px) {
    .notice-card {
        grid-template-columns: 1fr;
    }

    .notice-card-index {
        min-height: 56px;
    }

    .notice-board {
        padding-left: 12px;
        padding-right: 12px;
    }

    .notice-board-header {
        padding: 20px 18px;
        border-radius: 14px;
    }

    .notice-board-header h3 {
        font-size: 34px;
    }

    .notice-board-header p {
        font-size: 15px;
        line-height: 1.7;
    }

    .notice-card.notice-card-rich .notice-card-body {
        padding: 18px 16px;
    }

    .notice-post-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .notice-post-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .notice-post-summary {
        font-size: 14px;
    }

    .notice-rich-text {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }

    .notice-blocks {
        gap: 18px;
    }

    .notice-media img,
    .notice-video-frame,
    .notice-video-player {
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
    }

    .notice-video-frame,
    .notice-video-player {
        min-height: 220px;
    }

    .notice-poll-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-poll-label,
    .notice-poll-value {
        font-size: 14px;
    }

    .notice-table-title,
    .notice-poll-title {
        font-size: 18px;
    }

    .notice-rich-table th,
    .notice-rich-table td {
        white-space: nowrap;
        font-size: 13px;
    }

    .account-portal {
        margin-left: 12px;
        margin-right: 12px;
        padding: 16px;
    }

    .account-portal-header h3 {
        font-size: 22px;
    }

    .account-login-grid,
    .account-character-grid {
        grid-template-columns: 1fr;
    }

    .account-login-actions,
    .account-summary-heading {
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
    }

    .account-character-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-character-level {
        margin-left: 0;
    }

    .site-ranking-table thead th,
    .site-ranking-table tbody td {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    body {
        background-attachment: scroll;
    }

    #myVideo {
        display: none;
    }

    .content1 > .container {
        width: calc(100% - 20px);
        margin-top: 12px;
        padding-left: 0;
        padding-right: 0;
    }

    nav.navbar.bootsnav {
        background-position: center 26px, right 26px;
        background-size: calc(100% - 20px) auto, auto 56px;
    }

    nav.navbar.bootsnav .navbar-header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 74px;
        padding: 10px 12px 0 !important;
        text-align: center;
    }

    nav.navbar.bootsnav .navbar-toggle {
        position: absolute;
        top: 18px;
        left: 8px;
        float: none !important;
        margin: 0 !important;
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: rgba(5, 16, 28, 0.92);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
    }

    nav.navbar.bootsnav .navbar-brand {
        min-height: auto;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        float: none !important;
        overflow: visible;
    }

    nav.navbar.bootsnav .navbar-brand img.logo {
        width: min(150px, calc(100vw - 112px)) !important;
        max-width: min(150px, calc(100vw - 112px)) !important;
        height: auto;
        transform: none !important;
    }

    nav.navbar.bootsnav .navbar-collapse,
    nav.bootsnav.brand-center .navbar-collapse {
        width: 100%;
        margin-top: 12px;
        padding: 0 !important;
        border: 1px solid rgba(0, 204, 255, 0.18);
        border-radius: 16px;
        background: rgba(4, 12, 22, 0.94);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
        text-align: left;
    }

    nav.navbar.bootsnav .navbar-collapse.collapse {
        display: none !important;
    }

    nav.navbar.bootsnav .navbar-collapse.collapse.in {
        display: block !important;
    }

    nav.bootsnav.brand-center .navbar-collapse .col-half {
        width: 100%;
        float: none;
        display: block;
        padding: 0 !important;
        text-align: left !important;
    }

    nav.navbar.bootsnav ul.nav,
    nav.bootsnav.brand-center ul.nav {
        display: block !important;
        width: 100%;
        float: none !important;
        margin: 0 !important;
    }

    nav.navbar.bootsnav ul.nav > li {
        float: none;
        width: 100%;
    }

    nav.navbar.bootsnav ul.nav > li > a {
        padding: 14px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 15px;
        font-weight: 700;
        line-height: 1.5;
        text-align: left;
    }

    nav.navbar.bootsnav ul.nav > li:last-child > a {
        border-bottom: 0;
    }

    .main-box {
        margin: 12px auto 0;
        padding: 0 0 12px;
        border-radius: 14px;
        background-color: rgba(255, 255, 255, 0.84);
    }

    .main-box > .col-md-8,
    .main-box > .col-md-4,
    .main-box > .sidebar {
        width: 100%;
        float: none;
        margin-top: 12px !important;
        padding-left: 12px;
        padding-right: 12px;
    }

    #myCarousel {
        border-radius: 12px;
    }

    #myCarousel .item img {
        min-height: 190px;
        object-fit: cover;
    }

    .box1 {
        margin-bottom: 12px;
        padding: 14px 12px;
        border-radius: 12px;
    }

    .content_box1,
    #contact-content,
    #site-server-info-box {
        line-height: 1.7;
    }

    .content_box1 p,
    .content_box1 li,
    #site-server-info-box p,
    #contact-content p {
        font-size: 14px;
    }

    .input-group > .input-group {
        display: block;
        width: 100%;
        margin-bottom: 6px;
        padding-top: 0;
        text-align: left;
        color: #dcecff;
    }

    .form-control {
        min-height: 46px;
    }

    .box1 .btn,
    #pills-topplayers .btn,
    #pills-register .text-center .btn,
    #pills-register .text-center input.btn,
    #pills-register .modal-footer .btn,
    #site-server-info-box + .box1 .btn {
        width: 100%;
        margin: 6px 0 0;
    }

    #discord-widget-box iframe {
        width: 100% !important;
        max-width: 100%;
    }

    .notice-board {
        padding-left: 0;
        padding-right: 0;
    }

    .site-ranking-table,
    .notice-table-scroll {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .modal-dialog,
    .modal-dialog.modal-lg {
        width: auto;
        margin: 12px;
    }

    .modal-content {
        border-radius: 14px;
    }

    .modal-body {
        padding: 14px;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .content1 > .container {
        width: calc(100% - 16px);
        margin-top: 10px;
    }

    nav.navbar.bootsnav .navbar-header {
        min-height: 68px;
        padding: 8px 10px 0 !important;
    }

    nav.navbar.bootsnav .navbar-toggle {
        top: 14px;
        left: 6px;
        width: 40px;
        height: 40px;
    }

    nav.navbar.bootsnav .navbar-brand img.logo {
        width: min(138px, calc(100vw - 104px)) !important;
        max-width: min(138px, calc(100vw - 104px)) !important;
    }

    .main-box > .col-md-8,
    .main-box > .col-md-4,
    .main-box > .sidebar {
        padding-left: 10px;
        padding-right: 10px;
    }

    #myCarousel .item img {
        min-height: 168px;
    }

    .notice-board-header {
        padding: 18px 16px;
    }

    .notice-board-header h3 {
        font-size: 28px;
    }

    .notice-post-title {
        font-size: 20px !important;
    }

    .notice-video-frame,
    .notice-video-player {
        min-height: 190px;
    }

    #modal-playtime .modal-title,
    #modal-killers .modal-title,
    #modal-honor .modal-title,
    #modal-arena .modal-title,
    #modal-teams .modal-title {
        font-size: 18px;
    }

    .site-ranking-table thead th,
    .site-ranking-table tbody td {
        font-size: 12px;
        white-space: nowrap;
    }
}
