﻿@import url("https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@700;800&display=swap");

* {
    box-sizing: border-box;
    cursor: url("../image/cursor.png"), default;
}

body {
    margin: 0;
    min-height: 100vh;
    background: url("../image/bg.jpg") #fff no-repeat center center fixed;
    background-size: cover;
    font-family: "Nanum Gothic", "Segoe UI", sans-serif;
    color: #5a5a5a;
    font-weight: 700;
    font-size: 13px;
}

body.devtools-blur {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}

.inspection-warning {
    position: fixed;
    top: 18px;
    right: 20px;
    background: rgba(20, 24, 28, 0.9);
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
    pointer-events: none;
}

.inspection-warning.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ls-header {
    margin: 0 auto;
    max-width: 1340px;
    height: 245px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ls-header::before,
.ls-header::after {
    content: "";
    position: absolute;
    top: -40px;
    width: 460px;
    height: 460px;
    background: url("../image/devk.png") no-repeat center / contain;
    opacity: 0.85;
    z-index: -1;
    pointer-events: none;
}

.ls-header::before {
    left: -60px;
}

.ls-header::after {
    right: -60px;
    transform: scaleX(-1);
}

.logo {
    margin-top: 62px;
}

.logo img {
    max-width: min(90vw, 620px);
}

.sparks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.spark {
    position: absolute;
    width: 300px;
    height: 300px;
    background: url("../image/sparks_3.png") no-repeat center;
    opacity: 0;
    animation: sparkFade 4s linear infinite;
}

.spark-a {
    top: 10px;
    left: 10%;
}

.spark-b {
    top: 25px;
    right: 14%;
    animation-delay: 1s;
}

.spark-c {
    top: 55px;
    left: 32%;
    animation-delay: 2s;
}

.spark-d {
    top: 70px;
    right: 35%;
    animation-delay: 3s;
}

@keyframes sparkFade {
    0% { transform: scale(0.5); opacity: 0; }
    35% { transform: scale(0.85); opacity: 0.9; }
    70% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(1.2); opacity: 0; }
}

.ls-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 1340px;
    min-width: 1024px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

#container {
    width: 100%;
    display: flex;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.78);
    border: solid 2px black;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

nav {
    width: 160px;
    min-width: 160px;
    background-color: rgba(0, 0, 0, 0.05);
    border-right: solid 2px rgba(0, 0, 0, 0.12);
}

nav ul {
    margin: 0;
    padding: 60px 0 0 18px;
}

nav li {
    list-style: none;
    height: 60px;
    width: 140px;
    margin-bottom: 4px;
    margin-left: -2px;
    border-radius: 8px 0 0 8px;
    border: solid 2px rgba(0, 0, 0, 0.11);
    background: linear-gradient(#f7f7f7, #e7e8e8);
    box-shadow: inset 0 0 0 1px #fff;
    display: flex;
    align-items: center;
    text-align: center;
    transition: margin-left 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

nav li a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

nav li:not(.nav_active):hover {
    margin-left: -8px;
    background: linear-gradient(#ffffff, #edf3fa);
    border-color: rgba(17, 73, 120, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 2px 10px rgba(7, 53, 89, 0.22);
    transform: translateX(-1px);
}

.nav_active {
    background: rgba(255, 255, 255, 0.55) !important;
    height: 68px;
    margin-left: -10px;
    border-right: none;
    z-index: 2;
}

.navicon {
    width: 60px;
    height: 60px;
    margin-left: 6px;
    transition: filter 0.16s ease, transform 0.16s ease;
}

.homeicon { background: url("../image/nav-home.png") no-repeat center / 120%; }
.registericon { background: url("../image/nav-register.png") no-repeat center / 120%; }
.rankingicon { background: url("../image/nav-ranking.png") no-repeat center / 110%; }
.checkicon { background: url("../image/nav-guide.png") no-repeat center / 110%; }
.gearicon { background: url("../image/nav-forum.png") no-repeat center / 110%; }
.mercicon { background: url("../image/nav-support.png") no-repeat center / 110%; }
.insightsicon { background: url("../image/nav-ranking.png") no-repeat center / 110%; }
.guideicon { background: url("../image/nav-guide.png") no-repeat center / 110%; }
.supporticon { background: url("../image/nav-support.png") no-repeat center / 110%; }

.navtitle {
    width: 70%;
    font-size: 13px;
    color: #333;
    font-weight: 800;
    transition: color 0.16s ease, text-shadow 0.16s ease;
}

.navtitle h2 {
    margin: 1px 0 0;
    color: #666;
    font-size: 10px;
    font-weight: 700;
    transition: color 0.16s ease;
}

nav li:not(.nav_active):hover .navtitle {
    color: #0f4a7a;
    text-shadow: 0 0 4px rgba(113, 185, 241, 0.45);
}

nav li:not(.nav_active):hover .navtitle h2 {
    color: #195f97;
}

nav li:not(.nav_active):hover .navicon {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

nav li.nav_disabled {
    opacity: 0.48;
}

nav li.nav_disabled a {
    pointer-events: auto;
    cursor: not-allowed;
}

nav li.nav_disabled .navtitle,
nav li.nav_disabled .navtitle h2 {
    color: #7d7d7d;
    text-shadow: none;
}

nav li.nav_disabled .navicon {
    filter: grayscale(0.85) brightness(0.92);
    transform: none;
}

nav li.nav_disabled:hover {
    margin-left: -2px;
    background: linear-gradient(#f7f7f7, #e7e8e8);
    border-color: rgba(0, 0, 0, 0.11);
    box-shadow: inset 0 0 0 1px #fff;
    transform: none;
}

#middlecontent {
    width: 100%;
    min-height: 840px;
    padding: 62px 14px 18px;
    overflow: auto;
}

.title {
    width: 100%;
    height: 15px;
    background: linear-gradient(#0c4372, #125ea1);
    border: solid 3px #173046;
    border-radius: 7px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 10px -2px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    padding: 10px;
    text-shadow: -1px -1px 0 #003363, 1px 1px 0 #003363;
    box-sizing: content-box;
}

#container > .title {
    position: absolute;
    top: 7px;
    left: 7px;
    right: 7px;
    width: auto;
}

.title i {
    font-size: 15px;
    margin-right: 7px;
}

.sectiontitle {
    margin: 0 0 8px;
    font-size: 20px;
    color: #1d4468;
}

.gamepanel {
    width: 100%;
    margin-bottom: 14px;
    padding: 10px;
    border-radius: 9px;
    border: solid 2px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.42);
}

.lobby-hero {
    border-color: rgba(13, 77, 124, 0.33);
    background: linear-gradient(180deg, rgba(225, 243, 255, 0.72), rgba(255, 255, 255, 0.62));
}

.lobby-text {
    margin: 4px 0 2px;
    color: #274865;
    line-height: 1.5;
}

.lobby-list {
    margin-top: 2px;
    padding-left: 18px;
}

.lobby-list li {
    color: #2b4f6d;
    margin-bottom: 8px;
}

.lobby-howto-video {
    margin-top: 10px;
}

.lobby-video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 8px;
    overflow: hidden;
    border: solid 2px rgba(0, 0, 0, 0.2);
    background: #000;
}

.lobby-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lobby-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.lobby-card {
    border: solid 2px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    padding: 10px;
}

.lobby-card h3 {
    margin: 0 0 4px;
    color: #16456c;
    font-size: 13px;
}

.lobby-card p {
    margin: 0;
    color: #35566f;
    font-size: 12px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-card {
    border: solid 2px rgba(0, 0, 0, 0.13);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(235, 247, 255, 0.86), rgba(255, 255, 255, 0.74));
    padding: 10px 11px;
}

.dashboard-card h3 {
    margin: 0 0 4px;
    color: #19496f;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dashboard-card p {
    margin: 0;
    color: #0f3d62;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.status-message {
    display: block;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    font-size: 13px;
    font-weight: 700;
}

.status-info {
    color: #083f63;
    background: rgba(136, 198, 236, 0.45);
}

.status-success {
    color: #0a5a1f;
    background: rgba(124, 213, 136, 0.45);
}

.status-error {
    color: #8d240f;
    background: rgba(243, 150, 136, 0.45);
}

.toolbar {
    margin-bottom: 8px;
}

.toolbar label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #1e4360;
}

.toolbar-controls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.toolbar-note {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #2d5473;
}

.target-hint {
    margin: 0 0 8px;
    padding: 8px 9px;
    border: solid 2px rgba(0, 0, 0, 0.08);
    border-radius: 7px;
    background: rgba(199, 229, 247, 0.4);
    color: #1f4c70;
    font-size: 12px;
}

.login-panel {
    margin-bottom: 8px;
    padding: 7px;
    border: solid 2px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.56);
}

.login-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.login-identity {
    color: #1d4567;
    font-size: 12px;
}

.login-identity span {
    color: #0c5f91;
    font-weight: 800;
}

.login-cash {
    color: #1d4567;
    font-size: 12px;
}

.login-cash span {
    color: #0d6f28;
    font-weight: 800;
}

.login-test-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #c97916;
    background: linear-gradient(180deg, #ffeecf, #ffd9a6);
    color: #9a5200;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.login-test-remaining {
    color: #bb5e00;
    font-weight: 800;
}

.login-message {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
}

.login-info {
    color: #295676;
}

.login-success {
    color: #0d6f28;
}

.login-error {
    color: #9d1f16;
}

.text-input {
    height: 34px;
    min-width: 220px;
    padding: 0 10px;
    border-radius: 7px;
    border: solid 2px #797979;
    background: #fff;
    font-weight: 700;
    color: #333;
}

.text-input:focus {
    border-color: #2f73b8;
    box-shadow: 0 0 0 2px rgba(47, 115, 184, 0.2);
    outline: none;
}

.button {
    height: 34px;
    padding: 0 16px;
    border-radius: 7px;
    border: solid 2px #797979;
    background: linear-gradient(#ededed, #dedede);
    color: #333;
    font-size: 12px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 4px -1px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.button:hover {
    background: linear-gradient(#fefefe, #efefef);
}

.button:active {
    background: linear-gradient(#dedede, #ececec);
}

.bluebtn {
    color: #fff;
    border-color: #284f7f;
    background: linear-gradient(#6d9edc, #2770cb);
    text-shadow: -1px -1px 0 #225195, 1px 1px 0 #225195;
}

.bluebtn:hover {
    background: linear-gradient(#7eafed, #3881dc);
}

.greenbtn {
    color: #fff;
    border-color: #2e6637;
    background: linear-gradient(#57af66, #158f2a);
    text-shadow: -1px -1px 0 #006622, 1px 1px 0 #006622;
}

.greenbtn:hover {
    background: linear-gradient(#72c480, #26a03b);
}

.mainpagebtn {
    color: #fff;
    border-color: #5a2a15;
    background: linear-gradient(#f3a15d, #d45800);
    text-shadow: -1px -1px 0 #7a2c00, 1px 1px 0 #7a2c00;
}

.mainpagebtn:hover {
    background: linear-gradient(#ffb372, #e4690d);
}

.discordbtn {
    color: #fff;
    border-color: #4b53c0;
    background: linear-gradient(#8ea2ff, #5360d9);
    text-shadow: -1px -1px 0 #2c3379, 1px 1px 0 #2c3379;
}

.discordbtn:hover {
    background: linear-gradient(#a8bbff, #6572f0);
}

.copybtn {
    min-width: 160px;
}

.button:disabled,
.button[disabled],
input.button:disabled,
input.button[disabled] {
    border-color: #8a8a8a !important;
    background: linear-gradient(#d7d7d7, #bfbfbf) !important;
    color: #6a6a6a !important;
    text-shadow: none !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
    cursor: not-allowed !important;
    opacity: 0.55;
    filter: saturate(0.25);
    pointer-events: none;
}

.button:disabled:hover,
.button[disabled]:hover,
.button:disabled:active,
.button[disabled]:active {
    background: linear-gradient(#d7d7d7, #bfbfbf) !important;
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.profile-box {
    border: solid 2px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.5);
}

.paneltitle {
    font-size: 14px;
    color: #163e5f;
    margin-bottom: 6px;
}

.profile-grid {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.profile-grid > div {
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.68);
    padding: 6px 7px;
}

.profile-grid dt {
    margin: 0 0 3px;
    font-size: 10px;
    color: #477397;
    text-transform: uppercase;
}

.profile-grid dd {
    margin: 0;
    font-size: 12px;
    color: #23384a;
    word-break: break-all;
}

.gear-summary-grid {
    margin-top: 8px;
}

.gear-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
    padding: 12px;
    border-color: rgba(31, 84, 124, 0.4);
    background:
        radial-gradient(circle at top left, rgba(126, 193, 241, 0.22), rgba(255, 255, 255, 0) 32%),
        radial-gradient(circle at top right, rgba(92, 164, 231, 0.2), rgba(255, 255, 255, 0) 38%),
        rgba(255, 255, 255, 0.72);
}

.gear-empty {
    grid-column: 1 / -1;
    padding: 18px 14px;
    border: solid 2px rgba(0, 0, 0, 0.1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.88);
    color: #2f5677;
    text-align: center;
}

.gear-card {
    border: solid 2px rgba(15, 60, 95, 0.32);
    border-radius: 10px;
    padding: 8px;
    background: linear-gradient(180deg, rgba(254, 254, 254, 0.96), rgba(227, 237, 246, 0.9));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 4px 10px rgba(5, 38, 66, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gear-card:hover {
    transform: translateY(-4px);
    border-color: rgba(26, 104, 166, 0.7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 10px 18px rgba(5, 38, 66, 0.25);
}

.gear-catalog,
.gear-card,
.gear-card * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mercenary-catalog,
.mercenary-card,
.mercenary-card * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.gear-card.is-mosaic .gear-icon,
.gear-card.is-mosaic .gear-name,
.gear-card.is-mosaic .gear-meta,
.gear-card.is-mosaic .gear-plus {
    filter: blur(3.2px) grayscale(0.85) saturate(0.3);
    opacity: 0.7;
}

.gear-card.is-mosaic .gear-icon-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9px;
    background:
        linear-gradient(rgba(11, 31, 50, 0.32), rgba(11, 31, 50, 0.32)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.24) 0 5px, rgba(4, 19, 31, 0.36) 5px 10px);
    pointer-events: none;
}

.gear-card-overflow {
    min-height: 214px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-color: rgba(14, 56, 89, 0.4);
    background: linear-gradient(180deg, rgba(244, 250, 255, 0.92), rgba(214, 227, 239, 0.82));
}

.gear-overflow-dots {
    font-size: 48px;
    line-height: 0.9;
    color: #1e4f73;
    letter-spacing: 0.2em;
}

.gear-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 10px;
    color: #2f5878;
    text-transform: uppercase;
}

.gear-row-label,
.gear-pos-label {
    border-radius: 999px;
    padding: 1px 7px;
    border: 1px solid rgba(19, 71, 109, 0.35);
    background: rgba(225, 241, 253, 0.8);
}

.gear-icon-shell {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 6px;
    border-radius: 12px;
    border: solid 3px #f6c143;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.86), rgba(20, 80, 128, 0.25)),
        linear-gradient(180deg, rgba(13, 63, 106, 0.15), rgba(9, 43, 74, 0.4));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 3px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear-icon {
    width: 76px;
    height: 76px;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.gear-plus {
    position: absolute;
    right: -6px;
    bottom: -10px;
    min-width: 44px;
    text-align: center;
    border-radius: 999px;
    padding: 2px 7px;
    border: 2px solid #1d2b3a;
    background: linear-gradient(#f3f5f6, #c4d2dd);
    color: #17364e;
    font-size: 12px;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.gear-plus.is-mid {
    background: linear-gradient(#8be0ff, #3d97cd);
    color: #042943;
}

.gear-plus.is-high {
    background: linear-gradient(#d2b4ff, #8d61cc);
    color: #fff;
    text-shadow: 0 1px 1px rgba(14, 24, 43, 0.45);
}

.gear-plus.is-max {
    background: linear-gradient(#ffd76b, #f39e2f);
    color: #fff;
    text-shadow: 0 1px 1px rgba(76, 21, 0, 0.5);
    box-shadow: 0 0 8px rgba(247, 155, 32, 0.4);
}

.gear-plus.is-low {
    background: linear-gradient(#e5edf2, #c0ced8);
    color: #254861;
}

.gear-name {
    font-size: 12px;
    color: #163f61;
    text-align: center;
    min-height: 30px;
    line-height: 1.25;
    margin-bottom: 3px;
}

.gear-meta {
    font-size: 10px;
    color: #335977;
    text-align: center;
    margin-top: 1px;
}

.mercenary-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    padding: 12px;
    border-color: rgba(41, 95, 41, 0.4);
    background:
        radial-gradient(circle at top left, rgba(150, 216, 153, 0.24), rgba(255, 255, 255, 0) 35%),
        radial-gradient(circle at top right, rgba(99, 183, 120, 0.2), rgba(255, 255, 255, 0) 38%),
        rgba(255, 255, 255, 0.74);
}

.mercenary-empty {
    grid-column: 1 / -1;
    padding: 18px 14px;
    border: solid 2px rgba(0, 0, 0, 0.1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.88);
    color: #2f5677;
    text-align: center;
}

.mercenary-card {
    border: solid 2px rgba(23, 88, 41, 0.36);
    border-radius: 10px;
    padding: 8px;
    background: linear-gradient(180deg, rgba(253, 255, 253, 0.96), rgba(225, 244, 231, 0.9));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 4px 10px rgba(17, 66, 28, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mercenary-card:hover {
    transform: translateY(-4px);
    border-color: rgba(49, 138, 66, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 10px 18px rgba(17, 66, 28, 0.25);
}

.mercenary-card.is-mosaic .merc-icon,
.mercenary-card.is-mosaic .merc-name,
.mercenary-card.is-mosaic .merc-meta,
.mercenary-card.is-mosaic .merc-level-badge {
    filter: blur(3.2px) grayscale(0.85) saturate(0.3);
    opacity: 0.7;
}

.mercenary-card.is-mosaic .merc-icon-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9px;
    background:
        linear-gradient(rgba(11, 31, 50, 0.32), rgba(11, 31, 50, 0.32)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.24) 0 5px, rgba(4, 19, 31, 0.36) 5px 10px);
    pointer-events: none;
}

.merc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 10px;
    color: #2f5878;
    text-transform: uppercase;
}

.merc-icon-shell {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 6px;
    border-radius: 12px;
    border: solid 3px #69b66f;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.88), rgba(57, 121, 74, 0.28)),
        linear-gradient(180deg, rgba(24, 84, 45, 0.22), rgba(16, 58, 31, 0.42));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 3px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.merc-icon {
    width: 76px;
    height: 76px;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.merc-level-badge {
    position: absolute;
    right: -8px;
    bottom: -10px;
    min-width: 46px;
    text-align: center;
    border-radius: 999px;
    padding: 2px 7px;
    border: 2px solid #1a2f2a;
    background: linear-gradient(#eaffd7, #97cb58);
    color: #1e3a1d;
    font-size: 11px;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.merc-name {
    font-size: 12px;
    color: #214d2e;
    text-align: center;
    min-height: 30px;
    line-height: 1.25;
    margin-bottom: 3px;
}

.merc-meta {
    font-size: 10px;
    color: #335977;
    text-align: center;
    margin-top: 1px;
}

.mercenary-card-overflow {
    min-height: 214px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-color: rgba(21, 82, 34, 0.45);
    background: linear-gradient(180deg, rgba(244, 255, 245, 0.92), rgba(218, 239, 221, 0.82));
}

.merc-overflow-dots {
    font-size: 48px;
    line-height: 0.9;
    color: #2f7443;
    letter-spacing: 0.2em;
}

.actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.copy-actions-main {
    justify-content: center;
    margin-top: 0;
}

.copy-actions-main .copybtn {
    min-width: 260px;
    font-size: 15px;
}

.gamepanel .copy-warning {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: solid 2px #be2b2b !important;
    background: linear-gradient(180deg, #ffe7e7, #ffcfcf) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 2px 8px rgba(128, 18, 18, 0.22) !important;
}

.gamepanel .copy-warning-title {
    color: #a41d1d;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.gamepanel .copy-warning-list {
    margin: 0;
    padding-left: 18px;
    color: #651717;
    font-size: 12px;
    line-height: 1.45;
}

.gamepanel .copy-warning-list li + li {
    margin-top: 4px;
}

.actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.turnstile-wrap {
    width: 100%;
    margin-top: 2px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    min-height: 65px;
}

.turnstile-wrap .turnstile-scale {
    display: inline-block;
    transform: scale(1);
    transform-origin: center top;
}

.turnstile-wrap .cf-turnstile {
    width: 300px;
    max-width: 300px;
}

.turnstile-wrap iframe {
    width: 300px !important;
    max-width: 300px !important;
    transform: none !important;
}

.table-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    overflow: hidden;
    border: solid 2px rgba(0, 0, 0, 0.1);
    font-size: 12px;
}

.table-grid th {
    background: linear-gradient(#0c4372, #125ea1);
    color: #fff;
    padding: 8px 7px;
    border-bottom: solid 2px #173046;
    text-shadow: -1px -1px 0 #003363, 1px 1px 0 #003363;
    white-space: nowrap;
}

.table-grid td {
    padding: 7px 6px;
    color: #2d2d2d;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.table-grid tr:nth-child(even) td {
    background: rgba(228, 239, 248, 0.72);
}

.table-grid a {
    color: #0e4f81;
}

.pager {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pager-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    border: solid 2px #17466f;
    background: linear-gradient(#f8fdff, #d1ebff);
    color: #0a3a5e;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.pager-link:hover {
    background: linear-gradient(#ffffff, #c3e5ff);
    color: #082a45;
}

.pager-link.current {
    border-color: #0f3153;
    background: linear-gradient(#1f6aa2, #134f80);
    color: #fff;
    text-shadow: -1px -1px 0 #0a385f, 1px 1px 0 #0a385f;
}

.pager-link.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

.pager-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 28px;
    color: #305774;
    font-size: 11px;
    font-weight: 800;
}

.pager-info {
    margin-left: auto;
    color: #123b59;
    font-size: 11px;
    font-weight: 800;
}

.table-action-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.table-action-list li {
    margin: 0;
    padding: 0;
}

.table-action-link {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #124b73;
    text-decoration: none;
    gap: 6px;
}

.table-action-link::before {
    content: "▶";
    font-size: 8px;
    opacity: 0.8;
}

.table-action-link:hover {
    color: #0a2840;
}

aside {
    width: 261px;
    min-width: 261px;
    padding: 7px;
    background-color: rgba(255, 255, 255, 0.78);
    border: solid 2px black;
    border-radius: 8px;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
}

.sidebox {
    margin-bottom: 10px;
}

.loginbox {
    padding: 0 8px 8px;
    border: solid 2px rgba(0, 0, 0, 0.16);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.55);
}

.loginbox .title {
    margin: 7px -1px 8px;
}

.loginbox .login-panel {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.76);
}

.loginbox .login-panel + .login-panel {
    margin-top: 8px;
}

.loginbox .toolbar {
    margin-bottom: 0;
}

.loginbox .toolbar-controls {
    flex-direction: column;
    gap: 7px;
}

.loginbox .text-input,
.loginbox .button {
    width: 100%;
    min-width: 0;
}

.loginbox .login-active {
    align-items: stretch;
    flex-direction: column;
}

.sidebox .title {
    width: auto;
    height: 15px;
}

.side-list {
    margin: 8px 0 0;
    padding-left: 20px;
}

.side-list li {
    margin-bottom: 7px;
    font-size: 12px;
    color: #264868;
}

footer {
    width: 100%;
    max-width: 1340px;
    margin: 10px auto 14px;
    padding: 10px;
    text-align: center;
    color: #fff;
    border-radius: 7px;
    border: solid 2px black;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    background: linear-gradient(rgba(53, 105, 133, 0.8), rgba(30, 58, 73, 0.9));
}

.copying-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

.copying-overlay.is-active {
    display: flex;
}

.copying-card {
    width: min(90vw, 420px);
    border-radius: 10px;
    border: solid 2px black;
    padding: 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.32);
}

.copying-card h2 {
    margin: 0 0 8px;
    color: #19496f;
}

.copying-card p {
    margin: 0;
    color: #3c556b;
}

.copying-spinner {
    margin: 0 auto 12px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.15);
    border-top-color: #2770cb;
    border-right-color: #57af66;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 1280px) {
    .ls-main {
        min-width: 0;
        width: 100%;
        padding: 0 10px;
        flex-direction: column;
    }

    aside {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 980px) {
    nav {
        display: none;
    }

    #middlecontent {
        padding: 62px 10px 14px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .lobby-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gear-catalog,
    .mercenary-catalog {
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    }
}

@media (max-width: 680px) {
    .ls-header {
        height: 185px;
    }

    .logo {
        margin-top: 40px;
    }

    .toolbar-controls {
        flex-direction: column;
    }

    .text-input,
    .button {
        width: 100%;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .table-grid {
        font-size: 11px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .gear-catalog,
    .mercenary-catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

